:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --surface: rgba(255, 251, 244, 0.78);
  --surface-strong: #fff9f0;
  --line: rgba(26, 53, 44, 0.14);
  --line-strong: rgba(26, 53, 44, 0.22);
  --text: #16251f;
  --muted: #5a695f;
  --green: #0f5c40;
  --green-deep: #092f21;
  --gold: #dfa63a;
  --gold-soft: rgba(223, 166, 58, 0.16);
  --shadow: 0 22px 60px rgba(15, 39, 30, 0.12);
  --shadow-soft: 0 14px 34px rgba(15, 39, 30, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --space-section: 32px;
  --space-card: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 166, 58, 0.22), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 92, 64, 0.18), transparent 24%),
    linear-gradient(180deg, #f6efe2 0%, #f8f4ec 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
blockquote {
  margin-top: 0;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.masthead {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 249, 240, 0.92), rgba(249, 244, 235, 0.9)),
    linear-gradient(120deg, rgba(15, 92, 64, 0.06), rgba(223, 166, 58, 0.08));
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 30px;
}

.masthead--compact {
  padding-bottom: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  align-items: center;
}

.nav__links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.56);
  color: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 39, 30, 0.06);
}

.nav__links a[aria-current="page"] {
  border-color: rgba(15, 92, 64, 0.16);
  background: rgba(15, 92, 64, 0.12);
  color: var(--green-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav__links a:nth-child(2),
.nav__links a:nth-child(3) {
  border: 1px solid rgba(15, 92, 64, 0.12);
  background: rgba(15, 92, 64, 0.04);
}

.nav__links a:nth-child(2):hover,
.nav__links a:nth-child(3):hover {
  border-color: rgba(15, 92, 64, 0.2);
}

.nav__links a[data-locale-switch] {
  border-style: dashed;
  border-color: rgba(223, 166, 58, 0.38);
  background: rgba(223, 166, 58, 0.08);
  color: var(--green-deep);
  font-weight: 800;
}

.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 92, 64, 0.12), rgba(15, 92, 64, 0.82), rgba(223, 166, 58, 0.7));
}

.hero,
.page-hero {
  position: relative;
  margin-top: 40px;
}

.hero__content,
.page-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
}

.hero__copy,
.page-hero__copy {
  position: relative;
  z-index: 1;
}

.history-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.history-jumpnav a,
.history-subnav a {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--green-deep);
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.history-jumpnav a:hover,
.history-subnav a:hover {
  background: rgba(223, 166, 58, 0.18);
  transform: translateY(-1px);
}

.history-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.history-subnav a[aria-current="page"] {
  background: rgba(15, 92, 64, 0.12);
  border-color: transparent;
}

.history-hero {
  align-items: stretch;
}

.history-hero__aside {
  display: grid;
  align-content: end;
}

.history-toc {
  position: fixed;
  top: 132px;
  right: max(24px, calc((100vw - 1180px) / 2 - 164px));
  z-index: 20;
  display: grid;
  gap: 8px;
  width: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 245, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.history-toc__title {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-toc a {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.history-toc a.is-active {
  background: rgba(15, 92, 64, 0.12);
  color: var(--green-deep);
  transform: translateX(-2px);
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.22;
}

.hero__lede,
.section__intro,
.feature-card p,
.article-card p,
.profile-card p,
.quote-card p,
.mini-list,
.schedule-row p,
.player-card p,
.player-card__meta,
.spotlight-list li,
.article-meta {
  color: var(--muted);
  line-height: 1.65;
}

.hero__lede {
  max-width: 30em;
  font-size: 1.03rem;
}

.section__intro {
  max-width: 38em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.portal-hero__paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
}

.priority-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  max-width: 920px;
}

.priority-rail__item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 92, 64, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 240, 0.78)),
    radial-gradient(circle at top right, rgba(223, 166, 58, 0.16), transparent 54%);
  box-shadow: 0 12px 24px rgba(15, 39, 30, 0.05);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.priority-rail__item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 92, 64, 0.2);
  box-shadow: 0 16px 34px rgba(15, 39, 30, 0.08);
}

