@font-face {
  font-family: Rain Rounded;
  src: url(/weather/fonts/nunito-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --reading-width: 490px;
  --app-header-height: 56px;
  --sky-top: #4199ff;
  --sky-bottom: #24354d;
  --surface: #102736;
  --surface-raised: #17374c;
  --ink: #fff;
  --muted: #bed0df;
  --quiet: #92adbf;
  --line: #ffffff1c;
  --cyan: #00ebff;
  --rain: #5ac8fa;
  --blue: #409eff;
  --violet: #7a3dff;
  --green: #38e67a;
  --radius: 24px;
  --font: ui-rounded, "SF Pro Rounded", "Rain Rounded", system-ui, sans-serif;
  font: 15px var(--font);
  color: var(--ink);
  background: #183146;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html:has(body[data-weather-app]),
body[data-weather-app] {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior-x: none;
}
body { margin: 0; }
body[data-weather-app] {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
button,
input,
select {
  font: inherit;
}
button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button {
  color: inherit;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a {
  color: var(--rain);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 4000;
  top: -80px;
  left: 12px;
  padding: 14px;
  background: var(--surface);
}
.skip-link:focus {
  top: 12px;
}
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #132b4545, #081c3566),
    linear-gradient(165deg, var(--sky-top), var(--sky-bottom));
  pointer-events: none;
}
body[data-sky="rain"] {
  --sky-top: #707274;
  --sky-bottom: #36383a;
}
body[data-sky="night"] {
  --sky-top: #001833;
  --sky-bottom: #002633;
}
body[data-sky="storm"] {
  --sky-top: #404244;
  --sky-bottom: #242628;
}
body[data-atmosphere="off"] .atmosphere {
  background: #122a3c;
}
.app-header {
  flex-shrink: 0;
  height: var(--app-header-height);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 470px) 1fr;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  background: #1027395c;
  border-bottom: 1px solid #ffffff14;
  position: relative;
  z-index: 1002;
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.brand img {
  border-radius: 10px;
}
.brand sup {
  font-size: 13px;
  vertical-align: super;
  margin-left: 2px;
}
.place-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.round-button,
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #182e43b8;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  color: #e8f5ff;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 28px;
}
.round-button:hover,
.icon-button:hover {
  background: #ffffff18;
}
.round-button[aria-pressed="true"] {
  color: var(--cyan);
}
.round-button[aria-pressed="true"] svg {
  fill: #00ebff30;
}
.help-button {
  font-size: 23px;
  font-weight: 800;
}
.place-identity {
  background: #3a566e70;
  border: 1px solid #ffffff20;
  box-shadow: inset 0 1px 1px #ffffff15;
  border-radius: 20px;
  text-align: center;
  padding: 3px 13px;
  flex: 1;
  min-width: 0;
}
.place-identity h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.place-identity h1 button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.place-identity h1 svg {
  fill: #fff;
  stroke-width: 1;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.place-identity #place-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-chevron {
  font-size: 17px;
  color: var(--muted);
}
.place-identity p {
  margin: 3px 0 0;
  color: #bbd5e8;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.get-app-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff70;
  border-radius: 12px;
  padding: 10px 14px;
  background: #f4fbff;
  color: #183247;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.get-app-button svg {
  width: 17px;
  height: 20px;
  stroke-width: 1.7;
}
.app-arrow {
  margin-left: 6px;
}
.workspace {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: calc(100dvh - var(--app-header-height));
  display: grid;
  grid-template-columns: var(--reading-width) minmax(0, 1fr);
  max-width: 2200px;
  margin: 0 auto;
}
.weather-column {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: #ffffff30 transparent;
}
.weather-body {
  padding: 20px 20px 108px;
}
.current-weather {
  position: relative;
  padding: 0 16px 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, #0a1e2c 87%, var(--sky-top));
  isolation: isolate;
}
.current-weather:before {
  content: "";
  position: absolute;
  width: 244px;
  height: 244px;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: inherit;
  z-index: -1;
}
.hero-dial {
  position: relative;
  aspect-ratio: 360/288;
  width: 100%;
  max-width: 380px;
  margin: auto;
}
.hero-dial > svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: none;
  overflow: visible;
}
.hero-dial text {
  text-anchor: middle;
  fill: #fff;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.hero-temperature {
  position: absolute;
  left: 50%;
  top: 38.4%;
  transform: translate(-50%, -50%);
  font-size: clamp(56px, 5.2vw, 72px);
  font-weight: 750;
  letter-spacing: -3px;
  line-height: 1;
}
.hero-temperature sup {
  font-size: 0.65em;
  vertical-align: top;
  margin-top: 3px;
  display: inline-block;
}
.hero-condition-arc {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.hero-small-value {
  font-size: 22px;
  font-weight: 750;
}
.hero-small-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.6px;
}
.hero-caption {
  font-size: 11px;
  fill: var(--muted) !important;
}
.hero-reading {
  cursor: pointer;
}
.hero-hit {
  position: absolute;
  top: 64%;
  width: 23%;
  height: 31%;
  border: 0;
  background: none;
  border-radius: 50%;
}
.hero-hit.uv {
  left: 1%;
}
.hero-hit.wind {
  right: 1%;
}
.rain-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  position: absolute;
  left: 50%;
  bottom: 2.8%;
  transform: translateX(-50%);
  max-width: 70%;
  border: 2px solid var(--cyan);
  border-radius: 12px;
  padding: 5px 10px;
  color: white;
  background: #102536;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.current-condition {
  margin: 4px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.current-condition:empty {
  display: none;
}
.current-description {
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0 0;
  text-wrap: pretty;
}
.current-description:empty {
  display: none;
}
.forecast-surface {
  padding: 16px;
  background: color-mix(in srgb, #091d2b 90%, var(--sky-top));
  border-radius: var(--radius);
  margin: 0 0 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  font-weight: 700;
  margin: 0 0 15px;
}
.section-heading h2 {
  margin: 0;
}
.rain-message {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 17px;
  min-height: 24px;
}
.fine-print {
  font-size: 11px;
  color: var(--quiet);
  line-height: 1.6;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--rain);
  padding: 5px 0;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.text-button:hover {
  color: #fff;
}
.minute-chart {
  cursor: crosshair;
  touch-action: pan-y;
}
.minute-chart svg {
  width: 100%;
  height: auto;
  display: block;
  stroke: none;
  overflow: visible;
}
.minute-chart text {
  stroke: none;
  fill: #c4d1db;
  font: 10px var(--font);
}
.minute-chart .grid-line {
  stroke: #ffffff24;
  stroke-dasharray: 4 5;
  stroke-width: 1;
}
.minute-chart .rain-line {
  fill: none;
  stroke: var(--rain);
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.minute-chart .unavailable-area {
  fill: #ffffff05;
}
.next-hour .fine-print {
  margin: 5px 0 0;
  font-size: 10px;
}
.chart-inspection {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  min-height: 0;
  margin-top: 4px;
}
.chart-inspection:empty {
  display: none;
}
.segment-control {
  display: flex;
  gap: 2px;
  background: #ffffff09;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  padding: 3px;
  align-items: center;
}
.segment-control button {
  border: 0;
  background: transparent;
  color: #a7bbc9;
  border-radius: 9px;
  font-size: 11px;
  padding: 7px 9px;
  line-height: 1.2;
  white-space: nowrap;
}
.segment-control button[aria-pressed="true"] {
  background: #60809c42;
  color: #fff;
  box-shadow: inset 0 1px #ffffff15;
}
.forecast-timeline {
  position: relative;
}
.forecast-date {
  font-size: 12px;
  color: #c8d9e4;
  font-weight: 700;
  margin: 8px 0 0;
}
.forecast-date:first-child {
  margin-top: 2px;
}
.forecast-row {
  display: grid;
  grid-template-columns: 8px 45px minmax(0, 1fr) minmax(110px, 45%);
  align-items: center;
  width: 100%;
  min-height: 45px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  column-gap: 10px;
}
.forecast-row:hover {
  background: #ffffff06;
  border-radius: 10px;
}
.weather-strip {
  width: 8px;
  height: 45px;
  border-radius: 2px;
  background: var(--strip, #91a8b0);
  opacity: var(--strip-opacity, 0.45);
}
.forecast-row:first-of-type .weather-strip {
  border-radius: 6px 6px 0 0;
}
.forecast-row:last-child .weather-strip {
  border-radius: 0 0 6px 6px;
}
.forecast-time {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.forecast-condition {
  font-size: 12px;
  line-height: 1.25;
  min-width: 0;
  color: #eff8ff;
}
.forecast-condition em {
  font-style: normal;
  color: var(--muted);
}
.forecast-stroke {
  height: 2px;
  background: var(--temperature-color);
  border-radius: 3px;
  min-width: 8px;
  align-self: center;
}
.temperature-pill {
  border: 2px solid var(--temperature-color);
  border-radius: 18px;
  padding: 3px 8px;
  min-width: 48px;
  text-align: center;
  background: #061b29;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.daily-row {
  border-bottom: 1px solid #ffffff16;
}
.daily-row:last-child {
  border: 0;
}
.daily-row summary {
  display: grid;
  grid-template-columns: 8px 30px 34px 32px 22px minmax(100px, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 51px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
}
.daily-row summary::-webkit-details-marker {
  display: none;
}
.daily-row summary:hover {
  background: #ffffff06;
  border-radius: 9px;
}
.daily-row .weather-strip {
  height: 51px;
}
.daily-row .day-name {
  font-weight: 800;
}
.day-rain,
.day-chance {
  color: var(--rain);
  font-weight: 800;
  white-space: nowrap;
  font-size: 12px;
}
.day-icon svg {
  width: 23px;
  height: 23px;
  stroke: white;
}
.day-icon svg path:last-child {
  stroke: var(--rain);
}
.daily-row .temperature-pill {
  font-size: 13px;
  min-width: 41px;
  padding: 3px 5px;
  border-radius: 15px;
}
.daily-row .forecast-stroke {
  margin: 0 -8px;
}
.day-detail {
  padding: 10px 8px 15px 19px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.day-detail p {
  margin: 3px 0;
}
.day-detail .text-button {
  margin-top: 7px;
}
.empty-state {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding: 3px 0;
  margin: 0;
}
.weather-footer {
  display: grid;
  gap: 2px;
  padding: 8px 4px 0;
  border-top: 1px solid #ffffff1a;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.footer-status,
.footer-updated,
.footer-links {
  display: flex;
  align-items: center;
}
.footer-status {
  justify-content: space-between;
  gap: 12px;
}
.footer-updated {
  min-width: 0;
  gap: 4px;
}
.footer-links {
  flex-wrap: wrap;
  gap: 0 20px;
}
.weather-footer button,
.weather-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.weather-footer #refresh-weather {
  flex: 0 0 40px;
}
.weather-footer #share-place {
  flex-shrink: 0;
}
.weather-footer svg {
  width: 16px;
  height: 16px;
}
.weather-footer button:hover,
.weather-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.weather-data-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.view-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  position: fixed;
  max-width: calc(100% - 20px);
  bottom: 21px;
  left: calc(var(--reading-width) / 2);
  transform: translateX(-50%);
  z-index: 2000;
  padding: 7px;
  background: #293f4de8;
  border: 1px solid #ffffff30;
  border-radius: 30px;
  box-shadow:
    inset 0 1px #ffffff20,
    0 8px 30px #05152220;
  backdrop-filter: blur(14px);
}
.view-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-width: 68px;
  height: 54px;
  border: 0;
  background: none;
  border-radius: 23px;
  color: #b8c8d2;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 11px;
}
.view-nav button svg,
.view-nav button span {
  pointer-events: none;
}
.view-nav button svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}
.view-nav button[aria-pressed="true"] {
  background: #6d859773;
  color: var(--rain);
}
.view-nav button[aria-pressed="true"] svg {
  fill: #5ac8fa20;
  stroke: var(--rain);
}
.view-nav .nav-search {
  margin-left: 5px;
  min-width: 50px;
  border-left: 1px solid #ffffff12;
  border-radius: 50%;
}
.view-nav .nav-search svg {
  width: 29px;
  height: 29px;
}
.map-panel {
  isolation: isolate;
  --radar-controls-bottom: 25px;
  --radar-controls-height: 60px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 15px 17px 17px 0;
  border-radius: 24px;
  background: #dce7ed;
  color: #153248;
}
#radar-map {
  height: 100%;
  width: 100%;
  background: #dce7ed;
}
.leaflet-container {
  font: inherit;
}
.leaflet-tile-pane {
  filter: saturate(0.55);
}
.map-panel[data-map-style="satellite"] .leaflet-tile-pane {
  filter: none;
}
.leaflet-control-attribution {
  font-family: var(--font);
  font-size: 8px !important;
  line-height: 1.4 !important;
  background: #102638cc !important;
  color: #c4d2df !important;
}
.leaflet-control-attribution a {
  color: #d1eaff !important;
}
.leaflet-control-zoom {
  border: 1px solid #ffffff28 !important;
  box-shadow: none !important;
  border-radius: 13px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  border-color: #ffffff25 !important;
  background: #18394deb !important;
  color: #fff !important;
}
.leaflet-top.leaflet-right {
  top: 161px;
  right: 8px;
}
.leaflet-control-scale-line {
  border-color: #142f46aa !important;
  color: #102839 !important;
  background: #ffffffba !important;
  font-size: 10px !important;
}

.map-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: 19px;
  right: 19px;
  z-index: 620;
}
.map-button {
  width: 41px;
  height: 41px;
  border: 1px solid #ffffff40;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #193a50ed;
  color: #effaff;
}
.map-button svg {
  width: 19px;
  height: 19px;
}
.map-button:hover {
  background: #335974;
}
.radar-canvas,
.weather-field-canvas {
  position: absolute;
  pointer-events: none;
}
.selected-marker {
  border: 3px solid white !important;
  border-radius: 50%;
  background: #00cce5;
  box-shadow:
    0 0 0 2px #0076a855,
    0 2px 5px #09294144;
}
.map-notices {
  position: absolute;
  z-index: 610;
  top: 19px;
  left: 19px;
  max-width: min(360px, calc(100% - 94px));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radar-status,
.layer-menu {
  position: absolute;
  top: 17px;
  right: 69px;
  z-index: 700;
  width: 240px;
  max-width: calc(100% - 90px);
  background: #102d40f5;
  color: #fff;
  padding: 15px;
  border: 1px solid #ffffff28;
  border-radius: 20px;
  box-shadow: 0 15px 60px #0b203b40;
}
.layer-menu .section-heading {
  margin-bottom: 9px;
}
.layer-menu h2 {
  font-size: 17px;
}
.layer-menu .icon-button {
  width: 30px;
  height: 30px;
}
.layer-options {
  display: grid;
  gap: 2px;
  margin-bottom: 15px;
}
.layer-options label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 1px;
  font-size: 13px;
}
.layer-options input {
  accent-color: var(--cyan);
}
.layer-menu .segment-control {
  width: 100%;
  justify-content: center;
}
.layer-menu .segment-control button {
  flex: 1;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 12px 0 0;
}
.check-row input {
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
}
.opacity-control {
  display: block;
  font-size: 11px;
  color: var(--muted);
  padding-top: 15px;
}
.opacity-control input {
  width: 100%;
  display: block;
  accent-color: var(--rain);
  margin-top: 10px;
}
.map-presets {
  display: flex;
  gap: 5px;
  padding-top: 14px;
}
.map-presets button {
  flex: 1;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: #ffffff08;
  padding: 7px 2px;
  font-size: 11px;
}
.map-presets small {
  font-size: 9px;
  color: var(--muted);
}
.map-details {
  position: absolute;
  left: 20px;
  bottom: calc(
    var(--radar-controls-bottom) + var(--radar-controls-height) + 12px
  );
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.map-details .leaflet-control-scale {
  margin: 0 !important;
  float: none;
}
.field-legend {
  background: #16374de8;
  color: white;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 10px;
  min-width: 160px;
}
.field-legend .color-scale {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #409eff,
    #00ebff,
    #38e67a,
    #ffd12e,
    #ff4d3d,
    #e833b8
  );
  margin: 7px 0 4px;
}
.field-legend .legend-range {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.radar-controls {
  position: absolute;
  z-index: 600;
  bottom: var(--radar-controls-bottom);
  left: 20px;
  right: 20px;
  max-width: 850px;
  margin: auto;
  border-radius: 20px;
  background: #153449ed;
  color: #f2faff;
  border: 1px solid #ffffff30;
  box-shadow: 0 8px 35px #0d273520;
  padding: 8px 12px;
}
/* The app's slim intensity rail leaves the timeline clear. */
.map-legend {
  position: absolute;
  z-index: 610;
  left: 8px;
  top: var(--map-content-top, 8px);
  bottom: calc(var(--radar-controls-bottom) + var(--radar-controls-height) + 40px);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.radar-legend {
  position: relative;
  pointer-events: auto;
}
.radar-legend summary {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: clamp(64px, 20dvh, 148px);
  list-style: none;
  cursor: pointer;
}
.radar-legend summary::-webkit-details-marker { display: none; }
.radar-legend summary i {
  display: block;
  width: 6px;
  height: 100%;
  border-radius: 4px;
  border: 1px solid #ffffff70;
  box-shadow: 0 1px 5px #08233470;
  background: linear-gradient(to bottom, #b4b4ff, #1414ff, #00d8c3, #ff0, #ff6400, #c80000);
}
.radar-legend-labels {
  position: absolute;
  inset: -34px auto -34px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 170px;
  padding: 12px 14px 12px 44px;
  border: 1px solid #ffffff30;
  border-radius: 18px;
  background: #153449cf;
  backdrop-filter: blur(16px);
  color: #e5f2fc;
  font-size: 12px;
}
.radar-legend-labels strong { font-size: 14px; }
.coverage-key { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.coverage-key b {
  width: 15px;
  height: 12px;
  background: repeating-linear-gradient(135deg, #bdc8d370 0 1px, transparent 1px 4px);
  border: 1px solid #c9d0d850;
}
.playback {
  display: flex;
  gap: 16px;
  align-items: center;
}
.play-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #a0c9df38;
  color: var(--cyan);
  flex-shrink: 0;
}
.play-button svg {
  fill: currentColor;
  stroke-width: 1;
  width: 20px;
  height: 20px;
}
.timeline {
  min-width: 0;
  flex: 1;
}
.timeline input {
  display: block;
  width: 100%;
  accent-color: var(--rain);
  margin: 0;
  height: 28px;
  cursor: pointer;
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  font-size: 10px;
  color: #aec7d8;
  font-variant-numeric: tabular-nums;
}
.timeline-labels time {
  font-weight: 800;
  color: #fff;
}
.radar-history-settings { margin-block: 12px; }
.radar-history-settings summary { cursor: pointer; padding-block: 12px; font-size: 14px; }
.radar-history-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 11px 0 13px;
  font-size: 11px;
}
.radar-history-controls input {
  background: #fff1;
  border: 1px solid #ffffff30;
  color: white;
  border-radius: 7px;
  padding: 5px;
  font-size: 11px;
}
.radar-history-controls .fine-print {
  width: 100%;
  font-size: 9px;
}
.radar-archive-status {
  flex-basis: 100%;
  margin: 0;
}
body[data-view="map"] .workspace {
  grid-template-columns: minmax(0, 1fr);
}
body[data-view="map"] .weather-column {
  display: none;
}
body[data-view="map"] .map-panel {
  margin: 0;
  border-radius: 0;
}
body[data-view="map"] .map-panel {
  --radar-controls-bottom: 112px;
}
.notice {
  position: relative;
  z-index: 2000;
  background: #213c51;
  color: #e5f0fa;
  border-bottom: 1px solid #ffffff20;
  font-size: 12px;
  padding: 10px 20px;
  text-align: center;
}
.notice:not([hidden]) + .workspace {
  height: calc(100dvh - 123px);
}
dialog {
  color: var(--ink);
  background: #102b3ef5;
  border: 1px solid #ffffff30;
  box-shadow: 0 24px 100px #00101d66;
  border-radius: 26px;
  width: min(480px, calc(100% - 28px));
  max-height: 88dvh;
  padding: 25px;
  scrollbar-width: thin;
}
dialog::backdrop {
  background: #06172499;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}
.dialog-heading h2 {
  font-size: 25px;
  margin: 0;
}
.dialog-heading .icon-button {
  font-size: 29px;
}
.dialog-heading p {
  margin: 3px 0 0;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
}
dialog h3 {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin: 24px 0 12px;
  font-weight: 700;
}
#search-form {
  display: flex;
  gap: 8px;
}
#place-search {
  width: 100%;
  min-width: 0;
  border: 1px solid #ffffff28;
  border-radius: 12px;
  background: #ffffff09;
  padding: 12px;
  color: white;
  font-size: 16px;
}
#place-search::placeholder {
  color: #9db9cd;
}
.search-submit {
  border: 0;
  background: var(--rain);
  color: #082a3d;
  border-radius: 12px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
}
.location-option {
  margin: 12px 0 0;
  padding: 12px 0;
  background: none;
  border: 0;
  color: var(--rain);
  font-size: 13px;
  font-weight: 750;
}
.place-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #ffffff18;
  background: none;
  padding: 13px 3px;
  text-align: left;
  color: #fff;
}
.place-result:hover {
  background: #ffffff08;
}
.place-result strong {
  font-size: 15px;
  display: block;
  font-weight: 800;
}
.place-result small {
  font-size: 11px;
  color: #adc5d4;
  display: block;
  margin-top: 3px;
}
.place-result .place-temperature {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}
.saved-place {
  display: flex;
  align-items: center;
  gap: 5px;
}
.saved-place .place-result {
  min-width: 0;
  flex: 1;
}
.saved-place .remove-saved {
  width: 35px;
  height: 38px;
  background: none;
  border: 0;
  color: var(--quiet);
  font-size: 23px;
}
.saved-note {
  margin-top: 24px;
}
.secondary-button {
  display: block;
  border: 1px solid #ffffff25;
  background: #ffffff08;
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--rain);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #ffffff16;
  min-height: 50px;
  font-size: 13px;
}
.setting-row select,
.station-selector select,
.chart-toolbar select {
  max-width: 60%;
  background: #203f54;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  padding: 7px 9px;
  color: white;
  font-size: 12px;
}
.setting-row input[type="checkbox"] {
  accent-color: var(--rain);
  width: 20px;
  height: 20px;
}
#settings-dialog > .secondary-button {
  margin-top: 16px;
  width: 100%;
}
.source-links {
  line-height: 2;
}
.source-links a {
  white-space: nowrap;
}
.mobile-upsell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border: 1px solid #9dc8e04a;
  border-radius: 24px;
  background: #1d40557a;
  margin: 8px 0 19px;
}
.mobile-upsell h2 {
  font-size: 18px;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.mobile-upsell p {
  font-size: 12px;
  line-height: 1.6;
  color: #c4d9e6;
  margin: 0 0 7px;
}
.upsell-symbol {
  width: 45px;
  height: 50px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--rain);
}
.upsell-symbol svg {
  width: 35px;
  height: 35px;
  stroke-width: 1.5;
}
.dismiss-upsell {
  position: absolute;
  right: 8px;
  top: 3px;
  width: 24px;
  height: 26px;
  background: none;
  border: 0;
  color: var(--quiet);
  font-size: 21px;
}
.chart-dialog {
  width: min(800px, calc(100% - 28px));
}
.chart-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-toolbar select {
  max-width: 45%;
}
.chart-lane {
  margin: 0 0 20px;
}
.chart-lane-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}
.chart-lane-heading .lane-range {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}
.chart-lane svg {
  width: 100%;
  height: auto;
  display: block;
  stroke: none;
  overflow: visible;
  touch-action: pan-y;
}
.chart-lane text {
  font: 10px var(--font);
  fill: #aabfce;
}
.chart-lane .chart-guide {
  stroke: #ffffff1c;
  stroke-width: 1;
}
.chart-lane .data-line {
  fill: none;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-lane .forecast-line {
  stroke-dasharray: 4 5;
}
.chart-lane .now-seam {
  stroke: #d3e4ef88;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}
.chart-lane .focus-line {
  stroke: #f3faffb0;
  stroke-width: 1;
}
.chart-lane .focus-dot {
  stroke: #102736;
  stroke-width: 4;
}
.chart-lane .rain-bar {
  fill: var(--rain);
}
.chart-lane .unknown-mark {
  stroke: #a0b2c1;
  stroke-width: 1;
  stroke-dasharray: 1 3;
}
.weather-inspector {
  display: block;
  padding: 15px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #d9e9f3;
}
.weather-inspector h3 {
  margin: 0 0 5px;
  color: white;
  font-size: 15px;
}
.weather-inspector .inspector-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.weather-inspector .inspector-values strong {
  color: white;
}
.weather-inspector p {
  margin: 5px 0 0;
  font-size: 11px;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 12px;
}
.history-heading h2 {
  margin: 0;
  font-size: 26px;
}
.station-selector {
  display: block;
  color: #c3d6e3;
  font-size: 11px;
  margin: 3px 5px 15px;
}
.station-selector select {
  display: block;
  max-width: 100%;
  width: 100%;
  margin-top: 7px;
  padding: 11px 9px;
}
.history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  padding-top: 12px;
}
.history-summary div {
  flex: 1;
  min-width: 90px;
}
.history-summary dt {
  color: var(--muted);
  font-size: 11px;
}
.history-summary dd {
  font-size: 20px;
  font-weight: 800;
  margin: 3px 0;
  white-space: nowrap;
}
.history-summary small {
  font-size: 10px;
  color: var(--quiet);
}
.annual-key {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  font-size: 11px;
}
.annual-key span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.annual-key i {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}
.station-marker {
  border: 1px solid #fff9 !important;
  border-radius: 18px;
  background: #12374ce6;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 11px var(--font);
  box-shadow: 0 2px 4px #1233;
  white-space: nowrap;
}
.radar-station-marker {
  border: 2px solid #fff;
  border-radius: 50%;
  background: #206c9b;
  box-shadow: 0 0 0 3px #00cce530;
}
.radar-station-marker.offline {
  background: #f6b05d;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #102c40 !important;
  color: white !important;
}
.leaflet-popup-content {
  font: 12px var(--font) !important;
  line-height: 1.7 !important;
}
.leaflet-popup-content strong {
  font-size: 14px;
}
.leaflet-popup-content button {
  display: block;
  border: 0;
  background: none;
  color: var(--rain);
  padding: 8px 0 0;
  font-weight: 800;
}
.map-source {
  font-size: 9px;
  color: #a8c4d6;
}
.noscript {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  z-index: 4000;
}
@media (min-width: 1700px) {
  :root {
    --reading-width: 540px;
  }
  .weather-body {
    padding: 30px 32px 120px;
  }
  .hero-dial {
    max-width: 430px;
  }
  .current-description {
    font-size: 17px;
  }
  .forecast-row {
    min-height: 48px;
  }
  .weather-strip {
    height: 48px;
  }
  .forecast-condition {
    font-size: 13px;
  }
}
@media (max-width: 1150px) {
  :root {
    --reading-width: 420px;
  }
  .app-header {
    grid-template-columns: 1fr minmax(270px, 400px) 1fr;
    padding: 0 20px;
    gap: 15px;
  }
  .brand span {
    font-size: 19px;
  }
  .header-actions {
    gap: 8px;
  }
  .get-app-button {
    padding: 10px;
    font-size: 11px;
  }
  .app-arrow {
    display: none;
  }
  .weather-body {
    padding: 25px 17px 115px;
  }
  .current-weather {
    padding: 0 13px 5px;
  }
  .current-weather:before {
    width: 220px;
    height: 220px;
    top: -20px;
  }
  .hero-temperature {
    font-size: 62px;
  }
  .hero-condition-arc {
    font-size: 16px;
  }
  .forecast-surface {
    padding: 16px;
  }
  .daily-row summary {
    gap: 5px;
    grid-template-columns: 8px 30px 34px 32px 22px minmax(100px, 1fr);
  }
  .daily-row .temperature-pill {
    font-size: 12px;
    min-width: 36px;
    padding: 3px;
  }
  .day-rain,
  .day-chance {
    font-size: 11px;
  }
  .forecast-row {
    column-gap: 8px;
    grid-template-columns: 8px 45px minmax(0, 1fr) minmax(110px, 45%);
  }
  .forecast-condition {
    font-size: 11px;
  }
  .radar-controls {
    padding: 8px 12px;
  }
}
@media (max-width: 850px) {
  .brand span {
    display: none;
  }
  .app-header {
    grid-template-columns: 55px minmax(240px, 1fr) auto;
  }
  .get-app-button span {
    display: none;
  }
  .get-app-button {
    width: 41px;
    height: 41px;
    justify-content: center;
    border-radius: 50%;
    padding: 8px;
  }
  .place-heading {
    max-width: 440px;
    margin: auto;
    width: 100%;
  }
  .map-panel {
    margin-right: 12px;
  }
  .radar-controls {
    left: 12px;
    right: 12px;
  }

  .map-actions {
    right: 15px;
    top: 16px;
  }
}
@media (max-width: 760px) {
  :root {
    --reading-width: 100%;
    --app-header-height: 52px;
  }
  .app-header {
    height: var(--app-header-height);
    position: sticky;
    top: 0;
    padding: 0 12px;
    grid-template-columns: 37px minmax(0, 1fr) 76px;
    gap: 8px;
    backdrop-filter: blur(12px);
  }
  .brand img {
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }
  .brand {
    gap: 0;
  }
  .brand span,
  .get-app-button span {
    display: none;
  }
  .place-heading {
    gap: 6px;
  }
  .help-button {
    display: none;
  }
  .place-identity {
    padding: 3px 8px;
    border-radius: 14px;
  }
  .place-identity h1 {
    font-size: 16px;
  }
  .place-identity p {
    font-size: 9px;
  }
  .place-heading > .round-button {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
  }
  .place-heading > .round-button svg {
    width: 21px;
    height: 21px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions > .round-button,
  .get-app-button {
    width: 44px;
    height: 44px;
  }
  .header-actions > .round-button svg {
    width: 20px;
    height: 20px;
  }
  .get-app-button svg {
    width: 17px;
    height: 19px;
  }
  .workspace { display: block; }
  .weather-body {
    max-width: 550px;
    margin: auto;
    padding: 20px 15px 110px;
  }
  .current-weather {
    margin-top: 19px;
    padding: 0 14px 5px;
  }
  .current-weather:before {
    top: -24px;
    width: 220px;
    height: 220px;
  }
  .hero-dial {
    max-width: 400px;
  }
  .hero-temperature {
    font-size: clamp(52px, 16vw, 71px);
  }
  .hero-condition-arc {
    font-size: 17px;
  }
  .current-description {
    font-size: 16px;
    margin: 10px 1px 7px;
  }
  .current-condition {
    font-size: 14px;
  }
  .rain-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 11px;
    border-width: 2px;
  }
  .forecast-surface {
    padding: 16px;
    margin-bottom: 16px;
  }
  .forecast-row {
    column-gap: 9px;
    grid-template-columns: 8px 45px minmax(0, 1fr) minmax(110px, 45%);
  }
  .forecast-condition {
    font-size: 12px;
  }
  .daily-row summary {
    gap: 6px;
    grid-template-columns: 8px 30px 34px 32px 22px minmax(100px, 1fr);
  }
  .day-rain,
  .day-chance {
    font-size: 11px;
  }
  .daily-row .temperature-pill {
    min-width: 37px;
    font-size: 12px;
  }
  .view-nav {
    left: 50%;
    bottom: max(15px, env(safe-area-inset-bottom));
    box-shadow: 0 8px 30px #00101e40;
    padding: 6px;
  }
  .view-nav button {
    height: 53px;
    min-width: 69px;
    padding: 4px 12px;
  }
  .view-nav button svg {
    width: 25px;
    height: 25px;
  }
  .view-nav .nav-search {
    min-width: 50px;
  }
  .map-panel {
    display: none;
    height: 450px;
    margin: 0 15px 110px;
    border-radius: 23px;
  }

  .map-actions {
    top: 15px;
    right: 15px;
  }
  .map-button {
    width: 38px;
    height: 38px;
  }
  .leaflet-top.leaflet-right {
    top: 153px;
    right: 5px;
  }
  .radar-controls {
    bottom: var(--radar-controls-bottom);
    padding: 6px 10px;
    border-radius: 16px;
    left: 10px;
    right: 10px;
  }
  .playback {
    gap: 10px;
  }

  .timeline-labels {
    font-size: 9px;
  }
    .layer-menu {
    right: 61px;
    top: 15px;
  }
  .map-presets button {
    font-size: 10px;
  }
  .radar-status {
    font-size: 10px;
  }
  .field-status {
    font-size: 10px;
  }
  .field-legend {
    font-size: 10px;
  }
  .map-details {
    left: 15px;
  }
  .map-notices {
    left: 15px;
    top: 15px;
  }
  body[data-view="map"] .workspace {
    height: calc(100dvh - 76px);
  }
  body[data-view="map"] .map-panel {
    display: block;
    --radar-controls-bottom: 107px;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .notice {
    font-size: 11px;
    padding: 9px 15px;
  }
  .chart-dialog {
    padding: 21px 17px;
  }
  .chart-toolbar {
    gap: 7px;
  }
  .chart-toolbar select {
    font-size: 10px;
    max-width: 42%;
  }
  .chart-toolbar .segment-control button {
    font-size: 10px;
    padding: 7px;
  }
  .weather-inspector {
    font-size: 11px;
  }
  .chart-lane-heading {
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .app-header {
    grid-template-columns: 31px minmax(0, 1fr) 69px;
    gap: 4px;
    padding: 0 9px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .header-actions {
    gap: 2px;
  }
  .header-actions > .round-button,
  .get-app-button {
    width: 33px;
    height: 33px;
  }
  .place-identity h1 {
    font-size: 16px;
  }
  .place-identity p {
    font-size: 8px;
  }
  .place-identity h1 svg {
    display: none;
  }
  .place-heading > .round-button {
    width: 28px;
  }
  .weather-body {
    padding-left: 12px;
    padding-right: 12px;
  }
  .forecast-surface {
    padding: 16px 12px;
  }
  .current-description {
    font-size: 14px;
  }
  .hero-condition-arc {
    font-size: 16px;
  }
  .hero-temperature {
    font-size: 54px;
  }
  .rain-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 9px;
    padding: 4px 7px;
  }
  .forecast-row {
    column-gap: 6px;
    grid-template-columns: 8px 45px minmax(0, 1fr) minmax(110px, 45%);
  }
  .forecast-condition {
    font-size: 11px;
  }
  .forecast-time {
    font-size: 12px;
  }
  .temperature-pill {
    font-size: 13px;
    min-width: 43px;
    padding: 3px 6px;
  }
  .daily-row summary {
    gap: 4px;
    grid-template-columns: 8px 30px 34px 32px 22px minmax(100px, 1fr);
  }
  .daily-row .temperature-pill {
    font-size: 11px;
    min-width: 34px;
  }
  .day-rain,
  .day-chance {
    font-size: 10px;
  }
  .view-nav button {
    min-width: 64px;
  }
  .view-nav .nav-search {
    min-width: 45px;
  }
  .current-weather:before {
    width: 205px;
    height: 205px;
    top: -18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #e1eff8;
    --quiet: #c7dbe8;
    --line: #ffffff60;
  }
  .forecast-surface,
  .current-weather,
  dialog {
    background: #061b2b;
  }
  .temperature-pill,
  .rain-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    border-width: 4px;
  }
  .chart-lane .data-line,
  .minute-chart .rain-line {
    stroke-width: 4;
  }
  .view-nav,
  .app-header,
  .radar-controls {
    background: #0c273bf7;
  }
}

.forecast-condition small {
  display: block;
  color: var(--rain);
  font-size: 11px;
  margin-top: 2px;
}
.rain-total strong {
  font-size: 17px;
}
.rain-total small {
  font-size: 11px;
}
.rain-total span {
  font-size: 10px;
}

/* The scalar and rain fields have different physical colour scales. */
.field-legend .color-scale {
  background: linear-gradient(
    90deg,
    #409eff 0% 18.2%,
    #00ebff 32.7%,
    #38e67a 56.4%,
    #ffd12e 72.7%,
    #ff4d3d 85.5%,
    #e833b8 92.7%,
    #7a3dff 100%
  );
}
.field-legend[data-layer="precipitation"] .color-scale {
  background: linear-gradient(
    90deg,
    #5ac8fa 0% 24%,
    #328cff 25% 90%,
    #b840ff 100%
  );
}

.hero-temperature.wide-reading {
  font-size: 56px;
  letter-spacing: -2px;
}
.chart-toolbar {
  flex-wrap: wrap;
}
.chart-toolbar .segment-control {
  flex: 1 1 220px;
}
.chart-toolbar select {
  flex: 1 1 130px;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 760px) {
  .hero-temperature.wide-reading {
    font-size: clamp(40px, 12.5vw, 48px);
  }
  .chart-toolbar select {
    max-width: 100%;
  }
}
#places-dialog {
  width: min(660px, calc(100% - 28px));
}
.place-result.weather-place {
  min-height: 112px;
  padding: 14px 16px;
  gap: 14px;
  margin-bottom: 10px;
  border: 1px solid #ffffff20;
  border-radius: 20px;
  background: #16374c;
}
.place-weather-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.place-weather-copy strong {
  font-size: 17px;
}
.place-weather-copy > small {
  font-size: 11px;
  color: var(--muted);
}
.place-weather-narrative {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.place-weather-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.place-temperature {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
}
.place-temperature svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.place-temperature text {
  fill: white;
  font: 700 23px var(--font);
}
.saved-place .weather-place {
  flex: 1;
}
@media (max-width: 370px) {
  .place-result.weather-place {
    padding: 12px;
    gap: 8px;
  }
  .place-temperature {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }
}

.temperature-marker {
  --marker-width: 48px;
  position: relative;
  display: block;
  width: 100%;
  height: 32px;
}
.temperature-marker .forecast-stroke {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: calc(
    8px + var(--temperature-position) * (100% - var(--marker-width) - 8px)
  );
}
.temperature-marker .temperature-pill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(
    8px + var(--temperature-position) * (100% - var(--marker-width) - 8px)
  );
  width: var(--marker-width);
  min-width: 0;
  padding: 3px 5px;
}
.temperature-marker.is-missing .forecast-stroke {
  visibility: hidden;
}
.forecast-condition {
  overflow-wrap: anywhere;
}
.day-temperature-range {
  --pill-width: calc(var(--range-base, 41px) + var(--range-extra, 0px));
  position: relative;
  display: block;
  height: 32px;
  width: 100%;
}
.day-temperature-range .temperature-pill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--pill-width);
  min-width: 0;
}
.day-temperature-range .range-low {
  left: calc(var(--minimum-position) * (100% - 2 * var(--pill-width) - 4px));
}
.day-temperature-range .range-high {
  left: calc(
    var(--pill-width) + 4px + var(--maximum-position) *
      (100% - 2 * var(--pill-width) - 4px)
  );
}
.day-temperature-range .range-line {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  top: calc(50% - 1px);
  left: calc(
    var(--pill-width) + var(--minimum-position) *
      (100% - 2 * var(--pill-width) - 4px)
  );
  width: calc(
    4px + (var(--maximum-position) - var(--minimum-position)) *
      (100% - 2 * var(--pill-width) - 4px)
  );
}
@media (max-width: 1150px) {
  .day-temperature-range {
    --range-base: 36px;
  }
}
@media (max-width: 370px) {
  .forecast-row {
    grid-template-columns: 7px 40px minmax(0, 1fr) minmax(100px, 45%);
  }
  .temperature-marker {
    --marker-width: 43px;
  }
  .daily-row summary {
    grid-template-columns: 7px 26px 28px 28px 19px minmax(86px, 1fr);
  }
  .day-temperature-range {
    --range-base: 34px;
  }
}

