/* Matchday48 — site stylesheet */

:root {
  --navy: #0b2340;
  --navy-2: #102b4c;
  --red: #c8102e;
  --gold: #f2b134;
  --ink: #15151a;
  --muted: #5c6677;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --border: #e3e6ec;
  --success: #1d7a3a;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --max: 1120px;
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --font-sans: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --shadow-1: 0 1px 2px rgba(11, 35, 64, 0.06), 0 4px 16px rgba(11, 35, 64, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; }

.muted { color: var(--muted); font-size: 0.9em; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; margin-bottom: 0.25rem; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-1);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: 8px;
  font-weight: 800; font-size: 0.85rem; letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a { color: #fff; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--gold); text-decoration: none; }
.site-nav__cta {
  background: var(--red); padding: 0.5rem 0.9rem; border-radius: var(--radius-s);
}
.site-nav__cta:hover { background: #e1233f; color: #fff !important; }

.site-nav__toggle {
  display: none;
  background: transparent; color: #fff; border: 0; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-nav--open { display: flex; flex-direction: column; position: absolute; right: var(--gutter); top: 64px; background: var(--navy-2); padding: 1rem; border-radius: var(--radius-m); gap: 0.75rem; }
  .site-nav__toggle { display: block; }
}

/* Main */
.site-main { padding: 2rem 0 4rem; }

.page-header { margin-bottom: 1.5rem; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: '›'; margin-left: 0.35rem; color: var(--muted); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--muted); }

/* Hero */
.hero { padding: 3rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0; }
.hero__body { font-size: 1.125rem; max-width: 60ch; color: var(--muted); margin: 0; }
.hero__cta { margin-top: 0.25rem; align-self: flex-start; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1rem; max-width: 540px; }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats .stat-row__cell { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 0.85rem 1rem; }
.hero-stats .stat-row__label { color: var(--muted); }
.hero-stats .stat-row__value { font-size: 1.6rem; color: var(--red); }

/* Sections */
.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 1.5rem; margin-bottom: 1.25rem; }
@media (min-width: 720px) {
  .section { padding: 2rem; }
}
/* Consistent vertical rhythm between direct children of a section. */
.section > * + * { margin-top: 1rem; }
.section > h2 + *, .section > h3 + * { margin-top: 0.5rem; }
.section > * + h2, .section > * + h3 { margin-top: 1.5rem; }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1rem; border-radius: var(--radius-s);
  font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  font-size: 0.95rem;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #e1233f; color: #fff; text-decoration: none; }
.btn--secondary { background: var(--navy); color: #fff; }
.btn--secondary:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.btn--link { background: transparent; color: var(--navy); padding: 0; border: 0; font-weight: 600; }
.btn--link:hover { color: var(--red); }

/* Groups grid */
.group-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .group-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1320px) { .group-grid { grid-template-columns: repeat(4, 1fr); } }
.group-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.group-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--navy); }
.group-card__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.group-card__letter {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.group-card__head-text { display: flex; flex-direction: column; line-height: 1.15; }
.group-card__eyebrow { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.group-card__title { font-size: 1rem; color: #fff; font-weight: 700; margin: 0; }
.group-card__teams { list-style: none; padding: 0.5rem; margin: 0; display: grid; gap: 0.25rem; }
.group-card__teams li { padding: 0.5rem 0.6rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; border-radius: var(--radius-s); }
.group-card__teams li:hover { background: var(--surface-2); }
.group-card__teams li a { color: var(--navy); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-card__teams .flag { flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,0.08); border-radius: 3px; }
.group-card__conf { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.conf-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.conf-dot--UEFA { background: #0a4ea2; }
.conf-dot--CONMEBOL { background: #1a8a3a; }
.conf-dot--CONCACAF { background: #c8102e; }
.conf-dot--CAF { background: #f2b134; }
.conf-dot--AFC { background: #7a2bb5; }
.conf-dot--OFC { background: #0b2340; }
.conf-dot--Inter-confederation { background: #5c6677; }

/* Essentials */
.essentials-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1rem; }
.essentials-card { background: var(--surface-2); padding: 1rem; border-radius: var(--radius-m); border: 1px solid var(--border); }
.essentials-card h3 { margin-bottom: 0.3rem; }

/* Team chips / city chips */
.team-chip-list, .city-chip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.team-chip {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 0.7rem 0.85rem; color: var(--navy); font-weight: 500;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.team-chip:hover { border-color: var(--navy); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.team-chip .flag { box-shadow: 0 1px 2px rgba(0,0,0,0.1); border-radius: 3px; flex-shrink: 0; }
.team-chip__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.team-chip__name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-chip__conf { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.team-chip__accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--radius-m) 0 0 var(--radius-m); }

.city-chip {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  overflow: hidden; color: var(--navy); font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.city-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--navy); text-decoration: none; }
.city-chip__banner { height: 80px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); position: relative; overflow: hidden; }
.city-chip__banner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-chip__body { padding: 0.7rem 0.85rem; display: flex; flex-direction: column; gap: 0.15rem; }
.city-chip__name { font-weight: 700; color: var(--navy); }
.city-chip__meta { color: var(--muted); font-size: 0.75rem; }
.city-chip__badges { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
.stadium-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0; }
.chip-list li { background: var(--surface-2); border: 1px solid var(--border); padding: 0.4rem 0.7rem; border-radius: 999px; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem; }

.teams-group, .cities-region { margin-bottom: 1.5rem; }

/* Team header */
.team-header h1 { margin-bottom: 0.25rem; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--surface-2); font-weight: 600; color: var(--navy); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table.sortable thead th { cursor: pointer; user-select: none; }
.data-table.sortable thead th:hover { color: var(--red); }
.filter-box { display: block; margin-bottom: 0.75rem; }
.filter-box input { width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; }

/* Fact grid — stat tiles with icons */
.fact-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact-grid li {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  padding: 1rem; border-radius: var(--radius-m);
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 0.75rem;
  align-items: center;
}
.fact-grid .icon { color: var(--red); width: 28px; height: 28px; grid-row: span 2; }
.fact-grid strong { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; font-weight: 700; align-self: end; }
.fact-grid span { font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 700; color: var(--navy); align-self: start; line-height: 1.2; }
.fact-grid li.fact--single { grid-template-columns: 1fr; gap: 0.25rem; }
.fact-grid li.fact--single .icon { grid-row: auto; }

/* Info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.info-list li { background: var(--surface-2); padding: 0.75rem; border-radius: var(--radius-s); display: flex; flex-direction: column; }
.info-list strong { color: var(--navy); }

/* Stays */
.stays-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stays-tier { background: var(--surface-2); border-radius: var(--radius-m); padding: 1rem; }
.stays-tier h3 { color: var(--red); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stays-tier ul { list-style: none; padding: 0; margin: 0; }
.stays-tier li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.15rem; }
.stays-tier li:last-child { border-bottom: 0; }
.stays-tier li span { color: var(--muted); font-size: 0.9rem; }

/* Rival list */
.rival-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.rival-list li { display: flex; align-items: center; gap: 0.6rem; background: var(--surface-2); padding: 0.5rem 0.75rem; border-radius: var(--radius-s); }
.rival-list li .flag { box-shadow: 0 1px 2px rgba(0,0,0,0.08); border-radius: 3px; flex-shrink: 0; }
.rival-list li a { flex: 1; color: var(--navy); font-weight: 500; }
.rival-list li .muted { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* Breadcrumbs sitting inside a banner — invert colours */
.breadcrumbs--banner { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.breadcrumbs--banner a { color: rgba(255,255,255,0.8); }
.breadcrumbs--banner li::after { color: rgba(255,255,255,0.5); }
.breadcrumbs--banner li[aria-current=page] { color: #fff; }

/* Scenarios / guides */
.scenario-grid, .guide-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.scenario-card, .guide-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
  position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.guide-card { border-top: 4px solid var(--card-accent, var(--red)); }
.guide-card:hover, .scenario-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--navy); }
.guide-card__head { display: flex; gap: 0.6rem; align-items: center; }
.guide-card__head .flag { box-shadow: 0 1px 2px rgba(0,0,0,0.1); border-radius: 3px; flex-shrink: 0; }
.guide-card__head h3 { margin: 0; font-size: 1rem; }
.guide-card__head h3 a { color: var(--navy); }
.guide-card__scenario { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin: 0.1rem 0 0; }
.scenario-card { border-top: 4px solid var(--gold); }

/* Gear cat icon alignment */
.gear-cat h2 { display: inline-flex; align-items: center; gap: 0.6rem; }
.gear-list li { gap: 0.75rem; }
.gear-list li > div { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.gear-list li > svg.icon { flex-shrink: 0; align-self: flex-start; margin-top: 0.15rem; }
.guides-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.guides-filters label { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--muted); }
.guides-filters select { padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; min-width: 160px; background: var(--surface); }
.guide-grid__empty { text-align: center; color: var(--muted); padding: 2rem; }

/* Reflector card */
.reflector-card {
  background: linear-gradient(135deg, var(--navy) 0%, #19365f 100%);
  color: #fff; border-radius: var(--radius-l); padding: 1.25rem;
}
.reflector-card h3, .reflector-card .reflector-card__title { color: var(--gold); font-size: 1rem; margin-bottom: 0.4rem; }
.reflector-card__body { color: #e9edf5; margin-bottom: 0.8rem; }
.reflector-card--compact { padding: 1rem; }
.reflector-feature { background: var(--navy); color: #fff; }
.reflector-feature h2 { color: var(--gold); }
.reflector-feature p { color: #e9edf5; }

.reflector-inline { background: transparent; border: 0; padding: 0; }

/* Gear blocks */
.gear-block { margin-bottom: 0.75rem; }
.gear-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.gear-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.75rem; background: var(--surface-2); border-radius: var(--radius-s); }
.gear-cat { margin-bottom: 1rem; }

/* Badges */
.badge { display: inline-block; padding: 0.15rem 0.5rem; background: var(--surface-2); border-radius: 999px; font-size: 0.75rem; color: var(--muted); }
.badge--green { background: rgba(29, 122, 58, 0.1); color: var(--success); }

/* Footer */
.site-footer {
  background: var(--navy); color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  border-top: 4px solid var(--red);
}
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -4px; height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
}
.site-footer a { color: #e9edf5; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__brand .brand__mark { width: 44px; height: 44px; font-size: 0.95rem; }
.site-footer__credit { margin: 0; font-size: 0.95rem; }
.site-footer__updated { margin: 0; font-size: 0.8rem; color: #a6b1c4; }
.site-footer__nav-heading { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; margin: 0 0 0.5rem; }
.site-footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__nav a { font-weight: 500; font-size: 0.9rem; }
.site-footer__disclosure { color: #a6b1c4; font-size: 0.8rem; line-height: 1.55; margin: 0; }
.site-footer__disclosure a { text-decoration: underline; }

/* Tick list */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.tick-list li { position: relative; padding-left: 1.5rem; }
.tick-list li::before { content: '✓'; color: var(--success); position: absolute; left: 0; top: 0; font-weight: 700; }

/* Ads */
.ad { margin: 1.25rem auto; min-height: 50px; position: relative; padding: 1.5rem; }
@media (min-width: 720px) { .ad { padding: 2rem; } }
.ad--leaderboard { min-height: 110px; }
.ad--incontent { min-height: 260px; }

/* Dev-only ad slot outline. The padding (matched to .section) means the dashed
   edges line up vertically with the cards above and below. Real AdSense iframes
   overlay this so users never see the debug styling in production. */
.ad {
  background: repeating-linear-gradient(
    45deg,
    rgba(242, 177, 52, 0.08) 0,
    rgba(242, 177, 52, 0.08) 10px,
    rgba(242, 177, 52, 0.16) 10px,
    rgba(242, 177, 52, 0.16) 20px
  );
  border: 2px dashed rgba(242, 177, 52, 0.85);
  border-radius: var(--radius-l);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ad::before {
  content: 'AD SLOT · ' attr(aria-label);
  color: var(--navy);
  background: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  pointer-events: none;
}
.ad--leaderboard::after { content: 'leaderboard · 728×90 / responsive'; color: var(--muted); font-size: 0.85rem; }
.ad--incontent::after { content: 'in-content · 300×250 / responsive'; color: var(--muted); font-size: 0.85rem; }
.ad ins.adsbygoogle { display: block; width: 100%; }

/* Page banner (replaces .page-header on team/city/stadium/etc) */
.page-banner {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  margin: 0 0 1.25rem;
  color: #fff;
  isolation: isolate;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.page-banner__art {
  position: absolute; inset: 0; z-index: 0; opacity: 0.65;
  background-size: cover; background-position: center;
}
.page-banner__art svg { width: 100%; height: 100%; display: block; }
.page-banner__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 35, 64, 0.45) 0%, rgba(11, 35, 64, 0.85) 100%);
}
.page-banner__inner {
  position: relative; z-index: 2;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
@media (min-width: 720px) {
  .page-banner__inner { padding: 2.5rem 2rem; min-height: 200px; justify-content: flex-end; }
}
.page-banner__eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0;
}
.page-banner__title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin: 0; color: #fff; line-height: 1.1; letter-spacing: -0.02em;
}
.page-banner__lede { color: #d8dee9; max-width: 60ch; margin: 0; font-size: 1rem; }
.page-banner__accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px; z-index: 3;
  background: var(--banner-accent, var(--red));
}
.page-banner__flag {
  position: absolute; right: 1.5rem; top: 1.5rem; z-index: 3;
  width: 64px; height: 48px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  overflow: hidden;
}
.page-banner__flag svg { width: 100% !important; height: 100% !important; display: block; }
@media (min-width: 720px) {
  .page-banner__flag { width: 96px; height: 72px; right: 2rem; top: 2rem; }
}

/* Stat cards (used in scenario list, etc) */
.stat-row { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0.5rem 0 1rem; }
.stat-row__cell { background: var(--surface-2); padding: 0.75rem; border-radius: var(--radius-s); display: flex; flex-direction: column; gap: 0.2rem; }
.stat-row__label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-row__value { font-size: 1.2rem; font-weight: 700; color: var(--navy); }

/* Affiliate sidebar block */
.affiliate-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 1rem;
}
.affiliate-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); margin: 0 0 0.6rem; }
.affiliate-block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.affiliate-block li { background: var(--surface-2); padding: 0.6rem 0.75rem; border-radius: var(--radius-s); display: flex; gap: 0.6rem; align-items: flex-start; }
.affiliate-block li .icon { color: var(--navy); flex-shrink: 0; }
.affiliate-block li a { color: var(--navy); font-weight: 600; display: block; line-height: 1.3; }
.affiliate-block li span { color: var(--muted); font-size: 0.8rem; display: block; }
.affiliate-block__disclosure { font-size: 0.7rem; color: var(--muted); margin: 0.6rem 0 0; }

/* Airport pill list */
.airport-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0.5rem 0; }
.airport-pills li { background: var(--surface-2); border: 1px solid var(--border); padding: 0.25rem 0.6rem; border-radius: 999px; font-family: monospace; font-size: 0.85rem; font-weight: 700; color: var(--navy); }

/* Confederation badge */
.conf-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
}

/* Modal */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 35, 64, 0.6); }
.modal__panel {
  position: relative; background: var(--surface); max-width: 520px; width: calc(100% - 2rem);
  padding: 1.5rem; border-radius: var(--radius-l); box-shadow: var(--shadow-1);
  max-height: 90vh; overflow-y: auto;
}
.modal__close { position: absolute; top: 0.5rem; right: 0.75rem; background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal__title { margin-top: 0; }

/* Guide form */
.guide-form { display: flex; flex-direction: column; gap: 0.75rem; }
.guide-form__label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.guide-form__input { padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-s); font: inherit; }
.guide-form__input:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.guide-form__fieldset { border: 0; padding: 0; margin: 0; }
.guide-form__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; max-height: 160px; overflow-y: auto; padding: 0.25rem; }
.guide-form__chips label { display: inline-flex; gap: 0.25rem; align-items: center; font-size: 0.85rem; padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; background: var(--surface-2); }
.guide-form__chips input[type=checkbox] { accent-color: var(--red); }
.guide-form__note { font-size: 0.8rem; color: var(--muted); margin: 0; }

.guide-success { padding: 1rem; background: var(--surface-2); border-radius: var(--radius-m); display: flex; flex-direction: column; gap: 0.75rem; }
.guide-share { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.guide-share a { flex: 1; text-align: center; padding: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); color: var(--navy); font-size: 0.9rem; }

/* Guide landing */
.guide-landing .two-col { align-items: flex-start; }
.guide-landing__form { background: var(--surface-2); padding: 1.25rem; border-radius: var(--radius-m); }

/* Legal / content pages */
.legal { max-width: 820px; }
.legal-section { line-height: 1.7; }
.legal-section h2 { font-size: 1.25rem; }
.legal-section p { color: var(--navy-2); }
.legal-section p + p { margin-top: 0.75rem; }
.legal-section ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.legal-section li { margin-top: 0.4rem; color: var(--navy-2); }
.legal-section a { color: var(--navy); text-decoration: underline; }
