/* Time map (timemap.js). Written dark-first with light overrides; not run through build_theme.py, which would invert the map fills. */
.tm-controls{display:flex;flex-wrap:wrap;align-items:center;gap:14px;font-size:13px}
.tm-controls label{display:flex;align-items:center;gap:8px;color:#a9c3bc}
.tm-controls select{max-width:280px}
.tm-reset{border:1px solid rgba(160,205,195,.3);background:transparent;color:#d4e966;border-radius:999px;padding:5px 13px;font-size:12.5px;cursor:pointer}
.tm-time{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid rgba(160,205,195,.16);border-radius:12px;background:#0f2a26}
.tm-time input[type=range]{flex:1;accent-color:#d4e966;min-width:0}
.tm-when{font-variant-numeric:tabular-nums;font-size:14px;color:#f1f7f4;white-space:nowrap}
.tm-play{width:38px;height:38px;border-radius:50%;border:0;background:#d4e966;color:#0b1f1c;font-size:14px;cursor:pointer;flex:none}
.tm-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
.tm-grid>*,.tm-main>*{min-width:0}
.tm-side{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;margin-top:10px}
.tm-side>*{min-width:0}
.tm-map svg{width:100%;height:auto;display:block;background:#0c2420;border-radius:12px;border:1px solid rgba(160,205,195,.12)}
.tm-land{fill:#13292a}
/* sequential ramp, one hue family (green to lime), dark to bright on the dark surface; fixed class limits in timemap.js */
.tm-c{stroke:#0c2420;stroke-width:.6;cursor:pointer;transition:fill .25s;vector-effect:non-scaling-stroke}
.tm-c.s0{fill:#13292a}
.tm-c.s1{fill:#1f4d43}
.tm-c.s2{fill:#2b6650}
.tm-c.s3{fill:#43825a}
.tm-c.s4{fill:#6aa25f}
.tm-c.s5{fill:#a0c75e}
.tm-c.s6{fill:#d4e966}
.tm-c:hover{stroke:#f1f7f4;stroke-width:1}
.tm-c.is-focus{stroke:#f1f7f4;stroke-width:1.8}
.tm-small .tm-c{stroke:#f1f7f4;stroke-width:.8}
.tm-labels text{font-size:calc(13px * var(--k, 1));font-weight:700;fill:#f6fbf8;paint-order:stroke;stroke:#0b1f1c;stroke-width:calc(3px * var(--k, 1));stroke-linejoin:round;pointer-events:none;font-variant-numeric:tabular-nums}
.tm-labels text.on-strong{fill:#0b1f1c;stroke:#eef8c9}
.tm-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:12px;color:#a9c3bc;margin-top:10px}
.tm-legend-title{font-weight:650;color:#dfeae6;margin-right:4px}
.tm-key{display:inline-flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.tm-key i{width:16px;height:11px;border-radius:2px;display:inline-block;stroke:none;border:1px solid rgba(160,205,195,.25)}
.tm-key i.s0{background:#13292a}.tm-key i.s1{background:#1f4d43}.tm-key i.s2{background:#2b6650}.tm-key i.s3{background:#43825a}.tm-key i.s4{background:#6aa25f}.tm-key i.s5{background:#a0c75e}.tm-key i.s6{background:#d4e966}
.tm-seg{display:inline-flex;border:1px solid rgba(160,205,195,.3);border-radius:999px;overflow:hidden}
.tm-seg button{border:0;background:transparent;color:#a9c3bc;padding:5px 12px;font:inherit;font-size:12.5px;cursor:pointer}
.tm-seg button.is-on{background:#d4e966;color:#0b1f1c;font-weight:600}
.tm-check{cursor:pointer}
.tm-check input{accent-color:#d4e966}
.tm-dot{fill:#f1f7f4;fill-opacity:.5;stroke:#0b1f1c;stroke-width:.7;cursor:pointer;transition:fill-opacity .15s}
.tm-dot:hover{fill-opacity:.95}
.tm-dot.is-focus{fill:#ffffff;fill-opacity:.9}
.tm-side h4,.tm-insights h4{font-size:12px;letter-spacing:.6px;text-transform:uppercase;color:#93aea7;margin:0 0 8px;font-weight:650}
.tm-table{font-size:12.5px;margin:0}
.tm-table th,.tm-table td{padding:5px 6px;font-variant-numeric:tabular-nums}
.tm-table tr.is-focus th,.tm-table tr.is-focus td{background:rgba(95,191,159,.12)}
.tm-cc{border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:0;text-align:left}
.tm-cc:hover{color:#d4e966}
.tm-up{color:#7fd1a8}
.tm-down{color:#e59a7a}
.tm-insts{list-style:none;margin:0;padding:0;display:grid;gap:3px;font-size:12.5px}
.tm-insts li{display:flex;justify-content:space-between;gap:10px}
.tm-insts button{border:0;background:none;color:#cfe7a1;font:inherit;cursor:pointer;padding:0;text-align:left}
.tm-insts span{font-variant-numeric:tabular-nums;color:#93aea7}
.tm-insights ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tm-insights button{width:100%;text-align:left;border:1px solid rgba(160,205,195,.16);background:#0f2a26;border-radius:10px;padding:10px 12px;color:#dfeae6;font:inherit;font-size:13px;line-height:1.5;cursor:pointer}
.tm-insights button:hover{border-color:#d4e966}
@media(max-width:1200px){.tm-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:820px){.tm-side{grid-template-columns:minmax(0,1fr)}.tm-time{flex-wrap:wrap}.tm-when{width:100%}.tm-labels text{font-size:calc(20px * var(--k, 1));stroke-width:calc(4px * var(--k, 1))}}
html[data-theme="light"] .tm-controls label{color:#4d6563}
html[data-theme="light"] .tm-reset{color:#1c6a57;border-color:#cbdad6}
html[data-theme="light"] .tm-time{background:#fff;border-color:#d4e0dc}
html[data-theme="light"] .tm-time input[type=range]{accent-color:#1c6a57}
html[data-theme="light"] .tm-when{color:#123c36}
html[data-theme="light"] .tm-play{background:#1c6a57;color:#fff}
html[data-theme="light"] .tm-map svg{background:#f4f8f7;border-color:#d4e0dc}
html[data-theme="light"] .tm-land{fill:#e6eeeb}
html[data-theme="light"] .tm-c{stroke:#fff}
html[data-theme="light"] .tm-c.s0{fill:#e6eeeb}
html[data-theme="light"] .tm-c.s1{fill:#d3e8d6}
html[data-theme="light"] .tm-c.s2{fill:#a9d3b3}
html[data-theme="light"] .tm-c.s3{fill:#76b58c}
html[data-theme="light"] .tm-c.s4{fill:#43936a}
html[data-theme="light"] .tm-c.s5{fill:#1f7351}
html[data-theme="light"] .tm-c.s6{fill:#0f4f38}
html[data-theme="light"] .tm-c:hover,html[data-theme="light"] .tm-c.is-focus{stroke:#c26541}
html[data-theme="light"] .tm-small .tm-c{stroke:#123c36}
html[data-theme="light"] .tm-labels text{fill:#0b2a24;stroke:#fff}
html[data-theme="light"] .tm-labels text.on-strong{fill:#fff;stroke:#0b2a24}
html[data-theme="light"] .tm-legend{color:#4d6563}
html[data-theme="light"] .tm-legend-title{color:#203536}
html[data-theme="light"] .tm-key i{border-color:#cbdad6}
html[data-theme="light"] .tm-key i.s0{background:#e6eeeb}html[data-theme="light"] .tm-key i.s1{background:#d3e8d6}html[data-theme="light"] .tm-key i.s2{background:#a9d3b3}html[data-theme="light"] .tm-key i.s3{background:#76b58c}html[data-theme="light"] .tm-key i.s4{background:#43936a}html[data-theme="light"] .tm-key i.s5{background:#1f7351}html[data-theme="light"] .tm-key i.s6{background:#0f4f38}
html[data-theme="light"] .tm-seg{border-color:#cbdad6}
html[data-theme="light"] .tm-seg button{color:#4d6563}
html[data-theme="light"] .tm-seg button.is-on{background:#1c6a57;color:#fff}
html[data-theme="light"] .tm-check input{accent-color:#1c6a57}
html[data-theme="light"] .tm-dot{fill:#123c36;fill-opacity:.45;stroke:#fff}
html[data-theme="light"] .tm-dot.is-focus{fill:#c26541;fill-opacity:.9}
html[data-theme="light"] .tm-side h4,html[data-theme="light"] .tm-insights h4{color:#64786c}
html[data-theme="light"] .tm-cc:hover{color:#1c6a57}
html[data-theme="light"] .tm-up{color:#1d6b4f}
html[data-theme="light"] .tm-down{color:#a14a2c}
html[data-theme="light"] .tm-insts button{color:#1c6a57}
html[data-theme="light"] .tm-insts span{color:#64786c}
html[data-theme="light"] .tm-insights button{background:#fff;border-color:#d4e0dc;color:#203536}
html[data-theme="light"] .tm-insights button:hover{border-color:#1c6a57}
html[data-theme="light"] .tm-table tr.is-focus th,html[data-theme="light"] .tm-table tr.is-focus td{background:#eef5f2}
.tm .fd-paper{color:#cfe7a1}
html[data-theme="light"] .tm .fd-paper{color:#1a4d43}
.tm-map{position:relative}
.tm-map svg{touch-action:pan-y;cursor:grab}
.tm-map svg:active{cursor:grabbing}
.tm-dot{vector-effect:non-scaling-stroke}
.tm-zoom{position:absolute;top:10px;right:10px;display:flex;gap:4px;z-index:2}
.tm-zoom button{width:30px;height:30px;border-radius:8px;border:1px solid rgba(160,205,195,.3);background:rgba(11,31,28,.85);color:#e8f1ee;font-size:15px;cursor:pointer}
html[data-theme="light"] .tm-zoom button{background:rgba(255,255,255,.92);color:#123c36;border-color:#cbdad6}
