/* ==========================================================================
   Sportsnar theme, v0.4
   A sports publication with first-class live scores.

   1. Fonts and tokens   2. Base and type scale   3. Layout and rhythm
   4. Header, ticker, navigation   5. Shared components   6. Match rows
   7. Scoreboards   8. Tables   9. Match pages   10. Cricket scorecard
   11. Editorial: stories, cards, articles   12. Homepage   13. About text
   14. Footer   15. Utilities
   ========================================================================== */

/* 1. Fonts and tokens ------------------------------------------------------ */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --paper: #f7f8fa;
  --card: #ffffff;
  --wash: #f1f3f5;
  --line: #e8eaed;
  --line-2: #d8dce1;

  /* Text (all pass WCAG AA on --card and --paper) */
  --ink: #17191d;
  --ink-2: #374151;
  --muted: #6b7280;

  /* Brand. --brand is for marks, indicators and large type (3.5:1);
     --brand-ink is the AA-safe orange for small text (5.3:1). */
  --brand: #e85d32;
  --brand-ink: #b9461f;
  --brand-wash: #fdf1ec;

  /* Status */
  --live: #e11d48;
  --live-wash: #fdecf0;
  --break: #b45309;
  --win: #15803d;

  /* Ticker */
  --rail: #17191d;
  --rail-2: #262a31;
  --rail-ink: #f3f4f6;
  --rail-dim: #a3a9b3;
  --rail-live: #fb7185;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans); /* legacy token: body text is Inter everywhere now */

  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-17: 1.0625rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-38: 2.375rem;
  --fs-44: 2.75rem;
  --fs-48: 3rem;

  /* Space: 4px base. Sections are --gap-section apart everywhere. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --gap-section: 40px;

  --r-sm: 8px;
  --r: 12px;
  --wrap: 1280px;
  --gutter: 16px;
  --aside: 360px;
  --header-h: 64px;
  --tabbar-h: 64px;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --gap-section: 48px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 32px; }
}

/* 2. Base and type scale --------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Numbers that line up: scores, tables, clocks, stats. */
.sn-row__score, .sn-table, .sn-chip__row b, .sn-board__score, .sn-vs__score, .sn-ci__score,
.sn-stat__top, .sn-tile b, .sn-timeline__min, .sn-rates, .sn-status, .sn-dates b, .sn-count {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Headings: Barlow Condensed for sports headlines and major headings. */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-wash); color: var(--ink); }

.sn-prose a, p a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sn-prose a:hover, p a:hover { color: var(--ink); }

.screen-reader-text, .sn-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sn-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; }
.sn-skip:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Icons default to a small, quiet size; components size them up where needed. */
.sn-ico { flex: none; width: 18px; height: 18px; }
.sn-group__icon { width: 18px; height: 18px; color: var(--muted); }
.sn-ev-icon { width: 15px; height: 15px; color: var(--muted); }

/* 3. Layout and rhythm ----------------------------------------------------- */

.sn-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sn-main { padding-block: var(--s-6) var(--gap-section); }
@media (max-width: 899px) {
  .sn-main { padding-bottom: calc(var(--tabbar-h) + var(--s-8)); }
}

.sn-cols { display: grid; gap: var(--s-8); }
.sn-cols > *, .sn-hero > * { min-width: 0; }
@media (min-width: 1024px) {
  .sn-cols { grid-template-columns: minmax(0, 1fr) var(--aside); gap: var(--s-8); align-items: start; }
  .sn-aside { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
.sn-stack > * + * { margin-top: var(--gap-section); }
.sn-aside > * + * { margin-top: var(--s-5); }

/* Section heads: one pattern for every section on every page. */
.sn-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.sn-section__title { font-size: var(--fs-28); }
.sn-section__title--sm { font-size: var(--fs-20); font-family: var(--display); font-weight: 700; line-height: 1.1; }
@media (min-width: 768px) { .sn-section__title { font-size: var(--fs-30); } }
.sn-more { flex: none; font-size: var(--fs-14); font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
.sn-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* 4. Header, ticker, navigation ------------------------------------------- */

.sn-preview-bar { background: var(--brand-wash); color: var(--brand-ink); font-size: var(--fs-13); border-bottom: 1px solid #f6d9cd; }
.sn-preview-bar .sn-wrap { display: block; padding-block: 7px; line-height: 1.45; }
.sn-preview-bar strong { font-weight: 650; }

.sn-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.sn-header__bar { display: flex; align-items: center; gap: var(--s-8); height: var(--header-h); }

.sn-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.sn-brand__mark { width: 32px; height: 32px; }
.sn-brand__word { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: 0.005em; }
.sn-footer .sn-brand__mark { width: 28px; height: 28px; }
.sn-footer .sn-brand__word { font-size: 1.75rem; }

.sn-nav { display: none; flex: 1; align-self: stretch; }
.sn-nav ul { display: flex; gap: var(--s-1); height: 100%; margin: 0; padding: 0; list-style: none; }
.sn-nav li { display: flex; }
.sn-nav a {
  position: relative; display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0 14px; font-size: var(--fs-15); font-weight: 550; color: var(--ink-2);
}
.sn-nav a:hover { color: var(--ink); }
.sn-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.sn-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transition: transform 140ms ease-out;
}
.sn-nav a:hover::after { transform: scaleX(0.4); background: var(--line-2); }
.sn-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--brand); }

.sn-count {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px;
  border-radius: 999px; background: var(--live-wash); color: var(--live);
  font-size: var(--fs-12); font-weight: 700;
}
.sn-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.sn-header__tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
.sn-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink-2); }
.sn-icon-btn:hover { background: var(--wash); color: var(--ink); }
.sn-icon-btn .sn-ico { width: 21px; height: 21px; }

