/* HomeIsSecure redesign: base language for every page (owner: the lead / WP0; page packages do not edit this file).
   Order of the stylesheets (src/app/layout.tsx): bootstrap.min.css (grid, collapse, offcanvas, utilities) -> tokens.css
   -> base.css -> frame.css -> home.css -> pages-<package>.css.
   Contents: 1 document  2 type  3 links and focus  4 buttons  5 forms  6 tables  7 lists  8 shared scaffolding of the
   existing markup (.h-sec, .h-head, .h-crumbs, .h-phead ...)  9 components of the existing markup (.h-faq, .h-card,
   .h-toc, .toc-m, .h-note, .a-fig, mini-form states)  10 new components (bp-*)  11 drawings (.dw)  12 motion. */

/* ---------------------------------------------------------------- 1 document */
html {
  background: var(--color-bg);
  color: var(--color-ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font: var(--weight-body) var(--text-body) / var(--leading-body) var(--font-body);
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
img, svg, video { max-width: 100%; }
img { height: auto; border-radius: var(--radius-image); }
main { display: block; counter-reset: ch; }
[hidden] { display: none !important; }
hr { margin: var(--space-7) 0; border: 0; border-top: var(--rule); opacity: 1; color: var(--color-ink); }
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-fluid { max-width: none; }

/* ---------------------------------------------------------------- 2 type */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  margin: 0 0 0.5em;
  color: var(--color-ink);
  line-height: var(--leading-heading);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-transform);
  text-wrap: balance;
}
h1, .h1 { font: var(--weight-heading) var(--text-page-title) / var(--leading-h1) var(--font-heading); margin-bottom: var(--space-5); }
h2, .h2 { font: var(--weight-heading) var(--text-h2) / var(--leading-heading) var(--font-heading); margin-bottom: var(--space-4); }
h3, .h3 { font: var(--weight-subhead) var(--text-h3) / var(--leading-heading) var(--font-subhead); margin-bottom: var(--space-2); }
h4, .h4, h5, h6 { font: var(--weight-subhead) var(--text-h4) / var(--leading-heading) var(--font-subhead); margin-bottom: var(--space-2); }
h5, h6 { font-size: var(--text-body); }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
li { max-width: var(--measure); }
b, strong { font-weight: var(--weight-bold); }
small, .small { font-size: var(--text-small); }
figcaption { font-size: var(--text-small); line-height: var(--leading-body); color: var(--color-muted); }
s { text-decoration-thickness: 1px; }
abbr[title] { text-decoration: underline dotted 1px; text-underline-offset: 3px; }
blockquote {
  margin: 0 0 var(--space-5);
  padding: 0 0 0 var(--space-5);
  border-left: 1px solid var(--color-ink);
  font-size: var(--text-h4);
  line-height: 1.45;
}
blockquote p:last-child { margin-bottom: 0; }
code, kbd, samp { font-family: var(--font-label); font-size: 0.94em; color: var(--color-ink); }
.lede, .lead-p {
  font-size: var(--text-h4);
  line-height: 1.5;
  max-width: 60ch;
}
.sub { max-width: 56ch; }
.text-muted { color: var(--color-muted) !important; }
/* numbers that must line up (prices, counts, numeric table cells). Not on running text: Schibsted Grotesk's tabular
   figures also widen the comma and the full stop. */
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 3 links and focus */
a {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:visited { color: var(--color-accent-text); }
a:hover { color: var(--color-accent-text); text-decoration-thickness: 2px; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 0;
}
.h-skip {
  position: fixed !important;
  z-index: 2000;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font: var(--weight-button) var(--text-small) / 1.2 var(--font-button);
  text-decoration: none;
}
.h-skip:visited, .h-skip:hover { color: var(--color-accent-ink); }

/* ---------------------------------------------------------------- 4 buttons
   One filled button per screen (coral, square, 48 px). Every other action is a text link with the drafting arrow
   (.bp-go). The old variants are mapped: primary / champagne / light = filled; outline / ghost-light = text link. */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--control-height);
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-button);
  font: var(--weight-button) var(--text-body) / 1.2 var(--font-button);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.h-btn:visited, .h-btn:hover, .h-btn:active { color: var(--color-accent-ink); }
