/* Hallmark · theme: custom · redesign: full · shape: linked scientific atlas · idea: "A comparison becomes a reproducible experiment" · hero: real terrain and live conditional counts · signature: change one threshold and watch the same records change meaning · posture: full-palette · v2.0.0 */
/* Hallmark · waive 49b · app scope · source table citations keep the agency link readable inside a narrow column; wrapping does not truncate its target or turn it into an action label. */
/* Hallmark · waive 24b · app scope · scientific atlas controls preserve measured optical padding and mature map positions across the regression checks. */
/* Critique: remove the empty opening and repeated dark panels; place real counts, depth and reproducibility at the centre. */
/* Hallmark · waive 39b · app scope · full chart cells are actionable comparisons; the user requested larger text and command heights follow readable line boxes. */
/* Hallmark · waive 44c · custom composition · the real map is inside opening after the text; screenshot shows it in the first mobile screen and all desktop folds. */
/* Hallmark · waive 59 · app scope · reading, controls and plots use different measures; a scientific workspace needs more than a marketing copy column. */
/* Hallmark · waive 77 · app scope · 92px chapter spacing keeps map controls and the matching evidence near each other. */
/* Hallmark · waive 78 · app scope · dataset tables and dense conditional experiments are necessary product tasks, not promotional sections. */
/* Hallmark · waive 79 · custom composition · hero extends through the real data map; its measured text block alone is not the hero boundary. */
/* Waivers: original data labels retain their exact units and separators; geographic rasters and data plots are the real material, no stock imagery. Legacy styles remain for regression safety. */
/* Review: hero-review fix, 1 resolved; finish-review fix, 3 resolved after same-state screenshot check. */
[hidden]{display:none!important}
.brush-a{background:var(--atlas-a-wash)}
.brush-b{background:var(--atlas-b-wash)}
.evidence-card .evidence-conclusion{font-size:clamp(24px,2.3vw,34px);line-height:1.5;margin:var(--space-md) 0 32px;max-width:28em;font-weight:600}
@media(min-width:1101px){ul.source-links{grid-template-columns:repeat(3,minmax(0,1fr))}}
html,body{overflow-x:clip}
html{scroll-padding-top:96px;scrollbar-color:var(--atlas-a) var(--atlas-panel)}
body{background:var(--atlas-ground);color:var(--atlas-ink);font-family:var(--font);font-size:var(--atlas-body);line-height:1.7;caret-color:var(--atlas-a)}
::selection{background:var(--atlas-a);color:var(--atlas-light)}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;letter-spacing:-.025em;min-width:0;overflow-wrap:break-word;text-wrap:balance}
button,input,select,textarea{font:inherit;border-radius:var(--atlas-radius)}
button,a,input,select,textarea{touch-action:manipulation}
button:not(:disabled),a{transition:background-color var(--atlas-fast),color var(--atlas-fast),transform var(--atlas-fast)}
:is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--atlas-focus);outline-offset:4px;transition:none}
button:disabled{opacity:.5;cursor:not-allowed}
button:active:not(:disabled),a.button:active{transform:translateY(1px)}
a{text-underline-offset:.25em}
.site-header{height:76px;max-width:none;position:sticky;top:0;z-index:30;padding:12px max(var(--atlas-gutter),calc((100% - var(--page-width))/2));background:var(--atlas-paper);color:var(--atlas-ink);border-bottom:1px solid var(--atlas-rule)}
.site-header .wordmark{font-size:26px;font-weight:600;letter-spacing:-.035em}
.site-header nav{gap:28px}
.site-header nav a{color:var(--atlas-muted);font-size:var(--atlas-small);min-height:44px;display:flex;align-items:center}
.site-header nav a[aria-current]{color:var(--atlas-ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px}
.site-header .motion-toggle{background:var(--atlas-panel);color:var(--atlas-ink);min-height:44px;font-size:var(--atlas-small)}
.narrative-world{display:block;background:var(--atlas-ground);position:relative;isolation:isolate}
.narrative-world .hero{display:block;margin:0 auto;min-height:0;height:auto;padding:44px var(--atlas-gutter) 36px;max-width:calc(var(--page-width) + 2 * var(--atlas-gutter));width:100%;pointer-events:auto;color:var(--atlas-ink);background:var(--atlas-ground)}
.hero .hero-copy{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--grid-gap);width:100%;max-width:none;pointer-events:auto}
.hero-heading{grid-column:1/7}
.hero .hero-heading h1{font-size:var(--atlas-display);line-height:1.17;margin:0;font-weight:600}
.hero .hero-statement{font-size:var(--atlas-lead);margin:var(--space-sm) 0 0;line-height:1.5}
.hero .hero-statement br{display:none}
.hero-invitation{grid-column:8/-1;align-self:center}
.hero .hero-description{display:block;font-size:var(--atlas-body);line-height:1.8;margin:0;max-width:38ch}
.hero .hero-actions{margin-top:var(--space-md);gap:20px;align-items:center}
.hero .hero-actions .primary{background:var(--atlas-ink);color:var(--atlas-light);font-size:var(--atlas-body);min-height:48px;padding:12px var(--space-md)}
.hero .hero-history{color:var(--atlas-ink);font-size:var(--atlas-small);min-height:44px;background:var(--atlas-transparent);padding:var(--space-xs) 4px;border-bottom:1px solid var(--atlas-ink)}
.hero .hero-source{display:block;font-size:var(--atlas-small);color:var(--atlas-muted);line-height:1.65;margin:20px 0 0;max-width:50ch}
.narrative-world .world-stage{position:relative;top:auto;inset:auto;height:clamp(450px,58vh,650px);min-height:450px;max-width:var(--page-width);width:calc(100% - 2 * var(--atlas-gutter));margin:0 auto;overflow:clip;z-index:1;background:var(--atlas-dark)}
.world-stage .geographic-scene{position:absolute;inset:0;margin:0;height:100%}
.world-stage .geographic-scene::after{display:none}
.world-stage .geographic-scene .map-shell{inset:0;left:22%;right:0;height:100%;background:var(--atlas-dark)}
.world-stage .geographic-scene .map-shell svg{width:100%;height:100%;max-height:none;object-fit:cover}
.world-stage .geographic-scene .map-shell .scale{display:none}
.world-stage .geographic-scene .map-shell .anchor text{font-size:23px}
.world-stage .geographic-scene .map-shell .place-labels text{font-size:26px;stroke-width:2px}
.world-stage .geographic-scene .map-shell svg>text:first-of-type{display:none}
.world-stage .scene-credit{bottom:18px;right:24px;left:auto;max-width:35ch;font-size:var(--atlas-small);color:var(--atlas-soft-light)}
.hero-comparison{position:absolute;inset:0 auto 0 0;width:35%;min-width:330px;padding:32px;background:var(--atlas-dark);color:var(--atlas-light);display:flex;flex-direction:column;justify-content:center;z-index:2}
.hero-comparison h2{font-size:26px;font-weight:500;margin:0 0 12px;line-height:1.4}
.hero-comparison p{margin:var(--space-xs) 0;font-size:var(--atlas-small);color:var(--atlas-soft-light);line-height:1.65}
.hero-count-pair{display:flex;gap:var(--space-md);align-items:center;margin:var(--space-xs) 0}
.hero-count-pair>div{display:flex;flex-direction:column}
.hero-count-pair span{font-size:var(--atlas-small)}
.hero-count-pair strong{font-size:clamp(52px,4.7vw,72px);font-weight:500;line-height:1.2;font-variant-numeric:tabular-nums}
.hero-count-pair .pair-divider{font-size:42px;color:var(--atlas-soft-light);align-self:flex-end;margin-bottom:12px}
.hero-thresholds{display:flex;flex-wrap:wrap;gap:var(--space-xs);margin:var(--space-xs) 0}
.hero-thresholds button{font-size:var(--atlas-small);min-height:44px;padding:var(--space-xs) 12px;color:var(--atlas-light);background:var(--atlas-transparent);border:1px solid var(--atlas-context)}
.hero-thresholds button[aria-pressed=true]{background:var(--atlas-light);color:var(--atlas-ink);border-color:var(--atlas-light)}
.hero-comparison a{font-size:var(--atlas-small);margin:12px 0 var(--space-xs);min-height:36px;color:var(--atlas-light)}
.hero-comparison .preview-source{font-size:var(--atlas-small);margin-top:var(--space-sm)}
.world-stage .scene-console{display:none;left:24px;right:24px;bottom:24px;background:var(--atlas-dark);color:var(--atlas-light);font-size:var(--atlas-small)}
.world-stage.history-mode .scene-console{display:grid}
.world-stage.history-mode .hero-comparison{display:none}
.world-stage.history-mode .geographic-scene .map-shell{left:0}
.world-stage.history-mode .scene-credit{top:18px;bottom:auto}
.hero-return{display:none;position:absolute;left:24px;top:20px;z-index:4;min-height:44px;background:var(--atlas-light);color:var(--atlas-ink);padding:var(--space-xs) var(--space-sm)}
.history-mode .hero-return{display:block}
.narrative-world .story{position:relative;width:100%;max-width:calc(var(--page-width) + 2 * var(--atlas-gutter));margin:0 auto;padding:var(--atlas-section) var(--atlas-gutter);color:var(--atlas-ink);background:var(--atlas-ground);pointer-events:auto;min-height:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:28px var(--grid-gap)}
.story>.section-intro{grid-column:1/6;margin:0}
.story .section-intro h2{font-size:var(--atlas-title);max-width:12ch;line-height:1.3}
.story .section-intro p{font-size:var(--atlas-body);color:var(--atlas-muted);max-width:35ch}
.story-layout{grid-column:1/6;grid-row:2/4}
.story-map-inline{grid-column:6/-1;grid-row:1/3;aspect-ratio:960/660;background:var(--atlas-panel);align-self:center}
.story-map-inline svg{width:100%;display:block}
.story .story-controls{display:flex;max-width:none;gap:var(--space-xs)}
.story .story-controls button{color:var(--atlas-ink);background:var(--atlas-panel);font-size:var(--atlas-small);min-height:44px;padding:var(--space-xs) var(--space-sm)}
.story .story-controls button[aria-pressed=true]{background:var(--atlas-ink);color:var(--atlas-light)}
.story .story-scope,.story .story-actions span{color:var(--atlas-muted);font-size:var(--atlas-small)}
.story .story-current{min-height:0;margin-top:20px}
.story .big-count{color:var(--atlas-ink);margin:0}
.story .big-count>span:first-child{font-size:68px;font-weight:500}
.story .big-count .unit{font-size:var(--atlas-small);color:var(--atlas-muted)}
.story-current h3{font-size:26px;margin:var(--space-xs) 0}
.story .story-current>p:last-child{color:var(--atlas-muted);font-size:var(--atlas-body);min-height:0;max-width:36ch}
.story .story-finding{font-size:var(--atlas-small);color:var(--atlas-muted);max-width:40ch}
.story .story-actions .button{background:var(--atlas-ink);color:var(--atlas-light)}
.story a{color:var(--atlas-ink);font-size:var(--atlas-body)}
.story .weekly-chart{grid-column:6/-1;max-width:none;margin:0}
.story .weekly-chart svg text{fill:var(--atlas-ink)}
.chapter.light-section{padding-left:var(--atlas-gutter);padding-right:var(--atlas-gutter);max-width:calc(var(--page-width) + 2 * var(--atlas-gutter));margin:0 auto;background:var(--atlas-paper)}
.explore{padding-top:var(--atlas-section);padding-bottom:var(--atlas-section)}
.section-intro h2,.explore>.section-intro h2,.evidence .section-intro h2{font-size:var(--atlas-title);font-weight:600;line-height:1.3}
.section-intro p{color:var(--atlas-muted);font-size:var(--atlas-body)}
.guided-lab{background:var(--atlas-panel);padding:36px;margin-bottom:var(--space-lg)}
.guided-lab h3{font-size:32px;max-width:20ch}
.guide-intro{align-items:start}
.guide-progress{margin:var(--space-md) 0 32px}
.guide-progress li{font-size:var(--atlas-small)}
.guide-work{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.guide-counts strong{font-size:54px}
.condition-bar{background:var(--atlas-dark);color:var(--atlas-light);padding:20px var(--space-md);gap:20px}
.condition-bar>p{font-size:var(--atlas-small);color:var(--atlas-light)}
.advanced-conditions>summary{color:var(--atlas-light);font-size:var(--atlas-small)}
.advanced-conditions .filters{color:var(--atlas-ink);background:var(--atlas-paper);box-shadow:var(--atlas-shadow);border:1px solid var(--atlas-rule);z-index:22}
.explorer-layout{gap:var(--grid-gap);grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.explore-map-panel{background:var(--atlas-ground);padding:var(--space-md)}
.comparison-panel{padding:0;background:var(--atlas-transparent)}
.window-summary>div{background:var(--atlas-a-wash);padding:var(--space-sm) 20px}
.window-summary>div.b{background:var(--atlas-b-wash)}
.window-summary strong{font-size:68px;line-height:1.2;font-weight:500}
.timeline-panel{background:var(--atlas-ground);padding:var(--space-md)}
.timeline .window-brush{touch-action:none}
.analysis-section,.factor-section{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--space-md);padding-top:var(--atlas-section);margin-top:var(--atlas-section);border-top:1px solid var(--atlas-rule)}
.analysis-intro,.factor-intro{grid-column:1/5}
.analysis-intro h3,.factor-intro h3,.sensitivity h3,.evidence-replay h3{font-size:var(--atlas-title);font-weight:600;line-height:1.3;margin:0 0 20px;max-width:11ch}
.analysis-intro p,.factor-intro p{font-size:var(--atlas-body);color:var(--atlas-muted);max-width:40ch}
.depth-statistics{display:flex;flex-direction:column;gap:12px;margin:28px 0}
.depth-statistics p{margin:0;font-size:var(--atlas-small)}
.depth-statistics strong{display:block;font-size:34px;color:var(--atlas-ink);font-weight:500}
.depth-visual,.factor-visual{grid-column:5/-1;min-width:0;background:var(--atlas-ground);padding:var(--space-md)}
.chart-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:var(--atlas-small)}
.chart-heading [role=group]{display:flex;flex-wrap:wrap;gap:var(--space-xs)}
.chart-heading button{padding:var(--space-xs) var(--space-sm);min-height:44px;background:var(--atlas-paper);color:var(--atlas-ink)}
.chart-heading button[aria-pressed=true]{background:var(--atlas-ink);color:var(--atlas-light)}
#depth-canvas{display:block;width:100%;height:390px;margin:var(--space-sm) 0;touch-action:pan-y;cursor:crosshair}
#depth-status{min-height:3.4em;color:var(--atlas-ink);font-size:var(--atlas-small);margin-bottom:var(--space-xs)}
.annotation{font-size:var(--atlas-small)!important;line-height:1.7;color:var(--atlas-muted)}
.factor-intro label{display:block;font-size:var(--atlas-small);margin:var(--space-md) 0 var(--space-sm)}
.factor-intro select{display:block;margin-top:var(--space-xs);padding:12px var(--space-sm);min-height:44px;background:var(--atlas-paper);border:1px solid var(--atlas-rule);color:var(--atlas-ink);width:100%}
.factor-legend{display:flex;gap:var(--space-md);flex-wrap:wrap;font-size:var(--atlas-small);margin-bottom:var(--space-md)}
.factor-legend .legend-a{color:var(--atlas-a)}
.factor-legend .legend-b{color:var(--atlas-b)}
.factor-chart{display:grid;grid-template-columns:repeat(var(--factor-count,5),minmax(0,1fr));gap:12px;align-items:end}
.factor-cell{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:12px;background:var(--atlas-transparent);padding:12px var(--space-xs);color:var(--atlas-ink);min-height:240px;border:1px solid var(--atlas-transparent)}
.factor-cell[aria-pressed=true]{background:var(--atlas-paper);border-color:var(--atlas-ink)}
.factor-cell:hover{background:var(--atlas-panel)}
.factor-bars{display:flex;height:150px;align-items:end;justify-content:center;gap:var(--space-xs)}
.factor-bars i{display:block;width:clamp(10px,2vw,25px);background:var(--atlas-a);height:var(--bar-height)}
.factor-bars i:last-child{background:var(--atlas-b)}
.factor-counts{font-size:var(--atlas-small);line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
.factor-value{font-size:var(--atlas-body);font-weight:500}
#factor-summary{font-size:var(--atlas-body);margin-top:var(--space-md)}
.sensitivity{position:relative;gap:var(--grid-gap);padding-top:var(--atlas-section);margin-top:var(--atlas-section);border-top:1px solid var(--atlas-rule);grid-template-columns:minmax(0,1fr) minmax(0,1.8fr)}
.matrix-summary{grid-column:2;max-width:70ch;font-size:var(--atlas-small);color:var(--atlas-muted);margin-top:12px}
.matrix button{min-height:84px}
.evidence{padding-top:var(--atlas-section);padding-bottom:var(--atlas-section)}
.evidence-card{background:var(--atlas-panel);padding:32px;box-shadow:none}
.evidence-replay{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--grid-gap);margin-top:48px;padding-top:48px;border-top:1px solid var(--atlas-rule)}
.evidence-replay h3{max-width:15ch;font-size:34px}
.evidence-replay p{font-size:var(--atlas-body);max-width:55ch}
.file-control{display:block;font-size:var(--atlas-body);color:var(--atlas-ink)}
.file-control input{display:block;margin-top:var(--space-sm);max-width:100%;padding:12px;background:var(--atlas-ground);font-size:var(--atlas-small)}
.replay-controls #replay-status{min-height:3.4em;font-size:var(--atlas-small);margin:20px 0}
.replay-controls .invalid{color:var(--atlas-danger)}
.closing{background:var(--atlas-dark);color:var(--atlas-light);padding-top:52px;padding-bottom:52px}
.closing h2{font-size:38px;max-width:20ch}
.data-sources{background:var(--atlas-dark);color:var(--atlas-light)}
.data-sources h2{font-size:34px}
.source-links{font-size:var(--atlas-small)}
.learning-resources{background:var(--atlas-ground);padding-top:var(--space-xl);padding-bottom:var(--space-xl)}
.learning-resources h2{font-size:38px}
.site-footer{background:var(--atlas-paper);color:var(--atlas-muted);font-size:var(--atlas-small)}
.site-footer p span{font-size:var(--atlas-small)}
body.resource-page{background:var(--atlas-ground);color:var(--atlas-ink)}
.resource-header{background:var(--atlas-paper);color:var(--atlas-ink);border-bottom:1px solid var(--atlas-rule);font-family:var(--font)}
.resource-header nav{font-size:var(--atlas-small)}
.resource-main{max-width:1120px}
.resource-main>h1{font-size:var(--atlas-title);max-width:18ch}
.resource-main h2{font-size:30px;font-weight:600}
.resource-main .resource-lead{font-size:var(--atlas-lead)}
.resource-main button{min-height:44px}
.study-embed .analysis-section,.study-embed .factor-section{margin-top:48px;padding-top:48px}
@media(min-width:1700px){.hero .hero-copy{align-items:center}.hero .hero-heading h1{font-size:68px}.narrative-world .hero{padding-top:48px;padding-bottom:44px}.narrative-world .world-stage{height:600px}}
@media(max-width:1100px){.site-header nav{gap:var(--space-sm)}.hero-invitation{grid-column:7/-1}.hero-comparison{width:40%;min-width:300px;padding:var(--space-md)}.world-stage .geographic-scene .map-shell{left:25%}.explorer-layout{grid-template-columns:minmax(0,1fr)}.comparison-panel{display:block}.analysis-intro,.factor-intro{grid-column:1/5}.depth-visual,.factor-visual{grid-column:5/-1}.factor-chart{gap:4px}.factor-cell{padding:12px 4px}.factor-counts{font-size:15px}.factor-legend{gap:var(--space-sm)}.sensitivity{grid-template-columns:minmax(0,1fr)}.sensitivity>div:first-child{max-width:60ch}.matrix-summary{grid-column:1}.analysis-intro h3,.factor-intro h3{font-size:34px}.depth-visual,.factor-visual{padding:20px}}
@media(max-width:767px){html{scroll-padding-top:120px}.site-header{height:auto;min-height:106px;gap:var(--space-xs) var(--space-sm);padding:12px 20px;display:grid;grid-template-columns:1fr auto}.site-header nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;gap:var(--space-xs)}.site-header nav a{font-size:14px;min-height:36px}.site-header .wordmark{font-size:24px}.site-header .motion-toggle{font-size:14px;min-height:36px;padding:var(--space-xs) 12px}.narrative-world .hero{padding-top:28px;padding-bottom:28px}.hero .hero-copy{display:block}.hero .hero-heading h1{font-size:44px;line-height:1.2}.hero .hero-statement{font-size:var(--atlas-small);margin-top:12px}.hero-invitation{margin-top:20px}.hero .hero-description{font-size:17px;line-height:1.7;max-width:42ch}.hero .hero-description br{display:none}.hero .hero-actions{margin-top:20px}.hero .hero-source{display:none}.narrative-world .world-stage{width:100%;height:650px;min-height:0;display:block;overflow:clip}.hero-comparison{position:relative;width:100%;min-width:0;height:350px;padding:var(--space-md) var(--atlas-gutter);display:grid;grid-template-columns:1fr 1fr;gap:4px var(--space-sm);align-content:start}.hero-comparison h2{grid-column:1/-1;font-size:26px;margin-bottom:4px}.hero-comparison>p:first-of-type{grid-column:1/-1;margin:0}.hero-count-pair{grid-column:1;margin:var(--space-xs) 0;gap:var(--space-sm)}.hero-count-pair strong{font-size:52px}.hero-count-pair .pair-divider{font-size:30px}.hero-thresholds{grid-column:2;grid-row:3/5;display:flex;flex-direction:column;justify-content:center;gap:var(--space-xs);margin:var(--space-xs) 0}.hero-thresholds button{padding:4px var(--space-xs);min-height:36px}.hero-comparison #preview-scope{grid-column:1;font-size:14px;margin:0}.hero-comparison #preview-description{grid-column:1/-1;margin:0;font-size:var(--atlas-small)}.hero-comparison #preview-apply{grid-column:1/-1;margin:var(--space-xs) 0 0;min-height:34px}.hero-comparison .preview-source{display:none}.world-stage .geographic-scene{top:350px;height:300px}.world-stage .geographic-scene .map-shell{left:0;right:0;height:300px}.world-stage .geographic-scene .map-shell svg{height:300px}.world-stage .geographic-scene .map-shell .anchor text{font-size:26px}.world-stage .geographic-scene .map-shell .place-labels text{font-size:30px}.world-stage .scene-credit{font-size:14px;max-width:none;bottom:10px;left:20px;right:20px}.world-stage.history-mode .geographic-scene{top:0;height:420px}.world-stage.history-mode .geographic-scene .map-shell,.world-stage.history-mode .geographic-scene .map-shell svg{height:420px}.world-stage.history-mode .scene-console{left:20px;right:20px;bottom:20px;padding:var(--space-sm);display:grid;grid-template-columns:1fr;gap:var(--space-sm)}.world-stage.history-mode .scene-now{display:none}.world-stage.history-mode .scene-play-note{font-size:14px}.world-stage.history-mode .scene-console>button{min-height:36px;grid-column:1}.world-stage.history-mode .scene-time label,.world-stage.history-mode .scene-time label output,.world-stage.history-mode .scene-weeks button,.world-stage.history-mode .scene-weeks button span{font-size:14px}.world-stage.history-mode .scene-credit{display:none}.narrative-world .story{display:flex;flex-direction:column;padding:52px var(--atlas-gutter);gap:var(--space-md)}.story>.section-intro{order:0}.story .section-intro h2{max-width:15ch;font-size:34px}.story .section-intro p{font-size:17px}.story-layout{order:1}.story-map-inline{order:2;width:100%}.story .weekly-chart{order:3;width:100%}.story .story-controls button{padding:var(--space-xs) 12px}.story .big-count>span:first-child{font-size:56px}.story .story-current>p:last-child{max-width:none}.chapter.light-section{padding-left:20px;padding-right:20px}.section-intro h2,.explore>.section-intro h2,.evidence .section-intro h2{font-size:34px}.guided-lab{padding:var(--space-md) 20px;margin-bottom:28px}.guided-lab h3{font-size:26px}.guide-work{display:block}.guide-reading{margin-top:var(--space-md)}.guide-counts strong{font-size:44px}.condition-bar{padding:var(--space-sm);gap:12px}.condition-bar>p{font-size:14px}.advanced-conditions>summary{font-size:14px}.advanced-conditions[open] .filters{position:fixed;width:auto;max-width:none;left:20px;right:20px;top:120px}.explore-map-panel{padding:var(--space-sm) 12px}.comparison-panel .window-summary strong{font-size:54px}.timeline-panel{padding:20px 12px}.analysis-section,.factor-section{display:block;margin-top:52px;padding-top:52px}.analysis-intro h3,.factor-intro h3{font-size:34px;max-width:14ch}.analysis-intro p,.factor-intro p{max-width:none}.depth-statistics{flex-direction:row;gap:var(--space-md);margin:var(--space-md) 0}.depth-statistics p{font-size:14px}.depth-statistics strong{font-size:26px}.depth-visual,.factor-visual{padding:var(--space-sm) 12px;margin-top:28px}.chart-heading{font-size:14px}.chart-heading button{font-size:var(--atlas-small);padding:var(--space-xs) 12px}#depth-canvas{height:320px}.factor-chart{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-xs)}.factor-cell{min-height:185px;padding:12px var(--space-xs)}.factor-bars{height:100px}.factor-bars i{width:22px}.factor-counts{font-size:15px}.factor-legend{gap:var(--space-sm);font-size:15px}.matrix-summary{font-size:var(--atlas-small)}.sensitivity{margin-top:52px;padding-top:52px}.sensitivity h3{font-size:34px;max-width:14ch}.matrix button{min-height:90px}.evidence-card{padding:20px}.evidence-replay{display:block;margin-top:36px;padding-top:36px}.evidence-replay h3{font-size:30px}.replay-controls{margin-top:28px}.closing h2,.learning-resources h2{font-size:32px}.site-footer{padding-top:32px;padding-bottom:32px}.resource-header{padding:var(--space-sm) 20px}.resource-header nav{gap:var(--space-sm)}.resource-main{padding-top:32px}.resource-main>h1{font-size:38px}.resource-main h2{font-size:26px}.resource-main .resource-lead{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;animation-iteration-count:1!important}}

