/* Glass homescreen layer — loaded on the homepage ONLY, after style.css,
   amsal.css, redesign.css and club-design.css. It restyles the homepage to
   the user's "Fall once, rise twice" glass design (liquid-glass cards over
   a faint full-page pitch) without touching /admin or /blog, whose styles
   are not loaded here. All rules are scoped under body.glass-home. */
body.glass-home {
  --glass-ink: #14201a;
  --glass-mute: #5b6a61;
  --glass-line: rgba(20, 32, 26, .16);
  --glass-chip: rgba(20, 40, 30, .06);
  --glass-pitch-line: rgba(100, 115, 106, .3);
  --glass-gold: #ecbb3c;
  --glass-gold-2: #9a6d05;
  --glass-red: #e03a4c;
  --glass-g1: rgba(244, 248, 245, .95);
  --glass-g2: rgba(255, 255, 255, .7);
  --glass-g3: rgba(240, 246, 242, .9);
  --glass-border: rgba(20, 32, 26, .12);
  --glass-hi: #fff;
  --glass-hi2: rgba(20, 32, 26, .05);
  --glass-shadow: rgba(20, 40, 30, .12);
  --glass-bg: #fff;
  --glass-display: "Bricolage Grotesque", "Hind", system-ui, sans-serif;
  --glass-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--glass-body);
  background: var(--glass-bg);
  color: var(--glass-ink);
}
html[data-theme="dark"] body.glass-home {
  --glass-ink: #eef4ee;
  --glass-mute: #b4c6b8;
  --glass-line: rgba(255, 255, 255, .3);
  --glass-chip: rgba(255, 255, 255, .1);
  --glass-pitch-line: rgba(160, 170, 164, .28);
  --glass-gold-2: #ecbb3c;
  --glass-g1: rgba(255, 255, 255, .24);
  --glass-g2: rgba(255, 255, 255, .07);
  --glass-g3: rgba(255, 255, 255, .14);
  --glass-border: rgba(255, 255, 255, .28);
  --glass-hi: rgba(255, 255, 255, .55);
  --glass-hi2: rgba(255, 255, 255, .1);
  --glass-shadow: rgba(0, 0, 0, .3);
  --glass-bg: #0d1411;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.glass-home {
    --glass-ink: #eef4ee;
    --glass-mute: #b4c6b8;
    --glass-line: rgba(255, 255, 255, .3);
    --glass-chip: rgba(255, 255, 255, .1);
    --glass-pitch-line: rgba(160, 170, 164, .28);
    --glass-gold-2: #ecbb3c;
    --glass-g1: rgba(255, 255, 255, .24);
    --glass-g2: rgba(255, 255, 255, .07);
    --glass-g3: rgba(255, 255, 255, .14);
    --glass-border: rgba(255, 255, 255, .28);
    --glass-hi: rgba(255, 255, 255, .55);
    --glass-hi2: rgba(255, 255, 255, .1);
    --glass-shadow: rgba(0, 0, 0, .3);
    --glass-bg: #0d1411;
  }
}
body.glass-home h1, body.glass-home h2, body.glass-home h3 {
  font-family: var(--glass-display);
  letter-spacing: -.02em;
  line-height: 1.05;
}
body.glass-home :focus-visible { outline: 3px solid var(--glass-gold); outline-offset: 3px; }

/* Full-page faint pitch background (design file's .bg), behind everything. */
body.glass-home .glass-pitch-bg { position: fixed; inset: 0; z-index: -1; background: var(--glass-bg); }
body.glass-home .glass-pitch-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--glass-pitch-line); stroke-width: 2.5; }

/* Glass card treatment for the homepage's existing glass-card / card blocks. */
body.glass-home .glass-card, body.glass-home .tp-news-card,
body.glass-home .ground-card, body.glass-home .tp-newsletter, body.glass-home .tp-contact-form,
body.glass-home .match-card {
  background: linear-gradient(140deg, var(--glass-g1), var(--glass-g2) 55%, var(--glass-g3));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-hi2), 0 14px 44px var(--glass-shadow);
  border-radius: 22px;
  color: var(--glass-ink);
}
body.glass-home .tp-subtitle, body.glass-home .ground-card p,
body.glass-home .tp-news-body p { color: var(--glass-mute); }