.h-btn:hover > span, .h-btn:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.h-btn:active { transform: none; }
.h-btn:disabled, .h-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.h-btn .ic { width: 18px; height: 18px; }
.h-btn.sm { min-height: 44px; padding: 0 16px; font-size: var(--text-small); }
/* text-link variants */
.h-btn.outline, .h-btn.ghost-light {
  min-height: 44px;
  padding: 0;
  background: none;
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.h-btn.outline:visited, .h-btn.outline:hover, .h-btn.ghost-light:hover { color: var(--color-accent-text); text-decoration-thickness: 2px; }
.h-btn.outline.w-100, .h-btn.ghost-light.w-100 { justify-content: flex-start; }

/* a text link with the drafting arrow (a dimension-line arrowhead), for every second action */
.bp-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--color-accent-text);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.bp-go::after {
  content: "";
  flex: none;
  width: 24px;
  height: 10px;
  background: currentColor;
  -webkit-mask: var(--arrow) no-repeat center / 24px 10px;
  mask: var(--arrow) no-repeat center / 24px 10px;
}
.bp-go:hover { text-decoration-thickness: 2px; }
.bp-go.back::after { transform: scaleX(-1); order: -1; }
:root {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Crect x='0' y='4.4' width='17' height='1.25'/%3E%3Cpath d='M14 1 24 5 14 9z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- 5 forms
   Label above the field (Schibsted 700, 15 px); field 48 px, 1 px border, square; focus = 3 px coral outline; an error
   is a sentence under the field with "Error:" in front and a 3 px coral rule on its left. */
label, .form-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-ink);
  font: var(--weight-button) var(--text-small) / 1.3 var(--font-button);
}
.form-control, .form-select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], textarea, select {
  display: block;
  width: 100%;
  min-height: var(--control-height);
  padding: 11px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-input);
  background-color: var(--color-bg);
  color: var(--color-ink);
  box-shadow: none;
  font: var(--weight-body) var(--text-body) / 1.4 var(--font-body);
  -webkit-appearance: none;
  appearance: none;
}
textarea, textarea.form-control { min-height: 144px; resize: vertical; }
.form-control::placeholder, input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--color-ink);
  background-color: var(--color-bg);
  color: var(--color-ink);
  box-shadow: none;
  outline: 3px solid var(--color-accent);
  outline-offset: 0;
}
.form-select, select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23e7effc' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
}
.bp-panel .form-control, .bp-panel .form-select, .bp-panel input, .bp-panel textarea, .bp-panel select { background-color: var(--color-surface); }
.form-text { margin-top: var(--space-2); color: var(--color-muted); font-size: var(--text-small); }
.form-control:disabled, .form-select:disabled, input:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; }
/* invalid state (main.js adds .is-invalid) */
.form-control.is-invalid, .form-select.is-invalid, .was-validated .form-control:invalid {
  border-color: var(--color-accent);
  background-image: none;
  padding-right: 14px;
}
.form-select.is-invalid { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23e7effc' stroke-width='1.5'/%3E%3C/svg%3E"); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: none; border-color: var(--color-accent); }
.invalid-feedback, .hf-err {
  margin-top: var(--space-2);
  padding: 2px 0 2px var(--space-3);
  border-left: 3px solid var(--color-accent);
  color: var(--color-ink);
  font-size: var(--text-small);
  line-height: 1.4;
}
.invalid-feedback::before, .hf-err::before { content: "Error: "; font-weight: var(--weight-bold); }
.pw.pw-bad ~ .invalid-feedback, .pw:has(.is-invalid) ~ .invalid-feedback { display: block; }
/* checkboxes and radios: square, 22 px, coral when on */
.form-check { display: grid; grid-template-columns: 22px 1fr; column-gap: var(--space-3); align-items: start; min-height: 0; margin: 0; padding: 0; }
.form-check .form-check-input { float: none; margin: 2px 0 0; }
.form-check-label { margin: 0; font-weight: var(--weight-body); font-size: var(--text-small); line-height: var(--leading-body); }
.form-check-input, input[type="checkbox"], input[type="radio"] {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: none;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input[type="radio"] { border-radius: 0; }
.form-check-input:checked, input[type="checkbox"]:checked, input[type="radio"]:checked {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11.5l4 4 8-9' fill='none' stroke='%230a111f' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.form-check-input:focus, input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; border-color: var(--color-ink); }
.form-check-input:focus-visible, input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.form-check-input.is-invalid { border-color: var(--color-accent); }
fieldset { margin: 0; padding: 0; border: 0; }
legend { font: var(--weight-button) var(--text-small) / 1.3 var(--font-button); }

/* ---------------------------------------------------------------- 6 tables
   Header row in the label face with a 2 px ink rule; rows on 1 px hairlines; numbers right-aligned, tabular. Wide
   tables scroll inside .bp-table-wrap on phones. */
table { width: 100%; border-collapse: collapse; caption-side: bottom; }
caption { padding-top: var(--space-3); color: var(--color-muted); font-size: var(--text-small); text-align: left; }
th, td { padding: var(--space-3) var(--space-4) var(--space-3) 0; vertical-align: top; text-align: left; }
thead th, thead td {
  border-bottom: 2px solid var(--color-ink);
  font: var(--weight-label) var(--text-small) / var(--leading-label) var(--font-label);
  vertical-align: bottom;
}
tbody th { font-weight: var(--weight-bold); }
tbody tr > * { border-bottom: 1px solid var(--color-line-soft); }
td.num, th.num, .num { text-align: right; }
.bp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bp-table-wrap:focus-visible { outline-offset: 4px; }

/* ---------------------------------------------------------------- 7 lists */
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
ul { list-style: square; }
ul li::marker { color: var(--color-muted); }
ol li::marker { color: var(--color-muted); font-variant-numeric: tabular-nums; font-family: var(--font-label); }
li + li { margin-top: 0.35em; }
dl { margin: 0 0 1em; }
dt { font-weight: var(--weight-bold); }
dd { margin: 0 0 0.75em; }

/* ---------------------------------------------------------------- 8 scaffolding of the existing markup
   The old bands (.h-alt cream, .h-dark evergreen) are gone: every section sits on the page colour, chapters are
   divided by one ink rule. Page packages restructure their sections into .bp-ch chapters (section 10). */
.h-sec { padding-block: var(--section-y); }
.h-alt, .h-dark { background: none; color: inherit; }
main > section + section.h-sec, main > section + section.bp-ch, main > .bp-ch + .bp-ch { border-top: var(--rule); }
.h-head { margin-bottom: var(--space-7); }
.h-head.center, .h-head .center { text-align: left; }
.h-head .hh-t > :last-child { margin-bottom: 0; }
.h-head .hh-r { margin-top: var(--space-4); }
.h-head .sub { margin-bottom: 0; }
/* breadcrumbs */
.h-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
  font: var(--weight-label) var(--text-small) / var(--leading-label) var(--font-label);
}
.h-crumbs a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.h-crumbs a:hover { text-decoration-color: var(--color-accent); }
.h-crumbs i { color: var(--color-line); font-style: normal; }
.h-crumbs [aria-current] { color: var(--color-muted); }
/* the icon set of the old design: kept only where a page still has it; drawn thin and square like the drawings */
.ic {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.18em;
  stroke-width: 1.25px;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
/* the inner-page title of the old markup until a package converts it to .bp-head (section 10) */
.h-phead { padding: var(--space-8) 0 var(--space-7); background: none; color: inherit; }
.h-phead .ph-grid, .h-phead .ph-txt { display: block; max-width: none; }
.h-phead h1 { max-width: 24ch; }

/* ---------------------------------------------------------------- 9 components of the existing markup */

/* questions and answers (.h-faq, Bootstrap collapse; main.js puts .open on the .fq that is open) */
.h-faq { border-top: 1px solid var(--color-line-soft); }
.h-faq .fq { border-bottom: 1px solid var(--color-line-soft); }
.h-faq .fq > h3, .h-faq .fq > h2, .h-faq .fq > h4 { margin: 0; font-size: inherit; line-height: inherit; }
.fq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  min-height: var(--control-height);
  padding: var(--space-4) 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  font: var(--weight-subhead) var(--text-h4) / 1.35 var(--font-subhead);
  text-align: left;
  cursor: pointer;
}
.fq-q > span { flex: 1 1 auto; text-wrap: pretty; }
.fq-q:hover > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* the open/closed mark: a drafting plus that loses its vertical bar when open */
.fq-q > i {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.3em;
  font-style: normal;
}
.fq-q > i > svg { display: none; }
.fq-q > i::before, .fq-q > i::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
}
.fq-q > i::before { left: 0; right: 0; top: 7.4px; height: 1.25px; }
.fq-q > i::after { top: 0; bottom: 0; left: 7.4px; width: 1.25px; transition: transform 0.18s ease; }
.fq.open .fq-q > i::after, .fq-q[aria-expanded="true"] > i::after { transform: scaleY(0); }
.fq-a { max-width: var(--measure); padding: 0 0 var(--space-5); }
.fq-a > :last-child { margin-bottom: 0; }

/* article entry (PostCard): a ruled text row, the whole row follows the title link */
.h-card {
  position: relative;
  height: 100%;
  padding: var(--space-5) 0 var(--space-5);
  border-top: 1px solid var(--color-line-soft);
}
.hc-img { display: none; }
.hc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  margin: 0 0 var(--space-2);
  color: var(--color-muted);
  font: var(--weight-label) var(--text-caption) / var(--leading-label) var(--font-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.hc-meta .hc-cat { color: var(--color-ink); }
.hc-meta > * + *::before { content: "\00b7"; margin-right: var(--space-2); color: var(--color-muted); }
.h-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-h3); }
.h-card h3 a { color: var(--color-ink); text-decoration: none; }
.h-card h3 a::after { content: ""; position: absolute; inset: 0; }
.h-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--color-accent); }
.h-card h3 a:focus-visible { outline: none; }
.h-card:has(h3 a:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.hc-ex { margin: 0 0 var(--space-3); }
.hc-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent-text);
  font-weight: var(--weight-bold);
  font-size: var(--text-small);
}
.hc-more .ic { display: none; }
.hc-more::after { content: ""; width: 24px; height: 10px; background: currentColor; -webkit-mask: var(--arrow) no-repeat center / 24px 10px; mask: var(--arrow) no-repeat center / 24px 10px; }

