/* ==========================================================================
   Ambrosia - Instant Withdraw Casino Canada
   Design direction: Dark Luxury / Premium VIP (Performance Industrial base,
   State Heritage typographic influence)
   No JavaScript. CSS-only interactions.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --bg: #0b1410;
  --surface: #12201a;
  --surface-alt: #16271f;
  --surface-raise: #1a2e24;
  --gold: #d4af37;
  --gold-soft: #e6cb74;
  --gold-deep: #a9861f;
  --emerald: #1f8a5b;
  --emerald-deep: #166a45;
  --ink: #eae7dc;
  --muted: #9db3a6;
  --line: rgba(212, 175, 55, 0.28);
  --line-soft: rgba(212, 175, 55, 0.14);
  --warning: #d98c6a;
  --focus: #f2d980;
  --dark-text: #0b1410;

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: system-ui, "Segoe UI", Arial, sans-serif;
  --step--1: clamp(0.78rem, 0.75rem + 0.14vw, 0.85rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.42vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1vw, 2.15rem);
  --step-3: clamp(2.15rem, 1.6rem + 2.4vw, 3.5rem);

  /* Spacing */
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --container: 75rem;
  --reading: 44rem;

  /* Radius */
  --radius-control: 3px;
  --radius-card: 6px;
  --radius-special: 10px;

  /* Borders */
  --hair: 1px solid var(--line-soft);
  --hair-strong: 1px solid var(--line);

  /* Shadow */
  --shadow-low: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.12);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: var(--step-3);
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 var(--space-3);
}

/* ---------- Focus + skip link ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--dark-text);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-control) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: var(--space-6);
}

.section--tight {
  padding-block: var(--space-5);
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

/* Tighten the gap directly beneath the hero so the ranked list sits
   closer to the fold, without touching spacing further down the page. */
.hero + .section {
  padding-top: var(--space-1);
}

.hero + .section .section-head {
  margin-bottom: var(--space-2);
}

.hero + .section .table-wrap {
  margin-top: var(--space-2);
}

.hero + .section .section-head {
  max-width: 40rem;
}

.hero + .section .section-head h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
  margin-bottom: var(--space-1);
}

.hero + .section .section-head p {
  margin-bottom: 0;
}

.hero + .section .eyebrow {
  margin-bottom: var(--space-1);
}

.hero + .section table.compare th,
.hero + .section table.compare td {
  padding: 0.45rem var(--space-3);
}

.hero + .section table.compare caption {
  padding: var(--space-2);
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--step--1);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: block;
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ==========================================================================
   Brand mark (CSS diamond / gem)
   ========================================================================== */
.gem {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  transform: rotate(45deg);
  border-radius: 3px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(11, 20, 16, 0.4);
}

.gem::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 60%);
  border-radius: 2px;
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1712, var(--bg));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  line-height: 1;
}

.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
}

/* Nav toggle (CSS hamburger) */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-btn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  font-size: var(--step--1);
}

.nav-btn .bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.nav-btn .bars::before,
.nav-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.nav-btn .bars::before {
  top: -6px;
}

.nav-btn .bars::after {
  top: 6px;
}

.nav-btn .label-close {
  display: none;
}

.nav-toggle:checked ~ .nav-btn .label-open {
  display: none;
}

.nav-toggle:checked ~ .nav-btn .label-close {
  display: inline;
}

.nav-toggle:focus-visible ~ .nav-btn {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: var(--space-2) var(--space-1);
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  font-size: clamp(1.45rem, 1.2rem + 1.35vw, 2.05rem);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-lead {
  font-size: var(--step-0);
  line-height: 1.4;
  color: var(--ink);
  max-width: 40rem;
  margin-bottom: var(--space-1);
}

.hero-more {
  display: none;
  max-width: 40rem;
  color: var(--muted);
}

.hero-more p {
  color: var(--muted);
}

/* Hero read-more toggle */
.readmore-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.readmore-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--gold-soft);
  font-weight: 600;
  cursor: pointer;
  font-size: var(--step--1);
}

.readmore-label .txt-less {
  display: none;
}

.readmore-label::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.readmore-toggle:checked ~ .readmore-label .txt-more {
  display: none;
}

.readmore-toggle:checked ~ .readmore-label .txt-less {
  display: inline;
}

