/* ============================================================
   BANTO — CLIPPING DE MÍDIA
   Design System & Stylesheet
   ============================================================ */

:root {
  --banto-cream:    #F5EFE0;
  --banto-sand:     #D4B896;
  --banto-terracota:#C4663A;
  --banto-deep:     #1A1209;
  --banto-brown:    #6B3F23;
  --banto-forest:   #2D4A3E;
  --banto-gold:     #D4A843;

  --bg:             #0E0D0B;
  --surface:        #181510;
  --surface2:       #221E17;
  --surface3:       #2A2419;
  --border:         rgba(212,184,150,0.12);
  --border-hover:   rgba(212,184,150,0.3);
  --text-primary:   #F0E8D8;
  --text-secondary: #A89880;
  --text-muted:     #6B5F50;

  --font-display:   'DM Serif Display', serif;
  --font-body:      'Outfit', sans-serif;

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  --shadow-card:    0 4px 30px rgba(0,0,0,0.4), 0 1px 0 rgba(212,184,150,0.06);
  --shadow-hover:   0 12px 50px rgba(0,0,0,0.6), 0 1px 0 rgba(212,184,150,0.15);

  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 5% 80px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196,102,58,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(212,168,67,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 90%, rgba(45,74,62,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--banto-terracota), var(--banto-gold), var(--banto-terracota), transparent);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.brand-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--banto-gold);
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.25);
  padding: 6px 18px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeDown 0.6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeDown 0.6s 0.1s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--banto-terracota);
  background: linear-gradient(135deg, var(--banto-terracota), var(--banto-gold));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeDown 0.6s 0.2s ease both;
}

.hero-sub strong { color: var(--banto-sand); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: fadeDown 0.6s 0.3s ease both;
}

.meta-pill {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 5%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 40px;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--banto-terracota);
  line-height: 1;
  background: linear-gradient(135deg, var(--banto-terracota), var(--banto-gold));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters-section {
  padding: 28px 5%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

.filters-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--banto-sand);
  color: var(--text-primary);
  background: var(--surface2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--banto-terracota), var(--banto-brown));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(196,102,58,0.3);
}

.search-wrap { margin-left: auto; }

.search-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  width: 240px;
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--banto-sand);
  box-shadow: 0 0 0 3px rgba(212,184,150,0.1);
  width: 280px;
}

/* ============================================================
   GRID
   ============================================================ */
.grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 5% 80px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ============================================================
   CARD
   ============================================================ */
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--banto-terracota), transparent);
  opacity: 0;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  background: var(--surface2);
}

.news-card:hover::before { opacity: 1; }

.news-card.featured {
  border-color: rgba(196,102,58,0.3);
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(196,102,58,0.06) 100%);
}

.news-card.featured::before { opacity: 0.6; }

.news-card.hidden { display: none; }

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-outlet {
  display: flex;
  align-items: center;
  gap: 12px;
}

.outlet-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.outlet-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.outlet-type {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Badges */
.card-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-portal  { background: rgba(45,74,62,0.3);  color: #7BC4A0; border: 1px solid rgba(123,196,160,0.2); }
.badge-revista { background: rgba(196,102,58,0.2); color: #E8895A; border: 1px solid rgba(232,137,90,0.3); }
.badge-agenda  { background: rgba(212,168,67,0.15); color: #D4A843; border: 1px solid rgba(212,168,67,0.35); }
.badge-social  { background: rgba(139,90,162,0.2);  color: #C490E8; border: 1px solid rgba(196,144,232,0.3); }

/* Card Body */
.card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface3);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.date-icon { font-size: 13px; }

.card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--banto-sand);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.card-link:hover {
  color: var(--banto-terracota);
  gap: 10px;
}

.card-link .arrow {
  font-size: 14px;
  transition: var(--transition);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 5%;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--banto-terracota);
}

.footer-tagline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.news-card:nth-child(1)  { animation-delay: 0.05s; }
.news-card:nth-child(2)  { animation-delay: 0.10s; }
.news-card:nth-child(3)  { animation-delay: 0.15s; }
.news-card:nth-child(4)  { animation-delay: 0.20s; }
.news-card:nth-child(5)  { animation-delay: 0.25s; }
.news-card:nth-child(6)  { animation-delay: 0.30s; }
.news-card:nth-child(7)  { animation-delay: 0.35s; }
.news-card:nth-child(8)  { animation-delay: 0.40s; }
.news-card:nth-child(9)  { animation-delay: 0.45s; }
.news-card:nth-child(10) { animation-delay: 0.50s; }
.news-card:nth-child(11) { animation-delay: 0.55s; }
.news-card:nth-child(12) { animation-delay: 0.60s; }
.news-card:nth-child(13) { animation-delay: 0.65s; }
.news-card:nth-child(14) { animation-delay: 0.70s; }
.news-card:nth-child(15) { animation-delay: 0.75s; }
.news-card:nth-child(16) { animation-delay: 0.80s; }
.news-card:nth-child(17) { animation-delay: 0.85s; }
.news-card:nth-child(18) { animation-delay: 0.90s; }
.news-card:nth-child(19) { animation-delay: 0.95s; }
.news-card:nth-child(20) { animation-delay: 1.00s; }
.news-card:nth-child(21) { animation-delay: 1.05s; }
.news-card:nth-child(22) { animation-delay: 1.10s; }

/* ============================================================
   EDITION SEPARATOR
   ============================================================ */
.edition-separator {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 8px;
}

.sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,102,58,0.4), transparent);
}

