/* ============================================================
   3191 BET PLATAFORMA — style.css
   Energetic streetwear color blocks, thick outlines, sticker labels
   ============================================================ */

/* --- TOKENS ------------------------------------------------- */
:root {
  --red:    #FF3D00;
  --dark:   #1A1A2E;
  --yellow: #F5C518;
  --white:  #FFFFFF;
  --off:    #F4F4F0;
  --muted:  #666680;
  --border: 3px solid var(--dark);
  --radius: 4px;
  --font-sans: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-prose: 72ch;
  --sidebar-w: 220px;
  --gap: 1.5rem;
}

/* --- RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--off);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: underline; }
a:hover { color: var(--dark); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

/* --- GOOGLE FONT -------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ============================================================
   SITE WRAP
   ============================================================ */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--dark);
  border-bottom: var(--border);
  border-bottom-color: var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  height: 60px;
}

/* BRAND LINK — tap area fix: min 44px tall */
.brand {
  font-family: var(--font-serif);
  font-size: .85rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: .02em;
  flex-shrink: 0;
  /* tap area */
  display: flex;
  align-items: center;
  min-height: 44px;
  height: 44px;
  padding: 0 .25rem;
  line-height: 1.2;
}
.brand:hover { color: var(--white); }

/* MENU TOGGLE */
.menu-toggle {
  background: none;
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  color: var(--yellow);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
  position: relative;
  transition: transform .2s;
}
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger::before { top: -6px; }
.burger::after  { top:  6px; }

/* CTA BUTTONS IN HEADER */
.header-cta {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 .9rem;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .15s;
}
.cta:hover { opacity: .85; }
.cta-signup {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.cta-login {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

/* NAV ASIDE (collapsible on mobile) */
.nav-aside {
  background: var(--dark);
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.nav-aside.open { max-height: 600px; }

#primary-nav ul {
  list-style: none;
  padding: .5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
#primary-nav ul li a {
  color: var(--off);
  text-decoration: none;
  font-size: .88rem;
  display: block;
  padding: .6rem .5rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: flex;
  align-items: center;
}
#primary-nav ul li a:hover {
  background: rgba(245,197,24,.12);
  color: var(--yellow);
}

/* ============================================================
   LAYOUT BODY (sidebar + main)
   ============================================================ */
.layout-body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: var(--gap) 1rem;
  gap: var(--gap);
}

/* SIDEBAR LEFT */
.sidebar-left {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 70px;
}
.sidebar-inner {
  background: var(--dark);
  color: var(--off);
  border: var(--border);
  border-color: var(--yellow);
  border-radius: var(--radius);
  padding: 1rem;
}
.sidebar-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .75rem;
}
.sidebar-nav ul {
  list-style: none;
  padding: 0;
}
.sidebar-nav ul li a {
  color: var(--off);
  text-decoration: none;
  font-size: .82rem;
  display: block;
  padding: .45rem .3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sidebar-nav ul li a:hover { color: var(--yellow); }
.sidebar-trust {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sidebar-trust a {
  color: var(--muted);
  font-size: .75rem;
  text-decoration: underline;
}
.sidebar-trust a:hover { color: var(--yellow); }

/* MAIN CONTENT */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   CONTENT SECTION (aside + prose side by side)
   ============================================================ */
.content-section {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  margin-top: var(--gap);
}
.content-aside {
  width: 200px;
  flex-shrink: 0;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: sticky;
  top: 70px;
}
.aside-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dark);
  margin-bottom: .5rem;
}
.aside-note {
  font-size: .8rem;
  color: var(--dark);
  line-height: 1.5;
}
.aside-author {
  font-size: .82rem;
  color: var(--dark);
  margin-bottom: .2rem;
}
.aside-author-cred {
  font-size: .75rem;
  color: #333;
  line-height: 1.4;
}
.aside-nav-list {
  list-style: none;
  padding: 0;
  margin-top: .4rem;
}
.aside-nav-list li a {
  font-size: .78rem;
  color: var(--dark);
  display: block;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(26,26,46,.15);
  text-decoration: none;
}
.aside-nav-list li a:hover { color: var(--red); }

