/* ==========================================================================
   Dossiê Flávio: papel, tinta e carimbo.
   ========================================================================== */

:root {
  --paper: #efe8da;
  --paper-2: #e6ddcb;
  --paper-3: #dbd0ba;
  --card: #f7f2e7;
  --ink: #17140f;
  --ink-2: #4b453b;
  --ink-3: #7a7264;
  --rule: rgba(23, 20, 15, .16);
  --rule-strong: rgba(23, 20, 15, .55);
  --red: #b8241a;
  --red-soft: rgba(184, 36, 26, .12);
  --redact: #17140f;
  --shadow: 0 1px 0 rgba(23,20,15,.08), 0 10px 30px -18px rgba(23,20,15,.45);

  --st-verde: #2e6a3a;
  --st-vinho: #7c1d2c;
  --st-laranja: #b04f17;
  --st-cinza: #625d54;
  --st-azul: #23507a;
  --st-amarelo: #8f6a06;

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Newsreader", "Georgia", serif;
  --f-mono: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110; --paper-2: #1a1816; --paper-3: #24211d; --card: #1d1b18;
    --ink: #ece4d3; --ink-2: #bdb3a1; --ink-3: #8c8475;
    --rule: rgba(236,228,211,.14); --rule-strong: rgba(236,228,211,.5);
    --red: #e2493b; --red-soft: rgba(226,73,59,.16); --redact: #ece4d3;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 34px -20px rgba(0,0,0,.9);
    --st-verde: #6fb77d; --st-vinho: #e0727f; --st-laranja: #ec8a4c; --st-cinza: #a8a196; --st-azul: #7fb0e0; --st-amarelo: #e2b743;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110; --paper-2: #1a1816; --paper-3: #24211d; --card: #1d1b18;
  --ink: #ece4d3; --ink-2: #bdb3a1; --ink-3: #8c8475;
  --rule: rgba(236,228,211,.14); --rule-strong: rgba(236,228,211,.5);
  --red: #e2493b; --red-soft: rgba(226,73,59,.16); --redact: #ece4d3;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 34px -20px rgba(0,0,0,.9);
  --st-verde: #6fb77d; --st-vinho: #e0727f; --st-laranja: #ec8a4c; --st-cinza: #a8a196; --st-azul: #7fb0e0; --st-amarelo: #e2b743;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
/* grão de papel */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }

