/* Twin Cities atlas direction — 2026-11-19. Loaded after revision.css.
   Presentation only: no data, selection, or disclosure logic lives here.
   Colors approximate observed Council styling; they are proposed values,
   not official brand standards. id-prefixed selectors intentionally outrank
   the runtime styles injected by revision.js. */

:root{--heading:'Bahnschrift','Trebuchet MS','Segoe UI',sans-serif;--masthead:#005A8B;--masthead-text:#FFFFFF;--masthead-dim:#90BAD3;--masthead-accent:#08766F}

/* ---- Display typography ---- */
h1,h2,.area-heading,.brand{font-family:var(--heading)}
h1{letter-spacing:-.02em}
h2{letter-spacing:-.01em}

/* ---- Bold Council-blue masthead ---- */
.masthead{background:var(--masthead);border-bottom:4px solid var(--masthead-accent)}
.brand{color:var(--masthead-text);font-size:30px;letter-spacing:0}
.brand small{color:var(--masthead-dim)}
.navigation button{color:var(--masthead-dim)}
.navigation button:hover{color:var(--masthead-text)}
.navigation button[aria-current=page]{color:var(--masthead-text);border-color:var(--masthead-text)}
.masthead :focus-visible{outline-color:#ffd166}
.notice{border-top:0;background:#eef4f8}

/* ---- Overview: question-led hero ---- */
#overview .overview-hero h1{font-size:clamp(34px,3.2vw,44px);line-height:1.12;max-width:24ch}

/* ---- Explorer: calmer filter strip ---- */
.filters{background:var(--paper)}
.state-label{color:var(--muted);font-weight:400}

/* ---- Desktop atlas composition: map field + integrated evidence column ---- */
@media(min-width:769px){
#results{grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr);grid-template-areas:"map evidence" "map trend" "tabs tabs" "table table";gap:24px 40px;align-items:start}
#results .map-panel{grid-area:map}
#results .area-panel{grid-area:evidence}
#results .trend-panel{grid-area:trend;grid-column:auto}
#results .results-tabs{grid-area:tabs}
#results .table-panel{grid-area:table;grid-column:auto}

/* Map is the primary field: let it breathe */
#results .map-panel .map-svg{max-height:none}
.map-svg text{font-size:17px}

/* Evidence column: hierarchy from type and rules, not boxes */
#results .area-panel{border:0;background:none;border-radius:0}
#results .area-panel .panel-body{padding:0;gap:10px}
#results .area-heading{font-size:30px;letter-spacing:-.01em}
#results .value-block{border:0;padding:4px 0}
#results .area-panel .value{font-size:clamp(38px,3.6vw,52px);letter-spacing:-.02em}
#results .reading-note{background:none;padding:12px 0 0;border-top:1px solid var(--faint)}

#results .trend-panel{border:0;background:none;border-radius:0;border-top:1px solid var(--line);padding-top:16px}
#results .trend-panel .panel-head{background:none;border:0;padding:0 0 8px;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
#results .trend-panel .panel-head h2{font-size:22px}
#results #trend-subtitle{display:none}
#results .trend-panel .tag{border:0;background:none;padding:0;color:var(--muted)}
#results .trend-panel .panel-body{padding:0}
#results .trend-panel .chart-layout{grid-template-columns:1fr;gap:10px}
#results .chart-svg{min-height:0}
#results .chart-summary{background:none;padding:0;font-size:13px;display:flex;flex-wrap:wrap;gap:4px 24px}
}

/* Large numerals stay tabular and ink-colored everywhere */
.value{font-family:var(--heading);color:var(--ink);font-weight:600}

/* ---- Creative pass, 2026-11-19 ---- */

/* Map layer reveal: staged entrance only when first arriving at the explorer.
   setView() in index.html adds/removes .reveal-in; ordinary re-renders from
   filter changes do not carry the class, so they repaint instantly. */
#map.reveal-in .layer-boundary{opacity:0;animation:od-layer-in .26s ease-out 0s forwards}
#map.reveal-in .layer-routes{opacity:0;animation:od-layer-in .26s ease-out .09s forwards}
#map.reveal-in .layer-stations{opacity:0;animation:od-layer-in .26s ease-out .18s forwards}
@keyframes od-layer-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#map.reveal-in .layer-boundary,#map.reveal-in .layer-routes,#map.reveal-in .layer-stations{animation:none;opacity:1}}

/* Narrative sentence beside the value */
#narrative-sentence{margin-top:2px}

/* Compare field matches the other filter controls; no overrides needed */

/* Recurring caveat mark beside "Movement is not displacement." */
.caveat-icon{color:var(--warning);margin-right:6px;vertical-align:-3px;flex:none}
