/* Guía de Cabo Verde: mapa de las islas y boletim de voto. El resto del diseño viene de la guía de Nueva Zelanda. */
.cv-page{--cv-blue:#2b4fa3;--cv-sea:#0f2a33}
:root:not([data-theme=dark]) .cv-page{--cv-sea:#e6eff0}

/* Mapa */
.cv-svg{width:100%;height:auto;display:block;border-radius:12px;background:radial-gradient(120% 90% at 50% 40%,color-mix(in srgb,var(--teal) 14%,var(--cv-sea)),var(--cv-sea));filter:drop-shadow(0 0 26px color-mix(in srgb,var(--teal) 18%,transparent))}
.cv-concelho{stroke:var(--surface);stroke-width:.9;cursor:pointer;transition:fill .15s,opacity .15s;outline:none}
.cv-concelho.island-0{fill:#4d8480}.cv-concelho.island-1{fill:#5b8b7b}.cv-concelho.island-2{fill:#467b74}.cv-concelho.island-3{fill:#6a9a8d}.cv-concelho.island-4{fill:#3f726f}
.cv-concelho.island-5{fill:#5f9188}.cv-concelho.island-6{fill:#4a8079}.cv-concelho.island-7{fill:#567f86}.cv-concelho.island-8{fill:#6b9790}
.cv-concelho:hover,.cv-concelho:focus-visible,.cv-concelho.is-preview,.cv-concelho.is-selected{fill:#f2927d}
.cv-concelho.is-selected{stroke:#f4f2eb;stroke-width:1.6}
.cv-concelho:focus-visible{stroke:#fff;stroke-width:2.4}
.cv-island-label{font-size:13px;font-weight:800;fill:var(--ink);paint-order:stroke;stroke:var(--cv-sea);stroke-width:4px;stroke-linejoin:round;pointer-events:none}

/* Boletim de voto */
.cv-ballot-area{min-width:0}
.cv-ballot{max-width:560px;margin:0 auto;padding:22px 22px 18px;border-radius:14px;background:#fbfaf5;color:#18292b;box-shadow:0 1px 0 #fff inset,0 24px 50px -30px #000b;border:1px solid #d9d6c8}
.cv-ballot .eyebrow{color:#286a61}.cv-ballot h2{margin:4px 0 6px;font-size:24px;letter-spacing:-.5px}.cv-ballot header>p:last-child{margin:0 0 14px;font-size:12.5px;color:#56676a}
.cv-rows{list-style:none;margin:0;padding:0;border-top:2px solid #18292b}
.cv-row{display:grid;grid-template-columns:34px 46px 1fr 64px;align-items:center;gap:12px;min-height:72px;padding:8px 6px;border-bottom:1px solid #b9b5a6;cursor:default}
.cv-order{font-size:20px;font-weight:800;text-align:center}
.cv-photo svg{width:40px;height:48px;fill:#9aa6a6}.cv-photo .cv-photo-frame{fill:#e9e6da;stroke:#b9b5a6}
.cv-name strong{font-size:15px}
.cv-square{justify-self:end;width:52px;height:52px;border:2.5px solid #18292b;border-radius:4px;background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.cv-square:focus-visible{outline:3px solid #2b4fa3;outline-offset:3px}
.cv-square:hover{background:#f1efe5}
.cv-hint{margin:12px 2px 0;font-size:12.5px;color:#56676a}.cv-hint.is-warning{color:#9b3b2a;font-weight:700}
.cv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.cv-actions .cv-review{min-height:46px;padding:12px 18px;border:0;cursor:pointer;max-width:none}
.cv-actions .quiet{min-height:46px;padding:10px 14px;border:1px solid #b9b5a6;border-radius:10px;background:#fff;color:#18292b;font:inherit;font-weight:700;cursor:pointer}
.cv-count{margin-left:auto;font-size:12px;color:#56676a}
.cv-result{margin-top:14px;padding:14px 16px;border-radius:12px;border:1px solid;font-size:13px}
.cv-result strong{font-size:17px}.cv-result p{margin:6px 0 0;line-height:1.55}.cv-result small{display:block;margin-top:8px;color:#56676a}
.cv-result.is-valid{border-color:#286a61;background:#e1efea}.cv-result.is-blank{border-color:#7a4506;background:#fcf0db}.cv-result.is-invalid{border-color:#9b3b2a;background:#f8e3de}
.cv-rule span{font-weight:800}.cv-result a{color:#286a61;font-weight:700}
.cv-privacy{margin:12px 2px 0;font-size:11.5px;color:#56676a}
.cv-guide p{font-size:13px;line-height:1.6;color:var(--muted)}
.cv-system p{font-size:13px;line-height:1.6;color:var(--muted)}
@media(max-width:760px){.cv-ballot{padding:16px 12px 14px}.cv-row{grid-template-columns:26px 38px 1fr 56px;gap:8px}.cv-square{width:48px;height:48px}}

/* Ajustes de la portada de Cabo Verde */
.cv-page .election-intro h1{font-size:clamp(36px,3.4vw,52px);line-height:1.04}
.cv-page .election-intro h1 span{display:inline}
body.cv-page .site-preferences .language-picker #language{width:136px}
.cv-page .cv-system{padding:16px 18px;border:1px solid var(--line)}
.cv-page .cv-system p{margin:6px 0 0}
@media(max-width:760px){body.cv-page .site-preferences .language-picker #language{width:100px}}

/* Marca libre y sello del veredicto */
.cv-sheet{position:relative}
.cv-row{position:relative;cursor:crosshair}
.cv-square{position:relative;z-index:1}
.cv-ink{position:absolute;inset:0;pointer-events:none;z-index:2}
.cv-mark{position:absolute;width:30px;height:30px;transform:translate(-50%,-50%) rotate(-4deg);pointer-events:none}
.cv-mark svg{width:100%;height:100%;fill:none;stroke:#1b3d8f;stroke-width:3.2;stroke-linecap:round}
.cv-keyboard{display:block;margin-top:4px;font-size:11.5px}
.cv-stamp{position:absolute;z-index:3;top:42%;left:50%;pointer-events:none;transform:translate(-50%,-50%) rotate(-11deg);animation:cv-stamp-in .42s cubic-bezier(.2,.9,.3,1.25) both}
.cv-stamp span{display:inline-block;padding:10px 22px;border:5px double currentColor;border-radius:10px;font-size:clamp(26px,5vw,40px);font-weight:900;letter-spacing:2px;white-space:nowrap;background:color-mix(in srgb,#fbfaf5 78%,transparent);mix-blend-mode:multiply;text-shadow:0 0 1px currentColor}
.cv-stamp.is-valid{color:#1f6b55}.cv-stamp.is-invalid{color:#b3321f}.cv-stamp.is-blank{color:#5f5a4a}.cv-stamp.is-review{color:#8a5a00}
@keyframes cv-stamp-in{0%{opacity:0;transform:translate(-50%,-50%) rotate(-24deg) scale(2.1)}65%{opacity:1;transform:translate(-50%,-50%) rotate(-9deg) scale(.94)}100%{opacity:1;transform:translate(-50%,-50%) rotate(-11deg) scale(1)}}
.cv-result.is-review{border-color:#8a5a00;background:#fcf0db}
@media(prefers-reduced-motion:reduce){.cv-stamp{animation:none}}
/* Mapa común (site/country-map.js): el lienzo de los concelhos lleva el mar de Cabo Verde, como el globo. */
.cv-map .regional-map.cv-svg{border-radius:12px}
.cv-map .capital-marker text{stroke:var(--cv-sea)}
