/* Dark is the editorial default; an explicit saved choice restores light. */
:root{color-scheme:light}
.header-actions{display:flex;align-items:center;gap:18px;flex:none}
.theme-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);font-size:12px;font-weight:700;padding:8px 12px;min-height:38px}
.theme-toggle:hover{border-color:var(--muted)}
.theme-toggle[hidden]{display:none}
.theme-toggle svg{width:15px;height:15px}
.theme-toggle .theme-moon{display:none}
:root[data-theme=light] .theme-toggle .theme-sun{display:none}
:root[data-theme=light] .theme-toggle .theme-moon{display:inline}
@media screen{
  :root:not([data-theme=light]){color-scheme:dark;--ink:#f1f3ed;--muted:#aeb5a8;--paper:#111410;--white:#1b2019;--line:#343c30;--soft:#22291f}
  :root:not([data-theme=light]) .site-header{background:rgba(17,20,16,.97)}
  :root:not([data-theme=light]) :focus-visible{outline-color:#ff7d8a}
  :root:not([data-theme=light]) nav a:hover{color:#ff7d8a}
  :root:not([data-theme=light]) .featured{background:#20271d;border:1px solid #394532}
  :root:not([data-theme=light]) .featured:after{border-color:#3c4735}
  :root:not([data-theme=light]) .filter-button{color:#bdc5b6}
  :root:not([data-theme=light]) .filter-button:hover{border-color:#88957c}
  :root:not([data-theme=light]) .filter-button.is-active{background:#e8ede2;color:#171e13;border-color:#e8ede2}
  :root:not([data-theme=light]) .signal-card:hover{border-color:#55644a;box-shadow:0 8px 28px rgba(0,0,0,.12)}
  :root:not([data-theme=light]) .intent{background:#3a2228;color:#ffa4ae}
  :root:not([data-theme=light]) .signal-fact{color:#c4ccbd}
  :root:not([data-theme=light]) .implication>span,
  :root:not([data-theme=light]) .action-horizon,
  :root:not([data-theme=light]) .archive-status,
  :root:not([data-theme=light]) .method-card>span{color:#ff8794}
  :root:not([data-theme=light]) .outside-card{background:#202b1d;border-color:#43523a}
  :root:not([data-theme=light]) .outside-card .intent{background:#35442d;color:#e5edde}
  :root:not([data-theme=light]) .outside-card .proof-details{border-color:#43523a}
  :root:not([data-theme=light]) .empty-state{border-color:#617354}
  :root:not([data-theme=light]) .action-number{color:#a6b397}
  :root:not([data-theme=light]) .archive-card,
  :root:not([data-theme=light]) .axis-card,
  :root:not([data-theme=light]) .method-card,
  :root:not([data-theme=light]) .primary-sources,
  :root:not([data-theme=light]) .source-card{background:var(--white)}
  :root:not([data-theme=light]) .axis-number{color:#a6b397}
  :root:not([data-theme=light]) .axis-card:last-child{background:#202b1d;border-color:#43523a}
  :root:not([data-theme=light]) .axis-card:last-child .axis-number{color:var(--red)}
  :root:not([data-theme=light]) .source-card>p{color:#c4ccbd}
  :root:not([data-theme=light]) .site-footer{background:#0b0f09;border-top:1px solid var(--line)}
  :root:not([data-theme=light]) .skip-link,
  :root:not([data-theme=light]) .missing-link a{background:#e8ede2;color:#171e13}
}
@media(max-width:1200px) and (min-width:761px){.header-inner{gap:20px}nav{gap:18px}.org{display:none}}
@media(max-width:760px){.header-inner{gap:10px}.header-actions{gap:8px;margin-left:auto}.theme-toggle{padding:7px 9px;min-height:36px}.theme-toggle svg{width:13px;height:13px}.theme-toggle .theme-label{font-size:11px}.menu-toggle{color:var(--ink);min-height:36px}}
@media screen and (max-width:400px){.header-inner{gap:8px}.header-actions{gap:6px}}
@media print{.theme-toggle{display:none}:root{color-scheme:light}}
