/*
 * The default passport page (docs/superpowers/specs/2026-09-16-dpp-web-default-design.md), in the
 * "readable" direction of the Tracii design language (17 September 2026): a hero, sections as
 * blocks, facts with the label above the value, and values drawn by their shape.
 *
 * A plain stylesheet, served as a file, because the passport page is a document a route
 * handler writes out with its own headers (ADR 0101) and no build step sits between this file
 * and the page. It is the whole of what a scan downloads besides the HTML (§9).
 *
 * Tokens (§7): one light look, no dark mode, `color-scheme: light` so no browser darkens the page
 * on its own. They are custom properties rather than literals because an organization's theme overrides
 * them inline (theme design §9); the values here are what every organization gets before touching
 * anything, and `src/lib/theme/tokens.ts` pins them so the contrast test and this file agree.
 * Accent defaults to the foreground: the page is monochrome until a theme sets it. Everything
 * else is derived from these six, so every preset works unchanged. Icons and accents are
 * decoration: nothing on a passport means anything by colour.
 */
:root {
  color-scheme: light;
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --background: #ffffff;
  --foreground: #16191d;
  --muted-foreground: #5b6470;
  --border: #e3e6ea;
  --surface: #f5f7f9;
  --accent: var(--foreground);
  --radius: 20px;
}

/*
 * Albert Sans, Tracii's own face, for Tracii's own pages only (home, not found, error). A font is
 * downloaded only where it is used, so an organization's passport never fetches it.
 */
@font-face {
  font-family: "Albert Sans";
  src: url("/fonts/albert-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Albert Sans";
  src: url("/fonts/albert-sans-latin-ext-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The little of a reset a document needs. */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}
body,
h1,
h2,
h3,
p,
dl,
dt,
dd,
ul,
ol,
figure,
pre {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
::selection {
  background: color-mix(in srgb, var(--accent) 22%, var(--background));
}

/* Type, measure, rhythm (§6). 17 px base: the values are what a person came to read. */
html {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--background);
  color: var(--foreground);
  padding: 16px 16px 40px;
  overflow-x: clip;
}
@media (min-width: 960px) {
  body {
    padding: 32px 32px 56px;
  }
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
/* Hover is instant: the underline thickens, nothing fades. */
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
  border-radius: 8px;
}
/* No monospace: identifiers and hashes in the page's own face, with even figures. */
code {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-all;
}
h1 {
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 660;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
/* The block's icon: a tile washed in the accent. Decoration; the heading says the same. */
.block-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 9%, var(--background));
  color: var(--accent);
}
.ic {
  width: 22px;
  height: 22px;
  flex: none;
}
.ic.sm {
  width: 16px;
  height: 16px;
}
h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* ---------- Layout: one column on a phone; the hero beside the content from 960px ---------- */
.page {
  max-width: 40rem;
  margin-inline: auto;
}
@media (min-width: 960px) {
  .page:has(> header) {
    max-width: 72rem;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 48px;
    align-items: start;
  }
  .page:has(> header) > header {
    position: sticky;
    top: 32px;
  }
  .page:has(> header) > .notice,
  .page:has(> header) > footer {
    grid-column: 1 / -1;
  }
}

/* A preview's notice (theme design §9): above everything, in the frame's own voice. */
.notice {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Where this version stands (ADR 0111): the page speaking, not the document, so it sits above
   the content in the frame's voice — the text colour on the page's own ground, a hairline, and
   no accent, because colour means nothing on a passport. The word says what happened. */
.status-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--background);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--foreground);
  line-height: 1.45;
}

