/* FlightHaven — deep navy + amber, responsive design system */
:root {
  --navy-900: #07142b;
  --navy-800: #0b1d3a;
  --navy-700: #122a52;
  --navy-600: #1a3868;
  --line: #213e6e;
  --paper: #ffffff;
  --paper-soft: #f5f7fb;
  --paper-mute: #eef2fa;
  --ink: #0b1d3a;
  --ink-soft: #44557a;
  --ink-mute: #6b7896;
  --amber: #ffb547;
  --amber-deep: #f59a18;
  --amber-soft: #fff3dc;
  --green: #1e8a5a;
  --red: #c44d4d;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11,29,58,.06), 0 1px 3px rgba(11,29,58,.04);
  --shadow-md: 0 4px 14px rgba(11,29,58,.08);
  --shadow-lg: 0 12px 40px rgba(11,29,58,.18);
  --max: 1180px;
  --pad-x: clamp(16px, 4vw, 22px);
}
* { box-sizing: border-box; }
*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--navy-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--amber-deep); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

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

/* Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 .5em;
  line-height: 1.22;
}
h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
h3 { font-size: clamp(17px, 2vw, 19px); font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 22px; margin: 0 0 1em; }
li { margin: .25em 0; }
small, .small { font-size: 13px; color: var(--ink-mute); }
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; background: rgba(255,255,255,.08); color: inherit; }

/* Header -------------------------------------------------------------- */
.site {
  background: var(--navy-900);
  color: #e8eefc;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,181,71,.2), 0 4px 16px rgba(7,20,43,.18);
}
.site .nav {
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; color: #fff !important; text-decoration: none !important;
  letter-spacing: -.01em;
  flex: none;
}
.brand .logo {
  width: 28px; height: 28px;
  background: var(--amber);
  border-radius: 7px;
  position: relative;
  box-shadow: inset 0 -2px 0 var(--amber-deep), 0 2px 6px rgba(245,154,24,.4);
  flex: none;
}
.brand .logo::after {
  content: ''; position: absolute; inset: 5px;
  background: var(--navy-900);
  clip-path: polygon(0 50%, 100% 0, 80% 50%, 100% 100%);
}

