/* Soevereiniteitsscan, Newground style: pure black and white, lines over fills, hatching instead of
   grey, crisp pixel edges, generous white space. No gradients, no shadows, no external fonts. */

/* Baloo 2 ExtraBold (SIL Open Font License, see assets/fonts/OFL-Baloo2.txt), self-hosted and cut down
   to Latin: the closest open font to the Newground wordmark, used for the product name. */
@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/baloo2-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --hatch-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 3h1v1H0zM1 2h1v1H1zM2 1h1v1H2zM3 0h1v1H3z' fill='%23000'/%3E%3C/svg%3E");
  --hatch-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v1H0z' fill='%23000'/%3E%3C/svg%3E");
  --hatch-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM2 2h1v1H2z' fill='%23000'/%3E%3C/svg%3E");
  /* Only for diagrams (dependency map, Trust Center schema); all other text follows newground.nl. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --muted: #535353;
  --display: "Baloo 2", "Arial Rounded MT Bold", var(--sans);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --gutter: 32px;
  --side: 248px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #fff;
    --paper: #000;
    --muted: #b8b8b8;
    --hatch-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 3h1v1H0zM1 2h1v1H1zM2 1h1v1H2zM3 0h1v1H3z' fill='%23fff'/%3E%3C/svg%3E");
    --hatch-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v1H0z' fill='%23fff'/%3E%3C/svg%3E");
    --hatch-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM2 2h1v1H2z' fill='%23fff'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #fff;
  --paper: #000;
  --muted: #b8b8b8;
  --hatch-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 3h1v1H0zM1 2h1v1H1zM2 1h1v1H2zM3 0h1v1H3z' fill='%23fff'/%3E%3C/svg%3E");
  --hatch-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v1H0z' fill='%23fff'/%3E%3C/svg%3E");
  --hatch-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM2 2h1v1H2z' fill='%23fff'/%3E%3C/svg%3E");
  color-scheme: dark;
}
/* The Newground logo files are black on white; turn them around in dark mode. */
:root[data-theme="dark"] .ng-img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ng-img { filter: invert(1); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 { font: 800 clamp(30px, 4.4vw, 46px)/1.04 var(--sans); letter-spacing: -0.045em; }
h2 { font: 800 20px/1.2 var(--sans); letter-spacing: -0.03em; margin-bottom: 16px; }
h3 { font: 700 18px/1.3 var(--sans); letter-spacing: -0.02em; margin: 20px 0 10px; }
h4 { font: 700 14px/1.3 var(--sans); margin: 18px 0 8px; }
p { margin: 0 0 10px; }
.sub { font: 13px/1.45 var(--sans); color: var(--muted); }
.hint { font: 13px/1.55 var(--sans); color: var(--muted); margin: 8px 0 0; }
.mono { font-family: var(--mono); font-size: 13px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num.big { font-size: 32px; font-weight: 700; line-height: 1; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--ink); color: var(--paper); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--paper); border: 2px solid var(--ink); padding: 6px 10px; }

/* ---- Hatching ---------------------------------------------------------------------------- */
.hatch-d { background-image: var(--hatch-d); background-size: 4px 4px; image-rendering: pixelated; }
.hatch-h { background-image: var(--hatch-h); background-size: 3px 3px; image-rendering: pixelated; }

/* ---- Shell ------------------------------------------------------------------------------- */
.demo-bar { padding: 8px var(--gutter); background: var(--ink); color: var(--paper); font: 13px/1.4 var(--sans); }
.setting-reset { margin: 4px 0 0; font-size: 13px; }
.setting-reset .link { padding: 0; }
.link { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 1px 4px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: var(--paper); border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-das { width: 56px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.brand-name { font: 800 30px/1 var(--display); letter-spacing: -0.01em; padding-top: 4px; }
.brand-by { font: 12px/1 var(--sans); color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button {
  border: 0; background: var(--paper); color: var(--ink); cursor: pointer;
  font: 600 13px/1 var(--sans); padding: 9px 12px;
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.portal-org, select, input[type="search"], input[type="text"] {
  font: 15px/1.2 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; padding: 7px 28px 7px 9px; max-width: 100%;
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
input[type="search"] { padding-right: 9px; min-width: 220px; }
/* Same as the menu toggle on newground.nl: plain text, "Menu ＋". */
.menu-btn { display: none; border: 0; background: transparent; color: inherit; font: 600 15px/1 var(--sans); padding: 10px; cursor: pointer; white-space: nowrap; }

/* Settings live in the menu: role, organisation, language, appearance. */
.settings { display: grid; gap: 12px; margin: 20px 24px 0; padding-top: 18px; border-top: 1px solid var(--ink); }
.settings-title { margin: 0; font: 700 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; }
.setting { display: grid; gap: 6px; }
.setting-label { font: 700 12px/1 var(--sans); color: var(--muted); }
.setting .seg { display: flex; width: 100%; }
.setting .seg button { flex: 1 1 auto; padding-inline: 6px; }
.setting .portal-org { width: 100%; }

.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 140px); }
.sidebar { border-right: 1px solid var(--ink); padding: 24px 0; display: flex; flex-direction: column; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px var(--gutter) 10px 24px; text-decoration: none; font-size: 14px; font-weight: 600;
  border-left: 4px solid transparent;
}
.nav-list a:hover { text-decoration: underline; }
.nav-list a.active { border-left-color: var(--ink); background: var(--ink); color: var(--paper); }
.nav-n { font: 11px/1 var(--mono); }
.nav-list a.nav-sub { padding: 4px 24px 10px 56px; font: 13px/1.3 var(--sans); color: var(--muted); }
.nav-org { display: grid; gap: 2px; padding: 0 24px 18px; margin-bottom: 12px; border-bottom: 1px solid var(--ink); }
.nav-org strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

main { padding: 32px var(--gutter) 64px; max-width: 1360px; width: 100%; outline: none; }
main:focus-visible { outline: none; }
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--gutter); border-top: 2px solid var(--ink); font: 12px/1.5 var(--sans); color: var(--muted);
}
.footer-links { display: flex; gap: 14px; align-items: center; }
.footer-company { flex-basis: 100%; }
.footer-version { flex-basis: 100%; font-size: 12px; opacity: .7; }
/* Sources page: the list on its way to 1000, one stacked bar. */
.guide-bar { display: flex; width: 100%; height: 16px; border: 1px solid var(--ink); margin: 10px 0 6px; }
.guide-bar span { display: block; height: 100%; }
.guide-bar .g-judged, .guide-legend .g-judged { background: var(--ink); }
.guide-bar .g-approved, .guide-legend .g-approved { background: var(--hatch-d); }
.guide-bar .g-review, .guide-legend .g-review { background: var(--hatch-dot); }
.guide-legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.guide-legend i { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--ink); margin-right: 8px; vertical-align: middle; }
.guide-big { font-size: 40px; font-weight: 700; line-height: 1.1; margin: 4px 0 0; }
.footer-links .link { padding: 0; }

