:root {
  --navy: #0a1628;
  --navy-2: #0f1f38;
  --navy-3: #182d4d;
  --ink: #0a1628;
  --ink-soft: #4a5d75;
  --paper: #f4f1ea;
  --paper-2: #ebe6d8;
  --card: #ffffff;
  --line: #d9d4c4;
  --line-2: #2a3d5c;
  --signal: #ffd60a;
  --signal-2: #ffc300;
  --signal-glow: rgba(255, 214, 10, 0.35);
  --rail-red: #d62828;
  --rail-green: #2a9d4a;
  --rail-blue: #1d4ed8;
  --rail-purple: #7c3aed;
  --rail-orange: #ea580c;
  --rail-teal: #0e7c7b;
  --max: 1220px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rail-red); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility strip ---------- */
.utility-bar {
  background: #050d1c;
  color: #8da4c4;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #122039;
}
.utility-bar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 24px; gap: 16px; flex-wrap: wrap;
}
.utility-bar .live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--signal); margin-right: 6px;
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--signal-glow); }
  70% { box-shadow: 0 0 0 8px rgba(255,214,10,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,214,10,0); }
}
.utility-bar a { color: #c9d6e9; text-decoration: none; }
.utility-bar a:hover { color: var(--signal); }
.utility-bar .pipe { color: #2a3d5c; margin: 0 8px; }

/* ---------- Header ---------- */
.site-head {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--signal);
  position: relative;
}
.site-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 24px, #050d1c 24px 32px);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; padding: 16px 24px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--signal);
  display: grid; place-items: center;
  color: var(--navy); font-weight: 900;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.04em;
  font-size: 18px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 0 0 0 3px var(--navy), 0 0 0 4px rgba(255,214,10,0.45);
}
.brand-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1;
}
.brand-sub {
  font-size: 11px; color: #a8bdd9;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em;
  display: inline-block; margin-top: 4px;
}

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a {
  color: #e6ecf4; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px 14px; border-radius: 3px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--navy-3); color: var(--signal); }
.nav a.cta {
  background: var(--signal); color: var(--navy); margin-left: 10px;
  box-shadow: 0 0 0 2px transparent;
}
.nav a.cta:hover { background: var(--signal-2); color: var(--navy); box-shadow: 0 0 0 2px var(--signal-glow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.42; mix-blend-mode: luminosity;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(255,214,10,0.08), transparent 60%),
    linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.95) 100%);
}
.hero-rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal) 60%, var(--rail-red) 60%, var(--rail-red) 80%, var(--navy-3) 80%);
}
.hero-inner { position: relative; padding: 72px 0 84px; }
.hero .eyebrow {
  font-family: 'Inter', sans-serif; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--signal);
  margin: 0 0 18px;
}
.hero .eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: var(--signal); vertical-align: middle; margin-right: 12px;
}
.hero h1 {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.02;
  margin: 0 0 18px; letter-spacing: -0.035em; max-width: 920px;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 720px; color: #d4dbe7; line-height: 1.55; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
}
.hero-stats .stat { color: #fff; }
.hero-stats .stat .n {
  display: block; font-size: 28px; font-weight: 800; color: var(--signal);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-stats .stat .l {
  display: block; font-size: 11px; color: #a8bdd9; text-transform: uppercase;
  letter-spacing: 0.14em; margin-top: 6px;
}

/* ---------- Trip finder (search box) ---------- */
.tripfind {
  background: #fff; color: var(--ink);
  padding: 22px 22px 18px; border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px;
  max-width: 820px; margin-top: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px var(--signal);
  position: relative;
}
.tripfind::before {
  content: "TRIP FINDER";
  position: absolute; top: -10px; left: 18px;
  background: var(--signal); color: var(--navy);
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 800;
  padding: 4px 10px; letter-spacing: 0.14em; border-radius: 2px;
}
.tripfind label {
  font-size: 10px; font-family: 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft);
  font-weight: 700; display: block; margin-bottom: 4px;
}
.tripfind select, .tripfind input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 3px; font-size: 15px; font-family: inherit; background: #fff;
  color: var(--ink);
}
.tripfind select:focus, .tripfind input:focus { outline: 2px solid var(--signal); border-color: var(--signal); }
.tripfind button {
  align-self: end;
  background: var(--navy); color: var(--signal);
  border: 0; padding: 12px 22px; border-radius: 3px;
  font-weight: 800; font-family: 'Inter', sans-serif;
  cursor: pointer; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: background .15s;
}
.tripfind button:hover { background: var(--navy-3); }
@media (max-width: 700px) { .tripfind { grid-template-columns: 1fr; } }

