:root {
  color-scheme: light;
  --navy: #272e50; --gold: #e6bd63; --paper: #fffefa; --white: #fff;
  --pale: #f3f3ef; --text: #272e50; --muted: #606579; --line: #d9dbe1;
  --line-dark: #525a76; --green: #397321; --green-light: #a7d877;
  --blue: #496b86; --gray: #777d88;
  --comparison-before: oklch(0.49 0.095 65);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:active, .button:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.hero :focus-visible, .source-section :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.1vw, 42px); font-weight: 600; line-height: 1.14; }
h3 { letter-spacing: -.02em; }
svg { display: block; flex: none; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; background: var(--gold); transform: translateY(-180%); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.05em; }
.brand-domain { color: var(--muted); font-weight: 500; }
.brand-mark { display: block; width: 52px; height: 72px; object-fit: cover; flex: none; }
.arrow-circle { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); font: 500 25px/1 var(--font); flex: none; }
nav { display: flex; gap: 32px; }
nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.hero { color: var(--white); background: var(--navy); border-bottom: 5px solid var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1fr 272px; gap: 70px; padding-block: 68px 64px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.hero .eyebrow, .source-section .eyebrow { color: var(--gold); }
.little-line { width: 24px; height: 2px; background: currentColor; }
h1 { font-size: clamp(46px, 5.3vw, 72px); line-height: 1.05; font-weight: 600; }
h1 span { color: var(--gold); }
.hero-description { max-width: 490px; font-size: 18px; line-height: 1.6; margin-top: 25px; color: #e0e2ed; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.button span { font-size: 20px; line-height: 1; }
.button-gold { background: var(--gold); color: var(--navy); margin-top: 28px; }
.button-navy { background: var(--navy); color: var(--white); }
.button-outline { background: transparent; border-color: var(--navy); }
.hero-footnote { font-size: 12px; color: #c2c6d7; margin-top: 16px; }
.section-overline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 28px 16px; }
.section-overline h2 { font-size: 13px; letter-spacing: 0; font-weight: 600; }
.section-overline > span { color: var(--muted); font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--navy); }
.kpi { padding: 27px 30px 23px; position: relative; }
.kpi + .kpi { border-left: 1px solid var(--navy); }
.kpi:first-child { background: var(--navy); color: var(--white); }
.kpi:last-child { background: #ebebed; }
.kpi .value { font-size: clamp(40px, 4.5vw, 59px); line-height: 1; letter-spacing: -.06em; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi h3 { min-height: 45px; margin-top: 12px; max-width: 245px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.kpi-bottom { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.delta { color: var(--green); font-size: 20px; font-weight: 600; }
.delta small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 5px; }
.kpi:first-child .delta { color: var(--green-light); }
.kpi:first-child .delta small { color: #c2c6d7; }
.kpi .arrow-circle { width: 23px; height: 23px; font-size: 19px; }
.data-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 16px; }
.data-note a { color: var(--navy); font-weight: 500; }
.section-space { padding-block: 76px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 14px; color: var(--muted); }
.section-heading > p { max-width: 350px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.explorer-controls { display: flex; flex-direction: column; gap: 22px; margin-bottom: 19px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 10px 17px; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: 14px; font-weight: 500; transition: background-color 150ms ease; }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search-wrap { max-width: 400px; width: 100%; }
.search-wrap label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1px solid #a6a9b7; border-radius: 3px; padding-inline: 13px; background: var(--white); }
.search-field:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.search-field svg { width: 18px; height: 18px; color: var(--muted); }
.search-field input { border: 0; border-radius: 3px; color: var(--navy); width: 100%; min-width: 0; min-height: 44px; background: transparent; font-size: 16px; }
/* The field wrapper provides a visible focus ring for the input. */
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--muted); font-size: 14px; }
.results-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 12px; padding-block: 3px 13px; color: var(--muted); }
.results-meta p { color: var(--navy); }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.change-card { border: 1px solid var(--line); background: var(--white); border-top: 3px solid var(--navy); padding: 24px 23px 0; min-width: 0; scroll-margin-top: 28px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 29px; }
.category { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.category svg { width: 20px; height: 20px; }
.card-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.change-card h3 { font-size: 24px; line-height: 1.17; font-weight: 600; min-height: 85px; }
.benefit { margin-top: 22px; padding: 14px 0 20px; border-top: 1px solid var(--line); }
.benefit p { font-size: 13px; line-height: 1.65; min-height: 64px; }
.change-card details { margin-inline: -23px; border-top: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 53px; padding: 14px 23px; font-weight: 600; font-size: 13px; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 20px; font-weight: 400; }
details[open] > summary { background: var(--pale); }
details[open] > summary > span { transform: rotate(45deg); }
.card-details { padding: 22px 23px; font-size: 13px; }
.comparison { margin: 0; display: grid; gap: 14px; }
.comparison dt { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.comparison dd { margin: 5px 0 0; line-height: 1.65; }
.comparison-highlight { padding: 13px 14px; border-left: 3px solid var(--comparison-accent); background: color-mix(in oklch, var(--comparison-accent) 8%, var(--white)); }
.comparison-before { --comparison-accent: var(--comparison-before); }
.comparison-after { --comparison-accent: var(--green); }
.comparison-highlight dt { color: var(--comparison-accent); font-weight: 700; }
.norma { margin-top: 20px; font-size: 12px; font-weight: 600; line-height: 1.65; }
.report-link { display: flex; align-items: center; min-height: 44px; gap: 8px; font-size: 12px; text-decoration: underline; }
.more-row { display: flex; align-items: center; flex-direction: column; gap: 14px; margin-top: 28px; }
.more-row > p { font-size: 12px; color: var(--muted); }
.empty-state { padding: 45px 24px; text-align: center; border: 1px dashed var(--line); }
.empty-state p { margin: 12px auto 22px; color: var(--muted); }
.numbers-section { padding-block: 66px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--pale); }
.sector-panel { background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.panel-heading h3 { font-size: 18px; font-weight: 600; }
.panel-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.chart-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 22px; }
.data-table { border-top: 1px solid var(--line); margin-top: 22px; }
.data-table summary { padding-inline: 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 15px; }
caption { text-align: left; margin-bottom: 12px; color: var(--muted); }
th, td { text-align: right; padding: 10px 5px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child { text-align: left; }
.sectors { padding: 0; margin: 22px 0 0; list-style: none; }
.sector { display: grid; grid-template-columns: 19px 1fr 30px; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.sector-rank { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sector-name { font-size: 13px; }
.sector-n { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sector-track { height: 7px; background: color-mix(in oklch, var(--sector-color) 12%, var(--paper)); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.sector-fill { height: 100%; background: var(--sector-color); border-radius: inherit; }
.source-section { background: var(--navy); color: var(--white); padding-block: 60px; }
.source-links a { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 20px; align-items: center; padding-block: 21px; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.source-links strong { font-size: 15px; font-weight: 500; }
.source-links small { display: block; font-size: 12px; color: #c2c6d7; margin-top: 6px; }
.source-links a > span:first-child { min-width: 0; }
.source-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); }
.source-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 32px; }
.footer .brand { font-size: 17px; }
.footer .brand-mark { width: 46px; height: 64px; }
.footer p { color: var(--muted); font-size: 11px; }
.back-top { display: flex; align-items: center; min-height: 44px; gap: 20px; font-size: 12px; text-decoration: none; }
.load-status { margin-top: 24px; font-size: 14px; }
.load-status:has(.button), .notice { border: 1px solid var(--line); padding: 24px; }
.load-status .button { margin-top: 14px; }
.notice { margin-top: 24px; }
@media (hover: hover) and (pointer: fine) {
  nav a:hover, .back-top:hover { text-decoration: underline; }
  .button-gold:hover { background: #f1cd7d; }
  .button-navy:hover { background: var(--blue); }
  .button-outline:hover, .filter:not([aria-pressed="true"]):hover { background: #ebebed; }
  summary:hover { background: var(--pale); }
  .source-links a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 1000px) {
  .hero-grid { gap: 36px; grid-template-columns: 1fr 225px; }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { gap: 30px; }
  .section-heading > p { max-width: 290px; }
  .sector-panel { padding: 20px; }
  .brand { font-size: 18px; }
  nav { gap: 20px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 102px; flex-direction: column; justify-content: center; gap: 0; padding-top: 7px; }
  .brand { font-size: 20px; }
  nav { justify-content: space-between; width: 100%; max-width: 340px; gap: 16px; }
  nav a { font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 39px 35px; gap: 32px; }
  h1 { font-size: clamp(42px, 8vw, 59px); }
  .hero-description { font-size: 16px; max-width: 460px; margin-top: 22px; }
  .hero .eyebrow { margin-bottom: 22px; }
  .hero-footnote { font-size: 11px; }
  .section-overline { align-items: flex-start; flex-direction: column; gap: 5px; padding-top: 24px; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { display: grid; grid-template-columns: 113px 1fr; padding: 23px 20px; gap: 9px 18px; align-items: center; }
  .kpi + .kpi { border-left: none; border-top: 1px solid var(--navy); }
  .kpi .value { font-size: 41px; }
  .kpi h3 { min-height: 0; margin: 0; font-size: 15px; max-width: 190px; }
  .kpi-bottom { grid-column: 1 / -1; margin-top: 0; }
  .delta { font-size: 17px; }
  .delta small { font-size: 11px; }
  .data-note { line-height: 1.8; }
  .section-space { padding-block: 50px; }
  .section-heading { flex-direction: column; gap: 18px; align-items: flex-start; margin-bottom: 27px; }
  .section-heading > p { max-width: 460px; font-size: 14px; }
  .section-heading .eyebrow { font-size: 10px; }
  .filter { font-size: 12px; padding: 10px 12px; }
  .filters { gap: 7px; }
  .results-meta { flex-wrap: wrap; gap: 4px; }
  .examples { grid-template-columns: 1fr; }
  .change-card { padding: 21px 21px 0; }
  .change-card h3 { min-height: 0; font-size: 25px; max-width: 390px; }
  .card-top { margin-bottom: 23px; }
  .benefit p { min-height: 0; }
  .change-card details { margin-inline: -21px; }
  .numbers-section { padding-block: 45px; }
  .source-section { padding-block: 42px; }
  .footer { align-items: flex-start; flex-wrap: wrap; gap: 20px; padding-block: 25px; }
  .footer .brand { width: 100%; }
  .footer p { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Historical data, document archive, and citizen participation. */
.kpi-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; min-height: 44px; padding-left: 10px; font-size: 11px; text-decoration: none; font-weight: 500; }
.kpi:first-child .kpi-link:focus-visible { outline-color: var(--gold); }
.history-panel { background: var(--paper); border: 1px solid var(--line); padding: 28px; margin-bottom: 26px; }
.history-heading { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.history-heading h3 { font-size: 22px; font-weight: 600; }
.history-heading p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.text-action { min-height: 44px; display: inline-flex; gap: 12px; align-items: center; font-size: 13px; }
.history-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
#history-status { color: var(--muted); font-size: 13px; margin-top: 22px; min-height: 24px; }
.history-chart { width: 100%; min-height: 240px; margin-top: 12px; }
.history-chart svg { width: 100%; height: 350px; overflow: visible; }
.history-gridline { stroke: var(--line); stroke-width: 1; }
.history-axis { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.history-area { fill: var(--navy); fill-opacity: .08; }
.history-line { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.history-point { fill: var(--navy); }
.history-sources { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; border-top: 1px solid var(--line); }
.history-sources a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.table-scroll { overflow-x: auto; }
#history-table table { min-width: 380px; }
.archive-section { border-bottom: 1px solid var(--line); }
.archive-coverage { padding: 18px 21px; border-left: 3px solid var(--gold); background: var(--pale); }
.archive-coverage strong { font-size: 14px; }
.archive-coverage p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 5px; max-width: 100ch; }
.archive-controls { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.4fr; gap: 15px; margin-top: 28px; }
.archive-controls > div { min-width: 0; }
.archive-controls label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 7px; }
.archive-controls input, .archive-controls select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #a6a9b7; border-radius: 3px; background: var(--white); color: var(--text); font: 400 16px/1.5 var(--font); }
.archive-controls input::placeholder { font-size: 14px; color: var(--muted); }
.archive-controls select { padding-right: 5px; }
.archive-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-block: 17px 10px; font-size: 12px; }
.archive-meta a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-entry { padding-block: 24px; border-top: 1px solid var(--line); }
.archive-entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.archive-kind { color: var(--navy); font-weight: 600; }
.archive-entry h3 { font-size: 21px; line-height: 1.4; max-width: 70ch; font-weight: 600; text-wrap: pretty; }
.archive-entry h3 a { min-height: 44px; display: inline-block; padding-block: 9px; text-decoration: none; }
.archive-entry h3 a > span[aria-hidden] { color: var(--muted); font-size: 16px; white-space: nowrap; }
.archive-norma { color: var(--blue); font-size: 12px; margin-bottom: 8px; font-weight: 600; }
.archive-description { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 85ch; }
.archive-entry-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; margin-top: 12px; }
.archive-entry-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-size: 12px; }
.archive-pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.archive-pagination span { font-size: 13px; color: var(--muted); }
.archive-pagination button:disabled { color: var(--muted); border-color: var(--line); background: var(--pale); cursor: default; transform: none; }
.inline-retry { display: inline-block; min-height: 44px; border: 0; background: none; color: var(--navy); padding: 6px 10px; text-decoration: underline; text-underline-offset: 4px; }
.participation-section { padding-block: 48px; background: color-mix(in oklch, var(--gold) 18%, var(--paper)); border-top: 1px solid var(--line); }
.participation-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; align-items: center; }
.participation-section .eyebrow { color: var(--muted); margin-bottom: 17px; }
.participation-grid h2 { font-size: 37px; }
.participation-grid p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 18px; max-width: 55ch; }
.participation-action .button { margin-top: 20px; }
.participation-action small { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 14px; max-width: 46ch; }
@media (hover: hover) and (pointer: fine) {
  .kpi-link:hover, .archive-entry h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .archive-pagination button:disabled:hover { background: var(--pale); }
}
@media (max-width: 1120px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding-block: 12px; gap: 2px 20px; }
  .header-inner nav { flex-wrap: wrap; justify-content: center; gap: 0 22px; }
  .archive-controls { grid-template-columns: 1fr 1fr; }
  .participation-grid { gap: 40px; }
}
@media (max-width: 720px) {
  .header-inner nav { max-width: 100%; gap: 0 18px; }
  .header-inner nav a { min-height: 44px; }
  .history-panel { padding: 20px 15px; }
  .history-heading { flex-direction: column; align-items: flex-start; gap: 5px; }
  .history-heading h3 { font-size: 20px; }
  .history-controls { gap: 7px; }
  .history-controls .filter { font-size: 12px; }
  .history-sources { justify-content: flex-start; }
  .history-chart { margin-inline: -5px; width: calc(100% + 10px); }
  .archive-controls { gap: 15px 12px; }
  .archive-search { grid-column: 1 / -1; }
  .archive-controls > div:last-child { grid-column: 1 / -1; }
  .archive-meta { flex-direction: column; align-items: flex-start; gap: 0; margin-block: 22px 6px; }
  .archive-entry h3 { font-size: 19px; }
  .archive-entry-footer { flex-direction: column; align-items: flex-start; gap: 3px; }
  .archive-coverage { padding: 15px; }
  .archive-pagination { gap: 7px; flex-wrap: wrap; }
  .archive-pagination .button { padding: 10px 11px; font-size: 12px; }
  .archive-pagination span { font-size: 12px; }
  .participation-grid { grid-template-columns: 1fr; gap: 8px; }
  .participation-grid h2 { font-size: 31px; }
  .participation-grid p:not(.eyebrow) { font-size: 14px; }
}

.history-reconciliation { margin-top: 14px; padding: 15px 17px; border-left: 3px solid var(--gold); background: var(--pale); font-size: 12px; line-height: 1.75; }
.history-reconciliation strong { font-weight: 600; }
.history-reconciliation p { margin-top: 5px; color: var(--muted); }

/* Historical citizen explorer and participatory agenda. */
.explorer-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
.explorer-fields { display: grid; grid-template-columns: minmax(0, 1fr) 190px 190px; gap: 18px; align-items: end; }
.explorer-fields .search-wrap { max-width: none; }
.explorer-select label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.explorer-select select { min-height: 46px; width: 100%; font: inherit; font-size: 16px; color: var(--navy); background: var(--white); border: 1px solid #a6a9b7; border-radius: 3px; padding: 9px 12px; touch-action: manipulation; }
.card-top { align-items: flex-start; margin-bottom: 22px; }
.card-number { flex: none; white-space: nowrap; }
.change-card h3 { min-height: 0; }
.more-row > p { text-align: center; max-width: 680px; }
.upcoming-section { background: var(--pale); padding-block: 72px; border-block: 1px solid var(--line); }
.upcoming-reviewed { font-size: 12px; color: var(--muted); margin: -12px 0 24px; }
.upcoming-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.upcoming-card { min-width: 0; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--gold); background: var(--white); }
.upcoming-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 25px; }
.proposal-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 6px 9px; background: #f9edd2; color: #735316; }
.proposal-consulta { background: #eaf1e7; color: var(--green); }
.upcoming-card h3 { font-size: 28px; line-height: 1.2; margin-bottom: 10px; }
.upcoming-card > p, .upcoming-card div > p { font-size: 14px; line-height: 1.7; }
.upcoming-card .proposal-reference { font-size: 12px; color: var(--muted); margin-bottom: 17px; }
.proposal-next { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.upcoming-card h4 { margin: 0 0 7px; font-size: 13px; font-weight: 600; }
.proposal-support { background: #f8f4e8; border-left: 3px solid var(--gold); padding: 16px; margin-block: 22px; }
.proposal-actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
@media (max-width: 1000px) { nav { gap: 18px; } .header-inner { flex-wrap: wrap; justify-content: center; padding-block: 14px; gap: 5px 25px; } }
@media (max-width: 700px) {
  .explorer-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .explorer-fields .search-wrap { grid-column: 1 / -1; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .upcoming-section { padding-block: 50px; }
  .upcoming-card { padding: 22px; }
  .upcoming-card h3 { font-size: 25px; }
  nav { max-width: none; justify-content: center; flex-wrap: wrap; gap: 0 18px; }
  .proposal-actions .button { gap: 12px; }
}

/* The month readout follows the slider and its previous/next buttons. */
.history-chart { position: relative; }
.history-tooltip { position: absolute; top: 0; width: 204px; max-width: 100%; padding: 12px 15px; background: var(--navy); color: var(--white); border-left: 3px solid var(--gold); pointer-events: none; }
#history-tooltip-month { display: block; font-size: 12px; color: var(--gold); }
#history-tooltip-value { display: block; font-size: 34px; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#history-tooltip-delta { display: block; font-size: 11px; line-height: 1.5; margin-top: 3px; color: var(--green-light); }
.history-tooltip[data-direction="negative"] #history-tooltip-delta { color: var(--gold); }
.history-cursor { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 4 4; }
.history-selected-point { fill: var(--navy); stroke: var(--gold); stroke-width: 3; }
.history-scrubber { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.history-slider-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.history-slider-heading label { font-weight: 600; }
#history-selected-month { font-size: 12px; color: var(--muted); }
#history-help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.history-slider-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 14px; align-items: center; margin-top: 6px; }
#history-month { width: 100%; min-width: 0; margin: 0; height: 44px; accent-color: var(--navy); cursor: ew-resize; }
.history-step { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--navy); }
.history-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.history-step:disabled { opacity: .4; cursor: default; transform: none; }
.sector-panel { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.8fr); gap: 18px 48px; }
.sector-panel .panel-heading { padding-top: 10px; }
.sector-panel .panel-heading h3 { font-size: 26px; line-height: 1.25; }
.sector-panel .panel-heading p { margin-top: 12px; font-size: 13px; max-width: 24ch; }
.sector-panel .sectors { margin: 0; grid-column: 2; grid-row: 1 / 3; }
.sector-panel .chart-note { grid-column: 1; align-self: end; margin: 0; }
.sector { --sector-color: var(--blue); grid-template-columns: 20px minmax(0, 1fr) 44px; gap: 13px; padding-block: 12px; }
.sector-name { font-size: 14px; }
.sector-n { padding: 6px; border-radius: 3px; background: color-mix(in oklch, var(--sector-color) 12%, var(--paper)); text-align: center; }
.sector[data-sector="Agroindustria"] { --sector-color: oklch(0.54 0.11 145); }
.sector[data-sector="Finanzas y Mercado de Capitales"] { --sector-color: oklch(0.54 0.12 255); }
.sector[data-sector="Comercio Exterior"] { --sector-color: oklch(0.54 0.085 190); }
.sector[data-sector="Transporte"] { --sector-color: oklch(0.54 0.105 70); }
.sector[data-sector="Producción Nacional"] { --sector-color: oklch(0.54 0.12 35); }
.sector[data-sector="Bienestar Ciudadano"] { --sector-color: oklch(0.54 0.095 220); }
.sector[data-sector="Salud"] { --sector-color: oklch(0.54 0.12 345); }
.sector[data-sector="Energía"] { --sector-color: oklch(0.54 0.1 90); }
.sector[data-sector="Cultura, Turismo y Deporte"] { --sector-color: oklch(0.54 0.12 295); }
.sector[data-sector="Empleo y Regulación Laboral"] { --sector-color: oklch(0.54 0.085 265); }
.sector[data-sector="Sector Inmobiliario"] { --sector-color: oklch(0.54 0.08 125); }
@media (hover: hover) and (pointer: fine) {
  .history-step:not(:disabled):hover { background: var(--pale); }
  .source-links a:hover strong { text-decoration: underline; }
}
@media (max-width: 720px) {
  .sector-panel { grid-template-columns: minmax(0, 1fr); padding: 21px; gap: 22px; }
  .sector-panel .sectors, .sector-panel .chart-note { grid-column: 1; grid-row: auto; }
  .sector-panel .panel-heading p { max-width: none; }
  .sector-name { font-size: 13px; }
  .sector { gap: 9px; }
  .history-slider-heading { flex-wrap: wrap; gap: 4px 10px; }
  .history-slider-row { gap: 10px; }
  .source-links a { gap: 16px; }
}

/* Focused homepage and separate archive. */
.hero-grid { display: block; padding-block: 44px; }
.hero-copy { max-width: 900px; }
.hero-description { max-width: 55ch; margin-top: 20px; }
.hero-footnote { margin-top: 18px; }
.hero .button { margin-top: 24px; }
.kpi { padding: 0; }
.kpi-link { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; height: 100%; min-height: 160px; padding: 22px 26px; }
.kpi h3 { min-height: 0; max-width: none; margin: 0; font-size: 16px; }
.kpi .value { font-size: 46px; }
.kpi .delta { font-size: 17px; margin-top: auto; }
.data-note { margin-top: 6px; }
.data-note a { display: inline-flex; align-items: center; min-height: 44px; }
.section-space, .numbers-section { padding-block: 48px; }
.section-heading { margin-bottom: 24px; gap: 30px; }
.explorer-controls { gap: 16px; margin-bottom: 12px; }
.explorer-controls .search-wrap { max-width: 620px; }
.advanced-filters { max-width: 620px; border-bottom: 1px solid var(--line); }
.advanced-filters > summary { min-height: 44px; padding: 6px 0; justify-content: flex-start; gap: 12px; }
.explorer-fields { grid-template-columns: 1fr 1fr; padding-block: 10px 16px; gap: 16px; }
.change-card .card-top { margin-bottom: 18px; }
.change-card h3 { min-height: 0; font-size: 23px; }
.benefit { margin-top: 14px; padding: 0 0 22px; border: 0; }
.benefit p { min-height: 0; font-size: 14px; color: var(--muted); }
.detail-intro { margin-bottom: 18px; color: var(--muted); line-height: 1.65; }
.more-row { margin-top: 22px; gap: 4px; }
.history-heading { align-items: flex-start; }
.history-controls { margin-top: 20px; }
.history-chart { min-height: 340px; margin-top: 18px; }
.history-chart svg { height: 260px; }
.history-tooltip { position: static; width: 235px; max-width: 100%; margin: 0 0 10px auto; padding: 10px 15px; }
.history-scrubber { margin-top: 4px; padding-top: 10px; }
.history-slider-heading { justify-content: center; }
.history-reconciliation { padding: 0 14px; margin-top: 10px; }
.history-reconciliation > summary { padding: 9px 0; min-height: 44px; font-size: 12px; }
.history-reconciliation p { margin: 0; padding-bottom: 14px; }
.data-table { margin-top: 12px; }
.sector-panel .sectors { grid-row: 1 / 3; }
.sector-more { grid-column: 1; align-self: end; }
.sector-more button { border: 0; padding: 0; background: transparent; text-decoration: underline; }
.upcoming-section { padding-block: 48px; }
.upcoming-grid { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.upcoming-card { padding: 24px; }
.upcoming-card h3 { font-size: 25px; }
.upcoming-top { margin-bottom: 18px; }
.upcoming-card > p { color: var(--muted); }
.upcoming-card .proposal-deadline { margin: 0 0 20px; padding: 12px 15px; border-left: 3px solid var(--gold); background: #f9edd2; color: var(--navy); }
.proposal-deadline span { display: block; font-size: 12px; line-height: 1.5; }
.proposal-deadline strong { display: block; font-size: 17px; line-height: 1.4; margin-top: 3px; }
.upcoming-card .participation-action { margin-top: 20px; }
.proposal-details { margin-top: 18px; border-top: 1px solid var(--line); }
.proposal-details > summary { padding: 12px 0; }
.proposal-details .proposal-reference { margin-top: 16px; }
.proposal-next { margin-top: 16px; padding-top: 16px; }
.proposal-context { color: var(--muted); }
.participation-section { padding-block: 32px; }
.participation-section > .container { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: center; }
.participation-intro { max-width: 720px; margin-bottom: 28px; }
.participation-intro h2 { font-size: clamp(31px, 3.4vw, 40px); }
.participation-intro > p:last-child { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 58ch; }
.participation-channels { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.participation-card { min-width: 0; padding: 24px; background: color-mix(in oklch, var(--white) 70%, transparent); border: 1px solid color-mix(in oklch, var(--gold) 50%, var(--line)); border-top: 4px solid var(--gold); }
.participation-card > .category { display: block; min-height: 38px; margin-bottom: 12px; font-size: 12px; line-height: 1.5; }
.participation-card h3 { font-size: 25px; line-height: 1.2; margin-bottom: 12px; }
.participation-card > p:not(.category) { min-height: 72px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.participation-card .participation-action { margin-top: 20px; }
.participation-card .participation-action small { min-height: 40px; margin-top: 12px; }
.participation-card .proposal-details p { font-size: 14px; line-height: 1.7; }
.participation-card .proposal-details h4 { font-size: 13px; margin-bottom: 7px; }
.participation-card .proposal-details > summary { min-height: 44px; padding-bottom: 0; }
.participation-card .proposal-details[open] > summary { padding-bottom: 12px; }
.participation-card .proposal-reference { color: var(--muted); }
.ai-helper { margin-top: 18px; border-top: 1px solid var(--line); }
.ai-helper > summary { padding: 12px 0; min-height: 48px; font-size: 14px; gap: 12px; }
.ai-helper[open] > summary { background: transparent; }
.ai-helper-content { padding: 0 0 8px; }
.ai-helper-content > p { font-size: 13px; line-height: 1.65; margin: 4px 0 14px; color: var(--navy); }
.ai-providers { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-provider { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; min-width: 130px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--navy); border-radius: 3px; background: transparent; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out; }
.ai-provider-logo { width: 20px; height: 20px; flex: none; color: var(--navy); transition: color 150ms ease-out; }
.ai-provider-arrow { width: 14px; height: 14px; flex: none; color: inherit; }
.ai-provider:is(:focus-visible, :active) { background: var(--navy); color: var(--white); text-decoration: none; }
.ai-provider:is(:focus-visible, :active) .ai-provider-logo { color: var(--gold); }
.ai-provider:focus-visible { outline-color: CanvasText; }
.ai-provider:active { transform: scale(.96); }
.ai-provider-choice { position: relative; display: inline-flex; flex: none; }
.ai-provider-tooltip { position: absolute; z-index: 2; bottom: calc(100% + 8px); right: 0; transform: translateX(var(--tooltip-offset, 0px)); width: 250px; max-width: calc(100vw - 48px); padding: 10px 12px; border-bottom: 3px solid var(--gold); border-radius: 3px; background: var(--navy); color: var(--white); font-size: 12px; line-height: 1.5; text-align: left; opacity: 0; visibility: hidden; transition: opacity 150ms ease-out, visibility 0s linear; }
.ai-provider-tooltip::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 11px; }
.ai-provider-choice:not([data-tooltip-dismissed]):focus-within .ai-provider-tooltip { opacity: 1; visibility: visible; }
.ai-helper-content .ai-copy-status { margin-top: 12px; font-weight: 600; }
.ai-prompt-actions { margin-top: 12px; border-top: 1px solid var(--line); }
.ai-copy-button { min-height: 44px; background: none; border: 0; padding: 8px 0; font: inherit; font-size: 13px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ai-manual-copy label { display: block; margin: 6px 0 8px; font-size: 12px; }
.ai-manual-copy textarea { display: block; width: 100%; max-width: 100%; min-height: 180px; padding: 12px; border: 1px solid var(--muted); border-radius: 3px; background: var(--white); color: var(--navy); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
@media (hover: hover) and (pointer: fine) {
  .ai-provider:hover { background: var(--navy); color: var(--white); text-decoration: none; }
  .ai-provider:hover .ai-provider-logo { color: var(--gold); }
  .ai-provider-choice:not([data-tooltip-dismissed]):hover .ai-provider-tooltip { opacity: 1; visibility: visible; transition-delay: 200ms; }
}
@media (max-width: 720px) { .ai-providers { justify-content: center; } }
.participation-grid { gap: 30px; }
.participation-action .button { margin-top: 0; }
.source-section { padding-block: 16px; }
.source-details > summary { padding: 12px 0; }
.source-details > summary h2 { font-size: 24px; }
.source-details[open] > summary, .source-section details[open] > summary { background: transparent; }
.source-details p { font-size: 14px; line-height: 1.7; color: #ced2e1; max-width: 65ch; }
.source-intro { margin-block: 12px 20px; }
.metric-definitions { border-block: 1px solid var(--line-dark); }
.metric-definitions > summary { padding-inline: 0; }
.metric-definitions dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-block: 14px; }
.metric-definitions dt { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.metric-definitions dd { margin: 0; font-size: 13px; line-height: 1.7; color: #ced2e1; }
.metric-definitions > p { margin-bottom: 20px; }
.compact-source-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.compact-source-links a { padding-block: 20px; }
.data-downloads { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-block: 12px; }
.data-downloads a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.source-section summary:hover { background: transparent; }
.archive-section h1 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.14; }
.archive-coverage { padding-block: 0; }
.archive-coverage summary { padding: 8px 0; min-height: 44px; }
.archive-coverage p { margin: 0; padding-bottom: 16px; }
.archive-controls { grid-template-columns: 1.2fr .8fr 1.2fr 1.4fr; }
.archive-search { grid-column: 1 / -1; }
.archive-entry { padding-block: 20px; }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .kpi-link:hover { text-decoration: none; background: color-mix(in oklch, currentColor 5%, transparent); }
  .kpi-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 1000px) {
  .compact-source-links { grid-template-columns: 1fr; gap: 0; }
  .archive-controls { grid-template-columns: 1fr 1fr; }
  .archive-controls > div:last-child { grid-column: auto; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 0; padding-block: 8px; gap: 0; }
  .header-inner nav { justify-content: center; gap: 0 18px; max-width: none; }
  .hero-grid { padding-block: 24px; }
  .hero-copy, .section-heading, .history-heading, .panel-heading, .participation-grid, .section-overline { text-align: center; }
  .hero-copy .eyebrow, .section-heading .eyebrow, .participation-grid .eyebrow { justify-content: center; }
  .hero-copy h1 { font-size: clamp(33px, 8.7vw, 52px); }
  .hero-description { margin: 16px auto 0; }
  .hero-footnote { margin-top: 14px; font-size: 11px; }
  .hero .button { margin-top: 20px; }
  .section-overline { align-items: center; gap: 4px; padding-block: 18px 12px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { padding: 0; display: block; }
  .kpi + .kpi { border-left: 1px solid var(--navy); border-top: 0; }
  .kpi-link { padding: 16px 8px 12px; align-items: center; justify-content: flex-start; text-align: center; min-height: 142px; gap: 8px; }
  .kpi .value { font-size: clamp(27px, 7.1vw, 38px); }
  .kpi h3 { font-size: 12px; line-height: 1.3; }
  .kpi .delta { font-size: 15px; }
  .data-note { text-align: center; }
  .section-space, .numbers-section, .upcoming-section { padding-block: 32px; }
  .section-heading { align-items: center; gap: 12px; margin-bottom: 20px; }
  .section-heading > p { max-width: 38ch; margin-inline: auto; }
  .section-heading .eyebrow { margin-bottom: 10px; }
  .changes.section-space { padding-top: 24px; }
  .changes .section-heading { gap: 8px; margin-bottom: 16px; }
  .filters, .history-controls { justify-content: center; }
  .filters { gap: 7px; }
  .filters .filter { padding: 9px 12px; font-size: 12px; }
  .explorer-controls { gap: 8px; }
  .advanced-filters { width: 100%; }
  .advanced-filters > summary { justify-content: center; }
  .results-meta { justify-content: center; align-items: center; }
  .history-heading { align-items: center; gap: 6px; }
  .history-heading .text-action { justify-content: center; }
  .history-tooltip { margin-inline: auto; text-align: center; }
  .history-sources { justify-content: center; }
  .sector-panel { gap: 18px; }
  .sector-panel .panel-heading p { margin: 8px auto 0; max-width: 32ch; }
  .sector-more { grid-column: 1; text-align: center; }
  .upcoming-reviewed { margin: -4px 0 20px; text-align: center; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .upcoming-card .participation-action { text-align: center; }
  .proposal-actions { align-items: center; }
  .participation-grid { justify-items: center; gap: 20px; }
  .participation-grid p:not(.eyebrow) { margin-top: 12px; }
  .participation-action small { margin-inline: auto; }
  .participation-intro { text-align: center; margin-bottom: 24px; }
  .participation-section > .container { grid-template-columns: 1fr; }
  .participation-intro .eyebrow { justify-content: center; }
  .participation-intro > p:last-child { margin-inline: auto; }
  .participation-channels { grid-template-columns: 1fr; gap: 16px; }
  .participation-card { padding: 20px; }
  .participation-card > .category, .participation-card > p:not(.category), .participation-card .participation-action small { min-height: 0; }
  .participation-card .participation-action { text-align: center; }
  .participation-card .button { max-width: 100%; }
  .metric-definitions dl { grid-template-columns: 1fr; gap: 18px; }
  .source-details > summary { justify-content: center; }
  .source-intro { text-align: center; margin-inline: auto; }
  .data-downloads { justify-content: center; }
  .footer { justify-content: center; text-align: center; }
  .footer .brand { justify-content: center; }
  .footer p { margin-right: 0; }
  .archive-section .section-heading { align-items: center; }
  .archive-meta { align-items: center; }
}
@media (max-width: 480px) {
  .header-inner nav { gap: 0 8px; }
  .explorer-fields, .archive-controls { grid-template-columns: 1fr; }
  .archive-controls > div { grid-column: 1; }
  .upcoming-card { padding: 20px; }
}
