/* ══════════════════════════════════════════════════════════════════════════
   IA Que Funciona — sistema visual do site

   Referência de estética: o HTML que a comunidade JÁ publica — a edição
   normal e as especiais da newsletter "Manhã Aumentada". Os tokens abaixo
   são MEDIDOS no `:root` da edição de 18/10/2026, não propostos:
   folha #ffffff sobre tela #e8edf0, teal #0a8f88 (hover #06b8a0), âmbar
   #b8860b como acento comercial, terracota #c75b3e e sálvia #5f7a6b para
   categorizar; Outfit (títulos), Inter (corpo) e Fira Code (metadados).

   Os dispositivos do boletim viram componentes: papel quadriculado, brilho
   ambiente, curva ambiente, título com texto em gradiente, seção com ícone
   e fio em degradê, caixa de destaque com barra à esquerda, cartão, item de
   notícia, selo de categoria e rodapé em monoespaçada.

   A escala é a de site, não a de PDF: corpo em 17px e cartões com respiro,
   mantendo a disciplina do boletim — metadado pequeno em monoespaçada,
   título forte, entrelinha apertada no que é grande.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:    #ffffff;
  --bg-2:  #f4f7f9;
  --tela:  #e8edf0;
  --line:  #dde3e7;

  --accent:       #0a8f88;
  --accent-hover: #06b8a0;
  --accent-muted: rgba(10, 143, 136, 0.08);
  --terracota:    #c75b3e;
  --salvia:       #5f7a6b;
  --ambar:        #b8860b;

  --ink:  #1a1f24;
  --ink2: #5a6b72;
  --ink3: #3a454d;
  --ink4: #7a8a92;

  --borda:     rgba(10, 143, 136, 0.18);
  --borda-fio: rgba(10, 143, 136, 0.20);
  --r-lg: 14px;
  --r-sm: 6px;
  --sombra: 0 4px 24px rgba(0, 0, 0, 0.06);
  --glow: 0 0 25px rgba(0, 255, 213, 0.15);

  --f-title: 'Outfit', system-ui, sans-serif;
  --f-body:  'Inter', system-ui, sans-serif;
  --f-code:  'Fira Code', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--tela);
  background-image:
    linear-gradient(rgba(10, 143, 136, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 143, 136, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 56px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px;
  font-family: var(--f-title); font-weight: 700;
}
.skip:focus { left: 20px; top: 8px; }

/* ── a folha ────────────────────────────────────────────────────────────── */
.page {
  position: relative; width: 100%; max-width: 1180px;
  background: var(--bg); border: 1px solid var(--borda); border-radius: 20px;
  padding: clamp(28px, 4.2vw, 58px) clamp(20px, 4vw, 56px);
  box-shadow: var(--sombra); overflow: hidden; margin-top: 20px;
}
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(10, 143, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 143, 136, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.ambient-glow {
  position: absolute; width: 520px; height: 520px; top: -170px; right: -170px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(10, 143, 136, 0.11) 0%, transparent 70%);
  animation: flutua 22s var(--ease) infinite alternate;
}
.ambient-glow.b {
  top: auto; right: auto; bottom: -230px; left: -210px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.07) 0%, transparent 70%);
  animation-duration: 29s; animation-direction: alternate-reverse;
}
@keyframes flutua {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-26px, 20px, 0) scale(1.08); }
}
.ambient-curve { position: absolute; top: 11%; left: -12%; width: 124%; height: auto;
                 opacity: 0.09; pointer-events: none; z-index: 1; }
.conteudo { position: relative; z-index: 2; }

/* ══ ARTE DO HERÓI ═════════════════════════════════════════════════════════
   A arte é desenhada em canvas por assets/arte.js — campo de fluxo em teal e
   âmbar, no motivo da curva do boletim. O veu em gradiente mantém o texto
   legível sobre o traço.
   ═════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  margin: 0 calc(-1 * clamp(20px, 4vw, 56px)) 34px;
  padding: clamp(38px, 5.4vw, 70px) clamp(20px, 4vw, 56px) clamp(32px, 4vw, 54px);
  min-height: min(86vh, 780px);
  display: grid; align-items: center;
  border-bottom: 1px solid var(--borda-fio);
  background:
    radial-gradient(62% 80% at 92% 4%, rgba(10,143,136,.10), transparent 62%),
    radial-gradient(42% 62% at 2% 98%, rgba(184,134,11,.08), transparent 66%),
    var(--bg);
}
/* O painel de arte: bloco teal de alto contraste no lado direito, com o
   desenho em luz por cima. A primeira versão desenhava linhas finas sobre
   papel branco — sumia. Contraste é o que dá presença. */
