:root {
  --navy-950: #03172d;
  --navy-900: #062b52;
  --navy-800: #0a3b6c;
  --blue-700: #176fb1;
  --blue-600: #2387c7;
  --blue-100: #e8f3fb;
  --blue-50: #f3f9fd;
  --cyan: #66c5e6;
  --green-700: #087657;
  --green-100: #dcf4e9;
  --amber-700: #915b06;
  --amber-100: #fff1d1;
  --red-700: #a33333;
  --red-100: #fee9e8;
  --ink: #14253a;
  --muted: #63758a;
  --soft: #8a99aa;
  --line: #dbe4ed;
  --line-dark: #c9d5e1;
  --surface: #f5f8fb;
  --white: #fff;
  --shadow-sm: 0 3px 14px rgba(4, 39, 74, .07);
  --shadow-md: 0 18px 50px rgba(4, 39, 74, .11);
  --shadow-lg: 0 28px 80px rgba(2, 26, 54, .2);
  --radius-sm: 9px;
  --radius: 15px;
  --radius-lg: 24px;
  --shell: 1200px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--white); }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 16px; color: var(--navy-900); background: white; border-radius: 7px; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 14px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }

.concept-banner { color: #dceafb; background: var(--navy-950); font-size: 11px; }
.concept-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 30px; }
.concept-inner strong { color: white; letter-spacing: .02em; }
.concept-inner a { color: #9fdcf3; text-decoration: none; }
.concept-inner a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-main { display: flex; align-items: center; min-height: 88px; gap: 22px; }
.brand-lockup { position: relative; z-index: 52; display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--navy-900); }
.brand-title { display: flex; flex-direction: column; justify-content: center; color: var(--navy-900); font-size: 21px; font-weight: 880; line-height: .82; letter-spacing: -.045em; text-decoration: none; }
.brand-title:hover { color: var(--blue-700); }
.brand-year-picker { position: relative; }
.brand-year-button { display: flex; align-items: center; gap: 5px; min-height: 58px; padding: 1px 4px 1px 0; color: var(--navy-900); background: transparent; border: 0; border-radius: 12px; }
.brand-year-button:hover { background: var(--blue-50); }
.brand-year-button:focus-visible { outline: 3px solid rgba(35,135,199,.28); outline-offset: 3px; }
.brand-year-digits { display: flex; align-items: center; color: var(--navy-900); font-size: 52px; font-weight: 880; line-height: .82; letter-spacing: -.085em; }
.brand-year-digits span:nth-child(1) { color: #0a3b6c; }
.brand-year-digits span:nth-child(2) { color: #125485; }
.brand-year-digits span:nth-child(3) { color: #237daf; }
.brand-year-digits span:nth-child(4) { color: #3b9bc9; }
.brand-year-chevron { width: 15px; height: 15px; margin-left: 2px; color: var(--blue-700); transition: transform .18s ease; }
.brand-year-chevron path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-year-button[aria-expanded="true"] .brand-year-chevron { transform: rotate(180deg); }
.year-select-proxy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.brand-year-menu { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 60; width: 284px; overflow: hidden; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(3,23,45,.22); }
.brand-year-menu::before { content: ""; position: absolute; top: -6px; right: 38px; width: 12px; height: 12px; background: white; border-top: 1px solid var(--line); border-left: 1px solid var(--line); transform: rotate(45deg); }
.year-menu-head { position: relative; padding: 17px 18px 14px; border-bottom: 1px solid var(--line); }
.year-menu-head span, .year-menu-head small { display: block; }
.year-menu-head span { color: var(--navy-900); font-size: 14px; font-weight: 850; }
.year-menu-head small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.year-menu-options { display: grid; max-height: min(390px, calc(100vh - 170px)); padding: 7px; overflow-y: auto; }
.year-menu-options button { display: grid; grid-template-columns: 54px 1fr 18px; align-items: center; gap: 10px; min-height: 43px; padding: 7px 10px; color: var(--muted); text-align: left; background: transparent; border: 0; border-radius: 9px; }
.year-menu-options button:hover, .year-menu-options button:focus-visible { color: var(--navy-900); background: var(--blue-50); outline: none; }
.year-menu-options button[aria-selected="true"] { color: var(--navy-900); background: var(--blue-100); }
.year-menu-options button span { color: var(--navy-900); font-size: 14px; font-weight: 850; }
.year-menu-options button small { font-size: 11px; }
.year-menu-options button i { display: none; color: var(--blue-700); font-size: 13px; font-style: normal; font-weight: 900; }
.year-menu-options button[aria-selected="true"] i { display: block; }
.brand-symbol { position: relative; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; color: white; background: linear-gradient(145deg, var(--navy-900), var(--blue-600)); border-radius: 12px; box-shadow: 0 8px 22px rgba(6,43,82,.2); }
.brand-symbol::after { content: ""; position: absolute; width: 34px; height: 34px; right: -19px; bottom: -19px; border: 5px solid rgba(255,255,255,.22); border-radius: 50%; }
.brand-symbol span { font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.brand-symbol.small { width: 38px; height: 38px; border-radius: 10px; }
.primary-nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; margin-left: auto; }
.primary-nav a { position: relative; display: flex; align-items: center; padding: 0 11px; color: #3c526a; font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; right: 11px; bottom: -1px; left: 11px; height: 3px; background: var(--blue-700); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--navy-900); }
.primary-nav a.active::after { transform: scaleX(1); }
.primary-nav .statistics-menu-link { color: var(--blue-700); font-weight: 800; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.source-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: var(--muted); background: var(--surface); border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.source-badge i { width: 7px; height: 7px; background: var(--amber-700); border-radius: 50%; box-shadow: 0 0 0 4px rgba(145,91,6,.1); }
.source-badge.live i { background: var(--green-700); box-shadow: 0 0 0 4px rgba(8,118,87,.1); }
.result-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; color: white; background: var(--navy-900); border: 1px solid var(--navy-900); border-radius: var(--radius-sm); font-size: 12px; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.result-cta:hover, .button:hover { background: var(--navy-800); box-shadow: 0 8px 20px rgba(6,43,82,.17); transform: translateY(-1px); }
.button.blue { background: var(--blue-700); border-color: var(--blue-700); }
.button.ghost { color: var(--navy-900); background: white; border-color: var(--line-dark); }
.button.soft { color: var(--navy-900); background: var(--blue-100); border-color: transparent; }
.button.small { min-height: 36px; padding-inline: 12px; font-size: 11px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.menu-button span { display: block; height: 2px; margin: 4px 0; background: var(--navy-900); border-radius: 2px; }

#app { min-height: 640px; }
.page-loading { display: grid; place-items: center; min-height: 500px; color: var(--muted); }
.loading-mark { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--blue-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-enter { animation: page-in .38s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } }

.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--blue-700); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 19px; height: 2px; background: currentColor; }
.hero .eyebrow, .dark-section .eyebrow { color: #91d7ef; }
.display-title { margin: 0; color: var(--navy-900); font-size: clamp(39px, 5.7vw, 72px); font-weight: 780; line-height: .99; letter-spacing: -.055em; }
.display-title .accent { color: var(--blue-600); }
.page-title { margin: 0; color: var(--navy-900); font-size: clamp(34px, 4.3vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.section-title { margin: 0; color: var(--navy-900); font-size: clamp(27px, 3vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.lead { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.muted { color: var(--muted); }
.micro { color: var(--muted); font-size: 11px; line-height: 1.5; }
.page-hero { padding: 60px 0 48px; background: linear-gradient(180deg, var(--blue-50), white); border-bottom: 1px solid #edf2f6; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; padding: 0; color: var(--muted); font-size: 11px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b1bdc9; }
.breadcrumb a { text-decoration: none; }
.page-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; }
.page-hero-copy { max-width: 780px; }
.page-hero-copy .lead { margin: 17px 0 0; }
.data-stamp { flex: 0 0 auto; padding: 12px 14px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 10px; }
.data-stamp strong { display: block; margin-top: 3px; color: var(--navy-900); font-size: 12px; }
.section { padding: 72px 0; }
.section.soft { background: var(--surface); }
.section.dark-section { color: white; background: var(--navy-950); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.section-head p:not(.eyebrow) { max-width: 630px; margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.dark-section .section-title { color: white; }
.dark-section .section-head p:not(.eyebrow) { color: #b9ccdf; }

/* Home */
.hero { position: relative; overflow: hidden; color: white; background: var(--navy-900); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; background: radial-gradient(circle at 75% 20%, #75d7f3 0 1px, transparent 2px) 0 0 / 28px 28px; mask-image: linear-gradient(90deg, transparent 35%, black); }
.hero::after { content: ""; position: absolute; width: 660px; height: 660px; right: -380px; bottom: -500px; border: 95px solid rgba(94,193,228,.12); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr); align-items: center; gap: 76px; min-height: 560px; padding-block: 74px; }
.hero .display-title { max-width: 720px; color: white; }
.hero .lead { margin: 23px 0 25px; color: #d4e4f4; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 17px; color: #b9d0e5; font-size: 11px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; color: #8be0b9; background: rgba(90,203,151,.11); border-radius: 50%; font-weight: 850; }
.search-panel { position: relative; padding: 30px; color: var(--ink); background: rgba(255,255,255,.99); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.search-panel::before { content: ""; position: absolute; top: 0; right: 34px; left: 34px; height: 3px; background: linear-gradient(90deg, var(--blue-700), var(--cyan)); border-radius: 0 0 3px 3px; }
.search-status { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--green-700); background: var(--green-100); border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-pill::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.search-panel h2 { margin: 0; color: var(--navy-900); font-size: 24px; letter-spacing: -.025em; }
.search-panel > p { margin: 7px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.field-label { display: block; margin: 0 0 7px; color: #40566d; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.field, select { width: 100%; min-height: 48px; padding: 0 14px; color: var(--ink); background: white; border: 1px solid #b9c7d4; border-radius: 9px; outline: none; }
.field:focus, select:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(23,111,177,.14); }
.form-message { min-height: 18px; margin: 9px 0 0; color: var(--red-700); font-size: 11px; }
.privacy-note { display: flex; gap: 9px; margin-top: 19px; padding-top: 17px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.55; }
.privacy-note::before { content: "◈"; color: var(--blue-700); font-size: 15px; }
.phase-strip { background: white; border-bottom: 1px solid var(--line); }
.phase-inner { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); align-items: stretch; }
.phase-intro, .phase-step { min-height: 105px; padding: 23px 25px; border-right: 1px solid var(--line); }
.phase-intro { padding-left: 0; }
.phase-step:last-child { padding-right: 0; border-right: 0; }
.phase-intro span, .phase-step span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.phase-intro strong, .phase-step strong { display: block; color: var(--navy-900); font-size: 13px; }
.phase-step.done strong::before { content: "✓"; margin-right: 7px; color: var(--green-700); }
.phase-step.current { background: var(--blue-50); }
.phase-step.current span { color: var(--blue-700); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { position: relative; min-height: 188px; padding: 24px; overflow: hidden; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.quick-card:hover { border-color: #a8c9e2; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.quick-card .card-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 28px; color: var(--blue-700); background: var(--blue-100); border-radius: 11px; font-size: 15px; font-weight: 850; }
.quick-card h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 15px; }
.quick-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.quick-card .arrow { position: absolute; top: 25px; right: 24px; color: #9cafc0; font-size: 18px; transition: transform .2s ease; }
.quick-card:hover .arrow { color: var(--blue-700); transform: translateX(3px); }
.news-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.news-list { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.news-item { display: grid; grid-template-columns: 95px 1fr auto; align-items: center; gap: 24px; min-height: 93px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item time { color: var(--blue-700); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.news-item h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 13px; }
.news-item p { margin: 0; color: var(--muted); font-size: 10px; }
.news-item a { color: var(--blue-700); font-size: 11px; font-weight: 750; text-decoration: none; }
.source-card { padding: 28px; color: white; background: linear-gradient(150deg, var(--navy-900), #0a4d82); border-radius: var(--radius); }
.source-card span { display: inline-block; padding: 6px 9px; color: #a8e1f5; background: rgba(255,255,255,.08); border-radius: 999px; font-size: 9px; font-weight: 800; }
.source-card h3 { margin: 46px 0 10px; font-size: 21px; letter-spacing: -.03em; }
.source-card p { margin: 0 0 22px; color: #c6d9e9; font-size: 11px; line-height: 1.65; }
.source-card a { color: white; font-size: 11px; font-weight: 750; text-underline-offset: 4px; }

/* Dashboard */
.statistics-band { color: white; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.07); }
.statistics-band-inner { display: flex; align-items: stretch; min-height: 74px; gap: 34px; }
.statistics-band-title { display: flex; flex: 0 0 auto; justify-content: center; flex-direction: column; min-width: 175px; padding-right: 32px; border-right: 1px solid rgba(255,255,255,.13); }
.statistics-band-title span { color: #8fb0cb; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.statistics-band-title strong { margin-top: 4px; font-size: 15px; }
.statistics-band nav { display: flex; align-items: stretch; gap: 3px; }
.statistics-band nav a { position: relative; display: flex; align-items: center; padding: 0 16px; color: #b9ccdf; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.statistics-band nav a::after { content: ""; position: absolute; right: 16px; bottom: 0; left: 16px; height: 3px; background: var(--cyan); border-radius: 3px 3px 0 0; transform: scaleX(0); }
.statistics-band nav a:hover, .statistics-band nav a.active { color: white; }
.statistics-band nav a.active::after { transform: scaleX(1); }
.statistics-context { padding: 11px 14px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.statistics-context span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.statistics-context strong { display: block; margin-top: 3px; color: var(--navy-900); font-size: 14px; }
.dashboard-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { min-width: 145px; }
.filter label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }
.filter select { min-height: 39px; padding: 0 31px 0 11px; font-size: 11px; }
.dataset-note { max-width: 360px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.kpi-card { position: relative; min-height: 139px; padding: 19px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.kpi-card.primary { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.kpi-card .kpi-label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.kpi-card.primary .kpi-label { color: #bdd4e8; }
.kpi-card .kpi-value { display: block; margin: 17px 0 8px; color: var(--navy-900); font-size: 31px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.kpi-card.primary .kpi-value { color: white; }
.kpi-card .kpi-meta { color: var(--muted); font-size: 9px; }
.kpi-card.primary .kpi-meta { color: #bdd4e8; }
.kpi-card .mini-badge { padding: 4px 6px; color: var(--green-700); background: var(--green-100); border-radius: 999px; font-size: 8px; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-bottom: 16px; }
.dashboard-grid.equal { grid-template-columns: 1fr 1fr; }
.panel { padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-head h2, .panel-head h3 { margin: 0; color: var(--navy-900); font-size: 16px; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.panel-tag { padding: 5px 7px; color: var(--blue-700); background: var(--blue-100); border-radius: 999px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.histogram { display: grid; grid-template-columns: repeat(9, 1fr); align-items: end; gap: 9px; height: 215px; padding-top: 15px; border-bottom: 1px solid var(--line-dark); }
.histogram-column { display: grid; grid-template-rows: 1fr 23px; align-items: end; height: 100%; text-align: center; }
.histogram-bar-wrap { display: flex; height: 100%; align-items: end; justify-content: center; }
.histogram-bar { position: relative; width: min(30px, 74%); min-height: 8px; background: linear-gradient(180deg, var(--blue-600), var(--blue-700)); border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: grow-bar .7s cubic-bezier(.2,.8,.2,1) both; }
.histogram-bar.highlight { background: linear-gradient(180deg, #36aeda, var(--green-700)); }
.h-5 { height: 5%; }
.h-10 { height: 10%; }
.h-15 { height: 15%; }
.h-20 { height: 20%; }
.h-25 { height: 25%; }
.h-30 { height: 30%; }
.h-35 { height: 35%; }
.h-40 { height: 40%; }
.h-45 { height: 45%; }
.h-50 { height: 50%; }
.h-55 { height: 55%; }
.h-60 { height: 60%; }
.h-65 { height: 65%; }
.h-70 { height: 70%; }
.h-75 { height: 75%; }
.h-80 { height: 80%; }
.h-85 { height: 85%; }
.h-90 { height: 90%; }
.h-95 { height: 95%; }
.h-100 { height: 100%; }
.histogram-bar strong { position: absolute; top: -18px; left: 50%; color: var(--navy-900); font-size: 8px; transform: translateX(-50%); }
.histogram-column > span { align-self: center; color: var(--muted); font-size: 8px; white-space: nowrap; }
@keyframes grow-bar { from { transform: scaleY(.06); } }
.donut-wrap { display: grid; place-items: center; min-height: 205px; }
.donut { position: relative; display: grid; place-items: center; width: 165px; height: 165px; border-radius: 50%; background: conic-gradient(var(--green-700) 0 83.1%, #e5ebf1 83.1% 100%); }
.donut::after { content: ""; position: absolute; width: 116px; height: 116px; background: white; border-radius: 50%; }
.donut-value { position: relative; z-index: 1; text-align: center; }
.donut-value strong { display: block; color: var(--navy-900); font-size: 29px; letter-spacing: -.04em; }
.donut-value span { color: var(--muted); font-size: 9px; }
.legend { display: flex; justify-content: center; gap: 18px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--green-700); border-radius: 50%; }
.legend span:last-child::before { background: #e5ebf1; }
.subject-list { display: grid; gap: 13px; }
.subject-row { padding: 16px; background: var(--surface); border-radius: 10px; }
.subject-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 10px; }
.subject-row-head strong { color: var(--navy-900); font-size: 12px; }
.subject-row-head span { color: var(--blue-700); font-size: 15px; font-weight: 800; }
.metric-track { position: relative; height: 7px; overflow: hidden; background: #dfe8ef; border-radius: 99px; }
.metric-track progress { position: absolute; inset: 0; width: 100%; height: 100%; appearance: none; border: 0; }
.metric-track progress::-webkit-progress-bar { background: transparent; }
.metric-track progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue-700), var(--cyan)); border-radius: 99px; }
.metric-track progress::-moz-progress-bar { background: var(--blue-700); border-radius: 99px; }
.subject-row small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }
.trend-chart { width: 100%; height: 220px; overflow: visible; }
.trend-chart .grid-line { stroke: #e3eaf0; stroke-width: 1; }
.trend-chart .trend-line { fill: none; stroke: var(--blue-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-chart .trend-area { fill: url(#trendGradient); }
.trend-chart .point { fill: white; stroke: var(--blue-700); stroke-width: 3; }
.trend-chart text { fill: var(--muted); font-family: var(--font); font-size: 9px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line-dark); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 13px 12px; color: #2d435a; border-bottom: 1px solid var(--line); font-size: 10px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--blue-50); }
.data-table .number { color: var(--navy-900); font-variant-numeric: tabular-nums; font-weight: 750; text-align: right; }
.data-table .row-link { color: var(--blue-700); font-weight: 750; text-decoration: none; }
.table-progress { display: grid; grid-template-columns: 43px 90px; align-items: center; gap: 9px; }
.table-progress progress { width: 90px; height: 5px; appearance: none; border: 0; }
.table-progress progress::-webkit-progress-bar { background: #e6edf3; border-radius: 9px; }
.table-progress progress::-webkit-progress-value { background: var(--blue-700); border-radius: 9px; }
.table-progress progress::-moz-progress-bar { background: var(--blue-700); border-radius: 9px; }

.archive-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.archive-home-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 18px; align-items: stretch; }
.archive-home-primary { padding: 34px; color: white; background: linear-gradient(145deg, var(--navy-900), #0a4d82); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.archive-home-primary h2 { margin: 22px 0 11px; font-size: clamp(24px,3vw,36px); line-height: 1.08; letter-spacing: -.035em; }
.archive-home-primary p { margin: 0; color: #c6d9e9; font-size: 14px; line-height: 1.7; }
.archive-home-primary .result-actions { margin-top: 28px; }
.archive-home-primary .button { color: var(--navy-900); background: white; border-color: white; }
.archive-home-primary .button.ghost { color: white; background: transparent; border-color: rgba(255,255,255,.35); }
.archive-quick { grid-template-columns: repeat(2,1fr); }
.archive-status-card { display: flex; gap: 16px; min-height: 220px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.archive-status-card.ready { border-color: #b8ddce; box-shadow: 0 12px 35px rgba(8,118,87,.07); }
.archive-status-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; color: var(--blue-700); background: var(--blue-100); border-radius: 11px; font-size: 16px; font-weight: 900; }
.archive-status-card.ready .archive-status-icon { color: var(--green-700); background: var(--green-100); }
.archive-status-card small { color: var(--blue-700); font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.archive-status-card h2 { margin: 21px 0 9px; color: var(--navy-900); font-size: 17px; line-height: 1.3; }
.archive-status-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.statistics-source-callout { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 30px; margin-top: 18px; color: white; background: linear-gradient(140deg, var(--navy-900), #0a4d82); border-radius: var(--radius); }
.statistics-source-callout h2 { margin: 15px 0 7px; font-size: 22px; }
.statistics-source-callout p { max-width: 720px; margin: 0; color: #c6d9e9; font-size: 13px; line-height: 1.6; }
.statistics-source-callout .button { flex: 0 0 auto; color: var(--navy-900); background: white; border-color: white; }

/* Hărți teritoriale și grafice comparative */
.territory-panel { padding: 0; margin-bottom: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(6,43,82,.05); }
.territory-panel .map-panel-head { align-items: center; padding: 23px 23px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.map-metric-controls { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.map-metric-controls button { min-height: 32px; padding: 0 11px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.map-metric-controls button:hover { color: var(--navy-900); background: white; }
.map-metric-controls button.active { color: white; background: var(--navy-900); box-shadow: 0 4px 12px rgba(6,43,82,.16); }
.territory-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; min-height: 520px; }
.territory-layout.county { min-height: 590px; }
.map-canvas { position: relative; display: grid; place-items: center; min-width: 0; padding: 19px; overflow: hidden; background: radial-gradient(circle at 48% 44%, #fff 0, #f7fbfe 58%, #edf5fa 100%); border-right: 1px solid var(--line); }
.territory-svg { display: block; width: 100%; height: auto; max-height: 540px; overflow: visible; }
.territory-svg.uat { max-height: 610px; }
.territory-shape { vector-effect: non-scaling-stroke; stroke: rgba(255,255,255,.94); stroke-width: 1.1; cursor: pointer; transition: fill .16s ease, filter .16s ease, opacity .16s ease, stroke .16s ease; }
.territory-shape:hover, .territory-shape:focus-visible { position: relative; z-index: 2; filter: brightness(.96) saturate(1.08); stroke: var(--navy-900); stroke-width: 2; outline: none; }
.territory-shape.selected { stroke: var(--navy-950); stroke-width: 2.6; filter: drop-shadow(0 3px 3px rgba(3,23,45,.18)); }
.territory-shape[data-map-available="false"] { cursor: not-allowed; }
.map-no-data { fill: #dfe7ee; background: #dfe7ee; }
.map-value-1 { fill: #d8eef8; background: #d8eef8; }
.map-value-2 { fill: #a8d8ec; background: #a8d8ec; }
.map-value-3 { fill: #68b9dc; background: #68b9dc; }
.map-value-4 { fill: #2b89c2; background: #2b89c2; }
.map-value-5 { fill: #095b94; background: #095b94; }
.map-legend { position: absolute; right: 18px; bottom: 13px; display: flex; align-items: center; gap: 5px; padding: 8px 10px; color: var(--muted); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-sm); font-size: 9px; }
.map-legend i { display: block; width: 15px; height: 9px; border: 1px solid rgba(6,43,82,.08); border-radius: 2px; }
.map-tooltip { position: absolute; top: 15px; left: 15px; z-index: 4; max-width: 250px; padding: 11px 13px; color: white; background: rgba(3,23,45,.94); border-radius: 9px; box-shadow: var(--shadow-md); pointer-events: none; }
.map-tooltip strong, .map-tooltip span, .map-tooltip small { display: block; }
.map-tooltip strong { font-size: 13px; }
.map-tooltip span { margin-top: 4px; color: #b9e3f3; font-size: 11px; font-weight: 750; }
.map-tooltip small { margin-top: 3px; color: #b7c9d9; font-size: 9px; }
.map-context { display: flex; flex-direction: column; padding: 27px 24px; background: white; }
.map-context > strong:not(.map-context-title) { margin: 18px 0 8px; color: var(--navy-900); font-size: 37px; letter-spacing: -.05em; }
.map-context h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 16px; line-height: 1.25; }
.map-context > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.map-context-title { margin: 18px 0 17px; color: var(--navy-900); font-size: 23px; line-height: 1.1; letter-spacing: -.035em; }
.map-context-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-context-metrics div { padding: 11px; background: var(--surface); border-radius: 9px; }
.map-context-metrics span, .map-context-metrics b { display: block; }
.map-context-metrics span { color: var(--muted); font-size: 9px; }
.map-context-metrics b { margin-top: 5px; color: var(--navy-900); font-size: 14px; }
.map-coverage { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }
.map-coverage span, .map-coverage strong, .map-coverage small { display: block; }
.map-coverage span { color: var(--muted); font-size: 10px; }
.map-coverage strong { margin: 5px 0; color: var(--navy-900); font-size: 18px; }
.map-coverage small { color: var(--soft); font-size: 9px; line-height: 1.45; }
.map-source { padding-top: 16px; margin-top: auto; border-top: 1px solid var(--line); }
.map-source span, .map-source a { display: block; }
.map-source span { color: var(--soft); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.map-source a { margin-top: 5px; color: var(--blue-700); font-size: 10px; font-weight: 750; text-decoration: none; }
.ranking-bars { display: grid; gap: 12px; }
.ranking-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.ranking-index { display: grid; place-items: center; width: 24px; height: 24px; color: var(--blue-700); background: var(--blue-100); border-radius: 7px; font-size: 10px; font-weight: 850; }
.ranking-row > div { min-width: 0; }
.ranking-row strong { display: block; overflow: hidden; color: var(--navy-900); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row b { color: var(--navy-900); font-size: 11px; font-variant-numeric: tabular-nums; }
.ranking-row progress, .participation-chart progress { width: 100%; height: 6px; margin-top: 6px; appearance: none; border: 0; }
.ranking-row progress::-webkit-progress-bar, .participation-chart progress::-webkit-progress-bar { background: #e6edf3; border-radius: 99px; }
.ranking-row progress::-webkit-progress-value, .participation-chart progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue-700), var(--cyan)); border-radius: 99px; }
.ranking-row progress::-moz-progress-bar, .participation-chart progress::-moz-progress-bar { background: var(--blue-700); border-radius: 99px; }
.participation-chart { display: grid; gap: 20px; padding-top: 4px; }
.participation-chart > div span { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.participation-chart strong { color: var(--navy-900); font-size: 13px; }
.participation-chart b { color: var(--blue-700); font-size: 12px; }
.participation-chart progress { height: 10px; margin-top: 10px; }
.participation-chart progress.absent::-webkit-progress-value { background: #8fa2b5; }
.participation-chart progress.absent::-moz-progress-bar { background: #8fa2b5; }
.participation-chart p { padding-top: 16px; margin: 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.55; }

/* Calendar */
.calendar-status { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 23px 25px; margin-bottom: 25px; color: white; background: var(--navy-900); border-radius: var(--radius); }
.calendar-status strong { display: block; margin-bottom: 5px; font-size: 16px; }
.calendar-status p { margin: 0; color: #bdd1e4; font-size: 10px; }
.calendar-status .status-pill { color: #b8efd3; background: rgba(26,160,110,.15); }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 28px; bottom: 30px; left: 77px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 54px 48px 1fr; gap: 0 18px; min-height: 104px; }
.timeline-date { padding-top: 15px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: right; text-transform: uppercase; }
.timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: 8px auto 0; color: white; background: var(--green-700); border: 6px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #b9d4ca; font-size: 8px; font-weight: 900; }
.timeline-item.current .timeline-dot { background: var(--blue-700); box-shadow: 0 0 0 5px var(--blue-100); }
.timeline-card { align-self: start; padding: 17px 20px; margin-bottom: 13px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.timeline-card h2 { margin: 0 0 6px; color: var(--navy-900); font-size: 13px; }
.timeline-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.timeline-card .timeline-tag { float: right; padding: 5px 7px; color: var(--green-700); background: var(--green-100); border-radius: 999px; font-size: 8px; font-weight: 800; }

/* Documents, guide, process */
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.tab { min-height: 36px; padding: 0 14px; color: #496077; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 750; }
.tab.active, .tab:hover { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.document-card { display: flex; min-height: 245px; flex-direction: column; padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.document-type { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.file-mark { display: grid; place-items: center; width: 40px; height: 46px; color: var(--blue-700); background: var(--blue-50); border: 1px solid #c5deef; border-radius: 7px; font-size: 8px; font-weight: 900; }
.document-type span { color: var(--muted); font-size: 8px; }
.document-card h2, .document-card h3 { margin: 0 0 9px; color: var(--navy-900); font-size: 14px; line-height: 1.35; }
.document-card p { margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.document-card a { margin-top: auto; color: var(--blue-700); font-size: 10px; font-weight: 800; text-decoration: none; }
.document-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: process; }
.process-step { counter-increment: process; padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.process-step::before { content: "0" counter(process); display: block; margin-bottom: 32px; color: var(--blue-700); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.process-step h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 13px; }
.process-step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.faq-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: 45px; }
.faq-intro { position: sticky; top: 130px; align-self: start; }
.faq-intro p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 19px 42px 19px 0; color: var(--navy-900); font-size: 12px; font-weight: 750; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 14px; right: 0; display: grid; place-items: center; width: 28px; height: 28px; color: var(--blue-700); background: var(--blue-100); border-radius: 50%; font-size: 17px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; margin: -4px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.7; }

/* Schools */
.school-source-strip { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; padding: 13px 15px; color: var(--muted); background: var(--green-100); border: 1px solid #bde7d3; border-radius: 11px; }
.school-source-strip p { margin: 0; font-size: 10px; line-height: 1.55; }
.school-source-strip.demo { background: var(--surface); border-color: var(--line); }
.school-source-strip.demo > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.school-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 160px 160px; gap: 10px; margin-bottom: 17px; }
.school-list { border-top: 1px solid var(--line-dark); }
.school-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) 130px 115px 128px; align-items: center; gap: 17px; min-height: 88px; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.school-row:hover { background: var(--blue-50); }
.school-index { color: #96a5b5; font-size: 10px; }
.school-name { margin: 0 0 5px; color: var(--navy-900); font-size: 12px; }
.school-meta { color: var(--muted); font-size: 9px; }
.school-number strong { display: block; color: var(--navy-900); font-size: 17px; }
.school-number span { color: var(--muted); font-size: 8px; }
.environment-pill { justify-self: start; padding: 6px 8px; color: var(--navy-900); background: var(--blue-100); border-radius: 999px; font-size: 8px; font-weight: 800; }
.school-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.summary-metric { padding: 17px; background: var(--surface); border-radius: 10px; }
.summary-metric span { display: block; min-height: 27px; color: var(--muted); font-size: 9px; }
.summary-metric strong { display: block; margin-top: 6px; color: var(--navy-900); font-size: 23px; letter-spacing: -.03em; }
.inline-detail { margin: 14px 0 0 62px; padding: 21px; background: white; border: 1px solid #bcd8ea; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.inline-detail-head { display: flex; justify-content: space-between; gap: 20px; }
.inline-detail-head h3 { margin: 0; color: var(--navy-900); font-size: 15px; }
.privacy-suppression { display: flex; gap: 12px; margin-top: 17px; padding: 13px 15px; color: var(--muted); background: var(--surface); border-radius: 10px; font-size: 9px; line-height: 1.55; }
.privacy-suppression strong { flex: 0 0 auto; color: var(--navy-900); }
.close-detail { width: 32px; height: 32px; color: var(--navy-900); background: white; border: 1px solid var(--line); border-radius: 8px; }
.empty-state { padding: 35px; color: var(--muted); background: var(--surface); border: 1px dashed #c7d3df; border-radius: var(--radius); font-size: 11px; text-align: center; }

/* Result */
.result-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 16px; }
.result-score { position: relative; display: grid; place-items: center; min-height: 340px; overflow: hidden; color: white; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); border-radius: var(--radius); text-align: center; }
.result-score::before { content: ""; position: absolute; width: 300px; height: 300px; border: 60px solid rgba(102,197,230,.11); border-radius: 50%; }
.result-score > div { position: relative; z-index: 1; }
.result-score span { display: block; color: #bcd7e9; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.result-score strong { display: block; margin: 19px 0; font-size: 71px; line-height: 1; letter-spacing: -.06em; }
.result-details { padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.candidate-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.candidate-line span { color: var(--muted); font-size: 9px; }
.candidate-line strong { display: block; margin-top: 4px; color: var(--navy-900); font-size: 12px; }
.grades { display: grid; gap: 10px; }
.grade-row { display: grid; grid-template-columns: minmax(0,1fr) 80px 120px; align-items: center; gap: 15px; padding: 15px; background: var(--surface); border-radius: 10px; }
.grade-row h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 11px; }
.grade-row p { margin: 0; color: var(--muted); font-size: 8px; }
.grade-row > strong { color: var(--navy-900); font-size: 22px; text-align: right; }
.grade-status { color: var(--green-700); font-size: 8px; font-weight: 800; text-align: right; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }

/* Quality */
.quality-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; align-items: center; }
.health-card { padding: 25px; color: white; background: var(--navy-900); border-radius: var(--radius); }
.health-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.health-card-top strong { font-size: 14px; }
.health-state { display: inline-flex; align-items: center; gap: 7px; color: #b7efd3; font-size: 9px; font-weight: 800; }
.health-state::before { content: ""; width: 7px; height: 7px; background: #6cd9a6; border-radius: 50%; box-shadow: 0 0 0 5px rgba(108,217,166,.1); }
.health-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.health-metrics div { padding: 14px; background: rgba(255,255,255,.07); border-radius: 9px; }
.health-metrics span { display: block; color: #a9c4da; font-size: 8px; }
.health-metrics strong { display: block; margin-top: 7px; font-size: 16px; }
.quality-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.quality-card { padding: 22px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.quality-card > span { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 27px; color: var(--blue-700); background: var(--blue-100); border-radius: 10px; font-weight: 850; }
.quality-card h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 13px; }
.quality-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 27px; color: var(--ink); background: var(--blue-50); border: 1px solid #c8e0ef; border-radius: var(--radius); }
.callout h2, .callout h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 15px; }
.callout p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 70; max-width: 360px; padding: 14px 17px; color: white; background: var(--navy-950); border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 11px; }

.site-footer { color: #c5d5e4; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 65px; padding-block: 51px; }
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand strong { display: block; color: white; font-size: 14px; }
.footer-brand p { margin: 5px 0 0; color: #92a9bd; font-size: 10px; }
.site-footer h2 { margin: 0 0 13px; color: white; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { display: block; margin: 8px 0; color: #b8cadd; font-size: 10px; text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.footer-note { max-width: 280px; color: #7890a7; font-size: 9px; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 17px; color: #778fa6; border-top: 1px solid rgba(255,255,255,.09); font-size: 8px; }

/* Readable type scale: compact, but comfortable on public-service screens. */
.concept-banner { font-size: 12px; }
.primary-nav a, .result-cta, .button { font-size: 13px; }
.source-badge, .button.small { font-size: 12px; }
.eyebrow { font-size: 11px; }
.micro, .breadcrumb { font-size: 12px; }
.data-stamp { font-size: 11px; }
.data-stamp strong { font-size: 13px; }
.hero-trust, .search-panel > p { font-size: 13px; }
.status-pill, .field-label { font-size: 12px; }
.field, select { font-size: 16px; }
.form-message, .privacy-note { font-size: 12px; }
.phase-intro span, .phase-step span { font-size: 11px; }
.phase-intro strong, .phase-step strong { font-size: 14px; }
.quick-card h3 { font-size: 16px; }
.quick-card p { font-size: 13px; }
.news-item time, .news-item a { font-size: 12px; }
.news-item h3 { font-size: 15px; }
.news-item p { font-size: 13px; }
.source-card span { font-size: 11px; }
.source-card p, .source-card a { font-size: 13px; }
.filter label, .dataset-note { font-size: 12px; }
.filter select { font-size: 13px; }
.kpi-card .kpi-label { font-size: 12px; }
.kpi-card .kpi-meta, .kpi-card .mini-badge { font-size: 11px; }
.panel-head p { font-size: 12px; }
.panel-tag { font-size: 11px; }
.histogram-bar strong, .histogram-column > span { font-size: 10px; }
.donut-value span, .legend { font-size: 11px; }
.subject-row-head strong { font-size: 13px; }
.subject-row small { font-size: 11px; }
.trend-chart text { font-size: 11px; }
.data-table th { font-size: 11px; }
.data-table td { font-size: 13px; }
.calendar-status p { font-size: 13px; }
.timeline-date { font-size: 11px; }
.timeline-dot { font-size: 10px; }
.timeline-card h2 { font-size: 15px; }
.timeline-card p { font-size: 13px; }
.timeline-card .timeline-tag { font-size: 11px; }
.tab { font-size: 13px; }
.file-mark, .document-type span { font-size: 11px; }
.document-card h2, .document-card h3 { font-size: 16px; }
.document-card p, .document-card a { font-size: 13px; }
.process-step::before { font-size: 11px; }
.process-step h3 { font-size: 15px; }
.process-step p { font-size: 13px; }
.faq-intro p { font-size: 14px; }
.faq-list summary { font-size: 15px; }
.faq-list details p { font-size: 13px; }
.school-index { font-size: 12px; }
.school-name { font-size: 15px; }
.school-meta { font-size: 12px; }
.school-number span, .environment-pill { font-size: 11px; }
.summary-metric span { font-size: 12px; }
.empty-state { font-size: 13px; }
.result-score span, .candidate-line span { font-size: 12px; }
.candidate-line strong { font-size: 14px; }
.grade-row h3 { font-size: 14px; }
.grade-row p, .grade-status { font-size: 11px; }
.health-state { font-size: 11px; }
.health-metrics span { font-size: 11px; }
.quality-card h3 { font-size: 15px; }
.quality-card p, .callout p { font-size: 13px; }
.toast { font-size: 13px; }
.footer-brand p { font-size: 12px; }
.site-footer h2 { font-size: 12px; }
.site-footer a { font-size: 13px; }
.footer-note, .footer-bottom { font-size: 11px; }

@media (max-width: 1100px) {
  .primary-nav a { padding-inline: 8px; font-size: 11px; }
  .source-badge { display: none; }
  .brand-title { font-size: 19px; }
  .brand-year-digits { font-size: 46px; }
  .hero-grid { grid-template-columns: 1fr 390px; gap: 45px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .shell { width: min(var(--shell), calc(100% - 32px)); }
  .primary-nav { position: fixed; inset: 118px 0 0; z-index: 50; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 20px 16px; background: white; }
  .primary-nav.open { display: flex; }
  .primary-nav a { min-height: 51px; padding: 0 15px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .primary-nav a::after { display: none; }
  .menu-button { display: block; }
  .result-cta { display: none; }
  .statistics-band-inner { display: block; padding-block: 14px 0; overflow: hidden; }
  .statistics-band-title { min-width: 0; padding: 0 0 12px; border-right: 0; }
  .statistics-band nav { overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
  .statistics-band nav a { min-height: 48px; padding-inline: 13px; }
  .statistics-band nav a::after { right: 13px; left: 13px; }
  .archive-status-grid { grid-template-columns: 1fr; }
  .archive-home-grid { grid-template-columns: 1fr; }
  .archive-status-card { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 45px; padding-block: 61px; }
  .hero-copy { max-width: 760px; }
  .search-panel { max-width: 650px; }
  .phase-inner { grid-template-columns: 1fr 1fr; }
  .phase-intro, .phase-step { border-bottom: 1px solid var(--line); }
  .phase-step:nth-child(2) { border-right: 0; }
  .news-grid, .dashboard-grid, .dashboard-grid.equal, .quality-hero { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .document-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .result-layout { grid-template-columns: 1fr; }
  .result-score { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .territory-layout, .territory-layout.county { grid-template-columns: 1fr; min-height: 0; }
  .map-canvas { min-height: 460px; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-context { min-height: 250px; }
}

@media (max-width: 640px) {
  .shell { width: min(var(--shell), calc(100% - 26px)); }
  .concept-inner { justify-content: center; min-height: 32px; text-align: center; }
  .concept-inner a { display: none; }
  .header-main { min-height: 74px; gap: 10px; }
  .brand-lockup { gap: 7px; }
  .brand-title { font-size: 16px; }
  .brand-year-button { min-height: 48px; }
  .brand-year-digits { font-size: 38px; }
  .brand-year-chevron { width: 13px; height: 13px; }
  .brand-year-menu { top: calc(100% + 10px); right: auto; left: -97px; width: calc(100vw - 26px); }
  .brand-year-menu::before { right: 88px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .primary-nav { inset: 106px 0 0; }
  .page-hero { padding: 39px 0 34px; }
  .page-hero-row { display: block; }
  .data-stamp { display: inline-block; margin-top: 22px; }
  .display-title { font-size: 43px; }
  .page-title { font-size: 36px; }
  .lead { font-size: 15px; }
  .section { padding: 52px 0; }
  .section-head { display: block; }
  .section-head .button { margin-top: 18px; }
  .hero-grid { padding-block: 48px; }
  .hero .lead { font-size: 15px; }
  .search-panel { padding: 22px; border-radius: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row .button { width: 100%; }
  .phase-inner { grid-template-columns: 1fr; }
  .phase-intro, .phase-step { min-height: auto; padding: 17px 4px; border-right: 0; }
  .quick-grid { grid-template-columns: 1fr; }
  .archive-quick { grid-template-columns: 1fr 1fr; }
  .quick-card { min-height: 160px; }
  .news-item { grid-template-columns: 1fr auto; gap: 10px; }
  .news-item time { grid-column: 1 / -1; }
  .dashboard-toolbar { display: block; }
  .dataset-note { margin-top: 16px; text-align: left; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filter { min-width: 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { min-height: 125px; padding: 15px; }
  .kpi-card .kpi-value { font-size: 25px; }
  .panel { padding: 18px; }
  .territory-panel { padding: 0; margin-inline: -5px; }
  .territory-panel .map-panel-head { display: block; padding: 18px; }
  .map-metric-controls { width: 100%; margin-top: 16px; overflow-x: auto; }
  .map-metric-controls button { flex: 1 0 auto; }
  .map-canvas { min-height: 350px; padding: 9px; }
  .territory-svg { max-height: 400px; }
  .territory-svg.uat { max-height: 450px; }
  .map-legend { right: 8px; bottom: 8px; gap: 3px; padding: 6px 7px; font-size: 8px; }
  .map-legend i { width: 10px; }
  .map-tooltip { top: 8px; left: 8px; max-width: calc(100% - 16px); }
  .map-context { min-height: 0; padding: 21px 18px; }
  .ranking-row { grid-template-columns: 22px minmax(0,1fr) auto; gap: 8px; }
  .histogram { gap: 4px; height: 190px; }
  .histogram-bar strong { display: none; }
  .histogram-column > span { font-size: 7px; transform: rotate(-32deg); }
  .document-grid, .process-grid, .quality-grid { grid-template-columns: 1fr; }
  .calendar-status { grid-template-columns: 1fr; }
  .timeline::before { left: 35px; }
  .timeline-item { grid-template-columns: 0 45px 1fr; gap: 0 8px; }
  .timeline-date { position: absolute; top: 18px; right: 18px; z-index: 2; }
  .school-toolbar { grid-template-columns: 1fr 1fr; }
  .school-source-strip, .privacy-suppression { display: block; }
  .school-source-strip p, .privacy-suppression span { display: block; margin-top: 8px; }
  .school-toolbar .field { grid-column: 1 / -1; }
  .school-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 17px 3px; }
  .school-index, .school-number, .environment-pill { display: none; }
  .inline-detail { margin-left: 0; }
  .school-summary { grid-template-columns: 1fr 1fr; }
  .grade-row { grid-template-columns: minmax(0,1fr) auto; }
  .grade-status { grid-column: 1 / -1; text-align: left; }
  .callout { display: block; }
  .callout .button { margin-top: 17px; }
  .statistics-source-callout { display: block; padding: 23px; }
  .statistics-source-callout .button { margin-top: 20px; }
  .health-metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 33px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin: 6px 0; }
}

@media (max-width: 420px) {
  .brand-title { font-size: 14px; }
  .brand-year-digits { font-size: 34px; }
  .brand-lockup { gap: 5px; }
  .brand-year-chevron { margin-left: 0; }
  .brand-year-menu { left: -82px; }
  .archive-quick { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