/* Header: keep the existing sticky nav, restyled glass-dark over the hero. */
body.glass-home .navbar { background: rgba(18, 64, 42, .97); border-bottom: 3px solid var(--glass-gold); }
body.glass-home .club-title-white, body.glass-home .nav-links a span { color: #fff; }
body.glass-home .nav-links a { color: #dcebe2; }
body.glass-home .nav-links a:hover { color: #fff; }

/* Hero: full-height, photo carousel + shade, glass next-match cards. */
body.glass-home .tp-hero {
  min-height: min(94vh, 880px);
  display: flex; flex-direction: column;
  /* No bottom corner radius (2026-11-04, user): the 34px rounded
     bottom corners left white page-background triangles at the
     hero's bottom corners, above the dark register banner. Square
     corners meet the next section edge to edge. */
  border-radius: 0;
  padding: 30px 0 0;
  color: #eef4ee;
  /* Dark fallback (design file's slide gradient) so hero text stays
     readable even when no slider photo is available; slider photos,
     when present, cover this. */
  background: linear-gradient(135deg, #1c3328, #0f1d16);
}
body.glass-home .tp-hero::before { background: linear-gradient(90deg, rgba(6,12,9,.78), rgba(6,12,9,.25) 65%), linear-gradient(0deg, rgba(6,12,9,.6), rgba(6,12,9,0) 40%); z-index: 1; }
body.glass-home .tp-hero-grid { flex: 1; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
body.glass-home .tp-hero-title {
  font-family: var(--glass-display);
  font-size: clamp(46px, 7.4vw, 96px);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -.02em;
  /* !important is required here: club-design.css sets the hero title as
     pitch-green→gold gradient text with transparent fill (!important),
     which is unreadable on the dark glass hero. */
  background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
  -webkit-text-fill-color: #eef4ee !important; color: #eef4ee !important;
  filter: none; text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
body.glass-home .tp-hero-sub { font-size: 19px; max-width: 44ch; color: #eef4ee; opacity: .92; text-shadow: none; }
body.glass-home .hero-eyebrow { color: #cdd9d0; }
body.glass-home .tp-btn { border-radius: 999px; }
body.glass-home .tp-btn-accent { background: var(--glass-gold); color: #1b1500; }
body.glass-home .tp-btn-ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
body.glass-home .hero-match-deck { display: grid; gap: 16px; }
body.glass-home .hero-match-deck .glass-card {
  border-radius: 24px; padding: 22px 24px;
  /* Hero cards sit on the dark hero, so like the design file's .herofull
     scope they use light ink/mute even in light mode; the page sections
     below keep the dark ink above. */
  --glass-ink: #eef4ee; --glass-mute: #cdd9d0;
  color: var(--glass-ink);
}
body.glass-home .glass-pill {
  display: inline-block; font-weight: 600; font-size: 12px;
  background: var(--glass-red); color: #fff; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
body.glass-home .tp-featured-label, body.glass-home .tp-featured-label-cup { color: var(--glass-ink); }
body.glass-home .tp-team span, body.glass-home .tp-featured-foot span { color: var(--glass-ink); }
body.glass-home .tp-featured-foot span:last-child { color: var(--glass-mute); }

/* Carousel, design file style: a flex track that slides with transform
   (not the old fade/scale slider), full-height hero, round prev/next,
   stretched active dot, caption, 4.8s autoplay in JS, pause on hover,
   no autoplay under prefers-reduced-motion. */
body.glass-home .hero-slider { overflow: hidden; }
body.glass-home .glass-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65,0,.25,1); }
body.glass-home .glass-track .slide {
  position: relative; flex: 0 0 100%; height: 100%;
  opacity: 1 !important; transform: none !important; animation: none !important;
  background-size: cover; background-position: center;
}

/* Board: read-only replica of the admin Board Studio preview. The board
   classes/CSS come from club-design.css (classic theme, same as admin);
   these rules only make the public board read-only (default cursor, no
   drag affordance) and keep it inside the glass page without overflow. */
body.glass-home .board-container { width: 100%; }
body.glass-home .glass-board-stage { cursor: default; }
body.glass-home .glass-board-stage .box { cursor: default; }
body.glass-home .glass-board-stage .box .bh span { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.glass-home .glass-board-stage .box .row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.glass-home .glass-board-stage .board-svg path { vector-effect: non-scaling-stroke; }

/* Carousel controls (design file's .ctl), below the hero grid. */
body.glass-home .glass-carousel-ctl {
  position: relative; z-index: 2;
  display: flex; gap: 10px; align-items: center;
  padding: 0 0 26px; color: #fff;
}
body.glass-home .glass-carousel-ctl button.glass-ctl-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 16px; cursor: pointer;
}
body.glass-home .glass-dots { display: flex; gap: 6px; margin: 0 6px; }
body.glass-home .glass-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer;
}
body.glass-home .glass-dots button[aria-current="true"] { width: 26px; border-radius: 8px; background: #fff; }
body.glass-home .glass-cap { margin-left: auto; font-weight: 600; font-size: 15px; text-align: right; }
@media (prefers-reduced-motion: reduce) {
  body.glass-home .hero-slider .slide { transition: none; animation: none; }
  body.glass-home .glass-track { transition: none; }
}

/* Sections: design file's generous top padding, condensed uppercase titles. */
body.glass-home .tp-section { padding: 84px 0 0; }
body.glass-home .tp-title { font-family: var(--glass-display); font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
body.glass-home .tp-section-head { margin-bottom: 26px; }

/* Fixture day tabs + glass fixture rows (design file's .tabs / .m). */
body.glass-home .glass-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
body.glass-home .glass-tabs button {
  font-weight: 500; font-size: 15px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--glass-line); background: var(--glass-chip); color: var(--glass-ink); cursor: pointer;
}
body.glass-home .glass-tabs button[aria-pressed="true"] { background: var(--glass-gold); border-color: var(--glass-gold); color: #1b1500; }
body.glass-home .glass-fixture {
  display: grid; grid-template-columns: 120px 1fr auto 1fr; align-items: center; gap: 16px;
  border-radius: 16px; padding: 16px 20px; margin-bottom: 10px;
}
body.glass-home .glass-fixture time { font-size: 14px; color: var(--glass-mute); line-height: 1.3; }
body.glass-home .glass-fixture time b { display: block; color: var(--glass-ink); font-size: 16px; }
body.glass-home .glass-fixture .t { font-weight: 600; }
/* Winner team: gold name. Loser team: grayed out. Only on completed
   matches with a winner (boardWin/boardHasWinner); scheduled/live
   matches keep the plain .t style. */
body.glass-home .glass-fixture .t.win { color: var(--glass-gold-2); font-weight: 800; }
body.glass-home .glass-fixture .t.loser { color: var(--glass-mute); opacity: 0.65; }
body.glass-home .glass-fixture .t:last-of-type { text-align: right; }
body.glass-home .glass-fixture .vs { font-family: var(--glass-display); font-weight: 800; font-size: 13px; color: var(--glass-gold-2); }
body.glass-home .glass-fixture[hidden] { display: none; }

/* Bracket heading: the board itself is the admin preview (see above). */
body.glass-home .event-bracket-block > h3 { font-family: var(--glass-display); }

/* Squad: design file's .pc player cards exactly — circular initials avatar,
   name, role line, 3-stat grid (Age / Height / Foot). No old squad-card
   design remains on the homescreen; jersey/extra details live in the
   player detail modal, as before. */
body.glass-home #squad-grid, body.glass-home #staff-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px;
}
body.glass-home .pc {
  background: linear-gradient(140deg, var(--glass-g1), var(--glass-g2) 55%, var(--glass-g3));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-hi2), 0 14px 44px var(--glass-shadow);
  border-radius: 22px; padding: 22px 16px 16px; text-align: center; color: var(--glass-ink);
}
body.glass-home .pc .av {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #5b54f0, #3730a3);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  font-family: var(--glass-display); font-weight: 800; font-size: 20px; color: #fff;
}
body.glass-home .pc h3 { font-size: 19px; }
body.glass-home .pc .r { color: var(--glass-mute); font-size: 14px; margin: 2px 0 14px; }
body.glass-home .pc .st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
body.glass-home .pc .st div { background: var(--glass-chip); border-radius: 12px; padding: 8px 4px; }
/* Squad cards only (staff cards keep their old shape): passport-style
   vertical portrait — taller than wide — with the Age/Height/Foot
   boxes flattened to plain text, no pill backgrounds. */
body.glass-home #squad-grid .pc {
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column;
}
body.glass-home #squad-grid .pc .st { margin-top: auto; }
body.glass-home #squad-grid .pc .st div { background: none; border-radius: 0; padding: 8px 2px; }
body.glass-home .pc .st b { display: block; font-size: 16px; }

/* Player photo cards (homepage squad only; staff cards keep the old
   shape): full-bleed photo, big faded jersey number, name + position
   at the bottom — hovering (or keyboard focus) reveals the stats
   strip underneath, like a player-profile card. On touch devices
   there is no hover, so tapping still opens the detail modal. */
body.glass-home #squad-grid .pc.player-photo-card {
  position: relative; padding: 0; overflow: hidden; text-align: center;
  background: #0b1020; color: #fff;
}
body.glass-home #squad-grid .pc.player-photo-card .pc-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; z-index: 0;
}
body.glass-home #squad-grid .pc.player-photo-card .pc-fallback {
  display: grid; place-items: center;
  background: linear-gradient(160deg, #1e2a5a, #0b1020);
  font-family: var(--glass-display); font-weight: 800; font-size: 72px; color: rgba(255,255,255,.85);
}
body.glass-home #squad-grid .pc.player-photo-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 38%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.88) 100%);
  pointer-events: none;
}
body.glass-home #squad-grid .pc.player-photo-card .pc-num {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 2;
  font-family: var(--glass-display); font-weight: 800; line-height: 1;
  font-size: 110px; color: rgba(170,175,190,.18);
  pointer-events: none;
  /* Jersey number, 2026-11-04 (user): hidden by default, only on
     hover/focus, as faded grey low-opacity text. Layering is
     deliberate: photo (z 0) < gradient (z 1) < number (z 2) <
     name/info (z 3) — so the number sits above the profile image
     but BEHIND the name, never blocking it. (An earlier z-index 4
     put it above the name instead, which is what blocked it.)
     On touch devices there is no hover, so a finger touching or
     dragging over the card reveals it instead (2026-11-05, user:
     hidden by default, only shown while the finger is on the
     card) — see :active / .touch-hover below. Tapping still opens
     the detail modal. */
  opacity: 0; transition: opacity .3s ease;
}
/* Name + position + extra line on photo cards must stay white
   (2026-11-04, user): amsal-design forces .pc h3/.pc p to dark
   ink in light mode with !important, which turned the name dark
   over the photo. The #squad-grid id in these selectors outranks
   those rules, so white wins in both modes. */
body.glass-home #squad-grid .pc.player-photo-card h3 { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body.glass-home #squad-grid .pc.player-photo-card .r { color: rgba(255,255,255,.85) !important; }
body.glass-home #squad-grid .pc.player-photo-card .pc-extra { color: rgba(255,255,255,.8) !important; }
body.glass-home #squad-grid .pc.player-photo-card:hover .pc-num,
body.glass-home #squad-grid .pc.player-photo-card:focus-within .pc-num,
body.glass-home #squad-grid .pc.player-photo-card:active .pc-num,
body.glass-home #squad-grid .pc.player-photo-card.touch-hover .pc-num {
  opacity: 1;
}
/* :active covers a finger pressed on one card; .touch-hover is set
   by JS while a finger drags across the squad grid, so the number
   follows the finger from card to card and hides again on lift. */
/* Phones: the same 110px number covers far more of a narrow card,
   so shrink it there too (2026-11-04, user: less visible on phone). */
@media (max-width:640px){
  body.glass-home #squad-grid .pc.player-photo-card .pc-num { font-size: 84px; }
}
body.glass-home #squad-grid .pc.player-photo-card .pc-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 18px 14px 16px; transition: transform .3s ease;
}
body.glass-home #squad-grid .pc.player-photo-card h3 {
  font-family: var(--glass-display); text-transform: uppercase; letter-spacing: .5px;
  font-size: 24px; line-height: 1.1; color: #fff; margin: 0;
}
body.glass-home #squad-grid .pc.player-photo-card .r {
  color: rgba(255,255,255,.85); font-size: 13px; margin: 4px 0 0;
}
body.glass-home #squad-grid .pc.player-photo-card .st {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  border-top: 1px solid rgba(255,255,255,.28); margin: 12px 0 0; padding: 12px 0 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(8px); transition: max-height .35s ease, opacity .3s ease, transform .3s ease;
}
body.glass-home #squad-grid .pc.player-photo-card:hover .st,
body.glass-home #squad-grid .pc.player-photo-card:focus-within .st {
  max-height: 120px; opacity: 1; transform: translateY(0);
}
body.glass-home #squad-grid .pc.player-photo-card:hover .pc-info,
body.glass-home #squad-grid .pc.player-photo-card:focus-within .pc-info {
  transform: translateY(-2px);
}
body.glass-home #squad-grid .pc.player-photo-card .st div { background: none; border-radius: 0; padding: 0 2px; }
body.glass-home #squad-grid .pc.player-photo-card .st b { display: block; font-size: 20px; color: #fff; }
body.glass-home #squad-grid .pc.player-photo-card .st span {
  display: block; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 2px;
}
body.glass-home #squad-grid .pc.player-photo-card .pc-extra {
  font-size: 12px; color: rgba(255,255,255,.8); margin: 10px 0 0;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease;
}
body.glass-home #squad-grid .pc.player-photo-card:hover .pc-extra,
body.glass-home #squad-grid .pc.player-photo-card:focus-within .pc-extra {
  max-height: 40px; opacity: 1;
}
body.glass-home #squad-grid .pc.player-photo-card:focus-visible { outline: 2px solid var(--glass-gold); outline-offset: 2px; }