@media (min-width: 900px) {
  .sn-nav { display: block; }
  .sn-menu-btn { display: none; }
}

/* Search and mobile menu panels */
.sn-search-pop[hidden], .sn-drawer[hidden] { display: none; }
.sn-search-pop { border-top: 1px solid var(--line); background: var(--card); }
.sn-search-pop .sn-wrap { padding-block: var(--s-4); }

.sn-searchform { display: flex; gap: var(--s-2); }
.sn-searchform input[type="search"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card);
  font: inherit; font-size: var(--fs-16); color: var(--ink);
}
.sn-searchform input[type="search"]::placeholder { color: var(--muted); }
.sn-searchform input[type="search"]:focus { outline: 2px solid var(--brand-ink); outline-offset: -1px; border-color: transparent; }

.sn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 48px; padding: 0 20px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600; font-size: var(--fs-15);
}
.sn-btn:hover { background: #2b2f36; }
.sn-btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.sn-btn--ghost:hover { background: var(--wash); }
.sn-btn--sm { height: 38px; padding: 0 16px; font-size: var(--fs-14); }

.sn-drawer { border-top: 1px solid var(--line); background: var(--card); }
.sn-drawer ul { list-style: none; margin: 0; padding: var(--s-2) 0 var(--s-4); }
.sn-drawer a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: var(--fs-17); font-weight: 600; border-bottom: 1px solid var(--line); }
.sn-drawer .sn-ico { width: 16px; height: 16px; color: var(--muted); }
@media (min-width: 900px) { .sn-drawer { display: none !important; } }

/* Live-score ticker: the one dark band */
.sn-rail { background: var(--rail); color: var(--rail-ink); }
.sn-rail__inner { display: flex; align-items: stretch; max-width: var(--wrap); margin: 0 auto; }
.sn-rail__track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  flex: 1; min-width: 0; padding-inline: calc(var(--gutter) - 14px);
}
.sn-rail__track::-webkit-scrollbar { display: none; }
.sn-chip {
  position: relative; flex: none; width: 188px; padding: 12px 14px 13px; scroll-snap-align: start;
  display: grid; gap: 4px; border-radius: var(--r-sm);
}
.sn-chip + .sn-chip::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--rail-2); }
.sn-chip:hover { background: var(--rail-2); }
.sn-chip:hover::before, .sn-chip:hover + .sn-chip::before { opacity: 0; }
.sn-chip__meta { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-12); color: var(--rail-dim); white-space: nowrap; margin-bottom: 2px; }
.sn-chip__meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.sn-chip__live { color: var(--rail-live); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.sn-chip__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: sn-pulse 1.8s ease-in-out infinite; }
.sn-chip__row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-14); font-weight: 550; line-height: 1.35; }
.sn-chip__row b { font-weight: 700; }
.sn-chip__row--dim { color: var(--rail-dim); }
.sn-rail__all {
  flex: none; display: none; align-items: center; gap: var(--s-2); padding: 0 var(--gutter) 0 20px;
  font-size: var(--fs-14); font-weight: 600; color: var(--rail-ink); border-left: 1px solid var(--rail-2);
}
.sn-rail__all:hover { background: var(--rail-2); }
.sn-rail__all .sn-ico { width: 16px; height: 16px; color: var(--rail-dim); }
@media (min-width: 900px) { .sn-rail__all { display: inline-flex; } }

@keyframes sn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Mobile tab bar */
.sn-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--card);
  border-top: 1px solid var(--line);
}
.sn-tabbar a {
  position: relative; display: grid; place-items: center; align-content: center; gap: 3px;
  font-size: var(--fs-12); font-weight: 600; color: var(--muted);
}
.sn-tabbar .sn-ico { width: 22px; height: 22px; }
.sn-tabbar [aria-current="page"] { color: var(--ink); }
.sn-tabbar [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--brand); border-radius: 0 0 3px 3px; }
.sn-tabbar__dot { position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--card); }
@media (min-width: 900px) { .sn-tabbar { display: none; } }

/* 5. Shared components ---------------------------------------------------- */

.sn-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.sn-panel--pad { padding: var(--s-5); }

/* Page heads for hubs, competitions, teams, players */
.sn-pagehead { padding-top: var(--s-8); background: var(--card); border-bottom: 1px solid var(--line); }
.sn-pagehead__top { display: flex; align-items: center; gap: var(--s-5); padding-bottom: var(--s-5); }
.sn-pagehead__title { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1; }
.sn-pagehead__sub { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-15); max-width: 62ch; }
.sn-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-13); color: var(--muted); margin-bottom: var(--s-3); }
.sn-crumbs a:hover { color: var(--ink); }
.sn-crumbs span[aria-hidden] { color: var(--line-2); }

