/* ========================================================================
   Rullakiekko.fi — design system
   Iter 2: clean rewrite with proper token architecture
   ======================================================================== */

/* ──────────────────────────────────────────────────────
   1. Tokens
   ────────────────────────────────────────────────────── */
:root {
  /* color: single cool-gray family + one blue accent + restrained orange flag */
  --ink-900: #060c14;
  --ink-800: #0b131c;
  --ink-700: #111d2a;
  --ink-600: #1c2a3b;
  --ink-500: #344559;
  --ink-400: #5a6b80;
  --ink-300: #8a99ad;
  --ink-200: #c7d1de;
  --ink-100: #e6ecf3;
  --ink-50:  #f3f6fa;
  --paper:   #fbfcfd;

  --blue-900: #0a2c5a;
  --blue-700: #0a55c0;
  --blue-500: #0b6ff6;
  --blue-300: #42b7ff;
  --blue-50:  #e8f1fb;

  --flag: #ff5a2f;       /* used sparingly — accent only */
  --gold: #f5a623;       /* Fuengirola page only */
  --good: #1b9e6e;

  /* tinted shadows (per skill: don't use pure black) */
  --shadow-sm: 0 2px 8px rgba(11, 27, 48, 0.06), 0 1px 2px rgba(11, 27, 48, 0.04);
  --shadow-md: 0 12px 28px rgba(11, 27, 48, 0.08), 0 4px 10px rgba(11, 27, 48, 0.04);
  --shadow-lg: 0 28px 64px rgba(11, 27, 48, 0.14), 0 8px 18px rgba(11, 27, 48, 0.06);
  --shadow-dark: 0 28px 80px rgba(0, 0, 0, 0.42), 0 6px 14px rgba(0, 0, 0, 0.32);
  --shadow-blue: 0 16px 40px rgba(11, 111, 246, 0.22), 0 4px 12px rgba(11, 111, 246, 0.12);

  /* radius scale */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* typography */
  --font-display: "Bricolage Grotesque", "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* layout */
  --container: min(1180px, calc(100vw - 48px));
  --container-wide: min(1340px, calc(100vw - 48px));

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

/* ──────────────────────────────────────────────────────
   2. Fonts (Google Fonts CSS API v2)
   ────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@500;700&display=swap");

/* ──────────────────────────────────────────────────────
   3. Reset / base
   ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

::selection { background: var(--blue-500); color: #fff; }

/* tabular figures wherever stats appear */
.standings-card li strong,
.standings-card li i,
.score-row strong,
.match-line time b,
.video-thumb b,
.fixture-meta strong {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* ──────────────────────────────────────────────────────
   4. Utility
   ────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 18px;
  background: var(--blue-500);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  box-shadow: var(--shadow-blue);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container { width: var(--container); margin: 0 auto; }
.container-wide { width: var(--container-wide); margin: 0 auto; }

/* keyboard focus */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ──────────────────────────────────────────────────────
   5. Typography
   ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
  margin: 0;
}

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--flag);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.eyebrow.blue { color: var(--blue-700); }

.eyebrow.plain::before { display: none; }