/* contents lists: the side list (.h-toc, data-spy-nav) on desktop, the folding one (.toc-m) on phones and tablets.
   Used by the guides, the articles and the admin's legal HTML (keep every class name). */
.side-stick { position: sticky; top: var(--space-6); }
.h-toc { font-size: var(--text-small); line-height: 1.4; }
.h-toc .toc-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); }
.h-toc .toc-top b {
  font: var(--weight-label) var(--text-caption) / var(--leading-label) var(--font-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.h-toc .toc-top small { color: var(--color-muted); font-size: var(--text-caption); font-variant-numeric: tabular-nums; }
.h-toc .toc-bar { height: 2px; background: var(--color-line-soft); }
.h-toc .toc-bar i { display: block; width: 0; height: 2px; background: var(--color-accent); transition: width 0.2s linear; }
.h-toc ol, .toc-m ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.h-toc ol { padding-top: var(--space-2); max-height: calc(100vh - 220px); overflow-y: auto; }
.h-toc ol li, .toc-m ol li { margin: 0; max-width: none; counter-increment: toc; }
.h-toc ol a, .toc-m ol a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-2);
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-left: 3px solid transparent;
  color: var(--color-ink);
  text-decoration: none;
}
.h-toc ol.dots a, .toc-m ol.dots a { grid-template-columns: minmax(0, 1fr); }
.h-toc ol .n, .toc-m ol .n { color: var(--color-muted); font: var(--weight-label) var(--text-small) / 1.4 var(--font-label); font-variant-numeric: tabular-nums; }
.h-toc ol a:hover .t, .toc-m ol a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.h-toc ol a.active { border-left-color: var(--color-accent); font-weight: var(--weight-bold); }
.h-toc ol a.active .n { color: var(--color-accent); }
.h-toc ol.toc-fade { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.h-toc .toc-more { display: grid; gap: var(--space-1); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-line-soft); }
.h-toc .toc-more a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; color: var(--color-accent-text); }
.h-toc .toc-more .ic { display: none; }
.h-toc .toc-pro { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-ink); }
.h-toc .toc-pro b { display: block; }
.h-toc .toc-pro p { margin: var(--space-1) 0 var(--space-2); }
.h-toc .toc-pro .h-btn { min-height: 44px; padding: 0; background: none; color: var(--color-accent-text); justify-content: flex-start; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.toc-m { display: none; margin: 0 0 var(--space-6); border: 1px solid var(--color-line); background: var(--color-bg); }
.toc-m summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-4);
  list-style: none;
  cursor: pointer;
}
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m .tm-ic { display: none; }
.toc-m .tm-l { font-weight: var(--weight-bold); }
.toc-m .tm-n { margin-left: auto; color: var(--color-muted); font-size: var(--text-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.toc-m .tm-cv { position: relative; display: block; width: 14px; height: 14px; flex: none; }
.toc-m .tm-cv svg { display: none; }
.toc-m .tm-cv::before, .toc-m .tm-cv::after { content: ""; position: absolute; background: var(--color-accent); }
.toc-m .tm-cv::before { left: 0; right: 0; top: 6.4px; height: 1.25px; }
.toc-m .tm-cv::after { top: 0; bottom: 0; left: 6.4px; width: 1.25px; }
.toc-m[open] .tm-cv::after { transform: scaleY(0); }
.toc-m ol { padding: var(--space-2) var(--space-4) var(--space-4); border-top: 1px solid var(--color-line-soft); }
.toc-m .tm-more { display: grid; gap: var(--space-1); padding: 0 var(--space-4) var(--space-4); }
.toc-m .tm-more .ic { display: none; }
@media (max-width: 991.98px) {
  .toc-m { display: block; }
  .toc-solo-col { display: none; }
}

/* a note inside an article body (admin HTML: aside.h-note > .hn-ic + text) */
.h-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  max-width: var(--measure);
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border: var(--border-card);
  background: var(--color-surface);
}
.h-note .hn-ic { color: var(--color-accent); line-height: 0; }
.h-note .hn-ic .ic { width: 22px; height: 22px; }
.h-note > :last-child, .h-note p:last-child { margin-bottom: 0; }
/* figures inside article bodies (admin HTML: figure.a-fig > img + figcaption): square, captioned, in the text column */
.a-fig { max-width: var(--measure); margin: var(--space-6) 0; }
.a-fig img { display: block; width: 100%; border-radius: 0; }
.a-fig figcaption { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--color-line-soft); }

