/* ==========================================================================
   QitketsQat: "Desert Night Arena" design system
   One stylesheet for every page. Dark by default, optional day mode.

   01 Tokens               12 Stadium carousel       23 Pull quote, related, pager
   02 Reset and base       13 Spec sheet             24 Season planner
   03 Typography           14 Capacity bar chart     25 Glossary and letter index
   04 Layout               15 Timeline               26 Legal pages
   05 Buttons, chips       16 Screen and icon cards  27 Forms
   06 Header and nav       17 District list          28 Footer
   07 Heroes               18 Article layout, TOC    29 Consent banner and dialog
   08 Ticker               19 Figures, media, gallery 30 404
   09 Breadcrumb           20 Fact box, callouts,    31 Utilities
   10 Sections, headings      route box, checklist   32 Motion, reduced motion, print
   11 Cards and grids      21 Tables
                           22 FAQ
   ========================================================================== */

/* 01 Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --night: #0C0E14;
  --night-2: #10131B;
  --surface: #151924;
  --surface-2: #1E2433;
  --surface-3: #283045;
  --text: #EDE8DF;
  --text-strong: #FFFFFF;
  --muted: #A7A196;
  --line: rgba(237, 232, 223, 0.12);
  --line-strong: rgba(237, 232, 223, 0.26);

  --maroon: #8A1538;
  --maroon-bright: #B3264F;
  --gold: #D8B26E;
  --teal: #3FC1B0;

  --gold-soft: rgba(216, 178, 110, 0.14);
  --teal-soft: rgba(63, 193, 176, 0.14);
  --maroon-soft: rgba(179, 38, 79, 0.2);

  --on-maroon: #FFF6EE;
  --on-gold: #0C0E14;
  --link: #D8B26E;
  --link-hover: #F2D59C;
  --focus: #3FC1B0;
  --error: #FF94AE;

  --header-bg: rgba(12, 14, 20, 0.74);
  --panel-bg: rgba(21, 25, 36, 0.95);
  --overlay: rgba(5, 6, 10, 0.74);
  --photo-veil: rgba(12, 14, 20, 0.7);
  --glow-a: rgba(138, 21, 56, 0.24);
  --glow-b: rgba(63, 193, 176, 0.07);

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --glow-gold: 0 0 0 1px rgba(216, 178, 110, 0.3), 0 22px 60px -28px rgba(216, 178, 110, 0.45);
  --glow-teal: 0 0 0 1px rgba(63, 193, 176, 0.3), 0 22px 60px -24px rgba(63, 193, 176, 0.45);
  --glow-maroon: 0 18px 50px -18px rgba(179, 38, 79, 0.7);

  --metro-red: #C8202F;
  --metro-green: #1D7F48;
  --metro-gold: #D2A637;
  --metro-tram: #0F766E;

  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-display: clamp(2.05rem, 1.15rem + 4.1vw, 4.3rem);
  --fs-h1: clamp(1.85rem, 1.3rem + 2.5vw, 3.3rem);
  --fs-h2: clamp(1.45rem, 1.1rem + 1.5vw, 2.35rem);
  --fs-h3: clamp(1.08rem, 1rem + 0.45vw, 1.32rem);
  --fs-small: 0.875rem;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --narrow: 820px;
  --header-h: 72px;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Pointed (Islamic) arch, stretched to any box */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V58C0 30 22 12 50 0C78 12 100 30 100 58V125Z'/%3E%3C/svg%3E");
  /* 8-point star lattice (mashrabiya); used as a mask so it takes any colour */
  --star-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M12 12h24v24H12zM24 7l17 17-17 17L7 24z'/%3E%3Cpath d='M24 0v7M24 41v7M0 24h7M41 24h7M0 0l12 12M48 0L36 12M0 48l12-12M48 48L36 36'/%3E%3C/g%3E%3C/svg%3E");
  --star-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M14 14h28v28H14zM28 8.2L47.8 28 28 47.8 8.2 28z'/%3E%3Cpath d='M0 28h8.2M47.8 28H56M28 0v8.2M28 47.8V56'/%3E%3C/g%3E%3Ccircle cx='28' cy='28' r='4'/%3E%3C/svg%3E");
  --star-solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6h12v12H6z'/%3E%3Cpath d='M12 3.5l8.5 8.5-8.5 8.5L3.5 12z'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
}

/* Day mode: only applied when the visitor switches it on */
:root[data-theme="light"] {
  color-scheme: light;

  --night: #F3EEE5;
  --night-2: #ECE5D8;
  --surface: #FFFFFF;
  --surface-2: #F1EBDF;
  --surface-3: #E2D9C8;
  --text: #1B1D25;
  --text-strong: #0C0E14;
  --muted: #5B564E;
  --line: rgba(27, 29, 37, 0.13);
  --line-strong: rgba(27, 29, 37, 0.28);

  --maroon: #8A1538;
  --maroon-bright: #A11F47;
  --gold: #8A6420;
  --teal: #12756A;

  --gold-soft: rgba(138, 100, 32, 0.12);
  --teal-soft: rgba(18, 117, 106, 0.1);
  --maroon-soft: rgba(138, 21, 56, 0.1);

  --on-gold: #FFFFFF;
  --link: #8A1538;
  --link-hover: #5E0C25;
  --focus: #0F6B61;
  --error: #A11F47;

  --header-bg: rgba(243, 238, 229, 0.82);
  --panel-bg: rgba(255, 255, 255, 0.97);
  --overlay: rgba(20, 16, 12, 0.55);
  --glow-a: rgba(138, 21, 56, 0.08);
  --glow-b: rgba(18, 117, 106, 0.07);

  --shadow: 0 24px 60px -34px rgba(60, 40, 20, 0.45);
  --glow-gold: 0 0 0 1px rgba(138, 100, 32, 0.3), 0 22px 50px -30px rgba(138, 100, 32, 0.45);
  --glow-teal: 0 0 0 1px rgba(18, 117, 106, 0.3), 0 22px 50px -30px rgba(18, 117, 106, 0.4);
  --glow-maroon: 0 18px 44px -20px rgba(138, 21, 56, 0.45);
}

