/* SoftRock NZ — v0.3 cyber-premium dark-purple theme.
   Layered on top of Tailwind CDN. Keeps the existing class names from
   v0.1/v0.2 so article bodies, tables, mini-reviews, FAQs, callouts and
   casino cards continue to render without touching the underlying markup. */

:root {
  --bg: #131318;
  --bg-elevated: #1f1f24;
  --bg-card: #1b1b20;
  --bg-card-high: #2a292f;
  --surface-line: rgba(255, 255, 255, 0.10);
  --text: #e4e1e9;
  --text-dim: #cdc3d5;
  --accent: #d8b9ff;            /* primary */
  --accent-deep: #8d52da;       /* primary-container */
  --accent-glow: rgba(141, 82, 218, 0.30);
  --tertiary: #3cddc7;          /* teal accent */
  --danger: #ffb4ab;            /* error */
  --radius: 0.75rem;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

/* ────────────── Tailwind-utility-companion helpers (used by partials) ────────────── */

.glass-panel {
  background-color: rgba(31, 31, 36, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-glow {
  box-shadow: 0 0 0 rgba(141, 82, 218, 0);
  transition: box-shadow 200ms ease, background-color 150ms ease;
}
.neon-glow:hover {
  box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 22px rgba(141, 82, 218, 0.2);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ────────────── Above-the-fold mobile compaction ────────────── */
/* On ≤768px we strip the hero to bare essentials (eyebrow + H1 + byline)
   and hide the lede + the long intro paragraph after the first H2 so the
   conversion element (top-3 picks or comparison-row collapsed card) lands
   above the fold on an iPhone-class viewport. */
@media (max-width: 768px) {
  /* Hero — eyebrow + H1 + byline only. Lede hidden. */
  .hero {
    padding: 12px 0 12px !important;
    border-bottom: 0 !important;
  }
  .hero .eyebrow { font-size: 10px !important; padding: 2px 10px !important; margin-bottom: 4px !important; }
  .hero h1 {
    font-size: 24px !important;
    line-height: 1.15 !important;
    margin: 4px 0 6px !important;
    letter-spacing: -0.01em !important;
  }
  .hero .lede { display: none !important; }
  .hero .byline {
    font-size: 12px !important;
    gap: 2px 10px !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
  }

  /* Article — kill top padding, tight first-H2 spacing, hide first intro paragraph
     (the one between the first H2 and the .toppicks / .compare-table). */
  main article { padding: 0 0 48px !important; }
  main article > h2:first-of-type {
    margin: 14px 0 8px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
  main article > h2:first-of-type + p { display: none !important; }

  /* Top-3 cards — first card visible above the fold */
  .toppicks { margin: 12px 0 !important; gap: 12px !important; }
  .casino-card {
    padding: 34px 18px 16px !important;
    gap: 10px !important;
  }
  .casino-card .logo {
    height: 130px !important;
    min-height: 130px !important;
    flex-basis: 130px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
  }
  .casino-card .logo img { max-height: 92px !important; }
  .casino-card .name { font-size: 18px !important; }
  .casino-card .bonus { font-size: 14.5px !important; line-height: 1.35 !important; }
  .casino-card .meta { font-size: 12.5px !important; line-height: 1.45 !important; }
  .casino-card .cta { padding: 10px 14px !important; font-size: 12px !important; }
  .casino-card .terms { font-size: 10.5px !important; max-width: none !important; }

  /* Comparison-table-as-card collapse (when there's no .toppicks) */
  .compare-table { margin: 12px 0 !important; }
  .compare-table tr { padding: 18px 16px !important; gap: 10px !important; }
  .compare-table .brand-cell img { height: 96px !important; padding: 12px 16px !important; }
  .compare-table .brand-cell .name { font-size: 17px !important; }
  .compare-table .row-cta a { padding: 12px 16px !important; font-size: 13px !important; }
}

/* ────────────── Top-nav mobile compaction ────────────── */
/* Keep "SoftRock Casinos NZ" on one line and shrink the "Top Pokies →"
   CTA so the header doesn't wrap on narrow viewports. */
@media (max-width: 640px) {
  header a[aria-label*="SoftRock"] {
    font-size: 17px !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  header a[href="/best-online-pokies-nz/"].neon-glow,
  header a[href="/best-online-pokies-nz/"].bg-primary-container {
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
  }
  header > .flex,
  header > div {
    gap: 8px;
  }
}
@media (max-width: 400px) {
  header a[aria-label*="SoftRock"] { font-size: 15px !important; }
  header a[href="/best-online-pokies-nz/"].neon-glow,
  header a[href="/best-online-pokies-nz/"].bg-primary-container {
    padding: 5px 8px;
    font-size: 10px;
  }
}

/* ────────────── Sidebar nav (collapsible groups + active state) ────────────── */

.srn-nav-link,
.srn-sidebar details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: color 150ms ease, background 150ms ease;
}
.srn-nav-link .material-symbols-outlined,
.srn-sidebar summary .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 150ms ease;
}
.srn-nav-link:hover,
.srn-sidebar summary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.srn-nav-link:hover .material-symbols-outlined,
.srn-sidebar summary:hover .material-symbols-outlined { color: var(--accent); }
.srn-sidebar details > summary::-webkit-details-marker,
.srn-sidebar details > summary::marker { display: none; }
.srn-sidebar summary .srn-chevron {
  margin-left: auto;
  font-size: 18px;
  transition: transform 200ms ease;
}
.srn-sidebar details[open] > summary .srn-chevron { transform: rotate(180deg); }

.srn-nav-children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 6px 36px;
  margin-bottom: 4px;
}
.srn-nav-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: color 150ms ease, background 150ms ease;
}
.srn-nav-sublink:hover { color: var(--accent); background: rgba(216, 185, 255, 0.06); }
.srn-nav-sublink.srn-nav-all { color: var(--tertiary); font-weight: 600; }
.srn-nav-sublink .srn-score {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(216, 185, 255, 0.35);
  background: rgba(216, 185, 255, 0.08);
}

.srn-nav-active,
.srn-nav-link.srn-nav-active,
.srn-nav-sublink.srn-nav-active {
  color: var(--accent);
  background: rgba(216, 185, 255, 0.10);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.srn-nav-link.srn-nav-active .material-symbols-outlined { color: var(--accent); }

.srn-nav-link-rg { color: var(--danger); }
.srn-nav-link-rg .material-symbols-outlined { color: var(--danger); }
.srn-nav-link-rg:hover { color: var(--danger); background: rgba(255, 180, 171, 0.06); }

/* ────────────── Mobile bottom nav (categorised "More" menu) ────────────── */

.srn-mob-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 150ms ease, transform 80ms ease;
}
.srn-mob-link:hover, .srn-mob-link:active { color: var(--accent); }
.srn-mob-link:active { transform: scale(0.95); background: rgba(255,255,255,0.05); }
.srn-mob-link.srn-nav-active { color: var(--accent); }

.srn-mob-more summary::-webkit-details-marker,
.srn-mob-more summary::marker { display: none; }

.srn-mob-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 16px 4px;
}
.srn-mob-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}
.srn-mob-item:hover { color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.srn-mob-item.srn-mob-all { color: var(--tertiary); font-weight: 600; }
.srn-mob-item.srn-mob-rg { color: var(--danger); }
.srn-mob-item.srn-nav-active {
  color: var(--accent);
  background: rgba(216, 185, 255, 0.10);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

/* ────────────── Accessibility ────────────── */

.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--accent-deep); color: white;
  padding: 8px 14px; z-index: 9999; text-decoration: none; font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ────────────── Article body ────────────── */

.article-prose {
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}
.article-prose { max-width: none; }
.article-prose h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: white;
}
.article-prose h2 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  color: var(--text);
}
.article-prose h3 {
  font-weight: 700;
  font-size: 20px;
  margin: 32px 0 10px;
  color: var(--text);
}
.article-prose h4 {
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-prose p { margin: 0 0 16px; }
.article-prose ul, .article-prose ol { padding-left: 24px; margin: 0 0 20px; }
.article-prose li { margin-bottom: 6px; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--tertiary); }
.article-prose strong { color: white; font-weight: 700; }
.article-prose blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-deep);
  border-radius: 6px;
  color: var(--text-dim);
}