.priority-rail__label {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.priority-rail__item strong {
  font-size: 1rem;
  line-height: 1.25;
}

.priority-rail__item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-path {
  padding: 16px 18px;
  border: 1px solid rgba(15, 92, 64, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 250, 241, 0.7));
  box-shadow: 0 12px 24px rgba(15, 39, 30, 0.05);
}

.portal-path__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 92, 64, 0.08);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-path strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.portal-path p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.homepage-hero-brief {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(249, 244, 235, 0.88)),
    radial-gradient(circle at top right, rgba(15, 92, 64, 0.12), transparent 44%);
}

.homepage-routes {
  align-items: stretch;
}

.homepage-routes__meta {
  padding: var(--space-card);
}

.button,
.filter-button,
.group-tab,
.poll__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.filter-button:hover,
.group-tab:hover,
.poll__button:hover {
  transform: translateY(-1px);
}

.button--primary,
.filter-button[aria-selected="true"],
.group-tab[aria-selected="true"],
.poll__button.is-active {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.46);
}

.hero__panel,
.stat-stack,
.sidebar-stack,
.article-sidebar {
  display: grid;
  gap: 18px;
}

.metric,
.countdown-card,
.fixture-card,
.feature-card,
.table-card,
.prediction-card,
.spotlight-card,
.profile-card,
.sidebar-card,
.player-card,
.article-card,
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.metric,
.feature-card,
.prediction-card,
.spotlight-card,
.profile-card,
.sidebar-card,
.player-card,
.article-card,
.quote-card {
  padding: var(--space-card);
}

.countdown-card,
.fixture-card {
  padding: var(--space-card);
}

.metric__label,
.countdown-card__label,
.fixture-card__eyebrow,
.story-card__tag {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.metric strong {
  font-size: 2rem;
}

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

.countdown__item {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(15, 39, 30, 0.06);
  text-align: center;
}

.countdown__item strong {
  display: block;
  font-size: 2rem;
}

.countdown-card__meta,
.fixture-card__meta {
  margin-bottom: 0;
}

.fixture-card__chips,
.strip__items,
.filter-bar,
.group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fixture-card__chips span,
.strip__items span,
.match-card__stage,
.poll__result {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--green-deep);
  font-size: 0.86rem;
}

.section {
  margin-top: 28px;
  padding: var(--space-section);
  border-radius: 30px;
}

.section--alt {
  border: 1px solid var(--line);
  background: rgba(255, 249, 240, 0.8);
}

.section--split,
.team-layout,
.article-layout,
.prediction-layout {
  display: grid;
  gap: 24px;
}

.section--split {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 0;
}

.team-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.article-layout {
  grid-template-columns: 1.18fr 0.82fr;
}

.prediction-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

.section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section__heading--stack {
  display: block;
  margin-bottom: 18px;
}

.section__intro {
  max-width: 620px;
  margin-bottom: 0;
}

.feature-grid,
.match-grid,
.roster-grid,
.history-overview,
.timeline-grid,
.peak-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-pillars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-pillars {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(220px, auto);
}

.match-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.history-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.peak-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card a,
.spotlight-list a,
.mini-list a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 0.18em;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.feature-card a:hover,
.spotlight-list a:hover,
.mini-list a:hover {
  color: var(--green-deep);
  opacity: 0.88;
}

.feature-card,
.prediction-card,
.spotlight-card,
.profile-card,
.sidebar-card,
.player-card,
.article-card,
.history-panel,
.chart-panel,
.curve-card {
  min-height: 100%;
}

.feature-card,
.prediction-card,
.spotlight-card,
.history-panel,
.summary-pill,
.selector-card,
.match-card,
.schedule-row,
.live-card,
.watchlist-row,
.stat-tile,
.archive-chip,
.story-row,
.timeline-card,
.peak-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.feature-card:hover,
.prediction-card:hover,
.spotlight-card:hover,
.match-card:hover,
.schedule-row:hover,
.live-card:hover,
.watchlist-row:hover,
.story-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 39, 30, 0.09);
}

.match-card,
.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}

.match-card {
  display: block;
}

.match-card__stage {
  display: inline-flex;
  margin-bottom: 16px;
}

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.match-card__team {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-card__team strong,
.schedule-row strong {
  font-size: 1.22rem;
}

.match-card__score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}

.groups,
.schedule-stack {
  display: grid;
  gap: 16px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.standings-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.detail-list div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 39, 30, 0.05);
}

