html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  color: #f2f2f2;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 196, 0, .14), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(29, 233, 182, .10), transparent 30%),
    linear-gradient(180deg, #07100c 0%, #050505 44%, #000 100%);
}

.sticky-footer {
  position: static;
  margin-top: 0;
}

.series-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.series-hero {
  margin-bottom: 22px;
}

.series-eyebrow {
  margin: 0 0 8px;
  color: rgba(232, 214, 141, .78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.series-hero h1,
.series-card h2 {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.series-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .92;
}

.series-hero p:last-child {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
  font-weight: 700;
}

.risk-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.summary-main,
.summary-stat,
.series-card {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 214, 141, .055), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .036), rgba(255, 255, 255, .012)),
    rgba(12, 12, 12, .88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.summary-main,
.summary-stat {
  min-width: 0;
  padding: 13px 16px;
}

.summary-label,
.summary-stat span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.summary-main strong {
  display: block;
  color: #fff;
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 950;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}

.summary-main small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 800;
}

.summary-stat strong {
  color: #e8edf4;
  font-size: 24px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.summary-stat strong.good,
.records-table .good {
  color: #18e4ad;
}

.summary-stat strong.bad,
.records-table .bad {
  color: #ff6161;
}

.summary-stat strong.neutral,
.records-table .neutral {
  color: rgba(232, 237, 244, .82);
}

.series-card {
  min-width: 0;
  padding: 20px;
}

.series-chart-card {
  margin-bottom: 12px;
}

.series-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.actividad-chart-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.emae-series-selector {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.emae-series-label {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .54);
  font-size: 11px;
  font-weight: 900;
}

.emae-series-tabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(0, 0, 0, .20);
}

.emae-series-tabs button {
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .66);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.emae-series-tabs button:hover,
.emae-series-tabs button:focus-visible,
.emae-series-tabs button.is-active {
  color: #fff4bb;
  background: rgba(232, 214, 141, .11);
  box-shadow: inset 0 0 0 1px rgba(232, 214, 141, .16);
  outline: none;
}

.inflation-serie-page .summary-main strong {
  color: #fff;
}

.inflation-chart-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.inflation-series-selector {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.inflation-series-label {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .54);
  font-size: 11px;
  font-weight: 900;
}

.inflation-series-tabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(0, 0, 0, .20);
}

.inflation-series-tabs button {
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .66);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.inflation-series-tabs button:hover,
.inflation-series-tabs button:focus-visible {
  color: #fff4bb;
  background: rgba(232, 214, 141, .11);
  box-shadow: inset 0 0 0 1px rgba(232, 214, 141, .16);
  outline: none;
}

.inflation-series-tabs button.is-active {
  color: #fff;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--series-color, #1de9b6) 18%, transparent), rgba(232, 214, 141, .055)),
    rgba(232, 214, 141, .08);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--series-color, #1de9b6) 42%, rgba(232, 214, 141, .16)),
    0 0 12px color-mix(in srgb, var(--series-color, #1de9b6) 16%, transparent);
}

.series-card-note {
  margin-top: 4px !important;
  color: rgba(255, 255, 255, .48) !important;
  font-size: 11.5px !important;
}

.inflation-presidency-card {
  margin-bottom: 12px;
}

.inflation-series-line,
.inflation-term-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inflation-series-line {
  stroke-width: 2.25;
  opacity: .88;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .08));
}

.inflation-term-line {
  stroke-width: 2.05;
  opacity: .90;
}

.inflation-category-dot {
  stroke: rgba(0, 0, 0, .78);
  stroke-width: 1.8;
}

.series-card h2 {
  margin: 0;
  color: #f4f4f4;
  font-size: 31px;
  line-height: .95;
}

.series-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.period-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
}

.period-tabs button {
  min-width: 44px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .68);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.period-tabs button:hover,
