/* The portal's only stylesheet. Values come from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.main { flex: 1 1 auto; min-width: 0; padding: 20px 40px 96px; }
/* The rail gives its width to the content (Michael, 26 Nov, B227; it kept its place since 23 Nov): the main
   column grows by the 192 px the sidebar frees, and the reading column widens with it. */
.sidebar.is-rail ~ .main { --reading: var(--reading-wide); }

/* Sidebar, open and as a rail */
.sidebar { flex: 0 0 var(--sidebar-open); position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--nav-bg); padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; min-height: 24px; }
.brand-mark { display: flex; color: var(--ink); }
.brand-name { flex: 1 1 auto; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand form { margin: -10px -10px -10px 0; }
.icon-btn { width: var(--touch); height: var(--touch); border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.is-accent { color: var(--accent); }
.brand .icon-btn { color: var(--ink-3); }
.search { display: flex; align-items: center; gap: 10px; min-height: var(--touch); padding: 0 12px; border: 1px solid var(--sand-rule); border-radius: 10px; background: var(--page); color: var(--ink-3); font-size: var(--fs-meta); text-align: left; cursor: pointer; }
.search-label { flex: 1 1 auto; }
.search-key { font-size: var(--fs-small); }
.nav { flex: 1 0 auto; display: flex; flex-direction: column; gap: 22px; }
.nav-group.is-bottom { margin-top: auto; }  /* the threat library sits at the bottom, above the foot (B830) */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.group-label { padding: 0 10px 6px; font-size: var(--fs-small); color: var(--ink-3); }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: var(--touch); padding: 0 10px; border-radius: 8px; font-size: var(--fs-meta); color: var(--ink); }
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.is-active { background: var(--sidebar-active); font-weight: 700; }
.nav-item.is-soon { color: var(--ink-2); cursor: default; }
.nav-icon { display: flex; color: var(--ink-3); }
.nav-item.is-active .nav-icon { color: var(--accent); }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.reader { display: flex; align-items: center; gap: 10px; min-height: var(--touch); padding: 0 10px; font-size: var(--fs-meta); }
.avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--chip-theme-bg); color: var(--chip-theme-fg); font-size: var(--fs-small); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* The navy sidebar (B608, Michael 28 Nov): a filled deep navy panel, white text and icons, the active item a lighter
   navy fill and hover a step between. No edge, stripe or border on any item. */
.sidebar { color: var(--nav-ink); }
.sidebar .brand-mark, .sidebar .brand-name { color: var(--nav-ink); }
.sidebar .icon-btn, .sidebar .brand .icon-btn, .is-rail .brand .icon-btn { color: var(--nav-ink-2); }
.sidebar .icon-btn:hover { background: var(--nav-hover); color: var(--nav-ink); }
.sidebar .search { border-color: var(--nav-rule); background: rgba(255, 255, 255, .06); color: var(--nav-ink-2); }
.sidebar .search:hover { background: var(--nav-hover); }
.sidebar .group-label { color: var(--nav-ink-3); }
.sidebar .nav-item, .sidebar .reader, .sidebar .logout { color: var(--nav-ink-2); }
.sidebar .nav-item:hover { background: var(--nav-hover); color: var(--nav-ink); }
.sidebar .nav-item.is-active { background: var(--nav-active); color: var(--nav-ink); }
.sidebar .nav-item.is-soon { color: var(--nav-ink-3); }
.sidebar .nav-item.is-soon:hover { background: none; color: var(--nav-ink-3); }
.sidebar .nav-icon { color: var(--nav-ink-3); }
.sidebar .nav-item:hover .nav-icon, .sidebar .nav-item.is-active .nav-icon { color: var(--nav-ink); }
.sidebar .reader .nav-label { color: var(--nav-ink); }
.sidebar :focus-visible { outline-color: var(--nav-ink); }

/* The app's canvas (B609): the shell sits on cool light grey; each page's content is one white sheet with a neutral
   1 px rule, so the brief's story text and every form keep reading on white. Public pages stay white. */
.shell { background: var(--canvas); }
.shell .main > :is(.risk-page, .stack-page, .org-page, .reg-page, .surface-page, .req, .settings-col),
.shell .page-grid > .reading {
  background: var(--card); border: 1px solid var(--card-rule); border-radius: 12px; padding: 8px 40px 40px;
}
.shell .page-grid > .reading { flex-basis: calc(var(--reading) + 82px); padding-top: 24px; } /* the text column keeps its width inside the sheet */
@media (max-width: 900px) {
  .shell .main > :is(.risk-page, .stack-page, .org-page, .reg-page, .surface-page, .req, .settings-col),
  .shell .page-grid > .reading { padding: 4px 16px 28px; border-radius: 10px; }
}

/* The rail on a wide screen only; under 900 px the menu is a drawer with its labels (B227) */
@media (min-width: 901px) {
.sidebar.is-rail { flex-basis: var(--sidebar-rail); padding: 20px 10px; align-items: center; }
.is-rail .brand { padding: 0; justify-content: center; }
.is-rail .brand form { margin: 0; }
.is-rail .brand .icon-btn { color: var(--nav-ink); } /* the logo stays light on the dark rail (Michael's QA, 28 Nov) */
.is-rail .search { width: var(--touch); padding: 0; justify-content: center; }
.is-rail .search-label, .is-rail .search-key, .is-rail .nav-label, .is-rail .group-label { display: none; }
.is-rail .nav-group { gap: 2px; }
.is-rail .nav-item, .is-rail .reader, .is-rail .logout { width: var(--touch); padding: 0; justify-content: center; }
}

/* Top row */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--touch); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: var(--fs-meta); color: var(--ink-3); }
.crumb-here { color: var(--ink); }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.top-btn { display: flex; align-items: center; min-height: var(--touch); padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-size: var(--fs-meta); }
.top-btn:hover { background: var(--hover); color: var(--ink); }

/* Reading column and "På denne side" */
.page-grid { display: flex; justify-content: center; gap: 72px; margin-top: 56px; }
.reading { flex: 0 1 var(--reading); min-width: 0; }
.toc { flex: 0 0 200px; position: sticky; top: 24px; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; padding-top: 6px; max-height: calc(100vh - 48px); overflow-y: auto; }
.toc-label { font-size: var(--fs-small); color: var(--ink-3); padding-bottom: 8px; }
/* "På denne side" folds away to its button; the column keeps its width, so the reading column never moves */
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 4px; }
.toc-head .toc-label { padding-bottom: 0; }
.toc-head form { margin: 0; }
.toc-toggle { color: var(--ink-3); }
.toc-items { display: flex; flex-direction: column; gap: 2px; }
.toc-closed .toc-label, .toc-closed .toc-items { display: none; }
.toc-closed .toc-head { justify-content: flex-end; }
.toc-item { display: flex; align-items: center; min-height: 32px; font-size: var(--fs-meta); color: var(--ink-3); }
.toc-item:hover { color: var(--ink); }
.toc-sub { padding-left: 12px; }

