/* UTBet Análise — Industrial Brutalist — style.css */

/* =====================
   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: 'Courier New', Courier, 'Liberation Mono', monospace;
  background: #F5F5F5;
  color: #0D0D0D;
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
  font-family: Arial Narrow, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.65; }

a { color: #0D0D0D; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #555; }

strong { font-weight: 700; }
em { font-style: italic; }

small.eyebrow-label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.prose { max-width: 72ch; }
.prose a { color: #0D0D0D; text-decoration: underline; }
.prose a:hover { text-decoration: none; }
.prose ul, .prose ol { margin: 0.75rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; line-height: 1.6; }
.prose blockquote {
  border-left: 4px solid #E8FF00;
  padding: 0.5rem 1rem;
  margin: 1.25rem 0;
  background: #0D0D0D;
  color: #F5F5F5;
  font-style: italic;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
.prose table th,
.prose table td {
  border: 2px solid #0D0D0D;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose table th { background: #0D0D0D; color: #E8FF00; font-family: 'Courier New', monospace; }
.prose table tr:nth-child(even) { background: #eee; }
.prose h2, .prose h3 { margin-top: 1.75rem; }

/* =====================
   LAYOUT WRAPPER
   ===================== */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* =====================
   HEADER
   ===================== */
.site-header {
  background: #0D0D0D;
  border-bottom: 3px solid #E8FF00;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-right: auto;
}

.logo-mark { display: block; }

.brand-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #E8FF00;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-name:hover { color: #F5F5F5; }

/* Menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 2px solid #E8FF00;
  cursor: pointer;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  order: 2;
}
.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #E8FF00;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid #E8FF00;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.cta-signup {
  background: #E8FF00;
  color: #0D0D0D;
}
.cta-signup:hover { background: #F5F5F5; border-color: #F5F5F5; color: #0D0D0D; }

.cta-login {
  background: transparent;
  color: #E8FF00;
}
.cta-login:hover { background: #E8FF00; color: #0D0D0D; }

/* Primary nav aside (desktop: visible inline-ish via separate row or collapsed) */
.primary-nav-aside {
  background: #0D0D0D;
  border-top: 1px solid #333;
  display: none;
  width: 100%;
}
.primary-nav-aside.is-open { display: block; }

#primary-nav ul {
  list-style: none;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#primary-nav li a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #F5F5F5;
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid #222;
  min-height: 44px;
  display: flex;
  align-items: center;
}
#primary-nav li a:hover { color: #E8FF00; }
#primary-nav li a[aria-current="page"] { color: #E8FF00; border-left: 3px solid #E8FF00; padding-left: 0.75rem; }

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

  .primary-nav-aside {
    display: block;
    border-top: 1px solid #222;
  }

  #primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 1rem;
  }

  #primary-nav li a {
    border-bottom: none;
    border-left: none;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    min-height: 44px;
  }
  #primary-nav li a[aria-current="page"] {
    border-left: none;
    border-bottom: 3px solid #E8FF00;
    padding-left: 0.9rem;
  }
}

/* =====================
   PAGE LAYOUT GRID
   ===================== */
.page-layout {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  align-items: flex-start;
}

/* Sidebar (left) */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 3px solid #0D0D0D;
  background: #F5F5F5;
  min-height: 100%;
  order: -1;
}

.sidebar-sticky {
  position: sticky;
  top: 120px;
  padding: 1.25rem 1rem;
}

.sidebar nav ul { list-style: none; }
.sidebar nav li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: #0D0D0D;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  line-height: 1.35;
}
.sidebar nav li a:hover { color: #555; text-decoration: underline; }

.sidebar-cta-block {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #0D0D0D;
}
.sidebar-cta {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  min-height: 44px;
}

/* Main content */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.5rem 2rem;
}

/* Hide sidebar on mobile, stack below */
@media (max-width: 768px) {
  .page-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 3px solid #0D0D0D;
    order: 1;
  }
  .sidebar-sticky { position: static; }
  .main-content { order: 0; padding: 1rem; }
  .header-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
}

/* =====================
   SECTIONS — SHARED
   ===================== */
.hero-section,
.article-header-section,
.ranking-header-section,
.compare-header-section,
.faq-header-section,
.about-header-section,
.privacy-header-section {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  border: 3px solid #0D0D0D;
  background: #0D0D0D;
  color: #F5F5F5;
  padding: 1.25rem;
  align-items: flex-start;
}

.hero-aside,
.article-meta-aside,
.ranking-meta-aside,
.compare-meta-aside,
.faq-meta-aside,
.about-meta-aside,
.privacy-meta-aside {
  flex: 1;
  min-width: 0;
}

.hero-figure,
.article-hero,
.ranking-hero,
.compare-hero,
.faq-icon-figure,
.about-brand-figure,
.privacy-icon-figure {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 2px solid #E8FF00;
  min-height: 80px;
}

.hero-figure img,
.article-hero img,
.ranking-hero img,
.compare-hero img { width: 100%; height: auto; display: block; }

.hero-placeholder {
  width: 120px;
  height: 80px;
  background: #1a1a1a;
}

.faq-big-q {
  font-size: 3rem;
  font-weight: 900;
  color: #E8FF00;
  line-height: 1;
  font-family: Arial Narrow, Arial, sans-serif;
}