.period-tabs button:focus-visible,
.period-tabs button.is-active {
  color: #fff4bb;
  background: rgba(232, 214, 141, .12);
  box-shadow: inset 0 0 0 1px rgba(232, 214, 141, .18);
  outline: none;
}

.presidencies-toggle {
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(232, 214, 141, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .66);
  background: rgba(0, 0, 0, .18);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.presidencies-toggle:hover,
.presidencies-toggle:focus-visible,
.presidencies-toggle.is-active {
  color: #fff4bb;
  border-color: rgba(232, 214, 141, .24);
  background: rgba(232, 214, 141, .10);
  box-shadow: inset 0 0 0 1px rgba(232, 214, 141, .08);
  outline: none;
}

.chart-export-btn {
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(232, 214, 141, .14);
  border-radius: 999px;
  color: rgba(232, 214, 141, .88);
  background: rgba(0, 0, 0, .18);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.chart-export-btn:hover,
.chart-export-btn:focus-visible {
  color: #fff4bb;
  border-color: rgba(232, 214, 141, .30);
  background: rgba(232, 214, 141, .10);
  box-shadow: 0 0 18px rgba(232, 214, 141, .10);
  outline: none;
}

.chart-export-btn:disabled {
  cursor: wait;
  opacity: .72;
}

.chart-export-btn::before {
  content: "";
  display: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask:
    linear-gradient(#000 0 0) 6px 1px / 3px 9px no-repeat,
    linear-gradient(135deg, transparent 45%, #000 46% 54%, transparent 55%) 3px 7px / 9px 9px no-repeat,
    linear-gradient(#000 0 0) 2px 13px / 11px 2px no-repeat;
  mask:
    linear-gradient(#000 0 0) 6px 1px / 3px 9px no-repeat,
    linear-gradient(135deg, transparent 45%, #000 46% 54%, transparent 55%) 3px 7px / 9px 9px no-repeat,
    linear-gradient(#000 0 0) 2px 13px / 11px 2px no-repeat;
}

.chart-shell {
  position: relative;
  width: 100%;
  height: clamp(280px, 44vw, 460px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .005)),
    rgba(0, 0, 0, .26);
}

.risk-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.risk-chart-grid line {
  stroke: rgba(255, 255, 255, .07);
  stroke-width: 1;
}

.risk-chart-grid text {
  fill: rgba(255, 255, 255, .52);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.risk-chart-grid .risk-chart-x-tick {
  stroke: rgba(255, 255, 255, .10);
  stroke-width: 1;
}

.risk-chart-grid .risk-chart-x-label {
  fill: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 850;
}

.risk-presidency-band {
  pointer-events: none;
}

.risk-presidency-label {
  fill: rgba(255, 255, 255, .42);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  pointer-events: none;
}

.risk-chart-area {
  fill: rgba(29, 233, 182, .09);
  stroke: none;
}

.risk-chart-line {
  fill: none;
  stroke: #1de9b6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(29, 233, 182, .22));
}

.risk-chart-dot {
  display: none;
  fill: #fff2aa;
  stroke: rgba(0, 0, 0, .84);
  stroke-width: 2;
}

.chart-shell.has-hover .risk-chart-dot {
  display: block;
}

.chart-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 134px;
  max-width: min(280px, calc(100% - 24px));
  padding: 9px 10px;
  border: 1px solid rgba(232, 214, 141, .20);
  border-radius: 10px;
  color: #fff;
  background: rgba(10, 10, 10, .94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-9999px, -9999px);
  box-sizing: border-box;
}

.chart-tooltip strong {
  display: block;
  color: #1de9b6;
  font-size: 16px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, .64);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.chart-shell.is-empty .chart-empty {
  display: flex;
}

.presidencies-legend {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.presidencies-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 10.5px;
  font-weight: 850;
}

.presidencies-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.confidence-components-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 7px;
  margin: -4px 0 14px;
}

.confidence-components-panel[hidden] {
  display: none;
}

.confidence-components-panel button {
  min-width: 0;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left-color: color-mix(in srgb, var(--component-color, #1de9b6) 50%, rgba(255, 255, 255, .08));
  border-radius: 10px;
  color: rgba(255, 255, 255, .68);
  background: rgba(0, 0, 0, .20);
  font: inherit;
  font-size: 11.5px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.confidence-components-panel button:hover,
.confidence-components-panel button:focus-visible,
.confidence-components-panel button.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--component-color, #1de9b6) 62%, rgba(255, 255, 255, .12));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--component-color, #1de9b6) 16%, transparent), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .24);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--component-color, #1de9b6) 14%, transparent);
  outline: none;
}

.confidence-component-line,
.confidence-term-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confidence-component-line {
  stroke-width: 1.7;
  opacity: .72;
}

.employment-line {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .90;
}

.employment-line--private {
  stroke: #1de9b6;
  filter: drop-shadow(0 0 6px rgba(29, 233, 182, .18));
}

.employment-line--public {
  stroke: #60a5fa;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, .16));
}

.employment-chart-card {
  margin-bottom: 12px;
}

.employment-chart-dot--private {
  fill: #1de9b6;
}

.employment-chart-dot--public {
  fill: #60a5fa;
}

.confidence-term-line {
  stroke-width: 1.9;
  opacity: .88;
}

.confidence-series-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.confidence-series-legend span,
.confidence-tooltip-components span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 10.5px;
  font-weight: 850;
}

.confidence-series-legend i,
.confidence-tooltip-components i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.confidence-tooltip-components {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.confidence-presidency-card {
  margin-bottom: 12px;
}

.series-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 12px;
}

.records-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.records-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.records-table th,
.records-table td {
  padding: 11px 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, .09);
  text-align: left;
  white-space: nowrap;
}

.records-table th {
  color: rgba(255, 255, 255, .50);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.records-table td {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}

.method-card p {
  font-size: 14px;
}

.source-copy {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.source-frequency {
  margin: 7px 0 0 !important;
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
  font-weight: 800;
}

@media (min-width: 901px) {
  .risk-summary {
    align-items: stretch;
  }

  .summary-main,
  .summary-stat {
    padding: 9px 14px;
  }

  .summary-label,
  .summary-stat span {
    margin-bottom: 3px;
    font-size: 10.5px;
    line-height: 1.1;
  }

  .summary-main strong {
    font-size: clamp(34px, 3.1vw, 42px);
    line-height: .88;
  }

  .summary-main small {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.15;
  }

  .summary-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .summary-stat strong {
    font-size: 20px;
    line-height: 1;
  }
}

@media (max-width: 900px) {
  .series-page {
    display: flex;
    flex-direction: column;
    width: min(100% - 20px, 760px);
    padding: 24px 0 38px;
  }

  .risk-summary,
  .series-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .risk-summary {
    display: contents;
  }

  .summary-main {
    order: 1;
    margin-bottom: 12px;
  }

  .series-chart-card {
    order: 2;
  }

  .summary-stat {
    order: 3;
    margin-bottom: 8px;
  }

  .series-grid {
    order: 6;
  }

  .summary-main,
  .summary-stat,
  .series-card {
    padding: 16px;
  }

  .summary-main,
  .summary-stat {
    padding: 12px 14px;
  }

  .summary-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .summary-stat span {
    margin-bottom: 0;
  }

  .summary-stat strong {
    flex: 0 0 auto;
    font-size: 22px;
  }

  .series-card-head {
    position: relative;
    display: grid;
    align-items: stretch;
    gap: 10px;
  }

  .chart-controls {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 5px;
  }

  .actividad-serie-page .actividad-chart-controls {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 7px;
  }

  .actividad-serie-page .emae-series-selector {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 4px;
  }

  .actividad-serie-page .emae-series-label {
    font-size: 10px;
    line-height: 1;
  }

  .actividad-serie-page .emae-series-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 2px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .16);
    box-sizing: border-box;
  }

  .actividad-serie-page .emae-series-tabs button {
    width: 100%;
    height: 27px;
    padding: 0 4px;
    font-size: 9.5px;
    line-height: 1;
    white-space: nowrap;
  }

  .inflation-serie-page .inflation-chart-controls {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 7px;
  }

  .inflation-serie-page .inflation-series-selector {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 4px;
  }

  .inflation-serie-page .inflation-series-label {
    font-size: 10px;
    line-height: 1;
  }

  .inflation-serie-page .inflation-series-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 2px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .16);
    box-sizing: border-box;
  }

  .inflation-serie-page .inflation-series-tabs button {
    width: 100%;
    height: 27px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }

  .presidencies-toggle {
    order: 2;
    justify-self: stretch;
    width: 100%;
    height: 30px;
    padding: 0 12px;
    border-radius: 11px;
    color: rgba(255, 255, 255, .72);
    background: rgba(0, 0, 0, .14);
    font-size: 11px;
    text-align: center;
  }

  .chart-export-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-color: rgba(255, 255, 255, .10);
    border-radius: 10px;
    color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .035);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    opacity: .82;
    text-align: center;
    z-index: 2;
  }

  .chart-export-btn:hover,
  .chart-export-btn:focus-visible {
    color: rgba(255, 255, 255, .84);
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .055);
    box-shadow: none;
    opacity: 1;
  }

  .chart-export-btn:active {
    color: rgba(255, 244, 187, .82);
    border-color: rgba(232, 214, 141, .16);
    background: rgba(232, 214, 141, .045);
    box-shadow: none;
    opacity: 1;
  }

  .chart-export-btn::before {
    display: block;
    width: 18px;
    height: 18px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 3v10m0 0 4-4m-4 4-4-4M5 19h14'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 3v10m0 0 4-4m-4 4-4-4M5 19h14'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .period-tabs {
    order: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
    padding: 2px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .16);
  }

  .period-tabs button {
    min-width: 0;
    width: 100%;
    height: 27px;
    font-size: 10.5px;
    line-height: 1;
  }

  .period-tabs button:hover,
  .period-tabs button:focus-visible,
  .period-tabs button.is-active {
    background: rgba(232, 214, 141, .10);
    box-shadow: inset 0 0 0 1px rgba(232, 214, 141, .14);
  }

  .actividad-serie-page .chart-controls,
  .actividad-serie-page .actividad-chart-controls,
  .actividad-serie-page .emae-series-selector,
  .actividad-serie-page .emae-series-tabs,
  .actividad-serie-page .presidencies-toggle,
  .actividad-serie-page .period-tabs,
  .inflation-serie-page .chart-controls,
  .inflation-serie-page .inflation-chart-controls,
  .inflation-serie-page .inflation-series-selector,
  .inflation-serie-page .inflation-series-tabs,
  .inflation-serie-page .period-tabs,
  .confidence-serie-page .chart-controls,
  .confidence-serie-page .presidencies-toggle,
  .confidence-serie-page .period-tabs {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .actividad-serie-page .series-card-head,
  .inflation-serie-page .series-card-head,
  .confidence-serie-page .series-card-head {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  .series-chart-card > .series-card-head > div:first-child {
    padding-right: 44px;
  }

  .actividad-serie-page .chart-controls,
  .inflation-serie-page .chart-controls,
  .confidence-serie-page .chart-controls {
    justify-self: stretch;
    justify-content: stretch;
  }

  .actividad-serie-page .period-tabs,
  .inflation-serie-page .period-tabs,
  .confidence-serie-page .period-tabs {
    justify-self: stretch;
    align-self: stretch;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .actividad-serie-page .period-tabs button,
  .inflation-serie-page .period-tabs button,
  .confidence-serie-page .period-tabs button {
    height: 26px;
    font-size: 10px;
  }

  .inflation-serie-page .inflation-presidency-card {
    order: 5;
  }

  .inflation-serie-page .inflation-records-table {
    font-size: 11px;
  }

  .inflation-serie-page .inflation-records-table th,
  .inflation-serie-page .inflation-records-table td {
    padding: 8px 4px;
    white-space: normal;
  }

  .confidence-serie-page .confidence-components-toggle {
    order: 3;
  }

  .unemployment-serie-page .chart-controls,
  .unemployment-serie-page .presidencies-toggle,
  .unemployment-serie-page .labor-indicators-toggle,
  .unemployment-serie-page .period-tabs {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .unemployment-serie-page .series-card-head {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  .unemployment-serie-page .chart-controls {
    justify-self: stretch;
    justify-content: stretch;
  }

  .unemployment-serie-page .period-tabs {
    justify-self: stretch;
    align-self: stretch;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .unemployment-serie-page .period-tabs button {
    height: 26px;
    font-size: 10px;
  }

  .unemployment-serie-page .labor-indicators-toggle {
    order: 3;
  }

  .unemployment-serie-page .labor-indicators-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin: -2px 0 10px;
  }

  .unemployment-serie-page .labor-indicators-panel button {
    min-height: 28px;
    font-size: 10.5px;
  }

  .unemployment-serie-page .employment-chart-card {
    order: 4;
  }

  .confidence-serie-page .confidence-components-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin: -2px 0 10px;
  }

  .confidence-serie-page .confidence-components-panel button {
    min-height: 28px;
    font-size: 10.5px;
  }

  .confidence-presidency-card {
    order: 4;
  }

  .chart-shell {
    height: 320px;
  }

  .risk-chart-grid text {
    font-size: 10px;
  }

  .risk-presidency-label {
    display: none;
  }

  .presidencies-legend.is-visible {
    display: flex;
  }

  .records-table {
    font-size: 13px;
  }

  .records-table th,
  .records-table td {
    padding: 10px 6px;
  }
}

@media (max-width: 420px) {
  .series-page {
    width: min(100% - 16px, 760px);
  }

  .series-hero h1 {
    font-size: 40px;
  }

  .series-hero p:last-child {
    font-size: 14px;
  }

  .chart-shell {
    height: 300px;
  }
}

/* Pobreza series page */
.poverty-series-line {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .92;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .07));
}

.poverty-series-dot {
  stroke: rgba(0, 0, 0, .78);
  stroke-width: 1.8;
}

.poverty-term-marker {
  stroke: rgba(8, 8, 8, .82);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .09));
}

.poverty-term-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.poverty-term-summary-card {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}

.poverty-term-summary-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .86);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.poverty-term-summary-card h3 i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20);
}

.poverty-term-summary-card p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 800;
}

.poverty-term-summary-card strong {
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.poverty-term-summary-card strong.good {
  color: #1de9b6;
}

.poverty-term-summary-card strong.bad {
  color: #ff5d73;
}

.poverty-term-summary-card strong.neutral {
  color: rgba(255, 255, 255, .72);
}

.term-summary-note {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .46);
  font-family: Inter, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
}

.poverty-serie-page .summary-stat small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .50);
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .poverty-serie-page .chart-controls,
  .poverty-serie-page .presidencies-toggle,
  .poverty-serie-page .poverty-series-toggle,
  .poverty-serie-page .period-tabs {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .poverty-serie-page .series-card-head {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  .poverty-serie-page .period-tabs {
    justify-self: stretch;
    align-self: stretch;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .poverty-serie-page .period-tabs button {
    height: 26px;
    font-size: 10px;
  }

  .poverty-serie-page .poverty-series-toggle {
    order: 3;
  }

  .poverty-serie-page .poverty-series-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin: -2px 0 10px;
  }

  .poverty-serie-page .poverty-series-panel button {
    min-height: 28px;
    font-size: 10.5px;
  }

  .poverty-term-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .poverty-term-summary-card {
    padding: 9px 10px;
  }
}
