/* =========================================================================
   THE SPORTS RISE — LUXURY EDITORIAL STYLESHEET
   Unique palette: bone ivory + deep forest + terracotta + champagne gold
   Rise with the Game
   ========================================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, picture, svg, video { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--clr-primary); color: var(--clr-bg); }

/* ---------- DESIGN TOKENS ---------- */
/* Theme palette tokens (--clr-*) are emitted inline by includes/layout.php so
 * they switch atomically on theme activation. Only the NON-theme tokens are
 * declared here (sport accents, typography scale, spacing, radii, shadows,
 * motion, layout). If you add a theme-derived token, update layout.php too. */
:root {
  /* Static fallbacks — kept only so this stylesheet renders correctly when
   * loaded in isolation (e.g., style-guide tools). The inline tokens in
   * layout.php always win at runtime because they're declared after this file
   * in document order. */
  --clr-warning: #d4a439;
  --clr-info:    #3d6a8a;

  /* Sport accent colors (refined, not neon) */
  --sport-football:   #1d6b47;
  --sport-padel:      #2d6588;
  --sport-cricket:    #b75e2c;
  --sport-olympic:    #8b3fa8;
  --sport-rugby:      #1e3a5f;
  --sport-drone:      #a63860;
  --sport-lacrosse:   #c28a2c;
  --sport-pickleball: #2d6a4f;
  --sport-squash:     #a83232;
  --sport-teqball:    #1b7080;
  --sport-simracing:  #5e3ca8;
  --sport-spikeball:  #c96a28;

  /* Typography */
  --ff-serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale */
  --fs-xs:   11px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   22px;
  --fs-2xl:  28px;
  --fs-3xl:  clamp(26px, 4vw, 36px);
  --fs-4xl:  clamp(32px, 5vw, 48px);
  --fs-5xl:  clamp(40px, 7vw, 72px);
  --fs-6xl:  clamp(48px, 9vw, 96px);

  /* 8px grid spacing — perfect padding */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  28px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Shadows — refined luxury */
  --sh-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
  --sh-sm: 0 2px 6px rgba(28, 25, 23, 0.05), 0 1px 2px rgba(28, 25, 23, 0.04);
  --sh-md: 0 6px 16px rgba(28, 25, 23, 0.07), 0 2px 4px rgba(28, 25, 23, 0.04);
  --sh-lg: 0 14px 32px rgba(28, 25, 23, 0.10), 0 4px 8px rgba(28, 25, 23, 0.04);
  --sh-xl: 0 24px 60px rgba(28, 25, 23, 0.14);

  /* Motion */
  --ease:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 160ms;
  --dur:      220ms;
  --dur-slow: 380ms;

  /* Layout */
  --container-max: 1320px;
  --container-pad: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --header-h-mobile: 60px;
}

/* ---------- DARK THEME ----------
 * Dark palette tokens are emitted inline by includes/layout.php on both the
 * explicit [data-theme="dark"] selector AND the @media (prefers-color-scheme:
 * dark) html:not([data-theme]) selector. They're computed from the active
 * theme's dark_* columns with color-mix() derivatives — not hardcoded here. */

/* ---------- DARK THEME: component overrides for hardcoded colors ---------- */
/* These rules target components that use literal hex colors (e.g., #fff,
 * #fbf9f4) instead of CSS variables, so they would otherwise stay light in
 * dark mode. Applied to both explicit [data-theme="dark"] and system-preference. */
[data-theme="dark"] .event-card,
html:not([data-theme]) .event-card,
[data-theme="dark"] .comment,
html:not([data-theme]) .comment {
  background: var(--clr-surface);
  border-color: var(--clr-border);
  color: var(--clr-text-body);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .event-card,
  html:not([data-theme]) .comment { background: var(--clr-surface); border-color: var(--clr-border); color: var(--clr-text-body); }
  html:not([data-theme]) .live-entry:not([class*="--"]) { background: var(--clr-surface-2); color: var(--clr-text-body); }
  html:not([data-theme]) .switch::after { background: var(--clr-text); }
  html:not([data-theme]) .alert--success { background: rgba(45,106,79,0.18); color: #a8d9b6; }
  html:not([data-theme]) .alert--error   { background: rgba(183,94,44,0.20); color: #f0b68d; }
  html:not([data-theme]) .ad-slot-legacy, html:not([data-theme]) .ad-wrap--header { border-color: var(--clr-border); }
}
[data-theme="dark"] .live-entry:not([class*="--highlight"]):not([class*="--timeout"]) {
  background: var(--clr-surface-2);
  color: var(--clr-text-body);
  border-left-color: var(--clr-gold);
}

/* ============================================================
 * DARK MODE — primary-on-gold contrast fixes
 * In light mode --clr-primary is dark-teal so warm gold text reads
 * fine on it. In dark mode --clr-primary becomes light mint AND
 * --clr-gold also becomes light cream — the two collide and text
 * becomes invisible. Two-pronged fix below:
 *   (a) For SOLID primary backgrounds (pills, badges, counters,
 *       stripes), force the text to the dark bg color so it sits
 *       cleanly on the mint surface.
 *   (b) For HERO GRADIENTS that fade primary → dark teal, swap the
 *       gradient to all-dark in dark mode so the existing gold +
 *       white text keeps its intended warmth and stays readable.
 * Light mode is untouched. Plan: J accessibility + WCAG 2.2 AA.
 * ============================================================ */

/* (a) Solid primary surfaces — text → dark for high contrast */
[data-theme="dark"] .event-card__date,
[data-theme="dark"] .notif-bar__label,
[data-theme="dark"] .notif-bar__track > span > span::before,
[data-theme="dark"] .how-to-step::before,
[data-theme="dark"] .newsletter-widget .widget__title {
  color: var(--clr-bg) !important;
}
[data-theme="dark"] .newsletter-widget .widget__title {
  border-bottom-color: var(--clr-bg) !important;
}
[data-theme="dark"] .notif-bar__close { color: var(--clr-bg); }

/* (b) Hero / score-card gradients — drop the primary→teal gradient
       in dark mode for an all-dark version so gold accents read. */
[data-theme="dark"] .sport-hero,
[data-theme="dark"] .profile-hero,
[data-theme="dark"] .score-card {
  background: linear-gradient(135deg, #14322a 0%, #0a1d18 70%) !important;
}
[data-theme="dark"] .newsletter-widget {
  /* Keep the brand mint feel but darken the gradient so gold/white reads */
  background: linear-gradient(145deg, #1f4439 0%, #163029 100%) !important;
  color: var(--clr-text) !important;
}
[data-theme="dark"] .newsletter-widget .widget__title {
  color: var(--clr-gold) !important;
  border-bottom-color: var(--clr-gold) !important;
}

/* Mirror all of the above for system-preference dark (no explicit theme) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .event-card__date,
  html:not([data-theme]) .notif-bar__label,
  html:not([data-theme]) .notif-bar__track > span > span::before,
  html:not([data-theme]) .how-to-step::before {
    color: var(--clr-bg) !important;
  }
  html:not([data-theme]) .newsletter-widget {
    background: linear-gradient(145deg, #1f4439 0%, #163029 100%) !important;
    color: var(--clr-text) !important;
  }
  html:not([data-theme]) .newsletter-widget .widget__title {
    color: var(--clr-gold) !important;
    border-bottom-color: var(--clr-gold) !important;
  }
  html:not([data-theme]) .sport-hero,
  html:not([data-theme]) .profile-hero,
  html:not([data-theme]) .score-card {
    background: linear-gradient(135deg, #14322a 0%, #0a1d18 70%) !important;
  }
  html:not([data-theme]) .notif-bar__close { color: var(--clr-bg); }
}

/* ============================================================
 * .event-card__date — the duplicate rule at the bottom of this
 * file overrides the pill colour to gold which clashes with the
 * mint background in dark mode. Hard-pin a contrast colour here
 * so the user-visible computed style is correct in BOTH modes.
 * Light mode primary is dark-teal → cream-bg text reads well.
 * Dark mode primary is mint → near-black bg text reads well.
 * ============================================================ */
.event-card__date { color: var(--clr-bg) !important; }
.event-card__title a:hover { color: var(--clr-accent) !important; }

[data-theme="dark"] .switch::after { background: var(--clr-text); }
[data-theme="dark"] .alert--success { background: rgba(45,106,79,0.18); color: #a8d9b6; }
[data-theme="dark"] .alert--error   { background: rgba(183,94,44,0.20); color: #f0b68d; }
[data-theme="dark"] .ad-wrap--header { border-top-color: var(--clr-border); border-bottom-color: var(--clr-border); }
/* Ad placeholder — the repeating-linear-gradient uses hardcoded light hex */
[data-theme="dark"] .ad-slot[style*="repeating-linear-gradient"],
[data-theme="dark"] .ad-wrap .ad-slot {
  background: repeating-linear-gradient(45deg, #1a201b, #1a201b 10px, #222a23 10px, #222a23 20px);
  color: var(--clr-text-soft);
}
/* Search input placeholder + icon in dark mode */
[data-theme="dark"] .header-search input { background: var(--clr-surface-2); color: var(--clr-text); }
[data-theme="dark"] .header-search input::placeholder { color: var(--clr-text-soft); }
/* Card hover shadow needs more contrast on dark bg */
[data-theme="dark"] .card:hover { box-shadow: 0 14px 32px rgba(0,0,0,0.55); }
[data-theme="dark"] .event-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
/* ::selection — light text on dark accent won't read in dark mode */
[data-theme="dark"] ::selection { background: var(--clr-accent); color: var(--clr-bg); }
/* Image thumbs with light background placeholders */
[data-theme="dark"] .card__media,
[data-theme="dark"] .card__avatar,
[data-theme="dark"] .gallery__main,
[data-theme="dark"] .gallery__thumbs div { background-color: var(--clr-surface-2); }
/* Notification bar border-right uses rgba-white — keep visible on dark */
[data-theme="dark"] .notif-bar__label { border-right-color: rgba(255,255,255,0.25); }
/* Forms — better contrast */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border-color: var(--clr-border);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(122,184,154,0.18);
}
/* Bottom nav shadow */
[data-theme="dark"] .bottom-nav { box-shadow: 0 -8px 24px rgba(0,0,0,0.4); }
/* Theme toggle icon — swap moon for sun when dark (handled via JS class) */
[data-theme="dark"] [data-theme-toggle] .icon-sun { display: block; }
[data-theme="dark"] [data-theme-toggle] .icon-moon { display: none; }
[data-theme-toggle] .icon-sun { display: none; }
[data-theme-toggle] .icon-moon { display: block; }

/* ---------- BASE ---------- */
body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  background: var(--clr-bg);
  color: var(--clr-text);
  letter-spacing: -0.003em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}

p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

/* ---------- MARQUEE / NOTIFICATION BAR ---------- */
.notif-bar {
  background: var(--clr-primary);
  color: var(--clr-bg);
  padding: 10px 0;
  font-size: var(--fs-xs);
  overflow: hidden;
  position: relative;
}
.notif-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.notif-bar__label {
  font-family: var(--ff-sans);
  color: var(--clr-gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: var(--sp-4);
  border-right: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.notif-bar__track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.notif-bar__track > span {
  display: inline-flex;
  gap: var(--sp-8);
  animation: marquee 50s linear infinite;
  padding-left: 100%;
}
.notif-bar__track > span > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.notif-bar__track > span > span::before {
  content: "◆";
  color: var(--clr-gold);
  font-size: 7px;
}
.notif-bar__close {
  color: var(--clr-bg);
  opacity: 0.7;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-bar__close:hover { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--clr-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Wrapper around hamburger + brand — lives inside grid cell 1 */
.header-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
  flex-shrink: 0;
}
.brand__rule {
  width: 52px;
  height: 2px;
  background: var(--clr-accent);
}
.brand__name {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__name em { font-style: italic; color: var(--clr-accent); font-weight: 400; }

.header-search {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  border-radius: var(--r-full);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.header-search input::placeholder { color: var(--clr-text-soft); }
.header-search input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(20,69,61,0.08);
}
.header-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
  pointer-events: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  color: var(--clr-text);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--clr-bg-alt); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-full);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--ff-sans);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-bg);
}
.btn-primary:hover { background: var(--clr-primary-hover); }
.btn-accent {
  background: var(--clr-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--clr-accent-hover); }
.btn-gold {
  background: var(--clr-gold);
  color: #1c1917;
}
.btn-gold:hover { background: #a88452; color: #fff; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--clr-border-strong);
  color: var(--clr-text);
}
.btn-outline:hover { border-color: var(--clr-primary); background: var(--clr-surface); }
.btn-ghost {
  background: transparent;
  color: var(--clr-text);
}
.btn-ghost:hover { background: var(--clr-bg-alt); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; min-height: 34px; font-size: 13px; }
.btn-lg { padding: 14px 28px; min-height: 52px; font-size: 15px; }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  transition: background-color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.hamburger:hover { background: var(--clr-bg-alt); }
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.hamburger span { position: relative; }
.hamburger span::before { content: ""; position: absolute; left: 0; top: -6px; }
.hamburger span::after  { content: ""; position: absolute; left: 0; top: 6px; }
.hamburger.is-open span { background: transparent; }
.hamburger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- NAV ---------- */
.primary-nav {
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg);
}
.primary-nav__inner {
  display: flex;
  justify-content: center;
  gap: var(--sp-8);
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}
.primary-nav a {
  position: relative;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
  transform-origin: center;
}
.primary-nav a:hover { color: var(--clr-primary); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--clr-primary); font-weight: 600; }
.primary-nav .caret::after { content: none; }
.primary-nav .caret > svg { width: 12px; height: 12px; opacity: 0.5; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 90;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  padding: 80px var(--container-pad) 120px;
  display: none;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: var(--sp-4) 0;
  font-family: var(--ff-serif);
  font-size: 24px;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-divider);
}
.mobile-nav a:hover { color: var(--clr-primary); }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: var(--sp-5) 0;
  font-size: 12px;
  color: var(--clr-text-muted);
  letter-spacing: 0.02em;
}
.breadcrumbs a { transition: color var(--dur-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--clr-primary); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs .current { color: var(--clr-text); font-weight: 600; }

/* ---------- CHIPS / BADGES ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  background: var(--clr-primary);
  color: var(--clr-bg);
  line-height: 1.5;
  white-space: nowrap;
}
.chip--accent   { background: var(--clr-accent); color: #fff; }
.chip--gold     { background: var(--clr-gold); color: #1c1917; }
.chip--ghost    { background: var(--clr-bg-alt); color: var(--clr-text); border: 1px solid var(--clr-border); }
.chip--outline  { background: transparent; color: var(--clr-primary); border: 1px solid var(--clr-primary); }
.chip--secondary{ background: var(--clr-surface-2); color: var(--clr-text); border: 1px solid var(--clr-border); }
.chip--live {
  background: var(--clr-live);
  color: #fff;
  padding-left: 20px;
  position: relative;
}
.chip--live::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  50%      { opacity: 0.5; transform: translateY(-50%) scale(0.8); box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* Sport-tinted chips */
.chip--football   { background: rgba(29,107,71,0.12);  color: var(--sport-football); }
.chip--padel      { background: rgba(45,101,136,0.12); color: var(--sport-padel); }
.chip--cricket    { background: rgba(183,94,44,0.13);  color: var(--sport-cricket); }
.chip--olympic    { background: rgba(139,63,168,0.12); color: var(--sport-olympic); }
.chip--rugby      { background: rgba(30,58,95,0.12);   color: var(--sport-rugby); }
.chip--drone      { background: rgba(166,56,96,0.12);  color: var(--sport-drone); }
.chip--lacrosse   { background: rgba(194,138,44,0.14); color: var(--sport-lacrosse); }
.chip--pickleball { background: rgba(45,106,79,0.12);  color: var(--sport-pickleball); }

/* ---------- EDITORIAL TITLES ---------- */
.eyebrow {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--clr-divider);
  flex-wrap: wrap;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-primary);
  transition: gap var(--dur-fast) var(--ease);
}
.section-link:hover { gap: 10px; }
.section-link svg { width: 14px; height: 14px; }

