/*
 * 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;
}
/* A bundle's icon: a tile washed in the accent. Decoration; the title says the same. */
.block-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 9%, var(--background));
  color: var(--accent);
}
.block-icon .ic {
  width: 18px;
  height: 18px;
}
.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 (v5): product name, photos, then quiet meta ---------- */
header.hero {
  display: grid;
  gap: 8px;
  align-content: start;
}
.hero-title,
.hero-media {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
/* The passport's language switch sits on a line of its own above the hero, at the end. */
.page > .languages {
  display: flex;
  width: fit-content;
  margin-inline-start: auto;
  margin-bottom: 8px;
}
/* From 960px, with a picture, the hero and the bundles start on one line, under the switch and the
   notices, each on a row of its own. Without one the left column would hold only a name, so the
   page stays one column, as on a phone. */
@media (min-width: 960px) {
  .page:has(> header.hero.with-photos) {
    grid-template-rows: auto auto auto auto 1fr;
  }
  .page:has(> header.hero.with-photos) > .notice {
    grid-row: 1;
  }
  .page:has(> header.hero.with-photos) > .status-notice {
    grid-row: 2;
  }
  .page:has(> header.hero.with-photos) > .languages {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-bottom: 24px;
  }
  .page:has(> header.hero.with-photos) > header.hero {
    grid-column: 1;
    grid-row: 4;
  }
  .page:has(> header.hero.with-photos) > main {
    grid-column: 2;
    grid-row: 4;
  }
  .page:has(> header.hero.with-photos) > footer {
    grid-row: 5;
  }
  .page:has(> header.hero:not(.with-photos)) {
    display: block;
    max-width: 40rem;
  }
  .page:has(> header.hero:not(.with-photos)) > header.hero {
    position: static;
    margin-bottom: 24px;
  }
}
header.hero h1 {
  font-size: clamp(1.75rem, 6.4vw, 2.25rem);
  font-weight: 660;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
header.hero .kicker {
  font-size: 0.8125rem;
  line-height: 1.45;
}
header.hero .brand {
  margin-top: 2px;
}
.product-gallery {
  display: grid;
  gap: 8px;
  margin-block: 8px 6px;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(56vh, 30rem);
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface);
  outline: 1px solid var(--border);
  outline-offset: -1px;
}

/* Several photos, one at a time (display template v5). The photo showing is a hidden radio's
   choice; each arrow is a label for the next or the previous one. Positions for six. */
.carousel {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.gallery-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gallery-track {
  display: flex;
  transition: translate 280ms cubic-bezier(0.2, 0, 0, 1);
}
.gallery-track > li {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel:has(#product-photo-2:checked) .gallery-track { translate: -100% 0; }
.carousel:has(#product-photo-3:checked) .gallery-track { translate: -200% 0; }
.carousel:has(#product-photo-4:checked) .gallery-track { translate: -300% 0; }
.carousel:has(#product-photo-5:checked) .gallery-track { translate: -400% 0; }
.carousel:has(#product-photo-6:checked) .gallery-track { translate: -500% 0; }

.gallery-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.gallery-step {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--background);
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: auto;
}
.carousel:has(#product-photo-1:checked) .gallery-step:nth-child(1),
.carousel:has(#product-photo-2:checked) .gallery-step:nth-child(2),
.carousel:has(#product-photo-3:checked) .gallery-step:nth-child(3),
.carousel:has(#product-photo-4:checked) .gallery-step:nth-child(4),
.carousel:has(#product-photo-5:checked) .gallery-step:nth-child(5),
.carousel:has(#product-photo-6:checked) .gallery-step:nth-child(6) {
  display: flex;
}
.gallery-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--foreground);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gallery-arrow:hover {
  background: var(--surface);
}
.gallery-arrow:active {
  scale: 0.94;
}
.gallery-arrow.previous .ic {
  rotate: 180deg;
}
.gallery-count {
  min-width: 3.25em;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}
/* The radios are what a keyboard moves through: their focus shows on the photo they choose. */
.carousel:has(.gallery-choice:focus-visible) .gallery-track img {
  outline: 2px solid var(--foreground);
  outline-offset: -2px;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    transition: none;
  }
}
@media print {
  .gallery-controls {
    display: none;
  }
  .gallery-track {
    translate: none !important;
  }
  .gallery-track > li:not(:first-child) {
    display: none;
  }
}
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 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);
  scroll-margin-top: 16px;
}
@media (min-width: 640px) {
  main > section {
    padding: 26px 26px 24px;
  }
}

/* ---------- Bundles (display template v5): one titled panel, open on tap ---------- */
main.bundles {
  gap: 8px;
  margin-top: 20px;
}
main > details.bundle {
  min-width: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--border);
  scroll-margin-top: 16px;
  overflow: hidden;
}
details.bundle > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px 10px 12px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
details.bundle > summary::-webkit-details-marker {
  display: none;
}
details.bundle > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-inline: auto 4px;
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  rotate: 45deg;
  translate: 0 -2px;
}
details.bundle[open] > summary::after {
  rotate: -135deg;
  translate: 0 1px;
}
details.bundle > summary:hover {
  background: color-mix(in srgb, var(--surface) 60%, var(--background));
}
details.bundle > summary:active {
  background: var(--surface);
}
details.bundle > summary:focus-visible {
  outline-offset: -2px;
  border-radius: 16px;
}
/* A heading, so the page is still walked by heading; sized as the summary's line, not as a section's. */
h2.bundle-title {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.008em;
  overflow-wrap: anywhere;
}
details.bundle > .bundle-panel {
  margin-inline: 16px;
  padding: 18px 0 18px;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  details.bundle > summary {
    padding-inline: 16px 22px;
  }
  details.bundle > .bundle-panel {
    margin-inline: 22px;
    padding-block: 20px 22px;
  }
}
/* ---------- Facts (§6): a muted label over its value, two to a row where there is room ---------- */
/* No tile and no icon: the bundle's header carries the one icon, and depth shows in the type, not in
   indents or backgrounds. */
.rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 14px 24px;
}
.fact {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: start;
}
/* A group, or a text that reads as a sentence rather than a value, takes the full width. */
.fact.wide,
.fact.long {
  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: 500;
  line-height: 1.3;
  color: var(--muted-foreground);
  hyphens: auto;
  overflow-wrap: anywhere;
}
.fact > dd {
  font-size: 0.9375rem;
  font-weight: 520;
  line-height: 1.45;
  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;
}
/* Nothing given: the dash, quieter than a value, so it does not read as one. */
.fact > dd.empty {
  color: var(--muted-foreground);
  font-weight: 400;
}
/* An object or a list of objects (§5): its label a small title right over its own facts. */
.fact > dt.sub {
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--foreground);
}
.fact > dd.sub {
  padding-top: 6px;
}
/* A hairline between one group and the next, at every depth: never over the first. */
.rows > .fact.wide:not(:first-child) {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
/* A bundle holding several of the document's groups: each group's name is a quieter heading over
   a hairline, so it reads as a part of the bundle and not as a second title. */
.rows.groups {
  row-gap: 20px;
}
.rows.groups > .fact.wide > dt.sub {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}
.rows.groups > .fact.wide:not(:first-child) {
  padding-top: 20px;
}
.rows.groups > .fact.wide > dd.sub {
  padding-top: 10px;
}

/* 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: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 520;
  white-space: normal;
}

/* An array of objects: one tile each, numbered, because the number is the only name the document
   gives them; there the tile says where one item ends. Inside it the facts stack, the first its title. */
.cards {
  counter-reset: card;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 8px;
}
.cards > li {
  counter-increment: card;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.cards > li::before {
  content: counter(card);
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.cards .rows {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.cards > li > .rows > .fact:first-child > dd {
  font-weight: 620;
}
/* A card inside a card takes the page's own ground, so the two stay apart. */
.cards .cards > li {
  background: var(--background);
}
.cards > li > .leaf {
  font-size: 0.9375rem;
  font-weight: 520;
  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: 8px 8px 8px 14px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}
.components a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
  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;
}
.bundles .note {
  font-size: 0.875rem;
}

/* ---------- 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;
}
/* In the passport's own bundle the facts lose their tiles, like every other bundle's. */
.about .provenance {
  gap: 14px 24px;
}
.about .provenance > div {
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.about .provenance dt {
  font-weight: 500;
}
.about .provenance dd,
.about .provenance .big dd {
  font-size: 0.9375rem;
  font-weight: 520;
}
.about .provenance code {
  font-size: 0.8125rem;
}
.about p {
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  max-width: 60ch;
}
.about p + p {
  margin-top: 10px;
}
/* The sealed document, as a ghost pill. */
.about .sealed-link {
  gap: 8px;
  margin-top: 14px;
}
.about .sealed-link a {
  padding: 7px 14px;
  font-size: 0.875rem;
}
.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;
  }
  details.bundle > summary::after {
    display: none;
  }
  details.bundle,
  details.bundle > .bundle-panel {
    display: block;
  }
  /* Every bundle starts closed; on paper all of them read, where the browser lets a stylesheet open one. */
  details.bundle::details-content {
    content-visibility: visible;
    display: contents;
  }
  .jump-list,
  .languages {
    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 {
    display: none;
  }
  h2,
  h3,
  .fact > dt.sub {
    break-after: avoid;
  }
  .cards > li,
  .provenance > div,
  .fact:not(.wide) {
    break-inside: avoid;
  }
}