/* Tabs as links, and tab buttons */
.sn-subnav { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.sn-subnav::-webkit-scrollbar { display: none; }
.sn-subnav a, .sn-subnav button {
  position: relative; flex: none; padding: 12px 14px 14px; font-size: var(--fs-15); font-weight: 550; color: var(--ink-2); white-space: nowrap;
}
.sn-subnav a:first-child, .sn-subnav button:first-child { padding-left: 0; }
.sn-subnav a:hover, .sn-subnav button:hover { color: var(--ink); }
.sn-subnav [aria-current="page"], .sn-subnav [aria-selected="true"] { color: var(--ink); font-weight: 650; }
.sn-subnav [aria-current="page"]::after, .sn-subnav [aria-selected="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
}
.sn-subnav a:first-child::after, .sn-subnav button:first-child::after { left: 0; }

/* Sport filter */
.sn-segment { display: inline-flex; padding: 3px; gap: 2px; background: var(--wash); border-radius: 999px; }
.sn-segment button, .sn-segment a {
  min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-14); font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.sn-segment button:hover { color: var(--ink); }
.sn-segment [aria-pressed="true"], .sn-segment [aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* Date strip */
.sn-dates { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.sn-dates::-webkit-scrollbar { display: none; }
.sn-dates a {
  flex: none; display: grid; justify-items: center; gap: 1px; min-width: 68px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
}
.sn-dates a:hover { border-color: var(--line-2); }
.sn-dates small { font-size: var(--fs-12); color: var(--muted); font-weight: 550; }
.sn-dates b { font-family: var(--display); font-size: var(--fs-20); font-weight: 700; line-height: 1.1; }
.sn-dates [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sn-dates [aria-current="page"] small { color: #d1d5db; }

/* Team badge: logo when one exists, otherwise a code in the same footprint */
.sn-tb {
  flex: none; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--wash); color: var(--ink-2);
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.sn-tb--md { width: 40px; height: 40px; border-radius: 10px; font-size: 12px; }
.sn-tb--lg { width: 60px; height: 60px; border-radius: 14px; font-size: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.sn-tb--xl { width: 76px; height: 76px; border-radius: 16px; font-size: 19px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.sn-tb--logo { background: transparent; padding: 1px; }
.sn-tb--logo img { width: 100%; height: 100%; object-fit: contain; }
.sn-tb--lg.sn-tb--logo, .sn-tb--xl.sn-tb--logo { padding: 8px; background: var(--card); }

/* Competition mark */
.sn-comp__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--wash); color: var(--ink-2); }
.sn-comp__icon .sn-ico { width: 20px; height: 20px; }
.sn-comp__icon--lg { width: 60px; height: 60px; border-radius: 14px; }
.sn-comp__icon--lg .sn-ico { width: 28px; height: 28px; }
.sn-comp__icon--logo { background: var(--card); border: 1px solid var(--line); padding: 5px; }
.sn-comp__icon--logo img { width: 100%; height: 100%; object-fit: contain; }
.sn-group__logo { width: 20px; height: 20px; object-fit: contain; flex: none; }

/* Status: subtle colour, clear hierarchy */
.sn-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); white-space: nowrap; }
.sn-status--live { color: var(--live); font-weight: 700; }
.sn-status--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: sn-pulse 1.8s ease-in-out infinite; }
.sn-status--break { color: var(--break); font-weight: 700; }
.sn-status--time { color: var(--ink); font-weight: 600; font-size: var(--fs-14); }

.sn-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: var(--fs-13); font-weight: 650; background: var(--wash); color: var(--ink-2); white-space: nowrap; }
.sn-pill--live { background: var(--live-wash); color: var(--live); }
.sn-pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: sn-pulse 1.8s ease-in-out infinite; }

/* Form guide */
.sn-form { display: inline-flex; gap: 3px; }
.sn-form i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.sn-form .w { background: var(--win); }
.sn-form .d { background: #6b7280; }
.sn-form .l { background: #c62828; }

/* Facts list */
.sn-facts { margin: 0; display: grid; }
.sn-facts div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.sn-facts div:last-child { border-bottom: 0; }
.sn-facts dt { color: var(--muted); }
.sn-facts dd { margin: 0; text-align: right; font-weight: 600; }

/* Stat tiles */
.sn-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .sn-tiles { grid-template-columns: repeat(4, 1fr); } }
.sn-tile { background: var(--card); padding: var(--s-4) var(--s-5); }
.sn-tile b { display: block; font-family: var(--display); font-size: var(--fs-44); font-weight: 700; line-height: 1; }
.sn-tile span { display: block; margin-top: 6px; font-size: var(--fs-13); color: var(--muted); }

/* Empty and helper states */
.sn-empty { padding: var(--s-8) var(--s-5); text-align: center; color: var(--ink-2); }
.sn-empty h3 { font-size: var(--fs-24); color: var(--ink); margin-bottom: 6px; }
.sn-empty .sn-btn { margin-top: var(--s-4); }
.sn-note { font-size: var(--fs-13); color: var(--muted); }
.sn-updated { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--muted); }
.sn-updated .sn-ico { width: 15px; height: 15px; }

