@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&display=swap');

/* ==========================================================================
   thewildeflorist.co.nz — Shared Design System
   NZ online gambling affiliate. Mobile-first, accessible, conversion-focused.
   Retune the whole palette via the :root custom properties below.
   ========================================================================== */

/* ---------- 1. Design tokens ---------------------------------------------- */
:root {
  /* Brand palette — deep "midnight emerald" with gold/amber CTA accents */
  --c-bg:            #0d1117;   /* page background (near-black navy)        */
  --c-bg-alt:        #131a23;   /* alternating sections                    */
  --c-surface:       #1a2330;   /* cards, tables                           */
  --c-surface-2:     #222e3d;   /* raised surface / hover                  */
  --c-border:        #2c3a4d;   /* hairline borders                        */

  --c-text:          #e9eef5;   /* primary text on dark                    */
  --c-text-muted:    #9fb0c3;   /* secondary text                         */
  --c-text-invert:   #0d1117;   /* text on light/accent surfaces          */

  --c-primary:       #1f9d6b;   /* brand emerald (trust)                  */
  --c-primary-600:   #178a5d;
  --c-primary-700:   #11704b;

  --c-cta:           #ffb020;   /* amber/gold CTA (high-attention)        */
  --c-cta-600:       #f59e0b;
  --c-cta-700:       #d98307;

  --c-star:          #ffcf4d;   /* rating stars                           */
  --c-badge:         #ffb020;   /* top-pick badge                         */

  --c-success:       #2ecc71;
  --c-warning:       #f4a623;
  --c-danger:        #e74c5e;
  --c-info:          #3da9fc;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", var(--font-sans);

  --fs-100: 0.78rem;
  --fs-200: 0.875rem;
  --fs-300: 1rem;
  --fs-400: 1.125rem;
  --fs-500: 1.375rem;
  --fs-600: 1.75rem;
  --fs-700: 2.25rem;
  --fs-800: 3rem;

  --lh-tight: 1.2;
  --lh-base: 1.65;

  /* Spacing scale */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;

  /* Radii / shadow / layout */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow:    0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.55);

  --container: 1180px;
  --header-h: 68px;

  --transition: 160ms ease;
}