/* ---------- barra de progresso + topo ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 60; transition: width .1s linear; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { font-family: var(--f-display); font-size: 24px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand b { background: var(--redact); color: var(--paper); padding: 0 6px; font-weight: 400; }
.topnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; text-decoration: none; padding: 6px 9px; white-space: nowrap; border-radius: 2px; color: var(--ink-2); }
.topnav a:hover, .topnav a.on { color: var(--paper); background: var(--ink); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--rule-strong); background: transparent; border-radius: 2px; }
.iconbtn:hover { background: var(--ink); color: var(--paper); }
.iconbtn svg { width: 18px; height: 18px; }
.countdown { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; line-height: 1.15; text-align: right; color: var(--ink-2); white-space: nowrap; }
.countdown strong { display: block; color: var(--red); font-size: 15px; }
@media (max-width: 900px) { .topnav { display: none; } .brand { flex: 1; } }
@media (max-width: 420px) { .countdown { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 40px; border-bottom: 2px solid var(--ink); }
.kicker { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--red); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.hero h1 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(46px, 10.5vw, 148px); line-height: .9; letter-spacing: -.005em; margin: 18px 0 22px;
}
.hero h1 .line { display: block; }
.redact { position: relative; display: inline-block; }
.redact::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; top: .08em; bottom: .02em;
  background: var(--redact); transform-origin: right center;
  animation: unredact .9s cubic-bezier(.7,0,.2,1) forwards;
}
.redact.d1::after { animation-delay: .35s; }
.redact.d2::after { animation-delay: .75s; }
.redact.d3::after { animation-delay: 1.15s; }
@keyframes unredact { to { transform: scaleX(0); } }
.hero h1 .hl { color: var(--red); }
.hero .lede { font-size: clamp(19px, 2.2vw, 24px); max-width: 760px; color: var(--ink-2); margin: 0 0 28px; }
.hero .lede strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); margin-top: 34px; }
.stat { padding: 18px 16px 16px; border-right: 1px solid var(--rule); text-decoration: none; display: block; }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--f-display); font-size: clamp(40px, 6vw, 72px); line-height: 1; display: block; }
.stat .l { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--ink-2); display: block; margin-top: 6px; }
.stat:hover .n { color: var(--red); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; text-decoration: none; border: 1px solid var(--rule-strong); padding: 8px 12px; border-radius: 2px; background: var(--card); }
.jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.searchbig { margin-top: 22px; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; border: 2px solid var(--ink); background: var(--card); padding: 12px 14px; text-align: left; }
.searchbig span { flex: 1; color: var(--ink-3); }
.searchbig kbd { font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--rule-strong); padding: 1px 6px; border-radius: 2px; }

/* ---------- seções ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--rule-strong); }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: end; margin-bottom: 34px; }
.sec-num { font-family: var(--f-display); font-size: clamp(64px, 9vw, 120px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); grid-row: span 2; }
.sec-head h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 5vw, 62px); line-height: .95; margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 720px; }
@media (max-width: 600px) { .sec-head { grid-template-columns: 1fr; } .sec-num { grid-row: auto; font-size: 56px; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters .lbl { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.chip { font-family: var(--f-mono); font-size: 13px; border: 1px solid var(--rule-strong); background: transparent; padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip .ct { opacity: .6; }
.inline-search { flex: 1; min-width: 200px; max-width: 360px; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); border-radius: 2px; }

/* ---------- selos (carimbos) ---------- */
.stamp {
  --c: var(--st-cinza);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c); border: 2px solid var(--c); padding: 3px 8px 2px; border-radius: 3px;
  transform: rotate(-2.5deg); background: color-mix(in srgb, var(--c) 8%, transparent);
  white-space: nowrap;
}
.st-verde { --c: var(--st-verde); } .st-vinho { --c: var(--st-vinho); } .st-laranja { --c: var(--st-laranja); }
.st-cinza { --c: var(--st-cinza); } .st-azul { --c: var(--st-azul); } .st-amarelo { --c: var(--st-amarelo); }
.dot.st-verde { color: var(--st-verde); } .dot.st-vinho { color: var(--st-vinho); } .dot.st-laranja { color: var(--st-laranja); }
.dot.st-cinza { color: var(--st-cinza); } .dot.st-azul { color: var(--st-azul); } .dot.st-amarelo { color: var(--st-amarelo); }

/* ---------- grade de casos ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.case {
  position: relative; text-align: left; border: 1px solid var(--rule-strong); background: var(--card);
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease; min-height: 270px;
}
.case::before { /* clipe de papel */
  content: ""; position: absolute; top: -9px; left: 22px; width: 14px; height: 30px; border: 2px solid var(--ink-3); border-radius: 8px; border-bottom-color: transparent; transform: rotate(8deg);
}
.case:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 18px 40px -22px rgba(0,0,0,.55); }
.case .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.case .date { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.case h3 { font-family: var(--f-body); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.case p { margin: 0; color: var(--ink-2); font-size: 16px; }
.case .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--rule-strong); padding-top: 10px; }
.case .open { color: var(--red); font-weight: 700; text-transform: uppercase; }
.empty { font-family: var(--f-mono); color: var(--ink-3); padding: 30px 0; }

