:root {
  --bg: #0c0d12;
  --glass: rgba(18, 21, 34, 0.55);
  --glass-strong: rgba(14, 16, 27, 0.78);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --text: #eef0f8;
  --text-2: #b9bfd3;
  --muted: #7d849c;
  --accent: #ffcf6e;
  --ice: #7cc4ff;
  --radius: 18px;
  --panel-w: var(--panel-w-pessoa, 420px);  /* --panel-w-pessoa: a largura que a pessoa escolheu (comum.js) */
  --gap: 14px;
  --font: 'Geist', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- vidro ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.6);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* ---------- topo ---------- */
.topbar {
  position: fixed; inset: var(--gap) var(--gap) auto var(--gap); z-index: 10;
  display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; align-items: center; gap: 16px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  justify-self: start; display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em;
}
.brand em { color: var(--accent); }
.brand-mark {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
#search {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 16px; border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
#search:focus-within { border-color: rgba(255,255,255,.22); }
#search .icon { color: var(--muted); flex: none; }
#search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14.5px; }
#search input::placeholder { color: var(--muted); }
#search input::-webkit-search-cancel-button { display: none; }
#search { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  margin: 0; padding: 6px; list-style: none; border-radius: 18px;
  background: rgb(17, 19, 29); backdrop-filter: none;
  max-height: min(420px, 70vh); overflow-y: auto;
}
.suggest li {
  display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; cursor: pointer;
}
.suggest li.active, .suggest li:hover { background: rgba(255,255,255,.07); }
.suggest li.sug-note { cursor: default; font-size: 13px; color: var(--text-2); padding: 10px 12px; line-height: 1.5; }
.suggest li.sug-note:hover { background: none; }
.sug-spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--glass-hi); border-top-color: var(--accent); animation: sug-spin .8s linear infinite; }
@keyframes sug-spin { to { transform: rotate(360deg); } }
.sug-thumb { flex: none; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.05); }
.sug-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sug-text { min-width: 0; display: grid; }
.sug-text b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-text small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd {
  font: 500 11px var(--font); color: var(--muted);
  padding: 4px 8px; border-radius: 8px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.03);
}

