@charset "UTF-8";
:root {
  --primary-color: #222222;
  --secondary-color: #ffffff;
  --accent-color: #ff4b4b;
  --text-color: #333333;
  --text-light: #666666;
  --text-dark: #000000;
  --background-color: #fafafa;
  --card-bg: #ffffff;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8; }

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-monospace: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75; }

:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem; }

:root {
  --container-width: 1400px;
  --header-height: 4rem;
  --sidebar-width: 300px;
  --content-max-width: 800px;
  --z-header: 1000;
  --z-modal: 1100;
  --z-toast: 1200;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1); }

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */ }

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0; }

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block; }

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0; }

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */ }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent; }

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */ }

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder; }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%; }

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sub {
  bottom: -0.25em; }

sup {
  top: -0.5em; }

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none; }

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */ }

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible; }

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none; }

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; }

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0; }

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText; }

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em; }

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */ }

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline; }

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto; }

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto; }

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */ }

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */ }

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block; }

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item; }

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none; }

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none; }

/* Base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; }
  body.menu-open {
    overflow: hidden; }

a {
  color: inherit;
  text-decoration: none; }

img {
  max-width: 100%;
  height: auto;
  display: block; }

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit; }

input,
textarea,
select {
  font: inherit;
  color: inherit; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease; }
  a:hover {
    color: var(--accent-color); }

ul,
ol {
  list-style-position: inside; }

table {
  width: 100%;
  border-collapse: collapse; }

:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px; }

:focus:not(:focus-visible) {
  outline: none; }

:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark); }

h1 {
  font-size: var(--font-size-4xl); }
  @media (max-width: 768px) {
    h1 {
      font-size: var(--font-size-3xl); } }
h2 {
  font-size: var(--font-size-3xl); }
  @media (max-width: 768px) {
    h2 {
      font-size: var(--font-size-2xl); } }
h3 {
  font-size: var(--font-size-2xl); }
  @media (max-width: 768px) {
    h3 {
      font-size: var(--font-size-xl); } }
h4 {
  font-size: var(--font-size-xl); }

h5 {
  font-size: var(--font-size-lg); }

h6 {
  font-size: var(--font-size-base); }

p {
  margin-bottom: 1rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease; }
  a:hover {
    color: var(--accent-color); }

h1 .header-anchor, h2 .header-anchor, h3 .header-anchor, h4 .header-anchor, h5 .header-anchor, h6 .header-anchor {
  color: inherit;
  text-decoration: none; }
  h1 .header-anchor:hover, h2 .header-anchor:hover, h3 .header-anchor:hover, h4 .header-anchor:hover, h5 .header-anchor:hover, h6 .header-anchor:hover {
    color: inherit;
    text-decoration: none; }

strong {
  font-weight: 600; }

em {
  font-style: italic; }

small {
  font-size: var(--font-size-sm); }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary-color);
  background-color: var(--background-color);
  font-style: italic; }
  blockquote p:last-child {
    margin-bottom: 0; }

code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background-color: var(--background-color);
  border-radius: var(--radius-sm); }

pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  overflow-x: auto; }
  pre code {
    padding: 0;
    background-color: transparent; }

/* Helper Classes */
.text-left {
  text-align: left !important; }

.text-center {
  text-align: center !important; }

.text-right {
  text-align: right !important; }

.d-none {
  display: none !important; }

.d-block {
  display: block !important; }

.d-flex {
  display: flex !important; }

.d-inline {
  display: inline !important; }

.d-inline-block {
  display: inline-block !important; }

.flex-row {
  flex-direction: row !important; }

.flex-column {
  flex-direction: column !important; }

.justify-content-start {
  justify-content: flex-start !important; }

.justify-content-center {
  justify-content: center !important; }

.justify-content-end {
  justify-content: flex-end !important; }

.justify-content-between {
  justify-content: space-between !important; }

.align-items-start {
  align-items: flex-start !important; }

.align-items-center {
  align-items: center !important; }

.align-items-end {
  align-items: flex-end !important; }

.m-0 {
  margin: 0 !important; }

.mt-0 {
  margin-top: 0 !important; }

.mb-0 {
  margin-bottom: 0 !important; }

.ml-0 {
  margin-left: 0 !important; }

.mr-0 {
  margin-right: 0 !important; }

.p-0 {
  padding: 0 !important; }

.pt-0 {
  padding-top: 0 !important; }

.pb-0 {
  padding-bottom: 0 !important; }

.pl-0 {
  padding-left: 0 !important; }

.pr-0 {
  padding-right: 0 !important; }

.visible {
  visibility: visible !important; }

.invisible {
  visibility: hidden !important; }

.position-relative {
  position: relative !important; }

.position-absolute {
  position: absolute !important; }

.position-fixed {
  position: fixed !important; }

.w-100 {
  width: 100% !important; }

.h-100 {
  height: 100% !important; }

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.text-break {
  word-break: break-word !important;
  word-wrap: break-word !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0; }

.clearfix::after {
  display: block;
  clear: both;
  content: ""; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: #1a1a1a;
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.15s; }
  .skip-link:focus {
    top: 0;
    outline: 2px solid #e20000;
    outline-offset: 2px; }

/* GitHub Light syntax theme — matches hugo.toml style = "github" */
/* Chroma wrapper */
.chroma {
  color: #24292e;
  background-color: #f6f8fa; }

/* Line numbers — user-select:none so they're not copied */
.chroma .ln,
.chroma .lnt {
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
  padding: 0 0.75em 0 0.5em;
  color: #959da5;
  border-right: 1px solid #dfe2e5;
  margin-right: 0.75em; }

/* Line table */
.chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0; }

.chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0; }

.chroma .line {
  display: block; }

.chroma .cl {
  display: inline; }

.chroma .lnlinks {
  outline: none;
  text-decoration: none;
  color: inherit; }

/* Highlighted line */
.chroma .hl {
  background-color: #fffbdd;
  display: block;
  width: 100%; }