.weather-text-forecast {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.6;
}
.weather-text-forecast li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
a.place-result {
  text-decoration: none;
  color: inherit;
}
.place-directory {
  max-width: 1000px;
  padding: 24px;
  margin: auto;
}
.place-directory h1 {
  font-size: clamp(24px, 4vw, 36px);
}
.place-directory a {
  color: #b8e7ff;
}
.place-directory ul {
  columns: 3 220px;
  padding-left: 20px;
}
.place-directory li {
  padding: 5px 0;
  break-inside: avoid;
}

/* Native hero geometry and forecast marker weights (Design1). */
.current-weather {
  --hero-surface: color-mix(in srgb, #0a1e2c 78%, var(--sky-top));
  background: var(--hero-surface);
}
.hero-dial {
  aspect-ratio: 360 / 270;
}
.hero-temperature {
  top: 37.78%;
  font-size: clamp(46px, 4.4vw, 60px);
  letter-spacing: -2px;
}
.hero-temperature.wide-reading {
  font-size: clamp(38px, 3.8vw, 50px);
}
.hero-condition-arc {
  font-size: 23px;
  letter-spacing: 1px;
}
.hero-small-value {
  font-size: 20px;
}
.hero-small-label {
  font-size: 11px;
}
.hero-compass-north {
  font-size: 9px;
  font-weight: 800;
}
.rain-total {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 4px;
  max-width: 55%;
  bottom: 2%;
  border-width: 3px;
  padding: 4px 8px;
  border-radius: 12px;
  background: none;
  white-space: normal;
}
.rain-total > span {
  font-size: 10px;
}
.temperature-pill {
  border-width: 3px;
}
.forecast-stroke,
.day-temperature-range .range-line {
  height: 3px;
}
.forecast-row {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;
}
@supports (width: 1cqw) {
  .temperature-marker .forecast-stroke {
    left: calc(100% - 100cqw);
    width: calc(
      100cqw - 100% + 8px + var(--temperature-position) *
        (100% - var(--marker-width) - 8px)
    );
    background: linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--temperature-color) 25%, transparent) 50%,
      var(--temperature-color)
    );
    z-index: -1;
  }
}
.forecast-time,
.forecast-condition {
  text-shadow: 0 1px 3px var(--surface);
}
select,
select option {
  color: #fff;
  background-color: #17374c;
}
.chart-day-marker line {
  stroke: #ffffff20;
  stroke-width: 1;
}
.chart-day-marker text {
  font-size: 10px;
  font-weight: 700;
  fill: var(--muted);
}
.chart-lane svg.chart-weather-icon {
  width: 18px;
  height: 18px;
  stroke: #e4f4ff;
  stroke-width: 1.5;
}
.chart-lane .wind-direction {
  stroke: none;
}
.wind-station-card {
  border-top: 1px solid #ffffff20;
  padding: 20px 0;
}
.wind-station-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.wind-station-heading h3 {
  margin: 0;
  font-size: 15px;
}
.wind-station-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.wind-station-card .chart-lane {
  margin-bottom: 10px;
}
.wind-trace-key {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.wind-trace-key span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  margin: 0 6px 3px 0;
  background: #00ebff;
}
.wind-trace-key span + span::before {
  background: #b8e8f4;
}
.wind-station-reading {
  display: block;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.atmosphere {
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
#weather-atmosphere {
  width: 100%;
  height: 100%;
  display: block;
}
body[data-atmosphere="off"] #weather-atmosphere {
  display: none;
}
.station-marker {
  border: 0 !important;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 8px #0004;
}
.station-dial {
  width: 44px;
  height: 44px;
  stroke: none;
}
.station-wind-marker {
  border-radius: 10px;
}
.station-wind-value {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 0 4px;
  padding: 5px;
  border: 1px solid #77dceba6;
  border-radius: 10px;
  background: #102736f5;
  color: white;
  line-height: 1.1;
}
.station-wind-value svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #b8f8ff;
  stroke-width: 2.5;
}
.station-wind-value strong {
  font-size: 16px;
}
.station-wind-value small {
  display: block;
  font-size: 9px;
}
.station-wind-value span {
  grid-column: 1 / -1;
  text-align: center;
  font: 700 11px var(--font);
}
.station-dial text {
  fill: white;
  font: 800 12px var(--font);
  text-anchor: middle;
}
.chart-lane text {
  font-size: 18px;
}
.chart-day-marker text {
  font-size: 18px;
}
.chart-lane svg.chart-weather-icon {
  width: 26px;
  height: 26px;
}
@supports (width: 1cqw) {
  .temperature-marker .forecast-stroke {
    background: linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--temperature-color) 8%, transparent) 65%,
      var(--temperature-color)
    );
  }
}
.hero-dial .hero-wind-caption {
  fill: var(--cyan) !important;
}
.inspector-values > span > small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.hero-condition-long {
  overflow-wrap: anywhere;
  position: absolute;
  top: -28px;
  left: 0;
  width: 100%;
  max-height: 48px;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  line-height: 1.18;
  text-wrap: balance;
}
.station-cluster-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
}
.station-cluster-list button {
  border: 0;
  border-radius: 6px;
  padding: 8px;
  color: #143345;
  background: #edf5f8;
  text-align: left;
}
.station-dial {
  overflow: visible;
}
[data-inline-chart] {
  cursor: crosshair;
}
[data-inline-chart]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Keep the reading column, place title and native hero on the same centre. */
.weather-column {
  scrollbar-gutter: stable both-edges;
}
.weather-body {
  padding-top: 24px;
}
.current-weather {
  margin-top: 12px;
  background: none;
  container-type: inline-size;
}
.current-weather::before {
  --hero-width: min(380px, 100cqw);
  content: "";
  inset: -12px 0 0;
  width: auto;
  height: auto;
  transform: none;
  border-radius: 0;
  background: linear-gradient(135deg, #c0e4ff12, #0b1d2c08), #0d263a70;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  /* One glass layer, with a crown concentric with the temperature dial. */
  mask-image: radial-gradient(circle at 50% calc(var(--hero-width) * 102 / 360 + 12px), #000 calc(var(--hero-width) * 112 / 360 - 1px), transparent calc(var(--hero-width) * 112 / 360)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='24' fill='white'/%3E%3C/svg%3E");
  mask-size: 100% 100%, 100% calc(100% - 12px);
  mask-position: 0 0, 0 12px;
  mask-repeat: no-repeat;
}
.forecast-surface {
  background: linear-gradient(135deg, #c0e4ff12, #0b1d2c08), #0d263a70;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid #ffffff18;
  box-shadow: inset 0 1px #ffffff0d;
}
.current-weather:has(.hero-condition-long) {
  padding-top: 44px;
}
.current-weather:has(.hero-condition-long)::before {
  inset: 0;
  border-radius: var(--radius);
  mask-image: none;
}
@media (min-width: 1700px) {
  .current-weather::before { --hero-width: min(430px, 100cqw); }
}
@media (min-width: 761px) {
  .view-nav {
    left: calc(max(0px, (100% - 2200px) / 2) + var(--reading-width) / 2);
  }
  body[data-view="map"][data-spanning="false"] .map-panel { --radar-controls-bottom: 25px; }
  body[data-view="map"][data-spanning="false"] .radar-controls { left: calc(var(--reading-width) + 20px); }
}
@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .header-actions { justify-content: center; }
  .header-actions .get-app-button { display: none; }
  .place-heading { max-width: 520px; margin-inline: auto; width: 100%; }
  .place-heading .help-button {
    display: grid;
    visibility: hidden;
    width: 44px;
    height: 44px;
  }
  .weather-body { max-width: 620px; padding-top: 24px; }
  .current-weather { margin-top: 12px; }
  .current-weather::before { --hero-width: min(400px, 100cqw); }
}
@media (prefers-contrast: more) {
  .forecast-surface, .current-weather::before {
    background: #061b2b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .forecast-surface, .current-weather::before { background: #102736; }
}

/* Keep a usable map beside the reading pane on small wide screens. */
@media (min-width: 761px) and (max-width: 1100px) {
  :root {
    --reading-width: min(42vw, 400px);
  }
}
/* Each physical display owns a pane; the hinge remains empty. */
@media (horizontal-viewport-segments: 2), (vertical-viewport-segments: 2) {
  .notice {
    position: fixed;
    top: var(--app-header-height);
    left: 0;
    width: var(--reading-width);
  }
  .workspace,
  body[data-view="map"] .workspace {
    display: grid;
    height: calc(100dvh - var(--app-header-height));
    max-width: none;
  }
  .weather-column,
  body[data-view="map"] .weather-column {
    display: block;
    overflow: hidden auto;
    min-height: 0;
  }
  .map-panel,
  body[data-view="map"] .map-panel {
    display: block;
    height: auto;
    margin: 12px;
    border-radius: 24px;
    --radar-controls-bottom: 20px;
  }
}
@media (horizontal-viewport-segments: 2) {
  :root {
    --reading-width: env(viewport-segment-width 0 0);
  }
  .workspace,
  body[data-view="map"] .workspace {
    grid-template-columns: env(viewport-segment-width 0 0) env(
        viewport-segment-width 1 0
      );
    grid-template-rows: minmax(0, 1fr);
    column-gap: calc(
      env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0)
    );
  }
  .app-header {
    grid-template-columns: 40px minmax(
        0,
        calc(env(viewport-segment-width 0 0) - 120px)
      ) minmax(0, 1fr);
    padding-inline: 20px;
    gap: 0;
  }
  .brand span {
    display: none;
  }
  .view-nav,
  body[data-view="map"] .view-nav {
    left: calc(env(viewport-segment-width 0 0) / 2);
  }
}
@media (vertical-viewport-segments: 2) {
  .workspace,
  body[data-view="map"] .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: calc(
        env(viewport-segment-height 0 0) - var(--app-header-height)
      ) env(viewport-segment-height 0 1);
    row-gap: calc(
      env(viewport-segment-top 0 1) - env(viewport-segment-bottom 0 0)
    );
  }
  .view-nav,
  body[data-view="map"] .view-nav {
    left: 50%;
    bottom: calc(100dvh - env(viewport-segment-bottom 0 0) + 15px);
  }
}

/* One compact dock on full-screen maps; spanning displays retain two panes. */
@media (max-width: 760px) {
  #radar-at { min-width: 0; max-width: 100%; font-size: 16px; }
  body[data-view="map"][data-spanning="false"] .workspace {
    position: absolute;
    inset: 0;
    height: 100dvh;
  }
  body[data-view="map"][data-spanning="false"] .app-header {
    background: #102739b0;
  }
  body[data-view="map"][data-spanning="false"] .place-identity {
    padding-block: 3px;
    border-radius: 14px;
  }
  body[data-view="map"][data-spanning="false"] .place-identity h1 { font-size: 16px; }
  body[data-view="map"][data-spanning="false"] .map-panel {
    --radar-controls-bottom: calc(max(8px, env(safe-area-inset-bottom)) + 51px);
    --map-content-top: calc(var(--app-header-height) + var(--notice-height, 0px) + 12px);
  }
  body[data-view="map"][data-spanning="false"] .map-actions,
  body[data-view="map"][data-spanning="false"] .map-notices,
  body[data-view="map"][data-spanning="false"] .layer-menu { top: calc(var(--app-header-height) + 12px + var(--notice-height, 0px)); }
  body[data-view="map"][data-spanning="false"] .leaflet-top.leaflet-right { top: calc(var(--app-header-height) + 151px + var(--notice-height, 0px)); }
  body[data-view="map"][data-spanning="false"] .view-nav {
    width: calc(100% - 20px);
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 52px;
    border-radius: 0 0 18px 18px;
    padding: 3px 6px;
    box-shadow: none;
    background: #153449ed;
  }
  body[data-view="map"][data-spanning="false"] .view-nav button {
    flex: 1;
    flex-direction: row;
    min-width: 0;
    height: 44px;
    gap: 5px;
    padding: 4px;
    border-radius: 14px;
  }
  body[data-view="map"][data-spanning="false"] .view-nav button svg { width: 21px; height: 21px; }
  body[data-view="map"][data-spanning="false"] .view-nav .nav-search { flex: 0 0 40px; }
  body[data-view="map"][data-spanning="false"] .radar-controls {
    padding: 6px 10px;
    border-radius: 18px 18px 0 0;
    box-shadow: none;
  }
  body[data-view="map"][data-spanning="false"] .playback { gap: 8px; }
}

.weather-wind-canvas { opacity: 0.5; }
.rain-total { align-items: baseline; flex-wrap: nowrap; }
.rain-total strong { display: inline-flex; align-items: baseline; gap: 3px; line-height: 1; font-size: clamp(14px, 6.2cqw, 17px); }
.rain-total small { font-size: clamp(9px, 4cqw, 11px); }
.rain-total > span { line-height: 1.3; min-width: 0; font-size: clamp(8px, 3.6cqw, 10px); }
@container (max-width: 280px) {
  .rain-total { padding-inline: 4px; }
}

.weather-text-conditions { position: absolute; bottom: 12px; left: 0; width: 100%; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