/* 02 Reset and base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background-color: var(--night);
  background-image:
    radial-gradient(56rem 34rem at 92% -14rem, var(--glow-b), transparent 70%),
    radial-gradient(48rem 30rem at -12% -10rem, var(--glow-a), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
main { display: block; }
main:focus { outline: none; }

::selection { background: var(--maroon); color: var(--on-maroon); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 03 Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--text-strong); }
small { font-size: var(--fs-small); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: help; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: 0.35em; }
li::marker { color: var(--gold); }

hr {
  height: 1px;
  margin: 3rem 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.lead {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--star-solid) center / contain no-repeat;
  mask: var(--star-solid) center / contain no-repeat;
}

.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose > h2 { margin-top: 2.4em; }
.prose > h2::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--maroon-bright), var(--gold));
}
.prose > h3 { margin-top: 2em; }
.prose > h4 { margin-top: 1.6em; }
.prose > ul, .prose > ol { padding-left: 1.4em; }
.prose > ul > li, .prose > ol > li { padding-left: 0.2em; }
.prose img { border-radius: var(--radius); }

/* 04 Layout ---------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--surface {
  background: linear-gradient(180deg, var(--night-2), var(--surface) 50%, var(--night-2));
  border-block: 1px solid var(--line);
}
.section--pattern { isolation: isolate; overflow: hidden; }
.section--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  opacity: 0.05;
  -webkit-mask: var(--star-tile) 0 0 / 48px 48px repeat;
  mask: var(--star-tile) 0 0 / 48px 48px repeat;
}

.stack > * + * { margin-top: var(--stack, 1.25rem); }
.flow-lg > * + * { margin-top: 2.5rem; }

/* 05 Buttons, links, chips ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.45em;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: linear-gradient(135deg, var(--maroon-bright), var(--maroon));
  color: var(--on-maroon);
  box-shadow: var(--glow-maroon), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn--primary:hover { color: var(--on-maroon); box-shadow: 0 22px 54px -16px rgba(179, 38, 79, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--gold); border-color: var(--gold); }

.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { color: var(--on-gold); box-shadow: var(--glow-gold); }

.btn--text {
  min-height: 44px;
  padding-inline: 0.5em;
  background: none;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.btn--text:hover { color: var(--link-hover); transform: none; }

.btn--sm { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.85rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.icon-btn[aria-disabled="true"]:hover { border-color: var(--line-strong); color: var(--text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  text-decoration: none;
  color: var(--link);
}
.link-arrow::after {
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.2s ease;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

.link-external::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  vertical-align: -0.05em;
  background: currentColor;
  -webkit-mask: var(--icon-external) center / contain no-repeat;
  mask: var(--icon-external) center / contain no-repeat;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.8em;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
}
a.chip { min-height: 40px; padding-inline: 1em; font-size: 0.85rem; text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease; }
a.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip--gold { border-color: rgba(216, 178, 110, 0.45); color: var(--gold); background: var(--gold-soft); }
.chip--teal { border-color: rgba(63, 193, 176, 0.45); color: var(--teal); background: var(--teal-soft); }
.chip--maroon { border-color: transparent; color: var(--on-maroon); background: var(--maroon); }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip-list li { margin: 0; }

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.chip-nav li { margin: 0; }
.chip-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45em 1em;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.chip-nav a:hover { border-color: var(--gold); color: var(--gold); }

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.stat-chips li { margin: 0; }
.stat-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  padding: 0.45rem 1.1rem 0.45rem 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, rgba(216, 178, 110, 0.6), rgba(63, 193, 176, 0.3), rgba(179, 38, 79, 0.55)) border-box;
  box-shadow: 0 14px 40px -24px rgba(216, 178, 110, 0.5);
}
.stat-chip__value {
  display: grid;
  place-items: center;
  min-width: 3.1rem;
  height: 3.1rem;
  padding: 0 0.7rem;
  border-radius: var(--pill);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.stat-chip__label {
  max-width: 17ch;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.metro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.18em 0.65em;
  border-radius: var(--pill);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: 0.08em;
  background: var(--surface-3);
  color: var(--text);
}
.metro-badge::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.metro-badge--red { background: var(--metro-red); color: #FFFFFF; }
.metro-badge--green { background: var(--metro-green); color: #FFFFFF; }
.metro-badge--gold { background: var(--metro-gold); color: #1A1405; }
.metro-badge--tram { background: var(--metro-tram); color: #FFFFFF; }
.metro-badge--road { background: var(--surface-3); color: var(--text); }

.live-dot {
  position: relative;
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

/* 06 Header and navigation ------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--on-gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(216, 178, 110, 0.55) 35%, rgba(63, 193, 176, 0.45) 65%, transparent 95%);
  opacity: 0.6;
  pointer-events: none;
}
.site-header.is-scrolled { box-shadow: 0 14px 40px -24px rgba(0, 0, 0, 0.8); }

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  padding-block: 0.5rem;
  color: var(--text-strong);
  text-decoration: none;
}
.brand:hover { color: var(--text-strong); }
.brand__mark {
  width: 36px;
  height: 40px;
  filter: drop-shadow(0 0 12px rgba(179, 38, 79, 0.5));
  transition: transform 0.3s ease;
}
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__arch { fill: var(--maroon); stroke: var(--maroon-bright); stroke-width: 1.5; }
.brand__star { fill: var(--gold); }
.brand__core { fill: var(--maroon); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.brand__dot { margin-inline: 0.06em; color: var(--gold); }
.brand__tagline {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; order: 2; }

html:not(.js) .theme-toggle { display: none; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle[aria-pressed="true"] { border-color: var(--gold); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 1rem 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Navigation: mobile first */
.site-nav { order: 3; width: 100%; padding-bottom: 0.75rem; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav li { margin: 0; }
.nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--pill);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav__link:hover { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.nav__link[aria-current="page"],
.nav__item--has-sub:has(.nav__sub [aria-current="page"]) > .nav__link {
  background: var(--maroon);
  color: var(--on-maroon);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px -12px rgba(179, 38, 79, 0.9);
}
.nav__sub-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.js .nav__sub-toggle { display: inline-grid; }
.nav__sub-toggle:hover { color: var(--gold); background: var(--surface-2); }
.nav__sub-toggle svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__sub { display: none; width: 100%; }
.nav__sub-list {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__sub-list li { margin: 0; }
.nav__sub-link {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  column-gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.nav__sub-link:hover { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.nav__sub-link[aria-current="page"] { background: var(--maroon-soft); box-shadow: inset 3px 0 0 var(--maroon-bright); }
.nav__sub-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--gold);
}
.nav__sub-name { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.nav__sub-meta { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.nav__sub-item--wide .nav__sub-link { border-top: 1px dashed var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: 0.2rem; padding-top: 0.75rem; }

/* Mobile panel once JavaScript is running */
@media (max-width: 1179.98px) {
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    width: auto;
    display: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--night-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }
  .js .site-header.is-nav-open .site-nav { display: block; }
  .js .nav { flex-direction: column; flex-wrap: nowrap; gap: 0.25rem; }
  .js .nav__link { flex: 1; min-height: 50px; padding: 0.7rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }
  .js .nav__sub-toggle { width: 50px; height: 50px; border-radius: var(--radius-sm); }
  .js .nav__item--has-sub.is-open .nav__sub {
    display: block;
    margin-top: 0.3rem;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
}

@media (max-width: 479.98px) {
  .brand__tagline { display: none; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
}

/* Desktop navigation */
@media (min-width: 1180px) {
  .site-header__inner { flex-wrap: nowrap; }
  .brand { margin-right: 0; }
  .site-nav { order: 0; width: auto; margin-left: auto; padding: 0; }
  .nav { flex-wrap: nowrap; gap: 0.1rem; }
  .nav__link { min-height: 40px; padding: 0.45rem 0.78rem; font-size: 0.86rem; }
  .header-actions { order: 0; }
  .js .nav-toggle { display: none; }

  .nav__item--has-sub { flex-wrap: nowrap; }
  .js .nav__item--has-sub > .nav__link { padding-right: 0.3rem; }
  .nav__sub-toggle { width: 30px; height: 30px; margin-left: -0.1rem; }

  .nav__sub {
    position: absolute;
    top: calc(100% + 12px);
    left: -0.5rem;
    z-index: 60;
    display: block;
    width: 560px;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow), 0 0 0 1px rgba(216, 178, 110, 0.08), 0 30px 80px -40px rgba(179, 38, 79, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }
  .nav__sub::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
  }
  .nav__sub-list { grid-template-columns: 1fr 1fr; }
  .nav__sub-item--wide { grid-column: 1 / -1; }

  html:not(.js) .nav__item--has-sub:hover .nav__sub,
  html:not(.js) .nav__item--has-sub:focus-within .nav__sub,
  .nav__item--has-sub.is-open .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
}
@media (min-width: 1180px) and (hover: hover) {
  .js .nav__item--has-sub:hover .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
}
@media (min-width: 1180px) and (max-width: 1299.98px) {
  .brand__tagline { display: none; }
}

/* 07 Heroes ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
/* Floodlight beams from the top corners */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  z-index: -1;
  width: 70%;
  height: 150%;
  pointer-events: none;
  opacity: 0.9;
}
.hero::before {
  left: -18%;
  background: conic-gradient(from 148deg at 20% 0%, transparent 0deg, rgba(237, 232, 223, 0.07) 8deg, rgba(237, 232, 223, 0.02) 22deg, transparent 30deg);
}
.hero::after {
  right: -18%;
  background: conic-gradient(from 182deg at 80% 0%, transparent 0deg, rgba(63, 193, 176, 0.06) 8deg, rgba(63, 193, 176, 0.015) 22deg, transparent 30deg);
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.hero__title {
  margin-bottom: 0.45em;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero__amp { color: var(--gold); font-weight: 500; }
.hero__accent {
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 10%, #F3DDB0 45%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .hero__accent { background: linear-gradient(100deg, var(--maroon) 10%, var(--maroon-bright) 60%); -webkit-background-clip: text; background-clip: text; }
.hero__lead {
  max-width: 44ch;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.hero__copy > :nth-child(5) { animation-delay: 0.32s; }

.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
  padding: 0 18px 18px 0;
  animation: rise 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(179, 38, 79, 0.5), rgba(63, 193, 176, 0.12) 45%, transparent 70%);
  filter: blur(30px);
}
.hero__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  .hero__media { justify-self: end; }
  .hero__badge { left: -1.75rem; }
}

/* Arch frame: photo masked by a pointed arch, gold outline offset behind,
   mashrabiya lattice fading in from the top */
.arch-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
}
.arch-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate(18px, 18px);
  background: linear-gradient(170deg, #F0D7A2 0%, var(--gold) 40%, var(--maroon-bright) 100%);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat, var(--arch) center / calc(100% - 6px) calc(100% - 6px) no-repeat;
  -webkit-mask-composite: xor;
  mask: var(--arch) center / 100% 100% no-repeat exclude, var(--arch) center / calc(100% - 6px) calc(100% - 6px) no-repeat;
}
.arch-frame__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface-2);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
}
.arch-frame__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 55%) var(--focus-y, 50%);
}
.arch-frame__img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.15) 0%, transparent 35%, transparent 60%, rgba(12, 14, 20, 0.55) 100%);
}
.arch-frame__img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #E9CB8E;
  opacity: 0.32;
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 30%, transparent 55%), var(--star-tile) 50% 0 / 34px 34px repeat;
  -webkit-mask-composite: source-in;
  mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 30%, transparent 55%) intersect, var(--star-tile) 50% 0 / 34px 34px repeat;
}
.arch-frame--square { aspect-ratio: 1 / 1; }
.arch-frame--wide { aspect-ratio: 5 / 4; }

