/* IA Lead Hub — visual: azul da logo (#2196E8), tema escuro/claro, sem fontes externas */
:root {
  --bg: #0b1220;
  --bg-2: #0f182b;
  --surface: #131d33;
  --surface-2: #19253f;
  --border: #25344f;
  --text: #e7eef9;
  --muted: #9fb0cb;
  --accent: #3fa8f2;
  --accent-strong: #2196e8;
  --accent-ink: #04111f;
  --warn: #f0b43c;
  --danger: #ff8a8a;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ph-s: 70%;
  --ph-l: 62%;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #edf2fa;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --border: #d6e0ee;
  --text: #0f1b2d;
  --muted: #4b5c77;
  --accent: #1273c0;
  --accent-strong: #1273c0;
  --accent-ink: #ffffff;
  --warn: #8a5a00;
  --danger: #b00020;
  --shadow: 0 6px 20px rgba(15, 40, 80, .10);
  --ph-s: 62%;
  --ph-l: 40%;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; padding-bottom: 3rem; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent-strong); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: .6rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); margin-bottom: .5rem; }
.block { margin-block: 2.5rem; }
.page-head { padding-top: 2rem; padding-bottom: .5rem; }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain li { margin-bottom: .45rem; }
.bullets { padding-left: 1.2rem; }
.bullets li { margin-bottom: .5rem; }

/* cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: .9rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand-icon { border-radius: 7px; background: #fff; padding: 2px; }
.brand-ia { color: var(--accent); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.main-nav a { display: block; padding: .45rem .55rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; }
.search-mini { position: relative; display: flex; }
.search-mini input { width: 9.5rem; }
.search-mini input:focus { width: 14rem; }
.header-row { flex-wrap: nowrap; }
.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.search-mini button { display: none; }
.theme-toggle { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem; }
.theme-toggle:hover { border-color: var(--accent); }

input[type="search"], input[type="text"], input[type="email"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .55rem .8rem; width: 100%; min-height: 2.6rem;
}
input::placeholder { color: var(--muted); }
select { appearance: auto; }

.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; list-style: none; margin: 0; padding: .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-width: 16rem; max-height: 22rem; overflow: auto; }
.suggest li a { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.suggest li a:hover, .suggest li a[aria-selected="true"] { background: var(--surface-2); }
.suggest .k { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* botões */
.btn { display: inline-block; font: inherit; font-weight: 700; padding: .65rem 1.1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; min-height: 2.75rem; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.4rem 0; }

/* hero */
.hero { padding-block: 3rem 2rem; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent-strong) 22%, transparent), transparent 70%),
  linear-gradient(var(--bg), var(--bg-2)); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.search-hero { position: relative; display: flex; gap: .6rem; max-width: 36rem; }
.hero-map { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; }
.hero-map figcaption { font-size: .85rem; color: var(--muted); padding: .4rem .4rem 0; }
.map-axis { stroke: var(--border); stroke-width: 2; }
.map-stem { stroke: hsl(var(--h) var(--ph-s) var(--ph-l)); stroke-width: 1.2; opacity: .55; }
.map-dot { fill: hsl(var(--h) var(--ph-s) var(--ph-l)); stroke: var(--surface); stroke-width: 1.5; }
a:hover .map-dot, a:focus-visible .map-dot { r: 8; }
.map-label { fill: var(--muted); font: 12px var(--mono); }

