/* Radar Social do DF — tema institucional escuro, denso e legível. */

:root {
  --bg:      #0a0e14;
  --bg-2:    #0e141d;
  --panel:   #121a25;
  --panel-2: #172230;
  --line:    #1f2d3d;
  --line-2:  #2b3d52;
  --txt:     #e2ebf5;
  --dim:     #7d92a8;
  --dim-2:   #56697e;

  --brand:   #3d9bff;
  --pos:     #35d6a4;
  --neu:     #6d829a;
  --neg:     #ff5d5d;
  --warn:    #ffa13d;

  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 1.35rem; margin: 0 0 .3rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1rem; margin: 0; font-weight: 700; }
h3 { font-size: .82rem; margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
a { color: var(--brand); text-decoration: none; }

.app { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }

/* ───────── sidebar ───────── */
.side {
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1rem .8rem;
}
.logo { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem 1rem; }
.logo-ico { font-size: 1.6rem; }
.logo b { display: block; font-size: .92rem; letter-spacing: .04em; }
.logo small { color: var(--dim); font-size: .72rem; }

.menu { display: flex; flex-direction: column; gap: .15rem; margin-top: .5rem; }
.mi {
  display: flex; align-items: center; gap: .6rem;
  background: none; border: none; color: var(--dim); cursor: pointer;
  font-family: var(--sans); font-size: .86rem; font-weight: 500;
  padding: .6rem .7rem; border-radius: 8px; text-align: left; width: 100%;
  transition: .12s;
}
.mi i { font-style: normal; font-size: 1rem; width: 1.2rem; text-align: center; filter: grayscale(.3); }
.mi:hover { background: var(--panel); color: var(--txt); }
.mi.active { background: var(--panel-2); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
.pill {
  margin-left: auto; background: var(--neg); color: #fff; font-size: .68rem;
  font-weight: 700; padding: 0 .4rem; border-radius: 10px; min-width: 1.2rem; text-align: center;
}

.side-foot { margin-top: auto; }
.cov { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.cov-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .74rem; color: var(--dim); padding: .2rem 0; }
.cov-row b { color: var(--txt); font-family: var(--mono); font-size: .82rem; }
.demo-tag { font-size: .68rem; color: var(--warn); text-align: center; margin: .7rem 0 0; }

/* ───────── main ───────── */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: .8rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.crumb { font-weight: 600; font-size: .9rem; color: var(--dim); }
.search-wrap { display: flex; gap: .4rem; flex: 1; max-width: 520px; }
.search-wrap input {
  flex: 1; background: var(--bg); border: 1px solid var(--line-2); color: var(--txt);
  font-family: var(--mono); font-size: .78rem; padding: .5rem .7rem; border-radius: 8px; outline: none;
}
.search-wrap input:focus { border-color: var(--brand); }
.search-wrap button {
  background: var(--brand); color: #041423; border: none; font-weight: 700; font-family: var(--sans);
  font-size: .8rem; padding: 0 1rem; border-radius: 8px; cursor: pointer;
}

.scroll { overflow-y: auto; padding: 1.4rem; flex: 1; }
.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ───────── mapa / cartograma ───────── */
.map-head h1 { font-size: 1.5rem; }
.map-head p { color: var(--dim); margin: 0 0 1rem; max-width: 60ch; }
/* cabeçalho de relatório (só na impressão) e botão de exportar */
.report-head { display: none; }
.pdf-btn { font-family: var(--sans); font-size: .8rem; font-weight: 700; cursor: pointer;
  background: var(--panel-2); color: var(--txt); border: 1px solid var(--line-2);
  padding: .5rem .9rem; border-radius: 8px; white-space: nowrap; align-self: flex-start; transition: .12s; }
.pdf-btn:hover { border-color: var(--brand); color: var(--brand); }

/* síntese executiva (conclusão para decisão) */
.synth { border-color: var(--brand); background: linear-gradient(180deg, rgba(61,155,255,.06), transparent 40%); }
.synth-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.synth-head h3 { color: var(--txt); }
.urg { font-size: .7rem; font-weight: 700; color: #041423; padding: .25rem .6rem; border-radius: 20px; letter-spacing: .04em; white-space: nowrap; }
.synth-diag { font-size: .9rem; line-height: 1.6; color: var(--txt); margin: .6rem 0 1rem; }
.synth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.synth-lbl { font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.rec { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: none; }
.rec-rank { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #041423; font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.rec-act { font-size: .82rem; color: var(--dim); margin-top: .2rem; line-height: 1.5; }
.rec-empty { color: var(--dim); font-size: .82rem; padding: .5rem 0; }
@media (max-width: 720px) { .synth-grid { grid-template-columns: 1fr; gap: 1rem; } }

.map-fresh { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 0 0 1rem; font-size: .78rem; }
.fresh-lbl { color: var(--dim); }
.fresh-btn { font-family: var(--mono, inherit); font-size: .78rem; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #041423; border: none; padding: .45rem .9rem; border-radius: 7px; transition: .15s; }
.fresh-btn:hover { box-shadow: 0 0 16px -4px var(--brand); }
.fresh-btn:disabled { opacity: .6; cursor: default; box-shadow: none; }
.fresh-prog { color: var(--pos); font-size: .74rem; }
.map-legend { display: flex; align-items: center; gap: .6rem; font-size: .74rem; color: var(--dim); flex-wrap: wrap; margin-bottom: 1.4rem; }
.map-legend .grad { width: 130px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2f6fb2, #ffa13d, #ff5d5d); }
.map-legend .sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 .3rem; }
.dotleg { display: inline-flex; align-items: center; gap: .35rem; }
.dotleg i { width: 8px; height: 8px; border-radius: 50%; }

.cartogram {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem;
}
.ra-tile {
  position: relative; border-radius: 14px; cursor: pointer; overflow: hidden; text-align: left;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-top: 3px solid var(--heat, var(--line-2));
  padding: .95rem 1.05rem 1.05rem; min-height: 152px;
  display: flex; flex-direction: column; gap: .5rem;
  box-shadow: 0 2px 10px -6px #000;
  transition: transform .14s, box-shadow .14s;
}
.ra-tile::before {
  content: ''; position: absolute; top: -30%; right: -15%; width: 62%; height: 115%;
  background: radial-gradient(circle at 70% 30%, var(--heat, transparent), transparent 62%);
  opacity: .16; pointer-events: none; transition: opacity .14s;
}
.ra-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px #000, 0 0 0 1px var(--heat, var(--line-2)); z-index: 2; }
.ra-tile:hover::before { opacity: .3; }
.ra-tile > * { position: relative; z-index: 1; }
.rt-head { display: flex; align-items: center; justify-content: space-between; }
.rt-num { font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; color: var(--dim); }
.rt-sent { font-size: .58rem; font-weight: 700; padding: .14rem .5rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.rt-sent.neg { color: var(--neg); background: rgba(255, 93, 93, .14); }
.rt-sent.pos { color: var(--pos); background: rgba(53, 214, 164, .14); }
.rt-sent.neu { color: var(--dim); background: rgba(109, 130, 154, .16); }
.rt-nome { font-weight: 800; font-size: 1.08rem; line-height: 1.1; letter-spacing: -.01em; }
.rt-topic { font-size: .74rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-topic.dim { color: var(--dim-2); }
.rt-metric { margin-top: auto; display: flex; align-items: flex-end; gap: .7rem; }
.rt-bar { flex: 1; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rt-bar i { display: block; height: 100%; border-radius: 5px; background: var(--heat, var(--brand)); box-shadow: 0 0 8px -1px var(--heat, var(--brand)); }
.rt-int { font-family: var(--mono); font-size: 1.55rem; font-weight: 700; line-height: 1; color: var(--txt); min-width: 2ch; text-align: right; }

/* ───────── cards genéricos ───────── */
.grid { display: grid; gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; }
.card h3 { margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; }

/* pulso */
.pulse-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pulse-head .ph-main { flex: 1; min-width: 240px; }
.pulse-head .ph-num { font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.pulse-head h1 { font-size: 1.8rem; margin: .1rem 0; }
.pulse-head .ph-sub { color: var(--dim); }
.back-btn { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--txt); cursor: pointer;
  font-family: var(--sans); font-size: .78rem; padding: .45rem .8rem; border-radius: 8px; }
.back-btn:hover { border-color: var(--brand); }

.sent-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: .2rem 0; }
.sent-bar > div { display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #04121e; }

/* Layout tipo "masonry": cards empacotam por altura, sem buracos entre colunas.
   Os cards largos (style grid-column:1/-1) atravessam todas as colunas. */
.pulse-grid { columns: 3 300px; column-gap: 1rem; }
.pulse-grid > .card { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 1rem; }
.pulse-grid > .card[style*="1/-1"] { column-span: all; }
@media (max-width: 980px) { .pulse-grid { columns: 2 300px; } }
@media (max-width: 640px) { .pulse-grid { columns: 1; } }

.bar-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: .6rem; margin-bottom: .5rem; font-size: .8rem; }
.bar-track { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.trend { font-family: var(--mono); font-size: .74rem; width: 1.5rem; text-align: center; }
.trend.up { color: var(--neg); } .trend.down { color: var(--pos); } .trend.flat { color: var(--dim); }

.emerg { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.emerg:last-child { border-bottom: none; }
.emerg .up-ico { color: var(--neg); }
.emerg .delta { margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--neg); font-weight: 700; }

.ent { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.ent:last-child { border-bottom: none; }
.ent .ent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ent .ent-nome { font-size: .84rem; font-weight: 600; }
.ent .ent-tipo { font-size: .66rem; color: var(--dim-2); font-family: var(--mono); }
.ent .ent-menc { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--dim); }

.post { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: none; }
.post-top { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: var(--dim); margin-bottom: .3rem; }
.post-src { color: var(--brand); font-weight: 600; }
.post-txt { font-size: .86rem; }
.post-metrics { display: flex; gap: 1rem; margin-top: .4rem; font-size: .72rem; color: var(--dim); font-family: var(--mono); }
.sent-tag { font-size: .62rem; padding: .05rem .4rem; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.sent-tag.neg { background: #ff5d5d22; color: var(--neg); }
.sent-tag.pos { background: #35d6a422; color: var(--pos); }
.sent-tag.mixed { background: #ffa13d22; color: var(--warn); }
.sent-tag.neu { background: #6d829a22; color: var(--dim); }

/* spark */
.spark { width: 100%; height: 56px; display: block; }
.spark path.line { fill: none; stroke: var(--neg); stroke-width: 2; }
.spark path.area { fill: url(#sparkgrad); opacity: .25; }

/* explicabilidade */
.explain { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--dim-2);
  border-top: 1px dashed var(--line-2); margin-top: 1rem; padding-top: .7rem; }
.explain b { color: var(--dim); }

/* comparação */
.cmp-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.cmp-table th, .cmp-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.cmp-table th { color: var(--dim); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.cmp-table td.num { font-family: var(--mono); text-align: center; }
.cmp-ra { font-weight: 700; cursor: pointer; }
.cmp-ra:hover { color: var(--brand); }
.mini-bar { display: inline-block; height: 6px; border-radius: 3px; vertical-align: middle; }
.arrow { font-family: var(--mono); font-weight: 700; }
.arrow.up { color: var(--neg); } .arrow.down { color: var(--pos); } .arrow.flat { color: var(--dim); }

/* tendências */
.trend-card { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.trend-card:last-child { border-bottom: none; }
.trend-name { font-weight: 600; }
.trend-ras { font-size: .74rem; color: var(--dim); margin-top: .2rem; }
.anom { font-family: var(--mono); font-size: .78rem; padding: .2rem .5rem; border-radius: 6px; background: #ff5d5d18; color: var(--neg); font-weight: 700; }
.trend-nums { font-family: var(--mono); font-size: .78rem; color: var(--dim); text-align: right; white-space: nowrap; }

.flow { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; margin-top: 1rem; }
.flow-step { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .5rem .7rem; text-align: center; }
.flow-step b { display: block; font-size: .84rem; }
.flow-step small { font-family: var(--mono); font-size: .68rem; color: var(--dim); }
.flow-arrow { color: var(--dim-2); }

/* alertas */
.al-header { margin-bottom: 1rem; }
.al-resumo { color: var(--dim); margin: .2rem 0 0; font-size: .9rem; }

.alerts-summary { display: flex; gap: .6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.asum { flex: 1; min-width: 110px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: .7rem .9rem; display: flex; align-items: baseline; gap: .5rem;
  cursor: pointer; transition: .12s; font-family: inherit; }
.asum:hover { border-color: var(--line-2); }
.asum.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.asum b { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--txt); }
.asum span { font-size: .66rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.asum.critico b { color: var(--neg); } .asum.alto b { color: #ff8f4d; } .asum.medio b { color: var(--warn); }

.alert-list { display: flex; flex-direction: column; gap: .7rem; }
.alert { display: flex; align-items: stretch; gap: .9rem; padding: .9rem 1.1rem; border-radius: 12px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-left: 4px solid var(--line-2); cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.alert:hover { transform: translateX(3px); box-shadow: 0 10px 24px -14px #000; border-color: var(--line-2); }
.alert.critico { border-left-color: var(--neg); }
.alert.alto { border-left-color: #ff8f4d; }
.alert.medio { border-left-color: var(--warn); }
.al-cat { font-size: 1.5rem; line-height: 1; align-self: center; width: 2rem; text-align: center; }
.al-main { flex: 1; min-width: 0; }
.al-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.al-badge { font-size: .58rem; font-weight: 800; padding: .12rem .5rem; border-radius: 20px; letter-spacing: .05em; color: #04121e; }
.al-badge.critico { background: var(--neg); } .al-badge.alto { background: #ff8f4d; } .al-badge.medio { background: var(--warn); }
.al-tag { font-size: .64rem; font-weight: 700; padding: .1rem .45rem; border-radius: 5px;
  background: var(--panel-2); color: var(--dim); border: 1px solid var(--line-2); text-transform: uppercase; letter-spacing: .04em; }
.al-ra { font-size: .72rem; color: var(--dim-2); }
.al-head { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.al-detail { font-size: .82rem; color: var(--dim); margin-top: .1rem; }
.al-detail b { color: var(--txt); }
.al-act { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .76rem;
  color: var(--brand); font-weight: 600; }
.al-act-ico { font-size: .6rem; }
.al-metric { text-align: right; white-space: nowrap; min-width: 92px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .1rem; }
.al-num { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--txt); }
.al-unit { font-size: .62rem; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.al-sub { font-size: .66rem; color: var(--dim-2); margin-top: .2rem; }
.al-anom { margin-top: .35rem; width: 92px; }
.al-anom-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.al-anom-bar i { display: block; height: 100%; background: var(--neg); border-radius: 3px; }
.al-anom span { display: block; font-size: .6rem; color: var(--dim); margin-top: .15rem; }
.alerts-empty { color: var(--pos); font-size: .9rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.6rem; text-align: center; }

/* busca */
.search-hint { color: var(--dim); font-size: .82rem; margin-bottom: 1rem; }
.op-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.op { font-family: var(--mono); font-size: .72rem; background: var(--panel-2); border: 1px solid var(--line);
  padding: .25rem .55rem; border-radius: 6px; color: var(--dim); cursor: pointer; }
.op:hover { color: var(--txt); border-color: var(--brand); }
.result-meta { font-size: .78rem; color: var(--dim); margin-bottom: .8rem; }

.disclaimer { background: #ffa13d12; border: 1px solid #ffa13d33; border-radius: 10px;
  padding: .8rem 1rem; font-size: .78rem; color: #d9bd93; margin-bottom: 1.2rem; }
.disclaimer b { color: var(--warn); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { flex-direction: row; align-items: center; overflow-x: auto; padding: .6rem; gap: .6rem; }
  .logo { padding: 0 .5rem 0 0; border-right: 1px solid var(--line); }
  .menu { flex-direction: row; margin: 0; }
  .mi { white-space: nowrap; }
  .mi span.pill { display: none; }
  .side-foot { display: none; }
  .cartogram { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* link de volta ao hub do sistema */
.hub-link {
  display: block; text-align: center; margin-top: .7rem;
  font-size: .74rem; color: var(--dim); text-decoration: none;
  padding: .5rem; border: 1px solid var(--line); border-radius: 8px; transition: .12s;
}
.hub-link:hover { color: var(--brand); border-color: var(--brand); }

/* clima emocional / índice de tensão */
.emo-card .tensao {
  display: flex; align-items: center; gap: .9rem;
  padding: .6rem .2rem 1rem; margin-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.tensao-num { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.tensao-num small { font-size: 1rem; opacity: .7; }
.tensao-lbl { font-size: .82rem; font-weight: 600; color: var(--txt); line-height: 1.3; }

/* ─────────── impressão · relatório executivo em PDF ─────────── */
@media print {
  @page { margin: 1.3cm; }
  /* re-mapeia os tokens para papel (fundo branco, texto escuro) — tudo se adapta */
  :root {
    --bg: #fff; --bg-2: #fff; --panel: #fff; --panel-2: #f5f7f9;
    --line: #d3d8de; --line-2: #c2c8cf; --txt: #14181d; --dim: #55606c; --dim-2: #78828d;
  }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff; font-size: 10.5pt; }

  /* esconde o cromo do app — só o relatório da RA sai no papel */
  .side, .topbar, .pdf-btn, .no-print, .back-btn, .map-fresh, .side-foot, .demo-tag { display: none !important; }
  .app { display: block !important; height: auto !important; }
  .main { display: block !important; }
  .scroll { overflow: visible !important; height: auto !important; padding: 0 !important; }
  .view:not(.active) { display: none !important; }

  /* cabeçalho do relatório */
  .report-head { display: block !important; border-bottom: 2px solid #14181d; padding-bottom: .4rem; margin-bottom: 1rem; }
  .rh-brand { font-size: 8.5pt; letter-spacing: .1em; color: #55606c; text-transform: uppercase; }
  .rh-title { font-size: 20pt; font-weight: 800; margin: .12rem 0; }
  .rh-meta { font-size: 8pt; color: #78828d; }

  /* relatório em coluna única, leitura de cima a baixo */
  .pulse-grid { columns: 1 !important; column-gap: 0 !important; }
  .synth-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
  .pulse-head { margin-bottom: .6rem !important; }
  .ph-num, .ph-sub { color: #55606c !important; }

  /* cards: não quebrar os pequenos no meio; os largos (evidência) podem quebrar */
  .card { border: 1px solid var(--line) !important; box-shadow: none !important;
    padding: .7rem .9rem !important; break-inside: avoid; page-break-inside: avoid; }
  .card[style*="1/-1"] { break-inside: auto; page-break-inside: auto; }
  .synth { break-after: page; page-break-after: always; }  /* síntese ocupa a 1ª página */
  .bar-track { background: #e9edf1 !important; }
  a { text-decoration: none !important; }
}
