*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #F8FAFC;
  color: #1E1B4B;
  overflow-x: hidden;
  min-width: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.25;
  color: #1E1B4B;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin-top: 2rem; margin-bottom: 0.25rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { color: #1E1B4B; }
a:hover { color: #F59E0B; }

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

hr {
  border: none;
  border-top: 2px solid #F59E0B;
  margin: 0.5rem 0 1.25rem;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #1E1B4B;
  color: #F8FAFC;
  z-index: 9999;
  border-radius: 8px;
}

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 27, 75, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #F8FAFC;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img { border-radius: 4px; }
.brand:hover { color: #F59E0B; }

/* ── Navigation ── */
.site-nav {
  flex: 1;
  min-width: 0;
}

/* details > summary pattern */
details#nav-details {
  position: relative;
}

summary.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  color: #F8FAFC;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  user-select: none;
}
summary.nav-toggle::-webkit-details-marker { display: none; }
summary.nav-toggle::marker { display: none; }
summary.nav-toggle:hover { background: rgba(245,158,11,0.15); }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  height: 2px;
  background: #F59E0B;
  border-radius: 2px;
}
.hamburger {
  position: relative;
}
.hamburger::before { box-shadow: 0 5px 0 #F59E0B; }

/* Mobile: nav menu collapses */
details#nav-details > menu,
details#nav-details > ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(30, 27, 75, 0.98);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  max-width: calc(100vw - 2rem);
  z-index: 200;
  list-style: none;
}

details#nav-details[open] > menu,
details#nav-details[open] > ul {
  display: block;
}

details#nav-details > menu > li > a,
details#nav-details > ul > li > a {
  display: block;
  padding: 0.6rem 0.75rem;
  color: #F8FAFC;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
details#nav-details > menu > li > a:hover,
details#nav-details > ul > li > a:hover {
  background: rgba(245,158,11,0.15);
  color: #F59E0B;
}

