/* ==========================================================================
   Football Made Easy — Core stylesheet
   Palette: #034694 (Chelsea blue) / #FFFFFF / #000000
   Notes: flat colour only. No gradients, no glow, no drop shadows on type.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --accent: #034694;        /* primary blue — fills, rules, active states */
  --accent-deep: #034694;   /* 10.4:1 on white, safe for link text */
  --accent-bright: #1560bd; /* hover / secondary blue */
  --accent-soft: #eef3fa;

  --ink: #0b0b0b;
  --ink-70: #3d3d3d;
  --muted: #6a6a6a;
  --paper: #ffffff;
  --wash: #f6f7f9;
  --line: #e3e5e9;
  --line-strong: #0b0b0b;

  --live: #17b26a;
  --danger: #c53030;

  /* Bebas Neue for headings; Archivo stays on UI chrome (nav, buttons,
     kickers, table headers) where a condensed all-caps face would hurt.
     Bebas has no lowercase glyphs — every heading renders uppercase. */
  --font-heading: "Bebas Neue", "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1400px;
  --gutter: 24px;
  --radius: 3px;
  --radius-card: 16px;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.25rem;
  --step-5: 3rem;
  --step-6: 3.75rem;
}

[data-theme="dark"] {
  --ink: #f2f4f7;
  --ink-70: #ccd1d9;
  --muted: #98a0ab;
  --paper: #08080a;
  --wash: #121418;
  --line: #23262c;
  --line-strong: #f2f4f7;
  --accent: #1e5fb5;        /* lifted so blue fills stay visible on black */
  --accent-deep: #7fb0f2;   /* light blue for link text on dark */
  --accent-bright: #7fb0f2;
  --accent-soft: #0f1c2e;
  --danger: #f07171;
}

/* 2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  /* Long unbroken strings — email addresses, URLs, club names in narrow
     columns — wrap instead of forcing the page wider. */
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Bebas is condensed and sits small for its point size, so headings run a
   touch larger, with positive tracking and a tighter leading than the
   Archivo settings they replace. */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: .015em;
  margin: 0;
}
/* The negative tracking and sizes below were tuned for Archivo. Condensed
   all-caps needs the opposite: positive tracking, and a size bump to hold
   the same visual weight. */
.page-head h1,
.article-head h1,
.lead .card__title,
.postlist h3,
.card--h .card__title,
.section-head h2,
.card__title { letter-spacing: .015em; }