.hero-painel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
  width: min(48%, 640px); overflow: hidden;
  background: linear-gradient(155deg, #0a8f88 0%, #077370 46%, #043b3d 100%);
}
.hero-painel::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
#arte-hero { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hero-painel-luz {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(58% 46% at 74% 26%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(50% 50% at 12% 86%, rgba(184,134,11,.16), transparent 72%);
}
/* o véu só costura a borda do painel com a coluna de texto */
.hero-veu {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg,
    #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.55) 44%,
    rgba(255,255,255,0) 52%);
}
.hero-in { position: relative; z-index: 3; display: grid; align-items: end;
           grid-template-columns: minmax(0, 1.32fr) minmax(0, .78fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; align-items: start; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-code); font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin: 0 0 20px;
  border: 1px solid var(--borda); border-radius: 999px; padding: 8px 15px;
  background: rgba(255,255,255,.7);
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hover);
  box-shadow: 0 0 9px rgba(6,184,160,.85); animation: pisca 2.6s ease-in-out infinite;
}
.hero-h {
  font-family: var(--f-title); font-weight: 900;
  font-size: clamp(32px, 6.4vw, 72px); line-height: 0.99;
  letter-spacing: -2.2px; color: var(--ink); margin: 0 0 22px;
}
.hero-h .ln { display: block; overflow: hidden; padding-bottom: 2px; }
/* ⚠️ Visível por padrão. A animação só existe quando o JS marca `html.animar`
   — conteúdo essencial NUNCA pode depender de JavaScript para aparecer; se o
   script falhar ou o requestAnimationFrame atrasar, o título continua legível. */
.hero-h .ln > span { display: block; transform: none; transition: transform 1s var(--ease); }
html.animar .hero-h .ln > span { transform: translateY(108%); }
html.animar.pronto .hero-h .ln > span { transform: none; }
html.animar .hero-h .ln:nth-child(2) > span { transition-delay: .09s; }
html.animar .hero-h .ln:nth-child(3) > span { transition-delay: .18s; }
.hero-h em {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-body { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.68; color: var(--ink3);
             max-width: 52ch; margin: 0 0 26px; }
.hero-body b { color: var(--ink); font-weight: 600; }

.hero-nums { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 28px; }
.hero-num { padding: 0 22px; border-left: 1px solid var(--borda); }
.hero-num:first-child { padding-left: 0; border-left: 0; }
.hero-num b { display: block; font-family: var(--f-title); font-weight: 900;
              font-size: clamp(28px, 3.6vw, 40px); line-height: 1; letter-spacing: -1px; color: var(--ink); }
.hero-num span { display: block; margin-top: 6px; font-family: var(--f-code); font-size: 9.5px;
                 font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink2); }

/* cartão da última edição — conteúdo vivo, e o que dá profundidade ao herói */
/* A última edição como ARTEFATO: uma página do boletim pousada na mesa, com
   inclinação e sombra de papel. É o objeto mais característico do projeto —
   melhor do que um cartão genérico com borda. */
