/* =========================================================
   Win444 App · Alternativas Legais — Vintage Newspaper Theme
   Palette: #1A1A1A / #F5F0E8 / #C8102E
   ========================================================= */

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

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

body {
  background-color: #F5F0E8;
  color: #1A1A1A;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-width: 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #C8102E;
  color: #F5F0E8;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-family: 'Oswald', sans-serif;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: #1A1A1A;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; }
h2 { font-size: clamp(1.25rem, 3vw, 1.85rem); font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.4rem); font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1.1rem; }
strong { font-weight: 700; }
em { font-style: italic; }

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

/* Body copy links clearly distinct */
.prose a {
  color: #C8102E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
li { margin-bottom: 0.35rem; }

blockquote {
  border-left: 4px solid #C8102E;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(200,16,46,0.05);
  font-style: italic;
}

/* Heading decoration: h2 > span, h3 > span */
h2 > span, h3 > span {
  display: inline;
  border-bottom: 2px solid #C8102E;
  padding-bottom: 2px;
}

/* --- Site Header --- */
.site-header {
  background: #1A1A1A;
  color: #F5F0E8;
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Masthead / Brand */
.masthead {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 1;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #F5F0E8;
  min-width: 0;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.masthead-tagline {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.6);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Site Nav --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

/* details/summary toggle */
.nav-details {
  position: relative;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(245,240,232,0.3);
  color: #F5F0E8;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  min-height: 44px;
  min-width: 44px;
  list-style: none;
  border-radius: 2px;
  white-space: nowrap;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { display: none; }

.toggle-icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #F5F0E8;
  position: relative;
  border-radius: 1px;
}
.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #F5F0E8;
  border-radius: 1px;
}
.toggle-icon::before { top: -5px; }
.toggle-icon::after { top: 5px; }

.nav-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #1A1A1A;
  border: 1px solid rgba(245,240,232,0.15);
  min-width: 240px;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.nav-menu li { list-style: none; }

.nav-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #F5F0E8;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  min-height: 44px;
  line-height: 1.3;
  border-bottom: 1px solid rgba(245,240,232,0.08);
  display: flex;
  align-items: center;
}
.nav-menu li a:hover {
  background: #C8102E;
  color: #F5F0E8;
}

/* Hide menu by default (details closed) */
.nav-details:not([open]) .nav-menu {
  display: none;
}
.nav-details[open] .nav-menu {
  display: block;
}

/* CTA Buttons */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

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

.cta-login {
  background: transparent;
  color: #F5F0E8;
  border: 2px solid rgba(245,240,232,0.5);
}
.cta-login:hover {
  border-color: #F5F0E8;
  color: #F5F0E8;
}

/* Header rule / edition bar */
.header-rule {
  background: #C8102E;
  text-align: center;
  padding: 0.2rem 1rem;
}

.edition-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #F5F0E8;
  text-transform: uppercase;
}

