.forecast-index {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(20px, 1.6vw, 29px) clamp(18px, 1.95vw, 35px) 0;
  color: var(--ink);
  --forecast-border: var(--line, #d3deec);
  --forecast-rule: var(--line-strong, #becde1);
  --forecast-action: var(--brand, #034ee8);
  --forecast-stripe: #f0f5fc;
}

.forecast-index-heading h1 {
  margin: 0 0 clamp(16px, 1.4vw, 24px);
  font: 800 clamp(30px, 3.2vw, 54px)/1.07 "Manrope", system-ui, sans-serif;
  letter-spacing: -.042em;
  overflow-wrap: anywhere;
}

.forecast-index .archive-nav {
  max-width: none;
  padding: 0 0 13px;
  margin: 0 0 15px;
  border-bottom: 1px solid var(--forecast-border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.forecast-index .archive-nav > div { gap: 8px; }

.forecast-index .archive-nav:not(.pagination) > strong,
.forecast-index .forecast-discovery h2,
.forecast-index .forecast-filters label:not(.forecast-filter-switch) > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.forecast-index .archive-nav a {
  display: inline-flex;
  min-height: 40px;
  min-width: 64px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--forecast-border);
  border-radius: 9px;
  background: #f7faff;
  color: var(--ink);
  box-shadow: none;
  padding: 7px clamp(11px, 1.35vw, 22px);
  font-size: clamp(.85rem, 1.31vw, 1.26rem);
  font-weight: 800;
}

.forecast-index .archive-nav a:hover,
.forecast-index .archive-nav a:focus-visible { border-color: var(--forecast-action); }
.forecast-index .archive-nav a[aria-current="page"] {
  background: var(--forecast-action);
  border-color: var(--forecast-action);
  color: #fff;
}
.forecast-index .archive-nav.pagination {
  padding: 0;
  margin: 0 0 10px;
  border: 0;
}
.forecast-index .archive-nav.pagination a { min-height: 34px; font-size: .82rem; padding: 5px 10px; }

.forecast-index > :is(.forecast-result-summary, .forecast-page-links, .forecast-discovery, .section-block, .forecast-context, .forecast-seo-guide) {
  width: 100%;
  min-width: 0;
  margin-inline: 0;
}
.forecast-index :is(#forecast-recommendations, #forecast-table, #forecast-observations) {
  scroll-margin-top: 85px;
}
.forecast-index .forecast-result-summary {
  padding: clamp(13px, 1.4vw, 23px);
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--forecast-border);
  border-radius: 12px;
}
.forecast-index .forecast-result-summary h2 {
  margin: 0 0 11px;
  font: 800 clamp(18px, 1.5vw, 23px)/1.2 var(--font-ui);
}
.forecast-index .forecast-result-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.forecast-index .forecast-result-totals > div + div {
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--forecast-border);
}
.forecast-index .forecast-result-totals h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font: 800 .85rem/1.3 var(--font-ui);
}
.forecast-index .forecast-result-totals dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin: 0;
}
.forecast-index .forecast-result-totals dl > div {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  margin: 0;
}
.forecast-index .forecast-result-totals :is(dt, p) {
  margin: 0;
  font-size: .83rem;
  line-height: 1.45;
  color: var(--muted);
}
.forecast-index .forecast-result-totals dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.forecast-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 10px;
}
.forecast-page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  padding: 6px 10px;
  color: var(--brand-hover);
  font-size: .86rem;
  font-weight: 800;
  border-radius: 7px;
}
.forecast-page-links a:hover { background: var(--brand-soft); text-decoration: underline; }

.forecast-index .forecast-discovery {
  margin: 0 0 clamp(14px, 1.05vw, 19px);
  padding: 9px 10px;
  background: #f7faff;
  border: 1px solid var(--forecast-border);
  border-radius: 11px;
}

.forecast-index .forecast-discovery-head {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}
.forecast-index .forecast-discovery-head:has(> span) { margin: 0 0 6px; padding: 2px; }

.forecast-index .forecast-discovery p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

.forecast-index .forecast-discovery p a { color: var(--forecast-action); text-decoration: underline; }

.forecast-index .forecast-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: clamp(8px, .875vw, 16px);
}