/* ────────────── Hero (per-page) ────────────── */

.hero {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--surface-line);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: white;
}
.hero .lede {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 0 18px;
  line-height: 1.55;
}
.hero .byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
.hero .byline a { color: var(--text); text-decoration: none; }
.hero .byline a:hover { color: var(--accent); text-decoration: underline; }
.hero .byline strong { color: var(--text); font-weight: 600; }

/* ────────────── Byline avatar (Noah Smith) ────────────── */
/* Inject a small circular avatar before any link to the author page,
   regardless of where the byline appears. ::before on the inline <a> so
   no HTML edits are needed across the 48 pages. */
.byline a[href="/authors/noah-smith/"],
.last-updated-bottom a[href="/authors/noah-smith/"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  text-decoration: none;
}
.byline a[href="/authors/noah-smith/"]::before,
.last-updated-bottom a[href="/authors/noah-smith/"]::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background-image: url("/authors/noah-smith.jpg");
  background-size: cover;
  background-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
}
.byline a[href="/authors/noah-smith/"] strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 768px) {
  .byline a[href="/authors/noah-smith/"]::before,
  .last-updated-bottom a[href="/authors/noah-smith/"]::before {
    width: 22px;
    height: 22px;
  }
}
/* Don't show the avatar inside the author page's own hero — the big
   portrait there is the focal point. */
