/* The registers lane (spec 2026-11-24-registers): Sårbarheder, Aktører, Malware, Metoder.
   Values from tokens.css only. No coloured border, edge or stripe: rules are neutral grey,
   colour sits on the data (CVSS, the exploited dot, EPSS, the bars). */

.reg-page { max-width: 1080px; margin: 56px auto 0; }
.reg-lead { margin: 10px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-3); }
.reg-note { margin: 16px 0 0; font-size: var(--fs-table); line-height: 1.6; color: var(--ink-3); }
.reg-source { margin: 0; flex: 1 1 320px; font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-3); }
.reg-mono, .reg-id, .reg-key, .reg-tid { font-family: var(--mono); }
.reg-label { font-size: var(--fs-label); color: var(--ink-3); }
.reg-meta { font-size: var(--fs-label); color: var(--ink-3); }
.reg-crumb { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--ink-3); }
.reg-crumb:hover { color: var(--ink); }

/* Filters: chips and segmented rows (components.css, B271, B272), the search on the quiet fill */
.reg-results { margin-top: 32px; }
.reg-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.reg-search { flex: 1 1 240px; max-width: 320px; margin: 0 0 0 auto; }
.reg-search-field { display: flex; align-items: center; gap: 10px; min-height: var(--touch); padding: 0 14px; border-radius: 10px; background: var(--quiet); color: var(--ink-3); }
.reg-search-field input { flex: 1 1 auto; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-meta); color: var(--ink); }
.reg-search-field:focus-within { box-shadow: 0 0 0 2px var(--accent-fill-2); }
.reg-window { margin-top: 8px; }
.reg-results > .reg-lead { margin-top: 20px; }

/* The table: tall rows, a hairline between them, the header quiet */
.reg-scroll { margin-top: 16px; }
.reg-table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); line-height: 1.55; }
.reg-table th { padding: 8px 14px 12px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-label); font-weight: 400; color: var(--ink-3); text-align: left; white-space: nowrap; }
.reg-table td { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink); }
.reg-table tbody tr:hover td { background: var(--quiet); }
.reg-table small { display: block; margin-top: 2px; font-size: var(--fs-label); line-height: 1.5; color: var(--ink-3); }
.reg-table .reg-num { text-align: right; white-space: nowrap; }
.reg-table th:last-child, .reg-table td:last-child { padding-right: 0; }
.reg-vulns { min-width: 860px; }
.reg-entities, .reg-techniques { min-width: 720px; }
.reg-cve { width: 230px; }
.reg-cve .chip { margin-top: 6px; white-space: normal; line-height: 1.5; }
.reg-id { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--fs-meta); color: var(--ink); white-space: nowrap; }
a.reg-id:hover, .reg-name-link:hover { color: var(--accent); }
.reg-what { color: var(--body); }
.reg-epss, .reg-status { white-space: nowrap; }
.reg-last { color: var(--ink-3); }
.reg-name { min-width: 200px; }
.reg-name-link { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--fs-list-head); font-weight: 700; color: var(--ink); }
.reg-key { display: block; font-size: var(--fs-label); color: var(--ink-3); }
.reg-name .chip { margin-top: 6px; }
.reg-aliases { color: var(--ink-2); }
.reg-more { color: var(--ink-3); font-size: var(--fs-label); }
.reg-count { font-weight: 700; }

.reg-pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 16px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }
.reg-page-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); border-radius: 8px; color: var(--ink-2); font-size: var(--fs-body); }
.reg-page-btn:hover { background: var(--hover); color: var(--ink); }
.reg-page-btn.is-off { color: var(--rule); }
.reg-page-text { padding: 0 8px; }