body.glass-home .pc .st span { font-size: 12px; color: var(--glass-mute); }
body.glass-home .tp-filter-btn {
  border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--glass-chip); color: var(--glass-ink);
}
body.glass-home .tp-filter-btn.active { background: var(--glass-gold); border-color: var(--glass-gold); color: #1b1500; }

/* Ground: glass facts grid, rounded image. */
body.glass-home #ground-display-image { border-radius: 22px; }
body.glass-home .ground-card { border-radius: 18px; padding: 20px; }
body.glass-home .ground-card h3 { font-family: var(--glass-display); }

/* Donate: glass panel, Facebook button + coming-soon note (never a fake QR). */
body.glass-home .tp-tickets-grid .glass-qr-note { color: var(--glass-mute); font-size: 15px; margin-top: 12px; }

/* Footer on the glass background. */
body.glass-home .footer { border-top: 1px solid var(--glass-line); color: var(--glass-mute); }

@media (max-width: 860px) {
  /* NOTE: the squad grid is NOT forced to 1 column here any more (see the
     responsive grid below) — a single full-width column on phones is what
     made the players listing look tall and ugly. */
  body.glass-home .tp-hero-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 0 12px; flex: none; }
  body.glass-home .tp-hero { padding: 12px 0 0 !important; min-height: 0 !important; }
  body.glass-home .tp-hero-title { font-size: 36px !important; }
  body.glass-home .glass-carousel-ctl { padding-bottom: 12px; }
  body.glass-home .hero-match-deck { width: 100%; }
  body.glass-home .glass-fixture { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  body.glass-home .glass-fixture time { grid-column: 1 / -1; }
  body.glass-home .tp-section { padding: 56px 0 0; }
}

/* =====================================================================
   Fix: dark/light text visibility, hero clipping, responsive grids,
   theme-switcher hover tilt — 2026-11-03, user phone screenshots.
   This is the last stylesheet loaded on the homepage, so these rules
   override the older layers (style.css sets .ground-card text to white
   unconditionally, and club-design.css sets a white nav span on a white
   drawer) without editing the shared layers' logic.
   ===================================================================== */

/* 1. Theme switcher: NEVER tilt/rotate/scale/shift on hover, any page
   state. Colour/background change only. */
body.glass-home .theme-toggle-btn,
body.glass-home .theme-toggle-btn:hover,
body.glass-home .theme-toggle-btn:focus-visible {
  transform: none !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease !important;
}

/* 2. Ground facts: white-on-white bug. style.css forces .ground-card h3
   to rgba(255,255,255,.5) !important and p to white !important, while
   club-design forces a light card background in light mode — so in light
   mode the values were invisible. Force the glass tokens instead, in
   both modes, with the glass gradient background (not the flat surface). */
body.glass-home .ground-card {
  background: linear-gradient(140deg, var(--glass-g1), var(--glass-g2) 55%, var(--glass-g3)) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--glass-ink) !important;
}
body.glass-home .ground-card h3 { color: var(--glass-ink) !important; }
body.glass-home .ground-card p { color: var(--glass-mute) !important; }
body.glass-home .ground-card .ground-icon {
  background: var(--glass-chip) !important;
  color: var(--glass-gold-2) !important;
}
/* Ground grid: 2 columns on phones, not 1 tall column, 3 on tablets. */
body.glass-home .ground-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* 3. Hero next-match foot: the long "Round 1 · date · venue" line + time
   were clipped at the card edges on phones because .tp-featured-foot
   is a non-wrapping space-between flex row. Let it wrap, let the first
   span shrink and wrap, keep the time on one line and never clipped. */
