:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #25313b; background: #f4f7f8; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
.page-width { width: min(100% - 2rem, 920px); margin-inline: auto; }
.site-header { background: #075f83; color: white; padding: 1rem 0; }
main { padding-block: 2rem 3rem; }
.intro h1 { margin-bottom: .25rem; }
.intro p { margin-top: 0; }
.alert { max-width: 520px; padding: 1rem; background: #fff3cd; border: 1px solid #ffe69c; border-radius: .5rem; }
.solar-card { width: min(100%, 360px); background: white; border: 1px solid #d6dee2; border-radius: .75rem; overflow: hidden; box-shadow: 0 8px 24px rgb(26 53 67 / 10%); }
.tab-list { display: grid; grid-template-columns: 1fr 1fr; }
.tab-button { border: 0; border-bottom: 1px solid #d6dee2; background: #d8dde0; color: #31596d; padding: .8rem; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.tab-button.active { background: white; color: #1474a0; border-bottom-color: white; }
.tab-button:focus-visible, input[type=range]:focus-visible { outline: 3px solid #7b2cbf; outline-offset: 2px; }
.gauge-panel {
    position: relative;
    width: 284px;
    height: 270px;
    margin: 0 auto;
    overflow: hidden;
    background-image: url('../images/vs-blue-house-edit-small.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 284px 270px;
}
.month {
    position: absolute;
    z-index: 5;
    top: 9px;
    left: 20px;
    color: #696969;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
}

/*.scene { position: absolute; inset: 45px 0 0; }
.sun { position: absolute; width: 45px; height: 45px; border-radius: 50%; background: #ffd34d; right: 30px; top: 18px; }
.house { position: absolute; width: 116px; height: 70px; background: #e9e2d5; left: 122px; bottom: 25px; border: 3px solid #746b5f; }
.roof { position: absolute; width: 90px; height: 90px; background: #375a70; transform: rotate(45deg); left: 10px; top: -48px; border: 3px solid #294456; }
.door { position: absolute; width: 24px; height: 43px; background: #805a3b; left: 45px; bottom: 0; z-index: 2; }*/
.gauge {
    position: absolute;
    z-index: 4;
    /* Centered in the 284px image */
    width: 190px;
    height: 95px;
    left: calc(50% - 9px);
    top: 102px;
    transform: translateX(-50%);
    overflow: hidden;
    /*
     * --gauge-value is set by solar-output.js.
     * The first half of the conic gradient represents
     * the visible 180-degree gauge.
     */
    background: conic-gradient( from 270deg, #ffeb00 0%, #ffeb00 calc(var(--gauge-value, 0%) / 2), #d8dde0 calc(var(--gauge-value, 0%) / 2), #d8dde0 50%, transparent 50%, transparent 100% );
    border-radius: 190px 190px 0 0;
}

.gauge::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: 0;
    top: 0;
    background: conic-gradient( from 270deg, #ffeb00 0deg, #ffeb00 var(--gauge-angle, 0deg), #d8dde0 var(--gauge-angle, 0deg), #d8dde0 180deg, transparent 180deg, transparent 360deg );
    border-radius: 50%;
}

.gauge-inner {
    position: absolute;
    z-index: 5;
    width: 118px;
    height: 59px;
    left: 36px;
    bottom: 0;
    background: #31596a;
    border-radius: 118px 118px 0 0;
    color: white;
    text-align: center;
    padding-top: 17px;
}

    .gauge-inner strong {
        display: block;
        color: white;
        font-size: 28px;
        font-weight: 700;
        line-height: 28px;
    }

    .gauge-inner span {
        display: block;
        margin-top: 3px;
        color: #8fd6ec;
        font-size: 12px;
        font-weight: 700;
        line-height: 14px;
    }
/*.gauge-inner strong { display: block; font-size: 1.7rem; line-height: 1; }
.gauge-inner span { color: #c9d3d8; font-size: .8rem; }*/
/*.gauge-scale { position: absolute; z-index: 5; left: 42px; right: 42px; bottom: 21px; display: flex; justify-content: space-between; color: #46535a; font-size: .75rem; font-weight: 700; }*/
.slider-area {
    width: 244px;
    margin: 8px auto 0;
    padding: 0 0 20px;
}
.slider-area label { display: block; font-weight: 700; margin-bottom: .45rem; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
input[type=range] { width: 100%; accent-color: #fdb813; cursor: pointer; }
.range-label {
    padding-top: 8px;
    text-align: center;
    color: #111;
    font-size: 12px;
}
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; color: #e9f0f3; background: #182127; } .solar-card { background: #222f36; border-color: #42515a; } .tab-button { background: #3a474e; color: #dce8ed; } .tab-button.active { background: #222f36; color: #6bc8ef; } }
