:root {
  color-scheme: dark;
  --bg:#071320; --panel:#101f2c; --ink:#eff4f5; --muted:#a6b7c5; --line:#2a3f4c;
  --aqua:#8bdccf; --gold:#e4bd85; --ivory:#f4edde; --gutter:clamp(20px,4.15vw,82px);
  --sans:Inter,"Avenir Next","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-family:var(--sans); color:var(--ink); background:var(--bg); font-synthesis:none;
}
* {box-sizing:border-box}
body {margin:0; min-width:280px; isolation:isolate; font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased}
a {color:inherit; text-decoration:none}
button, input, select {font:inherit; color:inherit}
button {cursor:pointer}
button, a {touch-action:manipulation}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {outline:2px solid var(--aqua); outline-offset:4px}
[hidden] {display:none!important}
main {min-height:59vh; outline:none}
h1,h2,h3,p {margin:0}
.wrap,.mast-inner,.footer-inner {width:min(100%,1740px); margin-inline:auto; padding-inline:var(--gutter)}
.muted {color:var(--muted)}
.skip-link {position:fixed; z-index:20; left:12px; top:12px; padding:.5em 1em; border-radius:8px; background:var(--ivory); color:var(--bg); transform:translateY(-200%)}
.skip-link:focus {transform:none}
.masthead {z-index:8; position:relative; border-bottom:1px solid var(--line); background:#091622e0}
.mast-inner {min-height:clamp(78px,7vw,102px); display:flex; align-items:center; gap:clamp(16px,2.3vw,42px); position:relative}
.brand {--brand-name-size:clamp(19px,1.4vw,24px); display:inline-flex; align-items:center; column-gap:11px; flex:none}
.brand-mark,.wordmark {display:block; flex:none; height:auto}
.brand-mark {width:clamp(37px,3.2vw,52px)}
/* Four full-width glyphs with the existing tracking. */
.wordmark {width:calc(4.28 * var(--brand-name-size))}
.mast-brand {
  display:grid; flex:0 1 auto; min-width:0;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"mark name" "mark slogan";
  row-gap:3px;
}
.mast-brand .brand-mark {grid-area:mark}
.mast-brand .wordmark {grid-area:name}
.brand-slogan {
  grid-area:slogan; color:var(--muted); font-size:clamp(10px,.82vw,12px);
  font-weight:500; line-height:1.2; letter-spacing:.025em; text-wrap:balance;
}
.primary-nav {margin-left:auto; display:flex; align-items:center; gap:clamp(20px,2.6vw,48px)}
.primary-nav a {position:relative; padding:10px 0; font-size:clamp(14px,1.1vw,18px); color:var(--ivory); white-space:nowrap}
.primary-nav a::after {content:""; position:absolute; inset:auto 0 3px; height:1px; background:var(--aqua); transform:scaleX(0); transform-origin:left; transition:transform .18s}
.primary-nav a:hover::after,.primary-nav a.active::after {transform:scaleX(1)}
.tools {display:flex; align-items:center; gap:10px}
.language-switch {display:flex; align-items:center; color:var(--muted); font-size:14px; line-height:1}
.language-switch button,.menu-toggle {background:none; border:0; min-height:44px}
.language-switch button {width:32px; padding:0; border-radius:4px; font-weight:600}
.language-switch button:hover {color:var(--ivory)}
.language-switch button[aria-pressed="true"] {color:var(--aqua); text-decoration:underline; text-underline-offset:5px}
.mobile-panel {position:absolute; z-index:8; background:#10212e; border:1px solid #415563; border-radius:12px; box-shadow:0 16px 45px #01081180; padding:6px}
.mobile-panel a:hover {background:#1d3441; color:var(--ivory)}
.menu-toggle,.mobile-panel {display:none}
.button {display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:.57em 1.37em; border-radius:6px; font-weight:560; border:1px solid transparent; transition:background-color .18s,color .18s}
.button.primary {color:#11212b; background:var(--ivory)}
.button.primary:hover {background:#fff9ec}
.source-strip {display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; font-size:13px; color:var(--muted); line-height:1.6}
.status-rail {background:#0a1824d9; border-bottom:1px solid #21333f}
.status-rail .source-strip {padding-block:10px; min-height:42px}
.source-name {display:inline-flex; align-items:center; gap:7px; color:var(--ink); font-weight:570}
.source-name::before {content:""; width:7px; height:7px; border-radius:50%; background:var(--aqua)}
.source-name[data-kind="demo"]::before,.source-name[data-kind="waiting"]::before {background:var(--gold)}
.status-warning {color:var(--gold)}
.missing h1 {
  font-weight:560;
  font-size:clamp(32px,3.5vw,55px);
  line-height:1.16;
  letter-spacing:.025em;
  margin-bottom:14px;
}
.decision-detail h3 {font-size:16px; line-height:1.4; font-weight:570}
.decision-note {font-size:14px; color:var(--muted); line-height:1.66; margin-top:7px}
.decision-link {
  color:#a2ddd2;
  font-size:15px;
  display:inline-block;
  width:fit-content;
  padding-block:7px 2px;
  border-bottom:1px solid #a2ddd255;
  transition:color .18s,border-color .18s;
}
.decision-link:hover {color:#d1fff5; border-color:currentColor}
.missing {padding-block:70px}
.missing p {color:var(--muted)}
.missing .button {margin-top:20px}
#footer {background:#08141edb; border-top:1px solid var(--line)}
.footer-inner {display:flex; justify-content:space-between; align-items:center; gap:18px 28px; flex-wrap:wrap; padding-block:29px}
.footer-brand {--brand-name-size:17px}
.footer-brand .brand-mark {width:33px}
.footer-inner p {margin:0; color:var(--muted); font-size:13px}
@media (max-width:800px) {
  .primary-nav {display:none}
  .tools {margin-left:auto}
  .menu-toggle {display:grid; gap:5px; align-content:center; justify-content:center; width:40px}
  .menu-toggle span {height:1px; width:22px; background:var(--ivory)}
  .mobile-panel:not([hidden]) {display:grid; gap:2px; top:calc(100% - 4px); left:var(--gutter); right:var(--gutter)}
  .mobile-panel a {padding:10px 12px; border-radius:6px}
  .mobile-panel a[aria-current] {color:var(--aqua)}
}
@media (max-width:650px) {
  .mast-inner {min-height:70px}
  .brand {column-gap:8px}
  .brand:not(.footer-brand) {--brand-name-size:20px}
  .brand-mark {width:37px}
  .mast-brand {grid-template-areas:"mark name" "slogan slogan"}
  .button {font-size:15px}
  .footer-inner {align-items:start; gap:18px}
}
@media (max-width:340px) {
  .mast-inner {gap:8px; padding-inline:12px}
  .tools {gap:4px}
}
@media (prefers-reduced-motion:reduce) {
  *,*::after,*::before {animation-duration:0s!important; animation-iteration-count:1!important; transition-duration:0s!important; scroll-behavior:auto!important}
}