/* ──────────────────────────────────────────────────────
   6. Buttons & links
   ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 220ms var(--ease-spring),
              background 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 120ms; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(11, 111, 246, 0.34), 0 6px 14px rgba(11, 111, 246, 0.18);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline {
  color: var(--blue-700);
  background: var(--paper);
  border-color: var(--ink-100);
}

.btn-outline:hover {
  color: var(--blue-500);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-700);
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: color 180ms var(--ease-out), transform 220ms var(--ease-spring);
}

.text-link:hover {
  color: var(--blue-500);
  transform: translateX(3px);
}

.text-link.light { color: var(--blue-300); }
.text-link.light:hover { color: #fff; }

/* ──────────────────────────────────────────────────────
   7. Section primitives
   ────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 124px) 0;
}

.section-dark {
  color: #fff;
  background: var(--ink-900);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.news-intro h2 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow),
.news-intro p {
  margin: 18px 0 0;
  color: var(--ink-400);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  max-width: 56ch;
}

.section-heading.centered {
  margin: 0 auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

/* ──────────────────────────────────────────────────────
   8. Header
   ────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 0 clamp(20px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 12, 20, 0.7) 0%, rgba(6, 12, 20, 0) 100%);
  transition: background 220ms var(--ease-out), min-height 220ms var(--ease-out), backdrop-filter 220ms var(--ease-out);
}

.site-header.is-scrolled {
  min-height: 70px;
  background: rgba(6, 12, 20, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 14px);
  gap: 5px;
  transform: skew(-14deg);
}

.brand-mark span {
  height: 28px;
  background: var(--blue-500);
  border-radius: 2px;
}

.brand-mark span:last-child { background: var(--blue-700); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.site-nav a {
  position: relative;
  padding: 6px 2px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 160ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--blue-300);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-spring);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 180ms var(--ease-out);
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.14); }

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 1px;
}

/* ──────────────────────────────────────────────────────
   9. Hero
   ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 120px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 40%, rgba(11, 111, 246, 0.28), transparent 32rem),
    linear-gradient(95deg, var(--ink-900) 0%, var(--ink-800) 44%, var(--ink-700) 100%);
}

.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(76vw, 1280px);
  background-image: url("designs/generated/desktop-01-hero.png");
  background-size: cover;
  background-position: center right;
  opacity: 0.82;
  filter: saturate(1.04) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, var(--ink-900) 0%, rgba(6, 12, 20, 0.86) 18%, rgba(6, 12, 20, 0.35) 56%, rgba(6, 12, 20, 0.02) 100%),
    linear-gradient(180deg, rgba(6, 12, 20, 0.34), rgba(6, 12, 20, 0.05) 36%, rgba(6, 12, 20, 0.88));
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 26% 50%, black, transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: end;
  gap: clamp(32px, 6vw, 80px);
}

.hero-copy { max-width: 720px; }

.hero h1 {
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 8ch;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  display: block;
  color: var(--blue-300);
}

.hero-lede {
  max-width: 46ch;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Next-match floating card */
.next-match {
  justify-self: end;
  width: 100%;
  max-width: 460px;
  padding: 24px 26px;
  border: 1px solid rgba(66, 183, 255, 0.32);
  border-radius: var(--r-md);
  background: rgba(6, 12, 20, 0.78);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--shadow-dark);
}

.next-match > p {
  margin: 0 0 18px;
  color: var(--flag);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.match-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
}

.match-line span:last-child { justify-content: flex-end; }

.match-team strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}

