*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --cream: #f7f2e3;
  --card: #fffdf6;
  --ink: #263420;
  --dark: #173522;
  --muted: #66755f;
  --gold: #c2912a;
  --goldbg: #f3e3b3;
  --green: #2e7d3a;
  --greenbg: #e3ecda;
  --gray: #9a9a94;
  --line: #e2d9c0;
  --organic: #7da05a;
  --recic: #2e7d3a;
  --rejeito: #b9b3a4;
}
body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 100vh;
}
h1,
h2,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dark);
}
.mono {
  font-variant-numeric: tabular-nums;
}
a {
  color: var(--dark);
}

/* ---- sidebar ---- */
.side {
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  background: var(--cream);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-logo {
  width: 100%;
  height: auto;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  padding: 9px 12px;
  border-radius: 8px;
}
.side-nav a:hover {
  background: var(--greenbg);
}
.side-nav a.active {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}
.side-about {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

/* ---- main ---- */
.main {
  padding: 28px clamp(20px, 4vw, 56px) 48px;
  max-width: 1080px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
}
.main h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  margin: 10px 0 6px;
}
.sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.selwrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.selwrap label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.selwrap select {
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-width: 260px;
}
.pop {
  font-size: 13px;
  color: var(--muted);
}
.dl {
  margin-left: auto;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
}
.dl:hover {
  background: #0e2416;
}

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.sw {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.sw.real {
  background: var(--green);
}
.sw.est {
  background: #a9bd7f;
}
.sw.sim {
  background: var(--gold);
}
.sw.pend {
  background: var(--gray);
}

/* ---- cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.card-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.card-link {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}
.card-link a {
  text-decoration: none;
}
.card-link a:hover {
  text-decoration: underline;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid2 .card {
  margin-bottom: 20px;
}

/* ---- KPI 4 ---- */
.kpi4 {
  margin-bottom: 20px;
}
.kpi4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kpi4c {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.k4-v {
  font-family: Georgia, serif;
  font-size: 34px;
  color: var(--dark);
  line-height: 1;
}
.k4-v small {
  font-size: 15px;
  font-family: system-ui, sans-serif;
  color: var(--muted);
}
.k4-l {
  font-weight: 600;
  font-size: 14.5px;
  margin-top: 4px;
}
.k4-n {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

/* ---- municipality chips + destination bars ---- */
.munlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.munchip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.munchip:hover {
  border-color: var(--green);
}
.munchip.on {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  font-weight: 600;
}
.munchip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.munchip .dot.real {
  background: var(--green);
}
.munchip .dot.estimativa {
  background: #a9bd7f;
}
.munchip .dot.pendente {
  background: var(--gray);
}
.flow-title {
  font-size: 17px;
  margin: 18px 0 8px;
}
.drow {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14.5px;
}
.dlab {
  font-weight: 600;
}
.dbar {
  height: 26px;
  background: #eee7d2;
  border-radius: 6px;
  overflow: hidden;
}
.dfill {
  height: 100%;
  border-radius: 6px;
}
.dfill.aterro {
  background: var(--gray);
}
.dfill.recic {
  background: var(--green);
}
.dfill.org {
  background: var(--gold);
}
.dval {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- per-city flow (gerado pelo app.js) ---- */
.flow-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.flow-total .n {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
}
.flow-total .u {
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
}
.flow-cap {
  font-size: 12.5px;
  color: var(--muted);
}
.bar {
  display: flex;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  color: #fff;
  min-width: 0;
}
.seg.organic {
  background: var(--organic);
}
.seg.recic {
  background: var(--recic);
}
.seg.rejeito {
  background: var(--rejeito);
  color: #4a463c;
}
.sv {
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.sl {
  font-size: 12px;
  white-space: nowrap;
}
.legend {
  font-size: 13px;
}
.fate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13.5px;
  margin-top: 10px;
}
.fate b {
  margin-left: 6px;
}
.fate .bad {
  color: #a33;
}
.fate .mono {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ---- kpis (gerado pelo app.js) ---- */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.kpi.pend {
  opacity: 0.75;
}
.k-lab {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.k-val {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--dark);
}
.k-val small {
  font-size: 13px;
  font-family: system-ui, sans-serif;
  color: var(--muted);
}
.k-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- tags ---- */
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.tag.real {
  background: var(--greenbg);
  color: #1e5a28;
}
.tag.est {
  background: var(--goldbg);
  color: #7a5c12;
}
.tag.pend {
  background: #e8e4d6;
  color: #77716a;
}
.tag.live {
  background: var(--dark);
  color: #fff;
}

/* ---- informalidade band ---- */
.band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}
.band h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.band-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.chips {
  font-family: system-ui, sans-serif;
}
.caveat {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.pendbox {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 18px;
  font-size: 14.5px;
  background: #fbf8ee;
}
.err {
  background: #fdecea;
  border: 1px solid #e5a49e;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

/* ---- simulador ---- */
.simsec {
  background: #fbf3da;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.proj-chip {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.simsec h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.1;
}
.sub2 {
  color: var(--muted);
  margin: 6px 0 18px;
}
.ctrl {
  margin-bottom: 18px;
}
.ctrl label {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cv {
  font-weight: 400;
}
.ctrl input[type="range"] {
  width: 100%;
  accent-color: var(--dark);
}
.hint {
  font-size: 12.5px;
  color: var(--muted);
}
.fund {
  background: #fff;
  text-align: left;
}
.fund-lab {
  font-weight: 700;
  font-size: 15px;
}
.fund-val {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  color: var(--dark);
}
.fund-sub {
  font-size: 14.5px;
  margin-top: 4px;
}
.fund-note {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-top: 8px;
}
.out {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.ocard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.o-lab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.o-val {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--dark);
}
.o-val small {
  font-size: 12px;
  font-family: system-ui, sans-serif;
  color: var(--muted);
}
.o-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.disclaim {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 6px;
}
.assump {
  margin-top: 6px;
}
.assump summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
}
.assump .ab {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---- operação ---- */
.chip-live {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: #e8e4d6;
  color: #77716a;
  padding: 3px 12px;
  border-radius: 20px;
  vertical-align: middle;
}
.op-head {
  margin-bottom: 10px;
}
.op-title {
  font-weight: 700;
}
.op-leg {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.ll-real,
.ll-proj {
  display: inline-block;
  width: 22px;
  height: 3px;
  vertical-align: middle;
  margin-right: 5px;
}
.ll-real {
  background: var(--green);
}
.ll-proj {
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 4px,
    transparent 4px 7px
  );
}
.serie {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.axis {
  stroke: #c9c0a8;
}
.ymax,
.xlab {
  font-size: 11px;
  fill: var(--muted);
}
.s-real {
  stroke: var(--green);
  stroke-width: 2.5;
}
.s-proj {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}
.op-cap {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0;
}
.op-cards {
  margin-top: 12px;
}

/* ---- footer ---- */
footer {
  margin-top: 8px;
}
.srcgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.srcgrid h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}
.srcgrid p {
  font-size: 13px;
  color: var(--muted);
}
.foot-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
.foot-line {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .side-logo {
    width: 180px;
  }
  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side-about {
    margin: 0 0 0 auto;
  }
  .grid2,
  .kpi4-grid,
  .kpis,
  .out,
  .srcgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .grid2,
  .kpi4-grid,
  .kpis,
  .out,
  .srcgrid,
  .fate {
    grid-template-columns: 1fr;
  }
  .drow {
    grid-template-columns: 110px 1fr auto;
  }
}

.art {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--w) / var(--h);
}
.art img {
  position: absolute;
  width: calc(var(--sw) / var(--w) * 100%);
  max-width: none;
  height: auto;
  left: calc(-1 * var(--x) / var(--w) * 100%);
  top: calc(-1 * var(--y) / var(--h) * 100%);
}

[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  background: #faf6ee;
  grid-template-columns: 155px minmax(0, 1fr);
  font-family: Arial, sans-serif;
  line-height: 1.35;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.side {
  padding: 28px 8px;
  gap: 18px;
  background: #faf6ed;
  border-color: #d8d1be;
}
.side-brand {
  color: #123f2a;
  text-decoration: none;
  display: block;
  margin: 0 7px 30px;
}
.side-emblem {
  display: block;
  position: relative;
  overflow: hidden;
  width: 120px;
  height: 123px;
  margin: auto;
}
.side-emblem img {
  position: absolute;
  height: 123px;
  width: auto;
  max-width: none;
  left: 0;
  top: 0;
}
.side-wordmark {
  display: block;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.8px;
  margin-top: 8px;
}
.side-wordmark b {
  color: var(--gold);
}
.side-civis {
  display: block;
  font-weight: bold;
  color: #6d842d;
  text-align: center;
  margin-top: 6px;
}
.side-nav {
  gap: 12px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 14px 7px;
  border-radius: 6px;
  line-height: 1.2;
}
.side-nav svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: none;
  stroke: #426127;
  stroke-width: 1.8;
}
.side-nav a.active svg {
  stroke: #fcf6dc;
}
.side-nav a.active {
  background: linear-gradient(#2d5a40, #0f3c28);
  box-shadow: inset 0 0 0 1px #8aa184;
}
.side-footer-brand {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: -1.5px;
  margin: auto 8px -8px;
  border-top: 1px solid #7c9379;
  padding-top: 25px;
  color: #0d3b2a;
}
.side-footer-brand span {
  color: #6a7e1e;
}
.side-about {
  margin: 0 8px;
  font-size: 14px;
  text-underline-offset: 5px;
}
.main {
  width: 100%;
  max-width: 1160px;
  padding: 25px 24px 26px;
  position: relative;
  min-width: 0;
}
.city-art {
  position: absolute;
  width: 38%;
  right: 0;
  top: 0;
  z-index: -0;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 20%);
}
.eyebrow,
.main h1,
.main > .sub {
  position: relative;
}
.eyebrow {
  font-size: 15px;
  color: #13432f;
  letter-spacing: 1.5px;
}
.eyebrow span {
  color: #282e2b;
}
.eyebrow::after {
  width: 76px;
  height: 5px;
  background: #d2a132;
  margin-top: 8px;
}
.main h1 {
  font-size: clamp(38px, 4.5vw, 61px);
  max-width: 720px;
  letter-spacing: -1.6px;
  line-height: 1.02;
  margin: 14px 0 6px;
  color: #103f29;
}
.main > .sub {
  font-size: 19px;
  font-style: italic;
  color: #41423e;
  margin-bottom: 20px;
}
.topbar {
  flex-wrap: nowrap;
  align-items: start;
  gap: 20px;
  margin-bottom: 16px;
  position: relative;
}
.selwrap {
  flex: 1;
  min-width: 0;
}
.selwrap label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.selwrap select {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  background: #fffdf8;
  border: 1px solid #8ea894;
  border-radius: 7px;
  font-size: 16px;
  color: #1e3026;
}
.pop:empty {
  display: none;
}
.pop {
  font-size: 12px;
}
.dl {
  width: 30%;
  text-align: center;
  padding: 10px;
  background: linear-gradient(#2e5e44, #0e3825);
  border-radius: 6px;
  font-size: 16px;
}
.main > .legend {
  justify-content: space-between;
  font-size: 15px;
  margin: 0 0 16px;
  gap: 12px;
}
.main > .legend > span:first-child {
  font-weight: 600;
  color: #30392d;
}
.sw {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  margin-right: 7px;
  vertical-align: -3px;
}
.kpi4-grid {
  gap: 10px;
}
.kpi4c {
  padding: 12px 14px;
  background: #fffdfaaa;
  border-color: #d4cebd;
  box-shadow: 0 1px 1px #00000008;
}
.k4-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e7ebcd;
  font-size: 34px;
  color: #607e26;
  margin-bottom: 4px;
}
.kpi4c:last-child .k4-icon {
  background: #f7e9a9;
  color: #8c741c;
}
.k4-v {
  font-size: clamp(29px, 3.6vw, 46px);
  font-weight: bold;
  letter-spacing: -2px;
  white-space: nowrap;
}
.k4-v small {
  font-family: Georgia, serif;
  font-size: 19px;
  color: #123f2c;
  letter-spacing: -0.8px;
}
.k4-l {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.k4-n {
  border: 0;
  font-size: 13px;
  line-height: 1.2;
  padding-top: 8px;
  margin-top: 10px;
}
.k4-n::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: #8d9f4a;
  margin-bottom: 9px;
}
.kpi4 {
  margin-bottom: 17px;
}
.grid2 {
  gap: 12px;
}
.card,
.band {
  padding: 14px;
  background: #fffdfaa0;
  border: 1px solid #c9c9ba;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 1px #00000008;
}
.card h2,
.band h2 {
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #113d27;
}
.card h2 > svg,
.band h2 > svg {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: #57792d;
  stroke-width: 1.7;
  background: #edf0d3;
  border-radius: 50%;
  padding: 8px;
  width: 46px;
  height: 46px;
  margin-right: 8px;
  flex-shrink: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-head h2 {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 25px;
}
.view-tabs {
  display: flex;
  border: 1px solid #91a18a;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.view-tabs button {
  font: inherit;
  font-size: 12px;
  padding: 6px 9px;
  background: #faf9f3;
  border: 0;
  color: #163e28;
  cursor: pointer;
}
.view-tabs button[aria-pressed="true"] {
  background: #16452c;
  color: #fff;
}
.region-card {
  min-width: 0;
}
#regionMap {
  position: relative;
}
.map-art {
  width: 100%;
  margin: 0 auto;
}
.card-note {
  font-size: 13px;
  margin: 8px 0 2px;
}
.map-hit {
  position: absolute;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  min-width: 42px;
  min-height: 35px;
}
.map-hit:hover {
  box-shadow: 0 0 0 3px #c49b35;
}
.sorocaba {
  left: 36%;
  top: 44%;
  width: 30%;
  height: 23%;
}
.itu {
  left: 70%;
  top: 12%;
  width: 15%;
}
.boituva {
  left: 11%;
  top: 28%;
  width: 23%;
}
.votorantim {
  left: 54%;
  top: 80%;
  width: 28%;
}
#destBars {
  padding-top: 14px;
}
.drow {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  gap: 0;
  min-height: 66px;
  padding: 12px 14px 12px 27%;
  margin-bottom: 8px;
  border-radius: 6px 16px 16px 6px;
  overflow: hidden;
  background: linear-gradient(95deg, #e1e1dc, #cececa);
  align-content: center;
}
.drow:nth-child(2) {
  background: linear-gradient(95deg, #e4eccd, #b8cb8f);
}
.drow:nth-child(3) {
  background: linear-gradient(95deg, #fae9b9, #f4d691);
}
.drow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5%;
  background: linear-gradient(90deg, #315b3c, #0d3e26);
}
.dlab {
  font-size: 18px;
  line-height: 1.05;
  position: relative;
  width: 100%;
  z-index: 1;
}
.dbar {
  position: absolute;
  left: 7%;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 0;
  background: #ffffff40;
}
.dfill {
  border-radius: 0;
}
.dval {
  font-size: 12px;
  margin-top: 4px;
  position: relative;
}
.card-link {
  font-size: 14px;
  text-underline-offset: 4px;
}
.card-link a {
  text-decoration: underline;
}
.inf-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inf-heading h2 {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin: 0;
  font-size: 24px;
}
.inf-heading .chips {
  white-space: nowrap;
  border-left: 1px solid #647a60;
  padding-left: 10px;
}
.inf-heading .band-note {
  border-left: 1px solid #647a60;
  padding-left: 14px;
  margin: 0 0 0 auto;
  font-size: 13px;
  font-style: italic;
  max-width: 255px;
}
.band {
  padding: 12px;
}
#infDetail {
  margin-top: 14px;
}
.simsec {
  padding: 18px 14px 12px;
  background: #fffcf5aa;
  border: 1px solid #e8c777;
  border-top: 4px solid #dfac37;
  border-radius: 13px;
  margin-bottom: 15px;
}
.proj-chip {
  font-size: 13px;
  color: #1a211a;
  background: linear-gradient(90deg, #e7b335, #f4ca63);
  letter-spacing: 1px;
  padding: 4px 17px;
  border-radius: 20px;
  margin-bottom: 9px;
}
.simsec h2 {
  font-size: clamp(28px, 3.25vw, 42px);
  font-weight: 800;
  letter-spacing: -1.4px;
  color: #123e29;
}
.sub2 {
  font-size: 18px;
  font-style: italic;
  margin: 4px 0 18px;
  color: #494a42;
}
.simsec > .grid2 {
  grid-template-columns: 0.88fr 1.18fr;
  gap: 24px;
}
.simsec .grid2 > .card {
  margin: 0 0 8px;
}
.ctrl {
  margin: 0 0 20px;
}
.ctrl:last-child {
  margin-bottom: 4px;
}
.ctrl label {
  font-size: 14px;
  position: relative;
  padding-bottom: 9px;
}
.cv {
  position: absolute;
  right: 0;
  top: 26px;
  border: 1px solid #c4c6b2;
  padding: 5px 8px;
  min-width: 75px;
  text-align: center;
  border-radius: 6px;
  background: #faf9e9;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.1;
}
.ctrl input {
  max-width: calc(100% - 100px);
  height: 17px;
  cursor: pointer;
}
.hint {
  font-size: 10px;
  max-width: calc(100% - 90px);
  margin-top: 3px;
}
.fund {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #fff0c4, #fff9e8);
  min-height: 310px;
  border: 0;
  padding: 14px 18px;
}
.fund > *:not(.art) {
  position: relative;
  z-index: 1;
}
.fund-lab {
  font-size: 17px;
}
.fund-val {
  font-size: clamp(30px, 4.3vw, 55px);
  font-weight: bold;
  letter-spacing: -2px;
  white-space: nowrap;
  margin: 9px 0 12px;
  line-height: 1.15;
}
.fund-val span {
  background: #f6d273;
  border-radius: 18px;
  padding: 3px 8px;
}
.fund-sub {
  font-size: 16px;
  max-width: 220px;
}
.fund-note {
  font-size: 13px;
  max-width: 220px;
  line-height: 1.15;
}
.fund-woman {
  position: absolute;
  width: 61%;
  left: 0;
  bottom: 0;
}
.fund-man {
  position: absolute;
  width: 42%;
  right: 0;
  bottom: 0;
}
.impact-details {
  margin: 5px 0 10px;
}
.impact-details > summary {
  font-size: 13px;
  cursor: pointer;
  color: #3a5737;
}
.out {
  margin-top: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.disclaim {
  font-size: 12px;
  font-style: italic;
  margin: 8px 0;
}
.assump summary {
  font-size: 13px;
  text-align: right;
}
.assump .ab {
  padding: 14px;
  background: #fffaf0;
  border-radius: 6px;
}
.explainer-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  overflow: hidden;
}
.explainer-card h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.explainer-card p {
  font-size: 14px;
  line-height: 1.15;
}
.info-art {
  width: calc(100% + 10px);
  margin-left: -10px;
}
.op {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.op h2 {
  font-size: 21px;
  margin: 0;
}
.op .band-note {
  font-size: 12px;
  margin: 0;
}
.chip-live {
  font-size: 11px;
  margin-left: 10px;
}
.op #opSlot:empty {
  display: none;
}
.op #opSlot {
  flex-basis: 100%;
}
.srcgrid {
  margin-top: 24px;
  gap: 16px;
}
.srcgrid h4 {
  font-size: 13px;
}
.srcgrid p {
  font-size: 12px;
}
.caveat {
  font-size: 12px;
}
.foot-meta {
  font-size: 11px;
}
.foot-line {
  text-align: center;
  font-size: 12px;
}
.city-detail .kpis {
  margin-top: 18px;
}
.city-detail > h2 {
  font-size: 32px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #c99b30;
  outline-offset: 3px;
}
@media (min-width: 1400px) {
  body {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .side-brand {
    margin-left: 14px;
  }
  .main {
    margin: 0 auto;
  }
  .side-wordmark {
    font-size: 23px;
  }
  .side-emblem {
    width: 134px;
    height: 138px;
  }
  .side-emblem img {
    height: 138px;
  }
}
@media (max-width: 1150px) and (min-width: 901px) {
  body {
    grid-template-columns: 135px minmax(0, 1fr);
  }
  .side {
    padding-left: 3px;
    padding-right: 3px;
  }
  .side-wordmark {
    font-size: 18px;
  }
  .side-emblem {
    width: 105px;
    height: 108px;
  }
  .side-emblem img {
    height: 108px;
  }
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .card h2 {
    font-size: 23px;
  }
  .card-head h2 {
    font-size: 21px;
  }
  .card h2 > svg {
    width: 37px;
    height: 37px;
    margin-right: 4px;
  }
  .view-tabs button {
    padding: 5px;
  }
  .inf-heading {
    gap: 8px;
  }
  .inf-heading h2 {
    font-size: 20px;
  }
  .inf-heading .tag {
    font-size: 10px;
    padding: 3px 5px;
  }
  .inf-heading .band-note {
    font-size: 11px;
    max-width: 190px;
  }
  .fund-sub,
  .fund-note {
    max-width: 170px;
  }
  .kpi4c {
    padding: 11px;
  }
  .k4-l {
    font-size: 14px;
  }
  .k4-n {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  body {
    display: block;
  }
  .side {
    position: static;
    height: auto;
    padding: 14px 20px;
    gap: 12px;
    flex-direction: row;
    align-items: center;
  }
  .side-brand {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .side-emblem {
    margin: 0;
    width: 58px;
    height: 60px;
  }
  .side-emblem img {
    height: 60px;
  }
  .side-wordmark {
    font-size: 14px;
    margin: 0;
  }
  .side-civis {
    display: none;
  }
  .side-nav {
    order: 3;
    width: 100%;
    gap: 5px;
    flex-direction: row;
    justify-content: space-between;
  }
  .side-nav a {
    font-size: 12px;
    padding: 9px 7px;
    gap: 5px;
  }
  .side-nav svg {
    width: 20px;
    height: 20px;
  }
  .side-footer-brand {
    display: none;
  }
  .side-about {
    margin-left: auto;
    font-size: 13px;
  }
  .main {
    padding: 24px;
    max-width: none;
  }
  .main h1 {
    max-width: 70%;
    font-size: 48px;
  }
  .kpi4-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .k4-v {
    font-size: 33px;
  }
  .k4-v small {
    font-size: 15px;
  }
  .k4-l {
    font-size: 14px;
  }
  .k4-n {
    font-size: 11px;
  }
  .card-head h2 {
    font-size: 21px;
  }
  .card h2 > svg {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  .inf-heading {
    flex-wrap: wrap;
  }
  .inf-heading .band-note {
    max-width: none;
    margin: 0;
    border: 0;
    padding-left: 54px;
    flex-basis: 100%;
  }
  .fund-val {
    font-size: 40px;
  }
  .fund-sub,
  .fund-note {
    max-width: 170px;
  }
  .simsec h2 {
    font-size: 33px;
  }
  .srcgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .main {
    padding: 20px 14px;
  }
  .side {
    padding: 12px 14px;
  }
  .side-nav {
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .side-nav a {
    flex-shrink: 0;
    max-width: 135px;
  }
  .side-nav a span {
    max-width: 88px;
  }
  .main h1 {
    font-size: 39px;
    max-width: 100%;
  }
  .city-art {
    opacity: 0.28;
    width: 60%;
    top: 0;
  }
  .eyebrow {
    font-size: 12px;
  }
  .main > .sub {
    font-size: 16px;
  }
  .topbar {
    gap: 10px;
  }
  .dl {
    font-size: 13px;
    min-width: 115px;
  }
  .selwrap select {
    font-size: 14px;
  }
  .main > .legend {
    gap: 10px;
    justify-content: flex-start;
    font-size: 12px;
  }
  .sw {
    width: 13px;
    height: 13px;
  }
  .kpi4-grid {
    grid-template-columns: 1fr 1fr;
  }
  .k4-v {
    font-size: 36px;
  }
  .k4-n {
    font-size: 12px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .card-head h2 {
    font-size: 26px;
  }
  .card h2 > svg {
    width: 42px;
    height: 42px;
  }
  .inf-heading h2 {
    font-size: 22px;
  }
  .inf-heading .chips {
    margin-left: 50px;
    border: 0;
    padding: 0;
  }
  .inf-heading .band-note {
    padding: 0;
    font-size: 13px;
  }
  .simsec > .grid2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .simsec h2 {
    font-size: 32px;
  }
  .simsec .sub2 {
    font-size: 16px;
  }
  .fund {
    min-height: 335px;
  }
  .fund-val {
    font-size: 44px;
  }
  .fund-sub,
  .fund-note {
    max-width: 200px;
  }
  .fund-woman {
    width: 60%;
  }
  .fund-man {
    width: 40%;
  }
  .ctrl {
    margin-bottom: 22px;
  }
  .ctrl input {
    max-width: calc(100% - 110px);
  }
  .out {
    grid-template-columns: 1fr;
  }
  .explainer-card {
    grid-template-columns: 40% 1fr;
  }
  .explainer-card h2 {
    font-size: 26px;
  }
  .srcgrid {
    grid-template-columns: 1fr;
  }
  .side-about {
    font-size: 12px;
  }
  .kpis {
    grid-template-columns: 1fr;
  }
  .flow-top {
    flex-wrap: wrap;
  }
  .flow-cap {
    font-size: 11px;
  }
  .bar .sv {
    font-size: 10px;
  }
  .bar .sl {
    font-size: 10px;
  }
  .seg {
    padding: 0 5px;
  }
  .fate {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.side-wordmark {
  white-space: nowrap;
  font-size: 18px;
}
.main h1 {
  font-size: clamp(38px, 5.3vw, 61px);
  max-width: 80%;
}
.city-art {
  width: 35%;
  max-height: 200px;
}
.fund-woman {
  width: 67.28%;
  mask-image: linear-gradient(to bottom, transparent, #000 10%);
}
.fund-man {
  width: 32.72%;
  mask-image: linear-gradient(to bottom, transparent, #000 7%);
}
.fund-val {
  letter-spacing: -1.4px;
}
.k4-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
@media (max-width: 900px) {
  .side-wordmark {
    font-size: 14px;
  }
  .main h1 {
    font-size: 48px;
    max-width: 75%;
  }
}
@media (max-width: 600px) {
  .main h1 {
    font-size: 39px;
    max-width: 100%;
  }
  .city-art {
    width: 60%;
    max-height: 180px;
  }
  .fund-woman {
    width: 67.28%;
  }
  .fund-man {
    width: 32.72%;
  }
}

.main h1 {
  max-width: min(80%, 600px);
}
.fund-fly {
  position: absolute;
  right: 8px;
  top: 14px;
  width: 18%;
  mix-blend-mode: multiply;
}
.fund-note {
  text-shadow: 0 0 4px #fff7df;
}
@media (max-width: 900px) {
  .main h1 {
    max-width: 75%;
  }
}
@media (max-width: 600px) {
  .main h1 {
    max-width: 100%;
  }
  .fund-fly {
    width: 19%;
  }
}
@media (max-width: 600px) {
  .kpi4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  .k4-v {
    font-size: 29px;
  }
  .k4-v small {
    font-size: 12px;
  }
  .kpi4c {
    padding: 10px;
  }
  .inf-heading h2 {
    font-size: 20px;
  }
  .fund-val {
    font-size: 35px;
  }
  .cv {
    min-width: 66px;
    padding: 5px;
    font-size: 12px;
  }
  .ctrl label {
    font-size: 13px;
  }
  .ctrl input {
    max-width: calc(100% - 95px);
  }
}
