.ocean-page {
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 88% 4%, rgba(31, 172, 202, 0.12), transparent 28rem),
        linear-gradient(180deg, #edf4f7 0, #f8fafb 52rem, #edf3f6 100%);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    border-radius: 7px;
    background: white;
    color: var(--ink-900);
    font-weight: 750;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.ocean-top-actions,
.ocean-nav {
    display: flex;
    align-items: center;
}

.ocean-top-actions { gap: 22px; }
.ocean-nav { gap: 4px; }

.ocean-nav a {
    padding: 8px 11px;
    border-radius: 8px;
    color: #96aaba;
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
}

.ocean-nav a:hover,
.ocean-nav a:focus-visible,
.ocean-nav a.active {
    background: rgba(255, 255, 255, 0.075);
    color: white;
}

.ocean-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(47, 188, 135, 0.28);
    border-radius: 999px;
    background: rgba(47, 188, 135, 0.1);
    color: #7be0b8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ocean-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(84, 217, 158, 0.12);
}

.ocean-live.unavailable {
    border-color: rgba(233, 154, 63, 0.3);
    background: rgba(233, 154, 63, 0.1);
    color: #edb470;
}

.ocean-main {
    width: min(1540px, 100%);
    margin: 0 auto;
    padding: 28px 32px 0;
}

.ocean-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 54px;
    min-height: 390px;
    padding: clamp(46px, 6vw, 82px);
    overflow: hidden;
    border: 1px solid #18384b;
    border-radius: 24px;
    background:
        radial-gradient(circle at 83% 18%, rgba(50, 203, 221, 0.17), transparent 24rem),
        radial-gradient(circle at 17% 120%, rgba(18, 112, 150, 0.28), transparent 32rem),
        linear-gradient(135deg, #06131f, #092334 58%, #0a3040);
    box-shadow: 0 28px 68px rgba(7, 24, 38, 0.2);
    color: white;
}

.ocean-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, black, transparent 82%);
    pointer-events: none;
}

.ocean-hero > * { position: relative; z-index: 1; }

.ocean-kicker {
    display: block;
    color: #48d0e4;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ocean-hero h1 {
    margin-top: 16px;
    color: #f3f8fa;
    font-size: clamp(3rem, 6vw, 5.7rem);
    font-weight: 690;
    letter-spacing: -0.06em;
    line-height: 0.93;
}

.ocean-hero > div > p {
    max-width: 710px;
    margin-top: 24px;
    color: #9db2bf;
    font-size: 1rem;
    line-height: 1.7;
}

.ocean-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    min-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(3, 13, 22, 0.42);
    backdrop-filter: blur(10px);
}

.ocean-summary div { padding: 18px; }
.ocean-summary div + div { border-left: 1px solid rgba(255, 255, 255, 0.09); }
.ocean-summary dt {
    color: #718d9f;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ocean-summary dd {
    margin-top: 6px;
    color: #eef6f8;
    font-family: var(--font-mono);
    font-size: 1.25rem;
}
.ocean-summary div:last-child dd { font-size: 0.72rem; line-height: 1.5; }

.analysis-workspace {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.workspace-heading,
.viewer-meta,
.viewer-footnote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.workspace-heading h2 {
    margin-top: 5px;
    color: var(--ink-900);
    font-size: 1.5rem;
}

.refresh-ocean {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--slate-200);
    border-radius: 9px;
    background: white;
    color: var(--ink-700);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 800;
}

.refresh-ocean svg,
.expand-ocean svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.refresh-ocean:hover,
.refresh-ocean:focus-visible { border-color: var(--primary); color: var(--primary-dark); }

.product-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding: 6px;
    border-radius: 13px;
    background: var(--slate-100);
}

.product-tab {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--slate-500);
    cursor: pointer;
    text-align: left;
}

.product-tab span { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 800; }
.product-tab small { font-size: 0.72rem; font-weight: 700; }
.product-tab.active {
    background: white;
    box-shadow: 0 3px 12px rgba(8, 28, 46, 0.08);
    color: var(--primary-dark);
}

.ocean-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.region-panel,
.ocean-viewer {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    background: white;
}

.region-heading {
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--slate-200);
}
.region-heading h3 { margin-top: 4px; color: var(--ink-900); font-size: 1rem; }
.region-list { max-height: 720px; overflow-y: auto; padding: 8px; }
.region-message { padding: 20px 10px; color: var(--slate-500); font-size: 0.78rem; }

