:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #0a1530;
  --ink-soft: #44516e;
  --muted: #7a849a;
  --rule: #e3decf;
  --brand: #f0a830;
  --brand-deep: #b3760e;
  --accent: #1f3a8a;
  --accent-soft: #eef1ff;
  --board-bg: #050b1f;
  --board-amber: #ffb22a;
  --maxw: 1180px;
  --radius: 6px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.iata, .card-rank, .card h3, .airport-header h1, .data-table th,
.brand-text small, .breadcrumbs, .kicker, .fact-card dt, .fact-card h3,
.airport-page .lede, .section-tabs a {
  font-family: 'JetBrains Mono', 'Space Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--brand);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark img { width: 36px; height: 36px; border-radius: 6px; display: block; }
.brand-text strong { display: block; font-family: 'Fraunces', serif; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-text small { color: #c2b89c; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.primary { display: flex; gap: 18px; flex-wrap: wrap; }
.primary a { color: #e9e5d8; font-size: .95rem; }
.primary a:hover { color: var(--brand); text-decoration: none; }

.breadcrumbs {
  background: #efeadb;
  border-bottom: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--ink-soft);
}
.breadcrumbs .wrap { padding: 10px 24px; }
.breadcrumbs .sep { margin: 0 6px; color: var(--muted); }

.site-main { padding: 36px 0 60px; }

/* Hero */
.hero {
  position: relative;
  background-size: cover; background-position: center;
  border-radius: 10px;
  padding: 120px 44px 110px;
  color: #fff;
  margin-bottom: 48px;
  overflow: hidden;
  border: 1px solid rgba(255,178,42,.18);
  box-shadow: 0 24px 48px -22px rgba(8,15,40,.5);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(240,168,48,.18), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,178,42,.04) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .25em;
  color: var(--board-amber);
  text-transform: uppercase;
  background: rgba(5,11,31,.65);
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,178,42,.35);
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff; max-width: 920px; font-size: 3.1rem;
  letter-spacing: -.015em; line-height: 1.1; margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero .lede { color: #e8e2cf; font-size: 1.18rem; max-width: 760px; line-height: 1.55; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.section { margin: 48px 0; }
.section-lede { color: var(--ink-soft); max-width: 760px; }

/* Cards */
.grid { list-style: none; padding: 0; display: grid; gap: 16px; }
.airport-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.region-grid  { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13, 27, 58, .08); }
.card a { display: block; padding: 18px; color: inherit; }
.card a:hover { text-decoration: none; }
.card-rank { font-size: .75rem; color: var(--brand-deep); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.card h3 { margin: 6px 0 4px; color: var(--ink); }
.card-name { color: var(--ink-soft); font-size: .92rem; min-height: 2.6em; }
.card .muted { color: var(--muted); font-size: .85rem; }
.meta { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.meta li { background: var(--accent-soft); padding: 3px 8px; border-radius: 4px; }

/* Cols */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cols-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 880px) { .cols-with-side { grid-template-columns: 1fr; } }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.data-table th { background: #efeadb; color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #faf8f1; }

/* Airport page */
.airport-page .kicker { color: var(--brand-deep); font-weight: 700; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 8px; }
.airport-header h1 { font-size: 2.6rem; letter-spacing: -.01em; }
.airport-header h1::first-letter { color: var(--brand-deep); }

/* IATA "split-flap" board callouts */
.card h3, .airport-header h1 {
  display: block;
}
.card .card-rank {
  background: var(--board-bg);
  color: var(--board-amber);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: .12em;
  text-shadow: 0 0 6px rgba(255,178,42,.45);
  font-weight: 700;
}

.related-resources {
  margin: 60px 0 0;
  padding: 28px 26px;
  background: linear-gradient(180deg, #0a1530 0%, #11203f 100%);
  color: #d8dde9;
  border-radius: var(--radius);
  border-top: 3px solid var(--brand);
}
.related-resources h2 {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(255,178,42,.25);
  padding-bottom: 10px;
}
.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.related-list li { color: #98a3bd; font-size: .9rem; min-height: 1.4em; }
.related-list a { color: var(--board-amber); }
.related-list a:hover { color: #fff; }

/* Hub pages */
.hub-page .hub-header { padding: 36px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.hub-page .kicker { color: var(--brand-deep); font-weight: 700; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 8px; font-family: 'JetBrains Mono', monospace; }
.hub-page h1 { font-size: 2.4rem; }
.hub-page .lede { color: var(--ink-soft); font-size: 1.15rem; max-width: 820px; }
.airport-header { padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.section-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--rule); padding-bottom: 0; }
.section-tabs a { padding: 9px 14px; color: var(--ink-soft); font-weight: 600; font-size: .82rem; letter-spacing: .04em; border-bottom: 3px solid transparent; margin-bottom: -1px; text-transform: uppercase; }
.section-tabs a:hover { color: var(--ink); text-decoration: none; background: rgba(240,168,48,.08); }
.section-tabs a.active { color: var(--ink); border-bottom-color: var(--brand); background: rgba(240,168,48,.06); }
.content h2 { font-size: 1.8rem; }
.content p { font-size: 1.05rem; }
.content .sourced { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--rule); padding-left: 12px; }
.airline-list { list-style: none; padding: 0; columns: 2; column-gap: 24px; }
.airline-list li { padding: 6px 0; border-bottom: 1px dashed var(--rule); break-inside: avoid; }
.airline-list .badge { background: var(--brand); color: #fff; font-size: .65rem; padding: 2px 6px; border-radius: 3px; margin-left: 4px; vertical-align: middle; letter-spacing: .08em; }

/* Sidebar */
.sidebar { position: sticky; top: 88px; }
.fact-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.fact-card h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 6px; margin-bottom: 12px; }
.fact-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.fact-card dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact-card dd { margin: 0 0 6px; color: var(--ink); font-weight: 500; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 4px 0; font-size: .92rem; }
.fact-card .small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.fact-card .small:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: #11203f; color: #c8cfdf; padding: 40px 0 22px; margin-top: 60px; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer .cols { gap: 32px; }
.site-footer p { color: #9aa6bf; font-size: .92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 3px 0; }
.site-footer a { color: #c8cfdf; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.site-footer .legal { margin-top: 28px; font-size: .8rem; color: #6f7b95; border-top: 1px solid #1d2c4d; padding-top: 16px; }

.lede { font-size: 1.15rem; color: var(--ink-soft); }
@media (max-width: 880px) {
  .site-header .wrap { gap: 10px; }
  .primary { gap: 14px; font-size: .88rem; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .primary::-webkit-scrollbar { height: 0; }
  .primary a { white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .site-main { padding: 22px 0 40px; }
  .hero { padding: 64px 22px 56px; border-radius: 8px; }
  .hero h1 { font-size: 1.95rem; }
  .hero .lede { font-size: 1rem; }
  .hero .kicker { font-size: .65rem; padding: 5px 9px; letter-spacing: .2em; }
  .airport-header h1 { font-size: 1.95rem; }
  .airline-list { columns: 1; }
  .section-tabs a { padding: 8px 11px; font-size: .72rem; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: .85rem; }
  .related-resources { padding: 22px 18px; }
  .fact-card { padding: 14px; }
  .site-footer { padding: 30px 0 18px; }
  .site-footer .cols { gap: 18px; grid-template-columns: 1fr; }
}