/* ---------- Route badges (THE signature element) ---------- */
.route-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800; letter-spacing: -0.01em;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
}
.route-badge.pill {
  background: var(--navy); color: #fff;
  padding: 5px 11px 5px 7px; border-radius: 999px;
  font-size: 12px; line-height: 1; gap: 6px;
  border: 1px solid var(--line-2);
}
.route-badge.pill .dot {
  width: 14px; height: 14px; border-radius: 999px; background: var(--signal); display: inline-block;
}
.route-badge.circle {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--signal); color: var(--navy);
  font-size: 14px; flex-shrink: 0;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.18);
  text-decoration: none;
}
.route-badge.large {
  width: 64px; height: 64px; font-size: 18px;
}
.route-badge.long-distance { background: var(--signal); color: var(--navy); }
.route-badge.high-speed   { background: var(--rail-red); color: #fff; }
.route-badge.express      { background: var(--rail-blue); color: #fff; }
.route-badge.intercity    { background: var(--navy); color: var(--signal); border: 2px solid var(--signal); }
.route-badge.commuter     { background: var(--rail-green); color: #fff; }
.route-badge.regional     { background: var(--rail-purple); color: #fff; }
.route-badge.corridor     { background: var(--rail-teal); color: #fff; }
.route-badge.scenic       { background: var(--rail-orange); color: #fff; }

/* Old .tag styles (keep for compat) ---- replaced look */
.tag {
  display: inline-block;
  background: var(--navy); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  margin-right: 6px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; line-height: 1.4;
}
.tag.rail { background: var(--rail-green); color: #fff; }
.tag.rose { background: var(--rail-red); color: #fff; }
.tag.muted { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.tag.signal { background: var(--signal); color: var(--navy); }

/* ---------- Layout ---------- */
main { padding: 40px 0 60px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

h1.title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 12px 0 10px; letter-spacing: -0.025em;
}
h2 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 24px; margin: 36px 0 14px; letter-spacing: -0.01em;
  padding-bottom: 8px; border-bottom: 2px solid var(--navy);
  display: flex; align-items: center; gap: 12px;
}
h2::before {
  content: ""; width: 8px; height: 22px; background: var(--signal);
  display: inline-block; flex-shrink: 0;
}
h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.55; }

/* breadcrumbs */
.crumbs {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--ink-soft); margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--rail-red); }
.crumbs .sep { color: var(--line); margin: 0 8px; }

/* ---------- Factbox ---------- */
.factbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 22px 0;
  position: relative;
  box-shadow: 0 1px 0 var(--line);
}
.factbox h3 {
  margin-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--navy);
  font-family: 'Inter', sans-serif; text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.12em; color: var(--navy);
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; font-size: 14px; margin: 0; }
.facts dt {
  font-family: 'Inter', sans-serif; color: var(--ink-soft);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  margin-bottom: 2px;
}
.facts dd { margin: 0 0 6px; font-weight: 600; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--navy); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink); display: block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--signal); transform: translateX(-100%); transition: transform .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10,22,40,0.10); border-color: var(--navy); color: var(--ink); }
.card:hover::before { transform: translateX(0); }
.card .eyebrow {
  font-family: 'Inter', sans-serif; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--rail-red); font-weight: 700;
}
.card h3 {
  margin: 8px 0 10px; font-size: 19px; line-height: 1.2;
  font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.015em;
  border: 0;
}
.card h3::before { display: none; }
.card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.card .meta-row {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; justify-content: space-between; gap: 10px;
}

/* ---------- Lists ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.list li:last-child { border-bottom: 0; }
.list li .meta {
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-soft);
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.list li a { text-decoration: none; color: var(--navy); font-weight: 600; }
.list li a:hover { color: var(--rail-red); }

/* ---------- Timetables ---------- */
.table {
  width: 100%; border-collapse: collapse; margin: 16px 0 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-family: 'Inter', sans-serif;
}
.table th, .table td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 14px;
  vertical-align: middle;
}
.table th {
  background: var(--navy); color: #fff;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; padding: 12px 16px;
  border-bottom: 3px solid var(--signal);
}
.table tr:nth-child(even) td { background: #faf8f1; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fff7d6; }
.table td a { color: var(--navy); text-decoration: none; font-weight: 600; }
.table td a:hover { color: var(--rail-red); text-decoration: underline; }
.table td.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.table td.code {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 12px;
  letter-spacing: 0.08em; color: var(--navy);
}
.table td.fare { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Stop sequence column */
.stop-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--paper-2); color: var(--navy);
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}