.section { padding: var(--sp-12) 0; }
.section--sm { padding: var(--sp-8) 0; }

/* ---------- HERO (HOMEPAGE) ---------- */
.hero {
  padding: var(--sp-8) 0 var(--sp-4);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: var(--sp-5);
}
.hero-main {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #14453d 0%, #0a2821 100%);
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.hero-main__img,
.hero-side__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform var(--dur-slow) var(--ease);
}
.hero-main:hover .hero-main__img,
.hero-side-card:hover .hero-side__img { transform: scale(1.04); }
.hero-main__inner {
  position: relative;
  z-index: 2;
  padding: var(--sp-10);
  max-width: 680px;
}
.hero-main__tags { display: flex; gap: 8px; margin-bottom: var(--sp-4); }
.hero-main__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-4xl);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.hero-main__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  font-size: 13px;
  opacity: 0.88;
}
.hero-main__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-5);
  min-height: 0;
}
.hero-side-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
}
.hero-side-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}
.hero-side-card__inner {
  position: relative;
  z-index: 2;
  padding: var(--sp-5);
  width: 100%;
}
.hero-side-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-top: 8px;
}

/* ---------- LAYOUT WRAPPERS ---------- */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-10);
  padding: var(--sp-10) 0;
}
.layout-grid--wide-sidebar {
  grid-template-columns: minmax(0, 1fr) 380px;
}

/* ---------- ARTICLE CARD (core unit) ---------- */
.grid {
  display: grid;
  gap: var(--sp-5);
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--clr-border-strong);
}
.card__media {
  aspect-ratio: 16 / 10;
  background-color: var(--clr-bg-alt);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--clr-text);
  margin-bottom: auto;
}
.card__title a { color: inherit; transition: color var(--dur-fast) var(--ease); }
.card__title a:hover { color: var(--clr-primary); }
.card__excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--clr-text-muted);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 12px;
  color: var(--clr-text-muted);
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--clr-divider);
}
.card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--clr-bg-alt);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--clr-text-muted); opacity: 0.5; }

/* Feature card — larger, editorial */
.card-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}
.card-feature .card__media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.card-feature .card__body { padding: var(--sp-8); gap: var(--sp-4); }
.card-feature .card__title { font-size: var(--fs-2xl); }

/* ---------- SIDEBAR WIDGET ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.widget {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.widget--bare { background: transparent; border: 0; padding: 0; }
.widget__title {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1.5px solid var(--clr-primary);
  position: relative;
}

/* Most-read list */
.most-read { display: flex; flex-direction: column; }
.most-read li {
  display: grid;
  grid-template-columns: 36px 1fr 64px;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--clr-divider);
}
.most-read li:last-child { border-bottom: 0; }
.most-read__num {
  font-family: var(--ff-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 1;
  font-style: italic;
}
.most-read__title {
  font-family: var(--ff-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--clr-text);
}
.most-read__title a:hover { color: var(--clr-primary); }
.most-read__img {
  width: 64px;
  height: 52px;
  border-radius: var(--r-sm);
  background-color: var(--clr-bg-alt);
  background-size: cover;
  background-position: center;
}

/* Event row (sidebar) */
.event-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  align-items: center;
  transition: border-color var(--dur-fast) var(--ease);
}
.event-row + .event-row { margin-top: var(--sp-3); }
.event-row:hover { border-color: var(--clr-primary); }
.event-date {
  background: var(--clr-bg-alt);
  border-radius: var(--r-sm);
  padding: 6px 4px;
  text-align: center;
  line-height: 1.1;
}
.event-date__dow { font-size: 9.5px; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.event-date__day { font-family: var(--ff-serif); font-size: 22px; font-weight: 600; }
.event-date__mon { font-size: 9.5px; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.event-row__body .t { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.event-row__body .s { font-size: 11px; color: var(--clr-text-muted); display: flex; align-items: center; gap: 6px; }

/* Newsletter widget */
.newsletter-widget {
  background: linear-gradient(145deg, var(--clr-primary), var(--clr-primary-hover));
  color: var(--clr-bg);
  border: 0;
  position: relative;
  overflow: hidden;
}
.newsletter-widget::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--clr-accent) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.newsletter-widget .widget__title { color: var(--clr-gold); border-bottom-color: var(--clr-gold); }
.newsletter-widget p { font-size: 13px; margin-bottom: var(--sp-3); opacity: 0.9; position: relative; }
.newsletter-widget form { position: relative; }
.newsletter-widget input[type="email"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-3);
  background: rgba(255,255,255,0.95);
  color: var(--clr-text);
  font-size: 14px;
}

/* ---------- EXPLORE SPORTS ---------- */
/* =========================================================================
 *  SPORTS VERTICALS — premium editorial card grid (v2)
 *  ----------------------------------------------------------------------
 *  Each tile:
 *    • Owns a --tile-accent from the category's accent_color — radial aura,
 *      arrow, and hover ring all derive from it so every sport has its own
 *      colour identity while still living in the theme system.
 *    • Staggers its entrance with --tile-i so cards cascade in on load.
 *    • Upgrades gracefully — color-mix() is used for aura; older browsers
 *      fall back to a flat tint through the alpha in the hex fallback.
 *  ------------------------------------------------------------------------ */
.section-lede--sports {
  max-width: 640px;
  margin: var(--sp-2) 0 0;
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.section-lede--sports strong { color: var(--clr-text); font-weight: 600; }

.sports-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-3);
}
.sports-grid--v2 {
  gap: clamp(10px, 1.4vw, 18px);
}

.sport-tile-v2 {
  --tile-accent: var(--clr-primary);
  --tile-radius: clamp(14px, 1.4vw, 20px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: clamp(14px, 1.6vw, 20px);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--tile-radius);
  color: var(--clr-text);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
              border-color 260ms var(--ease);
  animation: sport-tile-in 520ms var(--ease) both;
  animation-delay: calc(var(--tile-i, 0) * 35ms);
  will-change: transform;
}
@keyframes sport-tile-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Radial accent aura behind the icon — extracts identity from the sport. */
.sport-tile-v2__aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(130% 90% at 12% 0%,
      color-mix(in srgb, var(--tile-accent) 22%, transparent) 0%,
      transparent 58%),
    radial-gradient(120% 80% at 100% 100%,
      color-mix(in srgb, var(--tile-accent) 10%, transparent) 0%,
      transparent 60%);
  opacity: 0.7;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}

/* Subtle grain — keeps premium feel at close distance (desktop only). */
.sport-tile-v2__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(28,25,23,0.020) 0 1px, transparent 2px 60px);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.5;
}

.sport-tile-v2 > *:not(.sport-tile-v2__aura):not(.sport-tile-v2__grain) {
  position: relative;
  z-index: 1;
}

.sport-tile-v2__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
}

.sport-tile-v2__icon {
  width: clamp(44px, 4.2vw, 56px);
  height: clamp(44px, 4.2vw, 56px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1;
  border-radius: calc(var(--tile-radius) * 0.7);
  background: color-mix(in srgb, var(--tile-accent) 14%, var(--clr-surface));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tile-accent) 35%, transparent),
    0 6px 14px -6px color-mix(in srgb, var(--tile-accent) 60%, transparent);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
              background 260ms var(--ease);
}

.sport-tile-v2__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 3px 9px;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tile-accent);
  background: color-mix(in srgb, var(--tile-accent) 14%, var(--clr-surface));
  border: 1px solid color-mix(in srgb, var(--tile-accent) 30%, transparent);
  border-radius: 999px;
  transition: color 260ms var(--ease), background 260ms var(--ease),
              border-color 260ms var(--ease);
}

.sport-tile-v2__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: clamp(14px, 2vw, 22px);
}

.sport-tile-v2__name {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  margin: 0;
  /* Clamp to 2 lines so "Drone Racing League" doesn't break layout. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sport-tile-v2__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--clr-text-muted);
  letter-spacing: 0.01em;
}
.sport-tile-v2__meta--soft { font-style: italic; opacity: 0.75; }
.sport-tile-v2__meta--live { color: var(--tile-accent); font-weight: 600; }

.sport-tile-v2__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tile-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--tile-accent) 60%, transparent);
  animation: sport-tile-pulse 1.8s var(--ease) infinite;
}
@keyframes sport-tile-pulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in srgb, var(--tile-accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--tile-accent) 0%,  transparent); }
  100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--tile-accent) 0%,  transparent); }
}

.sport-tile-v2__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: clamp(10px, 1.2vw, 14px);
  padding-top: clamp(10px, 1.2vw, 14px);
  border-top: 1px dashed color-mix(in srgb, var(--tile-accent) 35%, var(--clr-border));
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tile-accent);
}
.sport-tile-v2__arrow {
  transition: transform 260ms var(--ease);
  flex-shrink: 0;
}

/* ----- Interaction states ----- */
.sport-tile-v2:hover,
.sport-tile-v2:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tile-accent) 55%, var(--clr-border));
  box-shadow:
    0 18px 38px -20px color-mix(in srgb, var(--tile-accent) 55%, transparent),
    0 8px 18px -12px rgba(28, 25, 23, 0.18);
  outline: none;
}
.sport-tile-v2:hover .sport-tile-v2__aura,
.sport-tile-v2:focus-visible .sport-tile-v2__aura { opacity: 1; }
.sport-tile-v2:hover .sport-tile-v2__icon,
.sport-tile-v2:focus-visible .sport-tile-v2__icon {
  transform: scale(1.06) rotate(-2deg);
  background: color-mix(in srgb, var(--tile-accent) 22%, var(--clr-surface));
}
.sport-tile-v2:hover .sport-tile-v2__count,
.sport-tile-v2:focus-visible .sport-tile-v2__count {
  color: var(--clr-surface);
  background: var(--tile-accent);
  border-color: var(--tile-accent);
}
.sport-tile-v2:hover .sport-tile-v2__arrow,
.sport-tile-v2:focus-visible .sport-tile-v2__arrow {
  transform: translateX(4px);
}
.sport-tile-v2:active { transform: translateY(-1px); transition-duration: 120ms; }

/* ----- Active state (fresh story in last 48 h) — subtle ring ----- */
.sport-tile-v2.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile-accent) 30%, transparent);
}

/* ----- Responsive breakpoints — viewport-driven, mobile-first -----
 * Earlier revision tried container queries scoped on .sports-grid--v2 itself,
 * but @container rules query the nearest container *ancestor* — which meant
 * the rules never fired and mobile got stuck at 6 columns. Back to plain
 * media queries: cleaner, universally supported, and matches how the other
 * grids on this page behave. */
