/* ===================================================
   Plataforma Jogos Paga Cadastro — style.css
   Monochrome minimal, oversized condensed headlines
   =================================================== */

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

html {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111111;
  background: #ffffff;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 2rem); margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-top: 1.5rem; }

p { margin-top: 1rem; max-width: 72ch; }

a { color: #111111; text-decoration: underline; }
a:hover { color: #b8950f; }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #F5C518;
  color: #111111;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* --- Site header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111111;
  color: #ffffff;
  border-bottom: 3px solid #F5C518;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  flex-wrap: nowrap;
  width: 100%;
}

.brand {
  font-weight: 900;
  font-size: 1rem;
  color: #F5C518;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.brand:hover { color: #ffffff; }

/* --- Nav details/summary (mobile toggle) --- */
.nav-details {
  flex-shrink: 0;
  position: relative;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: #ffffff;
}
.nav-toggle::-webkit-details-marker { display: none; }

.burger {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  position: relative;
}
.burger::before, .burger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #ffffff;
  left: 0;
}
.burger::before { top: -6px; }
.burger::after  { top: 6px; }

/* Nav menu — hidden until details open */
.main-nav {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  background: #111111;
  border: 1px solid #F5C518;
  border-radius: 4px;
  list-style: none;
  padding: 8px 0;
  min-width: 260px;
  z-index: 200;
}

details[open] .main-nav {
  display: block;
}

.main-nav li a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.main-nav li a:hover {
  background: #F5C518;
  color: #111111;
}

/* --- Header CTA buttons --- */
.header-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.cta-signup {
  background: #F5C518;
  color: #111111;
  border: 2px solid #F5C518;
}
.cta-signup:hover {
  background: #e0b200;
  border-color: #e0b200;
  color: #111111;
}

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

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

/* --- HR decorative --- */
hr {
  border: none;
  border-top: 2px solid #F5C518;
  margin: 1.25rem 0;
}

/* --- Main content wrapper --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  width: 100%;
}

/* --- Layout with aside --- */
.layout-with-aside {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}

/* Aside to the LEFT of content */
.sidebar {
  flex: 0 0 220px;
  min-width: 0;
  order: -1;
  position: sticky;
  top: 80px;
}

.content-col {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* Sidebar styles */
.aside-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  margin-top: 1rem;
}
.aside-label:first-child { margin-top: 0; }

.aside-nav {
  list-style: none;
  padding: 0;
}
.aside-nav li a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: #111111;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  line-height: 1.4;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.aside-nav li a:hover {
  border-left-color: #F5C518;
  color: #111111;
}
.aside-sep {
  margin: 12px 0;
  border-top-color: #e0e0e0;
}

/* --- Page content typography --- */
.page-content {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.page-content img,
.page-content table,
.page-content pre,
.page-content figure {
  max-width: 100%;
  height: auto;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.page-content table th,
.page-content table td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.page-content table th {
  background: #111111;
  color: #F5C518;
  font-weight: 700;
}

.page-content table tr:nth-child(even) td {
  background: #f9f9f9;
}

.page-content h2 + hr,
.page-content h3 + hr {
  margin-top: 0;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.page-content li {
  margin-top: 0.4rem;
  line-height: 1.6;
}

.page-content blockquote {
  border-left: 4px solid #F5C518;
  padding: 12px 20px;
  background: #f9f9f9;
  margin: 1.5rem 0;
  font-style: italic;
}

.page-content a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Byline --- */
.byline {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.75rem;
}
.breadcrumb a {
  color: #555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
}
.breadcrumb a:hover { text-decoration: underline; }

/* --- Stage badge --- */
.stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
  background: #111111;
  color: #F5C518;
}
.stage-awareness  { background: #e8f5e9; color: #2e7d32; }
.stage-consideration { background: #fff8e1; color: #f57f17; }
.stage-decision   { background: #fce4ec; color: #c62828; }

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

/* --- Home hero div --- */
.hero-section h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  border-left: 6px solid #F5C518;
  padding-left: 16px;
}

/* --- Topic / child lists --- */
.topic-list, .child-list {
  margin-top: 2.5rem;
}

.topic-list ol,
.child-list ol,
.article-index {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.topic-list li,
.child-list li,
.article-index li {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}

.topic-list li a,
.child-list li a,
.article-index li a {
  font-weight: 700;
  font-size: 1rem;
  display: block;
  text-decoration: none;
  color: #111111;
}
.topic-list li a:hover,
.child-list li a:hover,
.article-index li a:hover {
  color: #b8950f;
  text-decoration: underline;
}

.topic-list small,
.child-list small,
.article-index small {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
  line-height: 1.4;
}

.item-num {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #F5C518;
  background: #111111;
  padding: 1px 6px;
  margin-right: 8px;
  letter-spacing: 0.05em;
}

/* --- Rank list --- */
.rank-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.95rem;
}
.rank-pos {
  font-weight: 900;
  font-size: 1.2rem;
  color: #F5C518;
  background: #111111;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Author div --- */
.author-section {
  margin-top: 2.5rem;
  padding: 24px;
  border: 2px solid #111111;
  background: #f9f9f9;
}
.author-name { font-size: 1.1rem; margin-top: 0.5rem; }
.author-credentials { font-size: 0.875rem; color: #555; margin-top: 0.5rem; }
.author-bio { margin-top: 0.75rem; }

/* --- Footer --- */
.site-footer {
  background: #111111;
  color: #ffffff;
  padding: 32px 16px;
  margin-top: 48px;
  text-align: center;
}

.footer-brand {
  font-size: 0.9rem;
  color: #F5C518;
  margin-bottom: 8px;
}

.footer-trust {
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.footer-trust a {
  color: #cccccc;
  text-decoration: none;
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-trust a:hover {
  color: #F5C518;
  text-decoration: underline;
}

.site-footer small {
  display: block;
  font-size: 0.75rem;
  color: #aaaaaa;
  margin-top: 8px;
  line-height: 1.5;
}

.rg-notice {
  color: #F5C518 !important;
  font-weight: 600;
}

/* =============================================
   DESKTOP NAV (≥769px): show links inline
   ============================================= */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-details {
    flex: 1;
    min-width: 0;
  }

  .main-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
    min-width: 0;
  }

  .main-nav li a {
    padding: 4px 12px;
    font-size: 0.78rem;
    min-height: 44px;
    color: #cccccc;
    white-space: nowrap;
  }
  .main-nav li a:hover {
    background: transparent;
    color: #F5C518;
    text-decoration: underline;
  }

  .header-inner {
    height: 64px;
  }
}

/* =============================================
   MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {
  /* Prevent any overflow source */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-inner {
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }

  .brand {
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

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

  .header-cta {
    gap: 6px;
  }

  /* Stack layout: aside goes below content on mobile */
  .layout-with-aside {
    flex-direction: column;
    gap: 24px;
  }

  .sidebar {
    flex: none;
    width: 100%;
    position: static;
    order: 1; /* aside below content on mobile */
    border-top: 2px solid #e8e8e8;
    padding-top: 16px;
  }

  .content-col {
    order: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  main {
    padding: 16px 12px 40px;
  }

  h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.15rem, 5vw, 1.5rem); }

  .hero-section h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  /* Tables scroll horizontally within their container */
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .page-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Images never wider than viewport */
  img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
  }

  .author-section {
    padding: 16px;
  }

  .site-footer {
    padding: 24px 12px;
  }
}

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