.match-line time {
  display: grid;
  gap: 2px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-line time b {
  display: block;
  color: var(--flag);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.next-match small {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.85rem;
}

/* ──────────────────────────────────────────────────────
  10. Team emblems (shields)
   ────────────────────────────────────────────────────── */
.team-emblem {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 40px;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(50% 0%, 100% 18%, 92% 82%, 50% 100%, 8% 82%, 0% 18%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.24);
  font-family: var(--font-display);
}

.team-emblem.lg { width: 44px; height: 50px; font-size: 0.78rem; }

.emblem-vantaa    { background: linear-gradient(150deg, #044090, #0a88ff); }
.emblem-koovee    { background: linear-gradient(150deg, #261013, #d72b1f); }
.emblem-pahalampi { background: linear-gradient(150deg, #102032, #2c5d9e); }
.emblem-pepe      { background: linear-gradient(150deg, #1a1f28, #ff5a2f); }
.emblem-tap       { background: linear-gradient(150deg, #06132a, #206eff); font-size: 0.6rem; }
.emblem-vuorela   { background: linear-gradient(150deg, #0e3823, #25a75d); }
.emblem-lions     { background: linear-gradient(150deg, #2e1804, #f5a623); }

/* ──────────────────────────────────────────────────────
  11. Live hub
   ────────────────────────────────────────────────────── */
.live-hub {
  background:
    radial-gradient(circle at 92% 78%, rgba(11, 111, 246, 0.07), transparent 22rem),
    linear-gradient(180deg, var(--paper) 0%, var(--ink-50) 100%);
}

.live-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 0%,
    transparent 0 13rem,
    rgba(11, 111, 246, 0.15) 13.1rem 13.25rem,
    transparent 13.4rem
  );
}

.hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.fixture-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fixture-card {
  position: relative;
  padding: 22px 22px 18px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 220px;
}

.fixture-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.fixture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fixture-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fixture-meta p { margin: 0; }
.fixture-meta strong { color: var(--ink-900); font-size: 1.18rem; }

.fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.fixture-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fixture-team em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink-900);
  text-wrap: balance;
  max-width: 12ch;
}

.fixture-teams b {
  align-self: center;
  color: var(--ink-300);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fixture-card small {
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
  color: var(--ink-400);
  font-size: 0.82rem;
  text-align: center;
}

/* result card */
.result-card {
  grid-row: span 2;
  align-self: start;
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--flag);
}

.result-card .eyebrow { color: var(--blue-300); margin: 0 0 22px; }
.result-card .eyebrow::before { background: currentColor; }

.score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.score-team em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.score-row strong {
  font-family: var(--font-mono);
  color: var(--blue-300);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.result-card > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-300);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 220ms var(--ease-spring);
}

.result-card > a:hover { gap: 14px; }

/* standings */
.standings-card {
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.standings-card .eyebrow { margin: 0 0 18px; }

.standings-card ol {
  counter-reset: rank;
  margin: 0; padding: 0;
  list-style: none;
}

.standings-card li {
  display: grid;
  grid-template-columns: 28px auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--ink-100);
  counter-increment: rank;
}

.standings-card li:first-child { border-top: 0; padding-top: 0; }

.standings-card li::before {
  content: counter(rank);
  color: var(--ink-300);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
}

.standing-team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.standing-team em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.standings-card li strong {
  color: var(--blue-700);
  font-size: 1.05rem;
}

.standings-card li i {
  color: var(--good);
  font-style: normal;
  font-size: 0.85rem;
}

/* tampere card */
.tampere-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 26px 30px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
}

.tampere-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% -20%, rgba(255, 255, 255, 0.18), transparent 14rem),
    linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, 0.06) 57%, transparent 58%);
}

.tampere-card > div { position: relative; z-index: 1; }

.tampere-card .eyebrow {
  color: var(--blue-300);
  margin: 0 0 8px;
}

.tampere-card .eyebrow::before { background: currentColor; }

.tampere-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.tampere-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: 60ch;
}

.tampere-card .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--blue-700);
  border-color: #fff;
  box-shadow: none;
}

.tampere-card .btn:hover {
  background: var(--ink-50);
  transform: translateY(-2px);
}

.section-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

/* ──────────────────────────────────────────────────────
  12. News section
   ────────────────────────────────────────────────────── */
.news-section {
  overflow: hidden;
  background: linear-gradient(116deg, var(--ink-900) 0 34%, transparent 34.2%), var(--paper);
}

.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(26deg, transparent 56%, rgba(11, 111, 246, 0.12) 56.2%, transparent 56.45%),
    radial-gradient(circle at 18% 18%, rgba(66, 183, 255, 0.1), transparent 14rem);
  opacity: 0.7;
}

.news-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.25fr);
  grid-template-rows: auto auto auto;
  gap: 32px;
}

.news-intro {
  color: #fff;
  max-width: 380px;
  align-self: start;
  padding-top: 12px;
}

.news-intro h2,
.news-intro p { color: #fff; }
.news-intro p { color: rgba(255, 255, 255, 0.74); }

/* lead story: replace photo bleed-through with composed art */
.lead-story {
  position: relative;
  display: grid;
  grid-template-rows: 240px 1fr;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-900));
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-dark);
}

.story-image-lead {
  position: relative;
  background:
    linear-gradient(180deg, transparent 40%, rgba(6, 12, 20, 0.4) 100%),
    url("https://picsum.photos/seed/rullakiekko-lead/1200/600");
  background-size: cover;
  background-position: center;
}

.story-image-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 111, 246, 0.18), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(11, 111, 246, 0.34), transparent 60%);
  mix-blend-mode: multiply;
}

.lead-story-copy {
  padding: 24px 28px 26px;
  display: grid;
  gap: 12px;
}

.story-tag {
  display: inline-flex;
  align-self: start;
  padding: 6px 10px;
  background: var(--flag);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
}

