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

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

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #000;
  background: #fff;
  padding-bottom: 72px; /* bottom nav clearance */
  overflow-x: hidden;
}

/* =============================================
   SKIP LINK
   ============================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000;
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1rem, 2vw, 1.375rem); margin-bottom: 0.4rem; }

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

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* =============================================
   LAYOUT WRAPPER
   ============================================= */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =============================================
   FIXED BOTTOM HEADER / NAV BAR
   The spec calls for fixed bottom bar (mobile-style, used on desktop too),
   brand centered, menu split on both sides.
   We place the header at the bottom as the main nav bar.
   ============================================= */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
  border-top: 2px solid #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 1rem;
  gap: 0.5rem;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* CTA buttons */
.header-ctas {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-signup {
  background: #fff;
  color: #000;
  border: 2px solid #fff;
}

.cta-signup:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
  opacity: 1;
}

.cta-login {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cta-login:hover {
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

/* Menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.burger {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.burger::before,
.burger::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.burger::before { top: -5px; }
.burger::after { top: 5px; }

.menu-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .burger::before {
  transform: rotate(45deg) translate(3px, 4px);
}

.menu-toggle[aria-expanded="true"] .burger::after {
  transform: rotate(-45deg) translate(3px, -4px);
}

/* Primary nav - hidden by default on mobile, slides up above the bottom bar */
.primary-nav {
  display: none;
  flex-direction: column;
  background: #000;
  border-top: 1px solid #333;
  padding: 0.5rem 0;
  max-height: 60vh;
  overflow-y: auto;
}

.primary-nav.is-open {
  display: flex;
}

.nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 1px solid #1a1a1a;
  min-height: 44px;
}

.nav-link:hover {
  background: #111;
  opacity: 1;
}

/* =============================================
   HERO SECTION (home page)
   ============================================= */
.hero-section {
  padding: 3rem 0 2rem;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.hero-article {
  position: relative;
}

.hero-bg-numeral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 16rem);
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  line-height: 1.6;
  margin: 0 auto;
}

/* =============================================
   FAQ HERO
   ============================================= */
.faq-hero-section {
  padding: 2.5rem 0 1.5rem;
  background: #000;
  color: #fff;
}

.faq-hero-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.faq-hero-article h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.faq-stage-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}

/* =============================================
   INNER PAGE HEADERS (about, privacy)
   ============================================= */
.inner-header-section {
  padding: 2.5rem 0 1.5rem;
  background: #000;
  color: #fff;
}

.inner-header-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.inner-header-article h1 {
  color: #fff;
}

/* =============================================
   ARTICLE HEADER
   ============================================= */
.article-header-section {
  padding: 2rem 0 1.5rem;
  background: #000;
  color: #fff;
}

.article-header-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-header-article h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  opacity: 1;
}

.breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.hero-img-wrap {
  margin-top: 1.5rem;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* =============================================
   BYLINE
   ============================================= */
.byline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.byline time {
  color: rgba(255,255,255,0.7);
}

/* =============================================
   CONTENT SECTION (main reading column + aside)
   ============================================= */
.content-section {
  padding: 2.5rem 0;
}

.content-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.content-body {
  min-width: 0;
}

.content-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.content-body p {
  margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1rem;
}

.content-body a {
  color: #000;
  text-decoration: underline;
}

.content-body a:hover {
  text-decoration: none;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.content-body th,
.content-body td {
  border: 1px solid #e0e0e0;
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.content-body th {
  background: #000;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.content-body tr:nth-child(even) td {
  background: #f8f8f8;
}

/* =============================================
   ASIDE
   ============================================= */
.content-aside {
  position: sticky;
  top: 1rem;
}

.aside-inner {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.aside-inner h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.aside-inner .subtitle {
  font-size: 0.8125rem;
  color: #555;
  margin-bottom: 0.875rem;
}

.aside-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #e8e8e8;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
}

.aside-link:last-child {
  border-bottom: none;
}

.aside-link:hover {
  background: #f0f0f0;
  padding-left: 0.375rem;
  opacity: 1;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  border-bottom: 1px solid #e8e8e8;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* =============================================
   SUBTITLE / SUBHEADING (h2 + p.subtitle contract)
   ============================================= */
p.subtitle {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

h2 + p.subtitle {
  margin-top: -0.25rem;
}

/* =============================================
   CHILD LIST / CARDS
   ============================================= */
.child-list-section,
.recent-section {
  padding: 2rem 0 2.5rem;
  background: #f8f8f8;
  margin: 0;
}

.child-list-section .wrap,
.recent-section .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.child-list-section h2,
.recent-section h2 {
  margin-bottom: 0.25rem;
}

.child-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.child-list > li > section.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.25rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.child-list > li > section.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.child-list > li > section.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.child-list > li > section.card h3 a {
  text-decoration: none;
  color: #000;
}

.child-list > li > section.card h3 a:hover {
  text-decoration: underline;
  opacity: 1;
}

.child-list > li > section.card p {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.5;
}

.card-date {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* =============================================
   AUTHOR SECTION
   ============================================= */
.author-section {
  padding: 2rem 0;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.author-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.author-article h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 0.25rem;
}

.author-article .subtitle {
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0.875rem;
}

.author-bio {
  max-width: 680px;
  color: #333;
  line-height: 1.7;
}

/* =============================================
   ASIDE TRUST BLOCK
   ============================================= */
.aside-trust {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.aside-trust h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #000;
  color: #fff;
  margin-bottom: 56px; /* clearance for fixed bottom header */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #222;
}

.footer-col dt.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.875rem;
}

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

.footer-col dd a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.footer-col dd a:hover {
  color: #fff;
  opacity: 1;
}

/* Responsible Gambling */
.footer-rg {
  padding: 1.25rem 0;
  border-bottom: 1px solid #222;
}

.rg-notice {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  max-width: 700px;
}

/* Footer bottom bar */
.footer-bottom {
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.trust-links {
  font-size: 0.8125rem;
  margin: 0;
}

.trust-links a,
.footer-trust-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.trust-links a:hover,
.footer-trust-link:hover {
  color: #fff;
  opacity: 1;
}

/* Footer nav (dl structure per contract) */
.footer-nav {
  padding: 1rem 0 1.5rem;
  border-top: 1px solid #1a1a1a;
}

.footer-nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-nav-dl dt {
  margin: 0;
}

.footer-nav-dl dt a {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.footer-nav-dl dt a:hover {
  color: rgba(255,255,255,0.8);
  opacity: 1;
}

/* =============================================
   SCROLL REVEAL (vanilla JS driven class)
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .child-list > li > section.card {
    transition: none;
  }
  .child-list > li > section.card:hover {
    transform: none;
  }
}

/* =============================================
   DESKTOP — ≥769px
   On desktop: nav links shown inline in the bottom bar, brand centered between groups
   ============================================= */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav {
    display: none; /* hidden, links are in header-inner on desktop */
  }

  /* Override: desktop shows nav inline inside header */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 56px;
    gap: 1rem;
  }

  .brand {
    grid-column: 2;
    flex: none;
  }

  .header-ctas {
    grid-column: 3;
    justify-content: flex-end;
  }

  /* Left nav group */
  .header-inner::before {
    content: none;
  }

  /* We use a separate approach: the desktop nav is rendered inside the header */
  .site-header {
    display: flex;
    flex-direction: column;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1.5rem;
    gap: 0.5rem;
  }

  .brand {
    order: 2;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 240px;
  }

  /* Desktop nav inline below the brand row — but we want it inside the bar.
     We use the primary-nav as a second row only when .is-open on mobile.
     On desktop: show it as a secondary strip */
  .primary-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: #111;
    border-top: 1px solid #222;
    padding: 0 1.5rem;
    scrollbar-width: none;
    gap: 0;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex-shrink: 0;
    padding: 0 1rem;
    height: 40px;
    line-height: 40px;
    font-size: 0.8125rem;
    border-bottom: none;
    border-right: 1px solid #1e1e1e;
    min-height: auto;
  }

  .nav-link:hover {
    background: #1a1a1a;
  }

  .content-with-aside {
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   MOBILE — ≤768px
   ============================================= */
@media (max-width: 768px) {
  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-aside {
    position: static;
  }

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

  .footer-nav-dl {
    gap: 0.25rem 1rem;
  }

  .child-list {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 2.5rem 1.25rem;
    min-height: 70vh;
  }

  .primary-nav.is-open {
    display: flex;
  }

  /* Ensure the fixed header doesn't exceed 120px incl secondary nav strip */
  .site-header {
    max-height: 120px;
  }

  .site-header.nav-open {
    max-height: none;
  }
}

/* =============================================
   SMALL MOBILE — ≤480px
   ============================================= */
@media (max-width: 480px) {
  .brand {
    font-size: 0.75rem;
  }

  .cta {
    font-size: 0.6875rem;
    padding: 0 0.625rem;
    min-height: 44px;
  }

  .header-inner {
    gap: 0.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}