/* ============================================================
   50 Rodadas Grátis — Swiss Grid, Barlow Condensed
   Brand: #1A1A2E / #E63946 / #F5F5F5
   ============================================================ */

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

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

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #F5F5F5;
  color: #1A1A2E;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 0; top: 0;
  width: auto; height: auto;
  background: #E63946;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 700;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #1A1A2E;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.9rem); margin: 2rem 0 0.25rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: #E63946; text-decoration: underline; }
a:hover { color: #1A1A2E; }

/* Body copy links are clearly distinct */
.page-content a { color: #E63946; font-weight: 600; }

strong, b { font-weight: 700; }
ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* ---------- Layout: Header ---------- */
.site-header {
  background: #1A1A2E;
  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: 1280px;
  margin: 0 auto;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #F5F5F5;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-link img { height: 32px; width: auto; }

/* ---------- Nav Toggle ---------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 2px solid #E63946;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #F5F5F5;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

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

/* ---------- Primary Nav ---------- */
.primary-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #1A1A2E;
  border-top: 2px solid #E63946;
  padding: 1rem;
  z-index: 99;
  width: 100%;
}

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

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
}

.nav-links a {
  display: block;
  color: #F5F5F5;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(245,245,245,0.1);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover { color: #E63946; }

/* ---------- Header CTAs ---------- */
.header-ctas {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  border-radius: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.cta-signup {
  background: #E63946;
  color: #fff;
  border: 2px solid #E63946;
}
.cta-signup:hover { background: #c0303c; border-color: #c0303c; color: #fff; }

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

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

  .primary-nav {
    display: block !important;
    position: static;
    background: none;
    border: none;
    padding: 0;
    flex: 1;
    overflow: hidden;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-bottom: none;
    min-height: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .header-inner { gap: 0.75rem; }
  .cta { font-size: 0.9rem; padding: 0.5rem 1rem; }
}

/* ---------- Main Layout ---------- */
main { width: 100%; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Body container: main > div.wrap > article > section */
.wrap > article { width: 100%; }

/* ---------- Content + Sidebar ---------- */
.content-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  width: 100%;
}

.sidebar {
  flex: 0 0 220px;
  min-width: 0;
  order: -1; /* aside to the LEFT */
  position: sticky;
  top: 76px;
  background: #1A1A2E;
  color: #F5F5F5;
  border-radius: 4px;
  padding: 1.25rem;
}

.sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E63946;
  margin-bottom: 0.75rem;
}

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

.sidebar-list li {
  border-bottom: 1px solid rgba(245,245,245,0.1);
  margin: 0;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  color: #F5F5F5;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}
.sidebar-list a:hover { color: #E63946; }

.sidebar-cta-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245,245,245,0.15);
}

.sidebar-cta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245,245,245,0.5);
  margin-bottom: 0.5rem;
}

.sidebar-cta { width: 100%; justify-content: center; font-size: 0.85rem; }

.sidebar-trust {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245,245,245,0.15);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-trust-link {
  color: rgba(245,245,245,0.7);
  font-size: 0.8rem;
  text-decoration: underline;
}
.sidebar-trust-link:hover { color: #E63946; }

.main-article {
  flex: 1;
  min-width: 0;
  padding: 2rem 0;
}

/* ---------- Article Eyebrow ---------- */
.article-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E63946;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Byline ---------- */
.byline {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ---------- Subtitle (h2 + p.subtitle pattern) ---------- */
p.subtitle, p.subhead, p.desc, p.lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ---------- Page Content ---------- */
.page-content {
  max-width: 72ch;
}

.page-content h2 { margin-top: 2rem; }
.page-content h3 { margin-top: 1.5rem; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
.page-content table th {
  background: #1A1A2E;
  color: #F5F5F5;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.page-content table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #ddd;
}
.page-content table tr:nth-child(even) td { background: #eee; }

.page-content img { max-width: 100%; height: auto; border-radius: 4px; }

/* ---------- Home Layout ---------- */
.home-hero-section { padding: 2.5rem 0 1rem; }

.hero-article {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-media { width: 100%; }
.hero-img { width: 100%; height: auto; display: block; border-radius: 4px; }

.hero-body { max-width: 72ch; }

/* Home child list */
.child-list-section {
  padding: 2rem 0 3rem;
  border-top: 3px solid #1A1A2E;
  margin-top: 2rem;
}

.child-ol {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: none;
}

.child-ol li {
  border-bottom: 1px solid #ddd;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.child-ol a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1A1A2E;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 44px;
  align-items: center;
}
.child-ol a:hover { color: #E63946; }

.child-ol small {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
}

.rank-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #E63946;
  min-width: 2.2rem;
  display: inline-block;
}

/* ---------- Review Hero ---------- */
.review-hero-img { margin-bottom: 1.25rem; }
.review-hero-img img { width: 100%; height: auto; border-radius: 4px; }

/* ---------- Ranking ---------- */
.ranking-section { padding-top: 1rem; }

/* ---------- Compare ---------- */
.compare-section { padding-top: 1rem; }

/* ---------- About ---------- */
.author-card {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #1A1A2E;
  color: #F5F5F5;
  border-radius: 4px;
  border-left: 4px solid #E63946;
}

.author-card h2 { color: #F5F5F5; margin-top: 0; font-size: 1.1rem; }
.author-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.author-credentials { font-size: 0.85rem; color: rgba(245,245,245,0.75); margin-bottom: 0.75rem; font-style: italic; }
.author-bio { font-size: 0.9rem; color: rgba(245,245,245,0.9); line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1A1A2E;
  color: #F5F5F5;
  margin-top: 3rem;
  width: 100%;
}

.footer-nav {
  width: 100%;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #F5F5F5;
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  flex: 1;
  margin: 0;
}

.footer-links a {
  color: rgba(245,245,245,0.75);
  font-size: 0.8rem;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.1rem;
}
.footer-links a:hover { color: #E63946; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245,245,245,0.4);
  white-space: nowrap;
  margin: 0;
}

.responsible-gambling {
  background: #111122;
  text-align: center;
  padding: 0.6rem 1rem;
}

.responsible-gambling p {
  font-size: 0.75rem;
  color: rgba(245,245,245,0.5);
  margin: 0;
  line-height: 1.4;
}

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

  .brand-text { font-size: 0.9rem; }
  .brand-link img { height: 26px; }

  .header-ctas { gap: 0.3rem; margin-left: auto; }
  .cta { font-size: 0.75rem; padding: 0.4rem 0.5rem; min-height: 44px; }

  .content-with-sidebar {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .sidebar {
    flex: none;
    width: 100%;
    position: static;
    order: 1; /* sidebar below section on mobile */
  }

  .main-article { padding: 1rem 0; order: 0; }

  .wrap { padding: 0 0.75rem; }

  .home-hero-section { padding: 1.25rem 0 0.5rem; }

  .child-list-section { padding: 1.5rem 0 2rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-links { gap: 0.15rem 0.5rem; }

  /* Ensure tables don't overflow */
  .page-content table { font-size: 0.8rem; }

  /* No horizontal overflow */
  .page-content, .main-article, article, section, .wrap { max-width: 100%; }
  img { max-width: 100%; }
}

/* ---------- Very narrow (≤400px) ---------- */
@media (max-width: 400px) {
  .cta { font-size: 0.7rem; padding: 0.35rem 0.4rem; }
  .brand-text { font-size: 0.8rem; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  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%}