/* Visualized Missouri Public Schools — shared styles */
/* Sibling of the Four-Day School Week Resource Center template.
   Distinct accent: deep slate blue (#1C3D5A) primary, goldenrod (#C6851E) kickers,
   azure (#2F80C4) accent/hover. Same fonts, neutrals, and section patterns. */
* { box-sizing: border-box; }
/* Smooth scrolling only for in-page interaction — keeps load-time anchor jumps instant and reliable */
html:focus-within { scroll-behavior: smooth; }
/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 92px; }
body { margin: 0; background: #FBFAF8; font-family: 'Libre Franklin', sans-serif; color: #1a1416; }
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Newsreader', serif; font-weight: 500; }
.lnk { transition: color .15s ease; }
.lnk:hover { color: #2F80C4 !important; }
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.09); }
.wrap { max-width: 1280px; margin: 0 auto; background: #FBFAF8; }

/* Masthead */
.masthead { display:flex; align-items:center; justify-content:space-between; padding:20px 56px; border-bottom:1px solid #ECE7E2; position:sticky; top:0; background:rgba(251,250,248,0.92); backdrop-filter:blur(8px); z-index:20; }
.masthead .logo-box { width:38px; height:38px; background:#1C3D5A; border-radius:7px; display:flex; align-items:center; justify-content:center; color:#fff; font-family:'Newsreader',serif; font-weight:600; font-size:20px; line-height:1; }
.masthead .site-name { font-weight:700; font-size:14px; letter-spacing:0.06em; color:#1a1416; line-height:1.15; }
.masthead .site-sub { font-size:11px; letter-spacing:0.18em; color:#9a8f8f; }
.nav-links { display:flex; align-items:center; gap:20px; font-size:13.5px; font-weight:500; color:#3a3335; }
.nav-links .btn { background:#1C3D5A; color:#fff; padding:9px 16px; border-radius:5px; font-weight:600; }
.nav-links a.active { color:#1C3D5A; font-weight:700; }
/* Header logo image (PNG lockup) — keep original proportions, never distorted */
.masthead .logo-link { display:block; line-height:0; }
.masthead .site-logo { display:block; height:52px; width:auto; max-width:100%; object-fit:contain; }
@media (max-width:600px) { .masthead .site-logo { height:38px; } }

/* Page hero */
.page-hero { padding: 58px 56px 40px; border-bottom:1px solid #ECE7E2; }
.page-hero .kicker { font-size:12.5px; font-weight:700; letter-spacing:0.16em; color:#2F80C4; margin-bottom:14px; }
.page-hero h1 { font-family:'Newsreader',serif; font-weight:500; font-size:44px; line-height:1.08; letter-spacing:-0.01em; margin:0 0 16px; }
.page-hero p.lede { font-size:17px; line-height:1.6; color:#4a4245; max-width:760px; margin:0; }

/* Sections */
.section { padding: 54px 56px; }
.section.sand { background:#F4EFEA; border-top:1px solid #ECE7E2; border-bottom:1px solid #ECE7E2; }
.section h2 { font-family:'Newsreader',serif; font-weight:500; font-size:30px; margin:0 0 10px; }
.section .kicker { font-size:12.5px; font-weight:700; letter-spacing:0.14em; color:#C6851E; margin-bottom:12px; }
.section p, .section li { font-size:15px; line-height:1.65; color:#3a3335; }
.section .lede { font-size:16.5px; line-height:1.6; color:#4a4245; max-width:760px; }

/* Tableau / chart embed slots */
.embed-slot { margin-top:26px; border:2px dashed #C3CEDA; border-radius:14px; background:#fff; background-image:linear-gradient(#F6F8FB 1px, transparent 1px), linear-gradient(90deg, #F6F8FB 1px, transparent 1px); background-size:34px 34px; min-height:440px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:44px 32px; }
.embed-slot .es-glyph { width:64px; height:64px; border-radius:14px; background:#1C3D5A; color:#fff; display:flex; align-items:center; justify-content:center; font-size:30px; margin-bottom:20px; }
.embed-slot .es-tag { font-size:11.5px; font-weight:700; letter-spacing:0.16em; color:#C6851E; margin-bottom:10px; }
.embed-slot .es-title { font-family:'Newsreader',serif; font-size:23px; line-height:1.28; color:#1a1416; max-width:560px; margin-bottom:12px; }
.embed-slot .es-help { font-size:13.5px; line-height:1.6; color:#7a726f; max-width:520px; }
.embed-slot .es-help code { background:#F1EEE9; border-radius:4px; padding:1px 6px; font-size:12.5px; color:#1C3D5A; }
/* When a real embed is present, let it fill the slot cleanly */
.embed-slot.filled { display:block; padding:0; border-style:solid; border-color:#ECE7E2; background:#fff; background-image:none; overflow:hidden; }
.embed-slot.filled iframe { width:100%; min-height:640px; border:0; display:block; }

/* Live Tableau embed frame (used when a real dashboard replaces a placeholder slot) */
.viz-embed { margin-top:26px; border:1px solid #ECE7E2; border-radius:14px; overflow:hidden; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,0.05); position:relative; }
/* Scroll shield: covers the map so page-scroll works; click to interact, mouse-out to release */
.viz-shield { position:absolute; top:0; left:0; right:0; bottom:0; z-index:5; cursor:pointer; background:transparent; display:flex; align-items:flex-start; justify-content:center; }
.viz-embed.viz-active .viz-shield { pointer-events:none; opacity:0; }
.viz-shield-hint { margin-top:16px; background:rgba(28,61,90,0.9); color:#fff; font-size:12px; font-weight:600; letter-spacing:0.03em; padding:7px 14px; border-radius:20px; opacity:0; transition:opacity .18s ease; box-shadow:0 4px 14px rgba(0,0,0,0.18); }
.viz-embed:hover .viz-shield-hint { opacity:1; }
.viz-reset { position:absolute; left:12px; bottom:52px; z-index:7; background:rgba(255,255,255,0.96); color:#1C3D5A; border:1px solid #cdd6de; border-radius:20px; font-size:12px; font-weight:600; padding:6px 13px; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,0.14); font-family:inherit; opacity:0; transition:opacity .18s ease; }
.viz-embed:hover .viz-reset { opacity:1; }
.viz-reset:hover { background:#1C3D5A; color:#fff; border-color:#1C3D5A; }

/* Dime test calculator */
.dime-calc { margin-top:40px; background:#fff; border:1px solid #ECE7E2; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,0.05); padding:30px 30px 34px; }
.dc-kicker { font-size:12.5px; font-weight:700; letter-spacing:0.14em; color:#C6851E; margin-bottom:8px; }
.dc-controls { display:grid; grid-template-columns:1fr 1fr; gap:18px 22px; margin-bottom:26px; }
.dc-field { display:flex; flex-direction:column; gap:6px; }
.dc-field label { font-size:13px; font-weight:600; color:#5a5250; }
.dc-field select { padding:10px 12px; font-size:14.5px; border:1px solid #cdd6de; border-radius:8px; background:#fff; color:#1a1416; font-family:inherit; }
.dc-levy { grid-column:1 / -1; }
.dc-levy input[type=range] { width:100%; accent-color:#1C3D5A; margin-top:6px; }
.dc-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.dc-card { background:#EAF0F6; border-radius:12px; padding:22px 24px; }
.dc-name { font-size:13px; font-weight:700; letter-spacing:0.04em; color:#1C3D5A; text-transform:uppercase; margin-bottom:10px; min-height:32px; line-height:1.2; }
.dc-big { font-family:'Newsreader',serif; font-weight:600; font-size:40px; color:#1C3D5A; line-height:1; }
.dc-big .cent { color:#2F80C4; }
.dc-sub { font-size:13.5px; color:#5a5250; margin-top:7px; }
.dc-meta { font-size:12.5px; color:#7a726f; margin-top:12px; border-top:1px solid #d3dde6; padding-top:10px; line-height:1.5; }
.dc-compare { margin-top:18px; background:#1C3D5A; color:#fff; border-radius:10px; padding:16px 20px; font-size:15.5px; line-height:1.55; }
.dc-compare strong { color:#EAF7FA; }
@media (max-width:700px) { .dc-controls { grid-template-columns:1fr; } }
.viz-embed .tableauPlaceholder { width:100% !important; }
.viz-embed iframe { width:100%; border:0; display:block; }  /* NB: never set a min-height here — it fights the tableau-viz width/height attributes and crops the map */
.viz-caption { font-size:13px; line-height:1.55; color:#7a726f; margin-top:12px; }
.subhead { font-family:'Newsreader',serif; font-weight:600; font-size:19px; color:#1C3D5A; margin-top:26px; }

/* "What this page means for you" — audience lenses */
.means { background:#1C3D5A; color:#fff; padding:54px 56px; }
.means .kicker { font-size:12.5px; font-weight:700; letter-spacing:0.14em; color:#E9B44C; margin-bottom:12px; }
.means h2 { font-family:'Newsreader',serif; font-weight:500; font-size:30px; margin:0 0 10px; color:#fff; }
.means .lede { font-size:16.5px; line-height:1.6; color:#C7D5E2; max-width:760px; margin:0 0 30px; }
.means-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; align-items:stretch; }
.means-card { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:12px; padding:24px 24px 22px; }
.means-card .mc-who { font-size:11.5px; font-weight:700; letter-spacing:0.12em; color:#E9B44C; margin-bottom:12px; text-transform:uppercase; }
.means-card p { font-size:14.5px; line-height:1.6; color:#E4ECF3; margin:0 0 12px; }
.means-card p:last-child { margin-bottom:0; }
.means-card strong { color:#fff; }
.means-ask { margin-top:30px; background:rgba(0,0,0,0.18); border-left:4px solid #E9B44C; border-radius:8px; padding:24px 26px; }
.means-ask .ma-title { font-size:12.5px; font-weight:700; letter-spacing:0.12em; color:#E9B44C; margin-bottom:14px; text-transform:uppercase; }
.means-ask ul { margin:0; padding-left:20px; }
.means-ask li { font-size:14.5px; line-height:1.65; color:#E4ECF3; margin-bottom:9px; }
.means-ask li:last-child { margin-bottom:0; }
@media (max-width:760px) { .means-grid { grid-template-columns:1fr; } }
@media (max-width:600px) { .means { padding:40px 22px; } }

/* Browse-by-theme cards (home page) */
.theme-card { display:block; background:#fff; border:1px solid #ECE7E2; border-radius:14px; padding:26px 26px 24px; }
.theme-card .tc-kicker { font-size:11.5px; font-weight:700; letter-spacing:0.12em; color:#C6851E; margin-bottom:12px; }
.theme-card .tc-title { font-size:22px; line-height:1.2; color:#1a1416; margin-bottom:10px; }
.theme-card .tc-desc { font-size:14px; line-height:1.55; color:#5a5250; margin-bottom:16px; }
.theme-card .tc-go { font-size:13.5px; font-weight:700; color:#2F80C4; }

/* Stat chips (placeholder key figures) */
.stat-band { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:26px; }
.stat-chip { background:#fff; border:1px solid #ECE7E2; border-radius:12px; padding:22px 24px; }
.stat-chip .num { font-family:'Newsreader',serif; font-weight:600; font-size:34px; color:#1C3D5A; line-height:1; }
.stat-chip .num .accent { color:#2F80C4; }
.stat-chip .lab { font-size:13.5px; color:#5a5250; line-height:1.5; margin-top:10px; }
.stat-chip .src { font-size:11.5px; color:#a79f9c; letter-spacing:0.04em; margin-top:8px; text-transform:uppercase; }

/* Resource / link rows */
.res-list { display:grid; gap:14px; margin-top:24px; }
.res-row { display:flex; gap:18px; align-items:flex-start; border:1px solid #ECE7E2; border-radius:10px; padding:20px 22px; background:#fff; }
.res-row .glyph { width:42px; height:42px; flex:0 0 auto; background:#EAF0F6; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#1C3D5A; font-weight:700; font-size:17px; }
.res-row .t { font-weight:700; font-size:15.5px; color:#1a1416; margin-bottom:3px; }
.res-row .d { font-size:13.5px; color:#7a726f; line-height:1.5; }

/* Callout box */
.callout { background:#fff; border:1px solid #ECE7E2; border-left:4px solid #1C3D5A; border-radius:8px; padding:22px 26px; margin-top:22px; font-size:14.5px; line-height:1.65; color:#4a4245; }

/* Footer */
footer { background:#1a1416; color:#9a8f8f; padding:36px 56px; display:flex; align-items:center; justify-content:space-between; font-size:13px; flex-wrap:wrap; gap:14px; }
footer a { color:#AEC2D6; }

/* Contact band */
.contact-band { padding:56px; background:#F4EFEA; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }

.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display:none !important; }
  .grid-2, .grid-3, .hero-grid { grid-template-columns:1fr !important; display:grid !important; }
  .hero-media { min-height:300px !important; }
  .masthead, .section, .page-hero, .contact-band, footer { padding-left:24px !important; padding-right:24px !important; }
  h1.hero { font-size:40px !important; }
  .page-hero h1 { font-size:34px; }
  .stat-band { grid-template-columns:1fr !important; }
}

/* Home-page "find your district" search */
.hp-find { margin:34px 0 0; max-width:640px; }
.hp-find-lab { font-size:12px; font-weight:700; letter-spacing:0.14em; color:#C6851E; margin-bottom:10px; }
.hp-find-sub { font-size:13.5px; line-height:1.55; color:#8b8480; margin-top:10px; }
.hp-search { position:relative; }
.hp-input { width:100%; box-sizing:border-box; font-family:'Libre Franklin',sans-serif; font-size:17px;
  padding:16px 18px; border:2px solid #D9D2CB; border-radius:10px; background:#fff; color:#1a1416; }
.hp-input:focus { outline:none; border-color:#2F80C4; box-shadow:0 0 0 4px rgba(47,128,196,0.12); }
.hp-menu { position:absolute; z-index:50; top:100%; left:0; right:0; margin-top:6px; background:#fff;
  border:1px solid #E5DFD8; border-radius:10px; box-shadow:0 12px 34px rgba(0,0,0,0.13);
  max-height:320px; overflow-y:auto; display:none; text-align:left; }
.hp-menu.open { display:block; }
.hp-opt { padding:11px 16px; font-size:15px; cursor:pointer; border-bottom:1px solid #F3EFEA; }
.hp-opt:last-child { border-bottom:none; }
.hp-opt:hover, .hp-opt.sel { background:#EFF5FA; }
.hp-opt .hp-sub { display:block; font-size:12.5px; color:#8b8480; margin-top:2px; }
.hp-none { padding:14px 16px; font-size:14px; color:#8b8480; }

/* --- data table (levy elections, funding.html) --- */
.datatable { width:100%; border-collapse:collapse; margin-top:22px; font-size:14.5px; background:#fff; border:1px solid #ECE7E2; border-radius:8px; overflow:hidden; }
.datatable thead th { background:#F7F4F1; text-align:left; padding:12px 16px; font-size:12.5px; letter-spacing:.04em; text-transform:uppercase; color:#6b6560; font-weight:600; border-bottom:1px solid #ECE7E2; }
.datatable td { padding:11px 16px; border-bottom:1px solid #F3EFEA; color:#4a4245; }
.datatable tbody tr:last-child td { border-bottom:none; }
.datatable tbody tr:hover { background:#FAF8F6; }
.datatable td em { color:#B23A48; font-style:normal; font-weight:600; }
@media (max-width:640px){ .datatable { font-size:13px; } .datatable td, .datatable thead th { padding:9px 10px; } }

/* ── Map posters: click-to-load Tableau (see maps.js) ───────────────────────── */
.viz-poster { position:relative; display:block; width:100%; cursor:pointer; outline:none; }
.viz-poster-img { display:block; width:100%; height:auto; }
.viz-poster::after {
  content:''; position:absolute; inset:0; background:rgba(28,61,90,0.05);
  transition:background .18s ease; pointer-events:none;
}
.viz-poster:hover::after, .viz-poster:focus-visible::after { background:rgba(28,61,90,0.11); }
.viz-poster:focus-visible { box-shadow:inset 0 0 0 3px #C6851E; }

.viz-load-btn {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:3;
  display:inline-flex; align-items:center; gap:9px;
  background:#1C3D5A; color:#fff; border:0; border-radius:26px;
  font-family:inherit; font-size:14.5px; font-weight:600; letter-spacing:0.01em;
  padding:13px 26px; cursor:pointer; white-space:nowrap;
  box-shadow:0 6px 22px rgba(0,0,0,0.28); transition:background .16s ease, transform .16s ease;
}
.viz-load-btn:hover { background:#C6851E; transform:translate(-50%,-50%) scale(1.04); }
.viz-load-btn:focus-visible { outline:3px solid #C6851E; outline-offset:3px; }
.vlb-ico { font-size:11px; }

.viz-fallback {
  position:absolute; right:12px; bottom:12px; z-index:3;
  background:rgba(255,255,255,0.94); color:#1C3D5A; text-decoration:none;
  font-size:12px; font-weight:600; padding:6px 12px; border-radius:16px;
  border:1px solid #cdd6de; opacity:0; transition:opacity .18s ease;
}
.viz-poster:hover .viz-fallback { opacity:1; }
.viz-poster.is-slow .viz-fallback { opacity:1; border-color:#C6851E; color:#8a5a10; }

.viz-poster.is-loading .viz-load-btn { display:none; }
.viz-poster.is-loading .viz-poster-img { filter:grayscale(0.35) opacity(0.55); }
.viz-spin {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:4;
  display:inline-flex; align-items:center; gap:10px;
  background:rgba(255,255,255,0.96); color:#1C3D5A; border-radius:24px;
  font-size:13.5px; font-weight:600; padding:11px 22px;
  box-shadow:0 4px 18px rgba(0,0,0,0.16);
}
.viz-spin-dot {
  width:11px; height:11px; border-radius:50%; border:2px solid #C6851E;
  border-top-color:transparent; animation:vizspin .7s linear infinite;
}
@keyframes vizspin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .viz-spin-dot { animation:none; } }

/* the shield/reset belong to a LIVE map only */
.viz-embed.has-poster .viz-shield, .viz-embed.has-poster .viz-reset { display:none; }

@media (max-width: 720px) {
  .viz-load-btn { font-size:13px; padding:11px 20px; }
  .viz-fallback { opacity:1; font-size:11px; }
}

/* ── Data tables (where a map would mislead) ────────────────────────────────── */
.tbl-wrap { margin-top:22px; overflow-x:auto; border:1px solid #ECE7E2; border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,0.04); }
table.dtable { border-collapse:collapse; width:100%; min-width:640px; }
table.dtable th, table.dtable td {
  padding:12px 16px; text-align:right; font-size:13.5px;
  font-variant-numeric:tabular-nums; color:#3a3335; border-bottom:1px solid #F1EEE9; white-space:nowrap;
}
table.dtable th {
  font-size:12px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
  color:#5a5250; background:#FAF8F5; border-bottom:2px solid #ECE7E2;
}
table.dtable th:first-child, table.dtable td:first-child { text-align:left; font-weight:600; }
table.dtable tbody tr:hover { background:#FAF8F5; }
table.dtable tr.tbl-total td { border-top:2px solid #ECE7E2; border-bottom:0; color:#1C3D5A; font-weight:600; background:#FCFBF9; }

/* ===== Homepage hero grid + SVG district map (2026-07-13 redesign) ===== */
.hero-grid { display:grid; grid-template-columns: minmax(0,7fr) minmax(0,6fr); gap:44px; align-items:start; }
.hero-stats { display:flex; gap:26px; flex-wrap:wrap; margin-top:22px; }
.hero-stats .hs { font-size:13px; color:#5a5250; }
.hero-stats .hs b { display:block; font-family:'Newsreader',serif; font-weight:600; font-size:24px; color:#1C3D5A; line-height:1.1; }
.hero-map-card { background:#fff; border:1px solid #ECE7E2; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,0.06); padding:18px 18px 14px; }
.hero-map-card .hm-head { font-size:11px; font-weight:700; letter-spacing:0.12em; color:#C6851E; margin-bottom:10px; }
.hero-map-slot { min-height:320px; }
.hero-map-svg { width:100%; height:auto; display:block; }
.hero-map-svg path { stroke:#FBFAF8; stroke-width:0.5; cursor:pointer; transition:opacity .12s ease; }
.hero-map-svg path:hover { stroke:#1a1416; stroke-width:1.1; opacity:0.88; }
.hm-legend { display:flex; align-items:center; gap:10px; margin-top:12px; font-size:11.5px; color:#5a5250; flex-wrap:wrap; }
.hm-legend .hm-bar { flex:0 0 110px; height:10px; border-radius:5px; background:linear-gradient(90deg,#B4552D,#F7F5F2,#1C3D5A); border:1px solid #ECE7E2; }
.hm-legend .hm-note { margin-left:auto; color:#9a8f8f; }
.step-card { position:relative; padding-top:58px !important; }
.step-card .sc-num { position:absolute; top:18px; left:22px; width:34px; height:34px; border-radius:50%; background:#1C3D5A; color:#fff; font-family:'Newsreader',serif; font-weight:600; font-size:19px; display:flex; align-items:center; justify-content:center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap:30px; }
  .hero-map-card { order:-1; }
}

/* ===== Full-width hero banner (AI-illustrated, title in artwork) ===== */
.hero-banner { line-height:0; border-bottom:1px solid #ECE7E2; }
.hero-banner img { width:100%; height:auto; display:block; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Banner title overlay: real HTML text over the no-title artwork */
.hero-banner { position:relative; }
.hero-banner .hb-title { position:absolute; top:9%; left:50%; transform:translateX(-50%);
  width:92%; text-align:center; color:#1C3D5A; font-weight:600; line-height:1.05;
  letter-spacing:-0.01em; font-size:clamp(22px, 4.6vw, 64px);
  text-shadow:0 1px 0 rgba(251,250,248,0.65), 0 0 18px rgba(251,250,248,0.5); }

/* ── PHASE 2: trust & polish ────────────────────────────────────────────────── */

/* Key findings block (top of each topic page) */
.keyfind { margin-top:30px; background:#fff; border:1px solid #ECE7E2; border-left:4px solid #1C3D5A;
  border-radius:12px; padding:24px 28px 22px; box-shadow:0 8px 24px rgba(0,0,0,0.04); }
.keyfind h3 { font-family:'Libre Franklin',sans-serif; font-size:12px; font-weight:700;
  letter-spacing:0.14em; text-transform:uppercase; color:#C6851E; margin:0 0 14px; }
.keyfind ul { margin:0; padding:0; list-style:none; }
.keyfind li { position:relative; padding-left:26px; margin-bottom:11px; font-size:15.5px;
  line-height:1.6; color:#3a3335; }
.keyfind li:last-child { margin-bottom:0; }
.keyfind li::before { content:'\2014'; position:absolute; left:0; top:0; color:#C6851E; font-weight:700; }

/* "Data current as of" badge row */
.vintage { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; padding-top:16px; border-top:1px solid #F1EEE9; }
.vintage .vlabel { font-size:11.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:#9a8f8f; align-self:center; margin-right:4px; }
.vtag { display:inline-block; font-size:11.5px; font-weight:600; color:#5a5250; background:#F5F2ED;
  border:1px solid #ECE7E2; border-radius:14px; padding:4px 11px; white-space:nowrap; }
.vtag b { color:#1C3D5A; font-weight:700; }

/* Sticky "On this page" nav (long pages) */
.onthispage { position:sticky; top:0; z-index:5; background:rgba(253,252,250,0.96);
  backdrop-filter:saturate(180%) blur(8px); border-bottom:1px solid #ECE7E2;
  margin:0 -56px 0; padding:11px 56px; }
.onthispage ul { display:flex; gap:20px; flex-wrap:wrap; list-style:none; margin:0; padding:0; align-items:center; }
.onthispage .otp-lab { font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:#9a8f8f; }
.onthispage a { font-size:13px; font-weight:600; color:#5a5250; text-decoration:none; padding:3px 0;
  border-bottom:2px solid transparent; transition:color .15s, border-color .15s; }
.onthispage a:hover, .onthispage a:focus-visible { color:#1C3D5A; border-bottom-color:#C6851E; }
.onthispage a.otp-on { color:#1C3D5A; border-bottom-color:#1C3D5A; }
@media (max-width:860px){ .onthispage { margin:0 -20px; padding:10px 20px; } .onthispage ul { gap:14px; } }

/* Evidence labels (Tone Policy) */
.ev { margin-top:22px; border-left:3px solid #ECE7E2; padding:2px 0 2px 18px; }
.ev + .ev { margin-top:16px; }
.ev-h { font-size:11.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:6px; }
.ev-data   { border-left-color:#2F80C4; } .ev-data .ev-h   { color:#2F80C4; }
.ev-interp { border-left-color:#C6851E; } .ev-interp .ev-h { color:#C6851E; }
.ev-limit  { border-left-color:#9a8f8f; } .ev-limit .ev-h  { color:#7a726f; }
.ev p { margin:0; font-size:15px; line-height:1.65; color:#3a3335; }

/* Footer disclaimer */
.disclaimer { font-size:12.5px; line-height:1.6; color:#8a8280; max-width:820px; margin-top:14px; }
.disclaimer strong { color:#5a5250; }

/* Corrections page */
.corr { border:1px solid #ECE7E2; border-radius:12px; background:#fff; padding:22px 26px; margin-top:20px;
  box-shadow:0 6px 18px rgba(0,0,0,0.035); }
.corr-date { font-size:12px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:#C6851E; }
.corr h3 { margin:6px 0 10px; font-family:'Newsreader',serif; font-size:21px; color:#1C3D5A; }
.corr .chg { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px; background:#F5F2ED;
  border:1px solid #ECE7E2; border-radius:6px; padding:3px 9px; display:inline-block; margin:3px 6px 3px 0; }
.corr .chg .was { color:#B4552D; text-decoration:line-through; }
.corr .chg .now { color:#1C6B3F; font-weight:700; }

/* Plain-language legend under a poster/map */
.maplegend { font-size:13px; line-height:1.6; color:#5a5250; margin-top:10px;
  background:#FAF8F5; border:1px solid #F1EEE9; border-radius:8px; padding:10px 14px; }
.maplegend b { color:#1C3D5A; }

/* masthead must always sit above the sticky on-page nav */
.masthead { position:relative; z-index:30; background:#FDFCFA; }

/* Masthead: compact wordmark instead of the large logo image, so the nav has room */
.logo-link { text-decoration:none; flex:0 0 auto; }
.wordmark { font-family:'Newsreader',serif; font-weight:600; font-size:19px; color:#1C3D5A;
  letter-spacing:0.01em; white-space:nowrap; }
.logo-link:hover .wordmark { color:#C6851E; }
.masthead { gap:26px; }
.nav-links { flex:1 1 auto; justify-content:flex-end; }
/* "Show-Me Missouri Schools" is longer than the old wordmark, so step it down before
   it can crowd the nav tabs (the complaint that got the logo removed in the first place). */
@media (max-width:1180px){ .wordmark { font-size:17px; } .masthead { gap:18px; } .nav-links { gap:15px; } }
@media (max-width:900px){ .wordmark { font-size:16px; } .masthead { gap:14px; } }

/* ===== Share rows (sharing pilot 2026-07-13) ===== */
.share-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:18px; }
.sh-lab { font-size:12px; font-weight:700; letter-spacing:0.08em; color:#9a8f8f; margin-right:2px; }
.sh-btn { display:inline-block; font-family:inherit; font-size:12.5px; font-weight:600; color:#1C3D5A;
  background:#fff; border:1px solid #cdd6de; border-radius:18px; padding:7px 14px; cursor:pointer;
  text-decoration:none; line-height:1; transition:background .15s,color .15s,border-color .15s; }
.sh-btn:hover { background:#1C3D5A; color:#fff; border-color:#1C3D5A; }
.sh-btn.sh-native { background:#1C3D5A; color:#fff; border-color:#1C3D5A; }
.sh-btn.sh-native:hover { background:#2F80C4; border-color:#2F80C4; }