.detail-list span,
.player-card__meta,
.article-meta {
  display: block;
  font-size: 0.92rem;
}

.player-card__number {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}

.mini-list,
.spotlight-list {
  margin: 0;
  padding-left: 18px;
}

.spotlight-list li + li {
  margin-top: 8px;
}

.article-card h2 {
  margin-top: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.article-quote {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(223, 166, 58, 0.1);
  color: var(--green-deep);
  font-size: 1.1rem;
  line-height: 1.7;
}

.quote-card {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.quote-card p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.poll {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.poll__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.poll__button {
  flex: 1;
  justify-content: flex-start;
}

.footer {
  margin-top: 36px;
  padding: 0 8px;
  color: var(--muted);
}

.history-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.history-dual,
.history-profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.history-triple,
.team-history-layout,
.trends-grid,
.schedule-hub,
.live-grid,
.match-layout {
  display: grid;
  gap: 24px;
}

.history-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-triple--charts {
  gap: 20px;
}

.team-history-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.trends-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-hub,
.live-grid,
.match-layout {
  grid-template-columns: 1fr 1fr;
}

.curve-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.history-panel,
.history-stat,
.timeline-card,
.peak-card,
.prediction-panel,
.selector-card,
.probability-card,
.knockout-card,
.chaos-card,
.story-row {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.history-panel {
  padding: var(--space-card);
  box-shadow: var(--shadow-soft);
}

.history-collapsible {
  position: relative;
  transition: max-height 220ms ease;
}

.history-collapsible.is-collapsed {
  max-height: var(--collapsed-height, 360px);
  overflow: hidden;
}

.history-collapsible.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  background: linear-gradient(180deg, rgba(250, 246, 237, 0), rgba(250, 246, 237, 0.96));
  pointer-events: none;
}

.history-collapse-button {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.history-collapse-button:hover {
  background: rgba(223, 166, 58, 0.16);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 12px 16px;
  border: 1px solid rgba(15, 39, 30, 0.12);
  border-radius: 999px;
  background: rgba(15, 92, 64, 0.92);
  color: #fffdf6;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(15, 39, 30, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(15, 92, 64, 1);
}

.history-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.spotlight-match,
.live-card,
.watchlist-row,
.match-hero-card,
.event-row,
.stat-tile {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.spotlight-match,
.live-card,
.match-hero-card,
.event-row,
.stat-tile {
  padding: 18px;
}

.spotlight-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.schedule-row__actions,
.live-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-card {
  margin-bottom: 12px;
}

.live-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}

.live-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 39, 30, 0.08);
  color: var(--green-deep);
  font-weight: 700;
}

.live-pill.is-live {
  background: rgba(196, 69, 54, 0.16);
  color: #8b271d;
}

.watchlist-stack {
  display: grid;
  gap: 12px;
}

.watchlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.match-hero-card {
  display: grid;
  gap: 16px;
  min-height: 220px;
}

.match-scoreline {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.match-scoreline strong {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--green);
  line-height: 1;
}

.match-scoreline span,
.event-row span {
  color: var(--muted);
}

.event-stack,
.stat-tiles {
  display: grid;
  gap: 12px;
}

.event-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
}

.event-row strong {
  color: var(--green);
}

.stat-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-tile span {
  display: block;
  color: var(--muted);
}

.stat-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
  color: var(--green);
}

.prediction-panel {
  padding: 22px;
}

.history-stat {
  padding: 20px;
  min-height: 168px;
}

.history-stat__label,
.timeline-card__year,
.ranking-row__index {
  color: var(--green);
  font-weight: 800;
}

.history-stat strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 2.1rem;
  line-height: 1;
}

.history-stat p {
  margin-bottom: 0;
}

.timeline-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  overflow: hidden;
  min-height: 152px;
}

.timeline-card__year {
  display: grid;
  place-items: center;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: rgba(15, 92, 64, 0.06);
  font-size: 1.8rem;
}

.timeline-card__body {
  padding: 20px;
}

.timeline-card__body p:last-child {
  margin-bottom: 0;
}

.history-rankings {
  display: grid;
  gap: 20px;
}

.archive-list,
.archive-subpanel {
  display: grid;
  gap: 12px;
}

