/* One cohesive daily summary, with a quieter reading of the extremes. */
.day-summary { margin-top: 44px; padding-top: 36px; border-top: 1px solid #dce4e8; color: #173c50; }
.day-summary-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.day-eyebrow { color: #58717f; font-size: 10px; font-weight: 650; letter-spacing: 1.8px; line-height: 1.6; }
.day-summary-heading h2 { margin-top: 8px; }
.day-summary-period { display: flex; flex-direction: column; gap: 6px; color: #708692; font-size: 10px; text-align: right; }
.day-summary-period strong { color: #426071; font-size: 12px; font-weight: 500; }
.day-summary-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; border-block: 1px solid #dce4e8; }
.day-stat { --day-accent: #367784; min-width: 0; padding: 26px 24px 24px; }
.day-stat + .day-stat { border-left: 1px solid #e0e7eb; }
.day-stat:is([data-kind="temp_24h"], [data-kind="latest_temperature"]) { --day-accent: #25627a; background: #eaf1f4; }
.day-stat:is([data-kind="wind_max_24h"], [data-kind="wind_avg_24h"], [data-kind="latest_wind_speed_max"], [data-kind="latest_wind_speed_avg"]) { --day-accent: #4a786e; }
.day-stat:is([data-kind="cloud_coverage_24h"], [data-kind="latest_cloud_coverage"]) { --day-accent: #627887; }
.day-stat[data-kind="latest_sunshine"] { --day-accent: #a65d36; }
.day-stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: #355565; line-height: 1.5; }
.day-stat-label svg { width: 21px; height: 21px; color: var(--day-accent); flex-shrink: 0; }
.day-stat-caption { color: #59717f; font-size: 10px; line-height: 1.6; margin-top: 12px; }
.day-stat-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: var(--day-accent); }
.day-stat-value > span:first-child { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(38px, 4vw, 54px); line-height: 1.1; letter-spacing: -1.8px; font-variant-numeric: tabular-nums; }
.day-stat-unit { font-size: 14px; color: #59717f; font-weight: 400; }
.day-stat-range { display: flex; gap: 22px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #d5e1e7; }
.day-stat-range dt { color: #59717f; font-size: 10px; margin-bottom: 5px; }
.day-stat-range dd { color: #426071; font-size: 14px; font-variant-numeric: tabular-nums; }
.day-stat-range dd span { font-size: 10px; }
.day-stat[data-kind="temp_24h"] .day-stat-range > div:last-child dd { color: #a65d36; }
.day-explorer { margin-top: 28px; }
.day-explorer-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; }
.archive-main .day-explorer-heading h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 400; letter-spacing: -.6px; }
.day-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.day-tabs button { position: relative; min-height: 44px; padding: 12px 0; font-size: 12px; font-weight: 500; color: #59717f; }
.day-tabs button::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: transparent; }
.day-tabs button[aria-selected="true"] { color: #25627a; }
.day-tabs button[aria-selected="true"]::after { background: #25627a; }
.day-tabs button:hover { color: #25627a; }
.day-chart-panel { --chart-color: #367784; margin-top: 8px; background: #edf3f5; border-radius: 6px; padding: 22px 24px 18px; }
.day-chart-panel[data-slider-panel="temperature"] { --chart-color: #a65d36; }
.day-chart-panel[data-slider-panel^="wind"] { --chart-color: #4a786e; }
.day-chart-panel[hidden], .day-chart[hidden] { display: none; }
.day-chart-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.day-chart-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #59717f; font-size: 10px; }
.day-chart-time strong { font-size: 16px; font-weight: 500; color: #426071; font-variant-numeric: tabular-nums; }
.day-chart-time [data-slider-day] { text-transform: capitalize; }
.day-chart-value { display: flex; align-items: baseline; gap: 5px; color: var(--chart-color); }
.day-chart-value > span:first-child { font-family: Georgia, 'Times New Roman', serif; font-size: 32px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.day-chart-value > span:last-child { font-size: 12px; color: #59717f; }
.day-chart { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.day-chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0 18px; font-size: 10px; color: #708692; text-align: right; font-variant-numeric: tabular-nums; }
.day-chart-scale.is-constant { justify-content: center; padding-block: 0; }
.day-chart-plot { position: relative; min-width: 0; height: 150px; }
.day-chart svg { width: 100%; height: 150px; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.day-chart svg :is(path, line, polyline, circle) { vector-effect: non-scaling-stroke; }
.day-chart-grid { fill: none; stroke: #d7e2e7; stroke-width: 1; stroke-dasharray: 3 5; }
.day-chart-area { fill: var(--chart-color); opacity: .07; }
.day-chart-line { fill: none; stroke: var(--chart-color); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-chart-guide { stroke: var(--chart-color); opacity: .4; stroke-width: 1; stroke-dasharray: 3 4; }
.day-chart-point { position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #edf3f5; background: var(--chart-color); transform: translate(-50%, -50%); pointer-events: none; }
.day-chart-control { margin: 4px 0 0 44px; }
.archive-page .day-chart-control input[type="range"] { width: 100%; min-height: 28px; margin: 0; cursor: ew-resize; accent-color: var(--chart-color); }
.day-chart-times { display: flex; justify-content: space-between; color: #708692; font-size: 10px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.day-chart-points { display: none; }
.day-explorer-hint { margin-top: 12px; font-size: 11px; line-height: 1.8; color: #59717f; }
.day-summary-empty { padding: 26px 0; font-size: 14px; color: #59717f; }
@media (max-width: 1050px) {
  .day-summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-stat:nth-child(odd) { border-left: 0; }
  .day-stat:nth-child(n + 3) { border-top: 1px solid #e0e7eb; }
  .day-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .day-stat-value > span:first-child { font-size: 48px; }
}
@media (max-width: 640px) {
  .day-summary { margin-top: 32px; padding-top: 28px; }
  .day-summary-heading { display: block; margin-bottom: 22px; }
  .day-summary-period { flex-direction: row; text-align: left; align-items: baseline; gap: 6px; margin-top: 14px; }
  .day-summary-period strong { font-size: 11px; }
  .day-stat { padding: 22px 16px; }
  .day-stat-label { font-size: 12px; gap: 6px; }
  .day-stat-label svg { width: 18px; height: 18px; }
  .day-stat-caption { font-size: 9px; margin-top: 10px; min-height: 28px; }
  .day-stat-value { gap: 4px; margin-top: 4px; }
  .day-stat-value > span:first-child { font-size: 39px; letter-spacing: -1.2px; }
  .day-stat-unit { font-size: 11px; }
  .day-stat-range { gap: 16px; margin-top: 18px; padding-top: 14px; }
  .day-stat-range dd { font-size: 13px; }
  .day-stat-range dt, .day-stat-range dd span { font-size: 9px; }
  .day-explorer { margin-top: 26px; }
  .day-explorer-heading { display: block; }
  .day-tabs { gap: 0 20px; margin-top: 12px; }
  .day-tabs button { font-size: 11px; }
  .day-chart-panel { padding: 16px 12px; margin-top: 10px; }
  .day-chart { grid-template-columns: 26px minmax(0, 1fr); gap: 6px; }
  .day-chart-control { margin-left: 32px; }
  .day-chart-value > span:first-child { font-size: 30px; }
  .day-chart-scale, .day-chart-times { font-size: 9px; }
}
@media (max-width: 360px) {
  .day-stat { padding-inline: 12px; }
  .day-stat-value > span:first-child { font-size: 34px; }
  .day-stat-range { flex-wrap: wrap; gap: 10px; }
}
@media print {
  .day-chart-control, .day-tabs, .day-explorer-hint { display: none; }
  .day-summary-metrics, .day-chart-panel { break-inside: avoid; }
}
