*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Palette reference ──────────────────────────────────
   --ink:        #13171f   near-black, table headers, primary
   --text:       #1c2433   body text
   --muted:      #4b5768   secondary text, labels
   --ghost:      #8b96a5   denominators, timestamps, ghost text
   --bg:         #f4f5f7   cool near-white page background
   --bg-alt:     #eceef1   tinted sections
   --surface:    #ffffff   white panels, table rows
   --border:     #dde1e7   standard border
   --border-dk:  #b0b8c4   darker border
   --orange:     #f26316   rank-1 numeral + primary CTA only
   --orange-bg:  #fff4ef   rank-1 row tint
   --green:      #15803d   score bars, verified badge, positive
   --green-bg:   #f0fdf4
   --green-bd:   #86efac
   ────────────────────────────────────────────────────── */

/* ─── Base ────────────────────────────────────────────── */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1c2433;
  background: #f4f5f7;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Navigation ──────────────────────────────────────── */
header {
  border-top: 3px solid #13171f;
  border-bottom: 1px solid #dde1e7;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  background: #fff;
}
header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
header nav > a {
  font-weight: 800;
  text-decoration: none;
  color: #13171f;
  font-size: 0.875rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.nav-brand-short { display: none; }
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo { width: 28px; height: 28px; flex-shrink: 0; }
header nav ul {
  list-style: none;
  display: flex;
  gap: 0.125rem;
  flex-wrap: wrap;
}
header nav ul a {
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
  color: #4b5768;
  padding: 0.25rem 0.625rem;
  transition: color 0.1s, background 0.1s;
  letter-spacing: 0.01em;
}
header nav ul a:hover { color: #13171f; background: #eceef1; }
header nav ul a[aria-current="page"] {
  color: #13171f;
  font-weight: 700;
  background: #eceef1;
}

/* ─── Main ────────────────────────────────────────────── */
main { min-height: 60vh; }

/* ─── Footer ──────────────────────────────────────────── */
footer {
  border-top: 2px solid #13171f;
  margin-top: 4rem;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: #4b5768;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
footer a { color: #4b5768; }
footer a:hover { color: #13171f; }

/* ─── Typography ──────────────────────────────────────── */
h1 { font-size: 2.1rem;  line-height: 1.1;  margin-bottom: 0.5rem;  font-weight: 800; letter-spacing: -0.025em; color: #13171f; }
h2 { font-size: 1.25rem; line-height: 1.25; margin: 2rem 0 0.625rem; font-weight: 700; letter-spacing: -0.015em; color: #13171f; }
h3 { font-size: 1.0rem;  line-height: 1.4;  margin: 1.25rem 0 0.35rem; font-weight: 600; color: #1c2433; }
p  { margin-bottom: 0.875rem; }
a  { color: #1a56a6; }

/* ─── Section separators ──────────────────────────────── */
section { padding-top: 0.25rem; padding-bottom: 1rem; border-bottom: 1px solid #eceef1; }
section:last-of-type { border-bottom: none; }
section > h2:first-child { margin-top: 0; }
section > h3:first-child { margin-top: 0.5rem; }

/* ─── Prose ───────────────────────────────────────────── */
.prose { max-width: 68ch; }

/* ─── Tables (general utility) ────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.75rem 0; }
.table-scroll table { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6rem 0.875rem; border-bottom: 1px solid #eee; }
th {
  font-weight: 700;
  background: #f4f5f7;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4b5768;
  white-space: nowrap;
}
td.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.score { font-variant-numeric: tabular-nums; }

/* ─── Badges (utility — used on detail pages) ─────────── */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.badge-yes     { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.badge-no      { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.badge-neutral { background: #f4f5f7; color: #4b5768; border: 1px solid #dde1e7; }

/* ─── Verified Licence badge (detail pages) ───────────── */
.badge-verified {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
  font-size: 0.62rem;
  padding: 0.1rem 0.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
  text-transform: uppercase;
}

/* ─── Score on cards (detail pages) ──────────────────── */
.card-score {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0.5rem 0 0.6rem;
}
.card-score .score-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #13171f;
  font-variant-numeric: tabular-nums;
}
.card-score .score-denom { font-size: 0.85rem; color: #8b96a5; font-weight: 400; }
.card-score .score-tag {
  margin-left: 0.35rem;
  font-size: 0.68rem;
  color: #4b5768;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Score hero (detail pages) ──────────────────────── */
.score-hero {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 1rem 0;
  border-bottom: 2px solid #dde1e7;
  margin-bottom: 0.25rem;
}
.score-hero .score-value {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #13171f;
  font-variant-numeric: tabular-nums;
}
.score-hero .score-denom { font-size: 1.1rem; color: #8b96a5; }
.score-hero .score-tag {
  font-size: 0.78rem;
  color: #4b5768;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.35rem;
}
.score-context { font-size: 0.82rem; color: #8b96a5; margin-top: 0.2rem; margin-bottom: 0.75rem; }

/* ─── Score bar (detail pages) ───────────────────────── */
.score-bar {
  height: 4px;
  background: #dde1e7;
  margin: 0.35rem 0 0.6rem;
  overflow: hidden;
  max-width: 280px;
}
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
}

/* ─── Card rank / bookmaker card (detail / legacy pages) */
.card-rank {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8b96a5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.bookmaker-grid { display: grid; gap: 0; }
.bookmaker-card {
  border: none;
  border-bottom: 1px solid #dde1e7;
  padding: 1.25rem 0;
  transition: background 0.1s;
  position: relative;
}
.bookmaker-card:first-child { border-top: 1px solid #dde1e7; }
.bookmaker-card:hover { background: #f4f5f7; }
.bookmaker-card h2 { margin-top: 0.2rem; margin-bottom: 0.1rem; font-size: 1.1rem; }
.bookmaker-card .meta { font-size: 0.8rem; color: #4b5768; margin-bottom: 0.4rem; }
.bookmaker-card .features { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.5rem 0; }
.bookmaker-card.card-top { background: none; }
.bookmaker-logo {
  display: block;
  height: 24px;
  width: auto;
  margin-bottom: 0.5rem;
}
.bookmaker-logo-hero {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 0.75rem;
}
.card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a56a6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.1s;
}
.card-cta:hover { border-bottom-color: currentColor; }

/* ─── ════════════════════════════════════════════════ ─── */
/* ─── RANKING TABLE — primary product component      ─── */
/* ─── ════════════════════════════════════════════════ ─── */

.ranking-module { margin-bottom: 3rem; }

.ranking-module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ranking-module-head .methodology-anchor { margin: 0; }

.section-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b96a5;
  margin-bottom: 0.2rem;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #13171f;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

/* Table wrapper: horizontal scroll on mobile */
.rt-wrap {
  border: 1px solid #dde1e7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

/* The actual table */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 680px;
}

/* Header row */
.ranking-table thead { background: #13171f; }
.ranking-table thead th {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.8rem 0.875rem;
  white-space: nowrap;
  border: none;
  background: transparent;
}
.ranking-table thead th.rt-col-action { text-align: right; }

/* Column widths — table-layout: auto lets Best For / Features flex */
.rt-col-rank     { width: 52px; }
.rt-col-operator { width: 216px; }
.rt-col-score    { width: 112px; }
.rt-col-markets  { width: 110px; }
.rt-col-action   { width: 108px; }

/* Body rows */
.ranking-table tbody tr {
  border-bottom: 1px solid #e4e8ed;
  background: #fff;
  transition: background 0.1s;
}
.ranking-table tbody tr:last-child { border-bottom: none; }
.ranking-table tbody tr:hover { background: #f4f6f9; }
.ranking-table tbody tr.rt-row-top { background: #fff4ef; }
.ranking-table tbody tr.rt-row-top:hover { background: #fee8d8; }

.ranking-table tbody td {
  padding: 1.125rem 0.875rem;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid #e4e8ed;
  background: transparent;
}
.ranking-table tbody tr:last-child td { border-bottom: none; }
.ranking-table tbody td.rt-col-action { text-align: right; vertical-align: middle; }

/* Rank number cell */
.rt-rank-num {
  font-size: 1.375rem;
  font-weight: 900;
  color: #b0b8c4;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rt-rank-top { color: #f26316; }

/* Operator cell */
.rt-op-logo {
  height: 26px;
  display: flex;
  align-items: center;
  margin-bottom: 0.375rem;
}
.rt-op-logo img {
  height: 22px;
  width: auto;
  max-width: 104px;
  object-fit: contain;
  display: block;
}
.rt-op-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #13171f;
  text-decoration: none;
  letter-spacing: -0.015em;
  display: block;
  line-height: 1.3;
}
.rt-op-name:hover { color: #000; text-decoration: underline; }
.rt-badge-lic {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #86efac;
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 0.3rem;
}

/* Score cell */
.rt-score-figure {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.45rem;
}
.rt-score-num {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #13171f;
  font-variant-numeric: tabular-nums;
}
.rt-score-denom {
  font-size: 0.7rem;
  color: #8b96a5;
  font-weight: 500;
  align-self: flex-end;
  margin-bottom: 0.15rem;
  letter-spacing: 0;
}
.rt-score-bar {
  height: 3px;
  background: #e4e8ed;
  width: 100%;
}
.rt-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
}

/* Best For cell */
.rt-strength {
  font-size: 0.78rem;
  color: #4b5768;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Features cell */
.rt-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.feat-tag {
  font-size: 0.6rem;
  font-weight: 600;
  color: #4b5768;
  background: #f4f5f7;
  border: 1px solid #dde1e7;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Markets cell */
.rt-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.rt-market-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: #4b5768;
  background: #f4f5f7;
  border: 1px solid #dde1e7;
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Action / Review CTA */
.rt-review-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #13171f;
  text-decoration: none;
  border: 1.5px solid #13171f;
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.rt-review-btn:hover { background: #13171f; color: #fff; }

/* ─── Button system ───────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: #f26316;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.btn-primary:hover { background: #d95410; color: #fff; }
.btn-outline {
  display: inline-block;
  color: #13171f;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #13171f;
  padding: 0.675rem 1.5rem;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: #13171f; color: #fff; }

/* ─── Hero section ────────────────────────────────────── */
.hero-section {
  background: #fff;
  border: 1px solid #dde1e7;
  padding: 2.25rem 2rem 2rem;
  margin-bottom: 2rem;
}
.hero-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f26316;
  margin-bottom: 0.625rem;
}
.hero-h1 {
  font-size: 2.625rem;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #13171f;
  margin-bottom: 1rem;
}
.hero-deck {
  font-size: 1rem;
  color: #374659;
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.75rem;
}

/* Trust strip — embedded at base of hero */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #dde1e7;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-right: 2rem;
}
.trust-num {
  font-size: 2.125rem;
  font-weight: 900;
  color: #13171f;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.trust-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b96a5;
}
.trust-sep {
  width: 1px;
  height: 3rem;
  background: #dde1e7;
  margin-right: 2rem;
  flex-shrink: 0;
  align-self: center;
}
.trust-note-inline {
  font-size: 0.72rem;
  color: #8b96a5;
  line-height: 1.6;
}

/* ─── Methodology panel ───────────────────────────────── */
.methodology-panel {
  background: #fff;
  border: 1px solid #dde1e7;
  border-left: 3px solid #13171f;
  padding: 1.125rem 1.5rem;
  margin: 0 0 2rem;
}
.methodology-panel h2 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #13171f;
  margin: 0 0 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.methodology-panel p {
  font-size: 0.82rem;
  color: #4b5768;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.methodology-panel p:last-child { margin: 0; }
.methodology-panel a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #13171f;
  text-decoration: none;
  border-bottom: 1px solid #13171f;
}
.methodology-panel a:hover { opacity: 0.65; }

/* ─── Sport pills ─────────────────────────────────────── */
.sport-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.625rem 0 2rem;
}
.sport-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1c2433;
  text-decoration: none;
  border: 1.5px solid #dde1e7;
  padding: 0.3rem 0.875rem;
  background: #fff;
  transition: border-color 0.1s, color 0.1s, background 0.1s;
  letter-spacing: 0.01em;
  display: inline-block;
}
.sport-pill:hover { border-color: #13171f; color: #13171f; background: #f4f5f7; }

/* ─── Filter bar ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #dde1e7;
  align-items: flex-start;
}
.filter-bar > label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4b5768;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.filter-bar select {
  font-size: 0.875rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #c8cdd5;
  background: #fff;
  color: #1c2433;
  min-width: 140px;
  font-family: inherit;
}
.filter-bar select.is-active {
  border-color: #13171f;
  font-weight: 500;
}
.filter-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4b5768;
  margin-bottom: 0.35rem;
}
.filter-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.875rem;
}
.filter-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: #1c2433;
  cursor: pointer;
}
.filter-checkboxes input[type="checkbox"]:checked + span {
  color: #13171f;
  font-weight: 600;
}
.btn-reset {
  align-self: flex-end;
  background: none;
  border: 1px solid #c8cdd5;
  padding: 0.3rem 0.875rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #4b5768;
  white-space: nowrap;
  transition: border-color 0.1s, color 0.1s;
  font-family: inherit;
}
.btn-reset:hover { border-color: #13171f; color: #13171f; }

/* ─── Result count ────────────────────────────────────── */
.result-count { font-size: 0.82rem; color: #4b5768; margin-bottom: 1rem; }

/* ─── Pros / Cons ─────────────────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1rem 0; }
.pros-cons ul { list-style: none; }
.pros-cons ul li { padding: 0.2rem 0; }
.pros-cons ul li::before { margin-right: 0.4rem; font-weight: 700; }
.pros li::before { content: '+'; color: #15803d; }
.cons li::before { content: '−'; color: #991b1b; }

/* ─── Entity grids ────────────────────────────────────── */
.country-grid, .sport-grid, .pm-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.5rem;
  margin-top: 0.875rem;
}
.entity-card {
  border: 1px solid #dde1e7;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: #1c2433;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
  background: #fff;
}
.entity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
}
.entity-card > * {
  position: relative;
  z-index: 1;
}
.entity-card:hover,
.entity-card:focus-visible { border-color: #13171f; background: #f4f5f7; }
.entity-card:focus-visible { outline: 2px solid #13171f; outline-offset: 2px; }
.entity-card h3 { margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 600; }
.entity-card p { font-size: 0.8rem; color: #4b5768; margin: 0; }
.entity-count { font-size: 0.72rem; color: #8b96a5; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* ─── Country meta table ──────────────────────────────── */
.country-meta {
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9rem;
  width: auto;
}
.country-meta th { font-weight: 600; color: #4b5768; text-align: left; padding: 0.15rem 1rem 0.15rem 0; vertical-align: top; }
.country-meta td { color: #1c2433; padding: 0.15rem 0; }

/* ─── Inline list ─────────────────────────────────────── */
.inline-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.5rem 0;
}
.inline-list a { color: #1a56a6; text-decoration: none; font-size: 0.9rem; }
.inline-list a:hover { text-decoration: underline; }

/* ─── Methodology anchor ──────────────────────────────── */
.methodology-anchor {
  font-size: 0.78rem;
  color: #8b96a5;
  border-left: 2px solid #dde1e7;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.methodology-anchor a { color: #1a56a6; text-decoration: none; }
.methodology-anchor a:hover { text-decoration: underline; }

/* ─── Detail page misc ────────────────────────────────── */
.validation-warning {
  font-size: 0.8rem;
  color: #856404;
  background: #fff8e1;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #ffc107;
  margin-bottom: 0.75rem;
}
.methodology-link { font-size: 0.85rem; margin-top: 0.75rem; }
.methodology-link a { color: #1a56a6; }
.review-meta {
  font-size: 0.8rem;
  color: #8b96a5;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eceef1;
}
.review-meta a { color: #8b96a5; }

/* ─── Cornerstone thumb (other pages) ────────────────── */
.cornerstone-thumb {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.25rem 0 1.75rem;
  aspect-ratio: 800 / 420;
}
.cornerstone-thumb a { cursor: pointer; }
.cornerstone-thumb a:hover { opacity: 0.82; }
.cornerstone-thumb a:focus-visible { outline: 2px solid #4a8fd4; outline-offset: 2px; }
.page-intro { font-size: 0.9375rem; color: #374659; line-height: 1.7; margin: 0 0 2rem; max-width: 72ch; }

/* ─── Tinted section ──────────────────────────────────── */
.section-tinted {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border: 1px solid #dde1e7;
  margin: 1.5rem 0;
}
.section-tinted > h2:first-child { margin-top: 0; }
.section-tinted > h3:first-child { margin-top: 0; }

/* ─── Editorial context box ───────────────────────────── */
.editorial-context {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #dde1e7;
  border-left: 3px solid #13171f;
}
.editorial-context h2 { font-size: 1rem; margin: 0 0 0.5rem; color: #13171f; font-weight: 700; }
.editorial-context p { font-size: 0.88rem; line-height: 1.7; color: #4b5768; margin-bottom: 0.5rem; }
.editorial-context p:last-child { margin-bottom: 0; }

/* ─── Homepage editorial prose sections ──────────────── */
.editorial-section { margin: 0 0 2.5rem; }
.editorial-section h2 { font-size: 1.25rem; font-weight: 800; color: #13171f; letter-spacing: -0.02em; margin: 0 0 0.875rem; }
.editorial-section p { font-size: 0.9375rem; color: #374659; line-height: 1.75; margin: 0 0 0.875rem; max-width: 72ch; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.editorial-section p:last-child { margin-bottom: 0; }
.editorial-section ul { font-size: 0.9375rem; color: #374659; line-height: 1.75; padding-left: 1.375rem; margin: 0 0 0.875rem; max-width: 72ch; }
.editorial-section li { margin-bottom: 0.4rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.editorial-section strong { color: #13171f; font-weight: 700; }

/* ─── Score categories (how-we-rate page) ────────────── */
.score-categories { display: grid; gap: 0.75rem; margin: 1rem 0; }
.score-category {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #dde1e7;
  border-left: 3px solid #b0b8c4;
}
.score-category h3 { font-weight: 700; font-size: 0.9rem; color: #13171f; margin-bottom: 0.2rem; }
.score-category p { font-size: 0.85rem; color: #4b5768; line-height: 1.55; margin: 0; }

/* ─── Taxonomy pages ──────────────────────────────────── */
.key-stat { font-size: 1rem; font-weight: 600; color: #13171f; margin: 0.25rem 0 1rem; }
.not-offering-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}
.not-offering-list a { color: #4b5768; font-size: 0.9rem; text-decoration: none; }
.not-offering-list a:hover { color: #1a56a6; text-decoration: underline; }
.taxonomy-footer {
  font-size: 0.82rem;
  color: #8b96a5;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eceef1;
  line-height: 1.6;
}
.taxonomy-footer a { color: #1a56a6; text-decoration: none; }
.taxonomy-footer a:hover { text-decoration: underline; }

/* ─── Entity code label ───────────────────────────────── */
.entity-code {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4b5768;
  background: #eceef1;
  padding: 0.1em 0.45em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

/* ─── Platform stats (legacy — replaced by trust-strip) ─ */
.platform-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 2px solid #dde1e7;
  margin: 0.875rem 0 2.25rem;
  align-items: flex-start;
}
.platform-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.platform-stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  color: #13171f;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.platform-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b96a5;
  font-weight: 700;
}
.platform-stat-note { font-size: 0.75rem; color: #8b96a5; margin: 0; align-self: flex-end; padding-bottom: 0.15rem; }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq-section { margin-top: 2rem; }
.faq-section h2 { margin-bottom: 0.75rem; }
details {
  border: 1px solid #dde1e7;
  margin-bottom: 0.375rem;
  background: #fff;
}
details + details { margin-top: 0; }
summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; color: #13171f; font-weight: 700; }
details[open] summary::before { content: '− '; }
details > p, details > div {
  padding: 0 1rem 0.75rem;
  margin: 0;
  line-height: 1.6;
  color: #4b5768;
  font-size: 0.875rem;
}

/* ─── Misc utilities ──────────────────────────────────── */
.entity-currency { font-size: 0.8rem; color: #8b96a5; margin-top: 0.2rem; }
.disclaimer { margin-top: 1.5rem; font-size: 0.9rem; color: #4b5768; }

/* ─── Page title (used in place of inline styles) ────────── */
.page-title {
  font-size: 1.625rem;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: #13171f;
  margin: 0 0 0.2rem;
  line-height: 1.1;
}

/* ─── Sticky operator column ──────────────────────────────
   Only meaningfully activates on mobile when table overflows.
   On desktop (no horizontal scroll) sticky has no visible effect.
   ──────────────────────────────────────────────────────── */
.ranking-table thead th.rt-col-operator {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.ranking-table tbody td.rt-col-operator {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  border-right: 1px solid #dde1e7;
  box-shadow: 2px 0 8px -4px rgba(0,0,0,0.12);
}
.ranking-table tbody tr.rt-row-top td.rt-col-operator { background: #fff4ef; }
.ranking-table tbody tr:not(.rt-row-top):hover td.rt-col-operator { background: #f4f6f9; }
.ranking-table tbody tr.rt-row-top:hover td.rt-col-operator { background: #fee8d8; }

/* ─── Feature filter <details> in filter bar ─────────────── */
.feature-filter-details {
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}
.feature-filter-details > summary {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4b5768;
  padding: 0;
  margin-bottom: 0.35rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.feature-filter-details > summary::-webkit-details-marker { display: none; }
.feature-filter-details > summary::before { content: none; }
.feature-filter-details[open] > summary::before { content: none; }
.feature-filter-details > summary .filter-toggle-icon::before { content: '+'; color: #8b96a5; font-weight: 700; }
.feature-filter-details[open] > summary .filter-toggle-icon::before { content: '−'; }

/* ─── Desktop: bookmaker grid single-column ───────────── */
@media (min-width: 640px) {
  .bookmaker-grid { grid-template-columns: 1fr; }
  /* On desktop, hide the expand icon — features always open */
  .feature-filter-details > summary .filter-toggle-icon { display: none; }
}

/* ─── Mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
  body { padding: 0 1rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; margin-top: 1.5rem; }

  /* Nav: show short wordmark, hide full domain */
  .nav-brand-full { display: none; }
  .nav-brand-short { display: inline; }

  header nav { gap: 0.625rem; flex-wrap: wrap; }
  header nav ul { gap: 0.25rem; flex-wrap: wrap; }
  header nav ul a { font-size: 0.78rem; padding: 0.2rem 0.5rem; }

  /* Slightly larger table header text on mobile */
  .ranking-table thead th { font-size: 0.65rem; }

  .hero-section { padding: 1.5rem 1.125rem 1.375rem; }
  .hero-h1 { font-size: 1.75rem; letter-spacing: -0.03em; }
  .hero-deck { font-size: 0.9rem; }
  .trust-strip { gap: 0.75rem 0; padding-top: 1.125rem; }
  .trust-stat { padding-right: 1.375rem; }
  .trust-num { font-size: 1.625rem; }
  .trust-sep { margin-right: 1.375rem; height: 2.25rem; }

  .filter-bar { flex-direction: column; padding: 0.875rem 1rem; gap: 0.625rem; }
  .filter-bar > label { width: 100%; }
  .filter-bar select { width: 100%; }
  .filter-bar > div { width: 100%; }
  .filter-checkboxes { flex-direction: column; gap: 0.5rem; }
  .btn-reset { align-self: flex-start; }

  .pros-cons { grid-template-columns: 1fr; }
  .score-hero .score-value { font-size: 2rem; }
  .country-meta th { padding-right: 0.75rem; }
  .editorial-context { padding: 1rem; }
  .section-tinted { padding: 1rem; }
  .methodology-panel { padding: 1rem 1.125rem; }

  /* Ranking table: allow horizontal scroll on mobile */
  .rt-wrap { border-left: none; border-right: none; }

  /* Undo justified text on narrow viewports */
  .editorial-section p,
  .editorial-section li { text-align: left; hyphens: none; -webkit-hyphens: none; }
}
