/* Rail freshness bars (safety-topics.html). Legend scoped to .hk-stv; marks live in #topic-list buttons. */
.hk-stv,#topic-list{--hk-r2:#b9d7d2;--hk-r3:#6fbab0;--hk-r4:#2a9d8f;--hk-r5:#0f4c5c;--hk-lgrey:#d5dbdc;--hk-sand:#e9dcc0;--hk-sand-s:#d9c7a0}
/* dark theme: html[data-theme=dark], or the device setting when nothing is saved */:where([data-theme="dark"]) .hk-stv,:where([data-theme="dark"]) #topic-list{--hk-r2:#2b5a56;--hk-r3:#2f7a72;--hk-r4:#3fa497;--hk-r5:#7cc4d6;--hk-lgrey:#3a464d;--hk-sand:#4a4232;--hk-sand-s:#8a7a55}@media (prefers-color-scheme: dark){:where(:not([data-theme])) .hk-stv,:where(:not([data-theme])) #topic-list{--hk-r2:#2b5a56;--hk-r3:#2f7a72;--hk-r4:#3fa497;--hk-r5:#7cc4d6;--hk-lgrey:#3a464d;--hk-sand:#4a4232;--hk-sand-s:#8a7a55}}
.hk-stv{margin:12px 0 8px;font-family:"Nunito Sans",system-ui,sans-serif;font-size:12px;line-height:16px;color:var(--muted);position:relative}
.hk-stv p{margin:0}
.hk-stv .hk-defs{position:absolute;width:0;height:0}
.hk-stv .hk-top{font-family:Outfit,system-ui,sans-serif;font-weight:600;font-size:13px;line-height:20px;color:var(--ink);margin:0 0 4px}
.hk-stv .hk-key{display:flex;gap:4px 12px;flex-wrap:wrap;margin-top:4px}
.hk-stv .hk-sw{display:inline-block;width:8px;height:12px;border-radius:1px;vertical-align:-2px;margin-right:4px}
.hk-stv .hk-sw-bar{background:var(--hk-r4)}
.hk-stv .hk-sw-hatch{background:repeating-linear-gradient(45deg,var(--hk-sand-s) 0 1px,transparent 1px 3px)}
#topic-list > button{position:relative}
#topic-list .hk-topic-spark{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-end;gap:4px;pointer-events:none}
#topic-list .hk-topic-spark svg{display:block}
#topic-list .hk-cnt{font-size:12px;line-height:16px;font-weight:600;color:var(--brand);background:var(--brand-soft);border-radius:4px;padding:0 4px;white-space:nowrap;font-family:"Nunito Sans",system-ui,sans-serif}
#topic-list .hk-zero{font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap;font-weight:400}
#topic-list .hk-vh{position:fixed!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);left:0;top:0;margin:-1px;padding:0;border:0;white-space:nowrap}
@media (max-width:760px){
 #topic-list .hk-topic-spark svg{display:none}
 #topic-list .hk-topic-spark{position:static;transform:none;align-items:flex-start;margin:4px 0 0}
 .hk-stv .hk-k-range,.hk-stv .hk-k-hatch{display:none}
}