/* A detail page: one column, sections separated by space and a hairline */
.reg-detail { max-width: 820px; }
.reg-detail .page-title { overflow-wrap: anywhere; }
.page-title.reg-id { display: block; min-height: 0; font-size: var(--fs-title); white-space: normal; }
.reg-chips { margin-top: 16px; }
.reg-desc { margin: 24px 0 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--body); }
.reg-desc-en { margin-top: 8px; font-size: var(--fs-label); color: var(--ink-3); }
.reg-desc-en summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.reg-desc-en p { margin: 4px 0 0; font-size: var(--fs-table); line-height: 1.6; color: var(--body); }
.reg-aka { margin-top: 16px; }
.reg-aka .reg-chips { margin-top: 6px; }
.reg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 32px; margin: 32px 0 0; }
.reg-facts dt { font-size: var(--fs-label); color: var(--ink-3); }
.reg-facts dd { margin: 6px 0 0; font-size: var(--fs-table); line-height: 1.5; }
.reg-facts small { display: block; margin-top: 4px; font-size: var(--fs-label); color: var(--ink-3); overflow-wrap: anywhere; }
.reg-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.reg-head { margin: 0; font-size: var(--fs-label); font-weight: 400; color: var(--ink-3); }
.reg-block { margin-top: 16px; padding: 18px 22px; border-radius: 12px; background: var(--quiet); }
.reg-block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--fs-table); font-weight: 700; }
.reg-block-head .reg-meta { font-weight: 400; }
.reg-block .reg-item-text { margin-top: 8px; }
.reg-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0 0 -10px; }
.reg-section .reg-links { margin-top: 8px; }
.reg-out, .reg-back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); padding: 0 10px; border-radius: 8px; font-size: var(--fs-meta); font-weight: 700; color: var(--accent); }
.reg-block .reg-out { margin: 4px 0 -8px -10px; }
.reg-out:hover, .reg-back:hover { background: var(--hover); }
.reg-back { margin-left: -10px; }

.reg-list { list-style: none; margin: 8px 0 0; padding: 0; }
.reg-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.reg-item:last-child { border-bottom: 0; }
.reg-item-head { display: block; font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; color: var(--ink); }
.reg-item-head a { color: var(--ink); }
a.reg-item-head:hover, .reg-item-head a:hover { color: var(--accent); }
/* A link that heads a list item is a touch target: 44 px tall at least (DESIGN.md). */
a.reg-item-head { padding: 10px 0; }
.reg-item-head svg { vertical-align: -2px; color: var(--ink-3); }
.reg-item-text { margin: 6px 0 0; font-size: var(--fs-table); line-height: 1.6; color: var(--body); }
.reg-said-when { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 4px; font-size: var(--fs-label); color: var(--ink-3); }
.reg-said-when:hover { color: var(--accent); }
.reg-item .reg-item-head + .reg-item-text + .reg-item-head, .reg-item .reg-item-text + .reg-item-head { margin-top: 14px; }
.reg-article .reg-meta { margin-top: 4px; }
/* B1356: a chip never outgrows its row (`.chip` is flex: 0 0 auto); a long technique name wraps */
.reg-chip-link { min-height: 32px; max-width: 100%; }
.reg-chip-link:hover { color: var(--chip-actor-fg); text-decoration: underline; }
/* TK-3 (B505): an actor's, malware's or technique's profile, facts and the line saying where they come from */
.reg-profile { margin: 12px 0 0; max-width: 72ch; font-size: var(--fs-body); line-height: 1.65; }
.reg-byline { margin: 8px 0 0; font-size: var(--fs-label); color: var(--ink-3); }
.reg-depth-facts { margin-top: 24px; }
.reg-head .reg-count { margin-left: 6px; font-weight: 400; color: var(--ink-3); font-size: var(--fs-label); }
.reg-model { font-weight: 700; color: var(--ink-2); }
.reg-fold { margin-top: 16px; }
.reg-fold > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: var(--fs-table); color: var(--ink-3); }

/* Mentions per week: fjord bars, an empty week a grey stub */
.reg-weeks-box { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; margin-top: 16px; }
.reg-weeks { display: block; overflow: visible; max-width: 100%; height: auto; }
.reg-bar { fill: var(--fjord); }
.reg-bar-empty { fill: var(--rule); }
.reg-weeks-text { font-size: var(--fs-label); color: var(--ink-3); }