.lead-story h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead-story-copy > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  font-size: 0.96rem;
}

.lead-story time {
  color: var(--blue-300);
  font-weight: 700;
  font-size: 0.85rem;
}

/* small story stack */
.story-stack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story-card {
  display: grid;
  grid-template-rows: 160px 1fr auto auto;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.story-image {
  background-size: cover;
  background-position: center;
}

.story-image-1 { background-image: url("https://picsum.photos/seed/fuengirola-lions/800/400"); }
.story-image-2 { background-image: url("https://picsum.photos/seed/sm-liiga-final/800/400"); }
.story-image-3 { background-image: url("https://picsum.photos/seed/tampere-tournament/800/400"); }

.story-card h3 {
  margin: 20px 22px 0;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.story-card p {
  margin: 10px 22px 0;
  color: var(--ink-400);
  font-size: 0.92rem;
  line-height: 1.5;
}

.story-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 22px 6px;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap 220ms var(--ease-spring);
}

.story-card a:hover { gap: 12px; }

.story-card time {
  display: block;
  margin: 0 22px 20px;
  color: var(--ink-300);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* media strip */
.media-strip {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 24px 26px;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 0% 0%, rgba(11, 111, 246, 0.22), transparent 16rem),
    linear-gradient(180deg, var(--ink-700), var(--ink-900));
  color: #fff;
  border: 1px solid rgba(66, 183, 255, 0.22);
}

.media-strip .eyebrow {
  color: var(--blue-300);
  margin: 0 0 18px;
}

.media-strip .eyebrow::before { background: currentColor; }

.media-strip ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.media-strip li { display: grid; gap: 8px; }

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgba(11, 111, 246, 0.36), rgba(255, 255, 255, 0.02)),
    var(--ink-700);
  border: 1px solid rgba(66, 183, 255, 0.32);
  overflow: hidden;
}

.video-thumb::before {
  content: "";
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.video-thumb b {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--r-xs);
}

.media-strip strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.media-strip small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.news-link {
  grid-column: 2 / -1;
  justify-self: end;
  color: var(--blue-700);
}

/* ──────────────────────────────────────────────────────
  13. Sport explainer
   ────────────────────────────────────────────────────── */
.sport-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  min-height: 640px;
  overflow: hidden;
}

.sport-explainer > * { min-width: 0; }

.explainer-visual {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(56px, 6vw, 88px);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    url("designs/generated/desktop-04-laji-explained.png");
  background-size: cover;
  background-position: 24% center;
}

.rule-list {
  display: grid;
  gap: 26px;
  width: min(500px, 100%);
}

.rule-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(11, 27, 48, 0.12);
}

.rule-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.rule-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border: 2.5px solid var(--blue-700);
  border-radius: 999px;
  color: var(--blue-700);
}

.rule-icon::before, .rule-icon::after {
  content: "";
  position: absolute;
}

.icon-lineup::before {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    -16px -10px 0 currentColor, 16px -10px 0 currentColor,
    -16px 16px 0 currentColor, 16px 16px 0 currentColor;
}

.icon-lineup::after {
  width: 42px; height: 20px;
  border-top: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
}

.icon-no-hit::before {
  width: 38px; height: 10px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(35deg);
  box-shadow: -12px 16px 0 -2px currentColor;
}

.icon-no-hit::after {
  width: 54px; height: 4px;
  background: var(--flag);
  transform: rotate(-45deg);
}

.icon-puck::before {
  width: 36px; height: 18px;
  border-radius: 50% / 35%;
  background: var(--ink-900);
  box-shadow: 0 7px 0 var(--ink-700);
  top: 20px;
}

.icon-puck::after {
  width: 46px; height: 16px;
  border: 2.5px solid var(--blue-300);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  bottom: 18px;
}

.explainer-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 5vw, 76px);
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(11, 111, 246, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}

.slash {
  margin: 0 0 18px;
  color: var(--flag);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
}