.privacy-icon,
.about-brand-initial {
  font-size: 3rem;
  font-weight: 900;
  color: #E8FF00;
  line-height: 1;
  font-family: Arial Narrow, Arial, sans-serif;
}

.about-logo { max-width: 80px; height: auto; }

.hero-section h1,
.article-header-section h1,
.ranking-header-section h1,
.compare-header-section h1,
.faq-header-section h1,
.about-header-section h1,
.privacy-header-section h1 {
  color: #F5F5F5;
  margin-top: 0.35rem;
}

.hero-section small.eyebrow-label,
.article-header-section small.eyebrow-label,
.ranking-header-section small.eyebrow-label,
.compare-header-section small.eyebrow-label,
.faq-header-section small.eyebrow-label,
.about-header-section small.eyebrow-label,
.privacy-header-section small.eyebrow-label {
  color: #E8FF00;
}

@media (max-width: 600px) {
  .hero-section,
  .article-header-section,
  .ranking-header-section,
  .compare-header-section,
  .faq-header-section,
  .about-header-section,
  .privacy-header-section {
    flex-direction: column;
  }
  .hero-figure,
  .article-hero,
  .ranking-hero,
  .compare-hero,
  .faq-icon-figure,
  .about-brand-figure,
  .privacy-icon-figure {
    width: 100%;
    min-height: 60px;
  }
}

/* =====================
   BYLINE
   ===================== */
.byline {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-family: 'Courier New', Courier, monospace;
}
.byline .author-name { color: #E8FF00; }
.byline time { color: #ccc; }

/* =====================
   BODY SECTION
   ===================== */
.body-section { margin-bottom: 2rem; }

/* =====================
   CHILDREN / CARDS
   ===================== */
.children-section {
  border-top: 3px solid #0D0D0D;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

.children-section > small { display: block; margin-bottom: 0.35rem; }

.children-section h2 { margin-top: 0; margin-bottom: 1rem; }

.child-card {
  border: 2px solid #0D0D0D;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #F5F5F5;
}
.child-card h3 { margin-top: 0; font-size: 1rem; }
.child-card h3 a { text-decoration: none; color: #0D0D0D; }
.child-card h3 a:hover { color: #555; text-decoration: underline; }
.child-card p { font-size: 0.88rem; margin-bottom: 0; color: #333; }
.card-date { font-size: 0.78rem; color: #666; margin-top: 0.35rem; }

/* =====================
   RANKING SIDEBAR
   ===================== */
.rank-preview-list { list-style: none; margin-bottom: 1rem; }
.rank-preview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.82rem;
}
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #E8FF00;
  color: #0D0D0D;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.rank-name { line-height: 1.3; }

/* =====================
   AUTHOR PROFILE
   ===================== */
.author-profile-section {
  border: 3px solid #0D0D0D;
  padding: 1.25rem;
  margin-top: 2rem;
  background: #0D0D0D;
  color: #F5F5F5;
}
.author-profile-section h2 { color: #E8FF00; margin-top: 0.35rem; }
.author-profile-section small.eyebrow-label { color: #aaa; }
.author-credentials { font-size: 0.85rem; color: #ccc; margin-bottom: 0.5rem; font-style: italic; }
.author-bio { font-size: 0.95rem; color: #ddd; }

/* =====================
   STAGE LABEL
   ===================== */
.stage-label { background: #E8FF00; color: #0D0D0D; padding: 0.1rem 0.4rem; display: inline-block; margin-bottom: 0.35rem; }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #0D0D0D;
  color: #F5F5F5;
  border-top: 3px solid #E8FF00;
  padding: 2rem 1rem 1rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}

.footer-col { flex: 1; min-width: 160px; }

.footer-col dt {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8FF00;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.3rem;
}

.footer-col dd {
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  margin-left: 0;
  line-height: 1.4;
}

.footer-col dd a {
  color: #ccc;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
}
.footer-col dd a:hover { color: #E8FF00; text-decoration: underline; }

.rg-notice {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  border-top: 1px solid #222;
  padding-top: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* =====================
   HOME SPECIFIC
   ===================== */
.hero-section { margin-bottom: 1.75rem; }

/* =====================
   ABOUT SPECIFIC
   ===================== */
.about-layout .about-header-section { margin-bottom: 1.75rem; }

/* =====================
   PRIVACY / TRUST PAGES
   ===================== */
.privacy-prose { max-width: 72ch; }

/* =====================
   FAQ SPECIFIC
   ===================== */
.faq-prose details { margin-bottom: 0.75rem; border: 2px solid #0D0D0D; }
.faq-prose summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 700;
  background: #0D0D0D;
  color: #F5F5F5;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-prose summary::-webkit-details-marker { display: none; }
.faq-prose details[open] summary { border-bottom: 2px solid #E8FF00; }
.faq-prose details > *:not(summary) { padding: 0.75rem 1rem; }

/* =====================
   COMPARE SPECIFIC
   ===================== */
.compare-prose table th { background: #0D0D0D; color: #E8FF00; }

/* =====================
   SKIP LINK
   ===================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: #E8FF00;
  color: #0D0D0D;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; }

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

/* No horizontal scroll on mobile */
@media (max-width: 768px) {
  .main-content { padding: 1rem; }
  .prose table { font-size: 0.8rem; }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .footer-col { min-width: 100%; }
  /* ensure footer links have 44px tap area */
  .footer-col dd a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

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