/* ==========================================================================
   Ace Casinos — LUMIERE-inspired editorial design system
   Light theme, Noto Serif headlines, Inter body, square corners,
   wide-tracking uppercase labels, glass-morphism nav.
   ========================================================================== */

:root {
  /* Surfaces (LUMIERE Material 3 light palette, warmed up with cream tints) */
  --bg: #f9f9f9;
  --bg-elev: #f0eee8;            /* subtle warm tint, was #eeeeee */
  --bg-card: #ffffff;
  --bg-card-alt: #f5f0e8;        /* warm cream, was #f3f3f3 */
  --bg-strong: #ece6dc;          /* deeper cream */
  --bg-deep: #112824;             /* deep emerald-tinted near-black */

  /* Text */
  --text: #1b1b1b;
  --text-dim: #474747;
  --text-muted: #777777;
  --text-on-dark: #f0ebe0;        /* warm off-white on dark, replaces pure gray */

  /* Borders */
  --border: #c6c6c6;
  --border-soft: #e6dfd3;         /* warm border, was #e2e2e2 */
  --border-strong: #777777;

  /* Brand — emerald primary + gold accent */
  --primary: #0f5f3e;             /* deep emerald CTA */
  --primary-hover: #15814f;       /* brighter emerald on hover */
  --primary-deep: #0a4530;        /* deeper emerald for borders / strong states */
  --accent-gold: #c89432;         /* warm gold for ranks, stars, eyebrows */
  --accent-gold-dark: #a17a26;
  --accent-gold-soft: #ead9a8;    /* pale gold tint for hover backgrounds */
  --accent: #3b3b3b;
  --emerald: #0f5f3e;             /* alias of primary, kept for legacy refs */
  --warn: #ba1a1a;
  --info: #5e5e5e;

  /* Typography */
  --font-headline: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-label: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape (LUMIERE = square) */
  --radius: 0;
  --radius-sm: 0;
  --radius-pill: 9999px;       /* still rounded for category bubbles */

  /* Layout */
  --container: 1180px;
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Headlines use Noto Serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 2.5em; font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 1.8em; font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 700; }

/* Body */
p { margin: 0 0 1em; color: var(--text-dim); font-size: 0.98rem; }
ul, ol { color: var(--text-dim); padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
strong { color: var(--text); font-weight: 600; }
em { color: var(--text); }
code { background: var(--bg-elev); padding: 2px 6px; border-radius: 0; font-size: 0.9em; font-family: 'SF Mono', Menlo, monospace; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
a:hover { color: var(--primary); text-decoration-color: var(--primary); }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); font-size: 0.88rem; }
.divider { height: 1px; background: var(--border-soft); margin: 3rem 0; border: 0; }

/* Material Symbols sizing */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  vertical-align: middle;
}

/* ---------- Disclosure bar (kept for compliance) ---------- */
.disclosure-bar {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  font-size: 0.74rem;
  padding: 8px 24px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--bg-deep);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 22px;
  line-height: 1.5;
}
.disclosure-bar a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(240, 235, 224, 0.45);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.disclosure-bar a:hover { text-decoration-color: var(--text-on-dark); }
.disclosure-bar .disclosure-safety { white-space: nowrap; }
.disclosure-bar .disclosure-safety strong { color: var(--accent-gold); font-weight: 700; }
.disclosure-bar .disclosure-affiliate { color: rgba(240, 235, 224, 0.7); }

/* Vertical divider between the two groups (desktop), horizontal on mobile */
.disclosure-bar .disclosure-divider {
  width: 1px;
  height: 14px;
  background: rgba(240, 235, 224, 0.2);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .disclosure-bar {
    flex-direction: column;
    gap: 6px;
    padding: 10px 20px 12px;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.45;
  }
  .disclosure-bar .disclosure-safety {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }
  .disclosure-bar .disclosure-divider {
    width: 32px;
    height: 1px;
    margin: 2px 0;
  }
  .disclosure-bar .disclosure-affiliate {
    max-width: 36ch;
    margin: 0 auto;
  }
}

/* ---------- Top App Bar (LUMIERE glass-morphism) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(238, 238, 238, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .logo-mark {
  display: none; /* replaced by typographic logotype */
}
.primary-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-family: var(--font-label);
  color: var(--text);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease;
}
.primary-nav a:hover, .primary-nav a.active {
  border-bottom-color: var(--accent-gold);
  text-decoration: none;
  color: var(--text);
}

