.rpm {
  --rpm-ink: #17334e;
  --rpm-muted: #4c6380;
  --rpm-primary: #164576;
  --rpm-accent: #10bcfe;
  --rpm-bg: #edf4fa;
  --rpm-border: #dce8f3;
  --rpm-radius: 20px;
  --rpm-shadow: 0 8px 24px rgba(36,64,96,.047);
  background: var(--rpm-bg);
  color: var(--rpm-ink);
  padding: clamp(24px, 4vw, 56px) 0;
  font: 400 16px/1.5 "DM Sans", sans-serif;
  font-variant-numeric: tabular-nums;
}
.rpm *, .rpm *::before, .rpm *::after { box-sizing: border-box; }
.rpm-inner { width: min(1320px, calc(100% - 32px)); margin-inline: auto; }
.rpm h2, .rpm h3 { color: var(--rpm-ink); margin: 0; line-height: 1.15; font-family: inherit; letter-spacing: -.025em; }
.rpm h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 20px; }
.rpm h3 { font-size: 22px; }
.rpm p { margin: 0; }
.rpm-grid, .rpm-full { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.rpm-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rpm-border);
  border-radius: var(--rpm-radius);
  padding: 20px;
  box-shadow: var(--rpm-shadow);
}
.rpm-weather { grid-column: span 5; border-top: 3px solid var(--rpm-accent); }
.rpm-ski { grid-column: span 4; }
.rpm-camera { grid-column: span 3; grid-row: 1; grid-column-start: 10; }
.rpm-forecast { grid-column: 1 / -1; }
.rpm-grid:not(:has(.rpm-weather)) .rpm-ski { grid-column: 1 / 7; }
.rpm-grid:not(:has(.rpm-weather)) .rpm-camera { grid-column: 7 / -1; }
.rpm-current { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rpm-current strong { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; }
.rpm-current small, .rpm-snow small { font-size: .46em; color: var(--rpm-muted); letter-spacing: 0; }
.rpm-icon { width: 30px; height: 30px; color: var(--rpm-primary); flex: none; }
.rpm-muted, .rpm-source { color: var(--rpm-muted); font-size: 14px; }
.rpm-source { font-size: 13px; }
.rpm a { color: var(--rpm-primary); }
.rpm a:focus-visible, .rpm summary:focus-visible { outline: 2px solid var(--rpm-primary); outline-offset: 3px; }
.rpm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.rpm-facts div, .rpm-days li { background: #f2f7fb; padding: 9px; border-radius: 10px; }
.rpm-facts dt { color: var(--rpm-muted); font-size: 13px; }
.rpm-facts dd { font-weight: 750; margin: 0; }
.rpm-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; border-radius: 999px; padding: 4px 9px; background: #edf1f5; color: #3f536a; font-size: 13px; font-weight: 700; }
.rpm-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rpm-open, .rpm-aqi-good { background: #e9f6ee; color: #235b3e; }
.rpm-aqi-moderate { background: #fff3cf; color: #6c5100; }
.rpm-aqi-sensitive { background: #ffebd7; color: #7b4217; }
.rpm-aqi-poor { background: #fbe6e6; color: #8a3333; }
.rpm-aqi-bad { background: #f2e7fa; color: #60377b; }
.rpm-air summary { cursor: pointer; }
.rpm-air[open] .rpm-facts { margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rpm-clean { font-size: 13px; color: #235b3e; }
.rpm-snow { display: flex; align-items: baseline; gap: 10px; }
.rpm-snow strong { font-size: 36px; line-height: 1; }
.rpm-snow span { color: var(--rpm-muted); font-size: 14px; }
.rpm-progress { display: grid; gap: 5px; }
.rpm-progress label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.rpm-progress progress { width: 100%; height: 8px; accent-color: var(--rpm-primary); }
.rpm-list, .rpm-days { list-style: none; padding: 0; margin: 0; }
.rpm-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--rpm-border); padding: 6px 0; font-size: 14px; }
.rpm-link { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.rpm-camera figure { margin: 0; }
.rpm-camera-frame { position: relative; }
.rpm-camera-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 12px; background: var(--rpm-bg); }
.rpm-camera-frame span { position: absolute; inset: 8px auto auto 8px; background: #96352f; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 750; }
.rpm-camera figcaption { color: var(--rpm-muted); margin-top: 8px; font-size: 14px; }
.rpm a.rpm-button { background: var(--rpm-primary); color: #fff; border-radius: 8px; padding: 8px 12px; width: fit-content; font-weight: 750; text-decoration: none; }
.rpm-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rpm-days li { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.rpm-days time, .rpm-range strong { font-weight: 750; }
.rpm-range { display: flex; gap: 8px; font-size: 19px; }
.rpm-range span, .rpm-days small { color: var(--rpm-muted); }
.rpm-full { margin-top: 16px; }
.rpm-full > .rpm-card { grid-column: span 4; }
.rpm-run { display: inline-grid; place-items: center; border-radius: 50%; min-width: 24px; height: 24px; background: #edf1f5; color: var(--rpm-ink); font-weight: 700; }
.rpm-run-blue { background: #164576; color: #fff; }
.rpm-run-red { background: #96352f; color: #fff; }
.rpm-run-black { background: #1d2430; color: #fff; }
@media (max-width: 1199px) {
  .rpm-weather, .rpm-ski, .rpm-full > .rpm-card { grid-column: span 6; }
  .rpm-grid .rpm-camera, .rpm-grid:not(:has(.rpm-weather)) .rpm-camera { grid-row: auto; grid-column: 1 / -1; }
  .rpm-camera-frame { max-width: 600px; }
}
@media (max-width: 767px) {
  .rpm .rpm-grid > .rpm-card, .rpm-grid:not(:has(.rpm-weather)) .rpm-ski, .rpm-full > .rpm-card { grid-column: 1 / -1; }
  .rpm-card { padding: 16px; }
  .rpm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpm-days { grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .rpm-days li { scroll-snap-align: start; }
}