.vivo {
  position: relative; background: #fff;
  border: 1px solid rgba(10,143,136,.22);
  border-top: 3px solid var(--accent);
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 2px 0 rgba(10,143,136,.06), 0 30px 60px -18px rgba(6,60,66,.35),
              0 1px 2px rgba(0,0,0,.06);
  padding: 26px 26px 22px;
  transform: rotate(-1.4deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.vivo:hover { transform: rotate(0deg) translateY(-3px);
              box-shadow: 0 2px 0 rgba(10,143,136,.06), 0 38px 70px -18px rgba(6,60,66,.4),
                          0 1px 2px rgba(0,0,0,.06); }
.vivo .rot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
             font-family: var(--f-code); font-size: 9.5px; font-weight: 600;
             color: var(--accent); margin-bottom: 14px; padding-bottom: 10px;
             border-bottom: 1px solid rgba(10,143,136,.18); }
.vivo .rot time { color: var(--ink2); }
.vivo h3 { font-family: var(--f-title); font-weight: 800; font-size: 22px; line-height: 1.2;
           letter-spacing: -0.5px; color: var(--ink); margin: 0 0 10px; }
.vivo p { font-size: 13.5px; line-height: 1.66; color: var(--ink3); margin: 0 0 16px; }
.hero-cue { position: relative; z-index: 3; margin-top: 30px; display: inline-flex; align-items: center; gap: 9px;
            font-family: var(--f-code); font-size: 9.5px; font-weight: 600; letter-spacing: 1.4px;
            text-transform: uppercase; color: var(--ink2); }
.hero-cue span { display: block; width: 1px; height: 26px; background: var(--borda);
                 animation: desce 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes desce { 0%,100% { transform: scaleY(.35); opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ══ FITA VIVA ═════════════════════════════════════════════════════════════ */
.fita { position: relative; overflow: hidden; border-top: 1px solid var(--borda-fio);
        border-bottom: 1px solid var(--borda-fio); background: var(--bg-2);
        margin: 0 calc(-1 * clamp(20px, 4vw, 56px)) 44px; }
.fita-in { display: flex; gap: 30px; width: max-content; padding: 12px 0;
           white-space: nowrap; animation: corre 52s linear infinite;
           font-family: var(--f-code); font-size: 10.5px; font-weight: 600;
           letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink2); }
.fita-in i { color: var(--accent-hover); font-style: normal; }
.fita-in b { color: var(--ink); font-weight: 700; }
@keyframes corre { to { transform: translateX(-50%); } }
.fita:hover .fita-in { animation-play-state: paused; }

/* ══ CARTÃO COM INCLINAÇÃO ═══════════════════════════════════════════════ */
.cartao { transform-style: preserve-3d; will-change: transform; }
.cartao .brilho {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease);
  background: radial-gradient(220px 220px at var(--cx, 50%) var(--cy, 50%),
              rgba(6,184,160,.13), transparent 70%);
}
.cartao:hover .brilho { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-h .ln > span { transform: none; }
  .fita-in { animation: none; }
  .hero-cue span { animation: none; }
}

/* ── barra de navegação ─────────────────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 90; width: 100%; max-width: 1180px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--borda); border-top: 0; border-radius: 0 0 14px 14px;
  padding: 0 clamp(16px, 3vw, 26px);
  display: flex; align-items: center; gap: 22px; height: 66px;
}
.topo .marca { display: flex; flex-direction: column; gap: 3px; flex: none; }
.topo .marca b { font-family: var(--f-title); font-weight: 900; font-size: 15px;
                 text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink); line-height: 1; }
.topo .marca span { font-family: var(--f-code); font-size: 7px; font-weight: 700;
                    letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); }
.topo nav { display: flex; gap: 22px; margin-left: auto; }
.topo nav a { font-family: var(--f-code); font-size: 10.5px; font-weight: 500;
              letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink2); }
.topo nav a:hover { color: var(--accent); }
@media (max-width: 1040px) { .topo nav { display: none; } .topo .btn { margin-left: auto; } }
.prog { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent-hover); z-index: 120; }

/* ── botões ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--r-sm);
  font-family: var(--f-title); font-size: 14.5px; font-weight: 700; line-height: 1;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover);
             color: #fff; transform: translateY(-1px); }
.btn i { display: block; width: 16px; height: 16px; flex: none; }
.btn i svg { width: 100%; height: 100%; }
.btn-sec { background: transparent; color: var(--ink2); border-color: rgba(10,143,136,.26); }
.btn-sec:hover { background: var(--accent-muted); color: var(--accent);
                 border-color: var(--accent); transform: translateY(-1px); }
.btn-ambar { background: var(--ambar); border-color: var(--ambar); color: #fff; }
.btn-ambar:hover { background: #9a6f09; border-color: #9a6f09; color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 12.5px; }

.link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-code); font-size: 11.5px; font-weight: 500; color: var(--accent);
  border-bottom: 1px dashed rgba(10, 143, 136, 0.25); padding-bottom: 1px;
}
.link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.link svg { width: 12px; height: 12px; }

/* ── cabeçalho do boletim ───────────────────────────────────────────────── */
.cabeca {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 26px;
  padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--borda-fio);
}
.cabeca h1 {
  font-family: var(--f-title); font-weight: 900;
  font-size: clamp(30px, 5.4vw, 46px); line-height: 1.03;
  letter-spacing: -0.9px; text-transform: uppercase; margin: 0;
  background: linear-gradient(90deg, var(--ink) 26%, var(--accent-hover) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cabeca .sub { font-size: 12.5px; color: var(--ink2); margin-top: 7px; }
.cabeca .dir { display: flex; align-items: center; gap: 16px; flex: none; }
.meta-box {
  font-family: var(--f-code); font-size: 10px; color: var(--ink2);
  display: flex; flex-direction: column; gap: 4px; text-align: right; align-items: flex-end;
}
.meta-box .v { color: var(--accent); font-weight: 700; }
.sep { width: 1px; height: 40px; background: rgba(10, 143, 136, 0.25); }
.logo-iaf { display: flex; flex-direction: column; gap: 3px; }
.logo-iaf b { font-family: var(--f-title); font-size: 21px; font-weight: 900;
              letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink); line-height: 1; }
.logo-iaf span { font-family: var(--f-code); font-size: 7px; font-weight: 700;
                 letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hover);
  box-shadow: 0 0 8px rgba(6, 184, 160, .8); animation: pisca 2.6s ease-in-out infinite;
}
@keyframes pisca { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ── faixa de chamada ───────────────────────────────────────────────────── */
.chamada {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; margin-bottom: 34px;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.05), rgba(199, 91, 62, 0.03));
  border: 1px solid rgba(184, 134, 11, 0.24); border-left: 3px solid var(--ambar);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-size: 14px; line-height: 1.55; color: var(--ink3);
}
.chamada svg { width: 17px; height: 17px; color: var(--ambar); flex: none; }
.chamada strong { color: var(--ink); font-weight: 600; }
.chamada .seta { margin-left: auto; font-family: var(--f-code); font-size: 10.5px;
                 font-weight: 700; color: var(--ambar); white-space: nowrap; flex: none; }