.hero .hero-description,.hero .hero-statement{color:var(--atlas-ink)}
.hero-count-pair strong,.hero-count-pair .pair-divider,.story .big-count>span,.guide-counts strong,.depth-statistics strong{font-variant-numeric:tabular-nums}
.hero-count-pair>div:first-child strong{color:var(--atlas-a-light)}
.hero-count-pair>div:last-child strong{color:var(--atlas-b-light)}
#space-canvas{display:block;width:100%;height:390px;touch-action:none;cursor:grab;margin:var(--space-sm) 0}
#space-canvas:active{cursor:grabbing}
#space-controls{display:flex;flex-wrap:wrap;gap:12px var(--space-md);align-items:center;font-size:var(--atlas-small);margin:20px 0}
#space-controls select{margin-left:12px;padding:var(--space-xs);min-height:44px;background:var(--atlas-paper);border:1px solid var(--atlas-rule);color:var(--atlas-ink)}
#space-controls button{min-height:44px;padding:var(--space-xs) var(--space-sm);background:var(--atlas-paper);color:var(--atlas-ink)}
#space-controls p{flex-basis:100%;margin:0}
.depth-legend{display:flex;flex-wrap:wrap;gap:var(--space-md);font-size:var(--atlas-small);margin:12px 0}
.depth-legend .legend-a{color:var(--atlas-a)}
.depth-legend .legend-b{color:var(--atlas-b)}
.depth-legend .legend-overlap{color:var(--atlas-overlap)}
@media(max-width:767px){#space-canvas{height:320px}}

.world-stage .geographic-scene image,.story-map-inline image,.light-map image:not(.map-events image){filter:grayscale(1)}
.matrix .scale-0{background:var(--atlas-panel);color:var(--atlas-muted)}
.matrix .scale-1,.matrix .scale-2{background:var(--atlas-a-wash);color:var(--atlas-ink)}
.matrix .scale-3,.matrix .scale-4{background:var(--atlas-b-wash);color:var(--atlas-ink)}
.scope-note,.map-help,.map-viewport-note{font-family:var(--font);font-size:var(--atlas-small);color:var(--atlas-muted);line-height:1.7;max-width:70ch}
.scope-note{display:grid;grid-template-columns:1fr;row-gap:4px}
.scope-note .scope-line{display:block}
.condition-bar .advanced-conditions[open] summary{color:var(--atlas-light)}
@media(max-width:767px){
 .narrative-world .hero{padding-top:20px;padding-bottom:var(--space-md)}
 .hero .hero-copy{gap:0;min-height:0}
 .hero .hero-heading h1{font-size:34px;line-height:1.2}
 .hero .hero-statement{display:none}
 .hero-invitation{margin-top:var(--space-sm)}
 .hero .hero-description{font-size:16px;line-height:1.65}
 .hero .hero-actions{margin-top:var(--space-sm)}
 .hero .hero-actions .primary{font-size:16px;min-height:44px;padding:var(--space-xs) var(--space-sm)}
 .hero-comparison{height:280px;padding:20px;gap:0 var(--space-sm)}
 .hero-comparison h2{font-size:24px}
 .hero-comparison p{font-size:15px}
 .hero-comparison .hero-count-pair{margin:4px 0;gap:12px}
 .hero-count-pair strong{font-size:44px}
 .hero-thresholds{gap:4px}
 .hero-thresholds button{min-height:36px}
 .hero-comparison #preview-apply{font-size:15px;min-height:32px;margin-top:4px}
 .world-stage .geographic-scene{top:280px;height:300px}
 .narrative-world .world-stage{height:580px}
}

.science-replay figure{margin:28px 0}.science-replay video{display:block;width:100%;aspect-ratio:16/9;background:var(--atlas-paper)}.science-replay figcaption{font-size:var(--atlas-small);color:var(--atlas-muted);margin-top:var(--space-sm);line-height:1.7}

.hero .hero-copy{padding:0}
.china-method:not([open])>:not(summary),.record-list:not([open])>:not(summary),.advanced-conditions:not([open])>:not(summary){display:none}
.china-method[open] .catalog-layout p,.china-method[open] .catalog-layout span,.china-method[open] .section-intro p{color:var(--atlas-ink)!important}
.china-method[open] .catalog-sources a{color:var(--atlas-ink);background:var(--atlas-panel)}
.advanced-conditions .filters select,.record-toolbar select{border:1px solid var(--atlas-muted)}
.hero>#world-stage{width:100%;margin:32px auto 0}
.site-footer p,.site-footer span,.site-footer a{color:var(--atlas-muted)}
.china-method[open]{background:var(--atlas-paper);color:var(--atlas-ink);padding:32px}
.china-method[open] p,.china-method[open] span,.china-method[open] h3,.china-method[open] strong,.china-method[open] a{color:var(--atlas-ink)}
.china-method[open] summary{color:var(--atlas-ink)}
.advanced-conditions .filters{max-width:min(580px,calc(100dvw - 40px));min-width:0}
.advanced-conditions .filters label{min-width:0;max-width:100%}
.advanced-conditions .filters select{width:100%;min-width:0;max-width:100%}
.preset-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.preset-group button{white-space:nowrap;font-size:15px;padding:var(--space-xs) 4px}
@media(max-width:767px){.advanced-conditions .filters{display:none}.advanced-conditions[open] .filters{display:grid;position:fixed;left:20px;right:20px;top:120px;width:auto;max-width:none;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}.hero>#world-stage{width:calc(100% + 40px);margin-left:-20px;margin-right:-20px;margin-top:28px}.china-method[open]{padding:20px}}

.world-stage :is(a,button,input):focus-visible{outline-color:var(--atlas-light)}
select,input:not([type=range]):not([type=checkbox]),textarea{border-color:var(--atlas-muted)}
.factor-intro select,#space-controls select{border-color:var(--atlas-muted)}
.site-footer>p:first-child span,.site-footer>p:nth-child(2),.site-footer>p:nth-child(2) a{color:var(--atlas-muted);opacity:1}
.site-footer>p:first-child{color:var(--atlas-ink)}
#observation-note{border:1px solid var(--atlas-muted)}
.data-sources .china-method .catalog-layout p,.data-sources .china-method .catalog-layout span{color:var(--atlas-ink)}
.data-sources .china-method[open]{background:var(--atlas-paper);color:var(--atlas-ink)}
.site-header nav a,.story .story-controls button{white-space:nowrap}
@media(max-width:374px){.site-header nav{gap:0;flex-wrap:wrap;justify-content:flex-start;column-gap:var(--space-sm);row-gap:0}.site-header nav a{font-size:14px;min-height:32px}.story .story-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Requested larger type: legacy controls follow the same readable product scale. */
.legend,.window-inputs label,.window-inputs input,.scope-note,.preset-group button,.comparison-panel .reading-context,.evidence-details,.evidence-card>p,.story-method p,.source-links a,.record-table th,.record-table td,.matrix button small{font-size:var(--atlas-small)}
.scope-note .scope-line{display:block}
.chart-svg text{font-size:16px}
.factor-counts{white-space:normal;text-wrap:balance}
.factor-scroll-hint{display:none}
#preview-scope span{display:inline-block;white-space:nowrap;margin-right:.5em}
.evidence-map{background:var(--atlas-ground)}
@media(min-width:1101px){.data-sources ul.source-links{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.hero-comparison{height:auto;min-height:310px}.world-stage .geographic-scene{top:310px}.narrative-world .world-stage{height:610px}.hero-thresholds button{min-height:40px}.hero-comparison #preview-scope{font-size:14px}.factor-chart{grid-template-columns:repeat(var(--factor-count,5),minmax(80px,1fr));overflow-x:auto;padding-bottom:12px}.factor-counts{white-space:normal}.chart-heading [role=group]{width:100%}}
@media(max-width:767px){.narrative-world .hero .hero-heading h1{font-size:44px}.factor-scroll-hint{display:block;font-size:14px;color:var(--atlas-muted);margin:0 0 var(--space-sm)}#preview-scope span{display:block}}
@media(max-width:767px){.narrative-world .world-stage:not(.history-mode){height:auto;display:flex;flex-direction:column}.world-stage:not(.history-mode) .hero-comparison{inset:auto;order:1;flex:none}.world-stage:not(.history-mode) .geographic-scene{position:relative;inset:auto;height:300px;order:2;flex:none}}
.data-sources ul.source-links{grid-template-columns:minmax(0,1fr)}
@media(max-width:767px){.factor-chart{padding-bottom:12px}}
.data-sources .sources-intro{grid-column:1;grid-row:1}
.data-sources .sources-intro h2{margin:0 0 20px}
.data-sources .sources-intro p{font-size:var(--atlas-body);color:var(--atlas-soft-light);max-width:52ch}
.data-sources .source-links{grid-column:2;grid-row:1}
.data-sources .china-method{grid-column:1/-1}
.closing{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px var(--space-lg);align-items:start}
.closing h2{grid-column:1;grid-row:1;max-width:none}
.closing p{grid-column:1;grid-row:2;max-width:60ch;font-size:var(--atlas-body);margin:0;color:var(--atlas-soft-light)}
.closing .button{grid-column:2;grid-row:1/3;align-self:center}
@media(max-width:767px){.closing{grid-template-columns:minmax(0,1fr)}.closing .button{grid-column:1;grid-row:3;justify-self:start}}

/* Keep action labels intact at small widths, using rows rather than squeezing Chinese text. */
.preset-group{display:flex;flex-wrap:wrap}
.preset-group button{white-space:nowrap;flex:1 1 140px}
.story .story-controls{flex-wrap:wrap}
.story .story-controls button{white-space:nowrap;flex:0 0 auto}
@media(max-width:480px){.case-tabs{display:grid;grid-template-columns:minmax(0,1fr)}.case-tabs button{white-space:nowrap}}
.resource-main .study-actions button{padding-inline:var(--space-sm)}

.resource-main button{padding-inline:var(--space-sm)}

.catalog-load-error{padding:var(--space-md);background:var(--atlas-b-wash);color:var(--atlas-ink);font-size:var(--atlas-small)}
.catalog-load-error a{text-decoration:underline}
.catalog-load-status{margin:0;color:var(--atlas-muted);font-size:var(--atlas-small)}
.catalog-load-status:not(:empty){margin-block:var(--space-sm)}