@media (max-width: 760px) {
  .reg-page { margin-top: 32px; }
  .reg-search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .reg-block { padding: 16px; }
}

/* The vulnerability table (vulnerability spec V-1): the filter form, the tiles, the vendor bar, sortable
   heads and the column chooser. Tiles on the quiet ground; colour only on the figures and the bars. */
.vf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin-top: 12px; }
.vf-search { flex: 1 1 100%; max-width: 640px; }
.vf-help { flex: 1 1 100%; margin: 0; font-size: var(--fs-label); line-height: 1.5; color: var(--ink-3); max-width: 720px; }
.vf-cols { flex: 1 1 100%; }
.vf-cols { margin-top: 24px; }
.vf-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 14px; border-radius: 10px; background: var(--quiet); color: var(--ink-2); font-size: var(--fs-meta); cursor: pointer; list-style: none; }
.vf-toggle::-webkit-details-marker { display: none; }
.vf-toggle:hover { background: var(--hover); color: var(--ink); }
.vf-checks { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.vf-legend { padding: 0; margin-bottom: 2px; font-size: var(--fs-label); color: var(--ink-3); }
.vf-check { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); font-size: var(--fs-meta); color: var(--ink); cursor: pointer; }
.vf-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.vf-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.vf-btn { min-height: var(--touch); padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: var(--fs-meta); font-weight: 700; cursor: pointer; }
.vf-btn:hover { background: var(--accent-hover); }

.vt-coverage { margin-top: 12px; }
.vt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.vt-tile { display: flex; flex-direction: column; gap: 2px; min-height: var(--touch); padding: 14px 16px; border-radius: 12px; background: var(--quiet); color: var(--ink-3); font-size: var(--fs-label); }
.vt-tile:hover { background: var(--hover); }
.vt-n { font-size: var(--fs-head); font-weight: 700; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.vt-n.vt-bad { color: var(--brick); }
.vt-n.vt-warn { color: var(--amber); }
.vt-n.vt-info { color: var(--fjord); }
.vt-n.vt-quiet { color: var(--ink-3); }
.vt-vendors { margin-top: 24px; }
.vt-head { margin: 0 0 8px; font-size: var(--fs-meta); font-weight: 700; color: var(--ink-2); }
.vt-bars { display: grid; margin: 0; padding: 0; list-style: none; max-width: 720px; }
.vt-bar-row { display: grid; grid-template-columns: minmax(96px, 200px) 1fr 56px; align-items: center; gap: 12px; }
.vt-bar-label { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--fs-meta); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-bar-label:hover { color: var(--accent); }
.vt-bar { width: 100%; height: 10px; }
.vt-bar rect { fill: var(--fjord); }
.vt-bar-n { font-size: var(--fs-label); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.vt-stack .chip, .vt-product .chip { white-space: normal; line-height: 1.5; margin: 0 8px 4px 0; }
.chip-stack { color: var(--chip-theme-fg); }
.vt-date { white-space: nowrap; color: var(--ink-2); }
.chip-trend { color: var(--chip-week-fg); margin-top: 6px; }
.vt-named .chip { margin: 0 8px 4px 0; }
.vt-sparkline { display: block; overflow: visible; }
.vt-kinds { margin-top: 8px; }
.vt-strip-box { margin-top: 16px; }
.vt-strip { display: block; width: 100%; }
.vt-axis { stroke: var(--rule); stroke-width: 2; }
.vt-tick { stroke: var(--ink-3); stroke-width: 1; }
.vt-now { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.vt-mark.vt-exploit, .vt-dot.vt-exploit { fill: var(--brick); background: var(--brick); }
.vt-mark.vt-score, .vt-dot.vt-score { fill: var(--fjord); background: var(--fjord); }
.vt-mark.vt-news, .vt-dot.vt-news { fill: var(--moss); background: var(--moss); }
.vt-mark.vt-ours, .vt-dot.vt-ours { fill: var(--heather); background: var(--heather); }
.vt-strip-ends { display: flex; justify-content: space-between; font-size: var(--fs-label); color: var(--ink-3); }
.vt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.vt-refs-head { margin: 18px 0 0; font-size: var(--fs-meta); font-weight: 700; color: var(--ink-2); }
.vt-ref { overflow-wrap: anywhere; }
.vt-affected { min-width: 520px; margin-top: 8px; }

@media (max-width: 760px) {
  .vt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-bar-row { grid-template-columns: minmax(80px, 120px) 1fr 44px; }
}

/* The CVE detail page in more depth (B214): actions, overview, scores with their vectors in words, the timeline
   as a list with a neutral line and a coloured dot per event. Rules neutral grey; colour on the data only. */
.vd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vd-deep { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-meta); font-weight: 700; }
.vd-deep:hover { background: var(--accent-hover); color: var(--on-accent); }
.vd-overview { margin-top: 20px; }
.vd-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.vd-num { margin: 8px 0 0; display: flex; align-items: baseline; gap: 10px; }
.vd-num .cvss { font-size: var(--fs-head); font-weight: 700; }
.vd-sev { font-size: var(--fs-meta); color: var(--ink-2); }
.vd-vector { display: grid; grid-template-columns: 1fr; gap: 0; margin: 12px 0 0; }
.vd-vector > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-table); }
.vd-vector dt { color: var(--ink-3); }
.vd-vector dd { margin: 0; color: var(--ink); text-align: right; }
.vd-vector dd.is-worse { color: var(--brick); font-weight: 700; }
.vd-vector-raw { margin: 8px 0 0; font-size: var(--fs-label); color: var(--ink-3); overflow-wrap: anywhere; }
.vd-facts { margin-top: 16px; }
.vd-nvd-note { margin-top: 8px; }

