/* ===================================================================
   HKPL SHELL — "desktop-pro"  [CSS]  (v3 — editorial MAGAZINE home)

   Approved mockup = scratchpad/desktop_mockup2.png. A full editorial
   homepage: sticky white top-nav → dark-green live-scores strip →
   cinematic photo hero (+ floating scorebug) → featured-announcement
   band → magazine grid (Matches / Highlights / Top Players + a
   Standings / Club-Leaderboard sidebar) → full-width "League by the
   Numbers" demographics band → sponsors footer.

   EVERYTHING is scoped to html[data-shell="desktop-pro"] and the .hkplc-*
   component classes, so light mode + every other shell + the standard
   site stay 100% untouched. The brand is var(--brand) (never hardcoded);
   colours fall back to hex only inside var().
   =================================================================== */

/* SHARED premium-home components (tokens + .hkplc-* builders), reused by the
   desktop HOME via window.HKPLC.*. @import must come first. */
/* shell-components.css injected as a versioned <link> by _injShell (cache-bustable) */

/* ---- local shell tokens ---- */
html[data-shell="desktop-pro"] {
  --dp-nav-h: 66px;
  --dp-bg: #f1f4f3;
  --dp-card: #fff;
  --dp-ink: #0f1613;
  --dp-sec: #7c847f;
  --dp-sep: #eceeed;
  --dp-lime: var(--lime, #c6f24a);
  --dp-brand-d: #053d24;
  --dp-red: #ff3b30;
  --dp-purple: #8a6cf0;
  --dp-gold: #e0a11c;
}

/* ---- 1. Kill the standard site chrome (header / footer / old sidebar) ---- */
html[data-shell="desktop-pro"] #site-header,
html[data-shell="desktop-pro"] #hkpl-sh,
html[data-shell="desktop-pro"] #hkpl-sf,
html[data-shell="desktop-pro"] #dp-sidebar { display: none !important; }

/* ---- 2. Hide leaked web clutter (tickers, tab bar, chat / bug FABs, nudges) ---- */
html[data-shell="desktop-pro"] #live-ticker-bar,
html[data-shell="desktop-pro"] #live-ticker2,
html[data-shell="desktop-pro"] #hkpl-tabbar,
html[data-shell="desktop-pro"] .shell-tools-btn,
html[data-shell="desktop-pro"] #pw-nudge,
html[data-shell="desktop-pro"] #qa-switch-bar,
html[data-shell="desktop-pro"] #hkpl-chat-fab,
html[data-shell="desktop-pro"] .hkpl-chat-fab,
html[data-shell="desktop-pro"] .hkpl-bug-fab { display: none !important; }
html[data-shell="desktop-pro"].dp-home-active #hkpl-basic-landing { display: none !important; }

/* ---- 3. Document reset: reserve the fixed nav, paint the ground ---- */
html[data-shell="desktop-pro"] body {
  padding-left: 0 !important;
  padding-top: var(--dp-nav-h) !important;
  background: var(--dp-bg) !important;
  min-height: 100vh;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif);
}
html[data-shell="desktop-pro"].dp-home-active main { padding: 0 !important; margin: 0 !important; background: transparent !important; }
/* interior (non-home) desktop pages: keep native content readable + centred */
html[data-shell="desktop-pro"]:not(.dp-home-active) main { max-width: 1180px; margin-inline: auto; padding: 24px; }

