.day-map-app { height: 100svh; height: 100dvh; min-height: 560px; flex: none; display: flex; flex-direction: column; }
.day-map-app > .site-header { flex: none; }
.day-map-main { padding-top: 20px; padding-bottom: 20px; min-height: 0; display: flex; flex-direction: column; }
.day-map-intro { margin-bottom: 18px; flex: none; }
.day-map-intro h1 { font-size: clamp(28px, 3vw, 42px); }
.day-map-intro > p { margin-top: 6px; color: var(--atlas-muted); font-size: 14px; line-height: 1.6; }
.day-map-workspace { position: relative; display: grid; flex: 1; min-height: 0; }
.day-map-canvas { min-height: 0; min-width: 0; display: flex; flex-direction: column; position: relative; border: 1px solid #d5e1e5; border-radius: 16px; background: radial-gradient(ellipse at 48% 45%, #dcebed80, transparent 70%), #f0f5f6; }
.day-map-canvas-heading { flex: none; padding: 16px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #526e7c; font-size: 11px; }
.day-map-actions { display: flex; align-items: center; gap: 8px; }
#day-map-zoom { min-height: 36px; padding: 6px 10px; border: 1px solid #ccdce2; border-radius: 8px; background: #ffffffed; color: #315b63; font-weight: 550; white-space: nowrap; }
#day-map-zoom:hover { background: #eaf1f4; }
.day-map-north { font-size: 11px; letter-spacing: 2px; }
.day-map-content { position: relative; flex: 1; min-height: 0; padding: 8px 20px; }
.day-map-drawing { position: relative; min-width: 0; height: 100%; min-height: 0; }
.day-map-drawing.is-zoomed { --station-map-zoom-width: 1140px; }
.day-map-drawing:focus-visible { outline: 2px solid #234e63; outline-offset: -2px; }
#sweden-latest-day-map-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.day-map-drawing.is-zoomed > #sweden-latest-day-map-svg { width: var(--station-map-zoom-width); height: auto; overflow: hidden; }
#day-map-labels { font-size: 12px; }
.day-map-outline { fill: #e3ebed; stroke: #bccdd4; stroke-width: 3; pointer-events: none; }
.day-map-tile { cursor: pointer; stroke: #173c5026; stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform 160ms; }
.day-map-tile:is(:hover, :focus-visible, [aria-expanded="true"], .is-leader-highlighted) { stroke: #173c50; stroke-width: 9; outline: none; paint-order: stroke; }
.day-map-tile:is(:hover, :focus-visible) { transform: scale(1.35); }
.day-map-tile.is-leader-highlighted { transform: scale(2); stroke-width: 5; }
.day-map-drawing.is-zoomed .day-map-tile { scale: var(--zoom-tile-scale); }
.day-map-drawing.is-zoomed .day-map-tile:is(:hover, :focus-visible, [aria-expanded="true"], .is-leader-highlighted) { stroke-width: 3; }
.day-map-block { padding: 18px; border: 1px solid var(--atlas-line); border-radius: 12px; background: #fff; min-width: 0; }
.archive-main h2.day-map-kicker { color: #59717f; font-family: inherit; font-size: 10px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; line-height: 1.6; }
.day-map-weather-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.day-map-weather-options button { min-height: 44px; padding: 10px 6px; border: 1px solid #d5e1e5; border-radius: 8px; background: #f7f9fa; color: #496675; font-size: 12px; font-weight: 550; transition: background 160ms; }
.day-map-weather-options button:hover { background: #eaf1f4; }
.day-map-weather-options button[aria-pressed="true"] { background: #234e63; color: #fff; border-color: #234e63; box-shadow: 0 2px 4px #173c5014; }
.day-map-time { background: #eaf1f4; border-color: #d3dfe5; }
.day-map-time-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#sweden-latest-day-map-offset-label { font-size: 10px; color: #526e7c; }
#sweden-latest-day-map-selected-time { margin-top: 10px; color: #173c50; font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.day-map-slider-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#sweden-latest-day-map-slider { display: block; width: 100%; height: 36px; margin: 0; cursor: pointer; accent-color: #25627a; }
.day-map-time-labels, .day-map-legend-labels { display: flex; justify-content: space-between; color: #59717f; font-size: 10px; gap: 12px; }
.day-map-footer { display: contents; }
.day-map-reading { flex: none; width: min(100%, 420px); align-self: center; padding: 8px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 20px; }
.day-map-reading .day-map-kicker { grid-row: 1 / 3; }
.day-map-legend-scale { height: 6px; border-radius: 4px; background: #dce4e8; }
.day-map-legend-labels { grid-column: 2; }
#day-map-legend-note, .day-map-source { display: none; }
.day-map-caption { flex: none; padding: 0 12px 14px; text-align: center; font-size: 10px; color: #637d89; }
.day-map-leader-panel { flex: none; }
.day-map-leader-panel > summary { display: none; cursor: pointer; list-style: none; }
.day-map-leader-panel > summary::-webkit-details-marker { display: none; }
.day-map-leaders { min-width: 0; display: grid; gap: 12px; }
.day-map-leader-group { padding: 14px 16px; background: #fff; border: 1px solid #dce4e8; border-radius: 12px; min-width: 0; }
.day-map-leader-group h3 { font-family: Georgia, serif; font-weight: 400; font-size: 21px; line-height: 1.3; margin-bottom: 6px; }
.day-map-leader-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e3eaed; font-size: 12px; }
.day-map-leader-group li:last-child .day-map-leader-row { border-bottom: 0; }
.day-map-leader-rank { color: #829aa5; font-size: 10px; }
.day-map-leader-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-map-leader-row strong { color: #315b63; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-map-leader-row:hover, .day-map-leader-row:focus-visible { color: #a5512f; }
.day-map-leaders-empty { font-size: 12px; line-height: 1.6; color: #59717f; }
.day-map-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; }
.day-map-popup .day-map-kicker { color: #59717f; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; padding-right: 25px; }
.archive-main .day-map-popup h2 { font-family: Georgia, serif; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.day-map-popup-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; font-size: 26px; color: #59717f; border-radius: 6px; }
.day-map-popup-close:hover { background: #edf2f4; }
.day-map-popup[data-trigger="hover"] .day-map-popup-close { display: none; }
#day-map-popup-measurement { margin-top: 16px; font-size: 17px; font-variant-numeric: tabular-nums; }
.day-map-popup-meta { margin-top: 8px; color: #59717f; font-size: 11px; }
.day-map-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; }
.day-map-popup-link:hover { background: #315b63; }
.day-map-empty { position: absolute; top: 12px; left: 12px; right: 12px; text-align: center; padding: 12px; color: #59717f; font-size: 13px; }

@media (min-width: 900px) and (min-height: 601px) {
  .day-map-app { min-height: 740px; }
  .day-map-page .site-header-inner { max-width: 1200px; padding-top: 16px; padding-bottom: 16px; }
  .day-map-main { padding-top: 22px; padding-bottom: 22px; }
  .day-map-workspace {
    grid-template-columns: minmax(0, 1fr) clamp(268px, 25vw, 320px);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 20px;
  }
  .day-map-time {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(16px, 3vw, 40px);
    padding: 14px 20px;
    border-radius: 16px 16px 0 0;
    background: #fff;
  }
  .day-map-time-heading { display: contents; }
  #sweden-latest-day-map-offset-label { grid-column: 1; grid-row: 3; font-size: 11px; }
  #sweden-latest-day-map-selected-time {
    grid-column: 1;
    grid-row: 2;
    margin: 2px 0;
    font-size: clamp(15px, 1.45vw, 20px);
  }
  #sweden-latest-day-map-slider { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .day-map-time-labels { grid-column: 2; grid-row: 3; font-size: 11px; }
  .day-map-canvas {
    grid-column: 1;
    grid-row: 2;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--station-map-grid-background);
  }
  .day-map-canvas-heading {
    position: absolute;
    z-index: 1;
    top: 10px;
    inset-inline: 16px;
    padding: 0 0 0 4px;
    font-size: 12px;
    pointer-events: none;
  }
  #day-map-zoom { pointer-events: auto; }
  .day-map-content { padding: 0 8px; }
  .day-map-drawing.is-zoomed { margin-top: 50px; height: calc(100% - 50px); }
  .day-map-empty { top: 48px; }
  .day-map-outline { fill: #dce8e6; stroke: #9eb8bc; }
  .day-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    gap: 16px;
    padding: 8px 20px 14px;
  }
  .day-map-reading { width: min(54%, 340px); padding: 0; gap: 4px 12px; }
  .day-map-caption { padding: 0; font-size: 11px; text-align: right; }

  .day-map-sidebar {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    border: 1px solid var(--atlas-line);
    border-radius: 16px;
    background: #fff;
  }
  .day-map-weather { border: 0; border-radius: 0; background: transparent; }
  .day-map-weather-options button { font-size: 13px; }
  .day-map-leaders { gap: 0; padding: 0 18px; }
  .day-map-leader-group { padding: 14px 0; border: 0; border-top: 1px solid var(--atlas-line); border-radius: 0; }
  .day-map-leader-group h3 { font-size: 23px; margin-bottom: 8px; }
  .day-map-leader-row { padding: 9px 8px; gap: 10px; font-size: 13px; }
  .day-map-leader-row:hover, .day-map-leader-row:focus-visible { background: #f0f5f6; }
  .day-map-leader-group li:first-child .day-map-leader-row { background: #eff5f6; border: 0; border-radius: 6px; }
  .day-map-leader-rank { color: #59717f; font-size: 11px; }
  .day-map-leader-name { white-space: normal; overflow-wrap: anywhere; }
  .day-map-leader-row strong { font-size: 14px; }
}
@media (min-width: 900px) and (min-height: 601px) and (max-height: 800px) {
  .day-map-main { padding-block: 16px; }
  .day-map-intro { margin-bottom: 14px; }
  .day-map-weather { padding-block: 14px; }
  .day-map-leader-group { padding-block: 10px; }
  .day-map-leader-row { padding-block: 7px; }
}
@media (max-width: 899px), (max-height: 600px) {
  .day-map-app { min-height: 480px; }
  .day-map-main { padding: 14px 20px 12px; }
  .day-map-intro { margin-bottom: 12px; }
  .day-map-intro h1 { font-size: 28px; }
  .day-map-intro > p { display: none; }
  .day-map-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
  .day-map-sidebar { display: contents; }
  .day-map-weather { grid-row: 1; padding: 0; border: 0; background: transparent; }
  .day-map-weather .day-map-kicker { display: none; }
  .day-map-weather-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
  .day-map-canvas { grid-row: 2; }
  .day-map-canvas-heading { padding: 12px 120px 0 16px; min-height: 54px; align-items: flex-start; }
  #sweden-latest-day-map-status { padding-top: 9px; }
  .day-map-north { display: none; }
  .day-map-content { padding: 0 12px 4px; }
  .day-map-caption { padding-bottom: 6px; }
  .day-map-caption:has(#day-map-zoom-hint[hidden]), .day-map-overview-hint { display: none; }
  .day-map-reading { width: min(100%, 400px); padding: 8px 16px 12px; column-gap: 16px; }
  .day-map-time { grid-row: 3; padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; }
  .day-map-time-heading { display: contents; }
  .day-map-time .day-map-kicker { display: none; }
  #sweden-latest-day-map-offset-label { grid-column: 2; grid-row: 1; }
  #sweden-latest-day-map-selected-time { grid-column: 1; grid-row: 1; font-size: 14px; margin: 0; }
  #sweden-latest-day-map-slider { grid-column: 1 / -1; height: 36px; }
  .day-map-time-labels { grid-column: 1 / -1; }
  .day-map-leader-panel { position: absolute; z-index: 5; top: 66px; right: 12px; }
  .day-map-leader-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 10px; border: 1px solid #ccdce2; border-radius: 8px; background: #ffffffed; color: #315b63; font-size: 11px; font-weight: 550; }
  .day-map-leader-toggle { font-size: 18px; line-height: 1; font-weight: 400; }
  .day-map-leader-panel[open] .day-map-leader-toggle { transform: rotate(45deg); }
  .day-map-leaders { position: absolute; top: calc(100% + 8px); right: 0; width: min(310px, calc(100vw - 64px)); max-height: min(420px, calc(100dvh - 300px)); overflow-y: auto; padding: 12px; background: #f7f9fa; border: 1px solid #ccdce2; border-radius: 12px; box-shadow: 0 12px 32px #173c5026; }
  .day-map-leader-row { min-height: 40px; align-items: center; }
}
@media (max-width: 767px) {
  .day-map-page .site-header-inner { padding: 10px 16px; gap: 6px 12px; }
  .day-map-page .site-nav { padding-top: 0; min-height: 36px; font-size: 11px; }
  .day-map-main { padding: 12px 12px 10px; }
  .day-map-intro { padding: 0 4px; }
  .day-map-intro h1 { font-size: clamp(24px, 7vw, 28px); }
  .day-map-weather-options button { font-size: 11px; }
  .day-map-reading .day-map-kicker { font-size: 9px; letter-spacing: .8px; }
}
@media (max-height: 600px) and (min-width: 600px) {
  .day-map-app { min-height: 320px; }
  .day-map-page .site-header-inner { padding-top: 8px; padding-bottom: 8px; }
  .day-map-page .site-nav { padding-top: 0; min-height: 36px; }
  .day-map-page .site-brand-caption { display: none; }
  .day-map-main { padding: 8px 16px; }
  .day-map-intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .day-map-workspace { grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .day-map-canvas { grid-column: 1; grid-row: 1 / -1; }
  .day-map-weather { grid-column: 2; grid-row: 1; }
  .day-map-weather-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-map-time { grid-column: 2; grid-row: 2; align-self: start; }
  #sweden-latest-day-map-selected-time { font-size: 12px; }
  #sweden-latest-day-map-offset-label { font-size: 9px; }
  .day-map-leader-panel { top: 12px; right: 274px; }
  .day-map-leaders { max-height: calc(100dvh - 180px); }
}
@media (prefers-reduced-motion: reduce) { .day-map-tile, .day-map-weather-options button { transition: none; } }