.vt-axis-ticks { position: relative; height: 18px; font-size: var(--fs-label); color: var(--ink-3); }
.vt-axis-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.vt-axis-ticks span:first-child { transform: none; }
.vt-axis-ticks span:last-child { transform: translateX(-100%); }
.vt-events { position: relative; margin-top: 20px; padding-left: 0; }
.vt-event { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 20px; padding: 0 0 18px; border: 0; }
.vt-event::before { content: ""; position: absolute; left: 124px; top: 0; bottom: 0; width: 2px; background: var(--rule); }
.vt-event:last-child::before { bottom: auto; height: 14px; }
.vt-event-date { padding-top: 2px; font-size: var(--fs-meta); font-weight: 700; color: var(--ink-2); text-align: right; }
/* B1356: the column may shrink below its longest word, and an unbroken string (a CVSS vector) breaks anywhere */
.vt-event-body { position: relative; min-width: 0; padding-left: 22px; overflow-wrap: anywhere; }
.vt-event-body .vt-dot { position: absolute; left: -1px; top: 6px; width: 12px; height: 12px; margin: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--page); }
.vt-event-kind { font-size: var(--fs-label); color: var(--ink-3); }
.vt-event-text { display: block; font-size: var(--fs-list-head); font-weight: 700; line-height: 1.4; color: var(--ink); }
a.vt-event-text { padding: 10px 0; margin: -10px 0; }
a.vt-event-text:hover { color: var(--accent); }
.vt-event-info { margin-top: 2px; font-size: var(--fs-table); line-height: 1.5; color: var(--body); }
.vt-event-deep { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); font-size: var(--fs-label); color: var(--accent); }
@media (max-width: 760px) {
  .vt-event { grid-template-columns: minmax(0, 1fr); }
  .vt-event::before { left: 5px; }
  .vt-event-date { text-align: left; padding-left: 22px; }
  .vt-event-body .vt-dot { left: 0; top: -16px; }
  .vt-axis-ticks span:not(:first-child):not(:last-child) { display: none; }
}
