/* Spain data-centre exercise. Colours and type come from the quiet theme
   (/ui/pv8-quiet.css); the fallbacks are that theme's light values. Light
   only: the operating-system preference switches nothing. */
*,*::before,*::after{box-sizing:border-box}
/* in-page jumps stop below the shared sticky header (76 to 100 px tall as the row wraps) */
html{-webkit-text-size-adjust:100%;scroll-padding-top:116px}
body.dcx{margin:0;background:var(--pv8-paper,#fbfaf7);color:var(--pv8-ink,#15242e);font-size:1rem;line-height:1.5;overflow-wrap:break-word}
.dcx [hidden]{display:none!important}
.dcx a{color:var(--pv8-action,#123d56);text-underline-offset:3px}
.dcx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* above the shared sticky header, as the other public pages' skip links */
.dcx-skip{position:absolute;left:-999px;top:0;background:var(--pv8-paper,#fbfaf7);padding:12px 16px;z-index:100000}
.dcx-skip:focus{left:8px;top:8px}
.dcx main,.dcx-foot{max-width:880px;margin:0 auto;padding:0 16px}
/* text keeps a reading measure in the wider page; the constructor uses the width */
.dcx-hero p,.dcx-card>p,.dcx-next form,.dcx-action,.dcx-rests>*{max-width:680px}
/* the shared public header (public-header.css); this page's en/es switch sits at its end, and the
   multi-factor field stays hidden until the login asks for it (the landing's inline style) */
.pv8-public-header #hOtp{display:none}
/* the PV8 ribbon wordmark, as pv8-modernist.css draws it on every other public page
   ("Approved rounded ribbon wordmark"); that stylesheet would restyle this whole page */
.pv8-public-header .pv8-brand .pv8-wordmark {
  display:inline-block;flex:0 0 auto;width:70px;height:30px;margin:0;
  background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20286%20120%22%20role%3D%22img%22%20aria-labelledby%3D%22title%22%3E%20%3Ctitle%20id%3D%22title%22%3EPV8%3C%2Ftitle%3E%20%3Cdefs%3E%20%3Cmask%20id%3D%22ribbon-crossing%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%22-3%22%20y%3D%22-1%22%20width%3D%2274%22%20height%3D%2298%22%3E%20%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M-3-1H71V97H-3Z%22%2F%3E%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%224.5%22%20d%3D%22M10%2045L36%2059M32%2034L57%2048%22%2F%3E%20%3C%2Fmask%3E%20%3C%2Fdefs%3E%20%3Cg%20transform%3D%22translate(12%2012)%22%20fill%3D%22%23101e2a%22%3E%20%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M0%200H44C65%200%2076%2012%2076%2032S65%2064%2044%2064H20V96H0ZM20%2018V46H43C52%2046%2056%2041%2056%2032S52%2018%2043%2018Z%22%2F%3E%20%3Cpath%20d%3D%22M85%200H107L130%2070L153%200H175L141%2096H119Z%22%2F%3E%20%3Cpath%20transform%3D%22translate(192%200)%22%20fill%3D%22%2311426b%22%20mask%3D%22url(%23ribbon-crossing)%22%20fill-rule%3D%22evenodd%22%20d%3D%22M34%200C54%200%2066%2010%2066%2025C66%2035%2061%2042%2052%2046C63%2050%2070%2058%2070%2070C70%2087%2056%2096%2034%2096C12%2096-2%2087-2%2070C-2%2058%205%2050%2016%2046C7%2042%202%2035%202%2025C2%2010%2014%200%2034%200ZM34%2016C25%2016%2020%2020%2020%2027C20%2034%2025%2038%2034%2038C43%2038%2048%2034%2048%2027C48%2020%2043%2016%2034%2016ZM34%2055C23%2055%2017%2060%2017%2068C17%2076%2023%2081%2034%2081C45%2081%2051%2076%2051%2068C51%2060%2045%2055%2034%2055Z%22%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E") left center/contain no-repeat;
  font-size:0!important;line-height:0!important;letter-spacing:0;
}
.pv8-public-header .pv8-brand .pv8-wordmark span {font-size:0!important}
@media (max-width:680px) {
  .pv8-public-header .pv8-brand .pv8-wordmark {width:60px;height:25px}
}
@media (forced-colors:active) {
  .pv8-public-header .pv8-brand .pv8-wordmark {background:none;font-size:26px!important;line-height:30px!important;color:LinkText!important}
  .pv8-public-header .pv8-brand .pv8-wordmark span {font-size:inherit!important;color:inherit!important}
}
.pv8-public-header .dcx-lang{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:.9375rem}
@media (max-width:980px){
  .pv8-public-header > .dcx-lang{margin-left:auto}
}
@media (max-width:680px){
  .pv8-public-header > .dcx-lang{position:absolute;top:6px;right:12px}
}
.dcx-hero{padding:20px 0 4px}
.dcx .dcx-hero h1{margin:0 0 10px;font-size:1.5rem;line-height:1.2;letter-spacing:-.02em}
.dcx-status{margin:0 0 6px;font-size:.875rem;color:var(--pv8-attention,#805817)}
.dcx-lead{margin:0 0 8px}
.dcx-card{margin:16px 0;padding:16px;border:1px solid var(--pv8-rule,#deded7);border-radius:8px;background:var(--pv8-paper,#fbfaf7)}
.dcx .dcx-card h2{margin:0 0 8px;font-size:1.1875rem;line-height:1.3}
.dcx .dcx-card h3{margin:20px 0 6px;font-size:1rem;line-height:1.35}
.dcx-card p{margin:0 0 10px}
.dcx-badge{display:inline-block;margin:0 0 6px!important;padding:2px 8px;border:1px solid var(--pv8-control-rule,#8a949a);border-radius:4px;font-size:.8125rem;font-weight:600}
.dcx-fine,.dcx-hint{font-size:.875rem;color:var(--pv8-muted,#59656d)}
.dcx-hint{margin:4px 0 0!important}
.cx-chart{margin:0;min-width:0}
.cx-svg{display:block;width:100%;height:auto;overflow:visible}
.cx-svg text{fill:var(--pv8-muted,#59656d);font-size:13px}
.cx-svg .cx-t-load{fill:var(--pv8-ink,#15242e);font-weight:600;paint-order:stroke;stroke:var(--pv8-paper,#fbfaf7);stroke-width:4px;stroke-linejoin:round}
.cx-a-solar{fill:#f3ead6;stroke:#a8791f;stroke-width:1.2}
.cx-a-wind{fill:#b3dbe0;stroke:#2f7d8c;stroke-width:1}
.cx-a-out{fill:#d9d0ee;stroke:#6d5c94;stroke-width:1;stroke-dasharray:3 2}
.cx-a-in{fill:#6d5c94;fill-opacity:.55}
.cx-axis{stroke:var(--pv8-rule,#deded7)}
.cx-l-load{stroke:var(--pv8-ink,#15242e);stroke-width:2.2}
.cx-l-need{fill:none;stroke:var(--pv8-ink,#15242e);stroke-width:1.2;stroke-dasharray:5 4}
.cx-legend{display:flex;flex-wrap:wrap;gap:2px 14px;margin:6px 0 4px;padding:0;list-style:none;font-size:.75rem;color:var(--pv8-muted,#59656d)}
.cx-legend li{display:inline-flex;align-items:center;gap:6px}
.cx-legend li::before{content:"";flex:none;width:14px;height:10px;border-radius:2px}
.cx-k-solar::before{background:#f3ead6;box-shadow:inset 0 0 0 1px #a8791f}
.cx-k-wind::before{background:#b3dbe0;box-shadow:inset 0 0 0 1px #2f7d8c}
.cx-k-out::before{background:#d9d0ee;box-shadow:inset 0 0 0 1px #6d5c94}
.cx-k-in::before{background:#6d5c94;opacity:.7}
.cx-legend .cx-k-load::before{height:0;border-top:2px solid var(--pv8-ink,#15242e)}
.cx-legend .cx-k-need::before{height:0;border-top:2px dashed var(--pv8-ink,#15242e)}
#result:focus{outline:none}
.dcx-detail{margin-top:12px;font-size:.875rem;color:var(--pv8-muted,#59656d)}
.dcx-detail .result-case{margin:0 0 4px;color:var(--pv8-ink,#15242e)}
.dcx-detail .result-other{margin:0 0 6px}
.dcx-detail .result-notes{margin:6px 0 0;padding:0 0 0 18px}
.dcx-detail .result-notes li{margin:0 0 4px}
.dcx-action{margin:16px 0 0;padding:14px 14px 4px;border-radius:8px;background:var(--pv8-selection,#e5edf1)}
.dcx .dcx-action h3{margin:0 0 6px;font-size:1.0625rem;line-height:1.3}
.dcx-action p{margin:0 0 10px}
.dcx-plan{font-size:.875rem;color:var(--pv8-muted,#59656d)}
.dcx-plan-over{padding:10px 12px;border-left:3px solid var(--pv8-attention,#805817);background:var(--pv8-attention-soft,#f3ead6);font-size:1rem;color:var(--pv8-ink,#15242e)}
.dcx-plan a{padding:10px 0;font-weight:600}
.dcx-jump{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.dcx-textlink{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--pv8-action,#123d56);font-size:.875rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.dcx-field{margin:0 0 14px;padding:0;border:0;min-width:0}
.dcx-field>label,.dcx-field>legend{display:block;margin:0 0 4px;padding:0;font-weight:600}
.dcx-field input[type=number],.dcx-field input[type=text],.dcx-field input[type=email],.dcx-field select{display:block;width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--pv8-control-rule,#8a949a);border-radius:6px;background:#fff;color:var(--pv8-ink,#15242e);font-size:1rem}
.dcx-field input[aria-invalid=true]{border-color:var(--pv8-negative,#aa302a);border-width:2px}
.dcx-choice label{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 16px 0 0;font-weight:400}
.dcx-choice input{width:22px;height:22px;margin:0;flex:none}
.dcx-stack label{display:flex;margin:0}
.dcx-error{margin:4px 0 0!important;font-size:.875rem;font-weight:600;color:var(--pv8-negative,#aa302a)}
.dcx-more{margin:0 0 14px;border-top:1px solid var(--pv8-rule,#deded7);border-bottom:1px solid var(--pv8-rule,#deded7)}
.dcx-more summary{display:flex;align-items:center;min-height:48px;cursor:pointer;font-weight:600;color:var(--pv8-action,#123d56)}
.dcx-more[open] summary{margin-bottom:8px}
.dcx-button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:10px 18px;border:1px solid var(--pv8-action,#123d56);border-radius:6px;background:var(--pv8-action,#123d56);color:var(--pv8-on-action,#fff);font-size:1rem;font-weight:600;text-decoration:none;cursor:pointer}
.dcx a.dcx-button{color:var(--pv8-on-action,#fff)}
.dcx-button:hover{background:var(--pv8-action-hover,#0c2c40)}
.dcx-button[disabled]{opacity:.6;cursor:progress}
.dcx-button.dcx-quiet{background:transparent;color:var(--pv8-action,#123d56)}
.dcx-button.dcx-quiet:hover{background:var(--pv8-selection,#e5edf1)}
.dcx :is(a,button,input,select,summary,canvas):focus-visible{outline:2px solid var(--pv8-action,#123d56);outline-offset:3px}
.dcx-notice{margin:12px 0 0!important;padding:10px 12px;border-left:3px solid var(--pv8-attention,#805817);background:var(--pv8-attention-soft,#f3ead6)}
.dcx-share{margin:4px 0 0!important}
.dcx-also{margin-top:14px!important}
.dcx-next .dcx-fine a{display:inline-block;padding:10px 0}
.dcx-share input{display:block;width:100%;min-height:44px;margin-top:8px;padding:8px;border:1px solid var(--pv8-control-rule,#8a949a);border-radius:6px;font-size:.875rem}
.dcx-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.dcx-preview{margin:0 0 10px;padding:10px 12px;border:1px dashed var(--pv8-control-rule,#8a949a);border-radius:6px;background:var(--pv8-soft,#f1f0eb);font-family:inherit;font-size:.875rem;white-space:pre-wrap;overflow-wrap:anywhere}
.dcx-rests dl{margin:0 0 10px}
.dcx-rests dt{font-size:.875rem;color:var(--pv8-muted,#59656d)}
.dcx-rests dd{margin:0 0 8px}
.dcx-rests ul{margin:0 0 10px;padding-left:18px}
.dcx-rests li{margin-bottom:6px}
.dcx-foot{padding-top:8px;padding-bottom:32px;font-size:.875rem;color:var(--pv8-muted,#59656d)}
.dcx-foot a{display:inline-flex;align-items:center;min-height:44px;margin-right:12px}
.dcx-foot p{margin:4px 0 0}
@media (min-width:600px){
  .dcx .dcx-hero h1{font-size:2rem}
  .dcx-card{padding:24px}
  .dcx-button{width:auto}
}
/* on a phone the 560-unit drawing is about 310 px wide: labels grow so they read at about 12 px */
/* The constructor: the data centre and its supply on the left, the year and
   one of its days on the right; the month table and the notes below. */
.cx{display:grid;gap:20px;margin:12px 0 8px}
.cx-controls{min-width:0}
.cx-group{margin:0 0 14px;padding:0 0 4px;border:0;border-bottom:1px solid var(--pv8-rule,#deded7);min-width:0}
.cx-group>legend{padding:0;margin:0 0 6px;font-weight:650}
.cx-field{margin:0 0 10px}
.cx-field>label{display:block;margin:0 0 2px;font-size:.875rem}
.cx-pair{display:grid;grid-template-columns:minmax(0,1fr) 6.5em;gap:10px;align-items:center}
.cx-number{display:block;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--pv8-control-rule,#8a949a);border-radius:6px;background:#fff;color:var(--pv8-ink,#15242e);font-size:1rem;font-variant-numeric:tabular-nums}
.cx-number[aria-invalid=true]{border-color:var(--pv8-negative,#aa302a);border-width:2px}
.cx-range{width:100%;min-height:44px;margin:0;accent-color:var(--pv8-action,#123d56)}
.cx-choice{margin:4px 0 8px;padding:0;border:0}
.cx-choice>legend{padding:0;margin:0 0 2px;font-size:.875rem}
.cx-choice label,.cx-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 14px 0 0}
.cx-choice input,.cx-check input{width:22px;height:22px;margin:0;flex:none}
.cx-results{min-width:0}
.cx-figures{padding:12px 14px;border-radius:8px;background:var(--pv8-selection,#e5edf1)}
.cx-figures p{margin:0 0 6px}
.cx-headline{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.cx-value{font-size:2rem;line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cx-line{font-weight:600}
.cx-flex{padding-top:6px;border-top:1px solid var(--pv8-rule,#deded7)}
.cx-year,.cx-chart{margin:14px 0 0;min-width:0}
.cx-cap{margin:0 0 6px;font-weight:600;font-size:.9375rem}
.cx-map{display:block;width:100%;height:144px;image-rendering:pixelated;border:1px solid var(--pv8-rule,#deded7);cursor:pointer;background:#e4e3dc}
.cx-map-months{display:grid;grid-template-columns:repeat(12,1fr);font-size:.75rem;color:var(--pv8-muted,#59656d)}
.cx-k-ok::before{background:#2f7d8c}
.cx-k-short::before{background:linear-gradient(90deg,#e8c46a,#aa302a)}
.cx-k-free::before{background:#e4e3dc;box-shadow:inset 0 0 0 1px var(--pv8-rule,#deded7)}
.cx-gap{margin:14px 0 0;min-width:0}
.cx-bar{fill:#aa302a;fill-opacity:.75}
.cx-levers{margin:6px 0 0;padding:6px 0 0 18px;border-top:1px solid var(--pv8-rule,#deded7);font-size:.875rem}
.cx-levers li{margin:0 0 2px}
.cx-months{width:100%;max-width:680px;margin:16px 0 6px;border-collapse:collapse;font-size:.875rem;font-variant-numeric:tabular-nums}
.cx-months caption{text-align:left;font-weight:650;padding:0 0 6px}
.cx-months th,.cx-months td{padding:5px 8px;border-bottom:1px solid var(--pv8-rule,#deded7);text-align:right}
.cx-months th:first-child{text-align:left;font-weight:500}
.cx-months thead th{font-weight:600;color:var(--pv8-muted,#59656d)}
.dcx-cx .result-notes{max-width:680px;margin:8px 0 0;padding:0 0 0 18px;font-size:.875rem;color:var(--pv8-muted,#59656d)}
.dcx-cx .result-notes li{margin:0 0 4px}
@media (max-width:520px){
  .cx-svg text{font-size:22px}
}
@media (min-width:820px){
  .cx{grid-template-columns:300px minmax(0,1fr);gap:28px}
}