/* Inner page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(1.75rem, 4.5vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  z-index: -1;
  width: 60%;
  height: 160%;
  background: conic-gradient(from 150deg at 25% 0%, transparent 0deg, rgba(237, 232, 223, 0.06) 8deg, transparent 26deg);
  pointer-events: none;
}
.page-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-hero__title { margin-bottom: 0.5em; }
.page-hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--muted); }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}
.page-hero__meta li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.page-hero__meta li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold);
  -webkit-mask: var(--star-solid) center / contain no-repeat;
  mask: var(--star-solid) center / contain no-repeat;
}
.page-hero__media { position: relative; justify-self: center; width: min(100%, 400px); padding: 0 18px 18px 0; }
.page-hero__caption { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .page-hero__media { justify-self: end; }
}

.page-hero--compact .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--compact .page-hero__title { max-width: 22ch; }

/* Stadium hero: oversized outlined index number behind the title */
.page-hero__index {
  display: block;
  margin-bottom: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 2.5rem + 8vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--gold-soft);
}
@supports (-webkit-text-stroke: 1px black) {
  .page-hero__index { color: transparent; -webkit-text-stroke: 1.5px rgba(216, 178, 110, 0.55); }
  :root[data-theme="light"] .page-hero__index { -webkit-text-stroke-color: rgba(138, 100, 32, 0.55); }
}
.page-hero__index small { font-size: 0.32em; letter-spacing: 0; vertical-align: top; }

