:root {
  --bg: #f5f7fb;
  --bg-alt: #eef2f8;
  --panel: #ffffff;
  --ink: #0f1720;
  --muted: #526071;
  --line: #d7e0ea;
  --brand: #0f766e;
  --brand-2: #0b4b7a;
  --accent: #d97706;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 20px 40px rgba(15, 23, 32, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 10%, rgba(15, 118, 110, 0.08), transparent 34%),
    radial-gradient(circle at 95% 20%, rgba(13, 76, 122, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #edf2f8 100%);
  line-height: 1.6;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(15, 23, 32, 0.08);
}

.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.25);
}

.menu {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.menu a {
  font-size: 0.93rem;
  font-weight: 600;
  color: #1c2a39;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.menu a[aria-current="page"],
.menu a:hover {
  background: rgba(11, 75, 122, 0.1);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(13, 76, 122, 0.16), transparent 68%);
  pointer-events: none;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 2rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.3rem;
}

p {
  margin: 0.6rem 0;
  color: #223142;
}

.lead {
  max-width: 72ch;
  font-size: 1.05rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: end;
}

.hero-card {
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.95) 0%, rgba(11, 75, 122, 0.95) 100%);
  color: #eaf6ff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-card h2,
.hero-card h3,
.hero-card p,
.hero-card li,
.hero-card a {
  color: #eaf6ff;
}

.hero-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.btn-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.22);
}

.btn-outline {
  color: var(--brand-2);
  border-color: rgba(11, 75, 122, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 32, 0.06);
}

.card h3 {
  margin-top: 0;
}

.card .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  margin-bottom: 2rem;
  animation: fade-up 0.55s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.toc ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.toc li {
  margin: 0.35rem 0;
}

pre {
  margin: 0.8rem 0;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid #c7d6e6;
  background: #0f1720;
  color: #e5eef9;
  overflow-x: auto;
}

code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

pre code {
  display: block;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.inline-code {
  background: #ebf2fa;
  border: 1px solid #d4e1ef;
  border-radius: 6px;
  padding: 0.06rem 0.35rem;
  font-size: 0.9em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.9rem 0;
  background: #fff;
  border: 1px solid var(--line);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.62rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: #ecf3fb;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.note,
.warn,
.tip {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  margin: 0.8rem 0;
  border: 1px solid;
}

.note {
  background: #eef5ff;
  border-color: #b6cee8;
}

.tip {
  background: #ecfff5;
  border-color: #b7e7cd;
}

.warn {
  background: #fff8ef;
  border-color: #f2d7ad;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed #d3deea;
}

.card li,
.card p {
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 32, 0.18);
  background: #f8fbff;
  color: #1f2d3c;
}

.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi .card {
  text-align: center;
}

.kpi .value {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
}

.two-col-layout > * {
  min-width: 0;
}

.side-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
}

.side-nav h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}

.side-nav a {
  display: block;
  padding: 0.33rem 0.38rem;
  border-radius: 8px;
  color: #223447;
  font-size: 0.93rem;
}

.side-nav a:hover,
.side-nav a[aria-current="page"],
.side-nav a.active {
  background: #ebf3ff;
  text-decoration: none;
}

.side-nav a.active {
  font-weight: 600;
  color: var(--brand-2);
  border-left: 3px solid var(--brand);
  padding-left: calc(0.38rem - 3px);
}

/* Content-main utility (replaces inline style on inner pages) */
.content-main {
  padding-top: 1.5rem;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Theme toggle button */
.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  display: flex;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-2);
}

.breadcrumb span {
  margin: 0 0.3rem;
}

/* Page prev/next navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-weight: 600;
  font-size: 0.93rem;
  max-width: 48%;
  transition: border-color 0.15s;
}

.page-nav a:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.page-nav .label {
  display: block;
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.page-nav .next {
  margin-left: auto;
  text-align: right;
}

/* Callout prefixes */
.note::before,
.warn::before,
.tip::before {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.note::before {
  content: "\2139\FE0F  Note";
  color: var(--brand-2);
}

.warn::before {
  content: "\26A0\FE0F  Warning";
  color: var(--accent);
}

.tip::before {
  content: "\2705  Tip";
  color: var(--ok);
}

/* Copy button (replaces inline styles from JS) */
.code-copy-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  font: 600 12px "IBM Plex Sans", sans-serif;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(229, 238, 249, 0.45);
  background: rgba(15, 23, 32, 0.72);
  color: #e5eef9;
  cursor: pointer;
}

