@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --bg:           #f7f6f3;
  --bg-card:      #ffffff;
  --bg-soft:      #efece5;
  --ink:          #1f2428;
  --ink-soft:     #2b3137;
  --ink-mid:      #4a5158;
  --ink-muted:    #6b727a;
  --rule:         #d8d3c7;
  --rule-soft:    #e8e3d6;
  --graphite:     #2b3137;
  --graphite-deep:#1a1e22;
  --signal:       #e8742b;
  --signal-deep:  #c45e1a;
  --signal-pale:  #fce6d4;
  --link:         #b35418;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max:  1180px;
  --read: 700px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); }

/* ============ BANNER DE ISENÇÃO (TOPO) ============ */
.disclaimer-bar {
  background: var(--graphite-deep);
  color: #f3f1ec;
  padding: 10px var(--gutter);
  font-size: 12.5px;
  text-align: center;
  border-bottom: 2px solid var(--signal);
  line-height: 1.5;
}
.disclaimer-bar strong { color: var(--signal); font-weight: 600; }
.disclaimer-bar a { color: #f3f1ec; text-decoration: underline; }

/* ============ CABEÇALHO ============ */
.header {
  background: var(--bg);
  padding: 28px var(--gutter) 18px;
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  text-decoration: none;
  display: block;
}
.brand img {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 720px) { .brand img { height: 52px; } }

.header-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.5;
}
.header-meta strong { color: var(--ink); display: block; font-weight: 600; }

/* ============ NAVEGAÇÃO ============ */
.nav {
  background: var(--graphite);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #f3f1ec;
  padding: 16px 18px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--graphite-deep); color: var(--signal); }
.nav a.active { color: var(--signal); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--signal);
}

/* ============ BREADCRUMB / RUBRICA ============ */
.rubrica {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ============ HOME ============ */
.home { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0 24px;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
}
.hero-text { max-width: 620px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--signal-deep); font-weight: 500; }
.hero-deck {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--ink-mid);
  margin-bottom: 28px;
}
.hero-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

.hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.hero-credit {
  font-size: 11.5px;
  color: var(--ink-muted);
  padding: 10px 0 0;
  font-style: italic;
}

/* ============ SEÇÕES ============ */
.section {
  padding: 56px 0 24px;
}
.section-head {
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--graphite);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head .meta {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============ CARDS DE 3 COLUNAS ============ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; gap: 24px; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
  border-top: 4px solid var(--graphite);
}
.card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
}
.card .rubrica { margin-bottom: 12px; }
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.card:hover h3 { color: var(--signal-deep); }
.card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-bottom: 18px;
  flex: 1;
}
.card-meta {
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  letter-spacing: 0.04em;
}

/* ============ FAIXA DE FATOS ============ */
.facts {
  background: var(--graphite);
  color: #f3f1ec;
  padding: 56px var(--gutter);
  margin: 56px 0;
  border-top: 4px solid var(--signal);
  border-bottom: 4px solid var(--signal);
}
.facts-inner { max-width: var(--max); margin: 0 auto; }
.facts-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  margin-bottom: 36px;
  max-width: 720px;
}
.facts-title em { color: var(--signal); font-style: italic; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .facts-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.fact-block {
  border-top: 1px solid rgba(232, 116, 43, 0.5);
  padding-top: 14px;
}
.fact-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 4.6vw, 52px);
  line-height: 1;
  color: var(--signal);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.fact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(243, 241, 236, 0.85);
  line-height: 1.5;
}