/* ── seções ─────────────────────────────────────────────────────────────── */
.sec { margin-bottom: clamp(38px, 5vw, 58px); }
/* Rótulo de seção é TÍTULO, não eyebrow em caixa alta com número. A caixa
   alta espaçada em cima de cada bloco é um dos sinais mais comuns de página
   gerada — e o número (01, 02) só faria sentido se fosse sequência. */
.sec-tit {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px; padding-top: 16px;
  border-top: 1px solid var(--borda-fio);
  font-family: var(--f-title); font-weight: 700;
  font-size: clamp(19px, 2.3vw, 26px); letter-spacing: -0.4px;
  text-transform: none; color: var(--ink);
}
.sec-tit svg { width: 19px; height: 19px; color: var(--accent); stroke-width: 1.8; flex: none; }
.sec-tit .fio { display: none; }

/* ── caixa de destaque ──────────────────────────────────────────────────── */
.destaque {
  background: linear-gradient(135deg, rgba(10, 143, 136, 0.045) 0%, rgba(244, 247, 249, 0.6) 100%);
  border: 1px solid rgba(10, 143, 136, 0.2); border-left: 3px solid var(--accent-hover);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 3vw, 34px);
}
.destaque .grande {
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(21px, 3.1vw, 31px); line-height: 1.2; letter-spacing: -0.4px;
  color: var(--ink); margin: 0 0 14px; max-width: 30ch;
}
.destaque p { font-size: 16px; line-height: 1.7; color: var(--ink3); margin: 0 0 12px; max-width: 74ch; }
.destaque p:last-child { margin-bottom: 0; }
.destaque b, .destaque strong { color: var(--accent); font-weight: 600; }
.cta-linha { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ── grade de cartões ───────────────────────────────────────────────────── */
.grade { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.cartao {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  padding: 22px 24px; background: var(--bg-2);
  border: 1px solid var(--borda); border-radius: var(--r-lg); color: var(--ink);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.cartao:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10, 143, 136, 0.13);
                border-color: var(--accent); color: var(--ink); }
.cartao .num { font-family: var(--f-code); font-size: 10px; font-weight: 700;
               letter-spacing: 1.6px; color: var(--accent-hover); }
.cartao .ic { width: 26px; height: 26px; color: var(--accent); }
.cartao .ic svg { width: 100%; height: 100%; }
.cartao h3 { font-family: var(--f-title); font-weight: 700; font-size: 18px;
             line-height: 1.25; letter-spacing: -0.2px; margin: 0; color: var(--ink); }
.cartao p { font-size: 14px; line-height: 1.65; color: var(--ink3); margin: 0; flex: 1; }
.cartao p b { color: var(--ink); font-weight: 600; }
.cartao .ir { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
              font-family: var(--f-code); font-size: 10.5px; font-weight: 600; color: var(--accent); }
.cartao .ir svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.cartao:hover .ir svg { transform: translateX(4px); }
.cartao .selo { position: absolute; top: 20px; right: 22px; font-family: var(--f-code);
                font-size: 8.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
                color: var(--ink4); }
/* barra de acento à esquerda — o dispositivo do boletim para diferenciar tipo */
.cartao.por-ambar { border-left: 3px solid var(--ambar);
                    background: linear-gradient(135deg, rgba(184,134,11,.035), rgba(244,247,249,.5)); }
.cartao.por-salvia { border-left: 3px solid var(--salvia);
                     background: linear-gradient(135deg, rgba(95,122,107,.05), rgba(244,247,249,.5)); }
.cartao.por-terra { border-left: 3px solid var(--terracota);
                    background: linear-gradient(135deg, rgba(199,91,62,.04), rgba(244,247,249,.5)); }

.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; }
.c-6 { grid-column: span 6; } .c-12 { grid-column: span 12; }
@media (max-width: 940px) { .c-7, .c-5, .c-4, .c-6 { grid-column: span 12; } }