/* PROSE */
.prose {
  flex: 1;
  min-width: 0;
  max-width: var(--max-prose);
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: .25rem;
  border-left: 5px solid var(--red);
  padding-left: .75rem;
}
.prose h2 + hr {
  border: none;
  border-top: 2px solid var(--yellow);
  margin-bottom: 1rem;
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .25rem;
  color: var(--dark);
}
.prose h3 + hr {
  border: none;
  border-top: 1px solid var(--muted);
  margin-bottom: .75rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose a { color: var(--red); text-decoration: underline; }
.prose a:hover { color: var(--dark); }
.prose strong { font-weight: 700; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.prose table th {
  background: var(--dark);
  color: var(--yellow);
  padding: .5rem .75rem;
  text-align: left;
}
.prose table td {
  padding: .45rem .75rem;
  border-bottom: 1px solid #ddd;
}
.prose table tr:nth-child(even) td { background: #f9f9f6; }
.prose blockquote {
  border-left: 4px solid var(--red);
  padding: .75rem 1rem;
  background: #fff3ee;
  margin: 1rem 0;
  font-style: italic;
}

/* ============================================================
   BYLINE
   ============================================================ */
.byline {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .5rem;
  margin-bottom: 0;
}
.byline time { font-style: normal; }

/* ============================================================
   HERO SECTION (Home)
   ============================================================ */
.hero-section {
  background: var(--dark);
  border: var(--border);
  border-color: var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: var(--gap);
}
.hero-badge {
  flex-shrink: 0;
}
.badge-text {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .7rem;
  border: 2px solid var(--dark);
  border-radius: 2px;
  transform: rotate(-2deg);
}
.eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .2rem .6rem;
  border-radius: 2px;
  margin-bottom: .6rem;
}
.hero-body h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: .5rem;
}
.hero-figure { flex-shrink: 0; max-width: 280px; }
.hero-img { border-radius: var(--radius); }

/* ============================================================
   CHILDREN LIST (dl > dt > a + dd)
   ============================================================ */
.children-section {
  margin-top: 2rem;
}
.children-section h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: .25rem;
  border-left: 5px solid var(--red);
  padding-left: .75rem;
}
.children-section h2 + hr {
  border: none;
  border-top: 2px solid var(--yellow);
  margin-bottom: 1.25rem;
}
.child-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.child-list dt {
  margin-top: 1rem;
}
.child-list dt a {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
  text-decoration: none;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: .6rem .9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background .15s;
}
.child-list dt a:hover { background: var(--yellow); }
.child-list dd {
  font-size: .85rem;
  color: var(--muted);
  background: #fff;
  border: var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: .5rem .9rem .75rem;
  margin-left: 0;
}

/* ============================================================
   FAQ HEADER
   ============================================================ */
.faq-header-section {
  background: var(--dark);
  border: var(--border);
  border-color: var(--yellow);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: var(--gap);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.faq-meta-aside {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex-shrink: 0;
}
.stage-badge, .topic-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .55rem;
  border-radius: 2px;
}
.stage-badge { background: var(--red); color: var(--white); }
.topic-badge { background: var(--yellow); color: var(--dark); border: 1px solid var(--dark); }
.faq-icon-figure {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-q-mark {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-serif);
  line-height: 1;
}
.faq-head h1 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: .4rem;
}

/* ============================================================
   ARTICLE HEADER
   ============================================================ */
.article-header-section {
  background: var(--red);
  border: var(--border);
  border-color: var(--dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: var(--gap);
}
.article-label-aside {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}
.article-badge {
  background: var(--dark);
  color: var(--yellow);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .55rem;
  border-radius: 2px;
}
.article-head h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: .4rem;
}
.article-hero-figure { margin-bottom: 1rem; }
.article-hero-img { border-radius: var(--radius); width: 100%; }

