/* ==========================================================================
   Chiclana en cifras · Editorial Atlántico / Datos INE (2018–2026)
   Cal y arena (#F5F1E8), verde pinar (#0E4B38), sol (#FFD23F), terracota (#C4452B)
   ========================================================================== */

:root {
  --bg: #F5F1E8;
  --bg-tint: #ECE6D9;
  --surface: #FFFDF8;
  --ink: #16201B;
  --ink-muted: #4C5A53;
  --line: #D7CFC0;
  --line-strong: #B8AE9B;
  --green: #0E4B38;
  --green-soft: #E1EFE9;
  --yellow: #FFD23F;
  --amber: #C97A12;
  --amber-soft: #FBF1DC;
  --coral: #C4452B;
  --coral-soft: #FCEAE5;
  --blue: #1D5D73;
  --blue-soft: #E2F0F4;
  --radius: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-brand: 'Archivo', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.mt-20 { margin-top: 20px; }

/* ---------------- HEADER & STICKY NAV ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner { padding-top: 12px; padding-bottom: 0; }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-glyph { width: 38px; height: 38px; flex-shrink: 0; }

.brand-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.brand-title {
  display: block;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hl-yellow {
  background: var(--yellow);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 4px 9px;
  border-radius: 5px;
}

.btn-export-top {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-export-top:hover { background: #0a3a2b; transform: translateY(-1px); }

.chapter-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
  margin: 0 -24px;
  padding: 0 24px;
}
.chapter-nav::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 12px;
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--green); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2.5px;
  background: var(--green);
}

/* ---------------- HERO ---------------- */
.hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}
.hero-copy, .hero-dossier, .panel, .chart-grid > *, .kpi-cell { min-width: 0; }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 5px;
  text-underline-offset: 4px;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 64ch;
}
.hero-lead strong { color: var(--ink); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 7px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--green);
}
.btn-primary:hover { background: #0a3a2b; transform: translateY(-1px); }

.btn-secondary {
  background: var(--yellow);
  color: var(--ink);
  border: 1.5px solid #D9AE20;
}
.btn-secondary:hover { background: #f3c42a; transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* Dossier card */
.hero-dossier {
  background: var(--green);
  color: #F5F1E8;
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid #093527;
}

.dossier-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.72);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.16);
}

.dossier-big {
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.16);
}
.dossier-label {
  display: block;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.78);
}
.dossier-big strong {
  display: block;
  font-size: 42px;
  line-height: 1.05;
  color: var(--yellow);
  margin: 4px 0 6px;
}
.dossier-delta {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 210, 63, 0.14);
  color: #FFE482;
  padding: 3px 8px;
  border-radius: 4px;
}