.section-head h2 { font-size: 1.5rem; }
.page-head h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.article-head h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
.lead .card__title { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.postlist h3 { font-size: 1.375rem; }
.card--h .card__title { font-size: 1.25rem; }
.prose h2 { font-size: 2.25rem; }
.prose h3 { font-size: 1.75rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* 3. Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* minmax(0, 1fr) rather than 1fr: a bare 1fr track has min-width:auto, so a
   long unbreakable word inside it pushes the whole grid wider than its
   container. This is the single most common cause of mobile overflow. */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; }
.grid--lead { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section--flush { padding-top: 0; border-top: 0; }
.section--wash { background: var(--wash); }

.stack > * + * { margin-top: 18px; }

/* 4. Type helpers
   ========================================================================== */
.kicker {
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker--ink { color: var(--ink); }
.kicker::before {
  content: "";
  width: 14px; height: 2px; background: var(--accent); flex: none;
}
.kicker--bare::before { display: none; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.lede { font-size: var(--step-2); line-height: 1.45; color: var(--ink-70); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px 20px; flex-wrap: wrap;
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 10px;
  margin-bottom: 28px;
}
.section-head h2 {
  min-width: 0;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em;
}
.section-head .more {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep);
  white-space: nowrap;
}
.section-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 5. Header
   ========================================================================== */
.topbar {
  background: #000; color: #fff;
  font-size: .75rem; letter-spacing: .02em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; }
.topbar__date { color: #b9b9b9; text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; }
.topbar__links { display: flex; gap: 20px; list-style: none; }
.topbar__links a { color: #e8e8e8; font-size: .75rem; }
.topbar__links a:hover { color: var(--accent); }

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead .container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 22px; padding-bottom: 22px;
  min-width: 0;
}

.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo > span { min-width: 0; }
.logo__mark {
  width: 34px; height: 34px; flex: none; background: var(--accent);
  display: grid; place-items: center; border-radius: 50%;
}
.logo__mark svg { width: 20px; height: 20px; }
/* "FOOTBALLMADEEASY" is one unbreakable word, so its intrinsic width used to
   set a 442px floor on the whole page — every mobile viewport overflowed no
   matter what else was fixed. Scaling the wordmark with the viewport is what
   actually lets the masthead shrink. */
.logo__text {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  /* Slope tuned by measurement: the wordmark is ~10.4 em-widths, and the
     narrowest case (320px) leaves exactly enough room at 13.6px. Larger
     phones have headroom, so it scales up to the 24px desktop size by ~500px. */
  font-size: clamp(.78rem, 5.74vw - .36rem, 1.5rem);
  line-height: 1; text-transform: uppercase; display: block;
  /* body sets overflow-wrap:break-word for mobile overflow safety, which
     also let this one-word mark split — the Y dropped to a second line.
     The wordmark must never break; it scales instead. */
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
.logo__text span { color: var(--accent); }
.logo__tag {
  display: block; font-family: var(--font-body); font-size: .625rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}

.masthead__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost { background: none; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { height: 48px; padding: 0 26px; font-size: .8125rem; }
.btn--block { width: 100%; }

.nav-toggle { display: none; }

/* Primary navigation */
.mainnav {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mainnav.is-stuck { border-bottom-color: var(--line-strong); }
.mainnav .container { display: flex; align-items: center; gap: 8px; }

.mainnav__compact {
  display: none; align-items: center; gap: 8px; margin-right: 18px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1rem;
}
.mainnav.is-stuck .mainnav__compact { display: flex; }
.mainnav__compact .logo__mark { width: 26px; height: 26px; }
.mainnav__compact .logo__mark svg { width: 15px; height: 15px; }

.menu { display: flex; list-style: none; flex-wrap: wrap; align-items: center; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 15px 14px;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.menu > li > a:hover { color: var(--accent-deep); }
.menu > li.is-active > a { border-bottom-color: var(--accent); }
.menu > li:first-child > a { padding-left: 0; }

.has-sub > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 70;
  background: var(--paper); border: 1px solid var(--line-strong); list-style: none;
  padding: 6px; display: none;
}
.submenu--wide { min-width: 440px; columns: 2; column-gap: 6px; }
.menu > li:hover > .submenu,
.menu > li:focus-within > .submenu { display: block; }
.submenu a {
  display: block; padding: 9px 12px; font-size: .875rem; font-weight: 500;
  break-inside: avoid;
}
.submenu a:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* 6. Live score ticker
   ========================================================================== */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  display: flex; align-items: stretch; overflow: hidden;
}
.ticker__label {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); padding: 0 16px;
  font-family: var(--font-display); font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.ticker__viewport { overflow: hidden; flex: 1; }
.ticker__track {
  display: flex; width: max-content; animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track, .ticker__track:focus-within { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border-right: 1px solid var(--line);
  font-size: .8125rem; white-space: nowrap;
}
.ticker__item b { font-weight: 600; }
.ticker__score {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .02em;
  background: var(--wash); padding: 1px 8px; border-radius: 2px;
}
.ticker__min { color: var(--live); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; }
.ticker__min--ft { color: var(--muted); }

/* 6b. Hero carousel
   ==========================================================================
   Full-bleed photography with the headline bottom-left in Bebas Neue.
   The scrim is a flat rgba fill rather than a gradient: photos vary a lot in
   brightness and the text has to clear AA contrast on all of them.
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(460px, 72vh, 720px);
  background: var(--ink);
  overflow: hidden;
  display: flex;
  isolation: isolate;
}

.hero__viewport { position: absolute; inset: 0; }

.hero__slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
/* Slow drift on the active slide only — subtle enough to read as depth
   rather than motion. Killed entirely under reduced-motion. */
.hero__slide.is-active .hero__img { animation: heroDrift 6s ease-out forwards; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(6, 8, 12, .58);
}

.hero__inner {
  position: relative; z-index: 2;
  padding-bottom: 104px; padding-top: 80px;
  width: 100%;
  color: #fff;
}

.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display);
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px;
}
.hero__kicker:hover { background: #fff; color: var(--accent); }

.hero__title {
  font-family: "Bebas Neue", var(--font-display), sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: .94;
  letter-spacing: .01em;
  margin: 18px 0 0;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__title a { color: #fff; }
.hero__title a:hover { color: #cfe0f7; }

.hero__excerpt {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.hero__meta { font-size: .8125rem; color: rgba(255, 255, 255, .72); }

/* --- controls --- */
.hero__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__ui-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  width: 34px; height: 4px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .35); border-radius: 2px;
  transition: background .2s ease, width .3s ease;
}
.hero__dot:hover { background: rgba(255, 255, 255, .6); }
.hero__dot.is-active { background: var(--accent); width: 52px; }

.hero__nav { display: flex; align-items: center; gap: 10px; }
.hero__count {
  font-family: var(--font-display); font-size: .75rem; letter-spacing: .12em;
  color: rgba(255, 255, 255, .6); margin-right: 6px;
}
.hero__count b { color: #fff; font-weight: 700; }

.hero__arrow {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; border-radius: var(--radius); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hero__arrow:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero__arrow svg { width: 18px; height: 18px; }
.hero :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
  .hero__slide.is-active .hero__img { animation: none; }
}

@media (max-width: 900px) {
  .hero { min-height: clamp(420px, 62vh, 560px); }
  .hero__inner { padding-bottom: 96px; padding-top: 56px; }
  .hero__title { max-width: 100%; }
  .hero__excerpt { font-size: .9375rem; max-width: 100%; }
}

@media (max-width: 620px) {
  .hero__excerpt { display: none; }          /* headline + CTA carry it on small screens */
  .hero__actions { margin-top: 20px; gap: 12px; }
  .hero__meta { width: 100%; }
  .hero__count, .hero__arrow { display: none; }
  .hero__ui-inner { justify-content: center; }
  .hero__dot { width: 26px; }
  .hero__dot.is-active { width: 40px; }
}

/* 6c. Page hero
   ==========================================================================
   Section, league and data pages. Utility pages (About, Contact, Privacy,
   Tags, Search) keep the plain .page-head — a stock photo above a privacy
   policy is decoration pretending to be content.
   ========================================================================== */
.phero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: clamp(360px, 46vh, 520px);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.phero--compact { min-height: clamp(260px, 32vh, 380px); }

.phero__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.phero__scrim { position: absolute; inset: 0; z-index: 1; background: rgba(6, 8, 12, .62); }

.phero__inner {
  position: relative; z-index: 2;
  width: 100%; color: #fff;
  padding-top: 56px; padding-bottom: 44px;
}
.phero .breadcrumb { color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.phero .breadcrumb a { color: rgba(255, 255, 255, .9); }
.phero .breadcrumb a:hover { color: #fff; }
.phero .breadcrumb li + li::before { color: rgba(255, 255, 255, .35); }

.phero__kicker { color: #fff; opacity: .85; }
.phero__title {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  margin: 10px 0 0;
  max-width: 20ch;
}
.phero__lede {
  margin: 14px 0 0; max-width: 62ch;
  font-size: 1.0625rem; line-height: 1.55;
  color: rgba(255, 255, 255, .85);
}

.phero__featured {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 26px; padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius);
  max-width: 100%;
}
.phero__featured:hover { background: #fff; border-color: #fff; color: var(--ink); }
.phero__featured-label {
  font-family: var(--font-display); font-size: .625rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 2px; flex: none;
}
.phero__featured:hover .phero__featured-label { background: var(--accent); color: #fff; }
.phero__featured-title { font-weight: 500; font-size: .9375rem; }
.phero__featured-go { flex: none; opacity: .7; }

@media (max-width: 620px) {
  .phero { min-height: clamp(280px, 38vh, 380px); }
  .phero__inner { padding-top: 36px; padding-bottom: 32px; }
  .phero__lede { display: none; }
  .phero__featured { display: none; }
}

/* 6d. Competition blocks (fixtures grouped by competition)
   ========================================================================== */
.comp-block { margin-bottom: 40px; }
.comp-block__head {
  display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--line-strong);
}
.comp-block__emblem { width: 28px; height: 28px; object-fit: contain; flex: none; }
.comp-block__head h3 { font-size: 1.375rem; letter-spacing: .015em; min-width: 0; }
.comp-block__head h3 a:hover { color: var(--accent-deep); }
.comp-block__count {
  margin-left: auto; font-size: .75rem; color: var(--muted);
  font-family: var(--font-body);
}
.comp-block .fixture-group { border: 1px solid var(--line); margin-bottom: 12px; }
.comp-block .fixture-group__head { padding: 9px 16px; }
.comp-block .fixture-group__head h4 {
  font-family: var(--font-display); font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0;
}

.fixtures-mode + .fixtures-mode { margin-top: 48px; }

/* Club crests from the API */
.crest { width: 20px; height: 20px; object-fit: contain; flex: none; }
.crest--empty { display: inline-block; }
/* Table cells are not flex, so the crest keeps inline alignment there. */
table.data .team { white-space: nowrap; }
table.data .team .crest { display: inline-block; vertical-align: -5px; margin-right: 8px; }

/* 7. Cards
   ========================================================================== */
.card { display: flex; flex-direction: column; gap: 12px; }
.card__title { font-size: var(--step-2); line-height: 1.02; }
.card__title a:hover { color: var(--accent-deep); }
.card__excerpt { color: var(--muted); font-size: .9375rem; margin: 0; }

/* --- Overlay card ---------------------------------------------------------
   Square image, generous corner radius, headline set over the picture at the
   bottom left. The scrim here IS a gradient, deliberately: a flat fill dulls
   the whole photo, and a hard-edged band looks like a mistake. It is a
   legibility device over imagery, not decorative colour — the flat-colour
   rule still holds everywhere else on the site.
   ------------------------------------------------------------------------- */
.card--overlay {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.card--overlay .thumb {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  height: 100%;
}
.card--overlay .card__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .88) 0%,
    rgba(0, 0, 0, .62) 22%,
    rgba(0, 0, 0, .18) 48%,
    rgba(0, 0, 0, 0) 70%);
}
.card--overlay .card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 24px 24px;
  color: #fff;
}
.card--overlay .card__title {
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  line-height: 1.0;
  color: #fff;
}
.card--overlay .card__title a { color: #fff; }
.card--overlay .card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.card--overlay:hover .card__title a { color: #cfe0f7; }
.card--overlay .card__meta {
  display: block; margin-top: 8px;
  font-family: var(--font-body);
  font-size: .75rem; color: rgba(255, 255, 255, .75);
}
.card--overlay .thumb__badge { z-index: 2; }
.card--overlay .thumb a { display: none; }   /* the title's ::after covers the card */

/* Wide variant for lead slots inside an overlay grid */
.card--overlay.card--wide .thumb { aspect-ratio: 16 / 9; }
.card--overlay.card--tall .thumb { aspect-ratio: 4 / 5; }

/* The background colour shows through until the image decodes, so a slow
   connection sees a deliberate block rather than a white gap. */
.thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink); border-radius: var(--radius);
  display: grid; place-items: center;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.2, .6, .2, 1);
}
.card:hover .thumb img,
.thumb:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) {
  .thumb img { transition: none; }
  .card:hover .thumb img, .thumb:hover img { transform: none; }
}
.thumb--accent { background: var(--accent); }
.thumb--wash { background: var(--wash); border: 1px solid var(--line); }
.thumb--tall { aspect-ratio: 4 / 5; }
.thumb--wide { aspect-ratio: 21 / 9; }
.thumb__mark {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  letter-spacing: .06em; color: #fff; opacity: .92;
}
.thumb--wash .thumb__mark { color: var(--ink); opacity: .35; }
.thumb--accent .thumb__mark { color: #fff; }
.thumb__badge {
  position: absolute; left: 10px; top: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: .625rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px;
}
.thumb__badge--ink { background: var(--ink); color: var(--paper); }
.thumb__badge { z-index: 2; }
.thumb a { position: absolute; inset: 0; z-index: 3; }

.meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .75rem; color: var(--muted);
}
.meta a { color: var(--ink); font-weight: 500; }
.meta a:hover { color: var(--accent-deep); }
.meta__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* Lead / hero */
.lead .card__title { font-size: clamp(2rem, 4vw, var(--step-5)); letter-spacing: -0.035em; }
.lead .card__excerpt { font-size: var(--step-1); color: var(--ink-70); }

.card--h { flex-direction: row; gap: 16px; align-items: flex-start; }
.card--h .thumb { flex: none; width: 128px; aspect-ratio: 1 / 1; }
.card--h .card__title { font-size: 1rem; letter-spacing: -0.01em; }

.card--num { counter-increment: rank; }
.card--num .card__title::before {
  content: counter(rank);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
  margin-right: 10px; vertical-align: -2px;
}

/* Post list (dividers, no thumbs) */
.postlist { list-style: none; counter-reset: rank; }
.postlist li { padding: 16px 0; border-top: 1px solid var(--line); }
.postlist li:first-child { border-top: 0; padding-top: 0; }
.postlist h3 { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.postlist h3 a:hover { color: var(--accent-deep); }

/* 8. Sidebar widgets
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
/* Sticks as one block so nothing inside it can scroll over anything else.
   align-self:start stops the grid stretching it to full row height, which
   would make sticky a no-op. */
.sidebar--sticky { position: sticky; top: 90px; align-self: start; }
@media (max-width: 900px) { .sidebar--sticky { position: static; } }
.widget { }
.widget__title {
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 2px solid var(--line-strong); padding-bottom: 8px; margin-bottom: 16px;
}
.widget--box { background: var(--wash); border: 1px solid var(--line); padding: 22px; }
.widget--ink { background: var(--ink); color: var(--paper); padding: 24px; }
.widget--ink .widget__title { border-color: var(--accent); }
.widget--ink p { color: #c8c8c6; font-size: .875rem; }
[data-theme="dark"] .widget--ink { border: 1px solid var(--line); }

.taglist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
/* Scoped to the anchor deliberately. WordPress body_class() adds a bare
   "tag" class on tag archives, and an unscoped .tag rule turned <body> into
   an inline-flex pill — the whole archive layout collapsed. Same reason
   .search-results is scoped to ul below. */
a.tag,
button.tag {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); padding: 6px 11px; border-radius: 100px;
  font-size: .75rem; font-weight: 500; color: var(--ink-70);
}
a.tag:hover,
button.tag:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
a.tag b,
button.tag b { color: var(--muted); font-weight: 500; }
a.tag--active,
button.tag--active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
a.tag--active:hover,
button.tag--active:hover { background: var(--ink); color: var(--paper); }

/* 9. Forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-display); font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.textarea { height: auto; padding: 12px 14px; min-height: 150px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); outline: none; }
.input::placeholder, .textarea::placeholder { color: #a3a3a1; }

.form-note { font-size: .75rem; color: var(--muted); }
.form-msg { font-size: .8125rem; font-weight: 500; margin-top: 10px; }
.form-msg--ok { color: var(--live); }
.form-msg--err { color: var(--danger); }

.newsletter-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-inline .input { flex: 1; min-width: 0; }
.widget--ink .input { background: #171716; border-color: #2c2c2a; color: #fff; }

/* Newsletter band */
.band {
  border: 1px solid var(--line-strong); padding: 44px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: center;
}
.band h2 { font-size: var(--step-3); margin-bottom: 8px; }

/* 10. Article
   ========================================================================== */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 100;
}

.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; font-size: .75rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--accent-deep); }

.page-head { padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.25rem, 5vw, var(--step-6)); text-transform: uppercase; letter-spacing: -0.03em; }
.page-head .lede { max-width: 62ch; margin-top: 14px; }

.article-head { max-width: 820px; margin: 0 auto; padding: 36px 0 28px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 12px 0 16px; }

.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.byline__who { min-width: 0; flex: 1; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .875rem;
}
.avatar--accent { background: var(--accent); color: #fff; }
.avatar--lg { width: 76px; height: 76px; font-size: 1.375rem; }
/* Brand byline: the masthead ball, not a person's initials. */
.avatar--brand { background: var(--accent); }
.avatar--brand svg { width: 24px; height: 24px; }
.avatar--brand.avatar--lg svg { width: 40px; height: 40px; }
.byline__who { font-size: .875rem; }
.byline__who b { font-weight: 600; }
.byline__who a:hover { color: var(--accent-deep); }
.share { margin-left: auto; display: flex; gap: 8px; }
.share button, .share a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer;
}
.share button:hover, .share a:hover { border-color: var(--accent); color: var(--accent-deep); }
.share svg { width: 15px; height: 15px; }

.figure { margin: 0 0 28px; }
.figure figcaption { font-size: .75rem; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.credit { display: block; margin-top: 4px; font-size: .6875rem; color: var(--muted); opacity: .85; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

.prose { max-width: 720px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.75; }
.prose > * { margin-bottom: 1.35em; }
.prose h2 { font-size: var(--step-3); margin: 1.8em 0 .6em; }
.prose h3 { font-size: var(--step-2); margin: 1.6em 0 .5em; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { background: var(--accent-soft); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; letter-spacing: -0.02em;
}
.prose blockquote cite { display: block; font-family: var(--font-body); font-size: .8125rem; font-style: normal; color: var(--muted); margin-top: 12px; letter-spacing: 0; }
.prose figure { margin: 2em 0; }
.prose strong { font-weight: 600; }

.pullquote {
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 22px 0; margin: 2em 0;
  font-family: var(--font-display); font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.025em;
}

.source-note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--wash); padding: 16px 18px; font-size: .875rem;
}
.source-note strong { font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; font-size: .6875rem; display: block; margin-bottom: 6px; color: var(--muted); }

/* The TOC used to be sticky on its own. Inside a taller sidebar that meant
   the widgets below it scrolled up and over the pinned block. The whole
   sidebar is the sticky unit now (see .sidebar--sticky). */
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding: 10px 0; font-size: .875rem; color: var(--muted); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); margin-right: 10px; font-weight: 600; }
.toc a:hover, .toc a.is-current { color: var(--ink); }

.author-box { display: flex; gap: 20px; padding: 26px; border: 1px solid var(--line); background: var(--wash); }

.postnav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.postnav a { display: block; padding: 22px; border: 1px solid var(--line); }
.postnav a:hover { border-color: var(--ink); }
.postnav span { font-family: var(--font-display); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.postnav strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -0.01em; margin-top: 8px; }
.postnav .next { text-align: right; }

/* 11. Tables / fixtures / standings
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 560px; }
table.data th {
  text-align: left; padding: 12px 14px; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
table.data td { padding: 12px 14px; border-top: 1px solid var(--line); }
table.data tbody tr:hover { background: var(--wash); }
table.data .num { text-align: center; width: 46px; color: var(--muted); }
table.data .team { font-weight: 600; }
table.data .pts { font-weight: 700; font-family: var(--font-display); }
table.data tr.is-ucl td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.data tr.is-uel td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
table.data tr.is-rel td:first-child { box-shadow: inset 3px 0 0 var(--danger); }

.form-badges { display: flex; gap: 4px; }
.form-badges span {
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 2px;
  font-size: .625rem; font-weight: 700; color: #fff; background: var(--muted);
}
.form-badges .w { background: var(--live); }
.form-badges .d { background: #9a9a98; }
.form-badges .l { background: var(--danger); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .75rem; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; display: block; }

/* Fixtures */
.fixture-group { border: 1px solid var(--line); margin-bottom: 24px; }
.fixture-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--wash); border-bottom: 1px solid var(--line);
}
.fixture-group__head h3 { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.fixture {
  display: grid; grid-template-columns: 66px minmax(0, 1fr) 78px minmax(0, 1fr) 80px;
  align-items: center; gap: 12px;
  padding: 14px 16px; border-top: 1px solid var(--line);
}
.fixture > * { min-width: 0; }
.fixture:first-of-type { border-top: 0; }
.fixture:hover { background: var(--wash); }
.fixture__time { font-size: .75rem; color: var(--muted); font-weight: 600; }
/* Flex on both sides so the crest stays centred against the club name even
   when a long name wraps. Inline-block + vertical-align drifted apart
   between the home (crest after) and away (crest before) columns. */
.fixture__home,
.fixture__away { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; }
.fixture__home { justify-content: flex-end; text-align: right; }
.fixture__away { justify-content: flex-start; }
.fixture__score {
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--ink); color: var(--paper); padding: 4px 0; border-radius: 2px;
}
.fixture__score--pending { background: var(--wash); color: var(--muted); font-size: .8125rem; border: 1px solid var(--line); }
.fixture__state { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.fixture__state.live { color: var(--accent); }

/* Tabs */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line-strong); margin-bottom: 26px; }
.tab {
  background: none; border: 0; cursor: pointer; padding: 11px 16px; margin-bottom: -2px;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel[hidden] { display: none; }

/* Rumour meter */
.rumour { padding: 16px 0; border-top: 1px solid var(--line); }
.rumour:first-child { border-top: 0; padding-top: 0; }
.rumour h4 { font-family: var(--font-display); font-size: .9375rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.rumour h4 a:hover { color: var(--accent-deep); }
.meter { display: flex; align-items: center; gap: 10px; font-size: .6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.meter__bar { flex: 1; max-width: 120px; height: 5px; background: var(--line); border-radius: 100px; overflow: hidden; }
.meter__fill { height: 100%; background: var(--accent); display: block; }

/* 12. Footer
   ========================================================================== */
.site-footer { background: #000; color: #d5d5d3; margin-top: 64px; }
.site-footer a { color: #d5d5d3; }
.site-footer a:hover { color: var(--accent); }
.footer-top { padding: 56px 0 44px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-top h4 {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.footer-top ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .875rem; }
.site-footer .logo__text { color: #fff; }
.site-footer p { color: #9a9a98; font-size: .875rem; }
.footer-sources { border-top: 1px solid #1f1f1e; padding: 22px 0; }
.footer-sources ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: .8125rem; }
.footer-sources ul a { color: #9a9a98; }
.footer-sources ul a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid #1f1f1e; padding: 20px 0 40px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .75rem; color: #7d7d7b;
}
.footer-bottom ul { display: flex; gap: 18px; list-style: none; }
.footer-bottom span { line-height: 1.7; }
.footer-bottom a { color: #9a9a98; }
.footer-bottom a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid #2a2a28; border-radius: var(--radius);
}
.socials a:hover { border-color: var(--accent); }
.socials svg { width: 16px; height: 16px; }

/* 13. Search overlay
   ========================================================================== */
.search-overlay {
  position: fixed; inset: 0; z-index: 120; background: var(--paper);
  display: none; overflow-y: auto;
}
.search-overlay.is-open { display: block; }
.search-overlay__inner { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.search-overlay__close { position: absolute; top: 22px; right: 22px; }
.search-box { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.search-box svg { flex: none; }
.search-box input {
  flex: 1; min-width: 0;   /* inputs default to ~20ch and refuse to shrink */
  border: 0; background: none; font-family: var(--font-display);
  font-size: clamp(1.125rem, 4vw, var(--step-3)); font-weight: 700;
  letter-spacing: -0.02em; padding: 8px 0;
}
.search-box input:focus { outline: none; }
ul.search-results { list-style: none; margin-top: 24px; }
ul.search-results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
ul.search-results h3 { font-size: 1.0625rem; margin-bottom: 4px; }
ul.search-results mark { background: var(--accent-soft); color: var(--accent-deep); }

/* 14. Misc
   ========================================================================== */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: .875rem; font-weight: 500; border-radius: var(--radius);
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius);
  cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 14px 18px; font-size: .875rem; background: var(--wash); }

.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: .85; letter-spacing: -0.05em; color: var(--accent); }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.stat { padding: 22px; border-right: 1px solid var(--line); min-width: 0; }
.stat b { overflow-wrap: break-word; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: var(--step-4); letter-spacing: -0.03em; }
.stat span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.team-card { text-align: left; }
.team-card .avatar { margin-bottom: 14px; }

.club-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.club-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; border: 1px solid var(--line); text-align: center;
}
.club-chip:hover { border-color: var(--accent); }
.club-chip b { font-family: var(--font-display); font-size: 1.125rem; color: var(--accent-deep); }
.club-chip span { font-size: .75rem; color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--font-display); font-size: 1.0625rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; max-width: 70ch; }

.is-hidden { display: none !important; }

/* 15. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .club-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 18px; }

  .nav-toggle { display: grid; }
  .mainnav .container { position: relative; }
  .mainnav__compact { display: flex !important; margin-right: auto; }

  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper); border: 1px solid var(--line-strong); border-top: 0;
    max-height: 74vh; overflow-y: auto; padding: 6px;
  }
  .menu.is-open { display: flex; }
  .menu > li > a { padding: 13px 12px; border-bottom: 1px solid var(--line); margin: 0; }
  .menu > li:last-child > a { border-bottom: 0; }
  .menu > li.is-active > a { color: var(--accent-deep); border-bottom-color: var(--line); }
  .submenu { position: static; display: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px 12px; background: var(--wash); }
  /* min-width:440px is fine for the desktop dropdown but overflows a 360px
     phone once the submenu goes static inside the mobile menu. */
  .submenu--wide { columns: 1; min-width: 0; }
  .submenu.is-open { display: block; }
  .menu > li:hover > .submenu { display: none; }
  .menu > li.is-expanded > .submenu { display: block; }

  .grid--sidebar, .grid--lead, .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4.keep-2, .grid--3.keep-2 { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .masthead .container { padding-top: 16px; padding-bottom: 16px; }
  .logo__tag { display: none; }
  /* Reclaim width for the wordmark so it can stay on one line. */
  .icon-btn { width: 36px; height: 36px; }
  .masthead__actions { gap: 6px; }
  .logo { gap: 8px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__mark svg { width: 17px; height: 17px; }
  .topbar__links li:nth-child(n+3) { display: none; }
  /* Keep the topbar a single row: the date wrapping onto a second line was
     doubling its height on phones. */
  .topbar__date { white-space: nowrap; }
  .topbar__links a { white-space: nowrap; }
}

@media (max-width: 620px) {
  .club-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4.keep-2, .grid--3.keep-2, .team-grid { grid-template-columns: minmax(0, 1fr); }
  /* Date only — the two links duplicate the main nav and squeeze the row. */
  .topbar__links { display: none; }
  .card--h .thumb { width: 96px; }
  /* Five columns cannot hold crest + club name on a 320px screen — the away
     cell was getting 43px for 99px of content. Two rows instead: meta on
     top, the tie itself below. */
  .fixture {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    row-gap: 8px; column-gap: 8px;
  }
  .fixture__time  { grid-column: 1; grid-row: 1; text-align: left; }
  .fixture__state { grid-column: 3; grid-row: 1; text-align: right; }
  .fixture__home  { grid-column: 1; grid-row: 2; }
  .fixture__score { grid-column: 2; grid-row: 2; }
  .fixture__away  { grid-column: 3; grid-row: 2; }
  .fixture__home, .fixture__away {
    font-size: .875rem;
    /* Long club names break rather than push the row wider. */
    overflow-wrap: anywhere;
  }
  .fixture .crest { width: 18px; height: 18px; }
  .postnav { grid-template-columns: 1fr; }
  .postnav .next { text-align: left; }
  .masthead__actions .btn { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .author-box { flex-direction: column; }
  .section { padding: 36px 0; }
}

/* 15b. Advertising
   ==========================================================================
   Ads must be visually distinguishable from editorial — that is an AdSense
   policy requirement, not a style preference. Hence the label and the rule
   above each unit. Reserved min-height stops layout shift as units fill.
   ========================================================================== */
.ad {
  display: block;
  margin: 40px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: center;
  min-height: 120px;
}
.ad__label {
  display: block;
  font-family: var(--font-display);
  font-size: .5625rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.ad ins { margin: 0 auto; }
.ad--sidebar { margin: 0; border-top: 0; padding-top: 0; }
.ad--in_article { margin: 44px 0; }
/* Keep clear of the sticky nav so an ad never sits under a tap target. */
.ad--below_hero { margin-top: 32px; }

@media print { .ad, .consent { display: none !important; } }

/* 15c. Consent banner
   ========================================================================== */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--ink); color: var(--paper);
  border-top: 2px solid var(--accent);
}
[data-theme="dark"] .consent { background: #121418; border-top-color: var(--accent); }
.consent[hidden] { display: none; }
.consent__inner {
  max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.consent__text { margin: 0; flex: 1; min-width: 260px; font-size: .875rem; line-height: 1.55; }
.consent__text a { text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, .4); }
.consent .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-theme="dark"] .consent .btn--ghost { color: var(--ink); border-color: var(--line); }

@media (max-width: 620px) {
  .consent__inner { padding: 14px var(--gutter); gap: 12px; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}

/* 15d. Videos
   ==========================================================================
   Click-to-load facades. A live iframe per video would pull several megabytes
   of YouTube player before anyone watches anything, so each card is a
   thumbnail until pressed.
   ========================================================================== */
.video-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.video-filters .tag { cursor: pointer; background: var(--paper); color: var(--ink-70); font-family: inherit; }
.video-filters .tag--active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.video-filters__sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }

/* Self-contained: .video-grid--shorts only overrides the column count, so
   the base must establish the grid itself. Without display:grid the page
   rendered as a single stacked column. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.video-grid > * { min-width: 0; }

.video { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.video__frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
/* Shorts stay in the same 16:9 frame as everything else.
   A 9:16 cell in a mixed grid makes one card roughly twice the height of its
   neighbours and leaves a large hole in the row, so they are identified by
   the badge instead. The vertical crop only comes back when the grid is
   filtered to Shorts alone. */
.video-grid--shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-grid--shorts .video__frame { aspect-ratio: 9 / 16; }

@media (max-width: 900px) {
  /* Two up on tablet and phone. The base grid had no breakpoint at all, so
     it stayed three-wide on mobile and the cards were unreadable. */
  .video-grid,
  .video-grid--shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 560px) {
  /* Still two columns, but the type has to come down to fit the cell. */
  .video-grid,
  .video-grid--shorts { gap: 14px 12px; }
  .video__title { font-size: 1rem; line-height: 1.1; }
  .video__meta { font-size: .6875rem; }
  .video__badge { font-size: .5625rem; padding: 3px 6px; }
}

.video__play {
  position: absolute; inset: 0;
  width: 100%; height: 100%; padding: 0;
  border: 0; background: none; cursor: pointer;
  display: block;
}
.video__thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.2, .6, .2, 1);
}
.video__play:hover .video__thumb { transform: scale(1.04); }

.video__scrim {
  position: absolute; inset: 0;
  background: rgba(6, 8, 12, .18);
  transition: background .2s ease;
}
.video__play:hover .video__scrim { background: rgba(6, 8, 12, .34); }

.video__icon {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  display: grid; place-items: center;
  pointer-events: none;
}
.video__icon svg { width: 68px; height: 48px; display: block; }
.video__icon-bg { fill: rgba(11, 11, 11, .78); transition: fill .2s ease; }
.video__play:hover .video__icon-bg { fill: var(--accent); }

.video__badge {
  position: absolute; left: 10px; top: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: .625rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px;
}

/* The injected player replaces the facade entirely. */
.video__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

.video__title { font-size: 1.0625rem; line-height: 1.15; }
.video__title a:hover { color: var(--accent-deep); }
.video__meta { margin: 0; font-size: .75rem; color: var(--muted); }

.video-more { text-align: center; margin-top: 36px; }
.video-more p { margin-bottom: 14px; }

.video-subscribe {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .video__thumb { transition: none; }
  .video__play:hover .video__thumb { transform: none; }
}

@media (max-width: 620px) {
  .video--short .video__frame { max-height: 420px; }
  .video-subscribe .btn { width: 100%; }
}

/* 16. Print
   ========================================================================== */
@media print {
  .topbar, .mainnav, .ticker, .site-footer, .to-top, .share, .sidebar, .progress { display: none !important; }
  body { color: #000; }
  .prose { max-width: none; }
}
