/* ============================================================
   ABC FC — Desktop & Tablet Layer
   ------------------------------------------------------------
   Loaded with  media="(min-width: 769px)"  after every other
   stylesheet, so phones never download or apply any of this.
   The mobile design (style.css + page styles) stays exactly as
   it is; everything here re-lays the same markup for big screens.

   769px  – 1023px  tablet: wider spacing, fixed alignment
   1024px +         desktop: multi-column layouts, bigger type
   1280px +         wide desktop: extra breathing room
   ============================================================ */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --content-max: 1280px;
  --gutter: clamp(32px, 4vw, 56px);
  --desk-radius: 18px;
  --desk-card: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  --desk-line: rgba(245,168,0,0.14);
  --desk-glow: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(245,168,0,0.10), transparent 70%);
}
[data-theme="light"] {
  --desk-card: linear-gradient(160deg, #ffffff, #fbfbf8);
  --desk-line: rgba(201,135,0,0.22);
  --desk-glow: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(245,168,0,0.12), transparent 70%);
}

/* ── Layout primitives ─────────────────────────────────────── */
.container { padding-inline: var(--gutter); }
.header-inner { max-width: var(--content-max); padding-inline: var(--gutter); }
.section-header-row { margin-bottom: 40px; align-items: flex-end; }
.section-header-row .section-h2 { margin-bottom: 0; }
.section > [data-table-ts] { padding-inline: var(--gutter); }
.see-all-link.desk-only { display: inline-flex; }

.section-lead { margin-bottom: 40px; max-width: 62ch; }

/* "See all" links read as quiet pill buttons */
.see-all-link {
  padding: 10px 18px;
  border: 1px solid var(--desk-line);
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.see-all-link svg { transition: transform var(--transition); }
.see-all-link:hover { background: var(--gold-faint); border-color: var(--gold); }
.see-all-link:hover svg { transform: translateX(3px); }

/* Buttons: a little larger and tactile */
.btn-primary-lg, .btn-outline-lg { padding: 16px 30px; font-size: 15px; }
.btn-outline-lg { padding: 14px 30px; }


/* ── Header ────────────────────────────────────────────────── */
.site-header { height: 72px; }
.logo-img { width: 46px; height: 46px; }
.lw-name { font-size: 20px; }
.main-nav ul { gap: 2px; }
.main-nav a { font-size: 13.5px; padding: 10px 14px; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:hover { background: transparent; }
.main-nav a:hover::after,
.main-nav a.nav-active::after,
.main-nav a[aria-current]::after { transform: scaleX(1); }
.btn-join { padding: 10px 18px; font-size: 12.5px; }
.btn-join:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245,168,0,0.3); }
:root { --header-h: 72px; }

/* Tablet hamburger menu drops down as a tidy two-column panel */
.mobile-nav.open { padding: 24px var(--gutter) 20px; }
.mobile-nav.open ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }

/* ── Sub-page header band ──────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background: var(--desk-glow), var(--surface);
  background-position: 80% 0, 0 0;
  border-bottom: 1px solid var(--desk-line);
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: max(var(--gutter), calc((100% - var(--content-max)) / 2 + var(--gutter)));
  width: 210px;
  height: 210px;
  transform: translateY(-50%) rotate(-8deg);
  border-radius: 50%;
  background: url(../images/abc-fc-crest.svg) center / cover;
  filter: grayscale(1) contrast(1.4);
  mix-blend-mode: screen;
  opacity: 0.07;
  pointer-events: none;
}
[data-theme="light"] .page-hero::after { mix-blend-mode: multiply; opacity: 0.06; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-h1 { font-size: clamp(3.5rem, 5.5vw, 5.75rem); letter-spacing: 0.02em; }
.page-hero-sub { font-size: 13px; letter-spacing: 0.14em; }

/* ── Cookie banner sits as a card, bottom right ────────────── */
#cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 440px; padding: 20px 22px; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { padding-block: 80px 32px; }
.footer-grid { gap: 40px; margin-bottom: 32px; padding-bottom: 48px; }
.footer-crest { width: 60px; height: 60px; }
.fb-words strong { font-size: 14px; }
.fb-words span { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-col strong { font-size: 11px; margin-bottom: 18px; }
.footer-col ul { gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); }
.footer-contact-mini a { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-credit { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════════════════
   TABLET (769px – 1023px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  /* Hero: the crest and the season pill stack instead of sharing a line */
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-crest-wrap { order: -1; margin: 40px 0 76px; }
  .hero-pill { margin-bottom: 24px; }

  .club-layout { grid-template-columns: 1fr 220px; }
  .club-info-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
}

/* Training photos: straight, even tiles from 900px, where style.css turns the strip into a grid */
@media (min-width: 900px) {
  /* ── TRAINING ON THE HOME PAGE: one feature photo + eight ─ */
  .training-hint { display: none; }
  .training-strip:not(.training-grid) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
  }
  .training-strip:not(.training-grid) .training-tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
  .training-strip:not(.training-grid) .training-tile:nth-child(n+10) { display: none; }

  .training-tile {
    --tilt: 0deg !important;
    animation: none;
    transform: none;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .training-tile:hover,
  .training-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--gold), 0 20px 40px rgba(0,0,0,0.45);
  }
  .training-tile img { transition: transform 600ms cubic-bezier(0.16,1,0.3,1); }
  .training-tile:hover img { transform: scale(1.07); }


}