/* ---- Info tooltips (B1 explanations, mostly about what happens to your data) -------------- */
.info-wrap { position: relative; display: inline-block; vertical-align: middle; text-transform: none; letter-spacing: normal; }
.info {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink);
  font: 700 12px/1 var(--sans); cursor: pointer;
}
.info-wrap.open .info, .info:hover { background: var(--ink); color: var(--paper); }
.tip {
  display: none; position: absolute; z-index: 40; top: calc(100% + 8px); left: -140px; width: 300px;
  padding: 12px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: 400 14px/1.5 var(--sans); text-align: left; white-space: normal; box-shadow: 4px 4px 0 var(--ink);
}
.info-wrap:hover .tip, .info-wrap.open .tip, .info:focus-visible + .tip, .tag-tip:focus-visible + .tip { display: block; }
.tag-tip { cursor: pointer; background: var(--paper); color: var(--ink); }
.info-wrap.open .tag-tip, .tag-tip:hover { background: var(--ink); color: var(--paper); }

/* ---- Welcome dialog ----------------------------------------------------------------------- */
.welcome {
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  width: calc(100% - 32px); max-width: 540px; max-height: 92dvh; padding: 44px 44px 0; overflow: auto;
}
.welcome::backdrop { background: rgb(0 0 0 / 0.72); }
.welcome .dialog-close { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.welcome-kicker { font: 800 22px/1 var(--display); margin: 0 0 14px; }
.welcome h2 { font: 800 clamp(30px, 6vw, 38px)/1.05 var(--sans); letter-spacing: -0.04em; text-transform: none; margin: 0 0 18px; }
.welcome p { font-size: 16px; line-height: 1.6; }
.welcome .btn-lg { width: 100%; margin: 14px 0 10px; }
.welcome .welcome-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.welcome-by { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px -44px 0; padding: 22px 24px 26px; border-top: 1px solid var(--ink); font: 12px/1 var(--sans); color: var(--muted); }
.welcome-by img { width: 230px; height: auto; display: block; }
.btn-lg { min-height: 56px; padding: 17px 25px; font-size: 15px; }

/* ---- Rik's note before the report --------------------------------------------------------- */
.founder { max-width: 760px; }
.founder-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.founder-das { width: 64px; height: auto; flex-shrink: 0; }
.founder-kicker { font: 14px/1.4 var(--sans); color: var(--muted); margin: 0 0 6px; }
.founder-title { font: 800 28px/1.08 var(--sans); letter-spacing: -0.04em; margin: 0; }
.founder-text { font: 17px/1.65 var(--sans); max-width: 62ch; }
.founder-text p { margin-bottom: 12px; }
.founder-sign { font: 800 20px/1 var(--sans); letter-spacing: -0.03em; }
.call-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ink); display: grid; gap: 14px; justify-items: start; }
.call-fields { border: 0; padding: 0; margin: 0; width: 100%; }
.call-sent { margin-bottom: 20px; }
.report-after { margin-top: 18px; }
.verdict-about { font: 13px/1.4 var(--sans); margin: 0 0 8px; }

main.privacy { margin: 0 auto; }
.privacy .report section { margin-top: 26px; }
.privacy .report ul:not(.checklist) { padding-left: 20px; display: grid; gap: 6px; }