/* the small forms (footer subscribe, contact): states set by main.js */
[data-mini-form] .mini-wait, [data-mini-form] .mini-done { display: none; align-items: center; gap: var(--space-3); font-weight: var(--weight-bold); }
[data-mini-form].loading .mini-wait, [data-mini-form].done .mini-done { display: flex; }
[data-mini-form].done .hf-row, [data-mini-form].done > .row, [data-mini-form].done > button, [data-mini-form].done .cf-fine, [data-mini-form].done .cf-sub { display: none; }
[data-mini-form] .mini-done:focus-visible { outline-offset: 4px; }
.mini-done .ic { width: 20px; height: 20px; color: var(--color-accent); }
.hf-err { display: none; }
.hf-sub.bad .hf-err { display: block; }
/* loading mark: a line being drawn */
.spin { position: relative; display: inline-block; width: 48px; height: 2px; overflow: hidden; background: var(--color-line-soft); vertical-align: middle; }
.spin::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--color-accent); animation: bp-draw 1.1s linear infinite; }
@keyframes bp-draw { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* tabs (main.js: [data-tabs] > [data-tab], .on / aria-selected): a ruled row, the current tab carries the coral bar */
[data-tabs] { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: 0 0 var(--space-6); border-bottom: 1px solid var(--color-line-soft); }
[data-tabs] [data-tab] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  margin: 0 0 -1px;
  padding: var(--space-2) 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--color-ink);
  font: var(--weight-label) var(--text-body) / 1.2 var(--font-label);
  cursor: pointer;
}
[data-tabs] [data-tab] .ic { display: none; }
[data-tabs] [data-tab]:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
[data-tabs] [data-tab].on, [data-tabs] [data-tab][aria-selected="true"] { border-bottom-color: var(--color-accent); font-weight: var(--weight-bold); }

