/* ============================================================
   AuszahlBlitz — main.css v1.0
   Dark Theme | Electric Amber Accent
   Bricolage Grotesque (Display) + DM Sans (Body)
   ============================================================ */

/* 0. GOOGLE FONTS
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* 1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  /* Brand Accent */
  --primary:         #F59E0B;
  --primary-hover:   #D97706;
  --primary-glow:    rgba(245,158,11,.20);
  --primary-dim:     rgba(245,158,11,.10);
  --primary-border:  rgba(245,158,11,.25);

  /* Backgrounds */
  --bg:              #090D1A;
  --bg-soft:         #0F1421;
  --card-bg:         #141C2F;
  --card-hover:      #192236;

  /* Text */
  --text:            #EFF2F7;
  --text-muted:      #94A3B8;
  --text-dim:        #5B6F89;

  /* Borders */
  --border:          #1E2940;
  --border-light:    #273650;

  /* Semantic */
  --amber:           #F59E0B;
  --green:           #10B981;
  --red:             #EF4444;
  --blue:            #3B82F6;

  /* Typography */
  --ff-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  /* Border Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r:     10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Layout */
  --max-w:          1200px;
  --max-w-content:  920px;
  --nav-h:          72px;
  --toc-w:          250px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.4);
  --shadow:     0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.6);

  /* Transitions */
  --t:      .2s ease;
  --t-slow: .35s ease;
}

/* 2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* 3. TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.875rem, 4.5vw, 2.875rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.75rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: .75rem; }
h4 { font-size: 1rem; margin-bottom: .5rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 600; }

/* 4. LAYOUT
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Two-column layout: TOC sidebar + main content */
.content-layout {
  display: grid;
  grid-template-columns: var(--toc-w) 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

/* 5. SITE HEADER
   ---------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(9,13,26,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* Amber accent stripe at very top */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, var(--primary-hover) 60%, transparent 100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  margin-right: auto;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #090D1A;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(245,158,11,.3);
}

.nav__logo .brand-accent {
  color: var(--primary);
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: .125rem;
}

.nav__links a {
  padding: .5rem .875rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--card-bg);
}

/* Burger menu button */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--r-sm);
  margin-left: .75rem;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 6. MOBILE DRAWER  (sibling to header, not inside it!)
   ---------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transform: translateY(-110%);
  transition: transform var(--t-slow);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer__list li a {
  display: block;
  padding: .875rem 1rem;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--t), color var(--t);
}

.mobile-drawer__list li a:hover {
  background: var(--card-bg);
  color: var(--text);
}

/* 7. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 65% 55% at 75% 65%, rgba(245,158,11,.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 25% 30%, rgba(59,130,246,.04) 0%, transparent 60%),
    var(--bg);
  text-align: center;
}

.hero .container {
  max-width: var(--max-w-content);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-dim);
  margin-bottom: 1.375rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  font-size: 1.075rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Stats rail (4 inline stats) */
