/* Historical day pilot only; approved live-day components remain untouched. */
.history-day .daily-window h3 { margin: 0; color: var(--text-muted); font-size: .75rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.history-day .daily-window h3 > small { display: block; margin-top: 4px; color: var(--text-muted); font-size: .6875rem; font-weight: 400; }
.history-day .daily-window__time { white-space: normal; overflow-wrap: anywhere; font-size: .9375rem; }
.history-day .daily-window__price { color: var(--text); }
.history-day .daily-section-heading h2, .history-provenance h2 { font-size: 1.375rem; font-weight: 650; }
.history-day .daily-prices .hour-summary__left { white-space: normal; }
.history-day .daily-prices .hour-summary__center { white-space: nowrap; }
.history-day .daily-prices tbody { grid-template-columns: repeat(2,minmax(0,1fr)); }
.history-unit { font-size: .6875rem; font-weight: 400; color: var(--text-muted); }
.history-chart .daily-chart__x-axis { position: relative; display: block; height: 18px; }
.history-chart .daily-chart__x-axis > span { position: absolute; left: var(--tick); transform: translateX(-50%); white-space: nowrap; }
.history-chart .daily-chart__x-axis > span:first-child { transform: none; }
.history-chart .daily-chart__x-axis > span:last-child { transform: translateX(-100%); }
.history-neighbours { display: flex; flex-wrap: wrap; gap: 6px 20px; border-block: 1px solid var(--border); }
.history-neighbours:empty { display: none; }
.history-neighbours a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.history-provenance { padding-top: 12px; color: var(--text-muted); font-size: .875rem; }
.history-provenance p { max-width: 80ch; }
@media (min-width:640px) {
  .history-day .daily-prices tbody { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .history-day .daily-window__time { font-size: 1.125rem; }
}