.dossier-list {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.dossier-list > div {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}
.dossier-list dt { color: rgba(245, 241, 232, 0.76); }
.dossier-list dd { margin: 0; font-weight: 600; color: #fff; }

/* KPI STRIP */
.kpi-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.kpi-cell {
  padding: 16px 16px 18px;
  border-right: 1px solid var(--line);
  border-top: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-cell:last-child { border-right: none; }
.kpi-cell.tone-amber { border-top-color: var(--amber); }
.kpi-cell.tone-coral { border-top-color: var(--coral); }
.kpi-cell.tone-blue { border-top-color: var(--blue); }

.kpi-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.kpi-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.kpi-sub {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
}
.kpi-change {
  margin-top: auto;
  padding-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.kpi-change.pos { color: var(--green); }
.kpi-change.warn { color: #9F5D08; }
.kpi-change.neg { color: var(--coral); }
.kpi-change.neutral { color: var(--blue); }

/* ---------------- CHAPTERS & PANELS ---------------- */
.chapter {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 112px;
}
.chapter-tinted { background: var(--bg-tint); }
.chapter-video { background: #14221C; color: #F5F1E8; border-bottom-color: #21372D; }
.chapter-video .chapter-num { color: var(--yellow); }
.chapter-video h2 { color: #FFFDF8; }
.chapter-video .section-desc { color: rgba(245, 241, 232, 0.8); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chapter-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--green);
  margin-bottom: 6px;
}

.chapter h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  max-width: 72ch;
  font-size: 15.5px;
}
.section-desc strong { color: var(--ink); }
.section-desc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(14, 75, 56, 0.09);
  padding: 1px 5px;
  border-radius: 4px;
}

.source-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-decoration: none;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 7px 11px;
  border-radius: 6px;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.source-chip:hover { border-color: var(--green); background: var(--green-soft); }

/* Video stage */
.video-stage {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 63, 0.28);
  background: #0B1410;
  max-width: 960px;
  margin: 0 auto;
}
.summary-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0B1410;
}

/* Panels & Charts */
.chart-grid {
  display: grid;
  gap: 20px;
}
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.panel h3 {
  margin: 0 0 3px;
  font-family: var(--font-brand);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.mini-src {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 5px;
}
.mini-src:hover { background: var(--green-soft); border-color: var(--green); }

.seg-ctrl {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
  flex-wrap: wrap;
}
.seg-ctrl button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg-ctrl button.is-active {
  background: var(--green);
  color: #fff;
}
.seg-ctrl button:hover:not(.is-active) { color: var(--ink); }

.chart-box { width: 100%; height: 340px; }
.chart-sm { height: 300px; }
.chart-tall { height: 380px; }

/* Facts ribbon & benchmark cards */
.facts-ribbon {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts-ribbon > div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.facts-ribbon > div:last-child { border-right: none; }
.facts-ribbon span { font-size: 11.5px; color: var(--ink-muted); }
.facts-ribbon strong { font-size: 18px; color: var(--ink); }
.facts-ribbon small { font-size: 11px; color: var(--ink-muted); }

.bench-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.bench-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.bench-card.is-chiclana {
  border-color: var(--green);
  background: var(--green-soft);
}
.bench-card .b-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.bench-card .b-pct {
  display: block;
  margin: 4px 0;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
}
.bench-card .b-meta { font-size: 12px; color: var(--ink-muted); }

/* ---------------- CSV SHELF & EXPLORER TABLE ---------------- */
.csv-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.csv-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.csv-btn:hover { border-color: var(--green); transform: translateY(-1px); }
.csv-btn span.ext {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 7px;
  border-radius: 4px;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.table-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.table-tabs button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.table-tabs button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.table-search-wrap input {
  width: 280px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
}
.table-search-wrap input:focus { outline: 2px solid var(--green); border-color: var(--green); }

.table-scroll {
  overflow-x: auto;
  max-height: 460px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  position: sticky;
  top: 0;
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--line-strong);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.data-table th.num, .data-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tr.is-hi td {
  background: var(--green-soft);
  font-weight: 700;
}
.data-table tr:hover td { background: #F2ECDE; }
.table-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------- SOURCES & METHODOLOGY ---------------- */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}
.source-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.source-card:hover { border-color: var(--green); }
.source-card .sc-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.source-card .sc-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.source-card .sc-op { font-size: 12px; color: var(--ink-muted); }

.method-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
}
.method-box h3 { margin: 0 0 10px; font-family: var(--font-brand); font-size: 16px; }
.method-box ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.method-box strong { color: var(--ink); }

/* ---------------- COMPARTIR (ESTILO ROBE) ---------------- */
.comp-bloque {
  margin: 28px 0;
  background: var(--yellow);
  border: 1.5px solid #D4A919;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ink);
}
.comp-tit {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 15px;
}
.comp-tit svg, .comp-flot svg, .red svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.comp-tit svg.trazo, .comp-flot svg.trazo, .red svg.trazo { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.redes { display: flex; flex-wrap: wrap; gap: 8px; }
.red {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(22, 32, 27, 0.16);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.red:hover { background: var(--green); color: #fff; border-color: var(--green); }

.comp-flot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(14, 42, 31, 0.22);
}
.comp-flot:hover { transform: translateY(-2px); }

.comp-panel {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 20px;
  max-width: 460px;
  width: calc(100% - 32px);
}
.comp-panel::backdrop { background: rgba(14, 34, 26, 0.55); }
.comp-cab { display: flex; justify-content: space-between; align-items: center; }
.comp-cerrar { background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.comp-txt { font-size: 13.5px; color: var(--ink-muted); margin: 8px 0 14px; }
.comp-aviso {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 70;
  transition: opacity 0.2s, transform 0.2s;
}
.comp-aviso.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--green);
  color: rgba(245, 241, 232, 0.86);
  padding: 26px 0 80px;
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer p { margin: 0; }

/* ---------------- RESPONSIVE (MÓVIL Y TABLET) ---------------- */
@media (max-width: 1080px) {
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-cell { border-bottom: 1px solid var(--line); }
  .facts-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .chapter-nav { margin: 0 -16px; padding: 0 16px; }
  .brand-row { gap: 8px; }
  .brand-glyph { width: 32px; height: 32px; }
  .brand-kicker { font-size: 9px; letter-spacing: 0.04em; }
  .brand-title { font-size: 15px; }
  .btn-export-top { font-size: 11.5px; padding: 6px 9px; white-space: nowrap; }
  .hero { padding: 24px 0 24px; }
  .hero h1 { font-size: clamp(28px, 8.2vw, 38px); }
  .hero-lead { font-size: 15.5px; }
  .hero-grid, .cols-2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .header-meta .meta-pill { display: none; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-cell { padding: 13px 12px 15px; }
  .kpi-num { font-size: 21px; }
  .facts-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-ribbon > div { border-bottom: 1px solid var(--line); }
  .bench-grid, .sources-grid, .csv-shelf { grid-template-columns: minmax(0, 1fr); }
  .chapter { padding: 34px 0; }
  .panel { padding: 14px; }
  .chart-box { height: 280px; }
  .chart-tall { height: 310px; }
  .table-search-wrap, .table-search-wrap input { width: 100%; }
  .source-chip { white-space: normal; font-size: 11px; }
  .comp-flot { right: 14px; bottom: 14px; padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 520px) {
  .btn-export-top { display: none; }
  .dossier-big strong { font-size: 34px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { justify-content: center; width: 100%; }
}