body.glass-home .hero-match-deck .tp-featured,
body.glass-home .hero-match-deck .glass-card { min-width: 0; overflow-wrap: anywhere; }
body.glass-home .hero-match-deck .tp-featured-inner { min-width: 0; }
body.glass-home .hero-match-deck .tp-featured-foot {
  flex-wrap: wrap; gap: 4px 12px; align-items: flex-start;
}
body.glass-home .hero-match-deck .tp-featured-foot span:first-child {
  flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; line-height: 1.45;
}
body.glass-home .hero-match-deck .tp-featured-foot span:last-child {
  flex-shrink: 0; white-space: nowrap;
}
body.glass-home .hero-match-deck .tp-matchup { min-width: 0; }
body.glass-home .hero-match-deck .tp-team { min-width: 0; }
body.glass-home .hero-match-deck .tp-team span { overflow-wrap: anywhere; }

/* 4. Nav links: the old glass rule made nav spans white, which is
   invisible on the white top bar and on the white mobile drawer in
   light mode. Top bar is white in both modes, so spans are dark there;
   the mobile drawer follows the theme (glass ink), so spans follow it. */
body.glass-home .navbar .nav-links a span { color: #14281e !important; }
@media (max-width: 900px) {
  body.glass-home .nav-links a,
  body.glass-home .nav-links a span { color: var(--glass-ink) !important; }
}

/* 5. Global text-visibility guard for glass cards in both modes:
   headings/values follow glass ink, secondary text follows glass mute,
   so no white-on-white and no dark-on-dark on any glass card, in light
   or dark, manual toggle or OS setting. Hero deck cards keep their own
   light-on-dark scope (set above in this file) and are excluded by the
   more specific hero rules that precede this block in the cascade —
   these rules intentionally do NOT touch .hero-match-deck. */
body.glass-home .tp-news-card h3,
body.glass-home .match-card h3,
body.glass-home .modal-content h3 { color: var(--glass-ink) !important; }
body.glass-home .tp-news-card p,
body.glass-home .match-card p,
body.glass-home .modal-content p { color: var(--glass-mute) !important; }
body.glass-home .footer a { color: var(--glass-ink) !important; }

/* 6. Squad/staff grid: truly responsive columns, compact cards.
   Old behaviour was non-monotonic (2 cols at 360, 1 col at 768, 4 at
   1024, 5 at 1440) because a max-width:860 rule forced 1 column.
   Now: 2 cols on small phones, 3 on tablets, 4 on laptops, 5 on wide
   desktops — never a single full-width column except below 320px. */
body.glass-home #squad-grid, body.glass-home #staff-grid {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px) {
  body.glass-home #squad-grid, body.glass-home #staff-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  body.glass-home #squad-grid, body.glass-home #staff-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
  body.glass-home #squad-grid, body.glass-home #staff-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  body.glass-home .pc { padding: 16px 10px 12px; }
  body.glass-home .pc .av { width: 56px; height: 56px; font-size: 16px; margin-bottom: 8px; }
  body.glass-home .pc h3 { font-size: 15px; overflow-wrap: anywhere; }
  body.glass-home .pc .r { font-size: 12px; margin: 2px 0 10px; }
  body.glass-home .pc .st { gap: 4px; }
  body.glass-home .pc .st div { padding: 6px 2px; }
  body.glass-home .pc .st b { font-size: 14px; }
  body.glass-home .pc .st span { font-size: 11px; }
  body.glass-home .ground-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  body.glass-home .ground-card { padding: 16px 12px; }
  body.glass-home .ground-card h3 { font-size: 15px; overflow-wrap: anywhere; }
  body.glass-home .ground-card p { font-size: 14px; overflow-wrap: anywhere; }
}
@media (max-width: 320px) {
  body.glass-home #squad-grid, body.glass-home #staff-grid { grid-template-columns: 1fr; }
  body.glass-home .ground-grid { grid-template-columns: 1fr; }
}