/* ---------------------------------------------------------------- 10 new components (bp-*), shared by all pages */

/* 10.1 annotation label: uppercase caption in the label face (drawing labels, title-block fields, stop labels).
   Never put one directly above a heading: that is the banned eyebrow. */
.bp-tag {
  font: var(--weight-label) var(--text-caption) / var(--leading-label) var(--font-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.bp-mark { color: var(--color-accent); }

/* 10.2 the statement on a colour field (home first screen, 404): the surface blue with the 24 px grid paper */
.bp-paper {
  background-color: var(--color-surface);
  background-image:
    linear-gradient(var(--color-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px);
  background-size: var(--paper) var(--paper);
  background-position: -1px -1px;
}
.bp-field { padding-block: 12vh; padding-block: round(nearest, 12vh, var(--paper)); }
.bp-field h1 { max-width: 18ch; margin-bottom: var(--space-6); font-size: var(--text-h1); }
.bp-field .bp-lede { max-width: 52ch; margin-bottom: var(--space-6); font-size: var(--text-h4); line-height: 1.5; }
.bp-field .bp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.bp-notes { margin: var(--space-8) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-ink); font-size: var(--text-small); }
.bp-notes p { max-width: 62ch; margin: 0; }
.bp-notes .bp-tag { margin-right: var(--space-2); color: var(--color-accent); }
@media (max-width: 760px) {
  .bp-field { padding-block: 64px; }
  .bp-notes { margin-top: var(--space-7); }
}

/* 10.3 inner-page title (no hero): crumbs, h1, lede, one facts line, one button + text links */
.bp-head { padding: var(--space-8) 0 var(--space-7); }
.bp-head h1 { max-width: 24ch; }
.bp-head .lede { margin-bottom: var(--space-5); }
.bp-head .bp-facts { margin: 0 0 var(--space-5); color: var(--color-muted); font: var(--weight-label) var(--text-small) / var(--leading-label) var(--font-label); }
/* facts as <span>s on one line: the separators are drawn, so no new words enter the page */
.bp-facts > span + span::before { content: "\00b7"; content: "\00b7" / ""; margin: 0 var(--space-2); }
.bp-head .bp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
@media (max-width: 760px) { .bp-head { padding: var(--space-6) 0 var(--space-6); } }

/* 10.4 the chapter: a numbered section on the 5 / 7 grid. Number and title in the 5 (the number hangs in its own
   column), content in the 7. The chapter number is a CSS counter (not text). Markup:
   <section class="bp-ch"><div class="container bp-ch-grid"><header class="bp-ch-head"><h2>..</h2>..</header>
   <div class="bp-ch-body">..</div></div></section> */
.bp-ch { padding-block: var(--section-y); counter-increment: ch; }
.bp-ch-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--grid-gap); row-gap: var(--space-7); align-items: start; }
.bp-ch-head {
  grid-column: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-content: start;
}
.bp-ch-head::before {
  content: counter(ch, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 20;
  color: var(--color-accent);
  font: var(--weight-heading) var(--text-h2) / var(--leading-heading) var(--font-heading);
  font-variant-numeric: tabular-nums;
}
.bp-ch-head > * { grid-column: 2; }
.bp-ch-head h2 { margin-bottom: var(--space-4); }
.bp-ch-head > p { max-width: 44ch; }
.bp-ch-head > :last-child { margin-bottom: 0; }
.bp-ch-head.is-sticky { position: sticky; top: var(--space-6); }
@media (max-height: 760px) { .bp-ch-head.is-sticky { position: static; } }
.bp-ch-body { grid-column: 2; min-width: 0; }
.bp-ch-wide { grid-column: 1 / -1; min-width: 0; }
@media (max-width: 991.98px) {
  .bp-ch-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .bp-ch-head, .bp-ch-body, .bp-ch-wide { grid-column: 1; }
  .bp-ch-head.is-sticky { position: static; }
}
@media (max-width: 760px) {
  .bp-ch-head { grid-template-columns: 52px minmax(0, 1fr); }
}

/* 10.5 ruled list, index rows and term rows */
.bp-list { margin: 0; padding: 0; list-style: none; }
.bp-list > li { max-width: none; margin: 0; padding-block: var(--space-4); border-top: 1px solid var(--color-line-soft); }
.bp-list > li:last-child { border-bottom: 1px solid var(--color-line-soft); }
.bp-index { margin: 0; padding: 0; list-style: none; }
.bp-index > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  column-gap: var(--space-4);
  align-items: baseline;
  max-width: none;
  margin: 0;
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-line-soft);
}
.bp-index > li:last-child { border-bottom: 1px solid var(--color-line-soft); }
.bp-index .bp-no { color: var(--color-accent); font: var(--weight-label) var(--text-small) / 1.4 var(--font-label); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-label); }
.bp-index .bp-aside { color: var(--color-muted); font-size: var(--text-small); text-align: right; }
.bp-index a:not(.bp-go) { color: var(--color-ink); font-weight: var(--weight-bold); text-decoration: underline; text-decoration-color: var(--color-line); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bp-index a:not(.bp-go):hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .bp-index > li { grid-template-columns: 44px minmax(0, 1fr); }
  .bp-index .bp-aside { grid-column: 2; text-align: left; }
}

