/* «Extremadura en cifras»: the population dashboard generated by
   herramientas/datos_extremadura.py from INE data. Builds on noticias.css
   (hero, lead, notes) and the site's colours. */
.cm-page { --cm-teal: var(--deco-teal, #6fd3de); --cm-ink: var(--ink, #1b1b1b); --cm-line: #ece7e9; }

.cm-hero { position: relative; padding-block: 80px 40px; }
.cm-hero .news-deco-accent { --size: clamp(200px, 24vw, 360px); --blob: var(--deco-lime); top: -40px; right: -6vw; }
.cm-hero .news-deco-dot { --size: clamp(36px, 3.4vw, 56px); --blob: var(--pink); top: 46%; right: 22%; }
.cm-hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.06; margin-bottom: 24px; }
.cm-hero h1 .handwritten { color: var(--pink); letter-spacing: -.06em; }
.cm-sello { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 6px 20px -12px #27132b55; font-size: 13px; font-weight: 600; }
.cm-sello::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--deco-lime, #c6e04f); box-shadow: 0 0 0 4px #c6e04f40; }

/* KPI cards */
.cm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 60px; }
.cm-kpi { position: relative; overflow: hidden; padding: 26px 26px 24px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px -22px #27132b66; }
.cm-kpi::before { content: ''; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: var(--cm-acento); opacity: .35; }
.cm-kpi p { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cm-kpi strong { position: relative; display: block; margin: 10px 0 6px; font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.cm-kpi span { position: relative; display: block; font-size: 14px; line-height: 1.45; color: #5b5558; }
.cm-rosa { --cm-acento: var(--pink); }
.cm-lima { --cm-acento: var(--deco-lime, #c6e04f); }
.cm-amarillo { --cm-acento: var(--deco-yellow, #ffcf4d); }
.cm-lila { --cm-acento: var(--deco-purple, #cdb9f0); }
.cm-turquesa { --cm-acento: var(--cm-teal); }
.cm-kpi:first-child { background: var(--cm-ink); color: #fff; }
.cm-kpi:first-child span { color: #d9d4d6; }
.cm-kpi:first-child::before { opacity: .9; }

/* Charts */
.cm-rejilla2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding-bottom: 60px; }
.cm-panel { padding: 30px 30px 22px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px -22px #27132b66; }
.cm-panel .eyebrow { margin-bottom: 10px; }
.cm-panel h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 750; letter-spacing: -.045em; margin-bottom: 12px; }
.cm-nota-panel { font-size: 15px; color: #5b5558; margin-bottom: 16px; }
.cm-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.cm-rejilla { stroke: var(--cm-line); stroke-width: 1; }
.cm-base { stroke: #b9b2b5; stroke-dasharray: 4 5; }
.cm-eje { fill: #6b6567; font-size: 13px; font-weight: 600; }
.cm-leyenda { fill: var(--cm-ink); font-size: 14px; font-weight: 700; }
.cm-leyendas { display: flex; gap: 22px; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.cm-leyendas span::before { content: ''; display: inline-block; width: 22px; height: 5px; margin-right: 8px; border-radius: 3px; vertical-align: middle; background: currentColor; }
.cm-l-rosa { color: var(--pink); }
.cm-l-turquesa { color: #2fa9b7; }

/* Provinces */
.cm-provincias { position: relative; padding-bottom: 70px; }
.cm-prov-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: 980px; }
.cm-prov { padding: 26px 28px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px -22px #27132b66; }
.cm-prov h3 { font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.cm-barra { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px; align-items: center; gap: 14px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.cm-barra strong { font-size: 17px; font-weight: 800; text-align: right; letter-spacing: -.02em; }
.cm-pista { height: 14px; border-radius: 8px; background: #f1eeef; overflow: hidden; }
.cm-pista i { display: block; height: 100%; border-radius: 8px; }
.cm-var { margin-top: 14px; font-size: 14px; color: #5b5558; }
.cm-postit { position: absolute; right: 2%; top: 30px; width: 250px; --note-color: var(--note-yellow, #ffea8b); font-size: 26px; line-height: 1.15; rotate: 4deg; }

.cm-como { max-width: 860px; padding-bottom: 110px; }
.cm-como h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 750; letter-spacing: -.045em; margin-bottom: 18px; }
.cm-como p { font-size: 17px; margin-bottom: 22px; }
.cm-como a:not(.button) { color: var(--pink-dark, #c5115f); text-decoration: underline; }

@media (max-width: 1100px) {
  .cm-postit { position: static; margin-top: 26px; rotate: -2deg; }
}
@media (max-width: 900px) {
  .cm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-rejilla2, .cm-prov-rejilla { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cm-kpis { grid-template-columns: 1fr; gap: 14px; }
  .cm-panel, .cm-prov { padding: 22px 18px; }
  .cm-barra { grid-template-columns: 92px minmax(0, 1fr) 80px; gap: 10px; font-size: 13px; }
}
