#weatherMap.plant-map {
  height: 380px;
}

#comparisonChart {
  padding: 8px 16px 18px;
}

#comparisonChart .chart-frame {
  position: relative;
  border: 1px solid var(--brd);
  border-radius: 12px;
  background: var(--surf2);
  overflow: hidden;
}

#comparisonChart svg {
  display: block;
  width: 100%;
  height: auto;
}

#comparisonChart .chart-grid-line {
  stroke: color-mix(in srgb, var(--muted) 28%, transparent);
  stroke-width: 1;
}

#comparisonChart .chart-axis {
  stroke: color-mix(in srgb, var(--muted) 55%, transparent);
  stroke-width: 1.2;
}

#comparisonChart .chart-label {
  fill: var(--muted);
  font-size: 12px;
}

#comparisonChart .chart-value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

#comparisonChart .temp-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#comparisonChart .temp-line-max {
  stroke: #dc2626;
}

#comparisonChart .temp-line-avg {
  stroke: #2563eb;
}

#comparisonChart .temp-line-min {
  stroke: #16a34a;
}

#comparisonChart .is-construction {
  opacity: 0.5;
}

#comparisonChart .temp-dot {
  stroke: var(--surf2);
  stroke-width: 2;
}

#comparisonChart .chart-hover-line {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  pointer-events: none;
  z-index: 2;
}

#comparisonChart .chart-frame.is-hovering .chart-hover-line {
  display: block;
}

#comparisonChart .chart-tooltip {
  display: none;
  position: absolute;
  z-index: 3;
  min-width: 220px;
  max-width: min(320px, calc(100% - 20px));
  border: 1px solid var(--brd);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surf) 97%, transparent);
  box-shadow: var(--shadow-panel);
  padding: 10px 12px;
  color: var(--txt);
  pointer-events: none;
}

#comparisonChart .chart-frame.is-hovering .chart-tooltip {
  display: block;
}

#comparisonChart .chart-tooltip-title {
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 800;
}

#comparisonChart .chart-tooltip-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 4px 10px;
  align-items: baseline;
  font-size: 12px;
}

#comparisonChart .chart-tooltip-grid span {
  white-space: nowrap;
}

#comparisonChart .chart-tooltip-year {
  color: var(--ink);
  font-weight: 700;
}

#comparisonChart .chart-tooltip-label {
  color: var(--muted);
}

#comparisonChart .chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--brd);
}

#comparisonChart .chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

#comparisonChart .chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}

#comparisonChart .units-table-scroll {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

#comparisonChart .units-table {
  min-width: 780px;
}

#comparisonChart .units-table th,
#comparisonChart .units-table td {
  text-align: right;
}

#comparisonChart .units-table th:first-child,
#comparisonChart .units-table td:first-child {
  text-align: left;
}

#comparisonChart .units-table tfoot .avg-row td {
  background: color-mix(in srgb, var(--surf2) 60%, transparent);
  font-weight: 600;
}

#comparisonChart .units-table tfoot .avg-row:first-child td {
  border-top: 2px solid var(--brd);
}

#comparisonChart .units-table tfoot .avg-row-yearly td {
  border-top: 2px solid var(--brd);
  background: color-mix(in srgb, var(--surf2) 90%, transparent);
}

@media (max-width: 720px) {
  #weatherMap.plant-map {
    height: 320px;
    margin-inline: 10px;
  }

  #comparisonChart {
    padding-inline: 10px;
  }
}
