/*
Theme Name: Guia 59c Brasil 8UlVZWBR
Theme URI: https://59c.asia/
Author: Guia 59c Brasil
Description: Tema editorial independente, minimalista e responsivo criado para a execução 8UlVZWBR.
Version: 1.0.0
Text Domain: guia59c
*/

:root {
  --bg: #f6f9fa;
  --surface: #ffffff;
  --soft: #eaf1f3;
  --ink: #142128;
  --muted: #586b74;
  --accent: #165e73;
  --accent-dark: #104658;
  --warm: #a86625;
  --line: #cfdbdf;
  --focus: #0b6f8b;
  --measure: 46rem;
  --wide: 74rem;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans", "DejaVu Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.76;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--warm); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 64px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wide); min-height: 64px; margin: 0 auto; padding: 0 clamp(1rem, 3.2vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.custom-logo-link { display: inline-flex; min-height: 48px; align-items: center; flex: 0 0 auto; }
.custom-logo { width: auto; height: 42px; display: block; }
.site-name { font-weight: 800; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.primary-nav .menu { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: clamp(.45rem, 1.15vw, 1rem); }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: .83rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent); border-color: currentColor; }

.site-main { min-height: 55vh; }
.cover { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 3.2vw, 3.5rem) clamp(2rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.cover-inner { max-width: 58rem; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; max-width: 56rem; font-size: clamp(2.25rem, 5.6vw, 4.55rem); }
h2 { margin: clamp(3.25rem, 8vw, 6.5rem) 0 1.15rem; padding-top: .4rem; font-size: clamp(1.75rem, 3.4vw, 2.75rem); border-top: 1px solid var(--line); }
h3 { margin: 2.5rem 0 1rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.article-body { max-width: var(--measure); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3.2vw, 2rem) clamp(4rem, 8vw, 7rem); }
.article-body > p:first-child, .article-body > h2:first-child + p { font-size: 1.12em; color: #263a43; }
.article-body p { margin: 0 0 1.35rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body li { margin-bottom: .65rem; }
.article-body figure { width: min(92vw, 68rem); margin: clamp(2rem, 5vw, 4rem) 50% clamp(2.5rem, 6vw, 5rem); transform: translateX(-50%); }
.article-body figure img { display: block; width: 100%; border-radius: var(--radius); background: var(--soft); box-shadow: 0 4px 16px rgba(30,55,65,.05); }
.article-body figure.hero-editorial img { aspect-ratio: 3/2; object-fit: cover; object-position: center; }
.article-body figcaption { margin-top: .55rem; color: var(--muted); font-size: .82rem; }
.article-body .portrait-media { width: min(84vw, 35rem); }
.article-body .portrait-media img { aspect-ratio: 4/5; object-fit: cover; }
.table-wrap { width: min(94vw, 62rem); margin: 2rem 50% 3rem; transform: translateX(-50%); overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .88rem; line-height: 1.55; }
th, td { padding: .95rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.flow-asset, .decision-asset { margin: 2rem 0; padding: 1.3rem 1.4rem; border-left: 4px solid var(--accent); background: var(--soft); }

.faq { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.faq h2 { margin-top: 0; border-top: 0; }
.faq details { background: var(--surface); border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 52px; padding: 1rem .2rem; cursor: pointer; font-weight: 750; }
.faq details p { padding: 0 .2rem 1.2rem; color: #30464f; }

.site-footer { background: #e8eff1; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: 3.2rem clamp(1rem, 3.2vw, 3.5rem); }
.footer-statement { max-width: 55rem; margin: 0 0 1.25rem; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-bottom: 1.1rem; }
.footer-links a, .footer-contact a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-contact { color: var(--muted); font-size: .9rem; }

@media (max-width: 1050px) {
  body { font-size: 17px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: .6rem 1rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: block; max-width: var(--wide); margin: 0 auto; }
  .primary-nav a { width: 100%; min-height: 48px; border-bottom: 1px solid var(--line); white-space: normal; }
}

@media (max-width: 599px) {
  html { scroll-behavior: auto; }
  body { font-size: 16px; line-height: 1.68; }
  .header-inner { padding-inline: 1rem; }
  .custom-logo { max-width: 205px; height: auto; max-height: 40px; }
  .cover { padding: 3.25rem 1rem 2.25rem; }
  h1 { font-size: clamp(2.05rem, 10vw, 2.65rem); }
  h2 { margin-top: 3.25rem; font-size: clamp(1.65rem, 8vw, 2.05rem); }
  .article-body { padding: 2rem 1rem 4.5rem; }
  .article-body figure { width: calc(100vw - 2rem); }
  .article-body figure.hero-editorial img { aspect-ratio: 4/3; }
  .table-wrap { width: calc(100vw - 2rem); }
  .footer-inner { padding: 2.6rem 1rem; }
  .footer-links { display: grid; grid-template-columns: 1fr; }
}

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

