/*
Theme Name: Guia 5nbet Ivory RZC2Yfl0
Theme URI: https://5nbet.buzz/
Author: Guia 5nbet Brasil
Description: Tema editorial independente criado para a execução RZC2Yfl0.
Version: 1.0.0
Text Domain: guia-5nbet
*/

:root {
  --paper: #f5f0e7;
  --surface: #fffcf7;
  --muted-surface: #ebe2d5;
  --ink: #252321;
  --muted: #6d6861;
  --brick: #9e3f35;
  --sage: #2f6f62;
  --gold: #c28b35;
  --line: #d7cdbf;
  --focus: #2f6f62;
  --shadow: 0 10px 28px rgba(60,45,30,.08);
  --content: 1160px;
  --reading: 740px;
  --wide: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DejaVu Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(37,35,33,.025) .7px, transparent .7px);
  background-size: 7px 7px;
}
a { color: var(--sage); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 999; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--surface); color: var(--ink); }

.site-header { background: rgba(255,252,247,.97); border-bottom: 1px solid var(--line); }
.masthead { max-width: var(--content); margin: auto; padding: 12px 24px 8px; display: flex; justify-content: center; align-items: center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; height: 60px; max-width: min(440px, 78vw); object-fit: contain; }
.brand-fallback { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.45rem; }
.nav-layer { border-top: 1px solid var(--line); }
.nav-wrap { max-width: var(--content); margin: auto; min-height: 48px; display: flex; justify-content: center; align-items: center; padding: 0 20px; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 700; }
.primary-menu { list-style: none; display: flex; align-items: stretch; justify-content: center; gap: 4px; margin: 0; padding: 0; }
.primary-menu li { display: flex; }
.primary-menu a { display: flex; align-items: center; min-height: 48px; padding: 5px 10px; color: var(--ink); font-size: .83rem; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--brick); border-bottom-color: var(--brick); }

.site-main { min-height: 60vh; }
.article-shell { max-width: var(--content); margin: 0 auto; padding: 70px 24px 96px; }
.article-header, .entry-content > p, .entry-content > h2, .entry-content > h3, .entry-content > ol, .entry-content > ul, .entry-content > blockquote, .entry-content > .faq-section { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.article-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 58px; }
.article-kicker { color: var(--brick); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.16; letter-spacing: -.02em; }
h1 { margin: 0; max-width: 920px; font-size: clamp(2.35rem, 5.8vw, 4.5rem); }
h2 { position: relative; margin-top: 90px; margin-bottom: 26px; padding-top: 18px; font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 78px; height: 4px; background: var(--brick); }
h3 { margin-top: 52px; margin-bottom: 18px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.entry-content p { margin-top: 0; margin-bottom: 1.35em; }
.entry-content > p:first-child { font-size: 1.2rem; line-height: 1.65; color: #35322f; }
.entry-content strong { color: #171614; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .6em; }
.wide-asset, .entry-content > .wp-block-table, .entry-content > .table-wrap { max-width: var(--wide); margin: 40px auto 60px; }
.table-wrap { overflow-x: auto; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .9rem; line-height: 1.55; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { background: var(--muted-surface); color: var(--ink); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.editorial-figure { max-width: var(--wide); margin: 50px auto 76px; }
.editorial-figure img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.editorial-figure.hero-figure img { aspect-ratio: 16 / 9; }
.editorial-figure figcaption { max-width: var(--reading); margin: 12px auto 0; padding-left: 13px; border-left: 3px solid var(--gold); color: var(--muted); font-size: .85rem; line-height: 1.5; }
.faq-section { margin-top: 90px; }
.faq-section details { background: var(--surface); border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { cursor: pointer; min-height: 52px; padding: 17px 40px 17px 0; font-weight: 800; line-height: 1.45; }
.faq-section .faq-answer { padding: 0 0 18px; color: #3c3935; }

.site-footer { background: #24221f; color: #f5f0e7; }
.footer-inner { max-width: var(--content); margin: auto; padding: 48px 24px 28px; }
.footer-brand { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; margin: 0 0 8px; }
.footer-declaration { max-width: 760px; color: #d9d0c5; margin: 0 0 26px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 22px 0; border-top: 1px solid #4b4741; border-bottom: 1px solid #4b4741; }
.footer-menu a { color: #fffaf1; }
.footer-contact { margin: 22px 0 0; font-size: .88rem; color: #d9d0c5; }
.footer-contact a { color: #fffaf1; }

@media (max-width: 1100px) {
  .site-header { position: sticky; top: 0; z-index: 100; }
  .masthead { justify-content: space-between; padding: 8px 16px; min-height: 66px; }
  .custom-logo { height: 48px; max-width: 250px; }
  .nav-layer { border-top: 0; }
  .nav-wrap { justify-content: flex-end; min-height: 0; padding: 0; }
  .menu-toggle { display: inline-flex; position: absolute; right: 16px; top: 11px; z-index: 2; }
  .primary-navigation { width: 100%; }
  .primary-menu { display: none; width: 100%; padding: 8px 16px 18px; flex-direction: column; align-items: stretch; background: var(--surface); border-top: 1px solid var(--line); }
  .primary-menu.is-open { display: flex; }
  .primary-menu li, .primary-menu a { width: 100%; }
  .primary-menu a { min-height: 48px; padding: 9px 3px; font-size: .96rem; border-bottom: 1px solid var(--line); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .article-shell { padding: 44px 16px 58px; }
  .article-header { margin-bottom: 42px; padding-bottom: 26px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.75rem); }
  h2 { margin-top: 58px; font-size: 1.85rem; }
  h3 { margin-top: 38px; font-size: 1.35rem; }
  .editorial-figure { margin: 36px -4px 48px; }
  .editorial-figure img, .editorial-figure.hero-figure img { aspect-ratio: 4 / 3; }
  .table-wrap { margin: 30px 0 45px; box-shadow: none; }
  table { min-width: 650px; font-size: .86rem; }
  th, td { padding: 12px; }
  .footer-menu { flex-direction: column; gap: 10px; }
}

@media (max-width: 390px) {
  .custom-logo { max-width: 205px; height: 44px; }
  .menu-toggle { padding: 7px 11px; font-size: .9rem; }
  .article-shell { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
