/* ============================================================
   Seção 4 — Dados unificados / ETL (gráfico real do mix de ASOs)
   ============================================================ */
.dados { background: var(--bg); }
.dados__grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.dados__highlights { display: flex; gap: 1.6rem; margin-top: 1.8rem; }
.dados__hl { }
.dados__hl b { font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem+1.8vw, 2.4rem); color: var(--primary); line-height: 1; display: block; }
.dados__hl span { font-size: var(--step--1); color: var(--text-med); }

/* Chart card */
.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow); }
.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.chart-card__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-dark); }
.chart-card__total { font-size: var(--step--1); color: var(--text-med); }
.chart-card__total b { color: var(--primary); font-variant-numeric: tabular-nums; }

.bars { display: flex; flex-direction: column; gap: 1rem; }
.bar { display: grid; grid-template-columns: 1fr; gap: .38rem; }
.bar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bar__label { font-size: var(--step--1); font-weight: 600; color: var(--text-dark); }
.bar__val { font-size: var(--step--1); color: var(--text-med); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__val b { color: var(--primary); }
.bar__track { position: relative; height: 12px; background: var(--light-teal); border-radius: 999px; overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 1.1s var(--ease); }
.is-in .bar__fill { width: var(--w); }
.bar--min .bar__fill { min-width: 6px; }

.chart-card__foot { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--text-med); }
.chart-card__foot .live { display: inline-flex; align-items: center; gap: .4rem; }
.chart-card__foot .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

@media (max-width: 900px) { .dados__grid { grid-template-columns: 1fr; } }