.status-notice .ic {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.status-notice a {
  color: inherit;
  text-underline-offset: 3px;
}

.status-notice a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Hero (§4): the brand leads, the product is the headline, the passport names itself ---------- */
header {
  display: grid;
  gap: 6px;
  align-content: start;
}
/* The language switch (ADR 0105): two small pills, the current one in the text colour. It
   changes the frame's words, never the brand's, so it stays quiet and uses the brand's tokens. */
.languages {
  justify-self: end;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--surface);
}
.languages a {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.languages a:hover {
  color: var(--foreground);
}
.languages a[aria-current] {
  background: var(--foreground);
  color: var(--background);
}
/* Forced colours drop the fill, which is all that marks the language showing: underline it
   instead, so the choice survives a high-contrast theme (#170). */
@media (forced-colors: active) {
  .languages a[aria-current] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
}

/* The product's image (ADR 0155), first in the hero. A frame of its own shape so the page does not
   move when it arrives: near-square on a phone, so the brand and the name still make the first
   screen, and capped in height beside the content. The image fills it from a little above centre,
   where a packshot's subject sits. */
.photo {
  position: relative;
  margin-bottom: 12px;
  aspect-ratio: 1 / 1.05;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
}
/* A hairline over the photo's edge, the one the blocks have, so a pale backdrop still has an edge
   on a pale page. */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: none;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
@media (min-width: 960px) {
  .photo {
    aspect-ratio: auto;
    height: min(42vh, 420px);
  }
}

/* The one uppercase line on a passport: the organization's name, in its accent. */
.brand {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase; /* tracii-audit-ignore: the brand line is the one sanctioned uppercase */
  color: var(--accent);
}
/* A logo replaces the brand line's text, height-capped at two line-heights (theme design §4). */
.brand img {
  display: block;
  max-height: 3.1rem;
  width: auto;
  max-width: 60%;
  margin-bottom: 6px;
}
.kicker {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  /* One long word, "Verification" at 200 % text, is wider than a phone's column (1.4.4). */
  overflow-wrap: anywhere;
}
.kicker > span + span::before {
  content: "·";
  margin-inline: 0.45em;
}

/* The jump list: one pill per section the document has, first in the content column. On a
   phone it stays in view as a strip that scrolls sideways; from 960px it wraps. Hidden in print.
   The strip stays one row, so that it never covers more than a sliver of a phone (#208). Where
   it runs on past an edge, that edge fades into the page, so a pointer user can see there is
   more; and a thin scrollbar shows on hover or focus to drag it by. */
.jump-list {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Focus scrolls a pill clear of the fades, not under them. */
  scroll-padding-inline: 16px 40px;
  margin-inline: -16px;
  padding-block: 10px;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* The fades stand in for the strip's side padding and stick to its edges. At an end the strip
   has reached, a fade sits back in its own place, over the padding, where there is nothing to
   fade. The end one is wider, so the pill it cuts off shows it; at the end, that is only a
   little more room after the last pill. Drawn in the page's own background, so a brand's
   theme fades into itself. */
.jump-list::before,
.jump-list::after {
  content: "";
  flex: none;
  position: sticky;
  z-index: 1;
  pointer-events: none;
}
.jump-list::before {
  inset-inline-start: 0;
  width: 16px;
  margin-inline-end: -6px;
  background: linear-gradient(to right, var(--background), transparent);
}
.jump-list::after {
  inset-inline-end: 0;
  width: 40px;
  margin-inline-start: -6px;
  background: linear-gradient(to left, var(--background) 20%, transparent);
}
/* For a mouse, a scrollbar to drag: always there, so the strip does not jump, and drawn only
   while the pointer or the focus is in the strip. Safari has no `scrollbar-color`, so there the
   thin scrollbar is the system's own: shown while scrolling, or always, as the reader set it. */
@media not (any-hover: hover) {
  .jump-list::-webkit-scrollbar {
    display: none;
  }
}
@media (any-hover: hover) {
  .jump-list {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }
  .jump-list:hover,
  .jump-list:focus-within {
    scrollbar-color: var(--muted-foreground) transparent;
  }
}
@media (min-width: 960px) {
  .jump-list {
    position: static;
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .jump-list::before,
  .jump-list::after {
    content: none;
  }
}
.jump-list a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.jump-list a:hover {
  box-shadow: inset 0 0 0 1.5px var(--border);
}
/* Above the fades, so they never veil a focus ring. */
.jump-list a:focus-visible {
  position: relative;
  z-index: 2;
}

/* ---------- Blocks: each section is a card ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 960px) {
  .page:has(> header) > main {
    margin-top: 0;
  }
}
main > section {
  min-width: 0;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border);
  /* Clear of the sticky jump list on a phone: its pills grow with the text size, its padding
     and scrollbar do not. */
  scroll-margin-top: calc(1.4rem + 52px);
}
@media (min-width: 960px) {
  main > section {
    scroll-margin-top: 24px;
  }
}
@media (min-width: 640px) {
  main > section {
    padding: 26px 26px 24px;
  }
}

/* ---------- At a glance: up to six tiles the template named (ADR 0145) ---------- */
.glance h2 {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 14px;
}
.glance ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.glance a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.glance a:hover {
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.glance .g-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted-foreground);
}
.glance .g-value {
  font-size: 1.0625rem;
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* A fact's glyph: the template's symbol, decoration beside the label. */
.glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 9%, var(--background));
  color: var(--accent);
}

/* ---------- Facts (§6): a small label over the value, in a grid ---------- */
.rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 18px 24px;
}
.fact {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: start;
}
.fact.wide {
  grid-column: 1 / -1;
}
/* A label is the template's words in the frame's language, and Danish writes long compounds
   ("Reparationsvejledning"): it hyphenates in that language, and breaks anywhere before it would
   push the page sideways at double text size (1.4.4, 1.4.10). */