.sep-content {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.sep-icon {
  font-size: 22px;
  background: var(--surface2);
  border: 1px solid rgba(196,102,58,0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sep-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--banto-terracota);
}

.sep-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* New badge type */
.badge-destaque {
  background: linear-gradient(135deg, rgba(196,102,58,0.3), rgba(212,168,67,0.2));
  color: var(--banto-gold);
  border: 1px solid rgba(212,168,67,0.4);
}

/* ============================================================
   EMV SECTION
   ============================================================ */
.emv-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.emv-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--banto-gold), var(--banto-terracota), var(--banto-gold), transparent);
}

.emv-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Header */
.emv-header { text-align: center; max-width: 680px; margin: 0 auto; }

.emv-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--banto-gold);
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.25);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.emv-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.emv-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--banto-gold), var(--banto-terracota));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.emv-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.emv-desc strong { color: var(--banto-sand); }

/* KPI Cards */
.emv-kpis {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
}

.emv-kpi {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.emv-kpi:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.emv-kpi-main {
  background: linear-gradient(135deg, var(--surface2), rgba(212,168,67,0.08));
  border-color: rgba(212,168,67,0.3);
}

.emv-kpi-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--banto-terracota), var(--banto-gold));
}

.kpi-icon { font-size: 24px; margin-bottom: 4px; }

.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--banto-gold);
  line-height: 1.1;
}

.emv-kpi-main .kpi-value { font-size: clamp(26px, 3.5vw, 38px); }

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Charts Grid */
.emv-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-card-wide { grid-column: 1 / -1; }

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.chart-legend-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--banto-sand);
  background: rgba(212,184,150,0.08);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.chart-wrap { position: relative; }
/* Wrapper scrollável para Safari — overflow no child, não no canvas */
.chart-wrap-bar {
  height: 360px;
  overflow: visible; /* Safari não suporta overflow em wrapper de canvas */
}
.chart-wrap-bar-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-y: hidden;
}
.chart-wrap-donut {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Donut Legend */
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-name { flex: 1; }
.donut-legend-val { font-weight: 600; color: var(--text-primary); }

/* EMV Table */
.emv-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.emv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;  /* colunas com largura controlada */
}

/* Larguras de coluna */
.emv-table colgroup col:nth-child(1) { width: 44px; }
.emv-table colgroup col:nth-child(2) { width: 28%; }
.emv-table colgroup col:nth-child(3) { width: 22%; }
.emv-table colgroup col:nth-child(4) { width: 100px; }
.emv-table colgroup col:nth-child(5) { width: 18%; min-width: 110px; }
.emv-table colgroup col:nth-child(6) { width: auto; }

.emv-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.emv-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--surface3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.emv-table th:last-child { text-align: right; }

.emv-table tbody tr {
  transition: background 0.15s ease;
}

.emv-table tbody tr:nth-child(even) td {
  background: rgba(212,184,150,0.025);
}

.emv-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(212,184,150,0.06);
  color: var(--text-secondary);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emv-table tbody tr:hover td { background: rgba(212,184,150,0.07); }

