/* One visual language for study, access, accounts and the guide. */
:root{--site-bg:#f3f6fa;--site-paper:#fff;--site-ink:#24334a;--site-muted:#5b6c82;--site-line:#d6dfeb;--site-accent:#285dab;--site-soft:#eaf0f9;--site-danger:#a13739;--site-warning:#825614;--site-warning-bg:#fff4d8;color-scheme:light;font-family:"Segoe UI Variable","Segoe UI",Arial,sans-serif}
:root[data-theme="dark"]{--site-bg:#101b2b;--site-paper:#18283d;--site-ink:#e4eaf4;--site-muted:#b0bfd2;--site-line:#3a4e69;--site-accent:#9cbfff;--site-soft:#213755;--site-danger:#ffb6b7;--site-warning:#f2cb83;--site-warning-bg:#3b3020;color-scheme:dark}
html,body{background:var(--site-bg);color:var(--site-ink);font-family:"Segoe UI Variable","Segoe UI",Arial,sans-serif}
.unified-header{display:flex;flex-wrap:wrap;align-items:center;gap:20px;min-height:76px;padding:14px clamp(18px,4vw,54px);background:var(--site-paper);border-bottom:1px solid var(--site-line)}
.unified-header .brand{color:var(--site-ink);text-decoration:none;display:flex;gap:11px;align-items:center;flex:none;letter-spacing:0;font-size:17px;font-weight:700;margin:0}
.unified-header .brand-mark{display:grid;place-items:center;width:34px;height:34px;border:1.5px solid var(--site-accent);border-radius:7px;color:var(--site-accent);font:700 19px Cambria,serif}
.unified-header .brand small{display:block;margin-top:2px;color:var(--site-muted);font-size:11px;font-weight:500;letter-spacing:0;text-transform:none}
.unified-header .site-navigation{display:flex;flex:1;align-items:center;gap:22px;margin:0;min-width:0;order:initial;width:auto}
.unified-header .header-link{font-size:13px;color:var(--site-muted);font-weight:600;text-decoration:none;max-width:none;text-align:left;white-space:nowrap;padding:7px 0}
.unified-header .header-link:hover,.unified-header .header-link[aria-current="page"]{color:var(--site-accent);text-decoration:underline;text-underline-offset:7px}
.unified-header .header-end,.unified-header .account{display:flex;gap:12px;align-items:center;margin:0}
.unified-header .account{color:var(--site-muted);border-left:1px solid var(--site-line);padding-left:12px;font-size:12px}
.unified-header .theme-toggle,.unified-header .account button{font-family:inherit;border:1px solid var(--site-line);border-radius:6px;background:var(--site-paper);color:var(--site-accent);padding:8px 11px;font-size:12px;font-weight:600;cursor:pointer}
.unified-header button:hover{background:var(--site-soft)}
.page-intro{border-color:var(--site-line);padding:30px 0 26px}
.page-intro h1,.view h2{font-family:inherit;font-weight:650;letter-spacing:-.025em;color:var(--site-ink)}
.page-intro h1{font-size:clamp(28px,3vw,39px);line-height:1.2}
.view h2{font-size:clamp(26px,2.8vw,34px);line-height:1.25}
.page-intro>p,.view .lead{color:var(--site-muted);max-width:70ch}
.eyebrow,.stage,.rail-title,.select-label{font-size:12px;text-transform:none;letter-spacing:0;color:var(--site-muted)}
.site-footer,body>footer{color:var(--site-muted);border-color:var(--site-line)}
:focus-visible{outline:3px solid var(--site-accent);outline-offset:3px}
.session-workflow{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 23px;list-style:none;padding:0}
.session-workflow li{border:1px solid var(--site-line);border-radius:5px;padding:7px 10px;font-size:12px;color:var(--site-muted)}
.session-workflow li.current{background:var(--site-soft);border-color:var(--site-accent);color:var(--site-accent);font-weight:650}
.session-workflow li{padding:0}.session-workflow button{border:0;background:none;color:inherit;padding:9px 11px;font:inherit;text-align:left;cursor:pointer}.session-workflow button:hover{text-decoration:underline;text-underline-offset:3px}
.session-reading{max-width:76ch;color:var(--site-ink);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.session-reading h3{margin:26px 0 12px;font-size:21px;color:var(--site-ink);font-weight:650}
article.session-reading h3{font-family:Cambria,Georgia,serif;font-weight:500;font-size:24px}
.session-reading p{color:var(--site-ink);white-space:pre-wrap;font-size:14px}
.session-reading blockquote{margin:15px 0;padding-left:16px;border-left:2px solid var(--site-line);color:var(--site-muted)}
.session-reading section+section{margin-top:25px;padding-top:20px;border-top:1px solid var(--site-line)}
.session-reading details{font-size:12px;color:var(--site-muted)}
.session-reading details p{font-size:12px;color:var(--site-muted)}
.artifact-downloads{display:flex;flex-wrap:wrap;gap:13px;margin:18px 0}
.artifact-downloads a{color:var(--site-accent);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.guide-top{position:static!important}
.study-display-control{max-width:1190px;margin:0 auto;padding:13px 24px 0;text-align:right}
/* Root-qualified selectors also replace historical dark-theme overrides. */
:root[data-theme] .panel,:root[data-theme] .case-card,:root[data-theme] .metric,:root[data-theme] .readiness-count,:root[data-theme] .choice,:root[data-theme] .cost-panel,:root[data-theme] .answer-history,:root[data-theme] .rewind-dialog{background:var(--site-paper);border-color:var(--site-line);color:var(--site-ink);box-shadow:none}
:root[data-theme] .panel h3,:root[data-theme] .view h2,:root[data-theme] .section-title,:root[data-theme] .metric strong,:root[data-theme] .readiness-count strong,:root[data-theme] .review-label,:root[data-theme] .field>span,:root[data-theme] .choice strong,:root[data-theme] .cost-panel strong,:root[data-theme] .answer-history summary,:root[data-theme] .answer-history-question,:root[data-theme] .rewind-dialog h2{color:var(--site-ink)}
:root[data-theme] .panel p,:root[data-theme] .section-note,:root[data-theme] .subtle,:root[data-theme] .review-value,:root[data-theme] .metric span,:root[data-theme] .choice span,:root[data-theme] .field small,:root[data-theme] .session-meta,:root[data-theme] .view .lead,:root[data-theme] .answer-history-origin,:root[data-theme] .rewind-dialog p{color:var(--site-muted)}
:root[data-theme] .button{background:var(--site-accent);border-color:var(--site-accent);color:var(--site-paper)}
:root[data-theme] .button.secondary,:root[data-theme] .theme-toggle{background:var(--site-paper);color:var(--site-accent);border-color:var(--site-accent)}
:root[data-theme] .button:hover,:root[data-theme] .button.secondary:hover{background:var(--site-soft);color:var(--site-accent)}
:root[data-theme] input,:root[data-theme] select,:root[data-theme] textarea,:root[data-theme] .pre,:root[data-theme] .answer-history-answer,:root[data-theme] .comparison,:root[data-theme] .empty{background:var(--site-paper);border-color:var(--site-line);color:var(--site-ink)}
:root[data-theme] .inline-link,:root[data-theme] .quiet-button,:root[data-theme] details summary,:root[data-theme] .steps li.active button{color:var(--site-accent)}
:root[data-theme] .steps li.done button,:root[data-theme] .steps button{color:var(--site-muted)}
:root[data-theme] .steps li.active:before{background:var(--site-accent)}
:root[data-theme] .rail-divider{background:var(--site-line)}
:root[data-theme] .view-head,:root[data-theme] .review-item,:root[data-theme] .answer-history-item,:root[data-theme] .constitution-section,:root[data-theme] .constitution-technical,:root[data-theme] .comparison td,:root[data-theme] .comparison th,:root[data-theme] .table-wrap{border-color:var(--site-line)}
:root[data-theme] .constitution-document,:root[data-theme] .constitution-title,:root[data-theme] .constitution-section h4,:root[data-theme] .constitution-entry h5{color:var(--site-ink)}
:root[data-theme] .constitution-title,:root[data-theme] .constitution-section h4{font-family:Cambria,Georgia,serif}
:root[data-theme] .constitution-evidence,:root[data-theme] .constitution-copy-status,:root[data-theme] .constitution-source blockquote{color:var(--site-muted)}
:root[data-theme] .constitution-evidence summary,:root[data-theme] .constitution-technical summary{color:var(--site-accent)}
:root[data-theme] .choice:has(input:checked),:root[data-theme] .readiness-panel,:root[data-theme] .decision-block,:root[data-theme] .proposal-decision,:root[data-theme] .comparison th{background:var(--site-soft)}
:root[data-theme] .badge,:root[data-theme] .question-source{background:var(--site-soft);color:var(--site-accent);border-color:var(--site-line)}
:root[data-theme] .badge.warn,:root[data-theme] .recovery-panel{background:var(--site-warning-bg);color:var(--site-warning);border-color:var(--site-warning)}
:root[data-theme] .notice,:root[data-theme] .button.danger{background:var(--site-paper);border-color:var(--site-danger);color:var(--site-danger)}
:root[data-theme] .unified-header{background:var(--site-paper);border-color:var(--site-line)}
:root[data-theme] .unified-header .brand,:root[data-theme] .page-intro h1{color:var(--site-ink)}
:root[data-theme] .unified-header .header-link,:root[data-theme] .unified-header .brand small{color:var(--site-muted)}
:root[data-theme] .unified-header .header-link[aria-current="page"],:root[data-theme] .unified-header .brand-mark{color:var(--site-accent);border-color:var(--site-accent)}
#research-details{--research-ink:var(--site-ink);--research-muted:var(--site-muted);--research-border:var(--site-line);--research-surface:var(--site-soft);--research-accent:var(--site-accent)}
:root[data-theme] #research-details{--research-ink:var(--site-ink);--research-muted:var(--site-muted);--research-border:var(--site-line);--research-surface:var(--site-soft);--research-accent:var(--site-accent)}
:root[data-theme] #research-details .research-head h2{font-family:inherit;font-weight:650;font-size:24px}
@media(max-width:560px){.unified-header .header-end{width:auto;flex-wrap:nowrap;margin-left:auto}.unified-header .header-end .theme-toggle{margin-left:0}.unified-header .header-end .account{margin-left:0}.study-display-control{padding-right:17px}}
@media(max-width:1050px){.unified-header{gap:12px 18px}.unified-header .site-navigation{order:3;flex-basis:100%;gap:22px;overflow:auto}.unified-header .header-end{margin-left:auto}}
@media(max-width:560px){.unified-header{padding:12px 17px}.unified-header .site-navigation{gap:4px 18px;flex-wrap:wrap;overflow:visible}.unified-header .header-link{font-size:12px}.unified-header .account{padding-left:0;border:0}.unified-header .account span{display:none}.unified-header .theme-toggle{padding:8px}.unified-header .brand small{font-size:10px}}
@media print{.unified-header{display:none}html,body{background:#fff;color:#111}}