/* 10.6 callout beside a sequence (a caveat next to the step it qualifies) and a boxed panel */
.bp-note { padding-top: var(--space-3); border-top: 1px solid var(--color-ink); }
.bp-note > h3, .bp-note > h4 { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.bp-note > p { font-size: var(--text-small); }
.bp-note > :last-child { margin-bottom: 0; }
.bp-panel { padding: var(--space-5); border: var(--border-card); background: var(--color-surface); }
.bp-panel > :last-child { margin-bottom: 0; }

/* 10.7 the spine: a vertical sequence (home "From a map to a full route", how-it-works steps).
   <ol class="bp-spine"><li class="bp-stop is-start"><p class="bp-stop-label bp-tag">Join</p><div class="bp-stop-body">
   ..</div></li> ... <li class="bp-stop is-end">..</li></ol>   (.bp-stop may also be a div inside the li)
   The 2 px line runs at 25 % of the stop's width; each stop has a 16 px square marker on it: filled ink at the start
   (.is-start), coral at the end (.is-end, where the line stops). Stops follow each other without gaps. */
.bp-spine { --spine-x: 25%; position: relative; margin: 0; padding: 0; list-style: none; }
.bp-spine > li { max-width: none; margin: 0; }
.bp-stop { position: relative; display: grid; grid-template-columns: var(--spine-x) minmax(0, 1fr); max-width: none; margin: 0; }
.bp-stop-label { margin: 0; padding: 3px var(--space-6) 0 0; text-align: right; }
.bp-stop-body { position: relative; padding: 0 0 var(--space-8) var(--space-7); border-left: 2px solid var(--color-ink); }
.bp-stop.is-end .bp-stop-body { border-left-color: transparent; padding-bottom: 0; }
.bp-stop-body::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-ink);
  background: var(--color-bg);
}
.bp-stop.is-start .bp-stop-body::before { background: var(--color-ink); }
.bp-stop.is-end .bp-stop-body::before { border-color: var(--color-accent); background: var(--color-accent); }
.bp-stop-body h3 { margin-bottom: var(--space-2); }
.bp-stop-body > p { max-width: 54ch; }
.bp-stop-body .bp-fig { max-width: 240px; margin-top: var(--space-5); }
@media (max-width: 760px) {
  .bp-spine { --spine-x: 0px; }
  .bp-stop { grid-template-columns: minmax(0, 1fr); }
  .bp-stop-label { margin-left: 7px; padding: 0 0 var(--space-2) var(--space-6); border-left: 2px solid var(--color-ink); text-align: left; }
  .bp-stop-body { margin-left: 7px; padding-left: var(--space-6); padding-bottom: var(--space-7); }
  .bp-stop-body::before { top: -24px; }
  .bp-stop.is-start .bp-stop-label { border-left-color: transparent; }
  .bp-stop.is-end .bp-stop-label { border-left-color: var(--color-ink); }
}