@media (max-width: 1200px) {
  .sports-grid--v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sports-grid--v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sports-grid--v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sport-tile-v2 { min-height: 148px; padding: 14px; }
  .sport-tile-v2__name { font-size: 15px; -webkit-line-clamp: 2; }
  .sport-tile-v2__foot { font-size: 10px; letter-spacing: 0.06em; }
  .sport-tile-v2__cta { /* shortened on tiny screens */ }
  .sport-tile-v2__foot .sport-tile-v2__cta::after {
    /* no-op hook */
  }
}
@media (max-width: 380px) {
  /* Tiniest phones — collapse to single column with horizontal row layout
   * so each tile gets full name without truncation. */
  .sports-grid--v2 { grid-template-columns: 1fr; gap: 8px; }
  .sport-tile-v2 {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 12px 14px;
    gap: 12px;
  }
  .sport-tile-v2__aura { opacity: 0.5; }
  .sport-tile-v2__head {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .sport-tile-v2__icon {
    width: 42px; height: 42px;
    font-size: 20px;
  }
  .sport-tile-v2__body { padding-top: 0; flex: 1; min-width: 0; }
  .sport-tile-v2__name { font-size: 15px; -webkit-line-clamp: 1; }
  .sport-tile-v2__foot {
    flex-shrink: 0;
    flex-direction: column;
    gap: 2px;
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px dashed color-mix(in srgb, var(--tile-accent) 35%, var(--clr-border));
    padding-left: 10px;
    align-items: flex-end;
    font-size: 9.5px;
  }
  .sport-tile-v2__cta { display: none; } /* arrow alone is plenty in row-mode */
  .sport-tile-v2__arrow { width: 16px; height: 16px; }
}

/* ----- Accessibility: honour reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .sport-tile-v2,
  .sport-tile-v2__icon,
  .sport-tile-v2__arrow,
  .sport-tile-v2__aura,
  .sport-tile-v2__pulse { animation: none !important; transition: none !important; }
  .sport-tile-v2:hover { transform: none; }
  .sport-tile-v2:hover .sport-tile-v2__icon { transform: none; }
  .sport-tile-v2:hover .sport-tile-v2__arrow { transform: none; }
}

/* ----- Dark theme — darker surface, tinted aura ----- */
[data-theme="dark"] .sport-tile-v2 {
  background: color-mix(in srgb, var(--clr-surface) 90%, var(--tile-accent));
  border-color: color-mix(in srgb, var(--tile-accent) 18%, var(--clr-border));
}
[data-theme="dark"] .sport-tile-v2__icon {
  background: color-mix(in srgb, var(--tile-accent) 22%, var(--clr-surface));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tile-accent) 45%, transparent),
    0 8px 18px -8px color-mix(in srgb, var(--tile-accent) 70%, transparent);
}
[data-theme="dark"] .sport-tile-v2__count {
  background: color-mix(in srgb, var(--tile-accent) 18%, var(--clr-surface));
  color: color-mix(in srgb, var(--tile-accent) 78%, #fff);
}
[data-theme="dark"] .sport-tile-v2__grain { opacity: 0; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .sport-tile-v2 {
    background: color-mix(in srgb, var(--clr-surface) 90%, var(--tile-accent));
    border-color: color-mix(in srgb, var(--tile-accent) 18%, var(--clr-border));
  }
  html:not([data-theme]) .sport-tile-v2__grain { opacity: 0; }
}

/* =========================================================================
 *  Legacy .sport-tile styles (kept for /sports.php grid until it migrates)
 *  ------------------------------------------------------------------------ */
.sport-tile {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  transition: all var(--dur-fast) var(--ease);
  overflow: hidden;
}
.sport-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clr-primary);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  z-index: 0;
}
.sport-tile > * { position: relative; z-index: 1; }
.sport-tile:hover::before { opacity: 1; }
.sport-tile:hover { color: var(--clr-bg); border-color: var(--clr-primary); transform: translateY(-2px); }
.sport-tile:hover .sport-tile__sub { color: rgba(255,255,255,0.8); }
.sport-tile:hover .sport-tile__icon { background: rgba(255,255,255,0.18); color: #fff; }
.sport-tile:hover .sport-tile__count { color: var(--clr-gold); background: rgba(255,255,255,0.12); }
.sport-tile__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--clr-primary);
  color: var(--clr-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--dur-fast) var(--ease);
  margin-bottom: var(--sp-2);
}
.sport-tile__name {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}
.sport-tile__sub { font-size: 11.5px; color: var(--clr-text-muted); }
.sport-tile__count {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 10px;
  padding: 3px 8px;
  background: var(--clr-bg-alt);
  color: var(--clr-text-muted);
  border-radius: var(--r-full);
  font-weight: 700;
  z-index: 2;
}

/* ---------- FOOTER — deep luxury ---------- */
.site-footer {
  background: radial-gradient(ellipse at top, #0f3028 0%, #08201b 55%, #050f0c 100%);
  color: #e8e3d3;
  padding: var(--sp-20) 0 var(--sp-5);
  margin-top: var(--sp-20);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-gold) 50%, var(--clr-accent) 100%);
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -120px; top: 40px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,123,92,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(232,227,211,0.1);
  position: relative;
}
.footer-brand .brand__name {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.footer-brand .brand__name em {
  color: var(--clr-gold);
  font-style: italic;
  font-weight: 500;
}
.footer-brand .brand__rule { background: var(--clr-accent); width: 60px; height: 2px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: #c4bfb0;
  margin-top: var(--sp-4);
  max-width: 340px;
}
.footer-col h4 {
  color: var(--clr-gold);
  font-family: var(--ff-sans);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(184,148,95,0.25);
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 30px; height: 1px;
  background: var(--clr-gold);
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px;
  color: #d6d1c1;
  font-weight: 400;
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
  display: inline-block;
  position: relative;
}
.footer-col ul li a:hover {
  color: var(--clr-gold);
  padding-left: 6px;
}
.footer-col ul li a:hover::before {
  content: "›";
  position: absolute;
  left: -6px;
  color: var(--clr-accent);
  font-weight: 700;
}

.footer-social { display: flex; gap: 10px; margin-top: var(--sp-5); }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(232,227,211,0.06);
  border: 1px solid rgba(232,227,211,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
  color: #f2ecdd;
}
.footer-social a:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 13px;
  color: #a89f8b;
  position: relative;
}
.footer-bottom .slogan {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--clr-gold);
  letter-spacing: 0.01em;
}

/* ---------- BOTTOM NAV (MOBILE) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 8px 4px env(safe-area-inset-bottom, 8px);
  z-index: 80;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
  justify-content: space-around;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: var(--r-sm);
  min-height: 52px;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.is-active { color: var(--clr-primary); background: var(--clr-accent-soft); }
.bottom-nav a.is-active svg { transform: scale(1.08); }

/* ---------- AD SLOTS (CLS-safe) ---------- */
.ad-slot {
  background: repeating-linear-gradient(135deg, var(--clr-bg-alt) 0 12px, var(--clr-surface-2) 12px 24px);
  border: 1px dashed var(--clr-border-strong);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--clr-text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 250px;
  margin: var(--sp-6) 0;
}
.ad-slot--leader { min-height: 120px; }
.ad-slot--square { min-height: 280px; aspect-ratio: 1; }

/* ---------- SPORT CATEGORY HERO ---------- */
.sport-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  margin: var(--sp-6) 0 var(--sp-10);
  padding: var(--sp-14) var(--sp-10);
  background: linear-gradient(135deg, var(--clr-primary) 0%, #08241d 65%);
  color: #fff;
  isolation: isolate;
}
.sport-hero::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  background: radial-gradient(ellipse at right, rgba(193,123,92,0.35) 0%, transparent 60%);
  z-index: -1;
}
.sport-hero__inner { max-width: 620px; position: relative; z-index: 1; }
.sport-hero__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-6xl);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.sport-hero__desc {
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 540px;
  margin-bottom: var(--sp-8);
}
.sport-hero__stats {
  display: flex;
  gap: var(--sp-10);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.sport-hero__stat .n {
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--clr-gold);
  line-height: 1;
}
.sport-hero__stat .l {
  font-size: 11.5px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}
.sport-hero__cta { position: absolute; right: var(--sp-10); bottom: var(--sp-10); z-index: 2; }

/* Sub-category tabs */
.tabs {
  display: flex;
  gap: var(--sp-7);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-8);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 14px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--clr-text-muted);
  white-space: nowrap;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
  letter-spacing: 0.01em;
}
.tabs a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.tabs a.is-active::after,
.tabs a:hover::after { transform: scaleX(1); }
.tabs a.is-active,
.tabs a:hover { color: var(--clr-primary); font-weight: 600; }

/* Trending rank (sidebar) */
.rank-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--clr-divider);
  font-size: 13px;
  line-height: 1.4;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list__num {
  font-family: var(--ff-serif);
  color: var(--clr-accent);
  font-weight: 600;
  font-size: 18px;
  font-style: italic;
}
.rank-list a { color: var(--clr-text); transition: color var(--dur-fast) var(--ease); }
.rank-list a:hover { color: var(--clr-primary); }

/* Players list (sidebar) */
.players-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.players-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--clr-divider);
}
.players-list li:last-child { border-bottom: 0; }
.players-list__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: var(--clr-bg-alt);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--clr-gold);
}
.players-list__name {
  font-family: var(--ff-serif);
  font-size: 14px;
  font-weight: 500;
}
.players-list__team { font-size: 11px; color: var(--clr-text-muted); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: var(--sp-10) 0;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--clr-text);
  background: var(--clr-surface);
  padding: 0 14px;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pagination a:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.pagination .is-active { background: var(--clr-primary); color: var(--clr-bg); border-color: var(--clr-primary); }

/* Featured article banner */
.feature-banner {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  isolation: isolate;
  aspect-ratio: 16 / 8.5;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.feature-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,20,16,0.92) 100%);
  z-index: 1;
}
.feature-banner__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.feature-banner__inner {
  position: relative;
  z-index: 2;
  padding: var(--sp-8);
  max-width: 720px;
}
.feature-banner__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin: var(--sp-3) 0 var(--sp-3);
}
.feature-banner__excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: var(--sp-3);
}

/* ---------- ARTICLE PAGE ---------- */
.article-top { padding: var(--sp-4) 0 0; }
.article-top__tags { display: flex; gap: 8px; margin-bottom: var(--sp-5); flex-wrap: wrap; }
.article-top__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-5xl);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: var(--sp-6);
  max-width: 900px;
}
.article-top__lede {
  font-family: var(--ff-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--clr-text-muted);
  max-width: 780px;
  margin-bottom: var(--sp-8);
  font-weight: 400;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.article-meta .author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.article-meta .author__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--clr-bg-alt) center/cover;
  border: 2px solid var(--clr-gold);
}
.article-meta .author__name { font-family: var(--ff-serif); font-size: 15px; font-weight: 600; }
.article-meta .author__date { font-size: 12px; color: var(--clr-text-muted); margin-top: 2px; }
.article-meta .stats { margin-left: auto; display: flex; gap: var(--sp-4); font-size: 13px; color: var(--clr-text-muted); }
.article-meta .stats span { display: inline-flex; align-items: center; gap: 5px; }

/* Share bar */
.share-bar { display: flex; gap: 10px; margin: var(--sp-5) 0; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  transition: transform var(--dur-fast) var(--ease);
}
.share-btn:hover { transform: translateY(-1px); }
.share-btn--fb { background: #1877f2; }
.share-btn--wa { background: #25d366; }
.share-btn--tw { background: #1d1d1d; }
.share-btn--lk { background: #0a66c2; }
.share-btn--more { background: var(--clr-bg-alt); color: var(--clr-text); border: 1px solid var(--clr-border); }

/* Sticky share rail */
.share-rail {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 40;
}
.share-rail a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--sh-xs);
}
.share-rail a:hover { color: var(--clr-bg); background: var(--clr-primary); border-color: var(--clr-primary); transform: scale(1.08); }
.share-rail a svg { width: 14px; height: 14px; }

/* Article body typography */
.prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--clr-text-body);
  max-width: 720px;
}
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-family: var(--ff-serif);
  font-size: 32px;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--ff-serif);
  font-size: 24px;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}
.prose a { color: var(--clr-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--clr-accent); }
.prose img, .prose figure { border-radius: var(--r-md); margin: var(--sp-7) 0; }
.prose figcaption { font-size: 12.5px; color: var(--clr-text-muted); margin-top: 8px; font-style: italic; }
.prose strong { color: var(--clr-text); font-weight: 700; }
.prose ul, .prose ol { padding-left: var(--sp-6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--sp-2); }

/* Table of Contents box */
.toc-box {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
}
.toc-box__title {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}
.toc-box ol { padding-left: var(--sp-5); }
.toc-box ol li { padding: 5px 0; font-size: 14px; list-style: decimal; }
.toc-box ol li a { color: var(--clr-primary); font-weight: 500; }
.toc-box ol li a:hover { color: var(--clr-accent); }

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--clr-accent);
  padding: 8px 0 8px var(--sp-5);
  font-family: var(--ff-serif);
  font-size: 22px;
  line-height: 1.45;
  font-style: italic;
  color: var(--clr-text);
  margin: var(--sp-8) 0;
  font-weight: 500;
}
.pull-quote cite {
  display: block;
  font-size: 13px;
  color: var(--clr-text-muted);
  font-style: normal;
  font-family: var(--ff-sans);
  font-weight: 500;
  margin-top: var(--sp-3);
}

/* Comparison / data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--sp-6) 0;
  font-size: 13.5px;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--clr-divider);
}
.data-table th {
  background: var(--clr-primary);
  color: var(--clr-bg);
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--clr-surface-2); }
.data-table .won { color: var(--clr-success); font-weight: 700; }
.data-table .lost { color: var(--clr-live); font-weight: 700; }

/* Inline product box */
.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}
.product-card__img {
  aspect-ratio: 1;
  background: var(--clr-bg-alt) center/contain no-repeat;
  border-radius: var(--r-sm);
}
.product-card__stars { color: var(--clr-gold); font-size: 15px; margin-bottom: 6px; letter-spacing: 1px; }
.product-card__score { font-size: 12px; color: var(--clr-text-muted); margin-left: 6px; }
.product-card__price { font-family: var(--ff-serif); font-size: 26px; font-weight: 600; color: var(--clr-primary); margin: 8px 0 10px; }
.product-card__proscons {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  padding: 10px; background: var(--clr-bg-alt); border-radius: var(--r-sm);
  margin: 10px 0;
  font-size: 12px;
}
.product-card__proscons h5 {
  font-family: var(--ff-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card__proscons .pros h5 { color: var(--clr-success); }
.product-card__proscons .cons h5 { color: var(--clr-live); }
.product-card__proscons li { padding: 2px 0; }

/* FAQ accordion */
.faq {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--sp-6) 0;
}
.faq details { border-bottom: 1px solid var(--clr-divider); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background-color var(--dur-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--sp-5);
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--clr-accent);
  transition: transform var(--dur) var(--ease);
  font-weight: 300;
  line-height: 1;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { background: var(--clr-surface-2); }
.faq details > div {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--clr-text-muted);
}

