/* Styles for the "Is your city getting more hot days?" post only */
:root {
  --hd-bg: #EEF0F2;
  --hd-panel: #FFFFFF;
  --hd-ink: #1E2A36;
  --hd-muted: #5C6B78;
  --hd-line: #CDD3D9;
  --hd-cool: #C9D1D8;
  --hd-hot: #B23A2B;
  --hd-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --hd-data: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

#title-block-header .title {
  font-family: var(--hd-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--hd-ink);
}

main.content h2 {
  font-family: var(--hd-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--hd-ink);
  border-bottom: none;
  margin-top: 2.2rem;
}

.hd-eyebrow {
  font-family: var(--hd-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-hot);
}

/* Controls */
.hd-controls form { margin-bottom: 0.4rem; }
.hd-controls label { font-family: var(--hd-data); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hd-muted); }

/* Big numbers */
.hd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hd-line);
  border: 1px solid var(--hd-line);
  margin: 1rem 0 1.5rem;
}
.hd-stat { background: var(--hd-panel); padding: 14px; display: grid; gap: 4px; align-content: start; }
.hd-stat .k { font-family: var(--hd-data); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hd-muted); }
.hd-stat .v { font-family: var(--hd-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--hd-ink); font-variant-numeric: tabular-nums; }
.hd-stat .v small { font-size: 1.2rem; color: var(--hd-muted); font-weight: 600; }
.hd-stat .s { font-size: 0.9rem; color: var(--hd-muted); line-height: 1.35; }
@media (max-width: 600px) { .hd-stats { grid-template-columns: 1fr; } }

/* Figure frames */
.hd-figure { background: var(--hd-bg); border: 1px solid var(--hd-line); padding: 14px; }
.hd-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--hd-muted); margin-bottom: 8px; }
.hd-key span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: var(--sw); }

/* Heat calendar */
.hd-cal { position: relative; }
.hd-cal canvas { display: block; touch-action: none; cursor: crosshair; }
.hd-tip {
  position: absolute;
  pointer-events: none;
  background: var(--hd-ink);
  color: #FFFFFF;
  font-family: var(--hd-data);
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 6px 9px;
  white-space: nowrap;
  z-index: 5;
}
.hd-credit { font-family: var(--hd-data); font-size: 0.72rem; color: var(--hd-muted); margin-top: 8px; }
