/* =============================================
   Bet Buzz Alerta — stylesheet
   Paleta: #0D1117 fundo, #F5A623 âmbar, #E63946 alerta
   Tipografia monospace; news portal denso
   ============================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Courier New', Courier, 'Lucida Console', monospace;
  background-color: #0D1117;
  color: #C9D1D9;
  line-height: 1.65;
  min-height: 100vh;
}

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

a:hover, a:focus {
  color: #ffc55a;
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

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

ul, ol {
  padding-left: 1.4em;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: #F5A623;
  color: #0D1117;
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  top: 0;
}

/* --- Header --- */
.site-header {
  background: #0D1117;
  border-bottom: 2px solid #F5A623;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #F5A623;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand-name {
  white-space: nowrap;
}

/* Menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid #F5A623;
  border-radius: 3px;
  cursor: pointer;
  padding: 8px 10px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #F5A623;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Header CTAs */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

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

.cta-signup:hover, .cta-signup:focus {
  background: #ffc55a;
  border-color: #ffc55a;
  color: #0D1117;
  outline: none;
}

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

.cta-login:hover, .cta-login:focus {
  background: #F5A623;
  color: #0D1117;
  outline: none;
}

/* Primary nav (desktop: inline row inside header) */
#primary-nav {
  border-top: 1px solid #21262d;
  background: #0D1117;
  padding: 0 1rem;
}

#primary-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

#primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: #C9D1D9;
  text-decoration: none;
  border-right: 1px solid #21262d;
  min-height: 44px;
  letter-spacing: 0.03em;
  transition: color 0.15s, background 0.15s;
}

#primary-nav a:first-child {
  border-left: 1px solid #21262d;
}

#primary-nav a:hover, #primary-nav a:focus {
  color: #F5A623;
  background: #161b22;
  outline: none;
}

/* --- Layout wrap --- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Two-column: section + aside */
.home-hero,
.ranking-section,
.review-section,
.compare-section,
.faq-section,
.about-section,
.privacy-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

/* Article containers */
.hero-content,
.ranking-article,
.review-article,
.compare-article,
.faq-article,
.about-article,
.privacy-article {
  min-width: 0;
}

/* H1 */
h1 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #F5A623;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* H2 / H3 heading decoration (span direct child) */
h2, h3 {
  color: #C9D1D9;
  margin: 1.75rem 0 0.6rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.2rem;
  border-left: 3px solid #F5A623;
  padding-left: 0.6rem;
}

h3 {
  font-size: 1rem;
  border-left: 3px solid #E63946;
  padding-left: 0.6rem;
}

h2 > span, h3 > span {
  display: inline;
}

/* Meta bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.stage-label, .compare-tag, .faq-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.stage-label.stage-awareness {
  background: #161b22;
  color: #C9D1D9;
  border: 1px solid #21262d;
}

.stage-label.stage-consideration {
  background: #1c2128;
  color: #F5A623;
  border: 1px solid #F5A623;
}

.stage-label.stage-decision {
  background: #E63946;
  color: #fff;
}

.compare-tag {
  background: #161b22;
  color: #F5A623;
  border: 1px solid #F5A623;
}

.faq-tag {
  background: #E63946;
  color: #fff;
}

.pub-date {
  font-size: 0.75rem;
  color: #8b949e;
}

/* Byline */
.byline {
  font-size: 0.8rem;
  color: #8b949e;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #21262d;
  padding-bottom: 0.75rem;
}

.byline strong {
  color: #C9D1D9;
}

.byline time {
  color: #8b949e;
}

/* Body copy */
.page-body {
  margin-top: 1rem;
}

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

.page-body a {
  color: #F5A623;
  text-decoration: underline;
}

.page-body h2 {
  margin-top: 2rem;
}

.page-body h3 {
  margin-top: 1.5rem;
}

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

.page-body li {
  margin-bottom: 0.3rem;
}

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

.page-body th {
  background: #161b22;
  color: #F5A623;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid #21262d;
}

.page-body td {
  padding: 0.45rem 0.75rem;
  border: 1px solid #21262d;
  color: #C9D1D9;
}

.page-body tr:nth-child(even) td {
  background: #0d1117;
}

.page-body tr:nth-child(odd) td {
  background: #161b22;
}

/* Hero image */
.hero-wrap {
  margin: 1rem 0 1.5rem;
}

