@charset "UTF-8";

.weather-page { margin: 0; background: #f6f9fb; color: #193445; line-height: 1.55; }
.weather-page *, .weather-page *::before, .weather-page *::after { box-sizing: border-box; }
.weather-page [hidden] { display: none !important; }
.weather-page .container { padding-top: 12px; padding-bottom: 30px; }
.weather-page #header { height: auto; min-height: 64px; padding: 6px 20px; }
.weather-page #header h1 { margin: 0; }
.weather-page #header .logo { padding-top: 0; padding-left: 0; }
.weather-page #header .menu { align-items: center; }
.weather-page h2, .weather-page h3, .weather-page p { margin-top: 0; }
.weather-page h2 { margin-bottom: 0; font-size: clamp(23px, 3vw, 28px); }
.weather-page h3 { font-size: 18px; margin-bottom: 8px; }
.map-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.map-eyebrow { margin-bottom: 0; font-size: 10px; font-weight: bold; letter-spacing: .12em; color: #427083; }
.map-intro { margin-bottom: 0; font-size: 13px; color: #526977; }
.index-link, .map-save { color: #005da8; text-underline-offset: 3px; }
.index-link { white-space: nowrap; }
.map-page-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.map-panel { padding: 10px 12px; background: white; border: 1px solid #d7e2e8; border-radius: 8px; }
.map-controls.controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.ocean-page .map-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.map-controls label, .map-time-controls label { display: grid; gap: 2px; min-width: 0; font-size: 12px; font-weight: bold; }
.map-controls.controls select { width: 100%; min-width: 0; min-height: 32px; margin: 0; padding: 4px 26px 4px 6px; font-size: 12px; font-weight: normal; color: #193445; }
.map-time-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; border-top: 1px solid #e5edf2; padding-top: 7px; }
.map-time-controls input { min-width: 0; min-height: 32px; padding: 3px 6px; border: 1px solid #bbb; border-radius: 6px; background: white; font: inherit; font-size: 13px; color: #193445; }
.map-step-buttons { display: flex; gap: 5px; }
.weather-page button { min-height: 32px; padding: 4px 9px; border: 1px solid #c3d4df; border-radius: 6px; background: #f4f8fb; font: inherit; font-size: 12px; color: #174864; cursor: pointer; }
.weather-page #animateMaps[aria-pressed="true"] { background: #174864; color: white; }
.weather-page button:hover:not(:disabled) { background: #e4f0f7; }
.weather-page :disabled { opacity: .55; cursor: default; }
.weather-page :focus-visible { outline: 3px solid #0075bb; outline-offset: 3px; }
.map-refresh { margin-left: auto; }
.map-timeline { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; }
.map-timeline label { display: flex; gap: 8px; font-size: 12px; font-weight: bold; }
.map-timeline input { width: 100%; margin: 0; accent-color: #0066a5; }
.map-timeline p { margin-bottom: 0; color: #607483; font-size: 11px; }
.weather-page .map-status { min-height: 20px; margin: 6px 0 4px; color: #526977; font-size: 12px; }
.map-status.is-error { color: #a33225; }
.weather-map { margin: 0; padding: 6px; background: white; border: 1px solid #d7e2e8; border-radius: 8px; text-align: center; min-height: 160px; }
.weather-map img { display: block; width: 100%; max-width: 100%; height: auto; margin: auto; }
.weather-map figcaption { margin: 4px 0 0; font-size: 12px; color: #526977; }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 18px 0 24px; }
.map-actions .download-btn { font-size: 14px; min-width: auto; padding: 10px 16px; }
.map-save { font-size: 14px; }
.map-save-help { font-size: 13px; color: #526977; }
.map-notes { margin: 24px 0; padding: 20px; border-left: 3px solid #9ac8df; background: #eaf3f8; border-radius: 0 8px 8px 0; }
.map-notes p { margin-bottom: 8px; }
.map-notes p:last-child { margin-bottom: 0; }
.map-dataset-info { padding: 16px; background: white; border: 1px solid #d7e2e8; border-radius: 8px; overflow-wrap: anywhere; }
.map-dataset-info h4 { margin: 12px 0 4px; font-size: 14px; }
.map-dataset-info p { margin-bottom: 8px; font-size: 14px; }
.map-dataset-info p:last-child { margin-bottom: 0; }
.weather-page .usage ul { padding-left: 20px; font-size: 14px; color: #526977; }
.weather-page #footer { margin-top: 20px; }

@media (max-width: 1000px) {
    .map-controls.controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .map-timeline { grid-template-columns: auto minmax(60px, 1fr); gap: 4px 10px; }
    .map-timeline p { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .weather-page .container { padding: 10px 10px 24px; }
    .map-heading { gap: 8px; }
    .map-heading h2 { font-size: 20px; white-space: nowrap; }
    .map-intro, .map-eyebrow { display: none; }
    .index-link { font-size: 12px; }
    .map-panel { padding: 8px; }
    .map-controls.controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
    .map-step-buttons { flex-wrap: wrap; }
    .weather-page #header { height: auto; min-height: 60px; padding: 6px 8px; gap: 8px; }
    .weather-page #header .logo { max-width: 65px; padding: 0; }
    .weather-page #header .menu { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
    .weather-page #header .navi li { margin: 0 2px; font-size: 11px; }
    .weather-page #header .navi img { max-width: 55px; }
}

@media (max-width: 440px) {
    .map-controls label { gap: 0; font-size: 11px; }
    .map-controls.controls select { min-height: 30px; }
    .map-time-controls > label { grid-template-columns: auto minmax(0, 1fr); align-items: center; flex: 1; gap: 8px; }
    .map-step-buttons { order: 1; width: 100%; }
    .map-refresh { margin-left: 0; }
    .weather-page button { padding-inline: 6px; }
}