/* --- Main layout containers --- */
main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.content-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Content grid: main column + aside */
.content-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.content-main {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.content-aside {
  flex: 0 0 240px;
  width: 240px;
  min-width: 0;
}

/* --- Prose --- */
.prose {
  max-width: 72ch;
  width: 100%;
}

.prose img,
.prose table,
.prose pre,
.prose figure {
  max-width: 100%;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prose table th,
.prose table td {
  border: 1px solid rgba(26,26,26,0.2);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose table th {
  background: #1A1A1A;
  color: #F5F0E8;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* --- Byline --- */
.byline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #555;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.byline time { font-style: normal; }

/* Stage label */
.stage-label {
  display: inline-block;
  background: #1A1A1A;
  color: #F5F0E8;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.75rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: #C8102E; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #555; }

/* --- Aside Box --- */
.aside-box {
  background: #1A1A1A;
  color: #F5F0E8;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-top: 3px solid #C8102E;
}

.aside-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5F0E8;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.aside-heading > span {
  border-bottom: 2px solid #C8102E;
  padding-bottom: 2px;
  display: inline;
}

.aside-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-links li { margin-bottom: 0; border-bottom: 1px solid rgba(245,240,232,0.1); }
.aside-links li:last-child { border-bottom: none; }
.aside-links a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #F5F0E8;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
  min-height: 44px;
}
.aside-links a:hover { color: #C8102E; }

.aside-toc { list-style: none; padding: 0; margin: 0; }
.aside-toc li { border-bottom: 1px solid rgba(245,240,232,0.1); }
.aside-toc a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #F5F0E8;
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Oswald', sans-serif;
  min-height: 44px;
}
.aside-toc a:hover { color: #C8102E; }

.aside-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(245,240,232,0.85);
  margin-bottom: 0;
}

/* --- Home Layout --- */
.home-article { width: 100%; }

.home-hero {
  background: #1A1A1A;
  color: #F5F0E8;
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C8102E;
  margin-bottom: 0.5rem;
}

.home-h1 {
  color: #F5F0E8;
  margin-bottom: 0.5rem;
}

.home-hero .byline {
  color: rgba(245,240,232,0.7);
}

/* Home index table */
.home-index {
  background: #F5F0E8;
}

.home-index h2 {
  margin-bottom: 1.25rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.index-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.index-table th {
  background: #1A1A1A;
  color: #F5F0E8;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.index-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(26,26,26,0.12);
  vertical-align: top;
}

.tbl-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: #C8102E;
  width: 2.5rem;
  white-space: nowrap;
}

.tbl-title a {
  color: #1A1A1A;
  font-weight: 600;
  text-decoration: none;
}
.tbl-title a:hover { color: #C8102E; text-decoration: underline; }

.tbl-desc {
  color: #555;
  font-size: 0.8rem;
}

.tbl-date {
  white-space: nowrap;
  color: #777;
  font-size: 0.78rem;
  font-family: 'Oswald', sans-serif;
}

/* --- Article Layout --- */
.main-article { width: 100%; }

.article-header {
  border-bottom: 2px solid #1A1A1A;
  padding-bottom: 1.25rem;
}

.article-h1, .faq-h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-hero-wrap {
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow: hidden;
}
.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.inline-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border: 1px solid rgba(26,26,26,0.15);
}

.extra-images { margin-top: 1.5rem; }

/* --- FAQ Layout --- */
.faq-article { width: 100%; }

.faq-header {
  border-bottom: 2px solid #1A1A1A;
  padding-bottom: 1.25rem;
}

.faq-body { }

.faq-prose details {
  border: 1px solid rgba(26,26,26,0.15);
  margin-bottom: 0.75rem;
  padding: 0;
}
.faq-prose details summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-prose details[open] summary {
  border-bottom: 1px solid rgba(26,26,26,0.15);
  color: #C8102E;
}
.faq-prose details > *:not(summary) {
  padding: 1rem;
}

/* --- About Layout --- */
.about-article { width: 100%; }
.about-h1 { margin-bottom: 1rem; }

.author-section {
  background: #1A1A1A;
  color: #F5F0E8;
  padding: 2rem 1rem;
  margin-top: 2rem;
}
.author-section h2 {
  color: #F5F0E8;
  margin-bottom: 1.25rem;
}

.author-card {
  max-width: 1200px;
  margin: 0 auto;
}

.author-name {
  color: #F5F0E8;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}
.author-credentials {
  color: #C8102E;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.author-bio {
  color: rgba(245,240,232,0.88);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Privacy Layout --- */
.privacy-article { width: 100%; }
.privacy-h1 { margin-bottom: 1rem; }

.prose-legal h2 { margin-top: 2rem; }
.prose-legal h3 { margin-top: 1.5rem; }

/* --- Footer --- */
.site-footer {
  background: #1A1A1A;
  color: #F5F0E8;
  margin-top: 3rem;
  padding-top: 2rem;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
}

.footer-masthead {
  border-bottom: 1px solid rgba(245,240,232,0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-desc {
  font-size: 0.8rem;
  color: rgba(245,240,232,0.6);
  margin-bottom: 0;
}

.footer-columns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

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

.footer-dl dt {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8102E;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(200,16,46,0.3);
}

.footer-dl dd {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.8);
  margin-bottom: 0.4rem;
  margin-left: 0;
  line-height: 1.4;
}

.footer-dl dd a {
  color: rgba(245,240,232,0.8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-dl dd a:hover { color: #C8102E; }

.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.12);
  padding-top: 1rem;
}

.responsible-gambling {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.6);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.4);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* --- Responsive: ≤768px (mobile) --- */
@media (max-width: 768px) {
  /* Header: single row, no wrap */
  .header-inner {
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
  }

  .masthead-tagline {
    display: none;
  }

  /* Nav toggle visible, menu links collapsed */
  .nav-toggle {
    display: flex;
  }

  /* Aside moves below content on mobile */
  .content-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .content-aside {
    flex: none;
    width: 100%;
  }

  /* Constrain content */
  .content-section {
    padding: 1.25rem 0.75rem;
  }

  .prose {
    max-width: 100%;
  }

  /* Home hero */
  .home-hero {
    padding: 1.75rem 0.75rem;
  }

  /* CTAs compact on mobile */
  .cta {
    padding: 0.45rem 0.55rem;
    font-size: 0.68rem;
    min-height: 44px;
  }

  /* Table scrolls horizontally within wrapper */
  .table-scroll {
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
    width: calc(100% + 1.5rem);
  }

  /* Footer columns stack */
  .footer-columns {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-dl {
    flex: none;
    width: 100%;
  }

  /* Article */
  .article-hero-wrap {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.8rem;
  }

  .cta {
    padding: 0.4rem 0.45rem;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
}

/* Desktop: nav links hidden behind toggle always (details/summary) */
@media (min-width: 769px) {
  .nav-details {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    min-width: 280px;
  }
}

/* Images always responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure no element breaks layout */
* {
  max-width: 100%;
}

/* But let flex/grid children not be constrained by this */
.content-grid, .header-inner, .footer-columns, .header-ctas, .site-nav {
  max-width: none;
}

/* Fix: tables inside prose don't overflow */
.prose table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

/* Ranking table extra care */
.prose-ranking table {
  min-width: auto;
  width: 100%;
}

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