:root{color-scheme:light;--ink:#122b37;--muted:#4b626b;--green:#006757;--line:#dce7e5;--paper:#f0f5f4;font:16px system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper)}.wrap{max-width:1220px;margin:auto;padding-inline:clamp(16px,4vw,48px)}
header{background:#102f3b;color:white}.mast{display:flex;align-items:center;gap:14px;min-height:68px}.mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid #6da69c;border-radius:50%;font-size:30px;line-height:1;color:#abddd1}.mast-sub{margin-left:auto;color:#cce0e2;font-size:.88rem}
.intro{padding:clamp(28px,6vw,65px) 0 30px}.intro h1{font-size:clamp(2.6rem,6vw,5rem);letter-spacing:-.07em;line-height:1;margin:0 0 14px}.intro p{max-width:650px;margin:0;color:var(--muted);line-height:1.55}.layout{display:grid;grid-template-columns: minmax(250px, 320px) minmax(0,1fr);gap:20px;align-items:start}
.card{background:white;border:1px solid var(--line);border-radius:18px;padding:clamp(16px,2.4vw,28px)}h2{font-size:1.28rem;letter-spacing:-.025em;margin:0 0 14px}form{display:grid;gap:7px}label{font-weight:650;font-size:.9rem;margin-top:8px}input,select,button{width:100%;font:inherit;color:inherit}input[type=date],select{border:1px solid #b9cdca;border-radius:8px;background:#f9fbfb;min-height:45px;padding:8px 11px}select{appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,#34565b 50%),linear-gradient(135deg,#34565b 50%,transparent 50%);background-position:calc(100% - 17px) 52%,calc(100% - 12px) 52%;background-size:5px 5px;background-repeat:no-repeat}
button{border:0;border-radius:8px;color:white;background:var(--green);font-weight:700;min-height:47px;cursor:pointer}button:hover{background:#004d42}button:disabled{opacity:.65;cursor:wait}:focus-visible{outline:3px solid #2788a0;outline-offset:3px}.hint,small{font-size:.82rem;color:var(--muted);line-height:1.45}.hint{margin:3px 0 10px}.draft{margin-top:19px;padding-top:16px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:space-between;font-size:.87rem}.draft strong{white-space:nowrap}.graph-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.graph-header h2{margin-bottom:4px}.graph-header p{margin:0;color:var(--muted);font-size:.9rem}.unit{font-size:.8rem;color:var(--muted);white-space:nowrap}
#status{margin:14px 0;color:#6b441c;line-height:1.45}#status:empty{display:none}#plot svg{display:block;width:100%;overflow:visible;margin-top:12px;touch-action:pan-y}.readout{color:var(--ink);font-weight:650;font-size:.9rem;margin:10px 0 3px}input[type=range]{accent-color:var(--green);margin:0}.legend{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:8px;color:var(--muted);font-size:.82rem}.legend span::before{content:"";display:inline-block;width:15px;height:8px;margin-right:6px;border-radius:3px;background:var(--green)}.legend .window-key::before{background:#c9e6de}
.metrics{border-top:1px solid var(--line);margin-top:19px;padding-top:17px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.events{grid-template-columns:repeat(3,minmax(0,1fr))}.metrics span{color:var(--muted);font-size:.85rem}.metrics strong{display:block;font-size:clamp(1.15rem,2.5vw,2rem);line-height:1.2;margin:5px 0}.metrics small{display:block}footer{margin:22px 0 32px;color:var(--muted);font-size:.88rem;line-height:1.55}footer p{max-width:870px}a{color:var(--green);text-underline-offset:3px}[hidden]{display:none!important}
.solar .sun-icon{font-size:1.15rem;margin-right:3px}
@media(max-width:760px){.layout{grid-template-columns:1fr}.mast-sub{font-size:.77rem}.metrics{gap:9px}}

.date-row{display:flex;align-items:center;gap:10px}.date-row input{min-width:0;flex:1}.date-row span{color:var(--muted);font-size:.875rem}.sources{display:flex;flex-wrap:wrap;gap:6px 20px}

.legend .daylight-key::before{background:#ffca42;border:1px solid #ba8c15}.legend .night-key::before{background:#243f65;border:1px solid #243f65}

.solar-source{margin:8px 0 0}