/* ============ EDITORIAL SPLIT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 48px 0;
  align-items: start;
  border-top: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .split { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
  .split.flip { grid-template-columns: 7fr 5fr; }
  .split.flip .split-img { order: 2; }
}
.split-img img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.split-img figcaption {
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-top: 10px;
  font-style: italic;
}
.split-text h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.012em;
}
.split-text h3 em { font-style: italic; color: var(--signal-deep); }
.split-text p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin-bottom: 14px;
}
.split-text a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ GLOSSÁRIO ============ */
.glossary {
  padding: 56px 0;
}
.glossary-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
@media (max-width: 880px) { .glossary-grid { grid-template-columns: 1fr; gap: 24px; } }
.glossary-side h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.glossary-side p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-top: 14px;
}
.glossary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
@media (max-width: 700px) { .glossary-list { grid-template-columns: 1fr; } }
.gloss-item { border-top: 2px solid var(--graphite); padding-top: 12px; }
.gloss-term {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--graphite);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gloss-def {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* ============ AVISO INSTITUCIONAL ============ */
.aviso {
  background: var(--bg-soft);
  padding: 36px var(--gutter);
  margin: 48px 0 0;
  border-left: 6px solid var(--signal);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.aviso-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.aviso-rotulo {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-deep);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.aviso p {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.aviso p strong { color: var(--graphite); font-weight: 700; }

/* ============ ARTIGO ============ */
.article-header {
  max-width: var(--read);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
}
.article-cat {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-title em { font-style: italic; color: var(--signal-deep); font-weight: 500; }
.article-deck {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--ink-mid);
  margin-bottom: 26px;
}
.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.article-info strong { color: var(--graphite); font-weight: 600; }

.article-photo {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 var(--gutter);
}
.article-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.article-photo figcaption {
  font-size: 11.5px;
  color: var(--ink-muted);
  padding: 10px 0;
  font-style: italic;
  border-bottom: 1px solid var(--rule);
}

.prose { max-width: var(--read); margin: 0 auto; padding: 16px var(--gutter) 64px; }
.prose > * { margin-bottom: 22px; }

.prose p {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.18;
  color: var(--ink);
  margin-top: 44px;
  letter-spacing: -0.012em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.3;
  color: var(--graphite);
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose ul, .prose ol { padding-left: 24px; }
.prose li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 17.5px;
  font-family: var(--serif);
  color: var(--ink-soft);
}
.prose ul li::marker { color: var(--signal); }
.prose ol li::marker { color: var(--signal-deep); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ CAIXAS EDITORIAIS ============ */
.note {
  background: var(--bg-soft);
  border-left: 4px solid var(--graphite);
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.note-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-deep);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.callout {
  background: var(--graphite);
  color: #f3f1ec;
  padding: 28px;
  border-top: 4px solid var(--signal);
}
.callout-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.callout h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #ffffff;
}
.callout p, .callout li { color: rgba(243, 241, 236, 0.94); font-family: var(--serif); }
.callout p { font-size: 16px; line-height: 1.6; }

.warning {
  background: var(--signal-pale);
  border: 1px solid var(--signal);
  border-left: 6px solid var(--signal-deep);
  padding: 24px;
  margin: 28px 0;
}
.warning-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-deep);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.warning p { color: var(--graphite-deep); font-size: 15.5px; line-height: 1.6; font-family: var(--serif); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--bg-card);
  font-family: var(--sans);
  border: 1px solid var(--rule);
}
.prose th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 12px 14px;
  background: var(--graphite);
  font-weight: 600;
}
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-soft);
}

/* ============ RELACIONADOS ============ */
.related {
  background: var(--graphite);
  color: #f3f1ec;
  padding: 56px var(--gutter);
}
.rel-inner { max-width: var(--max); margin: 0 auto; }
.rel-title {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 700;
  margin-bottom: 28px;
}
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card {
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--signal);
  padding-top: 16px;
}
.rel-card .rel-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
  margin-bottom: 10px;
}
.rel-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 10px;
}
.rel-card:hover h3 { color: var(--signal); }
.rel-card p { font-size: 13.5px; line-height: 1.5; color: rgba(243, 241, 236, 0.78); font-family: var(--serif); }

/* ============ PÁGINAS INSTITUCIONAIS ============ */
.page-head {
  max-width: var(--read);
  margin: 0 auto;
  padding: 56px var(--gutter) 24px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.014em;
  color: var(--ink);
}

/* ============ FOOTER ============ */
.footer { background: var(--graphite-deep); color: #d8d3c7; }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer p, .footer a { font-size: 13.5px; color: #c9c5bc; line-height: 1.65; }
.footer a { text-decoration: none; display: block; padding: 3px 0; transition: color 0.15s; }
.footer a:hover { color: var(--signal); }
.footer strong { color: #ffffff; font-weight: 600; }

.footer-brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-disclaimer {
  background: var(--signal-deep);
  padding: 18px var(--gutter);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
}
.footer-disclaimer strong { color: #ffffff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.footer-base {
  border-top: 1px solid rgba(216, 211, 199, 0.1);
  padding: 18px var(--gutter);
  font-size: 11.5px;
  color: #8a8579;
  text-align: center;
  background: var(--graphite-deep);
}
.footer-base a { display: inline; color: #a8a399; }
.footer-base a:hover { color: var(--signal); }

@media (max-width: 720px) {
  .header-inner { flex-direction: column; gap: 12px; text-align: center; }
  .header-meta { text-align: center; }
  .nav-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .nav a { padding: 14px 14px; font-size: 12.5px; white-space: nowrap; }
  .disclaimer-bar { font-size: 11.5px; }
}