.top-actions { justify-self: end; display: flex; gap: 8px; }
.share {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 13px;
  transition: color .2s, border-color .2s, transform .2s var(--ease), margin .4s var(--ease);
}
.share:hover { color: var(--text); border-color: var(--glass-hi); }
.panel-open .top-actions { margin-right: calc(var(--panel-w) + var(--gap)); transition: margin .4s var(--ease); }
.toast {
  position: fixed; left: 50%; top: 76px; z-index: 50; transform: translateX(-50%);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text);
  animation: tip-in .2s var(--ease); transition: opacity .25s;
}
.toast.out { opacity: 0; }
.toast { display: flex; align-items: center; gap: 12px; }
.toast-action { padding: 3px 10px; border-radius: 999px; border: 0; background: var(--accent); color: #1c1606; font-weight: 600; font-size: 12px; }
body.picking #graph, body.picking .node { cursor: crosshair; }
.path-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.path-step { position: relative; padding: 0 0 22px 26px; display: grid; gap: 8px; }
.path-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #1c1606; background: var(--accent);
}
.path-step::after { content: ''; position: absolute; left: 8.5px; top: 26px; bottom: 4px; width: 1px; background: var(--glass-hi); }
.path-step:last-child::after { display: none; }
.step-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.step-node {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); color: var(--text); font-weight: 400;
}
.step-node:hover { background: rgba(255,255,255,.08); }
.step-node .avatar { width: 24px; height: 24px; }
.step-node b { font-weight: 500; font-size: 12.5px; }
.step-arrow { color: var(--muted); }
.step-rel { display: grid; gap: 6px; }
.path-step > .link-btn { justify-self: start; font-size: 12px; }
.more-actions { display: flex; gap: 16px; margin: -12px 0 22px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 400; text-decoration: underline dotted; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.btn .icon { width: 15px; height: 15px; }

/* ---------- imagem e fontes das citações ---------- */
.ctx-body { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.ctx-img { display: block; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 1; }
.ctx-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.ctx-img:hover img { transform: scale(1.05); }
.ctx-refs { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.ctx-refs summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.ctx-refs summary::-webkit-details-marker { display: none; }
.ctx-refs summary::before { content: '›'; display: inline-block; transition: transform .2s; font-size: 13px; }
.ctx-refs[open] summary::before { transform: rotate(90deg); }
.ctx-refs summary:hover { color: var(--text-2); }
.ctx-refs .src-list { margin-top: 8px; }
.sources-section > .muted { margin-top: -4px; }
.sources { margin-top: 12px; display: grid; gap: 10px; }

/* cards de fonte */
.src-list { display: grid; gap: 10px; }
.src-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start;
  padding: 10px; border-radius: 12px; color: inherit; text-decoration: none;
  background: rgba(255,255,255,.035); border: 1px solid var(--glass-line);
  transition: background .15s, transform .15s var(--ease), border-color .15s;
}
a.src-card:hover { background: rgba(255,255,255,.07); border-color: var(--glass-hi); transform: translateY(-1px); }
.src-thumb {
  position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center; background: rgba(255,255,255,.05);
}
.src-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.src-icon { width: 22px; height: 22px; background: var(--muted); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.src-icon-book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E"); }
.src-icon-news { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10M7 12h10M7 16h6'/%3E%3C/svg%3E"); }
.src-icon-paper { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.src-icon-link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.src-icon-note { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h4v4H8a1 1 0 0 0-1 1v3M14 7h4v4h-3a1 1 0 0 0-1 1v3'/%3E%3C/svg%3E"); }
.src-card.has-cover .src-thumb { height: 80px; }
.src-body { min-width: 0; display: grid; gap: 3px; }
.src-site { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); min-width: 0; }
.src-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-fav { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.src-title {
  font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.src-desc { font-size: 12px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.src-desc:empty { display: none; }
.src-archived {
  flex: none; font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 999px;
  color: var(--text-2); border: 1px solid var(--glass-line);
}
.src-meta, .src-cite { font-size: 11px; color: var(--muted); }
.src-cite { font-style: italic; }
.src-card.loading-preview .src-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
/* Com imagem de prévia: vira card de link, imagem em destaque no topo. */
.src-card.has-image .src-icon { display: none; }
.src-card.compact { grid-template-columns: 40px 1fr; padding: 8px; gap: 10px; }
.src-card.compact .src-thumb { width: 40px; height: 40px; }
.src-card.compact.has-cover .src-thumb { height: 56px; }
.src-card.compact .src-icon { width: 18px; height: 18px; }
.src-card.compact .src-title { font-size: 12.5px; -webkit-line-clamp: 2; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.04); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease), opacity .2s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery-note { margin-top: 8px; font-size: 11px; }

/* ---------- linha do tempo da relação (no painel) ---------- */
.rel-tl { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.rel-tl::before { content: ''; position: absolute; left: 25px; top: 8px; bottom: 8px; width: 1px; background: var(--glass-hi); }
.rel-tl li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 0 0 14px; }
.tl-year {
  position: relative; z-index: 1; justify-self: start; align-self: start; margin-top: 1px;
  padding: 2px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
  color: #1c1606; background: var(--accent);
}
.tl-body { min-width: 0; display: grid; gap: 4px; }
.tl-body q { display: block; quotes: none; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.tl-body mark { background: none; color: var(--text); font-weight: 500; box-shadow: inset 0 -0.45em 0 rgba(255, 207, 110, .28); }
.tl-src { font-size: 11px; color: var(--muted); }
.tl-src a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.tl-src a:hover { color: var(--accent); }
.rel-tl li.approx .tl-year { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); cursor: help; }
.rel-tl li.no-year .tl-year { background: rgba(255,255,255,.08); color: var(--muted); }
.tl-undated { margin-top: 4px; }
.tl-undated summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); user-select: none; margin-bottom: 10px;
}
.tl-undated summary::-webkit-details-marker { display: none; }
.tl-undated summary::before { content: '›'; display: inline-block; transition: transform .2s; font-size: 13px; }
.tl-undated[open] summary::before { transform: rotate(90deg); }
.tl-undated summary:hover { color: var(--text-2); }

/* ---------- mídia ---------- */
.media-list { display: grid; gap: 10px; }
.media-item {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06);
}
.media-item video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.media-item audio { display: block; width: 100%; height: 36px; margin: 10px 0 2px; color-scheme: dark; }
.media-item figcaption { padding: 10px 12px 11px; display: grid; gap: 3px; }
.media-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.media-role { color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.media-item b { font-weight: 500; font-size: 13.5px; line-height: 1.35; }
.media-item p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.media-credit {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px;
  font-size: 11px; color: var(--muted);
}
.media-credit a { color: var(--text-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.media-credit a:hover { color: var(--accent); }
.media-more { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------- modal de compartilhar ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .6); animation: fade .2s ease; }
.modal-card {
  position: relative; width: min(440px, 100%); padding: 24px; border-radius: 22px;
  background: rgb(17, 19, 29); backdrop-filter: none;
  animation: modal-in .25s var(--ease);
}
.modal.out .modal-backdrop { opacity: 0; transition: opacity .18s; }
.modal.out .modal-card { opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .18s, transform .18s; }
@keyframes fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal-card .close { top: 16px; right: 16px; }
.modal-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.share-what { margin: 6px 40px 18px 0; color: var(--muted); font-size: 13px; }
.copy-row {
  display: flex; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-line);
}
.copy-row input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  color: var(--text-2); font-size: 13px; text-overflow: ellipsis;
}
.copy-row .btn { height: 34px; }
.networks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.network {
  display: grid; justify-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 14px;
  color: var(--text-2); text-decoration: none; font-size: 11.5px;
  background: rgba(255,255,255,.03); border: 1px solid var(--glass-line);
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.network:hover { background: rgba(255,255,255,.07); color: var(--text); transform: translateY(-2px); }
.network-icon {
  width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
/* Stories: botão (gera a imagem), com o mesmo jeito dos links das outras redes */
button.network { font: inherit; font-size: 11.5px; cursor: pointer; width: 100%; }
.network-story { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--glass-line)); background: rgba(255,207,110,.06); }
.share-native { width: 100%; justify-content: center; margin-top: 10px; }
@media (max-width: 420px) { .networks { grid-template-columns: repeat(3, 1fr); } }

.hint-touch { display: none; }
@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: block; }
}

/* ---------- grafo ---------- */
canvas.edges { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#graph { position: fixed; inset: 0; width: 100%; height: 100%; cursor: grab; }
#graph:active { cursor: grabbing; }

.node { cursor: pointer; }
/* Com algo em foco, os demais nós esmaecem: uma classe só no contêiner (barato), não por nó. */
.nodes.dimmed .node:not(.focus) { opacity: 0.12; }
.node .body { transition: transform .25s var(--ease); }
.node:hover .body { transform: scale(1.08); }
.node .body.enter { animation: pop .7s var(--ease) both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }

.node circle.bg { fill: #10131f; }
.node.no-thumb circle.bg { fill: color-mix(in srgb, var(--c) 25%, #10131f); }
.node circle.ring { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-opacity: .85; }
.node.seed circle.ring { stroke-width: 2.5; }
.node.selected circle.ring { stroke: #fff; stroke-width: 2.5; stroke-opacity: 1; }

.node circle.orbit { fill: none; stroke: var(--c); stroke-opacity: 0; stroke-width: 1; stroke-dasharray: 1.5 5; pointer-events: none; }
.node.unexpanded circle.orbit { stroke-opacity: .45; }
.node.loading circle.orbit { stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 10 8; animation: orbit 1s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -100; } }

.node g.label { opacity: 0; pointer-events: none; transition: opacity .2s; }
.node.show-label g.label, .node.focus g.label { opacity: 1; }
.has-focus .node:not(.focus) g.label { opacity: 0; }
.node g.label rect { fill: rgba(10, 12, 22, 0.72); stroke: rgba(255,255,255,.08); }
.node g.label text {
  fill: var(--text-2); font: 500 11px var(--font); text-anchor: middle; dominant-baseline: central;
}
.node.seed g.label text { fill: var(--text); font-size: 13px; font-weight: 600; }
.node.focus g.label text, .node:hover g.label text { fill: var(--text); }

/* ---------- dock (status) ---------- */
.dock {
  position: fixed; left: 50%; bottom: var(--gap); transform: translateX(-50%); z-index: 5;
  transition: transform .4s var(--ease);
}
.panel-open .dock { transform: translateX(calc(-50% - var(--panel-w) / 2)); }
.status {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; color: var(--text-2); font-size: 13px;
}
.status.error { color: #ff9a8a; border-color: rgba(255, 120, 100, .3); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #6fe3c4; }
.status.busy .pulse { background: var(--accent); animation: blink 1s ease-in-out infinite; }
.status.error .pulse { background: #ff7a6a; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- legenda ---------- */
.legend {
  position: fixed; left: var(--gap); bottom: var(--gap); z-index: 5;
  border-radius: var(--radius); font-size: 12.5px; color: var(--text-2); overflow: hidden;
}
.legend summary {
  list-style: none; display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; cursor: pointer; user-select: none;
}
.legend summary::-webkit-details-marker { display: none; }
.legend summary span { margin-left: 8px; color: var(--muted); }
.legend[open] summary span { color: var(--text); }
.legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
}
.legend-body { padding: 2px 16px 14px; display: grid; gap: 7px; }
.legend-body i { margin-right: 10px; }
.node.filtered { display: none; }
.legend h4 { margin: 2px 0 0; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.type-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.type-filter {
  display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 8px;
  border: 1px solid var(--glass-line); color: var(--text-2); user-select: none;
}
.type-filter em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); }
/* Indicador que desliza entre as opções. */
.seg::before {
  content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 7px; background: rgba(255,255,255,.1); transition: transform .28s var(--ease);
}
.seg:has(input[value="all"]:checked)::before { transform: translateX(100%); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { position: relative; display: block; text-align: center; padding: 5px 8px; border-radius: 7px; color: var(--muted); transition: color .2s; }
.seg input:checked + span { color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg-hint { margin: -2px 0 0 !important; font-size: 11px; }
.legend-body .orbit-i { background: none; border: 1px dashed var(--ice); width: 10px; height: 10px; margin-left: -1px; }
.legend hr { border: 0; border-top: 1px solid var(--glass-line); margin: 4px 0; width: 100%; }
.legend p { margin: 0; color: var(--muted); }
.legend p b { color: var(--text-2); font-weight: 500; }

/* ---------- zoom ---------- */
.zoom {
  position: fixed; right: var(--gap); bottom: var(--gap); z-index: 5;
  display: flex; flex-direction: column; padding: 4px; border-radius: 14px;
  transition: transform .4s var(--ease);
}
.panel-open .zoom { transform: translateX(calc(-1 * (var(--panel-w) + var(--gap)))); }
.zoom button {
  width: 34px; height: 34px; border: 0; border-radius: 10px; background: none;
  display: grid; place-items: center; font-size: 18px; color: var(--text-2);
}
.zoom button:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* ---------- tooltip ---------- */
.tooltip {
  position: fixed; left: 0; top: 0; z-index: 30; width: max-content; max-width: 360px;
  padding: 14px 16px; border-radius: 16px; pointer-events: none;
  background: var(--glass-strong);
  animation: tip-in .18s var(--ease);
}
@keyframes tip-in { from { opacity: 0; scale: .97; } }
.tooltip strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.tooltip .desc { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tooltip .extract { margin: 8px 0 0; font-size: 12.5px; color: var(--text-2); }
.tooltip .extract:empty { display: none; }
.tooltip .hint {
  display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--glass-line);
  font-size: 11px; color: var(--muted);
}

/* ---------- contexto das ligações ---------- */
.rel { margin-top: 12px; display: grid; gap: 10px; }
/* Itens de grid/flex não encolhem abaixo do conteúdo por padrão; aqui precisam. */
.rel > *, .rel-side > *, .section > *, .head > *, .actions > * { min-width: 0; }
.rel-title { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.rel-side { display: grid; gap: 6px; }
.rel-from { font-size: 11px; color: var(--muted); }
.rel-from b { color: var(--text-2); font-weight: 500; }
figure.ctx {
  margin: 0; padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.05);
}
figure.ctx q { display: block; quotes: none; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
figure.ctx mark {
  background: none; color: var(--text); font-weight: 500;
  box-shadow: inset 0 -0.45em 0 rgba(255, 207, 110, .28); padding: 0 1px;
}
.ctx-navbox q, .ctx-infobox q { font-style: italic; }
figure.ctx figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px;
  margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.05);
  font-size: 11px; color: var(--muted);
}
figure.ctx figcaption .where { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
figure.ctx figcaption .when { flex: none; white-space: nowrap; }
figure.ctx figcaption .when:empty { display: none; }
figure.ctx figcaption .when a { color: var(--muted); font-weight: 400; text-decoration: underline dotted; text-underline-offset: 2px; }
figure.ctx figcaption .when a:hover { color: var(--text); }
figure.ctx figcaption a { flex: none; color: var(--text-2); text-decoration: none; font-weight: 500; }
figure.ctx figcaption a:hover { color: var(--accent); }
.muted { color: var(--muted); font-size: 12px; margin: 0; }
.shimmer {
  height: 12px; border-radius: 6px; margin: 4px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.10), rgba(255,255,255,.04));
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.shimmer.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- painel ---------- */
.panel.glass { background: rgb(15, 17, 26); backdrop-filter: none; -webkit-backdrop-filter: none; }
.panel {
  position: fixed; top: var(--gap); right: var(--gap); bottom: var(--gap); z-index: 20;
  width: var(--panel-w); border-radius: 24px; overflow: hidden;
  background: var(--glass-strong);
  transform: translateX(calc(100% + var(--gap) * 2)); transition: transform .5s var(--ease);
}
.panel.open { transform: none; }
/* Alça para mudar a largura: a borda esquerda do painel (só no computador). */
.panel-resize { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; z-index: 3; cursor: ew-resize; touch-action: none; }
.panel-resize::after {
  content: ''; position: absolute; left: 3px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 4px;
  background: var(--glass-hi); opacity: 0; transition: opacity .2s;
}
.panel:hover .panel-resize::after { opacity: .6; }
.panel-resize:hover::after, .panel-resize:focus-visible::after, body.redimensionando .panel-resize::after { opacity: 1; background: var(--accent); }
.panel-resize:focus-visible { outline: none; }
body.redimensionando, body.redimensionando * { cursor: ew-resize !important; user-select: none !important; }
body.redimensionando .panel, body.redimensionando .top-actions, body.redimensionando .dock, body.redimensionando .zoom, body.redimensionando .progress { transition: none !important; }
.close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 12, 22, .6); color: var(--text); border: 1px solid var(--glass-hi);
  backdrop-filter: blur(10px);
}
.close:hover { background: rgba(30, 34, 52, .8); }
#panel-body {
  height: 100%; overflow-y: auto; overflow-x: hidden; padding: 0 24px 28px;
  overflow-wrap: anywhere;  /* palavras/trechos longos quebram em vez de vazar */
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}

.hero { position: relative; margin: 0 -24px; height: 280px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(14, 16, 27, .7) 75%, rgb(14, 16, 27) 100%);
}
.hero[hidden] { display: none; }
.head { position: relative; margin-top: 64px; }
.hero:not([hidden]) + .head { margin-top: -78px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 11.5px; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 500;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.type { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--text-2); border: 1px solid var(--glass-line); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
#panel-body h2 {
  font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.02;
  letter-spacing: -0.015em; margin: 10px 0 6px;
}
#panel-body .desc { color: var(--text-2); margin: 0; font-size: 14px; }
.extract { color: var(--text-2); line-height: 1.7; margin: 18px 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  height: 38px; padding: 0 16px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 13.5px; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #1c1606; }
.btn-primary:hover { background: #ffd987; }
.btn-primary:disabled { background: rgba(255,255,255,.07); color: var(--muted); cursor: default; }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--glass-line); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }

.section { margin-top: 26px; }
.section h3 {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin: 0 0 12px;
}
.section h3 span { text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.panel-rel {
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--glass-line);
}
.panel-rel h3 { color: var(--accent); }
.panel-rel .rel { margin-top: 0; gap: 14px; }
.panel-rel figure.ctx q, .section figure.ctx q { font-size: 13.5px; }

/* painel no modo ligação */
.link-head { margin-top: 56px; }
.link-head h2 { font-size: 32px !important; }
.link-head h2 .amp { color: var(--muted); font-style: italic; }
.ends { display: grid; gap: 0; margin-top: 18px; }
.end {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.03);
  transition: background .15s;
}
.end:hover { background: rgba(255,255,255,.07); }
.end .avatar { width: 44px; height: 44px; }
.bridge { display: block; width: 2px; height: 18px; margin-left: 33px; background: var(--accent); border-radius: 1px; }
.end-text { min-width: 0; display: grid; }
.end-text b { font-weight: 500; font-size: 14px; }
.end-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section .rel { margin-top: 0; gap: 12px; }
.section h3.cites { display: block; }
.section h3 b { color: var(--text-2); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 12px; }

.conn { list-style: none; padding: 0; margin: 0; }
.conn button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 6px 8px; border-radius: 12px; display: flex; align-items: center; gap: 12px;
  transition: background .15s;
}
.conn button:hover { background: rgba(255,255,255,.05); }
.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: color-mix(in srgb, var(--c) 25%, #10131f);
  box-shadow: 0 0 0 1.5px var(--c);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.conn-text { min-width: 0; display: grid; }
.conn-text b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-text small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  :root { --gap: 12px; --panel-w: 0px; }
  .topbar { grid-template-columns: 1fr auto; }
  .share span { display: none; }
  .share { padding: 0 13px; height: 46px; }
  .panel-open .share { margin-right: 0; }
  .brand { display: none; }
  kbd { display: none; }
  .legend { top: 70px; bottom: auto; max-width: calc(100vw - 24px); max-height: calc(100vh - 220px); overflow-y: auto; }
  .legend:not([open]) summary span { display: none; }
  .dock { bottom: 12px; left: 12px; right: 76px; transform: none; }
  .status { white-space: normal; font-size: 12px; }
  .panel-open .dock, .panel-open .zoom { transform: none; }
  .zoom { bottom: 64px; }
  .panel-resize { display: none; }
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 75vh;
    border-radius: 24px 24px 0 0; transform: translateY(100%);
  }
  #panel-body h2 { font-size: 32px; }
}