.author-hero .byline a[href="/authors/noah-smith/"]::before {
  display: none;
}

/* ────────────── Author-page portrait hero ────────────── */
.author-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.author-portrait {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 246 / 283;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.40);
}
.author-hero-text { min-width: 0; }
@media (max-width: 720px) {
  .author-hero { grid-template-columns: 1fr; gap: 18px; justify-items: center; text-align: center; }
  .author-hero .byline { justify-content: center; }
  .author-portrait { max-width: 180px; }
}

.eyebrow {
  display: inline-block;
  padding: 2px 12px;
  background: rgba(60, 221, 199, 0.12);
  border: 1px solid rgba(60, 221, 199, 0.35);
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 0;
}

/* ────────────── Breadcrumbs ────────────── */

.breadcrumbs {
  font-size: 13px; color: var(--text-dim);
  padding: 4px 0 0;
}
.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }
.breadcrumbs strong { color: var(--text); font-weight: 600; }

/* ────────────── Top-3 picks (.toppicks / .casino-card) ────────────── */

.toppicks {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 24px 0;
}
.casino-card {
  background-color: rgba(31, 31, 36, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px 22px 22px 22px;
  padding-top: 44px; /* room for the absolutely-positioned rank chip */
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: border-color 150ms ease, transform 150ms ease;
  text-align: center;
}
.casino-card:hover { border-color: rgba(216, 185, 255, 0.35); transform: translateY(-2px); }
.casino-card .rank {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  font-size: 11px;
  color: var(--tertiary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.casino-card .logo {
  width: 100%;
  height: 200px;
  min-height: 200px;
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 4px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.casino-card .logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 164px;
  object-fit: contain;
}
.casino-card .name {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 0;
  color: white;
  letter-spacing: -0.01em;
}
.casino-card .bonus {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  line-height: 1.4;
}
.casino-card .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
  line-height: 1.55;
}
.casino-card .cta {
  display: inline-block; margin-top: auto; padding: 11px 18px;
  background: var(--accent-deep); color: #fef6ff; text-decoration: none;
  font-weight: 700; border-radius: 8px; text-align: center;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px;
  box-shadow: 0 0 0 rgba(141, 82, 218, 0);
  transition: box-shadow 200ms ease, transform 100ms ease;
}
.casino-card .cta:hover { box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 22px rgba(141, 82, 218, 0.2); }
.casino-card .cta:active { transform: scale(0.97); }
.casino-card .terms {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.55;
  opacity: 0.85;
  margin: 0;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ────────────── Category grid (.cat-grid) ────────────── */

.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}
.cat-grid a {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 22px;
  color: var(--text); text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.cat-grid a:hover { border-color: rgba(216, 185, 255, 0.45); transform: translateY(-2px); }
.cat-grid h3 { margin: 0; font-size: 17px; color: white; font-weight: 700; }
.cat-grid p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ────────────── Comparison table (.compare-table) ────────────── */

.compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden; font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.compare-table th {
  background: rgba(42, 41, 47, 0.6);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 700;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: rgba(216, 185, 255, 0.04); }
.compare-table .brand-cell { display: flex; align-items: center; gap: 16px; }
.compare-table .brand-cell img {
  width: 132px;
  height: 88px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  flex-shrink: 0;
}
.compare-table .brand-cell .name { font-weight: 700; color: white; font-size: 16px; }
.compare-table .row-cta a {
  display: inline-block; padding: 8px 14px;
  background: var(--accent-deep); color: white; text-decoration: none;
  border-radius: 6px; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: box-shadow 200ms ease;
}
.compare-table .row-cta a:hover { box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 18px rgba(141, 82, 218, 0.2); }
.compare-table .score {
  display: inline-block; padding: 4px 12px; border-radius: 9999px;
  background: rgba(216, 185, 255, 0.10); color: var(--accent);
  font-weight: 700; font-size: 13px;
  border: 1px solid rgba(216, 185, 255, 0.35);
}

@media (max-width: 880px) {
  /* Mobile-collapsed comparison table — each row becomes a centred card
     with a clear stack: rank chip → logo box → brand name → score chip →
     stats grid (2-col) → CTA. */
  .compare-table thead { display: none; }
  .compare-table {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    margin: 24px 0;
  }
  .compare-table tbody { display: flex; flex-direction: column; gap: 16px; }
  .compare-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 12px;
    padding: 24px 22px;
    background-color: rgba(31, 31, 36, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    text-align: left;
  }
  .compare-table td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: center;
  }
  .compare-table td::before {
    content: attr(data-label);
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin: 0;
  }
  .compare-table td > * { font-size: 15px; }
  .compare-table td:first-child::before { display: none; }

  /* Rank cell: the td IS the chip — text content is the rank number,
     ::before prefixes "Rank #". `:not(.brand-cell)` is critical here so
     tables without a Rank column (e.g. /payments/poli-casinos/) don't
     turn their brand cell into a chip + uppercase name. */
  .compare-table tr td:first-child:not(.brand-cell) {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 5px 16px;
    margin: 0 auto;
    border-radius: 9999px;
    background: rgba(216, 185, 255, 0.10);
    color: var(--accent);
    border: 1px solid rgba(216, 185, 255, 0.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
  }
  .compare-table tr td:first-child:not(.brand-cell)::before {
    content: "Rank #";
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  /* Brand cell: full row, centred, logo box on its own line, name below.
     No outer highlighted box — the logo's own white box is the focal frame.
     Reset typography in case .brand-cell is also the first-child cell. */
  .compare-table .brand-cell {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 0 4px;
    text-align: center;
    background: transparent;
    border: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    color: var(--text);
    border-radius: 0;
  }
  .compare-table .brand-cell::before { display: none; }
  .compare-table .brand-cell img {
    width: min(100%, 200px);
    height: 116px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
  }
  .compare-table .brand-cell .name {
    font-size: 18px;
    color: white;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  /* CTA: full row, full-width button. No outer box. */
  .compare-table .row-cta {
    grid-column: 1 / -1;
    margin-top: 4px;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .compare-table .row-cta::before { display: none; }
  .compare-table .row-cta a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    text-align: center;
  }
  .compare-table .row-cta a:hover {
    box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 22px rgba(141, 82, 218, 0.2);
  }

  /* The "Score" cell already uses .score chip — centre the chip in the cell. */
  .compare-table .score { align-self: center; }
}

/* ────────────── Mini-review block ────────────── */

.mini-review {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 24px;
  margin: 24px 0;
  display: grid; gap: 18px;
  grid-template-columns: 200px 1fr;
  align-items: start;
}
.mini-review header img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 180px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

/* Logos that are pure-white-on-transparent get a brightness(0) silhouette
   filter so they stay visible inside the white logo box. Logos that are
   bright-but-COLOURED (e.g. Thrill's teal) DO NOT belong here — they
   render fine on white. Mixed white-text + colour-mark logos (e.g. 22Bet's
   "Bet") get their white pixels recoloured in-file via
   scripts/recolor-white-to-black.py — no CSS rule needed. */
/* (none currently — all corrected at the pixel/svg level) */
.mini-review header .score-line { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.mini-review header .score-line strong { color: var(--accent); }
.mini-review h3 { margin: 0 0 8px; font-size: 21px; color: white; font-weight: 700; }
.mini-review p { margin: 0 0 12px; }
.mini-review ul { margin: 8px 0 12px; padding-left: 20px; }
.mini-review .cta {
  display: inline-block; padding: 11px 22px;
  background: var(--accent-deep); color: white; text-decoration: none;
  font-weight: 700; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px;
  transition: box-shadow 200ms ease;
}
.mini-review .cta:hover { box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 22px rgba(141, 82, 218, 0.2); }
.mini-review .terms { font-size: 11px; color: var(--text-dim); margin-top: 8px; opacity: 0.8; }
@media (max-width: 720px) {
  .mini-review { grid-template-columns: 1fr; }
}

/* ────────────── Pros / cons ────────────── */

.pros-cons {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 32px 0;
  width: 100%;
}
.pros-cons > div {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
}
.pros-cons h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 800;
}
.pros-cons h4::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.pros-cons > div:nth-child(1) h4 { color: var(--tertiary); }
.pros-cons > div:nth-child(1) h4::before {
  content: "✓";
  background: rgba(60, 221, 199, 0.14);
  color: var(--tertiary);
  border: 1px solid rgba(60, 221, 199, 0.40);
}
.pros-cons > div:nth-child(2) h4 { color: var(--danger); }
.pros-cons > div:nth-child(2) h4::before {
  content: "×";
  background: rgba(255, 180, 171, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 180, 171, 0.40);
  font-size: 18px;
  padding-bottom: 2px;
}
.pros-cons ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pros-cons li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.pros-cons li:first-child { border-top: 0; padding-top: 4px; }
.pros-cons li:last-child { padding-bottom: 4px; }
.pros-cons > div:nth-child(1) li::before {
  content: "+";
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--tertiary);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.5;
}
.pros-cons > div:nth-child(2) li::before {
  content: "−";
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--danger);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.5;
}

/* When the agents wrapped pros-cons inside a <div class="mini-review">
   purely as a styling workaround, the mini-review's 200px+1fr grid was
   squashing the pros-cons into a tiny right column. Detect that shape
   via :has() and drop the mini-review back to a normal block so the
   pros-cons can use the full article width. */
.mini-review:has(> .pros-cons:only-child) {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* Fallback for browsers without :has() — strip the mini-review chrome
   so the pros-cons reads cleanly even if the 200px+1fr grid still
   applies. Modern browsers (Chrome 105+, Safari 15.4+, FF 121+) hit
   the :has() rule above instead. */
.mini-review > .pros-cons {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ────────────── Callouts ────────────── */

.callout {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 20px 24px;
  margin: 28px 0;
}
.callout h3 { margin-top: 0; color: white; font-weight: 700; }
.callout.rg { border-color: rgba(255, 180, 171, 0.55); background: rgba(255, 180, 171, 0.06); }
.callout.rg h3 { color: var(--danger); }
.callout.method { border-color: rgba(216, 185, 255, 0.45); background: rgba(216, 185, 255, 0.04); }
.callout.method h3 { color: var(--accent); }

/* ────────────── FAQ ────────────── */

.faq { margin: 32px 0; }
.faq details {
  border-bottom: 1px solid var(--surface-line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px;
  list-style: none; position: relative; padding-right: 32px;
  color: white;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  color: var(--accent); font-size: 24px; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-dim); }
.faq details ul { margin-top: 8px; color: var(--text-dim); }

/* ────────────── EEAT trust-block ────────────── */

.trust-block {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 24px;
  margin: 32px 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust-block .item h4 { margin: 0 0 6px; font-size: 15px; color: white; font-weight: 700; }
.trust-block .item p { margin: 0; font-size: 13px; color: var(--text-dim); }

/* ────────────── Related strip ────────────── */

.related-strip {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}
.related-strip a {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 16px 18px;
  color: var(--text); text-decoration: none;
  font-size: 14px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 150ms ease;
}
.related-strip a:hover { border-color: rgba(216, 185, 255, 0.45); color: white; }
.related-strip a span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* ────────────── Payment-method strip ────────────── */

.payment-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.payment-strip .tag { font-size: 12px; padding: 4px 12px; }

/* ────────────── Tags / muted / last-updated ────────────── */

.tag {
  display: inline-block; padding: 2px 12px; border-radius: 9999px;
  background-color: rgba(31, 31, 36, 0.65);
  color: var(--text-dim); font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tag.gold { color: var(--accent); border-color: rgba(216, 185, 255, 0.55); }
.tag.danger { color: var(--danger); border-color: rgba(255, 180, 171, 0.55); }
.muted { color: var(--text-dim); }
.last-updated { font-size: 12px; color: var(--text-dim); }
.last-updated-bottom {
  margin-top: 48px; padding-top: 16px;
  border-top: 1px solid var(--surface-line);
  font-size: 12px; color: var(--text-dim);
}

/* ────────────── Article-element bridge (existing markup keeps working) ────────────── */

main article {
  padding: 8px 0 64px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}
main article h2 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
main article h3 { font-weight: 700; font-size: 20px; margin: 32px 0 10px; color: var(--text); }
main article h4 { font-weight: 600; font-size: 16px; margin: 24px 0 8px; color: var(--text); }
main article p { margin: 0 0 16px; }
main article ul, main article ol { padding-left: 24px; margin: 0 0 20px; }
main article li { margin-bottom: 6px; }
main article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
main article a:hover { color: var(--tertiary); }
main article strong { color: white; font-weight: 700; }
main article blockquote {
  margin: 24px 0; padding: 16px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-deep);
  border-radius: 6px; color: var(--text-dim);
}

/* ────────────── 404 page ────────────── */

.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 64px; margin: 0 0 12px; color: var(--accent); font-weight: 800; }
.error-page p { max-width: 480px; margin: 0 auto 24px; color: var(--text-dim); }

/* ────────────── Print ────────────── */

@media print {
  .glass-panel, .site-header, header, footer, nav, .skip-link, .casino-card .cta, .compare-table .row-cta { display: none; }
  body { background: white; color: black; }
}

/* ────────────── Page-content container (.wrap) ────────────── */

.wrap {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero { padding-left: 0; padding-right: 0; }

/* Article body fills the main shell — no inner max-width. */
main > .wrap > article,
main article {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Everything inside the article spans the full article width — prose,
   headings and layout blocks alike. */
main article > *,
main article > p,
main article > ul,
main article > ol,
main article > blockquote,
main article > h2,
main article > h3,
main article > h4,
main article > .compare-table,
main article > .toppicks,
main article > .trust-block,
main article > .cat-grid,
main article > .related-strip,
main article > .mini-review,
main article > .faq,
main article > .callout,
main article > .payment-strip,
main article > .pros-cons,
main article > table {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