.history-dual-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.editorial-grid__lead {
  grid-row: span 2;
  min-height: 100%;
}

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

.archive-subpanel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.archive-subpanel h3 {
  margin-bottom: 12px;
  color: var(--green-deep);
}

.archive-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.archive-chip {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.archive-chip strong {
  display: block;
  color: var(--green);
  font-size: 1.3rem;
}

.archive-chip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.summary-strip--events {
  margin-top: 18px;
}

.section-summary {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 4px solid rgba(15, 92, 64, 0.35);
  border-radius: 16px;
  background: rgba(15, 92, 64, 0.06);
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.55;
}

.summary-pill {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  min-height: 110px;
  box-shadow: 0 8px 20px rgba(15, 39, 30, 0.04);
}

.summary-pill strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.summary-pill span {
  color: var(--muted);
}

.summary-pill:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.history-mini-card {
  min-height: 220px;
  display: grid;
  align-content: start;
}

.history-mini-card a {
  margin-top: auto;
}

.portal-entry {
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.portal-entry--featured {
  grid-row: span 2;
  min-height: 100%;
}

.portal-entry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, rgba(15, 92, 64, 0.78), rgba(223, 166, 58, 0.82));
  opacity: 0.95;
}

.portal-entry__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-entry__meta {
  margin-top: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.portal-entry--featured h3 {
  font-size: 1.38rem;
}

.portal-entry--featured p {
  max-width: 30ch;
}

.portal-entry--history {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(250, 246, 238, 0.86)),
    radial-gradient(circle at top right, rgba(15, 92, 64, 0.08), transparent 42%);
}

.portal-entry--teams {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(250, 246, 238, 0.86)),
    radial-gradient(circle at top right, rgba(223, 166, 58, 0.12), transparent 42%);
}

.portal-entry--prediction {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(250, 246, 238, 0.86)),
    radial-gradient(circle at top right, rgba(15, 92, 64, 0.1), transparent 46%);
}

.portal-entry--schedule {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(250, 246, 238, 0.86)),
    radial-gradient(circle at top right, rgba(223, 166, 58, 0.12), transparent 46%);
}

.story-lede {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.story-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  margin-bottom: 12px;
  min-height: 96px;
}

.story-row__index,
.story-row__metric {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 16px;
  background: rgba(15, 92, 64, 0.08);
  color: var(--green);
  font-weight: 800;
}

.story-row__metric {
  font-size: 1.1rem;
}

.story-row__body strong {
  display: block;
  margin-bottom: 6px;
}

.story-row__subtle {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 600;
}

.story-row__body p {
  margin-bottom: 0;
  color: var(--muted);
}

.ranking-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row span,
.ranking-row em {
  color: var(--muted);
  font-style: normal;
}

.ranking-row em {
  color: var(--green-deep);
  font-weight: 800;
}

.peak-card {
  padding: 18px;
}

.peak-card strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
}

.peak-card span {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.peak-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chaos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.chaos-card {
  padding: 18px;
}

.chaos-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chaos-card__top strong {
  font-size: 1.8rem;
  color: var(--green);
}

.chaos-card__top span,
.chaos-card p,
.mini-bar label {
  color: var(--muted);
}

.chaos-card__bars {
  display: grid;
  gap: 12px;
}

.mini-bar {
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(15, 39, 30, 0.08);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.timeline-grid--compact {
  grid-template-columns: 1fr;
  max-height: 980px;
  overflow: auto;
}

.selector-card--history {
  margin-bottom: 18px;
}

.team-profile {
  display: grid;
  gap: 18px;
}

.team-profile__stats,
.team-profile__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-profile__notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.milestone-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.milestone-point {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.milestone-point span {
  display: block;
  color: var(--muted);
}

.milestone-point strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  color: var(--green);
}

.explorer-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.explorer-meta {
  margin: 16px 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.explorer-list {
  display: grid;
  gap: 12px;
}

.explorer-row {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.explorer-row__top,
.curve-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.explorer-row__top span,
.explorer-row__meta span,
.curve-card__meta span {
  color: var(--muted);
}

.explorer-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.explorer-row__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 39, 30, 0.06);
}

.curve-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
}

.curve-card__meta strong {
  font-size: 1.2rem;
}

.curve-chart {
  margin-top: 18px;
  overflow-x: auto;
}

.curve-chart svg {
  width: 100%;
  min-width: 640px;
  height: auto;
  display: block;
}

.curve-axis {
  stroke: rgba(15, 39, 30, 0.18);
  stroke-width: 1;
}

.curve-markers circle {
  fill: var(--green-deep);
}

.chart-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
}