.readmore-toggle:checked ~ .readmore-label::after {
  transform: rotate(225deg);
}

.readmore-toggle:checked ~ .hero-more {
  display: block;
}

.readmore-toggle:focus-visible ~ .readmore-label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Reviewer byline row */
.byline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  max-width: 40rem;
}

.byline-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid var(--line);
}

.byline-id {
  min-width: 0;
}

.byline-name {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.byline-role {
  color: var(--muted);
  font-size: var(--step--1);
  overflow: hidden;
  text-overflow: ellipsis;
}

.byline-role .role-short {
  display: none;
}

.byline-note {
  margin-left: auto;
  padding-left: var(--space-3);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 12rem;
}

/* Editor's choice box (desktop only) */
.editors-choice {
  display: none;
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.12), rgba(18, 32, 26, 0.4)),
    var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  box-shadow: var(--shadow-gold);
}

.editors-choice .ec-tag {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}

.editors-choice .ec-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  margin: var(--space-1) 0 var(--space-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ec-offer {
  background: var(--surface-alt);
  border-left: 3px solid var(--gold);
  padding: var(--space-1) var(--space-2);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  margin-bottom: var(--space-2);
}

.ec-offer strong {
  color: var(--gold);
  font-size: var(--step-1);
  display: block;
  font-family: var(--font-display);
}

.ec-offer span {
  color: var(--muted);
  font-size: var(--step--1);
}

.ec-terms {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.ec-terms li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.ec-terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--dark-text);
  border-color: var(--gold-deep);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: var(--dark-text);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--gold-soft);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Ranked operator list
   ========================================================================== */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.op-card {
  display: grid;
  grid-template-columns: 46px 15rem minmax(0, 1fr) 11rem;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
}

.op-card .rank-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
}

.op-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.op-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, #16271f, #0d1712);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

img.op-mark {
  width: 64px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

img.review-mark {
  display: inline-block;
  height: 28px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.op-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.15;
}

.op-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--dark-text);
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 2px;
}

.op-offer {
  background: var(--surface-alt);
  border-left: 3px solid var(--gold);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}

.op-offer strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-1);
  display: block;
  line-height: 1.2;
}

.op-offer span {
  color: var(--muted);
  font-size: var(--step--1);
}

.op-cta {
  display: flex;
}

/* Featured top card */
.op-card--featured {
  grid-template-columns: 46px 15rem minmax(0, 1fr) 11rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(18, 32, 26, 0)) ,
    var(--surface);
  box-shadow: var(--shadow-gold);
  padding-top: 0;
  row-gap: 0;
}

.op-ribbon {
  grid-column: 1 / -1;
  margin: 0 calc(-1 * var(--space-4));
  padding: 0.55rem var(--space-4);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.05));
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.op-ribbon .chip {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--dark-text);
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 2px;
}

.op-card--featured .rank-num {
  font-size: 2.3rem;
}

.op-card--featured .op-name {
  font-size: var(--step-2);
}

.op-card--featured .op-offer strong {
  font-size: var(--step-2);
}

.list-note {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
}

/* ==========================================================================
   Compare table (top 3)
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  margin-top: var(--space-4);
}

table.compare,
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: var(--step--1);
}

table.compare caption,
table.data caption {
  caption-side: top;
  text-align: left;
  padding: var(--space-3);
  background: var(--surface-alt);
  color: var(--gold-soft);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--step-0);
  border-bottom: 2px solid var(--gold);
}

table.compare th,
table.data th {
  background: #0e1a14;
  color: var(--gold-soft);
  text-align: left;
  padding: 0.75rem var(--space-3);
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
}

table.compare td,
table.data td {
  padding: 0.75rem var(--space-3);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: top;
}

table.compare tbody tr:nth-child(even),
table.data tbody tr:nth-child(even) {
  background: rgba(22, 39, 31, 0.5);
}

table.compare tbody tr:hover,
table.data tbody tr:hover {
  background: rgba(212, 175, 55, 0.06);
}

table td strong {
  color: var(--gold);
}

/* ==========================================================================
   Method cards (How We Rank)
   ========================================================================== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.method-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}

.method-card p {
  color: var(--muted);
  font-size: var(--step--1);
  margin: 0;
}

.method-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 800;
  display: block;
  margin-bottom: var(--space-1);
}

/* Two-panel comparison */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.panel--up {
  border-left: 3px solid var(--emerald);
}