/* =========================== TOP NAV =========================== */
html[data-shell="desktop-pro"] #dp-topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--dp-nav-h);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: .5px solid var(--dp-sep);
}
/* NAV-DARK-V1 (2026-09-09, shell UAT): the desktop top-nav stayed white in dark mode — the one bright bar
   on an otherwise-dark page. Theme it dark for a coherent dark mode (it was readable either way; this is a
   consistency fix, not a visibility bug). Brand accent (.on / lime) preserved. */
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav { background: rgba(18, 26, 22, .92); border-bottom-color: rgba(255, 255, 255, .09); }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-brand,
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-links a { color: #e7efe9; }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-links a.on { color: var(--dp-lime, #c6f24a); }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-nav-search { background: rgba(255, 255, 255, .08); color: #aab4ae; }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-nav-login,
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-acct-btn,
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-acct-nm { color: #e7efe9; }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-acct-btn { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-acct-btn:hover,
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-nav-acct.open .dp-acct-btn { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.1); }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-acct-menu { background: #16201b; border-color: rgba(255,255,255,.1); }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-topnav .dp-acct-item { color: #e7efe9; }
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-in {
  max-width: 1240px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 26px; padding: 0 24px;
}
html[data-shell="desktop-pro"] #dp-topnav .dp-brand { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 19px; color: var(--dp-ink); text-decoration: none; }
html[data-shell="desktop-pro"] #dp-topnav .dp-brand-logo { height: 30px; }
html[data-shell="desktop-pro"] #dp-topnav .dp-links { display: flex; gap: 22px; margin-left: 6px; }
html[data-shell="desktop-pro"] #dp-topnav .dp-links a { text-decoration: none; color: var(--dp-ink); font-weight: 600; font-size: 14.5px; opacity: .8; }
html[data-shell="desktop-pro"] #dp-topnav .dp-links a.on { color: var(--brand, #0aa065); opacity: 1; font-weight: 800; }
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-search {
  /* A6-CONTRAST-V1 (2026-09-09): placeholder was #9aa09d on #eef1f0 = 2.34:1 (fails WCAG AA).
     Darkened to #5f6560 = ~5.2:1 on this pill so the search text/icon clears 4.5:1. */
  display: flex; align-items: center; gap: 8px; background: #eef1f0; border-radius: 999px; height: 36px; width: 200px;
  padding: 0 13px; color: #5f6560; font-size: 13.5px; text-decoration: none;
}
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-search svg { flex: 0 0 auto; }
/* NAV-SEARCH-NOWRAP-V1 (2026-09-09, shell UAT): the 200px search pill wrapped its placeholder onto two
   lines ("Search teams, / players…"). Keep it a single clipped line. */
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-search span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-login {
  background: var(--brand, #0aa065); color: #fff; font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: 10px; text-decoration: none;
}

/* ACCOUNT CONTROL (AUTH-WIRE-V1, 2026-09-09) — replaces the Sign-in CTA when the
   viewer is authenticated (name button that opens Edit Profile / Sign Out menu). */
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-acct { position: relative; }
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-btn {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px;
  background: #eef1f0; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  color: var(--dp-ink, #14201a); font-weight: 700; font-size: 13.5px; font-family: inherit; line-height: 1;
}
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-btn:hover,
html[data-shell="desktop-pro"] #dp-topnav .dp-nav-acct.open .dp-acct-btn { border-color: #d5dbd8; background: #e6eae8; }
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-av {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 999px; background: var(--brand, #0aa065);
  color: #fff; font-weight: 800; font-size: 12px;
}
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-nm { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-cv { display: flex; color: #5f6560; }
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 180px; background: #fff; border: 1px solid #e2e7e4; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20, 32, 26, .16); padding: 6px; display: flex; flex-direction: column;
}
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-item {
  display: block; width: 100%; text-align: left; box-sizing: border-box;
  padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: var(--dp-ink, #14201a); font-weight: 600; font-size: 14px; font-family: inherit; text-decoration: none;
}
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-item:hover { background: #eef1f0; }
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-out { color: #b4302a; }
html[data-shell="desktop-pro"] #dp-topnav .dp-acct-out:hover { background: #fbeceb; }

/* ===================== LIVE-SCORES STRIP ====================== */
/* first child of #dp-home, pulled full-bleed to sit edge-to-edge right under
   the fixed nav (escapes #dp-home's max-width + padding). */
html[data-shell="desktop-pro"] #dp-lstrip {
  background: var(--dp-brand-d); color: #fff;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
html[data-shell="desktop-pro"] #dp-lstrip .dp-ls-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
/* re-skin the shared HKPLC.ticker to a slim full-width bar */
html[data-shell="desktop-pro"] #dp-lstrip .hkplc-ticker {
  background: transparent; border: 0; box-shadow: none; border-radius: 0; margin: 0; padding: 9px 0;
  display: flex; align-items: center; gap: 16px; overflow: hidden;
}
html[data-shell="desktop-pro"] #dp-lstrip .hkplc-ticker .lbl {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 900; color: var(--dp-lime); flex: 0 0 auto; text-transform: uppercase;
}
html[data-shell="desktop-pro"] #dp-lstrip .hkplc-ticker .lbl .p { background: var(--dp-red); }
html[data-shell="desktop-pro"] #dp-lstrip .hkplc-ticker .strip { display: flex; gap: 22px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
html[data-shell="desktop-pro"] #dp-lstrip .hkplc-ticker .strip span { color: #fff; }
html[data-shell="desktop-pro"] #dp-lstrip .hkplc-ticker .strip b { font-weight: 900; }
html[data-shell="desktop-pro"] #dp-lstrip .hkplc-ticker .strip .fin { color: #9fd8bf; }

/* ======================= HOME CONTAINER ======================= */
/* padding-top:0 so the full-bleed live strip sits flush under the nav; the hero
   carries its own top margin below the strip. */
html[data-shell="desktop-pro"] #dp-home { max-width: 1240px; margin: 0 auto; padding: 0 24px 24px; color: var(--dp-ink); }

/* ============================ HERO ============================ */
html[data-shell="desktop-pro"] #dp-home .dp-hero {
  position: relative; margin-top: 22px; border-radius: 22px; overflow: hidden; min-height: 300px; color: #fff; display: flex; align-items: stretch;
  box-shadow: 0 22px 46px -20px rgba(4, 45, 27, .45);
}
html[data-shell="desktop-pro"] #dp-home .dp-hero-bg {
  position: absolute; inset: 0; background-image: url('/cdn/gcs/images/home_banner.jpg'); background-size: cover; background-position: center 28%; background-color: #0e5a3a;
}
html[data-shell="desktop-pro"] #dp-home .dp-hero-ov {
  position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4, 45, 27, .92) 0%, rgba(5, 61, 36, .5) 46%, rgba(4, 40, 24, .2) 100%);
}
html[data-shell="desktop-pro"] #dp-home .dp-hero-left { position: relative; padding: 38px 42px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-lp {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; background: rgba(255, 59, 48, .94); padding: 5px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 800; margin-bottom: 14px;
}
html[data-shell="desktop-pro"] #dp-home .dp-hero-lp .p { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: hkc-pulse 1.2s infinite; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-eyebrow { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .12em; opacity: .85; margin-bottom: 14px; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-h1 { font-size: 52px; font-weight: 900; letter-spacing: -.04em; line-height: .92; text-shadow: 0 3px 24px rgba(0, 0, 0, .4); margin: 0; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-h1 em { font-style: normal; color: var(--dp-lime); }
html[data-shell="desktop-pro"] #dp-home .dp-hero-kpis { display: flex; gap: 28px; margin-top: 20px; font-size: 13.5px; font-weight: 700; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-kpis span { display: flex; flex-direction: column; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-kpis b { font-size: 25px; font-weight: 900; display: block; }