/* Author box */
.author-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-5);
  margin: var(--sp-8) 0;
}
.author-box__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--clr-bg-alt) center/cover;
  border: 3px solid var(--clr-gold);
}
.author-box__name {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 600;
}
.author-box__role {
  font-size: 12px;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 4px 0 10px;
}
.author-box__bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--clr-text-muted);
  margin-bottom: 10px;
}

/* ---------- PLAYER PROFILE ---------- */
.profile-hero {
  position: relative;
  border-radius: var(--r-2xl);
  padding: var(--sp-12) var(--sp-10);
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0a2a23 60%);
  color: #fff;
  margin: var(--sp-5) 0 var(--sp-10);
  overflow: hidden;
  isolation: isolate;
}
.profile-hero::after {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,123,92,0.3) 0%, transparent 60%);
  z-index: -1;
}
.profile-hero__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-8);
  align-items: center;
}
.profile-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--clr-bg-alt) center/cover;
  border: 4px solid var(--clr-gold);
  box-shadow: 0 0 0 6px rgba(184,148,95,0.18);
}
.profile-info h1 {
  font-family: var(--ff-serif);
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.profile-info .team {
  color: var(--clr-gold);
  font-size: 17px;
  font-family: var(--ff-serif);
  font-style: italic;
  margin-bottom: 8px;
}
.profile-info .world-meta {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: var(--sp-4);
}
.profile-socials { display: flex; gap: 8px; margin-bottom: var(--sp-4); }
.profile-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background-color var(--dur-fast) var(--ease);
}
.profile-socials a:hover { background: var(--clr-accent); }
.profile-socials svg { width: 14px; height: 14px; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.profile-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-5);
  min-width: 130px;
  backdrop-filter: blur(8px);
  text-align: center;
}
.profile-stat .lab {
  font-size: 10.5px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.profile-stat .val {
  font-family: var(--ff-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--clr-gold);
  line-height: 1;
}

/* Quick facts widget */
.quick-facts li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--clr-divider);
  font-size: 13.5px;
}
.quick-facts li:last-child { border-bottom: 0; }
.quick-facts li .lab { color: var(--clr-text-muted); display: inline-flex; align-items: center; gap: 6px; }
.quick-facts li .val { font-weight: 700; }

/* Timeline */
.timeline {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  overflow-x: auto;
}
.timeline__track {
  position: relative;
  padding: var(--sp-6) 0;
  min-width: 600px;
}
.timeline__line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  background: var(--clr-border);
}
.timeline__points {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  position: relative;
}
.timeline__point { text-align: center; position: relative; }
.timeline__point .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 2.5px solid var(--clr-accent);
  margin: 0 auto;
}
.timeline__point.is-major .dot { background: var(--clr-accent); }
.timeline__point .yr {
  font-family: var(--ff-serif);
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-top: 14px;
}
.timeline__point .ev {
  font-size: 10.5px;
  color: var(--clr-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  min-height: 14px;
}

/* Related player grid */
.related-players { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.related-player {
  text-align: center;
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease);
}
.related-player:hover { background: var(--clr-surface-2); }
.related-player__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--clr-bg-alt) center/cover;
  margin: 0 auto 8px;
  border: 2px solid var(--clr-gold);
}
.related-player__name { font-family: var(--ff-serif); font-size: 13px; font-weight: 600; }
.related-player__rank { font-size: 11px; color: var(--clr-text-muted); }

/* ---------- EVENTS CALENDAR ---------- */
.cal-hero {
  text-align: center;
  padding: var(--sp-12) 0 var(--sp-8);
}
.cal-hero h1 {
  font-family: var(--ff-serif);
  font-size: var(--fs-5xl);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.cal-hero h1 em { font-style: italic; color: var(--clr-accent); font-weight: 500; }
.cal-hero p {
  color: var(--clr-text-muted);
  font-size: 17px;
  margin-top: var(--sp-3);
  font-family: var(--ff-serif);
  font-style: italic;
}

.sport-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--sp-6) 0 var(--sp-10);
}
.sport-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-text);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.sport-filter:hover { border-color: var(--clr-primary); background: var(--clr-surface-2); }
.sport-filter.is-active {
  background: var(--clr-primary);
  color: var(--clr-bg);
  border-color: var(--clr-primary);
}
.sport-filter__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.view-switcher {
  display: inline-flex;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  padding: 4px;
  background: var(--clr-surface);
  margin-bottom: var(--sp-6);
  gap: 2px;
}
.view-switcher a {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: var(--r-full);
  transition: all var(--dur-fast) var(--ease);
}
.view-switcher a.is-active { background: var(--clr-primary); color: var(--clr-bg); }

/* Calendar */
.calendar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
}
.calendar__head h3 { font-family: var(--ff-serif); font-size: 22px; }
.calendar__nav { display: flex; gap: 8px; }
.calendar__nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted);
  transition: all var(--dur-fast) var(--ease);
}
.calendar__nav button:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
}
.calendar__weekdays div {
  padding: var(--sp-3);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar__cell {
  min-height: 120px;
  padding: 8px;
  border-right: 1px solid var(--clr-divider);
  border-bottom: 1px solid var(--clr-divider);
}
.calendar__cell:nth-child(7n) { border-right: 0; }
.calendar__cell.other-month { opacity: 0.4; }
.calendar__cell.is-today {
  background: rgba(184,148,95,0.08);
  box-shadow: inset 0 0 0 2px var(--clr-gold);
}
.calendar__day {
  font-family: var(--ff-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.calendar__event {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 3px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.calendar__event--pickleball { background: var(--sport-pickleball); }
.calendar__event--cricket    { background: var(--sport-cricket); }
.calendar__event--football   { background: var(--sport-football); }
.calendar__event--lacrosse   { background: var(--sport-lacrosse); }
.calendar__event--drone      { background: var(--sport-drone); }

/* Event cards (upcoming) */
.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.event-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.event-card__status {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
}
.event-card__date {
  display: inline-block;
  padding: 10px 16px;
  background: var(--clr-primary);
  color: var(--clr-bg);
  border-radius: var(--r-sm);
  text-align: center;
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.event-card__date .d { font-family: var(--ff-serif); font-size: 26px; font-weight: 600; display: block; }
.event-card__date .m { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 4px; }
.event-card h3 { font-family: var(--ff-serif); font-size: 20px; margin-bottom: 10px; }
.event-card__tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.event-card__meta { font-size: 12.5px; color: var(--clr-text-muted); line-height: 2; }
.event-card__meta span { display: flex; align-items: center; gap: 6px; }
.event-card__actions {
  display: flex;
  gap: 8px;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-divider);
}
.event-card__actions .btn { flex: 1; font-size: 12px; padding: 8px 10px; }

/* ---------- LIVE BLOG ---------- */
.live-banner {
  background: var(--clr-live);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  position: relative;
}
.live-banner::before,
.live-banner::after {
  content: "●";
  display: inline-block;
  margin: 0 12px;
  color: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Score card */
.score-card {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0a2a23 70%);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-6);
  align-items: center;
  margin: var(--sp-6) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.score-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, rgba(193,123,92,0.2) 0%, transparent 60%);
  z-index: -1;
}
.score-card__player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.score-card__player__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--clr-bg-alt) center/cover;
  border: 3px solid var(--clr-gold);
}
.score-card__player__name {
  font-family: var(--ff-serif);
  font-size: 19px;
  font-weight: 600;
}
.score-card__player__rank {
  font-size: 13px;
  color: var(--clr-gold);
  font-weight: 600;
}
.score-card__center { text-align: center; }
.score-card__label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; font-weight: 500; }
.score-card__score {
  font-family: var(--ff-serif);
  font-size: 48px;
  font-weight: 600;
  margin: 10px 0;
  letter-spacing: 0.02em;
}
.score-card__dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.score-card__dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.score-card__dots span.is-active { background: var(--clr-gold); box-shadow: 0 0 12px var(--clr-gold); }
.score-card__live-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: var(--sp-3);
  font-size: 13px;
}

/* Live toolbar */
.live-toolbar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
  font-size: 13px;
}
.live-toolbar__toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.switch {
  width: 40px;
  height: 22px;
  background: var(--clr-border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left var(--dur-fast) var(--ease);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.switch.is-on { background: var(--clr-accent); }
.switch.is-on::after { left: 20px; }
.live-toolbar__filters { display: flex; gap: var(--sp-4); color: var(--clr-text-muted); }
.live-toolbar__filters a { transition: color var(--dur-fast) var(--ease); }
.live-toolbar__filters a:hover,
.live-toolbar__filters a.is-active { color: var(--clr-primary); font-weight: 600; }

/* Live feed entries */
.live-feed {
  position: relative;
  padding-left: var(--sp-8);
}
.live-feed::before {
  content: "";
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: var(--clr-border);
}
.live-entry {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  transition: border-color var(--dur-fast) var(--ease);
}
.live-entry:hover { border-color: var(--clr-border-strong); }
.live-entry::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-8) + 7px);
  top: 22px;
  width: 10px; height: 10px;
  background: var(--clr-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--clr-bg);
}
.live-entry--highlight {
  border-left: 4px solid var(--clr-accent);
  background: linear-gradient(90deg, rgba(193,123,92,0.05) 0%, transparent 30%);
}
.live-entry--highlight::before { background: var(--clr-accent); box-shadow: 0 0 0 4px var(--clr-bg), 0 0 16px var(--clr-accent); }
.live-entry__time {
  font-family: var(--ff-serif);
  font-size: 13px;
  color: var(--clr-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.live-entry__title {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-entry__body { font-size: 14.5px; line-height: 1.6; color: var(--clr-text-body); }
.live-entry__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  background: var(--clr-surface-2);
  border-radius: var(--r-sm);
  font-size: 12.5px;
}
.live-entry__stats div { display: flex; justify-content: space-between; padding: 2px 0; }
.live-entry__stats b { color: var(--clr-primary); font-family: var(--ff-serif); font-size: 15px; }
.live-entry__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--clr-divider);
  font-size: 12.5px;
  color: var(--clr-text-muted);
}
.live-entry__actions button { display: inline-flex; align-items: center; gap: 5px; transition: color var(--dur-fast) var(--ease); }
.live-entry__actions button:hover { color: var(--clr-primary); }
.live-entry__actions .right { margin-left: auto; display: flex; gap: var(--sp-4); }

.live-entry--timeout {
  background: var(--clr-surface-2);
  border-style: dashed;
  text-align: center;
  padding: var(--sp-6);
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--clr-text-muted);
  font-style: italic;
}

/* Match stats widget */
.stat-row { margin-bottom: var(--sp-4); }
.stat-row__label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}
.stat-row__bar {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.stat-row__num {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 600;
}
.stat-row__left, .stat-row__right {
  height: 6px;
  background: var(--clr-bg-alt);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.stat-row__left > div,
.stat-row__right > div {
  height: 100%;
  border-radius: 3px;
}
.stat-row__left > div { background: var(--clr-primary); margin-left: auto; }
.stat-row__right > div { background: var(--clr-accent); }

/* Key moments */
.key-moments li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--clr-divider);
  font-size: 13px;
}
.key-moments li:last-child { border-bottom: 0; }
.key-moments li.is-highlight { background: var(--clr-accent-soft); padding: 10px; border-radius: var(--r-sm); margin: 2px 0; border-bottom: 0; }
.key-moments__time {
  font-family: var(--ff-serif);
  font-size: 13px;
  color: var(--clr-text-muted);
  font-weight: 500;
}
.key-moments__text { font-weight: 600; color: var(--clr-text); }

/* ---------- GEAR REVIEW ---------- */
.review-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  margin: var(--sp-6) 0 var(--sp-10);
  align-items: start;
}
.gallery {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.gallery__main {
  aspect-ratio: 4/3;
  background: var(--clr-bg-alt) center/contain no-repeat;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-3);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery__thumbs div {
  aspect-ratio: 1;
  background: var(--clr-bg-alt) center/cover;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.gallery__thumbs div:hover { border-color: var(--clr-border-strong); }
.gallery__thumbs div.is-active { border-color: var(--clr-primary); }

.verdict {
  background: linear-gradient(150deg, var(--clr-surface-2) 0%, var(--clr-gold-soft) 100%);
  border: 1px solid var(--clr-gold);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
}
.verdict__badge {
  position: absolute;
  top: -12px;
  right: var(--sp-5);
  background: var(--clr-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.verdict h3 {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 10px;
}
.verdict__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.verdict__stars { color: var(--clr-gold); font-size: 20px; letter-spacing: 2px; }
.verdict__score {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--clr-primary);
}
.verdict__score span { font-size: 18px; color: var(--clr-text-muted); font-weight: 400; }
.verdict p { font-size: 14px; line-height: 1.6; color: var(--clr-text-body); margin-bottom: var(--sp-4); }
.verdict__proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  background: rgba(255,255,255,0.6);
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  margin-top: var(--sp-4);
}
.verdict__proscons h4 { font-family: var(--ff-sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.verdict__proscons .pros h4 { color: var(--clr-success); }
.verdict__proscons .cons h4 { color: var(--clr-live); }
.verdict__proscons li { padding: 3px 0; font-size: 12.5px; display: flex; gap: 6px; }
.verdict__proscons .pros li::before { content: "✓"; color: var(--clr-success); font-weight: 700; }
.verdict__proscons .cons li::before { content: "✕"; color: var(--clr-live); font-weight: 700; }

/* Rating bars (gear review) */
.rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5) var(--sp-10);
  margin: var(--sp-6) 0;
}
.rating-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.rating-row__label { font-size: 13.5px; font-weight: 600; }
.rating-row__val {
  font-family: var(--ff-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-primary);
}
.rating-row__bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--clr-bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.rating-row__bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: 3px;
}

/* Overall score circle */
.score-ring-wrap {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
}
.score-ring-wrap h4 {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-5);
}
.score-ring {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--clr-primary) 0% 90%, var(--clr-border) 90% 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--clr-surface);
  border-radius: 50%;
}
.score-ring__txt {
  position: relative;
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--clr-primary);
}
.score-ring__txt span { font-size: 18px; color: var(--clr-text-muted); font-weight: 400; }