/* 08 Ticker (stadium LED ribbon) ------------------------------------------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  border-block: 1px solid var(--line);
  background-color: var(--night-2);
  background-image: radial-gradient(rgba(216, 178, 110, 0.12) 1px, transparent 1.3px);
  background-size: 5px 5px;
}
.ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(138, 21, 56, 0.35), transparent 30%, transparent 70%, rgba(138, 21, 56, 0.35));
  pointer-events: none;
}
.ticker__viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker__list {
  display: flex;
  flex: none;
  gap: 2.75rem;
  margin: 0;
  padding: 0 2.75rem 0 0;
  list-style: none;
}
.ticker__list li {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(216, 178, 110, 0.45);
}
.ticker__list li::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: var(--maroon-bright);
  -webkit-mask: var(--star-solid) center / contain no-repeat;
  mask: var(--star-solid) center / contain no-repeat;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}
.ticker__toggle:hover { border-color: var(--gold); color: var(--gold); }
.ticker__toggle svg { width: 14px; height: 14px; }
.ticker__toggle .icon-play { display: none; }
.ticker.is-paused .ticker__toggle .icon-play { display: block; }
.ticker.is-paused .ticker__toggle .icon-pause { display: none; }
html:not(.js) .ticker__toggle { display: none; }

/* 09 Breadcrumb ------------------------------------------------------------ */
.breadcrumb { padding-top: clamp(1.1rem, 3vw, 1.6rem); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; margin: 0; }
.breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 0.7rem 0 0.55rem;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* 10 Sections and headings ------------------------------------------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.section-head__text { max-width: 48rem; }
.section-head__text > :last-child { margin-bottom: 0; }
.section-head h2 { margin-bottom: 0.45em; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2.25rem; }

.divider {
  height: 22px;
  max-width: 260px;
  margin: 3rem auto;
  background: var(--gold);
  opacity: 0.45;
  -webkit-mask: var(--star-band) center / 22px 22px repeat-x;
  mask: var(--star-band) center / 22px 22px repeat-x;
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--maroon) 0%, #5C0D25 60%, #2A0A16 100%);
  color: var(--on-maroon);
  box-shadow: var(--glow-maroon);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #E9CB8E;
  opacity: 0.16;
  -webkit-mask: linear-gradient(90deg, transparent 35%, #000), var(--star-tile) 0 0 / 44px 44px repeat;
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 35%, #000) intersect, var(--star-tile) 0 0 / 44px 44px repeat;
}
.cta-band h2, .cta-band h3 { color: #FFFFFF; margin-bottom: 0.4em; }
.cta-band p { color: rgba(255, 246, 238, 0.85); max-width: 56ch; margin-bottom: 0; }
.cta-band a:not(.btn) { color: #F3DDB0; }
.cta-band .btn--ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.45); }
.cta-band .btn--ghost:hover { color: #F3DDB0; border-color: #F3DDB0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; }
}

/* 11 Cards and grids ------------------------------------------------------- */
.grid { --gap: clamp(1rem, 2.4vw, 1.6rem); display: grid; gap: var(--gap); }
/* auto-fill with a floor: never more than 2 / 3 / 4 columns, never narrower than the minimum */
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(320px, calc((100% - var(--gap)) / 2))), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(260px, calc((100% - 2 * var(--gap)) / 3))), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(210px, calc((100% - 3 * var(--gap)) / 4))), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(216, 178, 110, 0.4); box-shadow: var(--glow-gold); }
.card:focus-within { border-color: rgba(216, 178, 110, 0.5); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 0.55rem; padding: 1.25rem 1.35rem 1.45rem; }
.card__kicker { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.card__title { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.card__title a { color: var(--text-strong); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__text { margin: 0; font-size: 0.96rem; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 0.5rem; font-size: 0.88rem; font-weight: 700; color: var(--link); }

/* Photo tile: an image that sits in a card grid */
.photo-tile {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(12, 14, 20, 0.88));
  font-size: 0.85rem;
  line-height: 1.45;
  color: #F4EFE7;
}

/* Split feature: media beside text */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__body > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-start { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .split--wide-end { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .split--top { align-items: start; }
  .split--reverse .split__media { order: 2; }
}

/* 12 Stadium carousel ------------------------------------------------------ */
.carousel { position: relative; }
.carousel__controls { display: flex; gap: 0.5rem; }
.carousel__btn { width: 48px; height: 48px; }
html:not(.js) .carousel__controls { display: none; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 78vw, 320px);
  gap: 1.25rem;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--maroon-bright) transparent;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--maroon-bright); border-radius: 6px; }
.carousel__track::-webkit-scrollbar-track { background: transparent; }
.carousel__track > li { margin: 0; scroll-snap-align: start; }

.stadium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.stadium-card:hover { transform: translateY(-4px); border-color: rgba(216, 178, 110, 0.45); box-shadow: var(--glow-gold); }
.stadium-card:has(.stadium-card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.stadium-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.stadium-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.stadium-card:hover .stadium-card__media img { transform: scale(1.05); }
.stadium-card__media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(12, 14, 20, 0.8));
}
.stadium-card__num {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(237, 232, 223, 0.25);
  border-radius: var(--pill);
  background: rgba(12, 14, 20, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: #E9CB8E;
}
.stadium-card__note {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.7rem;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
}
.stadium-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.45rem; padding: 1.1rem 1.25rem 1.3rem; }
.stadium-card__city { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.stadium-card__title { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.stadium-card__title a { color: var(--text-strong); text-decoration: none; }
.stadium-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.stadium-card__title a:focus-visible { outline: none; }
.stadium-card__text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }

.mini-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-strong);
}
.mini-facts div { min-width: 0; }
.mini-facts dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mini-facts dd { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: 0.9rem; color: var(--text-strong); }

/* 13 Spec sheet ------------------------------------------------------------ */
.spec-sheet {
  position: relative;
  margin: 2.5rem 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(216, 178, 110, 0.7), rgba(63, 193, 176, 0.35) 50%, rgba(179, 38, 79, 0.7)) border-box;
  box-shadow: 0 0 0 1px rgba(216, 178, 110, 0.06), 0 30px 80px -40px rgba(63, 193, 176, 0.5), 0 0 70px -30px rgba(216, 178, 110, 0.45);
}
.spec-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--surface-2), var(--surface));
}
.spec-sheet__title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.spec-sheet__tag { font-size: 0.75rem; color: var(--muted); }
.spec-sheet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 1.15rem 1.35rem 1.3rem;
  background: var(--surface);
}
.spec dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec dt svg { width: 16px; height: 16px; color: var(--gold); }
.spec dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.22rem);
  line-height: 1.3;
  color: var(--text-strong);
}
.spec dd small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
.spec--wide { grid-column: 1 / -1; }
.spec--wide dd { font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.55; }
.spec__value-big { color: var(--gold); text-shadow: 0 0 22px rgba(216, 178, 110, 0.4); }