/* featured scorebug inside the hero — reuse HKPLC.scorebug, restyle to dark glass */
html[data-shell="desktop-pro"] #dp-home .dp-hero-card { position: relative; align-self: center; margin: 22px; width: 360px; flex: 0 0 auto; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-card.hkplc-hidden { display: none; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-card .hkplc-live {
  margin: 0; width: 100%; padding: 18px; border-radius: 18px;
  background: rgba(14, 24, 20, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: .5px solid rgba(255, 255, 255, .16); box-shadow: none; color: #fff;
}
html[data-shell="desktop-pro"] #dp-home .dp-hero-card .hkplc-live .lh .meta { color: #cdd8d3; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-card .hkplc-live .tm b { color: #fff; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-card .hkplc-live .score .n { color: #fff; }
html[data-shell="desktop-pro"] #dp-home .dp-hero-card .hkplc-live .sets span { background: rgba(255, 255, 255, .16); color: #d6e2dc; }

/* ==================== FEATURED ANNOUNCEMENT =================== */
html[data-shell="desktop-pro"] #dp-home .dp-feat {
  position: relative; margin-top: 20px; border-radius: 18px; overflow: hidden; min-height: 120px;
  display: flex; align-items: center; color: #fff; background: linear-gradient(110deg, var(--brand, #0aa065), var(--dp-brand-d));
}
/* the shared announceBanner sits transparent inside the band */
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce {
  position: relative; flex: 1; background: transparent; border: 0; box-shadow: none; border-radius: 0; margin: 0;
  padding: 22px 30px; display: flex; align-items: center; gap: 18px; color: #fff; text-decoration: none;
}
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce .acov { width: 78px; height: 78px; border-radius: 14px; background-size: cover; background-position: center; flex: 0 0 auto; }
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce .ai { font-size: 34px; flex: 0 0 auto; }
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce .atx { display: flex; flex-direction: column; gap: 4px; }
/* APILL-FLEX-FIX-V1 (2026-09-09, shell UAT): .atx is a flex column, so the base .hkplc .apill
   (display:inline-block; background:rgba(255,255,255,.5)) stretched to full column width = a grey bar.
   Reset background/padding + align-self:flex-start so the eyebrow label sits inline, no bar. */
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce .apill { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; opacity: .9; color: var(--dp-lime); background: transparent; padding: 0; align-self: flex-start; }
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce b { font-size: 26px; font-weight: 900; line-height: 1.05; }
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce small { color: rgba(255,255,255,.92); opacity: .9; font-size: 14px; }
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce .ago { display: none; }
html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-cta {
  position: relative; margin: 0 30px; background: var(--dp-lime); color: var(--dp-brand-d); font-weight: 800; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; white-space: nowrap; text-decoration: none; flex: 0 0 auto; align-self: center;
}

