:root {
    color-scheme: light;
    --navy-950: #06213b;
    --navy-900: #0b3158;
    --navy-800: #124b7d;
    --blue-600: #1d77c4;
    --blue-500: #2699df;
    --blue-100: #dff2ff;
    --cyan-400: #54c7ec;
    --yellow-400: #ffc844;
    --red-600: #d63232;
    --green-600: #218456;
    --ink: #10263a;
    --muted: #587087;
    --surface: rgba(255, 255, 255, .82);
    --surface-solid: #f7fbff;
    --surface-soft: rgba(237, 248, 255, .78);
    --line: rgba(14, 69, 111, .16);
    --shadow: 0 12px 34px rgba(3, 39, 72, .16);
    --shadow-soft: 0 6px 18px rgba(3, 39, 72, .11);
    --radius-lg: 22px;
    --radius-md: 15px;
    --page-width: 1540px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8f5ff;
    --muted: #a9c2d4;
    --surface: rgba(7, 35, 58, .88);
    --surface-solid: #0b2943;
    --surface-soft: rgba(13, 51, 81, .82);
    --line: rgba(169, 218, 248, .18);
    --shadow: 0 12px 34px rgba(0, 9, 18, .42);
    --shadow-soft: 0 6px 18px rgba(0, 9, 18, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 300px;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: #2b80cf url("../images/background1.jpg") center top / cover fixed no-repeat;
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(231, 247, 255, .25), rgba(8, 55, 99, .16));
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; padding: 10px 16px; color: white; background: var(--navy-950); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 20; }
.test-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 31px;
    padding: 5px 18px;
    color: white;
    background: var(--navy-950);
    font-size: .78rem;
    letter-spacing: .02em;
}
.test-strip > span:first-child { padding: 2px 8px; color: var(--navy-950); background: var(--yellow-400); border-radius: 20px; font-weight: 800; text-transform: uppercase; }
.live-state { margin-left: auto; }
.live-state i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--yellow-400); border-radius: 50%; }
.status-live { background: #43d17b !important; box-shadow: 0 0 0 3px rgba(67, 209, 123, .2); }
.status-stale { background: var(--yellow-400) !important; box-shadow: 0 0 0 3px rgba(255, 200, 68, .2); }
.status-offline { background: #ef5c5c !important; box-shadow: 0 0 0 3px rgba(239, 92, 92, .2); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: var(--page-width);
    min-height: 126px;
    margin: 0 auto;
    padding: 18px 28px;
}
.brand { display: block; flex: 0 1 540px; width: min(540px, 65vw); height: 100px; overflow: hidden; }
.brand img { display: block; width: auto; max-width: none; height: 100%; object-fit: contain; object-position: left center; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-time { min-width: 154px; padding: 9px 14px; text-align: right; color: white; background: rgba(5, 38, 65, .76); border: 1px solid rgba(255,255,255,.32); border-radius: 12px; box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.header-time span, .header-time strong { display: block; }
.header-time span { font-size: .78rem; opacity: .82; }
.header-time strong { font-size: 1.14rem; letter-spacing: .03em; }
.icon-button, .menu-toggle { display: grid; place-items: center; min-width: 46px; height: 46px; color: white; background: rgba(5, 38, 65, .8); border: 1px solid rgba(255,255,255,.32); border-radius: 12px; cursor: pointer; box-shadow: var(--shadow-soft); }
.icon-button:hover, .menu-toggle:hover { background: var(--navy-800); }
.icon-button svg { width: 23px; fill: currentColor; }
.menu-toggle { display: none; position: relative; padding: 8px 12px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 2px 0; background: currentColor; border-radius: 2px; }
.menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.main-navigation { position: sticky; top: 0; background: rgba(7, 41, 70, .94); border-block: 1px solid rgba(255,255,255,.18); box-shadow: 0 5px 18px rgba(3, 29, 52, .22); backdrop-filter: blur(16px); }
.main-navigation ul { display: flex; justify-content: center; max-width: var(--page-width); margin: 0 auto; padding: 0 18px; list-style: none; }
.main-navigation a { display: block; padding: 15px 18px 13px; color: rgba(255,255,255,.86); border-bottom: 3px solid transparent; font-size: .91rem; font-weight: 700; white-space: nowrap; }
.main-navigation a:hover, .main-navigation a.active { color: white; border-color: var(--yellow-400); text-decoration: none; background: rgba(255,255,255,.07); }
.ticker { display: grid; grid-template-columns: 132px 1fr; max-width: var(--page-width); min-height: 38px; margin: 12px auto 2px; color: var(--ink); background: var(--surface); border: 1px solid rgba(255,255,255,.45); border-radius: 12px; box-shadow: var(--shadow-soft); overflow: hidden; backdrop-filter: blur(16px); }
.ticker strong { display: grid; place-items: center; padding: 7px 14px; color: white; background: var(--navy-900); font-size: .82rem; text-transform: uppercase; }
.ticker div { display: flex; align-items: center; padding: 7px 16px; font-size: .88rem; }
.ticker-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-right: 9px; background: var(--yellow-400); border-radius: 50%; }

.page-shell {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr) 272px;
    gap: 20px;
    max-width: var(--page-width);
    margin: 20px auto 46px;
    padding: 0 18px;
}
.page-shell.without-right-sidebar { grid-template-columns: 244px minmax(0, 1fr); }
main { min-width: 0; }
.sidebar-sticky { position: sticky; top: 16px; display: grid; gap: 17px; }
.side-panel, .dashboard-card, .glass-card, .metric-card, .forecast-grid article, .notice-card {
    border: 1px solid rgba(255,255,255,.52);
    box-shadow: var(--shadow);
    backdrop-filter: blur(17px);
}
.side-panel, .dashboard-card { overflow: hidden; background: var(--surface); border-radius: var(--radius-md); }
.side-panel h2, .dashboard-card h2 { margin: 0; font-size: .95rem; }
.side-panel > h2 { padding: 12px 15px; color: white; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); }
.navigation-panel details { border-top: 1px solid var(--line); }
.navigation-panel summary { position: relative; padding: 11px 36px 11px 15px; font-size: .88rem; font-weight: 800; cursor: pointer; list-style: none; }
.navigation-panel summary::-webkit-details-marker { display: none; }
.navigation-panel summary::after { position: absolute; right: 15px; content: "+"; color: var(--blue-600); font-size: 1.2rem; line-height: 1; }
.navigation-panel details[open] summary::after { content: "−"; }
.navigation-panel details[open] summary { color: var(--navy-800); background: var(--surface-soft); }
.navigation-panel details a { display: block; padding: 7px 13px 7px 22px; color: var(--ink); border-top: 1px solid var(--line); font-size: .78rem; }
.navigation-panel details a:hover { color: var(--blue-600); background: var(--surface-soft); text-decoration: none; }
.station-panel { padding-bottom: 12px; }
.station-panel p { margin: 8px 14px; font-size: .78rem; }
.status-line { display: flex; align-items: center; gap: 7px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.status-wait { background: var(--yellow-400); box-shadow: 0 0 0 3px rgba(255, 200, 68, .2); }

.quick-access { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 9px; margin-bottom: 18px; }
.quick-access a { display: grid; grid-template-rows: 45px auto auto; place-items: center; min-width: 0; padding: 11px 7px; color: var(--ink); text-align: center; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-radius: 13px; box-shadow: var(--shadow-soft); backdrop-filter: blur(15px); transition: transform .16s ease, box-shadow .16s ease; }
.quick-access a:hover { transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow); }
.quick-access strong { font-size: .76rem; }
.quick-access small { color: var(--muted); font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.quick-icon { display: grid; place-items: center; width: 39px; height: 39px; color: white; background: var(--blue-600); border-radius: 12px; font-size: 1.35rem; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.quick-icon.warning { background: var(--red-600); }
.quick-icon.forecast { background: #537e9f; }
.quick-icon.radar { background: #22a69a; }
.quick-icon.rain { background: #2d91d7; }
.quick-icon.lightning { color: #392e02; background: var(--yellow-400); }
.quick-icon.satellite { background: #68718d; }

.glass-card { background: var(--surface); border-radius: var(--radius-lg); }
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 174px; padding: 30px 34px; background: linear-gradient(118deg, rgba(255,255,255,.92), rgba(224,245,255,.77)); }
[data-theme="dark"] .welcome-card { background: linear-gradient(118deg, rgba(7,35,58,.94), rgba(13,65,101,.85)); }
.welcome-copy { flex: 1 1 auto; min-width: 0; }
.eyebrow { display: block; margin-bottom: 4px; color: var(--blue-600); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.welcome-card h1 { margin: 0; color: var(--navy-900); line-height: 1.1; letter-spacing: -.04em; }
.welcome-title-small h1 { font-size: clamp(1.3rem, 1.8vw, 1.75rem); }
.welcome-title-medium h1 { font-size: clamp(1.55rem, 2.4vw, 2.2rem); }
.welcome-title-large h1 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.welcome-eyebrow-small > .welcome-copy > .eyebrow { font-size: .62rem; }
.welcome-eyebrow-medium > .welcome-copy > .eyebrow { font-size: .72rem; }
.welcome-eyebrow-large > .welcome-copy > .eyebrow { font-size: .82rem; }
[data-theme="dark"] .welcome-card h1 { color: white; }
.welcome-card p { color: var(--muted); }
.location-badge { flex: 0 0 auto; display: grid; padding: 15px 18px; color: white; background: var(--navy-900); border-radius: 15px; box-shadow: var(--shadow-soft); }
.location-badge span { margin-bottom: 3px; color: var(--cyan-400); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.location-badge strong { font-size: .88rem; }

.content-section { margin-top: 26px; }
.startpage-content-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.startpage-content-card { grid-column: span 12; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.52); box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); }
.startpage-content-card.content-width-half { grid-column: span 6; }
.startpage-content-card.content-width-third { grid-column: span 4; }
.startpage-content-image { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.startpage-content-inner { padding: 23px 25px; }
.startpage-content-card h3 { margin: 0; color: var(--navy-900); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.2; }
[data-theme="dark"] .startpage-content-card h3 { color: white; }
.startpage-rich-text { color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.startpage-rich-text > :first-child { margin-top: 12px; }
.startpage-rich-text > :last-child { margin-bottom: 0; }
.startpage-rich-text p, .startpage-rich-text ul, .startpage-rich-text ol, .startpage-rich-text blockquote { margin-block: 12px; }
.startpage-rich-text h2, .startpage-rich-text h3, .startpage-rich-text h4 { margin: 18px 0 8px; color: var(--ink); line-height: 1.25; }
.startpage-rich-text blockquote { padding: 10px 14px; background: var(--surface-soft); border-left: 4px solid var(--blue-600); border-radius: 0 8px 8px 0; }
.startpage-rich-text a { font-weight: 800; }
.welcome-rich-text { max-width: none; }
.welcome-card.has-location .welcome-rich-text, .welcome-card.has-location .welcome-rich-text p { max-width: 660px; }
.welcome-body-small .welcome-rich-text { font-size: .84rem; }
.welcome-body-medium .welcome-rich-text { font-size: .96rem; }
.welcome-body-large .welcome-rich-text { font-size: 1.08rem; }
.content-card-link { display: inline-block; margin-top: 17px; padding: 9px 13px; color: white; background: var(--navy-900); border-radius: 9px; font-size: .78rem; font-weight: 850; }
.content-card-link:hover { text-decoration: none; background: var(--blue-600); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 4px 11px; }
.section-heading h2 { margin: 0; font-size: 1.38rem; letter-spacing: -.02em; }
.update-chip { padding: 5px 10px; color: #6e5400; background: #fff1bd; border: 1px solid #e7ce75; border-radius: 20px; font-size: .72rem; font-weight: 800; }
.update-chip.status-live { color: #075529; border-color: #75cea0; }
.update-chip.status-stale { color: #6e5400; border-color: #e7ce75; }
.update-chip.status-offline { color: white; border-color: #ef5c5c; }
.section-link { font-size: .8rem; font-weight: 800; }
.weather-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric-card { display: flex; align-items: center; gap: 13px; min-height: 106px; padding: 17px; background: var(--surface); border-radius: var(--radius-md); }
.metric-icon { flex: 0 0 auto; display: grid; place-items: center; width: 45px; height: 45px; color: white; background: var(--blue-600); border-radius: 14px; font-size: 1.22rem; }
.metric-card div { min-width: 0; }
.metric-card small, .metric-card strong, .metric-card span { display: block; }
.metric-card .metric-icon { display: grid; place-items: center; overflow: hidden; line-height: 1; }
.metric-card small { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.metric-card strong { margin: 2px 0; font-size: 1.32rem; line-height: 1.25; }
.metric-card span { color: var(--muted); font-size: .72rem; }
.primary-metric { color: white; background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); }
.primary-metric small, .primary-metric span { color: rgba(255,255,255,.72); }
.primary-metric .metric-icon { color: var(--navy-900); background: var(--yellow-400); }
.notice-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 18px; background: var(--surface); border-radius: var(--radius-md); }
.notice-symbol { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--blue-600); border-radius: 50%; font-weight: 900; }
.notice-card p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.notice-card a { padding: 8px 12px; color: white; background: var(--navy-900); border-radius: 9px; font-size: .74rem; font-weight: 800; }
.notice-card a:hover { text-decoration: none; background: var(--navy-800); }
.forecast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.forecast-grid article { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 18px; background: var(--surface); border-radius: var(--radius-md); }
.forecast-grid strong, .forecast-grid small { grid-column: 1; }
.forecast-grid b { grid-column: 1; font-size: 1.24rem; }
.forecast-grid small { color: var(--muted); font-size: .68rem; }
.weather-symbol { grid-column: 2; grid-row: 1 / span 3; font-size: 2.25rem; }

.right-sidebar { display: grid; align-content: start; gap: 17px; }
.dashboard-card { padding-bottom: 12px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 10px 14px; color: white; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); }
.dashboard-card dl { margin: 7px 14px 9px; }
.dashboard-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.dashboard-card dt { color: var(--muted); }
.dashboard-card dd { margin: 0; font-weight: 900; }
.dashboard-card > p { margin: 12px 14px; color: var(--muted); font-size: .76rem; }
.dashboard-card > a { display: block; margin: 11px 14px 1px; font-size: .75rem; font-weight: 800; }
.warning-level { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .72rem; }
.warning-level.neutral { color: var(--navy-900); background: #dce9f1; }
.warning-card > strong { display: block; margin: 12px 14px 2px; font-size: .82rem; line-height: 1.35; }
.warning-card .warning-level { color: var(--warning-ink, white); background: var(--warning-color, #8293a0); font-weight: 900; }
.warning-card { border-top: 5px solid var(--warning-color, #8293a0); }
.mini-icon { font-size: 1.15rem; }
.large-reading { margin: 16px 14px 0; color: var(--navy-800); font-size: 2rem; font-weight: 900; }
[data-theme="dark"] .large-reading { color: var(--cyan-400); }
.large-reading small { font-size: .9rem; }

.live-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 188px; padding: 30px 34px; }
.live-hero h1 { margin: 0; color: var(--navy-900); font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; }
[data-theme="dark"] .live-hero h1 { color: white; }
.live-hero p { max-width: 660px; margin: 12px 0 0; color: var(--muted); }
.live-hero-reading { flex: 0 0 auto; display: grid; min-width: 210px; padding: 18px 20px; color: white; background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); border-radius: 16px; box-shadow: var(--shadow-soft); }
.live-hero-reading small { color: rgba(255,255,255,.7); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.live-hero-reading strong { margin: 2px 0 10px; font-size: 2rem; }
.live-hero-reading .update-chip { justify-self: start; }
.live-section-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0 3px; }
.live-section-nav a { display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 9px 12px; color: var(--ink); background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-radius: 11px; box-shadow: var(--shadow-soft); font-size: .72rem; font-weight: 800; backdrop-filter: blur(15px); }
.live-section-nav a:hover { color: var(--blue-600); text-decoration: none; transform: translateY(-1px); }
.live-section-nav span { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; color: white; background: var(--blue-600); border-radius: 8px; font-size: .92rem; }
.section-symbol { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--navy-900); border-radius: 11px; font-size: 1.2rem; }
.live-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.live-metric-card { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); }
.live-metric-card small, .live-metric-card strong, .live-metric-card span { display: block; }
.live-metric-card small { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.live-metric-card strong { margin: 5px 0 4px; overflow-wrap: anywhere; font-size: 1.35rem; line-height: 1.2; }
.live-metric-card span { color: var(--muted); font-size: .65rem; }
.public-source-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-radius: var(--radius-md); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.public-source-table { width: 100%; border-collapse: collapse; }
.public-source-table th { padding: 10px 12px; color: var(--muted); background: var(--surface-soft); text-align: left; font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.public-source-table td { padding: 12px; border-top: 1px solid var(--line); font-size: .76rem; }
.public-source-table td strong, .public-source-table td small { display: block; }
.public-source-table td small { color: var(--muted); font-size: .65rem; }
.source-pill { display: inline-block; padding: 4px 8px; color: white; background: #8293a0; border-radius: 999px; font-size: .65rem; font-weight: 900; white-space: nowrap; }
.source-current { background: var(--green-600); }
.source-delayed { color: #4e3700; background: var(--yellow-400); }
.source-stale, .source-invalid, .source-error { background: var(--red-600); }
.source-disabled { background: #8293a0; }
.source-note { margin: 9px 4px 0; color: var(--muted); font-size: .7rem; }

.warning-level-1 { --warning-color: #f4c400; --warning-ink: #2b2500; }
.warning-level-2 { --warning-color: #ef7d00; --warning-ink: white; }
.warning-level-3 { --warning-color: #d71920; --warning-ink: white; }
.warning-level-4 { --warning-color: #7b1fa2; --warning-ink: white; }
.warning-preliminary { --warning-color: #df5d00; --warning-ink: white; }
.warning-heat { --warning-color: #c62828; --warning-ink: white; }
.warning-uv { --warning-color: #6a1b9a; --warning-ink: white; }
.warning-none { --warning-color: #218456; --warning-ink: white; }
.warning-unavailable { --warning-color: #7a8995; --warning-ink: white; }

.warning-summary-notice { border-left: 7px solid var(--warning-color); }
.warning-home-section.is-hidden { display: none; }
.warning-home-notices { display: grid; gap: 12px; }
.warning-summary-notice.is-hidden, .bbk-warning-section.is-hidden, .warning-card.is-hidden, .sidebar-warning-item.is-hidden, .sidebar-warning-empty.is-hidden { display: none; }
.warning-summary-notice .notice-symbol { color: var(--warning-ink); background: var(--warning-color); }
.warning-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 107px;
    padding: 18px 20px;
    color: var(--warning-ink);
    background: linear-gradient(120deg, var(--warning-color), color-mix(in srgb, var(--warning-color) 78%, #082d4e));
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.warning-hero .eyebrow { color: inherit; opacity: .78; }
.warning-hero h1, .warning-hero h2 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.12; }
.warning-hero p { max-width: 720px; margin: 5px 0 0; font-size: .82rem; opacity: .9; }
.warning-triangle { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 40px; padding-top: 7px; color: #1b1b1b; background: white; clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 3px 2px rgba(0,0,0,.24)); font-size: 1.4rem; font-weight: 1000; line-height: 1; }
.warning-count { display: grid; place-items: center; min-width: 62px; padding: 8px 10px; color: var(--warning-ink); background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 11px; }
.warning-count strong { font-size: 1.35rem; line-height: 1; }
.warning-count span { font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.warning-page-intro { padding: 17px 20px; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); }
.warning-page-intro .section-heading { margin-inline: 0; }
.warning-page-intro > p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.warning-type-overview { overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); backdrop-filter: blur(16px); }
.warning-type-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 15px 18px 12px; }
.warning-type-heading h2 { margin: 0; font-size: 1.08rem; }
.warning-type-heading > span { color: var(--muted); font-size: .7rem; text-align: right; }
.warning-type-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.warning-type-item { position: relative; display: grid; place-items: center; min-width: 0; min-height: 82px; padding: 9px 3px 7px; color: color-mix(in srgb, var(--muted) 63%, transparent); background: color-mix(in srgb, var(--surface-solid) 82%, #a9bfd0); filter: grayscale(1); }
.warning-type-item > span { display: grid; place-items: center; width: 38px; height: 34px; color: currentColor; border: 3px solid currentColor; border-radius: 10px; font-size: 1.05rem; font-weight: 1000; line-height: 1; }
.warning-type-item > small { max-width: 100%; margin-top: 4px; overflow: hidden; font-size: .58rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.warning-type-item > b { position: absolute; top: 5px; right: 5px; display: none; min-width: 18px; height: 18px; padding: 2px 5px; color: white; background: var(--warning-color, #52616c); border-radius: 999px; font-size: .56rem; line-height: 14px; text-align: center; }
.warning-type-item.is-active, .warning-type-item.is-upcoming { color: var(--ink); background: color-mix(in srgb, var(--warning-color) 15%, var(--surface-solid)); filter: none; }
.warning-type-item.is-active { box-shadow: inset 0 -5px var(--warning-color); }
.warning-type-item.is-upcoming { box-shadow: inset 0 -5px color-mix(in srgb, var(--warning-color) 70%, transparent); }
.warning-type-item.is-active > span, .warning-type-item.is-upcoming > span { color: var(--warning-color); background: white; }
.warning-type-item.is-active > b, .warning-type-item.is-upcoming > b { display: block; }
.warning-list { display: grid; gap: 17px; margin-top: 18px; }
.warning-empty { display: flex; align-items: center; gap: 18px; padding: 23px; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-left: 8px solid var(--warning-color); border-radius: var(--radius-md); box-shadow: var(--shadow); backdrop-filter: blur(17px); }
.warning-empty h2 { margin: 0; font-size: 1.15rem; }
.warning-empty p { margin: 5px 0 0; color: var(--muted); }
.warning-ok { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; color: white; background: var(--green-600); border-radius: 50%; font-size: 1.55rem; font-weight: 900; }
.warning-detail-card { overflow: hidden; background: var(--surface-solid); border: 1px solid color-mix(in srgb, var(--warning-color) 75%, white); border-top: 8px solid var(--warning-color); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.warning-detail-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; background: color-mix(in srgb, var(--warning-color) 13%, var(--surface-solid)); }
.warning-detail-header .warning-triangle { width: 48px; height: 43px; padding-top: 8px; font-size: 1.45rem; }
.warning-level-label { color: color-mix(in srgb, var(--warning-color) 84%, var(--ink)); font-size: .68rem; font-weight: 1000; letter-spacing: .06em; text-transform: uppercase; }
.warning-detail-header h2 { margin: 2px 0 1px; font-size: 1.18rem; line-height: 1.28; }
.warning-detail-header p { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 700; }
.warning-activity { padding: 5px 9px; color: white; background: #718291; border-radius: 999px; font-size: .66rem; font-weight: 900; white-space: nowrap; }
.warning-activity.is-active { color: var(--warning-ink); background: var(--warning-color); }
.warning-activity.is-upcoming { color: var(--ink); background: #d9e5ed; }
.warning-validity { padding: 11px 20px; color: var(--muted); background: var(--surface-soft); border-block: 1px solid var(--line); font-size: .78rem; }
.warning-validity strong { color: var(--ink); }
.warning-text, .warning-instruction { padding: 17px 20px; }
.warning-text + .warning-instruction { padding-top: 0; }
.warning-text h3, .warning-instruction h3 { margin: 0 0 7px; font-size: .82rem; }
.warning-text p, .warning-instruction p { margin: 0; font-size: .86rem; line-height: 1.62; }
.bbk-detail-card .warning-text p, .bbk-detail-card .warning-instruction p { white-space: pre-line; }
.warning-instruction { margin: 0 20px 18px; padding: 13px 15px; background: color-mix(in srgb, var(--warning-color) 9%, var(--surface-soft)); border-left: 4px solid var(--warning-color); border-radius: 9px; }
.warning-instruction p { font-weight: 650; }
.warning-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 20px; color: rgba(255,255,255,.84); background: #52616c; font-size: .7rem; }
.warning-detail-footer a { color: white; font-weight: 800; }
.warning-measurements { overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-top: 7px solid var(--warning-color, #ef7d00); border-radius: var(--radius-md); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.warning-measurements.is-hidden { display: none; }
.warning-measurement-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 15px 18px; background: color-mix(in srgb, var(--warning-color, #ef7d00) 10%, var(--surface-solid)); }
.warning-measurement-heading h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.warning-measurement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.warning-measurement-card { min-width: 0; padding: 13px 15px; background: var(--surface-solid); }
.warning-measurement-card small, .warning-measurement-card strong { display: block; }
.warning-measurement-card small { min-height: 2.3em; color: var(--muted); font-size: .66rem; font-weight: 850; line-height: 1.15; text-transform: uppercase; }
.warning-measurement-card strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 1.35rem; line-height: 1.1; }
.warning-source-note { padding: 15px 18px; background: var(--surface); border: 1px solid rgba(255,255,255,.52); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); font-size: .74rem; backdrop-filter: blur(16px); }
.warning-source-note > span { margin-left: 18px; color: var(--muted); }
.warning-source-note p { margin: 7px 0 0; color: var(--muted); }
.bbk-warning-section { display: grid; gap: 18px; }
.bbk-warning-section .warning-list { margin-top: 0; }
.bbk-warning-hero { min-height: 92px; }
.sidebar-warning-item { margin: 11px 14px 0; padding: 10px 11px; background: color-mix(in srgb, var(--warning-color) 8%, var(--surface-solid)); border-left: 4px solid var(--warning-color); border-radius: 8px; }
.sidebar-warning-item small, .sidebar-warning-item strong { display: block; }
.sidebar-warning-item small { color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-warning-item strong { margin-top: 2px; font-size: .76rem; line-height: 1.3; }
.sidebar-warning-item p { margin: 3px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.sidebar-warning-empty { margin: 12px 14px 0; color: var(--green-600); font-size: .76rem; font-weight: 850; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px max(24px, calc((100% - var(--page-width)) / 2 + 22px)); color: rgba(255,255,255,.82); background: var(--navy-950); }
.site-footer div { display: grid; }
.site-footer span { font-size: .75rem; opacity: .7; }
.site-footer nav { display: flex; gap: 17px; }
.site-footer a { color: white; font-size: .78rem; }

@media (max-width: 1280px) {
    .page-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .right-sidebar { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .quick-access { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
    .main-navigation a { padding-inline: 12px; }
}

@media (max-width: 920px) {
    .test-strip { justify-content: flex-start; }
    .live-state { margin-left: auto; }
    .header-inner { min-height: 105px; padding: 15px 18px; }
    .brand { flex-basis: 430px; width: min(430px, 62vw); height: 80px; }
    .header-time { display: none; }
    .menu-toggle { display: block; }
    .main-navigation { display: none; position: absolute; left: 12px; right: 12px; top: auto; border-radius: 14px; overflow: hidden; }
    .main-navigation.open { display: block; }
    .main-navigation ul { display: grid; grid-template-columns: repeat(2, 1fr); padding: 8px; }
    .main-navigation a { padding: 12px; border: 0; border-radius: 8px; }
    .main-navigation a:hover, .main-navigation a.active { border: 0; }
    .ticker { margin-inline: 12px; }
    .page-shell { grid-template-columns: 1fr; padding-inline: 12px; }
    .page-shell.without-right-sidebar { grid-template-columns: 1fr; }
    .left-sidebar { order: 2; }
    .left-sidebar .sidebar-sticky { position: static; grid-template-columns: 1fr 1fr; }
    main { order: 1; }
    .right-sidebar { order: 3; grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .live-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .warning-hero { grid-template-columns: auto minmax(0, 1fr); }
    .warning-count { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; gap: 7px; min-width: 0; }
    .warning-type-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .startpage-content-card.content-width-third { grid-column: span 6; }
}

@media (max-width: 660px) {
    .test-strip { flex-wrap: wrap; gap: 4px 8px; }
    .live-state { width: 100%; margin-left: 0; text-align: center; }
    .header-inner { min-height: 88px; }
    .brand { flex-basis: auto; width: calc(100% - 58px); height: 65px; }
    .icon-button { display: none; }
    .main-navigation ul { grid-template-columns: 1fr; }
    .ticker { grid-template-columns: 1fr; }
    .ticker strong { display: block; }
    .quick-access { display: flex; margin-inline: -12px; padding: 0 12px 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .quick-access a { flex: 0 0 118px; scroll-snap-align: start; }
    .welcome-card { display: block; padding: 23px 20px; }
    .startpage-content-card, .startpage-content-card.content-width-half, .startpage-content-card.content-width-third { grid-column: span 12; }
    .startpage-content-inner { padding: 20px; }
    .location-badge { display: inline-grid; margin-top: 18px; }
    .weather-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { display: grid; min-height: 150px; align-content: start; }
    .notice-card { grid-template-columns: auto 1fr; }
    .notice-card a { grid-column: 1 / -1; text-align: center; }
    .forecast-grid { grid-template-columns: 1fr; }
    .left-sidebar .sidebar-sticky, .right-sidebar { grid-template-columns: 1fr; }
    .site-footer { display: grid; }
    .live-hero { display: block; padding: 23px 20px; }
    .live-hero-reading { margin-top: 18px; }
    .live-section-nav { display: flex; margin-inline: -12px; padding: 0 12px 8px; overflow-x: auto; }
    .live-section-nav a { flex: 0 0 155px; }
    .live-metric-grid { grid-template-columns: 1fr; }
    .warning-hero { grid-template-columns: 1fr; min-height: 0; padding: 16px 14px; text-align: center; }
    .warning-hero .warning-triangle { justify-self: center; }
    .warning-type-heading, .warning-measurement-heading { align-items: flex-start; flex-direction: column; }
    .warning-type-heading > span { text-align: left; }
    .warning-type-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .warning-type-item { flex: 0 0 78px; scroll-snap-align: start; }
    .warning-detail-header { grid-template-columns: auto 1fr; padding: 16px; }
    .warning-activity { grid-column: 1 / -1; justify-self: start; }
    .warning-validity, .warning-text { padding-inline: 16px; }
    .warning-instruction { margin-inline: 16px; }
    .warning-detail-footer { align-items: flex-start; flex-direction: column; padding-inline: 16px; }
    .warning-measurement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .warning-source-note > span { display: block; margin: 5px 0 0; }
}

@media (max-width: 390px) {
    .weather-grid { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .update-chip { display: inline-block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
