/* ============================================================
   Bet10 Guia Seguro — style.css
   Vintage newspaper masthead, multi-column serif, geometric sans
   Palette: #1A1A1A / #C8A96E / #F5F0E8
   ============================================================ */

/* --- Reset & Box Model ------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: #F5F0E8;
  color: #1A1A1A;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  line-height: 1.25;
  color: #1A1A1A;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.2rem, 3.5vw, 1.75rem); margin-bottom: 0.25rem; }
h3 { font-size: clamp(1rem, 3vw, 1.25rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: #8B6914;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover, a:focus { color: #C8A96E; }

strong { font-weight: 700; }

/* --- Skip Link -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #C8A96E;
  color: #1A1A1A;
  padding: 0.5rem 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

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

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

/* Brand */
.header-brand {
  flex-shrink: 0;
  margin-right: auto;
}

.brand-text {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 900;
  color: #F5F0E8;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1;
}

.site-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Nav */
.site-nav {
  position: relative;
}

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

summary.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid #C8A96E;
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  list-style: none;
  color: #F5F0E8;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
}
summary.nav-toggle::-webkit-details-marker { display: none; }
summary.nav-toggle::marker { display: none; }

.toggle-label { line-height: 1; }

.toggle-icon {
  width: 16px;
  height: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.toggle-icon::before,
.toggle-icon::after {
  content: '';
  display: block;
  height: 2px;
  background: #C8A96E;
  border-radius: 1px;
}

details#nav-details menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #1A1A1A;
  border: 1px solid #C8A96E;
  border-radius: 3px;
  padding: 0.5rem 0;
  min-width: 240px;
  max-width: 320px;
  z-index: 200;
  list-style: none;
}

details#nav-details menu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: #F5F0E8;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.875rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(200,169,110,0.15);
  min-height: 44px;
  display: flex;
  align-items: center;
}
details#nav-details menu li:last-child a { border-bottom: none; }
details#nav-details menu li a:hover,
details#nav-details menu li a:focus {
  background: rgba(200,169,110,0.15);
  color: #C8A96E;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.cta-signup {
  background: #C8A96E;
  color: #1A1A1A;
  border: 2px solid #C8A96E;
}
.cta-signup:hover, .cta-signup:focus {
  background: #a8893e;
  border-color: #a8893e;
  color: #1A1A1A;
}

.cta-login {
  background: transparent;
  color: #C8A96E;
  border: 2px solid #C8A96E;
}
.cta-login:hover, .cta-login:focus {
  background: rgba(200,169,110,0.15);
  color: #C8A96E;
}

/* --- Masthead Rule ---------------------------------------- */
.masthead-rule {
  background: #1A1A1A;
  border-top: 1px solid #C8A96E;
  border-bottom: 4px double #C8A96E;
  text-align: center;
  padding: 0.35rem 1rem;
  overflow: hidden;
}