/* The brief */
.kicker { font-size: var(--fs-label); color: var(--ink-3); }
.page-title { margin: 10px 0 0; font-size: var(--fs-title); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.brief-lead { margin: 28px 0 0; font-size: var(--fs-brief-lead); line-height: 1.55; }
/* "Hvad betyder det for jer" (H-4, B831 to B833): rows on the neutral rule, colour on the reason only (B270). */
.foryou { margin: 24px 0 8px; }
.foryou-list { list-style: none; margin: 8px 0 0; padding: 0; }
.foryou-row { border-top: 1px solid var(--rule); }
.foryou-list > .foryou-row:first-child { border-top: 0; }
.foryou-link { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; min-height: var(--touch); padding: 10px 0; color: var(--ink); text-decoration: none; }
.foryou-link:hover .foryou-head, .foryou-link:focus-visible .foryou-head { color: var(--accent); text-decoration: underline; }
.foryou-head { flex: 1 1 320px; min-width: 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.foryou-why { flex: 0 1 auto; display: inline-flex; align-items: baseline; gap: 6px; }
.foryou-chip.is-exploited { color: var(--brick); }
.foryou-chip.is-named { color: var(--chip-theme-fg); }
.foryou-chip.is-supplier { color: var(--chip-actor-fg); }
.foryou-chip.is-stack { color: var(--chip-eu-fg); }
.foryou-chip.is-sector { color: var(--chip-nordic-fg); }
.foryou-extra { font-size: var(--fs-label); color: var(--ink-3); }
.foryou-more { border-top: 1px solid var(--rule); }
.foryou-more-sum { display: flex; align-items: center; min-height: var(--touch); color: var(--ink-2); font-size: var(--fs-meta); cursor: pointer; }
.foryou-more .foryou-list { margin: 0; }
.foryou-more .foryou-list > .foryou-row:first-child { border-top: 1px solid var(--rule); }
.foryou-line { margin: 8px 0 0; font-size: var(--fs-table); line-height: 1.55; color: var(--ink-2); }
.foryou-guide { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--accent); font-weight: 600; }
.foryou-note { margin: 4px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }
.label-head { margin: 0 0 8px; font-size: var(--fs-label); font-weight: 400; color: var(--ink-3); }
.section-head { margin: 8px 0 0; font-size: var(--fs-head); line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.rule { height: 1px; background: var(--rule); }
.rule-wide { margin: 32px 0; }
section { scroll-margin-top: 24px; }
/* A thin neutral divider between the brief's sections (Michael, 23 Nov) */
.reading > section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }

.lede { margin-top: 48px; }
.lede .story-text:first-of-type { margin-top: 0; }
.topics { margin-top: 64px; }
.topic-row { display: flex; gap: 20px; padding: 18px 12px; margin: 0 -12px; border-radius: 10px; }
.topic-row:hover { background: var(--quiet); }
.topic-row > .chip { align-self: flex-start; }
.topic-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.topic-head { font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; color: var(--ink); }
.topic-head:hover { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips-story { gap: 8px; margin-top: 16px; }
/* A text highlight (B270): coloured text and a small square in the same colour; no fill, no round pill. */
.chip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: var(--fs-label); line-height: 26px; padding: 0; color: var(--chip-neutral-fg); }
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: .85; }
.chip:not([class*="chip-"]):not([class*=" is-"])::before, .chip.chip-later::before, .chip.chip-cve::before { background: var(--ink-3); opacity: .45; }
.chip:has(> .dot)::before { display: none; }
.chip-theme, .chip-now { line-height: 24px; color: var(--chip-theme-fg); }
.chip-week { line-height: 24px; color: var(--chip-week-fg); }
.chip-later { line-height: 24px; }
.chip-actor { color: var(--chip-actor-fg); }
.chip-nordic { color: var(--chip-nordic-fg); }
.chip-eu { line-height: 24px; color: var(--chip-eu-fg); }
.chip-cve { font-family: var(--mono); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brick); }
/* A phase 4 lane's chip on a story (spec 2026-11-25-phase4-risk section 4): a link with a 44 px hit area. */
.chip-lane { position: relative; text-decoration: none; }
.chip-lane::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; min-height: 44px; transform: translateY(-50%); }
.chip-lane:hover, .chip-lane:focus-visible { text-decoration: underline; }
.chip-lane.is-info { color: var(--chip-theme-fg); }
.chip-lane.is-warn { color: var(--chip-eu-fg); }
.chip-lane.is-bad { color: var(--brick); }

.subline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 4px 0 -8px -10px; }
.story > .subline { margin: 12px 0 0 -10px; }
.action .subline { margin: 4px 0 0 -10px; }
.subline-source, .sub-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font-size: var(--fs-meta); cursor: pointer; }
.subline-source:hover, .sub-btn:hover { background: var(--hover); color: var(--ink); }
.sub-btn.is-accent { color: var(--accent); }
.sub-btn:disabled, .sub-btn:disabled:hover { background: transparent; color: var(--ink-3); opacity: .6; cursor: default; }  /* A-5c (B2422) */

.story { margin-top: 72px; }
.story-lead { margin: 28px 0 0; font-size: var(--fs-lead); line-height: 1.6; }
.story-text { margin: 22px 0 0; font-size: var(--fs-body); line-height: var(--leading-read); color: var(--body); }
.marks { font-size: var(--fs-small); line-height: 0; vertical-align: 4px; }
.assessment { margin-top: 32px; padding: 24px 28px; border-radius: 14px; background: var(--quiet); }
.assessment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-label); color: var(--ink-3); }
.assessment p { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.65; }

