:root {
  color-scheme: light;
  --paper: #f3f5f7;
  --white: #fff;
  --ink: #142533;
  --muted: #556673;
  --dim: #6a7985;
  --border: #e0e6ea;
  --navy: #102131;
  --amber: #f6ad5a;
  --teal: #0f6d5a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 "Segoe UI", system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #267ca0; outline-offset: 3px; }
.container { width: min(100% - 4rem, 1240px); margin-inline: auto; }
.topbar { color: #f2f5f6; background: #0d1d2b; }
.topline { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; gap: .68rem; align-items: center; font-size: 1rem; letter-spacing: .17em; font-weight: 750; }
nav { display: flex; gap: 1.95rem; font-size: .9rem; color: #d4dfe7; }
nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.dataset-link { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: #d4dfe7; }
.dataset-link span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #112639; }
.hero::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg,#101e2f 0%,rgba(16,30,47,.93) 22%,rgba(16,30,47,.58) 56%,rgba(16,30,47,.14) 100%), linear-gradient(0deg,rgba(11,25,38,.72),transparent 57%), url("/airport-hero.webp") center 57% / cover no-repeat; }
.hero-layout { min-height: 372px; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-block: 3.45rem 3.15rem; }
.hero-copy { max-width: 580px; }
.hero-kicker { color: #ffbf76; font-size: .84rem; font-weight: 700; letter-spacing: .2em; margin-bottom: .95rem; }
h1, h2, p { margin: 0; }
.hero h1 { font-size: clamp(3.35rem, 6.35vw, 5.65rem); letter-spacing: -.065em; line-height: .94; font-weight: 750; }
.hero h1 span { color: var(--amber); }
.hero-copy p { margin-top: 1.25rem; max-width: 32rem; color: #d5e3ed; font-size: 1.04rem; }
.hero-date { border-left: 2px solid var(--amber); padding: .15rem 0 .15rem 1rem; min-width: max-content; display: grid; gap: .23rem; }
.hero-date span { color: #f5b46e; font-size: .73rem; letter-spacing: .15em; font-weight: 700; }
.hero-date strong { font-size: 1.14rem; font-weight: 650; }
.hero-date small { color: #d9e4ec; font-size: .82rem; }
.dashboard { padding-block: 2rem 3.5rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.section-header h2 { font-size: clamp(1.27rem, 2.15vw, 1.62rem); line-height: 1.15; letter-spacing: -.037em; font-weight: 730; }
.section-header p { color: var(--muted); margin-top: .35rem; font-size: .91rem; }
.segmented { display: inline-flex; flex: none; border: 1px solid var(--border); padding: 3px; background: #f1f4f6; border-radius: 9px; gap: 2px; }
.segmented button { border: 0; background: transparent; border-radius: 6px; padding: .38rem .78rem; color: #455a6a; font-size: .86rem; white-space: nowrap; font-weight: 600; }
.segmented button:hover { color: var(--ink); background: #e6edf1; }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px #24364520; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .9rem; margin-top: 1.02rem; }
.stat, .panel { background: var(--white); border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 1px 2px #14253306; }
.stat { padding: 1rem 1.16rem; }
.stat > p { color: var(--muted); font-size: .9rem; font-weight: 600; }
.stat > strong { display: block; font-size: clamp(1.6rem, 2.65vw, 2.2rem); line-height: 1.22; margin-block: .29rem .65rem; letter-spacing: -.048em; font-variant-numeric: tabular-nums; }
.stat div { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; color: var(--dim); font-size: .78rem; }
.chip { padding: .12rem .43rem; background: #e8f4ef; color: var(--teal); border-radius: 5px; font-weight: 720; white-space: nowrap; }
.chip.negative { background: #fff1e2; color: #8a5421; }
.plain-note { padding-block: .12rem; }
.analysis-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: .9rem; margin-top: 1rem; }
.panel-header { padding: 1.2rem 1.25rem .9rem; }
.chart-card { min-width: 0; }
.chart-card .section-header h2, .airports-card .section-header h2 { font-size: 1.2rem; }
.chart { display: grid; grid-template-columns: 3rem minmax(0,1fr); padding: .27rem 1.25rem 0; color: var(--dim); font-size: .75rem; min-height: 185px; }
.chart-scale { height: 156px; position: relative; margin-right: .6rem; }
.chart-scale span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.chart-plot { min-width: 0; }
.chart-bars { height: 156px; display: grid; grid-template-columns: repeat(var(--columns), minmax(0,1fr)); align-items: end; gap: clamp(2px, .4vw, 6px); background: repeating-linear-gradient(to top, #e5eaee 0 1px, transparent 1px 25%); border-top: 1px solid #e5eaee; padding-inline: 2px; }
.chart-bars button { height: var(--amount); min-height: 2px; min-width: 0; border: 0; padding: 0; border-radius: 3px 3px 0 0; background: #3f6b87; }
.chart-bars button.weekend { background: #7894a8; }
.chart-bars button:hover, .chart-bars button:focus-visible, .chart-bars button.selected { background: #f0a447; }
.chart-dates { display: flex; justify-content: space-between; padding-top: .38rem; gap: 3px; white-space: nowrap; }
.chart-detail { min-height: 2rem; padding: .2rem 1.25rem .83rem; color: var(--muted); font-size: .82rem; text-align: right; }
.airport-list { list-style: none; margin: 0; padding: 0 1.25rem 1.2rem; display: grid; gap: .88rem; }
.airport-label { display: flex; align-items: center; gap: .5rem; }
.airport-label strong { font-size: .92rem; }
.airport-label small { color: var(--muted); font-size: .77rem; }
.airport-label b { margin-left: auto; font-size: .86rem; font-variant-numeric: tabular-nums; }
.meter { height: 5px; overflow: hidden; border-radius: 30px; background: #edf1f4; margin-top: .28rem; }
.meter span { display: block; height: 100%; width: var(--amount); background: #547a94; border-radius: inherit; }
.airport-list li:first-child .meter span { background: #d48c36; }
.routes-panel { margin-top: 1rem; }
.filter { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); padding: 0 .7rem; }
.filter:focus-within { border-color: #337c9b; }
.filter input { border: none; background: transparent; color: var(--ink); outline: none; padding: .55rem 0; width: min(10.7rem, 100%); font-size: .86rem; }
.filter input:focus-visible { outline: none; }
.search-icon { flex: none; width: 12px; height: 12px; border: 1.7px solid #667d8d; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; background: #667d8d; position: absolute; width: 5px; height: 1.7px; top: 8px; left: 8px; transform: rotate(45deg); transform-origin: left center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 530px; border-collapse: collapse; text-align: left; font-size: .92rem; }
th, td { padding: .65rem 1.23rem; border-top: 1px solid #e9edf0; white-space: nowrap; }
thead th { background: #f3f6f8; color: var(--muted); font-size: .82rem; font-weight: 680; }
th:not(:first-child), td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
th button { padding: 0; color: inherit; border: none; background: transparent; font-weight: inherit; }
th button:hover { text-decoration: underline; text-underline-offset: 3px; }
th button span { display: inline-block; color: #2e6e92; width: .75em; }
tbody tr:hover { background: #f8fafb; }
td .route-codes { display: block; font-size: .78rem; color: var(--muted); }
td strong { font-weight: 650; }
.load-value { min-width: 3.5em; display: inline-block; color: #21614f; background: #edf6f2; border-radius: 4px; padding: .15rem .35rem; text-align: center; }
.empty { padding: 1.15rem 1.25rem; color: var(--muted); }
footer { background: #102131; color: #e1e9ee; padding-block: 1.4rem; }
.footer-content { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .85rem 1.5rem; }
footer p, .download { font-size: .88rem; }
.download { font-weight: 650; color: #ffc481; text-decoration: underline; text-underline-offset: 4px; }
.noscript { padding: 1rem; }
@media (max-width: 950px) {
  .container { width: min(100% - 2.75rem, 1240px); }
  .analysis-grid { grid-template-columns: minmax(0,1fr); }
  .airport-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 1.9rem; }
}
@media (max-width: 660px) {
  .container { width: calc(100% - 1.6rem); }
  .topline { flex-wrap: wrap; gap: .6rem 1rem; min-height: auto; padding-block: .8rem; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: .65rem; padding: .45rem .12rem 0; border-top: 1px solid #ffffff2a; }
  .dataset-link { font-size: .72rem; gap: .38rem; }
  .brand { font-size: .88rem; gap: .45rem; }
  .brand img { width: 29px; height: 29px; }
  .hero-layout { min-height: 365px; gap: 1.35rem; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 2.2rem; }
  .hero::before { background-position: center, center, 64% 54%; }
  .hero-copy p { max-width: 21rem; font-size: 1rem; }
  .hero-date strong { font-size: .98rem; }
  .dashboard { padding-block: 1.5rem 2rem; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; }
  .stat { padding: .7rem .65rem; }
  .stat > p { font-size: .83rem; }
  .stat div { font-size: .72rem; }
  .section-header { align-items: flex-start; flex-wrap: wrap; gap: .65rem; }
  .segmented button { padding-inline: .62rem; }
  .panel-header { padding-inline: .85rem; }
  .chart { padding-inline: .66rem .8rem; grid-template-columns: 2.7rem minmax(0,1fr); }
  .chart-dates { font-size: .66rem; }
  .chart-bars { gap: 2px; }
  .airport-list { grid-template-columns: 1fr; padding-inline: .85rem; gap: .68rem; }
  .filter { width: 100%; }
  .filter input { width: 100%; }
  th, td { padding-inline: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.brand img { display: block; object-fit: contain; }
.source { text-decoration: underline; text-underline-offset: 3px; }
.table-actions { padding: 0 1.25rem 0.9rem; }
.table-actions:has(button[hidden]) { display: none; }
.table-actions button { border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: #f3f6f8; padding: .45rem .75rem; font-size: .88rem; font-weight: 650; }
.table-actions button:hover { background: #e6edf1; }
.download[aria-disabled="true"] { opacity: .54; }
.airport-label strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airport-label small { flex-shrink: 0; }