/* Observation Post: compact, scoped version of the approved fine-line HUD. */
#newsModal {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
    align-items: center !important; overscroll-behavior: contain;
}
#newsModal > .post-panel {
    --post-panel:#0e1828; --post-card:#0a1220; --post-line:#294660;
    --post-cyan:#5fd8ff; --post-ink:#e8f1fa; --post-dim:#9db2c6; --post-accent:#ffd23f;
    --post-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
    width:min(1060px,100%) !important; max-width:1060px !important; max-height:calc(100dvh - 32px);
    aspect-ratio:auto !important; overflow-y:auto; overscroll-behavior:contain;
    background:var(--post-panel); border:1px solid var(--post-line); border-top:3px solid var(--post-cyan);
    border-radius:0; color:var(--post-ink); padding:20px 24px 14px; position:relative;
    font-family:system-ui,-apple-system,"Segoe UI","PingFang SC",sans-serif; line-height:1.5;
}
.post-panel[data-level="0"], .post-alert-none { --post-accent:#4df0a8; }
.post-panel[data-level="2"], .post-alert-warning { --post-accent:#ff9a45; }
.post-panel[data-level="3"], .post-alert-special { --post-accent:#ff667c; }
.post-panel::before,.post-panel::after { content:""; position:absolute; bottom:0; width:16px; height:16px; border:2px solid var(--post-cyan); pointer-events:none; }
.post-panel::before { left:0; border-top:0; border-right:0; }
.post-panel::after { right:0; border-top:0; border-left:0; }
.post-panel p,.post-panel h2,.post-panel h3 { margin:0; }
.post-panel svg { display:block; }
.post-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:8px; }
.post-header h2 { font-size:26px; font-weight:800; line-height:1.25; letter-spacing:.045em; margin-top:4px; }
.post-kicker { color:var(--post-dim); font:11px var(--post-mono); letter-spacing:.09em; }
.post-actions { display:flex; gap:8px; flex-shrink:0; }
.post-action { width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--post-line); background:#5fd8ff0d; color:var(--post-ink); padding:11px; cursor:pointer; transition:background .18s,border-color .18s; }
.post-action:hover { border-color:var(--post-cyan); background:#5fd8ff22; }
.post-action:disabled { opacity:.4; cursor:wait; }
.post-action svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.post-panel button:focus-visible,.post-panel summary:focus-visible { outline:2px solid var(--post-cyan); outline-offset:3px; }
.post-configure { width:auto; height:auto; min-height:44px; padding:8px 14px; font:12px var(--post-mono); }
.post-panel .post-location { font:700 14px/1.5 var(--post-mono); overflow-wrap:anywhere; }
.post-panel .post-issued { font:11px/1.5 var(--post-mono); color:var(--post-dim); margin:5px 0 14px; }
.post-alert { display:grid; grid-template-columns:minmax(0,1fr) 185px; gap:22px; align-items:center; padding:0 0 14px; margin-bottom:14px; border-bottom:1px solid var(--post-line); background:radial-gradient(ellipse at 90% 50%,color-mix(in srgb,var(--post-accent) 8%,transparent),transparent 62%); }
.post-alert-heading { display:flex; align-items:center; gap:14px; }
.post-alert-symbol { width:44px; height:44px; flex:none; fill:none; stroke:var(--post-accent); stroke-width:2; stroke-linejoin:round; }
.post-alert-heading h3 { font-size:29px; line-height:1.12; font-weight:800; letter-spacing:-.01em; }
.post-panel .post-alert-subtitle { color:var(--post-dim); font:11px var(--post-mono); letter-spacing:.11em; margin-top:7px; }
.post-panel .post-alert-rule { color:var(--post-dim); font:11px/1.7 var(--post-mono); letter-spacing:.025em; margin-top:7px; }
.post-alert-rule b { color:var(--post-accent); font-weight:700; }
.post-distance { position:relative; width:180px; justify-self:center; text-align:center; }
.post-panel .post-distance-label { font:10px/1.4 var(--post-mono); letter-spacing:.09em; color:var(--post-dim); margin-bottom:10px; }
.post-distance-gauge { width:100%; height:auto; overflow:hidden; }
.post-gauge-base { stroke:var(--post-line); stroke-width:8; fill:none; stroke-linecap:round; }
.post-gauge-active { stroke:var(--post-accent); stroke-width:8; fill:none; stroke-linecap:round; }
.post-distance-gauge text { font:11px var(--post-mono); fill:var(--post-dim); }
.post-distance-value { position:absolute; left:0; right:0; bottom:3px; font:400 42px/1.15 var(--post-mono); font-variant-numeric:tabular-nums; letter-spacing:-.055em; }
.post-distance-value small { font:700 15px var(--post-mono); color:var(--post-accent); margin-left:6px; letter-spacing:0; }
.post-distance:not(:has(svg)) .post-distance-value { position:static; }
.post-days { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; min-width:0; }
.post-day { border:1px solid var(--post-line); background:var(--post-card); padding:16px 18px; position:relative; display:flex; flex-direction:column; min-width:0; }
.post-day::before,.post-day::after { content:""; position:absolute; width:10px; height:10px; border:2px solid var(--post-cyan); pointer-events:none; }
.post-day::before { left:-1px; top:-1px; border-right:0; border-bottom:0; }
.post-day::after { right:-1px; bottom:-1px; border-left:0; border-top:0; }
.post-day-primary { border-color:#5fd8ffa8; }
.post-day header { display:flex; justify-content:space-between; gap:10px; font:12px var(--post-mono); letter-spacing:.04em; color:var(--post-dim); }
.post-day-primary header span:first-child { color:var(--post-cyan); }
.post-weather-icon { width:46px; height:46px; fill:none; stroke:var(--post-cyan); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; margin:10px 0 12px; }
.post-key { font:10px var(--post-mono); letter-spacing:.08em; color:var(--post-dim); }
.post-panel .post-value { font:700 31px/1.2 var(--post-mono); letter-spacing:-.05em; font-variant-numeric:tabular-nums; margin:4px 0 12px; }
.post-value small { font:600 13px var(--post-mono); letter-spacing:0; color:var(--post-dim); margin-left:7px; }
.post-panel .post-condition { font-family:inherit; font-weight:750; letter-spacing:0; overflow-wrap:anywhere; }
.post-gust-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.post-gust-row .post-value { margin-bottom:0; }
.post-wind-barb { width:62px; height:43px; fill:none; color:var(--post-cyan); stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.post-footer { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-top:14px; color:var(--post-dim); font:10px var(--post-mono); letter-spacing:.03em; }
.post-notes { max-width:78%; text-align:right; }
.post-notes summary { display:inline-block; border:1px solid var(--post-line); padding:6px 10px; cursor:pointer; }
.post-notes summary:hover { color:var(--post-ink); border-color:var(--post-cyan); }
.post-notes[open] summary { margin-bottom:10px; }
.post-notes p { text-align:left; font:11px/1.7 var(--post-mono); }
.post-panel .post-track-note { margin-top:12px; font:11px/1.6 var(--post-mono); color:var(--post-dim); }
.post-panel .post-empty { padding:40px 0; color:var(--post-ink); font:13px/1.7 var(--post-mono); }
.post-sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.post-distance-value { animation:post-value-enter .4s ease; }
@keyframes post-value-enter { from { opacity:.7; transform:translateY(2px); } to { opacity:1; transform:none; } }
@media (max-width:719px) {
    #newsModal { padding:max(10px,env(safe-area-inset-top)) 8px max(10px,env(safe-area-inset-bottom)) !important; }
    #newsModal > .post-panel { padding:16px 14px 12px; max-height:calc(100dvh - 20px); }
    .post-header { gap:8px; }
    .post-header h2 { font-size:22px; }
    .post-kicker { font-size:9px; }
    .post-actions { gap:6px; }
    .post-action { width:32px; height:32px; padding:7px; }
    .post-panel .post-location { font-size:11px; }
    .post-panel .post-issued { font-size:9px; margin-bottom:14px; }
    .post-alert { grid-template-columns:minmax(0,1fr) 100px; gap:10px; padding-bottom:12px; }
    .post-alert-heading { gap:8px; }
    .post-alert-heading h3 { font-size:20px; }
    .post-alert-symbol { width:25px; height:25px; }
    .post-panel .post-alert-subtitle { display:none; }
    .post-panel .post-alert-rule { font-size:9px; margin-top:8px; letter-spacing:0; }
    .post-distance { width:100px; }
    .post-panel .post-distance-gauge { display:none; }
    .post-distance-value { position:static; font-size:36px; }
    .post-distance-value small { font-size:11px; margin-left:3px; }
    .post-panel .post-distance-label { font-size:8px; letter-spacing:0; margin-bottom:6px; }
    .post-days { grid-template-columns:1fr; gap:12px; }
    .post-day { padding:13px 14px; display:grid; grid-template-columns:1.14fr 1fr .85fr; gap:11px 8px; }
    .post-day header { grid-column:1/-1; font-size:11px; }
    .post-weather-icon { position:absolute; top:9px; left:67px; width:23px; height:23px; margin:0; }
    .post-weather-block { grid-column:1; grid-row:2; }
    .post-temperature-block { grid-column:2; grid-row:2; }
    .post-gust-block { grid-column:3; grid-row:2; }
    .post-panel .post-value { font-size:23px; margin:6px 0 0; white-space:nowrap; }
    .post-panel .post-condition { white-space:normal; }
    .post-panel .post-condition-long { font-size:16px; }
    .post-value small { font-size:10px; margin-left:3px; }
    .post-key { font-size:8px; letter-spacing:0; white-space:nowrap; }
    .post-wind-barb { width:23px; height:24px; margin-top:6px; stroke-width:3; }
    .post-gust-row { gap:2px; }
    .post-footer { font-size:8px; gap:8px; }
    .post-notes summary { padding:5px 7px; min-height:30px; }
}
@media (min-width:720px) and (max-height:670px) {
    #newsModal > .post-panel { padding:16px 20px 12px; }
    .post-weather-icon { width:38px; height:38px; margin:8px 0; }
    .post-panel .post-value { font-size:28px; margin-bottom:9px; }
    .post-day { padding:13px 16px; }
    .post-distance { width:155px; }
    .post-alert { grid-template-columns:minmax(0,1fr) 160px; }
    .post-distance-value { font-size:36px; }
}
@media (prefers-reduced-motion:reduce) { .post-panel * { animation:none !important; transition:none !important; } }
@media (max-width:900px), (hover:none) and (pointer:coarse) {
    #catButton { display:flex !important; width:38px !important; height:38px !important; }
    #news-feed-container,#news-feed-container * { pointer-events:none !important; }
    #news-feed-container > div { max-width:100%; }
}