/* Mobile nav toggle */
.mnav-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: auto;
  border: 0; background: transparent; padding: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: background .15s;
}
.mnav-btn:hover { background: var(--navy-700); }
.mnav-bars { position: relative; width: 22px; height: 2px; background: #fff; display: block; transition: background .15s; }
.mnav-bars::before, .mnav-bars::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #fff;
  transition: transform .2s;
}
.mnav-bars::before { top: -7px; }
.mnav-bars::after { top: 7px; }
.mnav-btn[aria-expanded="true"] .mnav-bars { background: transparent; }
.mnav-btn[aria-expanded="true"] .mnav-bars::before { transform: translateY(7px) rotate(45deg); }
.mnav-btn[aria-expanded="true"] .mnav-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-collapse { display: flex; align-items: center; gap: 16px; flex: 1; }
.site ul {
  list-style: none; display: flex; gap: 2px; margin: 0; padding: 0;
}
.site ul a {
  display: inline-block; padding: 9px 12px; border-radius: 8px;
  color: #c8d3ee !important; font-size: 14px; font-weight: 500; text-decoration: none !important;
  transition: background .15s, color .15s;
}
.site ul a:hover { color: #fff !important; background: var(--navy-700); }
.site .search { margin-left: auto; display: flex; gap: 6px; }
.site .search input {
  border: 1px solid #2a4a87; background: #112144; color: #fff;
  padding: 9px 12px; border-radius: 8px; min-width: 220px; font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.site .search input::placeholder { color: #7b8db5; }
.site .search input:focus { border-color: var(--amber); background: #0e1d3f; }
.site .search button {
  background: var(--amber); color: var(--navy-900); border: 0;
  padding: 9px 16px; border-radius: 8px; font-weight: 700; cursor: pointer;
  font-size: 14px;
  transition: background .15s, transform .15s;
  min-height: 40px;
}
.site .search button:hover { background: #ffc66e; }
.site .search button:active { transform: translateY(1px); }

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top right, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #f3f6ff;
  padding: clamp(48px, 8vw, 72px) 0 clamp(44px, 7vw, 60px);
  border-bottom: 4px solid var(--amber);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .22;
  filter: saturate(.8) contrast(1.05);
}
.hero::before {
  content: ''; position: absolute; top: -160px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,181,71,.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,20,43,.45) 0%, rgba(7,20,43,.78) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  color: #fff; font-size: clamp(32px, 5.6vw, 52px); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--amber); display: inline-block; }
.hero p.lede { font-size: clamp(15px, 1.8vw, 18px); color: #d8e1f5; max-width: 640px; margin-bottom: 28px; line-height: 1.55; }
.hero-search {
  display: flex; gap: 8px; background: #fff; padding: 8px;
  border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,181,71,.15);
  max-width: 600px;
}
.hero-search input {
  flex: 1; border: 0; outline: none; padding: 14px 16px;
  font-size: 16px; color: var(--ink); background: transparent;
  min-width: 0;
}
.hero-search button {
  background: var(--amber); color: var(--navy-900); border: 0;
  padding: 14px 24px; border-radius: 10px; font-weight: 800; font-size: 15px;
  cursor: pointer; letter-spacing: .01em;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  min-height: 48px;
}
.hero-search button:hover { background: #ffc66e; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245,154,24,.4); }
.hero-meta {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 28px;
  font-size: 14px; color: #c5d2ee;
}
.hero-meta strong { color: #fff; font-weight: 700; }

/* Tips strip ---------------------------------------------------------- */
.tips-strip {
  background: var(--navy-800);
  border-bottom: 1px solid var(--navy-600);
  padding: 24px 0 28px;
}
.tips-strip h4, .tips-strip h2.tips-h {
  color: var(--amber); margin: 0 0 16px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.tips-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px;
}
.tip {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; background: #112144; border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform .15s, border-color .15s;
}
.tip:hover { transform: translateY(-2px); border-color: var(--amber); }
.tip .num {
  flex: none;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--amber); color: var(--navy-900);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 6px rgba(245,154,24,.3);
}
.tip .body { color: #d6e0f5; font-size: 13.5px; line-height: 1.5; }
.tip .body strong { color: #fff; display: block; font-size: 14px; margin-bottom: 3px; }

/* Sections ------------------------------------------------------------ */
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section.alt { background: #fff; border-top: 1px solid #e6ebf5; border-bottom: 1px solid #e6ebf5; }
.section .kicker { color: var(--amber-deep); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.section .lede { color: var(--ink-soft); max-width: 720px; font-size: 16px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .more { font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.section-head .more:hover { color: var(--amber-deep); }

/* Grid + cards -------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-decoration: none !important;
  color: inherit;
  display: block;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c2cee8;
}
.card:focus-visible { outline-offset: 4px; }
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy-900); }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.card .row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* Route card with arrow */
.route-card {
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c2cee8; }
.route-card .pair { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-900); font-size: 15px; flex-wrap: wrap; }
.route-card .pair .arrow { color: var(--amber-deep); font-weight: 800; font-size: 18px; }
.route-card .meta { color: var(--ink-mute); font-size: 13px; }
.route-card .stat-line { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.route-card .stat-line span strong { color: var(--navy-900); }

/* Tags --------------------------------------------------------------- */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: #eef2fb; color: var(--navy-700);
  border: 1px solid #dde3f3;
}
.tag.budget { background: var(--amber-soft); color: var(--amber-deep); border-color: #f8d691; }
.tag.active { background: #e6f6ee; color: var(--green); border-color: #c0e6cf; }
.tag.inactive { background: #fbe8e8; color: var(--red); border-color: #f4c8c8; }
.tag.dark { background: var(--navy-800); color: #cdd9f3; border-color: var(--navy-600); }

/* Stats -------------------------------------------------------------- */
.airport-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px; margin: 22px 0;
}
.stat {
  background: #fff; border: 1px solid #e6ebf5; border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.stat .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 700; }
.stat .val { font-size: clamp(20px, 3vw, 24px); font-weight: 800; color: var(--navy-900); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Detail page layout -------------------------------------------------- */
.layout {
  display: grid; grid-template-columns: minmax(0,1fr) 320px;
  gap: 32px; margin-top: 18px;
}
.prose {
  background: #fff; border: 1px solid #e6ebf5; border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.prose h2 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 30px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; }
.prose h3 { font-size: 18px; margin-top: 24px; }
.prose ul li, .prose ol li { margin: .35em 0; }
.prose table { margin: 8px 0 18px; }
.sidebar { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sidebar .card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 10px; border-bottom: 1px solid #eef2fb; padding-bottom: 8px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { padding: 7px 0; border-bottom: 1px solid #f3f5fb; font-size: 14px; }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar ul li a { color: var(--navy-800); font-weight: 500; }
.sidebar ul li a:hover { color: var(--amber-deep); }

/* Detail page header (dark band) ------------------------------------- */
.page-head {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: clamp(20px, 4vw, 30px) 0 clamp(18px, 3vw, 26px);
  border-bottom: 3px solid var(--amber);
}
.page-head .breadcrumbs { color: #b9c6e6; font-size: 13px; margin-bottom: 8px; word-wrap: break-word; }
.page-head .breadcrumbs a { color: #cfd9f1; }
.page-head .breadcrumbs a:hover { color: var(--amber); }
.page-head h1 { color: #fff; font-size: clamp(24px, 4vw, 36px); margin: 6px 0 8px; }
.page-head h1 .code { color: var(--amber); font-weight: 700; font-size: .8em; margin-left: 8px; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.page-head .meta .tag { background: rgba(255,255,255,.08); color: #d8e1f5; border-color: rgba(255,255,255,.15); }
.page-head .meta .tag.budget { background: var(--amber-soft); color: var(--amber-deep); border-color: #f8d691; }
.page-head .meta .tag.active { background: #1c5b3d; color: #b6e6cb; border-color: #25744d; }
.page-head .meta .tag.inactive { background: #5b2222; color: #f4c8c8; border-color: #7b3030; }

/* Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid #e6ebf5; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f8; }
th { background: var(--paper-soft); font-weight: 700; color: var(--navy-800); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #fafbfe; }

/* Callout ----------------------------------------------------------- */
.callout {
  background: var(--amber-soft); border: 1px solid #f4d28b;
  border-left: 4px solid var(--amber-deep);
  padding: 14px 16px; border-radius: 8px; margin: 18px 0;
  color: #5b3e10; font-size: 14px;
}
.callout strong { color: #4a3208; }

/* Index page rows --------------------------------------------------- */
.entry-list { background: #fff; border: 1px solid #e6ebf5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.entry-list .row {
  display: grid; grid-template-columns: 70px 1.2fr 1fr 90px;
  align-items: center; padding: 14px 18px; gap: 12px;
  border-top: 1px solid #f0f3fb;
  transition: background .12s;
}
.entry-list .row:first-child { border-top: 0; }
.entry-list .row:hover { background: #fafbfe; }
.entry-list .code {
  display: inline-block; background: var(--navy-800); color: var(--amber);
  font-family: ui-monospace, monospace; font-weight: 700; font-size: 13px;
  padding: 4px 9px; border-radius: 5px; letter-spacing: .04em;
  text-align: center;
}
.entry-list .name { font-weight: 600; color: var(--navy-900); min-width: 0; }
.entry-list .name a { color: inherit; }
.entry-list .name a:hover { color: var(--amber-deep); }
.entry-list .geo { color: var(--ink-soft); font-size: 13.5px; min-width: 0; }
.entry-list .num { text-align: right; color: var(--ink-mute); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pager ------------------------------------------------------------- */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0; align-items: center; }
.pager a, .pager span {
  padding: 9px 13px; border-radius: 7px; border: 1px solid #d8dff0; background: #fff;
  font-size: 14px; color: var(--navy-800); min-width: 40px; text-align: center;
  transition: background .12s, color .12s, border-color .12s;
}
.pager a:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); text-decoration: none; }
.pager .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); font-weight: 700; }

/* Adslot ------------------------------------------------------------ */
.adslot {
  margin: 18px 0; padding: 24px; text-align: center;
  background: #f7f9fd; color: #b3bedb;
  border: 1px dashed #d2dbef; border-radius: 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
}

/* Footer ----------------------------------------------------------- */
.footer {
  background: var(--navy-900); color: #c5d2ee;
  padding: clamp(36px, 5vw, 56px) 0 24px; margin-top: clamp(40px, 5vw, 64px);
  border-top: 4px solid var(--amber);
}
.footer h4, .footer h2.ftr-h { color: #fff; font-size: 13px; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer a { color: #c5d2ee !important; }
.footer a:hover { color: var(--amber) !important; }
.footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--navy-700); font-size: 13px; color: #8696bf; }

/* Search ----------------------------------------------------------- */
.search-results { background: #fff; padding: 22px; border-radius: var(--radius-lg); border: 1px solid #e6ebf5; box-shadow: var(--shadow-sm); }
.search-results h3 { margin-top: 0; }

/* 404 -------------------------------------------------------------- */
.notfound { padding: clamp(60px, 10vw, 100px) 0; text-align: center; }
.notfound h1 { font-size: clamp(64px, 12vw, 96px); color: var(--navy-700); margin: 0; letter-spacing: -.04em; }

/* Featured-route mini grid ----------------------------------------- */
.routes-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }

/* Article body for guides ------------------------------------------ */
.article-meta { color: var(--ink-mute); font-size: 13.5px; margin-bottom: 18px; }
.article-meta a { color: var(--navy-700); }

/* Accessibility — skip-to-main-content link */
.skip-link{position:absolute;left:-9999px;top:0;background:#0b1d3a;color:#ffd166;padding:10px 16px;font-weight:700;border-radius:0 0 8px 0;z-index:9999}
.skip-link:focus{left:0}
#main-content{outline:none}

/* Responsive --------------------------------------------------------
   Breakpoints: 1024 (laptop) / 820 (tablet) / 640 (phone) / 420 (small phone)
-------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tips-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .routes-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer .cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site .search input { min-width: 160px; }
}

@media (max-width: 820px) {
  /* Mobile nav: collapse menu + search behind hamburger.
     If JS is enabled, .nav-collapse is hidden until .is-open is toggled.
     Without JS, the menu stays visible (progressive enhancement). */
  .mnav-btn { display: inline-flex; }
  .js .nav-collapse {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x) 16px;
    border-bottom: 3px solid var(--amber);
    box-shadow: 0 12px 24px rgba(0,0,0,.35);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
  }
  .js .nav-collapse.is-open { display: flex; }
  /* Without JS, stack nav inline below brand */
  html:not(.js) .nav-collapse {
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
  }
  html:not(.js) .site .nav { flex-wrap: wrap; }
  .site .nav { position: relative; gap: 8px; padding: 10px var(--pad-x); }
  .site ul { flex-direction: column; gap: 0; padding-top: 6px; width: 100%; }
  .site ul li { width: 100%; }
  .site ul a { display: block; padding: 12px 14px; font-size: 15px; border-radius: 8px; }
  .site .search { margin-left: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--navy-700); }
  .site .search input { width: 100%; min-width: 0; flex: 1; }

  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer .cols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
  .airport-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tips-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-meta { gap: 12px 22px; font-size: 13.5px; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero-search { flex-direction: column; padding: 8px; gap: 4px; }
  .hero-search input { padding: 12px 14px; }
  .hero-search button { width: 100%; padding: 14px; border-radius: 10px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .routes-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer .cols { grid-template-columns: 1fr; gap: 24px; }
  .entry-list .row {
    grid-template-columns: 60px 1fr;
    grid-template-areas: "code name" ". geo" ". num";
    row-gap: 4px;
    padding: 14px 14px;
  }
  .entry-list .row .code { grid-area: code; }
  .entry-list .row .name { grid-area: name; }
  .entry-list .row .geo { grid-area: geo; }
  .entry-list .row .num { grid-area: num; text-align: left; padding-top: 2px; }
  .page-head h1 .code { display: inline-block; margin-left: 0; margin-top: 4px; }
  .airport-stats { gap: 8px; }
  .stat { padding: 12px 14px; }
  .pager a, .pager span { padding: 8px 11px; }
}

@media (max-width: 420px) {
  :root { --pad-x: 14px; }
  .brand { font-size: 17px; }
  .brand .logo { width: 26px; height: 26px; }
  .hero-meta { gap: 8px 16px; }
  .hero-meta span { white-space: nowrap; }
}

/* Hover-capable devices only — disable lift on touch */
@media (hover: none) {
  .card:hover, .route-card:hover, .tip:hover { transform: none; box-shadow: var(--shadow-sm); }
}