/* Timetable as visual route line */
.timeline {
  list-style: none; padding: 0; margin: 18px 0 28px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px;
  width: 4px; background: var(--navy); border-radius: 2px;
}
.timeline li {
  position: relative; padding: 8px 0 8px 50px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.timeline li::before {
  content: ""; position: absolute; left: 11px; top: 14px;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--signal); border: 3px solid var(--navy);
  box-shadow: 0 0 0 2px var(--paper);
}
.timeline li.endpoint::before {
  width: 22px; height: 22px; left: 8px; top: 11px;
  background: var(--rail-red); border-color: var(--navy);
}
.timeline li a { color: var(--navy); text-decoration: none; font-weight: 600; }
.timeline li a:hover { color: var(--rail-red); }
.timeline li .meta { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Callout ---------- */
.callout {
  padding: 16px 18px 16px 22px; border-left: 5px solid var(--signal);
  background: #fffbe5; border-radius: 0 4px 4px 0; margin: 22px 0; font-size: 15px;
  font-family: 'Inter', sans-serif;
}
.callout strong { color: var(--navy); font-weight: 700; }
.callout.alert { border-color: var(--rail-red); background: #fff0f0; }

/* ---------- Sidebar ---------- */
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 18px; }
.side .factbox { margin: 0; }

/* AdSense placeholder boxes */
.adsense {
  border: 1px dashed var(--line); background: #faf6e8; color: #8a7e63;
  text-align: center; padding: 22px 16px;
  font-family: 'Inter', sans-serif; font-size: 11px;
  border-radius: 4px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Related Resources (PBN editorial recommendation) ---------- */
.related-resources {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; margin: 0;
  position: relative;
}
.related-resources .rr-head {
  background: var(--navy); color: var(--signal);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 12px 16px;
  border-bottom: 3px solid var(--signal);
  display: flex; align-items: center; gap: 8px;
}
.related-resources .rr-head::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--signal); display: inline-block;
}
.related-resources ol { list-style: none; padding: 0; margin: 0; }
.related-resources li {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-family: 'Source Serif 4', Georgia, serif;
}
.related-resources li:last-child { border-bottom: 0; }
.related-resources li .kicker {
  display: block; font-family: 'Inter', sans-serif; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--rail-red);
  font-weight: 700; margin-bottom: 4px;
}
.related-resources li a {
  color: var(--navy); text-decoration: none; font-weight: 600; line-height: 1.35;
  font-size: 15px; display: block;
}
.related-resources li a:hover { color: var(--rail-red); text-decoration: underline; }
.related-resources li .blurb {
  margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45;
}

/* In-content recommendation block (footer of long articles) */
.editorial-rec {
  margin: 32px 0; padding: 22px 24px;
  background: linear-gradient(180deg, #fffbe5 0%, #fff 100%);
  border: 1px solid var(--line); border-left: 5px solid var(--signal);
  border-radius: 4px;
}
.editorial-rec .rr-head {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--rail-red);
  margin: 0 0 12px;
}
.editorial-rec ul { list-style: none; padding: 0; margin: 0; }
.editorial-rec li {
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-family: 'Source Serif 4', Georgia, serif; font-size: 15px;
}
.editorial-rec li:last-child { border-bottom: 0; }
.editorial-rec li a { color: var(--navy); font-weight: 600; text-decoration: none; }
.editorial-rec li a:hover { color: var(--rail-red); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { margin: 44px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
  border-bottom: 2px solid var(--navy); padding-bottom: 10px;
}
.section-head h2 {
  margin: 0; padding: 0; border: 0; font-size: 22px;
}
.section-head h2::before {
  content: ""; width: 6px; height: 18px; background: var(--signal);
  display: inline-block; margin-right: 10px; vertical-align: -2px;
}
.section-head a {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--navy); text-decoration: none;
}
.section-head a:hover { color: var(--rail-red); }