/* 14 Capacity bar chart (pure CSS) ----------------------------------------- */
.bar-chart {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.bar-chart__title { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--text-strong); }
.bar-chart__sub { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
.bar-chart__list { display: grid; gap: 0.95rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.bar-chart__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1rem;
  margin: 0;
}
.bar-chart__label { min-width: 0; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.bar-chart__label a { color: inherit; text-decoration: none; }
.bar-chart__label a:hover { color: var(--gold); text-decoration: underline; }
.bar-chart__value {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}
.bar-chart__label { grid-column: 1; grid-row: 1; }
.bar-chart__value { grid-column: 2; grid-row: 1; }
.bar-chart__track {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  height: 14px;
  overflow: hidden;
  border-radius: var(--pill);
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(11.111% - 1px), var(--line) calc(11.111% - 1px), var(--line) 11.111%);
}
.bar-chart__fill {
  display: block;
  width: var(--pct, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-bright) 70%, #D56A7F);
  box-shadow: 0 0 16px rgba(179, 38, 79, 0.6);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.bar-chart__row--lead .bar-chart__fill {
  background: linear-gradient(90deg, var(--maroon-bright), var(--gold));
  box-shadow: 0 0 22px rgba(216, 178, 110, 0.55);
}
.bar-chart__row:nth-child(2) .bar-chart__fill { transition-delay: 0.07s; }
.bar-chart__row:nth-child(3) .bar-chart__fill { transition-delay: 0.14s; }
.bar-chart__row:nth-child(4) .bar-chart__fill { transition-delay: 0.21s; }
.bar-chart__row:nth-child(5) .bar-chart__fill { transition-delay: 0.28s; }
.bar-chart__row:nth-child(6) .bar-chart__fill { transition-delay: 0.35s; }
.bar-chart__row:nth-child(7) .bar-chart__fill { transition-delay: 0.42s; }
.bar-chart__row:nth-child(8) .bar-chart__fill { transition-delay: 0.49s; }
.js .bar-chart[data-reveal]:not(.is-visible) .bar-chart__fill { transform: scaleX(0); }
.bar-chart__note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
@media (min-width: 700px) {
  .bar-chart__row { grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr) 6.5rem; }
  .bar-chart__label, .bar-chart__track, .bar-chart__value { grid-column: auto; grid-row: auto; }
}

/* 15 Timeline -------------------------------------------------------------- */
.timeline { position: relative; margin: 2rem 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--maroon-bright) 70%, transparent);
  box-shadow: 0 0 12px rgba(216, 178, 110, 0.4);
}
.timeline__item { position: relative; margin: 0; padding: 0 0 2.25rem 2.75rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0.05rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 4px var(--night), 0 0 18px rgba(216, 178, 110, 0.75);
}
.timeline__item--future::before { border-style: dashed; border-color: var(--teal); box-shadow: 0 0 0 4px var(--night), 0 0 18px rgba(63, 193, 176, 0.7); }
.timeline__item--highlight::before { background: var(--gold); }
.timeline__year {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
}
.timeline__item--future .timeline__year { color: var(--teal); }
.timeline__title { margin: 0 0 0.35rem; font-size: 1.08rem; }
.timeline__body p { margin: 0; color: var(--muted); }
.timeline__body p + p { margin-top: 0.6rem; }
@media (min-width: 860px) {
  .timeline::before { left: 10.6rem; }
  .timeline__item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0 3.25rem; padding-left: 0; }
  .timeline__item::before { left: 10.05rem; }
  .timeline__year { margin: 0; text-align: right; }
}