/* ── lista editorial ────────────────────────────────────────────────────── */
.lista { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.item .marca-num { font-family: var(--f-code); font-size: 13px; font-weight: 700;
                   color: var(--accent-hover); line-height: 1.15; flex: none; }
.item .corpo { flex: 1; }
.item h3 { font-family: var(--f-title); font-weight: 700; font-size: 16px;
           line-height: 1.35; margin: 0 0 5px; color: var(--ink); }
.item p { font-size: 14px; line-height: 1.65; color: var(--ink3); margin: 0; }

/* ── números do acervo ──────────────────────────────────────────────────── */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
@media (max-width: 700px) { .numeros { grid-template-columns: 1fr; } }
.num-item { padding: 20px 18px; background: var(--bg-2); border: 1px solid var(--borda);
            border-radius: var(--r-lg); text-align: center; }
.num-item b { display: block; font-family: var(--f-title); font-weight: 900;
              font-size: clamp(30px, 4.4vw, 42px); line-height: 1; letter-spacing: -1px; color: var(--ink); }
.num-item b em { font-style: normal; color: var(--accent); }
.num-item span { display: block; margin-top: 8px; font-family: var(--f-code); font-size: 9px;
                 font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink2); }

/* ── lista de edições ───────────────────────────────────────────────────── */
.eds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eds a {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 15px 18px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), padding-left .3s var(--ease);
}
.eds a:hover { border-color: var(--accent); background: #fff; padding-left: 24px; color: var(--ink); }
.eds .ed-data { font-family: var(--f-code); font-size: 10px; font-weight: 600;
                letter-spacing: 0.9px; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.eds .ed-tit { display: block; font-family: var(--f-title); font-weight: 700;
               font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.eds .ed-res { display: block; font-size: 13px; line-height: 1.6; color: var(--ink3); }
.eds li.especial .ed-tit { color: var(--ambar); }
@media (max-width: 620px) { .eds a { grid-template-columns: 1fr; gap: 6px; } }

/* ── dois blocos lado a lado ────────────────────────────────────────────── */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 840px) { .duo { grid-template-columns: 1fr; } }

/* ── retratos ───────────────────────────────────────────────────────────── */
.retratos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 680px) { .retratos { grid-template-columns: 1fr; } }
.retratos figure { margin: 0; background: var(--bg-2); border: 1px solid var(--borda);
                   border-radius: var(--r-lg); overflow: hidden; }
.retratos .foto { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center;
                  background: linear-gradient(160deg, rgba(10,143,136,.10), rgba(244,247,249,.6)); }
.retratos .foto img { width: 100%; height: 100%; object-fit: cover; }
.retratos .foto .ph { position: absolute; inset: 0; display: grid; place-content: center;
                      text-align: center; gap: 10px; padding: 22px; }
.retratos .foto.tem .ph { display: none; }
.retratos .foto .ph svg { width: 40px; height: 40px; color: var(--accent); opacity: .35; margin: 0 auto; }
.retratos .foto .ph span { font-family: var(--f-code); font-size: 9px; font-weight: 600;
                           letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink2); }