/* Where to buy */
.buy-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-divider);
}
.buy-row:last-child { border-bottom: 0; }
.buy-row__logo {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--clr-bg-alt);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.buy-row__store { font-family: var(--ff-serif); font-size: 15px; font-weight: 600; }
.buy-row__price { font-family: var(--ff-serif); font-size: 16px; font-weight: 600; color: var(--clr-primary); }

/* ---------- OLYMPICS HUB ---------- */
.olympic-hero {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  padding: var(--sp-16) var(--sp-10);
  background: linear-gradient(135deg, #0c2a24 0%, #081e18 100%);
  color: #fff;
  margin: var(--sp-6) 0 var(--sp-10);
  text-align: center;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.olympic-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,148,95,0.2) 0%, transparent 65%);
  z-index: -1;
}
.olympic-hero__eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(184,148,95,0.4);
  border-radius: var(--r-full);
  color: var(--clr-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}
.olympic-hero h1 {
  font-family: var(--ff-serif);
  color: #fff;
  font-size: var(--fs-6xl);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: var(--sp-8);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.countdown__unit {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(184,148,95,0.25);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  min-width: 100px;
  backdrop-filter: blur(12px);
}
.countdown__num {
  font-family: var(--ff-serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--clr-gold);
  line-height: 1;
}
.countdown__lab {
  font-size: 10.5px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 8px;
}
.olympic-hero__tag {
  font-size: 15px;
  opacity: 0.85;
  margin: var(--sp-6) 0 var(--sp-5);
  font-family: var(--ff-serif);
  font-style: italic;
}

/* Olympics new sports */
.olympic-sports {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.olympic-sport {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  border-top: 4px solid var(--sport-football);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.olympic-sport:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.olympic-sport--lacrosse { border-top-color: var(--sport-lacrosse); }
.olympic-sport--cricket  { border-top-color: var(--sport-cricket); }
.olympic-sport--squash   { border-top-color: var(--sport-squash); }
.olympic-sport__badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--clr-accent);
  color: #fff;
}
.olympic-sport__icon {
  width: 60px; height: 60px;
  background: var(--clr-bg-alt);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: var(--sp-4);
}
.olympic-sport h3 { font-family: var(--ff-serif); font-size: 22px; margin-bottom: 8px; }
.olympic-sport p { font-size: 13px; color: var(--clr-text-muted); line-height: 1.55; margin-bottom: var(--sp-4); }
.olympic-sport__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--clr-divider);
}
.olympic-sport__meta .count { color: var(--clr-text-muted); }
.olympic-sport__meta a { color: var(--clr-primary); font-weight: 600; }

/* Schedule table (olympics) */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 13.5px;
}
.schedule-table th {
  background: var(--clr-surface-2);
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--clr-text-muted);
}
.schedule-table td { padding: 14px 16px; border-bottom: 1px solid var(--clr-divider); }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table tr:hover td { background: var(--clr-surface-2); }
.schedule-table .sport-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/* Medal table */
.medal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.medal-table th, .medal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--clr-divider);
}
.medal-table .medal-gold   { color: var(--clr-gold); font-weight: 700; }
.medal-table .medal-silver { color: #8a8a8a; font-weight: 700; }
.medal-table .medal-bronze { color: #c2854b; font-weight: 700; }
.medal-table__empty {
  text-align: center;
  padding: var(--sp-8);
  color: var(--clr-text-muted);
  font-family: var(--ff-serif);
  font-style: italic;
}

/* Athlete spotlight */
.athletes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.athlete {
  text-align: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.athlete:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.athlete__avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--clr-bg-alt) center/cover;
  margin: 0 auto var(--sp-3);
  border: 3px solid var(--clr-gold);
}
.athlete__name { font-family: var(--ff-serif); font-size: 14px; font-weight: 600; }
.athlete__sport { font-size: 11px; color: var(--clr-accent); margin: 3px 0 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.athlete__desc { font-size: 11.5px; color: var(--clr-text-muted); line-height: 1.5; }

/* Newsletter bar (olympics) */
.newsletter-bar {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-hover) 100%);
  border-radius: var(--r-2xl);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  color: #fff;
  margin: var(--sp-12) 0 0;
  position: relative;
  overflow: hidden;
}
.newsletter-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(193,123,92,0.25) 0%, transparent 55%);
  pointer-events: none;
}
.newsletter-bar > * { position: relative; }
.newsletter-bar__eyebrow {
  display: inline-block;
  background: var(--clr-gold);
  color: #1c1917;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
}
.newsletter-bar h2 {
  color: #fff;
  font-size: var(--fs-4xl);
  font-family: var(--ff-serif);
  margin-bottom: var(--sp-6);
  line-height: 1.1;
}
.newsletter-bar__form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.newsletter-bar__form input {
  flex: 1;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-full);
  font-size: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--clr-text);
}

/* ---------- ABOUT / CONTACT ---------- */
.page-hero {
  text-align: center;
  padding: var(--sp-16) 0 var(--sp-10);
  border-bottom: 1px solid var(--clr-divider);
  margin-bottom: var(--sp-10);
}
.page-hero h1 {
  font-family: var(--ff-serif);
  font-size: var(--fs-5xl);
  margin-bottom: var(--sp-4);
}
.page-hero p {
  font-size: 18px;
  color: var(--clr-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: var(--sp-4);
}
.form-grid__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-sm);
  background: var(--clr-surface);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(20,69,61,0.08);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--clr-primary);
  color: var(--clr-bg);
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  z-index: 200;
  transition: transform var(--dur) var(--ease);
  max-width: calc(100% - 32px);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ---------- HOW-TO STEPS (Rules Explained) ---------- */
.how-to-steps { display: grid; gap: var(--sp-5); counter-reset: howto; margin: var(--sp-6) 0; }
.how-to-step {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--r-lg);
  counter-increment: howto;
}
.how-to-step::before {
  content: counter(howto);
  width: 48px; height: 48px;
  background: var(--clr-primary); color: var(--clr-gold);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ff-serif); font-size: 22px; font-weight: 600; flex-shrink: 0;
}
.how-to-step h3 { font-family: var(--ff-serif); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.how-to-step p { font-size: 14.5px; line-height: 1.6; color: var(--clr-text-body); }
.how-to-step .tip { margin-top: var(--sp-3); padding: 10px 14px; background: var(--clr-gold-soft); border-left: 3px solid var(--clr-gold); font-size: 13px; border-radius: var(--r-xs); color: var(--clr-text); }

/* Glossary */
.glossary { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--r-lg); padding: var(--sp-6); }
.glossary dt { font-family: var(--ff-serif); font-size: 18px; font-weight: 600; color: var(--clr-primary); margin-bottom: 4px; margin-top: var(--sp-3); }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { font-size: 14px; line-height: 1.55; color: var(--clr-text-body); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--clr-divider); }
.glossary dd:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* ---------- SERIES HERO & LIST ---------- */
.series-hero {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  padding: var(--sp-14) var(--sp-10);
  background: linear-gradient(135deg, var(--clr-accent) 0%, #7a3a1e 100%);
  color: #fff; margin: var(--sp-4) 0 var(--sp-10);
  isolation: isolate;
}
.series-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(184,148,95,0.3) 0%, transparent 65%);
  z-index: -1;
}
.series-hero__inner { max-width: 720px; }
.series-hero__eyebrow {
  display: inline-block; padding: 5px 14px; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: var(--sp-4); backdrop-filter: blur(8px);
}
.series-hero h1 { color: #fff; font-size: var(--fs-5xl); line-height: 1; margin-bottom: var(--sp-4); letter-spacing: -0.02em; }
.series-hero__desc { font-size: 18px; line-height: 1.55; opacity: 0.92; max-width: 580px; margin-bottom: var(--sp-6); }
.series-hero__meta { display: flex; align-items: center; gap: var(--sp-5); font-size: 13.5px; }

.series-list {
  counter-reset: series;
  background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--r-lg); overflow: hidden;
}
.series-list article {
  display: grid; grid-template-columns: 56px 160px 1fr auto; gap: var(--sp-5);
  padding: var(--sp-5); align-items: center;
  border-bottom: 1px solid var(--clr-divider);
  counter-increment: series;
  transition: background-color var(--dur-fast) var(--ease);
}
.series-list article:last-child { border-bottom: 0; }
.series-list article:hover { background: var(--clr-surface-2); }
.series-list article::before {
  content: counter(series, decimal-leading-zero);
  font-family: var(--ff-serif); font-size: 26px; font-weight: 500;
  color: var(--clr-accent); font-style: italic;
}
.series-list__img { aspect-ratio: 16/10; background: var(--clr-bg-alt) center/cover; border-radius: var(--r-sm); }
.series-list__body h3 { font-family: var(--ff-serif); font-size: 18px; margin-bottom: 4px; line-height: 1.25; }
.series-list__body .m { font-size: 12px; color: var(--clr-text-muted); }

/* ---------- SEARCH RESULTS ---------- */
.search-hero { padding: var(--sp-8) 0 var(--sp-6); }
.search-hero__box { position: relative; max-width: 640px; margin: var(--sp-5) 0; }
.search-hero__box input {
  width: 100%; height: 56px; padding: 0 20px 0 56px;
  border: 1px solid var(--clr-border); background: var(--clr-surface);
  border-radius: var(--r-full); font-size: 16px; box-shadow: var(--sh-sm);
}
.search-hero__box input:focus { outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 4px rgba(20,69,61,0.1); }
.search-hero__box svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--clr-text-muted); }
.search-meta {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 14px; color: var(--clr-text-muted);
  padding-bottom: var(--sp-4); border-bottom: 1px solid var(--clr-divider);
  margin-bottom: var(--sp-5);
}
.search-meta strong { color: var(--clr-text); font-family: var(--ff-serif); font-weight: 600; }
.search-result { display: grid; grid-template-columns: 180px 1fr; gap: var(--sp-5); padding: var(--sp-5) 0; border-bottom: 1px solid var(--clr-divider); }
.search-result:last-child { border-bottom: 0; }
.search-result__img { aspect-ratio: 16/10; background: var(--clr-bg-alt) center/cover; border-radius: var(--r-sm); }
.search-result__body h3 { font-family: var(--ff-serif); font-size: 22px; margin-bottom: 8px; line-height: 1.2; }
.search-result__body p { font-size: 14px; line-height: 1.55; color: var(--clr-text-muted); margin-bottom: 10px; }
.search-result__body mark { background: var(--clr-gold-soft); color: var(--clr-text); padding: 1px 3px; border-radius: 2px; font-weight: 600; }

/* ---------- TAG CLOUD ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  font-size: 13px; color: var(--clr-text); font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
}
.tag-cloud a:hover { background: var(--clr-primary); color: var(--clr-bg); border-color: var(--clr-primary); }
.tag-cloud a .count { color: var(--clr-text-muted); font-size: 11px; }
.tag-cloud a:hover .count { color: rgba(255,255,255,0.7); }

/* ---------- 404 PAGE ---------- */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--sp-12) 0; }
.err-code {
  font-family: var(--ff-serif);
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.9; font-weight: 700;
  color: var(--clr-primary); letter-spacing: -0.04em;
  margin-bottom: var(--sp-5);
}
.err-code em { color: var(--clr-accent); font-style: italic; font-weight: 500; }
.err-title { font-family: var(--ff-serif); font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.err-text { color: var(--clr-text-muted); font-size: 17px; max-width: 520px; margin: 0 auto var(--sp-8); line-height: 1.55; }

/* ---------- LEGAL / PROSE PAGES ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 {
  font-family: var(--ff-serif); font-size: 26px;
  margin-top: var(--sp-10); margin-bottom: var(--sp-4);
  padding-top: var(--sp-5); border-top: 1px solid var(--clr-divider);
}
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-content h3 { font-family: var(--ff-serif); font-size: 20px; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.legal-content p { margin-bottom: var(--sp-4); line-height: 1.75; color: var(--clr-text-body); font-size: 15.5px; }
.legal-content ul, .legal-content ol { padding-left: var(--sp-6); margin-bottom: var(--sp-4); list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 6px; line-height: 1.65; color: var(--clr-text-body); }
.legal-content a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-toc {
  background: var(--clr-surface-2); border-left: 3px solid var(--clr-accent);
  padding: var(--sp-5); margin-bottom: var(--sp-8); border-radius: var(--r-sm);
}
.legal-toc h4 { font-family: var(--ff-sans); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--clr-accent); margin-bottom: var(--sp-3); }
.legal-toc ol { padding-left: 20px; list-style: decimal; }
.legal-toc ol li { padding: 3px 0; font-size: 14px; }
.legal-toc a { color: var(--clr-primary); }
.legal-toc a:hover { color: var(--clr-accent); }

/* ---------- NEWSLETTER FULL PAGE ---------- */
.newsletter-full {
  text-align: center; padding: var(--sp-16) var(--sp-6);
  background: radial-gradient(ellipse at top, rgba(184,148,95,0.08), transparent 60%);
  border-radius: var(--r-2xl); margin: var(--sp-6) 0;
}
.newsletter-full h1 { font-family: var(--ff-serif); font-size: var(--fs-5xl); margin-bottom: var(--sp-5); line-height: 1.05; }
.newsletter-full h1 em { color: var(--clr-accent); font-style: italic; font-weight: 500; }
.newsletter-full__lede { font-size: 18px; color: var(--clr-text-muted); max-width: 560px; margin: 0 auto var(--sp-8); line-height: 1.55; }
.newsletter-full__form { max-width: 520px; margin: 0 auto var(--sp-8); display: flex; gap: 10px; }
.newsletter-full__form input {
  flex: 1; height: 52px; padding: 0 20px;
  border: 1px solid var(--clr-border); background: var(--clr-surface);
  border-radius: var(--r-full); font-size: 15px;
}
.newsletter-full__tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-8); }
.newsletter-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); max-width: 900px; margin: 0 auto; text-align: left; }
.newsletter-benefit {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--r-md); padding: var(--sp-5);
}
.newsletter-benefit__icon {
  width: 44px; height: 44px;
  background: var(--clr-accent-soft); color: var(--clr-accent);
  border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 22px; margin-bottom: var(--sp-3);
}
.newsletter-benefit h3 { font-family: var(--ff-serif); font-size: 18px; margin-bottom: 6px; }
.newsletter-benefit p { font-size: 13.5px; color: var(--clr-text-muted); line-height: 1.55; }