/* 16 Screen cards and icon cards ------------------------------------------- */
.screen-card,
.icon-card {
  position: relative;
  overflow: hidden;
  padding: 2.1rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.screen-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, var(--text), transparent);
  box-shadow: 0 0 24px 4px rgba(237, 232, 223, 0.32), 0 0 60px 12px rgba(63, 193, 176, 0.16);
}
.screen-card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 14%;
  right: 14%;
  height: 75%;
  background: linear-gradient(180deg, rgba(237, 232, 223, 0.07), transparent);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  pointer-events: none;
}
:root[data-theme="light"] .screen-card::before { background: linear-gradient(90deg, transparent, var(--maroon), transparent); box-shadow: 0 0 20px 2px rgba(138, 21, 56, 0.25); }
:root[data-theme="light"] .screen-card::after { background: linear-gradient(180deg, rgba(138, 21, 56, 0.06), transparent); }
.screen-card__icon,
.icon-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface-2);
  color: var(--gold);
  box-shadow: 0 10px 30px -14px rgba(216, 178, 110, 0.5);
}
.screen-card__icon svg,
.icon-card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.screen-card__title,
.icon-card__title { position: relative; z-index: 1; margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.3; }
.screen-card p,
.icon-card p { position: relative; z-index: 1; margin: 0; font-size: 0.95rem; color: var(--muted); }
.screen-card p + p,
.icon-card p + p { margin-top: 0.6rem; }
.icon-card { padding-top: 1.6rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.icon-card:hover { border-color: rgba(63, 193, 176, 0.4); box-shadow: var(--glow-teal); }
.icon-card__icon { color: var(--teal); box-shadow: 0 10px 30px -14px rgba(63, 193, 176, 0.55); }
.icon-card__kicker { position: relative; z-index: 1; margin: 0 0 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* 17 District list --------------------------------------------------------- */
.district-list { margin: 0; padding: 0; list-style: none; counter-reset: district; border-top: 1px solid var(--line); }
.district {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: district;
}
.district::before {
  content: counter(district, decimal-leading-zero);
  grid-row: 1 / span 3;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
@supports (-webkit-text-stroke: 1px black) {
  .district::before { color: transparent; -webkit-text-stroke: 1.2px var(--gold); }
}
.district__name { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.district__name a { color: var(--text-strong); text-decoration: none; }
.district__name a:hover { color: var(--gold); }
.district__text { margin: 0; color: var(--muted); }
.district__tags { margin-top: 0.45rem; }
@media (min-width: 900px) {
  .district { grid-template-columns: 4.5rem minmax(11rem, 17rem) minmax(0, 1fr); align-items: start; }
  .district::before { grid-row: 1 / span 2; font-size: 2.1rem; }
  .district__text { grid-column: 3; grid-row: 1; }
  .district__tags { grid-column: 3; grid-row: 2; }
}

/* 18 Article layout and table of contents ---------------------------------- */
.article-layout { display: grid; gap: 2.5rem; align-items: start; }
.article-layout__main { min-width: 0; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; }
  .article-layout__aside { order: 2; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.toc {
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc__title { margin: 0 0 0.75rem; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.4rem 0.85rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc a:hover { color: var(--text-strong); }
.toc a.is-active { color: var(--gold); border-left-color: var(--gold); font-weight: 700; }

/* 19 Figures, media, gallery ----------------------------------------------- */
.figure { margin: 2.25rem 0; }
.figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.figure figcaption,
.media figcaption {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}
.figure figcaption::before,
.media figcaption::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 2px;
  margin-top: 0.65em;
  background: var(--gold);
}
.figure--crop img { aspect-ratio: 16 / 9; object-fit: cover; }
.figure--crop-tall img { aspect-ratio: 4 / 3; object-fit: cover; }
.figure--bleed { margin-inline: calc(-1 * var(--gutter)); }
.figure--bleed img { border-radius: 0; border-inline: 0; }
@media (min-width: 1024px) { .figure--bleed { margin-inline: -3rem; } .figure--bleed img { border-radius: var(--radius); border-inline: 1px solid var(--line); } }

.media { position: relative; margin: 0; }
.media img { width: 100%; border-radius: var(--radius); }
.media--frame { padding: 0 16px 16px 0; }
.media--frame::before {
  content: "";
  position: absolute;
  inset: 16px 0 0 16px;
  border: 1px solid rgba(216, 178, 110, 0.5);
  border-radius: var(--radius);
  pointer-events: none;
}
.media--frame img { position: relative; box-shadow: var(--shadow); }
.media--frame figcaption { padding-left: 16px; }
.media--cover img { aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.media-pair > :nth-child(2) { margin-top: 2.5rem; }

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 70vw, 340px);
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 0 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--maroon-bright) transparent;
}
.gallery-strip li { margin: 0; scroll-snap-align: start; }
.gallery-strip figure { margin: 0; }
.gallery-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-strip figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); }

/* Object-position helpers for crops */
.obj-top { object-position: center top !important; }
.obj-35 { object-position: center 35% !important; }
.obj-left { object-position: 10% center !important; }
.obj-right { object-position: 90% center !important; }
/* Hide the bottom fifth of a photo inside a fixed-ratio box with overflow hidden
   (.stadium-card__media, .card__media, .arch-frame__img, .photo-tile) */
.crop-bottom { height: 125% !important; object-position: center top !important; }

/* 20 Fact box, callouts, route box, checklist ------------------------------ */
.fact-box {
  position: relative;
  overflow: hidden;
  margin: 2.25rem 0;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.fact-box::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 170px;
  height: 170px;
  background: var(--gold);
  opacity: 0.1;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%), var(--star-tile) 0 0 / 34px 34px repeat;
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle, #000 30%, transparent 70%) intersect, var(--star-tile) 0 0 / 34px 34px repeat;
  pointer-events: none;
}
.fact-box__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.3;
}
.fact-box__title svg { width: 20px; height: 20px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact-box dl { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0.6rem 1.4rem; margin: 0; }
.fact-box dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.15em; }
.fact-box dd { margin: 0; color: var(--text); }
.fact-box ul { margin: 0; padding-left: 1.2em; }
.fact-box p:last-child { margin-bottom: 0; }
@media (max-width: 479.98px) {
  .fact-box dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .fact-box dd { margin-bottom: 0.6rem; }
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  margin: 2rem 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--gold-soft), var(--surface) 45%);
}
.callout__icon { width: 26px; height: 26px; margin-top: 0.1rem; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout__title { margin: 0 0 0.3rem; font-family: var(--font-body); font-size: 1rem; font-weight: 800; color: var(--text-strong); }
.callout__body > :last-child { margin-bottom: 0; }
.callout__body p { margin-bottom: 0.6em; }
.callout--tip { border-left-color: var(--teal); background: linear-gradient(90deg, var(--teal-soft), var(--surface) 45%); }
.callout--tip .callout__icon { color: var(--teal); }
.callout--warning { border-left-color: var(--maroon-bright); background: linear-gradient(90deg, var(--maroon-soft), var(--surface) 45%); }
.callout--warning .callout__icon { color: var(--maroon-bright); }
:root:not([data-theme="light"]) .callout--warning .callout__icon { color: #E06A88; }

.route-box {
  margin: 2.5rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.route-box__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(138, 21, 56, 0.6), rgba(138, 21, 56, 0.12));
}
:root[data-theme="light"] .route-box__head { background: linear-gradient(90deg, rgba(138, 21, 56, 0.14), rgba(138, 21, 56, 0.03)); }
.route-box__head svg { width: 22px; height: 22px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.route-box__title { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.route-box__steps { display: grid; gap: 1.2rem; margin: 0; padding: 1.4rem 1.35rem; list-style: none; counter-reset: step; }
.route-step { position: relative; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.95rem; margin: 0; counter-increment: step; }
.route-step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--gold);
}
.route-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: -1.1rem;
  left: calc(1.15rem - 1px);
  border-left: 2px dotted var(--line-strong);
}
.route-step__title { margin: 0.35rem 0 0.2rem; font-weight: 700; color: var(--text-strong); }
.route-step p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.route-box__foot { margin: 0; padding: 0.95rem 1.35rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

.line-list { display: grid; margin: 0; padding: 0; list-style: none; }
.line-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin: 0;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px dashed var(--line);
}
.line-list li:last-child { border-bottom: 0; }
.line-list .metro-badge { justify-self: start; margin-top: 0.15rem; }
.line-list p { margin: 0; font-size: 0.95rem; color: var(--text); }
.line-list small { display: block; margin-top: 0.2rem; font-size: 0.82rem; color: var(--muted); }

.checklist { margin: 1.5rem 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.checklist li { position: relative; margin: 0; padding-left: 2.1rem; }
.checklist li::before {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgba(63, 193, 176, 0.45);
}
.checklist li::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0.3rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--teal);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