.fact > dt {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted-foreground);
  hyphens: auto;
  overflow-wrap: anywhere;
}
.fact > dd {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* A number the organization said is one, formatted for the page (ADR 0153): even figures, like the other numbers here. */
.fact > dd.num {
  font-variant-numeric: tabular-nums;
}
/* An object or a list of objects takes the full width (§5): its label is a sub-heading and its
   own facts sit under it as cards on the surface. */
.fact > dt.sub {
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 650;
}
.fact > dd.sub {
  padding-top: 4px;
  font-size: 1rem;
}
.rows .rows {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 10px;
}
.rows .rows > .fact:not(.wide) {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  gap: 3px;
}
.rows .rows > .fact > dd {
  font-size: 1rem;
  font-weight: 550;
}
/* A card inside a card takes the page's own ground, so the two stay apart. */
.rows .rows .rows > .fact:not(.wide) {
  background: var(--background);
}

/* A yes or a no: the word, with the tick or the cross in the text colour. */
.yesno {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.answer {
  width: 16px;
  height: 16px;
  flex: none;
}

/* A web address: the arrow says it leaves the page. */
.fact > dd > a::after,
.cards .leaf > a::after {
  content: "\2197" / "";
  margin-left: 0.25em;
  text-decoration: none;
  display: inline-block;
}

/* An array of primitives: chips, still a list. */
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.inline-list li {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 550;
  white-space: normal;
}

/* An array of objects: one tile each, numbered, because the number is the only name the
   document gives them. Inside a tile the facts stack, and the first reads as its title. */
.cards {
  counter-reset: card;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 10px;
}
.cards > li {
  counter-increment: card;
  min-width: 0;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: var(--surface);
}
.cards > li::before {
  content: counter(card);
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.cards .rows,
.rows .cards .rows {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.cards .rows > .fact:not(.wide),
.rows .rows .cards .rows > .fact:not(.wide) {
  padding: 0;
  background: none;
}
.cards > li > .rows > .fact:first-child > dd {
  font-size: 1.0625rem;
  font-weight: 650;
}
.cards .cards > li,
.rows .rows .cards > li {
  background: var(--background);
}
.cards > li > .leaf {
  font-weight: 500;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ---------- Components: parts whose data lives in a passport of their own ---------- */
.components {
  display: grid;
  gap: 8px;
}
.components li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: var(--surface);
  font-weight: 600;
}
.components a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.components a:hover {
  background: color-mix(in srgb, var(--foreground) 82%, var(--background));
}

.note {
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 60ch;
}

/* ---------- About this passport: quiet, complete, never folded ---------- */
.provenance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.provenance > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
}
.provenance .full {
  grid-column: 1 / -1;
}
.provenance dt {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted-foreground);
}
.provenance dd {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.provenance .big dd {
  font-size: 1.125rem;
  font-weight: 620;
}
.provenance code {
  font-size: 0.875rem;
}
/* The model link: the tile's own colour, whatever a theme's accent, so the tile's contrast holds. */
.provenance dd a {
  color: inherit;
}
.about p {
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 60ch;
}
.about p + p {
  margin-top: 10px;
}
/* The sealed document, as a ghost pill. */
.about .sealed-link {
  margin-top: 18px;
}
.sealed-link a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.sealed-link a:hover {
  box-shadow: inset 0 0 0 1.5px var(--muted-foreground);
}

/* ---------- Footer: Tracii is only the seal ---------- */
footer {
  margin-top: 28px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}
/* The way to the accessibility statement (#170): quiet, and on every page, whatever the theme. */
.statement-link {
  font-size: 0.875rem;
}
.statement-link a {
  color: var(--muted-foreground);
}
.plain .statement-link {
  margin-top: 40px;
}
.seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 600;
  color: var(--foreground);
}
/* The wordmark stands for the word "Tracii": the logo's 16px minimum, set on the words' line. */
.seal .wordmark {
  width: auto;
  height: 18px;
  flex: none;
}

/* ---------- Tracii's own pages (§10): no organization is known, so Tracii leads, in its own face ---------- */
.plain {
  display: block;
  margin-top: 0;
  padding-block: 0 24px;
  font-family: "Albert Sans", system-ui, sans-serif;
  --tracii-ink: #16191d;
}
/* The band: ultramarine, full bleed, with the white wordmark. The tick turns white with it. */
.band {
  margin-inline: calc(50% - 50vw);
  margin-top: -16px;
  margin-bottom: 28px;
  padding: 36px max(16px, calc(50vw - 20rem)) 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #3f37c9;
  color: #ffffff;
  --tracii-proof: #ffffff;
}
@media (min-width: 960px) {
  .band {
    margin-top: -32px;
  }
}
.band .wordmark {
  width: auto;
  height: 40px;
}
/* On the band the switch is white, the current language ultramarine on white. */
.band .languages {
  margin: 0;
  background: rgb(255 255 255 / 0.14);
}
.band .languages a {
  color: #ffffff;
}
.band .languages a[aria-current] {
  background: #ffffff;
  color: #3f37c9;
}
.band :focus-visible {
  outline-color: #ffffff;
}
.plain h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 640;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.plain p + p {
  margin-top: 12px;
}
.plain .lead {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.45;
  max-width: 36ch;
}
.plain .muted {
  color: var(--muted-foreground);
  max-width: 60ch;
}
.plain .lead + .muted {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.9375rem;
  max-width: 30rem;
}
.plain .retry {
  display: inline-block;
  margin-top: 28px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--tracii-ink);
  color: #ffffff;
}
.plain .retry:hover {
  background: #2c323a;
}
.plain .retry:active {
  transform: scale(0.98);
}
.plain .retry:focus-visible {
  outline-color: var(--tracii-ink);
}

/* The accessibility statement (#170): the plain page's column, with headed sections. Its title
   is one long word in Danish, so it is set smaller and may hyphenate rather than break anywhere. */
.plain:has(.statement) h1 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  max-width: none;
  hyphens: auto;
}
.plain .statement {
  margin-top: 32px;
  max-width: 60ch;
}
.plain .statement h2 {
  font-size: 1.25rem;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.plain .statement p,
.plain .statement ul {
  margin-top: 10px;
}
.plain .statement ul {
  padding-inline-start: 1.25em;
  list-style: disc;
}
.plain .statement li + li {
  margin-top: 8px;
}

/* ---------- The sealed document (ADR 0102): the same frame, no theme, the JSON as written ---------- */
.document .provenance {
  margin-bottom: 4px;
}
.document pre,
.recipe pre {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* ---------- Verification (ADR 0132): the raw view's frame, each check a block of facts ---------- */
.sealed-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Identifiers, hashes and long compounds must wrap rather than push the page sideways at 200 %
   text on a phone (1.4.4). */
.verification {
  overflow-wrap: anywhere;
}
.verification .verdict {
  margin-top: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 60ch;
}
.verification .provenance {
  margin-top: 16px;
}
.checks {
  display: grid;
  gap: 22px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.checks .check + .check {
  padding-top: 22px;
  border-top-width: 1px;
}
.checks h3 {
  font-size: 1.0625rem;
  font-weight: 620;
}
/* The outcome is a word, first: never a colour on its own. A failure is drawn heavier. */
.checks .outcome {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
}
.checks .fails .outcome {
  box-shadow: inset 0 0 0 2px var(--foreground);
}
.checks .provenance {
  margin-top: 12px;
}
.checks .provenance dd a {
  color: inherit;
}
.files {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 1.25rem;
}
.files a {
  color: var(--foreground);
  font-weight: 600;
}
.verification .sealed-link {
  margin-top: 18px;
}

/* ---------- The offline recipe (ADR 0132, #220): the raw view's frame, the script's commands ---------- */
.recipe {
  overflow-wrap: anywhere;
}
.recipe > p,
.recipe .rules {
  margin-top: 12px;
  max-width: 65ch;
}
.lede {
  margin-top: 8px;
  max-width: 48ch;
}
/* A command or a file inside a sentence: set apart by a quiet ground, since the face is the
   same, and broken only where a word would be unless it cannot fit at all. */
.recipe p code,
.recipe li code {
  padding: 0 0.25em;
  border-radius: 4px;
  background: var(--surface);
  word-break: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.recipe .rules {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
  list-style: disc;
}
.recipe .provenance {
  margin-top: 16px;
}
.recipe > .sealed-link {
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .plain .retry:active {
    transform: none;
  }
}

/* Print (§7): one column, the jump list hidden, the component pill an underlined link, blocks
   kept whole across page breaks. A heading never ends a page. */
@media print {
  body {
    padding: 0;
  }
  .page:has(> header) {
    display: block;
  }
  .page:has(> header) > header {
    position: static;
  }
  .jump-list,
  .languages,
  .photo {
    display: none;
  }
  main > section {
    box-shadow: none;
    padding-inline: 0;
  }
  .components a,
  .sealed-link a {
    background: none;
    color: var(--foreground);
    box-shadow: none;
    padding: 0;
    text-decoration: underline;
  }
  .jump-list {
    position: static;
  }
  .block-icon,
  .glyph {
    display: none;
  }
  h2,
  h3,
  .fact > dt.sub {
    break-after: avoid;
  }
  .cards > li,
  .provenance > div,
  .fact:not(.wide) {
    break-inside: avoid;
  }
}