.code-copy-btn:hover {
  background: rgba(15, 23, 32, 0.9);
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  z-index: 60;
  width: 0;
  transition: width 0.1s linear;
}

/* Heading anchor */
.heading-anchor {
  opacity: 0;
  margin-left: 0.4rem;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.15s;
}

section:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.heading-anchor:hover {
  color: var(--brand);
  text-decoration: none;
}

/* Responsive table scroll wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.9rem 0;
}

.table-scroll table {
  margin: 0;
}

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 32, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-modal.open {
  display: flex;
}

.search-modal-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: min(560px, calc(100% - 2rem));
  box-shadow: 0 20px 60px rgba(15, 23, 32, 0.25);
  overflow: hidden;
}

.search-modal-inner input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid var(--line);
  font: inherit;
  font-size: 1.05rem;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-results a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus {
  background: rgba(11, 75, 122, 0.08);
  text-decoration: none;
}

.search-results .sr-title {
  font-weight: 600;
  display: block;
}

.search-results .sr-summary {
  font-size: 0.87rem;
  color: var(--muted);
  display: block;
  margin-top: 0.1rem;
}

.search-results .sr-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.search-hint {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.4rem 1rem 0.6rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .hero-grid,
  .grid.cols-3,
  .kpi {
    grid-template-columns: 1fr 1fr;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    max-height: none;
  }
}

@media (max-width: 960px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .topbar.open .menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topbar .inner {
    flex-wrap: wrap;
    padding-top: 0.7rem;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2.6rem;
  }

  .hero-grid,
  .grid.cols-3,
  .grid.cols-2,
  .kpi {
    grid-template-columns: 1fr;
  }

  .page-nav {
    flex-direction: column;
  }

  .page-nav a {
    max-width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  section {
    animation: none;
  }

  .back-to-top,
  .heading-anchor,
  .progress-bar {
    transition: none;
  }
}

/* Print styles */
@media print {
  .topbar,
  .side-nav,
  .footer,
  .back-to-top,
  .progress-bar,
  .skip-link,
  .page-nav,
  .theme-toggle,
  .mobile-toggle,
  .search-modal,
  .code-copy-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  pre {
    border: 1px solid #ccc;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

/* Dark mode - system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1720;
    --bg-alt: #162030;
    --panel: #1a2538;
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --line: #2d3d50;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  :root:not([data-theme="light"]) body {
    background: #0f1720;
  }

  :root:not([data-theme="light"]) .topbar {
    background: rgba(15, 23, 32, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  :root:not([data-theme="light"]) .menu a {
    color: #cbd5e1;
  }

  :root:not([data-theme="light"]) .menu a[aria-current="page"],
  :root:not([data-theme="light"]) .menu a:hover {
    background: rgba(148, 163, 184, 0.12);
  }

  :root:not([data-theme="light"]) p {
    color: #cbd5e1;
  }

  :root:not([data-theme="light"]) .side-nav {
    background: var(--panel);
  }

  :root:not([data-theme="light"]) .side-nav a {
    color: #cbd5e1;
  }

  :root:not([data-theme="light"]) .side-nav a:hover,
  :root:not([data-theme="light"]) .side-nav a.active {
    background: rgba(148, 163, 184, 0.1);
  }

  :root:not([data-theme="light"]) .card {
    background: var(--panel);
    border-color: var(--line);
  }

  :root:not([data-theme="light"]) .toc {
    background: var(--panel);
  }

  :root:not([data-theme="light"]) .inline-code {
    background: #1e2d3d;
    border-color: #2d3d50;
    color: #e2e8f0;
  }

  :root:not([data-theme="light"]) table {
    background: var(--panel);
  }

  :root:not([data-theme="light"]) th {
    background: #162030;
    color: #94a3b8;
  }

  :root:not([data-theme="light"]) .note {
    background: #0f1d2d;
    border-color: #1e3a5f;
  }

  :root:not([data-theme="light"]) .warn {
    background: #1a1708;
    border-color: #5c4a1e;
  }

  :root:not([data-theme="light"]) .tip {
    background: #0a1f15;
    border-color: #1e5c3a;
  }

  :root:not([data-theme="light"]) .kicker {
    background: rgba(15, 118, 110, 0.2);
    border-color: rgba(15, 118, 110, 0.4);
  }

  :root:not([data-theme="light"]) .badge {
    background: #1a2538;
    border-color: #2d3d50;
    color: #cbd5e1;
  }

  :root:not([data-theme="light"]) .btn-outline {
    background: rgba(26, 37, 56, 0.85);
    color: #94c1e8;
    border-color: rgba(148, 163, 184, 0.25);
  }

  :root:not([data-theme="light"]) .search-input {
    background: var(--panel);
    color: var(--ink);
    border-color: var(--line);
  }

  :root:not([data-theme="light"]) .search-modal-inner {
    background: #1a2538;
  }

  :root:not([data-theme="light"]) .search-modal-inner input {
    color: #e2e8f0;
  }

  :root:not([data-theme="light"]) .mobile-toggle {
    background: var(--panel);
    color: var(--ink);
  }

  :root:not([data-theme="light"]) .theme-toggle {
    background: var(--panel);
    color: var(--ink);
    border-color: var(--line);
  }

  :root:not([data-theme="light"]) .breadcrumb a {
    color: #94a3b8;
  }

  :root:not([data-theme="light"]) .page-nav a {
    background: var(--panel);
    border-color: var(--line);
    color: var(--ink);
  }
}

/* Dark mode - manual toggle */
[data-theme="dark"] {
  --bg: #0f1720;
  --bg-alt: #162030;
  --panel: #1a2538;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #2d3d50;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
  background: #0f1720;
}

[data-theme="dark"] .topbar {
  background: rgba(15, 23, 32, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .menu a {
  color: #cbd5e1;
}

[data-theme="dark"] .menu a[aria-current="page"],
[data-theme="dark"] .menu a:hover {
  background: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] p {
  color: #cbd5e1;
}

[data-theme="dark"] .side-nav {
  background: var(--panel);
}

[data-theme="dark"] .side-nav a {
  color: #cbd5e1;
}

[data-theme="dark"] .side-nav a:hover,
[data-theme="dark"] .side-nav a.active {
  background: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .card {
  background: var(--panel);
  border-color: var(--line);
}

[data-theme="dark"] .toc {
  background: var(--panel);
}

[data-theme="dark"] .inline-code {
  background: #1e2d3d;
  border-color: #2d3d50;
  color: #e2e8f0;
}

[data-theme="dark"] table {
  background: var(--panel);
}

[data-theme="dark"] th {
  background: #162030;
  color: #94a3b8;
}

[data-theme="dark"] .note {
  background: #0f1d2d;
  border-color: #1e3a5f;
}

[data-theme="dark"] .warn {
  background: #1a1708;
  border-color: #5c4a1e;
}

[data-theme="dark"] .tip {
  background: #0a1f15;
  border-color: #1e5c3a;
}

[data-theme="dark"] .kicker {
  background: rgba(15, 118, 110, 0.2);
  border-color: rgba(15, 118, 110, 0.4);
}

[data-theme="dark"] .badge {
  background: #1a2538;
  border-color: #2d3d50;
  color: #cbd5e1;
}

[data-theme="dark"] .btn-outline {
  background: rgba(26, 37, 56, 0.85);
  color: #94c1e8;
  border-color: rgba(148, 163, 184, 0.25);
}

[data-theme="dark"] .search-input {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .search-modal-inner {
  background: #1a2538;
}

[data-theme="dark"] .search-modal-inner input {
  color: #e2e8f0;
}

[data-theme="dark"] .mobile-toggle {
  background: var(--panel);
  color: var(--ink);
}

[data-theme="dark"] .theme-toggle {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .breadcrumb a {
  color: #94a3b8;
}

[data-theme="dark"] .page-nav a {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}
