/* ===========================
   C18 Cassino Licença — style.css
   Monochrome · Monospace · Minimal
   =========================== */

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

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

body {
  font-family: 'Courier New', Courier, monospace;
  background: #fff;
  color: #000;
  min-height: 100vh;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { opacity: .65; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: .5rem; }
h3 { font-size: 1.1rem; margin-bottom: .35rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

hr {
  border: none;
  border-top: 2px solid #000;
  margin: 1rem 0 1.25rem;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* --- Site wrapper --- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid #222;
}

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

/* Brand link — minimum 44px tap target */
.brand {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
  /* Tap target */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .25rem;
}
.brand:hover { opacity: .75; }

/* Nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid #fff;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  margin-left: auto;
}
.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform .2s, opacity .2s;
}

/* Header CTA */
.header-cta {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 .65rem;
  transition: background .15s, color .15s;
}

.cta-signup {
  background: #fff;
  color: #000;
  border: 2px solid #fff;
}
.cta-signup:hover { background: #e0e0e0; border-color: #e0e0e0; opacity: 1; }

.cta-login {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cta-login:hover { background: #fff; color: #000; opacity: 1; }

/* Nav aside (slides down under header) */
.nav-aside {
  background: #111;
  border-top: 1px solid #333;
  display: none;
  max-width: 100%;
}
.nav-aside.open { display: block; }

.nav-aside nav ul {
  list-style: none;
  padding: .5rem 0;
  margin: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-aside nav ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: .75rem 1rem;
  font-size: .9rem;
  border-bottom: 1px solid #222;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-aside nav ul li a:hover,
.nav-aside nav ul li a[aria-current="page"] {
  background: #222;
  color: #fff;
}
.nav-aside nav ul li a[aria-current="page"] {
  border-left: 3px solid #fff;
}

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

  .nav-aside {
    display: block !important;
    background: #000;
    border-top: none;
    border-bottom: 1px solid #222;
  }

  .nav-aside nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
  }

  .nav-aside nav ul li a {
    border-bottom: none;
    border-left: none;
    padding: .6rem 1rem;
    font-size: .8rem;
    white-space: nowrap;
    min-height: 40px;
  }

  .header-inner {
    gap: 1rem;
  }

  .brand { font-size: 1.1rem; }
}

/* ===========================
   MAIN / LAYOUT
   =========================== */
main {
  flex: 1;
  padding: 2rem 1rem;
}

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

/* Four-level nesting: main > article.wrap > section > div */
.page-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.page-article {
  min-width: 0;
}

/* Sidebar aside to the right on wide screens */
@media (min-width: 900px) {
  .page-section {
    grid-template-columns: 1fr 260px;
    align-items: start;
  }
}

/* Content aside */
.content-aside {
  border: 1px solid #000;
  padding: 1.25rem;
}

.content-aside nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.content-aside nav ul li a {
  display: flex;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: .9rem;
  text-decoration: none;
  min-height: 44px;
}
.content-aside nav ul li:last-child a { border-bottom: none; }
.content-aside nav ul li a:hover { text-decoration: underline; }
.content-aside::before {
  content: 'Leitura relacionada';
  display: block;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #000;
}

/* Page content typography */
.page-content { margin-top: 1.25rem; }
.page-content h2 { margin-top: 2rem; }
.page-content h2 + hr { margin-top: 0; }
.page-content h3 { margin-top: 1.5rem; }
.page-content a { color: #000; font-weight: 600; }
.page-content ul, .page-content ol { margin-left: 1.25rem; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.page-content table th,
.page-content table td {
  border: 1px solid #000;
  padding: .5rem .75rem;
  text-align: left;
}
.page-content table th { background: #000; color: #fff; }

/* Byline */
.byline {
  font-size: .85rem;
  color: #444;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #ddd;
}
.byline time { font-style: normal; }

/* Stage label */
.stage-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid #000;
  padding: .2rem .5rem;
  margin-bottom: .75rem;
}

/* ===========================
   HOME layout specifics
   =========================== */
.home-hero {
  display: block; /* full-width, no sidebar grid on home */
}

.hero-text { max-width: 780px; }

.dot-matrix {
  width: 100%;
  max-width: 780px;
  height: 120px;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 16px 16px;
  margin-bottom: 1.5rem;
  opacity: .12;
}

.hero-img-wrap { margin-bottom: 1.5rem; }
.hero-img { max-height: 400px; object-fit: cover; width: 100%; }

/* Child cards */
.child-list { margin-top: 3rem; }
.child-list h2 { font-size: 1.25rem; letter-spacing: .05em; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-list { grid-template-columns: repeat(3, 1fr); }
}

.card-list > li > div {
  border: 1px solid #000;
  padding: 1.25rem;
  height: 100%;
}
.card-list > li > div h3 { font-size: 1rem; margin-bottom: .5rem; }
.card-list > li > div h3 a { text-decoration: none; font-weight: 700; }
.card-list > li > div h3 a:hover { text-decoration: underline; }
.card-list > li > div p { font-size: .875rem; color: #333; margin-bottom: .35rem; }
.card-date { font-size: .75rem !important; color: #666 !important; }

/* ===========================
   CHANGELOG layout
   =========================== */
.changelog-eyebrow,
.faq-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  color: #444;
}

.changelog-content h2,
.changelog-content h3 {
  margin-top: 2rem;
}

/* ===========================
   AUTHOR / ABOUT
   =========================== */
.author-profile {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #000;
}
.author-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .25rem;
}
.author-credentials {
  font-size: .85rem;
  color: #444;
  margin-bottom: .75rem;
}
.author-bio {
  font-size: .95rem;
  line-height: 1.7;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 2.5rem 1rem;
  margin-top: auto;
}

/* footer > section×n */
.site-footer > section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid #222;
}
.site-footer > section:last-child { border-bottom: none; }

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}
.footer-desc { font-size: .85rem; color: #aaa; }

.footer-heading {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: .75rem;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.site-footer ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: .875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer ul li a:hover { color: #fff; text-decoration: underline; }

.footer-trust p a {
  color: #ccc;
  font-size: .875rem;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-trust p a:hover { color: #fff; }

.responsible-gambling {
  font-size: .8rem;
  color: #888;
  line-height: 1.5;
}

/* ===========================
   PRIVACY / TRUST pages
   =========================== */
.privacy-layout .page-article { max-width: 780px; }

/* ===========================
   DATA pages
   =========================== */
.data-layout .page-content table { font-size: .85rem; }

/* ===========================
   FAQ
   =========================== */
.faq-content details {
  border: 1px solid #000;
  margin-bottom: .75rem;
}
.faq-content details summary {
  padding: .75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-content details[open] summary { border-bottom: 1px solid #000; }
.faq-content details > *:not(summary) {
  padding: .75rem 1rem;
}

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

/* Mobile — no horizontal scroll */
@media (max-width: 768px) {
  main { padding: 1.25rem .75rem; }

  .page-section { grid-template-columns: 1fr; }

  .content-aside { margin-top: 2rem; }

  h1 { font-size: 1.6rem; }

  .header-inner { padding: 0 .75rem; }

  .header-cta { display: none; }
  .nav-cta-mobile { display: flex; gap: .4rem; padding: .5rem .75rem .75rem; }

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

@media (max-width: 400px) {
  .cta { font-size: .65rem; padding: 0 .4rem; }
  .brand { font-size: .85rem; }
}

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