.forecast-index .forecast-filters label { min-width: 0; }
.forecast-index .forecast-filter-team { position: relative; }
.forecast-index .forecast-filter-team > svg {
  position: absolute;
  inset-inline-start: 13px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.forecast-index .forecast-filters select,
.forecast-index .forecast-filters input[type=search] {
  width: 100%;
  min-width: 0;
  min-height: clamp(43px, 3.1vw, 54px);
  padding: 9px 11px;
  border: 1px solid var(--forecast-rule);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 600 clamp(.875rem, 1.12vw, 1.12rem)/1.3 "Manrope", system-ui, sans-serif;
}

.forecast-index .forecast-filters input[type=search] { padding-inline-start: 39px; }
.forecast-index .forecast-filters input::placeholder { color: var(--muted); opacity: 1; }
.forecast-index .forecast-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(8px, 1.05vw, 18px);
}
.forecast-index .forecast-filter-actions .button {
  min-height: clamp(43px, 3.1vw, 54px);
  padding: 8px clamp(13px, 1.53vw, 28px);
  border-radius: 9px;
  font-size: clamp(.85rem, 1.18vw, 1.16rem);
}
.forecast-index .forecast-filters .forecast-filter-switch {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(.825rem, 1.1vw, 1.1rem);
  font-weight: 650;
}
.forecast-index .forecast-filter-switch input {
  width: 1.13rem;
  height: 1.13rem;
  margin: 0;
  flex: none;
  accent-color: var(--forecast-action);
}

.forecast-index > .section-block { max-width: none; margin: 0 0 clamp(19px, 1.5vw, 27px); padding: 0; }
.forecast-index .section-title { margin: 0 0 10px; padding: 0; align-items: baseline; gap: 10px; }
.forecast-index .section-title h2 {
  margin: 0;
  font: 800 clamp(20px, 2.05vw, 35px)/1.16 "Manrope", system-ui, sans-serif;
  letter-spacing: -.035em;
}
.forecast-index .section-title > span { flex: 0 0 auto; color: var(--muted); font-weight: 700; }
.forecast-index .section-explainer { margin: 7px 0 13px; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.forecast-index .high-probability-section .section-title h2 { font-size: clamp(20px, 1.65vw, 28px); }
.forecast-index .forecast-section-note { max-width: none; margin: 0 0 10px; }

/* The open overview increases the grid row, but not the other card in it. */
.forecast-index .recommend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(13px, 1.3vw, 23px); align-items: start; }
.forecast-index .recommend-grid > .empty-state.compact {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  padding: 10px 13px;
  background: #f8fbff;
  border: 1px solid var(--forecast-border);
  border-radius: 10px;
  box-shadow: none;
  text-align: left;
}
.forecast-index .recommend-grid > .empty-state.compact p { margin: 0; font-size: .86rem; line-height: 1.5; }
.forecast-index > .empty-recommendations { margin-bottom: 13px; }
.forecast-index .empty-recommendations .section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.forecast-index .empty-recommendations .empty-state.compact {
  padding: 8px 0;
  border: 0;
  background: transparent;
}

.forecast-index .forecast-more-cards { margin-top: 9px; }
.forecast-index .forecast-more-cards > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 7px;
  padding: 4px 8px;
  color: var(--forecast-action);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.forecast-index .forecast-more-cards > summary::-webkit-details-marker { display: none; }
.forecast-index .forecast-more-cards > summary:hover { background: var(--brand-soft); }
.forecast-index .forecast-more-cards[open] > summary svg { transform: rotate(180deg); }
.forecast-index .forecast-more-cards > .recommend-grid { margin-top: 5px; }