/* ── Header CTAs ── */
.header-ctas {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cta:hover { opacity: 0.85; }

.cta-signup {
  background: #F59E0B;
  color: #1E1B4B;
  border: 2px solid #F59E0B;
}
.cta-login {
  background: transparent;
  color: #F59E0B;
  border: 2px solid #F59E0B;
}

/* ── Glass utility ── */
.glass {
  background: rgba(248, 250, 252, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
}

/* ── Hero (home) ── */
.hero-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 45vh;
  background: linear-gradient(135deg, #1E1B4B 0%, #312e81 60%, #1E1B4B 100%);
  overflow: hidden;
}

.hero-panel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem 2.5rem 2rem;
  gap: 1rem;
}

.hero-panel-text h1 {
  color: #F8FAFC;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

.hero-panel-img {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.08);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(0deg) translateX(0);
}

/* ── Inner banner (non-home) ── */
.inner-banner,
.ranking-banner,
.compare-banner,
.review-header-block,
.page-banner {
  background: linear-gradient(120deg, #1E1B4B 0%, #312e81 100%);
  padding: 2.5rem 1rem;
  width: 100%;
}

.inner-banner-content,
.banner-content,
.compare-banner-inner,
.review-header-text {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.inner-banner h1,
.ranking-banner h1,
.compare-banner h1,
.review-header-block h1,
.page-banner h1 {
  color: #F8FAFC;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
}

.review-header-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  flex-wrap: wrap;
}

.review-header-text {
  flex: 1 1 300px;
  min-width: 0;
}

.review-header-img {
  flex: 0 0 auto;
  max-width: 280px;
  width: 100%;
}

.review-hero-img {
  border-radius: 16px;
  width: 100%;
  height: auto;
}

/* ── Main layout: wrap = aside + article ── */
main {
  width: 100%;
}

.wrap {
  display: flex;
  flex-direction: row;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
  width: 100%;
  min-width: 0;
}

/* Sidebar to the left */
.sidebar {
  flex: 0 0 220px;
  min-width: 0;
  order: -1;
}

.sidebar-inner {
  background: rgba(248,250,252,0.8);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 16px;
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}

.sidebar-inner h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F59E0B;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.sidebar-inner h3:first-child { margin-top: 0; }

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: #1E1B4B;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.3;
}
.sidebar-nav a:hover {
  background: rgba(245,158,11,0.12);
  color: #92400e;
}

/* Content article */
.content-section {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.body-copy {
  max-width: 760px;
  width: 100%;
  min-width: 0;
}

/* Body copy links */
.body-copy a {
  color: #1E1B4B;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.body-copy a:hover { color: #F59E0B; }

/* ── Byline ── */
.byline {
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(248,250,252,0.75);
  margin-top: 0.75rem;
}
.byline strong { color: #F59E0B; }
.byline time { color: rgba(248,250,252,0.85); }

/* ── Stage pill ── */
.stage-pill {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.stage-awareness { background: rgba(245,158,11,0.2); color: #F59E0B; }
.stage-consideration { background: rgba(99,102,241,0.2); color: #818cf8; }
.stage-decision { background: rgba(16,185,129,0.2); color: #34d399; }

/* ── Ranking table ── */
.rank-table-section {
  margin-bottom: 2rem;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

.rank-table th,
.rank-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(245,158,11,0.15);
}

.rank-table th {
  background: #1E1B4B;
  color: #F59E0B;
  font-weight: 700;
}

.rank-table tr:nth-child(even) td {
  background: rgba(245,158,11,0.05);
}

.rank-pos {
  font-weight: 800;
  color: #F59E0B;
  width: 2.5rem;
}

/* Scrollable table wrapper — applied via CSS to any table in body-copy and rank article */
.body-copy table,
.rank-table-section table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.body-copy table thead,
.body-copy table tbody,
.body-copy table tr,
.rank-table thead,
.rank-table tbody,
.rank-table tr {
  /* reset display for inner elements when table is block */
}

/* Override: use a wrapper approach instead */
.body-copy table {
  display: table;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ── Child cards (home) ── */
.child-cards {
  margin-top: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  text-decoration: none;
  color: #1E1B4B;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.18);
  color: #1E1B4B;
}

.card-title {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}

.card-date {
  font-size: 0.75rem;
  color: #F59E0B;
  font-family: system-ui, sans-serif;
  margin-top: auto;
}

/* ── Author article ── */
.author-section {
  margin-top: 2.5rem;
  padding: 1.75rem;
}

.author-name {
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #1E1B4B;
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: #F59E0B;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.author-bio {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  background: #1E1B4B;
  color: #d1d5db;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 3rem;
  width: 100%;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.footer-col {
  flex: 1 1 160px;
  min-width: 0;
}

.footer-col dt {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F59E0B;
  margin-bottom: 0.75rem;
}

.footer-col dd {
  margin: 0 0 0.4rem;
}

.footer-col dd a {
  color: #d1d5db;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  display: inline-block;
  padding: 0.2rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-col dd a:hover { color: #F59E0B; }

.responsible-gambling {
  max-width: 1280px;
  margin: 0 auto 0.75rem;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(209,213,219,0.7);
  border-top: 1px solid rgba(245,158,11,0.2);
  padding-top: 1rem;
}

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(209,213,219,0.5);
}

/* ── Inline content styles ── */
.body-copy h2 { margin-top: 2rem; }
.body-copy h3 { margin-top: 1.5rem; }
.body-copy ul, .body-copy ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.body-copy li { margin-bottom: 0.4rem; line-height: 1.6; }

.body-copy blockquote {
  border-left: 3px solid #F59E0B;
  padding-left: 1rem;
  color: #374151;
  font-style: italic;
  margin: 1.25rem 0;
}

.body-copy pre {
  background: #1E1B4B;
  color: #F8FAFC;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  max-width: 100%;
}

/* ── Responsive: max-width breakpoints ── */
@media (max-width: 1024px) {
  .sidebar { flex: 0 0 180px; }
}

@media (max-width: 768px) {
  /* Stack sidebar below content on mobile */
  .wrap {
    flex-direction: column;
    padding: 1.25rem 0.75rem;
    gap: 1.25rem;
  }

  .sidebar {
    flex: none;
    width: 100%;
    order: 1; /* sidebar goes below content on mobile */
  }

  .sidebar-inner {
    position: static;
  }

  .content-section {
    width: 100%;
    min-width: 0;
  }

  .body-copy {
    max-width: 100%;
  }

  /* Hero stacks on mobile */
  .hero-panels {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel-img {
    display: none; /* hide image panel on mobile to save space */
  }

  .hero-panel-text {
    padding: 2rem 1rem;
  }

  /* Review header stacks */
  .review-header-block {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .review-header-img {
    max-width: 100%;
  }

  /* Footer columns stack */
  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-col {
    flex: none;
    width: 100%;
  }

  /* Card grid single column */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Header stays on one row */
  .header-inner {
    height: auto;
    min-height: 56px;
    padding: 0.5rem 0.75rem;
    flex-wrap: nowrap;
  }

  .brand {
    font-size: 0.8rem;
  }

  .cta {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
    min-height: 44px;
  }

  /* Tables scrollable on mobile */
  .rank-table-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .rank-table {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .inner-banner,
  .ranking-banner,
  .compare-banner,
  .review-header-block,
  .page-banner {
    padding: 1.5rem 0.75rem;
  }

  .wrap {
    padding: 1rem 0.75rem;
  }

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

  .header-ctas {
    gap: 0.25rem;
  }

  .cta {
    font-size: 0.68rem;
    padding: 0.3rem 0.45rem;
  }
}

/* ── Desktop nav: keep toggle even on desktop for this design ── */
@media (min-width: 769px) {
  details#nav-details > menu,
  details#nav-details > ul {
    /* still dropdown on desktop; open on click */
    min-width: 260px;
  }

  summary.nav-toggle {
    /* show as a compact button on desktop too */
    font-size: 0.85rem;
  }
}

/* ── Utility: visually hidden ── */
.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;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}