.weather-history[hidden], .history-airport[hidden] { display: none; }
.hero-trust #history-trust[hidden] { display: none; }
.hero-trust #history-trust a { text-decoration: underline; text-underline-offset: 3px; }
.weather-history { scroll-margin-top: 5rem; margin: 0 auto 2.5rem; padding: 1.2rem 1.35rem; border: 1px solid var(--line, #343b40); border-radius: 12px; background: var(--surface, #1b2023); color: var(--ink, #eef3f5); }
.history-overview { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.history-eyebrow { color: var(--accent, #b3d9e9); font-size: .65rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .3rem; }
.weather-history h2 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.025em; margin: 0; }
.history-totals { display: flex; gap: 2rem; margin: 0; }
.history-totals div { display: flex; flex-direction: column; gap: .15rem; }
.history-totals dd { order: -1; margin: 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.history-totals dt { color: var(--muted, #b9c4cb); font-size: .7rem; }
.history-disclosure { margin-top: .9rem; }
.history-disclosure > summary { cursor: pointer; width: fit-content; color: var(--accent, #b3d9e9); font-size: .78rem; font-weight: 550; padding: .3rem 0; }
.history-disclosure > summary:hover { color: var(--ink, #fff); }
.history-disclosure > summary:focus-visible, .history-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.history-explorer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line, #343b40); }
.history-explorer label { display: block; color: var(--muted, #b9c4cb); font-size: .75rem; margin-bottom: .4rem; }
.history-select { width: min(100%, 30rem); background: var(--control, #252b2f); color: var(--ink, #eef3f5); border: 1px solid var(--line, #48545b); border-radius: 6px; min-height: 42px; padding: .5rem .7rem; font-size: .85rem; }
.history-coverage { margin: .8rem 0; color: var(--muted, #b9c4cb); font-size: .76rem; line-height: 1.6; }
.history-records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.history-record { padding: .9rem; border: 1px solid var(--line, #343b40); border-radius: 8px; min-width: 0; }
.history-record h4 { color: var(--muted, #b9c4cb); font-size: .7rem; font-weight: 500; margin: 0; }
.history-record-value { font-size: 1.5rem; font-weight: 650; margin: .35rem 0; color: var(--ink, #eef3f5); }
.history-record-date { color: var(--muted, #b9c4cb); font-size: .68rem; }
.history-record details { margin-top: .7rem; font-size: .7rem; }
.history-record summary { cursor: pointer; color: var(--accent, #b3d9e9); }
.history-record code { display: block; overflow-wrap: anywhere; white-space: normal; font-size: .7rem; line-height: 1.6; margin-top: .4rem; color: var(--muted, #b9c4cb); }
.history-method { color: var(--muted, #b9c4cb); font-size: .7rem; line-height: 1.6; margin-top: 1rem; max-width: 85ch; }
.history-updated { margin-top: .35rem; font-size: .66rem; color: var(--muted, #b9c4cb); }
.history-airport { border-top: 1px solid var(--line, #343b40); padding-top: 1rem; margin-top: 1rem; }
.history-airport h4 { font-size: .8rem; }
.history-airport .history-records { gap: .4rem; }
.history-airport .history-record { padding: .65rem; }
.history-airport .history-record-value { font-size: 1.2rem; }
@media (max-width: 680px) {
  .weather-history { padding: 1rem; margin-bottom: 1.8rem; }
  .history-overview { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .history-totals { width: 100%; justify-content: space-between; gap: .6rem; }
  .history-totals dd { font-size: 1.08rem; }
  .history-totals dt { font-size: .64rem; }
  .history-records { grid-template-columns: 1fr; }
  .history-record { display: grid; grid-template-columns: 1fr auto; column-gap: .6rem; align-items: center; }
  .history-record-value { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .history-record details { grid-column: 1 / -1; }
}