/* ---- Folded detail: secondary information one click away ---------------------------------- */
details.more > summary { cursor: pointer; list-style: none; display: grid; gap: 4px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary h2 { margin: 0; display: inline; }
details.more > summary h2::after { content: "  +"; }
details.more[open] > summary h2::after { content: "  −"; }
details.more[open] > summary { margin-bottom: 16px; }
.more-hint { font-size: 14px; color: var(--muted); }
details.item-more { margin-top: 10px; }
details.item-more > summary { display: inline-block; font: 700 14px/1.3 var(--sans); border-bottom: 1px solid var(--ink); }
details.item-more > summary::after { content: "  +"; }
details.item-more[open] > summary::after { content: "  −"; }
details.item-more[open] > summary { margin-bottom: 12px; }
.cstep > .link-action { align-self: center; }
.item-assess { margin: 8px 0 0; font-size: 14px; max-width: 80ch; }

/* ---- Own scan ------------------------------------------------------------------------------ */
.own-cta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 24px 18px; padding: 14px 16px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.own-cta:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.nav-off { display: flex; gap: 12px; align-items: baseline; padding: 10px var(--gutter) 10px 24px; font-size: 14px; font-weight: 600; color: var(--muted); border-left: 4px solid transparent; }
.own-tools { display: grid; gap: 6px; justify-items: start; margin: 16px 24px 0; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 14px; }
.own-tools .link { padding: 0; }
.file-link { cursor: pointer; text-decoration: underline; }
.nav-example { display: block; margin: 14px 24px 0; font-size: 13px; color: var(--muted); }
.example-note { border: 2px solid var(--ink); padding: 12px 14px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.example-note a { font-weight: 700; }
.welcome .welcome-example { width: 100%; margin: 0 0 10px; }
.own-start { max-width: 760px; }
.own-promise { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; line-height: 1.55; }
.own-trust { font-size: 14px; color: var(--muted); }
.sys-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.sys-groups .card { margin: 0; }
.sys-grid { display: grid; gap: 10px; }
.check.sys span { display: grid; gap: 1px; }
.own-next { margin: 8px 0 24px; }
.own-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.own-plan li { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px dotted var(--ink); }
.own-plan li:last-child { border-bottom: 0; padding-bottom: 0; }
.own-plan-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.own-plan-head .sub { flex-basis: 100%; }
.own-assess { margin: 0; font-size: 14px; max-width: 75ch; }

.ai-q { border: 0; padding: 0; margin: 0 0 6px; }
.ai-q legend { padding: 0 0 8px; }
.ai-level { font: 800 18px/1 var(--sans); padding: 8px 12px; border: 2px solid var(--ink); white-space: nowrap; }
.ai-level.ai-mature { background: var(--ink); color: var(--paper); }
.owner-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.owner-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ai-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ai-findings li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px dotted var(--ink); padding-bottom: 10px; }
.own-plan + .hint, .hint + .card { margin-bottom: 24px; }
.ai-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.ai-steps .sub { display: block; }

/* ---- Trust Center diagram ----------------------------------------------------------------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; gap: 0; margin: 20px 0 0; }
.flow-col { display: grid; gap: 6px; justify-items: stretch; }
.flow-node { border: 2px solid var(--ink); padding: 12px 14px; display: grid; gap: 4px; background: var(--paper); }
.flow-node strong { font-family: var(--serif); font-size: 17px; }
.flow-node ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.flow-stay { font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; padding: 6px; border: 1px dashed var(--ink); margin: 0; }
.flow-arrow { display: grid; justify-items: center; gap: 4px; padding: 0 10px; text-align: center; }
.flow-glyph { font: 700 30px/1 var(--mono); }
.flow-label { font: 11px/1.35 var(--mono); }
.flow-sources .flow-node { padding: 8px 12px; }
.flow-small { text-align: center; font: 700 16px/1 var(--mono); }


/* ---- Page structure ---------------------------------------------------------------------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.lead { font: 17px/1.6 var(--sans); color: var(--muted); margin: 10px 0 0; max-width: 62ch; }
.page-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.picker { display: grid; gap: 4px; font: 700 12px/1 var(--sans); }

.card { border: 1px solid var(--ink); padding: 22px; margin-bottom: 24px; background: var(--paper); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cols-2, .cols-3 { margin-bottom: 24px; }
.cols-2 > .card, .cols-3 > .card { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.split-side { position: sticky; top: 90px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.empty { padding: 40px; text-align: center; }
.empty p { font: 17px/1.5 var(--sans); color: var(--muted); }
.notice { border: 1px solid var(--ink); padding: 10px 12px; font: 14px/1.5 var(--sans); }
.isolation { font: 14px/1.45 var(--sans); border-left: 4px solid var(--ink); padding: 4px 10px; margin-bottom: 20px; }

/* ---- Buttons ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 700 14px/1.2 var(--sans); letter-spacing: 0;
  padding: 11px 18px; cursor: pointer; text-decoration: none; border-radius: 0; min-height: 42px;
}
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover:not(:disabled) { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost { border-style: dashed; }
.btn:disabled { cursor: not-allowed; border-style: dotted; background: var(--paper); color: var(--ink); opacity: 1; }
.file-btn input { display: none; }
.link-action { font: 700 14px/1.3 var(--sans); text-decoration: none; border-bottom: 1px solid var(--ink); }
.link-action:hover { border-bottom-width: 2px; }

/* ---- Data -------------------------------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.stat { padding: 16px 18px 18px; border-right: 1px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat-label { font: 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value { font: 800 30px/1.15 var(--sans); letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-value small { font: 400 14px/1 var(--mono); }
.stat-note { margin-top: 8px; font: 12px/1.4 var(--mono); }

.table-wrap { overflow-x: auto; margin: 0 -2px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
table.data td { padding: 12px 10px; border-bottom: 1px dotted var(--ink); vertical-align: top; }
table.data select { width: 100%; max-width: 320px; }
table.data td > .sub { margin-top: 4px; }
table.data tr:last-child td { border-bottom: 0; }
table.data.compact td { padding: 7px 8px; font-size: 13px; }
table.data td.num { text-align: right; white-space: nowrap; }
td.services { min-width: 200px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background-image: var(--hatch-dot); background-size: 4px 4px; }
tr.clickable:hover td > * { background: var(--paper); }

.kv { display: grid; gap: 10px; margin: 12px 0 0; }
.kv > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.kv dt { font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.kv dd { margin: 0; }
.kv.inline { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kv.inline > div { grid-template-columns: 1fr; gap: 2px; }

/* Pixel meter: twenty five-point blocks. */
.meter { display: inline-flex; gap: 2px; vertical-align: middle; }
.meter i { display: block; width: 6px; height: 12px; border: 1px solid var(--ink); }
.meter i.on { background: var(--ink); }
.meter-sm i { width: 4px; height: 9px; }
.meter-lg { gap: 3px; }
.meter-lg i { width: 10px; height: 20px; }
.meter-empty i { border-style: dotted; }

.score { display: grid; gap: 8px; }
.score-label { font: 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.score-value { display: flex; align-items: baseline; gap: 4px; }
.score-value .num { font: 800 64px/0.95 var(--sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.score-md .score-value .num { font-size: 40px; }
.score-value .of { font: 14px/1 var(--mono); }
.score-band { font: 700 15px/1.3 var(--sans); }

.risk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); padding: 2px 7px; font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.risk::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--ink); flex: none; }
.risk-critical { background: var(--ink); color: var(--paper); }
.risk-critical::before { background: var(--paper); border-color: var(--paper); }
.risk-high::before { background-image: var(--hatch-d); background-size: 4px 4px; }
.risk-medium::before { background-image: var(--hatch-h); background-size: 3px 3px; }
.risk-low { border-style: dashed; }

/* All small labels share one shape: text only, one height, one border. Solid = strongest signal. */
.jur, .verdict, .gov, .country, .tag, .tags li {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid var(--ink);
  font: 700 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}
.jur-us, .verdict-advise { background: var(--ink); color: var(--paper); }
.jur-other, .verdict-watch, .jur-owner { border-style: dashed; }
.verdict-none { border-style: dotted; font-weight: 400; }
.tag-warn { border-width: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.badges:empty { display: none; }
.badges:first-child, h3 + .badges, header .badges { margin-top: 0; }

.bar { display: inline-block; width: 120px; max-width: 100%; height: 10px; border: 1px solid var(--ink); vertical-align: middle; position: relative; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.card > .bar { width: 100%; height: 14px; margin: 8px 0 14px; }
.pips { display: inline-flex; gap: 2px; }
.pips i { width: 8px; height: 8px; border: 1px solid var(--ink); }
.pips i.on { background: var(--ink); }

.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink); }
.stepper li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-right: 1px solid var(--ink); font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; min-width: 0; }
.stepper li:last-child { border-right: 0; }
.stepper .step-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--ink); flex: none; }
.stepper li.done { background-image: var(--hatch-dot); background-size: 4px 4px; }
.stepper li.done .step-n { background: var(--ink); color: var(--paper); }
.stepper li.done .step-name { background: var(--paper); padding: 0 3px; }
.stepper li.current { background: var(--ink); color: var(--paper); }
.stepper li.current .step-n { border-color: var(--paper); }
.stepper-compact { margin: 0; min-width: 150px; border: 0; gap: 2px; }
.stepper-compact li { padding: 0; border: 0; height: 10px; background: none !important; }
.stepper-compact .step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stepper-compact .step-n { width: 100%; height: 10px; font-size: 0; }
.stepper-compact li.current .step-n { background-image: var(--hatch-d); background-size: 4px 4px; border-color: var(--ink); }

