:root {
  --navy: #0b1f3a;
  --primary: #1e40af;
  --blue: #3b82f6;
  --amber: #d97706;
  --mint: #18a37b;
  --danger: #dc2626;
  --canvas: #f8fafc;
  --surface: #ffffff;
  --ink: #10213f;
  --muted: #60708a;
  --border: #dbeafe;
  --font-body: "Fira Sans", sans-serif;
  --font-mono: "Fira Code", monospace;
  --shadow: 0 10px 30px rgb(30 64 175 / 8%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); line-height: 1.5; }
button, a { font: inherit; }
a { color: inherit; }
.shell { width: min(1400px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 10; background: white; padding: 10px; }
.skip-link:focus { top: 12px; outline: 3px solid var(--amber); }
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(248 250 252 / 92%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-shell { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: white; font-size: 12px; }
.brand-muted { color: var(--muted); font-weight: 500; }
nav { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; font-weight: 600; }
nav a:hover, nav a:focus-visible { color: var(--primary); }
main { padding: 32px 0 56px; }
.hero { padding: 38px 0 30px; display: flex; justify-content: space-between; align-items: end; gap: 32px; border-bottom: 1px solid var(--border); }
.eyebrow { margin: 0 0 7px; color: var(--primary); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: var(--font-mono); font-size: clamp(2.1rem, 5vw, 4.75rem); line-height: 1.02; letter-spacing: -.065em; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { margin-bottom: 0; font-size: 1.05rem; line-height: 1.25; }
.hero-copy { max-width: 64ch; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.hero-status { min-width: 230px; display: flex; gap: 10px; padding: 14px; background: #edf9f5; border: 1px solid #bde9da; border-radius: 10px; color: #166b54; }
.hero-status span { display: block; font-size: 13px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0; padding: 12px; background: #eef4ff; border: 1px solid var(--border); border-radius: 12px; }
.filter-control { display: grid; gap: 4px; min-width: 190px; }
.filter-control label { color: var(--muted); font: 700 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.filter-control select { min-height: 38px; max-width: 260px; padding: 6px 30px 6px 9px; border: 1px solid #a9c5ef; border-radius: 7px; background: white; color: var(--ink); }
.filter-control select:focus-visible { outline: 3px solid rgb(217 119 6 / 55%); outline-offset: 2px; }
.filter-control select:disabled { cursor: not-allowed; opacity: .55; background: #e2e8f0; }
.filter-status { align-self: center; padding: 5px 8px; border-radius: 999px; background: white; color: var(--primary); font-size: 12px; font-weight: 700; }
.filter-help { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--mint); box-shadow: 0 0 0 4px rgb(24 163 123 / 12%); }
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 24px 0; }
.metric-card, .panel { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 12px; }
.metric-card { padding: 16px; }
.metric-card p { color: var(--muted); margin-bottom: 8px; font-size: 14px; }
.metric-card strong { display: block; margin-bottom: 4px; font: 700 1.9rem/1 var(--font-mono); letter-spacing: -.07em; }
.metric-card span { color: var(--muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 18px; min-width: 0; }
.overview-grid .panel-wide, .ops-grid .panel-wide { grid-column: span 8; }
.overview-grid .panel:not(.panel-wide), .ops-grid .panel:not(.panel-wide) { grid-column: span 4; }
.airline-grid .panel, .passenger-grid .panel { grid-column: span 6; }
.three-grid .panel { grid-column: span 4; }
.secondary-grid { margin-top: 16px; }
.text-theme-panel { margin-top: 16px; }
.panel-note { color: var(--muted); font: 600 11px var(--font-mono); }
.inline-muted { color: var(--muted); font-weight: 500; }
.quality-panel { max-width: 920px; }
.quality-row { align-items: center; }
.rate-pill-danger { background: #fff0f0; color: #a12626; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.panel-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.panel-heading.compact { min-height: 48px; }
.year-control { display: grid; gap: 4px; min-width: 150px; }
.year-control label { color: var(--muted); font: 700 11px var(--font-mono); text-transform: uppercase; }
.year-control select { min-height: 38px; padding: 6px 28px 6px 9px; border: 1px solid #a9c5ef; border-radius: 7px; background: white; color: var(--ink); }
.year-control select:focus-visible { outline: 3px solid rgb(217 119 6 / 55%); outline-offset: 2px; }
.split-visual { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 24px; align-items: start; }
.chart { width: 100%; height: 330px; }
.chart-compact { height: 250px; }
.chart-tall { height: 380px; }
.chart-empty { display: grid; place-items: center; min-height: 220px; padding: 24px; color: var(--muted); text-align: center; }
.is-scope-hidden { display: none !important; }
.section-block { margin-top: 42px; scroll-margin-top: 88px; }
.section-heading { margin-bottom: 16px; max-width: 72ch; }
.data-toggle { appearance: none; border: 1px solid var(--primary); border-radius: 7px; background: white; color: var(--primary); min-height: 36px; padding: 6px 10px; cursor: pointer; font-size: 12px; font-weight: 700; }
.data-toggle:hover { background: #edf2ff; }
.data-toggle:focus-visible, a:focus-visible { outline: 3px solid rgb(217 119 6 / 55%); outline-offset: 2px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.table-wrap th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.is-hidden { display: none; }
.ranked-list { display: grid; gap: 2px; }
.ranked-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ranked-row:last-child { border-bottom: none; }
.ranked-row strong { display: block; font-size: 14px; }
.ranked-row span { display: block; color: var(--muted); font-size: 12px; }
.rate-pill { align-self: center; padding: 4px 7px; background: #fff4e7; color: #9d5700; border-radius: 999px; font: 600 11px var(--font-mono); }
.route-panel { max-width: 980px; }
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.decision-card { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: 12px; box-shadow: var(--shadow); }
.decision-card .owner { display: inline-block; margin-bottom: 12px; color: var(--primary); font: 700 11px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.decision-card h3 { margin-bottom: 10px; }
.decision-card p { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.decision-card p:last-child { margin-bottom: 0; }
.decision-card strong { color: var(--ink); }
.methodology { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-top: 42px; padding: 24px 0; border-top: 1px solid var(--border); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; color: var(--muted); font-size: 14px; }
.method-grid strong { color: var(--ink); }
.site-footer { padding: 22px 0; color: #cbd5e1; background: var(--navy); font: 12px var(--font-mono); }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } .three-grid .panel { grid-column: span 6; } }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .overview-grid .panel-wide, .overview-grid .panel:not(.panel-wide), .ops-grid .panel-wide, .ops-grid .panel:not(.panel-wide), .airline-grid .panel, .passenger-grid .panel, .three-grid .panel { grid-column: 1 / -1; } .methodology { grid-template-columns: 1fr; } .split-visual { grid-template-columns: 1fr; } .decision-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .shell { width: min(100% - 24px, 1400px); } .nav-shell { align-items: flex-start; flex-direction: column; padding: 12px 0; } nav { width: 100%; gap: 16px; padding-bottom: 3px; } nav a { font-size: 12px; } .brand-muted { display: none; } .hero { display: block; padding-top: 24px; } .hero-status { margin-top: 20px; min-width: 0; } .filter-bar { align-items: stretch; } .filter-control, .filter-control select, .filter-bar .data-toggle { max-width: none; width: 100%; min-height: 44px; } .filter-status { align-self: stretch; border-radius: 8px; text-align: center; } .kpi-grid, .method-grid { grid-template-columns: 1fr; } .panel { overflow: hidden; } .panel-heading { align-items: stretch; flex-direction: column; } .panel-actions { align-items: stretch; } main { padding-top: 16px; } .chart { height: 300px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