/* ---------- modal ---------- */
dialog.modal {
  border: 0; padding: 0; width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
dialog.modal::backdrop { background: rgba(10, 9, 8, .62); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .28s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.m-head { position: sticky; top: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; z-index: 2; }
.m-head .t { flex: 1; }
.m-head h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 36px); line-height: 1; margin: 8px 0 0; }
.m-body { padding: 20px 20px 28px; overflow-y: auto; }
.m-body h4 { font-family: var(--f-mono); text-transform: uppercase; font-size: 13px; letter-spacing: .1em; color: var(--red); margin: 26px 0 10px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.m-body p { margin: 0 0 12px; }
.alerta { border: 2px solid var(--red); background: var(--red-soft); padding: 12px 14px; font-size: 16px; margin: 14px 0; }
.dele { border-left: 6px solid var(--ink); background: var(--paper-2); padding: 14px 16px; font-style: italic; }
.tl { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ink); }
.tl li { position: relative; padding: 0 0 12px 18px; font-size: 16px; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; background: var(--red); border-radius: 50%; }
.tl time { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); display: block; }
.srcs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.srcs a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; text-decoration: none; padding: 10px 12px; border: 1px solid var(--rule); background: var(--card); }
.srcs a:hover { border-color: var(--red); }
.srcs .k { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; padding: 2px 6px; background: var(--ink); color: var(--paper); align-self: start; grid-row: span 2; }
.srcs .k.primaria { background: var(--st-verde); } .srcs .k.checagem { background: var(--st-azul); }
.srcs .v { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.srcs .tt { font-size: 16px; line-height: 1.3; }
.m-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.btn { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); padding: 9px 14px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-radius: 2px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.verif { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 18px; }

/* ---------- vídeo (facade) ---------- */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.vid { border: 1px solid var(--rule-strong); background: var(--card); display: flex; flex-direction: column; }
.vid .frame { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.vid .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .3s, transform .4s; }
.vid .frame button { position: absolute; inset: 0; border: 0; background: transparent; display: grid; place-items: center; }
.vid .frame button span { width: 62px; height: 44px; background: var(--red); border-radius: 10px; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .2s; }
.vid .frame button span::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.vid .frame:hover img { filter: none; transform: scale(1.03); }
.vid .frame:hover button span { transform: scale(1.08); }
.vid iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid .cap { padding: 10px 12px 12px; font-size: 15px; line-height: 1.3; }
.vid .ch { font-family: var(--f-mono); font-size: 12px; color: var(--red); text-transform: uppercase; display: block; margin-bottom: 4px; }

/* ---------- contradições (flip) ---------- */
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.flip { perspective: 1400px; min-height: 360px; }
.flip { cursor: pointer; }
/* as duas faces ocupam a mesma célula da grade: o cartão cresce até a face mais alta, sem rolagem interna */
.flip-in { display: grid; width: 100%; min-height: inherit; transition: transform .7s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--rule-strong); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.back-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.turn-back { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; background: var(--paper); color: var(--ink); border: 0; padding: 7px 10px; }
.turn-back:hover { background: var(--red); color: #fff; }
.face.front { background: var(--card); }
.face.back { background: var(--ink); color: var(--paper); transform: rotateY(180deg); border-color: var(--ink); }
.face .tag { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.face.front .tag { color: var(--ink-3); }
.face.back .tag { color: var(--red); }
.face .said { font-family: var(--f-body); font-size: 25px; line-height: 1.25; font-style: italic; margin: 14px 0 auto; }
.face .said::before { content: "“"; font-family: var(--f-display); font-style: normal; font-size: 72px; line-height: .5; display: block; color: var(--red); margin-bottom: 8px; }
.face .turn { margin-top: 16px; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; border: 0; background: var(--red); color: #fff; padding: 10px 14px; align-self: flex-start; }
.face ul { margin: 12px 0 0; padding-left: 18px; font-size: 16px; }
.face li { margin-bottom: 8px; }
.face.back a { color: var(--paper); }
.face .src-mini { font-family: var(--f-mono); font-size: 11px; margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; opacity: .85; }
.face.back .turn { background: var(--paper); color: var(--ink); }

/* ---------- placar e falas ---------- */
.score { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border: 2px solid var(--ink); margin-bottom: 18px; }
.score > a { padding: 18px; border-right: 1px solid var(--rule-strong); text-decoration: none; display: block; }
.score > a:last-child { border-right: 0; }
.score .ag { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--ink-3); }
.score .vs { display: flex; align-items: baseline; gap: 12px; margin: 6px 0; }
.score .big { font-family: var(--f-display); font-size: 64px; line-height: 1; color: var(--red); }
.score .small { font-family: var(--f-display); font-size: 32px; color: var(--ink-3); }
.score .who { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; display: block; }
.score p { margin: 0; font-size: 15px; color: var(--ink-2); }
.fair { font-size: 16px; color: var(--ink-2); border-left: 3px solid var(--rule-strong); padding-left: 12px; margin: 0 0 26px; }
.claims { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.claim { border: 1px solid var(--rule-strong); background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.claim q { font-size: 20px; font-style: italic; line-height: 1.3; quotes: "“" "”"; position: relative; padding-right: 8px; }
.claim q.strike { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.claim .fact { font-size: 16px; border-top: 1px dashed var(--rule-strong); padding-top: 10px; color: var(--ink-2); }
.claim .fact b { color: var(--ink); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; display: block; margin-bottom: 3px; }
.claim .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.claim .ag { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.verdict { --c: var(--red); }

/* ---------- plano ---------- */
.absent { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0; border: 2px solid var(--ink); margin-bottom: 30px; }
.absent div { padding: 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.absent .z { font-family: var(--f-display); font-size: 58px; line-height: 1; color: var(--red); }
.absent .w { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; }
.absent-cap { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; margin: 0 0 8px; color: var(--ink-3); }
.acc { border-top: 2px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--rule-strong); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 4px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3vw, 34px); margin: 0; line-height: 1; }
.acc summary .pg { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.acc summary::after { content: "+"; font-family: var(--f-display); font-size: 34px; grid-column: 2; grid-row: 1 / span 2; transition: transform .3s; }
.acc details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.acc .in { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 0 4px 22px; }
.acc .in .col h5 { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 6px; }
.acc .in .prom h5 { color: var(--ink-3); }
.acc .in .prob h5 { color: var(--red); }
.acc .in p { margin: 0 0 10px; font-size: 17px; }
.acc .in .dado { grid-column: 1 / -1; background: var(--paper-2); border-left: 4px solid var(--red); padding: 10px 14px; font-size: 16px; margin-top: 8px; }
.acc .in .src-mini { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 12px; margin-top: 10px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
@media (max-width: 700px) { .acc .in { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; margin-top: 30px; }
.team article { border: 2px solid var(--ink); background: var(--card); }
.team header { background: var(--ink); color: var(--paper); padding: 12px 16px; }
.team header h4 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 26px; margin: 0; line-height: 1; }
.team header span { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; opacity: .8; }
.team .pair { display: grid; grid-template-columns: 1fr 1fr; }
.team .pair > div { padding: 14px 16px; font-size: 16px; }
.team .pair > div + div { border-left: 1px dashed var(--rule-strong); }
.team .pair b { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; display: block; margin-bottom: 4px; color: var(--red); }
.team .nota { margin: 0 16px 14px; font-size: 14px; background: var(--paper-2); padding: 8px 10px; }
.team .src-mini { font-family: var(--f-mono); font-size: 12px; padding: 0 16px 14px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
@media (max-width: 560px) { .team .pair { grid-template-columns: 1fr; } .team .pair > div + div { border-left: 0; border-top: 1px dashed var(--rule-strong); } }

/* ---------- votômetro ---------- */
.vbar { display: flex; height: 44px; border: 2px solid var(--ink); margin: 6px 0 8px; overflow: hidden; }
.vbar span { display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; }
.vbar .s { background: var(--st-verde); } .vbar .n { background: var(--st-vinho); } .vbar .x { background: var(--st-cinza); } .vbar .z { background: var(--ink-3); }
.vlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-mono); font-size: 12px; margin-bottom: 26px; color: var(--ink-2); }
.vlegend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: middle; }
.vtable { width: 100%; border-collapse: collapse; font-size: 16px; }
.vtable th { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; text-align: left; border-bottom: 2px solid var(--ink); padding: 8px 8px; color: var(--ink-3); }
.vtable td { border-bottom: 1px solid var(--rule); padding: 12px 8px; vertical-align: top; }
.vtable tr:hover td { background: var(--red-soft); }
.vtable .d { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; color: var(--ink-3); }
.vtable .mat { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.vote { font-family: var(--f-mono); font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; color: #fff; display: inline-block; min-width: 64px; text-align: center; }
.vote.Sim { background: var(--st-verde); } .vote.Não { background: var(--st-vinho); } .vote.Ausente { background: var(--st-cinza); }
.casa { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--rule-strong); padding: 1px 5px; margin-left: 6px; }
@media (max-width: 760px) {
  .vtable, .vtable tbody { display: block; }
  .vtable thead { display: none; }
  .vtable tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .vtable td { border: 0; padding: 0; min-width: 0; }
  .vtable td.v { grid-row: span 4; }
  .vtable .mat { white-space: normal; }
}
.authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; margin-top: 14px; }
.authors a { border: 1px solid var(--rule-strong); padding: 12px 14px; text-decoration: none; background: var(--card); font-size: 16px; }
.authors a b { font-family: var(--f-mono); font-size: 13px; display: block; color: var(--red); }
h3.sub { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 30px; margin: 46px 0 6px; }

/* ---------- soberania (linha horizontal) ---------- */
.htl { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 0 12px; position: relative; }
.htl-item { flex: 0 0 min(300px, 80vw); scroll-snap-align: start; padding: 0 22px 0 0; position: relative;
  background: linear-gradient(var(--red), var(--red)) 0 19px / 100% 3px no-repeat; }
.htl-item::before { content: ""; position: absolute; top: 12px; left: 0; width: 16px; height: 16px; background: var(--paper); border: 3px solid var(--red); border-radius: 50%; }
.htl-item time { font-family: var(--f-display); font-size: 28px; display: block; margin-bottom: 26px; line-height: 1; transform: translateY(-34px); }
.htl-item p { margin: -18px 0 8px; font-size: 16px; }
.htl-item button { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; background: none; border: 0; color: var(--red); padding: 0; text-decoration: underline; }
.htl-hint { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }

/* ---------- quadro de conexões ---------- */
.board { position: relative; border: 2px solid var(--ink); overflow: hidden; background:
  radial-gradient(circle at 20% 20%, rgba(150,110,60,.12), transparent 40%),
  radial-gradient(circle at 80% 70%, rgba(150,110,60,.1), transparent 45%),
  var(--paper-3); overflow: hidden; }
.board svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.board .wire { fill: none; stroke: var(--red); stroke-width: 2.2; opacity: .75; transition: opacity .2s, stroke-width .2s; cursor: pointer; }
.board .wire.st-alegacao, .board .wire.st-indicio { stroke-dasharray: 6 5; }
.board .wire.dim { opacity: .12; }
.board .wire.hot { opacity: 1; stroke-width: 4; }
.board .wire-hit { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; }
.board .node { cursor: pointer; }
.board .node rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.board .node.centro rect { fill: var(--ink); }
.board .node.centro text { fill: var(--paper); }
.board .node .pin { fill: var(--red); stroke: rgba(0,0,0,.4); }
.board .node text { fill: var(--ink); font-family: var(--f-body); font-weight: 700; font-size: 15px; }
.board .node text.sub { font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; fill: var(--ink-2); }
.board .node.centro text.sub { fill: var(--paper); opacity: .8; }
.board .node.dim { opacity: .3; }
.board .node:focus { outline: none; }
.board .node:focus rect, .board .node.sel rect { stroke: var(--red); stroke-width: 3; }
.board-panel { border: 2px solid var(--ink); border-top: 0; background: var(--card); padding: 16px 18px; min-height: 120px; }
.board-panel h4 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 26px; margin: 0 0 4px; }
.board-panel .hint { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); margin: 0; }
.board-panel ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
@media (max-width: 560px) { .board-panel li { grid-template-columns: minmax(0, 1fr) !important; justify-items: start; } }
.board-panel li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 16px; border-top: 1px dashed var(--rule-strong); padding-top: 8px; }
.board-panel li button { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; background: none; border: 1px solid var(--rule-strong); padding: 4px 8px; }
.board-panel li button:hover { background: var(--ink); color: var(--paper); }
.board-legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; margin-top: 10px; color: var(--ink-2); }
.board-legend svg { width: 34px; height: 8px; vertical-align: middle; margin-right: 6px; }
@media (max-width: 860px) { .board { overflow-x: auto; -webkit-overflow-scrolling: touch; } .board svg { min-width: 860px; } }

/* ---------- linha do tempo vertical ---------- */
.vtl { position: relative; max-width: 900px; }
.vtl::before { content: ""; position: absolute; left: 118px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.vtl-item { display: grid; grid-template-columns: 100px 1fr; gap: 36px; padding: 10px 0; position: relative; }
.vtl-item time { font-family: var(--f-mono); font-size: 14px; text-align: right; color: var(--ink-3); padding-top: 2px; }
.vtl-item::before { content: ""; position: absolute; left: 112px; top: 16px; width: 14px; height: 14px; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; }
.vtl-item.has::before { background: var(--red); border-color: var(--red); }
.vtl-item p { margin: 0; }
.vtl-item button, .vtl-item a.more { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; background: none; border: 0; color: var(--red); padding: 0; text-decoration: underline; margin-left: 6px; }
.vtl-item.final p { font-family: var(--f-display); text-transform: uppercase; font-size: 28px; color: var(--red); }
@media (max-width: 560px) {
  .vtl::before { left: 6px; }
  .vtl-item { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
  .vtl-item time { text-align: left; }
  .vtl-item::before { left: 0; }
}

/* ---------- imprensa ---------- */
.press { columns: 3 260px; column-gap: 26px; }
.press .grp { break-inside: avoid; margin: 0 0 22px; }
.press h5 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 22px; margin: 0 0 6px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; display: flex; justify-content: space-between; }
.press h5 span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); align-self: end; }
.press ul { list-style: none; padding: 0; margin: 0; }
.press li { font-size: 15px; line-height: 1.3; padding: 6px 0; border-bottom: 1px dotted var(--rule-strong); }
.press li a { text-decoration: none; }
.press li a:hover { text-decoration: underline; }

/* ---------- metodologia ---------- */
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.legend div { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; border: 1px solid var(--rule); padding: 14px; background: var(--card); }
.legend p { margin: 0; font-size: 16px; grid-column: 1 / -1; color: var(--ink-2); }
.ai-note { margin-top: 34px; max-width: 760px; border: 1px dashed var(--rule-strong); background: var(--card); padding: 16px 18px; }
.ai-note h3 { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin: 0 0 8px; }
.ai-note p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ---------- busca global ---------- */
.search-dlg { width: min(760px, calc(100vw - 24px)); }
.search-dlg .sbox { display: flex; gap: 10px; padding: 14px; border-bottom: 2px solid var(--ink); position: sticky; top: 0; background: var(--paper); }
.search-dlg input { flex: 1; font: inherit; font-size: 20px; border: 0; background: transparent; color: var(--ink); outline: none; }
.search-dlg .res { padding: 6px 14px 20px; max-height: 70dvh; overflow-y: auto; }
.search-dlg .res h6 { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--red); margin: 16px 0 6px; }
.search-dlg .res button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 10px 4px; font-size: 16px; }
.search-dlg .res button:hover, .search-dlg .res button:focus { background: var(--red-soft); }
.search-dlg .res small { display: block; color: var(--ink-3); font-size: 14px; }
mark { background: var(--red); color: #fff; padding: 0 2px; }

/* ---------- rodapé ---------- */
footer.foot { padding: 50px 0 70px; background: var(--ink); color: var(--paper); }
footer.foot a { color: var(--paper); }
footer.foot .wrap { display: grid; gap: 22px; grid-template-columns: 2fr 1fr; }
footer.foot .big { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(36px, 6vw, 72px); line-height: .9; }
footer.foot p { font-size: 15px; opacity: .85; margin: 0 0 10px; }
@media (max-width: 700px) { footer.foot .wrap { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 13px; padding: 10px 16px; opacity: 0; transition: .3s; z-index: 100; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .progress, .jump, .searchbig, .filters, .board, .board-panel, .vids, footer.foot { display: none !important; }
  body::before { display: none; }
}