.dims { display: grid; gap: 14px; margin: 0; }
.dim dt { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.dim dd { margin: 4px 0 0; }
.dim .hint { margin-top: 4px; }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hbar-label { display: grid; min-width: 0; }
.hbar-label .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { height: 16px; border-bottom: 1px solid var(--ink); position: relative; }
.hbar-fill { position: absolute; left: 0; top: 0; bottom: 0; border: 1px solid var(--ink); }
.hbar-fill.solid { background: var(--ink); }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--ink); font-size: 14px; }
.activity li:last-child { border-bottom: 0; }
.activity time { font: 12px/1.5 var(--mono); }
.activity .detail, .activity .by { display: block; font: 12px/1.45 var(--mono); }

.legend { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; margin: 0; padding: 0; font: 12px/1.3 var(--mono); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 22px; height: 12px; border: 1px solid var(--ink); display: inline-block; }
.sw.n-us { background: var(--ink); }
.sw.n-other { border-style: dashed; }

.checklist { list-style: none; margin: 0 0 14px; padding: 0; }
.checklist li { padding: 5px 0 5px 22px; position: relative; font-size: 14px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border: 1px solid var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }

.risk-dist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.risk-dist li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dotted var(--ink); padding-bottom: 6px; }

/* ---- Forms ------------------------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form h3 { margin: 0; }
fieldset { border: 1px solid var(--ink); margin: 0; padding: 12px 14px; display: grid; gap: 8px; }
legend { font: 700 14px/1.2 var(--sans); padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1px solid var(--ink); margin: 2px 0 0; flex: none; background: var(--paper); cursor: pointer; }
.check input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.check input:disabled { border-style: dotted; cursor: default; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

/* ---- Command Center / organisations ------------------------------------------------------ */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.org-card { display: grid; gap: 14px; text-decoration: none; margin: 0; }
.org-card:hover { box-shadow: 6px 6px 0 -1px var(--paper), 6px 6px 0 0 var(--ink); }
.org-card h2 { font: 800 20px/1.2 var(--sans); letter-spacing: -0.03em; margin: 0 0 4px; }
.org-card-score { display: flex; gap: 12px; align-items: center; }
.org-card .stepper-compact { width: 100%; }
.org-card .kv > div { grid-template-columns: 120px 1fr; }