.explainer-copy h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.explainer-copy p:not(.slash) {
  max-width: 44ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.explainer-copy .btn { align-self: flex-start; margin-top: 36px; }
.explainer-copy .text-link { align-self: flex-start; margin-top: 22px; }

/* ──────────────────────────────────────────────────────
  14. Teams grid
   ────────────────────────────────────────────────────── */
.teams-section {
  background: var(--paper);
  overflow: hidden;
}

.teams-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 90%, rgba(11, 111, 246, 0.06), transparent 18rem);
}

.teams-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 168px;
  padding: 22px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card > span:last-child {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--ink-50);
  color: var(--blue-700);
  font-size: 1rem;
  transition: background 200ms var(--ease-out), transform 220ms var(--ease-spring);
}

.team-card:hover > span:last-child {
  background: var(--blue-500);
  color: #fff;
  transform: translateX(3px);
}

.crest {
  display: grid;
  place-items: center;
  width: 68px; height: 76px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.32);
  clip-path: polygon(50% 0%, 92% 14%, 86% 78%, 50% 100%, 14% 78%, 8% 14%);
}

.crest-blue   { background: linear-gradient(135deg, #044aa6, #0a88ff); }
.crest-red    { background: linear-gradient(135deg, #0b1017, #d72b1f); }
.crest-orange { background: linear-gradient(135deg, #1a1f28, #ff5a2f); }
.crest-navy   { background: linear-gradient(135deg, #06132a, #206eff); }
.crest-green  { background: linear-gradient(135deg, #103b27, #25a75d); }

/* feature: Pahalampi tribute card */
.feature-team {
  grid-column: span 2;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(66, 183, 255, 0.18), transparent 16rem),
    linear-gradient(135deg, var(--ink-900), var(--ink-700));
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.feature-team::after {
  content: "★";
  position: absolute;
  right: 22px; top: 22px;
  font-size: 1.4rem;
  color: var(--flag);
}

.feature-team small {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(255, 90, 47, 0.18);
  color: var(--flag);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  border: 1px solid rgba(255, 90, 47, 0.36);
}

.feature-team strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.feature-team span {
  color: var(--blue-300);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* league-links sidebar */
.league-links {
  grid-row: span 2;
  padding: 26px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.league-links h3 {
  margin: 0 0 18px;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.league-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--ink-100);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 180ms var(--ease-out);
}

.league-links a:first-of-type { border-top: 0; padding-top: 0; }
.league-links a:hover { color: var(--blue-500); }

.league-links a span { color: var(--blue-700); }

/* league banner CTA */
.league-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: var(--container);
  min-height: 88px;
  margin: 56px auto 0;
  border-radius: var(--r-md);
  color: #fff;
  background: linear-gradient(95deg, var(--blue-700), var(--blue-500));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: -0.025em;
  box-shadow: var(--shadow-blue);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out);
  overflow: hidden;
}

.league-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.16), transparent 16rem);
}

.league-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(11, 111, 246, 0.32);
}

.league-banner span {
  width: 38px; height: 38px;
  border: 2.5px solid currentColor;
  border-radius: 999px;
}

/* ──────────────────────────────────────────────────────
  15. National / maajoukkue
   ────────────────────────────────────────────────────── */
.national-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(11, 111, 246, 0.2), transparent 22rem),
    linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
}

.national-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 28% 50%, black, transparent 70%);
}

.national-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(34px, 8vw, 90px);
  align-items: center;
}

.national-section h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.national-section p:not(.eyebrow) {
  max-width: 50ch;
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  position: relative;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 240ms var(--ease-out), transform 240ms var(--ease-spring);
}

.timeline article:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 3px;
  background: var(--blue-300);
  border-radius: 2px;
}

.timeline time {
  display: block;
  color: var(--blue-300);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────
  16. Final CTA + footer
   ────────────────────────────────────────────────────── */
.final-cta {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(11, 111, 246, 0.22), transparent 18rem),
    linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 50%, black, transparent 70%);
}

/* orbital puck visual */
.final-cta::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 22%;
  width: clamp(140px, 16vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ink-600), var(--ink-900) 65%);
  box-shadow:
    inset 0 -10px 20px rgba(0, 0, 0, 0.5),
    inset 0 8px 14px rgba(255, 255, 255, 0.06),
    0 0 0 8px rgba(66, 183, 255, 0.22),
    0 0 60px rgba(11, 111, 246, 0.34),
    80px -40px 0 -70px var(--flag);
}