/* ==================== DIVISION SWITCHER (parity) ==================== */
/* Reuses the shared .hkplc-stories scroller + .hkplc-divchip pills. Flush to the
   #dp-home gutter, wraps to show every active-season division on wide desktop. */
html[data-shell="desktop-pro"] #dp-home .dp-divstrip { margin-top: 20px; }
html[data-shell="desktop-pro"] #dp-home .dp-divstrip .hkplc-stories { padding: 2px 0; gap: 10px; flex-wrap: wrap; overflow: visible; }
@media (max-width: 820px) {
  html[data-shell="desktop-pro"] #dp-home .dp-divstrip .hkplc-stories { flex-wrap: nowrap; overflow-x: auto; }
}

/* ======================= MAGAZINE GRID ======================= */
html[data-shell="desktop-pro"] #dp-home .dp-grid { display: grid; grid-template-columns: 1fr 350px; gap: 26px; margin-top: 26px; align-items: start; }
html[data-shell="desktop-pro"] #dp-home .dp-block { margin-bottom: 22px; }
html[data-shell="desktop-pro"] #dp-home .dp-sh { display: flex; align-items: center; justify-content: space-between; margin: 12px 2px 15px; }
html[data-shell="desktop-pro"] #dp-home .dp-block:first-child .dp-sh { margin-top: 0; }
html[data-shell="desktop-pro"] #dp-home .dp-sh h2 { font-size: 25px; font-weight: 900; letter-spacing: -.02em; margin: 0; }
html[data-shell="desktop-pro"] #dp-home .dp-sh a { font-size: 14px; color: var(--brand, #0aa065); font-weight: 700; text-decoration: none; }

/* Matches (2×2) */
html[data-shell="desktop-pro"] #dp-home .dp-matches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
html[data-shell="desktop-pro"] #dp-home .dp-mcard { background: var(--dp-card); border-radius: 14px; padding: 15px 17px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); text-decoration: none; color: var(--dp-ink); display: block; }
html[data-shell="desktop-pro"] #dp-home .dp-mt { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dp-sec); font-weight: 700; margin-bottom: 11px; }
html[data-shell="desktop-pro"] #dp-home .dp-mt .lv { color: var(--dp-red); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
html[data-shell="desktop-pro"] #dp-home .dp-mt .lv .p { width: 6px; height: 6px; border-radius: 50%; background: var(--dp-red); animation: hkc-pulse 1.2s infinite; }
html[data-shell="desktop-pro"] #dp-home .dp-team { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-weight: 700; font-size: 15px; }
html[data-shell="desktop-pro"] #dp-home .dp-tlg { width: 27px; height: 27px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 11px; flex: 0 0 auto; overflow: hidden; }
html[data-shell="desktop-pro"] #dp-home .dp-tlg img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
html[data-shell="desktop-pro"] #dp-home .dp-tnm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-shell="desktop-pro"] #dp-home .dp-tsc { margin-left: auto; font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums; }