.actions { margin-top: 72px; }
.brief-urgency { max-width: 480px; margin: 16px 0 8px; } /* B613 */
.action { display: flex; gap: 20px; margin-top: 32px; }
.rule-wide + .action { margin-top: 0; }
.action-num { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: var(--fs-label); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.action-body { flex: 1 1 auto; min-width: 0; }
.action-head { margin: 8px 0 0; font-size: var(--fs-lead); line-height: 1.4; font-weight: 700; }
.action-text { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.65; color: var(--body); }
.ask-team { margin-top: 16px; padding: 18px 22px 8px; border-radius: 12px; background: var(--accent-fill); }
.ask-team-head { font-size: var(--fs-label); font-weight: 700; color: var(--accent); }
.ask-team p { margin: 6px 0 0; font-size: var(--fs-body); line-height: 1.6; }
.ask-team-link { display: inline-flex; align-items: center; min-height: var(--touch); font-size: var(--fs-meta); font-weight: 700; }

.signals { margin-top: 56px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; margin-top: 28px; }
.tile-label { font-size: var(--fs-meta); color: var(--ink-3); }
.tile-value { margin-top: 6px; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.tile-value.is-fjord { color: var(--fjord); }
.tile-value.is-heather { color: var(--heather); }
.tile-value.is-amber { color: var(--amber); }
.tile-normal { margin-top: 6px; font-size: var(--fs-label); color: var(--ink-3); }
/* The 30-day chart in a tile: grey band for normal, grey line, today in the tile's colour. */
.tile-plot { position: relative; margin-top: 14px; }
.tile-chart { display: block; width: 100%; height: 48px; overflow: visible; }
.tile-chart-band { fill: var(--rule); }
.tile-chart-line { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.tile-chart-today { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--page); }
.tile-chart-today.is-fjord { background: var(--fjord); }
.tile-chart-today.is-heather { background: var(--heather); }
.tile-chart-today.is-amber { background: var(--amber); }

.sources { margin-top: 72px; }
.source-list { list-style: none; margin: 20px 0 0; padding: 0; }
.source-list li { display: flex; gap: 14px; padding: 10px 0; font-size: var(--fs-table); line-height: 1.55; scroll-margin-top: 24px; }
.source-list li:target { background: var(--quiet); }
.source-n { flex: 0 0 28px; color: var(--ink-3); font-size: var(--fs-label); text-align: right; line-height: 24px; }
.source-body { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.source-host { font-size: var(--fs-label); color: var(--ink-3); }

/* The side panel ("Læs mere", Michael 23 Nov): slides in from the right over
   the content; hidden while empty. No border: a shadow lifts it. */
.side-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 20; width: min(460px, 100vw); overflow-y: auto; background: var(--page); box-shadow: -12px 0 32px rgba(16, 24, 40, .12); animation: panel-in .18s ease-out; }
.side-panel:empty { display: none; }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel { padding: 16px 28px 48px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; margin: -16px -28px 0; padding: 8px 12px 8px 28px; background: var(--page); }
.panel-kind { font-size: var(--fs-label); color: var(--ink-3); }
.panel-close { display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.panel-close:hover { background: var(--hover); color: var(--ink); }
.panel-title { margin: 4px 0 0; font-size: var(--fs-head); line-height: 1.3; letter-spacing: -.01em; font-weight: 700; overflow-wrap: anywhere; }
.panel .chips { margin-top: 12px; }
.panel-text { margin: 16px 0 0; font-size: var(--fs-body); line-height: 1.65; color: var(--body); }
.panel-head { margin: 32px 0 0; font-size: var(--fs-label); font-weight: 400; color: var(--ink-3); }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.panel-item:last-child { border-bottom: 0; }
.panel-item-head { font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; }
.panel-item-text { margin: 6px 0 0; font-size: var(--fs-table); line-height: 1.6; color: var(--body); }
.panel-link { display: inline-flex; align-items: center; min-height: var(--touch); font-size: var(--fs-meta); font-weight: 700; }
.panel-sources { list-style: none; margin: 8px 0 0; padding: 0; }
.panel-sources li { display: flex; gap: 12px; padding: 8px 0; font-size: var(--fs-table); line-height: 1.5; }
.ref-page .panel { padding: 0; }
.ref-page .panel-top { position: static; margin: 0; padding: 0; }

/* --- "Gå i dybden" (B27, spec 2026-11-23-deep-dive): the conversation about a theme in the side panel.
   One line of context, then the ask box, the suggestions and the answers. No border on any box. */
.deep-context { margin: 8px 0 0; font-size: var(--fs-meta); line-height: 1.5; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.deep-ask { margin-top: 16px; }
.deep-basis { margin: 8px 0 0; font-size: var(--fs-label); color: var(--ink-3); }
.deep-thread { margin-top: 8px; }
.deep-turn { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.deep-q { margin: 0 0 8px; font-size: var(--fs-table); font-weight: 700; line-height: 1.5; color: var(--ink); }
.deep-you { display: block; font-size: var(--fs-label); font-weight: 400; color: var(--ink-3); }
.deep-a { margin: 10px 0 0; font-size: var(--fs-table); line-height: 1.65; color: var(--body); }
.deep-msg { margin: 10px 0 0; font-size: var(--fs-table); line-height: 1.6; color: var(--ink-2); }
.deep-sub { margin: 16px 0 0; font-size: var(--fs-label); color: var(--ink-3); }
.deep-turn .chip { margin-top: 4px; }
.deep-box { display: flex; gap: 8px; }
.deep-input { flex: 1 1 auto; min-width: 0; min-height: var(--touch); padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; font-size: var(--fs-table); }
.deep-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.deep-send { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: var(--fs-meta); font-weight: 700; cursor: pointer; }
.deep-send:hover { background: var(--accent-hover); }
.deep-busy { display: none; margin: 10px 0 0; font-size: var(--fs-label); color: var(--ink-3); }
.deep-ask.htmx-request .deep-busy { display: block; }
.deep-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.deep-chip { min-height: var(--touch); padding: 8px 14px; border: 0; border-radius: 6px; background: var(--accent-fill-2); color: var(--accent); font: inherit; font-size: var(--fs-label); line-height: 1.4; text-align: left; cursor: pointer; }
.deep-chip:hover { background: var(--accent-fill); }
.deep-input:disabled, .deep-send:disabled, .deep-chip:disabled { opacity: .55; cursor: not-allowed; }
.deep-send:disabled:hover { background: var(--accent); }
.deep-chip:disabled:hover { background: var(--accent-fill-2); }
@media (max-width: 480px) { .panel.deep { padding-left: 20px; padding-right: 20px; } .deep .panel-top { margin-left: -20px; margin-right: -20px; padding-left: 20px; } }
/* --- end of "Gå i dybden" --- */

/* --- Brief parity, lane A (spec 2026-11-23-brief-parity: P-1 to P-6, P-11) ---
   Topics, stories, charts and actions. Only lane A adds rules here, its
   narrow-screen rules included. */

/* P-1: "Dagens emner" */
.topics-sub { margin: 28px 0 4px; font-size: var(--fs-label); font-weight: 700; color: var(--ink-2); }
.topics .label-head + .topics-sub { margin-top: 8px; }
.topic-head { display: flex; flex-direction: column; gap: 2px; }
.topic-label { font-weight: 700; }
.topic-head .topic-headline { font-size: var(--fs-meta); font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.ioc-chip { display: inline-flex; align-items: center; min-height: var(--touch); margin: -9px 0; padding: 0 10px; border-radius: 8px; font-size: var(--fs-label); color: var(--accent); }
.ioc-chip:hover { background: var(--hover); }
.news { list-style: none; margin: 0; padding: 0; }
.news-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: var(--fs-table); line-height: 1.6; color: var(--body); }
.news-row + .news-row { border-top: 1px solid var(--rule); }
.news-row > .chip { margin-top: 1px; }
.news-text { min-width: 0; }
.news-text b { color: var(--ink); }
.news-empty { margin: 8px 0 0; font-size: var(--fs-table); color: var(--ink-3); }
.see-story { display: inline-flex; align-items: center; min-height: var(--touch); margin: -12px 0; padding: 0 6px; border-radius: 8px; font-size: var(--fs-meta); }
.see-story:hover { background: var(--hover); }
.chip-cc { font-family: var(--mono); line-height: 24px; }
.chip-cc-nord { color: var(--chip-nordic-fg); }
.chip-cc-vest, .chip-cc-ost { color: var(--chip-theme-fg); }
.chip-cc-eu { color: var(--chip-eu-fg); }

/* P-2: key numbers and "ubekræftet" */
.knums { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px 32px; margin-top: 28px; }
.knum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.knum-big { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.knum-small { font-size: var(--fs-lead); font-weight: 700; }
.knum-caption { flex: 1 0 100%; margin-top: 6px; font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-2); }
.knum-compare { flex: 1 0 100%; margin-top: 2px; font-size: var(--fs-label); line-height: 1.5; color: var(--ink-3); }
.knum.is-brick .knum-big, .knum.is-brick .knum-small { color: var(--brick); }
.knum.is-amber .knum-big, .knum.is-amber .knum-small { color: var(--amber); }
.knum.is-heather .knum-big, .knum.is-heather .knum-small { color: var(--heather); }
.knum.is-ink3 .knum-big, .knum.is-ink3 .knum-small { color: var(--ink-3); }
.knumbers { margin-top: 72px; }
.ktiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 32px; margin-top: 20px; }
.ktile { display: flex; flex-direction: column; gap: 6px; min-height: var(--touch); padding: 12px; margin: 0 -12px; border-radius: 10px; color: var(--ink); }
.ktile:hover { background: var(--quiet); color: var(--ink); }
.ktile-label { font-size: var(--fs-label); color: var(--ink-3); }
.ktile-big { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.ktile-big.is-fjord { color: var(--fjord); }
.ktile-big.is-heather { color: var(--heather); }
.ktile-big.is-amber { color: var(--amber); }
.ktile-small { font-size: var(--fs-meta); color: var(--ink-3); }
.ktile-text { font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-2); }
.chip-unconfirmed { line-height: 22px; vertical-align: 1px; }

/* P-3: charts in a story (shared head) and the patch timeline */
.chart { margin-top: 36px; }
.chart-head { margin: 0; font-size: var(--fs-list-head); line-height: 1.45; font-weight: 700; }
.chart-sub { margin: 4px 0 0; font-size: var(--fs-label); color: var(--ink-3); }
.tl-plot { margin-top: 12px; }
.tl-above { position: relative; height: 18px; }
.tl-today-label { position: absolute; white-space: nowrap; font-size: var(--fs-small); color: var(--fjord); }
.tl-today-label.is-middle { transform: translateX(-50%); }
.tl-today-label.is-end { transform: translateX(-100%); }
.tl-svg { display: block; width: 100%; height: 40px; overflow: visible; }
.tl-track { stroke: var(--ink-3); stroke-width: 1; opacity: .5; }
.tl-gap { fill: var(--rule); }
.tl-bracket { fill: none; stroke: var(--brick); stroke-width: 1.5; }
.tl-today { stroke: var(--fjord); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tl-dot { stroke: var(--page); stroke-width: 1.5; }
.tl-fix { fill: var(--moss); background: var(--moss); }
.tl-exploited { fill: var(--brick); background: var(--brick); }
.tl-other { fill: var(--ink-3); background: var(--ink-3); }
.tl-moss { fill: var(--moss); }
.tl-amber { fill: var(--amber); }
.axis-ticks { position: relative; height: 20px; margin-top: 4px; font-size: var(--fs-small); color: var(--ink-3); }
.axis-ticks .tick { position: absolute; top: 0; white-space: nowrap; }  /* scoped: the landing page's price list uses .tick too */
.tick-start { left: 0; }
.tick-end { right: 0; }
.tick-middle { transform: translateX(-50%); }
.tl-gap-label { margin: 8px 0 0; font-size: var(--fs-meta); font-weight: 700; color: var(--brick); }
.tl-events { list-style: none; margin: 14px 0 0; padding: 0; }
.tl-event { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: var(--fs-table); line-height: 1.55; color: var(--body); }
.tl-event > .legend-dot { align-self: flex-start; margin-top: 7px; }
.tl-event > span:last-child { flex: 1 1 auto; min-width: 0; }
.tl-date { flex: 0 0 64px; font-size: var(--fs-label); color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: var(--fs-label); color: var(--ink-3); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { flex: 0 0 auto; display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend-dash { display: inline-block; width: 14px; border-top: 2px dashed var(--fjord); }

/* P-3: the vendor board */
.vendor-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.vendor-row, .vendor-axis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(120px, 34%); align-items: center; gap: 8px 16px; }
.vendor-row { padding: 10px 0; }
.vendor-row + .vendor-row { border-top: 1px solid var(--rule); }
.vendor-name { font-size: var(--fs-table); line-height: 1.45; }
.vendor-note { display: block; font-size: var(--fs-label); color: var(--ink-3); }
.vendor-track { display: block; width: 100%; height: 20px; overflow: visible; }
.vendor-dotted { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 2 4; }
.vendor-bar { fill: var(--amber); }
.vendor-axis .axis-ticks { grid-column: 3; }
.chip-vendor-ok { color: var(--chip-week-fg); }
.chip-vendor-warm { color: var(--chip-eu-fg); }
/* P-5: the action details */
.action-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.action-owner { font-size: var(--fs-label); color: var(--ink-2); }
.chip-month { line-height: 24px; }
.action-link { margin: 12px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }
.action-anchor { display: inline-flex; align-items: center; min-height: var(--touch); margin: -12px 0; font-weight: 700; }
.checklist { margin-top: 12px; }
.checklist summary { display: flex; align-items: center; min-height: var(--touch); cursor: pointer; font-size: var(--fs-meta); font-weight: 700; color: var(--accent); }
.checklist ul { margin: 4px 0 0; padding-left: 20px; }
.checklist li { padding: 4px 0; font-size: var(--fs-table); line-height: 1.55; color: var(--body); }

/* P-6: the indicator block */
.iocs { margin-top: 32px; scroll-margin-top: 24px; }
.iocs-text { margin: 6px 0 0; font-size: var(--fs-table); line-height: 1.6; color: var(--body); }
.iocs-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ioc-download { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 16px; border-radius: 10px; background: var(--accent-fill-2); color: var(--accent); font-size: var(--fs-meta); font-weight: 700; }
.ioc-download:hover { background: var(--accent-fill); }

/* P-11: the signals figure in a story */
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin-top: 14px; }
.sig-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-meta); }
.sig-value { font-size: var(--fs-list-head); font-weight: 700; }
.sig-value.is-hot { color: var(--brick); }
.sig-value.is-cool { color: var(--fjord); }
.sig-plot { position: relative; margin-top: 6px; }
.sig-svg { display: block; width: 100%; height: 80px; }
.sig-band { fill: var(--rule); }
.sig-line { fill: none; stroke: var(--fjord); stroke-width: 2; stroke-linejoin: round; }
.sig-last { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--fjord); }
.sig-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: var(--fs-small); color: var(--ink-3); }

/* P-4: victims per country and the groups this week */
.vbar-rows, .gbar-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.vbar-row, .gbar-row { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) minmax(32px, auto); align-items: center; gap: 12px; padding: 4px 0; font-size: var(--fs-meta); }
.vbar-name { overflow-wrap: anywhere; }
.vbar { display: block; width: 100%; height: 12px; }
.gbar-row .vbar { height: 16px; }
.vbar-total { font-weight: 700; text-align: right; }
.gbar-label { font-size: var(--fs-label); color: var(--ink-3); white-space: nowrap; text-align: right; }
.gbar-label.is-up { color: var(--brick); }
.gbar-label.is-down { color: var(--moss); }
.gbar-before { stroke: var(--ink-2); stroke-width: 2; }
.legend-square { flex: 0 0 auto; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.legend-tick { display: inline-block; width: 2px; height: 12px; background: var(--ink-2); }
.chart-note { margin: 8px 0 0; font-size: var(--fs-label); line-height: 1.5; color: var(--ink-3); }
.tone-fjord { fill: var(--fjord); background: var(--fjord); }
.tone-heather { fill: var(--heather); background: var(--heather); }
.tone-amber { fill: var(--amber); background: var(--amber); }
.tone-moss { fill: var(--moss); background: var(--moss); }
.tone-teal { fill: var(--chip-nordic-fg); background: var(--chip-nordic-fg); }
.tone-ink3 { fill: var(--ink-3); background: var(--ink-3); }
.tone-others { fill: var(--ink-3); background: var(--ink-3); opacity: .3; }
.legend-square.tone-others { opacity: .3; }
@media (max-width: 520px) {
  .vbar-row, .gbar-row { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) minmax(28px, auto); gap: 8px; }
}
@media (max-width: 520px) {
  .vendor-row, .vendor-axis { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .vendor-name { grid-column: 1 / -1; }
  .vendor-axis .axis-ticks { grid-column: 2; }
}
/* --- end of lane A --- */

/* Login and not-found */
.plain { max-width: 560px; margin: 96px auto; padding: 0 16px; }
.button { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 18px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-meta); font-weight: 700; }
.button:hover { background: var(--accent-hover); color: var(--on-accent); }