/* 6. Match rows ------------------------------------------------------------- */

.sn-groups > * + * { margin-top: var(--s-4); }
.sn-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sn-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 12px var(--s-4); background: #fbfbfc; border-bottom: 1px solid var(--line);
}
.sn-group__name { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; font-family: var(--sans); font-size: var(--fs-15); font-weight: 650; line-height: 1.3; }
.sn-group__name a:hover { color: var(--brand-ink); }
.sn-group__name small { font-size: var(--fs-13); color: var(--muted); font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sn-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: center;
  padding: 14px var(--s-4); border-bottom: 1px solid var(--line);
}
.sn-row:last-child { border-bottom: 0; }
.sn-row:hover { background: #fafbfc; }
.sn-row:focus-visible { outline-offset: -2px; border-radius: 0; }
.sn-row__status { font-size: var(--fs-13); }
.sn-row__teams { display: grid; gap: 8px; min-width: 0; }
.sn-row__team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-15); font-weight: 500; line-height: 26px; }
.sn-row__team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-row__team--win { font-weight: 700; }
.sn-row__team--lose { color: var(--muted); }
.sn-row__scores { display: grid; gap: 8px; justify-items: end; min-width: 40px; }
.sn-row__score { height: 26px; display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); font-size: var(--fs-16); font-weight: 700; }
.sn-row__score small { font-size: var(--fs-12); color: var(--muted); font-weight: 500; }
.sn-row__note { grid-column: 2 / -1; font-size: var(--fs-13); color: var(--ink-2); margin-top: 8px; }
.sn-row--live .sn-row__score { color: var(--ink); }

/* 7. Scoreboards ------------------------------------------------------------ */

.sn-board {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  container-type: inline-size;
}
.sn-board__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.sn-board__comp { font-size: var(--fs-15); font-weight: 650; line-height: 1.3; }
.sn-board__comp:hover { color: var(--brand-ink); }
.sn-board__comp small { display: block; font-size: var(--fs-13); font-weight: 450; color: var(--muted); }
.sn-board__body { display: block; padding: var(--s-1) var(--s-5); }
.sn-board__team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: 18px 0; }
.sn-board__team + .sn-board__team { border-top: 1px solid var(--line); }
.sn-board__name { min-width: 0; overflow-wrap: anywhere; font-family: var(--display); font-size: clamp(1.375rem, 6cqi, 2.125rem); font-weight: 700; line-height: 1.05; }
.sn-board__name small { display: block; margin-top: 4px; font-family: var(--sans); font-size: var(--fs-13); font-weight: 450; color: var(--muted); }
.sn-board__score { font-family: var(--display); font-size: clamp(2.5rem, 14cqi, 5rem); font-weight: 700; line-height: 0.9; text-align: right; white-space: nowrap; }
.sn-board__score small { font-family: var(--sans); font-size: var(--fs-14); font-weight: 500; color: var(--muted); margin-left: 6px; }
.sn-board__team--dim .sn-board__score, .sn-board__team--dim .sn-board__name { color: var(--muted); }
.sn-board__note { padding: 14px var(--s-5); font-size: var(--fs-15); font-weight: 600; border-top: 1px solid var(--line); background: #fbfbfc; }
.sn-board__events { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--s-5); padding: 14px var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-14); color: var(--ink-2); }
.sn-board__events ul { margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.sn-board__events li { list-style: none; display: flex; gap: 8px; align-items: center; }
.sn-board__events ul:last-child { justify-items: end; text-align: right; }
.sn-board__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); }

.sn-rates { display: flex; gap: var(--s-4); color: var(--muted); font-size: var(--fs-14); font-weight: 500; }
.sn-rates b { color: var(--ink); font-weight: 700; }

/* Compact board for the sidebar */
.sn-aside .sn-board__head, .sn-aside .sn-board__note, .sn-aside .sn-board__foot { padding-inline: var(--s-4); }
.sn-aside .sn-board__body { padding-inline: var(--s-4); }
.sn-aside .sn-board__team { padding: 14px 0; gap: var(--s-3); }
.sn-aside .sn-board__note { flex-wrap: wrap; row-gap: 6px; }

/* Key stats strip inside the featured scoreboard */
.sn-board__stats { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.sn-board__stat { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: var(--s-3); font-size: var(--fs-14); }
.sn-board__stat b { font-weight: 700; font-variant-numeric: tabular-nums; }
.sn-board__stat b:last-child { text-align: right; }
.sn-board__stat span { display: grid; gap: 5px; text-align: center; font-size: var(--fs-13); color: var(--muted); }
.sn-board__stat .sn-stat__bars { gap: 4px; }
.sn-board__stat .sn-stat__bar { height: 6px; }
.sn-board__crease { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--s-5); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-14); }
.sn-board__crease small { display: block; font-size: var(--fs-12); color: var(--muted); margin-bottom: 2px; }
.sn-board__crease b { font-weight: 650; }
.sn-board__crease span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* 8. Tables ----------------------------------------------------------------- */

