/* ── Tornado Tracker (/tools/weather/tornadoes/) — builds on shared.css + weather.css ── */
body[data-tool="tornadoes"] { --accent:#7c3aed; --accent-h:#6d28d9; --accent-bg:#ede9fe; --accent-fg:#5b21b6; --ring:124,58,237; }
.tn-banner { margin-top: 20px; border-radius: var(--radius-lg); padding: 16px 20px; border: 1px solid var(--border); background: var(--surface); }
.tn-banner-title { font-size: 1.15rem; font-weight: 700; }
.tn-banner-sub { font-size: .92rem; margin-top: 4px; opacity: .9; }
.tn-banner.is-clear { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.tn-banner.is-watch { background: #fefce8; border-color: #facc15; color: #713f12; }
.tn-banner.is-warning { background: #dc2626; border-color: #b91c1c; color: #fff; }
.tn-banner.is-emergency { background: #7e22ce; border-color: #581c87; color: #fff; }
.tn-banner.is-error { background: #fff7ed; border-color: #fdba74; color: #7c2d12; }
.tn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tn-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.tn-stat span { display: block; font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 600; color: var(--text); }
.tn-card .loc-bar { margin-bottom: 12px; }
.tn-me { margin: 0 0 14px; border-radius: var(--radius); padding: 12px 14px; font-size: .95rem; line-height: 1.5; border: 1px solid var(--border); }
.tn-me.is-clear { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.tn-me.is-watch { background: #fefce8; border-color: #facc15; color: #713f12; }
.tn-me.is-warning { background: #dc2626; border-color: #991b1b; color: #fff; }
.tn-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.tn-seg { display: inline-flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tn-seg button { font: inherit; font-size: .85rem; font-weight: 700; padding: 8px 12px; border: none; background: var(--surface); color: var(--text); cursor: pointer; min-height: 38px; }
.tn-seg button + button { border-left: 1px solid var(--border); }
.tn-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tn-date { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.tn-date input { font: inherit; font-size: .9rem; padding: 7px 10px; border: 1.5px solid var(--border-control, #7a7fb5); border-radius: var(--radius); background: var(--surface); color: var(--text); min-height: 38px; }
.tn-map { height: 560px; background: #0b1220; }
.tn-stage:fullscreen .tn-map { height: 100%; }
.tn-bar { position: absolute; left: 12px; bottom: 26px; z-index: 500; max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 12px; border-radius: 12px; background: rgba(15,23,42,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.35); color: #e2e8f0; font-size: .78rem; font-weight: 600; pointer-events: none; }
.tn-bar b { font-family: 'JetBrains Mono', monospace; color: #fff; margin-left: 4px; }
.tn-bar .tn-rain { width: 110px; flex: 0 0 110px; background: linear-gradient(90deg,#a5d8ff,#3b9ce6,#0b5ca8,#f7d33a,#f28c1b,#d7261e,#8b1a4f); }
.tn-bar-key { display: inline-flex; align-items: center; gap: 6px; }
.tn-bar-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 4px; }
.tn-bar-key i:first-child { margin-left: 0; }
.tn-layers { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.tn-layers label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; cursor: pointer; }
.tn-layers input { width: 18px; height: 18px; accent-color: var(--accent); }
.tn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.tn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tn-legend i { display: inline-block; width: 16px; height: 12px; border-radius: 3px; }
.lg-warn { background: rgba(255,59,59,.3); border: 2px solid #ff3b3b; }
.lg-emerg { background: rgba(232,121,249,.3); border: 2px solid #e879f9; }
.lg-watch { background: rgba(250,204,21,.15); border: 2px solid #facc15; }
.tn-legend .lg-risk { background: linear-gradient(90deg, #66a366, #ffe066, #e06666, #ee99ee); }
.tn-legend .lg-rep, .tn-bar-key .lg-rep { width: 0; height: 0; border-radius: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid #dc2626; }
.tn-note { color: var(--muted); font-size: .9rem; margin-top: 8px; line-height: 1.55; }
.tn-dim { display: block; color: var(--muted); font-size: .8rem; }
.tn-layers .tn-dim { display: inline; font-weight: 500; }
.tn-num { font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.tn-rep span { display: block; width: 0; height: 0; margin: 1px auto 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 13px solid #dc2626; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.tn-alerts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tn-alert { border: 1px solid var(--border); border-left: 5px solid #ca8a04; border-radius: var(--radius); padding: 12px 14px; }
.tn-alert.is-warning { border-left-color: #dc2626; }
.tn-alert.is-emergency { border-left-color: #7e22ce; background: #faf5ff; }
.tn-alert-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tn-alert p { font-size: .9rem; margin-top: 4px; }
.tn-alert-meta { color: var(--muted); font-size: .82rem !important; }
@media (max-width: 720px) { .tn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tn-map { height: 440px; } .tn-bar-key { display: none; } }
[data-theme="dark"] .tn-banner.is-clear, [data-theme="dark"] .tn-me.is-clear { background: #052e22; border-color: #047857; color: #a7f3d0; }
[data-theme="dark"] .tn-banner.is-watch, [data-theme="dark"] .tn-me.is-watch { background: #2a2206; border-color: #a16207; color: #fde68a; }
[data-theme="dark"] .tn-banner.is-error { background: #2a1a0c; border-color: #7c4a1e; color: #fcd3ac; }
[data-theme="dark"] .tn-alert.is-emergency { background: #2e1065; }
.tn-stage { isolation: isolate; }
/* Glass header strip joined to the top of the map: risk-day buttons + fullscreen (same frame as the other LK Forge maps) */
.tn-glass { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(15,23,42,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.tn-glass .tn-seg { border: 0; gap: 6px; overflow: visible; }
.tn-glass .tn-seg button { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(203,213,225,.3); background: rgba(255,255,255,.06); color: #e2e8f0; }
.tn-glass .tn-seg button + button { border-left: 1px solid rgba(203,213,225,.3); }
.tn-glass .tn-seg button:hover { background: rgba(255,255,255,.14); color: #fff; }
.tn-glass .tn-seg button[aria-pressed="true"] { background: #2563eb; border-color: #2563eb; color: #fff; }
.tn-glass .tn-seg button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.tn-glass .radar-fs { margin-left: auto; }
.tn-stage:fullscreen .tn-map { flex: 1 1 auto; height: auto; }

/* [hidden]-guard (2026-09-29): an author display rule must never beat the hidden attribute (bit 4x: weather, timer, whats-my-ip, image converters). */
[hidden] { display: none !important; }