.emv-table .num-cell {
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.emv-table .outlet-cell {
  font-weight: 500;
  color: var(--text-primary);
  max-width: 0;                /* força text-overflow em table-layout:fixed */
}

.emv-table .cat-cell {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 0;
}

.emv-table .val-cell {
  font-weight: 700;
  color: var(--banto-gold);
  text-align: right;
  font-family: var(--font-display);
  font-size: 15px;
  white-space: nowrap;
}

/* Barra de progresso dentro da coluna EMV */
.emv-bar-cell {
  padding: 8px 16px;
  vertical-align: middle;
}

.emv-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emv-bar-track {
  flex: 1;
  height: 5px;
  background: var(--surface3);
  border-radius: 99px;
  overflow: hidden;
}

.emv-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.emv-bar-ago  { background: linear-gradient(90deg, #C4663A, #E8895A); }
.emv-bar-jan  { background: linear-gradient(90deg, #D4A843, #F5D282); }

.emv-table .edition-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.edition-ago { background: rgba(196,102,58,0.15); color: #E8895A; border: 1px solid rgba(232,137,90,0.2); }
.edition-jan { background: rgba(212,168,67,0.15); color: #D4A843; border: 1px solid rgba(212,168,67,0.2); }

.emv-table tfoot tr { background: var(--surface3); }

.emv-table tfoot td {
  padding: 14px 16px;
  border-top: 2px solid var(--border);
  border-bottom: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.emv-table tfoot .val-cell {
  font-size: 17px;
  color: var(--banto-gold);
}
/* Methodology */

.emv-methodology {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.method-icon { font-size: 18px; flex-shrink: 0; padding-top: 2px; }

.method-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.method-text strong { color: var(--text-secondary); }
.method-text em { color: var(--banto-sand); }

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .emv-kpis { grid-template-columns: 1fr 1fr; }
  .emv-charts { grid-template-columns: 1fr; }
  .chart-card-wide { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* ── HERO ── */
  .hero { padding: 64px 5% 48px; }
  .hero-title { font-size: 42px; }
  .hero-meta { gap: 8px; }
  .meta-pill { font-size: 11px; padding: 5px 12px; }

  /* ── STATS BAR ── */
  .stats-bar { flex-wrap: wrap; gap: 0; padding: 20px 5%; }
  .stat { padding: 10px 20px; min-width: 50%; }
  .stat-number { font-size: 32px; }
  .stat-divider { display: none; }

  /* ── FILTERS ── */
  .filters-section { padding: 18px 5%; position: relative; }
  .filters-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filter-buttons { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 7px 14px; }
  .search-wrap { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }
  .search-input:focus { width: 100%; }

  /* ── NEWS GRID ── */
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .grid-section { padding: 32px 5% 60px; }

  /* ── EDITION SEPARATOR ── */
  .edition-separator { gap: 12px; }
  .sep-content { flex-direction: column; text-align: center; gap: 6px; }
  .sep-title { font-size: 15px; }

  /* ── EMV SECTION ── */
  .emv-section { padding: 56px 5% 60px; }
  .emv-inner { gap: 32px; }
  .emv-title { font-size: 36px; }
  .emv-desc { font-size: 14px; }

  /* KPI cards: 1 per row on phones */
  .emv-kpis { grid-template-columns: 1fr; gap: 12px; }
  .emv-kpi { padding: 20px 18px; }
  .kpi-value { font-size: 24px !important; }
  .emv-kpi-main .kpi-value { font-size: 28px !important; }

  /* Charts stack + compact padding */
  .emv-charts { grid-template-columns: 1fr; gap: 16px; }
  .chart-card-wide { grid-column: 1; }
  .chart-card { padding: 20px 16px; }
  .chart-title { font-size: 14px; }
  .chart-sub { font-size: 11px; }

  /* BAR CHART: wrapper filho é que faz scroll — Safari não aceita overflow em wrapper de canvas */
  .chart-wrap-bar {
    height: auto;
    overflow: visible;
  }
  .chart-wrap-bar-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .chart-wrap-bar-scroll canvas {
    display: block;
    height: 520px !important;
  }

  /* DONUT: menor, sem overflow */
  .chart-wrap-donut { height: 220px; }

  /* Donut legend: 2 colunas compactas */
  .donut-legend { gap: 6px; }
  .donut-legend-item { font-size: 11px; gap: 8px; }
  .donut-legend-val { font-size: 11px; }

  /* TABLE: scroll horizontal */
  .emv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .emv-table { min-width: 480px; }
  .emv-table th,
  .emv-table td { padding: 9px 10px; font-size: 12px; }
  .emv-table .val-cell { font-size: 13px; }

  /* Methodology note */
  .emv-methodology { flex-direction: column; gap: 10px; padding: 16px; }
  .method-text { font-size: 11px; }
}

/* ============================================================
   RESPONSIVE — Small phones (≤ 420px)
   ============================================================ */
@media (max-width: 420px) {
  .stat { min-width: 100%; text-align: center; }
  .emv-kpis { grid-template-columns: 1fr; }
  .chart-wrap-bar-scroll canvas { height: 600px !important; }
  .filter-btn { font-size: 11px; padding: 6px 12px; }
}