/* Menos movimento: sem transições (as seções recolhíveis já abrem instantaneamente, ver collapse.js). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  }
}


/* ======================= Mapa Político ======================= */

/* página inicial */

/* nós sem foto: sigla/iniciais */
.node text.badge { fill: var(--c); font: 600 11px var(--font); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node[data-kind="partido"] circle.bg { fill: color-mix(in srgb, var(--c) 22%, #10131f); }
.node[data-kind="projeto"] circle.ring { stroke-dasharray: none; }

/* legenda */
.legend-row { display: flex; align-items: center; }
.legend-row i { margin-right: 10px; }
.link-filters { display: grid; gap: 3px; }
.link-filter { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 6px; color: var(--text-2); }
.link-filter .swatch { width: 18px; height: 3px; border-radius: 2px; background: var(--c); flex: none; }
.link-filter em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.legend { max-height: calc(100vh - 110px); overflow-y: auto; }

/* selos de fonte */
.src-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 500; white-space: nowrap; text-decoration: none;
  color: var(--b, var(--text-2)); border: 1px solid color-mix(in srgb, var(--b, #b9bfd3) 40%, transparent);
  background: color-mix(in srgb, var(--b, #b9bfd3) 10%, transparent);
}
a.src-badge:hover { background: color-mix(in srgb, var(--b, #b9bfd3) 20%, transparent); }
.src-badge[data-src="camara"] { --b: #6fd18a; }
.src-badge[data-src="senado"] { --b: #7cc4ff; }
.src-badge[data-src="wikidata"] { --b: #c9a7ff; }
.src-badge[data-src="wikipedia"] { --b: #e8eaf0; }
.src-badge[data-src="transparencia"] { --b: #ffcf6e; }
.consulted { font-size: 11px; color: var(--muted); margin-top: 18px; }

/* linha do tempo de cargos e filiações */
.career { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
/* Linha do tempo: datas à esquerda, trilho com um marcador por item (círculo = cargo, quadrado = partido), texto à direita. */
.career li:not(:last-child)::after { content: ''; position: absolute; left: 72px; top: 8px; bottom: -8px; width: 1px; background: var(--glass-hi); }
.career li { display: grid; grid-template-columns: 60px 1fr; gap: 26px; padding: 0 0 14px; position: relative; }
.career li::before { content: ''; position: absolute; z-index: 1; left: 68px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #7cc4ff); box-shadow: 0 0 0 3px var(--bg, #0b0c10); }
.career li.partido::before { border-radius: 2px; background: var(--c, #c9a7ff); }
.career .when { font-size: 11px; font-weight: 600; color: var(--text-2); text-align: right; padding-top: 1px; white-space: nowrap; }
.career .what { display: grid; gap: 3px; font-size: 13px; }
.career .what small { color: var(--muted); font-size: 11.5px; }
.level-chip { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* listas do painel */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--glass-line);
  display: grid; gap: 4px; font-size: 13px; line-height: 1.5;
}
.facts li .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.facts li .row b { font-weight: 500; }
.facts li small { color: var(--muted); font-size: 11.5px; }
.facts li a { color: var(--text-2); }
.facts button.as-link { all: unset; cursor: pointer; font-weight: 500; color: var(--text); }
.facts button.as-link:hover { color: var(--accent); }

/* concordância */
.meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.method { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }

/* votos por partido (projeto) */
.party-votes { display: grid; gap: 6px; }
.party-row { display: grid; grid-template-columns: 92px 1fr 64px; gap: 8px; align-items: center; font-size: 12px; }
.party-row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.06); }
.stack i { display: block; height: 100%; }
.stack .sim { background: #6fe3c4; } .stack .nao { background: #ff8a7a; } .stack .abs { background: #b9bfd3; } .stack .out { background: #4a5168; }
.party-row small { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.orientacao { font-size: 10.5px; color: var(--muted); }
.vote-legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.vote-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* avisos da Wikipedia */
.alert {
  padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2);
  background: rgba(255, 207, 110, .07); border: 1px solid rgba(255, 207, 110, .25); display: grid; gap: 4px;
}
.alert b { color: var(--accent); font-weight: 500; }

/* glossário */
abbr.gloss { text-decoration: underline dotted rgba(255,207,110,.7); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
abbr.gloss:hover, abbr.gloss:focus-visible { color: var(--accent); outline: none; }

/* comparação */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-col { min-width: 0; display: grid; gap: 8px; align-content: start; }
.compare-col h4 { margin: 0; font-size: 13px; font-weight: 500; }
.compare-col ul { margin: 0; padding-left: 16px; font-size: 12px; color: var(--text-2); display: grid; gap: 3px; }

/* exportar e caminhos */
body.picking #graph, body.picking .node { cursor: crosshair; }
.about-card { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.about-body h4 { margin: 18px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 500; }
.about-body p, .about-body li { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.about-body ul { padding-left: 18px; margin: 0; display: grid; gap: 4px; }
.about-body a { color: var(--text); }

@media (max-width: 720px) {
  .top-actions .share span { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
}
.sug-badge { display: grid; place-items: center; width: 100%; height: 100%; font-size: 10px; color: #ff9a62; }
.sub { margin: 14px 0 8px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.sub2 { margin: 12px 0 6px; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.election-note, .home-hero .election-note { font-size: 13px; color: var(--text-2) !important; margin: 0 0 18px !important; padding: 8px 12px; border-left: 2px solid var(--glass-hi); background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0; line-height: 1.5 !important; }
.news { border-color: rgba(111,227,196,.3); background: rgba(111,227,196,.06); }
body.embed .topbar .top-actions #about, body.embed .welcome { display: none; }

button.as-link { all: unset; cursor: pointer; font-weight: 500; color: var(--text); }
button.as-link:hover { color: var(--accent); }
button.as-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.top-actions .share { white-space: nowrap; }
/* Com o painel aberto, os botões do topo viram só ícones (senão quebram linha). */
@media (min-width: 721px) {
  .panel-open .top-actions .share span { display: none; }
  .panel-open .top-actions .share { padding-inline: 12px; }
}
.link-filter[data-type="voto"] .swatch { background: linear-gradient(90deg, #6fe3c4 0 40%, #ff8a7a 40% 80%, #b9bfd3 80%); }
.link-filter[data-type="apensada"] .swatch { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 9px); }
.link-filter[data-type="voto"] { flex-wrap: wrap; }
.link-filter[data-type="voto"]::after { content: 'verde: maioria Sim · vermelho: maioria Não · cinza: dividida ou se absteve'; flex-basis: 100%; padding-left: 50px; font-size: 10.5px; color: var(--muted); }

body.empty .legend { display: none; }
@media (max-width: 720px) {
  #export { display: none; }
  .top-actions { gap: 6px; }
}
body.embed .top-actions #export, body.embed .legend { display: none; }

/* biografia (resumo da Wikipedia) logo abaixo do nome */
.bio { margin: 14px 0 4px; display: grid; gap: 8px; }
.bio-text { margin: 0; color: var(--text); font-size: 15px; line-height: 1.65; }
.bio .method { margin: 0; }
.bio .alert { margin-top: 4px; }

/* equipe de governo por mandato */
details.mandato { border: 1px solid var(--glass-line); border-radius: 12px; margin-top: 10px; background: rgba(255,255,255,.02); }
details.mandato summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 11px 14px; font-size: 13px; }
details.mandato summary::-webkit-details-marker { display: none; }
details.mandato summary::before { content: '›'; color: var(--muted); transition: transform .2s; display: inline-block; }
details.mandato[open] summary::before { transform: rotate(90deg); }
details.mandato summary b { font-weight: 500; }
details.mandato summary span { color: var(--text-2); font-variant-numeric: tabular-nums; }
details.mandato summary em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--muted); }
details.mandato .facts { padding: 0 10px 10px; }

/* projeto: assuntos e tramitação */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-line); color: var(--text-2); }
.tag-strong { color: #ff9a62; border-color: rgba(255,154,98,.35); background: rgba(255,154,98,.08); }
.tag.muted { color: var(--muted); }
ol.tram { list-style: none; padding: 0; }
ol.tram li { border-left: 2px solid rgba(255,154,98,.35); border-radius: 0 12px 12px 0; }
.cargo-title { font-weight: 500; font-size: 12.5px; color: var(--text-2); }
details.mandato .facts li .row button.as-link { font-weight: 400; }

/* foto pequena ao lado do nome (equipe de governo) */
.person-row { justify-content: flex-start !important; flex-wrap: nowrap !important; margin-top: 6px; }
.person-row small { margin-left: auto; }
.mini-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: rgba(124,196,255,.12); border: 1px solid rgba(124,196,255,.35); font-size: 10px; font-weight: 600; color: #7cc4ff;
}
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.sug-badge.tema { color: #ffcf6e; font-size: 14px; }
.years { display: grid; gap: 3px; }
.year-row { display: grid; grid-template-columns: 40px 1fr 32px; gap: 8px; align-items: center; }
.year-row small:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.year-row .meter > i { background: #ff9a62; }

/* caminho entre dois nós */
ol.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* Caminho: pessoa → (ligação, tracejada) → pessoa. Avatar pequeno ao lado do nome; o tracejado liga
   o centro de um avatar ao do seguinte. */
ol.path .path-step { padding: 0; gap: 0; }
ol.path .path-step::before, ol.path .path-step::after { display: none; }
.path-step .person-row { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 32px; }
.path-step .person-row .as-link { font-weight: 500; font-size: 13.5px; text-align: left; }
.path-link { margin: 4px 0 4px 13px; padding: 6px 0 10px 22px; border-left: 2px dashed rgba(255,207,110,.45); display: grid; gap: 4px; font-size: 13px; }
.path-link small { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.path-link .src-badge { justify-self: start; }
.path-step .avatar { width: 28px; height: 28px; }

/* tooltip: detalhe da ligação */
.tooltip .tip-list { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); display: grid; gap: 2px; }
.tooltip .tip-list small { color: var(--muted); }
.tooltip .tip-src { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.tooltip .tip-row { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.tooltip .tip-row .pct { font-size: 18px; }
.tooltip .tip-row small { color: var(--muted); font-size: 12px; }
.tooltip .extract.muted { color: var(--muted); }
.tooltip .loading { margin-top: 8px; }

/* colunas do mapa de tema */
.lanes text { text-anchor: middle; pointer-events: none; }
.lanes .lane-title { font: 400 30px var(--serif); fill: var(--text); opacity: .85; }
.lanes .lane-sub { font: 500 11px var(--font); fill: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.lanes .lane-legis .lane-title { fill: #ff9a62; }
.lanes .lane-wiki .lane-title { fill: #cdd2e4; }

/* por que aparece (lista do tema) */
.facts li .why { margin: 2px 0 0 38px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.facts li .why:empty { display: none; }
.facts li .why mark { background: none; color: var(--text); font-weight: 500; }
#theme-quotes .btn { margin-top: 8px; }

/* trecho que vem de legenda de foto: marcado, sem a imagem */
.ctx-caption-tag { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ctx-caption-tag a { color: var(--text-2); text-transform: none; letter-spacing: 0; }
figure.ctx-legenda q { font-style: italic; }

/* Prévia das notícias sempre em miniatura: uma foto grande de alguém embaixo de uma ligação
   (ex.: Pix–PCC) sugeriria um vínculo que a matéria não necessariamente diz. */
.src-card:not(.compact) { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.src-card:not(.compact) .src-thumb { width: 72px; height: 72px; }

/* discursos sobre o tema */
q.speech { display: block; font-size: 13px; line-height: 1.6; color: var(--text); quotes: '“' '”'; margin: 2px 0; }
q.speech mark { background: rgba(255,207,110,.18); color: inherit; border-radius: 3px; padding: 0 2px; }
.speech-tag { font-style: italic; }
#theme-quotes .rel-from { display: block; margin: 8px 0 4px; }

/* cartões da Wikipedia clicáveis por inteiro */
figure.ctx.clickable { cursor: pointer; transition: background .15s, border-color .15s; }
figure.ctx.clickable:hover { background: rgba(255,255,255,.06); border-color: var(--glass-hi); }
figure.ctx.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a.bio-link { display: block; color: var(--text); text-decoration: none; border-radius: 10px; margin: 0 -8px; padding: 6px 8px; transition: background .15s; }
a.bio-link:hover { background: rgba(255,255,255,.05); }
.bio-more { display: block; margin-top: 6px; font-size: 12px; color: var(--accent); }
.facts li .why a { color: inherit; text-decoration: none; }
.facts li .why a:hover { color: var(--text); }
.why-more { color: var(--accent); font-size: 11px; }

/* como votou */
.vote-chip { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.vote-sim { color: #6fe3c4; border-color: rgba(111,227,196,.45); background: rgba(111,227,196,.08); }
.vote-nao { color: #ff8a7a; border-color: rgba(255,138,122,.45); background: rgba(255,138,122,.08); }
.vote-abstencao, .vote-obstrucao, .vote-artigo { color: #b9bfd3; border-color: rgba(185,191,211,.4); }
.vote-nenhum { color: var(--muted); border-color: var(--glass-line); font-weight: 500; }
.kind-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px dashed var(--glass-line); padding: 1px 7px; border-radius: 999px; cursor: pointer; }
.kind-merito { color: var(--text-2); border-style: solid; }
.group-ementa { margin: -4px 14px 8px !important; }

/* ======================= página inicial ======================= */
.home {
  position: fixed; inset: 0; z-index: 6; overflow-y: auto; background: var(--bg, #0a0b10);
  padding: 96px max(16px, calc((100vw - 1040px) / 2)) 48px;
}
.home[hidden] { display: none; }
body:not(.empty) .home { display: none; }
.brand { cursor: pointer; }
.home-hero { max-width: 760px; margin: 24px 0 40px; }
.home-hero h1 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.01em; }
.home-hero h1 em { color: var(--accent); }
.home-hero p { color: var(--text-2); line-height: 1.65; font-size: 16px; margin: 0 0 20px; }
.home-block { margin: 0 0 48px; }
.home-block h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 16px; }
.home-sub { color: var(--text-2); margin: -6px 0 16px; line-height: 1.6; max-width: 760px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 14px; }
.how-card { padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); }
.how-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.levels { border-collapse: collapse; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.levels th { text-align: left; vertical-align: top; padding: 6px 12px 6px 0; color: var(--accent); font-weight: 500; white-space: nowrap; }
.levels td { padding: 6px 0; border-top: 1px solid var(--glass-line); }
.levels tr:first-child td { border-top: 0; }
.levels b, .steps b, .vote-read b { color: var(--text); font-weight: 500; }
.how-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.vote-read { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.how-link, .term-ex { font-size: 13px; color: var(--accent); text-decoration: none; }
.how-link:hover, .term-ex:hover { text-decoration: underline; }

.term-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
#term-filter {
  flex: 1 1 260px; max-width: 360px; padding: 10px 14px; border-radius: 12px; font: inherit; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); outline: none;
}
#term-filter:focus { border-color: var(--glass-hi); }
.term-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.term-groups button {
  font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--text-2);
  background: transparent; border: 1px solid var(--glass-line);
}
.term-groups button[aria-pressed="true"] { color: #1c1606; background: var(--accent); border-color: var(--accent); }
.term-group { margin-bottom: 28px; }
.term-group-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 500; margin: 0 0 12px; }
.term-group-title span { text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 8px; font-size: 12.5px; }
.term-warn { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: -4px 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,207,110,.06); border: 1px solid rgba(255,207,110,.22); max-width: 760px; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.term-card { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 8px; }
/* exemplo real sempre no pé do cartão, na mesma altura em toda a linha */
.term-card .term-ex { margin-top: auto; padding-top: 2px; }
.term-card[hidden] { display: none; }
.term-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.term-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.term-nome { font-size: 12.5px; color: var(--muted); }
.term-flag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border: 1px dashed rgba(255,207,110,.5); padding: 1px 7px; border-radius: 999px; }
.term-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.term-card.informal { border-style: dashed; }
.term-medir { font-size: 12.5px !important; }
.term-medir b { color: var(--text); font-weight: 500; }
.frentes { margin: 0; padding-left: 16px; display: grid; gap: 4px; font-size: 12.5px; }
.frentes a { color: var(--text); }
.frentes small { color: var(--muted); }
/* 3 colunas no desktop (a página tem até 1040px): 5 temas viram 3 + 2, não 4 + 1 sozinho */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.theme-card {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: rgba(255,207,110,.05); border: 1px solid rgba(255,207,110,.2); transition: background .15s, transform .15s;
}
.theme-card:hover { background: rgba(255,207,110,.1); transform: translateY(-1px); }
.theme-card b { font-weight: 600; font-size: 15px; }
.theme-card span { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.home-foot { font-size: 12.5px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--glass-line); padding-top: 16px; }
.home-foot .as-link { color: var(--accent); margin-left: 6px; }
.home-contato { margin: 8px 0 0; }
.home-contato a { color: var(--text-2); }
.home-contato a:hover { color: var(--accent); }
body.empty .dock { display: none; }
@media (max-width: 720px) {
  .home { padding-top: 84px; }
  .levels th { white-space: normal; }
}
body.empty .topbar { background: linear-gradient(var(--bg) 65%, transparent); padding-bottom: 14px; box-shadow: 0 calc(-1 * var(--gap)) 0 var(--bg); }

.myth-verdict { display: inline-block; margin-right: 6px; vertical-align: 1px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #1c1606; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
/* dado ao vivo */
.term-live { font-size: 12.5px !important; color: var(--text) !important; background: rgba(111,227,196,.06); border: 1px solid rgba(111,227,196,.2); border-radius: 10px; padding: 7px 10px; display: block; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 7px; vertical-align: 1px; }
.live-dot.on { background: #6fe3c4; box-shadow: 0 0 0 3px rgba(111,227,196,.18); }
.live-src { color: var(--muted); font-size: 11px; margin-left: 4px; }
.term-card.flash { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,207,110,.25); transition: box-shadow .3s; }
/* agora na câmara */
.agora { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.agora-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); transition: background .15s, transform .15s; }
.agora-card:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }
.agora-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.agora-card small { color: var(--muted); font-size: 12px; }
.agora-card small.ok { color: #6fe3c4; } .agora-card small.no { color: #ff8a7a; }
.agora-ementa { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.agora-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* balão de explicação (termos e etiquetas) */
.gloss-tip {
  position: fixed; left: 0; top: 0; z-index: 60; max-width: min(320px, calc(100vw - 16px));
  padding: 10px 13px; border-radius: 12px; pointer-events: none;
  background: #1a1d29; border: 1px solid rgba(255,207,110,.35); box-shadow: 0 12px 32px rgba(0,0,0,.5);
  font-size: 13px; line-height: 1.5; color: var(--text-2); display: grid; gap: 3px;
  animation: tip-in .12s ease-out;
}
.gloss-tip[hidden] { display: none; }
.gloss-tip strong { color: var(--accent); font-weight: 600; font-size: 12.5px; }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
.term-flag { cursor: pointer; }

/* temas para explorar: três linhas */
.theme-row { margin-bottom: 26px; }
.theme-row h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.theme-row h3 span { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.theme-why { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 760px; }
.theme-card { grid-template-rows: 1fr auto; align-content: stretch; }
.theme-card.has-thumb { grid-template-columns: 44px 1fr; column-gap: 12px; }
.theme-card.has-thumb .theme-go { grid-column: 1 / -1; }
/* mapas e logotipos da Wikipedia: inteiros (contain), sobre um fundo claro discreto */
.theme-thumb { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.9); display: grid; place-items: center; overflow: hidden; }
.theme-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.theme-body { align-content: start; }
.theme-card .theme-go { font-size: 12px; color: var(--accent); margin-top: 6px; opacity: .85; }
.theme-card:hover .theme-go { opacity: 1; }
.theme-body { display: grid; gap: 4px; }
.theme-card small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* progresso da carga */
.progress {
  position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 9;
  width: min(420px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 16px;
  background: rgba(15,17,26,.96); transition: opacity .6s, transform .6s;
}
.progress[hidden] { display: none; }
.panel-open .progress { left: calc(50% - var(--panel-w) / 2); }
.progress-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.progress-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.progress-steps li { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.progress-steps li i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--glass-hi); justify-self: center; }
.progress-steps li em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-steps li small { color: var(--muted); }
.progress-steps .step-run { color: var(--text); }
.progress-steps .step-run i { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; width: 11px; height: 11px; }
.progress-steps .step-done { color: var(--text-2); }
.progress-steps .step-done i { background: #6fe3c4; border-color: #6fe3c4; }
.progress-steps .step-fail i { background: #ff8a7a; border-color: #ff8a7a; }
.progress-slow { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-2); padding: 8px 10px; border-radius: 10px; background: rgba(255,207,110,.07); border: 1px solid rgba(255,207,110,.25); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .progress { bottom: 64px; } .panel-open .progress { left: 50%; } }

/* projeto em linguagem simples */
.ementa-oficial { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); display: grid; gap: 6px; }
.ementa-oficial p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.ementa-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.type.ok { color: #6fe3c4; border-color: rgba(111,227,196,.4); }
.bill-path { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.bill-path::before { content: ''; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: var(--glass-hi); }
.bill-path li { display: grid; justify-items: center; gap: 6px; position: relative; font-size: 10.5px; color: var(--muted); text-align: center; }
.bill-path li i { width: 14px; height: 14px; border-radius: 50%; background: #10131f; border: 2px solid var(--glass-hi); z-index: 1; }
.bill-path li.done i { background: #6fe3c4; border-color: #6fe3c4; }
.bill-path li.done span { color: var(--text-2); }
.bill-path li.now i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,207,110,.2); }
.bill-path li.now span { color: var(--text); font-weight: 600; }
.bill-path.stopped li.now i { background: #ff8a7a; border-color: #ff8a7a; box-shadow: 0 0 0 4px rgba(255,138,122,.18); }
.path-note { margin: 0 0 10px !important; font-size: 11px !important; }
.plain-status { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--text); }
.plain-facts { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.plain-facts b { color: var(--text); font-weight: 500; }
details.tech { margin-top: 6px; }
.bill-path li { cursor: pointer; border-radius: 8px; padding: 2px 0; }
.bill-path li:hover span, .bill-path li:focus-visible span { color: var(--accent); }
.bill-path li:focus-visible { outline: none; }

/* início e fim do caminho */
.bill-path li i { display: grid; place-items: center; }
.bill-path li i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bill-path li.first i, .bill-path li.last i { width: 22px; height: 22px; margin-top: -4px; border-radius: 7px; color: var(--muted); }
.bill-path li.first.done i { color: #0c1a16; }
.bill-path li.last i { border-radius: 50%; }
.bill-path li.last.done i { width: 24px; height: 24px; color: #0c1a16; box-shadow: 0 0 0 4px rgba(111,227,196,.2); }
.bill-path li.last.done i svg { width: 14px; height: 14px; stroke-width: 3; }
.bill-path li.last:not(.done) i { border-style: dashed; }
.bill-path li.now i svg { color: #1c1606; }
.bill-path.stopped li.now i { width: 22px; height: 22px; margin-top: -4px; color: #2a0f0b; }
.bill-path.stopped li.now i svg { width: 12px; height: 12px; stroke-width: 3; }
.bill-path li.first.now i { color: #1c1606; }
.bill-path li.last:not(.done) i svg { width: 14px; height: 14px; stroke-width: 2; margin-left: 2px; }
.bill-path li.first i svg { width: 13px; height: 13px; }

/* quem propôs */
.authors h3 span { text-transform: none; }
.author-list { display: grid; gap: 6px; }
.author-list.compact { padding: 0 10px 10px; max-height: 320px; overflow-y: auto; }
button.author {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 12px 8px 8px; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.035); border: 1px solid var(--glass-line);
  transition: background .15s, border-color .15s;
}
button.author:hover { background: rgba(255,255,255,.07); border-color: var(--glass-hi); }
button.author:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.author[disabled] { cursor: default; }
button.author[disabled]:hover { background: rgba(255,255,255,.035); border-color: var(--glass-line); }
button.author.busy { opacity: .6; }
.author-list.compact button.author { grid-template-columns: 30px 1fr auto; padding: 5px 10px 5px 6px; }
.author-pic { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(124,196,255,.12); border: 2px solid #7cc4ff; }
.author-list.compact .author-pic { width: 30px; height: 30px; border-width: 1.5px; }
.author-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.author-pic.inst { border-color: var(--glass-hi); color: var(--text-2); font-size: 12px; font-weight: 600; background: rgba(255,255,255,.05); border-radius: 12px; }
.author-text { display: grid; gap: 1px; min-width: 0; }
.author-text b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-text small { font-size: 12px; color: var(--muted); }
.author-go { color: var(--muted); font-size: 15px; }
button.author:hover .author-go { color: var(--accent); }

/* voto da bancada em frases */
.vote-summary { display: grid; gap: 6px; margin: 8px 0 2px; }
.vote-summary b { font-size: 15px; }
.vote-summary.vote-sim b { color: #6fe3c4; } .vote-summary.vote-nao b { color: #ff8a7a; } .vote-summary.vote-div b { color: #b9bfd3; }
.mini-stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.mini-stack i { display: block; height: 100%; }
.mini-stack .sim { background: #6fe3c4; } .mini-stack .nao { background: #ff8a7a; }
.tooltip .extract b { color: var(--text); font-weight: 500; }
.vote-count { font-size: 13px; color: var(--text-2); }
.vote-count b { font-weight: 600; } .vote-count .s { color: #6fe3c4; } .vote-count .n { color: #ff8a7a; }

/* quem votou em quê */
.who-voted { margin-top: 14px; }
.vote-group summary { align-items: center; }
.vote-group summary em { margin-left: 8px !important; }
.voters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; padding: 0 10px 10px; }
button.voter { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 4px 8px 4px 4px; border-radius: 10px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
button.voter:hover { background: rgba(255,255,255,.06); color: var(--text); }
button.voter:focus-visible { outline: 2px solid var(--accent); }
button.voter.busy { opacity: .5; }
button.voter span:not(.voter-pic) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.voter small { color: var(--muted); font-size: 11px; }
.voter-pic { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: rgba(124,196,255,.12); }
.voter-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.vote-count .a { color: #e8eaf0; } .vote-count .o { color: #8a90a6; }
.mini-stack .abs { background: #e8eaf0; } .mini-stack .out { background: #4a5168; }
.vote-summary.vote-abs b { color: #e8eaf0; }

/* auditoria: legenda compacta, projetos legíveis, celular */
.legend { max-width: 340px; }
.link-filter[data-type="voto"]::after { white-space: normal; line-height: 1.4; }
.proj-title { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.facts li .proj-title + .row { margin-top: 2px; }
.node[data-kind="tema"] image, .node[data-kind="organizacao"] image { }
@media (max-width: 720px) {
  .hero { height: 150px; }
  .hero:not([hidden]) + .head { margin-top: -40px; }
}

/* transparência: de onde vêm os dados, como corrigir */
.data-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px; font-size: 11.5px; color: var(--muted); }
.data-line > span { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.data-line .as-link { font-size: 11.5px; color: var(--accent); font-weight: 500; }
details.report { margin-top: 10px; }
.report-body { padding: 0 14px 12px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.report-body p { margin: 0 0 8px; }
.report-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.report-body b { color: var(--text); font-weight: 500; }
.report-body a, .report-body .as-link { color: var(--accent); }
/* temas, organizações, partidos: imagem inteira (logos), sem corte */
.hero.logo { height: 150px; background: rgba(255,255,255,.04); }
.hero.logo img { object-fit: contain; padding: 18px 24px 44px; }
.hero.logo:not([hidden]) + .head { margin-top: -30px !important; }
#status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { max-width: min(640px, calc(100vw - 32px)); }
.lanes .lane-traj .lane-title { fill: #c9a7ff; }
.lanes .lane-mais .lane-title { fill: #6fe3c4; }
.lanes .lane-menos .lane-title { fill: #ff8a7a; }
.lanes .lane-governo .lane-title { fill: #60a5fa; }

.agree-context { display: grid; gap: 5px; margin: 6px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px dashed var(--glass-hi); }
.agree-context .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.agree-context .meter > i { background: #b9bfd3; }

/* botão de início: só no celular (lá o logo fica escondido) e fora da página inicial */
#home-btn { display: none; }
@media (max-width: 720px) { body:not(.empty) #home-btn { display: flex; } }
@media (max-width: 720px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  #search { min-width: 0; }
  .top-actions { gap: 4px; }
  .top-actions .share { padding: 0 10px; height: 42px; }
}
.lanes .lane-wiki .lane-title { fill: #cdd2e4; }

/* título do painel não passa por baixo do botão de fechar; mais respiro sem foto */
#panel-body .head h2 { padding-right: 48px; }
.hero[hidden] + .head { margin-top: 76px; }
button.tag-more { font: inherit; font-size: 11.5px; cursor: pointer; color: var(--accent); }
.tags[data-more-list] { margin-top: -2px; }
.veto-tag { color: #ff8a7a; border: 1px solid rgba(255,138,122,.4); border-radius: 999px; padding: 0 6px; font-size: 10.5px; cursor: pointer; }
.career .when.nodate { color: var(--muted); font-weight: 500; cursor: pointer; }
.lanes .lane-votou .lane-title { fill: #6fe3c4; }
.why-first { margin-top: 14px; }
.absent { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--glass-hi); display: grid; gap: 8px; }
.absent .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.absent .tags button.tag { font: inherit; font-size: 11.5px; cursor: pointer; }
.absent .tags button.tag:hover { color: var(--accent); }

/* comparação PL × PLP × PEC × MP */
.how-card.wide { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
.compare-types { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text-2); min-width: 640px; }
.compare-types th, .compare-types td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--glass-line); line-height: 1.45; }
.compare-types thead th { border-top: 0; color: var(--accent); font-size: 14px; }
.compare-types thead th small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.compare-types tbody th { color: var(--text); font-weight: 500; white-space: nowrap; }
.compare-types b { color: var(--text); }
.compare-types a { color: var(--accent); text-decoration: none; }
.voter-filter { width: 100%; box-sizing: border-box; margin: 4px 0 10px; padding: 9px 12px; border-radius: 10px; font: inherit; font-size: 13px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); outline: none; }
.voter-filter:focus { border-color: var(--glass-hi); }
.all-voters .voters { max-height: 280px; overflow-y: auto; }
button.voter[hidden] { display: none; }
.lanes .lane-leis .lane-title { fill: #9be37a; }
.absent-parties .tag.on { color: #1c1606; background: var(--accent); border-color: var(--accent); }
.absent-list .voters { max-height: 260px; overflow-y: auto; }
.before-office { display: grid; gap: 6px; margin: 2px 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); }
.before-office .tags { margin: 0; }
.before-office .tag small { color: var(--muted); }
.paged .paged-more { margin-top: 8px; width: 100%; justify-content: center; }
.paged .paged-more small { color: var(--muted); margin-left: 4px; }
.paged li[hidden] { display: none; }
.node[data-kind="grupo"] circle.bg { fill: color-mix(in srgb, var(--c) 18%, #10131f); }
.node[data-kind="grupo"] text.badge { font-weight: 700; }
.theme-chips { margin: 4px 0 4px; }
.theme-chips .tag { font: inherit; font-size: 11.5px; cursor: pointer; }
.theme-chips .tag.on { color: #1c1606; background: var(--accent); border-color: var(--accent); }
.item-temas { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.classifying { display: flex; gap: 10px; align-items: flex-start; }
.loading.mini { width: 40px; flex: none; }
.loading.mini .shimmer { height: 6px; margin: 4px 0; }

/* comparação */
.cmp-heads { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cmp-head { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.cmp-head .avatar { width: 40px; height: 40px; }
.cmp-head b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.cmp-heads .amp { font-family: var(--serif); color: var(--muted); font-size: 22px; }
.cmp-timeline { width: 100%; height: auto; overflow: visible; }
.cmp-timeline .tl-name { fill: var(--text); font: 600 11px var(--font); }
.cmp-timeline .tl-lab { fill: var(--muted); font: 9px var(--font); }
.cmp-timeline .tl-in { fill: var(--text-2); font: 8px var(--font); }
.cmp-timeline .tl-grid { stroke: var(--glass-line); stroke-width: .5; }
.cmp-timeline .tl-tick { fill: var(--muted); font: 8px var(--font); text-anchor: middle; }
.cmp-timeline g[data-tip] { cursor: pointer; }
.cmp-timeline g[data-tip]:hover rect { filter: brightness(1.25); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--text-2); table-layout: fixed; }
.cmp-table th, .cmp-table td { text-align: left; padding: 7px 6px; border-top: 1px solid var(--glass-line); vertical-align: top; }
.cmp-table thead th { border-top: 0; color: var(--text); font-weight: 600; }
.cmp-table tbody th { color: var(--text-2); font-weight: 500; white-space: pre-wrap; }
.cmp-table b { color: var(--text); }
.cmp-table small { color: var(--muted); }
.theme-bars { display: grid; gap: 7px; }
.tb-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.tb-name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-bars { display: grid; grid-template-columns: 1fr 26px; gap: 2px 6px; align-items: center; }
.tb-bars i { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.tb-bars i.a { background: #ffcf6e; } .tb-bars i.b { background: #7cc4ff; }
.tb-bars small { color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.cmp-table .pending { display: inline-flex; gap: 6px; align-items: center; }
.cmp-timeline .tl-empty { fill: var(--muted); font: italic 9px var(--font); }
.cmp-table thead th:last-child { padding-right: 36px; }

/* situação da lei quanto ao veto */
.law-st { font-size: 10.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; cursor: pointer; }
.law-st.ok { color: #9be37a; border-color: rgba(155,227,122,.4); }
.law-st.part { color: #ffcf6e; border-color: rgba(255,207,110,.45); }
.law-st.tot { color: #ff8a7a; border-color: rgba(255,138,122,.5); background: rgba(255,138,122,.08); }
.law-st.unk { color: var(--muted); border-color: var(--glass-line); border-style: dashed; }
.law-links { margin-top: 2px; }
.status-chips .tag { font: inherit; font-size: 11.5px; cursor: pointer; }
.status-chips .tag.on { color: #1c1606; background: var(--accent); border-color: var(--accent); }
.status-chips .st-total { color: #ff8a7a; } .status-chips .st-parcial { color: #ffcf6e; }
.law-summary b { color: var(--text); }

.cmp-table tr.cmp-grp th { padding-top: 14px; color: var(--accent); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.cmp-warn { font-size: 12.5px; color: var(--text-2); border-left: 3px solid var(--accent); padding: 6px 10px; background: rgba(255,207,110,.06); border-radius: 0 8px 8px 0; }

.node g.label text.sub { font-size: 10px; fill: var(--muted); font-weight: 500; }
.node.has-split circle.orbit { display: none; }

/* Checagens de fatos: o veredito primeiro, colorido (vermelho falso, laranja impreciso, verde
   verdadeiro, cinza outro), com as palavras da agência; a frase vem depois, marcada como alegação. */
.checagens-corpo { padding: 0 14px 12px; }
ul.checagens li.checagem { display: grid; gap: 6px; border-left: 3px solid var(--tom, var(--glass-line)); }
ul.checagens q { font-size: 13px; line-height: 1.45; color: var(--text-2); }
ul.checagens q::before { content: '“'; }
ul.checagens q::after { content: '”'; }
.checagem-veredito { display: flex; align-items: baseline; gap: 6px 8px; flex-wrap: wrap; }
.veredito-agencia { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; margin-right: 10px; }
.checagem-veredito small { color: var(--muted); font-size: 11.5px; }
.selo-checagem { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px;
  color: var(--tom); background: color-mix(in srgb, var(--tom) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tom) 45%, transparent); }
.checagem-rotulo { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.checagem-links { font-size: 12px; color: var(--muted); }
.tom-falso { --tom: #ff6b6b; }
.tom-impreciso { --tom: #ffa94d; }
.tom-verdadeiro { --tom: #69db7c; }
.tom-outro { --tom: #9aa0b4; }

/* Casa de cada passo, quando o projeto passou pela Câmara e pelo Senado. */
.casa-tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px;
  border-radius: 4px; margin-right: 6px; vertical-align: 1px; border: 1px solid var(--glass-line); color: var(--muted); }
.casa-tag.casa-camara { color: #8fdca8; border-color: rgba(143,220,168,.35); }
.casa-tag.casa-senado { color: #8ec5ff; border-color: rgba(142,197,255,.35); }

/* Cartão de projeto: link para a página oficial à esquerda, "ver o projeto" à direita. */
.facts li .item-acoes { margin-top: 4px; font-size: 12.5px; }
.facts li .item-acoes a { color: var(--muted); }
.facts li .item-acoes a:hover { color: var(--text); }

/* Assuntos mais frequentes (grupo de projetos): palavras-chave em tom mais leve que os temas. */
.assuntos { margin: 10px 0 12px; }
.assuntos .tags { margin-bottom: 6px; }
.assuntos .tag.assunto-kw { background: rgba(255,255,255,.03); }
.assuntos .tag.on { border-color: var(--accent); color: var(--text); background: rgba(255,207,110,.14); }

/* ---------- página inicial: busca no topo, índice, listas recolhidas ---------- */
.chk-vereditos { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.chk-veredito { display: inline-flex; align-items: center; gap: 7px; }
.chk-veredito .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; stroke-width: 2.6; color: #0c0d12; background: var(--tom); flex: none; }
.chk-veredito b { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tom); }
.chk-veredito small { font-size: 12px; color: var(--muted); }
.chk-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.chk-links a { font-size: 12.5px; font-weight: 500; color: var(--text); text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--glass-hi); background: rgba(255,255,255,.04); white-space: nowrap; }
.chk-links a:hover { border-color: var(--tom); color: var(--tom); }
.chk-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Na página inicial a busca sai da barra (main.js: placeSearch); as ações ficam à direita. */
.top-actions { grid-column: -2; justify-self: end; }
body.empty #export, body.empty #share { display: none; }
@media (max-width: 720px) { body.empty .brand { display: flex; font-size: 21px; } }
#hero-search { max-width: 640px; margin: 4px 0 16px; }
#hero-search #search { height: 54px; padding-left: 18px; border-color: var(--glass-hi); background: rgba(255,255,255,.05); }
#hero-search #search input { font-size: 16px; }
.home-block { scroll-margin-top: 84px; }
.home-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--glass-line); }
.home-nav button { font: inherit; font-size: 13px; color: var(--text-2); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.home-nav button:hover { color: var(--accent); }
.home-nav button:focus-visible, .more-btn:focus-visible, .term-groups button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more-btn { margin-top: 14px; }
.more-btn[hidden] { display: none; }
.theme-wait, .theme-grid > p { font-size: 13px; color: var(--muted); margin: 0; grid-column: 1 / -1; }

/* agora na câmara: votações do mesmo projeto dentro de um cartão */
/* lista, um projeto por linha: projeto à esquerda, votações à direita */
.agora { grid-template-columns: 1fr; gap: 10px; }
.agora-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 32px; align-items: start; padding: 16px 20px; }
.agora-proj { display: grid; gap: 6px; }
.agora-votos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agora-votos li { display: grid; gap: 5px; }
.agora-votos li + li { padding-top: 10px; border-top: 1px solid var(--glass-line); }
@media (max-width: 720px) {
  .agora-card { grid-template-columns: 1fr; row-gap: 10px; }
  .agora-votos { padding-top: 10px; border-top: 1px solid var(--glass-line); }
}
.placar-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,138,122,.45); overflow: hidden; }
.placar-bar i { display: block; height: 100%; background: #6fe3c4; }

/* tabela PL/PLP/PEC/MP: no celular, primeira coluna fixa e aviso de que rola para o lado */
.scroll-hint { display: none; }
@media (max-width: 720px) {
  .scroll-hint { display: block; font-size: 12px; color: var(--muted); margin: -4px 0 8px; }
  .compare-types tbody th, .compare-types thead th:first-child { position: sticky; left: 0; z-index: 1; background: #141519; }
  /* listas longas: em tela pequena, os 3 primeiros; o resto atrás de "Mostrar mais" (home.js: maisDe).
     Sem carrossel: numa janela estreita com mouse, o cartão cortado na borda parecia erro. */
  .chk-grid:not(.todas) > :nth-child(n+4),
  .agora:not(.todas) > :nth-child(n+4) { display: none; }
}
/* dúvidas comuns: lista de perguntas que abrem (uma coluna, para abrir sem desalinhar vizinhos) */
.duvidas { display: grid; gap: 8px; max-width: 820px; }
.duvida { border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-line); }
.duvida[open] { background: rgba(255,255,255,.05); border-color: var(--glass-hi); }
.duvida summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; font-size: 15.5px; font-weight: 500; }
.duvida summary::-webkit-details-marker { display: none; }
.duvida summary .icon { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.duvida[open] summary .icon { transform: rotate(180deg); }
.duvida summary:hover { color: var(--accent); }
.duvida summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.duvida-corpo { padding: 0 18px 16px; display: grid; gap: 12px; }
.duvida-corpo p { margin: 0; color: var(--text-2); line-height: 1.65; font-size: 14.5px; }
.duvida-pe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 12.5px; padding-top: 10px; border-top: 1px solid var(--glass-line); }
.duvida-fontes { color: var(--muted); }
.duvida-fontes a { color: var(--text-2); }
.duvida-mapa { color: var(--accent); text-decoration: none; font-weight: 500; }
.duvida-mapa:hover { text-decoration: underline; }

/* "Mostrar mais": quantos faltam e uma seta; no celular, largo e centralizado (fácil de tocar) */
.more-btn { display: inline-flex; align-items: center; gap: 8px; }
.more-btn .more-n { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.more-btn .icon { color: var(--muted); }
@media (max-width: 720px) {
  .more-btn { display: flex; width: 100%; justify-content: center; height: auto; min-height: 48px; padding: 12px 16px; border-radius: 14px; margin-top: 12px; }
}

/* ---------- tela do mapa entre 721 e 1180px (janela estreita, tablet) ---------- */
@media (min-width: 721px) and (max-width: 1180px) {
  /* botões do topo só com ícone (o texto fica no title/aria-label): a busca precisa do espaço */
  .share span { display: none; }
  .share { padding: 0 13px; }
  /* com o painel aberto sobra pouca largura: o logo sai e a busca ocupa o lugar dele (sem coluna vazia) */
  .panel-open .brand { display: none; }
  .panel-open .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  /* status entre a legenda (canto esquerdo) e o zoom (canto direito), sem passar por cima deles */
  .dock { left: calc(var(--gap) + 196px); right: calc(var(--gap) + 64px); transform: none; display: flex; justify-content: center; }
  /* painel aberto: o mapa fica estreito demais para status, legenda e zoom lado a lado; o painel já
     mostra o que importa */
  .panel-open .dock { display: none; }
  .status { white-space: normal; max-width: 100%; }
}
/* telas largas com o painel aberto: o status fica no espaço do mapa, entre a legenda e o zoom
   (antes ele só deslizava para a esquerda e cobria a legenda em janelas de até ~1500px) */
@media (min-width: 1181px) {
  .panel-open .dock { left: calc(var(--gap) + 196px); right: calc(var(--panel-w) + var(--gap) * 2 + 64px); transform: none; display: flex; justify-content: center; }
  .panel-open .status { white-space: normal; max-width: 100%; }
}

/* ---------- identidade da página inicial ---------- */
/* Paleta neutra de propósito: vermelho, azul e verde-amarelo são lidos como cores de lado no Brasil.
   O âmbar marca o que é do site (destaques, links); as cores de nível vêm da legenda do mapa. */

/* topo: o desenho de um mapa de ligações ao lado do título (só em telas largas, onde sobra espaço) */
.hero-art-linhas { opacity: .45; }
.hero-art-centro { transform-origin: 170px 150px; animation: hero-pulso 3.2s var(--ease) infinite; }
@keyframes hero-pulso { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0; } }

/* seções como um documento público: numeradas, com filete fino em cima */
#home { counter-reset: secao; }
.home-block { counter-increment: secao; border-top: 1px solid var(--glass-line); padding-top: 26px; }
.home-block > h2::before {
  content: counter(secao, decimal-leading-zero); display: block; margin-bottom: 6px;
  font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
/* números alinhados em datas, placares e contagens */
.agora-card small, .theme-row h3 span, .chk-pe > small, .more-n, #duvidas-quando { font-variant-numeric: tabular-nums; }

/* celular: temas como lista compacta (nome + linha de contexto + seta), não cartões altos */
@media (max-width: 720px) {
  .theme-grid { gap: 8px; }
  .theme-card { padding: 12px 40px 12px 14px; border-radius: 12px; position: relative; gap: 3px; }
  .theme-card.has-thumb { grid-template-columns: 36px 1fr; }
  .theme-thumb { width: 36px; height: 36px; border-radius: 8px; }
  .theme-card .theme-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 0; }
  .theme-card .theme-go::after { content: '→'; font-size: 16px; }
  /* sem área do grid: senão a seta (absoluta) se posiciona dentro da coluna, não no cartão */
  .theme-card.has-thumb .theme-go { grid-column: auto; }
  .theme-card b { font-size: 14.5px; }
}

/* ---------- checagem de fatos: abas, perguntas agrupadas, cartões das agências ---------- */
.fatos-abas { display: flex; gap: 4px; margin: 4px 0 16px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); width: fit-content; max-width: 100%; }
.fatos-abas[hidden] { display: none; }
.fatos-abas [role="tab"] { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.fatos-abas [role="tab"]:hover { color: var(--text); }
.fatos-abas [role="tab"][aria-selected="true"] { background: var(--accent); color: #1c1606; }
.fatos-abas [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aba-n { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .7; }
.aba-n:empty { display: none; }
.painel-nota { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 760px; }
.duvida-grupo + .duvida-grupo { margin-top: 22px; }
.duvida-grupo h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.duvida-lista { display: grid; gap: 8px; }
.duvida-q { display: grid; gap: 3px; }
.duvida-q small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.duvida-frase .duvida-q { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.25; }
.duvida-frase .duvida-q small { font-family: var(--font); }
.duvida-tag { font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.duvida-corpo .term-live { margin: 0; }
button.duvida-termo { color: var(--accent); font-size: 12.5px; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
/* pesquisa nas checagens e botão "Stories" */
.chk-busca { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-hi); }
.chk-busca:focus-within { border-color: var(--accent); }
.chk-busca .icon { color: var(--muted); flex: none; }
.chk-busca input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; padding: 8px 0; }
.chk-busca input::placeholder { color: var(--muted); }
.chk-atalhos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 14px; font-size: 13px; color: var(--muted); }
.chk-atalhos span { margin-right: 4px; }
.chk-atalhos button { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.03); color: var(--text-2); font-size: 13px; }
.chk-atalhos button:hover { border-color: var(--accent); color: var(--accent); }
.chk-vazio { grid-column: 1 / -1; }
.story-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text); background: rgba(255,207,110,.08); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--glass-line)); white-space: nowrap; }
.story-btn:hover { border-color: var(--accent); color: var(--accent); }
.story-btn .network-icon { width: 15px; height: 15px; }
.duvida-acoes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
@media (min-width: 721px) { .chk-grid:not(.todas) > :nth-child(n+7) { display: none; } }
@media (max-width: 720px) {
  .chk-busca .btn { display: none; }
  .fatos-abas { width: 100%; }
  .fatos-abas [role="tab"] { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 6px; font-size: 13.5px; min-height: 44px; white-space: normal; text-align: center; line-height: 1.25; }
}

/* ---------- cartão de checagem (painel do mapa e página inicial) ----------
   Veredito no alto (ícone + palavras da agência, na cor do tom), depois "Alegação checada" (a frase,
   em serifa, entre aspas) e, no pé, o link para a checagem completa. */
.chk-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 16px; border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tom) 9%, transparent), transparent 70px), rgba(255,255,255,.03);
  border: 1px solid color-mix(in srgb, var(--tom) 24%, var(--glass-line)); }
.chk-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tom); opacity: .9; }
.chk-bloco { display: grid; gap: 6px; }
.chk-rotulo { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chk-rotulo small { font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 4px; }
.chk-frase { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--text); quotes: '“' '”'; }
.chk-frase::before { content: open-quote; } .chk-frase::after { content: close-quote; }
.chk-origem { font-size: 12px; color: var(--muted); }
.chk-nota-materia { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); font-style: italic; }
.chk-card .chk-pe { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--glass-line); }
.chk-lista { display: grid; gap: 20px; }
.chk-destaque { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.04);
  font-size: 13px; line-height: 1.55; color: var(--text-2); }
.chk-destaque b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; }
#panel-body .chk-card { padding: 16px 16px 14px; }
#panel-body .chk-frase { font-size: 19px; }
.chk-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }

/* ---------- carregamento no próprio mapa (graph.setGhosts, ui/progress.js) ----------
   Um "spinner" por fonte: trilho fino, arco âmbar girando e um ponto no centro (nada que pareça um
   nó de pessoa). Linha tracejada até o centro só enquanto a fonte está sendo consultada. */
.ghost { pointer-events: none; animation: ghost-entra .45s var(--ease) both; }
.ghost-corpo { transition: transform .35s var(--ease), opacity .35s; transform-box: fill-box; transform-origin: center; }
.ghost-line { stroke: var(--accent); stroke-opacity: .4; stroke-width: 1.2; stroke-dasharray: 3 6; animation: ghost-corre .9s linear infinite; }
.ghost-halo { fill: rgba(255,207,110,.07); stroke: none; transform-box: fill-box; transform-origin: center; animation: ghost-pulso 2s ease-out infinite; }
.ghost-trilho { fill: rgba(12,13,18,.85); stroke: rgba(255,255,255,.12); stroke-width: 2; }
.ghost-arco { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 26 75; transform-box: fill-box; transform-origin: center; animation: ghost-gira 1s linear infinite; }
.ghost-ponto { fill: var(--accent); }
.ghost-icone { display: none; fill: #ff8a7a; font: 700 15px var(--font); text-anchor: middle; }
.ghost-label { fill: var(--text); font: 600 12px var(--font); text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.ghost-sub { fill: var(--muted); font: 500 10.5px var(--font); text-anchor: middle; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
/* na fila: discreto, parado, sem linha */
.ghost-wait { opacity: .55; }
.ghost-wait .ghost-line, .ghost-wait .ghost-halo, .ghost-wait .ghost-arco { display: none; }
.ghost-wait .ghost-ponto { fill: var(--muted); }
.ghost-wait .ghost-label { fill: var(--text-2); font-weight: 500; }
/* demorando: mesma animação, texto em âmbar */
.ghost-slow .ghost-sub { fill: var(--accent); }
/* pronto: rótulos somem na hora, o anel fica verde, cresce e some */
.ghost-done { animation: none; }
.ghost-done .ghost-line, .ghost-done .ghost-label, .ghost-done .ghost-sub, .ghost-done .ghost-halo, .ghost-done .ghost-arco { display: none; }
.ghost-done .ghost-trilho { stroke: #6fe3c4; }
.ghost-done .ghost-ponto { fill: #6fe3c4; }
.ghost-done .ghost-corpo { transform: scale(1.6); opacity: 0; }
/* não respondeu: anel vermelho com "!", clicável */
.ghost-fail .ghost-line { stroke: #ff8a7a; stroke-opacity: .5; animation: none; }
.ghost-fail .ghost-halo, .ghost-fail .ghost-arco, .ghost-fail .ghost-ponto { display: none; }
.ghost-fail .ghost-trilho { stroke: #ff8a7a; fill: rgba(255,138,122,.1); }
.ghost-fail .ghost-icone { display: block; }
.ghost-fail .ghost-sub { fill: #ff9a8a; }
.ghost-fail { pointer-events: auto; cursor: pointer; }
.ghost-fail:hover .ghost-trilho { fill: rgba(255,138,122,.22); }
.ghost-acao { fill: var(--accent); font: 600 11px var(--font); text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.ghost-fail:hover .ghost-acao, .ghost-fail:focus .ghost-acao { text-decoration: underline; }
.ghost-fail:focus { outline: none; }
.ghost-fail:focus-visible .ghost-trilho { stroke-width: 3.5; }
@keyframes ghost-entra { from { opacity: 0; } }
@keyframes ghost-gira { to { transform: rotate(360deg); } }
@keyframes ghost-corre { to { stroke-dashoffset: -9; } }
@keyframes ghost-pulso { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ghost, .ghost-line, .ghost-halo, .ghost-arco { animation: none; } .ghost-corpo { transition: none; } }

/* resumo da carga na barra de status: abre a lista de etapas */
.status-fontes { flex: none; margin-left: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--glass-hi); background: rgba(255,255,255,.04); color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.status-fontes:hover, .status-fontes[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.status-fontes:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.status-fontes.com-falha { border-color: rgba(255,138,122,.5); color: #ff9a8a; }

.votos-mais { margin-top: 10px; width: 100%; justify-content: center; }
.votos-carregando { display: grid; gap: 6px; margin: 10px 0 0; }
.votos-carregando small { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* linha do tempo do tema: um ano por bloco, com um fio vertical ligando os anos */
.linha-tempo { position: relative; display: grid; gap: 8px; padding-left: 14px; }
.linha-tempo::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: linear-gradient(var(--accent), rgba(255,207,110,.08)); }
.tl-ano { position: relative; }
.tl-ano::before { content: ''; position: absolute; left: -14px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-ano[open]::before { background: var(--accent); }
.tl-corpo { padding: 0 10px 10px; display: grid; gap: 6px; }
.tl-corpo .pag-mais { justify-self: start; }


/* ======================================================================================
   Identidade 2 (out/2026): jornal de dados. Newsreader (títulos, feita para leitura de notícia),
   Geist (texto e interface) e Geist Mono (números, datas, contagens: o "registro"). Fundo
   azul-tinta, superfícies em degraus (os cartões se destacam pela luz, não por bordas pesadas),
   âmbar quente só no que é ação ou destaque. As cores de nível do mapa não mudam.
   ====================================================================================== */
:root {
  --bg: #0a0d12;
  --surface: #11151c;
  --surface-2: #161b24;
  --surface-3: #1c2230;
  --glass: rgba(17, 21, 28, 0.62);
  --glass-strong: rgba(13, 16, 22, 0.86);
  --glass-line: rgba(255, 255, 255, 0.07);
  --glass-hi: rgba(255, 255, 255, 0.13);
  --text: #eef1f6;
  --text-2: #b6bdca;
  --muted: #808899;
  --accent: #f6c453;
  --accent-ink: #1d1503;
  --serif: 'Newsreader', Georgia, serif;
  --font: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
}
body { background: var(--bg); font-feature-settings: 'ss01', 'cv11'; }
::selection { background: rgba(246,196,83,.35); color: #fff; }

/* títulos: Newsreader, peso normal, levemente apertados */
.home-hero h1, .home-block h2, #panel-body h2, .brand, .lane-title { font-family: var(--serif); }
.brand { font-size: 23px; font-weight: 500; letter-spacing: -0.01em; }
.brand em { font-style: italic; font-weight: 400; }

/* topo da página inicial: texto e desenho lado a lado, que encolhem juntos */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 26vw, 340px); align-items: center; gap: clamp(16px, 4vw, 56px);
  max-width: none; margin: 28px 0 56px;
}
.hero-texto { min-width: 0; max-width: 760px; }
.home-hero h1 { font-weight: 400; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 18px; font-variation-settings: 'opsz' 72; }
.home-hero h1 em { font-style: italic; color: var(--accent); }
.home-hero p { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 640px; }
.hero-art { width: 100%; height: auto; display: block; pointer-events: none; opacity: .95; }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  /* celular: o desenho vira fundo apagado atrás do título, no canto, sem ocupar espaço */
  .home-hero { position: relative; }
  .home-hero { padding-top: 84px; }
  .hero-art { position: absolute; top: -26px; right: 0; width: 120px; opacity: .55; z-index: 0; }
  .hero-texto { position: relative; z-index: 1; }
}

/* busca grande do topo */
#hero-search #search { height: 58px; background: var(--surface-2); border: 1px solid var(--glass-hi); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -24px rgba(0,0,0,.8); }
#hero-search #search:focus-within { border-color: rgba(246,196,83,.55); box-shadow: 0 0 0 4px rgba(246,196,83,.12); }

/* índice da página: pílulas discretas */
.home-nav { gap: 6px; border-top: 0; padding-top: 6px; }
.home-nav button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--surface); color: var(--text-2); font-size: 13px; }
.home-nav button:hover { color: var(--text); border-color: var(--glass-hi); background: var(--surface-2); }

/* seções: número em mono, título em Newsreader, filete fino */
.home-block { border-top: 1px solid var(--glass-line); padding-top: 36px; margin-bottom: 64px; }
.home-block > h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.home-block > h2::before { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; content: counter(secao, decimal-leading-zero) ' —'; }
.home-sub { font-size: 15px; }

/* cartões: superfície em degrau, borda sutil, levanta no hover */
.theme-card, .agora-card, .how-card, .term-card, .duvida, .chk-card, .myth {
  background: var(--surface); border-color: var(--glass-line); border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.theme-card { background: linear-gradient(180deg, rgba(246,196,83,.05), transparent 60%), var(--surface); border-color: rgba(246,196,83,.16); }
.theme-card:hover, .agora-card:hover { background-color: var(--surface-2); transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(0,0,0,.9); }
.theme-card b { font-size: 16px; }
.duvida[open] { background: var(--surface-2); }
.duvida summary { font-size: 16px; }
.duvida-frase .duvida-q { font-size: 21px; font-variation-settings: 'opsz' 36; }
.chk-frase { font-size: 22px; font-variation-settings: 'opsz' 36; line-height: 1.22; }

/* números, datas e contagens em mono */
.aba-n, .more-n, .progress-head span, .status-fontes, .year-row small, .tl-ano summary em, .home-block > h2::before { font-family: var(--mono); letter-spacing: -0.01em; }

/* botões */
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffd36d; }
.btn-ghost { background: var(--surface-2); border-color: var(--glass-hi); }
.btn-ghost:hover { background: var(--surface-3); }
.story-btn { gap: 7px; background: var(--surface-2); border-color: var(--glass-hi); color: var(--text); }
.story-btn .icon { width: 14px; height: 14px; }
.story-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-3); }

/* abas da checagem de fatos */
.fatos-abas { background: var(--surface); }
.fatos-abas [role="tab"][aria-selected="true"] { color: var(--accent-ink); }

/* painel lateral e vidro um pouco mais sólidos (leitura) */
.legend.glass, .status.glass, #search.glass, .share.glass, .zoom.glass { background: var(--glass-strong); }
/* O painel é para ler: quase opaco (as linhas do mapa atrás do texto atrapalhavam), sem ser sólido. */
.panel.glass { background: rgba(13, 16, 22, 0.95); }
#panel-body h2 { font-weight: 400; letter-spacing: -0.02em; font-variation-settings: 'opsz' 60; }

/* títulos das áreas do mapa */
.lanes .lane-title { font-family: var(--serif); font-style: italic; }

/* telas pequenas: campos de busca e filtro ocupam a largura toda */
@media (max-width: 720px) {
  #term-filter, .chk-busca, #hero-search { max-width: none; width: 100%; flex-basis: 100%; }
}
/* filtro dos termos no mesmo estilo dos outros campos */
#term-filter { background: var(--surface-2); border-color: var(--glass-hi); border-radius: 999px; padding: 11px 18px; }
#term-filter:focus { border-color: rgba(246,196,83,.55); box-shadow: 0 0 0 4px rgba(246,196,83,.12); }

/* "Para votar": atalhos para os serviços do TSE */
.tse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; margin-top: 18px; }
.tse-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--glass-line); color: var(--text); text-decoration: none; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.tse-card b { font-weight: 500; font-size: 15px; }
.tse-card b span { color: var(--accent); font-size: 12px; }
.tse-card > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tse-card:hover { background: var(--surface-2); border-color: var(--glass-hi); transform: translateY(-2px); }
.tse-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tse-aviso { margin-top: 14px; font-size: 13px; color: var(--muted); }
.tse-aviso a { color: var(--text-2); }

/* Pirâmide de cargos (Como funciona): três degraus centralizados, mais estreitos em cima */
.piramide { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; gap: 8px; justify-items: center; }
.degrau { width: 100%; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), color-mix(in srgb, var(--c) 4%, transparent)), var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.degrau-uniao { width: 72%; }
.degrau-estado { width: 86%; }
.degrau-nome { font-family: var(--serif); font-size: 21px; color: var(--c); line-height: 1.1; }
.degrau-nome small { display: block; font-variant-numeric: tabular-nums; margin-top: 3px; font-family: var(--font); font-size: 11.5px; color: var(--muted); }
.degrau-cargos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px 18px; }
.degrau-cargos div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.degrau-cargos b { color: var(--text); font-weight: 500; font-size: 13.5px; }
.degrau-cargos em { font-style: normal; font-family: var(--mono); color: var(--c); font-size: 13px; text-align: right; }
.degrau-cargos span { grid-column: 1 / -1; }
.piramide-nota { margin-top: 0; }
@media (max-width: 760px) {
  .degrau, .degrau-uniao, .degrau-estado { width: 100%; grid-template-columns: 1fr; gap: 10px; }
  .degrau-uniao { width: 88%; } .degrau-estado { width: 94%; }
}

/* Como funciona: dois cartões por linha (o terceiro, a pirâmide, ocupa a largura toda) */
.how-grid { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.degrau-nome small + small { margin-top: 1px; }

/* De quando são as votações da Câmara (comum.js); em destaque quando a Câmara não responde. */
.dados-camara { margin-top: 8px; }
.dados-camara.velho { margin: 8px 0; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  color: #ffd7a8; background: rgba(255, 170, 80, .08); border: 1px solid rgba(255, 170, 80, .3); }
