/* Situation-first hub layout (prototype: tools-v2/emergency/index.html, 2026-11-16).
   A hub page opens with big "what's happening" entry points, then one section per
   situation: question-phrased tool tiles, short callouts, an optional "if it's
   forecast" list. Sources collapse at the bottom. Tokens only; prefix hs-.
   Each hub sets its accent with --hs-accent / --hs-accent-fill on .hs-page. */

.hs-page{--hs-accent:var(--primary-text);--hs-accent-fill:var(--primary)}

/* Sprite holder for inline <symbol> icons */
.hs-sprite{position:absolute;width:0;height:0;overflow:hidden}
.hs-ico{width:1.25em;height:1.25em;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ── Top ───────────────────────────────────────────── */
.hs-top{padding:var(--space-lg) 0 var(--space-xl)}
.hs-eyebrow{font-family:var(--font-heading);font-size:0.72rem;font-weight:700;text-transform:uppercase;letter-spacing:0.12em;color:var(--hs-accent);margin-bottom:var(--space-sm)}
.hs-h1{font-family:var(--font-heading);font-size:clamp(1.75rem,4.5vw,2.6rem);font-weight:800;color:var(--text);line-height:1.15;letter-spacing:-0.02em;margin-bottom:var(--space-sm)}
.hs-sub{font-size:1.05rem;color:var(--text-muted);line-height:1.55;max-width:640px;margin-bottom:var(--space-lg)}

.hs-entry{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-sm);list-style:none}
.hs-entry a{display:flex;align-items:center;gap:var(--space-ms);min-height:64px;padding:var(--space-ms) var(--space-md);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-lg);font-family:var(--font-heading);font-size:1.02rem;font-weight:700;color:var(--text);line-height:1.25;transition:border-color var(--duration) var(--ease),background var(--duration) var(--ease)}
.hs-entry a .hs-ico{width:26px;height:26px;color:var(--hs-accent)}
.hs-entry a:hover{border-color:var(--hs-accent-fill);background:var(--surface-alt)}
.hs-entry a:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-color:var(--hs-accent-fill)}

.hs-note{margin-top:var(--space-md);font-size:0.86rem;color:var(--text-muted);line-height:1.55;max-width:760px}
.hs-note strong{color:var(--text);font-weight:600}

/* ── Situation section ─────────────────────────────── */
.hs-sit{padding:var(--space-xl) 0;border-top:1px solid var(--border);scroll-margin-top:72px}
.hs-sit-head{display:flex;align-items:flex-start;gap:var(--space-ms);margin-bottom:var(--space-lg)}
.hs-sit-head .hs-ico{width:30px;height:30px;color:var(--hs-accent);margin-top:2px}
.hs-sit-head h2{font-family:var(--font-heading);font-size:clamp(1.3rem,3vw,1.65rem);font-weight:800;color:var(--text);letter-spacing:-0.01em;line-height:1.2}
.hs-lede{font-size:0.95rem;color:var(--text-muted);line-height:1.5;margin-top:2px}

/* Question tiles */
.hs-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:var(--space-sm);margin-bottom:var(--space-md)}
.hs-tile{display:flex;align-items:center;gap:var(--space-md);padding:var(--space-md) var(--space-lg);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);color:inherit;transition:border-color var(--duration) var(--ease)}
.hs-tile:hover{border-color:var(--hs-accent-fill)}
.hs-tile:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-color:var(--hs-accent-fill)}
.hs-tile-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.hs-q{font-family:var(--font-heading);font-size:1.05rem;font-weight:700;color:var(--text);line-height:1.3}
.hs-meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-sm);font-size:0.82rem;color:var(--text-muted)}
.hs-tag{font-family:var(--font-heading);font-size:0.7rem;font-weight:600;color:var(--text-faint);border:1px solid var(--border);border-radius:4px;padding:0 6px;line-height:1.6}
.hs-tile > .hs-ico{color:var(--text-faint);transition:color var(--duration) var(--ease)}
.hs-tile:hover > .hs-ico{color:var(--hs-accent)}

/* Callouts + forecast list share a row */
.hs-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--space-sm);align-items:start}
.hs-callout{display:flex;gap:var(--space-sm);padding:var(--space-ms) var(--space-md);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-inset);font-size:0.9rem;color:var(--text-muted);line-height:1.55}
.hs-callout .hs-ico{margin-top:2px;color:var(--info)}
.hs-callout strong{color:var(--text);font-weight:700}
.hs-callout.hs-safety{border-left:3px solid var(--danger)}
.hs-callout.hs-safety .hs-ico{color:var(--danger)}
.hs-callout.hs-fact{border-left:3px solid var(--info)}

.hs-forecast{padding:var(--space-ms) var(--space-md);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.hs-forecast h3{font-family:var(--font-heading);font-size:0.72rem;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--text-faint);margin-bottom:var(--space-xs)}
.hs-forecast ul{padding-left:1.1em;display:flex;flex-direction:column;gap:var(--space-xs);font-size:0.9rem;color:var(--text-muted);line-height:1.55}
.hs-go{margin-top:var(--space-sm);font-size:0.88rem;color:var(--text)}
.hs-go a,.hs-callout a:not(.hs-ref),.hs-forecast li a:not(.hs-ref){color:var(--primary-text);text-decoration:underline;text-underline-offset:3px}

/* Footnote refs: small and quiet */
.hs-ref{font-size:0.72em;color:var(--text-faint);text-decoration:none;vertical-align:0.25em;line-height:0;white-space:nowrap;padding:0 1px}
.hs-ref:hover,.hs-ref:focus-visible{color:var(--primary-text);text-decoration:underline}

/* Sources, collapsed */
.hs-sources{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-inset)}
.hs-sources > summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:var(--space-md) var(--space-lg);font-family:var(--font-heading);font-size:0.92rem;font-weight:700;color:var(--text)}
.hs-sources > summary::-webkit-details-marker{display:none}
.hs-sources > summary::after{content:'+';font-size:1.2rem;color:var(--primary-text);flex-shrink:0;transition:transform var(--duration) var(--ease)}
.hs-sources[open] > summary::after{transform:rotate(45deg)}
.hs-sources > summary:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.hs-sources-body{padding:0 var(--space-lg) var(--space-lg);font-size:0.8rem;color:var(--text-faint);line-height:1.6}
.hs-sources-body ol{padding-left:1.4em;display:flex;flex-direction:column;gap:var(--space-xs)}
.hs-sources-body a{color:var(--primary-text);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.hs-sources-body li:target{color:var(--text)}

@media(max-width:900px){.hs-entry{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){
  .hs-entry a{min-height:58px;padding:var(--space-sm) var(--space-ms);font-size:0.95rem;gap:var(--space-sm)}
  .hs-entry a .hs-ico{width:22px;height:22px}
  .hs-tiles{grid-template-columns:1fr}
  .hs-tile{padding:var(--space-md)}
  .hs-notes{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.hs-entry a,.hs-tile,.hs-tile > .hs-ico{transition:none}}