/* Login and setup (spec 2026-11-22-portal-auth) */
.auth { max-width: 400px; margin: 72px auto; padding: 0 16px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: var(--fs-list-head); font-weight: 700; }
.auth-title { margin: 40px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.auth-text { margin: 12px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.auth-small { font-size: var(--fs-meta); }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: var(--fs-label); color: var(--ink-2); }
.input { min-height: var(--touch); padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; font-size: var(--fs-body); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.input-code { font-family: var(--mono); letter-spacing: .12em; }
.button { border: 0; cursor: pointer; font-family: inherit; }
.button-wide { justify-content: center; width: 100%; }
.form-error { margin: 20px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--quiet); color: var(--brick); font-size: var(--fs-meta); line-height: 1.5; }
.form-notice { margin: 20px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--accent-fill); color: var(--ink); font-size: var(--fs-meta); line-height: 1.5; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; }
.auth-link { display: inline-flex; align-items: center; min-height: var(--touch); font-size: var(--fs-meta); }
.qr { margin: 24px 0 0; width: 200px; }
.qr svg { display: block; width: 100%; height: auto; }
.secret { font-family: var(--mono); font-size: var(--fs-meta); color: var(--ink); overflow-wrap: anywhere; }
.recovery-codes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 24px 0; padding: 16px; border-radius: 10px; background: var(--quiet); }
.recovery-code { font-family: var(--mono); font-size: var(--fs-table); line-height: 1.6; }
.logout-form { margin: 0; }
.logout { width: 100%; border: 0; background: transparent; font: inherit; font-size: var(--fs-meta); cursor: pointer; text-align: left; }
/* The theme button (B777): one form, two buttons; only the one that offers the other theme shows */
.theme-form { margin: 0; }
.theme-form .nav-item { width: 100%; border: 0; background: transparent; font: inherit; font-size: var(--fs-meta); cursor: pointer; text-align: left; }
.sidebar .theme-form .nav-item { color: var(--nav-ink-2); }
.sidebar .theme-form .nav-item:hover { background: var(--nav-hover); color: var(--nav-ink); }
.is-rail .theme-form .nav-item { width: var(--touch); padding: 0; justify-content: center; }
.theme-to-light { display: none; }
:root[data-theme="dark"] .theme-form .theme-to-dark { display: none; }
:root[data-theme="dark"] .theme-form .theme-to-light { display: flex; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-form .theme-to-dark { display: none; }
  :root[data-theme="auto"] .theme-form .theme-to-light { display: flex; }
}

