/* Map Mod Threat Chart (/map-mods/). Shared look is in /static/hub.css. */

.hero { padding-bottom: 12px; }
.kicker { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 10px; }
.lede { max-width: 72ch; font-size: 17px; margin: 14px 0 0; }
.meta { color: var(--mute); font: 500 13px var(--mono); margin: 12px 0 0; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 14px; }
.controls label { font: 600 16px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.controls select { min-height: 40px; }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--mute); font-size: 14px; }
.sw { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--line2); vertical-align: -2px; }

.scroll { overflow-x: auto; position: relative; } /* relative: keeps the .sr captions inside, or phones pan sideways */
table.threat { border-collapse: collapse; width: 100%; min-width: 760px; font-variant-numeric: tabular-nums; }
.threat th, .threat td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.threat thead th { font: 600 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 0; background: var(--bg); }
.threat tbody th { font-weight: 400; max-width: 360px; }
.threat .affix { display: block; font: 600 16px/1.2 var(--display); }
.threat .mtext { display: block; color: var(--mute); font-size: 14px; }
.threat td { text-align: center; min-width: 92px; }
.threat td b { display: block; font: 700 20px/1.1 var(--display); }
.threat td small { color: inherit; opacity: .8; font: 500 12px var(--mono); }
.threat td[aria-expanded] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.threat td[aria-expanded]:focus:not(:focus-visible) { outline: none; }
.threat td[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.threat td:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.detrow td { text-align: left; background: var(--panel); }
.detbox { position: sticky; left: 10px; max-width: min(60ch, calc(100vw - 60px)); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.detbox b { font: 600 16px var(--display); }
.partly { display: inline-block; margin-top: 4px; font: 500 11px var(--mono); text-transform: uppercase; color: var(--accent); border: 1px solid var(--line2); padding: 1px 5px; cursor: help; }

/* Heat: how much harder the worst hit lands. Classes only (the CSP allows no inline styles). */
.h0 { background: transparent; }
.h1 { background: color-mix(in srgb, var(--fire) 10%, transparent); }
.h2 { background: color-mix(in srgb, var(--fire) 22%, transparent); }
.h3 { background: color-mix(in srgb, var(--fire) 38%, transparent); }
.h4 { background: color-mix(in srgb, var(--fire) 58%, transparent); }
.h5 { background: color-mix(in srgb, var(--fire) 80%, transparent); color: var(--on-hazard); }

.note { color: var(--mute); max-width: 80ch; font-size: 14px; margin-top: 10px; }
.grp { margin-top: 40px; }
.grp p { max-width: 80ch; }
table.chars { border-collapse: collapse; margin: 10px 0; }
.chars th, .chars td { border-bottom: 1px solid var(--line); padding: 6px 12px 6px 0; text-align: left; vertical-align: top; }
.chars th { font: 600 16px var(--display); white-space: nowrap; }
ul.other { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
ul.other li { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; }
ul.other .mtext { color: var(--mute); font-size: 14px; }
ul.other .why { font-size: 14px; }
.notes { margin-top: 40px; }
.notes p { max-width: 80ch; }
