@font-face {
  font-family: Manrope;
  src: url('/manrope-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.map-controls .globe-controls { margin: 0; }
.map-controls .globe-controls button { font-size: 12px; min-height: 42px; }
.map-tour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}
.map-tour svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.map-tour:hover, .map-tour[data-state="playing"] { background: var(--teal); color: var(--surface); }
.map-tour:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.tour-status { margin: 6px 0; text-align: center; color: var(--muted); font-size: 12px; }

.country-site .election-lead { font-size: 15px; }
.country-site .official-name, .country-site .election-date-card small,
.country-site .advance-notice p, .country-site .map-hint,
.country-site .electorate-link, .country-site .map-credit summary,
.country-site .population-stat > small, .country-site .population-stat > a {
  font-size: 12px;
}
.country-site .advance-notice strong, .country-site .population-stat > p { font-size: 13px; }
.country-site .metric-context summary, .country-site .metric-context p,
.country-site .two-votes-card small, .country-site .two-votes-card .mmp-label {
  font-size: 12px;
}
.country-site .two-votes-card strong, .country-site .region-controls select { font-size: 13px; }
.country-site .region-controls label, .country-site .regional-population > p,
.country-site .regional-population small, .country-site .regional-population a,
.country-site .regional-enrolment > summary { font-size: 12px; }
.country-site .countdown-zone { font-size: 10px; }
.country-site .compact-workspace .practice-lead, .country-site .compact-workspace .mark-guide > p,
.country-site .compact-workspace .guide-faq summary, .country-site .compact-workspace .guide-faq p,
.country-site .compact-workspace .real-vote-links > a, .country-site .compact-workspace .real-vote-links summary {
  font-size: 13px;
}
.country-site .compact-workspace .privacy-note { font-size: 12px; }
.country-site .footer-purpose > p, .country-site .international-footer-bottom a { font-size: 12px; }
.country-site .footer-social > small, .country-site .international-footer-bottom small { font-size: 11px; }

.official-languages h2 { margin: 0 0 10px; font-size: 15px; }
.language-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.language-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.4;
}
.language-list li > span {
  flex: 0 0 42px;
  padding: 4px 0;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}
.language-list li:nth-child(2) > span { background: var(--raised); color: var(--coral-text); }
.language-list li:nth-child(3) > span { background: var(--amber-soft); color: var(--amber); }
.country-site .official-languages summary, .country-site .official-languages details p { font-size: 12px; }

.country-site .questions-heading > p:last-child,
.country-site .country-faq > div, .country-site .story-body p,
.country-site .information-cards p, .country-site .information-page > header > p:last-child {
  font-size: 15px;
}
.country-site .country-faq summary { font-size: 15px; }
.country-site .country-faq > div a, .country-site .story-body a { font-size: 13px; }
.country-site .country-faq, .country-site .story-card, .country-site .information-cards article {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.country-site :is(.country-faq, .story-card):is(:hover, :focus-within, [open]),
.country-site .information-cards article:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 22px -17px var(--teal);
}
.country-site .information-cards article:hover { transform: translateY(-3px); }
[data-information="privacy"] .information-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 1050px;
}
.country-site .country-faq summary:focus-visible,
.country-site .story-card summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.disclosure-mark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--teal);
}
.disclosure-mark::before, .disclosure-mark::after {
  position: absolute;
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: '';
}
.disclosure-mark::after { transform: rotate(90deg); }
details[open] > summary .disclosure-mark::after { display: none; }
.question-sources { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 750; }
.country-site #panorama { scroll-margin-top: 135px; }
.country-site .nz-panorama header p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.country-site .story-card > summary { display: block; padding: 0; list-style: none; }
.story-card > summary::-webkit-details-marker { display: none; }
.country-site .story-card .story-art {
  height: clamp(138px, 15vw, 194px);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}