/* ============================================================
   INNER HEADER (about / privacy)
   ============================================================ */
.inner-header-section {
  background: var(--dark);
  border: var(--border);
  border-color: var(--yellow);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: var(--gap);
  display: flex;
  gap: 1rem;
  align-items: center;
}
.inner-label-aside { flex-shrink: 0; }
.inner-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .55rem;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.inner-icon-figure { flex-shrink: 0; }
.inner-icon { font-size: 2rem; }
.inner-head h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.25;
}

/* ============================================================
   AUTHOR SECTION
   ============================================================ */
.author-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--yellow);
}
.author-section h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: .25rem;
  border-left: 5px solid var(--red);
  padding-left: .75rem;
}
.author-section h2 + hr {
  border: none;
  border-top: 2px solid var(--yellow);
  margin-bottom: 1rem;
}
.author-card { background: var(--off); border: var(--border); border-radius: var(--radius); padding: 1.25rem; }
.author-name { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.author-credentials { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; font-style: italic; }
.author-bio { font-size: .9rem; line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: var(--off);
  border-top: 4px solid var(--yellow);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  margin-top: auto;
}
.site-footer > div {
  flex: 1 1 180px;
  min-width: 140px;
}
.footer-site-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: .4rem;
}
.footer-desc {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-col-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--yellow);
  margin-bottom: .65rem;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
}
.footer-nav ul li { margin-bottom: .35rem; }
.footer-nav ul li a {
  color: var(--off);
  font-size: .82rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav ul li a:hover { color: var(--yellow); }
.trust-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.trust-links a {
  color: var(--off);
  font-size: .82rem;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.trust-links a:hover { color: var(--yellow); }
.responsible-gambling {
  font-size: .78rem;
  color: var(--yellow);
  line-height: 1.5;
  margin-bottom: .6rem;
  border: 1px solid rgba(245,197,24,.3);
  border-radius: var(--radius);
  padding: .5rem .75rem;
}
.footer-copy {
  font-size: .72rem;
  color: var(--muted);
}

/* ============================================================
   DESKTOP NAV (≥769px)
   ============================================================ */
@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .nav-cta-mobile { display: none; }
  .nav-aside {
    max-height: none;
    overflow: visible;
  }
  #primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    padding: .3rem 1rem;
    gap: .1rem;
  }
  #primary-nav ul li a {
    font-size: .8rem;
    padding: .3rem .6rem;
    min-height: 36px;
  }
  .header-bar { height: 56px; }
}

/* ============================================================
   MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .layout-body {
    flex-direction: column;
    padding: 1rem .75rem;
  }
  .sidebar-left {
    width: 100%;
    position: static;
    order: 2;
  }
  .main-content {
    order: 1;
    width: 100%;
  }
  .content-section {
    flex-direction: column;
  }
  .content-aside {
    width: 100%;
    position: static;
  }
  .hero-section {
    flex-direction: column;
    padding: 1.25rem;
  }
  .hero-body h1 { font-size: 1.35rem; }
  .faq-header-section { flex-direction: column; padding: 1.25rem; }
  .faq-head h1 { font-size: 1.25rem; }
  .article-header-section { padding: 1.25rem; }
  .article-head h1 { font-size: 1.3rem; }
  .inner-header-section { flex-direction: column; padding: 1.25rem; }
  .inner-head h1 { font-size: 1.2rem; }
  .prose h2 { font-size: 1.2rem; }
  .site-footer { flex-direction: column; gap: 1.25rem; padding: 1.5rem 1rem; }

  /* Ensure brand tap target on mobile */
  .brand {
    font-size: .8rem;
    min-height: 44px;
    max-width: calc(100vw - 160px);
  }

  /* Hide CTA buttons in header on mobile — shown in nav */
  .header-cta { display: none; }
  /* Show CTA in nav aside on mobile */
  .nav-cta-mobile { display: flex; gap: .5rem; padding: .75rem 1rem 1rem; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.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%}