.sn-table-wrap { overflow-x: auto; }
.sn-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); background: var(--card); }
.sn-table th {
  padding: 10px 8px; text-align: center; font-size: var(--fs-12); font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card);
}
.sn-table th abbr { text-decoration: none; cursor: help; }
.sn-table td { height: 44px; padding: 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.sn-table tr:last-child td { border-bottom: 0; }
.sn-table .l { text-align: left; }
.sn-table .pos { width: 40px; color: var(--muted); font-weight: 600; position: relative; }
.sn-table .pts { font-weight: 700; color: var(--ink); }
.sn-table .team { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.sn-table .team a:hover { color: var(--brand-ink); }
.sn-table tbody tr:hover td { background: #fafbfc; }
.sn-table tr.is-hl td { background: var(--brand-wash); }
.sn-table th:first-child, .sn-table td:first-child { padding-left: var(--s-4); }
.sn-table th:last-child, .sn-table td:last-child { padding-right: var(--s-4); }
.sn-zone td.pos::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.sn-zone--a td.pos::before { background: #2563eb; }
.sn-zone--b td.pos::before { background: #d97706; }
.sn-zone--c td.pos::before { background: #dc2626; }
.sn-legend { display: flex; flex-wrap: wrap; gap: 6px var(--s-4); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--muted); }
.sn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sn-legend i { width: 10px; height: 10px; border-radius: 3px; }
.sn-table--mini .hide-mini { display: none; }
.sn-table--mini td { height: 42px; }
@media (max-width: 639px) { .sn-table .hide-sm { display: none; } }

/* Panel heading inside a table panel */
.sn-panel > .sn-between:first-child { padding: var(--s-4) var(--s-4) var(--s-2) !important; }

/* 9. Match pages ------------------------------------------------------------ */

.sn-matchhead { background: var(--card); border-bottom: 1px solid var(--line); }
.sn-matchhead__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); padding: var(--s-5) 0 var(--s-2); font-size: var(--fs-14); color: var(--muted); }
.sn-matchhead__meta a { font-weight: 650; color: var(--ink); }
.sn-matchhead__meta a:hover { color: var(--brand-ink); }
.sn-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: var(--s-5) 0 var(--s-6); }
.sn-vs__team { display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
.sn-vs__team:hover .sn-vs__name { color: var(--brand-ink); }
.sn-vs__name { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; line-height: 1.05; }
.sn-vs__center { display: grid; justify-items: center; gap: var(--s-2); min-width: 120px; }
.sn-vs__score { display: flex; align-items: center; gap: var(--s-4); font-family: var(--display); font-size: clamp(3.5rem, 11vw, 6rem); font-weight: 700; line-height: 0.85; }
.sn-vs__score i { width: 2px; height: 0.45em; background: var(--line-2); }
.sn-vs__time { font-family: var(--display); font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 700; line-height: 1; }
.sn-vs__date { font-size: var(--fs-14); color: var(--muted); }
.sn-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); padding: 0 0 var(--s-5); font-size: var(--fs-14); color: var(--ink-2); }
.sn-scorers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.sn-scorers ul:first-child { justify-items: end; text-align: right; }
@media (min-width: 768px) {
  .sn-vs { gap: var(--s-8); }
  .sn-vs__team { grid-template-columns: auto auto; justify-content: end; align-items: center; text-align: right; gap: var(--s-5); }
  .sn-vs__team--away { justify-content: start; text-align: left; }
  .sn-vs__team--away .sn-tb { order: -1; }
}

.sn-tabpanel[hidden] { display: none; }

/* Events timeline */
.sn-timeline { list-style: none; margin: 0; padding: var(--s-1) 0; }
.sn-timeline li { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: 12px var(--s-4); }
.sn-timeline li + li { border-top: 1px solid var(--line); }
.sn-timeline__min { justify-self: center; display: inline-grid; place-items: center; min-width: 48px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--wash); font-size: var(--fs-13); font-weight: 700; }
.sn-timeline__ev { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sn-timeline__ev--home { justify-content: flex-end; text-align: right; }
.sn-timeline__ev b { font-weight: 650; font-size: var(--fs-15); }
.sn-timeline__ev small { display: block; color: var(--muted); font-size: var(--fs-13); }
.sn-ev-card { flex: none; width: 13px; height: 17px; border-radius: 2px; background: #eab308; }
.sn-ev-card--red { background: var(--live); }
.sn-timeline__break { grid-template-columns: 1fr !important; text-align: center; font-size: var(--fs-13); color: var(--muted); font-weight: 600; background: #fbfbfc; }

/* Stat bars */
.sn-stats { display: grid; gap: var(--s-5); padding: var(--s-5) var(--s-4); }
.sn-stat__top { display: flex; justify-content: space-between; font-size: var(--fs-16); font-weight: 700; margin-bottom: var(--s-2); }
.sn-stat__top span { font-weight: 500; color: var(--muted); font-size: var(--fs-14); }
.sn-stat__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sn-stat__bar { height: 8px; border-radius: 99px; background: var(--wash); overflow: hidden; display: flex; }
.sn-stat__bar:first-child { justify-content: flex-end; }
.sn-stat__bar i { display: block; height: 100%; border-radius: 99px; background: #9ca3af; }
.sn-stat__bar.is-lead i { background: var(--ink); }

/* Line-ups */
.sn-lineups { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sn-lineups { grid-template-columns: 1fr 1fr; } .sn-lineups > div + div { border-left: 1px solid var(--line); } }
.sn-lineups h3 { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--s-4); font-size: var(--fs-20); border-bottom: 1px solid var(--line); }
.sn-lineups h3 small { font-family: var(--sans); font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.sn-lineups h4 { padding: var(--s-3) var(--s-4) 6px; font-family: var(--sans); font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.sn-lineups ol { list-style: none; margin: 0; padding: 0 0 var(--s-2); }
.sn-lineups li a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px var(--s-4); font-size: var(--fs-15); }
.sn-lineups li a:hover { background: #fafbfc; color: var(--brand-ink); }
.sn-lineups .num { font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sn-lineups .pos { font-size: var(--fs-12); color: var(--muted); font-weight: 600; }

/* 10. Cricket scorecard ----------------------------------------------------- */

.sn-cricket-head .sn-ci { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: 14px 0; }
.sn-cricket-head .sn-ci + .sn-ci { border-top: 1px solid var(--line); }
.sn-ci__name { font-family: var(--display); font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 700; line-height: 1.05; }
.sn-ci__name a:hover { color: var(--brand-ink); }
.sn-ci__score { font-family: var(--display); font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 700; line-height: 0.9; text-align: right; white-space: nowrap; }
.sn-ci__score small { font-family: var(--sans); font-size: var(--fs-14); font-weight: 500; color: var(--muted); margin-left: 6px; }
.sn-ci--batting .sn-ci__name::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--live); }
.sn-ci--dim .sn-ci__score { color: var(--muted); }
.sn-cricket-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); padding: 14px 0 var(--s-5); font-size: var(--fs-15); }
.sn-cricket-note b { font-weight: 650; }

.sn-scorecard .sn-table td.l a { font-weight: 600; color: var(--ink); }
.sn-scorecard .sn-table td.l a:hover { color: var(--brand-ink); }
.sn-scorecard .how { display: block; font-size: var(--fs-12); color: var(--muted); font-weight: 450; white-space: normal; }
.sn-scorecard .on-strike td { background: var(--brand-wash); }
.sn-scorecard .r { font-weight: 700; color: var(--ink); }
.sn-scorecard__sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px var(--s-5); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line-2); font-size: var(--fs-14); }
.sn-scorecard__sum b { font-weight: 700; }
.sn-fow { padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-14); color: var(--ink-2); line-height: 1.7; }
.sn-fow b { color: var(--ink); font-weight: 650; }
.sn-crease { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sn-crease { grid-template-columns: 1fr 1fr; } .sn-crease > div + div { border-left: 1px solid var(--line); } }

