/* Main homepage only: shared layout, independent light/dark palettes. */
:root {
  color-scheme: dark;
  --theme-control-bg: var(--deep);
  --theme-control-ink: var(--paper);
  --theme-control-active-bg: var(--paper);
  --theme-control-active-ink: var(--deep);
  --theme-light-paper: #FAF9F6;
  --theme-light-greige: #F0EDE6;
  --theme-light-card: #FAF9F6;
  --theme-light-card-hi: #E8E0D5;
  --theme-light-border: #D4CBBE;
  --theme-light-muted: #71675C;
  --theme-light-ink: #2C2825;
  --theme-light-soft: #57504A;
  --theme-light-accent: #A9552F;
  --theme-light-deep: #232323;
  --theme-light-nav: #FAF9F6F2;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: var(--theme-light-paper);
  --greige: var(--theme-light-greige);
  --card: var(--theme-light-card);
  --card-hi: var(--theme-light-card-hi);
  --sand: var(--theme-light-border);
  --stone: var(--theme-light-muted);
  --ink: var(--theme-light-ink);
  --ink-soft: var(--theme-light-soft);
  --paper: var(--theme-light-paper);
  --deep: var(--theme-light-deep);
  --coal: var(--theme-light-deep);
  --rust-text: var(--theme-light-accent);
  --choice-accent: var(--theme-light-accent);
}
.nav-settings { display:flex; align-items:center; gap:.45rem; flex-shrink:0; position:relative; z-index:120; }
.nav-settings .lang-toggle { margin:0; }
.nav-settings .lang-toggle button { color:var(--theme-control-ink); }
.nav-settings .lang-toggle button[aria-pressed="true"],
.nav-settings .lang-toggle button[aria-pressed="true"]:hover { color:var(--theme-control-active-ink); }
.theme-toggle { display:inline-flex; gap:2px; padding:3px; border:1px solid rgba(245,246,240,.16); border-radius:999px; background:rgba(41,42,37,.45); }
.theme-toggle button { display:grid; place-items:center; width:2.4rem; height:1.52rem; border-radius:999px; color:var(--theme-control-ink); }
.theme-toggle button[aria-pressed="true"] { background:var(--theme-control-active-bg); color:var(--theme-control-active-ink); }
.theme-toggle button:hover { outline:1px solid var(--rust-text); }
.theme-toggle svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.lang-toggle button[aria-pressed="true"]:hover { color:var(--bg); }
:root[data-theme="light"] .nav.solid { background:var(--theme-light-nav); }
:root[data-theme="light"] .nav.solid .nav-links a { color:var(--ink-soft); }
:root[data-theme="light"] .nav.solid .burger span,
:root[data-theme="light"] .nav.menu-open .burger span { background:var(--ink); }
:root[data-theme="light"] .nav.solid .lang-toggle { background:var(--greige); border-color:var(--sand); }
:root[data-theme="light"] .nav.solid .lang-toggle button { color:var(--ink-soft); }
:root[data-theme="light"] .nav.solid .lang-toggle button[aria-pressed="true"] { background:var(--ink); color:var(--paper); }
:root[data-theme="light"] .nav.solid .theme-toggle { background:var(--greige); border-color:var(--sand); }
:root[data-theme="light"] .nav.solid .theme-toggle button { color:var(--ink-soft); }
:root[data-theme="light"] .nav.solid .theme-toggle button[aria-pressed="true"] { background:var(--ink); color:var(--paper); }
:root[data-theme="light"] .manifest { --rust-text:var(--rust); }
:root[data-theme="light"] .notice-bar { --rust-text:var(--rust); }
:root[data-theme="light"] .btn-ghost:hover { background:var(--ink); color:var(--paper); }
:root[data-theme="light"] .btn-light-ghost:hover { color:var(--deep); }
:root[data-theme="light"] .tp-badge,
:root[data-theme="light"] .tool-box .modal-close { color:var(--ink); }
@media (min-width:861px) and (max-width:1180px) {
  .nav-inner { gap:1rem; }
  .nav-links { gap:1rem; }
  .nav-links a { letter-spacing:.1em; }
}
@media (max-width:860px) {
  .nav-settings { margin-left:auto; }
  .nav-inner { gap:.6rem; }
}
@media (max-width:380px) {
  .nav-inner > .logo { font-size:1.15rem; }
  .nav-settings .lang-toggle button { padding:.4rem .45rem; }
  .theme-toggle button { width:2.05rem; height:1.52rem; }
  .nav-settings { gap:.25rem; }
  .nav-inner { padding-inline:16px; }
  .menu-item > div { min-width:0; }
  .usc .menu-prices { white-space:normal; }
}