/* ============================================================
   888 Bet É Confiável — Swiss Grid Theme
   Brand: #1A1A2E / #C8102E / #F5F5F0
   ============================================================ */

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #F5F5F0;
  color: #1A1A2E;
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A1A2E;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); margin-bottom: 0.6rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.375rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; line-height: 1.6; }

a { color: #C8102E; text-decoration: underline; }
a:hover { color: #a00d25; }

/* Body copy links clearly distinct */
.page-content a { color: #C8102E; text-decoration: underline; }

strong { font-weight: 700; }
time { font-variant-numeric: tabular-nums; }

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #C8102E;
  color: #F5F5F0;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* --- Header --- */
.site-header {
  background: #1A1A2E;
  color: #F5F5F0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #C8102E;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  flex-wrap: nowrap;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-text {
  font-size: 1rem;
  font-weight: 800;
  color: #F5F5F0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* --- Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 2px solid #F5F5F0;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #F5F5F0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

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

/* --- Site Nav --- */
.site-nav {
  flex: 1;
}

.nav-inner ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-inner ol li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #F5F5F0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.nav-inner ol li a:hover,
.nav-inner ol li a[aria-current="page"] {
  color: #C8102E;
  border-bottom-color: #C8102E;
}

/* --- Header CTAs --- */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.cta-signup {
  background: #C8102E;
  color: #F5F5F0;
  border: 2px solid #C8102E;
}
.cta-signup:hover {
  background: #a00d25;
  border-color: #a00d25;
  color: #F5F5F0;
}

.cta-login {
  background: transparent;
  color: #F5F5F0;
  border: 2px solid #F5F5F0;
}
.cta-login:hover {
  background: #F5F5F0;
  color: #1A1A2E;
}

/* --- Main Wrap --- */
main {
  min-height: 60vh;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* --- Layout: Content + Sidebar --- */
.home-hero,
.review-layout,
.ranking-layout,
.compare-layout,
.faq-layout,
.about-layout,
.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

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

.article-header { margin-bottom: 1.75rem; }

.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.topic-tag {
  display: inline-block;
  background: #C8102E;
  color: #F5F5F0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.stage-awareness  { color: #1A1A2E; }
.stage-consideration { color: #C8102E; }
.stage-decision   { color: #1A1A2E; background: #C8102E20; }

/* --- Byline --- */
.byline {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.byline-author { font-weight: 700; color: #1A1A2E; }
.byline time { color: #555; }

/* --- Page Content --- */
.page-content {
  font-size: 1rem;
  line-height: 1.7;
}

.page-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.page-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.page-content table th,
.page-content table td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.page-content table th {
  background: #1A1A2E;
  color: #F5F5F0;
  font-weight: 700;
}
.page-content table tr:nth-child(even) td { background: #f0f0eb; }

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* --- Hero Image --- */
.hero-image, .article-hero-img {
  margin: 1.25rem 0;
}
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* --- Home: oversized numeral hero --- */
.site-keyword {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero .hero-article h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

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

.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #fff;
  border: 2px solid #1A1A2E;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #1A1A2E;
  flex: 1 1 220px;
  min-width: 200px;
  transition: border-color 0.15s, background 0.15s;
}
.child-card:hover {
  border-color: #C8102E;
  background: #fff8f8;
}
.child-card > strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A1A2E;
  line-height: 1.3;
}
.child-card > span {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* --- Rank --- */
.rank-summary {
  background: #1A1A2E;
  color: #F5F5F0;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.rank-summary h2 { color: #F5F5F0; }
.rank-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rank-item:last-child { border-bottom: none; }
.rank-pos {
  font-size: 1.75rem;
  font-weight: 800;
  color: #C8102E;
  min-width: 2.5rem;
  line-height: 1;
}
.rank-item strong { color: #F5F5F0; font-size: 1rem; }

/* --- FAQ --- */
.faq-intro {
  background: #F5F5F0;
  border-left: 4px solid #C8102E;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.faq-intro p { margin: 0; color: #555; font-size: 0.95rem; }

.faq-content details {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
}
.faq-content summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-content summary::-webkit-details-marker { display: none; }

/* --- About --- */
.author-section {
  background: #1A1A2E;
  color: #F5F5F0;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.author-section h2 { color: #F5F5F0; margin-bottom: 1rem; }
.author-card { display: flex; flex-direction: column; gap: 0.5rem; }
.author-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.author-name { font-size: 1.1rem; font-weight: 800; color: #F5F5F0; }
.author-credentials { font-size: 0.85rem; color: #ccc; font-style: italic; }
.author-bio { font-size: 0.95rem; color: #ddd; margin: 0; line-height: 1.6; }

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-inner {
  background: #fff;
  border: 2px solid #1A1A2E;
  border-radius: 4px;
  padding: 1.25rem;
}

.sidebar-heading {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1A2E;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #C8102E;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  color: #1A1A2E;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: #C8102E; text-decoration: underline; }

.sidebar-cta-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}
.sidebar-cta-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #555;
  margin-bottom: 0.6rem;
}
.cta-sidebar {
  width: 100%;
  text-align: center;
  min-height: 44px;
}

/* --- Heading decoration: h2 > span, h3 > span --- */
h2 > span, h3 > span {
  display: inline;
}

/* --- Footer --- */
.site-footer {
  background: #1A1A2E;
  color: #F5F5F0;
  border-top: 3px solid #C8102E;
  margin-top: 3rem;
}

.footer-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  flex-shrink: 0;
}
.footer-brand a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-brand .brand-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F5F5F0;
}

.footer-nav {
  flex: 1;
  min-width: 200px;
}

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

.footer-nav ol li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 2px;
  transition: color 0.15s;
}
.footer-nav ol li a:hover { color: #F5F5F0; }

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-trust a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  color: #aaa;
  font-size: 0.8rem;
  text-decoration: underline;
  border-radius: 2px;
  transition: color 0.15s;
}
.footer-trust a:hover { color: #F5F5F0; }

.footer-copy {
  flex-shrink: 0;
  max-width: 320px;
}

.responsible-gambling {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  border: 1px solid #333;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
}

.copyright {
  font-size: 0.75rem;
  color: #777;
  margin: 0;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1A1A2E;
    border-top: 2px solid #C8102E;
    z-index: 200;
    padding: 0.75rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: block; }

  .nav-inner ol {
    flex-direction: column;
    gap: 0;
  }

  .nav-inner ol li a {
    padding: 0.75rem 0;
    min-height: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: normal;
    font-size: 1rem;
  }
  .nav-inner ol li:last-child a { border-bottom: none; }

  .site-header { position: sticky; top: 0; }
  .header-inner {
    flex-wrap: nowrap;
    min-height: 60px;
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .header-ctas {
    gap: 0.35rem;
    margin-left: auto;
  }

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

  /* Layouts stack on mobile */
  .home-hero,
  .review-layout,
  .ranking-layout,
  .compare-layout,
  .faq-layout,
  .about-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

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

  .wrap { padding: 1.25rem 1rem; }

  .footer-row {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }
  .footer-copy { max-width: 100%; }

  .footer-nav ol {
    flex-direction: column;
    gap: 0;
  }
  .footer-nav ol li a {
    min-height: 44px;
    padding: 0.4rem 0;
    font-size: 0.875rem;
  }

  .footer-trust a {
    min-height: 44px;
    padding: 0.4rem 0.5rem;
    font-size: 0.875rem;
  }

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

/* --- Prevent horizontal scroll --- */
@media (max-width: 375px) {
  body { overflow-x: hidden; }
  .header-inner { gap: 0.35rem; }
  .cta { padding: 0.5rem 0.5rem; font-size: 0.75rem; }
  .brand-text { font-size: 0.85rem; }
}

/* --- Compare layout specifics --- */
.compare-content table {
  overflow-x: auto;
  display: block;
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

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