.hero-img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #21262d;
}

/* Child cards (home) */
.child-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  background: #161b22;
  border: 1px solid #21262d;
  border-top: 3px solid #F5A623;
  padding: 1rem;
  text-decoration: none;
  color: #C9D1D9;
  transition: border-color 0.15s, background 0.15s;
  border-radius: 3px;
}

.card-link:hover, .card-link:focus {
  background: #1c2128;
  border-top-color: #E63946;
  outline: none;
}

.card-link strong {
  display: block;
  color: #F5A623;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-link span {
  font-size: 0.8rem;
  color: #8b949e;
  line-height: 1.45;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 120px;
  background: #0D1117;
  border: 1px solid #21262d;
  border-top: 3px solid #E63946;
  border-radius: 3px;
  padding: 1.25rem;
}

.sidebar-inner > * + * {
  margin-top: 1rem;
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F5A623;
  border-left: none;
  padding-left: 0;
  margin: 0 0 0.5rem;
}

.sidebar-heading span {
  display: inline;
}

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

.sidebar-links li {
  border-bottom: 1px solid #21262d;
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.8rem;
  color: #C9D1D9;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.sidebar-links a:hover, .sidebar-links a:focus {
  color: #F5A623;
  outline: none;
}

/* Rank sidebar */
.rank-quick {
  margin-bottom: 1rem;
}

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

.rank-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid #21262d;
}

.rank-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #F5A623;
  color: #0D1117;
  font-weight: 700;
  font-size: 0.7rem;
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Author div (about) --- */
.author-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #161b22;
  border: 1px solid #21262d;
  border-left: 4px solid #F5A623;
  border-radius: 3px;
}

.author-heading {
  font-size: 1rem;
  color: #F5A623;
  margin: 0 0 1rem;
  border-left: none;
  padding-left: 0;
}

.author-heading span {
  display: inline;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F5A623;
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-size: 0.8rem;
  color: #8b949e;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.author-bio {
  font-size: 0.9rem;
  color: #C9D1D9;
  line-height: 1.6;
}

/* --- FAQ body --- */
.faq-body details {
  border-bottom: 1px solid #21262d;
  padding: 0.5rem 0;
}

.faq-body summary {
  cursor: pointer;
  color: #F5A623;
  font-weight: 700;
  padding: 0.5rem 0;
  list-style: none;
}

.faq-body summary::-webkit-details-marker {
  display: none;
}

.faq-body summary::before {
  content: '+ ';
  color: #E63946;
}

details[open] summary::before {
  content: '- ';
}

/* --- Footer --- */
.site-footer {
  background: #0D1117;
  border-top: 2px solid #21262d;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #F5A623;
  margin-right: 0.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #8b949e;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-nav a:hover, .footer-nav a:focus {
  color: #F5A623;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.footer-trust a {
  font-size: 0.8rem;
  color: #8b949e;
}

.responsible-gambling {
  font-size: 0.75rem;
  color: #8b949e;
  background: #161b22;
  border: 1px solid #21262d;
  border-left: 3px solid #E63946;
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
  border-radius: 2px;
}

.copyright {
  font-size: 0.7rem;
  color: #484f58;
}

/* --- Responsive: mobile ≤768px --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header-inner {
    flex-wrap: nowrap;
    height: auto;
    min-height: 56px;
    padding: 0.5rem 0.75rem;
  }

  .header-ctas {
    margin-left: 0;
    flex-shrink: 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  #primary-nav {
    display: none;
    padding: 0;
  }

  #primary-nav.is-open {
    display: block;
  }

  #primary-nav p {
    flex-direction: column;
    gap: 0;
  }

  #primary-nav a {
    border-right: none;
    border-bottom: 1px solid #21262d;
    width: 100%;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    min-height: 48px;
  }

  #primary-nav a:first-child {
    border-left: none;
  }

  .home-hero,
  .ranking-section,
  .review-section,
  .compare-section,
  .faq-section,
  .about-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    margin-top: 2rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .child-cards {
    flex-direction: column;
  }

  .card-link {
    flex: none;
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 1rem 0.75rem;
  }

  .article-meta-bar {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .page-body table {
    font-size: 0.78rem;
  }
}

/* --- Stage tag cloud (reuse) --- */
.stage-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #F5A623;
  color: #F5A623;
  border-radius: 2px;
}

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