.sc-visual{--sv-ink:#21395c;--sv-blue:#354fc0;color:var(--sv-ink);min-width:0;max-width:100%}
.sc-visual *{box-sizing:border-box}
.sc-visual .sv-box{border:1px solid #cbd7ea;border-radius:22px;background:#fff;overflow:hidden;margin:1rem 0;padding:clamp(.85rem,3vw,1.5rem)}
.sc-visual .sv-heading{margin-bottom:1rem}
.sc-visual .sv-kicker{font-size:.82rem;font-weight:750;letter-spacing:.035em;color:#4b5b7b}
.sc-visual h3{font-size:clamp(1.25rem,3vw,1.65rem);line-height:1.25;margin:.35rem 0 .6rem}
.sc-visual .sv-controls{display:grid;gap:.9rem;margin-bottom:1rem;min-width:0}
.sc-visual .sv-button-row,.sc-visual .sv-play-row,.sc-visual .sv-zone-buttons,.sc-visual .sv-map-buttons,.sc-visual .sv-action-choices{display:flex;flex-wrap:wrap;gap:.55rem;min-width:0}
.sc-visual .sv-controls button{font:inherit;font-size:.96rem;line-height:1.35;font-weight:650;min-height:46px;border:1.5px solid #b9c9e2;border-radius:12px;padding:.65rem .85rem;background:#f9fbff;color:var(--sv-ink);cursor:pointer;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.sc-visual .sv-controls button:hover:not(:disabled){background:#edf2ff;border-color:#627bb3}
.sc-visual .sv-controls button[aria-pressed="true"]{background:#e5ecff;border-color:var(--sv-blue);box-shadow:inset 0 0 0 1px var(--sv-blue);color:#203e9a}
.sc-visual .sv-controls button:disabled{cursor:default;opacity:.5}
.sc-visual button:focus-visible,.sc-visual input:focus-visible,.sc-visual select:focus-visible{outline:3px solid #ad6200;outline-offset:4px}
.sc-visual .sv-range{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem;font-weight:650;min-width:0}
.sc-visual .sv-range output{font-weight:800;color:#264b8a;text-align:right;overflow-wrap:anywhere}
.sc-visual .sv-range input{grid-column:1/-1;width:100%;height:36px;accent-color:#3658b6;cursor:pointer;margin:0}
.sc-visual .sv-help,.sc-visual .sv-step-count{margin:0;font-size:.89rem;line-height:1.5;color:#4e5e78}
.sc-visual .sv-stage{max-width:680px;margin:0 auto;min-width:0}
.sc-visual .sv-stage svg{display:block;width:100%;height:auto;max-width:100%}
.sc-visual .sv-svg-text{font:600 23px system-ui,sans-serif;fill:#263c60}
.sc-visual .sv-svg-small{font:600 19px system-ui,sans-serif;fill:#263c60}
.sc-visual .sv-svg-big{font:700 38px system-ui,sans-serif;fill:#263c60}
.sc-visual .sv-result{padding:1rem 1.1rem;margin-top:1rem;background:#f0f4ff;border-left:4px solid #3f5fc1;border-radius:0 14px 14px 0}
.sc-visual .sv-result h4{font-size:1.06rem;line-height:1.4;margin:0 0 .5rem}
.sc-visual .sv-result p{font-size:1rem;line-height:1.65;margin:.45rem 0 0}
.sc-visual .sv-result .sv-es{font-size:.92rem;color:#465572;border-top:1px solid #d3def3;padding-top:.65rem;margin-top:.7rem}
.sc-visual .sv-footnote{font-size:.85rem;line-height:1.55;color:#53617a;margin:1rem 0 0}
.sc-visual .sv-select{display:grid;gap:.5rem;font-weight:700}
.sc-visual select{font:inherit;color:var(--sv-ink);border:1px solid #aabddc;background:#fff;border-radius:10px;padding:.7rem;min-height:46px;max-width:100%;width:100%}
.sc-visual .sv-action-question{margin:0;line-height:1.55;font-weight:650}
.sc-visual .sv-action-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.sc-visual [hidden]{display:none!important}
@media(max-width:560px){.sc-visual .sv-range{grid-template-columns:minmax(0,1fr)}.sc-visual .sv-range output{text-align:left}.sc-visual .sv-controls button{font-size:.9rem}.sc-visual .sv-zone-buttons,.sc-visual .sv-map-buttons{display:grid;grid-template-columns:minmax(0,1fr)}.sc-visual .sv-zone-buttons button,.sc-visual .sv-map-buttons button{text-align:left}.sc-visual .sv-play-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sc-visual .sv-play-row button[data-sv-action="play"]{grid-column:1/-1;grid-row:2}.sc-visual .sv-action-choices{grid-template-columns:minmax(0,1fr)}.sc-visual .sv-result{padding:.8rem}.sc-visual .sv-svg-text{font-size:25px}.sc-visual .sv-svg-small{font-size:20px}}
@media(prefers-reduced-motion:reduce){.sc-visual *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:560px){.sc-visual[data-sv-topic="zones"] .sv-box,.sc-visual[data-sv-topic="spain"] .sv-box{display:flex;flex-direction:column}.sc-visual[data-sv-topic="zones"] .sv-heading,.sc-visual[data-sv-topic="spain"] .sv-heading{order:1}.sc-visual[data-sv-topic="zones"] .sv-stage,.sc-visual[data-sv-topic="spain"] .sv-stage{order:2;width:100%;margin-bottom:1rem}.sc-visual[data-sv-topic="zones"] .sv-controls,.sc-visual[data-sv-topic="spain"] .sv-controls{order:3}.sc-visual[data-sv-topic="zones"] .sv-result,.sc-visual[data-sv-topic="spain"] .sv-result{order:4}.sc-visual[data-sv-topic="zones"] .sv-footnote,.sc-visual[data-sv-topic="spain"] .sv-footnote{order:5}}

/* Spain uses geographic coordinates and real country outlines. */
.sc-visual[data-sv-topic="spain"] .sv-stage{max-width:760px}
.sv-spain-map{position:relative;isolation:isolate}
.sc-visual .sv-map-label{font:600 24px system-ui,sans-serif;fill:#263c60;paint-order:stroke;stroke:#edf6fb;stroke-width:3px;stroke-linejoin:round}
.sc-visual .sv-map-territory{font:600 18px system-ui,sans-serif;fill:#263c60;paint-order:stroke;stroke:#edf6fb;stroke-width:3px}
.sc-visual .sv-map-inset-note{font:500 16px system-ui,sans-serif;fill:#46556a}
.sc-visual .sv-map-key{font:600 23px system-ui,sans-serif;fill:#263c60}
.sc-visual .sv-map-marker{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:5px;border:0;border-radius:50%;background:transparent;cursor:pointer;z-index:1;font:800 17px system-ui,sans-serif;color:var(--marker-color)}
.sc-visual .sv-map-marker>span{display:grid;place-items:center;width:34px;height:34px;border:2px solid var(--marker-color);border-radius:50%;background:#fff;box-shadow:0 2px 4px #21395c30}
.sc-visual .sv-map-marker[aria-pressed="true"]>span{background:var(--marker-color);color:#fff;outline:3px solid #fff}
.sc-visual .sv-map-marker:hover>span{box-shadow:0 0 0 4px #fff,0 0 0 6px var(--marker-color)}
.sc-visual .sv-map-marker:focus-visible{outline:3px solid #203e9a;outline-offset:2px;background:#fff}
.sc-visual[data-sv-topic="spain"] .sv-footnote a{color:#234c95;text-underline-offset:3px}
@media(forced-colors:active){.sc-visual .sv-map-marker>span{border:2px solid ButtonText}.sc-visual .sv-map-marker[aria-pressed="true"]>span{outline:3px solid Highlight}}


/* Annual temperature ranges: the geographic outlines and point positions stay fixed. */
.sc-visual .sv-temperature-period{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.35rem .8rem;color:#344f73;font-size:.9rem;font-weight:750;margin:0 0 .75rem}
.sc-visual .sv-temperature-period span{font-size:.85rem;font-weight:500}
.sc-visual .sv-temperature-panel{border:1px solid #d0dbea;border-radius:16px;background:#f8faff;padding:1rem;margin-top:.8rem}
.sc-visual .sv-temperature-panel h4{margin:0 0 .4rem;font-size:1rem;line-height:1.45}
.sc-visual .sv-temperature-panel h4 span{display:block;font-weight:500;color:#465572;font-size:.88rem}
.sc-visual .sv-temperature-instructions{font-size:.9rem;line-height:1.5;margin:.3rem 0 .8rem;color:#465572}
.sc-visual .sv-temperature-instructions span,.sc-visual .sv-temperature-summary span{display:block}
.sc-visual .sv-temperature-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.sc-visual .sv-temperature-legend button{display:flex;align-items:center;gap:.5rem;min-width:0;min-height:46px;padding:.65rem .7rem;border:1.5px solid #aebed5;border-radius:10px;background:#fff;color:#21395c;font:650 .9rem/1.4 system-ui,sans-serif;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.sc-visual .sv-temperature-legend button:hover{border-color:#3555a0;background:#f0f4ff}
.sc-visual .sv-temperature-legend button[aria-pressed="true"]{outline:2px solid #3555a0;outline-offset:1px;background:#eaf0ff;color:#153870}
.sc-visual .sv-temperature-swatch{display:block;width:25px;height:25px;flex:0 0 25px;border:1px solid #47596f;border-radius:6px;background:var(--swatch)}
.sc-visual .sv-temperature-summary{font-size:.9rem;line-height:1.55;margin:.9rem 0 .5rem;color:#344f73}
.sc-visual .sv-temperature-note{font-size:.8rem;line-height:1.5;color:#52617a;margin:.5rem 0 0}
.sc-visual .sv-temperature-nodata{display:inline-block;width:20px;height:15px;margin-right:.3rem;border:1px solid #8b9aa8;border-radius:3px;vertical-align:middle;background:repeating-linear-gradient(135deg,#fff,#fff 4px,#bac3cc 4px,#bac3cc 5px)}
.sc-visual .sv-temperature-learning{border-top:1px solid #cbd7ea;padding-top:.8rem}
@media(max-width:560px){.sc-visual .sv-temperature-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-visual .sv-temperature-panel{padding:.8rem}.sc-visual .sv-temperature-legend button{font-size:.85rem;padding:.6rem .5rem}}
@media(max-width:360px){.sc-visual .sv-temperature-legend{grid-template-columns:minmax(0,1fr)}}
@media(forced-colors:active){.sc-visual .sv-temperature-legend button[aria-pressed="true"]{outline:3px solid Highlight}}
