/* Higher specificity keeps these palettes consistent with the existing bundle. */
html:root[data-theme="light"] {
  --paper:#fafbf7;--surface:#ffffff;--soft:#f0f3ec;--ink:#233329;
  --muted:#596858;--line:#dce2d5;--accent:#b6e995;--accent-ink:#3b5d32;
  --terminal:#172b22;--code-bg:#ffffff;--feature-bg:#e7eedc;--feature-ink:#43543a;
  --terminal-muted:#a5bca6;--shadow:0 14px 45px #24332908;color-scheme:light;
}
html:root[data-theme="dark"] {
  --paper:#121b18;--surface:#19241f;--soft:#1f2e26;--ink:#e8eee6;
  --muted:#a6b5a6;--line:#35463a;--accent:#b6e995;--accent-ink:#b6e995;
  --terminal:#0b1711;--code-bg:#0d1117;--feature-bg:#263a2d;--feature-ink:#cee5be;
  --terminal-muted:#a5bca6;--shadow:0 14px 45px #0002;color-scheme:dark;
}
html:root[data-theme="mocha"] {
  --paper:#211b19;--surface:#2b2320;--soft:#362c27;--ink:#f3e7dc;
  --muted:#c5b0a1;--line:#514138;--accent:#e3b48b;--accent-ink:#f1c69f;
  --terminal:#181411;--code-bg:#231b18;--feature-bg:#3d2f26;--feature-ink:#f1c69f;
  --terminal-muted:#c7ad96;--shadow:0 14px 45px #0002;color-scheme:dark;
}
html:root[data-theme="terminal"] {
  --paper:#07110b;--surface:#0d1a11;--soft:#13271a;--ink:#c3f5bf;
  --muted:#8fbd93;--line:#2c5236;--accent:#94ed9b;--accent-ink:#9befa2;
  --terminal:#050b07;--code-bg:#08150c;--feature-bg:#142b1a;--feature-ink:#b7f7ad;
  --terminal-muted:#a8d2ab;--shadow:0 14px 45px #0002;color-scheme:dark;
}
html:root[data-theme="ocean"] {
  --paper:#0d1b2a;--surface:#14283b;--soft:#19344b;--ink:#e2f2fc;
  --muted:#a0bfd3;--line:#31506a;--accent:#79d5ed;--accent-ink:#91e4f6;
  --terminal:#071722;--code-bg:#0e2030;--feature-bg:#193950;--feature-ink:#b0efff;
  --terminal-muted:#a2bfd4;--shadow:0 14px 45px #0002;color-scheme:dark;
}
html:root[data-theme="sunset"] {
  --paper:#fff5ed;--surface:#fffcf8;--soft:#f8e4d8;--ink:#4e2d2a;
  --muted:#85524a;--line:#eac9b8;--accent:#fac39a;--accent-ink:#8d3c2a;
  --terminal:#382322;--code-bg:#fffbf7;--feature-bg:#f7d6bd;--feature-ink:#773c2c;
  --terminal-muted:#cfb1aa;--shadow:0 14px 45px #4e2d2a08;color-scheme:light;
}
html:root[data-theme="lavender"] {
  --paper:#f7f4fc;--surface:#fdfbff;--soft:#ece5f5;--ink:#352a48;
  --muted:#6d5c82;--line:#dcd1eb;--accent:#d4b7f4;--accent-ink:#68418d;
  --terminal:#241c35;--code-bg:#fdfbff;--feature-bg:#e5daf2;--feature-ink:#5b3a78;
  --terminal-muted:#bbacce;--shadow:0 14px 45px #352a4808;color-scheme:light;
}
.theme-picker{display:inline-flex;align-items:center;gap:4px;font:500 11px 'Inter',sans-serif;position:relative}
.theme-picker button,.theme-more summary{font:inherit;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:6px;min-height:34px;padding:6px 8px;cursor:pointer;white-space:nowrap}
.theme-picker button:hover,.theme-more summary:hover{color:var(--ink);background:var(--soft)}
.theme-picker button[aria-pressed="true"]{color:var(--accent-ink);border-color:var(--line);background:var(--surface)}
.theme-picker button:focus-visible,.theme-more summary:focus-visible{outline:3px solid var(--accent-ink);outline-offset:2px}
.theme-more{position:relative}
.theme-more summary{list-style:none;display:flex;align-items:center;gap:5px}
.theme-more summary::-webkit-details-marker{display:none}
.theme-more[open] summary{color:var(--ink);background:var(--soft)}
.theme-menu{position:absolute;z-index:20;right:0;top:calc(100% + 7px);min-width:132px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);display:grid;gap:2px}
.theme-menu button{text-align:left;width:100%;min-height:34px}
.site-footer .footer-links{flex-wrap:wrap}
.radio-search-link{display:block;margin:18px 0;font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.feature-art{background:var(--feature-bg);color:var(--feature-ink)}
.architecture-grid{background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px)}
.brand-mark{background:var(--terminal);color:var(--accent)}
.terminal-top,.terminal-comment,.terminal-output,.terminal-bottom{color:var(--terminal-muted)}
.terminal-prompt{color:var(--accent)}
.terminal-cursor,.terminal-stamp{background:var(--accent)}
.terminal-stamp{color:#233329}
html[data-code-theme="dark"] .astro-code,
html[data-code-theme="dark"] .astro-code span{color:var(--shiki-dark);background-color:var(--shiki-dark-bg);font-style:var(--shiki-dark-font-style);font-weight:var(--shiki-dark-font-weight);text-decoration:var(--shiki-dark-text-decoration)}
html[data-code-theme] .article-body pre.astro-code{background:var(--code-bg)}
html[data-code-theme] .article-body .astro-code span{background-color:transparent}
html[data-theme="terminal"] .article-body .astro-code,
html[data-theme="terminal"] .article-body .astro-code span{color:#b7f7ad}
@media(max-width:600px){.site-header .brand{font-size:16px;gap:8px}.site-header .brand-mark{width:28px;height:28px;font-size:17px}.header-actions{gap:6px}.header-actions .search-open{padding:6px}.theme-picker{gap:1px}.theme-picker button,.theme-more summary{min-height:38px;padding:6px 5px;font-size:10px}}
@media(max-width:600px){.site-header.wrap{height:auto;min-height:76px;flex-wrap:wrap;padding-block:14px;row-gap:12px}.site-header .header-actions{margin-left:auto}.site-header nav[aria-label="Main navigation"]{display:flex;order:3;width:100%;justify-content:center;flex-wrap:wrap;gap:8px 20px}.site-header nav a{display:inline-flex;align-items:center;min-height:38px}.site-header nav .original-link{display:inline-flex}}
.article-tags>a{font-size:10px;border:1px solid var(--line);border-radius:20px;padding:3px 10px;text-decoration:none}.article-tags>a:hover,.article-tags>a:focus-visible{color:var(--accent-ink);border-color:var(--accent-ink)}
