/* ============================================================
   166bet Análise — style.css
   Brand: #3B6E4A (verde) / #C8A96E (dourado) / #F5F0E8 (creme)
   ============================================================ */

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

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #F5F0E8;
  color: #2a2a2a;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: #1a1a1a;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .5rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: .4rem; }
h3 { font-size: 1.15rem; margin-bottom: .3rem; }

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

a { color: #3B6E4A; text-decoration: underline; }
a:hover { color: #2d5438; }

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

/* body-copy links get clear distinction */
.page-content a {
  color: #3B6E4A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Skip nav ---------------------------------------------- */
.skip-nav a {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-nav a:focus {
  position: fixed;
  top: 0; left: 0;
  width: auto; height: auto;
  padding: .5rem 1rem;
  background: #3B6E4A;
  color: #fff;
  z-index: 9999;
  text-decoration: none;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 64px;
  flex-wrap: nowrap;
}

.brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.1rem;
  color: #3B6E4A;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: .5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.brand:hover { color: #2d5438; }

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #3B6E4A;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

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

/* primary nav */
.primary-nav {
  flex: 1;
  overflow: hidden;
}

.primary-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  align-items: center;
}

.primary-nav p a {
  font-family: system-ui, sans-serif;
  font-size: .82rem;
  color: #2a2a2a;
  text-decoration: none;
  padding: .3rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.primary-nav p a:hover { background: #eef5f0; color: #3B6E4A; }
.primary-nav p a[aria-current="page"] { color: #3B6E4A; font-weight: 600; }

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 .9rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.cta-signup {
  background: #3B6E4A;
  color: #fff;
  border: 2px solid #3B6E4A;
}
.cta-signup:hover { background: #2d5438; border-color: #2d5438; color: #fff; }

.cta-login {
  background: transparent;
  color: #3B6E4A;
  border: 2px solid #3B6E4A;
}
.cta-login:hover { background: #eef5f0; color: #2d5438; }

/* --- Layout containers ------------------------------------- */
main {
  flex: 1;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.page-section { width: 100%; }

.page-article { width: 100%; }

/* hero block */
.hero-block {
  background: linear-gradient(135deg, #3B6E4A 0%, #2d5438 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}

.hero-block h1 { color: #fff; }

.hero-block--text {
  background: linear-gradient(135deg, #3B6E4A 0%, #4a8a5e 100%);
}

.hero-block--image {
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.hero-block--faq {
  background: linear-gradient(135deg, #C8A96E 0%, #a8895a 100%);
}

.hero-block--cases {
  background: linear-gradient(135deg, #3B6E4A 0%, #C8A96E 100%);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.eyebrow {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}

/* byline */
.byline {
  font-family: system-ui, sans-serif;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  margin-top: .6rem;
  margin-bottom: 0;
}
.byline strong { color: #fff; }
.byline time { color: rgba(255,255,255,.85); }

/* content with aside */
.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.main-content-area { min-width: 0; }

/* subtitle pattern (h2 + p.subtitle) */
.subtitle {
  font-family: system-ui, sans-serif;
  font-size: .92rem;
  color: #5a5a5a;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* --- Page content ------------------------------------------ */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: .4rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid #C8A96E;
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: .3rem;
  color: #3B6E4A;
}

.page-content p { margin-bottom: 1.1rem; }

.page-content ul,
.page-content ol {
  margin-bottom: 1.1rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .92rem;
}

.page-content table th {
  background: #3B6E4A;
  color: #fff;
  padding: .6rem .8rem;
  text-align: left;
}

.page-content table td {
  padding: .55rem .8rem;
  border-bottom: 1px solid #d8d0c4;
}

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

/* --- Sidebar ----------------------------------------------- */
.sidebar {
  position: sticky;
  top: 76px;
}

.sidebar-inner {
  background: #fff;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  padding: 1.25rem;
}

.sidebar-inner h2 {
  font-size: 1rem;
  border-bottom: 2px solid #C8A96E;
  padding-bottom: .4rem;
  margin-bottom: .3rem;
}

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

.sidebar-links li { margin-bottom: 0; }

.sidebar-links a {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: .88rem;
  color: #3B6E4A;
  text-decoration: none;
  padding: .55rem .4rem;
  border-bottom: 1px solid #eee8df;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sidebar-links a:hover { color: #2d5438; background: #f5f0e8; border-radius: 4px; }
.sidebar-links li:last-child a { border-bottom: none; }

.sidebar-author {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid #eee8df;
  font-family: system-ui, sans-serif;
  font-size: .82rem;
}
.sidebar-author strong { display: block; color: #1a1a1a; margin-bottom: .15rem; }
.sidebar-author span { color: #5a5a5a; }

/* --- Cards list -------------------------------------------- */
.cards-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cards-list li > section.card {
  background: #fff;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  transition: box-shadow .15s;
}
.cards-list li > section.card:hover { box-shadow: 0 4px 12px rgba(59,110,74,.12); }

.card h3 { font-size: 1rem; margin-bottom: .4rem; }
.card h3 a { color: #3B6E4A; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: .9rem; color: #555; line-height: 1.5; }
.card-date { font-size: .8rem; color: #888; margin-top: .4rem; }

.child-pages,
.related-analyses { margin-top: 2.5rem; }

/* --- Leaf divider ------------------------------------------ */
.leaf-divider {
  text-align: center;
  color: #C8A96E;
  font-size: 1.4rem;
  margin: 2rem 0;
  line-height: 1;
  user-select: none;
}

/* --- Author card ------------------------------------------- */
.author-card {
  background: #fff;
  border: 1px solid #ddd8cf;
  border-left: 4px solid #C8A96E;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.author-card h2 { font-size: 1.15rem; margin-bottom: .25rem; }

.author-section {
  background: #eef5f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* --- FAQ --------------------------------------------------- */
.faq-intro,
.cases-intro { margin-bottom: 1.5rem; }

.faq-content details {
  border: 1px solid #ddd8cf;
  border-radius: 8px;
  margin-bottom: .75rem;
  background: #fff;
  overflow: hidden;
}
.faq-content details summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-content details summary::-webkit-details-marker { display: none; }
.faq-content details[open] summary { color: #3B6E4A; border-bottom: 1px solid #eee; }
.faq-content details p { padding: 1rem 1.2rem; margin: 0; }

/* --- Contact ----------------------------------------------- */
.contact-info { margin-top: 2rem; }

/* --- Stage label ------------------------------------------- */
.stage-label {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin-bottom: .6rem;
  background: rgba(200,169,110,.25);
  color: #7a5c2e;
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: #2a2a2a;
  color: #ccc;
  padding: 1.5rem 1rem;
  text-align: center;
}

.site-footer p {
  font-family: system-ui, sans-serif;
  font-size: .85rem;
  margin-bottom: .4rem;
  line-height: 1.5;
}

.footer-brand { color: #ddd; }

.footer-trust {
  margin-bottom: .5rem;
}

.footer-trust a {
  color: #C8A96E;
  text-decoration: none;
  display: inline-block;
  padding: .6rem .5rem;
  min-height: 44px;
  line-height: 1;
  vertical-align: middle;
}
.footer-trust a:hover { text-decoration: underline; color: #e0be84; }

.site-footer small {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  color: #999;
  line-height: 1.5;
  margin-top: .25rem;
}

.responsible-gambling { font-style: italic; }

/* --- Narrow layout variant --------------------------------- */
.page-article--narrow .content-with-aside {
  grid-template-columns: 1fr 240px;
}

/* --- Home hero variant ------------------------------------- */
.hero-block .hero-img {
  max-height: 320px;
  object-fit: cover;
}

/* --- Cases content ----------------------------------------- */
.cases-content blockquote {
  border-left: 4px solid #C8A96E;
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* header */
  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .primary-nav {
    display: none;
    width: 100%;
    order: 10;
    padding: .75rem 0;
    border-top: 1px solid #e0d8cc;
  }

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

  .primary-nav p {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav p a {
    width: 100%;
    padding: .65rem .75rem;
    min-height: 44px;
    border-radius: 0;
    border-bottom: 1px solid #f0ebe2;
    white-space: normal;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: .25rem .75rem;
    min-height: 60px;
    align-items: center;
  }

  .brand { order: 1; flex: 1; }
  .header-ctas { order: 3; flex-shrink: 0; }

  .header-ctas {
    gap: .3rem;
  }

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

  /* content */
  .content-with-aside {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .cards-list {
    grid-template-columns: 1fr;
  }

  .hero-block {
    padding: 1.75rem 1.25rem;
  }

  .wrap {
    padding: 1.25rem .75rem 2rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }

  .header-inner {
    min-height: 56px;
  }

  .cta {
    font-size: .75rem;
    padding: 0 .55rem;
  }
}

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