:root {
  --bg: #EFEAE0;
  --surface: #F9F6EF;
  --surface-raised: #FFFFFF;
  --ink: #241E18;
  --ink-soft: #6B5F4E;
  --ink-faint: #93876F;
  --accent: #92400E;
  --accent-soft: #E7D2B7;
  --accent-ink: #5C2707;
  --ok: #3F6B4A;
  --ok-soft: #DCE6DA;
  --warn: #93650E;
  --warn-soft: #F1E1BE;
  --danger: #A13D3D;
  --danger-soft: #F3DEDA;
  --line: #DCD2BC;
  --line-soft: #E8E1D0;
  --shadow: 0 1px 2px rgba(36,30,24,0.06), 0 8px 24px rgba(36,30,24,0.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1712; --surface: #221D17; --surface-raised: #2A241C;
    --ink: #EDE6D8; --ink-soft: #B3A78F; --ink-faint: #8A7E68;
    --accent: #E08A46; --accent-soft: #3E2C1B; --accent-ink: #F3C18C;
    --ok: #8FC49B; --ok-soft: #253026; --warn: #E0AC4F; --warn-soft: #33291A;
    --danger: #E08585; --danger-soft: #3A2420;
    --line: #3A3226; --line-soft: #2C271E;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #1B1712; --surface: #221D17; --surface-raised: #2A241C;
  --ink: #EDE6D8; --ink-soft: #B3A78F; --ink-faint: #8A7E68;
  --accent: #E08A46; --accent-soft: #3E2C1B; --accent-ink: #F3C18C;
  --ok: #8FC49B; --ok-soft: #253026; --warn: #E0AC4F; --warn-soft: #33291A;
  --danger: #E08585; --danger-soft: #3A2420;
  --line: #3A3226; --line-soft: #2C271E;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
}
:root[data-theme="light"] {
  --bg: #EFEAE0; --surface: #F9F6EF; --surface-raised: #FFFFFF;
  --ink: #241E18; --ink-soft: #6B5F4E; --ink-faint: #93876F;
  --accent: #92400E; --accent-soft: #E7D2B7; --accent-ink: #5C2707;
  --ok: #3F6B4A; --ok-soft: #DCE6DA; --warn: #93650E; --warn-soft: #F1E1BE;
  --danger: #A13D3D; --danger-soft: #F3DEDA;
  --line: #DCD2BC; --line-soft: #E8E1D0;
  --shadow: 0 1px 2px rgba(36,30,24,0.06), 0 8px 24px rgba(36,30,24,0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
a { color: var(--accent-ink); }
img { max-width: 100%; height: auto; }

/* ---- topo / nav ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-brand {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.site-brand .city { color: var(--accent-ink); font-weight: 400; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.88rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--accent-ink); }

.wrap { max-width: 980px; margin: 0 auto; padding: 2.25rem 1.5rem 5rem; }
.wrap.narrow { max-width: 760px; }

/* ---- breadcrumb ---- */
.crumbs {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }

/* ---- headings ---- */
h1.page-title {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6rem;
}
.page-subtitle { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 1.5rem; }

/* ---- badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge.m-esboco { background: var(--warn-soft); color: var(--warn); }
.badge.m-desenvolvimento { background: var(--accent-soft); color: var(--accent-ink); }
.badge.m-consolidado { background: var(--ok-soft); color: var(--ok); }
.badge.m-revisado { background: var(--ok); color: white; }
.badge.trilha { background: var(--surface-raised); color: var(--ink-soft); border-color: var(--line); }
.badge.pendente { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.badge.aprovada { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.badge.sinalizada { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.badge.novo { background: var(--accent); color: white; }
.toc-badge-novo {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.status-banner {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.75rem;
  max-width: 68ch;
  border: 1px solid;
}
.status-banner.pendente { background: var(--warn-soft); border-color: var(--warn); }
.status-banner.sinalizada { background: var(--danger-soft); border-color: var(--danger); }
.pendente-mark { font-size: 0.85rem; }
.trilha-card.pendente { border-color: #fcd34d; border-style: dashed; }

/* ---- trilha grid (pagina da cidade) ---- */
.trilha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}
.trilha-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.trilha-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.trilha-card .t-title {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.trilha-card .t-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ---- article ---- */
.content {
  max-width: 68ch;
  font-size: 1.02rem;
}
.atlas-content .content {
  font-size: 1.125rem;
  line-height: 1.7;
}
.content h1 { display: none; } /* titulo ja vem do page-title */
.content h2 {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.3rem; font-weight: 600; margin: 2rem 0 0.75rem; text-wrap: balance;
}
.content h3 {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.08rem; font-weight: 600; margin: 1.5rem 0 0.6rem;
}
.content p { margin: 0 0 0.95rem; }
.content ul, .content ol { margin: 0 0 0.95rem; padding-left: 1.3rem; }
.content li { margin-bottom: 0.4rem; }
.content strong { font-weight: 700; }
.content em { color: var(--ink-soft); }
.content hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.content img {
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0.5rem 0 0.3rem;
}
.content em:has(+ img), .content p > em:only-child {
  display: block; font-size: 0.82rem; color: var(--ink-faint); margin-top: -0.2rem;
}
a.entity-ref {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  cursor: pointer;
}
a.ledger-row { text-decoration: none; color: inherit; }
a.ledger-row:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* ---- lacunas / gaps ---- */
.gap-box {
  background: var(--warn-soft);
  border: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.gap-box .gap-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warn); font-weight: 700; margin-bottom: 0.6rem; display: block;
}
.gap-item { margin-bottom: 0.85rem; }
.gap-item:last-child { margin-bottom: 0; }
.gap-item .what { font-weight: 600; }
.gap-item .where, .gap-item .next { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.15rem; }
.gap-item .where b, .gap-item .next b { color: var(--ink-faint); font-weight: 600; }

/* ---- ledger (afirmacoes / notas de fonte) ---- */
.ledger { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ledger-row { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.85rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-top: 0.4rem; flex-shrink: 0; }
.dot.ok { background: var(--ok); }
.dot.fonte_unica { background: var(--warn); }
.dot.em_disputa { background: #b4426b; }
.dot.lacuna { background: var(--ink-faint); }
.ledger-text { font-size: 0.86rem; flex: 1; }
.ledger-mark { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.64rem; text-transform: uppercase; white-space: nowrap; padding-top: 0.1rem; }
.ledger-mark.ok { color: var(--ok); }
.ledger-mark.fonte_unica { color: var(--warn); }
.ledger-mark.em_disputa { color: #b4426b; }
.ledger-mark.lacuna { color: var(--ink-faint); }

/* ---- notas de fonte -- painel "Como sabemos disso?" (item 1.7) ---- */
/* <details> nativo, sem JS -- combina com "sem framework pesado no cliente" */
details.nota-fonte { border-bottom: 1px solid var(--line-soft); }
details.nota-fonte:last-child { border-bottom: none; }
details.nota-fonte:target { background: color-mix(in srgb, var(--accent) 8%, transparent); }
summary.ledger-row { cursor: pointer; list-style: none; }
summary.ledger-row::-webkit-details-marker { display: none; }
summary.ledger-row::after { content: '▸ como sabemos disso'; margin-left: auto; padding-left: 0.6rem; font-size: 0.68rem; color: var(--ink-faint); white-space: nowrap; align-self: center; }
details.nota-fonte[open] summary.ledger-row::after { content: '▾ ocultar'; }
.nota-fonte-body { padding: 0 0.85rem 0.85rem 2.15rem; font-size: 0.84rem; color: var(--ink-soft); }
.nota-fonte-body p { margin: 0 0 0.35rem; }
.nota-fonte-body ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.nota-fonte-body li { margin-bottom: 0.35rem; }
.nota-fonte-body a { color: var(--accent); }

/* ---- {{af:id}} -- marcador inline na prosa (item 1.5), agora link
   pra nota expansível em vez de só tooltip (item 1.7) ---- */
.af-mark { font-size: 0.72em; margin-left: 0.1em; }
.af-mark a { text-decoration: none; }
.af-mark.af-fonte_unica { color: var(--warn); }
.af-mark.af-em_disputa { color: #b4426b; }
.af-mark.af-lacuna { color: var(--ink-faint); }

/* ---- fontes list ---- */
.source-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: baseline;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem;
}
.source-row .titulo { font-weight: 600; }
.source-row .inst { color: var(--ink-soft); font-size: 0.84rem; }
.source-row a.ext { font-size: 0.78rem; white-space: nowrap; }
.tag-tipo {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.62rem; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3rem; margin-left: 0.4rem;
}

/* ---- painel (stats) ---- */
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 1.5rem 0; }
.stat { background: var(--surface); padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.stat .n { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 600; }
.stat .l { font-size: 0.7rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .site-nav { font-size: 0.8rem; gap: 0.8rem; }
}

/* ---- nav secundario (Fase 1: separar leitura de infraestrutura) ---- */
.nav-more { position: relative; }
.nav-more > summary {
  cursor: pointer; list-style: none; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { color: var(--accent-ink); }
.nav-more > summary::after { content: '▾'; font-size: 0.7em; }
.nav-more[open] > summary::after { content: '▴'; }
.nav-more-panel {
  position: absolute; top: 100%; right: 0; margin-top: 0.5rem;
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 0.5rem;
  display: flex; flex-direction: column; min-width: 160px; z-index: 10;
}
.nav-more-panel a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.85rem;
  padding: 0.4rem 0.6rem; border-radius: 6px;
}
.nav-more-panel a:hover { background: var(--surface); color: var(--accent-ink); }

/* ---- painel de metodologia (icone info, Fase 2) ---- */
.info-toggle { margin: -0.4rem 0 1.5rem; }
.info-toggle > summary {
  cursor: pointer; list-style: none; font-size: 0.78rem;
  color: var(--ink-faint); display: inline-flex; align-items: center;
  gap: 0.3rem; user-select: none;
}
.info-toggle > summary::-webkit-details-marker { display: none; }
.info-toggle > summary:hover { color: var(--accent-ink); }
.info-toggle[open] > summary { color: var(--accent-ink); }
.info-panel {
  max-width: 60ch; margin: 0.6rem 0 1.5rem; padding: 0.85rem 1rem;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 10px; font-size: 0.84rem; color: var(--ink-soft); line-height: 1.55;
}
.info-panel p { margin: 0 0 0.6rem; }
.info-panel p:last-child { margin-bottom: 0; }
.info-panel .legend-item { display: flex; gap: 0.4rem; margin-bottom: 0.3rem; }

/* ---- meta de secao, movida pro rodape do artigo (Fase 1) ---- */
.section-meta {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft);
}
.section-meta > summary {
  cursor: pointer; list-style: none; font-size: 0.78rem; color: var(--ink-faint);
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.section-meta > summary::-webkit-details-marker { display: none; }
.section-meta > summary::before { content: '▸'; font-size: 0.7em; }
.section-meta[open] > summary::before { content: '▾'; }
.section-meta-body { margin-top: 0.9rem; }
.section-meta .badge { font-size: 0.7rem; padding: 0.22rem 0.55rem; }

/* ---- disputa: nota curta junto do detalhe (Fase 2, texto D) ---- */
.disputa-note {
  font-size: 0.78rem; color: var(--ink-faint); font-style: italic;
  margin: 0 0 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--line-soft);
}

/* ---- pagina /sobre/ ---- */
.sobre-body { max-width: 62ch; font-size: 0.98rem; }
.sobre-body h2 {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 0.6rem;
}
.sobre-body p { margin: 0 0 1rem; color: var(--ink-soft); }

/* ---- galeria de assets (pagina de entidade) ---- */
.asset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin: 0.5rem 0 1.5rem;
}
.asset-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.asset-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.asset-card img { width: 100%; height: 140px; object-fit: cover; display: block; margin: 0; border: none; border-radius: 0; }
.asset-placeholder {
  height: 140px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-raised); color: var(--ink-faint); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.asset-card-body { padding: 0.65rem 0.75rem; }
.asset-card-titulo { font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.35rem; }
.asset-card-meta { font-size: 0.72rem; color: var(--ink-faint); }

/* ---- agrupamento por trilha (pagina da cidade, redesign 2026-07-30) ---- */
.grupo-secoes { margin: 2.25rem 0; }
.grupo-secoes:first-of-type { margin-top: 1.5rem; }
.grupo-titulo {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.25rem; font-weight: 600; margin: 0 0 1.1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.trilha-bloco { margin-bottom: 1.6rem; }
.trilha-bloco:last-child { margin-bottom: 0; }
.trilha-titulo {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem;
}
.trilha-num {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem; color: var(--ink-faint); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.05rem 0.35rem;
}

/* ---- Atlas longform reader (pagina da cidade, redesign 2026-07-30) ----
   Sidebar fixa com TOC tematico (sem codigo de trilha visivel) + secoes
   empilhadas verticalmente em area de leitura, ao inves de grid de cards.
   Reaproveita as variaveis de tema existentes (dark mode automatico) em
   vez de cores fixas. */
.atlas-container {
  display: flex; align-items: flex-start;
  max-width: 1400px; margin: 0 auto;
}
.atlas-sidebar {
  width: 280px; flex-shrink: 0;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.atlas-sidebar-inner { padding: 1.75rem 1.5rem; }

/* ---- hero banner (item 2 do plano de ajustes 2026-07-30) ---- */
.atlas-hero {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 4rem 2rem 3.5rem; text-align: center;
}
.atlas-hero-inner { max-width: 700px; margin: 0 auto; }
.atlas-hero-kicker {
  display: block; font-size: 0.74rem; color: var(--ink-faint); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.9rem;
}
.atlas-hero h1 {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.05;
  margin: 0 0 1rem; text-wrap: balance;
}
.atlas-hero-subtitle {
  font-size: 1.15rem; color: var(--ink-soft); line-height: 1.55; margin: 0;
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}
.atlas-toc-group { margin-bottom: 1.75rem; }
.atlas-toc-group h3 {
  font-size: 0.68rem; color: var(--ink-faint); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600; margin: 0 0 0.6rem;
}
.atlas-toc-group ul { list-style: none; margin: 0; padding: 0; }
.atlas-toc-group li { margin-bottom: 0.55rem; }
.atlas-toc-group a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.86rem; line-height: 1.35;
  display: block; transition: color 0.15s ease;
}
.atlas-toc-group a:hover { color: var(--accent-ink); }
.atlas-toc-group a.active {
  color: var(--accent-ink); font-weight: 600;
  padding-left: 0.6rem; border-left: 2px solid var(--accent);
  margin-left: -0.6rem;
}
.atlas-sidebar-stats {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: 0.72rem; color: var(--ink-faint); display: flex; flex-direction: column; gap: 0.5rem;
}
.atlas-sidebar-stats a { color: var(--ink-faint); }

.atlas-content { flex: 1; min-width: 0; padding: 3rem 4rem 6rem; max-width: 860px; }
.atlas-lede {
  font-size: 1.1rem; color: var(--ink-soft); line-height: 1.6;
  max-width: 68ch; margin: 0 0 3rem;
}
.atlas-section {
  margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
.atlas-section:last-child { border-bottom: none; }
.atlas-section .section-header { margin-bottom: 1.5rem; }
.section-kicker {
  display: block; font-size: 0.72rem; font-weight: 600; color: var(--accent-ink);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.5rem;
}
.atlas-section .section-header h2 {
  font-family: ui-serif, Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.2;
  margin: 0 0 0.6rem; text-wrap: balance;
}
.atlas-section .content { max-width: 68ch; }
.atlas-section-footer {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line-soft);
  font-size: 0.8rem; color: var(--ink-faint); max-width: 68ch;
}
.atlas-section-footer a { color: var(--accent-ink); }

@media (max-width: 900px) {
  .atlas-container { flex-direction: column; }
  .atlas-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line); }
  .atlas-content { padding: 2rem 1.5rem 4rem; max-width: 100%; }
}

/* ---- imagem de abertura de secao (achado 2026-07-30 -- imagens do
   ARCHIVIST so apareciam na pagina de entidade, nunca no fluxo de leitura) ---- */
.section-hero-img { margin: 0 0 1.5rem; max-width: 68ch; }
.section-hero-img img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); display: block;
}
.section-hero-img figcaption {
  font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.4rem;
}