/* ══════════════════════════════════════════════════════════
   DESKTOP (1024px +)
══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  body { font-size: 16.5px; }
  .section { padding-block: clamp(88px, 7.5vw, 120px); }
  .section-h2 { font-size: clamp(3rem, 2.4vw + 1.6rem, 4.25rem); }
  .eyebrow { font-size: 13px; margin-bottom: 12px; }
  .section-sublead { font-size: 18px; max-width: 60ch; }
  .section-lead { font-size: 18px; }

  /* ── HOME HERO: copy left, crest right ──────────────────── */
  .hero {
    min-height: min(880px, calc(100svh - var(--ticker-h) - 72px));
    padding-block: 64px 96px;
    background:
      radial-gradient(ellipse 45% 60% at 74% 48%, rgba(245,168,0,0.13), transparent 70%),
      linear-gradient(155deg, #080808 0%, #0d0d00 40%, #1a0d00 100%);
  }
  .hbg-circle { left: 74%; }
  .hbg-circle.c1 { width: 640px; height: 640px; }
  .hbg-circle.c2 { width: 980px; height: 980px; }

  .hero-content {
    max-width: var(--content-max);
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    grid-template-areas:
      "pill  crest"
      "title crest"
      "sub   crest"
      "ctas  crest"
      "stats crest";
    grid-template-rows: auto auto auto auto auto;
    align-content: center;
    column-gap: clamp(40px, 5vw, 88px);
    text-align: left;
  }
  .hero-pill { grid-area: pill; justify-self: start; margin-bottom: 26px; }
  .hero-crest-wrap {
    grid-area: crest;
    justify-self: center;
    align-self: center;
    margin: 0;
  }
  .hero-crest {
    width: clamp(300px, 29vw, 430px);
    height: clamp(300px, 29vw, 430px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 120px rgba(245,168,0,0.22);
  }
  .hero-crest-glow { inset: -70px; }
  .hero-crest-wrap { --ring-gap: 22px; --ping-scale: 1.3; }

  .hero-h1 { grid-area: title; font-size: clamp(5.75rem, 8.6vw, 9.5rem); line-height: 0.9; margin-bottom: 26px; }
  .hero-sub { grid-area: sub; margin: 0 0 38px; max-width: 44ch; font-size: 19px; }
  .hero-ctas { grid-area: ctas; justify-content: flex-start; margin-bottom: 48px; }
  .hero-ctas .btn-primary-lg, .hero-ctas .btn-outline-lg { padding-inline: 26px; }
  .hero-stats {
    grid-area: stats;
    justify-content: flex-start;
    gap: 44px;
    padding-top: 30px;
    max-width: 560px;
  }
  .hs-item { align-items: flex-start; }
  .hs-num { font-size: 2.6rem; }
  .hs-lbl { font-size: 11px; color: rgba(255,255,255,0.45); }
  .hs-sep { height: 44px; }
  .hero-scroll-hint { bottom: 28px; }

  /* ── NEXT MATCH: a proper match-day card ────────────────── */
  [data-next-match-only],
  [data-next-match] {
    border: 1px solid rgba(245,168,0,0.28);
    border-radius: 22px;
    background:
      radial-gradient(ellipse 60% 120% at 50% 0%, rgba(245,168,0,0.12), transparent 70%),
      var(--black-3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  }
  [data-next-match-only] .fx-row,
  [data-next-match] .fx-row {
    grid-template-columns: 150px minmax(0, 1fr) 230px;
    grid-template-areas:
      "date  teams meta"
      "badge teams meta";
    column-gap: 32px;
    row-gap: 12px;
    padding: 40px 44px;
    border-left: 0;
    background: transparent;
  }
  [data-next-match-only] .fx-row:hover,
  [data-next-match] .fx-row:hover { background: transparent; }
  [data-next-match-only] .fx-date-col,
  [data-next-match] .fx-date-col { grid-area: date; align-items: flex-start; align-self: end; }
  [data-next-match-only] .fx-badge-col,
  [data-next-match] .fx-badge-col { grid-area: badge; align-self: start; }
  [data-next-match-only] .fx-day,
  [data-next-match-only] .fx-mon,
  [data-next-match] .fx-day,
  [data-next-match] .fx-mon { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; }
  [data-next-match-only] .fx-dd,
  [data-next-match] .fx-dd { font-size: 4.6rem; margin: 4px 0 2px; }
  [data-next-match-only] .fx-type,
  [data-next-match] .fx-type { font-size: 12px; padding: 5px 12px; border-radius: var(--radius-full); }
  [data-next-match-only] .fx-teams-col,
  [data-next-match] .fx-teams-col { grid-area: teams; column-gap: 24px; }
  [data-next-match-only] .fx-team,
  [data-next-match] .fx-team {
    flex-direction: column !important;
    justify-content: center;
    text-align: center !important;
    gap: 16px;
  }
  [data-next-match-only] .fx-crest,
  [data-next-match] .fx-crest {
    width: 96px;
    height: 96px;
    padding: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(245,168,0,0.25);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  }
  [data-next-match-only] .fx-tname,
  [data-next-match] .fx-tname {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1;
  }
  [data-next-match-only] .fx-vs,
  [data-next-match] .fx-vs { font-size: 2.4rem; color: var(--gold); }
  [data-next-match-only] .fx-meta-col,
  [data-next-match] .fx-meta-col { grid-area: meta; gap: 10px; align-self: center; }
  [data-next-match-only] .fx-time,
  [data-next-match] .fx-time { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; gap: 10px; line-height: 1; }
  [data-next-match-only] .fx-ko,
  [data-next-match] .fx-ko { width: 26px; height: 26px; }
  [data-next-match-only] .fx-venue,
  [data-next-match] .fx-venue { font-size: 14px; justify-content: flex-end; }
  [data-next-match-only] .fx-ground-dot,
  [data-next-match] .fx-ground-dot { width: 16px; height: 16px; }
  [data-next-match-only] .fx-comp,
  [data-next-match] .fx-comp {
    display: block;
    font-family: var(--font-sub);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
  }

  /* no fixture published yet: don't draw an empty card */
  [data-next-match-only]:not(:has(.fx-row)),
  [data-next-match]:not(:has(.fx-row)) { border: 0; box-shadow: none; background: none; }

  .fixtures-more-row { justify-content: flex-start; margin-top: 24px; }
  .fixtures-more-btn { width: auto; padding: 12px 24px; }
  /* the header already links to the same page */
  #fixtures .section-header-row ~ .fixtures-more-row { display: none; }

  /* ── FIXTURE ROWS (all fixtures) ────────────────────────── */
  .fixtures-list { border-radius: var(--desk-radius); }
  .fx-row {
    grid-template-columns: 74px 84px minmax(0, 1fr) 230px;
    gap: 24px;
    padding: 20px 28px;
  }
  .fx-day, .fx-mon { font-size: 11px; }
  .fx-dd { font-size: 2.1rem; }
  .fx-type { font-size: 11px; padding: 4px 10px; }
  .fx-teams-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
  }
  .fx-teams-col > * { grid-row: 1; }
  .fx-vs { grid-column: 2; font-size: 1.2rem; }
  /* home side on the left, away side on the right, whoever ABC FC are */
  .fx-home .fx-team:not(.fx-team-right),
  .fx-away .fx-team-right { grid-column: 1; flex-direction: row-reverse; text-align: right; }
  .fx-home .fx-team-right,
  .fx-away .fx-team:not(.fx-team-right) { grid-column: 3; flex-direction: row; text-align: left; }
  .fx-team { gap: 12px; }
  .fx-crest, .fx-crest-generic { width: 34px; height: 34px; }
  .fx-tname { max-width: none; font-size: 1.05rem; font-weight: 700; }
  .fx-time { font-size: 1rem; }
  .fx-venue { font-size: 13px; }

  /* ── RESULTS: two columns of result cards ───────────────── */
  .results-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .results-list > * { margin: 0 !important; }
  .results-list > [data-ts],
  .results-list > p { grid-column: 1 / -1; }
  .results-list > div[style] {
    padding: 22px 26px !important;
    border-radius: 14px !important;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .results-list > div[style]:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
  .results-list > div[style] > div:last-child > div:first-child { font-size: 18px !important; }
  .results-list > div[style] > div:last-child > div:first-child span { font-size: 22px !important; }
  .results-list > div[style] > div:last-child > div:last-child { font-size: 13px !important; }
  .res-row { border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }

  /* ── LEAGUE TABLE ───────────────────────────────────────
     main.js drops the table inside the heading's column; lift it out to full width */
  .section-header-row:has(> div > [data-table-container]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: end;
  }
  .section-header-row:has(> div > [data-table-container]) > div { display: contents; }
  .section-header-row:has(> div > [data-table-container]) .eyebrow { grid-column: 1; grid-row: 1; }
  .section-header-row:has(> div > [data-table-container]) .section-h2 { grid-column: 1; grid-row: 2; }
  .section-header-row:has(> div > [data-table-container]) > .see-all-link { grid-column: 2; grid-row: 2; }
  .section-header-row:has(> div > [data-table-container]) [data-table-container] { grid-column: 1 / -1; grid-row: 3; margin-top: 32px !important; }
  #full-table-container:not(:has(table)) { display: none; }

  /* …and where the page also has the position card, sit the two side by side */
  #table .container:has(.pos-card-wrap):has([data-table-container]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    column-gap: 40px;
    align-items: start;
  }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .section-header-row,
  #table .container:has(.pos-card-wrap):has([data-table-container]) .section-header-row > div { display: contents; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .eyebrow { grid-column: 1; grid-row: 1; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .section-h2 { grid-column: 1; grid-row: 2; margin-bottom: 32px; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .see-all-link { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) [data-table-container] { grid-column: 1; grid-row: 3; margin-top: 0 !important; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .pos-card-wrap {
    grid-column: 2;
    grid-row: 3;
    position: sticky;
    top: calc(var(--ticker-h) + 72px + 24px);
    max-width: none;
    margin: 0;
  }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .pos-card-main { flex-direction: column; align-items: stretch; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .pos-num-block { padding: 28px; flex-direction: row; gap: 14px; justify-content: flex-start; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .pos-number { font-size: 5rem; }
  #table .container:has(.pos-card-wrap):has([data-table-container]) .pos-divider { display: none; }


  [data-table-container],
  #full-table-container:has(table),
  .league-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--desk-radius);
    overflow: hidden !important;
    background: var(--surface);
  }
  [data-table-container] table,
  #full-table-container table { font-family: var(--font-sub); font-size: 16px !important; }
  [data-table-container] th,
  #full-table-container th {
    padding: 14px 16px !important;
    font-family: var(--font-sub);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  [data-table-container] td,
  #full-table-container td { padding: 13px 16px !important; border-top: 1px solid var(--border); }
  [data-table-container] td:nth-child(2),
  #full-table-container td:nth-child(2) { max-width: none !important; }
  [data-table-container] tbody tr:hover,
  #full-table-container tbody tr:hover { background: var(--gold-faint); }

  .pos-card-wrap { max-width: 760px; margin: 0; }
  .pos-card { border-radius: var(--desk-radius); }

  /* ── TOURNAMENT TEASER BLOCKS ───────────────────────────── */
  .tournament-section { padding-block: 112px; }
  .tf-card { padding: 28px 26px; gap: 8px; border-radius: 14px; align-items: flex-start; text-align: left; }
  .tf-card strong { font-size: 17px; }
  .tf-card span { font-size: 14.5px; }
  .tp-card { padding: 24px 26px; border-radius: 14px; }
  .tp-info strong { font-size: 17px; }
  .tp-info span { font-size: 14.5px; }
  .tournament-cta-row { margin-top: 40px; }

  .lb-close, .lb-nav { width: 52px; height: 52px; }
  .lb-prev { left: 28px; }
  .lb-next { right: 28px; }
  .lb-close { top: 24px; right: 24px; }

  /* ── NEWS: Facebook feed + a follow panel side by side ──── */
  .news-section .container {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    column-gap: 48px;
    align-items: stretch;
  }
  .news-section .section-header-row { grid-column: 1 / -1; }
  .news-section .t4-fb-card { grid-column: 1; border-radius: var(--desk-radius); }
  .news-section .fb-follow-row { display: none; }
  .news-aside.desk-only { display: flex; }
  .t4-fb-header { padding: 16px 20px; }

  /* Facebook placeholder (styled in style.css): fill the feed column */
  .fb-page:not([fb-xfbml-state="rendered"]) .fb-xfbml-parse-ignore { min-height: 460px; justify-content: center; gap: 28px; }
  .fb-page:not([fb-xfbml-state="rendered"]) .fb-xfbml-parse-ignore::before { width: 176px; height: 176px; border-width: 3px; }

  /* ── CLUB SNAPSHOT (home) ───────────────────────────────── */
  .club-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: stretch; margin-bottom: 0; }
  .club-info-grid { gap: 16px; }
  .ci-card {
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 16px;
    background: var(--desk-card), var(--surface);
  }
  .ci-card strong { font-size: 11px; letter-spacing: 0.16em; color: var(--gold); }
  .ci-card span { font-family: var(--font-sub); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; }
  .club-crest-panel {
    position: relative;
    justify-content: center;
    padding: 40px 28px;
    border: 1px solid var(--desk-line);
    border-radius: 22px;
    background: radial-gradient(circle at 50% 42%, rgba(245,168,0,0.16), transparent 62%), var(--surface);
    top: auto;
  }
  .club-crest-img { width: 220px; height: 220px; }
  .colour-dot { width: 22px; height: 22px; }
  .colours-label { font-size: 12px; }

  /* ── CONTACT ────────────────────────────────────────────── */
  .contact-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 56px; }
  .contact-details { gap: 12px; }
  .contact-card { padding: 18px 20px; border-radius: 14px; gap: 16px; }
  .contact-card strong { font-size: 11px; }
  .contact-card span, .contact-card a { font-size: 15.5px; }
  .contact-form { padding: 40px; gap: 18px; border-radius: 22px; }
  .form-group label { font-size: 12px; }
  .form-group input, .form-group select, .form-group textarea { padding: 14px 16px; font-size: 15px; border-radius: 10px; }
  .form-note { font-size: 13px; }
  .form-row-2 > *, .form-group input, .form-group select, .form-group textarea { min-width: 0; }
  .form-group input, .form-group select, .form-group textarea { width: 100%; }

  /* ── PEOPLE / LEADERSHIP ────────────────────────────────── */
  .person-body p { font-size: 15px; }
  .person-body h4 { font-size: 1.3rem; }

  /* ── FOOTER ─────────────────────────────────────────────── */
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 48px; }
}