/* Responsive for new components */
@media (max-width: 720px) {
  .series-list article { grid-template-columns: 44px 120px 1fr; }
  .series-list article::before { font-size: 18px; }
  .search-result { grid-template-columns: 1fr; }
  .search-result__img { max-width: 100%; }
  .newsletter-full { padding: var(--sp-10) var(--sp-4); }
  .newsletter-full__form { flex-direction: column; }
  .newsletter-full__form input { height: 46px; }
  .newsletter-benefits { grid-template-columns: 1fr; }
  .how-to-step { grid-template-columns: 36px 1fr; gap: var(--sp-3); padding: var(--sp-4); }
  .how-to-step::before { width: 32px; height: 32px; font-size: 16px; }
  .series-hero { padding: var(--sp-8) var(--sp-5); }
}

/* ---------- UTILITIES ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }

/* =========================================================================
   RESPONSIVE — inch by inch
   ========================================================================= */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .sports-grid:not(.sports-grid--v2) { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .athletes { grid-template-columns: repeat(4, 1fr); }
  .olympic-sports { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1040px) {
  .layout-grid,
  .layout-grid--wide-sidebar { grid-template-columns: 1fr; gap: var(--sp-8); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 1; grid-template-columns: 1fr; }
  .card-feature .card__media { min-height: 240px; }
  .card-feature .card__body { padding: var(--sp-6); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-side-card { min-height: 180px; }
  .hero-main { aspect-ratio: 16/10; }
  .profile-hero__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .profile-avatar { margin: 0 auto; }
  .profile-socials { justify-content: center; }
  .sport-hero__cta { position: static; margin-top: var(--sp-6); }
  .review-top { grid-template-columns: 1fr; }
  .event-cards { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .athletes { grid-template-columns: repeat(3, 1fr); }
  .olympic-sports { grid-template-columns: repeat(2, 1fr); }
  .form-grid__row { grid-template-columns: 1fr; }
  .share-rail { display: none; }
}

@media (max-width: 720px) {
  :root { --container-pad: 16px; }

  /* HEADER-FIX v2 — mobile overlap fix applied */
  .header-search { display: none; }
  .primary-nav   { display: none; }
  .hamburger     { display: inline-flex; }
  .mobile-nav    { display: block; }

  /* 2-column layout on mobile (search is hidden); brand area can shrink, actions stay fixed */
  .header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    height: var(--header-h-mobile);
  }
  /* The hamburger+brand wrapper lives in col 1 — allow it to shrink, truncate brand if needed */
  .header-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .brand {
    min-width: 0;
    flex: 0 1 auto;
  }
  .brand__name {
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .brand__rule { width: 40px; }

  /* Actions never shrink */
  .header-actions { gap: 6px; flex-shrink: 0; }

  /* FIX: previous rule targeted .btn-primary only — Subscribe is .btn-accent.
     Shrink every button inside .header-actions so Subscribe fits on mobile. */
  .header-actions .btn,
  .header-actions .btn-primary,
  .header-actions .btn-accent {
    padding: 7px 14px;
    min-height: 34px;
    font-size: 12.5px;
  }

  .icon-btn { width: 34px; height: 34px; }

  .section { padding: var(--sp-8) 0; }
  .section-title { font-size: 22px; }

  .hero { padding: var(--sp-5) 0 0; }
  .hero-main { aspect-ratio: 4/5; min-height: 420px; }
  .hero-main__inner { padding: var(--sp-5); }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-side-card { min-height: 170px; }
  .hero-side-card__inner { padding: var(--sp-3); }
  .hero-side-card__title { font-size: 15px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .sports-grid:not(.sports-grid--v2) { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .olympic-sports { grid-template-columns: 1fr; }
  .athletes { grid-template-columns: 1fr 1fr; }
  .event-cards { grid-template-columns: 1fr; }

  .card__body { padding: var(--sp-4); gap: var(--sp-2); }
  .card__title { font-size: 15px; }
  .card__meta { font-size: 11px; padding-top: var(--sp-2); }
  .card__media { aspect-ratio: 16/10; }

  .sport-hero { padding: var(--sp-8) var(--sp-5); }
  .sport-hero::after { display: none; }
  .sport-hero__stats { gap: var(--sp-6); }
  .sport-hero__stat .n { font-size: 28px; }

  .article-top__title { font-size: 32px; }
  .article-top__lede { font-size: 16px; }
  .article-meta { gap: var(--sp-3); }
  .article-meta .stats { margin-left: 0; width: 100%; order: 3; padding-top: 8px; border-top: 1px dashed var(--clr-divider); }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 20px; }
  .pull-quote { font-size: 18px; }
  .product-card { grid-template-columns: 100px 1fr; gap: var(--sp-3); padding: var(--sp-3); }
  .product-card__proscons { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box__avatar { margin: 0 auto; }

  .profile-hero { padding: var(--sp-8) var(--sp-5); }
  .profile-avatar { width: 130px; height: 130px; }
  .profile-info h1 { font-size: 38px; }
  .profile-stats { grid-template-columns: 1fr 1fr; width: 100%; }

  .calendar__cell { min-height: 70px; padding: 4px; }
  .calendar__day { font-size: 12px; margin-bottom: 3px; }
  .calendar__event { font-size: 9px; padding: 2px 4px; }
  .calendar__weekdays div { padding: 8px 4px; font-size: 9.5px; }
  .calendar__head { padding: var(--sp-3) var(--sp-4); }
  .calendar__head h3 { font-size: 16px; }

  .cal-hero { padding: var(--sp-8) 0 var(--sp-5); }
  .cal-hero h1 { font-size: 44px; }
  .cal-hero p { font-size: 14px; }
  .sport-filters { gap: 6px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--sp-2); scrollbar-width: none; }
  .sport-filters::-webkit-scrollbar { display: none; }
  .sport-filter { padding: 6px 12px; font-size: 12px; flex-shrink: 0; }

  .score-card { grid-template-columns: 1fr; text-align: center; padding: var(--sp-5) var(--sp-4); gap: var(--sp-4); }
  .score-card__score { font-size: 32px; }
  .live-toolbar { padding: var(--sp-3); font-size: 12px; gap: var(--sp-3); }
  .live-toolbar__filters { flex-wrap: wrap; gap: var(--sp-2); }

  .live-feed { padding-left: var(--sp-5); }
  .live-feed::before { left: 7px; }
  .live-entry::before { left: -18px; top: 18px; }
  .live-entry { padding: var(--sp-4); }
  .live-entry__title { font-size: 16px; }
  .live-entry__stats { grid-template-columns: 1fr; }

  .rating-grid { grid-template-columns: 1fr; gap: var(--sp-3); }

  .countdown { gap: 6px; }
  .countdown__unit { padding: var(--sp-3); min-width: 70px; flex: 1; min-width: 0; max-width: 80px; }
  .countdown__num { font-size: 32px; }
  .countdown__lab { font-size: 9px; letter-spacing: 0.08em; }
  .olympic-hero { padding: var(--sp-10) var(--sp-4); min-height: 340px; }
  .olympic-hero h1 { font-size: 54px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--sp-2); }

  .bottom-nav { display: flex; }
  body { padding-bottom: 68px; }
  .site-footer { margin-bottom: 0; padding-bottom: calc(var(--sp-5) + 68px); }
  .share-rail { display: none; }

  .newsletter-bar { padding: var(--sp-8) var(--sp-4); }
  .newsletter-bar__form { flex-direction: column; }
  .newsletter-bar__form input { height: 46px; }

  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }

  .notif-bar__label { display: none; }
  .notif-bar { padding: 8px 0; }

  .timeline__track { min-width: 520px; }
}

@media (max-width: 400px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .sports-grid:not(.sports-grid--v2) { grid-template-columns: 1fr; }
  .athletes { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
}

/* ===== Ad wrappers (DB-driven ads) ===== */
.ad-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--sp-5) 0;
}
.ad-wrap img, .ad-wrap > * { max-width: 100%; }
.ad-wrap--in-article   { margin: var(--sp-6) 0; }
.ad-wrap--above-related{ margin: var(--sp-6) 0; }
.ad-wrap--sidebar      { flex-direction: column; }
.ad-wrap--footer       { margin-top: var(--sp-8); }
.ad-wrap--header       { padding: var(--sp-3) 0; border-top: 1px solid var(--clr-border,#efe9db); border-bottom: 1px solid var(--clr-border,#efe9db); }

.ad-slot {
  display: block;
  background: repeating-linear-gradient(45deg, #f6f2e9, #f6f2e9 10px, #f0ebdf 10px, #f0ebdf 20px);
  color: #8a847b;
  padding: 28px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-md);
}
.ad-slot--sidebar { margin-bottom: var(--sp-5); }

/* ===== Events grid ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}
.event-card {
  background: #fff;
  border: 1px solid var(--clr-border,#efe9db);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform 0.18s, box-shadow 0.18s;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(20,69,61,0.08);
}
/* Note: this rule used to set color: var(--clr-gold) which clashed with
   the inherited background:var(--clr-primary) from the earlier rule
   block (line ~2143). The colour is now pinned in the dark-mode
   contrast-fix section above so it works in both light + dark themes. */
.event-card__date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-card__title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--clr-primary,#14453d);
  margin: 0;
  line-height: 1.25;
}
.event-card__title a { color: inherit; text-decoration: none; }
.event-card__title a:hover { color: var(--clr-gold,#b8945f); }
.event-card__venue {
  font-size: 14px;
  color: var(--clr-text-muted,#6b6660);
}
.event-card__meta {
  display: flex;
  gap: var(--sp-3);
  font-size: 12px;
  color: var(--clr-text-muted,#6b6660);
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--clr-border,#efe9db);
}

/* ===== Live blog ===== */
.live-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #d63031;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
}
.live-banner::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1.4s infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.live-entries {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.live-entry {
  padding: var(--sp-4);
  border-left: 3px solid var(--clr-gold,#b8945f);
  background: #fbf9f4;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.live-entry time {
  display: block;
  font-size: 11px;
  color: var(--clr-text-muted,#6b6660);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.live-entry h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--clr-primary,#14453d);
}

/* ===== Comment list ===== */
.comment-list { list-style: none; padding: 0; margin: 0 0 var(--sp-6); }
.comment {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--clr-border,#efe9db);
  border-radius: var(--r-md);
  background: #fff;
}
.alert--success { background: #e8f2ee; color: #14453d; }
.alert--error   { background: #fff0e6; color: #b75e2c; }

/* Print */
@media print {
  .site-header, .site-footer, .bottom-nav, .share-rail, .notif-bar, .ad-slot, .ad-wrap { display: none !important; }
  body { background: #fff; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* HEADER-FIX v2 — ultra-narrow (<=400px) */
@media (max-width: 400px) {
  :root { --container-pad: 12px; }

  .header-bar { column-gap: 6px; }
  .header-brand-group { gap: 6px; }

  .brand__name { font-size: 15px; letter-spacing: 0; }
  .brand__rule { width: 30px; }

  .header-actions { gap: 4px; }
  .header-actions .btn,
  .header-actions .btn-primary,
  .header-actions .btn-accent {
    padding: 6px 11px;
    min-height: 32px;
    font-size: 11.5px;
  }

  .icon-btn     { width: 32px; height: 32px; }
  .icon-btn svg { width: 16px; height: 16px; }

  .hamburger { width: 32px; height: 32px; }
}

/* CARD-POLISH-V1 — homepage card uniformity */
.card {
  /* Guarantee equal height inside their grid row regardless of content */
  height: 100%;
}
.card__body {
  /* already flex-column with flex:1; ensure meta sticks to bottom */
  justify-content: flex-start;
}
.card__title {
  /* Clamp to 3 lines so every card title occupies the same height.
     Falls back gracefully in browsers without -webkit-line-clamp. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 3);   /* reserve height for 3 lines */
}
.card__meta {
  /* Push meta to the bottom so the author/time row is always pinned,
     no matter how short the title is. */
  margin-top: auto;
}
/* Mobile tweak — allow title to 2 lines on narrow phones to save space */
@media (max-width: 480px) {
  .card__title {
    -webkit-line-clamp: 3;
    min-height: calc(1.2em * 3);
    font-size: 15px;
  }
}

/* CARD-META-V1 — keep 'Xh ago' + author name on one line */
.card__meta {
  /* Allow shrinking children without overflow */
  min-width: 0;
  gap: 8px;                    /* tighter than --sp-3 to fit 4-card grid */
  flex-wrap: nowrap;           /* never break the row mid-field */
}
.card__meta span {
  white-space: nowrap;         /* "7h ago", "Miguel Torres" stay together */
  min-width: 0;
}
/* The author name is the most likely to overflow — allow it to shrink
   with an ellipsis, preserving the avatar + dot + time on the same line. */
.card__meta span:nth-of-type(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
/* Dot + time stay fixed width */
.card__meta .dot { flex: 0 0 auto; }

/* Ultra-narrow: drop the author name, keep only the time  */
@media (max-width: 360px) {
  .card__meta span:nth-of-type(2),
  .card__meta .dot { display: none; }
}


/* HERO-FREE-HOME-V1 — homepage crop-free + magazine-style redesign */

/* === 1. Card media — natural 3:2 (matches AI image ratio), no crop, no box === */
.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background-color: var(--clr-bg-alt);
  overflow: hidden;
  display: block;
  border-radius: var(--r-md);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;  /* fills card, but image ratio matches card so zero crop */
  object-position: center;
  display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card__media img { transform: scale(1.04); }

/* === 2. Card — unique magazine-style lift + gold glow === */
.card {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -8px rgba(184,148,95,0.25), 0 8px 18px rgba(0,0,0,0.08);
  border-color: var(--clr-gold);
}

/* === 3. Hero — cinematic full-image layered card === */
.hero-main, .hero-side-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--clr-bg-alt);
  isolation: isolate;
}
.hero-main__img, .hero-side__img {
  position: relative;
  width: 100%; height: auto;
  display: block;
  z-index: 0;
  aspect-ratio: auto;  /* let image keep natural ratio */
}
.hero-main__img img, .hero-side__img img {
  width: 100%; height: auto; display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.hero-main:hover .hero-main__img img,
.hero-side-card:hover .hero-side__img img { transform: scale(1.04); }
.hero-main::after, .hero-side-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-main__inner, .hero-side-card__inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-6);
  z-index: 2;
  color: #fff;
}
.hero-main__title, .hero-side-card__title { color: #fff !important; }
.hero-main__title a, .hero-side-card__title a { color: #fff !important; }

/* === 4. MOST READ — magazine-numbered with real thumbnails === */
.most-read__img-real {
  width: 72px; height: 56px;
  border-radius: var(--r-sm);
  background-color: var(--clr-bg-alt);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.most-read__img-real img {
  width: 100%; height: 100%;
  object-fit: cover; /* 72x56 = 1.285:1 — close enough to 3:2 images */
  object-position: center;
  display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.most-read li:hover .most-read__img-real img { transform: scale(1.1); }
.most-read li {
  transition: background .25s ease;
  border-radius: var(--r-sm);
  padding: var(--sp-3) 0;
}
.most-read li:hover { background: linear-gradient(90deg, rgba(184,148,95,0.06), transparent); }

/* === 5. Hero aspect override on mobile === */
@media (max-width: 720px) {
  .hero-main__inner, .hero-side-card__inner { padding: var(--sp-4); }
  .hero-main__title { font-size: 22px !important; line-height: 1.15; }
  .hero-side-card__title { font-size: 15px !important; }
}

/* === 6. Category rail (explore sports) — unique hover === */
.olympic-sports a, .sport-tile { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.olympic-sports a:hover, .sport-tile:hover { transform: translateY(-4px) scale(1.02); }


/* COVER-STORY-HOME-V1 — UNIQUE editorial magazine hero layout */

/* === 1. HERO MAIN card — split layout: image on top, text below === */
.hero-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: auto !important;  /* kill 4:3 force */
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex; flex-direction: column;
  min-height: 0 !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.hero-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -12px rgba(184,148,95,0.3);
  border-color: var(--clr-gold);
}
.hero-main::after { display: none !important; }  /* kill the dark gradient overlay */

/* Image wrapper — natural 3:2 ratio, fills card width */
.hero-main__img {
  position: relative !important;
  inset: auto !important;
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.hero-main__img img {
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: none !important;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-main:hover .hero-main__img img { transform: scale(1.04) !important; }

/* Text block — below the image, in its own clean space */
.hero-main__inner {
  position: relative !important;
  padding: var(--sp-6) !important;
  max-width: none !important;
  inset: auto !important;
  color: var(--clr-text) !important;
  background: var(--clr-surface);
  flex: 1;
  display: flex; flex-direction: column; gap: var(--sp-3);
  border-top: 3px solid var(--clr-gold);  /* unique gold accent divider */
}
.hero-main__tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-main__title {
  color: var(--clr-text) !important;
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: var(--ff-serif);
  font-weight: 600;
}
.hero-main__title a { color: inherit !important; }
.hero-main__meta {
  color: var(--clr-text-muted) !important;
  font-size: 13px;
  display: flex; align-items: center; gap: var(--sp-2);
  flex-wrap: wrap;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--clr-divider);
}

/* === 2. HERO SIDE cards — same pattern === */
.hero-side-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: auto !important;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex; flex-direction: column;
  min-height: 0 !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.hero-side-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -10px rgba(184,148,95,0.25);
  border-color: var(--clr-gold);
}
.hero-side-card::after { display: none !important; }

.hero-side__img {
  position: relative !important;
  inset: auto !important;
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.hero-side__img img {
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: none !important;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-side-card:hover .hero-side__img img { transform: scale(1.05) !important; }

.hero-side-card__inner {
  position: relative !important;
  padding: var(--sp-5) !important;
  inset: auto !important;
  color: var(--clr-text) !important;
  background: var(--clr-surface);
  flex: 1;
  display: flex; flex-direction: column; gap: var(--sp-2);
  border-top: 2px solid var(--clr-gold);
}
.hero-side-card__title {
  color: var(--clr-text) !important;
  font-size: 18px;
  line-height: 1.2;
  font-family: var(--ff-serif);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}
.hero-side-card__title a { color: inherit !important; }

/* === 3. Mobile responsive === */
@media (max-width: 720px) {
  .hero-main__inner { padding: var(--sp-4) !important; }
  .hero-main__title { font-size: 22px; }
  .hero-side-card__inner { padding: var(--sp-4) !important; }
  .hero-side-card__title { font-size: 16px; }
}

/* === 4. Hero chip styling — floating on the gold accent line === */
.hero-main__tags .chip, .hero-side-card__inner .chip {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
}


/* CATEGORY-FREE-V1 — cover-story magazine layout for category page */

/* === Feature card (top banner) === */
.cat-feature {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.cat-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -16px rgba(184,148,95,0.32);
  border-color: var(--clr-gold);
}
.cat-feature__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--clr-bg-alt);
  position: relative;
}
.cat-feature__media picture, .cat-feature__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.cat-feature:hover .cat-feature__media img { transform: scale(1.04); }
.cat-feature__placeholder { width:100%; height:100%; }
.cat-feature__body {
  padding: var(--sp-7);
  display: flex; flex-direction: column; gap: var(--sp-3);
  border-top: 3px solid var(--clr-gold);
}
.cat-feature__title {
  font-family: var(--ff-serif);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
  color: var(--clr-text);
}
.cat-feature__title a { color: inherit; text-decoration: none; }
.cat-feature__title a:hover { color: var(--clr-gold); }
.cat-feature__excerpt {
  color: var(--clr-text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.cat-feature__meta {
  display: flex; align-items: center; gap: var(--sp-2);
  flex-wrap: wrap;
  color: var(--clr-text-muted);
  font-size: 13px;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--clr-divider);
}
.cat-feature__meta .dot { width:3px; height:3px; border-radius:50%; background: var(--clr-text-muted); display:inline-block; }

/* === Grid card (smaller items) === */
.cat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  height: 100%;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -14px rgba(184,148,95,0.28);
  border-color: var(--clr-gold);
}
.cat-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--clr-bg-alt);
  position: relative;
}
.cat-card__media picture, .cat-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__placeholder { width:100%; height:100%; }
.cat-card__body {
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  border-top: 2px solid var(--clr-gold);
  flex: 1;
}
.cat-card__tags { margin-bottom: var(--sp-1); }
.cat-card__title {
  font-family: var(--ff-serif);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 600;
  color: var(--clr-text);
}
.cat-card__title a { color: inherit; text-decoration: none; }
.cat-card__title a:hover { color: var(--clr-gold); }
.cat-card__excerpt {
  color: var(--clr-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.cat-card__meta {
  display: flex; align-items: center; gap: var(--sp-2);
  flex-wrap: wrap;
  color: var(--clr-text-muted);
  font-size: 12px;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--clr-divider);
}
.cat-card__meta .dot { width:3px; height:3px; border-radius:50%; background: var(--clr-text-muted); display:inline-block; }

/* === Mobile responsive === */
@media (max-width: 720px) {
  .cat-feature__body { padding: var(--sp-5); }
  .cat-feature__title { font-size: 24px; }
  .cat-feature__excerpt { font-size: 15px; }
  .cat-card__body { padding: var(--sp-4); }
  .cat-card__title { font-size: 17px; }
  /* Tab filter row — kill the visible scrollbar */
  .sport-tabs, .category-tabs, [class*='tabs-row'] { scrollbar-width: none; }
  .sport-tabs::-webkit-scrollbar, .category-tabs::-webkit-scrollbar, [class*='tabs-row']::-webkit-scrollbar { display: none; }
}


/* ════════════════════════════════════════════════════════════
   NEWSLETTER-V2 — pro signup page styles
   ════════════════════════════════════════════════════════════ */

.nl2-hero {
  max-width: 760px;
  margin: var(--sp-10) auto;
  padding: var(--sp-9) var(--sp-7);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl, 24px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nl2-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--clr-gold) 0%, var(--clr-primary) 60%, var(--clr-gold) 100%);
}
.nl2-badge {
  display: inline-block;
  background: var(--clr-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: var(--sp-5);
}
.nl2-hero__title {
  font-family: var(--ff-serif);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--sp-4);
  font-weight: 600;
  color: var(--clr-text);
}
.nl2-hero__title em {
  font-style: italic;
  color: var(--clr-gold);
}
.nl2-hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto var(--sp-7);
}

/* === FORM === */
.nl2-form {
  text-align: left;
  display: flex; flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.nl2-form__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-4);
}
.nl2-field { display: flex; flex-direction: column; gap: 6px; }
.nl2-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  display: flex; align-items: center; gap: 6px;
}
.nl2-field__optional {
  font-weight: 400;
  color: var(--clr-text-muted);
  font-size: 12px;
}
.nl2-field__required {
  color: var(--clr-gold);
  font-weight: 700;
}
.nl2-field input[type="text"],
.nl2-field input[type="email"] {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 16px 18px;
  border: 2px solid var(--clr-border);
  border-radius: var(--r-md, 12px);
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.nl2-field input[type="text"]::placeholder,
.nl2-field input[type="email"]::placeholder {
  color: var(--clr-text-soft, #a39d8e);
}
.nl2-field input[type="text"]:hover,
.nl2-field input[type="email"]:hover {
  border-color: color-mix(in srgb, var(--clr-gold) 50%, var(--clr-border));
}
.nl2-field input[type="text"]:focus,
.nl2-field input[type="email"]:focus {
  outline: none;
  border-color: var(--clr-gold);
  background: var(--clr-surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clr-gold) 22%, transparent);
}
.nl2-field input:invalid:not(:placeholder-shown) {
  border-color: #c14b4b;
}

/* === SEGMENTS === */
.nl2-segments {
  border: 0; padding: 0; margin: 0;
}
.nl2-segments__legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
  padding: 0;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.nl2-segments__hint {
  font-weight: 400;
  color: var(--clr-text-muted);
  font-size: 12px;
}
.nl2-segments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.nl2-chip {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--clr-bg);
  border: 2px solid var(--clr-border);
  border-radius: var(--r-md, 12px);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text);
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
  user-select: none;
}
.nl2-chip:hover {
  border-color: color-mix(in srgb, var(--clr-gold) 60%, var(--clr-border));
  background: var(--clr-surface);
}
.nl2-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nl2-chip__icon {
  font-size: 20px;
  line-height: 1;
}
.nl2-chip__label {
  flex: 1;
  line-height: 1.2;
}
.nl2-chip__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  flex-shrink: 0;
}
.nl2-chip:has(input:checked) {
  border-color: var(--clr-gold);
  background: color-mix(in srgb, var(--clr-gold) 8%, var(--clr-surface));
}
.nl2-chip:has(input:checked) .nl2-chip__check {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: #fff;
}
.nl2-chip:focus-within {
  outline: 3px solid color-mix(in srgb, var(--clr-gold) 35%, transparent);
  outline-offset: 2px;
}

/* === CONSENT === */
.nl2-consent {
  background: var(--clr-bg-alt, #faf6ec);
  border: 1px solid var(--clr-divider);
  border-radius: var(--r-md, 12px);
  padding: 12px 14px;
}
.nl2-consent__row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--clr-text-muted);
  cursor: pointer;
}
.nl2-consent__row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
}
.nl2-consent__row a { color: var(--clr-primary); text-decoration: underline; }

/* === SUBMIT === */
.nl2-submit {
  position: relative;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 17px 28px;
  background: var(--clr-primary);
  color: #fff;
  border: 2px solid var(--clr-primary);
  border-radius: var(--r-md, 12px);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
}
.nl2-submit:hover {
  background: color-mix(in srgb, var(--clr-primary) 88%, #000);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--clr-primary) 45%, transparent);
}
.nl2-submit:active { transform: translateY(0); }
.nl2-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.nl2-submit.is-loading .nl2-submit__label { opacity: 0; }
.nl2-submit__spinner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: nl2spin .8s linear infinite;
}
.nl2-submit.is-loading .nl2-submit__spinner { opacity: 1; }
@keyframes nl2spin { to { transform: rotate(360deg); } }

/* === STATUS === */
.nl2-status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md, 12px);
  display: none;
  line-height: 1.5;
}
.nl2-status.is-success {
  display: block;
  background: color-mix(in srgb, #2aa36a 10%, transparent);
  border: 1px solid color-mix(in srgb, #2aa36a 35%, transparent);
  color: #145638;
}
.nl2-status.is-error {
  display: block;
  background: color-mix(in srgb, #c14b4b 10%, transparent);
  border: 1px solid color-mix(in srgb, #c14b4b 35%, transparent);
  color: #872626;
}

/* === TRUST BADGES === */
.nl2-trust {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  justify-content: center;
  font-size: 12px;
  color: var(--clr-text-muted);
}
.nl2-trust li {
  display: flex; align-items: center; gap: 6px;
}
.nl2-trust span { color: var(--clr-gold); font-weight: 700; }

/* === BENEFITS GRID === */
.nl2-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  max-width: 1080px;
  margin: var(--sp-10) auto;
}
.nl2-benefit {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg, 16px);
  padding: var(--sp-6);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nl2-benefit:hover {
  transform: translateY(-4px);
  border-color: var(--clr-gold);
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--clr-gold) 30%, transparent);
}
.nl2-benefit__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: color-mix(in srgb, var(--clr-gold) 14%, var(--clr-surface));
  color: var(--clr-gold);
  border-radius: 14px;
  font-size: 22px;
  margin-bottom: var(--sp-3);
}
.nl2-benefit h3 {
  font-family: var(--ff-serif);
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--clr-text);
}
.nl2-benefit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--clr-text-muted);
}

