.hourly-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
}

.sun-times {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  white-space: nowrap;
}

.sun-times[hidden] {
  display: none;
}

.sun-time {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.sun-time strong {
  color: var(--ink);
  font-size: 11px;
}

.sun-time i {
  position: relative;
  width: 15px;
  height: 10px;
  overflow: hidden;
  border-bottom: 1px solid currentColor;
}

.sun-time i::before {
  position: absolute;
  left: 4px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--heat);
  border-radius: 50%;
  content: "";
}

.sunrise i::before {
  top: 4px;
}

.sunset i::before {
  top: -3px;
}

.chart-range {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.hourly-chart-meta {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.hourly-chart-legend {
  display: flex;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 10px;
}

.hourly-chart-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.hourly-chart-legend span::before {
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: var(--heat);
  content: "";
}

.hourly-chart-hint {
  margin: -18px 0 17px;
  color: var(--ink-soft);
  font-size: 10px;
}

.temperature-chart {
  min-height: 278px;
  padding: 8px 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(rgba(21, 51, 73, 0.04) 1px, transparent 1px);
  background-size: 100% 40px;
  scrollbar-color: var(--line-strong) transparent;
}

.temperature-chart svg {
  display: block;
  width: auto;
  min-width: 100%;
  height: 262px;
  overflow: visible;
}

.temperature-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: fade-line 500ms ease both;
}

.temperature-line {
  stroke: var(--heat);
  stroke-width: 3;
}

.temperature-point {
  fill: var(--paper);
  stroke: var(--heat);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.temperature-point-label {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
}

.chart-hour-band {
  fill: rgba(255, 255, 255, 0.15);
  stroke: var(--line);
  stroke-width: 0.6;
}

.chart-hour-band.condition-clear {
  fill: rgba(239, 107, 58, 0.035);
}

.chart-hour-band.condition-cloudy,
.chart-hour-band.condition-fog {
  fill: rgba(84, 112, 128, 0.07);
}

.chart-hour-band.condition-rain,
.chart-hour-band.condition-storm,
.chart-hour-band.condition-snow {
  fill: rgba(40, 125, 160, 0.09);
}

.chart-day-separator {
  stroke: var(--ink);
  stroke-width: 1.2;
}

.chart-axis-line {
  stroke: var(--line-strong);
}

.chart-weather-label,
.chart-time-label,
.chart-date-label {
  fill: var(--ink-soft);
  font-family: var(--body);
  font-size: 10px;
}

.chart-weather-label,
.chart-date-label {
  fill: var(--ink);
  font-weight: 700;
}

@keyframes fade-line {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .chart-panel:not(.daily-panel) .section-heading {
    display: block;
  }

  .chart-panel:not(.daily-panel) .hourly-chart-meta {
    justify-items: start;
    margin-top: 16px;
  }

  .temperature-chart {
    min-height: 278px;
    margin-right: -22px;
    width: calc(100% + 22px);
    padding-right: 22px;
  }
}
