/* lilac: #c9a7f5 (page and bars), #ece2fc (soft), #1e0f33 (ink and header), #6d3fb8 (accent) */
*{margin:0;padding:0;box-sizing:border-box}
body{min-height:100%;overflow-wrap:break-word;font-family:Arial, sans-serif;line-height:1.4;color:#1e0f33;-webkit-text-size-adjust:none;background-color:#c9a7f5;background-image:repeating-linear-gradient(-45deg, #c9a7f5, #c9a7f5 25%, #d2b6f7 25%, #d2b6f7 50%, rgba(0,0,0,.1) 50%);background-size:20px 20px}
a{color:#5a2ea6}
h1{font-size:16px;font-weight:normal}
h2{margin:26px 0 10px;font-size:18px;line-height:1.35}
h3{margin:18px 0 4px;font-size:16px}
p,.inner ul{margin-bottom:12px}
.inner ul{margin-left:20px}
.container{width:100%;max-width:860px;margin:0 auto;background:white;box-shadow:0 0 0 4px rgba(0,0,0,0.1);overflow:hidden}
.ico{display:inline-block;flex:none;width:1.15em;height:1.15em;vertical-align:-0.2em;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* header and footer */
#header{position:fixed;top:0;left:0;width:100%;background:#1e0f33;z-index:99}
.icon-menu-main{display:flex;justify-content:center;height:50px}
.icon-menu-main-btn{display:flex;align-items:center;justify-content:center;width:50px;max-width:16.66vw;height:50px;color:white;font-size:20px}
.icon-menu-main-btn.selected{background:#c9a7f5;color:#1e0f33}
.icon-menu-main-btn:focus-visible,#btn-menu:focus-visible,.main-menu-item:focus-visible{outline:2px solid #c9a7f5;outline-offset:-4px}
.page{margin-top:50px}
.list-head{display:flex;align-items:center;height:50px;padding:0 10px;background:#c9a7f5;text-transform:uppercase}
.inner{padding:16px 10px 20px;min-height:250px}
.footer-copyright{padding:14px 10px;font-size:11px}
.footer-badge{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin:0 4px;border-radius:50%;background:#1e0f33;color:#c9a7f5;font-size:13px;vertical-align:middle}
#main-menu{display:none;background:#1e0f33}
#main-menu.open{display:block}
.main-menu-item{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 10px;color:white;text-decoration:none}
#footer{position:relative;display:flex;align-items:center;justify-content:center;height:50px;background:#1e0f33}
#logo{color:white;font-size:1.3em;font-weight:bold;letter-spacing:1px;text-decoration:none}
#btn-menu{position:absolute;right:5px;top:5px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;background:none;color:white;font-size:24px;cursor:pointer}

/* buttons and forms */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 16px;border:1px solid #bbb;border-radius:5px;background:white;color:#1e0f33;font-family:inherit;font-size:15px;font-weight:bold;text-align:center;text-decoration:none;cursor:pointer}
.button:hover{background:#f4eefd}
.button:focus-visible,.field select:focus-visible,.field input:focus-visible,summary:focus-visible{outline:2px solid #1e0f33;outline-offset:2px}
.button-block{display:flex;width:100%;margin-top:10px}
.button-arrow{justify-content:space-between;text-align:left}
.button-arrow .ico-chevron-right{color:#767676;font-size:12px}
.button-arrow span .ico{margin-right:8px;color:#6d3fb8}
.button-primary{border-color:#1e0f33;background:#1e0f33;color:white}
.button-primary:hover{background:#3a2160}
.planner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;padding:12px;margin-bottom:16px;border-radius:8px;background:#f4eefd}
.field span,.field label{display:block;margin-bottom:4px;font-size:13px;font-weight:bold}
.field select,.field input{width:100%;height:48px;padding:0 10px;border:1px solid #bbb;border-radius:5px;background:white;color:#1e0f33;font-family:inherit;font-size:16px}

/* the button fixed to the end of the last field */
.field-last{grid-column:1 / -1}
.append{display:flex}
.append input,.append select{flex:1;min-width:0;border-radius:5px 0 0 5px}
.append .button{flex:none;padding:0 14px;border-radius:0 5px 5px 0}
.append :focus-visible{position:relative;z-index:1}
@media (min-width:600px){
    .planner{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr)}
    .field-last{grid-column:auto}
}
.planner.planner-solar{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}
.planner-solar .field-last{grid-column:auto}
/* the price of now with the figures of the day, as one card */
.price-card{border:1px solid #e4dcf0;border-radius:10px;overflow:hidden}
.hero{padding:16px 14px;background:#ece2fc;text-align:center}
.inner > .hero{border-radius:10px}
.hero p{margin:0}
.hero p strong{font-size:17px}
.hero p span{white-space:nowrap}
.hero-price{margin-top:4px;font-size:52px;font-weight:bold;line-height:1.15;letter-spacing:-1px}
.hero-price small{font-size:16px;font-weight:normal;letter-spacing:0;white-space:nowrap}
/* the whole block has the colour of the price level, the text says it as well */
.hero.cheap,.hero.negative{background:#00784f;color:white}
.hero.expensive{background:#9c5300;color:white}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.stats div{padding:10px 6px;text-align:center}
.stats div + div{border-left:1px solid #e4dcf0}
.stats dt{color:#5d5470;font-size:12px}
.stats dd{font-size:20px;font-weight:bold;font-variant-numeric:tabular-nums}
.stats small{display:block;color:#5d5470;font-size:12px;font-weight:normal}
/* heading with a small switch next to it */
.section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:24px 0 8px;scroll-margin-top:60px}
.section-head h2{margin:0}
.segmented{display:inline-flex;padding:3px;border-radius:8px;background:#f0e9fb}
.segmented a{display:flex;align-items:center;min-height:36px;padding:0 12px;border-radius:6px;color:#1e0f33;font-size:14px;text-decoration:none}
.segmented a[aria-current]{background:white;font-weight:bold;box-shadow:0 1px 3px rgba(30,15,51,0.25)}
.segmented a:focus-visible{outline:2px solid #1e0f33}
.advice{padding:18px 12px;border-radius:8px;background:#ece2fc;text-align:center}
.advice span{display:block}
.advice strong{display:block;margin:4px 0;font-size:28px;line-height:1.25}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin:10px 0}
/* four figures: two by two, or all on one row */
.facts-pairs{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:600px){.facts-pairs{grid-template-columns:repeat(4,minmax(0,1fr))}}
.facts div{padding:10px;border:1px solid #e4dcf0;border-radius:8px}
.facts dt{color:#5d5470;font-size:12px}
.facts dd{font-size:19px;font-weight:bold}
.facts small{display:block;color:#5d5470;font-size:12px;font-weight:normal}
.facts .good{border-color:#00875a;background:#e6f5ee}
.note{margin:8px 0 12px;color:#5d5470;font-size:13px}
.intro{margin-bottom:8px}
.no-result{margin:10px 0;padding:14px;border-radius:8px;background:#f4eefd}
.alert-demo{position:relative;top:50px;margin-bottom:0;padding:10px;background:#b00000;color:white;font-size:14px;font-weight:bold;text-align:center}
.alert-demo + .page{padding-top:0}
.src{margin:10px;color:#5d5470;font-size:11px}

/* charts, see chart.php. Colours checked for colour blindness, the legend and table carry the meaning too */
.chart-readout{min-height:22px;margin:6px 0;font-size:14px;font-weight:bold;font-variant-numeric:tabular-nums}
.chart{padding-bottom:20px}
.chart-plot{position:relative;display:flex;height:170px;margin-top:20px}
.chart-slot{position:relative;flex:1;min-width:0;cursor:pointer}
.chart-slot i{position:absolute;left:7%;right:7%;min-height:1px;border-radius:2px 2px 0 0;background:#8f5fd1}
.chart-slot i.negative{border-radius:0 0 2px 2px}
.chart-slot span{position:absolute;bottom:-18px;left:0;color:#5d5470;font-size:11px;line-height:14px}
.chart-slot.cheap i{background:#00875a}
.chart-slot.expensive i{background:#d97706}
.chart-slot.green i{background:#00875a}
/* a chosen bar stays as it is, the others fade */
.chart-plot:has(.active) .chart-slot:not(.active) i{opacity:0.4}
/* now: a line through the bar with the word above it */
.chart-slot.now::before{content:"Nu";position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding-bottom:3px;font-size:11px;font-weight:bold;line-height:14px}
.chart-slot.now::after{content:"";position:absolute;top:-3px;bottom:0;left:calc(50% - 1px);border-left:2px solid #1e0f33;pointer-events:none}
.chart-average{position:absolute;left:0;width:100%;border-top:1px dashed #1e0f33;opacity:0.55;pointer-events:none}
.per-hour{display:none}
@media (max-width:599px){
    .per-quarter{display:none}
    .per-hour{display:block}
}
.chart-zero{position:absolute;left:0;width:100%;height:1px;background:#8a8399;pointer-events:none}
.chart-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0;color:#5d5470;font-size:12px}
.chart-legend span::before{content:"";display:inline-block;width:12px;height:12px;margin-right:5px;border-radius:2px;background:#8f5fd1;vertical-align:-1px}
.chart-legend .cheap::before{background:#00875a}
.chart-legend .expensive::before{background:#d97706}
.chart-legend .average::before{height:0;border-top:2px dashed #1e0f33;border-radius:0;background:none;vertical-align:3px}
.chart-table summary{padding:8px 0;font-size:14px;cursor:pointer}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
th,td{padding:7px 4px;border-bottom:1px solid #eee;text-align:left;font-size:14px}
th{font-weight:normal}
td:last-child,thead th:last-child{text-align:right;white-space:nowrap}

/* negative prices */
.inner ul.periods{margin-left:0;list-style:none}
.periods li{margin-bottom:8px;padding:10px 12px;border-left:6px solid #00875a;border-radius:8px;background:#e6f5ee}
.periods span{display:block;font-size:13px}
.months th{width:80px;white-space:nowrap}
.months td:last-child{width:70px}
.months i{display:block;height:12px;border-radius:0 3px 3px 0;background:#8f5fd1}

/* green electricity */
.mix{display:flex;gap:2px;height:28px;margin:14px 0 6px;border-radius:5px;overflow:hidden}
.mix i{flex-basis:0}
.mix-solar{background:#d99a00}
.mix-wind{background:#2a78d6}
.mix-offshore{background:#0e9a86}
.mix-other{background:#c8c4d0}
.mix-table th i{display:inline-block;width:12px;height:12px;margin-right:8px;border-radius:2px}
.mix-table .total th,.mix-table .total td{font-weight:bold}

.legal{line-height:1.6}
.legal h2{font-size:20px}

/* share buttons, see share.js */
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.share button{border:0;cursor:pointer;font-family:inherit}
.share button:focus-visible{outline:2px solid #1e0f33;outline-offset:2px}
.share-toggle,.share-native{display:none}
.share-icons{display:flex;flex-wrap:wrap;gap:8px}
.share-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:5px;background:#f4eefd;color:#1e0f33;font-size:16px}
.share-icon:hover{background:#6d3fb8;color:white}
.share-native{align-items:center;gap:8px;min-height:44px;padding:0 20px;border-radius:5px;background:#1e0f33;color:white;font-size:14px;font-weight:bold}
.share-feedback{color:#2c5c2d;font-size:12px}
.native-share .share-icons{display:none}
.native-share .share-native{display:inline-flex}
.share-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px;border-top:1px solid #eee}
.share-bar-title{font-size:14px;font-weight:bold}

@media (min-width:768px){
    .list-head,.inner,.share-bar,.footer-copyright,.main-menu-item{padding-left:24px;padding-right:24px}
    .src{margin-left:24px;margin-right:24px}
}