/* === FAQ === */
.nl2-faq {
  max-width: 760px;
  margin: var(--sp-10) auto;
}
.nl2-faq h2 {
  font-family: var(--ff-serif);
  font-size: 28px;
  margin: 0 0 var(--sp-5);
  color: var(--clr-text);
  text-align: center;
}
.nl2-faq details {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md, 12px);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color .2s ease, background .2s ease;
}
.nl2-faq details[open] {
  border-color: var(--clr-gold);
  background: color-mix(in srgb, var(--clr-gold) 4%, var(--clr-surface));
}
.nl2-faq summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--clr-text);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.nl2-faq summary::-webkit-details-marker { display: none; }
.nl2-faq summary::after {
  content: "+";
  width: 22px; height: 22px;
  border: 1.5px solid var(--clr-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted);
  font-size: 16px; line-height: 1;
  flex-shrink: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.nl2-faq details[open] summary::after { content: "−"; transform: rotate(180deg); border-color: var(--clr-gold); color: var(--clr-gold); }
.nl2-faq p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--clr-text-muted);
}
.nl2-faq a { color: var(--clr-primary); text-decoration: underline; }

/* === Status pages (confirm / unsubscribe / manage) === */
.nl2-status-page {
  max-width: 540px;
  margin: var(--sp-10) auto;
  padding: var(--sp-9) var(--sp-7);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl, 24px);
  text-align: center;
}
.nl2-status-page__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--sp-5);
  color: #fff;
}
.nl2-status-page__icon--ok  { background: #2aa36a; }
.nl2-status-page__icon--err { background: #c14b4b; }
.nl2-status-page h1 {
  font-family: var(--ff-serif);
  font-size: 32px;
  margin: 0 0 var(--sp-3);
}
.nl2-status-page p {
  font-size: 15px; line-height: 1.6;
  color: var(--clr-text-muted);
  margin: 0 0 var(--sp-5);
}
.nl2-status-page__cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* === Manage page === */
.nl2-manage {
  max-width: 760px;
  margin: var(--sp-9) auto;
  padding: var(--sp-7);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl, 24px);
}
.nl2-manage h1 {
  font-family: var(--ff-serif);
  font-size: 32px;
  margin: 0 0 var(--sp-3);
}
.nl2-manage__lede {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
  font-size: 15px;
}
.nl2-manage__form .nl2-segments__grid { margin-bottom: var(--sp-6); }
.nl2-manage__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-divider);
}

