/* Hazard trackers (volcanoes, earthquakes, wildfires, tsunami, disasters): map-first stage.
   The map fills the left column above the fold; summary + List / Charts / Options tabs sit in a side panel.
   Uses each tracker's own theme tokens (--surface, --border, --muted, --text, --accent), so dark mode follows. */
main.hz-wide, .tool-hero.hz-hero { max-width: 1280px; }
.tool-hero.hz-hero { padding-top: 18px; }
.tool-hero.hz-hero .hero-icon { width: 44px; height: 44px; border-radius: 11px; }
.tool-hero.hz-hero .hero-icon svg { width: 24px; height: 24px; }
.tool-hero.hz-hero .subtitle { font-size: .95rem; margin-top: 6px; max-width: none; }
.tool-hero.hz-hero .live-snapshot { margin: 8px 0 0 !important; padding: 4px 12px !important; display: inline-block; font-size: .85rem !important; border-radius: 999px !important; border-left: 0 !important; border: 1px solid rgba(37,99,235,.3) !important; }
main.hz-wide { padding-top: 12px; }
main.hz-wide .card.hz-card { margin-top: 0; padding: 14px; }
.hz-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hz-stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
.hz-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.hz-main .eq-loc-row { margin: 0; }
.hz-main .wf-stage { flex: 1; min-height: 0; margin-top: 0; }
.hz-main .wf-map { flex: 1; min-height: 360px; max-height: none; aspect-ratio: auto; }
.hz-main .wf-stage:fullscreen .wf-map { height: 100%; }
.hz-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); background: var(--surface); overflow: hidden; }
.hz-panel .eq-summary { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.hz-tabs { display: flex; gap: 4px; padding: 10px 12px 0; }
.hz-tabs button { flex: 1; font: inherit; font-size: .85rem; font-weight: 700; padding: 8px 6px; min-height: 40px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--muted); cursor: pointer; }
.hz-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 -3px 0 #2563eb; }
.hz-tabs button:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
.hz-pane { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--border); padding: 10px 12px 14px; }
.hz-pane[hidden] { display: none; }
.hz-pane .eq-list { margin-top: 0; }
.hz-pane .eq-charts { margin-top: 0; grid-template-columns: 1fr; }
.hz-pane details.opts { margin: 0; border: 0; background: none; }
.hz-pane details.opts > summary { display: none; }
.hz-pane details.opts .opts-body { padding: 0; }
@media (min-width: 1100px) {
  .hz-stage { height: clamp(560px, calc(100vh - 200px), 780px); }
}
@media (max-width: 1099px) {
  .hz-stage { grid-template-columns: 1fr; }
  .hz-main .wf-map { flex: none; aspect-ratio: auto; height: 60vh; min-height: 320px; max-height: none; }
  .hz-pane { max-height: 70vh; }
}
/* Tighten the space above the map: Print sits beside the snapshot line, the status line has no top gap */
main.hz-wide { position: relative; }
main.hz-wide > .tool-actions { position: absolute; top: -34px; right: 20px; margin: 0; }
.hz-main .eq-status { margin: 0; min-height: 0; }
.hz-main .eq-status:empty { display: none; }
/* Compact list rows in the 360px panel */
.hz-pane .eq-list { gap: 8px; }
.hz-pane .eq-item { padding: 10px 12px; gap: 8px; box-shadow: none; }
.hz-pane .eq-item:hover { transform: none; }
.hz-pane .eq-item-link { gap: 10px; }
.hz-pane .mag-badge { width: 40px; height: 40px; }
.hz-pane .mag-badge .mag-num { font-size: .9rem; }
.hz-pane .eq-place { font-size: .92rem; }
.hz-pane .eq-meta { font-size: .76rem; gap: 2px 10px; }
@media (max-width: 1099px) { main.hz-wide > .tool-actions { position: static; margin: 0 0 8px; } }

/* [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; }