.region-option {
    display: block;
    width: 100%;
    padding: 11px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-700);
    cursor: pointer;
    text-align: left;
}
.region-option + .region-option { margin-top: 2px; }
.region-option strong,
.region-option small { display: block; }
.region-option strong { font-size: 0.78rem; }
.region-option small { margin-top: 2px; color: var(--slate-500); font-size: 0.65rem; }
.region-option:hover,
.region-option:focus-visible { background: var(--slate-100); }
.region-option.active {
    background: linear-gradient(135deg, #0b789f, #0d92b6);
    color: white;
}
.region-option.active small { color: #bde6ef; }

.viewer-meta { min-height: 88px; padding: 16px 20px; }
.viewer-meta > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.product-code {
    grid-row: 1 / 3;
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 12px;
    background: #e5f5f8;
    color: var(--primary-dark);
    font-family: var(--font-mono);
    font-weight: 850;
}
.viewer-meta h3 { color: var(--ink-900); font-size: 1.17rem; }
.viewer-meta p { color: var(--slate-500); font-size: 0.69rem; }
.viewer-source { max-width: 320px; text-align: right; }
.viewer-source span,
.viewer-source strong { display: block; }
.viewer-source span { color: var(--slate-500); font-size: 0.59rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.viewer-source strong { margin-top: 3px; color: var(--ink-700); font-size: 0.72rem; }

.ocean-image-stage {
    position: relative;
    display: grid;
    min-height: 520px;
    overflow: hidden;
    place-items: center;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    background: #050d15;
}
.ocean-image-stage img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; }
.ocean-image-status { display: grid; gap: 5px; place-items: center; color: #dbe7ec; text-align: center; }
.ocean-image-stage img[hidden],
.ocean-image-status[hidden] { display: none !important; }
.ocean-image-status small { max-width: 420px; color: #7892a2; }
.ocean-loader {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-top-color: #42cbe0;
    border-radius: 50%;
    animation: ocean-spin 800ms linear infinite;
}
.ocean-image-status.error .ocean-loader { display: none; }
.ocean-image-status.error strong { color: #efb777; }
.expand-ocean {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(4, 13, 21, 0.74);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.expand-ocean:disabled { cursor: not-allowed; opacity: 0.35; }
.viewer-footnote { min-height: 58px; padding: 12px 18px; color: var(--slate-500); font-size: 0.66rem; }
.viewer-footnote p:last-child { text-align: right; }

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 26px 0 74px;
}
.method-grid article {
    min-height: 250px;
    padding: 30px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}
.method-index { color: var(--primary); font-family: var(--font-mono); font-size: 0.65rem; font-weight: 800; }
.method-grid h2 { margin-top: 28px; color: var(--ink-900); font-size: 1.35rem; }
.method-grid p { max-width: 620px; margin-top: 12px; color: var(--slate-600); line-height: 1.7; }
.method-grid ul { display: grid; gap: 7px; margin-top: 18px; padding-left: 18px; color: var(--slate-500); font-size: 0.76rem; }

.ocean-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1540px, 100%);
    margin: 0 auto;
    padding: 26px 42px 38px;
    color: var(--slate-500);
    font-size: 0.65rem;
}
.ocean-footer a { color: var(--slate-600); font-weight: 750; text-underline-offset: 3px; }

.ocean-dialog {
    width: min(96vw, 1600px);
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 14px;
    background: #050d15;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.ocean-dialog::backdrop { background: rgba(2, 8, 13, 0.86); backdrop-filter: blur(5px); }
.ocean-dialog img { display: block; width: 100%; max-height: 92vh; object-fit: contain; }
.ocean-dialog button {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: #0b1b27;
    color: white;
    cursor: pointer;
    font-size: 1.4rem;
}

@keyframes ocean-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
    .ocean-hero { grid-template-columns: 1fr; align-items: start; }
    .ocean-summary { min-width: 0; }
    .ocean-layout { grid-template-columns: 1fr; }
    .region-list { display: flex; max-height: none; gap: 6px; overflow-x: auto; }
    .region-option { flex: 0 0 170px; }
}

@media (max-width: 760px) {
    .ocean-topbar { align-items: flex-start; min-height: 96px; padding: 14px 16px; }
    .ocean-top-actions { align-items: flex-end; flex-direction: column-reverse; gap: 6px; }
    .ocean-nav a:first-child { display: none; }
    .ocean-nav a { padding: 5px 6px; font-size: 0.66rem; }
    .ocean-live { padding: 4px 7px; font-size: 0.57rem; }
    .ocean-main { padding: 14px 14px 0; }
    .ocean-hero { min-height: 0; padding: 46px 23px 24px; border-radius: 18px; }
    .ocean-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    .ocean-summary { grid-template-columns: repeat(2, 1fr); }
    .ocean-summary div:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.09); border-left: 0; }
    .analysis-workspace { padding: 15px; }
    .product-tab { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; padding: 8px 10px; }
    .viewer-meta { align-items: flex-start; flex-direction: column; }
    .viewer-source { max-width: none; text-align: left; }
    .ocean-image-stage { min-height: 330px; }
    .viewer-footnote { align-items: flex-start; flex-direction: column; }
    .viewer-footnote p:last-child { text-align: left; }
    .method-grid { grid-template-columns: 1fr; }
    .method-grid article { min-height: 0; padding: 24px; }
    .ocean-footer { align-items: flex-start; flex-direction: column; padding: 24px 18px 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .ocean-loader { animation: none; }
}

.forecast-outlook { margin-top:24px; }
.forecast-outlook .forecast-controls { padding:0 0 18px; }
.forecast-outlook-stage img { display:block; width:100%; height:100%; object-fit:contain; }
.forecast-outlook .forecast-note { margin:0; padding:13px 2px 2px; color:var(--slate-500); font-size:.68rem; }

/* Interactive basin IR overlay. Symbols are deliberately CSS/SVG rather than
   baked into the raster so they remain keyboard accessible and clickable. */
.ir-system-layer { position:absolute; z-index:3; pointer-events:none; }
.ir-system-layer[hidden], .ir-system-strip[hidden], .ir-hover-card[hidden] { display:none !important; }
.ir-marker {
    position:absolute; display:block; width:29px; height:29px; padding:0; border:0;
    background:transparent; color:#ed1717; cursor:pointer;
    /* left/top is the forecast fix itself.  Keep the hit box exactly the
       size of the symbol; an identifier must never participate in centring
       the geographic anchor. */
    transform:translate(-50%, -50%); pointer-events:auto; filter:drop-shadow(0 1px 1px #fff) drop-shadow(0 1px 2px #000);
}
.ir-marker > span:last-child {
    position:absolute; top:27px; left:50%; width:max-content; margin:0; padding:1px 4px;
    transform:translateX(-50%); color:#fff; font:800 11px/1.1 var(--font-mono);
    text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
}
.ir-symbol { display:block; width:29px; height:29px; }
.ir-symbol.cyclone { overflow:visible; }
.ir-symbol.cyclone .cyclone-body { fill:#ed1717; stroke:none; }
.ir-symbol.cyclone .cyclone-eye { fill:none; stroke:#ed1717; stroke-width:4; }
.ir-symbol.cyclone .cyclone-core { fill:#ed1717; stroke:none; }
.ir-symbol.depression { width:19px; height:19px; border:4px solid #ed1717; border-radius:50%; background:transparent; }
.ir-symbol.disturbance { width:auto; height:auto; color:#ed1717; font:900 38px/25px Arial,sans-serif; }
.ir-marker:hover .ir-symbol, .ir-marker:focus-visible .ir-symbol { transform:scale(1.18); }
.ir-marker:hover .ir-symbol.cyclone,
.ir-marker:focus-visible .ir-symbol.cyclone { transform:scale(1.18); }
.ir-hover-card {
    position:absolute; z-index:7; width:278px; padding:14px 15px; border:1px solid rgba(113,211,232,.5);
    border-radius:10px; background:rgba(4,15,24,.94); color:#edf8fb; box-shadow:0 16px 38px rgba(0,0,0,.42); pointer-events:none;
}
.ir-hover-card strong,.ir-hover-card em { display:block; }
.ir-hover-card strong { font-size:.82rem; }.ir-hover-card em { margin:2px 0 10px; color:#72d5e7; font-size:.66rem; font-style:normal; }
.ir-hover-card dl { display:grid; grid-template-columns:1fr auto; gap:4px 12px; margin:0; font-size:.64rem; }
.ir-hover-card dt { color:#91a9b5; }.ir-hover-card dd { margin:0; text-align:right; }
.ir-system-strip { display:flex; gap:8px; min-height:70px; padding:10px 14px; overflow-x:auto; border-bottom:1px solid var(--slate-200); background:#f4f8fa; }
.ir-system-strip > p { margin:auto 0; color:var(--slate-500); font-size:.7rem; }
.ir-system-chip { display:flex; flex:0 0 auto; align-items:center; gap:8px; padding:7px 11px; border:1px solid #cddce2; border-radius:10px; background:white; cursor:pointer; color:var(--ink-700); text-align:left; }
.ir-system-chip .ir-symbol { width:23px; height:23px; }.ir-system-chip .disturbance { font-size:30px; line-height:20px; }
.ir-system-chip span,.ir-system-chip strong,.ir-system-chip small { display:block; }.ir-system-chip strong { font-size:.68rem; }.ir-system-chip small { color:var(--slate-500); font-size:.58rem; }
.ir-system-chip.snapshot { border-style:dashed; opacity:.78; }
.ir-system-chip.new { border-color:#58b9ca; background:#edfafd; }
.ir-system-chip.renumbered { border-color:#55b889; background:#edf9f3; }
.ir-detail-dialog { width:min(94vw,1100px); max-width:none; padding:0; border:0; border-radius:15px; overflow:hidden; background:#07121c; color:white; box-shadow:0 30px 90px rgba(0,0,0,.6); }
.ir-detail-dialog::backdrop { background:rgba(1,7,12,.86); backdrop-filter:blur(5px); }.ir-detail-dialog header { padding:16px 20px 12px; }.ir-detail-dialog header span { color:#62cce0; font-size:.62rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.ir-detail-dialog h2 { margin-top:3px; font-size:1.15rem; }
.ir-detail-dialog img { display:block; width:100%; max-height:82vh; object-fit:contain; background:#02070b; }.ir-detail-dialog p { margin:0; padding:12px 20px; text-align:center; color:#9ab0ba; background:#0b1b26; }
.ir-detail-dialog > button { position:absolute; z-index:2; top:10px; right:12px; width:34px; height:34px; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:#102533; color:white; cursor:pointer; font-size:1.3rem; }
