/* weather history chart */
.climate-chart { margin-top: 24px; color: #374151; }
.climate-chart[hidden] { display: none; }
.climate-chart h3 { font-size: 16px; font-weight: 700; margin: 0; }
.climate-legend { display: flex; gap: 20px; margin: 16px 0 8px; font-size: 12px; flex-wrap: wrap; }
.climate-legend span { display: flex; align-items: center; gap: 7px; }
.climate-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.climate-legend .rain-key { background: #9ac7d8; height: 10px; width: 10px; }
.climate-plot { width: 100%; height: 230px; }
.climate-rain-plot { height: 140px; margin-top: 4px; }
.climate-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.climate-selection { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; padding: 16px 18px; background: #f7f6f2; border: 1px solid #e9e6df; border-radius: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.climate-selection strong { color: #303944; font-size: 15px; margin-right: auto; }
.climate-selection b { font-size: 17px; font-weight: 600; margin-left: 5px; }
.climate-control { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 12px; }
.climate-control input { flex: 1; min-width: 0; height: 32px; accent-color: #bc4938; cursor: pointer; }
.climate-control input:focus-visible { outline: 2px solid #317da5; outline-offset: 3px; }
.climate-control output { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.climate-note { font-size: 11px; color: #687280; line-height: 1.8; margin: 10px 0 0; }
@media (max-width:480px) {
    .climate-legend { gap: 16px; }
}
.climate-label-short { display: none; }
.climate-selection>span { white-space: nowrap; }
@media (max-width:480px) {
    .climate-selection { display: grid; grid-template-columns: repeat(3,auto); justify-content: space-between; gap: 10px 6px; padding: 12px; font-size: 11px; }
    .climate-selection strong { grid-column: 1/-1; width: auto; }
    .climate-selection b { font-size: 14px; margin-left: 3px; }
    .climate-label-full { display: none; }
    .climate-label-short { display: inline; }
}

.climate-high-key { background: #bc4938; }
.climate-low-key { background: #317da5; }