/* 21 Tables ---------------------------------------------------------------- */
.table-wrap {
  margin: 2.25rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--maroon-bright) transparent;
}
.table-wrap:focus-visible { outline-offset: 2px; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.94rem; }
.table caption {
  padding: 1.1rem 1.25rem 0.6rem;
  caption-side: top;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-strong);
  text-align: left;
}
.table th, .table td { padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th {
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.table tbody th { font-weight: 700; color: var(--text-strong); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 0.2s ease; }
.table tbody tr:hover { background: var(--gold-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { margin: -1.5rem 0 2.25rem; font-size: 0.82rem; color: var(--muted); }

/* 22 FAQ / accordion ------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; margin: 2rem 0; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq__item[open] { border-color: rgba(216, 178, 110, 0.4); box-shadow: var(--glow-gold); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 1rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--text-strong);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 10px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 2px 10px no-repeat;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--gold); }
.faq__answer { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq__answer > :last-child { margin-bottom: 0; }

/* 23 Pull quote, related links, pager -------------------------------------- */
.pull-quote {
  position: relative;
  margin: 2.75rem 0;
  padding: 0.4rem 0 0.4rem 1.75rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-strong);
}
.pull-quote::before {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: -0.62rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--maroon-bright);
  -webkit-mask: var(--star-solid) center / contain no-repeat;
  mask: var(--star-solid) center / contain no-repeat;
}
.pull-quote p { margin: 0; }

.related {
  margin: 3.5rem 0 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.related__title { margin: 0 0 1.1rem; font-size: 1.1rem; }
.related__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related__list li { margin: 0; }
.related__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related__link:hover { border-color: rgba(216, 178, 110, 0.45); color: var(--text); text-decoration: none; transform: translateY(-2px); }
.related__kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.related__name { font-weight: 700; color: var(--text-strong); }
.related__desc { font-size: 0.86rem; color: var(--muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pager a:hover { border-color: rgba(216, 178, 110, 0.45); box-shadow: var(--glow-gold); color: var(--text); }
.pager__prev { grid-column: 1; }
.pager__next { grid-column: 2; text-align: right; }
.pager__dir { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.pager__name { font-family: var(--font-display); font-size: 0.95rem; color: var(--text-strong); }
@media (max-width: 559.98px) {
  .pager { grid-template-columns: 1fr; }
  .pager__next { grid-column: 1; }
}

/* 24 Season planner -------------------------------------------------------- */
.season {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.season__title { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--text-strong); }
.season__sub { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
.season__months { display: grid; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.season__month {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}
.season__name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.season__bar-wrap { display: block; height: 12px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; }
.season__bar {
  display: block;
  width: var(--h, 50%);
  height: 100%;
  border-radius: var(--pill);
  background: var(--maroon-bright);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.season__temp { font-family: var(--font-display); font-size: 0.78rem; color: var(--text-strong); text-align: right; white-space: nowrap; }
.season__level { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.season__month[data-level="prime"] .season__bar { background: linear-gradient(90deg, rgba(63, 193, 176, 0.45), var(--teal)); box-shadow: 0 0 16px rgba(63, 193, 176, 0.5); }
.season__month[data-level="good"] .season__bar { background: linear-gradient(90deg, rgba(216, 178, 110, 0.45), var(--gold)); }
.season__month[data-level="warm"] .season__bar { background: linear-gradient(90deg, var(--gold), #D9825F); }
.season__month[data-level="hot"] .season__bar { background: linear-gradient(90deg, #D9825F, var(--maroon-bright)); }
.season__month[data-level="fierce"] .season__bar {
  background: repeating-linear-gradient(135deg, var(--maroon-bright) 0 6px, var(--maroon) 6px 12px);
  box-shadow: 0 0 16px rgba(179, 38, 79, 0.55);
}
.js .season[data-reveal]:not(.is-visible) .season__bar { transform: scaleX(0); }
.season__month:nth-child(n+4) .season__bar { transition-delay: 0.1s; }
.season__month:nth-child(n+7) .season__bar { transition-delay: 0.2s; }
.season__month:nth-child(n+10) .season__bar { transition-delay: 0.3s; }

.season__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.season__legend li { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.season__swatch { width: 0.85rem; height: 0.85rem; border-radius: 4px; background: var(--maroon-bright); }
.season__swatch--prime { background: var(--teal); }
.season__swatch--good { background: var(--gold); }
.season__swatch--warm { background: #D9825F; }
.season__swatch--hot { background: var(--maroon-bright); }
.season__swatch--fierce { background: repeating-linear-gradient(135deg, var(--maroon-bright) 0 3px, var(--maroon) 3px 6px); }
.season__note { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }

/* Columns layout once there is room for twelve bars */
@media (min-width: 640px) {
  .season__months {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 0.45rem;
    height: 240px;
  }
  .season__month {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    gap: 0.45rem;
    height: 100%;
  }
  .season__temp { grid-row: 1; text-align: center; }
  .season__bar-wrap {
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 6px 6px;
    background: transparent;
    overflow: visible;
  }
  .season__bar { width: 100%; height: var(--h, 50%); border-radius: 10px 10px 6px 6px; transform-origin: center bottom; }
  .season__name { grid-row: 3; }
  .js .season[data-reveal]:not(.is-visible) .season__bar { transform: scaleY(0); }
}

/* 25 Glossary and letter index --------------------------------------------- */
.letter-index { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.letter-index li { margin: 0; }
.letter-index a,
.letter-index span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.letter-index a:hover { border-color: var(--gold); color: var(--gold); box-shadow: var(--glow-gold); }
.letter-index span { opacity: 0.35; }
.glossary__letter {
  margin: 2.75rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.9rem;
  color: var(--gold);
}
.glossary { margin: 0; }
.glossary dt { margin-top: 1.2rem; font-weight: 800; color: var(--text-strong); }
.glossary dt:first-child { margin-top: 0.75rem; }
.glossary dd { margin: 0.25rem 0 0; color: var(--muted); }
.glossary__alt { font-weight: 500; color: var(--muted); font-style: italic; }

/* 26 Legal pages ----------------------------------------------------------- */
.legal { max-width: 72ch; counter-reset: legal; }
.legal__updated {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 2rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
}
.legal__updated::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 2.75rem 0 0.8rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  counter-increment: legal;
}
.legal h2::before {
  content: counter(legal, decimal-leading-zero);
  flex: none;
  font-size: 0.75em;
  color: var(--gold);
}
.legal h3 { margin: 1.8rem 0 0.6rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal address { font-style: normal; }

/* 27 Forms ----------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.3rem;
  max-width: 680px;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.form__field { display: grid; gap: 0.45rem; }
.form__label { font-size: 0.92rem; font-weight: 700; color: var(--text-strong); }
.form__hint { font-size: 0.8rem; color: var(--muted); }
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.form__input::placeholder, .form__textarea::placeholder { color: var(--muted); opacity: 0.75; }
.form__input:hover, .form__textarea:hover, .form__select:hover { border-color: rgba(216, 178, 110, 0.5); }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--teal-soft), 0 0 0 1px var(--focus);
}
.form__input[aria-invalid="true"], .form__textarea[aria-invalid="true"] { border-color: var(--error); }
.form__error { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--error); }
.form__error:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { margin: 0; font-size: 0.92rem; color: var(--teal); }
.form__status:empty { display: none; }
.form__note { margin: 0; font-size: 0.84rem; color: var(--muted); }

.contact-panel {
  display: grid;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(216, 178, 110, 0.6), rgba(179, 38, 79, 0.5)) border-box;
}
.contact-panel__label { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-panel__mail { font-family: var(--font-display); font-size: clamp(0.95rem, 0.85rem + 0.6vw, 1.25rem); color: var(--gold); overflow-wrap: anywhere; }

/* 28 Footer ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--night-2);
  color: var(--muted);
}
.site-footer__band {
  position: relative;
  height: 56px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--maroon) 0%, var(--maroon-bright) 50%, var(--maroon) 100%);
  box-shadow: 0 -20px 60px -20px rgba(179, 38, 79, 0.55);
}
.site-footer__band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #E9CB8E;
  opacity: 0.6;
  -webkit-mask: var(--star-band) center / 56px 56px repeat-x;
  mask: var(--star-band) center / 56px 56px repeat-x;
}
.site-footer__band::after {
  content: "";
  position: absolute;
  inset: 0;
  border-block: 1px solid rgba(233, 203, 142, 0.6);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem 2rem;
  padding-block: clamp(2.75rem, 6vw, 4.25rem) 2.5rem;
}
@media (min-width: 560px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .site-footer__about { grid-column: auto; } }
.site-footer__about p { max-width: 38ch; margin: 1.1rem 0 0; font-size: 0.92rem; }
.site-footer__mail { font-weight: 700; color: var(--gold); overflow-wrap: anywhere; }
.site-footer__heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer ul { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; }
.site-footer__links a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--text-strong); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.site-footer__bottom p { margin: 0; max-width: 70ch; }
.brand--footer .brand__mark { width: 40px; height: 44px; }

/* 29 Consent banner and settings dialog ------------------------------------ */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 1000px;
  max-height: calc(100vh - 2rem);
  margin-inline: auto;
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(216, 178, 110, 0.12);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.consent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal), transparent);
}
.consent__inner { display: grid; gap: 1rem; }
.consent__title { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; color: var(--text-strong); }
.consent__text p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.consent__text p + p { margin-top: 0.35rem; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.consent .btn { min-height: 44px; padding: 0.6em 1.2em; font-size: 0.88rem; }
@media (min-width: 900px) {
  .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
  .consent__actions { flex-wrap: nowrap; }
}

.consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.consent-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.consent-dialog__panel {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(216, 178, 110, 0.1);
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.consent-dialog__panel:focus { outline: none; }
.consent-dialog__panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.consent-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.consent-dialog__title { margin: 0; padding-top: 0.4rem; font-size: 1.3rem; }
.consent-dialog__intro { margin: 0 0 1.1rem; font-size: 0.92rem; color: var(--muted); }
.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: start;
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.consent-option__title { font-weight: 800; color: var(--text-strong); cursor: pointer; }
.consent-option__status { display: inline-block; margin-left: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.consent-option__desc { grid-column: 1; margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.consent-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; margin-top: 1.5rem; }
.consent-dialog__foot { margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted); }

.switch {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch input:disabled { cursor: not-allowed; }
.switch__track {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface-3);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.switch input:checked + .switch__track { border-color: transparent; background: var(--teal); box-shadow: 0 0 16px rgba(63, 193, 176, 0.45); }
.switch input:checked + .switch__track::after { transform: translateX(24px); background: var(--night); }
:root[data-theme="light"] .switch input:checked + .switch__track::after { background: #FFFFFF; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch input:disabled + .switch__track { opacity: 0.65; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 85;
  width: max-content;
  max-width: min(92vw, 470px);
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 30 404 ------------------------------------------------------------------- */
.error-page {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
@media (min-width: 900px) { .error-page { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.error-page__code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 2.5rem + 11vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold) 20%, var(--maroon-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-page__links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.error-page__links li { margin: 0; }
.error-page__media { justify-self: center; width: min(100%, 380px); padding: 0 18px 18px 0; }

/* 31 Utilities ------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 2.5rem !important; }
.maxw-prose { max-width: 70ch; }
.nowrap { white-space: nowrap; }
@media (min-width: 900px) {
  .is-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* 32 Motion, reduced motion, print ----------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .ticker__track { animation: none !important; width: auto; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__list { flex-wrap: wrap; row-gap: 0.5rem; padding-right: 0; }
  .ticker__viewport { -webkit-mask: none; mask: none; }
  .ticker__toggle { display: none; }
  .live-dot::after { animation: none !important; display: none; }
  .card:hover, .stadium-card:hover, .btn:hover, .related__link:hover { transform: none; }
  .card:hover .card__media img, .stadium-card:hover .stadium-card__media img { transform: none; }
}

@media print {
  :root, :root[data-theme="light"] {
    --night: #FFFFFF; --night-2: #FFFFFF; --surface: #FFFFFF; --surface-2: #F4F4F4; --surface-3: #E6E6E6;
    --text: #111111; --text-strong: #000000; --muted: #444444; --line: #CCCCCC; --line-strong: #999999;
    --gold: #6B4E16; --link: #000000;
  }
  body { background: #FFFFFF; font-size: 11pt; }
  .site-header, .site-footer, .consent, .consent-dialog, .toast, .ticker, .skip-link,
  .carousel__controls, .hero__media::before, .arch-frame::before, .toc { display: none !important; }
  .hero::before, .hero::after, .page-hero::before { display: none; }
  a { color: #000000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  img { break-inside: avoid; }
  .card, .stadium-card, .spec-sheet, .fact-box, .callout, .route-box, .bar-chart, .season, .faq__item, .table-wrap {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .bar-chart__fill, .season__bar { transform: none !important; }
  .carousel__track, .gallery-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; }
  .hero__copy > *, .hero__media { animation: none !important; }
}