/* Narrow screens */
@media (max-width: 1100px) {
  .toc { display: none; }
}
@media (max-width: 760px) {
  .main, .sidebar.is-rail ~ .main { padding: 12px 16px 64px; }
  .page-grid { margin-top: 32px; }
  .page-title { font-size: 28px; }
  .topic-row { flex-direction: column; gap: 8px; }
  .assessment { padding: 20px; }
}

/* The landing page and the waitlist (spec 2026-11-22-landing-page). No
   coloured border anywhere: blocks sit on the quiet fill, sections are
   separated by space and one grey hairline. */
.site-top { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 12px 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; min-height: var(--touch); color: var(--ink); }
.site-nav { display: flex; gap: 8px; }
.site-link { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 10px; border-radius: 8px; font-size: var(--fs-meta); }
.site-link:hover { background: var(--hover); }
.landing { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero-title { margin: 0; font-size: 46px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.hero-sub { margin: 24px 0 0; font-size: var(--fs-brief-lead); line-height: 1.55; color: var(--ink-2); }
.hero-note { margin: 16px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }
.band { padding: 64px 0; border-top: 1px solid var(--rule); }
.band-head { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.why { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: why; }
.why-item { counter-increment: why; font-size: var(--fs-lead); line-height: 1.5; color: var(--body); }
.why-item::before { content: counter(why); display: block; margin-bottom: 10px; font-size: var(--fs-label); font-weight: 700; color: var(--accent); }
.mission { margin: 40px 0 0; max-width: 780px; font-size: var(--fs-head); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; margin-top: 32px; }
.block-head { margin: 20px 0 0; font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; }
.block-text { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.figure { position: relative; min-height: 196px; padding: 22px 22px 40px; border-radius: 14px; background: var(--quiet); }
.figure p { margin: 0; }
.figure-kicker, .figure-label { font-size: var(--fs-label); color: var(--ink-3); }
.figure-headline { margin-top: 8px !important; font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; color: var(--ink); }
.figure .chips { margin-top: 12px; }
.figure-source { margin-top: 12px !important; font-size: var(--fs-label); color: var(--ink-3); }
.figure-note { position: absolute; right: 16px; bottom: 12px; font-size: var(--fs-small); color: var(--ink-3); }
.figure-row { display: flex; align-items: flex-end; gap: 20px; margin-top: 10px; }
.figure-value { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.figure-value.is-brick { color: var(--brick); }
.spark { flex: 0 1 200px; height: 50px; min-width: 0; }
.bar { display: block; width: 100%; height: 12px; margin-top: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: var(--fs-label); color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.is-moss { background: var(--moss); }
.legend-dot.is-amber { background: var(--amber); }
.legend-dot.is-brick { background: var(--brick); }
.curve { display: block; width: 100%; height: auto; max-height: 120px; }
.also-head { margin: 48px 0 0; font-size: var(--fs-list-head); font-weight: 700; }
.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 32px; margin: 16px 0 0; padding: 0; list-style: none; }
.tick { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: var(--fs-body); color: var(--body); }
.tick-mark { display: flex; color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.plan { padding: 22px 20px; border-radius: 14px; background: var(--quiet); }
.plan p { margin: 0; }
.plan-name { font-size: var(--fs-label); font-weight: 700; color: var(--accent); }
.plan-amount { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.plan-name + .plan-amount { margin-top: 6px !important; }
.plan-per { margin-top: 4px !important; font-size: var(--fs-label); color: var(--ink-3); }
.plan-capacity { margin-top: 14px !important; font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-2); }
.price-text { margin: 20px 0 0; max-width: 780px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 32px; }
.trust-icon { display: flex; color: var(--accent); }
.trust-head { margin: 14px 0 0; font-size: var(--fs-list-head); font-weight: 700; }
.trust-text { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.faq { margin: 24px 0 0; max-width: 780px; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--rule); }
.faq-item:first-child { border-top: 0; }
.faq-q { font-size: var(--fs-list-head); font-weight: 700; }
.faq-a { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.cta .waitlist { max-width: 780px; }
.site-foot { display: flex; align-items: center; gap: 10px; max-width: 1080px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--rule); font-size: var(--fs-meta); color: var(--ink-3); }
.site-foot .site-link { margin-left: auto; }

.waitlist { margin-top: 32px; }
.waitlist-fields { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; }
.waitlist-submit { justify-content: center; white-space: nowrap; }
.good { margin-top: 32px; max-width: 780px; padding: 22px 22px 20px; border-radius: 14px; background: var(--quiet); }
.good-head { margin: 0; font-size: var(--fs-list-head); font-weight: 700; color: var(--ink); }
.good-text { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.waitlist-good { margin-top: 12px; }
.waitlist-good-summary { display: flex; align-items: center; min-height: var(--touch); cursor: pointer; font-size: var(--fs-meta); color: var(--accent); }
.waitlist-good[open] .waitlist-good-summary { margin-bottom: 4px; }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--touch); font-size: var(--fs-meta); color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.waitlist-good-basis { margin-top: 8px; max-width: 480px; }
.waitlist-consent { margin: 12px 0 0; font-size: var(--fs-label); line-height: 1.5; color: var(--ink-3); }
.waitlist .form-error { margin: 0 0 16px; }
.waitlist-done { padding: 20px 22px; border-radius: 14px; background: var(--accent-fill); }
.waitlist-done p { margin: 0; }
.waitlist-done-head { font-size: var(--fs-list-head); font-weight: 700; color: var(--ink); }
.waitlist-done-text { margin-top: 6px !important; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }


/* Second pass (22 Nov): real figures and examples. Colour sits on numbers,
   chips, marks, bars and lines; frames stay white or quiet grey. */
.is-fjord { color: var(--fjord); }
.is-brick { color: var(--brick); }
.is-amber { color: var(--amber); }
.is-moss { color: var(--moss); }
.is-heather { color: var(--heather); }
.muted { color: var(--ink-3); font-weight: 400; }
.hero-brief { min-height: 0; padding: 22px 22px 18px; background: var(--page); box-shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 8px 28px rgba(14, 23, 38, .08); }
.kick-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--moss); vertical-align: 1px; }
.brief-label { margin-top: 14px !important; font-size: var(--fs-label); font-weight: 700; color: var(--chip-theme-fg); }
.hero-brief .figure-headline { margin-top: 4px !important; font-size: 19px; }
.hero-brief .brief-lead { margin-top: 10px !important; font-size: var(--fs-meta); line-height: 1.6; color: var(--body); }
.mini-subline { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px !important; font-size: var(--fs-label); }
.mini-source { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.mini-more { color: var(--ink-3); }
.figure-cite { margin-top: 12px !important; font-size: var(--fs-small); color: var(--ink-3); }
.band-intro { margin: 12px 0 0; max-width: 780px; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.landing .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.landing .tile { min-height: 0; padding: 20px 20px 16px; }
.landing .tile-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.landing .tile-value { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 4px; background: var(--chip-neutral-bg); font-size: var(--fs-label); font-weight: 700; line-height: 24px; }
.tile-before { margin-top: 6px !important; font-size: var(--fs-label); color: var(--ink-3); }
.landing .tile .spark { display: block; width: 100%; height: 44px; margin-top: 12px; }
.range { display: block; width: 100%; height: 14px; margin: 22px 0 8px; }
.cite-line { margin: 16px 0 0; font-size: var(--fs-label); color: var(--ink-3); }
.morning { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.step-time { display: inline-block; font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--fjord); }
.step-head { margin: 12px 0 0; font-size: var(--fs-list-head); font-weight: 700; }
.step-text { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); }
.step-text .chip { vertical-align: 1px; }
.rows { margin: 12px 0 0; padding: 0; list-style: none; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: var(--fs-meta); }
.row:first-child { border-top: 0; }
.row-name { flex: 1 1 140px; font-weight: 700; color: var(--ink); }
.row-flag { font-size: var(--fs-label); font-weight: 700; }
.findings { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; font-size: var(--fs-meta); color: var(--body); }
.findings li { display: flex; align-items: center; gap: 8px; }
.legend-dot.is-fjord { background: var(--fjord); }
.legend-dot.is-heather { background: var(--heather); }
.loss-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 6px; }
.loss-expected { font-size: var(--fs-label); color: var(--ink-3); }
.loss-expected-value { font-size: 20px; font-weight: 700; color: var(--heather); }
.loss-tail { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; font-size: var(--fs-meta); color: var(--body); }
.block-head { display: flex; align-items: center; gap: 10px; }
.block-icon { display: inline-flex; }
.tick-mark.is-fjord { color: var(--fjord); }
.tick-mark.is-brick { color: var(--brick); }
.tick-mark.is-amber { color: var(--amber); }
.tick-mark.is-moss { color: var(--moss); }
.tick-mark.is-heather { color: var(--heather); }
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.compare-col { padding: 22px 22px 18px; border-radius: 14px; background: var(--quiet); }
.compare-col + .compare-col { background: var(--accent-fill); }
.compare-head { margin: 0; font-size: var(--fs-list-head); font-weight: 700; color: var(--ink-2); }
.compare-head.is-accent { color: var(--accent); }
.compare-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.compare-item { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-body); line-height: 1.5; color: var(--body); }
.compare-mark { display: inline-flex; flex: 0 0 18px; justify-content: center; }
.compare-mark.is-muted { color: var(--ink-3); }
.trust-icon.is-fjord { color: var(--fjord); }
.trust-icon.is-moss { color: var(--moss); }
.trust-icon.is-amber { color: var(--amber); }
.trust-icon.is-heather { color: var(--heather); }

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .landing .tiles, .morning { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .site-top { padding: 8px 16px; }
  .landing { padding: 0 16px 48px; }
  .site-foot { padding: 20px 16px; }
  .hero { padding: 40px 0 48px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: var(--fs-lead); }
  .band { padding: 48px 0; }
  .band-head { font-size: var(--fs-head); }
  .why, .blocks, .trust, .plans, .compare { grid-template-columns: 1fr; }
  .landing .tile-value { font-size: 38px; }
  .mission { font-size: 20px; }
  .waitlist-fields { grid-template-columns: 1fr; }
}

/* --- Brief parity, lane B (spec 2026-11-23-brief-parity: P-7 to P-10) ---
   Actors, glossary, recommendations, lookups, events and sources. Only
   lane B adds rules here, its narrow-screen rules included. */
.appx { margin-top: 72px; }
.appx-text { margin: 10px 0 0; font-size: var(--fs-body); line-height: 1.65; color: var(--body); }
.appx-label { font-size: var(--fs-label); color: var(--ink-3); }
.appx-sub { margin: 48px 0 0; font-size: var(--fs-label); font-weight: 400; color: var(--ink-3); }
.see-row { margin: 4px 0 -8px; }
.see-link { display: inline-flex; align-items: center; min-height: var(--touch); font-size: var(--fs-meta); }

/* P-7: actors and campaigns */
.actor { padding: 24px 0; border-top: 1px solid var(--rule); }
.section-head + .actor { margin-top: 20px; border-top: 0; padding-top: 0; }
.actor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actor-name { margin: 0 8px 0 0; font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; }
.actor-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.actor-methods .appx-label { margin-right: 4px; }
.chip-tech { flex: 0 1 auto; max-width: 100%; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.tech-id { font-family: var(--mono); }
.paths { border-top: 1px solid var(--rule); padding-top: 1px; }
.paths .appx-sub { margin-top: 24px; }
.path { margin-top: 20px; }
.path-title { margin: 0; font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; }
.path-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.path-step { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); }
.path-step > span:last-child { color: var(--chip-neutral-fg); line-height: 1.4; }
.path-arrow { color: var(--ink-3); }

/* P-8: entries, "Læs mere", the CVE table, the glossary */
.entry { padding: 24px 0; border-top: 1px solid var(--rule); }
.section-head + .entry { margin-top: 20px; border-top: 0; padding-top: 0; }
.entry-head { margin: 0; font-size: var(--fs-list-head); line-height: 1.4; font-weight: 700; }
.entry-text { white-space: pre-line; }
.readmore { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.readmore .appx-label { margin-right: 4px; }
.ref-chip { position: relative; }
.ref-chip::after { content: ""; position: absolute; inset: -9px -3px; } /* a 44 px hit area around a 26 px chip */
.ref-chip:hover { color: var(--accent); }
.table-scroll { margin-top: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cve-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--fs-table); line-height: 1.55; }
.cve-table th { padding: 8px 10px 8px 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; }
.cve-table td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cve-table small { display: block; margin-top: 2px; font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-3); }
.cve-table .see-link { min-height: 32px; }
.cve-id { font-family: var(--mono); font-size: var(--fs-meta); white-space: nowrap; }
.cve-product { min-width: 220px; }
.cve-cvss, .cve-epss, .cve-status { white-space: nowrap; }
.cvss.is-high { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--brick); color: var(--grade-ink); font-weight: 700; }
.epss { display: inline-flex; align-items: center; gap: 6px; }
.epss-gauge { flex: 0 0 auto; }
.exploited { display: inline-flex; align-items: center; gap: 6px; }
.exploited-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brick); }
.glossary { margin: 20px 0 0; }
.gloss { padding: 16px 0; border-top: 1px solid var(--rule); }
.gloss:first-child { border-top: 0; padding-top: 0; }
.gloss-term { font-size: var(--fs-list-head); font-weight: 700; }
.gloss-full { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }
.gloss-text { margin: 6px 0 0; font-size: var(--fs-body); line-height: 1.65; color: var(--body); }