/* Errors */
.chroma .err {
  color: #b31d28;
  background-color: #ffeef0; }

/* Keywords */
.chroma .k,
.chroma .kc,
.chroma .kd,
.chroma .kr {
  color: #d73a49;
  font-weight: 600; }

.chroma .kn {
  color: #d73a49;
  font-weight: 600; }

.chroma .kp {
  color: #d73a49; }

.chroma .kt {
  color: #d73a49; }

/* Names */
.chroma .n {
  color: #24292e; }

.chroma .na {
  color: #6f42c1; }

.chroma .nb {
  color: #005cc5; }

.chroma .nc {
  color: #6f42c1;
  font-weight: 600; }

.chroma .nd {
  color: #6f42c1; }

.chroma .ne {
  color: #6f42c1;
  font-weight: 600; }

.chroma .nf {
  color: #6f42c1; }

.chroma .nx {
  color: #6f42c1; }

.chroma .nn {
  color: #24292e; }

.chroma .nt {
  color: #22863a; }

.chroma .nv,
.chroma .vc,
.chroma .vg,
.chroma .vi {
  color: #e36209; }

/* Strings */
.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s2,
.chroma .se,
.chroma .sh,
.chroma .si,
.chroma .sx,
.chroma .sr,
.chroma .s1,
.chroma .ss {
  color: #032f62; }

.chroma .ld {
  color: #032f62; }

/* Numbers */
.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
  color: #005cc5; }

/* Operators */
.chroma .o {
  color: #d73a49; }

.chroma .ow {
  color: #d73a49;
  font-weight: 600; }

/* Comments */
.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs,
.chroma .cp,
.chroma .cpf {
  color: #6a737d;
  font-style: italic; }

/* Generic */
.chroma .gd {
  color: #b31d28;
  background-color: #ffeef0; }

.chroma .ge {
  font-style: italic; }

.chroma .gi {
  color: #22863a;
  background-color: #f0fff4; }

.chroma .gs {
  font-weight: bold; }

.chroma .gu {
  color: #6a737d;
  font-weight: bold; }

/* Punctuation */
.chroma .p {
  color: #24292e; }

.markdown {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  line-height: 1.75;
  color: #2d2d2d; }
  .markdown > :first-child {
    margin-top: 0; }
  .markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3; }
    .markdown h1 a, .markdown h2 a, .markdown h3 a, .markdown h4 a, .markdown h5 a, .markdown h6 a {
      color: inherit;
      text-decoration: none; }
  .markdown h1 {
    font-size: 2.25rem;
    margin: 0 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1a1a1a; }
  .markdown h2 {
    font-size: 1.625rem;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e5e7eb; }
  .markdown h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.5rem; }
  .markdown h4 {
    font-size: 1.0625rem;
    margin: 1.5rem 0 0.4rem; }
  .markdown h5 {
    font-size: 0.9375rem;
    margin: 1.25rem 0 0.4rem; }
  .markdown h6 {
    font-size: 0.875rem;
    margin: 1rem 0 0.4rem;
    color: #555; }
  .markdown p {
    margin: 0 0 1.25rem;
    font-size: 1.0625rem; }
  .markdown a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-bottom: none; }
    .markdown a:hover {
      color: #e20000; }
  .markdown ul, .markdown ol {
    padding-left: 1.75rem;
    margin: 0 0 1.25rem; }
    .markdown ul li, .markdown ol li {
      margin: 0.35rem 0;
      font-size: 1.0625rem; }
    .markdown ul ul, .markdown ul ol, .markdown ol ul, .markdown ol ol {
      margin: 0.35rem 0 0.35rem; }
  .markdown blockquote {
    border-left: 3px solid #e20000;
    margin: 1.75rem 0;
    padding: 0.75rem 1.25rem;
    background: #fafafa; }
    .markdown blockquote p {
      margin: 0;
      color: #555;
      font-style: italic; }
  .markdown hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0; }
  .markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0; }
  .markdown :not(pre) > code {
    background: #f3f4f6;
    color: #c7254e;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', Consolas, monospace; }
  .markdown pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.75rem 0; }
    .markdown pre code {
      background: none;
      color: #24292e;
      font-size: 0.875rem;
      line-height: 1.65;
      padding: 0;
      font-family: 'JetBrains Mono', Consolas, monospace; }
  .markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto; }
    .markdown table th {
      background: #f8f9fa;
      padding: 0.6rem 0.9rem;
      text-align: left;
      font-weight: 600;
      color: #1a1a1a;
      border-bottom: 2px solid #e5e7eb; }
    .markdown table td {
      padding: 0.6rem 0.9rem;
      border-bottom: 1px solid #e5e7eb;
      color: #444; }
    .markdown table tr:last-child td {
      border-bottom: none; }
  .markdown details {
    margin: 1.25rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden; }
    .markdown details summary {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.875rem 1.25rem;
      background: #f8f9fa;
      font-weight: 600;
      font-size: 1rem;
      color: #1a1a1a;
      cursor: pointer;
      user-select: none;
      list-style: none;
      border-bottom: 1px solid transparent;
      transition: background 0.15s; }
      .markdown details summary::-webkit-details-marker {
        display: none; }
      .markdown details summary::before {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 5px 0 5px 8px;
        border-color: transparent transparent transparent #1a1a1a;
        transition: transform 0.2s ease;
        flex-shrink: 0; }
      .markdown details summary:hover {
        background: #f0f0f0; }
    .markdown details[open] summary {
      border-bottom-color: #e5e7eb; }
      .markdown details[open] summary::before {
        transform: rotate(90deg); }
    .markdown details > *:not(summary) {
      padding: 1rem 1.25rem; }
    .markdown details ul, .markdown details ol {
      margin: 0;
      padding-left: 1.5rem; }
      .markdown details ul li, .markdown details ol li {
        margin: 0.3rem 0; }
    .markdown details p {
      margin: 0; }

@media (max-width: 768px) {
  .markdown {
    margin: 1.5rem auto;
    padding: 0 1.25rem; }
    .markdown h1 {
      font-size: 1.75rem; }
    .markdown h2 {
      font-size: 1.375rem; }
    .markdown h3 {
      font-size: 1.125rem; } }

/* Navigation Styles */
.main-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex; }

.main-nav li {
  margin-left: 2rem; }

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease; }
  .main-nav a:hover {
    color: var(--primary-color); }

@media (max-width: 1024px) {
  .main-nav {
    display: none; }
    .main-nav.active {
      display: block;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: var(--background-color);
      border-top: 2px solid var(--primary-color);
      padding: 1rem;
      z-index: 1000; }
      .main-nav.active ul {
        flex-direction: column; }
      .main-nav.active li {
        margin: 1rem 0; } }

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  z-index: 1002;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1); }
  .sidebar-menu.active {
    left: 0; }
  .sidebar-menu .sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb; }
    .sidebar-menu .sidebar-header .sidebar-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #1e293b;
      margin: 0; }
  .sidebar-menu .sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0; }
    .sidebar-menu .sidebar-nav .sidebar-nav-item {
      border-bottom: 1px solid #f1f5f9; }
      .sidebar-menu .sidebar-nav .sidebar-nav-item:last-child {
        border-bottom: none; }
    .sidebar-menu .sidebar-nav .sidebar-nav-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem 1.5rem;
      color: #555;
      text-decoration: none;
      transition: all 0.2s ease;
      font-weight: 500; }
      .sidebar-menu .sidebar-nav .sidebar-nav-link:hover {
        background: #f5f5f5;
        color: #1a1a1a;
        text-decoration: none; }
      .sidebar-menu .sidebar-nav .sidebar-nav-link.active {
        background: #f0f0f0;
        color: #1a1a1a;
        font-weight: 700;
        border-right: 3px solid #e20000; }
      .sidebar-menu .sidebar-nav .sidebar-nav-link i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center; }
      .sidebar-menu .sidebar-nav .sidebar-nav-link span {
        flex: 1; }
    .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem 1.5rem;
      color: #374151;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      background: #f9fafb; }
      .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-header:hover {
        background: #f3f4f6; }
      .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-header i:not(.sidebar-nav-toggle) {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        color: #1a1a1a; }
      .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-header .sidebar-nav-toggle {
        margin-left: auto;
        transition: transform 0.2s ease;
        color: #6b7280; }
      .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-header.active .sidebar-nav-toggle {
        transform: rotate(180deg); }
    .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu {
      list-style: none;
      padding: 0;
      margin: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      background: #fefefe; }
      .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu.active {
        max-height: 2000px; }
      .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-subitem {
        border-bottom: 1px solid #f1f5f9; }
        .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-subitem:last-child {
          border-bottom: none; }
      .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 1rem 0.75rem 3rem;
        color: #555;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 0.9rem;
        border-left: 3px solid transparent; }
        .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink:hover {
          background: #f5f5f5;
          color: #1a1a1a;
          text-decoration: none;
          border-left-color: #ccc; }
        .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink.active {
          background: #f0f0f0;
          color: #1a1a1a;
          border-left-color: #e20000; }
        .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink .day-number {
          font-size: 0.75rem;
          font-weight: 700;
          color: #888;
          text-transform: uppercase;
          letter-spacing: 0.05em; }
        .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink .algorithm-title {
          font-weight: 500;
          line-height: 1.3; }
        .sidebar-menu .sidebar-nav .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink.active .day-number {
          color: #555; }

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease; }
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible; }

body.sidebar-open {
  overflow: hidden; }

@media (min-width: 1024px) {
  .sidebar-menu {
    position: sticky;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: none;
    border-right: 1px solid #e5e7eb; }
  .sidebar-overlay {
    display: none; }
  .mobile-sidebar-bar {
    display: none; }
  body.sidebar-open {
    overflow: visible; }
  .page-with-sidebar {
    display: flex;
    align-items: flex-start; }
    .page-with-sidebar .main-content {
      flex: 1;
      min-width: 0; } }

@media (max-width: 480px) {
  .sidebar-menu {
    width: 85%;
    left: -85%; }
    .sidebar-menu.active {
      left: 0; } }

@media (min-width: 768px) and (max-width: 1023px) {
  .sidebar-menu {
    width: 70%;
    left: -70%; }
    .sidebar-menu.active {
      left: 0; } }

.mobile-sidebar-bar {
  display: flex;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff; }
  .mobile-sidebar-bar .sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: background 0.15s; }
    .mobile-sidebar-bar .sidebar-toggle:hover {
      background: #f3f4f6; }

.content {
  padding: 2rem 3rem;
  background: #fff;
  min-height: calc(100vh - var(--header-height)); }
  .content h1.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; }
  .content .content-section {
    margin-bottom: 3rem; }
    .content .content-section h2 {
      font-size: 1.75rem;
      font-weight: 600;
      color: #1f2937;
      margin: 2rem 0 1rem; }
    .content .content-section h3 {
      font-size: 1.5rem;
      font-weight: 600;
      color: #374151;
      margin: 1.5rem 0 1rem; }
    .content .content-section h4 {
      font-size: 1.25rem;
      font-weight: 600;
      color: #4b5563;
      margin: 1.25rem 0 0.75rem; }
    .content .content-section p {
      font-size: 1rem;
      line-height: 1.7;
      color: #4b5563;
      margin: 1rem 0; }
  .content ul, .content ol {
    padding-left: 1.5rem;
    margin: 1rem 0; }
    .content ul li, .content ol li {
      margin: 0.5rem 0;
      color: #4b5563;
      line-height: 1.6; }
  .content pre {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto; }
    .content pre code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.875rem;
      line-height: 1.7;
      color: #1f2937; }
  .content code {
    background: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    color: #dc2626; }
  .content a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease; }
    .content a:hover {
      color: #4338ca;
      text-decoration: underline; }
  .content blockquote {
    border-left: 4px solid #4f46e5;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 0 8px 8px 0; }
    .content blockquote p {
      margin: 0;
      color: #4b5563;
      font-style: italic; }
  .content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden; }
    .content table th {
      background: #f8fafc;
      padding: 0.75rem 1rem;
      text-align: left;
      font-weight: 600;
      color: #1f2937;
      border-bottom: 1px solid #e5e7eb; }
    .content table td {
      padding: 0.75rem 1rem;
      border-bottom: 1px solid #e5e7eb;
      color: #4b5563; }
    .content table tr:last-child td {
      border-bottom: none; }
    .content table tr:nth-child(even) {
      background: #f9fafb; }
  .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0; }
  .content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0; }

@media (max-width: 1024px) {
  .content {
    padding: 2rem; } }

@media (max-width: 768px) {
  .content {
    padding: 1.5rem; }
    .content h1.page-title {
      font-size: 1.875rem; }
    .content .content-section h2 {
      font-size: 1.5rem; }
    .content .content-section h3 {
      font-size: 1.25rem; }
    .content .content-section h4 {
      font-size: 1.125rem; } }

.book-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color); }
  .book-navigation a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    transition: all 0.2s ease; }
    .book-navigation a:hover {
      background: var(--secondary-color); }
    .book-navigation a.prev::before {
      content: '←';
      margin-right: var(--spacing-sm); }
    .book-navigation a.next::after {
      content: '→';
      margin-left: var(--spacing-sm); }

@media (max-width: 768px) {
  .book-navigation {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch; }
    .book-navigation a {
      text-align: center;
      justify-content: center; } }

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0;
  margin-top: auto; }
  footer .footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem; }
    @media (max-width: 768px) {
      footer .footer-content {
        flex-direction: column;
        text-align: center; } }
  footer .footer-links {
    display: flex;
    gap: 1.5rem; }
    footer .footer-links a {
      color: var(--footer-link);
      text-decoration: none;
      transition: color 0.3s ease; }
      footer .footer-links a:hover {
        color: var(--footer-link-hover); }
    @media (max-width: 768px) {
      footer .footer-links {
        flex-direction: column;
        gap: 0.75rem; } }
  footer .footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8; }

/* Grid Layout */
/* Columns Layout */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0; }

.column {
  flex: 1;
  min-width: 250px; }

/* Column variations */
.columns.is-centered {
  justify-content: center; }

.columns.is-vcentered {
  align-items: center; }

.column.is-narrow {
  flex: 0 1 auto; }

.column.is-full {
  flex: 0 0 100%; }

.column.is-half {
  flex: 0 0 calc(50% - 1rem); }

.column.is-one-third {
  flex: 0 0 calc(33.3333% - 1.33rem); }

.column.is-two-thirds {
  flex: 0 0 calc(66.6666% - 0.67rem); }

@media screen and (max-width: 768px) {
  .container {
    display: block;
    padding: 1rem; }
  .columns {
    flex-direction: column; }
  .column {
    width: 100% !important;
    flex: none !important; } }

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent; }
  .btn--primary {
    background-color: var(--primary-color);
    color: white; }
    .btn--primary:hover {
      background-color: var(--primary-color-dark); }
  .btn--secondary {
    background-color: var(--secondary-color);
    color: white; }
    .btn--secondary:hover {
      background-color: var(--secondary-color-dark); }
  .btn--outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color); }
    .btn--outline:hover {
      background-color: var(--primary-color);
      color: white; }
  .btn--sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem; }
  .btn--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem; }
  .btn--block {
    width: 100%; }
  .btn:disabled, .btn--disabled {
    opacity: 0.65;
    pointer-events: none; }
  .btn i, .btn svg {
    margin-right: 0.5rem; }

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color); }
  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color); }

.btn-danger {
  background-color: #ef4444;
  color: white; }
  .btn-danger:hover {
    background-color: #eb1515; }

.btn-block {
  display: block;
  width: 100%;
  margin: 1rem 0;
  text-align: center; }

/* Card Styles */
.card {
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }

.card-header {
  margin-bottom: 1rem; }
  .card-header h2, .card-header h3, .card-header h4 {
    margin: 0;
    color: var(--primary-color); }

.card-content {
  color: var(--text-color);
  line-height: 1.6; }

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem; }

/* Card variations */
.card-compact {
  padding: 1rem; }

.card-bordered {
  border: 1px solid var(--border-color);
  box-shadow: none; }

.card-primary {
  border-left: 4px solid var(--primary-color); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; }

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem; }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500; }

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--secondary-color);
  transition: border-color 0.2s ease; }
  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05); }
  .form-control::placeholder {
    color: #a0aec0; }
  .form-control:disabled {
    background-color: #f7fafc;
    cursor: not-allowed; }

.form-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #718096; }

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem; }