/* === Mobile === */
@media (max-width: 720px) {
  .nl2-hero { padding: var(--sp-6) var(--sp-5); margin: var(--sp-5) auto; }
  .nl2-hero__title { font-size: 32px; }
  .nl2-hero__lede { font-size: 15px; }
  .nl2-form__row { grid-template-columns: 1fr; gap: var(--sp-3); }
  .nl2-segments__grid { grid-template-columns: 1fr 1fr; }
  .nl2-status-page, .nl2-manage { padding: var(--sp-6) var(--sp-5); }
  .nl2-status-page h1, .nl2-manage h1 { font-size: 26px; }
  .nl2-faq h2 { font-size: 24px; }
}


/* ════════════════════════════════════════════════════════════
   NL2-CHIP-OVERFLOW-FIX — tighter chip layout, no right-edge crop
   ════════════════════════════════════════════════════════════ */

/* 1) Hero card overflow guard + slightly tighter padding so grid has room */
.nl2-hero {
  box-sizing: border-box;
  max-width: min(760px, calc(100vw - 24px));
  overflow: hidden;
}
.nl2-form { min-width: 0; }
.nl2-segments { min-width: 0; }

/* 2) Grid — use minmax(0,1fr) so cells truly shrink to container width */
.nl2-segments__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

/* 3) Chip — tighter padding, allow children to shrink */
.nl2-chip {
  padding: 10px 12px;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.nl2-chip__icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}
.nl2-chip__label {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13.5px;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.nl2-chip__check {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

/* 4) Mobile — 2 cols ALWAYS fit cleanly within viewport */
@media (max-width: 720px) {
  .nl2-hero {
    padding: var(--sp-5) var(--sp-4);
    margin: var(--sp-4) auto;
    border-radius: 18px;
  }
  .nl2-segments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .nl2-chip {
    padding: 9px 10px;
    gap: 7px;
  }
  .nl2-chip__icon { font-size: 16px; }
  .nl2-chip__label {
    font-size: 12.5px;
    line-height: 1.2;
  }
  .nl2-chip__check {
    width: 18px; height: 18px;
    border-width: 1.5px;
  }
  .nl2-chip__check svg { width: 11px; height: 11px; }
}

/* 5) Very small screens (< 380px) — stack to 1 col so labels never wrap badly */
@media (max-width: 360px) {
  .nl2-segments__grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   MTABLE-V1 — advanced responsive data table component
   Desktop: editorial table   Mobile (<720): stacked-card layout
   ════════════════════════════════════════════════════════════ */

.tsr-mtable {
  margin: 28px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--clr-surface, #fff);
  border: 1px solid var(--clr-border, #efe9db);
  box-shadow: 0 4px 14px rgba(20, 69, 61, 0.06);
}
.tsr-mtable table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.tsr-mtable thead {
  background: linear-gradient(135deg, var(--clr-primary, #14453d), #0c2e26);
}
.tsr-mtable thead th {
  text-align: left;
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 0;
  position: relative;
}
.tsr-mtable thead th + th {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.tsr-mtable thead th::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--clr-gold, #b8945f);
}
.tsr-mtable tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--clr-divider, #efe9db);
}
.tsr-mtable tbody tr:last-child { border-bottom: 0; }
.tsr-mtable tbody tr:hover {
  background: rgba(184, 148, 95, 0.04);
}
.tsr-mtable tbody tr:nth-child(even) {
  background: rgba(184, 148, 95, 0.025);
}
.tsr-mtable tbody tr:nth-child(even):hover {
  background: rgba(184, 148, 95, 0.06);
}
.tsr-mtable tbody td {
  padding: 14px 18px;
  color: var(--clr-text, #1c1917);
  vertical-align: top;
  border: 0;
}
.tsr-mtable tbody td:first-child {
  font-weight: 600;
  color: var(--clr-primary, #14453d);
  font-family: var(--ff-serif, 'Fraunces', Georgia, serif);
  font-size: 15px;
  position: relative;
}
.tsr-mtable tbody td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--clr-gold, #b8945f);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tsr-mtable tbody tr:hover td:first-child::before {
  opacity: 1;
}

/* === MOBILE TRANSFORM (<720px): cards instead of horizontal scroll === */
@media (max-width: 720px) {
  .tsr-mtable {
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .tsr-mtable table,
  .tsr-mtable thead,
  .tsr-mtable tbody,
  .tsr-mtable tr,
  .tsr-mtable td {
    display: block;
    width: 100%;
  }
  .tsr-mtable thead {
    /* Hide visually but keep for screen readers */
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .tsr-mtable tbody tr {
    background: var(--clr-surface, #fff) !important;
    border: 1px solid var(--clr-border, #efe9db) !important;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(20, 69, 61, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  .tsr-mtable tbody tr:hover {
    transform: translateY(-2px);
    border-color: var(--clr-gold, #b8945f) !important;
  }
  .tsr-mtable tbody tr:first-child {
    border-top: 3px solid var(--clr-gold, #b8945f) !important;
  }
  .tsr-mtable tbody td {
    padding: 8px 14px;
    border-bottom: 1px dashed var(--clr-divider, #f0e9d8);
    text-align: left;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: baseline;
    font-size: 13.5px;
  }
  .tsr-mtable tbody td:last-child {
    border-bottom: 0;
  }
  .tsr-mtable tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--clr-text-muted, #6b6660);
    line-height: 1.4;
    padding-top: 2px;
  }
  .tsr-mtable tbody td:first-child {
    background: linear-gradient(180deg, rgba(184, 148, 95, 0.08), transparent);
    font-size: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 9px 9px 0 0;
  }
  .tsr-mtable tbody td:first-child::before {
    content: attr(data-label);
    position: static;
    width: auto; height: auto;
    background: transparent;
    color: var(--clr-text-muted, #6b6660);
    opacity: 1;
  }
  .tsr-mtable tbody td:first-child::after {
    display: none;
  }
}

/* === Optional: caption above the table === */
.tsr-mtable__caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-text-muted, #6b6660);
  padding: 12px 18px 0;
  margin-bottom: -8px;
}

/* === Footer note (optional, e.g., source citation) === */
.tsr-mtable__footer {
  padding: 10px 18px;
  font-size: 12px;
  color: var(--clr-text-muted, #6b6660);
  background: rgba(184, 148, 95, 0.05);
  border-top: 1px solid var(--clr-divider, #efe9db);
  font-style: italic;
}
@media (max-width: 720px) {
  .tsr-mtable__caption {
    padding: 0 4px 8px;
    font-size: 10px;
  }
  .tsr-mtable__footer {
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    padding: 10px 14px;
  }
}

/* === DARK MODE === */
[data-theme="dark"] .tsr-mtable {
  background: #1a1f1d;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .tsr-mtable thead {
  background: linear-gradient(135deg, #0c2e26, #061712);
}
[data-theme="dark"] .tsr-mtable tbody tr:nth-child(even) {
  background: rgba(184, 148, 95, 0.04);
}
[data-theme="dark"] .tsr-mtable tbody td {
  color: #e8e2d1;
}
[data-theme="dark"] .tsr-mtable tbody td:first-child {
  color: var(--clr-gold, #b8945f);
}
@media (max-width: 720px) {
  [data-theme="dark"] .tsr-mtable tbody tr {
    background: #1a1f1d !important;
    border-color: rgba(255,255,255,0.08) !important;
  }
}


/* MTABLE-V1.1 — sub-360px: stack label above value (no clipping) */
@media (max-width: 380px) {
  .tsr-mtable tbody td {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .tsr-mtable tbody td::before {
    font-size: 9.5px;
    letter-spacing: 0.8px;
  }
  .tsr-mtable tbody td:first-child {
    font-size: 15px;
    padding: 10px 12px 8px;
  }
}


/* ════════════════════════════════════════════════════════════
   MTABLE-CAPTION-FIX-V21 — caption no longer clips under header
   ════════════════════════════════════════════════════════════ */

.tsr-mtable__caption {
  /* Override V1's margin-bottom:-8px which caused letters to crop */
  margin-bottom: 0 !important;
  padding: 14px 18px 12px !important;
  background: linear-gradient(180deg, rgba(184,148,95,0.10), rgba(184,148,95,0.02));
  border-bottom: 1px solid var(--clr-border, #efe9db);
  color: var(--clr-primary, #14453d);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.4;        /* ensure full letter height is rendered */
  position: relative;
}
.tsr-mtable__caption::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--clr-gold, #b8945f);
}

/* Dark mode */
[data-theme="dark"] .tsr-mtable__caption {
  background: linear-gradient(180deg, rgba(184,148,95,0.16), rgba(184,148,95,0.04));
  color: var(--clr-gold, #b8945f);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* Mobile: caption becomes standalone chip ABOVE the stacked cards */
@media (max-width: 720px) {
  .tsr-mtable__caption {
    margin-bottom: 10px !important;
    padding: 10px 14px !important;
    border-radius: 10px;
    border: 1px solid var(--clr-border, #efe9db);
    border-bottom: 1px solid var(--clr-border, #efe9db);
    font-size: 10.5px;
  }
  .tsr-mtable__caption::before {
    border-radius: 10px 0 0 10px;
  }
}


/* ════════════════════════════════════════════════════════════
   HOWTO-STEPS-V21 — premium ordered list for HowTo step blocks
   ════════════════════════════════════════════════════════════ */
.tsr-howto-steps {
  counter-reset: tsr-step;
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 14px;
}
.tsr-howto-steps li {
  position: relative;
  padding: 18px 22px 18px 70px;
  background: var(--clr-surface, #fff);
  border: 1px solid var(--clr-border, #efe9db);
  border-left: 4px solid var(--clr-gold, #b8945f);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--clr-text, #1c1917);
  box-shadow: 0 2px 8px rgba(20,69,61,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tsr-howto-steps li:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 14px rgba(184,148,95,0.12);
}
.tsr-howto-steps li::before {
  counter-increment: tsr-step;
  content: counter(tsr-step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary, #14453d), #0c2e26);
  color: var(--clr-gold, #b8945f);
  font-family: var(--ff-serif, 'Fraunces', Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.tsr-howto-steps li strong {
  color: var(--clr-primary, #14453d);
  font-weight: 700;
  margin-right: 4px;
}
[data-theme="dark"] .tsr-howto-steps li {
  background: #1a1f1d;
  border-color: rgba(255,255,255,0.08);
  color: #e8e2d1;
}
[data-theme="dark"] .tsr-howto-steps li strong { color: var(--clr-gold, #b8945f); }

/* SVG widget responsive */
.tsr-court-svg svg { max-width: 100%; height: auto; }
@media (max-width: 720px) {
  .tsr-court-svg { padding: 18px 10px 10px !important; }
  .tsr-court-svg svg { font-size: 90%; }
  .tsr-howto-steps li { padding: 14px 16px 14px 60px; font-size: 14px; }
  .tsr-howto-steps li::before { left: 12px; width: 32px; height: 32px; font-size: 16px; }
}