/* ── Home: follow panel beside the Facebook feed ───────────── */
.news-aside {
  flex-direction: column;
  gap: 22px;
  padding: 36px;
  border: 1px solid var(--desk-line);
  border-radius: var(--desk-radius);
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(245,168,0,0.12), transparent 65%), var(--surface);
}
.na-head { display: flex; align-items: center; gap: 16px; }
.na-crest { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.na-kicker { display: block; font-family: var(--font-sub); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.na-name { display: block; font-family: var(--font-display); font-size: 2.1rem; letter-spacing: 0.02em; line-height: 1; color: var(--text); }
.na-text { font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 52ch; }
.na-follow { align-self: flex-start; }
.na-follow:hover { color: var(--black); }
.na-links { display: flex; flex-direction: column; margin-top: auto; border-top: 1px solid var(--border); }
.na-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sub);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.na-links a svg { color: var(--gold); transition: transform var(--transition); }
.na-links a:hover { color: var(--gold); }
.na-links a:hover svg { transform: translateX(4px); }

/* ── Home: the store band ──────────────────────────────────── */
@media (min-width: 1024px) {
  .shop-cta-section { position: relative; overflow: hidden; padding-block: 88px; }
  .shop-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-55deg, transparent 0 46px, rgba(0,0,0,0.035) 46px 47px);
    pointer-events: none;
  }
  .shop-cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: max(-40px, calc((100% - var(--content-max)) / 2 - 40px));
    width: 460px;
    height: 460px;
    transform: translateY(-50%) rotate(-14deg);
    border-radius: 50%;
    background: url(../images/abc-fc-crest.svg) center / cover;
    opacity: 0.14;
    mix-blend-mode: multiply;
    pointer-events: none;
  }
  .shop-cta-section .container { position: relative; z-index: 1; }
  .shop-cta-text h2 { font-size: clamp(3.5rem, 5vw, 5rem); margin: 6px 0 10px; }
  .shop-cta-text p { font-size: 18px; }
  .shop-cta-text .eyebrow { opacity: 0.7; }
  .shop-cta-btn { padding: 18px 34px; font-size: 15px; box-shadow: 0 14px 30px rgba(0,0,0,0.25); }
  .shop-cta-btn:hover { color: var(--gold) !important; transform: translateY(-2px); }
}

