/* Storm-history pages. Self-contained: no CDN, no web fonts, no third-party requests.
   Palette matches the React app: storm blue, amber accents, slate header. */
:root {
    --seo-slate: #2c3e50;
    --seo-ink: #17314a;
    --seo-blue: #2f7bd0;
    --seo-blue-deep: #0f3f77;
    --seo-amber: #f8bf3b;
    --seo-amber-deep: #e08a00;
    --seo-red: #b3261e;
    --seo-muted: #4a5b6d;
    --seo-border: rgba(18, 71, 123, 0.14);
    --seo-card: rgba(255, 255, 255, 0.92);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--seo-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    background: radial-gradient(circle at top left, rgba(47, 123, 208, 0.18), transparent 38%), linear-gradient(180deg, #eef6ff, #f8fbff 45%, #eef4f9);
    min-height: 100vh;
}

a { color: var(--seo-blue-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--seo-amber-deep); outline-offset: 2px; }

.seo-container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.seo-main { padding-block: 1.25rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.seo-muted { color: var(--seo-muted); }
.seo-fineprint { color: var(--seo-muted); font-size: 0.85rem; margin: 0.4rem 0 0; }
.seo-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seo-skip { position: absolute; left: -999px; top: 0; background: var(--seo-amber); color: var(--seo-ink); padding: 0.5rem 1rem; z-index: 10; }
.seo-skip:focus { left: 0; }

/* Header and footer */
.seo-header { background: var(--seo-slate); color: #fff; }
.seo-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 0.6rem; }
.seo-brand img { display: block; height: 72px; width: auto; }
.seo-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.seo-nav a { color: #fff; text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.seo-nav a:hover { border-bottom-color: var(--seo-amber); }
.seo-tagline { margin: 0 0 0 auto; color: #dbe6f1; font-size: 0.95rem; }
.seo-footer { background: rgba(255, 255, 255, 0.7); border-top: 1px solid var(--seo-border); padding-block: 1.25rem; font-size: 0.9rem; }
.seo-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.seo-footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.seo-footer-brand img { height: 48px; width: 48px; }
.seo-footer-notes { text-align: right; }

/* Breadcrumbs */
.seo-breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.seo-breadcrumbs li + li::before { content: "›"; margin: 0 0.5rem; color: var(--seo-muted); }

/* Hero */
.seo-hero { background: linear-gradient(135deg, rgba(7, 64, 120, 0.96), rgba(34, 95, 162, 0.94)); color: #fff; border-radius: 28px; padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 24px 60px rgba(15, 43, 72, 0.18); }
.seo-hero h1 { margin: 0.1rem 0 0.4rem; font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; }
.seo-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: #ffd166; font-weight: 700; }
.seo-lede { margin: 0 0 1rem; font-size: 1.05rem; color: #eaf3ff; }
.seo-hero a:not(.seo-btn) { color: #ffd166; }

/* Address search */
.seo-search label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.seo-search-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.seo-search input { flex: 1 1 280px; padding: 0.8rem 1rem; border-radius: 12px; border: 2px solid transparent; font-size: 1rem; color: var(--seo-ink); }
.seo-search .seo-fineprint { color: #d3e4f7; }

/* Buttons */
.seo-btn { display: inline-block; background: var(--seo-amber); color: #1b2f46; font-weight: 700; border: 0; border-radius: 12px; padding: 0.8rem 1.25rem; font-size: 1rem; text-decoration: none; cursor: pointer; }
.seo-btn:hover { background: #ffd166; }
.seo-btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); }

/* Cards, stats, tiles */
.seo-card { background: var(--seo-card); border: 1px solid var(--seo-border); border-radius: 20px; padding: clamp(1rem, 3vw, 1.6rem); box-shadow: 0 14px 36px rgba(15, 43, 72, 0.08); }
.seo-card h2 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.seo-subhead { margin: 1.25rem 0 0.5rem; font-size: 1.05rem; }
.seo-notice { border-left: 6px solid var(--seo-amber-deep); }
.seo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.seo-stat { background: #f1f7fe; border-radius: 14px; padding: 0.8rem 1rem; text-align: center; }
.seo-stat-value { font-size: 2rem; font-weight: 800; color: var(--seo-blue-deep); line-height: 1.1; }
.seo-stat-label { font-size: 0.85rem; color: var(--seo-muted); }
.seo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; }
.seo-tile { border: 1px solid var(--seo-border); border-top: 5px solid var(--seo-amber-deep); border-radius: 14px; padding: 0.9rem 1rem; background: #fff; }
.seo-tile-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--seo-muted); font-weight: 700; }
.seo-tile-value { font-size: 1.6rem; font-weight: 800; color: var(--seo-blue-deep); margin: 0.2rem 0; line-height: 1.2; }
.seo-tile-detail { font-size: 0.9rem; }
.seo-tile-note { font-size: 0.8rem; color: var(--seo-muted); margin-top: 0.25rem; }

/* Badges */
.seo-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.seo-badge-prelim { background: #fff3d1; color: #7a5200; border: 1px solid var(--seo-amber-deep); }
.seo-badge-minor { background: #eef2f6; color: var(--seo-muted); border: 1px solid #c9d4df; }
.seo-badge-official { background: #e4f1ff; color: var(--seo-blue-deep); border: 1px solid #9ad0ff; }

/* Tables */
.seo-table-wrap { overflow-x: auto; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.seo-table th, .seo-table td { padding: 0.5rem 0.65rem; text-align: left; border-bottom: 1px solid var(--seo-border); }
.seo-table thead th { background: #f1f7fe; font-size: 0.85rem; }
.seo-table tbody th { font-weight: 600; }

/* Chart */
.seo-chart-wrap { overflow-x: auto; }
.seo-chart { width: 100%; height: auto; min-width: 560px; display: block; }

/* Links and FAQ */
.seo-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.seo-link-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.seo-faq-item { border-top: 1px solid var(--seo-border); padding: 0.6rem 0; }
.seo-faq-item:first-of-type { border-top: 0; }
.seo-faq-item summary { cursor: pointer; font-weight: 700; }
.seo-faq-item p { margin: 0.5rem 0 0; }
.seo-method p { margin: 0; color: var(--seo-muted); font-size: 0.92rem; }

/* Current conditions */
.seo-now { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.seo-now-temp { font-size: 2.8rem; font-weight: 800; color: var(--seo-blue-deep); line-height: 1; }
.seo-now-desc { font-size: 1.15rem; font-weight: 600; }
.seo-alert { background: #fff3d1; border-left: 6px solid var(--seo-amber-deep); padding: 0.5rem 0.75rem; margin: 0 0 0.75rem; font-weight: 700; border-radius: 6px; }
.seo-forecast { margin: 0.9rem 0 0; padding-left: 1.1rem; }

@media (max-width: 640px) {
    .seo-tagline { margin-left: 0; }
    .seo-footer-notes { text-align: left; }
}

/* Print / Save as PDF: drop chrome, keep content and the SVG chart. */
@media print {
    body { background: #fff; }
    .seo-header, .seo-footer, .seo-search, .seo-skip, .seo-btn, #seo-conditions { display: none !important; }
    .seo-hero { background: #fff; color: #000; box-shadow: none; border: 1px solid #999; }
    .seo-hero h1, .seo-lede, .seo-kicker { color: #000; }
    .seo-card { box-shadow: none; break-inside: avoid; }
}
