/* AUSD Enrollment Impact Planning · K12 IQ
   Brand: AUSD red #7F010A, gold #93772C and text #333333 from ausd.us, on an all-white page. */


:root {
  --red: #7f010a;
  --red-dark: #5e0008;
  --red-soft: #f7f7f8;
  --gold: #93772c;
  --gold-bright: #d4af37; /* on-red accents only */
  --gold-ink: #6b561f; /* gold text on white (AA) */
  --gold-soft: #f7f7f8;
  --tint: #f7f7f8;
  --paper: #ffffff;
  --ink: #333333;
  --ink-2: #4b5563;
  --muted: #5f6670;
  --quiet: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  /* Chart roles: red is the primary projection; gold, then grays, for the rest. */
  --series-1: #93772c;
  --series-2: #6b7280;
  --series-3: #8b929c;
  --baseline: #333333;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 14px rgba(17, 24, 39, 0.04);
  --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 0.4em; font-weight: 600; }
h1, h2 { font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.01em; }
h2 { font-size: 26px; }
h3 { font-size: 19px; margin-top: 0.2em; }
h4 { font-size: 16px; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 0.9em; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

/* ---------- Chrome ---------- */
.masthead { background: var(--paper); border-bottom: 4px solid var(--red); display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px max(20px, calc((100vw - 1320px) / 2)); position: relative; }
.masthead::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; background: var(--gold); }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand img { width: 240px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); padding-left: 18px; }
.product { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--ink); }
.platform { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.platform b { color: var(--red); letter-spacing: 0.04em; }
.mast-right { display: flex; gap: 10px; align-items: center; }
/* Language menu (Google website translator, banner hidden) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang { position: relative; display: flex; align-items: center; }
.lang-icon { position: absolute; left: 10px; color: var(--ink-2); pointer-events: none; }
.lang-select { appearance: auto; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 7px 8px 7px 34px; font: 600 14px var(--sans); color: var(--ink); max-width: 210px; cursor: pointer; }
.lang-select:hover { border-color: var(--gold); }
body > .skiptranslate, iframe.goog-te-banner-frame, .goog-te-banner-frame, iframe.VIpgJd-ZVi9od-ORHb-OEVmcd, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.menu-toggle { display: none; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 8px 12px; font: 700 14px var(--sans); color: var(--ink); cursor: pointer; }

.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 26px; padding: 24px max(20px, calc((100vw - 1320px) / 2)) 40px; }
.sidenav { position: sticky; top: 14px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; }
.sidenav a .num { font: 700 11px var(--sans); color: var(--gold-ink); width: 18px; flex: none; }
.sidenav a:hover { background: var(--gold-soft); }
.sidenav a[aria-current='page'] { background: var(--red); color: #fff; }
.sidenav a[aria-current='page'] .num { color: var(--gold-bright); }
main { min-width: 0; outline: none; }
main:focus-visible { outline: none; }
.site-footer { border-top: 1px solid var(--line); padding: 22px max(20px, calc((100vw - 1320px) / 2)) 36px; font-size: 12.5px; color: var(--muted); }
.site-footer p { max-width: 1050px; }
.site-footer .footer-board { font-size: 11.5px; }
.module-note { margin: 26px 0 0; font-size: 12px; color: var(--quiet); }

/* ---------- Module scaffolding ---------- */
.mod-head { margin-bottom: 18px; }
.eyebrow { font: 700 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lede { font-size: 16.5px; color: var(--ink-2); max-width: 860px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.panel > h3:first-child, .panel > .panel-head:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: 320px minmax(0, 1fr); }
.grid > .panel { margin-bottom: 0; }
.stack-gap > * + * { margin-top: 18px; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--red-dark), var(--red) 60%, #9a1b22); color: #fff; border-radius: 22px; padding: 46px 40px 44px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -70px; top: -70px; width: 320px; height: 320px; border-radius: 50%; border: 38px solid rgba(212, 175, 55, 0.22); }
.hero::before { content: ''; position: absolute; right: 120px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.hero h1 { color: #fff; max-width: 820px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.015em; position: relative; z-index: 1; }
.hero p { color: #fff; max-width: 760px; font-size: 18px; margin: 14px 0 0; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-bright); position: relative; z-index: 1; }

/* Homepage stats and highlights */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 20px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat:nth-child(odd) { border-top-color: var(--red); }
.stat .s-value { font: 800 clamp(30px, 3.4vw, 42px)/1.05 var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.stat .s-label { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.stat .s-sub { font-size: 12.5px; color: var(--muted); }
.stat .status { align-self: flex-start; margin-top: 6px; }
.bubbles { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.bubbles li { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 16px 8px 10px; font-weight: 700; font-size: 14px; }
.bubbles svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--tint); color: var(--gold); }
.home-h { font-size: 22px; margin: 4px 0 12px; }

/* Module one-liners */
.live-line { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; font-weight: 500; font-size: 15px; color: var(--red); max-width: 860px; }
.live-line svg { flex: none; margin-top: 3px; color: var(--gold); }

/* KPI tiles */
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .k-label { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.kpi .k-value { font: 800 30px/1.1 var(--display); color: var(--red); }
.kpi .k-sub { font-size: 12.5px; color: var(--muted); }
.kpi .status { align-self: flex-start; }

/* Provenance labels: small and quiet. The dot carries the kind. */
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 7px; font: 500 10.5px/1.5 var(--sans); white-space: nowrap; vertical-align: middle; background: var(--tint); color: var(--muted); border: 1px solid var(--line); letter-spacing: 0.01em; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--dot, #9ca3af); flex: none; }
.st-verified { --dot: #2f7d46; }
.st-district { --dot: #5a68a8; }
.st-model { --dot: #2a78d6; }
.st-assumption { --dot: var(--gold); }
.st-input { --dot: #7a5ad6; }
.st-needed { background: none; border: 0; padding: 0; color: var(--quiet); font-style: italic; }
.st-needed::before { display: none; }
.st-scenario { --dot: var(--red); }
.st-third { --dot: #2f7a7c; }
.st-flag { background: var(--paper); color: var(--red); border-color: var(--red); font-weight: 700; --dot: var(--red); }
.legend-status { display: flex; flex-wrap: wrap; gap: 8px; }

/* Callouts */
.callout { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); margin: 0 0 16px; }
.callout.warn { background: var(--paper); border-color: var(--line); border-left: 4px solid var(--gold); }
.callout.info { background: var(--tint); border-color: var(--line); }
.callout b:first-child { color: var(--ink); }
.callout ul { margin: 6px 0 0; padding-left: 20px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type='number'], input[type='text'], select, textarea { font: 14px var(--sans); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 2px solid rgba(147, 119, 44, 0.2); }
input[type='range'] { width: 100%; accent-color: var(--red); }
input.needed { border-style: dashed; border-color: var(--line-2); }
input::placeholder, textarea::placeholder { color: var(--quiet); font-style: italic; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 13px; font: 700 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed='true'] { background: var(--red); color: #fff; }
.btn { border: 1px solid var(--red); background: var(--red); color: #fff; border-radius: 10px; padding: 9px 15px; font: 700 14px var(--sans); cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--red); }
.btn.ghost:hover { background: var(--red-soft); color: var(--red-dark); }
.btn.small { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.plain { border-color: var(--line-2); color: var(--ink-2); background: #fff; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.inline-controls .field { margin: 0; min-width: 150px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 500; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: 700 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--red); border-bottom-color: var(--red); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; background: #fff; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { background: var(--tint); font-weight: 700; color: var(--ink-2); position: sticky; top: 0; white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover { background: var(--tint); }
table.data tfoot td { font-weight: 700; background: var(--tint); }
table.data input { padding: 5px 7px; font-size: 13px; }
.flag-over { color: var(--red-dark); font-weight: 700; }
.flag-under { color: var(--gold-ink); font-weight: 700; }

/* Charts */
.chart { width: 100%; min-height: 120px; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11.5px var(--sans); }
.chart .direct { fill: var(--ink-2); font: 700 11.5px var(--sans); }
.chart .crosshair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .mark-line { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 3; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 2px; }
.sw.dashed { height: 3px; border-radius: 2px; }
.sw.dotted { height: 3px; border-radius: 2px; background-image: repeating-linear-gradient(90deg, transparent 0 2px, #fff 2px 4px) !important; }
.sw.ref { width: 2px; height: 12px; background: var(--ink-2); }
.viz-tip { position: fixed; z-index: 1000; display: none; pointer-events: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); max-width: 300px; color: var(--ink); }
.viz-tip strong { display: block; margin-bottom: 3px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row, .stack-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 88px; gap: 10px; align-items: center; font-size: 12.5px; padding: 2px 0; }
.stack-row { grid-template-columns: 150px minmax(0, 1fr); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-track, .stack-track { position: relative; height: 14px; background: #eef0f2; border-radius: 4px; display: flex; overflow: hidden; }
.stack-track { gap: 2px; background: transparent; }
.stack-track i { display: block; height: 100%; }
.stack-track i:first-child { border-radius: 4px 0 0 4px; }
.stack-track i:last-child { border-radius: 0 4px 4px 0; }
.bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.bar-ref { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink-2); z-index: 1; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
table.heat { border-collapse: separate; border-spacing: 2px; font-size: 12px; width: 100%; }
table.heat th { font-weight: 700; color: var(--muted); padding: 4px 6px; text-align: center; white-space: nowrap; }
table.heat tbody th { text-align: right; }
table.heat td { text-align: center; padding: 7px 4px; border-radius: 4px; font-variant-numeric: tabular-nums; min-width: 44px; }
table.heat td.empty { background: repeating-linear-gradient(45deg, #eef0f2, #eef0f2 4px, #fff 4px, #fff 8px); }

/* Map */
.map { height: 560px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.leaflet-container, .leaflet-popup-content { font: 13px/1.45 var(--sans); }
.leaflet-bar a { font-family: var(--sans) !important; }
.leaflet-popup-content h4 { margin: 0 0 4px; font-size: 14px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-top: 10px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* Scenario cards */
.scen-start { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 38px 24px; text-align: center; margin-bottom: 18px; border-top: 4px solid var(--gold); }
.scen-start h3 { font-size: 22px; }
.scen-start p { color: var(--ink-2); margin: 0 auto 18px; max-width: 560px; }
.scen-start .btn { font-size: 15px; padding: 11px 22px; }
.board-line { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.scen-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); margin-bottom: 16px; }
.scen-card > header { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.scen-card > header input { font: 600 17px var(--display); border: 1px solid transparent; padding: 4px 6px; max-width: 380px; }
.scen-card > header input:hover { border-color: var(--line-2); }
.scen-card .body { padding: 16px 18px; }
.scen-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.action { display: grid; grid-template-columns: 160px repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 12px; border: 1px dashed var(--line-2); border-radius: 10px; margin-bottom: 10px; background: var(--paper); }
.action .field { margin: 0; }
.grade-picks { display: flex; flex-wrap: wrap; gap: 3px; }
.grade-picks label { font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; cursor: pointer; background: #fff; }
.grade-picks input { display: none; }
.grade-picks label:has(input:checked) { background: var(--red); color: #fff; border-color: var(--red); }
.warnlist { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--gold-ink); }

.matrix td.cell-best { background: var(--tint); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mark.ok { background: var(--tint); color: #1f6a35; border: 1px solid var(--line); }
.mark.part { background: var(--tint); color: var(--gold-ink); border: 1px solid var(--line); }
.mark.no { background: var(--tint); color: var(--red); border: 1px solid var(--line); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 20px 40px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line-2); }
.timeline li.done::before { background: var(--gold); border-color: var(--gold); }
.timeline li.pending::before { border-color: var(--red); }
.timeline .when { font: 700 12px var(--sans); color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.08em; }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.flow a { text-decoration: none; color: inherit; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; font-size: 13px; position: relative; display: block; }
.flow a:hover { border-color: var(--gold); background: var(--tint); }
.flow a b { display: block; font-family: var(--display); font-size: 15px; color: var(--red); margin-bottom: 2px; }
.flow a:not(:last-child)::after { content: '→'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 700; z-index: 1; }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.modgrid a { text-decoration: none; color: inherit; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); display: block; }
.modgrid a:hover { border-color: var(--gold); }
.modgrid a .num { font: 700 11px var(--sans); color: var(--gold-ink); letter-spacing: 0.1em; }
.modgrid a h4 { margin: 4px 0; font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--ink); }
.modgrid a p { font-size: 13px; color: var(--muted); margin: 0; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 700; }

@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr); }
  .action { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow a::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .sidenav { display: none; position: static; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
  #app.nav-open .sidenav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .g3 { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .map { height: 420px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .brand img { width: 180px; }
  .masthead { flex-wrap: wrap; }
  .mast-right { margin-left: auto; }
  .lang-select { max-width: 150px; font-size: 16px; padding-top: 6px; padding-bottom: 6px; }
  .hero { padding: 30px 22px; border-radius: 18px; }
  .hero p { font-size: 16px; }
  .stats { gap: 10px; }
  .stat { padding: 14px 14px 12px; }
  .stat .s-label { font-size: 13px; }
  .bubbles li { font-size: 13px; padding: 6px 12px 6px 8px; }
  .kpi .k-value { font-size: 24px; }
  .bar-row { grid-template-columns: 96px minmax(0, 1fr) 70px; }
  .stack-row { grid-template-columns: 96px minmax(0, 1fr); }
  .action { grid-template-columns: 1fr; }
  #app.nav-open .sidenav { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}
@media print {
  .sidenav, .menu-toggle, .lang, .btn, .tabs, .no-print { display: none !important; }
  .layout { display: block; padding: 0; }
  .panel, .kpi { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