/* ---------- 2. Reset / base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-300);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: var(--lh-tight);
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, var(--fs-800)); margin-bottom: var(--sp-4); }
h2 { font-size: clamp(1.5rem, 3vw, var(--fs-700)); margin-bottom: var(--sp-4); }
h3 { font-size: var(--fs-500); margin-bottom: var(--sp-3); }
h4 { font-size: var(--fs-400); margin-bottom: var(--sp-2); }

p { margin-bottom: var(--sp-4); }
ul, ol { margin-bottom: var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

:focus-visible { outline: 3px solid var(--c-cta); outline-offset: 2px; border-radius: 4px; }

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

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

.section { padding-block: var(--sp-7); }
.section--alt { background: var(--c-bg-alt); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.text-center { text-align: center; }
.lead { font-size: var(--fs-400); color: var(--c-text-muted); max-width: 65ch; }

.skip-link {
  position: absolute; left: var(--sp-3); top: -120px; z-index: 1000;
  background: var(--c-cta); color: var(--c-text-invert);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); font-weight: 700;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--sp-3); }

/* ---------- 4. Header + sticky nav -------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: var(--sp-4);
}
.brand { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-head); font-weight: 800; font-size: var(--fs-400); color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand .brand-accent { color: var(--c-primary); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0 10px;
}
.nav-toggle span { height: 2px; background: var(--c-text); border-radius: 2px; }

.main-nav ul { display: flex; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block; padding: var(--sp-2) var(--sp-3); color: var(--c-text);
  font-weight: 600; font-size: var(--fs-200); border-radius: var(--radius-sm);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: #fff; background: var(--c-surface-2); text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border);
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .main-nav[data-open="true"] { max-height: 80vh; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: var(--sp-3); gap: var(--sp-1); }
  .main-nav a { padding: var(--sp-3); }
}
@media (min-width: 901px) { .nav-toggle { display: none; } .main-nav { display: block !important; } }

/* ---------- 5. Hero ----------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,157,107,.25), transparent 60%),
    radial-gradient(900px 450px at 0% 0%, rgba(255,176,32,.12), transparent 55%),
    var(--c-bg);
  padding-block: var(--sp-8) var(--sp-7);
  border-bottom: 1px solid var(--c-border);
}
.hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-bottom: var(--sp-5); margin-inline: auto; }
.hero-meta { margin-top: calc(-1 * var(--sp-2)); margin-bottom: var(--sp-4); font-size: var(--fs-200); color: var(--c-text-muted); }
.hero-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero-meta a:hover { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-5); color: var(--c-text-muted); font-size: var(--fs-200); justify-content: center; }
.hero-trust span { display: inline-flex; align-items: center; gap: var(--sp-2); }

/* ---------- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-200);
  line-height: 1; text-align: center; cursor: pointer; white-space: nowrap;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-pill);
  border: 1px solid transparent; transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-cta {
  background: linear-gradient(180deg, var(--c-cta), var(--c-cta-600));
  color: var(--c-text-invert); box-shadow: 0 4px 14px rgba(255,176,32,.35);
}
.btn-cta:hover { background: linear-gradient(180deg, #ffbe45, var(--c-cta-700)); box-shadow: 0 6px 20px rgba(255,176,32,.45); }

.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-600); }

.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: #fff; }

.btn-ghost { background: transparent; color: var(--c-text-muted); padding-inline: var(--sp-3); }
.btn-ghost:hover { color: #fff; }

.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-100); }
.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-300); }
.btn-block { display: flex; width: 100%; }

/* ---------- 7. Rating component ---------------------------------------- */
.rating { display: inline-flex; align-items: center; gap: var(--sp-2); }
.stars { --pct: 100%; display: inline-block; position: relative; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; }
.stars::before { content: "★★★★★"; color: var(--c-border); }
.stars::after {
  content: "★★★★★"; color: var(--c-star);
  position: absolute; inset: 0; width: var(--pct); overflow: hidden; white-space: nowrap;
}
.rating-score {
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-300);
  color: #fff; background: var(--c-primary-700); padding: 2px var(--sp-2); border-radius: var(--radius-sm);
}
.rating-count { color: var(--c-text-muted); font-size: var(--fs-100); }

/* ---------- 8. Badges --------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-100);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 4px var(--sp-2); border-radius: var(--radius-pill);
  background: var(--c-surface-2); color: var(--c-text);
}
.badge--top-pick { background: linear-gradient(180deg, var(--c-cta), var(--c-cta-600)); color: var(--c-text-invert); }
.badge--editor { background: var(--c-primary); color: #fff; }
.badge--exclusive { background: var(--c-info); color: var(--c-text-invert); }
.badge--new { background: var(--c-success); color: var(--c-text-invert); }
.badge--crypto { background: #7c5cff; color: #fff; }

/* ---------- 9. Affiliate comparison table ------------------------------ */
/* Ranked listing tables inside a narrow .content block break out to the full
   homepage container width (centered). Leaves 2-column fact tables + prose. */
.container.content .offer-table:has(.col-rank) {
  width: calc(min(100vw, var(--container)) - 2 * var(--sp-4));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.offer-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.offer-table thead th {
  background: var(--c-bg-alt); color: var(--c-text-muted);
  font-size: var(--fs-100); text-transform: uppercase; letter-spacing: .05em;
  text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border);
}
.offer-table td { padding: var(--sp-4); border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.offer-table tbody tr:last-child td { border-bottom: 0; }
.offer-table tbody tr:hover { background: var(--c-surface-2); }
.offer-table tbody tr.is-top { background: rgba(255,176,32,.06); }
.offer-table tbody tr.is-top td:first-child { box-shadow: inset 3px 0 0 var(--c-cta); }

.col-rank { width: 56px; }
.offer-rank { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-500); color: var(--c-cta); text-align: center; }