.panel--down {
  border-left: 3px solid var(--warning);
}

.panel h3 {
  font-size: var(--step-1);
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.panel li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Safe gambling panel
   ========================================================================== */
.safe-panel {
  background:
    linear-gradient(160deg, rgba(31, 138, 91, 0.12), rgba(18, 32, 26, 0)),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.safe-panel h2 {
  font-size: var(--step-2);
}

.safe-panel .safe-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.safe-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.safe-panel li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Article + sidebar
   ========================================================================== */
.article-wrap {
  display: block;
}

.article-head {
  margin-bottom: var(--space-4);
}

.article-body h3 {
  scroll-margin-top: 90px;
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-soft);
}

.article-body h3 .num {
  color: var(--gold);
  font-family: var(--font-display);
  margin-right: 0.5rem;
}

.article-body p,
.article-body li {
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  color: var(--ink);
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body .lead {
  font-size: var(--step-1);
  color: var(--muted);
}

.glossary dt {
  font-weight: 700;
  color: var(--gold-soft);
  font-family: var(--font-display);
  margin-top: var(--space-3);
}

.glossary dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.toc {
  display: none;
}

/* ==========================================================================
   FAQ (CSS details)
   ========================================================================== */
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.faq-item > summary {
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] > summary::after {
  transform: rotate(225deg);
}

.faq-item .faq-a {
  padding: 0 var(--space-4) var(--space-3);
  color: var(--muted);
}

.faq-item .faq-a p {
  margin-bottom: 0;
  color: var(--muted);
}

/* ==========================================================================
   Generic content pages
   ========================================================================== */
.page-hero {
  padding-block: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 300px at 12% -20%, rgba(212, 175, 55, 0.07), transparent 60%),
    var(--bg);
}

.page-hero p {
  color: var(--muted);
  max-width: var(--reading);
}

.prose {
  max-width: var(--reading);
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-5);
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: var(--space-4);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.callout--safe {
  border-left-color: var(--emerald);
}

.callout h3 {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}

.contact-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}

.contact-card p {
  color: var(--muted);
  font-size: var(--step--1);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), #0d1712);
  padding-block: var(--space-6) var(--space-4);
  margin-top: var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-5);
}

.footer-brand .brand {
  margin-bottom: var(--space-3);
}

.footer-brand p {
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 26rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--ink);
  font-size: var(--step--1);
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--step--1);
}

.footer-bottom .age-badge {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.72rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ==========================================================================
   Cookie notice (CSS only)
   ========================================================================== */
.cookie-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #0e1a14;
  border-top: 1px solid var(--gold);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  visibility: hidden;
  animation: cookie-note-in 0.35s ease-out 2s forwards;
}

@keyframes cookie-note-in {
  from {
    opacity: 0;
    visibility: visible;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-note {
    animation: cookie-note-static 0.001ms linear 2s forwards;
  }
  @keyframes cookie-note-static {
    to {
      opacity: 1;
      visibility: visible;
    }
  }
}

.cookie-note p {
  margin: 0;
  color: var(--ink);
  font-size: var(--step--1);
}

.cookie-note a {
  color: var(--gold-soft);
}

.cookie-dismiss {
  margin-left: auto;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  background: var(--gold);
  color: var(--dark-text);
  border-radius: var(--radius-control);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--gold-deep);
  display: inline-flex;
  align-items: center;
}

.cookie-toggle:checked ~ .cookie-note {
  display: none;
}

.cookie-toggle:focus-visible ~ .cookie-note .cookie-dismiss {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ==========================================================================
   Back to top (scroll-driven)
   ========================================================================== */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-control);
  color: var(--gold);
}

.to-top:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.to-top .arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: rotate(45deg);
  margin-top: 3px;
}

/* lift above cookie bar while it is up */
.cookie-toggle:not(:checked) ~ .to-top {
  bottom: 6.5rem;
}