.masthead-brand-line {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #C8A96E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* --- Eyebrow label ---------------------------------------- */
.eyebrow {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8A96E;
  margin-bottom: 0.5rem;
}

/* --- Byline ----------------------------------------------- */
.byline {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
  border-left: 3px solid #C8A96E;
  padding-left: 0.75rem;
}
.byline .author-name { font-weight: 700; color: #1A1A1A; }
.byline time { color: #444; }

/* --- Main Layout ------------------------------------------ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* Article wrappers */
.home-article,
.guide-article,
.faq-article,
.changelog-article,
.privacy-article,
.about-article {
  width: 100%;
}

/* Header sections inside articles */
.hero-section,
.guide-header-section,
.faq-header-section,
.changelog-header-section,
.privacy-header-section,
.about-header-section {
  border-bottom: 2px solid #C8A96E;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

/* Content + Sidebar layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
}

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

/* --- Body Copy -------------------------------------------- */
.body-copy {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 72ch;
}

.body-copy h2 { margin-top: 2rem; margin-bottom: 0.25rem; }
.body-copy h3 { margin-top: 1.5rem; }
.body-copy p { margin-bottom: 1rem; }
.body-copy ul, .body-copy ol {
  margin: 0 0 1rem 1.5rem;
}
.body-copy li { margin-bottom: 0.4rem; }
.body-copy a { color: #8B6914; }
.body-copy a:hover { color: #C8A96E; }
.body-copy blockquote {
  border-left: 4px solid #C8A96E;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: rgba(200,169,110,0.08);
  font-style: italic;
}
.body-copy table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
.body-copy table th,
.body-copy table td {
  border: 1px solid #C8A96E;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.body-copy table th {
  background: #1A1A1A;
  color: #C8A96E;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.body-copy pre,
.body-copy code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  background: #1A1A1A;
  color: #C8A96E;
  border-radius: 3px;
}
.body-copy pre {
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  max-width: 100%;
}
.body-copy code { padding: 0.1em 0.3em; }

/* Subtitle paragraph (h2 + p.subtitle) */
p.subtitle {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* --- Hero Image ------------------------------------------- */
.hero-img {
  width: 100%;
  height: auto;
  border: 2px solid #C8A96E;
  margin-top: 1rem;
  display: block;
}

/* --- Sidebar ---------------------------------------------- */
.sidebar {
  min-width: 0;
  width: 100%;
}

.sidebar-block {
  background: #1A1A1A;
  border: 1px solid #C8A96E;
  border-radius: 2px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-block h2 {
  font-size: 0.85rem;
  color: #C8A96E;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding-bottom: 0.4rem;
}

.sidebar-block p.subtitle {
  font-size: 0.78rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 0.75rem;
}

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

.sidebar-links li { margin-bottom: 0.25rem; }

.sidebar-links a {
  display: flex;
  align-items: center;
  color: #F5F0E8;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px dotted rgba(200,169,110,0.2);
  min-height: 44px;
  line-height: 1.35;
}
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links a:hover, .sidebar-links a:focus { color: #C8A96E; }

.sidebar-trust p { color: #aaa; font-size: 0.8rem; }

.sidebar-note {
  font-size: 0.82rem;
  color: #ccc;
  line-height: 1.5;
}
.sidebar-note strong { color: #C8A96E; }

.sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C8A96E;
  color: #1A1A1A;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  margin-top: 0.5rem;
  min-height: 44px;
}
.sidebar-cta:hover { background: #a8893e; color: #1A1A1A; }

/* --- Child Cards (home) ----------------------------------- */
.guides-section { margin-top: 2.5rem; }
.guides-section h2 { margin-bottom: 0.25rem; }

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

.child-list > li > article.child-card {
  background: #1A1A1A;
  border: 1px solid #C8A96E;
  border-radius: 2px;
  padding: 1.25rem;
  height: 100%;
}

.child-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #F5F0E8;
}
.child-card h3 a {
  color: #C8A96E;
  text-decoration: none;
}
.child-card h3 a:hover { text-decoration: underline; }
.child-card p {
  font-size: 0.82rem;
  color: #bbb;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.card-date time {
  font-size: 0.75rem;
  color: #888;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  letter-spacing: 0.05em;
}

/* --- Author Section (about) ------------------------------ */
.author-section { margin-top: 2rem; border-top: 2px solid #C8A96E; padding-top: 1.5rem; }
.author-card {
  background: #1A1A1A;
  border: 1px solid #C8A96E;
  border-radius: 2px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.author-name-display {
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #C8A96E;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.author-credentials {
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.author-bio { font-size: 0.9rem; color: #ddd; line-height: 1.65; }

/* --- FAQ body -------------------------------------------- */
.faq-body details {
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding: 0.75rem 0;
}
.faq-body details summary {
  cursor: pointer;
  font-weight: 700;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  font-size: 0.95rem;
  list-style: none;
  color: #1A1A1A;
  padding: 0.25rem 0;
}
.faq-body details summary::-webkit-details-marker { display: none; }

/* --- Changelog body -------------------------------------- */
.changelog-body h2 { margin-top: 2rem; }
.changelog-body time { color: #C8A96E; font-size: 0.85rem; font-family: 'Franklin Gothic Medium', Arial, sans-serif; }

/* --- Trust links inside sidebar (vertical) --------------- */
.trust-links.vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.trust-links.vertical a {
  color: #F5F0E8;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}
.trust-links.vertical a:hover { color: #C8A96E; }

/* --- Footer ---------------------------------------------- */
.site-footer {
  background: #1A1A1A;
  border-top: 4px double #C8A96E;
  padding: 2.5rem 1rem 1.5rem;
  width: 100%;
}

/* footer > section layout */
.site-footer > section {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(200,169,110,0.2);
  width: 100%;
}
.site-footer > section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.footer-nav-section h2,
.footer-trust-section h2,
.footer-rg-section h2 {
  font-size: 0.75rem;
  color: #C8A96E;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.footer-nav-section p.subtitle,
.footer-trust-section p.subtitle {
  color: #888;
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-nav-list li a {
  color: #F5F0E8;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}
.footer-nav-list li a:hover { color: #C8A96E; }

/* Trust links in footer */
.footer-trust-section .trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.footer-trust-section .trust-links a {
  color: #C8A96E;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  white-space: nowrap;
}
.footer-trust-section .trust-links a:hover { color: #F5F0E8; }

/* Responsible gambling */
.responsible-gambling {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  max-width: 700px;
}

.footer-copy {
  font-size: 0.75rem;
  color: #555;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  letter-spacing: 0.05em;
}

/* --- Desktop nav (≥769px): show links inline ------------- */
@media (min-width: 769px) {
  details#nav-details {
    display: flex;
    align-items: center;
  }

  /* Hide the toggle summary on desktop */
  summary.nav-toggle {
    display: none;
  }

  /* Show the menu inline on desktop */
  details#nav-details menu {
    position: static;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0;
    background: transparent;
    border: none;
    padding: 0;
    min-width: unset;
    max-width: unset;
    border-radius: 0;
  }

  details#nav-details menu li a {
    padding: 0.4rem 0.75rem;
    color: #F5F0E8;
    font-size: 0.8rem;
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: none;
    min-height: 44px;
    white-space: nowrap;
    border-right: 1px solid rgba(200,169,110,0.2);
  }
  details#nav-details menu li:last-child a { border-right: none; }
  details#nav-details menu li a:hover,
  details#nav-details menu li a:focus {
    background: rgba(200,169,110,0.12);
    color: #C8A96E;
  }
}

/* --- Mobile (≤768px) -------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 0.75rem;
    height: 60px;
    gap: 0.4rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .brand-text {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }

  .cta {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
    min-height: 44px;
    min-width: 44px;
  }

  .header-ctas {
    gap: 0.3rem;
  }

  /* Stacked layout */
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar {
    order: 2;
  }

  .main-content {
    order: 1;
  }

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

  /* Footer trust links — ensure tap area on mobile */
  .footer-trust-section .trust-links {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .footer-trust-section .trust-links a {
    min-height: 44px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    width: 100%;
  }

  /* Footer nav list stacked */
  .footer-nav-list {
    flex-direction: column;
    gap: 0;
  }
  .footer-nav-list li a {
    min-height: 44px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px dotted rgba(200,169,110,0.15);
  }
  .footer-nav-list li:last-child a { border-bottom: none; }

  main {
    padding: 1.25rem 0.75rem;
  }

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

  /* Prevent overflow from tables/pre */
  .body-copy table,
  .body-copy pre,
  .body-copy img {
    max-width: 100%;
    overflow-x: auto;
  }

  .masthead-brand-line {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }

  /* Sidebar links tap area */
  .sidebar-links a {
    min-height: 44px;
    padding: 0.5rem 0;
  }

  .trust-links.vertical a {
    min-height: 44px;
    padding: 0.5rem 0;
  }
}

/* --- 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;
}

/* Prevent images from overflowing */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent wide elements from causing horizontal scroll */
.site-header,
.masthead-rule,
.site-footer,
main,
.content-with-sidebar,
.main-content,
.sidebar,
.body-copy {
  max-width: 100%;
  overflow-x: hidden;
}

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