.offer-brand { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.offer-logo { width: 120px; height: 56px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); padding: 6px; border: 1mm solid var(--c-ink, var(--c-border)); }
.offer-logo--dark { background: #131313; }
.offer-name { font-family: var(--font-head); font-weight: 700; color: #fff; }

.offer-bonus { font-weight: 700; color: #fff; min-width: 160px; }
.offer-bonus small { display: block; font-weight: 400; color: var(--c-text-muted); font-size: var(--fs-100); }

.offer-cta { text-align: center; min-width: 150px; }
.offer-cta .terms { display: block; margin-top: 4px; font-size: var(--fs-100); color: var(--c-text-muted); }

/* Mobile: stack the table into cards */
@media (max-width: 760px) {
  .offer-table, .offer-table thead, .offer-table tbody, .offer-table th, .offer-table td, .offer-table tr { display: block; }
  .offer-table thead { display: none; }
  .offer-table { border-spacing: 0; }
  .offer-table tbody tr {
    margin-bottom: var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: var(--sp-3); display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-3); align-items: center;
  }
  .offer-table td { border: 0; padding: var(--sp-1) 0; }
  .offer-table td[data-label]::before {
    content: attr(data-label); display: block; font-size: var(--fs-100);
    text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted);
  }
  .offer-cta { grid-column: 1 / -1; }
  .offer-cta .btn { width: 100%; }
}

/* ---------- 10. Operator / review cards -------------------------------- */
.card-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}
.review-card:hover { transform: translateY(-3px); border-color: var(--c-primary); }
.review-card.is-top { border-color: var(--c-cta); }
.review-card .badge--top-pick { position: absolute; top: -12px; left: var(--sp-5); }

.review-card-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.review-card-logo { width: 88px; height: 48px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); padding: 6px; border: 1mm solid var(--c-ink, var(--c-border)); }
.review-card-title { display: flex; flex-direction: column; gap: 4px; }
.review-card-title .offer-name { font-size: var(--fs-400); }

.review-card-bonus { font-size: var(--fs-400); font-weight: 700; color: #fff; margin-bottom: var(--sp-3); }
.review-features { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.review-features li { position: relative; padding-left: 1.6rem; margin-bottom: var(--sp-2); color: var(--c-text-muted); font-size: var(--fs-200); }
.review-features li::before { content: "✓"; position: absolute; left: 0; color: var(--c-success); font-weight: 800; }
.review-card-foot { margin-top: auto; }
.review-card-foot .terms { display: block; text-align: center; margin-top: var(--sp-2); font-size: var(--fs-100); color: var(--c-text-muted); }

/* Author photos */
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 auto; border: 2px solid var(--c-border); }
.author-bio-photo { float: right; width: 150px; height: 165px; object-fit: cover; object-position: top; border-radius: var(--radius); margin: 0 0 var(--sp-4) var(--sp-5); border: 2px solid var(--c-border); }
@media (max-width: 560px) { .author-bio-photo { float: none; display: block; margin-inline: 0; } }

/* Pros / cons */
.proscons { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons ul { list-style: none; padding: 0; }
.pros li, .cons li { position: relative; padding-left: 1.7rem; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--c-success); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--c-danger); font-weight: 800; }

/* ---------- 11. FAQ accordion ----------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-head); font-weight: 600; color: #fff; font-size: var(--fs-400);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: var(--fs-500); color: var(--c-cta); transition: transform var(--transition); line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--c-text-muted); }
.faq-item .faq-body > :last-child { margin-bottom: 0; }

/* ---------- 12. Responsible-gambling banner --------------------------- */
.rg-banner {
  background: var(--c-bg-alt); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) 0;
}
.rg-banner .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); justify-content: center; text-align: center; font-size: var(--fs-200); color: var(--c-text-muted); }
.rg-banner strong { color: var(--c-text); }
.rg-18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--c-danger); color: var(--c-danger);
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-200); padding: 0 6px;
}
.rg-banner a { color: var(--c-info); font-weight: 600; }

/* ---------- 13. Alerts / notes ---------------------------------------- */
.note {
  border: 1px solid var(--c-border); border-left: 4px solid var(--c-info);
  background: var(--c-surface); border-radius: var(--radius-sm);
  padding: var(--sp-4); margin-block: var(--sp-4); color: var(--c-text);
}
.note > :last-child { margin-bottom: 0; }
.note--info    { border-left-color: var(--c-info); }
.note--success { border-left-color: var(--c-success); }
.note--warning { border-left-color: var(--c-warning); }
.note--danger  { border-left-color: var(--c-danger); }
.note-title { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2); }