/* ══════════════════════════════════════════════════════════
   CLUB, CLUB INFO, FOUNDATION (desktop)
══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Club identity: big crest beside a 3 x 2 grid of facts (club.html) */
  .club-identity { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: center; padding: 80px 0; }
  .club-crest-wrap {
    width: 240px;
    height: 240px;
    border-width: 4px;
    box-shadow: 0 0 0 10px rgba(245,168,0,0.06), 0 0 70px rgba(245,168,0,0.18);
  }
  .club-facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .cf-item { padding: 22px 24px; border-radius: 14px; background: var(--desk-card), var(--surface); }
  .cf-item strong { font-size: 22px; margin-bottom: 4px; }
  .cf-item span { font-size: 12.5px; }

  /* …and the same block on club-info.html, which is styled inline */
  #club-info > .container > div:first-child {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 64px !important;
    align-items: center !important;
    margin-bottom: 56px !important;
  }
  #club-info > .container > div:first-child > div:first-child > div:first-child {
    width: 240px !important;
    height: 240px !important;
    border-width: 4px !important;
    box-shadow: 0 0 0 10px rgba(245,168,0,0.06), 0 0 70px rgba(245,168,0,0.18);
  }
  #club-info > .container > div:first-child > div:nth-child(2) > div:nth-child(2) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  #club-info > .container > div:first-child > div:nth-child(2) > div:nth-child(2) > div {
    padding: 22px 24px !important;
    border-radius: 14px !important;
    background: var(--desk-card), var(--surface) !important;
  }
  #club-info > .container > div:first-child > div:nth-child(2) > div:nth-child(2) strong { font-size: 22px !important; margin-bottom: 4px; }
  #club-info > .container > div:first-child > div:nth-child(2) > div:nth-child(2) span { font-size: 12.5px !important; }
  /* About card: two columns of copy instead of one narrow one */
  #club-info > .container > div:nth-child(2) { padding: 40px 48px !important; border-radius: 18px !important; }
  #club-info > .container > div:nth-child(2) p {
    max-width: none !important;
    columns: 2;
    column-gap: 56px;
    font-size: 17px !important;
    line-height: 1.75 !important;
  }

  /* Foundation: story + numbers on the left, timeline on the right
     (same structure on foundation.html and the club.html section) */
  #foundation.foundation-section > .container {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    column-gap: 80px;
    align-items: start;
  }
  #foundation.foundation-section > .container > * { grid-column: 1; }
  #foundation.foundation-section > .container > :nth-child(5) {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin-top: 6px !important;
  }
  #foundation .section-lead,
  #foundation .section-sublead { margin-bottom: 0; }
  #foundation .impact-row,
  #foundation.foundation-section > .container > :nth-child(4) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 36px 0 36px !important;
  }
  #foundation .impact-card,
  #foundation.foundation-section > .container > :nth-child(4) > div {
    padding: 24px 14px !important;
    border-radius: 14px !important;
    background: var(--desk-card), var(--surface) !important;
  }
  #foundation .impact-card strong,
  #foundation.foundation-section > .container > :nth-child(4) strong { font-size: 2.9rem !important; }
  #foundation .impact-card span,
  #foundation.foundation-section > .container > :nth-child(4) span { font-size: 12px !important; }
  /* timeline type */
  #foundation .tl-item,
  #foundation.foundation-section > .container > :nth-child(5):not(.timeline) > [data-reveal] { padding-bottom: 2.4rem !important; }
  #foundation .tl-year,
  #foundation.foundation-section > .container > :nth-child(5):not(.timeline) > [data-reveal] > div:nth-child(2) { font-size: 14px !important; }
  #foundation .tl-title,
  #foundation.foundation-section > .container > :nth-child(5):not(.timeline) > [data-reveal] > div:nth-child(3) { font-size: 24px !important; margin: 4px 0 8px !important; }
  #foundation .tl-desc,
  #foundation.foundation-section > .container > :nth-child(5):not(.timeline) > [data-reveal] > p { font-size: 16px !important; line-height: 1.7 !important; max-width: 62ch; }

  /* Sponsor tiers + contact on club.html */
  .tier-card { padding: 28px; border-radius: 16px; }
  .tier-perks li { font-size: 14.5px; }
  .contact-info-item { padding-block: 20px; }
}

