/* Internet Exposure Monitor (tools/internet-exposure, assets/js/exposure.js). Builds on netmon.css. */
.shx-hero { --sc: #dc2626; }
.shx-hero-v { font-size: 2.1rem; font-weight: 800; color: #dc2626; line-height: 1.1; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .shx-hero-v { color: #f87171; }
.shx-status .nm-kpi { padding-bottom: 32px; }

.shx-mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.shx-mapgrid .nm-card { margin-top: 0; }
@media (max-width: 980px) { .shx-mapgrid { grid-template-columns: minmax(0, 1fr); } }
.shx-top .nm-bar { grid-template-columns: minmax(120px, 1.3fr) minmax(40px, 1fr) 44px; }
.nm-land.shx-uk { stroke: #1e3a8a; stroke-width: 1.4; }
[data-theme="dark"] .nm-land.shx-uk { stroke: #facc15; }

.shx-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shx-what { min-width: 220px; max-width: 460px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.shx-cves td:first-child { white-space: nowrap; }
.shx-cves td:first-child a, .shx-likely a { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }

.shx-kev, .shx-ransom, .shx-ukchip { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.shx-kev { background: #dc2626; color: #fff; }
.shx-ransom { background: #7f1d1d; color: #fff; }
.shx-ukchip { background: #1e3a8a; color: #fff; text-transform: none; letter-spacing: 0; }
.shx-cvss { display: inline-block; min-width: 34px; text-align: center; font-weight: 800; font-size: .76rem; padding: 2px 6px; border-radius: 6px; color: #fff; background: #94a3b8; }
.shx-cvss.crit { background: #b91c1c; }
.shx-cvss.high { background: #ea580c; }
.shx-cvss.med { background: #ca8a04; }
.shx-cvss.low { background: #64748b; }

.shx-sev { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: #ca8a04; }
.shx-sev.s2 { background: #dc2626; }
.shx-svc td:nth-child(2) { max-width: 360px; }
.shx-sp { min-width: 130px; }
.shx-spw { display: inline-flex; align-items: center; gap: 6px; }
.shx-spk { width: 80px; height: 22px; display: block; }
.shx-ch { font-size: .76rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.shx-ch.up { color: #dc2626; }
.shx-ch.down { color: #16a34a; }
@media (max-width: 760px) { .shx-sp-h, .shx-sp { display: none; } }

.shx-likely { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.shx-likely li { padding-left: 2px; }
.shx-lk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.shx-lk-p { font-size: .82rem; font-weight: 600; margin-top: 1px; }
.shx-epss { position: relative; display: inline-block; width: 74px; height: 18px; border-radius: 5px; background: var(--bg-2); overflow: hidden; vertical-align: middle; }
.shx-epss::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: color-mix(in srgb, #dc2626 45%, transparent); }
.shx-epss b { position: relative; display: block; text-align: center; font-size: .74rem; line-height: 18px; font-variant-numeric: tabular-nums; }
#shx-patch-chart .nm-bar { grid-template-columns: minmax(150px, 46%) minmax(0, 1fr) 60px; }
#shx-patch-chart { margin-bottom: 12px; }

.shx-why { margin-top: 10px; font-size: .86rem; }
.shx-why summary { cursor: pointer; font-weight: 600; color: var(--link); }
.shx-why p { color: var(--muted); margin: 6px 0; max-width: 900px; }
#shx-risk-card .nm-callouts { margin: 4px 0 12px; }

/* country league table */
.shx-lg-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.shx-lg-q { font: inherit; font-size: .88rem; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); color: var(--text); min-width: 200px; }
.shx-lg-wrap { max-height: 560px; overflow: auto; }
.shx-lg thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.shx-sort { cursor: pointer; user-select: none; }
.shx-sort:hover, .shx-sort:focus-visible { color: var(--link); }
.shx-sort[aria-sort="ascending"]::after { content: ' \25B2'; font-size: .7em; }
.shx-sort[aria-sort="descending"]::after { content: ' \25BC'; font-size: .7em; }
.shx-grade { display: inline-block; min-width: 22px; text-align: center; font-weight: 800; font-size: .76rem; padding: 1px 6px; border-radius: 6px; color: #fff; }
.shx-grade.gA { background: #15803d; } .shx-grade.gB { background: #65a30d; } .shx-grade.gC { background: #ca8a04; }
.shx-grade.gD { background: #ea580c; } .shx-grade.gE { background: #dc2626; } .shx-grade.gF { background: #7f1d1d; }
.shx-pbar { position: relative; display: inline-block; width: 96px; height: 18px; border-radius: 5px; background: var(--bg-2); overflow: hidden; vertical-align: middle; }
.shx-pbar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: color-mix(in srgb, #ea580c 40%, transparent); }
.shx-pbar.brk::before { background: color-mix(in srgb, #dc2626 50%, transparent); }
.shx-pbar b { position: relative; display: block; text-align: center; font-size: .76rem; line-height: 18px; font-variant-numeric: tabular-nums; }