/* P-9: the weekly lookups */
.entries { margin-top: 20px; }
.entries .entry:first-child { border-top: 0; padding-top: 0; }
.table-scroll + .entries { margin-top: 32px; }
.entry-label { margin: 4px 0 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.lookup-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-table); line-height: 1.55; }
.lookup-table th { padding: 8px 12px 8px 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; }
.lookup-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lookup-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.seen-with { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.seen-more { font-size: var(--fs-label); color: var(--ink-3); }
.watch { margin: 20px 0 0; padding: 0; list-style: none; }
.watch-item { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.watch-item:first-child { border-top: 0; padding-top: 0; }
.watch-day { flex: 0 0 72px; padding-top: 12px; font-size: var(--fs-meta); font-weight: 700; color: var(--ink-2); }
.watch-body { flex: 1 1 auto; min-width: 0; }

/* P-10: events under the lead, the line under "Kilder" */
.events { margin: 24px 0 0; padding: 0; list-style: none; }
.event { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: var(--fs-body); line-height: 1.55; }
.event:first-child { border-top: 0; }
.event time { flex: 0 0 64px; font-size: var(--fs-meta); font-weight: 700; color: var(--ink-2); line-height: 24px; }
.event-text { min-width: 0; color: var(--body); }
.sources-sub { margin: 8px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }
.source-body b { color: var(--ink); }
/* --- end of lane B --- */

/* --- The source reader (spec 2026-11-23-source-reader, B14): the panel is the article --- */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 0 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.article-meta b { color: var(--ink-2); }
.article-title { margin: 12px 0 0; font-size: var(--fs-head); line-height: 1.3; letter-spacing: -.01em; font-weight: 700; overflow-wrap: anywhere; }
.article-note { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.article-text { max-width: var(--reading); margin-top: 8px; }
.article-text p { margin: 16px 0 0; font-size: var(--fs-body); line-height: var(--leading-read); color: var(--body); overflow-wrap: anywhere; }
.article-empty { margin: 24px 0 0; font-size: var(--fs-body); line-height: var(--leading-read); color: var(--ink-3); }
.source-open { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); margin-top: 24px; padding: 0 16px; border-radius: 10px; background: var(--accent-fill-2); color: var(--accent); font-size: var(--fs-meta); font-weight: 700; }
.source-open:hover { background: var(--accent-fill); color: var(--accent-hover); }
.article-used { margin: 32px 0 0; padding-top: 4px; border-top: 1px solid var(--rule); font-size: var(--fs-label); color: var(--ink-3); }
.article-used-link { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--accent); }
/* --- end of the source reader --- */

/* The engine's health page (engine spec section 5). Colour on the data only. */
.ops-page { max-width: 960px; }
.ops-state { font-size: var(--fs-label); color: var(--ink-3); }
.ops-red { color: var(--brick); font-weight: 700; }
.ops-ok { color: var(--moss); }
.ops-muted { color: var(--ink-3); font-size: var(--fs-label); }
.ops-h { margin: 32px 0 8px; font-size: 18px; }
.ops-problems { margin: 8px 0 0; padding-left: 20px; }
.ops-page .table-scroll { overflow-x: auto; }

/* --- The public site (spec 2026-11-23-public-site): text only, one column --- */
.site-foot .site-foot-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.site-foot .site-foot-nav .site-link { margin-left: 0; }
.site-wordmark { font-size: var(--fs-list-head); font-weight: 700; letter-spacing: -.01em; }
.legal { max-width: 720px; margin: 0 auto; padding: 24px 24px 64px; font-size: var(--fs-body); line-height: 1.65; color: var(--body); }
.legal h2 { margin: 40px 0 8px; font-size: var(--fs-head); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.legal h3 { margin: 24px 0 4px; font-size: var(--fs-list-head); color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-title { margin: 16px 0 16px; font-size: var(--fs-title); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.legal-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 12px; }
.legal-facts dt { font-weight: 700; color: var(--ink); }
.legal-facts dd { margin: 0; }
.legal-code { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--quiet); font-size: var(--fs-table); white-space: pre-wrap; overflow-wrap: anywhere; }
.home-hero { padding: 32px 0 16px; }
.home-title { margin: 0; font-size: 40px; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); }
.legal .home-sub { margin: 20px 0 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.legal .home-note { margin: 16px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }
.home-band { padding-top: 16px; }
.home-list { margin: 0 0 12px; padding-left: 20px; }
.home-list li { margin: 0 0 6px; }
.home-mission { font-size: var(--fs-lead); font-weight: 700; color: var(--ink); }
.legal .waitlist-good-summary, .legal .check { min-height: var(--touch); }
.plan-scroll { margin: 8px 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); line-height: 1.5; }
.plan-table th, .plan-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.plan-table thead th { padding-top: 0; font-size: var(--fs-label); font-weight: 400; color: var(--ink-3); }
.plan-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.plan-price { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-table small { display: block; font-size: var(--fs-meta); color: var(--ink-3); }
@media (max-width: 760px) {
  .legal { padding: 16px 16px 48px; }
  .home-title { font-size: 30px; }
  .legal-facts { grid-template-columns: 1fr; }
  .site-foot { flex-wrap: wrap; }
}
/* --- end of the public site --- */

/* The reader's menu as a drawer under 900 px (B227): a fixed menu link targets #sidebar, which slides in over
   the page (:target); the scrim's link closes it. No form control, no JavaScript; the rail cookie does not apply. */
.drawer-btn, .drawer-scrim { display: none; }
@media (max-width: 900px) {
  .drawer-btn { display: inline-flex; align-items: center; justify-content: center; position: fixed; top: 8px; left: 8px; z-index: 30; width: var(--touch); height: var(--touch); border-radius: 10px; background: var(--nav-bg); color: var(--nav-ink); }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: min(300px, 86vw); height: 100vh; transform: translateX(-105%); transition: transform .18s ease; }
  .sidebar:target { transform: none; box-shadow: 0 8px 32px rgba(20, 20, 20, .24); }
  .drawer-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(20, 20, 20, .35); }
  .sidebar:target ~ .drawer-scrim { display: block; }
  .main, .sidebar.is-rail ~ .main { padding-top: 64px; }
}