/* ══════════════════════════════════════════════════════════
   HONOURS, TOURNAMENT, TRAINING (desktop)
══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Honours: all five headline numbers on one row */
  .hon-stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  /* Tournament: give the sponsors' thank-you poster room to be read */
  .t4-sponsor-split { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; }
  .t4-sponsor-thanks img { border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,0.45); }

  /* Training page: lead with one big photo, then an even grid */
  .training-strip.training-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .training-strip.training-grid .training-tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .training-cta { flex-direction: row; justify-content: space-between; padding: 32px 40px; text-align: left; }
  .training-cta p { font-size: 18px; }
}

/* Facebook fallback card fills the feed column on desktop */
@media (min-width: 1024px) {
  .t4-fb-card.fb-unavailable { display: flex; flex-direction: column; }
  .fb-fallback { flex: 1; justify-content: center; min-height: 460px; gap: 14px; }
  .fb-fallback-crest { width: 150px; height: 150px; border-width: 3px; }
  .fb-fallback-title { font-size: 22px; }
  .fb-fallback-text { font-size: 15.5px; }
}

/* ══════════════════════════════════════════════════════════
   SPACING RHYTHM (tablet + desktop)
══════════════════════════════════════════════════════════ */
/* Same breathing room under every sub-page title band
   (several pages set an inline 2rem, Fixtures used the full section padding) */
.page-hero + .section { padding-top: 56px !important; }

/* Tournament + sponsor-poster pages: line content up with the header's edges */
.t4-section, .ts-section { padding-inline: var(--gutter); }
.t4-inner,
.ts-section-inner { max-width: calc(var(--content-max) - 2 * var(--gutter)); }
/* inline-styled header/footer wrappers on those pages carry their own padding */
[style*="max-width:1100px; margin:0 auto"] { max-width: var(--content-max) !important; padding-inline: var(--gutter) !important; }

@media (min-width: 1024px) {
  .page-hero + .section { padding-top: 72px !important; }

  /* Home: the ad slot brings its own height, so pull the sections either side in */
  main:has(.ad-slot-wrap) #training { padding-bottom: 64px; }
  main:has(.ad-slot-wrap) #news { padding-top: 72px; }
  .ad-slot-wrap { padding: 0; }
}