.chart-panel h3 {
  margin-bottom: 14px;
  color: var(--green-deep);
}

.chart-panel__canvas {
  overflow-x: auto;
}

.chart-panel__canvas svg {
  width: 100%;
  min-width: 640px;
  height: auto;
  display: block;
}

.chart-label {
  fill: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 11px;
}

[id$="-section"] {
  scroll-margin-top: 24px;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.selector-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  min-height: 116px;
}

.selector-card span {
  color: var(--green);
  font-weight: 700;
}

.selector-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.matchup-card {
  display: grid;
  gap: 18px;
}

.matchup-card__header p,
.matchup-placeholder,
.assumption-list {
  color: var(--muted);
}

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

.probability-card,
.knockout-card {
  padding: 18px;
}

.probability-card span,
.knockout-card span,
.odds-row span {
  display: block;
  color: var(--muted);
}

.probability-card strong,
.knockout-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  color: var(--green);
}

.knockout-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 14px;
}

.assumption-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

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

.odds-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.portal-hero {
  align-items: stretch;
}

.portal-hero__panel {
  align-content: stretch;
}

.odds-row strong {
  display: block;
}

.odds-row__bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 39, 30, 0.08);
  overflow: hidden;
}

.odds-row__bar span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.odds-row em {
  color: var(--green-deep);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 980px) {
  .history-toc {
    display: none;
  }

  .site-shell {
    width: min(100%, calc(100% - 24px));
  }

  .hero__content,
  .page-hero,
  .section--split,
  .team-layout,
  .article-layout,
  .prediction-layout,
  .history-dual,
  .history-profile-layout,
  .history-triple,
  .team-history-layout,
  .trends-grid,
  .schedule-hub,
  .live-grid,
  .match-layout,
  .curve-layout,
  .history-dual-list,
  .feature-grid,
  .match-grid,
  .roster-grid,
  .history-overview,
  .timeline-grid,
  .peak-grid,
  .priority-rail,
  .history-split,
  .chaos-grid,
  .team-profile__stats,
  .team-profile__notes,
  .milestone-track,
  .explorer-controls,
  .summary-strip,
  .stat-tiles {
    grid-template-columns: 1fr;
  }

  .section__heading {
    align-items: start;
    flex-direction: column;
  }

  .portal-hero__paths {
    grid-template-columns: 1fr;
  }

  .portal-pillars,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .portal-entry--featured,
  .editorial-grid__lead {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .history-toc {
    display: none;
  }

  .site-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 12px;
    padding-bottom: 40px;
  }

  .masthead,
  .section {
    padding: 20px;
    border-radius: 24px;
  }

  .nav {
    align-items: start;
    flex-direction: column;
  }

  .nav__links,
  .history-jumpnav,
  .history-subnav,
  .countdown,
  .detail-list,
  .selector-grid,
  .probability-grid,
  .knockout-card,
  .section-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: 2.7rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero__lede {
    font-size: 0.98rem;
  }

  .match-card__teams,
  .schedule-row,
  .poll__row,
  .odds-row,
  .explorer-row__top,
  .curve-card__meta,
  .spotlight-match,
  .watchlist-row {
    align-items: start;
    flex-direction: column;
  }

  .schedule-row .button,
  .poll__button,
  .history-links .button {
    width: 100%;
  }

  .history-stat,
  .summary-pill {
    min-height: auto;
  }

  .quote-card {
    min-height: 160px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .feature-card:hover,
  .prediction-card:hover,
  .spotlight-card:hover,
  .match-card:hover,
  .schedule-row:hover,
  .live-card:hover,
  .watchlist-row:hover,
  .story-row:hover,
  .nav__links a:hover,
  .history-jumpnav a:hover,
  .history-subnav a:hover {
    transform: none;
  }

  .nav__links a[aria-current="page"]::after {
    left: 12px;
    right: 12px;
  }
}