/* ---- Scan -------------------------------------------------------------------------------- */
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); }
.method { padding: 16px; border-right: 1px solid var(--ink); min-width: 0; }
.method:last-child { border-right: 0; }
.method h3 { margin-top: 0; font-size: 17px; display: flex; gap: 10px; align-items: baseline; }
.method-n { font: 700 12px/1 var(--mono); border: 1px solid var(--ink); padding: 3px 6px; }
.connectors { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; }
.connectors li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--ink); }
.state { font-family: var(--mono); }
pre.code, pre.log {
  font: 12px/1.6 var(--mono); border: 1px solid var(--ink); padding: 12px; margin: 12px 0 0;
  overflow-x: auto; white-space: pre;
}
pre.log { background: var(--ink); color: var(--paper); white-space: pre-wrap; min-height: 80px; }
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; margin-bottom: 8px; }
.results h3 { font-size: 16px; }

/* ---- Dependency map ---------------------------------------------------------------------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.map-wrap.has-detail { grid-template-columns: minmax(0, 1fr) 340px; }
.map-scroll { align-self: start; overflow-x: auto; border: 1px solid var(--ink); background-image: var(--hatch-dot); background-size: 4px 4px; }
.depmap { display: block; width: 100%; min-width: 720px; height: auto; background: var(--paper); }
.depmap .ink { fill: var(--ink); }
.depmap line, .depmap path { stroke: var(--ink); fill: none; }
.depmap .l-trunk { stroke-width: 2; }
.depmap .l-branch { stroke-width: 1; }
.depmap .l-flow { stroke-width: 1; stroke-dasharray: 4 3; }
.depmap .l-on { stroke-width: 3; stroke-dasharray: none; }
.depmap text { font: 12px var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.depmap .center rect { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.depmap .center text { font: 700 15px var(--serif); stroke: none; }
.depmap .hub rect { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.depmap .hub text { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; stroke: none; }
.depmap .hub.n-us rect { fill: var(--ink); }
.depmap .hub.n-us text { fill: var(--paper); }
.depmap .hub.n-other rect { stroke-dasharray: 4 2; }
.depmap .node { cursor: pointer; outline: none; }
.depmap .node rect { stroke: var(--ink); stroke-width: 1; fill: var(--paper); }
.depmap .node text { stroke: none; }
.depmap .node text.code { font-weight: 700; font-size: 10px; }
.depmap .n-us rect { fill: var(--ink); }
.depmap .n-us text { fill: var(--paper); }
.depmap .n-other rect { stroke-dasharray: 4 2; }
.depmap .node:hover rect, .depmap .node:focus rect { stroke-width: 3; }
.depmap .node.sel rect { stroke-width: 4; }
.node-detail { margin: 0; align-self: start; }
.node-detail h3 { margin: 0; }
.alt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.alt-list li { display: grid; gap: 2px; border-bottom: 1px dotted var(--ink); padding-bottom: 8px; }

/* ---- Migration --------------------------------------------------------------------------- */
.status-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; border-width: 2px; }
.status-card h2 { margin: 4px 0 0; }
.status-body p:last-child { margin-bottom: 0; }
.compare { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.compare-arrow { font: 48px/1 var(--sans); }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; text-decoration: none; font: 700 14px/1 var(--sans); border: 1px solid transparent; border-bottom: 0; }
.tabs a.active { background: var(--ink); color: var(--paper); }
.tabs a:hover:not(.active) { text-decoration: underline; }

.gantt { display: grid; gap: 4px; font-size: 13px; }
.g-axis, .g-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: center; }
.g-axis .g-track { height: 18px; border: 0; background: none; }
.g-axis span { position: absolute; top: 0; font: 10px/1 var(--mono); transform: translateX(-50%); white-space: nowrap; }
.g-axis span:first-child { transform: none; }
.g-axis span:last-child { transform: translateX(-100%); }
.g-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/1.3 var(--mono); }
.g-track { position: relative; height: 22px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); background-image: var(--hatch-dot); background-size: 4px 4px; }
.g-bar { position: absolute; top: 3px; bottom: 3px; border: 1px solid var(--ink); background: var(--paper); min-width: 4px; }
.g-quick { background: var(--ink); }
.g-core { background-color: var(--paper); background-image: var(--hatch-d); background-size: 4px 4px; }
.g-strategic { background-color: var(--paper); background-image: var(--hatch-h); background-size: 3px 3px; border-width: 2px; }
.g-done { outline: 2px solid var(--ink); outline-offset: 2px; }
.g-phase { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.g-phase .sub { text-transform: none; letter-spacing: 0; font-weight: 400; }

.milestones { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.milestone { display: grid; grid-template-columns: minmax(0, 1fr) 160px 50px; gap: 12px; align-items: center; padding: 8px 0 8px 22px; position: relative; border-bottom: 1px dotted var(--ink); }
.milestone::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; border: 1px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.milestone.reached::before { background: var(--ink); }
.milestone > div { display: grid; }
.task-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.task-group { border: 1px solid var(--ink); padding: 16px 18px; }
.task-group h3 { margin: 0 0 10px; font-size: 16px; display: grid; gap: 4px; }
.task-group.complete { border-width: 3px; }
.tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.next-step { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-width: 2px; }
.next-step h2 { margin-bottom: 6px; }
.next-step p { font: 18px/1.45 var(--sans); margin: 0; }

/* ---- Client steps, intake, review, plan feedback ---------------------------------------- */
.stepper-wrap { margin-bottom: 24px; }
.stepper-wrap .stepper { margin-bottom: 0; }
.stepper-caption { display: none; margin: 8px 0 0; font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }

.client-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.cstep { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--ink); }
.cstep:last-child { border-bottom: 0; }
.cstep-n { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); font: 700 14px/1 var(--mono); }
.cstep-done .cstep-n { background: var(--ink); color: var(--paper); }
.cstep-current .cstep-n { border-width: 3px; }
.cstep-waiting .cstep-n { background-image: var(--hatch-d); background-size: 4px 4px; }
.cstep-later { opacity: 1; }
.cstep-later .cstep-n { border-style: dotted; }
.cstep-body { display: grid; gap: 2px; min-width: 0; }
.cstep-body strong { font-size: 16px; }
.cstep-status { font: 700 12px/1.3 var(--sans); color: var(--muted); margin-top: 4px; }
.cstep-current { background: var(--paper); }
.cstep-current .cstep-status { display: inline-block; width: fit-content; background: var(--ink); color: var(--paper); padding: 2px 6px; }
.steps-card { border-width: 2px; }

