/* ESVI reading and contrast controls. Solid action colors avoid gradient edge failures. */
:root{--focus-light:#f3d18b;--reading-bg:#101927;--reading-text:#e4e0d6;--reading-link:#f3d18b}
html{scroll-behavior:auto!important}
body :is(.eyebrow,.seal-overline,.mono-kicker,.mono-tag,.panel-no,.seal-section-num,.story-ad-label){color:#f3d18b!important}
body :is(button,.seal-button.gold,.nav-action,.next-question){background:#f3d18b!important;color:#101927!important;text-shadow:none!important;box-shadow:none!important;border:1px solid #f3d18b!important}
body :is(.seal-button.outline,.seal-nav-action){background:#101927!important;color:#f3d18b!important;text-shadow:none!important;box-shadow:none!important;border:1px solid #f3d18b!important}
body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #f3d18b!important;outline-offset:4px;box-shadow:0 0 0 6px #101927!important}
body :is(.seal-orbit,.seal-orbit:after,.mirror:after){animation:none!important}
body a:not([class]){text-decoration:underline;text-underline-offset:.18em}
.esvi-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px max(22px,calc((100vw - 1120px)/2));background:#101927;color:#e4e0d6;border-bottom:1px solid #8796a8;font:14px/1.5 system-ui,sans-serif;position:relative;z-index:5}
.esvi-tools label{margin:0;font:700 14px/1.5 system-ui,sans-serif}.esvi-tools select{background:#e4e0d6;color:#101927;border:1px solid #8796a8;font:inherit;padding:6px 9px;width:auto}.esvi-tools a{color:#f3d18b!important;margin-left:auto;text-decoration:underline!important}.esvi-tools button{font:700 14px/1.5 system-ui,sans-serif;padding:6px 10px;cursor:pointer}
html[data-reading=dim] body,html[data-reading=paper] body{background:var(--reading-bg)!important;color:var(--reading-text)!important}
html[data-reading=paper]{--reading-bg:#e4dbc8;--reading-text:#142339;--reading-link:#18365e}
html[data-reading=dim] body :is(header,footer,main,section,article,aside,fieldset,blockquote,figure,nav,.question-panel,.attribution-cell,.attribution-axis,.character-card,.story-ad,.result,.urgent,.mono-fact,.mono-evidence-panel,.attribution-chart),html[data-reading=paper] body :is(header,footer,main,section,article,aside,fieldset,blockquote,figure,nav,.question-panel,.attribution-cell,.attribution-axis,.character-card,.story-ad,.result,.urgent,.mono-fact,.mono-evidence-panel,.attribution-chart){background:var(--reading-bg)!important;background-image:none!important;color:var(--reading-text)!important;box-shadow:none!important;text-shadow:none!important}
html[data-reading] body :is(p,span,li,label,legend,dt,dd,small,h1,h2,h3,h4,strong,em,blockquote,figcaption,td,th){color:var(--reading-text)!important;text-shadow:none!important}
html[data-reading] body a{color:var(--reading-link)!important;text-shadow:none!important}
html[data-reading] body :is(input,select,textarea){background:#e4e0d6!important;color:#101927!important;border-color:#8796a8!important}
html[data-reading] body :is(button,.seal-button.gold,.nav-action,.next-question){background:#f3d18b!important;color:#101927!important}
html[data-reading] body :is(.seal-button.outline,.seal-nav-action){background:var(--reading-bg)!important;color:var(--reading-link)!important}
html[data-reading] .esvi-tools,html[data-reading] .esvi-tools label{background:#101927!important;color:#e4e0d6!important}html[data-reading] .esvi-tools a{color:#f3d18b!important}
html[data-reading] body :is(.seal-orbit:before,.seal-orbit:after,.question-mark){box-shadow:none!important}
html[data-reading] body .question-mark{background:var(--reading-bg)!important;color:var(--reading-text)!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.esvi-tools{display:none!important}html[data-reading] body,html[data-reading] body *{background:white!important;color:#111!important;box-shadow:none!important;text-shadow:none!important}a{color:#111!important}}
/* Corrections found by the rendered-page contrast audit. */
body .homepage-nav .recognition-path a:nth-child(2),body .homepage-nav .recognition-path a:hover,body .triage-nav{background:#f3d18b!important;background-image:none!important;color:#101927!important;text-shadow:none!important;box-shadow:none!important}
body .seal-reach,body .date-rule{color:#d4d9de!important}
body .image-card{background:#101927!important;color:#e4e0d6!important}
body .image-card>span,body .mirror-tile>span{background:#101927;padding:10px;border-radius:3px}
body .image-card :is(b,small,strong){color:#e4e0d6!important}
body .question-panel .panel-no,body .statement .kicker,body .records-head .kicker{color:#513910!important}
body .statement p,body .records-head p{color:#31414e!important}
body .chain p{color:#cad3dc!important}
body .crescendo{background:#101927!important;background-image:none!important}
body .crescendo-rule,body .final-line span{color:#e4e0d6!important}
body .storyboard .number,body .number{background:#101927!important;color:#e4e0d6!important}
html[data-reading] body .image-card>span,html[data-reading] body .mirror-tile>span{background:var(--reading-bg)!important}
html[data-reading] body .image-card :is(b,small,strong),html[data-reading] body .question-panel .panel-no,html[data-reading] body .statement .kicker,html[data-reading] body .records-head .kicker{color:var(--reading-text)!important}
html[data-reading=paper] body :is(.recognition-path a,.triage-nav){background:#f3d18b!important;color:#101927!important}
html[data-reading] body .chain p,html[data-reading] body .statement p,html[data-reading] body .records-head p,html[data-reading] body .date-rule,html[data-reading] body .seal-reach,html[data-reading] body .final-line span,html[data-reading] body .crescendo-rule{color:var(--reading-text)!important}
html[data-reading] body .crescendo{background:var(--reading-bg)!important}
/* Reading modes intentionally remove decorative backgrounds and gradients. Inline clinical illustrations remain visible. */
html[data-reading] body :is(*,#reading-surface){background-color:transparent!important;background-image:none!important;color:var(--reading-text)!important;box-shadow:none!important;text-shadow:none!important}
html[data-reading] body :is(a,#reading-surface){color:var(--reading-link)!important}
html[data-reading] body :is(input,select,textarea,#reading-surface){background:#e4e0d6!important;color:#101927!important}
html[data-reading] body :is(button,.action,.btn.primary,.seal-button.gold,.nav-action,.next-question,.triage-nav,.recognition-path a,#reading-action){background:#f3d18b!important;color:#101927!important}
html[data-reading] body :is(.skip-link,.image-card>span,.mirror-tile>span,#reading-caption){background:var(--reading-bg)!important;color:var(--reading-text)!important}
html[data-reading] body :is(.esvi-tools,#reading-tools){background:var(--reading-bg)!important;color:var(--reading-text)!important;border-bottom:1px solid currentColor}
html[data-reading] body *{transition:none!important;animation:none!important}
@media print{html[data-reading] body,html[data-reading] body :is(*,#reading-surface){background:white!important;background-image:none!important;color:#111!important;box-shadow:none!important;text-shadow:none!important}}