/* ---------- Dropdown sub-nav ---------- */
.primary-nav .has-submenu {
  position: relative;
}
.primary-nav .has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.primary-nav .submenu-chevron {
  font-size: 16px;
  transition: transform 0.2s ease;
  font-variation-settings: 'wght' 400;
}
.primary-nav .has-submenu:hover > a .submenu-chevron,
.primary-nav .has-submenu:focus-within > a .submenu-chevron {
  transform: rotate(180deg);
}

/* The dropdown panel on desktop */
.primary-nav .subnav {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 36px rgba(17, 40, 36, 0.12);
  padding: 10px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 60;
}
/* Invisible hover bridge — extends the hoverable region downward into the
   header's bottom-padding area so the cursor can travel from the "Casinos"
   link to the dropdown without crossing an unhovered zone. The 18px height
   matches .nav-wrap's bottom padding. Always present, transparent, captures
   pointer events so hovering it keeps .has-submenu:hover active. */
.primary-nav .has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 18px;
  background: transparent;
}
.primary-nav .has-submenu:hover .subnav,
.primary-nav .has-submenu:focus-within .subnav,
.primary-nav .has-submenu.open .subnav {
  display: block;
}
.primary-nav .subnav li {
  list-style: none;
  margin: 0;
}
.primary-nav .subnav a {
  display: block;
  padding: 8px 22px;
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 0;
  border-left: 2px solid transparent;
}
.primary-nav .subnav a:hover,
.primary-nav .subnav a.active {
  background: var(--bg-card-alt);
  border-left-color: var(--accent-gold);
  color: var(--primary);
}
.primary-nav .subnav-divider {
  padding: 12px 22px 6px;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 700;
  border-top: 1px solid var(--border-soft);
  margin-top: 6px;
}
.primary-nav .subnav-divider:first-child { border-top: 0; margin-top: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 6px;
  cursor: pointer;
}
.nav-toggle .material-symbols-outlined { font-size: 24px; }