/* ---------- 14. Breadcrumb -------------------------------------------- */
.breadcrumb { padding-block: var(--sp-3); font-size: var(--fs-200); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-text-muted); margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--c-border); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb [aria-current="page"] { color: var(--c-text); }

/* ---------- 15. Generic content tables -------------------------------- */
.content table { width: 100%; border-collapse: collapse; margin-block: var(--sp-4); background: var(--c-surface); border-radius: var(--radius); overflow: hidden; }
.content th, .content td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--c-border); }
.content th { background: var(--c-bg-alt); color: var(--c-text-muted); font-size: var(--fs-200); text-transform: uppercase; letter-spacing: .04em; }
.content tr:last-child td { border-bottom: 0; }

.content { max-width: 75ch; }
.content h2 { margin-top: var(--sp-6); }
.content h3 { margin-top: var(--sp-5); }

/* ---------- 16. Footer ------------------------------------------------- */
.site-footer { background: #090c11; border-top: 1px solid var(--c-border); padding-block: var(--sp-7) var(--sp-5); color: var(--c-text-muted); font-size: var(--fs-200); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer-about .brand { margin-bottom: var(--sp-3); }
.footer-col h4 { color: #fff; font-size: var(--fs-200); text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { color: var(--c-text-muted); }
.footer-col a:hover { color: #fff; }

.footer-rg { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.footer-rg p { margin: 0; }
.footer-bottom { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; font-size: var(--fs-100); }

/* ---------- 17. Utilities --------------------------------------------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-4{margin-top:var(--sp-4)}.mt-6{margin-top:var(--sp-6)}
.flex{display:flex}.flex-wrap{flex-wrap:wrap}.gap-3{gap:var(--sp-3)}.items-center{align-items:center}
.muted{color:var(--c-text-muted)}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   18. La Revoltosa theme — SITE-WIDE
   Bright red + cream, Teko display type, wave dividers, marquee, stroke pills.
   Placed last so it overrides the dark base via source order. Adapted to our
   gambling content. To revert: delete this block + the @import at the top.
   ========================================================================== */
:root {
  --c-bg:            #f7f1e7;   /* warm cream page                         */
  --c-bg-alt:        #ffffff;   /* alt sections                          */
  --c-surface:       #ffffff;   /* cards / tables                        */
  --c-surface-2:     #fbeede;   /* hover / raised                        */
  --c-border:        #e7d9c4;   /* warm hairline                        */

  --c-text:          #2b2a27;   /* ink                                  */
  --c-text-muted:    #6c655b;   /* warm grey                            */
  --c-text-invert:   #fffaf2;   /* on red / on ink                      */

  --c-primary:       #fe3e29;   /* La Revoltosa red                     */
  --c-primary-600:   #e8331f;
  --c-primary-700:   #c92817;

  --c-cta:           #fe3e29;
  --c-cta-600:       #e8331f;
  --c-cta-700:       #c92817;

  --c-star:          #fe3e29;
  --c-badge:         #fe3e29;

  --c-ink:           #2b2a27;
  --c-cream:         #fffaf2;

  --font-head: "Teko", "Poppins", system-ui, sans-serif;
}

/* Headings — tall condensed Teko */
h1, h2, h3, h4 { color: var(--c-ink); letter-spacing: .5px; line-height: 0.95; }
h1, h2 { text-transform: uppercase; font-weight: 600; }
h3, h4 { font-weight: 500; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Header — cream glass, ink text */
.site-header { background: rgba(247, 241, 231, 0.92); border-bottom: 2px solid var(--c-ink); }
.brand { color: var(--c-ink); font-family: var(--font-head); font-size: 1.7rem; letter-spacing: .5px; text-transform: uppercase; }
.brand .brand-accent { color: var(--c-primary); }
.main-nav a { color: var(--c-ink); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: var(--c-primary); }
.nav-toggle { border-color: var(--c-ink); }
.nav-toggle span { background: var(--c-ink); }
@media (max-width: 900px) { .main-nav { background: var(--c-cream); border-bottom: 2px solid var(--c-ink); } }

/* RG banner */
.rg-banner { background: #fff; border-color: var(--c-border); }
.rg-banner a { color: var(--c-primary); }

/* Hero — full red block */
.hero { background: var(--c-primary); border-bottom: 0; }
.hero h1 { color: var(--c-cream); }
.hero .lead { color: var(--c-cream); opacity: .92; }
.hero .hero-meta { color: var(--c-cream); opacity: .9; }
.hero .hero-meta a { color: var(--c-cream); }
.hero .hero-meta a:hover { color: #fff; }
.hero .btn-cta { background: var(--c-cream); color: var(--c-primary); box-shadow: none; border: 2px solid var(--c-cream); }
.hero .btn-cta:hover { background: #fff; }
.hero .btn-primary, .hero .btn-outline { background: transparent; color: var(--c-cream); border: 2px solid var(--c-cream); }
.hero .btn-primary:hover, .hero .btn-outline:hover { background: var(--c-cream); color: var(--c-primary); }

/* Buttons — rounded stroke pills */
.btn { font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 1.15rem; }
.btn-cta { background: var(--c-primary); color: #fff; box-shadow: none; border: 2px solid var(--c-primary); }
.btn-cta:hover { background: var(--c-primary-700); border-color: var(--c-primary-700); }
.btn-primary { background: var(--c-ink); color: var(--c-cream); }
.btn-primary:hover { background: #000; }
.btn-outline { border: 2px solid var(--c-ink); color: var(--c-ink); background: transparent; }
.btn-outline:hover { background: var(--c-ink); color: var(--c-cream); }

/* Sections + links */
.section--alt { background: #fff; }
a { color: var(--c-primary); }

/* Offer tables / cards — cream with ink header + offset shadow */
.offer-table { border: 2px solid var(--c-ink); box-shadow: 8px 8px 0 var(--c-ink); }
.offer-table thead th { background: var(--c-ink); color: var(--c-cream); }
.offer-table tbody tr.is-top { background: rgba(254, 62, 41, 0.08); }
.offer-table tbody tr.is-top td:first-child { box-shadow: inset 4px 0 0 var(--c-primary); }
.offer-rank { color: var(--c-primary); font-family: var(--font-head); font-size: 2rem; }
.offer-name { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .5px; color: var(--c-ink); }
.offer-bonus { color: var(--c-ink); }
.review-card-bonus { color: var(--c-ink); }
.note-title { color: var(--c-ink); }
.btn-ghost:hover { color: var(--c-ink); }
.review-card { border: 2px solid var(--c-ink); box-shadow: 6px 6px 0 var(--c-ink); }
.review-card:hover { border-color: var(--c-primary); }

/* Content tables */
.content th { background: var(--c-ink); color: var(--c-cream); }

/* Badges */
.badge { font-family: var(--font-head); letter-spacing: 1px; font-size: .9rem; }
.badge--top-pick { background: var(--c-primary); color: #fff; }

/* FAQ */
.faq-item { border: 2px solid var(--c-ink); }
.faq-item summary { color: var(--c-ink); font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; }
.faq-item summary::after { color: var(--c-primary); }

/* Notes */
.note { background: #fff; }

/* Footer — ink block, cream text */
.site-footer { background: var(--c-ink); color: var(--c-cream); border-top: 0; }
.site-footer .brand, .footer-col h4 { color: var(--c-cream); }
.footer-col a, .site-footer a { color: var(--c-cream); }
.footer-col a:hover { color: var(--c-primary); }

/* Marquee bar (homepage flourish; renders only where markup exists) */
.rev-marquee { background: var(--c-primary); overflow: hidden; padding-block: 0.35rem; white-space: nowrap; }
.rev-marquee__track { display: inline-flex; will-change: transform; animation: rev-scroll 28s linear infinite; }
.rev-marquee__track span { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 1px; color: #fffaf2; padding-right: 1rem; }
@keyframes rev-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Wave divider */
.rev-wave { display: block; line-height: 0; background: var(--c-bg); }
.rev-wave svg { display: block; width: 100%; height: 70px; }
@media (min-width: 720px) { .rev-wave svg { height: 110px; } }

/* ---------- 19. Nested dropdown navigation ---------------------------- */
.main-nav .submenu { list-style: none; }
.main-nav .has-sub > a::after { content: " \25BE"; font-size: .8em; opacity: .7; }
.main-nav .sub-toggle { background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; line-height: 1; }

@media (min-width: 901px) {
  .main-nav > ul > li.has-sub { position: relative; }
  .main-nav .sub-toggle { display: none; }
  .main-nav .submenu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--c-bg-alt); border: 1px solid var(--c-border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: var(--sp-2); margin: 0; z-index: 200;
    max-height: 78vh; overflow-y: auto; display: none;
  }
  .main-nav li.has-sub:hover > .submenu,
  .main-nav li.has-sub:focus-within > .submenu { display: block; }
  .main-nav .submenu a { display: block; white-space: nowrap; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-weight: 600; }
}

@media (max-width: 900px) {
  .main-nav .has-sub { position: relative; }
  .main-nav .has-sub > a::after { content: none; }
  .main-nav .sub-toggle { position: absolute; right: 4px; top: 2px; width: 44px; height: 44px; font-size: 1.2rem; }
  .main-nav .submenu { margin: 0; padding: 0 0 var(--sp-2) var(--sp-4); max-height: 0; overflow: hidden; transition: max-height var(--transition); }
  .main-nav .has-sub[data-open="true"] .submenu { max-height: 1600px; }
  .main-nav .submenu a { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-200); }
}

/* ---------- 20. Mobile affiliate cards (ranked tables only) ----------- */
@media (max-width: 760px) {
  .offer-table:has(.col-rank) { background: transparent; border: 0; box-shadow: none; }
  .offer-table:has(.col-rank) thead { display: none; }
  .offer-table:has(.col-rank) tbody tr {
    position: relative; display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: var(--sp-3);
    background: #1d2433; border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(0,0,0,.28);
    padding: var(--sp-6) var(--sp-4) var(--sp-4); margin-bottom: var(--sp-5);
  }
  .offer-table:has(.col-rank) tbody tr.is-top { border-color: var(--c-primary); }
  .offer-table:has(.col-rank) td { border: 0 !important; padding: 0 !important; margin: 0; display: none; width: 100%; }
  .offer-table:has(.col-rank) td::before { content: none !important; }
  /* show only the key cells */
  .offer-table:has(.col-rank) td.col-rank,
  .offer-table:has(.col-rank) td:has(.offer-brand),
  .offer-table:has(.col-rank) td:has(.offer-logo),
  .offer-table:has(.col-rank) td:has(.offer-name),
  .offer-table:has(.col-rank) td:has(.rating),
  .offer-table:has(.col-rank) td.offer-bonus,
  .offer-table:has(.col-rank) td.offer-cta { display: block; }
  /* order: logo+name -> stars -> bonus -> cta */
  .offer-table:has(.col-rank) td:has(.offer-brand),
  .offer-table:has(.col-rank) td:has(.offer-logo),
  .offer-table:has(.col-rank) td:has(.offer-name) { order: 2; }
  .offer-table:has(.col-rank) td:has(.rating) { order: 3; }
  .offer-table:has(.col-rank) td.offer-bonus { order: 4; }
  .offer-table:has(.col-rank) td.offer-cta { order: 5; }
  /* rank badge (circle, top-left) */
  .offer-table:has(.col-rank) td.col-rank { position: absolute; top: -14px; left: 12px; width: auto; }
  .offer-table:has(.col-rank) .offer-rank {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 50%; background: var(--c-primary); color: #fff;
    font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.45);
  }
  /* brand: logo centered, name below */
  .offer-table:has(.col-rank) .offer-brand { flex-direction: column; align-items: center; gap: var(--sp-2); min-width: 0; }
  .offer-table:has(.col-rank) .offer-logo { margin: 0 auto; }
  .offer-table:has(.col-rank) .offer-name { color: #fff; font-size: 1.3rem; }
  /* top-pick badge -> centred pill at the top */
  .offer-table:has(.col-rank) .badge--top-pick { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  /* rating: gold stars only */
  .offer-table:has(.col-rank) .rating { justify-content: center; }
  .offer-table:has(.col-rank) .stars::after { color: #ffd24d; }
  .offer-table:has(.col-rank) .rating-score, .offer-table:has(.col-rank) .rating-count { display: none; }
  /* bonus */
  .offer-table:has(.col-rank) .offer-bonus { color: #ff7e42; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
  .offer-table:has(.col-rank) .offer-bonus small { display: block; color: rgba(255,255,255,.6); font-weight: 400; margin-top: 3px; }
  /* full-width CTA */
  .offer-table:has(.col-rank) .offer-cta .btn { width: 100%; }
  .offer-table:has(.col-rank) .offer-cta .terms { color: rgba(255,255,255,.55); }
}

/* ---------- 21. Responsible-gambling banner: 1 line on mobile -------- */
@media (max-width: 680px) {
  .rg-banner .rg-extra { display: none; }
  .rg-banner .container { flex-wrap: nowrap; gap: var(--sp-2); white-space: nowrap; font-size: var(--fs-100); }
  .rg-banner .rg-18 { min-width: 28px; height: 28px; font-size: var(--fs-100); padding: 0 5px; }
}

/* ---------- 22. Mobile cards: don't clip rank / top-pick badges ------ */
@media (max-width: 760px) {
  .offer-table:has(.col-rank) { overflow: visible; border-radius: 0; }
  .offer-table:has(.col-rank) tbody,
  .offer-table:has(.col-rank) tbody tr { overflow: visible; }
  .offer-table:has(.col-rank) tbody tr { margin-top: var(--sp-6); }
  .offer-table:has(.col-rank) td.col-rank { left: 10px; z-index: 3; }
  .offer-table:has(.col-rank) .badge--top-pick { z-index: 3; }
}

/* ---------- 23. Mobile cards: kill the top-pick left-accent bar ------ */
@media (max-width: 760px) {
  .offer-table:has(.col-rank) tbody tr.is-top td:first-child,
  .offer-table:has(.col-rank) td.col-rank { box-shadow: none !important; }
}

/* ---------- 24. Mobile: lift the affiliate table above the fold ------ */
/* On pages with a ranked table, keep H1 + author + first H2 + table on
   the first screen by trimming the hero lead/CTAs, homepage flourishes
   and the section intro paragraph. Desktop is unaffected. */
@media (max-width: 760px) {
  main:has(.offer-table .col-rank) .hero .lead,
  main:has(.offer-table .col-rank) .hero-actions { display: none; }
  main:has(.offer-table .col-rank) .hero { padding-block: var(--sp-5) var(--sp-4); }
  .rev-marquee, .rev-wave { display: none; }
  .section:has(.offer-table .col-rank) .container.content > p { display: none; }
  .section:has(.offer-table .col-rank) { padding-block: var(--sp-4) var(--sp-6); }
}

/* ---------- 25. Homepage: tighten gap between hero and first H2 ------ */
body.theme-revoltosa .hero { padding-bottom: var(--sp-3); }
body.theme-revoltosa #top-picks { padding-top: var(--sp-3); }

/* ---------- 26. Spacing above table footnote paragraphs ------------- */
p.terms { margin-top: var(--sp-5); }

/* ---------- 27. Cookie consent banner ------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #1d2433; color: #fffaf2; border-top: 2px solid var(--c-primary);
  box-shadow: 0 -6px 24px rgba(0,0,0,.3); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { max-width: var(--container); margin-inline: auto;
  padding: var(--sp-3) var(--sp-4); display: flex; gap: var(--sp-4);
  align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner__text { margin: 0; font-size: var(--fs-200); max-width: 72ch; }
.cookie-banner__text a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: var(--sp-2); flex: 0 0 auto; }
.cookie-banner .btn-outline { color: #fffaf2; border-color: rgba(255,255,255,.45); background: transparent; }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
}