/* 7. No horizontal overflow anywhere on the homepage, at any width. */
body.glass-home, body.glass-home .tp-container { overflow-x: clip; }
body.glass-home .tp-section, body.glass-home .tp-hero-grid,
body.glass-home .hero-match-deck, body.glass-home .glass-fixture { min-width: 0; }

/* Hero match card visibility + carousel controls hidden (2026-11-03). */
body.glass-home .hero-match-deck .hero-cup-card.tp-featured,
body.glass-home .hero-match-deck .hero-club-card.tp-featured{
  background:linear-gradient(135deg, rgba(8,20,13,.92) 0%, rgba(8,20,13,.88) 100%) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:0 20px 45px rgba(0,0,0,.45) !important;
}
body.glass-home .hero-match-deck .tp-featured-label,
body.glass-home .hero-match-deck .tp-featured-label-cup{color:#f2c230 !important}
body.glass-home .hero-match-deck .tp-team span{color:#ffffff !important;text-shadow:0 2px 8px rgba(0,0,0,.6)}
body.glass-home .hero-match-deck .tp-featured-foot span{color:#eef4ee !important}
body.glass-home .hero-match-deck .tp-featured-foot span:last-child{color:#cdd9d0 !important}
body.glass-home .hero-match-deck .tp-vs{color:#f2c230 !important}
body.glass-home .glass-carousel-ctl button.glass-ctl-btn,
body.glass-home .glass-carousel-ctl .glass-cap{display:none !important}