.country-site .story-art svg { width: 100%; height: 100%; max-width: 440px; }
.art-halo { fill: var(--surface); opacity: .6; }
.art-guide { fill: none; stroke: var(--teal); opacity: .34; stroke-width: 1; }
.art-shadow { fill: #18292b; opacity: .18; }
.art-sheet { fill: var(--surface); stroke: var(--teal); stroke-width: 1.6; }
.art-band { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.3; }
.art-band-alt { fill: var(--amber-soft); }
.art-ink, .art-ring { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.art-accent { fill: var(--coral-text); }
.art-coast { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2.5; }
.story-caption { padding: 16px 20px; }
.story-caption h3 { font-size: 19px; margin: 5px 0 10px; }
.story-action { display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: 13px; }
.country-site .story-body { padding: 16px 20px 8px; border-top: 1px solid var(--line); }
.story-body > p:first-child { margin-top: 0; }

.source-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; max-width: 820px; }
.source-filters label { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 750; }
.source-filters :is(input, select) {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.source-filters input::placeholder { color: var(--muted); }
.source-filters :is(input, select):focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
#source-count { scroll-margin-top: 135px; color: var(--muted); font-size: 13px; }
.source-topic { display: block; margin-bottom: 9px; color: var(--teal); font-size: 12px; font-weight: 800; }
.country-site .public-source-list article > p { font-size: 14px; }
.country-site .public-source-list :is(a, small, summary, details p) { font-size: 12px; }
.public-source-list article { min-width: 0; overflow-wrap: anywhere; }
.source-pages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.source-pages button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.source-pages [data-source-page="next"]:not([aria-disabled="true"]) {
  background: var(--teal-soft);
  color: var(--teal);
}
.source-pages [aria-disabled="true"] { color: var(--muted); cursor: default; }
.source-pages button:not([aria-disabled="true"]):hover { border-color: var(--teal); }

@media(max-width:760px) {
  .map-controls .globe-controls button { min-height: 44px; }
  .country-site .story-grid { grid-template-columns: 1fr; }
  [data-information="privacy"] .information-cards { grid-template-columns: 1fr; }
  .source-filters { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) {
  .country-site .country-faq, .country-site .story-card, .country-site .information-cards article { transition: none; }
  .country-site .information-cards article:hover { transform: none; }
}

/* ── Tarjetas más vivas (06/11/2026). Mismo lenguaje que AsíSeVota.pe: superficies con relieve, bordes suaves, brillo
   del color de acento al pasar o en el estado activo. Solo decoración: no cambia colores de texto ni contraste. ── */
.country-site{--card-radius:14px;--card-glow-teal:color-mix(in srgb,var(--teal) 34%,transparent);--card-glow-coral:color-mix(in srgb,var(--coral) 38%,transparent);--card-lift:0 1px 0 color-mix(in srgb,#fff 6%,transparent) inset,0 18px 40px -30px #000c}
:root:not([data-theme=dark]) .country-site{--card-lift:0 1px 2px #18292b0d,0 14px 34px -24px #18292b40}
.country-site .election-facts .population-stat,.country-site .two-votes-card,.country-site .official-languages,.country-site .country-faq,.country-site .story-card,.country-site .information-cards article,.country-site .public-source-list article,.country-site .real-paper-card{border-radius:var(--card-radius);background:linear-gradient(180deg,color-mix(in srgb,var(--teal) 5%,var(--surface)),var(--surface) 62%);box-shadow:var(--card-lift)}
.country-site .election-facts .population-stat:hover,.country-site .election-facts .population-stat:focus-within,.country-site .country-faq:hover,.country-site .country-faq[open],.country-site .story-card:hover,.country-site .story-card[open]{border-color:color-mix(in srgb,var(--teal) 70%,var(--line));box-shadow:var(--card-lift),0 0 0 1px var(--card-glow-teal),0 14px 36px -22px var(--card-glow-teal)}
.country-site .metric-art{box-shadow:0 0 18px -4px var(--card-glow-teal)}
.country-site .country-map{border-radius:var(--card-radius)}
#geo-canvas svg{filter:drop-shadow(0 0 28px color-mix(in srgb,var(--teal) 22%,transparent))}

/* Cuenta regresiva: antes brilla en coral, durante la jornada en verde azulado con señal en vivo, al cierre queda serena. */
.country-site .election-countdown{position:relative;border-radius:var(--card-radius);border-left-width:1px;border-color:color-mix(in srgb,var(--coral) 55%,var(--line));background:linear-gradient(160deg,color-mix(in srgb,var(--coral) 9%,var(--surface)),var(--surface) 58%);box-shadow:var(--card-lift),0 0 0 1px color-mix(in srgb,var(--coral) 18%,transparent),0 16px 38px -24px var(--card-glow-coral);overflow:hidden}
.country-site .election-countdown::before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--coral),color-mix(in srgb,var(--coral) 20%,transparent))}
.country-site .countdown-units>.countdown-tile{border-radius:10px;background:color-mix(in srgb,var(--bg) 70%,var(--surface));box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 5%,transparent)}
.country-site .countdown-units>[data-unit=seconds]{box-shadow:0 0 0 1px var(--card-glow-coral),0 0 22px -6px var(--card-glow-coral)}
.countdown-units[hidden],.countdown-zone[hidden],.countdown-complete[hidden]{display:none!important}
.countdown-top>.countdown-icon-done{display:none}
.country-site .election-countdown[data-state=during]{border-color:color-mix(in srgb,var(--teal) 60%,var(--line));background:linear-gradient(160deg,color-mix(in srgb,var(--teal) 11%,var(--surface)),var(--surface) 60%);box-shadow:var(--card-lift),0 0 0 1px var(--card-glow-teal),0 16px 40px -20px var(--card-glow-teal)}
.country-site .election-countdown[data-state=during]::before{background:linear-gradient(90deg,var(--teal),color-mix(in srgb,var(--teal) 20%,transparent))}
.country-site [data-state=during] .countdown-units>[data-unit=seconds]{box-shadow:0 0 0 1px var(--card-glow-teal),0 0 22px -6px var(--card-glow-teal)}
[data-state=during] .countdown-signal{box-shadow:0 0 0 0 var(--card-glow-teal);animation:countdown-live 1.8s ease-out infinite}
@keyframes countdown-live{0%{box-shadow:0 0 0 0 var(--card-glow-teal)}70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
.country-site .election-countdown[data-state=ended]{border-color:var(--line);background:linear-gradient(160deg,color-mix(in srgb,var(--teal) 6%,var(--surface)),var(--surface) 60%);box-shadow:var(--card-lift)}
.country-site .election-countdown[data-state=ended]::before{background:linear-gradient(90deg,var(--teal),transparent)}
[data-state=ended] .countdown-top{color:var(--teal)}
[data-state=ended] .countdown-top>.countdown-icon-clock,[data-state=ended] .countdown-signal{display:none}
[data-state=ended] .countdown-top>.countdown-icon-done{display:block}
.country-site .election-countdown[data-state=ended]>[data-countdown-label]{font-size:21px;line-height:1.25;font-weight:800;letter-spacing:-.4px;margin:2px 0 6px}
.country-site .election-countdown[data-state=ended] .countdown-complete{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 2px}

/* Botón principal con brillo, como «Ver mi cédula» en el .pe. */
.country-site .country-cta{border-radius:12px;background:linear-gradient(180deg,color-mix(in srgb,#fff 10%,var(--action-coral)),var(--action-coral));box-shadow:0 1px 0 #ffffff26 inset,0 12px 28px -12px var(--card-glow-coral)}
.country-site .country-cta:hover{box-shadow:0 1px 0 #ffffff26 inset,0 16px 32px -10px var(--card-glow-coral)}

/* Interruptor claro/oscuro con dos iconos. */
.site-preferences #theme{gap:2px;padding:3px;min-width:0;border-radius:10px;background:var(--raised);border:1px solid var(--line)}
.site-preferences #theme .theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#theme .theme-opt{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;color:var(--muted)}
#theme .theme-opt.is-on{background:var(--ink);color:var(--bg);box-shadow:0 4px 12px -6px #0009}
@media(max-width:760px){.site-preferences #theme{width:44px;min-width:44px;padding:3px}#theme .theme-opt{width:36px;height:36px}#theme .theme-opt:not(.is-on){display:none}}
@media(prefers-reduced-motion:reduce){[data-state=during] .countdown-signal{animation:none}}