.stats-rail {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.stats-rail__item {
  flex: 1;
  min-width: 140px;
  padding: 1.25rem 1.375rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stats-rail__item:last-child {
  border-right: none;
}

.stats-rail__value {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .3rem;
}

.stats-rail__label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* 8. TOC SIDEBAR
   ---------------------------------------------------------- */
.toc-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.toc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

.toc__title {
  font-family: var(--ff-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .875rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.toc__list {
  counter-reset: toc-counter;
}

.toc__list li {
  counter-increment: toc-counter;
}

.toc__list li a {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .45rem .625rem;
  border-radius: var(--r-sm);
  font-size: .815rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color var(--t), background var(--t);
}

.toc__list li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--ff-display);
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .1rem;
}

.toc__list li a:hover {
  color: var(--text);
  background: var(--card-hover);
}

/* 9. MAIN CONTENT AREA
   ---------------------------------------------------------- */
.main-content {
  min-width: 0;
}

/* Scroll offset for all anchor targets */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

/* Section blocks */
.section-block {
  padding-top: 2.25rem;
  padding-bottom: .5rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.section-block:first-child {
  border-top: none;
  padding-top: 0;
}

/* 10. COMPACT CASINO LISTING
   ---------------------------------------------------------- */
.listing-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.listing-header {
  display: grid;
  grid-template-columns: 36px 80px 1fr 80px 90px;
  gap: .875rem;
  padding: .625rem 1.25rem;
  background: var(--card-hover);
  border-bottom: 1px solid var(--border);
}

.listing-header span {
  font-family: var(--ff-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.listing-row {
  display: grid;
  grid-template-columns: 36px 80px 1fr 80px 90px;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  transition: background var(--t);
  position: relative;
}

.listing-row:last-child {
  border-bottom: none;
}

.listing-row:hover {
  background: var(--card-hover);
}

/* Left amber glow bar on hover */
.listing-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform var(--t);
  transform-origin: bottom;
  border-radius: 0 2px 2px 0;
}

.listing-row:hover::before {
  transform: scaleY(1);
}

.listing-rank {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-dim);
  text-align: center;
  line-height: 1;
}

/* Gold / silver / bronze */
.listing-row:nth-child(1) .listing-rank { color: var(--primary); }
.listing-row:nth-child(2) .listing-rank { color: #C0C0C0; }
.listing-row:nth-child(3) .listing-rank { color: #CD7F32; }

.listing-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-logo {
  width: 70px;
  height: 34px;
  object-fit: contain;
  object-position: center;
  filter: brightness(.85) contrast(1.05);
  transition: filter var(--t);
}

.listing-logo-link:hover .listing-logo {
  filter: brightness(1);
}

.listing-info {
  min-width: 0;
}

.listing-name {
  display: block;
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}

.listing-bonus {
  display: block;
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.listing-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}

.stars {
  color: var(--amber);
  font-size: .78rem;
  letter-spacing: .05em;
}

.rating-num {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.listing-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

/* 11. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  border-radius: var(--r);
  font-family: var(--ff-body);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t);
  cursor: pointer;
  text-decoration: none;
  padding: .55rem 1.125rem;
  font-size: .875rem;
}

.btn--primary {
  background: var(--primary);
  color: #090D1A;
  border: none;
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 18px rgba(245,158,11,.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: var(--border-light);
}

.btn--sm {
  padding: .375rem .8rem;
  font-size: .8rem;
  border-radius: var(--r-sm);
}

.btn--lg {
  padding: .875rem 2rem;
  font-size: 1rem;
  border-radius: var(--r-md);
}

.btn--full { width: 100%; }

/* 12. INTRO PROSE (below listing)
   ---------------------------------------------------------- */
.section-intro {
  margin-bottom: 1.75rem;
  padding: 1.375rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.section-intro p {
  margin: 0;
}

/* 13. DETAIL CARDS
   ---------------------------------------------------------- */
.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}

.detail-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

/* Screenshot link */
.detail-card__screenshot-link {
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16 / 8;
}

.detail-card__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .45s ease;
}

.detail-card__screenshot-link:hover .detail-card__screenshot {
  transform: scale(1.03);
}

.detail-card__body {
  padding: 1.75rem 2rem;
}

.detail-card__header {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1rem;
}

.detail-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-sm);
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.detail-card h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0;
}

.detail-card p {
  color: var(--text-muted);
  margin-bottom: .875rem;
}

/* Fact pills */
.detail-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.detail-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .35rem .8rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1;
}

.detail-card__facts li strong {
  color: var(--primary);
  font-weight: 700;
}

/* CTA row */
.detail-card__ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* 14. PROSE SECTIONS
   ---------------------------------------------------------- */
.prose-section {
  /* container for PDF text sections */
}

.prose-section p {
  margin-bottom: 1rem;
}

/* Numbered list (process steps) */
.steps-list {
  margin: 1.25rem 0 1.5rem;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.steps-list li {
  counter-increment: step-counter;
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: .95rem;
}

.steps-list li::before {
  content: counter(step-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  font-family: var(--ff-display);
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: .15rem;
}

.steps-list li strong { color: var(--text); }

/* Bullet list with lightning icon */
.bullet-list {
  margin: .875rem 0 1.375rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bullet-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: .95rem;
}

.bullet-list li::before {
  content: '⚡';
  flex-shrink: 0;
  font-size: .8rem;
  margin-top: .2rem;
  color: var(--primary);
}

/* 15. DATA TABLES
   ---------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 520px;
}

thead th {
  background: var(--card-hover);
  padding: .875rem 1.125rem;
  text-align: left;
  font-family: var(--ff-display);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: .875rem 1.125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(245,158,11,.03);
}

.td-name {
  font-weight: 700;
  color: var(--text);
  font-family: var(--ff-display);
  white-space: nowrap;
}

.td-fast { color: var(--green); font-weight: 600; }
.td-medium { color: var(--amber); font-weight: 600; }
.td-slow { color: var(--text-dim); }

/* 16. FAQ SECTION
   ---------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .625rem;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* 17. RESPONSIBLE GAMBLING BANNER
   ---------------------------------------------------------- */
.rg-banner {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: rgba(239,68,68,.05);
  border: 1px solid rgba(239,68,68,.18);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.rg-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rg-banner__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.rg-banner__text {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.rg-banner__text strong { color: var(--text); }

.rg-banner__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 18. SITE FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav__logo {
  margin: 0 0 .875rem;
  font-size: 1.1rem;
}

.footer-desc {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.footer-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-dim);
}

.footer-col h4 {
  font-family: var(--ff-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col ul a {
  font-size: .875rem;
  color: var(--text-dim);
  transition: color var(--t);
}

.footer-col ul a:hover { color: var(--primary); }

.footer-rg-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.footer-rg-link {
  display: inline-block;
  padding: .3rem .7rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .78rem;
  color: var(--text-dim);
  transition: border-color var(--t), color var(--t);
}

.footer-rg-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-copy {
  font-size: .8rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: .8rem;
  color: var(--text-dim);
  transition: color var(--t);
}

.footer-bottom-links a:hover { color: var(--text); }

/* 19. LEGAL/SERVICE PAGES
   ---------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-hero__badge {
  display: inline-block;
  padding: .3rem .75rem;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin-bottom: .5rem;
}

.page-hero .lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
}

.breadcrumbs ol li + li::before {
  content: '›';
  color: var(--text-dim);
  margin-right: .4rem;
}

.breadcrumbs ol a {
  color: var(--text-dim);
  transition: color var(--t);
}

.breadcrumbs ol a:hover { color: var(--primary); }

.breadcrumbs ol li:last-child span {
  color: var(--text-muted);
}

/* Section prose (legal pages) */
.section-prose {
  padding: 2.5rem 0 3.5rem;
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
}

.section-card h2 {
  font-size: 1.125rem;
  margin-bottom: .875rem;
  color: var(--text);
}

.section-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.section-card p:last-child { margin-bottom: 0; }

.section-card ul,
.section-card ol {
  margin: .75rem 0 .875rem 1.25rem;
}

.section-card ul { list-style: disc; }
.section-card ol { list-style: decimal; }

.section-card li {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .375rem;
}

.section-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-group label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--t);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: .2rem;
  accent-color: var(--primary);
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}

.form-check label {
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.55;
}

.form-check label a { color: var(--primary); }

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  height: fit-content;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item__icon {
  width: 38px;
  height: 38px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.contact-info-item__text {
  font-size: .875rem;
  color: var(--text-muted);
}

.contact-info-item__text strong {
  display: block;
  color: var(--text);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .2rem;
}

/* 20. BADGES / PILLS
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: var(--r-sm);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.badge--amber {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge--green {
  background: rgba(16,185,129,.1);
  color: var(--green);
  border: 1px solid rgba(16,185,129,.2);
}

/* 21. UTILITY CLASSES
   ---------------------------------------------------------- */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--text-muted); }
.text-dim      { color: var(--text-dim); }
.text-center   { text-align: center; }
.fw-700        { font-weight: 700; }

.mb-0  { margin-bottom: 0 !important; }
.mb-05 { margin-bottom: .5rem; }
.mb-1  { margin-bottom: 1rem; }
.mb-2  { margin-bottom: 1.5rem; }
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }

.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;
}

/* 22. SELECTION & SCROLLBAR
   ---------------------------------------------------------- */
::selection {
  background: var(--primary);
  color: #090D1A;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* 23. RESPONSIVE
   ---------------------------------------------------------- */

/* Tablet: collapse TOC sidebar */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
    max-height: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Show burger, hide desktop nav */
  .nav__links    { display: none; }
  .nav__burger   { display: flex; }

  /* Compact listing on mobile */
  .listing-header { display: none; }

  .listing-row {
    grid-template-columns: 28px 64px 1fr auto;
    gap: .625rem;
    padding: .75rem 1rem;
  }

  /* Hide bonus text and rating on small screens */
  .listing-bonus  { display: none; }
  .listing-rating { display: none; }

  .listing-cta-wrap {
    flex-direction: row;
    align-items: center;
  }

  /* Stats rail wrap */
  .stats-rail {
    border-radius: var(--r);
  }

  .stats-rail__item {
    min-width: 100px;
    padding: 1rem .875rem;
  }

  .stats-rail__value { font-size: 1.25rem; }

  /* Detail card body */
  .detail-card__body { padding: 1.25rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Small mobile */
@media (max-width: 480px) {
  .listing-row {
    grid-template-columns: 22px 52px 1fr auto;
    gap: .5rem;
    padding: .625rem .75rem;
  }

  .listing-logo { width: 52px; height: 28px; }
  .listing-name { font-size: .85rem; }

  .btn--sm { padding: .35rem .65rem; font-size: .78rem; }

  .stats-rail__item { padding: .875rem .625rem; }
  .stats-rail__label { font-size: .68rem; }

  .hero { padding-top: calc(var(--nav-h) + 2.5rem); }
}