/* friso de fases */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.frieze { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.frieze a { display: grid; gap: .1rem; height: 100%; padding: .8rem .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid hsl(var(--h) var(--ph-s) var(--ph-l)); text-decoration: none; color: var(--text); }
.frieze a:hover { transform: translateY(-2px); border-color: hsl(var(--h) var(--ph-s) var(--ph-l)); }
.fr-num { font: 700 .8rem var(--mono); color: color-mix(in srgb, hsl(var(--h) var(--ph-s) var(--ph-l)) 45%, var(--text)); }
.fr-name { font-weight: 700; line-height: 1.25; }
.fr-range { font: .85rem var(--mono); color: var(--muted); }
.fr-count { font-size: .85rem; color: var(--muted); }

/* cartões */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card-title { margin-bottom: .35rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: underline; }
.card-text { color: var(--muted); margin-bottom: .7rem; }
.ev-card { border-left: 4px solid hsl(var(--h, 210) var(--ph-s) var(--ph-l)); }
.ev-date { margin: 0 0 .3rem; }
.ev-year { font-family: var(--mono); font-weight: 700; color: var(--warn); font-size: .95rem; }
.tile { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; color: var(--text); }
.tile h3 { color: var(--accent); }
.tile p { color: var(--muted); margin: 0; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { margin: 0; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: grid; text-align: center; }
.stat strong { font: 800 2.2rem var(--mono); color: var(--accent); }
.stat span { color: var(--muted); font-size: .9rem; }

/* selos e chips */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; align-items: center; }
.chip { display: inline-block; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-decoration: none; }
a.chip:hover { border-color: var(--accent); }
.chip-soft { color: var(--muted); }
.chip-phase { border-color: hsl(var(--h, 210) var(--ph-s) var(--ph-l)); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 6px; border: 1px solid currentColor; white-space: nowrap; }
.badge-fato { color: #5ad19a; }
.badge-interpretacao { color: #c79bff; }
.badge-previsao { color: #ffb15a; }
.badge-recente { color: #5cc8ff; }
:root[data-theme="light"] .badge-fato { color: #0b7a4b; }
:root[data-theme="light"] .badge-interpretacao { color: #6a32b5; }
:root[data-theme="light"] .badge-previsao { color: #9a4d00; }
:root[data-theme="light"] .badge-recente { color: #0a6797; }
.status-legend { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1rem 0; }
.status-legend div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.status-legend dt { margin-bottom: .4rem; }
.status-legend dd { margin: 0; color: var(--muted); font-size: .95rem; }
.status-note { margin-top: 1rem; }

/* migalhas */
.crumbs { padding-top: 1rem; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: .3rem; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: .3rem; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

/* filtros */
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-block: 1rem; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.f-field label { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .25rem; }
.f-search { grid-column: 1 / -1; }
.f-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.f-count { margin: 0 0 0 auto; font-family: var(--mono); color: var(--warn); }
.legend { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.empty { padding: 1.2rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.js .filters .f-actions .btn-primary { display: none; }

/* linha do tempo */
.tl-wrap { margin-top: 1.5rem; }
.tl-phase { margin-bottom: 2.5rem; }
.tl-phase-head { position: sticky; top: 3.7rem; z-index: 5; padding: .7rem 1rem; margin-bottom: 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid hsl(var(--h) var(--ph-s) var(--ph-l)); border-radius: var(--radius); }
.tl-phase-head h2 { margin: 0; font-size: 1.25rem; }
.tl-phase-head h2 a { color: var(--text); text-decoration: none; }
.tl-phase-head p { margin: .2rem 0 0; font-size: .9rem; }
.tl-range { font: .85rem var(--mono); color: color-mix(in srgb, hsl(var(--h) var(--ph-s) var(--ph-l)) 45%, var(--text)); margin-left: .5rem; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7.4rem; top: 0; bottom: 0; width: 3px; background: linear-gradient(hsl(var(--h, 210) var(--ph-s) var(--ph-l) / .9), hsl(var(--h, 210) var(--ph-s) var(--ph-l) / .25)); border-radius: 3px; }
.tl-item { display: grid; grid-template-columns: 6.6rem 1.6rem 1fr; gap: 0 .4rem; align-items: start; margin-bottom: 1.1rem; position: relative; }
.tl-item[hidden], .tl-phase[hidden], [data-empty][hidden] { display: none; }
.tl-year { text-align: right; font: 700 .95rem var(--mono); color: var(--warn); padding-top: .9rem; line-height: 1.3; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; margin: 1rem 0 0 .02rem; background: hsl(var(--h, 210) var(--ph-s) var(--ph-l)); border: 3px solid var(--bg); box-shadow: 0 0 0 2px hsl(var(--h, 210) var(--ph-s) var(--ph-l)); justify-self: center; z-index: 1; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; }
.tl-card:hover { border-color: hsl(var(--h, 210) var(--ph-s) var(--ph-l)); }
.tl-card h3 { margin-bottom: .3rem; }
.tl-card h3 a { color: var(--text); text-decoration: none; }
.tl-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.tl-card p { margin-bottom: .6rem; color: var(--muted); }
.tl-card .chips { margin-top: .2rem; }
.tl-static::before { left: 7.4rem; }

/* minilinha do tempo (listas) */
.mini-tl { list-style: none; padding: 0; margin: 0 0 1rem; border-left: 3px solid hsl(var(--h, 210) 20% 50% / .4); }
.mini-tl li { padding: .35rem 0 .35rem 1rem; position: relative; display: flex; gap: .8rem; flex-wrap: wrap; align-items: baseline; }
.mini-tl li::before { content: ""; position: absolute; left: -8px; top: 1rem; width: 13px; height: 13px; border-radius: 50%; background: hsl(var(--h, 210) var(--ph-s) var(--ph-l)); border: 2px solid var(--bg); }
.mini-year { font: 700 .85rem var(--mono); color: var(--warn); min-width: 5.5rem; }

/* página de evento */
.event { padding-top: 1.5rem; }
.event-head { border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; margin-bottom: 1.5rem; }
.event-date { font: 800 1.1rem var(--mono); color: var(--warn); margin-bottom: .4rem; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 2rem; align-items: start; }
.event-main .block:first-child { margin-top: 0; }
.event-main p { max-width: 70ch; }
.event-side { display: grid; gap: 1rem; position: sticky; top: 4.5rem; }
.side-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.side-block h2 { font-size: 1rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tag-list { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-block; padding: .25rem .7rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .92rem; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.callout { border: 1px solid var(--border); border-left: 5px solid #c79bff; background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.callout h2 { font-size: 1.05rem; }
.callout-error { border-left-color: var(--danger); }
.callout-inline { border-left: 4px solid var(--accent); padding: .6rem 1rem; background: var(--surface); border-radius: 0 10px 10px 0; }
.sources { padding-left: 1.2rem; }
.sources li { margin-bottom: .5rem; color: var(--muted); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.pn { display: block; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; }
.pn span { display: block; font: .8rem var(--mono); color: var(--muted); margin-bottom: .2rem; }
.pn:hover { border-color: var(--accent); }
.pn-next { text-align: right; grid-column: 2; }

/* mapa de relações */
.relmap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
.rel-col { display: grid; gap: .5rem; }
.rel-h { font: .8rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.rel-node, .rel-center { display: block; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.35; position: relative; }
.rel-node:hover { border-color: var(--accent); }
.rel-center { border: 2px solid hsl(var(--h, 210) var(--ph-s) var(--ph-l)); background: var(--surface-2); font-weight: 700; max-width: 14rem; text-align: center; }
.rel-year { display: block; font: 700 .78rem var(--mono); color: var(--warn); }
.rel-col:first-child .rel-node::after, .rel-col:last-child .rel-node::before { content: "→"; position: absolute; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.rel-col:first-child .rel-node::after { right: -1.05rem; }
.rel-col:last-child .rel-node::before { left: -1.05rem; }
.rel-list { color: var(--muted); font-size: .95rem; }

/* fases */
.phase-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.phase-card { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid hsl(var(--h) var(--ph-s) var(--ph-l)); border-radius: var(--radius); }
.phase-num { font: 800 1.8rem var(--mono); color: color-mix(in srgb, hsl(var(--h) var(--ph-s) var(--ph-l)) 45%, var(--text)); margin: 0; }
.phase-card h2 { margin-bottom: .1rem; }
.phase-card h2 a { color: var(--text); text-decoration: none; }
.phase-card h2 a:hover { color: var(--accent); }
.phase-range { font: .9rem var(--mono); color: var(--warn); margin-bottom: .5rem; }
.phase-head .eyebrow { color: color-mix(in srgb, hsl(var(--h) var(--ph-s) var(--ph-l)) 45%, var(--text)); }

/* gráficos */
.chart { margin: 1rem 0 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
.chart svg { min-width: 560px; width: 100%; height: auto; }
.chart figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.ch-label, .ch-val, .lane-year { fill: var(--muted); font: 13px var(--mono); }
.ch-bar { fill: hsl(var(--h) var(--ph-s) var(--ph-l)); }
a:hover .ch-bar { filter: brightness(1.2); }
.lane-grid { stroke: var(--border); stroke-dasharray: 3 4; }
.lane-bg { fill: var(--surface-2); opacity: .55; }
.lane-bg.alt { opacity: .25; }
.lane-name { fill: var(--text); font: 700 14px var(--sans); }
.dec-card h2 { font-size: 1.3rem; }
.dec-card h2 a { color: var(--text); text-decoration: none; }

/* tabela */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare { border-collapse: collapse; width: 100%; min-width: 960px; font-size: .93rem; line-height: 1.5; }
.compare th, .compare td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface-2); position: sticky; top: 0; }
.compare tbody th { background: var(--surface); width: 9rem; font-size: .9rem; color: var(--muted); }
.compare td { background: var(--surface); }

/* perguntas frequentes */
.faq dl { margin: 0; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; }
.faq dt { font-weight: 700; margin-bottom: .3rem; }
.faq dd { margin: 0; color: var(--muted); max-width: 70ch; }

/* pessoas, listas */
.person-card .avatar { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-strong) 25%, var(--surface)); color: var(--accent); font: 800 1rem var(--mono); margin: 0 0 .7rem; }
.changed-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.changed-item { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.changed-num { font: 800 2rem var(--mono); color: var(--accent); }
.changed-item h2 { margin-bottom: .2rem; }
.changed-item h2 a { color: var(--text); text-decoration: none; }
.changed-item h2 a:hover { color: var(--accent); }
.results { list-style: none; padding: 0; display: grid; gap: .9rem; max-width: 52rem; }
.results li { padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.results h2 { font-size: 1.2rem; margin: 0 0 .2rem; }
.results p { margin: 0 0 .3rem; }

/* texto institucional */
.prose { max-width: 50rem; margin-block: 1rem 3rem; }
.prose h2 { margin-top: 2rem; }
.steps li { margin-bottom: .7rem; }
.ref-list { list-style: none; padding: 0; display: grid; gap: .8rem; max-width: 60rem; }
.ref-list li { padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.ref-list p { margin: 0 0 .3rem; }
.contact-form { display: grid; gap: 1rem; max-width: 36rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* rodapé */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.footer-brand img { border-radius: 6px; background: #fff; padding: 2px; }
.footer-h { font: .8rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-block: 1rem; color: var(--muted); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* responsivo */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .event-layout { grid-template-columns: 1fr; }
  .event-side { position: static; }
}
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; }
  .main-nav { justify-content: flex-start; }
  .search-mini input:focus { width: 100%; }
  .js .nav-toggle { display: inline-block; margin-left: auto; font: inherit; font-weight: 700; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 2.6rem; }
  .js .main-nav { display: none; order: 5; width: 100%; margin: 0; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .search-mini { order: 4; flex: 1 1 100%; }
  .search-mini input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .tl::before { left: 1.1rem; }
  .tl-item { grid-template-columns: 1.6rem 1fr; }
  .tl-year { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 .2rem; }
  .tl-dot { grid-column: 1; grid-row: 1 / span 2; margin-top: .1rem; }
  .tl-card { grid-column: 2; grid-row: 2; }
  .tl-phase-head { top: 6.2rem; }
  .relmap { grid-template-columns: 1fr; }
  .rel-center { max-width: none; }
  .rel-col:first-child .rel-node::after, .rel-col:last-child .rel-node::before { content: none; }
  .prev-next { grid-template-columns: 1fr; }
  .pn-next { grid-column: auto; text-align: left; }
  .search-hero { flex-direction: column; }
  .phase-card, .changed-item { grid-template-columns: 2.4rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .tile, .frieze a, .tl-card, .btn { transition: transform .15s ease, border-color .15s ease, filter .15s ease; }
}
@media print {
  .site-header, .site-footer, .filters, .theme-toggle, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