@media (max-width: 960px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(238, 238, 238, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
    gap: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; }

  /* Swap order: brand on the left, hamburger on the right */
  .brand { order: 1; margin-left: 12px; }   /* ≈3mm inset from container padding */
  .nav-toggle { order: 2; margin-right: 12px; }  /* mirror inset on the right */

  .primary-nav > li { width: 100%; }
  .primary-nav > li > a {
    display: block;
    padding: 14px 24px;
    border-bottom: 0;
  }

  /* Dropdown becomes an inline accordion inside the mobile menu */
  .primary-nav .has-submenu .submenu-chevron {
    margin-left: auto;
  }
  .primary-nav .has-submenu > a {
    justify-content: space-between;
    width: 100%;
  }
  .primary-nav .subnav {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    backdrop-filter: none;
    display: none;
  }
  .primary-nav .has-submenu.open .subnav { display: block; }
  .primary-nav .has-submenu:hover .subnav,
  .primary-nav .has-submenu:focus-within .subnav {
    display: none;  /* override desktop hover behavior on mobile */
  }
  .primary-nav .has-submenu.open .subnav { display: block; }
  .primary-nav .subnav a {
    padding: 10px 36px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    background: rgba(0, 0, 0, 0.02);
  }
  .primary-nav .subnav-divider {
    padding: 14px 36px 6px;
    background: rgba(0, 0, 0, 0.02);
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% 0%, rgba(15, 95, 62, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(200, 148, 50, 0.06), transparent 60%),
    var(--bg);
  padding: 16px 0 28px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-grid { display: contents; }
/* When the hero has a featured-pick card, lay it out 2-col on desktop */
.hero.hero-with-pick .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}
.hero.hero-with-pick .hero-body { min-width: 0; }
@media (max-width: 980px) {
  .hero.hero-with-pick .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.hero h1 {
  max-width: 22ch;
  font-family: var(--font-headline);
  font-weight: 400;
}
.hero .lede {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 65ch;
  margin-bottom: 1.5em;
  font-family: var(--font-body);
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 1rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  display: inline-block;
  border-radius: 50%;
}
.hero-meta a { color: var(--text-muted); }
.hero-meta a:hover { color: var(--text); }

/* ---------- Buttons (LUMIERE = black, square, wide-tracking caps) ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-on-dark);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-on-dark);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--text-on-dark);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--text);
  letter-spacing: 0.2em;
}
.btn-sm { padding: 12px 22px; font-size: 0.7rem; letter-spacing: 0.18em; }

/* ---------- Section spacing ---------- */
.section { padding: 72px 0; }

/* Tighten the gap between the hero and the first content section.
   When a .section immediately follows the .hero, its top padding shrinks
   and the first H2 inside drops its top margin. Together with the reduced
   .hero bottom padding above, this saves ~120-130px of vertical space
   (≈5 lines) compared to the unmodified defaults. */
main > .hero + .section { padding-top: 24px; }
.section > .container > h2:first-child,
.section > .container > .section-title:first-child {
  margin-top: 0;
}

/* Mobile only: tighten the gap between the sticky nav and the breadcrumbs.
   Saves ~68px (≈3 lines) by shrinking hero top padding and dropping the
   breadcrumb top margin. */
@media (max-width: 760px) {
  .hero { padding-top: 12px; }
  .breadcrumbs { margin-top: 0; }
}
.section-tight { padding: 48px 0; }
.section-alt {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.section-title {
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 400;
}
.section-lede {
  color: var(--text-dim);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

/* Optional small label above section titles (LUMIERE "Issue No. 04 — Essentialism" style) */
.eyebrow {
  display: block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent-gold-dark);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.grid-3 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-2 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* ---------- Top Picks (operator lineup) ---------- */
.top-picks {
  display: grid;
  gap: 0;
  margin: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pick-card {
  display: grid;
  grid-template-columns: 48px 80px 1.4fr 1.5fr 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 28px;
  transition: background 0.2s ease;
}
.pick-card:last-child { border-bottom: 0; }
.pick-card:hover { background: var(--bg-card-alt); }
.pick-rank {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pick-logo {
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pick-logo img {
  max-width: 56px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pick-name {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
}
.pick-name a { color: var(--text); text-decoration: none; }
.pick-name a:hover { text-decoration: underline; text-decoration-color: var(--text); }
.pick-tagline {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 4px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pick-bonus {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.pick-bonus small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.72rem;
  margin-top: 4px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pick-rating {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.pick-rating .stars {
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@media (max-width: 760px) {
  /* Convert each pick-card from horizontal row to vertical card on mobile.
     Each card is a standalone unit with logo + rank header, divided body,
     numeric rating tile, and full-width CTA. The first card carries a
     "TOP PICK" badge. */
  .top-picks {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 0;
    border-bottom: 0;
  }
  .pick-card {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "rank"
      "name"
      "bonus"
      "rating"
      "cta";
    gap: 0;
    padding: 28px 24px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
  }
  .pick-card:hover { background: var(--bg-card); }

  /* TOP PICK badge — only on the first card in a top-picks list */
  .top-picks .pick-card:first-child {
    padding-top: 56px;
  }
  .top-picks .pick-card:first-child::before {
    content: "TOP PICK";
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent-gold);
    color: var(--bg-deep);
    font-family: var(--font-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    padding: 9px 18px;
  }

  /* Logo — centered on mobile vertical card. Image capped smaller than
     container so even square brand marks render with whitespace. */
  .pick-logo {
    grid-area: logo;
    width: 140px;
    height: 96px;
    margin: 0 auto 4px;
    padding: 0;
  }
  .pick-logo img {
    max-width: 96px;
    max-height: 72px;
  }

  /* Rank — small label beneath the logo, e.g. "#1" */
  .pick-rank {
    grid-area: rank;
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
  }
  .pick-rank::before { content: "#"; }

  /* Brand name — centered serif, large */
  .pick-name-block { grid-area: name; }
  .pick-name {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: 1.45rem;
    color: var(--text);
  }
  .pick-name a { color: var(--text); text-decoration: none; }
  .pick-tagline {
    color: var(--text-muted);
    font-family: var(--font-label);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 8px;
    margin-bottom: 14px;
  }

  /* Bonus headline — large serif, bonus detail below */
  .pick-bonus {
    grid-area: bonus;
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text);
    line-height: 1.25;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 18px;
  }
  .pick-bonus small {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text-dim);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 8px;
  }

  /* Rating — numeric tile, centered */
  .pick-rating {
    grid-area: rating;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 18px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-soft);
    padding: 14px 24px;
    min-width: 84px;
    font-family: var(--font-headline);
    font-size: 1.6rem;
    color: var(--text);
    gap: 0;
  }
  .pick-rating .stars { display: none; }

  /* CTA — full-width, larger */
  .pick-cta { grid-area: cta; width: 100%; }
  .pick-cta .btn,
  .pick-cta .btn.btn-sm {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
  }
}

/* Inline brand logo for comparison tables and review headers */
.brand-logo-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-inline img {
  max-width: 36px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Review-page hero logo */
.review-logo-block {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 1.5rem 0;
}
.review-logo-block .logo {
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-logo-block .logo img {
  max-width: 96px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
  min-width: 720px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.compare th {
  background: var(--bg-card-alt);
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.compare tbody tr:hover { background: var(--bg-card-alt); }
.compare td.brand-cell {
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-headline);
  font-weight: 400;
}
.compare .yes { color: var(--emerald); font-weight: 600; }
.compare .no { color: var(--warn); font-weight: 600; }

/* ---------- Feature cards (editorial style) ---------- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 32px;
}
.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--accent-gold-soft);
  color: var(--primary-deep);
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  border: 1px solid var(--accent-gold);
}
.feature-card h3 { margin-top: 0; font-family: var(--font-headline); font-weight: 400; }

/* ---------- Callouts ---------- */
.callout {
  background: var(--bg-card);
  border-left: 2px solid var(--text);
  padding: 20px 24px;
  color: var(--text-dim);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout.warn { border-left-color: var(--warn); }
.callout.success { border-left-color: var(--emerald); }
.callout strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 20px 24px;
  margin-bottom: 0;
  border-bottom: 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--border-soft); }
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--text);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent-gold-dark);
  font-size: 1.6rem;
  line-height: 1;
  font-family: var(--font-body);
  font-weight: 400;
  margin-left: 24px;
}
.faq-list details[open] summary::after { content: "−"; color: var(--primary); }
.faq-list details[open] { background: var(--bg-card-alt); border-left: 3px solid var(--accent-gold); }
.faq-list p { margin-top: 16px; color: var(--text-dim); }

/* ---------- TOC ---------- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 24px 28px;
  margin: 2rem 0;
}
.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-label);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}
.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 1.2em;
}
.toc a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- Author byline ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin: 2rem 0;
  font-size: 0.92rem;
}
.byline .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--text-on-dark);
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1rem;
  overflow: hidden;
}
.byline .avatar.avatar-photo {
  background: var(--bg-card-alt);
  padding: 0;
}
.byline .avatar.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Larger photo on the dedicated authors page (.byline.author-card) */
.byline.author-card .avatar { width: 84px; height: 84px; }
.byline .meta { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.byline a { color: var(--text); }

/* Hero variant — sits at the bottom of the hero block */
.hero-byline {
  margin: 2.5rem 0 0;
  background: var(--bg-card);
}

/* ===========================================================
   Mini-review module — self-contained card with header (logo +
   rank + title + score), description, pros/cons grid, CTA row.
   Used on /online-casinos/ and any page that wants to embed a
   subset of operator reviews (via render_mini_reviews() in
   _build/components.py).
   =========================================================== */
.mini-review {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent-gold);
  padding: 28px 32px;
  margin: 0 0 24px;
  box-shadow: 0 1px 0 rgba(17, 40, 36, 0.04);
  transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}
.mini-review:hover {
  box-shadow: 0 8px 28px rgba(17, 40, 36, 0.08);
  border-left-color: var(--primary);
}

/* Header row: logo | rank+title | score */
.mini-review-header {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.mini-review-logo {
  width: 96px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-review-logo img {
  max-width: 80px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.mini-review-title { line-height: 1.3; }
.mini-review-title h3 {
  margin: 4px 0 2px;
  font-size: 1.4rem;
}
.mini-review-rank {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
}
.mini-review-descriptor {
  display: block;
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mini-review-score {
  text-align: center;
  padding: 8px 16px;
  background: var(--bg-card-alt);
  border: 1px solid var(--accent-gold-soft);
  min-width: 88px;
}
.mini-review-score .score-value {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}
.mini-review-score .score-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Meta line under header (license, founded, etc.) */
.mini-review-meta {
  color: var(--text-muted);
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin: 0 0 1.25em;
}
.mini-review-meta a { color: var(--primary); }

/* Description paragraph */
.mini-review-description {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.25em;
}

/* CTA row: bonus headline on the left, action button on the right */
.mini-review-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}
.mini-review-bonus {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mini-review-bonus strong {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}
.mini-review-bonus-label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.mini-review-cta-btn { padding: 16px 32px; white-space: nowrap; }

/* Mobile: stack header columns and CTA row */
@media (max-width: 720px) {
  .mini-review {
    padding: 22px 18px;
    border-left-width: 3px;
  }
  .mini-review-header {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "logo title"
      "score score";
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .mini-review-logo { grid-area: logo; width: 72px; height: 54px; }
  .mini-review-logo img { max-width: 60px; max-height: 44px; }
  .mini-review-title { grid-area: title; }
  .mini-review-title h3 { font-size: 1.2rem; }
  .mini-review-score {
    grid-area: score;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
  }
  .mini-review-score .score-value { font-size: 1.2rem; }
  .mini-review-score .score-label { margin-top: 0; }
  .mini-review-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }
  .mini-review-bonus { align-items: center; }
  .mini-review-cta-btn { width: 100%; padding: 16px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { margin: 0 12px; color: var(--text-muted); }

/* ---------- Legality state grid ---------- */
.legality-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  margin: 1.5rem 0;
}
.legality-grid a {
  display: block;
  padding: 16px 18px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.legality-grid a:hover { background: var(--bg-card-alt); }
.legality-grid small {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.7rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Pros / Cons ---------- */
.proscons {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  margin: 2rem 0;
  border: 1px solid var(--border-soft);
}
.proscons > div {
  padding: 28px;
  background: var(--bg-card);
}
.proscons .pros { border-right: 1px solid var(--border-soft); border-left: 2px solid var(--emerald); }
.proscons .cons { border-left: 2px solid var(--warn); }
.proscons h4 {
  margin-top: 0;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.proscons ul { padding-left: 1.2em; }
@media (max-width: 600px) {
  .proscons { grid-template-columns: 1fr; }
  .proscons .pros { border-right: 0; border-bottom: 1px solid var(--border-soft); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  border-top: 1px solid var(--bg-deep);
  margin-top: 96px;
  padding: 72px 0 32px;
  font-size: 0.9rem;
}
.site-footer .brand { color: var(--text-on-dark); }
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer-grid h4 {
  color: var(--text-on-dark);
  font-family: var(--font-label);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a {
  color: rgba(226, 226, 226, 0.7);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.footer-grid a:hover { color: var(--text-on-dark); text-decoration: underline; text-decoration-color: var(--text-on-dark); }
.footer-grid p { color: rgba(226, 226, 226, 0.65); font-size: 0.85rem; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 226, 226, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(226, 226, 226, 0.55);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.responsible-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.responsible-badges span {
  background: transparent;
  border: 1px solid rgba(226, 226, 226, 0.25);
  padding: 6px 12px;
  border-radius: 0;
  font-family: var(--font-label);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226, 226, 226, 0.85);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Bottom nav (LUMIERE mobile signature) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  height: 72px;
  background-color: rgba(238, 238, 238, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft);
  padding: 0 24px;
}
.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bottom-nav a .material-symbols-outlined {
  font-size: 22px;
  margin-bottom: 4px;
}
.bottom-nav a.active {
  color: var(--text);
}
.bottom-nav a.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 760px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 80px; }
  .sticky-cta { bottom: 80px; }
}

/* ---------- Sticky CTA (mobile, sits above bottom nav) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-deep);
  color: var(--text-on-dark);
  padding: 14px 20px;
  display: none;
  z-index: 45;
  border-top: 1px solid var(--bg-deep);
}
.sticky-cta strong { color: var(--text-on-dark); }
.sticky-cta .btn { padding: 10px 18px; font-size: 0.7rem; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ---------- Print fallback ---------- */
@media print {
  .site-header, .bottom-nav, .sticky-cta, .disclosure-bar { display: none; }
  body { background: white; color: black; }
}

/* ===========================================================
   Featured-pick card — sits next to the H1 in the hero on
   flagship pages. Dark card with vibrant emerald CTA, gold badge.
   =========================================================== */
.featured-pick {
  position: relative;
  background: linear-gradient(160deg, #1b3933 0%, #0b1d1a 100%);
  color: var(--text-on-dark);
  padding: 28px 24px 22px;
  margin: 8px 0 0;
  box-shadow: 0 16px 44px rgba(11, 29, 26, 0.32);
  width: 100%;
  max-width: 380px;
  justify-self: end;
}

.featured-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold);
  color: var(--bg-deep);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  margin-bottom: 18px;
}
.featured-pick-badge .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 1, 'wght' 700;
}

.featured-pick-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.featured-pick-logo {
  width: 56px; height: 56px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.featured-pick-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.featured-pick-name h2 {
  font-family: var(--font-headline);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.featured-pick-tagline {
  margin: 16px 0 22px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(240, 235, 224, 0.72);
  line-height: 1.4;
}

.featured-pick-bonus {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(46, 166, 109, 0.15);
  border-left: 3px solid #2ea66d;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.featured-pick-bonus-icon {
  font-size: 22px;
  color: #36c781;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}
.featured-pick-bonus-headline {
  font-family: var(--font-headline);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.005em;
}

.featured-pick-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.featured-pick-pill {
  background: rgba(240, 235, 224, 0.03);
  border: 1px solid rgba(240, 235, 224, 0.14);
  padding: 12px 12px;
  text-align: center;
}
.featured-pick-pill .pill-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
  font-weight: 700;
}
.featured-pick-pill .pill-value {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-on-dark);
  line-height: 1.2;
}

.featured-pick-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(180deg, #2ea66d 0%, #1f8b59 100%);
  color: #ffffff;
  padding: 18px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 14px;
  border: 0;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 14px rgba(46, 166, 109, 0.28);
}
.featured-pick-cta:hover {
  background: linear-gradient(180deg, #36c781 0%, #279d62 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(46, 166, 109, 0.42);
}
.featured-pick-cta .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 600;
}

.featured-pick-fineprint {
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(240, 235, 224, 0.55);
  margin: 0;
}
.featured-pick-fineprint a {
  color: rgba(240, 235, 224, 0.72);
  text-decoration: underline;
  text-decoration-color: rgba(240, 235, 224, 0.3);
}
.featured-pick-fineprint a:hover {
  color: var(--accent-gold);
  text-decoration-color: var(--accent-gold);
}

@media (max-width: 980px) and (min-width: 761px) {
  /* Tablet — keep the featured pick but compact it */
  .featured-pick {
    max-width: 100%;
    justify-self: stretch;
    padding: 26px 22px 22px;
  }
  .featured-pick-name h2 { font-size: 1.4rem; }
  .featured-pick-bonus-headline { font-size: 1.05rem; }
}

/* Mobile (≤760px): aggressively compress the hero to keep the
   affiliate table above the fold. The featured-pick card, hero-meta,
   breadcrumbs, and byline are hidden above the fold — they appear
   only on tablet/desktop where the screen has room. The byline is
   re-inserted below the affiliate table on mobile (see .hero-byline-mobile). */
@media (max-width: 760px) {
  .featured-pick,
  .hero .hero-meta,
  .hero .hero-byline,
  .hero .breadcrumbs { display: none; }

  /* Hero shrinks to just H1 + a short lede */
  .hero { padding: 6px 0 10px; }
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.18;
    margin-bottom: 0.3em;
    letter-spacing: -0.01em;
  }
  .hero .lede {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0;
    /* Cap the lede to 3 lines on mobile so it never blows up the hero */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Affiliate-table section pulls right up to the hero */
  main > .hero + .section { padding: 14px 0 28px; }
  main > .hero + .section > .container > h2,
  main > .hero + .section > .container > h2.section-title {
    font-size: 1.3rem;
    margin: 0 0 0.4em;
    line-height: 1.2;
  }
  main > .hero + .section > .container > p:first-of-type,
  main > .hero + .section > .container > p:nth-of-type(2) {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8em;
  }

  /* Tighten the top-picks lineup so the first card is fully visible */
  .top-picks { margin: 1.25rem 0; gap: 14px; }
}