/* Form Layout */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem; }
  @media (max-width: 640px) {
    .form-row {
      flex-direction: column;
      gap: 0; } }
.form-col {
  flex: 1; }

/* Form Validation */
.form-control.is-invalid {
  border-color: #ef4444; }

.form-control.is-valid {
  border-color: #22c55e; }

/* Custom Form Elements */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem; }

.form-check-input {
  width: 1rem;
  height: 1rem; }

.form-check-label {
  font-size: 0.875rem;
  color: var(--text-color); }

.features {
  padding: 4rem 0;
  background-color: var(--bg-secondary); }
  .features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: var(--container-width);
    padding: 0 1rem; }
  .features__item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; }
    .features__item:hover {
      transform: translateY(-5px); }
  .features__icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem; }
  .features__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary); }
  .features__description {
    color: var(--text-secondary);
    line-height: 1.6; }

.user-info {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-sm); }

.profile-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--text-dark);
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-weight: 500;
  transition: background-color 0.2s ease; }
  .profile-circle:hover {
    background-color: var(--text-light); }

.profile-initial {
  font-weight: 500;
  text-transform: uppercase; }

.profile-container {
  position: relative; }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
  min-width: 180px;
  display: none;
  padding: var(--spacing-sm) 0;
  border: 1px solid var(--border-color);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease; }
  .profile-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0); }