.side-rail {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  display: grid;
  place-items: center;
  width: 64px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.final-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(2.8rem, 7.4vw, 6.4rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-transform: uppercase;
}

.final-cta h2 span {
  display: block;
  color: var(--blue-300);
}

.final-cta p {
  max-width: 50ch;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  line-height: 1.55;
}

.final-cta .hero-actions {
  justify-content: center;
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 44px 0 36px;
  background: var(--ink-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand span {
  font-size: 2.8rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #fff;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: flex-end;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 180ms var(--ease-out);
}

.site-footer nav a:hover { color: var(--blue-300); }

.partner-note {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────────────────
  17. Mobile tab bar (visible at <= 860px)
   ────────────────────────────────────────────────────── */
.mobile-tabbar { display: none; }

.tab-icon {
  position: relative;
  display: block;
  width: 22px; height: 22px;
  margin: 0 auto 4px;
}

.icon-home::before {
  content: "";
  position: absolute;
  inset: 4px 2px 0;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  clip-path: polygon(0 30%, 50% 0, 100% 30%, 100% 100%, 0 100%);
}

.icon-puck-tab::before {
  content: "";
  position: absolute;
  inset: 7px 2px;
  border-radius: 50% / 35%;
  background: currentColor;
}

.icon-shield::before {
  content: "";
  position: absolute;
  inset: 2px 4px 2px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 18%, 88% 80%, 50% 100%, 12% 80%, 0 18%);
}

.icon-info::before {
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  font-size: 0.78rem;
}

/* ──────────────────────────────────────────────────────
  18. Fuengirola Lions page
   ────────────────────────────────────────────────────── */
.lions-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 78dvh;
  padding: 144px 0 72px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 30%, rgba(245, 166, 35, 0.24), transparent 24rem),
    linear-gradient(135deg, #0a1322 0%, #142a45 50%, #0a1322 100%);
}

.lions-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 50%, black, transparent 68%);
}

.lions-hero .container {
  display: contents;
}

.lions-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.lions-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
}

.lions-copy h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.lions-copy h1 span {
  display: block;
  color: var(--gold);
}

.lions-copy p.lede {
  max-width: 48ch;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.lions-card {
  position: relative;
  padding: 30px;
  border-radius: var(--r-md);
  background: rgba(10, 18, 32, 0.74);
  border: 1px solid rgba(245, 166, 35, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-dark);
}

.lions-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 24px;
  margin: 0;
  font-size: 0.94rem;
}