.forecast-index .prediction-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(13px, 1.45vw, 25px);
  border: 1px solid var(--forecast-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s ease;
}
.forecast-index .prediction-card:hover { border-color: #9fb6da; transform: none; box-shadow: none; }
.forecast-index .prediction-card .card-meta {
  display: flex;
  padding: 9px 0 0;
  color: var(--muted);
  font-size: clamp(.65rem, .75vw, .82rem);
}
.forecast-index .prediction-card .card-meta a { color: var(--muted); }
.forecast-index .prediction-card .card-meta a:hover { color: var(--forecast-action); }
.forecast-index .prediction-card .card-meta time {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.forecast-index .forecast-card-main {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(9px, 1.5vw, 25px);
  padding: clamp(9px, .75vw, 13px) 0;
}
.forecast-index .prediction-card .fixture-identity {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.forecast-index .fixture-team {
  min-width: 0;
  gap: clamp(6px, .75vw, 13px);
  padding: 0;
  border: 0;
  background: transparent;
}
.forecast-index .fixture-team > img,
.forecast-index .fixture-team > .fixture-monogram {
  width: clamp(24px, 2.35vw, 39px);
  height: clamp(24px, 2.35vw, 39px);
}
.forecast-index .fixture-monogram {
  background: #f0f5fc;
  color: #28466d;
  border: 1px solid #d6e1f1;
  border-radius: 6px;
}
.forecast-index .fixture-team > strong {
  color: var(--ink);
  font: 800 clamp(.86rem, 1.42vw, 1.42rem)/1.23 "Manrope", system-ui, sans-serif;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.forecast-index .fixture-team > small { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.forecast-index .fixture-team > b { color: var(--ink); }
.forecast-index .fixture-identity:hover .fixture-team > strong { color: var(--forecast-action); }

.forecast-index .forecast-card-markets { min-width: 0; }
.forecast-index .forecast-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  gap: 8px;
}
.forecast-index .forecast-market-row + .forecast-market-row { border-top: 1px solid var(--forecast-border); margin-top: 7px; padding-top: 7px; }
.forecast-index .forecast-market-row + .forecast-market-row .forecast-market-copy > strong {
  font-size: clamp(.78rem, 1vw, 1rem);
}
.forecast-index .forecast-market-row + .forecast-market-row .forecast-market-copy > span {
  font-size: .73rem;
}
.forecast-index .forecast-market-copy,
.forecast-index .forecast-market-estimate {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 46px;
  border-inline-start: 1px solid var(--forecast-border);
  padding-inline-start: clamp(7px, 1.35vw, 24px);
}
.forecast-index .forecast-market-copy > span,
.forecast-index .forecast-market-estimate > span,
.forecast-index .forecast-market-copy > small {
  color: var(--muted);
  font-size: clamp(.68rem, 1vw, 1rem);
  line-height: 1.3;
}
.forecast-index .forecast-market-copy > strong {
  color: var(--ink);
  font: 800 clamp(.81rem, 1.36vw, 1.36rem)/1.2 "Manrope", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.forecast-index .forecast-market-estimate > strong {
  color: var(--ink);
  font: 800 clamp(17px, 1.95vw, 35px)/1.2 "Manrope", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.033em;
}
.forecast-index .forecast-market-estimate .outcome { align-self: flex-start; }
.forecast-index .forecast-market-lock {
  align-self: center;
  padding: 5px 6px 5px clamp(7px, 1.1vw, 20px);
  border-inline-start: 1px solid var(--forecast-border);
  font-size: clamp(.73rem, .88vw, .95rem);
  font-weight: 750;
  color: var(--forecast-action);
  overflow-wrap: anywhere;
}
.forecast-index .forecast-market-lock:hover { text-decoration: underline; }

.forecast-index .forecast-quick-view { border-top: 1px solid var(--forecast-border); }
.forecast-index .forecast-quick-view summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(41px, 3.28vw, 55px);
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: clamp(.76rem, 1.15vw, 1.16rem);
  font-weight: 650;
  list-style: none;
}
.forecast-index .forecast-quick-view summary::-webkit-details-marker { display: none; }
.forecast-index .forecast-card-status { color: var(--muted); }
.forecast-index .forecast-card-status-recommended { color: var(--green, #087950); font-weight: 800; }
.forecast-index .forecast-card-status-recommended::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: currentColor;
}
.forecast-index .forecast-quick-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: var(--forecast-action);
}
.forecast-index .forecast-quick-view[open] .forecast-quick-label svg { transform: rotate(90deg); }
.forecast-index .forecast-quick-view summary:hover .forecast-quick-label,
.forecast-index .forecast-quick-detail:hover { text-decoration: underline; }
.forecast-index .forecast-quick-content { padding: 0 0 7px; font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.forecast-index .forecast-quick-content p { margin: 7px 0; }
.forecast-index .forecast-quick-content .winner-snapshot { margin: 0 0 8px; }
.forecast-index .forecast-quick-detail { display: inline-block; margin-bottom: 12px; color: var(--forecast-action); font-size: .85rem; font-weight: 750; }
.forecast-index .forecast-quick-history h3 { margin: 9px 0 3px; font-size: .88rem; }
.forecast-index .forecast-quick-history ul { list-style: none; margin: 0; padding: 0; }
.forecast-index .forecast-quick-history li { padding: 4px 0; }
.forecast-index .forecast-quick-history time { color: var(--muted); margin-right: 5px; }
.forecast-index .forecast-quick-history li:not(:last-child) { border-bottom: 1px solid var(--forecast-border); }

.forecast-index .forecast-index-table-wrap { border-radius: 10px; border-color: var(--forecast-rule); box-shadow: none; }
.forecast-index .forecast-index-table {
  min-width: 1250px;
  font-size: clamp(.83rem, 1.02vw, 1rem);
  font-variant-numeric: tabular-nums;
  border-collapse: separate;
  border-spacing: 0;
}
.forecast-index .forecast-index-table th,
.forecast-index .forecast-index-table td { min-width: 57px; padding: 10px 11px; }
.forecast-index .forecast-index-table th:first-child { min-width: 116px; padding-inline-start: 16px; }
.forecast-index .forecast-index-table thead th,
.forecast-index .forecast-index-table tbody th { text-align: center; }
.forecast-index .forecast-index-table thead th:nth-child(-n+2),
.forecast-index .forecast-index-table tbody th { text-align: left; }
.forecast-index .forecast-index-table thead th:nth-child(2) { min-width: 210px; }
.forecast-index .forecast-index-table thead th {
  height: 43px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--table-head, #536e94);
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  font: 800 clamp(.81rem, 1vw, 1.01rem)/1.3 "Manrope", system-ui, sans-serif;
}
.forecast-index .forecast-index-table thead th .table-sort-button {
  min-height: 28px;
  white-space: normal;
  justify-content: center;
  line-height: 1.25;
}
.forecast-index .forecast-index-table thead th .table-sort-button::after { color: #fff; opacity: .8; }
.forecast-index .forecast-index-table thead th .table-sort-button:focus-visible { outline: 2px solid #fff; }
.forecast-index .forecast-index-table tbody tr { background: #fff; }
.forecast-index .forecast-index-table tbody tr:nth-child(even) { background: var(--forecast-stripe); }
.forecast-index .forecast-index-table tbody tr:hover { background: #e4eefb; }
.forecast-index .forecast-index-table tbody th a {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}
.forecast-index .forecast-index-table tbody th a:hover { color: var(--forecast-action); }
.forecast-index .forecast-index-table tbody th a img,
.forecast-index .forecast-index-table tbody th a .fixture-monogram { width: 23px; height: 23px; object-fit: contain; flex: none; }
.forecast-index .forecast-index-table tbody th a .fixture-monogram { font-size: .62rem; }
.forecast-index .forecast-index-table tbody th a small { display: block; font-size: .67rem; line-height: 1.35; }
.forecast-index .forecast-index-kickoff { white-space: nowrap; text-align: left; }
.forecast-index .forecast-index-open-market { font-weight: 850; color: var(--ink); }
.forecast-index .forecast-index-lock { display: inline-flex; align-items: center; gap: 3px; padding: 6px; color: var(--muted); }
.forecast-index .forecast-index-lock:hover { color: var(--forecast-action); }

.forecast-index .forecast-match-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 650;
}
.forecast-index .forecast-match-result strong {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.forecast-index .forecast-card-fixture { min-width: 0; }
.forecast-index .forecast-card-fixture > .forecast-match-result,
.forecast-index .forecast-index-table tbody th > .forecast-match-result { margin-top: 6px; }
.forecast-index .forecast-table-pick, .forecast-index .forecast-table-winner-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.forecast-index .forecast-pick-result {
  margin: 0;
  max-width: 100%;
  white-space: normal;
  text-align: start;
  text-transform: none;
  letter-spacing: 0;
}
.forecast-index .table-preview-cta {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--surface);
  box-shadow: none;
  border-color: var(--forecast-border);
  border-radius: 11px;
  text-align: start;
}
.forecast-index .table-preview-cta :is(p, h3) { max-width: none; margin-inline: 0; }
.forecast-index .table-preview-cta > div { justify-content: flex-start; }
.forecast-index .forecast-context {
  margin-block: 20px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 11px;
  border: 1px solid var(--forecast-border);
}
.forecast-index .forecast-context .forecast-league-summary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.forecast-index .forecast-context p { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.forecast-index .forecast-context p a { color: var(--brand-hover); text-decoration: underline; }
.forecast-index .forecast-seo-guide {
  max-width: none;
  padding: 0;
  margin-block: 25px 48px;
}
.forecast-index .forecast-seo-guide .seo-lead { max-width: 80ch; }

@media (max-width: 1020px) {
  .forecast-index .forecast-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .forecast-index .forecast-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .forecast-index .forecast-filter-switch { margin-inline-end: auto; }
}
@media (max-width: 760px) {
  .forecast-index .archive-nav:not(.pagination) { display: block; overflow: visible; }
  .forecast-index .archive-nav:not(.pagination) > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 5px;
  }
  .forecast-index .archive-nav:not(.pagination) a { min-width: 0; padding-inline: 3px; }
  .forecast-index .forecast-result-totals { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .forecast-index .forecast-result-totals > div + div {
    padding: 9px 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--forecast-border);
  }
  .forecast-index .forecast-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-index .forecast-filters select, .forecast-index .forecast-filters input[type=search] { font-size: 1rem; }
  .forecast-index .recommend-grid { grid-template-columns: minmax(0, 1fr); }
  .forecast-index .forecast-card-main { gap: 12px; }
}
@media (max-width: 420px) {
  .forecast-index .forecast-filter-team { grid-column: 1 / -1; }
  .forecast-index .forecast-filter-actions { justify-content: flex-start; }
  .forecast-index .forecast-card-main { grid-template-columns: minmax(0, 1fr) minmax(0, .99fr); gap: 7px; }
  .forecast-index .forecast-market-row { grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); gap: 4px; }
  .forecast-index .forecast-market-copy, .forecast-index .forecast-market-estimate { padding-inline-start: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .forecast-index .prediction-card, .forecast-index .forecast-index-table tbody tr { transition: none; }
}
