body {
  font-family: "Inter", sans-serif;
  background-color: #f0f4f8;
  color: #2d3748;
}

.nav-active {
  border-bottom-color: #3b82f6;
  color: #2563eb;
  font-weight: 600;
}

.nav-inactive {
  border-bottom-color: transparent;
}

.confidence-high {
  background-color: #d1fae5;
  color: #065f46;
}

.confidence-medium {
  background-color: #e0f2fe;
  color: #075985;
}

.confidence-low {
  background-color: #fef3c7;
  color: #92400e;
}

.accuracy-correct {
  background-color: #d1fae5;
  color: #065f46;
}

.accuracy-incorrect {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Confidence Key Styles */
.confidence-key-high {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.confidence-key-medium {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.confidence-key-low {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.summary-card {
  background-color: #f9fafb; /* bg-gray-50 */
  border: 1px solid #e5e7eb; /* border-gray-200 */
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: left;
  color: #1f2937; /* text-gray-800 */
}

/* Accuracy-based styling for summary cards */
.summary-card.accuracy-good {
  background-color: #d1fae5; /* green-100 */
  border-color: #a7f3d0; /* green-300 */
  color: #065f46; /* green-800 */
}

.summary-card.accuracy-good h4 {
  color: #065f46; /* green-800 */
}

.summary-card.accuracy-good p {
  color: #059669; /* green-600 for percentage */
}

.summary-card.accuracy-poor {
  background-color: #fee2e2; /* red-100 */
  border-color: #fca5a5; /* red-300 */
  color: #991b1b; /* red-800 */
}

.summary-card.accuracy-poor h4 {
  color: #991b1b; /* red-800 */
}

.summary-card.accuracy-poor p {
  color: #dc2626; /* red-600 for percentage */
}

/* Vertical match display styling */
.vertical-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 120px;
}

.vertical-match .home-team,
.vertical-match .away-team {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  color: #1f2937;
}

.vertical-match .vs-separator {
  font-size: 0.625rem;
  color: #6b7280;
  font-weight: 400;
}

/* Tooltip for match dates on hover */
.match-with-date {
  position: relative;
  cursor: help;
}

.match-with-date:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.2s ease-in-out forwards;
}

.match-with-date:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 0.25rem);
  left: 50%;
  transform: translateX(-50%);
  border: 0.25rem solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.2s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Title link styling */
a:hover {
  text-decoration: none;
}

.title-link {
  cursor: pointer;
}

.title-link:hover {
  color: #3b82f6 !important;
  text-decoration: none;
}

.world-cup-hero {
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(236, 253, 245, 0.9)),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  min-height: 320px;
  overflow: hidden;
}

.world-cup-hero-content {
  max-width: 760px;
  padding: 2rem;
}

.world-cup-hero h3 {
  color: #111827;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.world-cup-hero p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 650px;
}

.world-cup-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
  max-width: 560px;
}

.world-cup-stat {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
}