/* 10.8 the plan table (home last stop, pricing): plans as columns, prices in the label face with tabular numbers;
   on phones every plan becomes one ruled block (the cells regroup by plan; the row heads move into data-label). */
.bp-plans { width: 100%; table-layout: fixed; }
.bp-plans thead th { padding-bottom: var(--space-4); font: var(--weight-subhead) var(--text-h3) / 1.15 var(--font-subhead); }
.bp-plans thead td { border-bottom: 2px solid var(--color-ink); }
.bp-plans tbody th[scope="row"] {
  width: 17%;
  padding-right: var(--space-5);
  color: var(--color-muted);
  font: var(--weight-label) var(--text-caption) / var(--leading-label) var(--font-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.bp-plans td { padding-right: var(--space-6); }
.bp-plans .bp-price { max-width: none; margin: 0; font: var(--weight-label) var(--text-h2) / 1.1 var(--font-label); font-variant-numeric: tabular-nums; }
.bp-plans .bp-price b { font-weight: var(--weight-bold); }
.bp-plans .bp-price s { margin-left: var(--space-2); color: var(--color-muted); font-size: var(--text-small); font-weight: var(--weight-body); }
.bp-plans .bp-per { display: block; margin-top: var(--space-1); color: var(--color-muted); font: var(--weight-body) var(--text-small) / 1.4 var(--font-body); }
.bp-plans ul { margin: 0; padding: 0; list-style: none; font-size: var(--text-small); }
.bp-plans ul li { margin: 0; padding: var(--space-2) 0; border-top: 1px solid var(--color-line-soft); }
.bp-plans ul li:first-child { border-top: 0; padding-top: 0; }
.bp-plans tfoot td { padding-top: var(--space-4); border: 0; }
@media (max-width: 760px) {
  .bp-plans { display: grid; grid-template-columns: minmax(0, 1fr); table-layout: auto; }
  .bp-plans thead, .bp-plans tbody, .bp-plans tfoot, .bp-plans tr { display: contents; }
  .bp-plans th, .bp-plans td { display: block; width: auto; padding: var(--space-2) 0; border: 0; }
  .bp-plans tbody th[scope="row"], .bp-plans thead td:first-child, .bp-plans tfoot td:first-child { display: none; }
  .bp-plans [data-label]::before { content: attr(data-label); display: block; margin-bottom: var(--space-1); color: var(--color-muted); font: var(--weight-label) var(--text-caption) / var(--leading-label) var(--font-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
  .bp-plans .p1 { order: 1; } .bp-plans .p2 { order: 2; } .bp-plans .p3 { order: 3; }
  .bp-plans thead th { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-ink); }
  .bp-plans thead th.p1 { margin-top: 0; }
  .bp-plans tfoot td { padding-bottom: var(--space-2); }
}

/* 10.9 figures and drawings */
.bp-fig { margin: 0; }
.bp-fig figcaption { margin-top: var(--space-3); }
.bp-fig figcaption .bp-tag { margin-right: var(--space-1); color: var(--color-ink); }

/* ---------------------------------------------------------------- 11 drawings (inline SVG, class "dw")
   Light ink lines on navy: 1.25 px for outlines, 0.75 px for secondary lines and hatching, 2 px for cut lines;
   coral only for annotations (leaders to tags, dimension lines, the current item). Labels are text in the label face
   (13 px at 1:1). Defs (arrowheads, hatching) are in the frame: url(#bp-arrow), url(#bp-hatch), url(#bp-hatch-accent). */
.dw { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--color-ink); stroke-width: var(--stroke); stroke-linecap: square; stroke-linejoin: miter; }
.dw :is(path, line, polyline, polygon, rect, circle, ellipse) { vector-effect: non-scaling-stroke; }
.dw .thin { stroke-width: 0.75px; }
.dw .soft { stroke: var(--color-line-soft); stroke-width: 1px; }
.dw .heavy { stroke-width: 2px; }
.dw .dash { stroke-dasharray: 5 4; stroke-width: 1px; }
.dw .hatch { fill: url(#bp-hatch); stroke-width: 1px; }
.dw .solid { fill: var(--color-ink); stroke: none; }
.dw .ground { fill: var(--color-bg); }
.dw .mark { stroke: var(--color-accent); stroke-width: 1px; }
.dw .mark-fill { fill: var(--color-accent); stroke: none; }
.dw .lead { stroke: var(--color-accent); stroke-width: 1px; marker-end: url(#bp-dot); }
.dw .dim { stroke: var(--color-accent); stroke-width: 1px; marker-start: url(#bp-arrow-s); marker-end: url(#bp-arrow-e); }
.dw text {
  fill: var(--color-ink);
  stroke: none;
  font: var(--weight-label) 13px / 1 var(--font-label);
  letter-spacing: 0;
}
.dw text.num { font-variant-numeric: tabular-nums; }
.dw text.lbl { text-transform: uppercase; letter-spacing: 0.06em; }
.dw text.tag { letter-spacing: 0.04em; }
.dw text.tag { fill: var(--color-accent); font-weight: var(--weight-bold); }
.dw text.muted { fill: var(--color-muted); }
.bp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- 12 motion: only where it explains something */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