.lions-card dt {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lions-card dd {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lions-card a {
  color: var(--gold);
  font-weight: 700;
}

.lions-section {
  padding: clamp(72px, 8vw, 112px) 0;
  background: var(--paper);
}

.lions-section.alt { background: var(--ink-50); }

.lions-section.dark {
  background: var(--ink-900);
  color: #fff;
}

.lions-section.dark h2 { color: #fff; }
.lions-section.dark .intro { color: rgba(255, 255, 255, 0.7); }

.lions-section h2 {
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.lions-section p.intro {
  max-width: 60ch;
  margin: 18px 0 44px;
  color: var(--ink-400);
  font-size: 1.05rem;
  line-height: 1.6;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.player-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out);
}

.player-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.player-card .avatar {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a1322, #1c3a5e);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.player-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.player-card small {
  color: var(--ink-400);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(245, 166, 35, 0.08);
  color: var(--ink-600);
  font-size: 0.92rem;
  line-height: 1.55;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.lions-section.dark .disclaimer {
  background: rgba(245, 166, 35, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out);
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-item time {
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.news-item p {
  margin: 0;
  color: var(--ink-400);
  font-size: 0.92rem;
  line-height: 1.5;
}

.news-item .arrow {
  font-size: 1.3rem;
  color: var(--blue-700);
  transition: transform 220ms var(--ease-spring);
}

.news-item:hover .arrow { transform: translateX(4px); }

.results-table {
  display: grid;
  gap: 1px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.result-row {
  display: grid;
  grid-template-columns: 110px 1fr auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: var(--ink-800);
}

.result-row time {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.result-row .home, .result-row .away {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.result-row .home { text-align: right; }
.result-row .away { text-align: left; }

.result-row strong {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  border-radius: var(--r-xs);
  font-weight: 700;
  min-width: 72px;
  text-align: center;
  font-family: var(--font-mono);
}

.result-row .comp {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.lions-cta {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 64px);
  border-radius: var(--r-lg);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.22), transparent 20rem),
    linear-gradient(135deg, #060c14 0%, #142a45 100%);
}

.lions-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.lions-cta a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  background: var(--gold);
  color: #0a1322;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  justify-self: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 220ms var(--ease-spring), box-shadow 220ms var(--ease-out);
  box-shadow: 0 16px 40px rgba(245, 166, 35, 0.32);
}

.lions-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(245, 166, 35, 0.42);
}

/* ──────────────────────────────────────────────────────
  19. Responsive
   ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner,
  .hub-grid,
  .news-layout,
  .sport-explainer,
  .national-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; padding: 132px 0 56px; }
  .hero-media { width: 100%; opacity: 0.58; }
  .next-match { justify-self: stretch; max-width: 100%; }

  .result-card { grid-row: auto; }
  .standings-card { grid-column: auto; }

  .news-link { grid-column: 1 / -1; justify-self: start; }
  .news-section { background: linear-gradient(180deg, var(--ink-900) 0 30%, var(--paper) 30.2% 100%); }
  .news-intro { max-width: 100%; }

  .explainer-visual, .sport-explainer { min-height: auto; }
  .explainer-copy { min-height: 480px; }

  .teams-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .league-links { grid-row: auto; grid-column: span 2; }

  .lions-hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 128px 0 60px;
  }
}

@media (max-width: 860px) {
  :root { --container: min(100vw - 32px, 720px); }

  body { padding-bottom: 84px; }

  .site-header { min-height: 70px; padding: 0 16px; }
  .brand { font-size: 1.1rem; }
  .brand-mark { grid-template-columns: repeat(2, 10px); gap: 4px; }
  .brand-mark span { height: 22px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    background: rgba(6, 12, 20, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-130%);
    transition: transform 240ms var(--ease-spring);
  }

  .site-header.nav-active .site-nav { transform: translateY(0); }

  .site-nav a {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav a:first-child { border-top: 0; }

  .hero-copy { max-width: 100%; }
  .hero h1 { max-width: 100%; font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .hero-lede { font-size: 1.02rem; max-width: 32ch; }

  .match-line, .score-row { grid-template-columns: 1fr; gap: 16px; }
  .match-line span:last-child, .score-row span:last-child { justify-content: flex-start; text-align: left; }

  .fixture-board, .story-stack, .teams-grid { grid-template-columns: 1fr; }
  .fixture-card { min-height: 0; }

  .feature-team, .league-links { grid-column: auto; }

  .media-strip ul { grid-template-columns: 1fr; }

  .tampere-card { grid-template-columns: 1fr; padding: 24px; }

  .news-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 22px; }
  .news-item .arrow { display: none; }

  .result-row {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "comp comp comp" "home score away" "date date date";
    gap: 8px 14px;
    padding: 16px 18px;
  }
  .result-row .comp { grid-area: comp; }
  .result-row .home { grid-area: home; }
  .result-row strong { grid-area: score; }
  .result-row .away { grid-area: away; }
  .result-row time {
    grid-area: date;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0 max(12px, env(safe-area-inset-bottom));
    background: rgba(6, 12, 20, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.36);
  }

  .mobile-tabbar a {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 4px;
    transition: color 180ms var(--ease-out);
  }

  .mobile-tabbar a.is-active,
  .mobile-tabbar a:hover { color: var(--blue-300); }

  .league-banner { width: calc(100vw - 32px); }
  .side-rail { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: space-between; }

  .lead-story { grid-template-rows: 180px 1fr; }
  .lead-story-copy { padding: 22px; }

  .standings-card li {
    grid-template-columns: 20px auto 1fr auto;
    gap: 10px;
  }
  .standings-card li i { display: none; }
}

/* ──────────────────────────────────────────────────────
  20. Reduced motion
   ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