/* Highlights reel (shared HKPLC.mediaReel) — a row of 3 cards */
html[data-shell="desktop-pro"] #dp-home .dp-hl-block .hkplc-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; overflow: visible; }
html[data-shell="desktop-pro"] #dp-home .dp-hl-block .hkplc-media .hkplc-mcard { width: auto; max-width: none; height: 160px; border-radius: 14px; }

/* Top Players (shared HKPLC.topPlayers) restyled to 3-across cards */
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-topplayers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow { background: var(--dp-card); border-radius: 14px; padding: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); display: flex; align-items: center; gap: 13px; border: 0; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .rk { display: none; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .av { width: 52px; height: 52px; border-radius: 50%; font-size: 19px; flex: 0 0 auto; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .nx { flex: 1; min-width: 0; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .nx b { font-size: 16px; font-weight: 800; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .nx small { color: var(--dp-sec); font-size: 12.5px; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .rt { margin-left: auto; text-align: right; }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .rt b { font-size: 20px; font-weight: 900; color: var(--brand, #0aa065); }
html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-tprow .rt small { display: block; color: var(--dp-sec); font-size: 11px; }

/* ======================= SIDEBAR CARDS ======================= */
html[data-shell="desktop-pro"] #dp-home .dp-scard { background: var(--dp-card); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); margin-bottom: 20px; }
html[data-shell="desktop-pro"] #dp-home .dp-ch { padding: 15px 18px 10px; display: flex; justify-content: space-between; align-items: center; }
html[data-shell="desktop-pro"] #dp-home .dp-ch b { font-size: 17px; font-weight: 900; }
html[data-shell="desktop-pro"] #dp-home .dp-ch a { font-size: 13px; color: var(--dp-sec); text-decoration: none; }
/* shared list components sit flush inside the card */
html[data-shell="desktop-pro"] #dp-home .dp-scard .hkplc-standings,
html[data-shell="desktop-pro"] #dp-home .dp-scard .hkplc-clubs { box-shadow: none; border-radius: 0; background: transparent; }
html[data-shell="desktop-pro"] #dp-home .dp-scard .hkplc-srow,
html[data-shell="desktop-pro"] #dp-home .dp-scard .hkplc-crow { padding: 11px 18px; border-top: .5px solid var(--dp-sep); }

/* ================= LEAGUE BY THE NUMBERS band ================ */
html[data-shell="desktop-pro"] #dp-home .dp-numbers {
  margin-top: 34px; background: linear-gradient(120deg, #0f1613, #123a2a); border-radius: 22px; padding: 30px 34px; color: #fff; position: relative; overflow: hidden;
}
html[data-shell="desktop-pro"] #dp-home .dp-numbers::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 242, 74, .18), transparent 60%);
}
html[data-shell="desktop-pro"] #dp-home .dp-numbers-head { position: relative; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers-head h2 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 0; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers-sub { opacity: .7; font-size: 13.5px; margin-top: 3px; }
/* lay the shared demographics component out as a 3-column band */
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo {
  position: relative; display: grid; grid-template-columns: auto 1fr 1.3fr; column-gap: 44px; row-gap: 8px; align-items: center;
  margin-top: 22px; background: transparent; box-shadow: none; padding: 0; color: #fff;
}
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-total { grid-column: 1; grid-row: 1 / 3; text-align: left; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-total b { font-size: 52px; font-weight: 900; letter-spacing: -.03em; display: block; color: #fff; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-total span { font-size: 13px; opacity: .7; font-weight: 600; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-gender { grid-column: 2; grid-row: 1 / 3; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-gbar { height: 14px; border-radius: 999px; overflow: hidden; display: flex; margin-bottom: 10px; background: rgba(255, 255, 255, .12); }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-gbar .m { background: var(--brand, #0aa065); }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-gbar .f { background: var(--dp-purple); }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-glegend { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; opacity: .88; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-glegend i { display: none; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-alabel { grid-column: 3; grid-row: 1; align-self: end; font-size: 11px; font-weight: 800; letter-spacing: .08em; opacity: .6; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-ages { grid-column: 3; grid-row: 2; display: flex; align-items: flex-end; gap: 8px; height: 76px; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-acol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-atrack { width: 100%; height: 100%; display: flex; align-items: flex-end; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-atrack > span { width: 100%; background: linear-gradient(180deg, var(--dp-lime), var(--brand, #0aa065)); border-radius: 4px 4px 0 0; position: relative; min-height: 6px; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-aval { display: none; }
html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-acol small { font-size: 10px; opacity: .7; }

/* ========================== FOOTER =========================== */
html[data-shell="desktop-pro"] #dp-home .dp-footer { margin: 30px 0 50px; text-align: center; color: var(--dp-sec); font-size: 13px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
html[data-shell="desktop-pro"] #dp-home .dp-footer .dp-foot-lbl { font-weight: 800; letter-spacing: .06em; }
html[data-shell="desktop-pro"] #dp-home .dp-footer .dp-foot-sp { position: relative; }
html[data-shell="desktop-pro"] #dp-home .dp-footer .dp-foot-sp::before { content: "·"; position: absolute; left: -11px; opacity: .6; }

/* ========================= RESPONSIVE ======================== */
@media (max-width: 1040px) {
  html[data-shell="desktop-pro"] #dp-home .dp-grid { grid-template-columns: 1fr; }
  html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo { grid-template-columns: 1fr; }
  html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-total,
  html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-gender,
  html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-alabel,
  html[data-shell="desktop-pro"] #dp-home .dp-numbers .hkplc-demo .dm-ages { grid-column: 1; grid-row: auto; }
}
@media (max-width: 820px) {
  html[data-shell="desktop-pro"] #dp-topnav .dp-links { display: none; }
  html[data-shell="desktop-pro"] #dp-home .dp-hero { flex-direction: column; }
  html[data-shell="desktop-pro"] #dp-home .dp-hero-card { width: auto; align-self: stretch; margin: 0 22px 22px; }
  html[data-shell="desktop-pro"] #dp-home .dp-matches,
  html[data-shell="desktop-pro"] #dp-home .dp-hl-block .hkplc-media,
  html[data-shell="desktop-pro"] #dp-home .dp-top-block .hkplc-topplayers { grid-template-columns: 1fr 1fr; }
  html[data-shell="desktop-pro"] #dp-home .dp-feat { flex-direction: column; align-items: stretch; }
  /* announce must not grow (flex:1) in the stacked layout — that growth centred its content
     and left a big empty gap above the button. Hug the content so the CTA sits right beneath. */
  html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-announce { flex: 0 0 auto; padding-bottom: 6px; }
  html[data-shell="desktop-pro"] #dp-home .dp-feat .dp-feat-cta { margin: 2px 30px 20px; align-self: stretch; text-align: center; }
}

/* ==================== DARK THEME legibility (DARK-HEADINGS-V1) ==================== */
/* html[data-theme="dark"] gave the page dark tokens but the desktop body was still forced
   to the light ground and the magazine section headers (Matches / Highlights / Top Players)
   stayed dark-on-dark. Paint a real dark ground and flip ONLY the on-ground text; the white
   content cards (Matches / Top Players / sidebar) deliberately keep their dark-on-white text.
   Shared bands (GBPA mission title, gallery title) are handled in shell-components.css. */
html[data-shell="desktop-pro"][data-theme="dark"] body { background: #0c1310 !important; }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-home .dp-sh h2 { color: #f1f5f4; }
html[data-shell="desktop-pro"][data-theme="dark"] #dp-home .dp-footer,
html[data-shell="desktop-pro"][data-theme="dark"] #dp-home .dp-footer .dp-foot-lbl { color: rgba(255,255,255,.62); }