/* ---------- Footer ---------- */
footer.site-foot {
  background: var(--navy); color: #c9d6e9; margin-top: 56px; padding: 48px 0 24px;
  font-size: 14px; border-top: 4px solid var(--signal);
  position: relative;
}
footer.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 24px, var(--rail-red) 24px 32px);
}
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 {
  font-family: 'Inter', sans-serif; color: var(--signal); font-size: 12px;
  margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800;
}
footer p { color: #a8bdd9; font-size: 13px; line-height: 1.6; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 5px 0; font-family: 'Inter', sans-serif; font-size: 13px; }
footer a { color: #c9d6e9; text-decoration: none; }
footer a:hover { color: var(--signal); }

.footer-resources {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 16px 18px; margin-top: 14px;
}
.footer-resources h5 {
  font-family: 'Inter', sans-serif; font-size: 10px; color: var(--signal);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800;
  margin: 0 0 10px;
}
.footer-resources ul li { padding: 4px 0; font-size: 12px; }
.footer-resources ul li a { color: #c9d6e9; }
.footer-resources ul li a:hover { color: var(--signal); }

.copyright {
  border-top: 1px solid #1a2c47; padding-top: 18px;
  font-family: 'Inter', sans-serif; font-size: 11px; color: #6e87ab;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Misc ---------- */
.kvgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
@media (max-width: 700px) { .kvgrid { grid-template-columns: 1fr 1fr; } }

.linklist { columns: 2; -webkit-columns: 2; column-gap: 28px; }
@media (max-width: 700px) { .linklist { columns: 1; } }
.linklist a {
  display: block; padding: 8px 0; text-decoration: none;
  border-bottom: 1px solid var(--line); break-inside: avoid;
  font-size: 14px; font-family: 'Inter', sans-serif; font-weight: 600;
  color: var(--navy);
}
.linklist a:hover { color: var(--rail-red); }
.linklist a .count {
  color: var(--ink-soft); font-weight: 500; font-size: 12px;
  margin-left: 6px;
}

.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-card {
  background: var(--card); border: 1px solid var(--line);
  border-top: 4px solid var(--signal);
  border-radius: 0 0 var(--radius) var(--radius); padding: 22px;
}
.intro-card .num {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 36px; color: var(--navy); letter-spacing: -0.025em;
  display: block; line-height: 1;
}
.intro-card .label {
  display: block; font-family: 'Inter', sans-serif; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--rail-red); font-weight: 700; margin-top: 6px;
}
.intro-card p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.text-content p, .text-content ul { margin-bottom: 16px; }
.text-content ul { padding-left: 22px; }
.text-content ul li { margin-bottom: 6px; }

/* Route header bar */
.route-hero {
  background: var(--navy); color: #fff; margin: 0 0 28px;
  padding: 28px 0; border-bottom: 4px solid var(--signal);
  position: relative;
}
.route-hero .crumbs { color: #8da4c4; }
.route-hero .crumbs a { color: #8da4c4; }
.route-hero h1.title { color: #fff; margin: 8px 0 8px; }
.route-hero .lead { color: #d4dbe7; }
.route-hero .badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Inline route badge in tables */
.table .route-badge.pill { font-size: 11px; padding: 4px 10px 4px 6px; }

/* === Mobile nav toggle + responsive header === */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--signal);
  border-radius: 4px;
  padding: 8px 10px;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--signal);
}

@media (max-width: 900px) {
  .site-head .wrap { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    margin: 12px -16px -10px;
    padding: 8px 16px 12px;
    background: var(--navy-2);
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 15px;
  }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
}

/* === Hero polish (desktop + mobile) === */
.hero h1 { letter-spacing: -0.025em; }
.hero-inner { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 9vw, 104px); }

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(34px, 9vw, 48px) !important; line-height: 1.05 !important; }
  .hero p.lede { font-size: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 16px 24px !important; margin-top: 22px !important; }
  .hero-stats .stat .n { font-size: 28px !important; }
  .route-hero { padding: 22px 0 26px !important; }
  .route-hero .badges { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
  .route-hero h1.title { font-size: 28px !important; line-height: 1.15 !important; }
  .title { font-size: clamp(26px, 6vw, 34px) !important; }
  .text-content table.table { font-size: 13px; }
  .text-content table.table th,
  .text-content table.table td { padding: 8px 6px; }
  .factbox { padding: 14px !important; }
  .wrap { padding-left: 14px !important; padding-right: 14px !important; }
  .grid.grid-3, .grid.grid-2 { grid-template-columns: 1fr !important; }
}

/* === Card grid for index pages === */
.card {
  display: block;
  background: #fff;
  border: 1px solid #d8e0ed;
  border-radius: 6px;
  padding: 16px 18px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}
.card:hover {
  border-color: var(--navy-3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,22,40,0.08);
}
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Smoother hero-stats wrap on tablet */
@media (max-width: 980px) {
  .hero-stats { flex-wrap: wrap; gap: 18px 28px; }
}

/* utility-bar polish */
.utility-bar { font-size: 12px; }
.utility-bar a { color: #b9c8e0; text-decoration: none; }
.utility-bar a:hover { color: var(--signal); }

/* breadcrumbs on hero */
.route-hero .crumbs a:hover { color: var(--signal); }