.retratos figcaption { padding: 16px 20px 20px; }
.retratos figcaption b { display: block; font-family: var(--f-title); font-weight: 800;
                         font-size: 19px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--ink); }
.retratos figcaption span { font-family: var(--f-code); font-size: 9px; font-weight: 600;
                            letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink2); }

/* ── aviso e regras ─────────────────────────────────────────────────────── */
.aviso {
  padding: 16px 20px; border: 1px solid var(--borda); border-left: 3px solid var(--ambar);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(184, 134, 11, 0.05);
  font-size: 14.5px; line-height: 1.65; color: var(--ink3);
}
.aviso b { color: var(--ambar); font-weight: 700; }
.regras-toggle {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-family: var(--f-code); font-size: 11px; font-weight: 600; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--accent);
  border-bottom: 1px dashed rgba(10, 143, 136, 0.3);
}
.regras-toggle:hover { color: var(--accent-hover); }
.regras { margin-top: 16px; }
.regras ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--ink3); }
.regras li { margin-bottom: 8px; }

/* ── fecho ──────────────────────────────────────────────────────────────── */
.fecho { text-align: center; padding: clamp(28px, 5vw, 54px) 0 clamp(18px, 3vw, 32px); }
.fecho .gf {
  font-family: var(--f-title); font-weight: 900; letter-spacing: -1.5px;
  font-size: clamp(30px, 7vw, 60px); line-height: 1.03; text-transform: uppercase;
  background: linear-gradient(90deg, var(--ink) 18%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 0 16px;
}
.fecho p { max-width: 52ch; margin: 0 auto 26px; font-size: 16px; color: var(--ink3); }
.fecho .cta-linha { justify-content: center; }

/* ── rodapé ─────────────────────────────────────────────────────────────── */
.rodape {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--borda-fio);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-code); font-size: 9.5px; color: var(--ink4);
  letter-spacing: 0.7px; text-transform: uppercase;
}
.rodape .esq { font-weight: 700; }
.rodape .meio { max-width: 470px; text-align: center; line-height: 1.55;
                text-transform: none; letter-spacing: 0; }
.rodape a { color: var(--accent); font-weight: 700; }
.rodape .dir { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── movimento ──────────────────────────────────────────────────────────── */
/* Um só momento orquestrado: o herói entra. Fade-and-slide em cada seção e
   hover em cada cartão é o padrão que faz a página parecer gerada — e rouba
   atenção do que importa. O mecanismo fica disponível (html.animar), mas o
   conteúdo abaixo da dobra aparece pronto. */
.rv { opacity: 1; transform: none;
      transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.animar .rv { opacity: 1; transform: none; }
html.animar .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.animar .rv { opacity: 1; transform: none; }
  html.animar .hero-h .ln > span { transform: none; }
  .cartao:hover, .btn:hover { transform: none !important; }
  .prog { display: none; }
}

/* ── página do acervo ───────────────────────────────────────────────────── */
.voltar { font-family: var(--f-code); font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
          text-transform: uppercase; color: var(--ink2); }
.voltar:hover { color: var(--accent); }
.nota-acervo { font-family: var(--f-code); font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
               text-transform: uppercase; color: var(--ink2); margin: 22px 0 0; }
.nota-acervo b { color: var(--accent); }

/* ── telas pequenas: a folha encosta na borda, como no boletim ───────────── */
@media (max-width: 720px) {
  body { padding: 0 0 40px; }
  .page { border-radius: 0; border-left: 0; border-right: 0; margin-top: 0; max-width: 100%; }
  .topo { border-radius: 0; border-left: 0; border-right: 0; }
  .cabeca { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cabeca .dir { width: 100%; justify-content: space-between; }
  .meta-box { text-align: left; align-items: flex-start; }
  .sep { display: none; }
  .rodape { flex-direction: column; align-items: flex-start; text-align: left; }
  .rodape .meio { text-align: left; }
}