.nav-list a.todo .nav-todo { margin-left: auto; font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid currentColor; padding: 3px 4px; white-space: nowrap; }

.field { display: grid; gap: 6px; font-size: 14px; min-width: 0; }
.field > span { font: 700 13px/1.3 var(--sans); }
.field input, .field select, .field textarea {
  width: 100%; font: 14px/1.4 var(--sans); color: var(--ink); background-color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; padding: 9px 10px;
}
.field select { padding-right: 28px; font-size: 15px; }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field.narrow { max-width: 180px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--ink); padding: 12px; cursor: pointer; }
.choice span { display: grid; gap: 2px; }
.choice input, .option input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1px solid var(--ink); border-radius: 50%; margin: 3px 0 0; flex: none; background: var(--paper); cursor: pointer; }
.choice input:checked, .option input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.choice:has(input:checked) { border-width: 2px; padding: 11px; }
.form-error { font-weight: 700; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lead-sm { font: 15px/1.55 var(--sans); color: var(--muted); margin: 6px 0 0; max-width: 70ch; }

.review.todo { border-width: 2px; }
.review-table select { min-width: 0; width: 100%; padding-right: 26px; }
.review-table tr.is-removed td:first-child strong { text-decoration: line-through; }
.add-service { margin-top: 18px; padding-top: 16px; border-top: 1px dotted var(--ink); display: grid; gap: 12px; }
.add-service h3 { margin: 0; font-size: 16px; }
.add-service .btn { justify-self: start; }
.review-confirm { margin-top: 18px; }
.review-status.ok, .review.ok { border-style: solid; }
.review-status:not(.ok) { border-style: dashed; }

.item-cards { display: grid; gap: 20px; }
.item-card { border: 1px solid var(--ink); padding: 16px; display: grid; gap: 12px; }
.item-card.has-pref { border-width: 2px; }
.item-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: start; }
.item-from, .item-to { display: grid; gap: 3px; }
.item-name { display: grid; gap: 6px; }
.item-name strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.item-arrow { font: 28px/1 var(--sans); padding-top: 14px; }
.client-pref { font: 700 13px/1.4 var(--sans); border-left: 4px solid var(--ink); padding: 2px 8px; margin: 6px 0 0; }
.options { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.options legend { padding: 0; margin-bottom: 6px; }
.option { display: flex; gap: 10px; align-items: flex-start; border: 1px dotted var(--ink); padding: 10px 12px; cursor: pointer; }
.option.chosen { border-style: solid; border-width: 2px; padding: 9px 11px; }
.options:disabled .option { cursor: default; }
.option-body { display: grid; gap: 3px; min-width: 0; }
.option-title { display: grid; gap: 6px; }
.option-note { font-size: 13px; }
.option-cx { font: 11px/1.4 var(--mono); display: flex; gap: 6px; align-items: center; }
.decision { border-width: 2px; }
blockquote { margin: 10px 0; padding: 6px 12px; border-left: 4px solid var(--ink); font: 16px/1.55 var(--sans); }
.feedback-card { border-width: 2px; }
.fb-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.fb-list li { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px dotted var(--ink); }

/* ---- Verdict, government and country badges ----------------------------------------------- */
.verdict-legend { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.verdict-legend li { display: flex; gap: 6px; align-items: center; }
.assessment, .gov-list { margin: 4px 0; padding: 8px 12px; border-left: 2px solid var(--ink); font: 13px/1.5 var(--sans); display: grid; gap: 4px; }
.gov-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sources a { text-decoration: underline; }
.option-assessment { font-size: 12px; }

/* ---- Alternatives ------------------------------------------------------------------------ */
.alt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.alt-card { padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.alt-card header { display: grid; gap: 6px; }
.alt-card .kv { margin-top: 4px; }
.alt-card h3 { margin: 0; font-size: 18px; }
.alt-card p { margin: 0; font-size: 14px; }
.alt-card .kv > div { grid-template-columns: 110px 1fr; font-size: 13px; }

/* ---- Report ------------------------------------------------------------------------------ */
.report { max-width: 880px; margin: 0 auto; border: 1px solid var(--ink); padding: 56px 64px; }
.report section { margin-top: 40px; }
.report h2 { font: 800 24px/1.2 var(--sans); letter-spacing: -0.03em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.report-cover { border-bottom: 1px solid var(--ink); padding-bottom: 28px; }
.report-mark { height: 12px; background-image: var(--hatch-d); background-size: 4px 4px; margin-bottom: 28px; }
.report-kicker { font: 700 13px/1 var(--sans); color: var(--muted); }
.report-cover h1 { font-size: clamp(32px, 5vw, 52px); margin: 10px 0 20px; }
.report-demo { margin-top: 20px; font: 14px/1.5 var(--sans); color: var(--muted); border-left: 4px solid var(--ink); padding-left: 10px; }
.report-summary { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.report-summary p { font: 16px/1.65 var(--sans); }
.report table { margin-top: 20px; }
.rec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rec-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dotted var(--ink); }
.rec-list .sub { flex-basis: 100%; }
.report-foot { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--ink); font: 12px/1.5 var(--sans); color: var(--muted); }

.spark { width: 100%; max-width: 360px; height: auto; display: block; overflow: visible; }
.spark .line { stroke: var(--ink); stroke-width: 2; fill: none; }
.spark .grid { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.spark .ink { fill: var(--ink); }
.spark text { font: 10px var(--mono); fill: var(--ink); }

/* ---- Responsive -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-side { position: static; }
  .methods { grid-template-columns: minmax(0, 1fr); }
  .method { border-right: 0; border-bottom: 1px solid var(--ink); }
  .method:last-child { border-bottom: 0; }
  .map-wrap.has-detail { grid-template-columns: minmax(0, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .topbar { position: static; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .menu-btn { display: inline-flex; gap: 6px; }
  .brand-das { width: 38px; }
  .brand-name { font-size: 24px; }
  .brand-by { display: none; }
  .review-table td { grid-template-columns: 80px minmax(0, 1fr); }
  .review-table select { font-size: 12px; }
  .layout { grid-template-columns: minmax(0, 1fr); position: relative; }
  /* The menu opens as a boxed panel right under the header, as on newground.nl. */
  .sidebar {
    display: none; position: absolute; z-index: 30; top: -2px; left: var(--gutter); right: var(--gutter);
    background: var(--paper); border: 2px solid var(--ink); padding: 14px 0 18px; box-shadow: 6px 6px 0 var(--ink);
  }
  body.nav-open .sidebar { display: flex; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { grid-auto-flow: column; justify-content: center; align-items: center; padding: 12px 0; }
  .flow-glyph { transform: rotate(90deg); }
  .welcome { padding: 36px 22px 0; }
  .welcome-by { margin: 22px -22px 0; }
  .cols-2, .cols-3, .results, .report-summary { grid-template-columns: minmax(0, 1fr); }
  .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stepper li { justify-content: center; padding: 8px 4px; }
  .stepper:not(.stepper-compact) .step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stepper-caption { display: block; }
  .item-head { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .item-arrow { padding: 0; transform: rotate(90deg); width: fit-content; }
  .cstep { grid-template-columns: 32px minmax(0, 1fr); }
  .cstep > .btn, .cstep > .link-action { grid-column: 2; justify-self: start; }
  .field.narrow { max-width: none; }
  .milestone { grid-template-columns: minmax(0, 1fr) 44px; }
  .milestone .bar { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .milestone::before { top: 20px; }
  .stat { border-right: 0; border-bottom: 1px dotted var(--ink); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .stat:nth-child(odd) { border-right: 1px solid var(--ink); }
  .hbars li { grid-template-columns: minmax(0, 1fr) auto; }
  .hbars .hbar { grid-column: 1 / -1; grid-row: 2; }
  .g-axis, .g-row { grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
  .report { padding: 28px 20px; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .status-card { grid-template-columns: 1fr; gap: 6px; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: block; padding: 12px 0; border-bottom: 1px dotted var(--ink); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; padding: 3px 0; border: 0; text-align: left !important; white-space: normal !important; }
  table.stack td::before { content: attr(data-label); font: 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
  table.stack td[data-label=""] { display: block; }
  table.stack td[data-label=""]::before { display: none; }
  table.stack .stepper-compact { min-width: 0; }
  .activity li { grid-template-columns: 1fr; gap: 2px; }
  input[type="search"] { min-width: 0; flex: 1 1 100%; }
  main { padding-top: 24px; }
  .score-value .num { font-size: 52px; }
}

@media (max-width: 520px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpis .stat:nth-child(odd) { border-right: 0; }
  .meter-lg i { width: 8px; height: 16px; }
  .meter-lg { gap: 2px; }
}


/* ---- Print: the report only, always black on white --------------------------------------- */
@media print {
  :root, :root[data-theme] {
    --ink: #000 !important; --paper: #fff !important; --muted: #444 !important;
    --hatch-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 3h1v1H0zM1 2h1v1H1zM2 1h1v1H2zM3 0h1v1H3z' fill='%23000'/%3E%3C/svg%3E") !important;
    --hatch-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v1H0z' fill='%23000'/%3E%3C/svg%3E") !important;
  }
  body { background: #fff; color: #000; }
  .demo-bar, .topbar, .sidebar, .footer, .page-head, .tabs { display: none !important; }
  .layout { display: block; }
  main { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; max-width: none; }
  .report section { break-inside: avoid-page; }
  main > :not(.report) { display: none !important; }
}

/* Own scan, systems step: one block per task with buttons, a search field and the suite note. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 14px/1.2 var(--sans); cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:has(input:checked), .chip.on { background: var(--ink); color: var(--paper); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip-hq { font: 700 10px/1 var(--mono); letter-spacing: 0.06em; opacity: 0.7; }
.chip-tag { font: 400 11px/1 var(--sans); border-left: 1px solid currentColor; padding-left: 6px; }
.chip-none { border-style: dashed; font-weight: 400; }
.sys-search { margin-top: 12px; }
.sys-search input[type="search"] { width: 100%; min-width: 0; }
.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--ink); }
.results li + li { border-top: 1px dotted var(--ink); }
.result { display: grid; gap: 2px; width: 100%; padding: 8px 10px; border: 0; background: var(--paper); color: var(--ink); text-align: left; font: 14px/1.3 var(--sans); cursor: pointer; }
.result:hover, .result:focus-visible { background: var(--ink); color: var(--paper); }
.result:hover .sub, .result:focus-visible .sub { color: inherit; }
.result:disabled { cursor: default; background: var(--paper); color: var(--muted); }
.result-new { font-weight: 700; }
.results-empty { padding: 8px 10px; }
.suite-note { margin-top: 14px; border: 1px solid var(--ink); padding: 12px 14px; display: grid; gap: 10px; justify-items: start; }
.suite-note p { margin: 0; font: 14px/1.5 var(--sans); }
.domain-check { display: grid; gap: 10px; justify-items: start; }
.domain-check .field { width: 100%; }
.domain-result:empty { display: none; }
.domain-found { border: 1px solid var(--ink); padding: 12px 14px; }
.domain-found p { margin: 0 0 8px; }
.domain-found ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.domain-found li { display: grid; gap: 2px; }
.link-status { display: block; margin: -4px 0 4px; }
.link-dialog { max-width: 560px; width: calc(100% - 32px); border: 1px solid var(--ink); padding: 0; background: var(--paper); color: var(--ink); }
.link-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.link-box { padding: 24px; display: grid; gap: 14px; }
.link-box h2 { margin: 0; }
.link-box p { margin: 0; }
.link-box input[type="text"] { width: 100%; min-width: 0; font: 13px/1.4 var(--mono); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The own scan: one question per screen */
.wiz { max-width: 760px; }
.wiz-progress { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font: 14px/1.4 var(--sans); margin-bottom: 10px; }
.wiz-bar { display: flex; gap: 3px; margin-bottom: 40px; }
.wiz-bar i { flex: 1; height: 8px; border: 1px solid var(--ink); }
.wiz-bar i.done, .wiz-bar i.now { background: var(--ink); }
.wiz-bar i.now { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.wiz-q { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; }
.wiz-sub { font: 17px/1.5 var(--sans); color: var(--muted); margin: 0 0 28px; max-width: 60ch; }
.wiz-group { margin: 0 0 24px; }
.wiz-group h2 { font: 700 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.wiz-group h2 .sub { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wiz-chips { gap: 10px; }
.wiz .chip { min-height: 48px; padding: 10px 16px; font-size: 16px; font-weight: 700; }
.wiz .chip-none { font-weight: 400; }
.wiz .sys-search { margin: 4px 0 24px; }
.wiz .sys-search input[type="search"] { min-height: 52px; padding: 12px 16px; font-size: 16px; }
.wiz-skip { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 32px; }
.wiz-origin { display: grid; gap: 8px; margin: 0 0 20px; font: 15px/1.4 var(--sans); }
.wiz-origin .chip { font-weight: 400; min-height: 40px; padding: 8px 12px; }
.wiz-form { display: grid; gap: 16px; }
.wiz-form .wiz-sub { margin-bottom: 8px; }
.wiz-choices { display: grid; gap: 10px; margin: 0 0 32px; }
.wiz-choice { display: grid; gap: 4px; width: 100%; min-height: 56px; padding: 14px 18px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-align: left; font: 16px/1.35 var(--sans); cursor: pointer; }
.wiz-choice .sub { font-size: 14px; }
.wiz-choice:hover, .wiz-choice:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.wiz-choice.on { background: var(--ink); color: var(--paper); }
.wiz-choice.on .sub { color: inherit; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--ink); padding-top: 24px; }
.wiz-nav a { color: var(--ink); }
.wiz .notice { margin-bottom: 20px; }
.wiz .suite-note { margin: -8px 0 24px; }

/* ---- Feedback button (js/feedback.js): a tab on the right edge, a round button on a phone ---- */
.fb-button {
  position: fixed; z-index: 30; right: 0; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; rotate: 180deg; padding: 14px 9px; border: 2px solid var(--ink); border-left-width: 2px; border-right: 0;
  background: var(--ink); color: var(--paper); font: 700 13px/1 var(--sans); letter-spacing: 0.04em; cursor: pointer;
}
.fb-button:hover, .fb-button:focus-visible { background: var(--paper); color: var(--ink); }
.fb-dialog h2 { font: 800 28px/1.1 var(--sans); letter-spacing: -0.03em; margin: 0 0 18px; }
.fb-form { padding-bottom: 28px; }
.fb-kinds { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kinds legend { font: 700 13px/1 var(--sans); margin-bottom: 8px; padding: 0; }
.fb-kinds button { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; }
.fb-kinds button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fb-label { display: block; font: 700 13px/1.3 var(--sans); margin: 14px 0 6px; }
.fb-form textarea, .fb-form input[type=email] {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 16px/1.45 var(--sans);
}
.fb-spot { margin: 12px 0 4px; font-size: 14px; }
.fb-spot p { margin: 0; overflow-wrap: anywhere; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-status { min-height: 1.4em; font-size: 14px; margin: 8px 0 0; }
.fb-picking #app * { cursor: crosshair !important; }
.fb-hover { outline: 3px dashed var(--ink) !important; outline-offset: 2px; }
.fb-picking .fb-button { display: none; }
.fb-pickbar {
  position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  padding: 12px 16px; background: var(--ink); color: var(--paper); font: 600 14px/1.4 var(--sans); box-shadow: 4px 4px 0 var(--muted);
}
.fb-pickbar .link { color: inherit; margin-left: 8px; }
@media (max-width: 900px) {
  .fb-button {
    top: auto; bottom: 16px; right: 16px; transform: none; rotate: none; writing-mode: horizontal-tb;
    width: 52px; height: 52px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; font-size: 0;
  }
  /* A speech bubble instead of the word, drawn in CSS so nothing is loaded. */
  .fb-button::before { content: ""; display: block; width: 20px; height: 15px; margin: 0 auto; border: 2px solid currentColor; border-radius: 4px; }
  .footer { padding-bottom: 84px; }
  .fb-button::after { content: ""; position: absolute; left: 18px; top: 29px; border: 5px solid transparent; border-top-color: currentColor; border-left-color: currentColor; }
}
@media print { .fb-button, .fb-pickbar, .fb-dialog { display: none !important; } }
