/* Ajustes desta edição: sumário sem números; KPIs e barras do ano. */
.sb-num,
.sb-list a .n,
.sb-tit small { display: none; }
body.sb-recolhido .sb-solo .sb-num { display: grid; }
.sb-site-link .sb-site-icon,
.sb-recursos .sb-site-icon { display: grid; }
.sb-site-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-site-link { margin-bottom: 14px; }
.sb-grp-t { gap: 10px; }
.sb-tit { padding-left: 2px; }
.sb-list a { padding-left: 14px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm);
}
.kpi b {
  display: block;
  color: var(--primary);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.kpi span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}
.kpi em {
  display: block;
  margin-top: 8px;
  color: var(--info);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.barras { display: grid; gap: 8px; margin: 18px 0 8px; }
.barra {
  display: grid;
  grid-template-columns: 88px 1fr 92px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.barra .lab { color: var(--primary); font-weight: 700; }
.barra .trilho {
  height: 10px;
  background: var(--primary-light);
  border-radius: 999px;
  overflow: hidden;
}
.barra .fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: 999px;
}
.barra.pico .fill { background: var(--accent); }
.barra.parcial .fill { background: var(--primary-light); }
.barra .val { color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }

.selos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.selo--ok { background: var(--ok-soft); color: var(--done); }
.selo--cit { background: var(--tec-soft); color: var(--info); }
.selo--ass { background: var(--accent-soft); color: var(--doing); }

.hero h1, .hero .lead, h1.pg, p.sub { overflow-wrap: anywhere; }

.area-banda {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px clamp(18px, 5vw, 32px) 20px;
}
.area-banda .area-card {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.area-card {
  position: relative;
  margin: 8px 0 22px;
  padding: 18px 18px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.area-head h2, .area-head h3 { margin: 0; color: var(--primary); font-size: 18px; }
.area-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.area-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.area-switch button {
  border: 0; background: transparent; color: var(--primary);
  font: inherit; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.area-switch button.is-on { background: var(--primary); color: #fff; }
.area-wrap { position: relative; }
.ga-svg { width: 100%; height: auto; display: block; }
.ga-grid { stroke: var(--border); stroke-width: 1; }
.ga-ylab, .ga-xlab { fill: var(--text-muted); font-size: 11px; font-family: Verdana, Geneva, sans-serif; }
.ga-mlab { fill: var(--accent); font-size: 8px; font-weight: 700; font-family: Verdana, Geneva, sans-serif; }
.ga-mark { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.ga-line { fill: none; stroke: #2c2073; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ga-dot { fill: #2c2073; stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.ga-dot:focus { outline: 2px solid #ff6600; outline-offset: 2px; }
.ga-tip {
  position: absolute; top: 8px; right: 12px;
  background: var(--cover-bg); color: #fff;
  padding: 8px 12px; border-radius: 8px; font-size: 12px;
  pointer-events: none; max-width: 260px;
}
.ga-tip b { display: block; font-size: 14px; }
.ga-tip span { opacity: .85; }
.area-cap { margin: 6px 2px 0; color: var(--text-muted); font-size: 12px; }

.afirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}
a.afirm {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.afirm:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
a.afirm strong { display: block; color: var(--primary); font-size: 15px; margin-bottom: 4px; }
a.afirm span { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
a.afirm em { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 11px; font-style: normal; font-weight: 700; }

.toc-ancora {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px;
}
.toc-ancora a {
  text-decoration: none; font-size: 12px; font-weight: 700;
  color: var(--primary); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
}
.toc-ancora a:hover { background: var(--primary); color: #fff; }
.block[id] { scroll-margin-top: 88px; }

/* Tabela do recorte municipal: rolagem fica no componente, nunca na página. */
.tabela-municipal { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabela-municipal table { min-width: 480px; }
.tabela-municipal:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .afirm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ga-mlab { display: none; }
}

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .barra { grid-template-columns: 72px 1fr 80px; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .topbar { overflow: visible; }
  .busca { flex: 1 1 72px; min-width: 56px; margin: 0 6px; }
  .menu-btn { display: inline-flex !important; padding: 8px; font-size: 0; gap: 0; }
  .menu-btn svg { width: 18px; height: 18px; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); }
}

/* Caderno editorial dos acessos: tipografia e números com hierarquia própria. */
.sb-label { margin: 22px 12px 6px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
body.sb-recolhido .sb-label { display: none; }
.chip--link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.doc--editorial { max-width: 1160px; }
.doc--editorial .block { padding-top: clamp(28px,4vw,54px); padding-bottom: clamp(28px,4vw,54px); }
.doc--editorial .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.doc--editorial .sec-head h2 { margin: 2px 0 0; }
.section-kicker, .story-kicker { color: #a52736; font-size: 12px; font-weight: 700; margin: 0; }
.section-context { max-width: 330px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 26px 0 12px; }
.metric { --metric-color: #2c2073; --metric-soft: #efedfb; display: flex; flex-direction: column; min-width: 0; min-height: 268px; padding: 22px 24px 20px; border: 1px solid #d9d9e5; border-top: 5px solid var(--metric-color); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -24px rgba(32,31,66,.35); }
.metric--blue { --metric-color: #1e5686; --metric-soft: #e9f3f8; }
.metric--green { --metric-color: #21634c; --metric-soft: #e9f4ee; }
.metric--red { --metric-color: #b82c3b; --metric-soft: #f9ebed; }
.metric-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; color: #4f5060; font-size: 13px; font-weight: 700; line-height: 1.3; }
.metric-top svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--metric-color); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.metric-number { display: block; margin: 12px 0 5px; color: #24205a; font-family: 'Futura PT',Verdana,Geneva,sans-serif; font-size: clamp(30px,3.3vw,43px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.metric-explain { margin: 8px 0 16px; color: #414451; font-size: 13px; line-height: 1.55; }
.metric-visual { height: 39px; margin-top: auto; background: var(--metric-soft); border-radius: 5px; }
.metric-bars, .metric-pulses { display: flex; align-items: end; justify-content: space-around; gap: 5px; padding: 4px 8px 0; }
.metric-bars i, .metric-pulses i { display: block; flex: 1; max-width: 28px; min-height: 3px; background: var(--metric-color); border-radius: 3px 3px 0 0; }
.metric-bars i:last-child { opacity: .55; }
.metric-bars--five i:last-child { opacity: 1; }
.metric-track { display: flex; align-items: center; height: 12px; margin: 16px 0 11px; overflow: hidden; border-radius: 50px; }
.metric-track span { display: block; height: 100%; background: var(--metric-color); border-radius: inherit; }
.metric small { display: block; margin-top: 10px; color: #676a76; font-size: 11px; line-height: 1.3; }
.data-note { max-width: 82ch; margin: 18px 0 0; padding-left: 14px; border-left: 3px solid #8e91a6; color: #5d6070; font-size: 12px; line-height: 1.55; }

.story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.story { display: flex; flex-direction: column; min-width: 0; min-height: 272px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid #dcdfe7; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px -25px rgba(30,37,64,.34); transition: transform .18s ease,box-shadow .18s ease; }
.story:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -24px rgba(30,37,64,.36); }
.story:focus-visible { outline: 3px solid #ed2f37; outline-offset: 3px; }
.story--feature { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 42%; min-height: 360px; background: #f5f5ff; border-color: #d4d0ee; }
.story--wide { grid-column: 1/-1; min-height: 0; background: #f7f9fc; }
.story-copy { display: flex; flex-direction: column; flex: 1; padding: 25px 27px 23px; }
.story h3 { margin: 8px 0 10px; color: #282263; font-size: clamp(19px,2.2vw,27px); line-height: 1.16; }
.story p { margin: 0; color: #494d5a; font-size: 13px; line-height: 1.58; }
.story-stat { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; margin-top: 20px; color: #2c2073; }
.story-stat b { font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.story-stat small { color: #5a5d6c; font-size: 11px; }
.story-cta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; color: #af2635; font-size: 12px; font-weight: 700; }
.story-cta span { font-size: 20px; line-height: .7; }
.story-photo { position: relative; min-height: 205px; margin: 0; background: #dedee9; }
.story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story--feature .story-photo img { object-position: 67% center; }
.story-photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; display: inline-block; width: fit-content; max-width: calc(100% - 24px); padding: 6px 9px; color: #fff; background: rgba(22,23,35,.8); border-radius: 5px; font-size: 10px; line-height: 1.35; }
.story--photo .story-copy { padding-top: 20px; }
.reading-more { background: #f5f5ff; border-radius: 18px; }
.reading-more h2 { margin-top: 0; }

/* Páginas de reportagem. */
.article-head { max-width: 800px; margin: 0 auto 25px; }
.article-kicker { color: #a52736; font-size: 12px; font-weight: 700; }
.article-head h1 { margin: 9px 0 14px; color: #24205a; font-size: clamp(30px,4.8vw,54px); line-height: 1.08; letter-spacing: -.025em; }
.article-deck { max-width: 65ch; color: #434653; font-size: clamp(16px,1.75vw,20px); line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; color: #686b77; font-size: 12px; }
.article-figure { margin: 25px 0 32px; }
.article-figure img { display: block; width: 100%; max-height: 450px; object-fit: cover; border-radius: 12px; }
.article-figure--detail img { max-height: 360px; }
.article-figure figcaption { margin: 8px 0 0; color: #6b6f7d; font-size: 11px; }
.article-prose { max-width: 76ch; margin: 0 auto 26px; color: #353948; font-size: 15px; line-height: 1.72; }
.article-prose p { margin: 0 0 16px; }
.article-prose h2 { margin: 30px 0 10px; color: #282263; font-size: 24px; }
.article-callout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; margin: 22px auto 28px; max-width: 76ch; padding: 20px 24px; border-left: 4px solid #ed2f37; background: #f6f5fc; }
.article-callout b { color: #2c2073; font-size: 29px; font-variant-numeric: tabular-nums; }
.article-callout span { color: #444855; font-size: 13px; }
.article-source { margin: 24px 0; padding: 14px 18px; color: #555a67; background: #f5f6f9; border-left: 3px solid #778097; font-size: 12px; line-height: 1.6; }
.article-source a { font-weight: 700; }
.article-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.article-nav a { display: inline-flex; padding: 9px 13px; color: #2c2073; background: #f5f5ff; border: 1px solid #dedcf1; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; }
.article-nav a:hover { border-color: #2c2073; }
.data-table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table th { padding: 12px 14px; color: #fff; background: #2c2073; text-align: left; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #e5e6ed; vertical-align: middle; }
.data-table tbody tr:nth-child(even) { background: #f7f8fc; }
.data-table tbody tr.is-highlight { background: #f0eefb; font-weight: 700; }
.data-table .num { text-align: right; white-space: nowrap; }
.bar-cell { min-width: 130px; width: 24%; }
.bar-cell span { display: block; height: 7px; background: #e5e3f1; border-radius: 10px; }
.bar-cell span i { display: block; height: 100%; background: #2c2073; border-radius: inherit; }
.bar-cell.bar-cell--red span i { background: #ed2f37; }
.table-caption { margin: 6px 0 0; color: #696d79; font-size: 11px; }
.article-visual { margin: 25px 0; }
.article-visual .area-card { margin: 0; }
.two-measures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.measure { padding: 18px; background: #f5f5ff; border: 1px solid #dbd9eb; border-radius: 11px; }
.measure b { display: block; color: #2c2073; font-size: 28px; font-variant-numeric: tabular-nums; }
.measure span { display: block; margin-top: 5px; color: #4b4e5b; font-size: 13px; }
@media (min-width: 1500px) { .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .metric { min-height: 312px; } .metric-number { font-size: clamp(28px,2.2vw,38px); } }
@media (max-width: 760px) { .doc--editorial .sec-head { display: block; } .section-context { margin-top: 10px; } .story--feature { grid-template-columns: 1fr; } .story--feature .story-photo { min-height: 255px; } }
@media (max-width: 580px) { .metric-grid,.story-grid,.two-measures { grid-template-columns: 1fr; } .story--feature,.story--wide { grid-column: auto; } .metric { min-height: 0; } .metric-number { font-size: clamp(32px,8vw,42px); } .story-copy { padding: 22px; } .article-figure img { border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .story { transition: none; } }
@media print { .story, .metric { break-inside: avoid; box-shadow: none; } .article-figure img { max-height: 250px; } }
