/* Lochaber Weather - Tropical Storms & Hurricanes page (wxstorms.php), Nov 2026 */

.st-intro { color: var(--muted); max-width: 80ch; }
.st-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin: 0 0 16px; min-width: 0; }
.st-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.st-head h2, .st-card h2 { margin: 0; font-size: 1.15rem; flex: 1; min-width: 0; }
.st-pill { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.st-sub { margin: 0 0 12px; color: var(--muted); font-size: .88rem; max-width: 80ch; }

/* Status */
.st-status { display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.st-status-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--hero); }
.st-status-icon svg { width: 28px; height: 28px; fill: var(--muted); }
.st-status strong { display: block; font-size: 1.1rem; }
.st-status span { color: var(--muted); font-size: .9rem; }
.st-status.is-quiet { border-left: 5px solid var(--green, #2e9e5b); }
.st-status.is-quiet .st-status-icon svg { fill: var(--green, #2e9e5b); }
.st-status.is-active { border-left: 5px solid #e0322b; background: color-mix(in srgb, #e0322b 10%, var(--surface-2)); }
.st-status.is-active .st-status-icon svg { fill: #e0322b; animation: st-spin 6s linear infinite; }
@keyframes st-spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .st-status.is-active .st-status-icon svg { animation: none; } }

/* Outlook text */
.st-outlook p { margin: 0 0 10px; line-height: 1.55; max-width: 85ch; }
.st-outlook p:first-child { font-weight: 600; }
.st-outlook .st-item { display: flex; gap: 10px; }
.st-outlook .st-item span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; }
.st-chances { list-style: none; margin: -4px 0 12px 34px; padding: 0; }
.st-chances li { margin: 0 0 6px; }
.st-chance { display: inline-block; min-width: 108px; margin-right: 8px; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; text-align: center; }
.st-chance.is-low { background: #f2c744; color: #2b1d05; }
.st-chance.is-medium { background: #f08a24; color: #2b1d05; }
.st-chance.is-high { background: #c4161c; color: #fff; }
.st-by { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }

/* Outlook maps */
.st-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-maps figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 0; }
.st-maps figcaption { font-weight: 600; font-size: .9rem; margin: 2px 4px 8px; }
.st-maps img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }

/* Active storms */
.st-storm { border-left: 5px solid #e0322b; }
.st-storm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.st-time { color: var(--muted); font-size: .85rem; }
.st-badge { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.st-badge.is-td { background: #4aa3df; color: #06243a; }
.st-badge.is-ts { background: #f2c744; color: #2b1d05; }
.st-badge.is-hur { background: #f08a24; color: #2b1d05; }
.st-badge.is-major { background: #c4161c; color: #fff; }
.st-headline { margin: 0 0 12px; font-weight: 600; }
.st-storm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.st-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-facts div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.st-facts dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.st-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; }
.st-cone { display: block; text-decoration: none; }
.st-cone img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.st-cone span { display: block; font-size: .82rem; margin-top: 4px; }
.st-adv { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.st-adv summary { cursor: pointer; padding: 9px 12px; font-weight: 600; font-size: .92rem; }
.st-adv summary span { color: var(--muted); font-weight: 400; font-size: .85em; }
.st-adv pre { margin: 0; padding: 4px 12px 10px; white-space: pre-wrap; font-size: .82rem; line-height: 1.45; overflow-x: auto; }
.st-adv a { display: inline-block; margin: 0 12px 10px; font-size: .82rem; }

.st-foot { font-size: .82rem; color: var(--muted); margin: 6px 0 10px; }

@media (max-width: 800px) {
  .st-maps, .st-storm-body { grid-template-columns: minmax(0, 1fr); }
}