/* 11. Editorial: stories, cards, articles ---------------------------------- */

.sn-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-13); color: var(--muted); }
.sn-kicker b { color: var(--brand-ink); font-weight: 650; }
.sn-kicker time, .sn-kicker span { white-space: nowrap; }

/* Photo frame with optional credit line */
.sn-photo { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--wash); aspect-ratio: 16 / 9; }
.sn-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease-out; }
a:hover .sn-photo img { transform: scale(1.02); }
.sn-photo__credit {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px;
  background: rgba(23, 25, 29, 0.78); color: #fff; font-size: var(--fs-12); font-weight: 500; line-height: 1.4;
}
/* Fallback artwork when a story has no photo */
.sn-photo--art { background: var(--rail); }
.sn-photo__art { width: 100%; height: 100%; transition: transform 300ms ease-out; }
a:hover .sn-photo__art { transform: scale(1.02); }
.sn-photo__label {
  position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px;
  color: #f3f4f6; font-family: var(--display); font-weight: 700; font-size: var(--fs-18); letter-spacing: 0.01em;
}
.sn-photo__label .sn-brand__mark { width: 18px; height: 18px; }
.sn-photo--sq { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.sn-photo--sq .sn-photo__credit { display: none; } /* too small to carry a credit; the full credit shows on the article */

/* News card grid (homepage, hubs) */
.sn-cards { display: grid; gap: var(--s-6) var(--s-6); }
@media (min-width: 640px) { .sn-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sn-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.sn-card { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.sn-card .sn-photo { margin-bottom: var(--s-2); }
.sn-card h3 { font-size: 1.3125rem; line-height: 1.15; letter-spacing: 0.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sn-card:hover h3 { color: var(--brand-ink); }
.sn-card p { font-size: var(--fs-15); line-height: 1.55; color: var(--ink-2); }
.sn-card__img { display: none; } /* legacy markup: replaced by .sn-photo */

/* Lists of headlines (sidebars) */
.sn-list-stories { list-style: none; margin: 0; padding: 0; }
.sn-list-stories li a { display: block; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.sn-list-stories li:last-child a { border-bottom: 0; }
.sn-list-stories h3 { font-family: var(--sans); font-size: var(--fs-15); font-weight: 600; line-height: 1.35; margin-top: 4px; }
.sn-list-stories a:hover h3 { color: var(--brand-ink); }

/* Article page */
.sn-article { max-width: 760px; }
.sn-article__head { padding: var(--s-3) 0 var(--s-6); }
.sn-article__title { font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1; margin: var(--s-3) 0 var(--s-4); }
.sn-article__dek { font-size: clamp(1.125rem, 2.2vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.sn-byline { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-14); color: var(--muted); }
.sn-byline b { color: var(--ink); font-weight: 650; }
.sn-article__media { margin: 0 0 var(--s-6); border-radius: var(--r); overflow: hidden; }
.sn-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.sn-prose > * + * { margin-top: 1.1em; }
.sn-prose strong { color: var(--ink); font-weight: 650; }
.sn-prose h2, .sn-prose h3 { color: var(--ink); margin-top: 1.7em; }
.sn-prose h2 { font-size: var(--fs-30); }
.sn-prose h3 { font-size: var(--fs-24); }
.sn-prose blockquote { margin: 1.6em 0; padding-left: var(--s-5); border-left: 3px solid var(--brand); font-size: var(--fs-20); line-height: 1.5; color: var(--ink); font-weight: 500; }
.sn-prose ul, .sn-prose ol { padding-left: 1.2em; }
.sn-prose li + li { margin-top: 0.4em; }
.sn-prose img { border-radius: var(--r); }
.sn-prose figcaption, .wp-caption-text, .wp-element-caption { font-size: var(--fs-13); color: var(--muted); margin-top: var(--s-2); }
.sn-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-8); }
.sn-tags a { padding: 6px 12px; border-radius: 999px; background: var(--wash); font-size: var(--fs-13); font-weight: 600; }
.sn-tags a:hover { background: var(--line); }

/* News list rows */
.sn-news-list .sn-story-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .sn-news-list .sn-story-row.has-img { grid-template-columns: minmax(0, 1fr) 220px; } }
.sn-story-row h2 { font-size: var(--fs-24); line-height: 1.12; letter-spacing: 0.005em; margin: 6px 0 var(--s-2); }
.sn-story-row a:hover h2 { color: var(--brand-ink); }
.sn-story-row p { color: var(--ink-2); font-size: var(--fs-15); line-height: 1.6; }
.sn-story-row img { border-radius: var(--r-sm); aspect-ratio: 16 / 10; object-fit: cover; }

/* Competition cards */
.sn-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3); }
.sn-comp {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 40px 14px var(--s-4);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0;
}
.sn-comp > span:last-child { min-width: 0; }
.sn-comp::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.75px solid var(--muted); border-top: 1.75px solid var(--muted); transform: rotate(45deg);
  opacity: 0.55;
}
.sn-comp:hover { border-color: var(--line-2); background: #fcfcfd; }
.sn-comp:hover::after { opacity: 1; border-color: var(--brand); transform: translateX(2px) rotate(45deg); }
.sn-comp:hover b { color: var(--brand-ink); }
.sn-comp b { display: block; font-size: var(--fs-15); font-weight: 650; line-height: 1.3; }
.sn-comp small { display: block; font-size: var(--fs-13); color: var(--muted); margin-top: 2px; }
.sn-comp .sn-comp__icon { width: 44px; height: 44px; border-radius: 11px; }

/* Next match card */
.sn-next { display: grid; gap: var(--s-4); padding: var(--s-5); }
.sn-next__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.sn-next__teams > div { display: grid; justify-items: center; gap: var(--s-2); font-weight: 650; font-size: var(--fs-15); }
.sn-next__when { display: grid; justify-items: center; gap: 2px; }
.sn-next__when b { font-family: var(--display); font-size: var(--fs-36); font-weight: 700; line-height: 1; }
.sn-next__when small { color: var(--muted); font-size: var(--fs-13); }

.sn-player-num { font-family: var(--display); font-size: clamp(3.25rem, 8vw, 4.75rem); font-weight: 700; line-height: 0.8; color: var(--line-2); }

/* 12. Homepage --------------------------------------------------------------- */

/* Two independent columns, so neither side is stretched to match the other.
   Left: featured match, then today's matches. Right (a little wider than the
   standard sidebar, for editorial presence): lead story, two headlines, tables.
   On phones the left column comes first, so scores and fixtures lead. */
.sn-home { display: grid; gap: var(--gap-section); grid-template-columns: minmax(0, 1fr); align-items: start; }
.sn-home > * { min-width: 0; }
.sn-home__main, .sn-home__side { display: grid; gap: var(--gap-section); align-content: start; min-width: 0; }
.sn-home__side { gap: var(--s-8); }

/* Compact featured scoreboard: tighter rows, numbers still large. */
.sn-home__board .sn-board__body { padding-block: 0; }
.sn-home__board .sn-board__team { padding-block: 14px; }
@media (min-width: 1024px) {
  .sn-home__board .sn-board__score { font-size: clamp(3.5rem, 11cqi, 5rem); }
  .sn-home__board .sn-board__name { font-size: clamp(1.75rem, 5cqi, 2.375rem); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sn-home__aside { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
  .sn-home__aside > * + * { margin-top: 0; }
}
@media (min-width: 1024px) {
  .sn-home { grid-template-columns: minmax(0, 1fr) 392px; column-gap: var(--s-8); }
  .sn-home__aside { position: static; }
}

/* Lead editorial story */
.sn-lead { display: flex; flex-direction: column; gap: var(--s-2); }
.sn-lead .sn-photo { margin-bottom: var(--s-2); }
/* Headlines are capped at three lines so long titles never dominate the top of the page. */
.sn-lead h2 { font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.12; letter-spacing: 0.005em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sn-lead:hover h2 { color: var(--brand-ink); }
.sn-lead p { font-size: var(--fs-14); line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Two smaller headlines under the lead */
.sn-minis { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.sn-mini { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.sn-mini h3 { font-size: var(--fs-17); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sn-mini:hover h3 { color: var(--brand-ink); }

@media (min-width: 768px) and (max-width: 1023px) {
  .sn-home__stories { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); }
  .sn-minis { margin-top: 0; padding-top: 0; border-top: 0; align-content: start; }
}

/* 13. About text --------------------------------------------------------------- */

.sn-about { padding: var(--s-2) 0 var(--gap-section); }
.sn-about__inner { border-top: 1px solid var(--line-2); padding-top: var(--s-8); }
.sn-about__body { max-width: 68ch; font-size: var(--fs-16); line-height: 1.75; color: var(--ink-2); }
.sn-about__body h2 { font-size: var(--fs-30); color: var(--ink); margin: 0 0 var(--s-3); }
.sn-about__body h3 { font-size: var(--fs-20); color: var(--ink); margin-top: 1.4em; }
.sn-about__body ul { padding-left: 1.2em; }
.sn-about__body.is-collapsed > p:first-of-type { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sn-about__body.is-collapsed > p:first-of-type ~ * { display: none; }
.sn-about__toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); min-height: 32px; font-size: var(--fs-15); font-weight: 600; color: var(--brand-ink); }
.sn-about__toggle:hover { color: var(--ink); }
.sn-about__toggle .sn-ico { width: 16px; height: 16px; transform: rotate(90deg); transition: transform 120ms ease-out; }
.sn-about__toggle[aria-expanded="true"] .sn-ico { transform: rotate(-90deg); }

/* Homepage About: shown in full, as a card in the same language as the rest of the page */
.sn-about--home { padding-top: 0; }
.sn-about--home .sn-about__inner { border-top: 0; padding: var(--s-8) var(--s-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 768px) { .sn-about--home .sn-about__inner { padding: 40px 48px; } }
.sn-about--home .sn-about__body { max-width: 1040px; }
.sn-about--home .sn-about__body > h2 { font-size: var(--fs-30); margin-bottom: var(--s-3); }
.sn-about--home .sn-about__body > p { max-width: 64ch; font-size: var(--fs-17); line-height: 1.7; color: var(--ink-2); }
.sn-about-grid { display: grid; gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .sn-about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); } }
.sn-about-grid h3 { margin: 0 0 var(--s-2) !important; font-size: var(--fs-20); line-height: 1.15; color: var(--ink); }
.sn-about-grid h3::before { content: ""; display: block; width: 24px; height: 3px; margin-bottom: var(--s-3); border-radius: 2px; background: var(--brand); }
.sn-about-grid p { font-size: var(--fs-15); line-height: 1.7; color: var(--ink-2); }

/* 14. Footer ----------------------------------------------------------------- */

.sn-footer { background: var(--card); border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); font-size: var(--fs-14); color: var(--ink-2); }
.sn-footer__grid { display: grid; gap: var(--s-8) var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .sn-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.sn-footer__about { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) { .sn-footer__about { grid-column: auto; } }
.sn-footer__about p { margin-top: var(--s-3); line-height: 1.6; color: var(--muted); }
.sn-footer h2 { font-family: var(--sans); font-size: var(--fs-14); font-weight: 650; color: var(--ink); margin-bottom: var(--s-3); }
.sn-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sn-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sn-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--muted); }

/* Interaction: quiet colour and border transitions only */
a, button, .sn-row, .sn-comp, .sn-group__name a, .sn-chip, .sn-nav a, .sn-subnav a, .sn-subnav button,
.sn-segment button, .sn-btn, .sn-icon-btn, .sn-table td, .sn-dates a {
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}
.sn-comp::after { transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease; }
.sn-card h3, .sn-lead h2, .sn-mini h3 { transition: color 150ms ease; }

/* 15. Utilities ----------------------------------------------------------------- */

.sn-mt-0 { margin-top: 0 !important; }
.sn-flex { display: flex; align-items: center; gap: var(--s-3); }
.sn-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.sn-hide-mobile { display: none; }
@media (min-width: 768px) { .sn-hide-mobile { display: initial; } }
[data-sport-group][hidden] { display: none; }

.sn-404 { padding: 56px 0; max-width: 640px; }
.sn-404 h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1; margin-bottom: var(--s-4); }
.sn-404 p { color: var(--ink-2); font-size: var(--fs-17); margin-bottom: var(--s-6); }

.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.nav-links { display: flex; gap: var(--s-2); margin-top: var(--s-8); }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-weight: 600; }
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }
