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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A2744;
  background: #F4F4F4;
  overflow-x: hidden;
}

/* ── Layout wrapper ───────────────────────────────────── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  background: #1A2744;
  color: #F4F4F4;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #F5A623;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 56px;
  max-width: 100%;
  overflow: hidden;
}

.brand {
  color: #F5A623;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.menu-toggle {
  background: none;
  border: 1px solid #F5A623;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #F5A623;
  border-radius: 1px;
}

.header-ctas {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 38px;
  min-height: 44px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.cta-signup {
  background: #F5A623;
  color: #1A2744;
  border: 2px solid #F5A623;
}

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

/* ── Mobile nav (aside inside header) ────────────────── */
.nav-aside {
  display: none;
  background: #1A2744;
  border-top: 1px solid rgba(245,166,35,0.3);
  width: 100%;
  overflow-x: hidden;
}

.nav-aside.is-open {
  display: block;
}

.nav-aside nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-aside nav ul li a {
  display: block;
  padding: 12px 16px;
  color: #F4F4F4;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-aside nav ul li a:hover {
  background: rgba(245,166,35,0.15);
  color: #F5A623;
}

/* ── Main layout: sidebar + content ──────────────────── */
.page-main {
  display: flex;
  flex: 1;
  max-width: 100%;
  overflow-x: hidden;
}

/* Sidebar hidden on mobile, shown on desktop */
.sidebar {
  display: none;
}

.main-article {
  flex: 1;
  min-width: 0;
  padding: 24px 16px;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Sections ─────────────────────────────────────────── */
.article-header-section,
.hero-section {
  margin-bottom: 28px;
}

.body-section,
.child-section,
.author-section {
  margin-bottom: 32px;
}

/* ── Typography ───────────────────────────────────────── */
h1 {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: #1A2744;
  word-break: break-word;
}

h2 {
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 700;
  margin: 0 0 4px;
  color: #1A2744;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1A2744;
}

p {
  margin: 0 0 16px;
}

p.subtitle {
  font-size: 15px;
  color: #555;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* ── Byline ───────────────────────────────────────────── */
.byline {
  font-size: 14px;
  color: #555;
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ── Stage label ──────────────────────────────────────── */
.stage-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.stage-awareness { background: #e8f4fd; color: #1a6fa8; }
.stage-consideration { background: #fff4e0; color: #b36b00; }
.stage-decision { background: #eafaf1; color: #1a7a40; }

.content-type-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid #1A2744;
  border-radius: 4px;
  margin-bottom: 8px;
  color: #1A2744;
}

/* ── Page content (body HTML) ─────────────────────────── */
.page-content {
  font-size: 16px;
  line-height: 1.7;
  color: #1A2744;
  max-width: 100%;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.page-content a {
  color: #c47d00;
  text-decoration: underline;
}

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

.page-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
}

.page-content table th,
.page-content table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.page-content pre,
.page-content code {
  max-width: 100%;
  overflow-x: auto;
  word-break: break-all;
  white-space: pre-wrap;
  font-size: 14px;
  background: #eee;
  padding: 2px 5px;
  border-radius: 3px;
}

.page-content pre {
  padding: 12px;
  display: block;
}

.page-content ul,
.page-content ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.page-content blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid #F5A623;
  background: #fff;
  color: #333;
}

/* ── Hero image ───────────────────────────────────────── */
.hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 16px;
}

/* ── Child cards (home) ───────────────────────────────── */
.child-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.child-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid #1A2744;
  border-radius: 4px;
  background: #fff;
  color: #1A2744;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.child-card:hover {
  border-color: #F5A623;
  background: #fffbf2;
}

.child-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.child-card span {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ── Rank list (ranking sidebar) ─────────────────────── */
.rank-summary {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 16px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

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

.rank-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F5A623;
  color: #1A2744;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── Author (about) ───────────────────────────────────── */
.author-profile {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.author-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.author-credentials {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 15px;
  line-height: 1.65;
}

/* ── Related block (sidebar) ──────────────────────────── */
.related-block {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 16px;
}

.related-block ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.related-block ul li {
  border-bottom: 1px solid #eee;
}

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

.related-block ul li a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: #1A2744;
  text-decoration: none;
  line-height: 1.4;
  word-break: break-word;
}

.related-block ul li a:hover {
  color: #c47d00;
  text-decoration: underline;
}

/* ── Sidebar block ────────────────────────────────────── */
.sidebar-block {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px;
  margin-top: 16px;
}

.responsible-side {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: #1A2744;
  color: #F4F4F4;
  border-top: 3px solid #F5A623;
  margin-top: auto;
  width: 100%;
  overflow-x: hidden;
}

.footer-inner {
  max-width: 100%;
  padding: 28px 16px 20px;
  overflow-x: hidden;
}

.footer-address {
  font-style: normal;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-address a {
  color: #F5A623;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links li a {
  color: #F4F4F4;
  text-decoration: none;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links li a:hover {
  color: #F5A623;
  text-decoration: underline;
}

.responsible-gambling-notice {
  font-size: 13px;
  color: rgba(244,244,244,0.75);
  margin-bottom: 12px;
  line-height: 1.55;
  padding: 10px 12px;
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 4px;
  background: rgba(245,166,35,0.07);
}

.footer-copy {
  font-size: 12px;
  color: rgba(244,244,244,0.5);
  margin: 0;
}

/* ── Desktop layout (≥769px) ──────────────────────────── */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-aside {
    display: none !important;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

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

  .brand {
    max-width: 220px;
    font-size: 16px;
  }

  /* Desktop nav: show as inline links in header */
  .header-inner {
    gap: 12px;
  }

  .page-main {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: flex-start;
    padding: 0 24px;
    gap: 28px;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    width: 240px;
    flex-shrink: 0;
    padding-top: 28px;
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .sidebar nav {
    margin-bottom: 0;
  }

  .sidebar nav ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
  }

  .sidebar nav ul li a {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    color: #1A2744;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    line-height: 1.4;
    word-break: break-word;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .sidebar nav ul li:last-child a {
    border-bottom: none;
  }

  .sidebar nav ul li a:hover {
    color: #c47d00;
    background: #fffbf2;
    text-decoration: underline;
  }

  .main-article {
    padding: 28px 0;
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }

  .responsible-gambling-notice {
    grid-column: 1 / -1;
  }

  .child-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }
}

/* ── Mobile-specific guards (≤768px) ─────────────────── */
@media (max-width: 768px) {
  .site-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
  }

  .header-inner {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
  }

  .page-main {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    padding: 0;
  }

  .main-article {
    width: 100%;
    max-width: 100%;
    padding: 16px 12px;
  }

  .sidebar {
    display: none;
  }

  h1 {
    font-size: 22px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 18px;
    word-break: break-word;
  }

  .page-content {
    overflow-x: hidden;
  }

  .page-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
  }

  .page-content img,
  .hero-img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .child-card {
    width: 100%;
    max-width: 100%;
  }

  .cta {
    font-size: 12px;
    padding: 0 8px;
    height: 36px;
    min-height: 44px;
  }

  .footer-inner {
    padding: 20px 12px 16px;
    width: 100%;
    max-width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 4px;
  }
}

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%}