/* DYOR accessible experience vNext - authoritative semantic presentation layer. */
:root{color-scheme:dark;--a11y-canvas:#100b08;--a11y-surface:#1b1511;--a11y-surface-raised:#282019;--a11y-surface-soft:#332820;--a11y-text:#fffaf0;--a11y-text-muted:#d8cec0;--a11y-text-subtle:#b8aa9b;--a11y-border:#786b5d;--a11y-border-strong:#a89886;--a11y-accent:#c8ff4d;--a11y-accent-ink:#142000;--a11y-action:#ff6b1a;--a11y-info:#72c7ff;--a11y-positive:#66e3a4;--a11y-caution:#ffd166;--a11y-negative:#ff8a8a;--a11y-focus:#c8ff4d;--a11y-shadow:0 8px 0 #080504;--a11y-radius-sm:8px;--a11y-radius:14px;--a11y-radius-lg:24px;--a11y-measure:72ch;--a11y-space-1:.375rem;--a11y-space-2:.75rem;--a11y-space-3:1rem;--a11y-space-4:1.5rem;--a11y-space-5:2rem;--a11y-space-6:clamp(2.5rem,6vw,5rem)}
html{background:var(--a11y-canvas);scroll-padding-top:7rem}body{background:var(--a11y-canvas);color:var(--a11y-text);font-size:clamp(1rem,.96rem + .18vw,1.125rem);line-height:1.6;text-rendering:optimizeLegibility}
:where(p,li,dd,figcaption,small){color:var(--a11y-text-muted)}:where(p,li,dd){max-width:var(--a11y-measure)}:where(h1,h2,h3,h4){color:var(--a11y-text);line-height:1.12;text-wrap:balance}
h1{font-size:clamp(2.35rem,5vw,5.5rem);letter-spacing:-.045em}h2{font-size:clamp(1.7rem,3vw,3rem);letter-spacing:-.025em}h3{font-size:clamp(1.15rem,1.6vw,1.45rem)}
.eyebrow,.label,.tip-kicker{color:var(--a11y-accent);letter-spacing:.075em}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--a11y-focus);outline-offset:4px;box-shadow:0 0 0 7px var(--a11y-canvas)}
:where(button,input,select,textarea,summary,[role="button"]){min-height:44px}:where(button,summary,[role="button"]){touch-action:manipulation}
:where(input,select,textarea){background:var(--a11y-surface);border-color:var(--a11y-border-strong);color:var(--a11y-text);font:inherit}::placeholder{color:var(--a11y-text-subtle);opacity:1}
.panel,.research-tip,.marketing-product-preview,.compare-controls,.research-workspace,.research-section,.report-card,.watchlist-card{background:var(--a11y-surface);border-color:var(--a11y-border);color:var(--a11y-text)}
.primary-button,button.primary-button{background:var(--a11y-accent);border-color:var(--a11y-accent);color:var(--a11y-accent-ink);font-weight:800}.primary-button:hover{background:#ddff8c}
.text-button,button.text-button{color:var(--a11y-text);text-decoration-thickness:.12em;text-underline-offset:.2em}.text-button:hover{color:var(--a11y-accent)}
.page-heading{max-width:78rem;margin-inline:auto;padding-block:var(--a11y-space-6) var(--a11y-space-5)}.page-heading>p:last-child{max-width:62ch;font-size:1.12em}
.marketing-home{max-width:92rem;margin-inline:auto}.marketing-hero{min-height:min(760px,calc(100svh - 7rem));align-items:center;gap:clamp(2rem,6vw,7rem)}.marketing-hero-copy{max-width:48rem}.marketing-hero-lead{max-width:58ch;font-size:clamp(1.15rem,1.6vw,1.4rem)}.marketing-actions{gap:var(--a11y-space-3)}.marketing-product-preview{border:1px solid var(--a11y-border-strong);box-shadow:var(--a11y-shadow)}
.compare-layout{align-items:start}.compare-controls{position:sticky;top:7rem}.compare-main{display:grid;gap:var(--a11y-space-4)}.compare-summary,.compare-verdict-grid{order:-3}.compare-evidence-read,.compare-radar{order:-2}.compare-performance-panel,.compare-risk-table-panel{order:1}
:where(.status-pill,.badge,.coverage-badge,.evidence-state){border:1px solid currentColor;font-weight:750}:where(.status-pill,.badge,.coverage-badge,.evidence-state)::before{content:"*";margin-inline-end:.45em;font-size:.72em}
:where(svg,.chart,.bar-chart){--chart-1:#c8ff4d;--chart-2:#72c7ff;--chart-3:#ff9d66;--chart-4:#e2b8ff}:where(svg text){fill:var(--a11y-text-muted);font-size:14px}
@media(max-width:900px){.marketing-hero,.compare-layout{grid-template-columns:1fr}.compare-controls{position:static}.page-heading{padding-block:var(--a11y-space-5) var(--a11y-space-4)}}
@media(max-width:600px){:root{--a11y-space-6:2.25rem}h1{font-size:clamp(2.15rem,12vw,3.5rem)}.marketing-actions,.prototype-launch-actions{display:grid;grid-template-columns:1fr}.marketing-actions>*,.prototype-launch-actions>*{width:100%}:where(.panel,.research-workspace,.research-section){border-radius:var(--a11y-radius)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto;animation-duration:.01ms;animation-iteration-count:1;transition-duration:.01ms}}
@media(prefers-contrast:more){:root{--a11y-text-muted:#fffaf0;--a11y-border:#fffaf0;--a11y-border-strong:#fff}}
@media print{:root{color-scheme:light;--a11y-canvas:#fff;--a11y-surface:#fff;--a11y-text:#111;--a11y-text-muted:#333;--a11y-border:#666}nav,.buddy-launcher,.marketing-actions,button{display:none}}

/* Legacy research-engine bridge: preserve semantic contrast after its light-theme module loads. */
#research-screener :where(h2,h3,h4,strong),#research-conditions-summary h2,.re-result-card :where(h3,h4,strong){color:var(--a11y-text)!important}
#research-screener button[data-re-preset] span,.re-result-card footer span{color:var(--a11y-text-muted)!important}
#research-screener button[data-re-preset].active :where(strong,span){color:var(--a11y-accent-ink)!important}
#research-screener button[data-re-preset].active{background:var(--a11y-accent)!important;border-color:var(--a11y-accent)!important}
