/* Landing page design. Kept local so the archive pages retain their layouts. */
.landing-page {
  --atlas-ink: #173c50;
  --atlas-muted: #566c79;
  --atlas-line: #dce4e8;
  background: #f7f9fa;
  color: var(--atlas-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.landing-page :is(a, button, input, select):focus-visible { outline: 3px solid #b8672c; outline-offset: 4px; }
.landing-page :is(section, [id]) { scroll-margin-top: 24px; }
.atlas-header { background: #fff; border-bottom: 1px solid var(--atlas-line); }
.atlas-header-inner { max-width: 1200px; padding: 24px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.atlas-brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.atlas-brand-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; }
.atlas-brand-caption { display: block; color: #627784; font-size: 10px; letter-spacing: 1.8px; margin-top: 4px; font-weight: 500; }
.atlas-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 550; }
.atlas-nav a:hover { color: #aa5725; }
.atlas-hero { background: #eaf1f4; border-bottom: 1px solid #d3dfe5; }
.atlas-hero-inner { max-width: 1200px; margin: auto; padding: 66px 32px 62px; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 36px; }
.atlas-intro { position: relative; z-index: 2; }
.atlas-eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 2px; color: #426477; margin-bottom: 24px; }
.atlas-intro h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(46px, 5.3vw, 68px); letter-spacing: -2.7px; line-height: 1.08; font-weight: 400; }
.atlas-intro h1 em { font-weight: 400; color: #25627a; }
.atlas-description { max-width: 520px; margin-top: 24px; font-size: 17px; line-height: 1.8; color: #506875; }
.atlas-search { position: relative; max-width: 580px; margin-top: 32px; }
.atlas-search label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.atlas-search-field { display: flex; gap: 14px; align-items: center; background: white; border: 1px solid #b8cbd6; border-radius: 8px; padding: 20px 18px; box-shadow: 0 5px 16px #173c5007; }
.atlas-search-field:focus-within { border-color: #25627a; box-shadow: 0 0 0 3px #25627a18; }
.atlas-search-field svg { width: 23px; height: 23px; flex-shrink: 0; color: #537485; }
.atlas-search-field input { background: transparent; min-width: 0; width: 100%; outline: none; font-size: 16px; color: #173c50; }
.atlas-search-field input::placeholder { color: #718590; }
.atlas-search-hint { font-size: 10px; letter-spacing: 1px; color: #637a88; white-space: nowrap; }
.atlas-search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; max-height: 320px; overflow-y: auto; z-index: 20; border: 1px solid #bacdd7; border-radius: 8px; background: #fff; box-shadow: 0 18px 40px #173c5026; padding: 8px; }
.atlas-search-results a { display: block; padding: 12px; border-radius: 4px; color: #173c50; }
.atlas-search-results a:hover, .atlas-search-results a[aria-selected="true"] { background: #eaf1f4; }
.atlas-source { margin-top: 16px; font-size: 12px; color: #59717f; }
.atlas-compare-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 22px; font-size: 13px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; }
.atlas-compare-link:hover { color: #a66032; }
.atlas-illustration { position: relative; height: 420px; display: flex; justify-content: center; align-items: center; }
.atlas-sweden { position: relative; height: 385px; width: auto; transform: rotate(15deg); opacity: .64; }
.atlas-map-orbit { position: absolute; border: 1px solid #c6d7df; border-radius: 50%; width: 330px; height: 330px; }
.atlas-map-orbit-inner { width: 240px; height: 240px; border-style: dashed; opacity: .7; }
.atlas-map-orbit-outer::before, .atlas-map-orbit-outer::after { content: ''; position: absolute; background: #c6d7df; }
.atlas-map-orbit-outer::before { height: 1px; width: 380px; top: 50%; left: -25px; }
.atlas-map-orbit-outer::after { width: 1px; height: 380px; left: 50%; top: -25px; }
.atlas-map-direction { position: absolute; top: 12px; left: calc(50% - 4px); font-size: 11px; color: #718b99; }
.atlas-map-sun { position: absolute; width: 68px; height: 68px; background: #e9b16c; border-radius: 50%; top: 53px; right: 22px; box-shadow: 0 0 0 12px #e9b16c16; }
.atlas-map-label { position: absolute; padding: 7px 12px; background: #f7fafbdd; border: 1px solid #cfdee5; border-radius: 4px; font-family: Georgia, serif; font-style: italic; font-size: 15px; }
.atlas-map-label-north { top: 125px; left: -8px; }
.atlas-map-label-south { bottom: 85px; right: -8px; }
.atlas-map-caption { position: absolute; bottom: -9px; font-size: 10px; letter-spacing: 1.7px; color: #627d8b; }
.atlas-hero-bottom { max-width: 1136px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #cfdee5; padding: 22px 0; font-size: 14px; }
.atlas-hero-bottom a { display: flex; align-items: center; gap: 10px; }
.atlas-hero-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.atlas-small-icon { font-size: 22px; }
.atlas-new { font-size: 9px; letter-spacing: 1px; color: #8a481e; background: #f4e3cf; border-radius: 3px; padding: 4px 6px; }
.atlas-content { margin: 48px auto 0; max-width: 1200px; }
.landing-page .atlas-explore { border-radius: 12px; border-color: var(--atlas-line); box-shadow: none; }
.atlas-explore > div { background: white; padding: 28px; }
.atlas-explore form { background: #f7f9fa; border-color: #e0e7eb; border-radius: 8px; box-shadow: none; padding: 22px; }
.atlas-explore form button { border-radius: 6px; box-shadow: none; height: 48px; }
.atlas-explore form:first-child button { background: #234e63; }
.atlas-explore :is(input, select) { border-radius: 5px; box-shadow: none; min-width: 0; }
.atlas-explore select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23456475' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; padding-right: 32px; }
.landing-page .landing-section-header { margin-top: 48px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--atlas-line); }
.landing-page .landing-section-header__title { font-family: Georgia, serif; font-weight: 400; color: var(--atlas-ink); font-size: 36px; }
.landing-page .landing-section-header__kicker { letter-spacing: 1.8px; font-size: 11px; color: #58717f; }
/* Give the data panels one consistent surface and retain semantic weather colors. */
.atlas-content [class*="shadow-"] { box-shadow: none; }
.atlas-content [class*="rounded-[1.75rem]"] { border-radius: 12px; border-color: var(--atlas-line); }
.atlas-content [class*="rounded-[1.5rem]"] { border-radius: 8px; }
.atlas-content [class*="bg-gradient-to-r"], .atlas-content [class*="bg-[linear-gradient"] { background-image: none; background-color: #fff; }
.atlas-content [class*="tracking-[0.24em]"], .atlas-content [class*="tracking-[0.22em]"] { letter-spacing: 1px; }
.atlas-content [class*="text-[0.65rem]"] { font-size: 12px; }
.atlas-assistant-wrap { max-width: 1136px; margin: 60px auto; }
.landing-page .landing-assistant { background: #173c50; max-width: none; border-radius: 12px; box-shadow: none; padding: 32px; }
.landing-page footer { background: #edf2f5; }
@media (min-width: 1024px) { .atlas-content > div { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 900px) {
  .atlas-header-inner { padding: 20px 24px; }
  .atlas-nav { gap: 18px; }
  .atlas-hero-inner { padding: 48px 24px; grid-template-columns: 1.6fr 1fr; gap: 12px; }
  .atlas-intro h1 { font-size: 52px; }
  .atlas-illustration { transform: scale(.8); transform-origin: center; }
  .atlas-search-hint { display: none; }
  .atlas-hero-bottom { margin: 0 24px; font-size: 12px; }
  .atlas-assistant-wrap { margin: 40px 16px; }
}
@media (max-width: 640px) {
  .atlas-header-inner { padding: 18px 20px; }
  .atlas-brand { font-size: 18px; gap: 8px; }
  .atlas-brand-caption { font-size: 8px; letter-spacing: 1.2px; }
  .atlas-brand-icon { width: 35px; height: 35px; }
  .atlas-nav { display: none; }
  .atlas-hero-inner { display: block; padding: 40px 20px 32px; }
  .atlas-eyebrow { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 20px; }
  .atlas-intro h1 { font-size: clamp(40px, 10vw, 54px); letter-spacing: -1.8px; }
  .atlas-description { font-size: 16px; margin-top: 20px; line-height: 1.75; }
  .atlas-search { margin-top: 26px; }
  .atlas-search-field { padding: 18px 14px; gap: 10px; }
  .atlas-source { font-size: 11px; line-height: 1.7; }
  .atlas-illustration { display: none; }
  .atlas-hero-bottom { margin: 0 20px; padding: 18px 0; align-items: flex-start; flex-direction: column; gap: 16px; font-size: 13px; }
  .atlas-content { margin-top: 24px; }
  .atlas-explore > div { padding: 20px 16px; }
  .atlas-explore form { padding: 18px; }
  .landing-page .landing-section-header { margin-top: 36px; }
  .landing-page .landing-section-header__title { font-size: 30px; }
  .landing-page .landing-assistant { padding: 24px; }
}
.landing-page .atlas-search-field input:focus-visible { outline: none; }

.atlas-empty { background: #fff; border: 1px solid var(--atlas-line); border-radius: 12px; padding: 28px; }
.atlas-empty h3 { font-size: 18px; font-weight: 600; color: var(--atlas-ink); }
.atlas-empty p { margin-top: 8px; color: var(--atlas-muted); font-size: 16px; line-height: 1.7; max-width: 640px; }
.atlas-empty-link { display: inline-block; margin: 16px 0 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.atlas-search-unavailable { margin-top: 32px; padding: 20px; border: 1px solid #b8cbd6; border-radius: 8px; background: #f7fafb; font-size: 14px; line-height: 1.7; }
.atlas-search-unavailable a { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* A geographic temperature portrait, with one observation per square. */
.temp-mosaic { border-top: 1px solid var(--atlas-line); padding: 32px; background: #fcfdfd; }
.temp-mosaic-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.temp-mosaic-eyebrow { color: #59717f; font-size: 10px; letter-spacing: 2px; font-weight: 650; margin-bottom: 8px; }
.temp-mosaic-heading h4 { color: #173c50; font-family: Georgia, serif; font-size: 30px; line-height: 1.2; font-weight: 400; letter-spacing: -.8px; }
.temp-mosaic-intro { color: #59717f; font-size: 13px; margin-top: 10px; line-height: 1.6; }
.temp-mosaic-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); gap: 36px; align-items: center; margin-top: 28px; }
.temp-mosaic-map-panel { position: relative; border: 1px solid #e2e9ec; border-radius: 10px; background: radial-gradient(ellipse at 45% 45%, #eaf1f280, transparent 70%), #f5f8f9; overflow: hidden; padding: 12px 20px 18px; }
.temp-mosaic-map-meta { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; color: #6a8390; font-size: 9px; letter-spacing: 1.2px; }
.temp-mosaic-grid { position: relative; aspect-ratio: 1 / 2; width: min(100%, 330px); margin: 20px auto 0; }
.temp-mosaic-outline { position: absolute; width: 100%; height: 100%; fill: #e3ebed; stroke: #bccdd4; stroke-width: 3; pointer-events: none; }
.temp-mosaic-tile { display: flex; align-items: center; justify-content: center; background: var(--tile-color); border-radius: 2px; box-shadow: inset 0 1px 0 #ffffff80, inset 0 -2px 0 #173c501c, 0 1px 2px #173c5018; transition: transform 160ms, box-shadow 160ms; }
.temp-mosaic[data-view="map"] .temp-mosaic-tile { position: absolute; left: var(--map-x); top: var(--map-y); width: var(--map-size, 4.8%); aspect-ratio: 1; transform: translate(-50%, -50%); }
.temp-mosaic[data-view="map"] .temp-mosaic-tile[data-mapped="false"] { display: none; }
.temp-mosaic-tile span { font-size: 10px; font-weight: 650; color: #102e40; font-variant-numeric: tabular-nums; }
.temp-mosaic[data-view="map"] .temp-mosaic-tile span { opacity: 0; pointer-events: none; }
.temp-mosaic-tile:hover, .temp-mosaic-tile:focus-visible, .temp-mosaic-tile[aria-expanded="true"] { z-index: 2; outline: 2px solid #173c50; outline-offset: 2px; box-shadow: 0 3px 10px #173c5030; }
.temp-mosaic[data-view="map"] .temp-mosaic-tile:is(:hover, :focus-visible) { transform: translate(-50%, -50%) scale(1.35); }
.temp-mosaic-tile:is(.is-leader-highlighted, .is-slider-highlighted) { z-index: 3; outline: 2px solid #173c50; outline-offset: 3px; box-shadow: 0 0 0 3px #fff, 0 4px 14px #173c5040; }
.temp-mosaic[data-view="map"] .temp-mosaic-tile:is(.is-leader-highlighted, .is-slider-highlighted) { transform: translate(-50%, -50%) scale(2); }
.temp-mosaic-map-caption { text-align: center; color: #637d89; font-size: 10px; margin-top: 8px; }
.temp-mosaic-map-caption span { padding: 0 5px; }
.temp-mosaic-range > span { display: block; color: #59717f; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.temp-mosaic-range strong { color: #173c50; font-size: 27px; font-weight: 500; white-space: nowrap; letter-spacing: -1px; }
.temp-mosaic-range strong span { color: #8b9da5; padding: 0 5px; }
.temp-mosaic-scale { height: 7px; margin-top: 22px; border-radius: 2px; background: linear-gradient(90deg, #429cc5, #70c4c9 28%, #c3da99 60%, #f4cb71); }
.temp-mosaic-direction { display: flex; justify-content: space-between; margin-top: 8px; font-size: 8px; letter-spacing: 1.4px; color: #647d89; }
.temp-mosaic-legend { display: grid; gap: 8px; margin-top: 20px; }
.temp-mosaic-band { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #355565; }
.temp-mosaic-band::before { content: ''; width: 11px; height: 11px; border-radius: 2px; background: var(--band-color); flex-shrink: 0; }
.temp-mosaic-band-label { min-width: 65px; }
.temp-mosaic-band strong { margin-left: auto; font-weight: 600; white-space: nowrap; }
.temp-mosaic-band strong span { font-weight: 400; font-size: 10px; }
.temp-mosaic-band b { font-weight: 400; color: #59717f; min-width: 32px; text-align: right; }
.temp-mosaic-note { margin-top: 20px; font-size: 10px; color: #59717f; line-height: 1.8; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; width: 100%; aspect-ratio: auto; margin: 12px auto; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-tile { aspect-ratio: 1; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-tile span { background: #ffffffdf; padding: 2px 3px; border-radius: 2px; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-outline, .temp-mosaic[data-view="sorted"] .temp-mosaic-map-meta { display: none; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-sidebar { display: block; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-scale { margin-top: 14px; }
.temp-mosaic[data-view="sorted"] .temp-mosaic-direction { margin-bottom: 20px; }
@media (max-width: 800px) {
  .temp-mosaic { padding: 24px; }
  .temp-mosaic-heading { display: block; }
  .temp-mosaic-body { grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr); gap: 24px; }
  .temp-mosaic-map-panel { padding-left: 8px; padding-right: 8px; }
  .temp-mosaic-range strong { font-size: 22px; }
}
@media (max-width: 600px) {
  .temp-mosaic { padding: 22px 16px; }
  .temp-mosaic-heading h4 { font-size: 26px; }
  .temp-mosaic-body { display: block; margin-top: 20px; }
  .temp-mosaic-map-panel { padding: 12px 4px 16px; }
  .temp-mosaic-grid { max-width: 300px; }
  .temp-mosaic-sidebar { margin-top: 24px; }
  .temp-mosaic[data-view="sorted"] .temp-mosaic-sidebar { display: block; }
}
@media (prefers-reduced-motion: reduce) { .temp-mosaic-tile { transition: none; } }

/* Rain keeps the same measured, dry and unavailable status language. */
.precip-card { border: 1px solid var(--atlas-line); border-radius: 12px; background: #fff; overflow: hidden; min-width: 0; }
.precip-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px 22px; border-bottom: 1px solid #e3eaed; }
.precip-eyebrow { color: #59717f; text-transform: uppercase; font-size: 10px; letter-spacing: 1.7px; margin-bottom: 7px; font-weight: 650; }
.precip-header h3 { font-family: Georgia, serif; font-size: 28px; line-height: 1.2; letter-spacing: -.7px; font-weight: 400; color: #173c50; }
.precip-status { color: #426477; font-size: 11px; line-height: 1.7; }
.precip-status i { display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: #4b98b5; margin-right: 7px; }
.precip-card--dry .precip-status { color: #476c5b; }
.precip-card--dry .precip-status i { background: #719381; }
.precip-card--missing .precip-status i { background: #94a6ae; }

/* Shared observation panels: quiet surfaces, clear measures, weather-led colour. */
.weather-panel { --weather-accent: #477e77; border: 1px solid var(--atlas-line); border-radius: 12px; overflow: hidden; background: #fff; min-width: 0; }
.weather-panel-header { padding: 25px 28px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e3eaed; }
.weather-kicker { color: #59717f; font-size: 10px; line-height: 1.6; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 650; }
.weather-panel-header h3 { margin-top: 7px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: -.7px; color: #173c50; }
.weather-meta { border: 1px solid #e0e9ed; background: #f4f8f9; padding: 7px 11px; border-radius: 24px; color: #526e7c; font-size: 11px; flex-shrink: 0; }
.weather-footnote { color: #607985; font-size: 10px; line-height: 1.7; margin-top: 16px; }
.weather-station-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 12px; align-items: baseline; gap: 12px; border-bottom: 1px solid #e6edf0; padding: 17px 0; min-width: 0; }
.weather-station-row:last-child { border-bottom: 0; }
.weather-station-rank { font-size: 11px; color: #829aa5; }
.weather-station-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #173c50; font-size: 14px; font-weight: 550; }
.weather-station-row strong { color: var(--weather-accent); font-size: 21px; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.4px; }
.weather-station-arrow { color: #7a97a5; font-size: 12px; }
.weather-station-row:hover .weather-station-name { text-decoration: underline; text-underline-offset: 4px; }
.weather-unavailable { padding: 28px; display: flex; gap: 18px; align-items: center; background: #f8fafb; color: #59717f; font-size: 13px; line-height: 1.7; }
.weather-unavailable > span { font-size: 32px; color: #90a4ae; }
.temperature-leaders { display: grid; grid-template-columns: 1fr 1fr; }
.temperature-leader { min-width: 0; padding: 24px 28px 14px; }
.temperature-leader--warm { --weather-accent: #ac633e; }
.temperature-leader--cold { --weather-accent: #377b97; }
.temperature-leader--warm.temperature-leader { background: linear-gradient(135deg, #fcf7f2, #fff); border-right: 1px solid #e3eaed; }
.temperature-leader--cold.temperature-leader { background: linear-gradient(135deg, #f2f7fa, #fff); }
.temperature-leader :is(h4, h5) { font-family: Georgia, serif; font-weight: 400; font-size: 25px; color: var(--weather-accent); margin-top: 4px; }
.daily-temperature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.weather-header-symbol { font-size: 36px; font-family: Georgia, serif; color: var(--weather-accent); }
.daily-weather-grid { max-width: 1152px; margin: 24px auto 0; }
/* Archive tools and the assistant use the same surfaces and type hierarchy. */
.atlas-explore h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 400; color: #173c50; }
.atlas-explore form { position: relative; border: 1px solid #e0e8ec; background: linear-gradient(135deg, #f5f8f9, #fff); padding-top: 22px; border-radius: 8px; }
.atlas-explore form::before { content: ''; position: absolute; top: -1px; left: 22px; width: 34px; height: 3px; background: #8aabb8; }
.atlas-explore form:nth-child(2)::before { background: #92ae9e; }
.atlas-explore form:nth-child(3)::before { background: #d1a581; }
.atlas-explore form h3 { font-family: Georgia, serif; font-size: 22px; font-weight: 400; color: #173c50; }
.atlas-explore form button { background: #234e63; color: #fff; font-weight: 550; }
.atlas-explore form button:hover { background: #32667e; }
.atlas-explore form label { color: #59717f; font-size: 11px; letter-spacing: .4px; }
.atlas-hero { background: linear-gradient(120deg, #edf3f4, #e6f0f3 70%, #f3f5ef); }
.atlas-search-field { border-radius: 10px; border-color: #bacdd5; }
.atlas-map-sun { background: #ddb07b; }
.landing-page .landing-assistant { background: linear-gradient(120deg, #173c50, #24556a); border: 1px solid #355d70; padding: 36px; }
.landing-assistant h2 { font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.landing-assistant > div:first-child > div:last-child > div { border-radius: 6px; background: #ffffff08; border-color: #ffffff26; box-shadow: none; font-weight: 400; }
.landing-assistant a { border-radius: 6px; }
.atlas-empty { background: linear-gradient(135deg, #f5f8fa, #fff); }
.atlas-empty h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
@media (max-width: 900px) {
  .daily-temperature-grid { gap: 16px; }
  .daily-temperature .weather-panel-header { padding-left: 20px; padding-right: 20px; }
  .daily-temperature .weather-panel-header h3 { font-size: 25px; }
}
@media (max-width: 700px) {
  .weather-panel-header { padding: 22px 18px; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .weather-panel-header h3 { font-size: 25px; }
  .weather-meta { padding: 6px 9px; font-size: 10px; }
  .temperature-leaders, .daily-temperature-grid { grid-template-columns: 1fr; }
  .temperature-leader { padding: 22px 18px 12px; }
  .temperature-leader--warm.temperature-leader { border-right: 0; border-bottom: 1px solid #e3eaed; }
  .weather-station-row { gap: 9px; }
  .weather-station-row strong { font-size: 20px; }
  .daily-temperature-grid { gap: 24px; }
  .weather-unavailable { padding: 24px 18px; }
  .landing-page .landing-assistant { padding: 26px 22px; }
  .landing-assistant h2 { font-size: 28px; }
}

/* A common mosaic language across weather, archive controls and navigation. */
.weather-mosaic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.weather-mosaic-grid > div { min-width: 0; }
.weather-mosaic-grid :is(.weather-panel, .precip-card) { height: 100%; }
.weather-mosaic-grid :is(.weather-panel-header, .precip-header) { min-height: 142px; padding: 24px; align-items: flex-start; flex-direction: column; gap: 10px; }
.weather-mosaic-grid :is(.weather-panel-header h3, .precip-header h3) { font-size: 25px; }
.weather-mosaic-grid .weather-meta { padding: 0; border: 0; border-radius: 0; background: none; }
.temp-mosaic-summary { margin-top: 22px; }
.temp-mosaic-summary > strong { display: block; margin-top: 5px; color: #315b63; font-family: Georgia, serif; font-size: 30px; line-height: 1.2; font-weight: 400; }
.temp-mosaic-summary > p:last-child { color: #59717f; font-size: 11px; line-height: 1.7; margin-top: 6px; }
.temp-mosaic-status { padding: 16px; background: #eef5f1; border: 1px solid #dbe8df; border-radius: 5px; margin-bottom: 20px; }
.temp-mosaic-status h5 { font-family: Georgia, serif; color: #345746; font-size: 20px; }
.temp-mosaic-status p { color: #59717f; font-size: 11px; line-height: 1.8; margin-top: 8px; }
.temp-mosaic-map-note { margin-top: 12px; color: #59717f; font-size: 10px; line-height: 1.8; }
.temp-mosaic-map-note summary { width: fit-content; cursor: pointer; text-underline-offset: 3px; }
.temp-mosaic-map-note summary:hover { text-decoration: underline; }
.temp-mosaic-map-note p { margin-top: 8px; }
.temp-mosaic-leaders { margin-top: 24px; }
.temp-mosaic-leaders:first-child { margin: 0 0 24px; }
.temp-mosaic-leaders .weather-station-row { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; padding: 12px 0; }
.temp-mosaic-leaders .weather-station-row strong { color: #315b63; font-size: 16px; }
.temp-mosaic-leaders .weather-station-name { font-size: 12px; }
.temp-mosaic-leaders .weather-station-arrow { display: none; }
.daily-temperature .temp-mosaic-leaders .weather-station-row strong { color: var(--weather-accent); font-size: 21px; }
.daily-temperature .temp-mosaic-leaders .weather-station-name { font-size: 14px; }
.temp-mosaic-band::before { box-shadow: inset 0 0 0 1px #173c5020; }
.temp-mosaic--compact { padding: 22px; border-top: 0; }
.temp-mosaic--compact .temp-mosaic-heading { display: block; }
.temp-mosaic--compact .temp-mosaic-heading h4 { font-size: 22px; letter-spacing: -.5px; }
.temp-mosaic--compact .temp-mosaic-eyebrow { font-size: 8px; letter-spacing: 1.5px; }
.temp-mosaic--compact .temp-mosaic-intro { font-size: 11px; margin-top: 8px; }
.temp-mosaic--compact .temp-mosaic-body { display: block; margin-top: 20px; }
.temp-mosaic--compact .temp-mosaic-map-panel { padding: 12px 6px 16px; }
.temp-mosaic--compact .temp-mosaic-grid { width: min(100%, 230px); }
.temp-mosaic--compact .temp-mosaic-map-meta { font-size: 8px; left: 14px; right: 14px; top: 14px; letter-spacing: .6px; }
.temp-mosaic--compact .temp-mosaic-map-caption { font-size: 9px; }
.temp-mosaic--compact .temp-mosaic-sidebar { margin-top: 22px; }
.temp-mosaic--compact .temp-mosaic-range strong { font-size: 22px; }
.temp-mosaic--compact .temp-mosaic-range > span { font-size: 9px; letter-spacing: 1px; }
.temp-mosaic--compact .temp-mosaic-scale { margin-top: 16px; height: 5px; }
.temp-mosaic--compact .temp-mosaic-band { font-size: 10px; gap: 6px; }
.temp-mosaic--compact .temp-mosaic-band-label { min-width: 0; }
.temp-mosaic--compact .temp-mosaic-band strong span { display: none; }
.temp-mosaic--compact .temp-mosaic-band b { min-width: 27px; }
.temp-mosaic--compact[data-view="sorted"] .temp-mosaic-grid { width: 100%; }
.temp-mosaic--compact[data-view="sorted"] .temp-mosaic-sidebar { display: block; }
.temp-mosaic--compact[data-view="sorted"] .temp-mosaic-tile span { font-size: 9px; }
.daily-temperature .temp-mosaic--compact .temp-mosaic-grid { max-width: 250px; }
.atlas-hero-mosaic { position: relative; height: 400px; width: 200px; transform: rotate(12deg); filter: drop-shadow(4px 8px 0 #173c5009); }
.atlas-hero-mosaic svg { position: absolute; width: 100%; height: 100%; fill: #dde8eb; stroke: #bcced6; stroke-width: 3; }
.atlas-hero-mosaic > span { position: absolute; left: var(--map-x); top: var(--map-y); width: var(--map-size, 4.8%); aspect-ratio: 1; border-radius: 1px; background: var(--tile-color); transform: translate(-50%, -50%); box-shadow: inset 0 1px #ffffff80, inset 0 -1px #173c5026; }
.atlas-map-orbit { border-radius: 12px; transform: rotate(-8deg); opacity: .5; }
.atlas-map-orbit-outer::before, .atlas-map-orbit-outer::after { display: none; }
.atlas-map-label-north { left: -10px; top: 100px; }
.atlas-map-label-south { right: -4px; bottom: 78px; }
.atlas-map-caption { font-size: 9px; }
.atlas-explore form::before { width: 11px; height: 11px; top: 20px; left: auto; right: 20px; border-radius: 2px; box-shadow: 15px 0 #8aabb855, 0 15px #8aabb855, 15px 15px #8aabb825; }
.atlas-explore form:nth-child(2)::before { box-shadow: 15px 0 #92ae9e55, 0 15px #92ae9e55, 15px 15px #92ae9e25; }
.atlas-explore form:nth-child(3)::before { box-shadow: 15px 0 #d1a58155, 0 15px #d1a58155, 15px 15px #d1a58125; }
.atlas-explore form h3 { padding-right: 32px; }
.atlas-explore form { box-shadow: 0 3px 0 #173c5008 !important; }
.landing-section-header { position: relative; }
.landing-section-header::after { content: ''; position: absolute; right: 3px; bottom: 26px; width: 9px; height: 9px; background: #a4c7c3; border-radius: 1px; box-shadow: -13px 0 #7cb9c3, -26px 0 #d6cf8d; }
.landing-assistant { position: relative; isolation: isolate; }
.landing-assistant::after { content: ''; position: absolute; z-index: -1; right: -12px; top: -20px; width: 210px; height: 210px; opacity: .2; transform: rotate(12deg); background-image: linear-gradient(#9ec7ca55 80%, transparent 80%), linear-gradient(90deg, #9ec7ca55 80%, transparent 80%); background-size: 28px 28px; mask-image: linear-gradient(135deg, transparent, #000); pointer-events: none; }
@media (max-width: 1100px) and (min-width: 701px) {
 .weather-mosaic-grid { grid-template-columns: 1fr; }
 .weather-mosaic-grid :is(.weather-panel-header, .precip-header) { min-height: 0; flex-direction: row; align-items: center; }
 .weather-mosaic-grid .temp-mosaic--compact .temp-mosaic-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr); gap: 28px; align-items: center; }
 .weather-mosaic-grid .temp-mosaic--compact[data-view="sorted"] .temp-mosaic-body { display: block; }
 .weather-mosaic-grid .temp-mosaic--compact .temp-mosaic-sidebar { margin: 0; }
}
@media (max-width: 700px) {
 .weather-mosaic-grid { grid-template-columns: 1fr; }
 .weather-mosaic-grid :is(.weather-panel-header, .precip-header) { min-height: 0; padding: 22px 18px; }
 .temp-mosaic--compact { padding: 22px 18px; }
 .temp-mosaic--compact .temp-mosaic-grid { width: min(100%, 280px); }
 .daily-temperature .temp-mosaic--compact .temp-mosaic-grid { max-width: 280px; }
 .temp-mosaic--compact .temp-mosaic-band { font-size: 11px; gap: 10px; }
 .temp-mosaic--compact .temp-mosaic-band strong span { display: inline; }
 .landing-section-header::after { display: none; }
 .temp-mosaic-leaders .weather-station-name { font-size: 13px; }
}

.temp-mosaic-band-label small { display: block; color: #708794; font-size: 9px; margin-top: 2px; }
.temp-mosaic--compact .temp-mosaic-map-caption { min-height: 27px; line-height: 1.5; }

/* Station details open over the map in the browser's top layer. */
.temp-mosaic-popup-hint { text-align: center; color: #59717f; font-size: 11px; margin-top: 10px; }
.temp-mosaic-popup { position: fixed; inset: auto; margin: 0; width: min(280px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; padding: 24px; border: 1px solid #bccdd4; border-radius: 10px; background: #fcfdfd; color: #173c50; box-shadow: 0 12px 40px #173c5033; }
.temp-mosaic-popup .temp-mosaic-eyebrow { padding-right: 30px; }
.temp-mosaic-popup h5 { font-family: Georgia, serif; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.temp-mosaic-popup-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; font-size: 26px; color: #59717f; border-radius: 6px; }
.temp-mosaic-popup-close:hover { background: #edf2f4; }
.temp-mosaic-popup-metric { color: #59717f; font-size: 11px; margin-top: 18px; }
.temp-mosaic-popup-value { font-size: 36px; line-height: 1.3; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.temp-mosaic-popup-coordinates { color: #59717f; font-size: 11px; margin-top: 8px; }
.temp-mosaic-popup-link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-top: 18px; padding: 10px 14px; border-radius: 5px; background: #173c50; color: #fff; font-size: 13px; }
.temp-mosaic-popup-link:hover { background: #315b63; }
.temp-mosaic-popup :is(a, button):focus-visible { outline: 2px solid #173c50; outline-offset: 3px; }

.temp-mosaic-popup[data-trigger="hover"] .temp-mosaic-popup-close { display: none; }

/* Latest-hour temperature extremes share the map's right-hand column. */
.current-temperature .temp-mosaic-body { align-items: start; }
.temp-mosaic-sidebar .temperature-leaders { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.temp-mosaic-sidebar .temperature-leader { padding: 18px 20px 8px; border: 1px solid #e3eaed; border-radius: 8px; }
.temp-mosaic-sidebar .temperature-leader .weather-station-row { padding: 12px 0; }
.current-temperature .temp-mosaic[data-view="sorted"] .temperature-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .temp-mosaic-sidebar .temperature-leader { padding: 18px 16px 8px; }
  .current-temperature .temp-mosaic[data-view="sorted"] .temperature-leaders { grid-template-columns: minmax(0, 1fr); }
}

/* Browse measured stations in value order without leaving the geographic map. */
.temp-mosaic-explorer { margin: 18px 8px 0; padding-top: 16px; border-top: 1px solid #dbe5e9; }
.temp-mosaic-explorer[hidden] { display: none; }
.temp-mosaic-explorer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #355565; font-size: 11px; }
.temp-mosaic-explorer-heading label { font-weight: 600; }
.temp-mosaic-explorer-heading output { color: #59717f; font-variant-numeric: tabular-nums; }
.temp-mosaic-slider { display: block; appearance: none; width: 100%; height: 44px; margin: 2px 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.temp-mosaic-slider::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, #315b63 var(--slider-progress, 0%), #cbdce2 var(--slider-progress, 0%)); }
.temp-mosaic-slider::-moz-range-track { height: 5px; border-radius: 3px; background: #cbdce2; }
.temp-mosaic-slider::-moz-range-progress { height: 5px; border-radius: 3px; background: #315b63; }
.temp-mosaic-slider::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -8.5px; border: 3px solid #fff; border-radius: 50%; background: #315b63; box-shadow: 0 0 0 1px #315b63, 0 2px 5px #173c5030; }
.temp-mosaic-slider::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: #315b63; box-shadow: 0 0 0 1px #315b63, 0 2px 5px #173c5030; }
.temp-mosaic-slider:focus-visible { outline: 2px solid #315b63; outline-offset: 2px; border-radius: 4px; }
.temp-mosaic-explorer-direction { display: flex; justify-content: space-between; gap: 12px; color: #59717f; font-size: 10px; }
.temp-mosaic-explorer-hint { color: #59717f; font-size: 10px; line-height: 1.6; margin-top: 10px; }
.temp-mosaic-popup[data-trigger="slider"] { pointer-events: none; }
.temp-mosaic-popup[data-trigger="slider"] :is(.temp-mosaic-popup-close, .temp-mosaic-popup-link) { display: none; }
.temp-mosaic-tile.is-slider-highlighted { transition: none; }