.dropdown-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-color);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5; }
  .dropdown-item:hover {
    background-color: var(--background-color);
    color: var(--text-dark); }

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: var(--spacing-xs) 0; }

.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 2.5rem 0 1rem;
  padding: 0;
  flex-wrap: wrap; }
  .pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer; }
    .pagination .page-item .page-link:hover {
      background: var(--bg-muted);
      border-color: var(--text-muted);
      color: var(--text-heading);
      text-decoration: none; }
  .pagination .page-item.active .page-link {
    background: #e20000;
    border-color: #e20000;
    color: #ffffff;
    font-weight: 700;
    cursor: default; }
    .pagination .page-item.active .page-link:hover {
      background: #c00000;
      border-color: #c00000; }
  .pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none; }

.blog-post {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem; }
  .blog-post .post-meta {
    margin-bottom: 0.5rem; }
    .blog-post .post-meta time {
      font-size: 0.875rem;
      color: #888;
      letter-spacing: 0.03em; }
  .blog-post .content {
    padding: 0;
    min-height: auto;
    background: transparent; }
    .blog-post .content > h1:first-child {
      font-size: 2.25rem;
      font-weight: 700;
      color: #1a1a1a;
      line-height: 1.2;
      margin: 0 0 2rem;
      padding-bottom: 1.25rem;
      border-bottom: 2px solid #1a1a1a; }
      .blog-post .content > h1:first-child a {
        color: inherit;
        text-decoration: none;
        border-bottom: none; }
    .blog-post .content h2, .blog-post .content h3, .blog-post .content h4, .blog-post .content h5, .blog-post .content h6 {
      color: #1a1a1a;
      font-weight: 700;
      margin: 2.25rem 0 0.75rem;
      line-height: 1.3; }
      .blog-post .content h2 a, .blog-post .content h3 a, .blog-post .content h4 a, .blog-post .content h5 a, .blog-post .content h6 a {
        color: inherit;
        text-decoration: none;
        border-bottom: none; }
    .blog-post .content h2 {
      font-size: 1.625rem;
      border-bottom: 1px solid #e5e7eb;
      padding-bottom: 0.4rem; }
    .blog-post .content h3 {
      font-size: 1.375rem; }
    .blog-post .content h4 {
      font-size: 1.125rem; }
    .blog-post .content p {
      font-size: 1.0625rem;
      line-height: 1.8;
      color: #2d2d2d;
      margin: 0 0 1.25rem; }
    .blog-post .content a {
      color: #1a1a1a;
      text-decoration: underline;
      text-underline-offset: 2px;
      border-bottom: none; }
      .blog-post .content a:hover {
        color: #e20000; }
    .blog-post .content .highlight {
      margin: 1.75rem 0;
      border-radius: 6px;
      border: 1px solid #e1e4e8;
      overflow: hidden; }
      .blog-post .content .highlight pre {
        background: #f6f8fa;
        border: none;
        border-radius: 0;
        padding: 2.75rem 0 1.25rem;
        margin: 0;
        overflow-x: auto; }
      .blog-post .content .highlight .chroma {
        background: #f6f8fa;
        padding: 0; }
      .blog-post .content .highlight code {
        background: none;
        color: #24292e;
        font-size: 0.875rem;
        line-height: 1.65;
        padding: 0;
        border-radius: 0;
        font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
        display: block;
        padding-right: 1.5rem; }
    .blog-post .content :not(pre) > code {
      background: #f3f4f6;
      color: #c7254e;
      padding: 0.15em 0.4em;
      border-radius: 3px;
      font-size: 0.875em;
      font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; }
    .blog-post .content ul, .blog-post .content ol {
      padding-left: 1.5rem;
      margin: 0 0 1.25rem; }
      .blog-post .content ul li, .blog-post .content ol li {
        margin: 0.4rem 0;
        line-height: 1.75;
        color: #2d2d2d; }
    .blog-post .content blockquote {
      border-left: 3px solid #e20000;
      margin: 1.75rem 0;
      padding: 0.75rem 1.25rem;
      background: #fafafa; }
      .blog-post .content blockquote p {
        margin: 0;
        color: #555;
        font-style: italic; }
    .blog-post .content img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin: 1.5rem 0; }
    .blog-post .content hr {
      border: 0;
      border-top: 1px solid #e5e7eb;
      margin: 2.5rem 0; }
    .blog-post .content table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5rem 0;
      font-size: 0.9rem; }
      .blog-post .content table th {
        background: #f8f9fa;
        padding: 0.6rem 0.9rem;
        text-align: left;
        font-weight: 600;
        color: #1a1a1a;
        border-bottom: 2px solid #e5e7eb; }
      .blog-post .content table td {
        padding: 0.6rem 0.9rem;
        border-bottom: 1px solid #e5e7eb;
        color: #444; }
  .blog-post .tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb; }
    .blog-post .tags h3 {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #888;
      margin: 0 0 0.75rem; }
    .blog-post .tags ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem; }
    .blog-post .tags li a {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      background: #f3f4f6;
      color: #1a1a1a;
      font-size: 0.8rem;
      font-weight: 600;
      text-decoration: none;
      border-radius: 2px;
      transition: background 0.2s; }
      .blog-post .tags li a:hover {
        background: #1a1a1a;
        color: #fff; }

.blog-post .content .highlight .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: #fff;
  color: #586069;
  border: 1px solid #d1d5da;
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
  line-height: 1.5; }
  .blog-post .content .highlight .copy-btn:hover {
    background: #f3f4f6;
    color: #24292e;
    border-color: #b0b7be; }
  .blog-post .content .highlight .copy-btn.copied {
    background: #f0fff4;
    color: #22863a;
    border-color: #bef5cb; }

@media (max-width: 768px) {
  .blog-post {
    margin: 2rem auto;
    padding: 0 1.25rem; }
    .blog-post .content > h1:first-child {
      font-size: 1.75rem; }
    .blog-post .content h2 {
      font-size: 1.375rem; }
    .blog-post .content h3 {
      font-size: 1.2rem; }
    .blog-post .content .highlight pre {
      padding: 1rem; } }

.blog-index {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 2rem; }

.blog-index-header {
  margin-bottom: 2rem; }
  .blog-index-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem; }

.blog-index-desc {
  font-size: 1rem;
  color: #666;
  margin: 0; }

.tag-breadcrumb {
  font-size: 0.875rem;
  color: #888;
  margin: 0 0 0.4rem; }
  .tag-breadcrumb a {
    color: #888;
    text-decoration: underline; }
    .tag-breadcrumb a:hover {
      color: #1a1a1a; }

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb; }

.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 2rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s; }
  .tag-pill:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a; }
  .tag-pill--active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a; }
  .tag-pill--sm {
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0; }