@supports (animation-timeline: scroll()) {
  .to-top {
    opacity: 0;
    animation: to-top-in linear both;
    animation-timeline: scroll(root);
    animation-range: 200px 600px;
  }
  @keyframes to-top-in {
    to {
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    opacity: 1;
    animation: none;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  text-align: center;
}

.stat .n {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold);
  font-weight: 800;
  display: block;
}

.stat .l {
  color: var(--muted);
  font-size: var(--step--1);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: var(--space-4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Article two-column with sticky TOC at >=1100px */
@media (min-width: 1100px) {
  .article-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: var(--space-5);
    align-items: start;
  }
  .article-main {
    max-width: var(--reading);
    margin-inline: 0;
  }
  .article-head {
    margin-inline: 0;
    max-width: var(--reading);
  }
  .toc {
    display: block;
    position: sticky;
    top: var(--space-4);
    align-self: start;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    padding: var(--space-4);
  }
  .toc h2 {
    font-size: var(--step-1);
    margin-bottom: var(--space-3);
  }
  .toc ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
  }
  .toc li {
    counter-increment: toc;
    margin-bottom: 0.5rem;
  }
  .toc a {
    color: var(--ink);
    font-size: var(--step--1);
    display: block;
  }
  .toc a::before {
    content: counter(toc) ". ";
    color: var(--gold);
    font-weight: 700;
  }
  .toc a:hover {
    color: var(--gold-soft);
  }
}

/* Two-column hero + desktop editor's choice at >=901px */
@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-5);
    align-items: start;
  }
  .editors-choice {
    display: block;
  }
}

/* Hamburger engages <=900px */
@media (max-width: 900px) {
  .nav-btn {
    display: inline-flex;
  }
  /* Stacked mobile hero: trim the intro paragraph and the list intro
     paragraph so the ranked list clears the fold sooner. Content is
     unchanged, only the type size and line-height are reduced. */
  .hero-lead {
    font-size: var(--step--1);
    line-height: 1.35;
    margin-bottom: var(--space-1);
  }
  .hero + .section .section-head p {
    font-size: var(--step--1);
    line-height: 1.35;
  }
  .hero + .section .table-wrap {
    margin-top: var(--space-1);
  }
  .hero + .section .rank-list {
    margin-top: var(--space-2);
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0e1a14;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-low);
    z-index: 70;
  }
  .nav-toggle:checked ~ .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-4) var(--space-4);
  }
  .site-nav li {
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: none;
  }
}

/* Method grid: 4 -> 2 between 561 and 980 */
@media (max-width: 980px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  /* Operator cards fold; CTA on its own row */
  .op-card,
  .op-card--featured {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "rank brand"
      "offer offer"
      "cta cta";
  }
  .op-card .rank-num {
    grid-area: rank;
  }
  .op-brand {
    grid-area: brand;
  }
  .op-offer {
    grid-area: offer;
  }
  .op-cta {
    grid-area: cta;
  }
  .op-cta .btn {
    width: 100%;
  }
  /* hide featured ribbon below breakpoint, restore padding */
  .op-card--featured {
    padding-top: var(--space-3);
    row-gap: var(--space-3);
  }
  .op-ribbon {
    display: none;
  }
  .panels {
    grid-template-columns: 1fr;
  }
  .safe-panel .safe-cols {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Operator cards stack fully at <=700px */
@media (max-width: 700px) {
  .op-card,
  .op-card--featured {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rank"
      "brand"
      "offer"
      "cta";
    text-align: left;
  }
  .op-card .rank-num {
    text-align: left;
  }
  /* byline + stats stay on one row */
  .byline-note {
    max-width: 9rem;
  }
  .byline-role .role-long {
    display: none;
  }
  .byline-role .role-short {
    display: inline;
  }
  .byline-name {
    white-space: nowrap;
  }
}

/* Method grid one column below 561 */
@media (max-width: 560px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }
  .cookie-note {
    flex-wrap: nowrap;
  }
  .cookie-note p {
    font-size: 0.74rem;
  }
  .cookie-toggle:not(:checked) ~ .to-top {
    bottom: 7.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Narrow phone step-down near 360px */
@media (max-width: 360px) {
  .byline {
    gap: var(--space-2);
    padding: var(--space-2);
  }
  .byline-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .byline-name {
    font-size: 0.92rem;
  }
  .byline-note {
    max-width: 7.5rem;
    padding-left: var(--space-2);
  }
}

/* Brand mark may stack at <=340px */
@media (max-width: 340px) {
  .brand {
    font-size: 1.2rem;
    gap: 0.5rem;
  }
}