.world-cup-stat span {
  color: #64748b;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.world-cup-stat strong {
  color: #0f172a;
  display: block;
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h3 {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 800;
}

.section-heading p {
  color: #64748b;
  font-size: 0.875rem;
  max-width: 520px;
  text-align: right;
}

.world-cup-match-grid,
.world-cup-group-grid {
  display: grid;
  gap: 1rem;
}

.world-cup-match-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.world-cup-group-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.world-cup-match,
.world-cup-group {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.world-cup-match {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 230px;
}

.world-cup-group h4 {
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.world-cup-group li {
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

@media (max-width: 640px) {
  .world-cup-hero-content {
    padding: 1.25rem;
  }

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

  .section-heading p {
    text-align: left;
  }
}

/* Prediction-first content contract */
body {
  font-size: 15px;
}

.site-main {
  padding-top: 2rem;
}

.page-intro {
  padding: 0.75rem 0 1.5rem;
}

.page-intro h3,
.hero h3,
.prediction-page-header h3 {
  font-size: clamp(1.75rem, 4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-intro > p:last-child {
  max-width: 680px;
  margin-top: 0.65rem;
  font-size: 0.95rem;
}

.section-heading h2 {
  font-size: 1.4rem;
}

.prediction-page-header {
  margin-bottom: 0.75rem;
}

.prediction-page-header p,
.prediction-page-header dl {
  margin-block: 0.35rem;
}

.recent-performance,
.performance-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 0;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  overflow: hidden;
}

.recent-performance > div,
.recent-performance > a {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 0.55rem 0.75rem;
  border-right: 1px solid var(--line);
}

.recent-performance span,
.prediction-summary dt,
.main-prediction span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.recent-performance strong {
  font-size: 1.05rem;
}

.recent-performance a {
  border-right: 0;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.track-record-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.prediction-filters {
  grid-template-columns: repeat(3, minmax(150px, 220px));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem;
}

.prediction-filters select {
  min-height: 38px;
  padding-block: 0.4rem;
}

.prediction-key {
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
}

.prediction-key summary,
.prediction-details > summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 0.875rem;
  font-weight: 800;
}

.prediction-key summary {
  padding: 0.65rem 0.8rem;
}

.prediction-key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0 0.8rem 0.8rem;
}

.prediction-key-grid div {
  display: grid;
}

.prediction-key-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.prediction-list {
  gap: 0.8rem;
}

.fixture-prediction-header {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 0.75rem;
  padding: 0.8rem 1rem;
}

.fixture-prediction :is(h1, h2) {
  margin: 0.2rem 0 0;
  font-size: clamp(1.08rem, 3vw, 1.25rem);
}

.fixture-round {
  margin: 0;
}

.fixture-metadata {
  gap: 0.4rem 0.75rem;
}

.fixture-metadata dd {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
}

.prediction-summary {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(0, 3fr);
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.main-prediction {
  display: grid;
  align-content: center;
  padding-right: 0.75rem;
  border-right: 2px solid var(--accent);
}

.main-prediction strong {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.125rem;
}

.main-prediction small {
  color: var(--accent-dark);
  font-weight: 700;
}

.prediction-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0;
}

.prediction-summary-grid div {
  min-width: 0;
  padding: 0.35rem 0.5rem;
}

.prediction-summary dd {
  margin: 0.05rem 0 0;
  font-weight: 800;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.status-label::before {
  content: "●";
}

.status-hit { color: #087a63; }
.status-miss { color: #b42318; }
.status-locked { color: #475569; }
.status-published { color: #1d4ed8; }

.prediction-details {
  border-top: 1px solid var(--line);
}

.prediction-details > summary {
  padding: 0.65rem 1rem;
}

.prediction-market-grid {
  gap: 0.65rem;
  padding: 0.75rem;
}

.prediction-market,
.prediction-confidence-summary {
  padding: 0.75rem;
}

.prediction-market h3,
.prediction-confidence-summary h3 {
  margin: 0;
  font-size: 1.05rem;
}

.prediction-settlement {
  margin: 0.75rem;
}

.fixture-detail-link {
  margin: 0.35rem 0 0 0.75rem;
  font-size: 0.85rem;
}

.coverage-strip.performance-summary {
  grid-template-columns: repeat(5, 1fr);
}

.confidence-performance {
  grid-template-columns: repeat(3, 1fr);
}

.profit-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .site-main {
    width: min(100% - 1rem, 1180px);
    padding-top: 1rem;
  }

  .recent-performance {
    grid-template-columns: repeat(3, 1fr);
  }

  .recent-performance > div,
  .recent-performance > a {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
  }

  .prediction-filters,
  .prediction-key-grid {
    grid-template-columns: 1fr;
  }

  .fixture-prediction-header,
  .prediction-summary {
    grid-template-columns: 1fr;
  }

  .main-prediction {
    padding: 0 0 0.6rem;
    border-right: 0;
    border-bottom: 2px solid var(--accent);
  }

  .prediction-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-strip.performance-summary,
  .confidence-performance {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2026 site shell */
:root {
  --ink: #0b1728;
  --muted: #5e6c7d;
  --paper: #f5f7f9;
  --surface: #ffffff;
  --line: #dce3e8;
  --accent: #176b5b;
  --accent-dark: #0f4b40;
  --accent-soft: #e4f1ed;
  --warm: #f4b860;
  --danger: #a43a3a;
  --danger-soft: #fae9e7;
  --page-heading-size: 1rem;
  --section-heading-size: 0.875rem;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(19, 36, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
}

h2,
h3,
.brand {
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
}

.hidden,
[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 232, 0.85);
  background: rgba(245, 247, 249, 0.92);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand small {
  color: var(--accent);
  font-size: inherit;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--ink);
  color: white;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.62rem 0.86rem;
  border-radius: 999px;
  color: #475668;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 16px rgba(19, 36, 55, 0.07);
}

.menu-button {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.site-main {
  width: min(1180px, calc(100% - 2rem));
  min-height: 70vh;
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.hero {
  max-width: 900px;
  padding: 3rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h3,
.page-intro h3 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy,
.page-intro > p:last-child {
  max-width: 710px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.principle-grid article {
  min-height: 210px;
  padding: 1.6rem;
}

.principle-grid article + article {
  border-left: 1px solid var(--line);
}

.principle-grid span,
.record-count,
.archive-status {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle-grid h2 {
  margin: 2.2rem 0 0.45rem;
}

.principle-grid p,
.home-panel p,
.archive-card p,
.method-grid p {
  color: var(--muted);
}

.home-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.2rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.home-panel p:not(.eyebrow) {
  max-width: 620px;
  color: #b8c3cf;
}

.home-panel .eyebrow {
  color: #7fd1bf;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.home-panel .text-link {
  color: white;
}

.home-picks {
  margin: 1.2rem 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-picks-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.summary-picks-table th,
.summary-picks-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.summary-picks-table thead th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-picks-table tbody th {
  min-width: 180px;
}

.summary-picks-table a {
  color: var(--ink);
  text-decoration: none;
}

.summary-picks-table a:hover {
  color: var(--accent);
}

.summary-picks-table strong,
.summary-picks-table small {
  display: block;
}

.summary-picks-table small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: capitalize;
}

.summary-picks-table tfoot th,
.summary-picks-table tfoot td {
  border-bottom: none;
  border-top: 2px solid var(--line);
  font-weight: 800;
}

.page-intro {
  padding: 1.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-intro h3 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.archive-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.archive-card,
.method-grid article,
.content-panel {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.archive-card h2 {
  margin: 0.7rem 0 1.5rem;
  font-size: 1.7rem;
}

.archive-card h2 span {
  color: var(--muted);
  font-weight: 500;
}

.archive-card dl,
.coverage-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.archive-card dl div,
.coverage-strip div {
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: var(--paper);
}

.archive-card dt,
.coverage-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.archive-card dd,
.coverage-strip strong {
  margin: 0.1rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.archive-card .button {
  margin-top: 1rem;
}

.section-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.section-toolbar label,
.unit-picker {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

select {
  min-height: 44px;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.content-panel {
  margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.7rem;
}

.data-table-wrap {
  overflow-x: auto;
}

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

.archive-table th,
.archive-table td {
  min-width: 135px;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.archive-table thead th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-table tbody th {
  min-width: 180px;
}

.archive-table small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.legacy-notice {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--warm);
  background: #fff8eb;
}

.legacy-notice p {
  margin: 0;
  color: #6d5b3d;
}

.coverage-strip {
  margin: 1rem 0;
}

.coverage-strip div {
  border: 1px solid var(--line);
  background: var(--surface);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.metric-card {
  min-width: 0;
  padding: 1rem;
  border-radius: 0.9rem;
  background: var(--paper);
}

.metric-card p {
  min-height: 2.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.7rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.72rem;
}

.performance-history {
  display: grid;
  gap: 0.8rem;
}

.history-row {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.history-row h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.history-meta {
  margin: -0.45rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.history-row > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.history-result {
  display: block;
  padding: 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.history-result b,
.history-result small {
  display: block;
}

.history-result b {
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
}

.history-result small {
  margin-top: 0.3rem;
  font-weight: 500;
}

.history-result.correct {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.history-result.incorrect {
  background: var(--danger-soft);
  color: var(--danger);
}

.history-result.pending {
  background: #eef1f4;
  color: var(--muted);
}

.method-grid article {
  min-height: 230px;
}

.method-grid h2 {
  margin: 1.5rem 0 0.5rem;
}

.loading-state,
.error-state,
.empty-state {
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  color: var(--muted);
}

.site-footer h2 {
  color: var(--ink);
  font-size: 0.85rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 0.35rem 0;
}

.footer-fine-print {
  font-size: 0.75rem;
}

.footer-brand {
  margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
  .metric-grid,
  .history-row > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: 0;
  }

  .principle-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 64px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    display: none;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-main {
    padding-top: 2rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero h3,
  .page-intro h3 {
    letter-spacing: -0.04em;
  }

  .archive-grid,
  .method-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .home-panel,
  .section-toolbar,
  .legacy-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-card dl,
  .coverage-strip {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .history-row > div {
    grid-template-columns: 1fr;
  }
}

/* Row hover effects */
tbody tr:hover {
  background-color: #f8fafc !important;
  cursor: pointer;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

/* Ensure hover works over confidence colors */
tbody tr:hover td {
  background-color: inherit;
}

/* Special handling for confidence cells on hover */
tbody tr:hover .confidence-high {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

tbody tr:hover .confidence-medium {
  background-color: rgba(59, 130, 246, 0.2) !important;
}

tbody tr:hover .confidence-low {
  background-color: rgba(251, 191, 36, 0.2) !important;
}

/* Analysis page row hover */
tbody tr:hover .accuracy-good {
  background-color: rgba(34, 197, 94, 0.3) !important;
}

tbody tr:hover .accuracy-poor {
  background-color: rgba(239, 68, 68, 0.3) !important;
}

/* Validated public prediction components */
.fixture-prediction {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.fixture-prediction-header,
.prediction-confidence-summary {
  padding: 1.25rem;
}

.fixture-prediction-header {
  display: grid;
  gap: 1.25rem;
}

.fixture-round,
.probability-label,
.fixture-metadata dt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fixture-prediction :is(h1, h2) {
  color: #111827;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  gap: 0.5rem;
}

.versus {
  color: #64748b;
  font-size: 0.75em;
  font-weight: 500;
}

.fixture-metadata {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fixture-metadata dd {
  color: #1f2937;
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

.provisional-notice {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  padding: 1rem 1.25rem;
}

.provisional-notice strong {
  font-size: 1rem;
}

.provisional-notice p {
  margin-top: 0.25rem;
}

.probability-confidence-note {
  background: #eff6ff;
  border-block: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 0.9rem 1.25rem;
}

.prediction-market-grid {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.prediction-settlement {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--border-color, #d7dce2);
  border-radius: 0.75rem;
}

.prediction-settlement dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.prediction-settlement table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

.prediction-settlement th,
.prediction-settlement td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color, #d7dce2);
}

.settlement-status {
  font-weight: 700;
}

.prediction-market {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  min-width: 0;
  padding: 1rem;
}

.prediction-market-heading {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.prediction-market h3,
.prediction-confidence-summary h3 {
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 800;
}

.prediction-outcomes,
.card-expectations {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.prediction-outcome,
.expected-total {
  background: #f8fafc;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.prediction-outcome span,
.prediction-outcome strong,
.prediction-outcome small,
.expected-total span,
.expected-total strong {
  display: block;
}

.prediction-outcome strong,
.expected-total strong {
  color: #2563eb;
  font-size: 1.25rem;
}

.recommended-pick {
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.prediction-lines {
  margin-top: 0.75rem;
  overflow-x: auto;
}

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

.prediction-lines th,
.prediction-lines td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem;
  text-align: left;
}

.prediction-lines small {
  color: #64748b;
  display: block;
}

.prediction-confidence {
  border: 1px solid currentColor;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
}

.prediction-confidence-reasons {
  font-weight: 400;
}

.specialist-markets {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.specialist-markets li {
  display: flex;
  justify-content: space-between;
}

.card-settlement {
  background: #f8fafc;
  border-radius: 0.375rem;
  margin-top: 1rem;
  padding: 0.75rem;
}

.card-settlement summary {
  cursor: pointer;
  font-weight: 700;
}

.card-settlement p {
  color: #475569;
  margin-top: 0.5rem;
}

.prediction-confidence-summary {
  border-top: 1px solid #e5e7eb;
}

.prediction-confidence-summary ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.publication-warnings {
  list-style: disc;
  padding-left: 1.25rem;
}

.prediction-state {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.prediction-page-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.prediction-page-header h3 {
  color: #111827;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
}

.prediction-page-header a,
.fixture-detail-link {
  color: #2563eb;
  font-weight: 600;
}

.prediction-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.prediction-page-header dl {
  display: grid;
  gap: 0.5rem;
}

.prediction-page-header dt {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.prediction-page-header dd {
  font-size: 0.875rem;
}

.prediction-filters {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.prediction-filters label {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}

.prediction-filters select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  color: #1f2937;
  display: block;
  margin-top: 0.3rem;
  padding: 0.55rem;
  width: 100%;
}

.prediction-list {
  display: grid;
  gap: 1.5rem;
}

.prediction-list-item {
  min-width: 0;
}

.fixture-detail-link {
  display: inline-block;
  margin: 0.65rem 0 0 1rem;
}

.prediction-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

@media (min-width: 768px) {
  .fixture-prediction-header {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  }

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

@media (max-width: 640px) {
  .fixture-metadata,
  .prediction-outcomes,
  .card-expectations {
    grid-template-columns: 1fr;
  }

  .prediction-market-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Preserve semantic heading structure without display-sized typography. */
.site-main .page-heading {
  max-width: 900px;
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: var(--page-heading-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}

.site-main :is(h2, h3, h4),
.site-footer .section-title {
  margin-block: 0 0.4rem;
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}

/* Keep descriptive copy level with the compact heading it explains. */
.hero-copy,
.page-intro > p:last-child,
.prediction-page-header .page-heading + p {
  font-size: var(--page-heading-size);
}

.section-heading p,
.principle-grid article > p,
.home-panel p:not(.eyebrow),
.archive-card > p:not(.archive-status),
.method-grid article > p,
.content-panel > p,
.prediction-state > p,
.prediction-confidence-summary > p,
.site-footer .section-title + p {
  font-size: var(--section-heading-size);
}