.blog-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid #e5e7eb; }
  .blog-card:first-child {
    padding-top: 0; }
  .blog-card:last-child {
    border-bottom: none; }

.blog-card-meta {
  margin-bottom: 0.5rem; }
  .blog-card-meta time {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.03em; }

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  line-height: 1.3; }
  .blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s; }
    .blog-card-title a:hover {
      border-bottom-color: #e20000;
      color: #1a1a1a; }

.blog-card-desc {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 1rem; }

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; }

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem; }

.blog-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  flex-shrink: 0; }
  .blog-card-link:hover {
    color: #e20000; }

.read-next {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb; }

.read-next-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0 0 0.75rem; }

.read-next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s; }
  .read-next-card:hover {
    background: #1a1a1a; }
    .read-next-card:hover .read-next-title {
      color: #fff; }
    .read-next-card:hover .read-next-arrow {
      color: #fff; }

.read-next-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  transition: color 0.15s; }

.read-next-arrow {
  font-size: 1.25rem;
  color: #1a1a1a;
  flex-shrink: 0;
  transition: color 0.15s; }

@media (max-width: 640px) {
  .blog-index {
    padding: 0 1.25rem; }
  .blog-card-footer {
    flex-direction: column;
    align-items: flex-start; } }

:root {
  --bg-page:        #ffffff;
  --bg-surface:     #ffffff;
  --bg-muted:       #f8f9fa;
  --bg-input:       #ffffff;
  --bg-overlay:     rgba(255, 255, 255, 0.9);
  --border:         #e5e7eb;
  --border-input:   #e2e8f0;
  --text-heading:   #1a1a1a;
  --text-body:      #2d2d2d;
  --text-secondary: #4b5563;
  --text-muted:     #888888;
  --shadow-card:    0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-modal:   0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); }

[data-theme="dark"] {
  --bg-page:        #0d1117;
  --bg-surface:     #161b22;
  --bg-muted:       #21262d;
  --bg-input:       #21262d;
  --bg-overlay:     rgba(13, 17, 23, 0.9);
  --border:         #30363d;
  --border-input:   #30363d;
  --text-heading:   #e6edf3;
  --text-body:      #c9d1d9;
  --text-secondary: #8b949e;
  --text-muted:     #6e7681;
  --shadow-card:    0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-modal:   0 4px 6px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --text-dark:        #e6edf3;
  --text-color:       #c9d1d9;
  --text-light:       #8b949e;
  --background-color: #161b22;
  --card-bg:          #161b22;
  --border-color:     #30363d;
  --primary-color:    #58a6ff;
  --secondary-color:  #0d1117;
  --primary-color: #e6edf3;
  --background-color: #0d1117;
  --card-bg: #161b22;
  --border-color: #30363d;
  --text-color: #e6edf3;
  --text-light: #8b949e; }
  [data-theme="dark"] body {
    background: #0d1117;
    color: #e6edf3; }
  [data-theme="dark"] .site-header {
    background-color: #161b22 !important;
    border-bottom-color: #30363d !important; }
  [data-theme="dark"] .logo a {
    color: #e6edf3 !important; }
  [data-theme="dark"] .main-nav a {
    color: #e6edf3 !important; }
  [data-theme="dark"] .profile-nav-btn {
    color: #e6edf3 !important; }
  [data-theme="dark"] .profile-avatar {
    background: #30363d !important; }
  [data-theme="dark"] .profile-dropdown {
    background: #161b22 !important;
    border: 1px solid #30363d; }
    [data-theme="dark"] .profile-dropdown .dropdown-item {
      color: #e6edf3 !important; }
      [data-theme="dark"] .profile-dropdown .dropdown-item:hover {
        background: #21262d !important; }
    [data-theme="dark"] .profile-dropdown .dropdown-divider {
      background: #30363d !important; }
  [data-theme="dark"] .mobile-menu {
    background: #161b22 !important; }
    [data-theme="dark"] .mobile-menu a {
      color: #e6edf3 !important;
      border-bottom-color: #30363d !important; }
  [data-theme="dark"] .menu-toggle span {
    background: #e6edf3 !important; }
  [data-theme="dark"] .sidebar-menu {
    background: #161b22;
    border-right-color: #30363d; }
    [data-theme="dark"] .sidebar-menu .sidebar-header {
      border-bottom-color: #21262d; }
      [data-theme="dark"] .sidebar-menu .sidebar-header .sidebar-title {
        color: #e6edf3; }
    [data-theme="dark"] .sidebar-menu .sidebar-nav-item {
      border-bottom-color: #21262d; }
    [data-theme="dark"] .sidebar-menu .sidebar-nav-link {
      color: #8b949e; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-link:hover {
        background: #21262d;
        color: #e6edf3; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-link.active {
        background: #21262d;
        color: #e6edf3;
        border-right-color: #e20000; }
    [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-header {
      background: #0d1117;
      color: #8b949e; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-header:hover {
        background: #21262d; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-header i:not(.sidebar-nav-toggle) {
        color: #e6edf3; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-header .sidebar-nav-toggle {
        color: #6e7681; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-header.active {
        color: #e6edf3; }
    [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-submenu {
      background: #161b22; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-subitem {
        border-bottom-color: #21262d; }
      [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink {
        color: #8b949e; }
        [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink:hover {
          background: #21262d;
          color: #e6edf3;
          border-left-color: #6e7681; }
        [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink.active {
          background: #21262d;
          color: #e6edf3;
          border-left-color: #e20000; }
        [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink .day-number {
          color: #6e7681; }
        [data-theme="dark"] .sidebar-menu .sidebar-nav-section .sidebar-nav-submenu .sidebar-nav-sublink.active .day-number {
          color: #8b949e; }
  [data-theme="dark"] .mobile-sidebar-bar {
    background: #161b22;
    border-bottom-color: #30363d; }
    [data-theme="dark"] .mobile-sidebar-bar .sidebar-toggle {
      color: #e6edf3;
      border-color: #30363d; }
      [data-theme="dark"] .mobile-sidebar-bar .sidebar-toggle:hover {
        background: #21262d; }
  [data-theme="dark"] .markdown {
    color: #c9d1d9; }
    [data-theme="dark"] .markdown h1, [data-theme="dark"] .markdown h2, [data-theme="dark"] .markdown h3, [data-theme="dark"] .markdown h4, [data-theme="dark"] .markdown h5, [data-theme="dark"] .markdown h6 {
      color: #e6edf3; }
      [data-theme="dark"] .markdown h1 a, [data-theme="dark"] .markdown h2 a, [data-theme="dark"] .markdown h3 a, [data-theme="dark"] .markdown h4 a, [data-theme="dark"] .markdown h5 a, [data-theme="dark"] .markdown h6 a {
        color: inherit; }
    [data-theme="dark"] .markdown h1 {
      border-bottom-color: #30363d; }
    [data-theme="dark"] .markdown h2 {
      border-bottom-color: #30363d; }
    [data-theme="dark"] .markdown p {
      color: #c9d1d9; }
    [data-theme="dark"] .markdown a {
      color: #58a6ff; }
      [data-theme="dark"] .markdown a:hover {
        color: #e20000; }
    [data-theme="dark"] .markdown ul li, [data-theme="dark"] .markdown ol li {
      color: #c9d1d9; }
    [data-theme="dark"] .markdown blockquote {
      background: #161b22; }
      [data-theme="dark"] .markdown blockquote p {
        color: #8b949e; }
    [data-theme="dark"] .markdown hr {
      border-top-color: #30363d; }
    [data-theme="dark"] .markdown :not(pre) > code {
      background: #21262d;
      color: #f0883e; }
    [data-theme="dark"] .markdown pre {
      background: #161b22;
      border-color: #30363d; }
      [data-theme="dark"] .markdown pre code {
        color: #e6edf3; }
    [data-theme="dark"] .markdown details {
      border-color: #30363d; }
      [data-theme="dark"] .markdown details summary {
        background: #161b22;
        color: #e6edf3;
        border-bottom-color: #30363d; }
        [data-theme="dark"] .markdown details summary::before {
          border-color: transparent transparent transparent #e6edf3; }
        [data-theme="dark"] .markdown details summary:hover {
          background: #21262d; }
    [data-theme="dark"] .markdown table th {
      background: #21262d;
      color: #e6edf3;
      border-bottom-color: #30363d; }
    [data-theme="dark"] .markdown table td {
      color: #c9d1d9;
      border-bottom-color: #30363d; }
  [data-theme="dark"] .blog-post .post-meta time {
    color: #6e7681; }
  [data-theme="dark"] .blog-post .content > h1:first-child {
    color: #e6edf3;
    border-bottom-color: #30363d; }
    [data-theme="dark"] .blog-post .content > h1:first-child a {
      color: inherit; }
  [data-theme="dark"] .blog-post .content h2, [data-theme="dark"] .blog-post .content h3, [data-theme="dark"] .blog-post .content h4, [data-theme="dark"] .blog-post .content h5, [data-theme="dark"] .blog-post .content h6 {
    color: #e6edf3; }
    [data-theme="dark"] .blog-post .content h2 a, [data-theme="dark"] .blog-post .content h3 a, [data-theme="dark"] .blog-post .content h4 a, [data-theme="dark"] .blog-post .content h5 a, [data-theme="dark"] .blog-post .content h6 a {
      color: inherit; }
  [data-theme="dark"] .blog-post .content h2 {
    border-bottom-color: #30363d; }
  [data-theme="dark"] .blog-post .content p {
    color: #c9d1d9; }
  [data-theme="dark"] .blog-post .content a {
    color: #58a6ff; }
    [data-theme="dark"] .blog-post .content a:hover {
      color: #e20000; }
  [data-theme="dark"] .blog-post .content ul li, [data-theme="dark"] .blog-post .content ol li {
    color: #c9d1d9; }
  [data-theme="dark"] .blog-post .content blockquote {
    background: #161b22; }
    [data-theme="dark"] .blog-post .content blockquote p {
      color: #8b949e; }
  [data-theme="dark"] .blog-post .content hr {
    border-top-color: #30363d; }
  [data-theme="dark"] .blog-post .content :not(pre) > code {
    background: #21262d;
    color: #f0883e; }
  [data-theme="dark"] .blog-post .content .highlight {
    border-color: #30363d; }
    [data-theme="dark"] .blog-post .content .highlight pre {
      background: #161b22; }
    [data-theme="dark"] .blog-post .content .highlight .chroma {
      background: #161b22;
      color: #e6edf3; }
    [data-theme="dark"] .blog-post .content .highlight code {
      color: #e6edf3; }
  [data-theme="dark"] .blog-post .content table th {
    background: #21262d;
    color: #e6edf3;
    border-bottom-color: #30363d; }
  [data-theme="dark"] .blog-post .content table td {
    color: #c9d1d9;
    border-bottom-color: #30363d; }
  [data-theme="dark"] .blog-post .tags {
    border-top-color: #30363d; }
    [data-theme="dark"] .blog-post .tags h3 {
      color: #6e7681; }
    [data-theme="dark"] .blog-post .tags li a {
      background: #21262d;
      color: #c9d1d9; }
      [data-theme="dark"] .blog-post .tags li a:hover {
        background: #e6edf3;
        color: #0d1117; }
  [data-theme="dark"] .blog-post .content .highlight .copy-btn {
    background: #21262d;
    color: #8b949e;
    border-color: #30363d; }
    [data-theme="dark"] .blog-post .content .highlight .copy-btn:hover {
      background: #30363d;
      color: #e6edf3; }
    [data-theme="dark"] .blog-post .content .highlight .copy-btn.copied {
      background: #1a3a1a;
      color: #3fb950;
      border-color: #3fb950; }
  [data-theme="dark"] .blog-index-header h1 {
    color: #e6edf3; }
  [data-theme="dark"] .blog-index-desc {
    color: #8b949e; }
  [data-theme="dark"] .tag-breadcrumb {
    color: #6e7681; }
    [data-theme="dark"] .tag-breadcrumb a {
      color: #6e7681; }
      [data-theme="dark"] .tag-breadcrumb a:hover {
        color: #e6edf3; }
  [data-theme="dark"] .tag-filter {
    border-bottom-color: #30363d; }
  [data-theme="dark"] .tag-pill {
    background: #21262d;
    color: #c9d1d9;
    border-color: #30363d; }
    [data-theme="dark"] .tag-pill:hover {
      background: #e6edf3;
      color: #0d1117;
      border-color: #e6edf3; }
    [data-theme="dark"] .tag-pill--active {
      background: #e6edf3;
      color: #0d1117;
      border-color: #e6edf3; }
  [data-theme="dark"] .blog-card {
    border-bottom-color: #30363d; }
    [data-theme="dark"] .blog-card .blog-card-meta time {
      color: #6e7681; }
  [data-theme="dark"] .blog-card-title a {
    color: #e6edf3; }
    [data-theme="dark"] .blog-card-title a:hover {
      border-bottom-color: #e20000; }
  [data-theme="dark"] .blog-card-desc {
    color: #8b949e; }
  [data-theme="dark"] .blog-card-link {
    color: #c9d1d9; }
    [data-theme="dark"] .blog-card-link:hover {
      color: #e20000; }
  [data-theme="dark"] .read-next {
    border-top-color: #30363d; }
  [data-theme="dark"] .read-next-label {
    color: #6e7681; }
  [data-theme="dark"] .read-next-card {
    border-color: #e6edf3; }
    [data-theme="dark"] .read-next-card:hover {
      background: #e6edf3; }
      [data-theme="dark"] .read-next-card:hover .read-next-title, [data-theme="dark"] .read-next-card:hover .read-next-arrow {
        color: #0d1117; }
  [data-theme="dark"] .read-next-title, [data-theme="dark"] .read-next-arrow {
    color: #e6edf3; }
  [data-theme="dark"] .chroma {
    background-color: #161b22 !important;
    color: #e6edf3; }
    [data-theme="dark"] .chroma .k, [data-theme="dark"] .chroma .kd, [data-theme="dark"] .chroma .kn, [data-theme="dark"] .chroma .kp, [data-theme="dark"] .chroma .kr, [data-theme="dark"] .chroma .kt {
      color: #ff7b72;
      font-weight: 600; }
    [data-theme="dark"] .chroma .nf, [data-theme="dark"] .chroma .nb {
      color: #d2a8ff; }
    [data-theme="dark"] .chroma .s, [data-theme="dark"] .chroma .s1, [data-theme="dark"] .chroma .s2, [data-theme="dark"] .chroma .sb, [data-theme="dark"] .chroma .sc, [data-theme="dark"] .chroma .sd {
      color: #a5d6ff; }
    [data-theme="dark"] .chroma .c, [data-theme="dark"] .chroma .c1, [data-theme="dark"] .chroma .cm, [data-theme="dark"] .chroma .cs {
      color: #8b949e;
      font-style: italic; }
    [data-theme="dark"] .chroma .mi, [data-theme="dark"] .chroma .m, [data-theme="dark"] .chroma .mf, [data-theme="dark"] .chroma .mh, [data-theme="dark"] .chroma .mo {
      color: #79c0ff; }
    [data-theme="dark"] .chroma .o, [data-theme="dark"] .chroma .ow {
      color: #ff7b72; }
    [data-theme="dark"] .chroma .n, [data-theme="dark"] .chroma .na, [data-theme="dark"] .chroma .nc, [data-theme="dark"] .chroma .nd, [data-theme="dark"] .chroma .ni, [data-theme="dark"] .chroma .nl, [data-theme="dark"] .chroma .nn, [data-theme="dark"] .chroma .nt, [data-theme="dark"] .chroma .nv, [data-theme="dark"] .chroma .vc, [data-theme="dark"] .chroma .vg, [data-theme="dark"] .chroma .vi {
      color: #e6edf3; }
    [data-theme="dark"] .chroma .ln, [data-theme="dark"] .chroma .lnt {
      color: #6e7681;
      border-right-color: #30363d;
      user-select: none;
      -webkit-user-select: none; }
  [data-theme="dark"] .btn--primary {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
    border: none !important; }
    [data-theme="dark"] .btn--primary:hover {
      background-color: #c00000 !important;
      border-bottom-color: transparent !important; }
  [data-theme="dark"] .cta {
    background-color: #161b22 !important;
    color: #e6edf3; }
    [data-theme="dark"] .cta h2 {
      color: #e6edf3 !important; }
    [data-theme="dark"] .cta p {
      color: #8b949e !important; }
    [data-theme="dark"] .cta .btn--secondary {
      background-color: transparent;
      color: #e6edf3;
      border-color: #e6edf3; }
      [data-theme="dark"] .cta .btn--secondary:hover {
        background-color: #e6edf3;
        color: #0d1117; }
  [data-theme="dark"] .profile-title p {
    color: var(--text-secondary); }
  [data-theme="dark"] .profile-section h2, [data-theme="dark"] h2 {
    color: var(--text-heading); }
  [data-theme="dark"] .form-group label {
    color: var(--text-secondary); }
  [data-theme="dark"] .form-control {
    background: var(--bg-input);
    border-color: var(--border-input);
    color: var(--text-body); }
  [data-theme="dark"] .verification-status {
    background: var(--bg-muted); }
  [data-theme="dark"] #verification-text {
    color: var(--text-secondary); }
  [data-theme="dark"] .loading-overlay {
    background-color: var(--bg-overlay); }
  [data-theme="dark"] .loading-spinner {
    border-color: var(--border);
    border-top-color: var(--text-heading); }
  [data-theme="dark"] .btn-primary {
    background: #e6edf3;
    color: #0d1117; }
    [data-theme="dark"] .btn-primary:hover {
      background: #c9d1d9; }
  [data-theme="dark"] .btn-secondary {
    background: var(--bg-muted);
    color: var(--text-secondary); }
    [data-theme="dark"] .btn-secondary:hover {
      background: var(--border); }
  [data-theme="dark"] .dashboard-header h1 {
    color: var(--text-heading); }
  [data-theme="dark"] .stat-card h3 {
    color: var(--text-muted); }
  [data-theme="dark"] .stat-value {
    color: var(--text-heading); }
  [data-theme="dark"] .progress-bar {
    background-color: var(--border); }
  [data-theme="dark"] .activity-item {
    border-bottom-color: var(--border);
    color: var(--text-body); }
  [data-theme="dark"] .activity-date {
    color: var(--text-muted); }
  [data-theme="dark"] .activity-description {
    color: var(--text-body); }
  [data-theme="dark"] .challenges-list h2, [data-theme="dark"] .recent-activity h2, [data-theme="dark"] .social-share-section h2 {
    color: var(--text-heading); }
  [data-theme="dark"] .challenge-item {
    background: var(--bg-muted); }
  [data-theme="dark"] .challenge-item:hover {
    background: var(--border); }
  [data-theme="dark"] .challenge-item.completed {
    background: #1a3a2a; }
  [data-theme="dark"] .challenge-item.completed .challenge-label {
    color: var(--text-muted); }
  [data-theme="dark"] .challenge-label {
    color: var(--text-body); }
  [data-theme="dark"] .loader-container p {
    color: var(--text-muted); }
  [data-theme="dark"] .loader {
    border-color: var(--border);
    border-top-color: var(--text-heading); }
  [data-theme="dark"] .toast {
    background: var(--bg-surface); }
  [data-theme="dark"] .modal-content {
    background: var(--bg-surface); }
  [data-theme="dark"] .login-container,
  [data-theme="dark"] .signup-container {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important; }
    [data-theme="dark"] .login-container h1,
    [data-theme="dark"] .signup-container h1 {
      color: #e6edf3 !important; }
    [data-theme="dark"] .login-container label,
    [data-theme="dark"] .signup-container label {
      color: #c9d1d9 !important; }
    [data-theme="dark"] .login-container input[type="email"],
    [data-theme="dark"] .login-container input[type="password"],
    [data-theme="dark"] .login-container input[type="text"],
    [data-theme="dark"] .signup-container input[type="email"],
    [data-theme="dark"] .signup-container input[type="password"],
    [data-theme="dark"] .signup-container input[type="text"] {
      background: #21262d !important;
      border-color: #30363d !important;
      color: #e6edf3 !important; }
      [data-theme="dark"] .login-container input[type="email"]::placeholder,
      [data-theme="dark"] .login-container input[type="password"]::placeholder,
      [data-theme="dark"] .login-container input[type="text"]::placeholder,
      [data-theme="dark"] .signup-container input[type="email"]::placeholder,
      [data-theme="dark"] .signup-container input[type="password"]::placeholder,
      [data-theme="dark"] .signup-container input[type="text"]::placeholder {
        color: #6e7681 !important; }
      [data-theme="dark"] .login-container input[type="email"]:focus,
      [data-theme="dark"] .login-container input[type="password"]:focus,
      [data-theme="dark"] .login-container input[type="text"]:focus,
      [data-theme="dark"] .signup-container input[type="email"]:focus,
      [data-theme="dark"] .signup-container input[type="password"]:focus,
      [data-theme="dark"] .signup-container input[type="text"]:focus {
        border-color: #e20000 !important;
        box-shadow: 0 0 0 3px rgba(226, 0, 0, 0.15) !important; }
    [data-theme="dark"] .login-container input.error,
    [data-theme="dark"] .signup-container input.error {
      background-color: #2d1b1b !important;
      border-color: #ef4444 !important; }
    [data-theme="dark"] .login-container .btn--primary,
    [data-theme="dark"] .signup-container .btn--primary {
      background: #e20000 !important;
      color: #fff !important; }
    [data-theme="dark"] .login-container .btn--primary:hover,
    [data-theme="dark"] .signup-container .btn--primary:hover {
      background: #c00000 !important; }
    [data-theme="dark"] .login-container #google-sign-in,
    [data-theme="dark"] .signup-container #google-sign-in {
      background: #21262d !important;
      color: #c9d1d9 !important;
      border-color: #30363d !important; }
      [data-theme="dark"] .login-container #google-sign-in:hover,
      [data-theme="dark"] .signup-container #google-sign-in:hover {
        background: #30363d !important; }
    [data-theme="dark"] .login-container .text-button,
    [data-theme="dark"] .signup-container .text-button {
      color: #58a6ff !important; }
      [data-theme="dark"] .login-container .text-button:hover,
      [data-theme="dark"] .signup-container .text-button:hover {
        color: #e20000 !important; }
    [data-theme="dark"] .login-container .auth-separator,
    [data-theme="dark"] .signup-container .auth-separator {
      color: #6e7681 !important; }
    [data-theme="dark"] .login-container .auth-links a,
    [data-theme="dark"] .signup-container .auth-links a {
      color: #58a6ff !important; }
    [data-theme="dark"] .login-container .message.error,
    [data-theme="dark"] .signup-container .message.error {
      background-color: #2d1b1b !important;
      border-color: #7f1d1d !important;
      color: #fca5a5 !important; }
    [data-theme="dark"] .login-container .message.success,
    [data-theme="dark"] .signup-container .message.success {
      background-color: #1a2d1a !important;
      border-color: #166534 !important;
      color: #86efac !important; }
    [data-theme="dark"] .login-container .verification-section,
    [data-theme="dark"] .signup-container .verification-section {
      background-color: #2d1b1b !important;
      border-color: #7f1d1d !important; }
      [data-theme="dark"] .login-container .verification-section p, [data-theme="dark"] .login-container .verification-section button,
      [data-theme="dark"] .signup-container .verification-section p,
      [data-theme="dark"] .signup-container .verification-section button {
        color: #fca5a5 !important; }
    [data-theme="dark"] .login-container .error-container,
    [data-theme="dark"] .signup-container .error-container {
      background-color: #2d1b1b !important;
      border-color: #7f1d1d !important;
      color: #fca5a5 !important; }
  [data-theme="dark"] .svg-small-grid {
    stroke: #30363d !important; }
  [data-theme="dark"] .svg-grid-line {
    stroke: #21262d !important; }
  [data-theme="dark"] .svg-grid-bg {
    stroke: #30363d !important; }
  [data-theme="dark"] .svg-network circle {
    fill: #8b949e !important; }
  [data-theme="dark"] .svg-network line {
    stroke: #8b949e !important; }
  [data-theme="dark"] .svg-sort-bg {
    fill: #21262d !important;
    stroke: #30363d !important; }
  [data-theme="dark"] .svg-sort-box {
    stroke: #30363d !important; }
  [data-theme="dark"] .svg-code-line {
    stroke: #8b949e !important; }
  [data-theme="dark"] .site-footer {
    background: #161b22 !important;
    border-top-color: #30363d !important; }
  [data-theme="dark"] .footer-title {
    color: #e6edf3 !important; }
  [data-theme="dark"] .footer-description {
    color: #8b949e !important; }
  [data-theme="dark"] .footer-heading {
    color: #e6edf3 !important; }
  [data-theme="dark"] .footer-heading::after {
    background: #e20000 !important; }
  [data-theme="dark"] .footer-list a, [data-theme="dark"] .footer-legal a {
    color: #8b949e !important; }
    [data-theme="dark"] .footer-list a:hover, [data-theme="dark"] .footer-legal a:hover {
      color: #e20000 !important; }
  [data-theme="dark"] .footer-bottom {
    border-top-color: #30363d !important; }
  [data-theme="dark"] .footer-copyright {
    color: #6e7681 !important; }
  [data-theme="dark"] .social-links a {
    background-color: #21262d !important;
    color: #8b949e !important; }
  [data-theme="dark"] .newsletter-cta {
    background: linear-gradient(135deg, #e20000, #c00000) !important; }
  [data-theme="dark"] .footer-nav p {
    color: #8b949e !important; }
  [data-theme="dark"] .content-title {
    color: #e6edf3 !important; }
  [data-theme="dark"] .content-body {
    color: #c9d1d9 !important; }
  [data-theme="dark"] .progress-bar {
    background: #30363d !important; }
  [data-theme="dark"] .progress-text {
    color: #8b949e !important; }
  [data-theme="dark"] .content-blur {
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0), #0d1117) !important; }
  [data-theme="dark"] .signup-wall {
    background: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important; }
    [data-theme="dark"] .signup-wall h3 {
      color: #e6edf3 !important; }
    [data-theme="dark"] .signup-wall p {
      color: #8b949e !important; }
  [data-theme="dark"] .signup-icon {
    background: #21262d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important; }
    [data-theme="dark"] .signup-icon i {
      color: #e20000 !important; }
  [data-theme="dark"] .curriculum-table table {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important; }
  [data-theme="dark"] .curriculum-table th {
    background: linear-gradient(135deg, #e20000, #c00000) !important;
    color: #ffffff !important; }
  [data-theme="dark"] .curriculum-table td {
    border-bottom-color: #30363d !important;
    color: #c9d1d9 !important; }
  [data-theme="dark"] .curriculum-table tr:nth-child(even) {
    background-color: #21262d !important; }
  [data-theme="dark"] .curriculum-table tr:hover {
    background-color: #30363d !important; }
  [data-theme="dark"] .curriculum-table a {
    color: #58a6ff !important; }
    [data-theme="dark"] .curriculum-table a:hover {
      color: #e20000 !important; }
  [data-theme="dark"] .curriculum-table h3 {
    color: #e6edf3 !important; }
    [data-theme="dark"] .curriculum-table h3::before {
      background: linear-gradient(to bottom, #e20000, #c00000) !important; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-left: 0.75rem; }
  .theme-toggle:hover {
    background: #f3f4f6; }
  .theme-toggle svg {
    display: block; }
  .theme-toggle .icon-sun {
    display: none; }
  .theme-toggle .icon-moon {
    display: block; }

[data-theme="dark"] .theme-toggle {
  color: #e6edf3; }
  [data-theme="dark"] .theme-toggle:hover {
    background: #21262d; }
  [data-theme="dark"] .theme-toggle .icon-sun {
    display: block; }
  [data-theme="dark"] .theme-toggle .icon-moon {
    display: none; }

body {
  padding-top: var(--header-height); }

@media (min-width: 1024px) {
  .page-with-sidebar {
    display: flex;
    align-items: flex-start; }
    .page-with-sidebar .sidebar-menu {
      position: sticky;
      top: var(--header-height);
      height: calc(100vh - var(--header-height));
      overflow-y: auto;
      flex-shrink: 0;
      width: 280px; }
    .page-with-sidebar .main-content {
      flex: 1;
      min-width: 0;
      overflow: hidden; } }

@media (min-width: 1024px) {
  body.sidebar-collapsed .sidebar-menu {
    width: 0;
    overflow: hidden;
    border-right: none;
    min-width: 0; }
  body.sidebar-collapsed .mobile-sidebar-bar {
    border-bottom-color: transparent; } }

.mobile-sidebar-bar {
  display: flex;
  background: var(--bg-surface);
  border-bottom-color: var(--border); }
  .mobile-sidebar-bar .sidebar-toggle {
    color: var(--text-body);
    border-color: var(--border); }
    .mobile-sidebar-bar .sidebar-toggle:hover {
      background: var(--bg-muted); }
