:root{color-scheme:light;--paper:#f5f8f8;--heading:#112529;--ink:#25383c;--green:#00584c;--moss:#69511b;--muted:#475f63;--line:#d4e1df;--wash:#e7f0ee;--field:#ffffff;--error:#a02235;--accent2:#936912;--dark:#12282d;--dark-ink:#e3f3ee;--serif:system-ui, sans-serif;--sans:system-ui, sans-serif;--radius:0.25rem}

/* Siteværk base sheet for every design family (BLOKKE.md 2.3). It follows the tokens on :root and the @font-face rules
   the build writes above it, and comes before the family sheet. Only tokens: no fixed colours. Text only stands in the
   pairs of BLOKKE.md 2.4: ink, heading, green, muted, moss and error on paper; ink, heading, green, muted and error on
   wash and field; dark-ink on dark; paper on green. Text never stands on an image. */

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  /* The page's width measured in its own text size (»side«). Every width rule of the family sheets asks this container,
     not the viewport: »@container side (min-width: 60rem)« counts the reader's own rem, so with the text at 200 % a
     1920 px screen gets the layout of 960 px, as the browser's zoom gives it. A @media width counts the browser's default
     16 px, so at 200 % text it kept the columns of a wide screen and left the tool on the home page 20 px for its list at
     1024 px (one letter a line, eftersyn 17 November). At the reader's normal size the two are the same (BLOKKE.md 4.5).
     Below: a page under 18em of its own text (large text on a narrow screen). */
  container: side / inline-size;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
  /* Danish hyphenation (lang="da" on <html>), only for very long compounds: a word of about 20 characters or more may
     break with a hyphen, with at least 8 before and 6 after (»afbrændingsbekendt-gørelsens«), instead of mid-word
     without one (pilot 16 November). Chrome counts punctuation that touches the word. Common words are never split:
     »opvarmnin-gen«, »reg-lerne« and »badea-realet« at 8 3 3 were ugly and wrong, and at 16 7 6 Chrome's dictionary
     still gave »Opvarmning-stider« (fem småting, 16 November). Safari has no word length and only gets the 8 and 6.
     Headings, names,
     numbers, the answer's text, menu, buttons, links that act as buttons and e-mail addresses (Chrome counts the whole
     address as one word and split »andreas@siteva-erk.dk«) only break where a word cannot fit at all
     (hyphens: manual below, overflow-wrap as the last resort). */
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 20 8 6;
  -webkit-hyphenate-limit-before: 8;
  -webkit-hyphenate-limit-after: 6;
}

h1, h2, h3, .wordmark, .site-header, .site-footer, .blok-value, .blok-unit, .blok-row-value, .blok-axis, .blok-axis-unit, .section-number,
summary, button, label, legend, .tool-headline, .tool-example-mark, .answer-value, .answer-text, .hero-link, .blok-more,
a[href^="mailto:"] {
  -webkit-hyphens: manual;
  hyphens: manual;
}

h1, h2, h3, p, ol, ul, figure, fieldset, dl, dd { margin: 0; }

h1, h2, h3, .wordmark {
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

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

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

:target { scroll-margin-top: 1rem; }

.wrap { width: min(100% - 2rem, 86.25rem); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  padding: 0.75rem 1rem;
  background: var(--field);
  color: var(--ink);
  transform: translateY(calc(-100% - 2rem));
}

.skip-link:focus { transform: none; }

/* Header and footer */

.site-header {
  position: relative;
  min-height: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-footer nav, .site-menu-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(1rem, 2.4vw, 2rem);
}

.site-header nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--heading);
  text-decoration: none;
}

.site-header nav a { font-size: 1rem; font-weight: 600; }

/* The menu of a designed page (render.mjs menuMarkup, BLOKKE.md 4.5): a <details> whose »Menu« button folds the links
   out on a phone. On wide screens the button is hidden and the closed content shown as the row of links; a browser
   without ::details-content keeps the button there too, so the menu still works. */
.site-menu > details > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 2px solid var(--heading);
  border-radius: var(--radius);
  color: var(--heading);
  font: 700 1rem/1 var(--sans);
  cursor: pointer;
  list-style: none;
}

.site-menu > details > summary::-webkit-details-marker { display: none; }

.site-menu > details > summary .ikon { width: 1.25rem; height: 1.25rem; color: currentColor; }

.site-menu > details[open] > summary { border-color: var(--green); background: var(--green); color: var(--paper); }

@supports selector(::details-content) {
  @container side (min-width: 37.51rem) {
    .site-menu > details > summary { display: none; }

    .site-menu > details::details-content { display: block; content-visibility: visible; }
  }
}

.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.site-footer > span { color: var(--ink); }

/* Heroes */

.hero {
  display: grid;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.home-hero, .article-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.hero-text-only, .article-hero.hero-text-only { grid-template-columns: minmax(0, 1fr); }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero-copy > p {
  max-width: 60ch;
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin-top: 1rem;
  font-weight: 700;
}

.hero-link svg { flex: none; }

/* The home's link to the main guide stands in the hero, and once more as a child of main under the second block, where
   a phone shows it (render.mjs, BLOKKE.md 4.5). One of the two is shown at each width; the other has display: none, so
   neither Tab nor a screen reader meets it, and the reading and Tab order follow what is shown (WCAG 2.4.3). */
main > .hero-link { display: none; }

/* A link with an arrow is a flex box, whose text may break inside a word only where the word cannot fit at all; else
   one long word (»Bevægelsessensor« in 200 % text) pushed the link and the page past the screen (eftersyn 17 November). */
:is(.hero-link, .related a, .blok-more a) { overflow-wrap: anywhere; }

.hero-figure, .blok-image { margin: 0; }

.hero-figure img, .blok-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-figure img { aspect-ratio: 3 / 2; }

/* The image disclosure (figcaption, BLOKKE.md 3.10) is a small badge in the picture's lower right corner instead of a
   line under it (Andreas, 16 November: the note on artificial intelligence may take less room, the rule stays). The
   figure is a one-cell grid: the picture and the caption share the cell, so the badge sits on the picture itself, also
   inside a family's frame or padding and on the tall crop of <picture>. The text never stands on the picture: it stands
   on its own plate in --paper, which is a little transparent (opacity on the plate, not on the text) and the same on every
   image. Ink on paper (T1) keeps at least 7.8:1 over black or white behind the plate at 85 % in all token sets; the
   browser check measures it (image_badges). A long disclosure wraps inside the badge's maximum width. */
.hero-figure, .blok-image { display: grid; }

.hero-figure > :is(picture, img, figcaption), .blok-image > :is(picture, img, figcaption) { grid-area: 1 / 1; }

.hero-figure > picture, .blok-image > picture { display: block; min-width: 0; }

.hero-figure > figcaption, .blok-image > figcaption {
  position: relative;
  z-index: 0;
  align-self: end;
  justify-self: end;
  max-width: min(13rem, calc(100% - 1rem));
  margin: 0.5rem;
  padding: 0.125rem 0.45rem;
  color: var(--ink);
  font: 400 0.75rem/1.3 var(--sans);
  letter-spacing: 0.01em;
  text-align: right;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.hero-figure > figcaption::before, .blok-image > figcaption::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0.375rem;
  background: var(--paper);
  opacity: 0.85;
}

/* A guide card's thumbnail is small, so its badge keeps closer to the corner (the text stays 12 px, 4.5). */
.guide-thumb > figcaption { max-width: min(10rem, calc(100% - 0.75rem)); margin: 0.375rem; padding: 0.0625rem 0.375rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Guide list on the home page and the 404 page */

.guide-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.guide-list > li { border-bottom: 1px solid var(--line); }

.guide-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.9fr) minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: 6rem;
  padding-block: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.guide-row h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.guide-row:hover h3, .guide-row:focus-visible h3 { text-decoration: underline; }

.guide-row svg { color: var(--green); }

/* A guide card's thumbnail (3.11, bølge 2): the guide's own top image with its disclosure badge. Each family places it
   in the card; here only what all share. */
.guide-thumb { margin: 0; }

.section-number {
  color: var(--moss);
  font: 600 clamp(2rem, 3.5vw, 3.25rem)/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* Guide, policy and privacy pages */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.contents h2 { font-size: 1.375rem; letter-spacing: -0.02em; }

.contents ul, .related ul { list-style: none; padding: 0; }

.contents ul { margin-top: 0.6rem; }

.contents a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 0.85rem;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.contents a:hover, .contents a:focus-visible { border-left-color: var(--green); text-decoration: underline; }

.reading-column { min-width: 0; font-size: clamp(1.0625rem, 1.3vw, 1.125rem); }

.reading-section + .reading-section, .reading-column > .reading-section + #kilder {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.reading-section h2 {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.reading-section h2 .section-number { flex: none; }

.reading-section h2 > span:last-child { min-width: 0; overflow-wrap: anywhere; }

.reading-section p { max-width: 68ch; }

.reading-section p + p, .reading-section > ul, .reading-section > ol { margin-top: 0.75rem; }

.reading-section > ul { padding-left: 1.35rem; }

.reading-section > * + .blok-image, .reading-section > .blok-image + * { margin-top: 1rem; }

.reading-section .section-sources, .blok-sources, .sources-list span { color: var(--muted); }

.sources-list span { font-size: 0.875rem; }

.reading-section .section-sources, .blok-sources { font-size: 0.8125rem; }

.reading-section .section-sources { margin-top: 0.85rem; }

/* The quiet source line »Kilder: 1 · 3« (BLOKKE.md 3.3, Andreas 16 November: the references may draw less attention).
   The numbers take the line's own muted colour (or the surface's own text colour on a dark or green surface), are not
   bold and are underlined only on hover and focus. Each number reserves its full touch area in the line, including
   when enlarged text wraps. Negative block margins would let neighbouring source targets overlap. */
:is(.section-sources, .blok-sources) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 1.5rem;
  min-height: 44px;
  padding: 0 0.25rem;
  color: inherit;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}

:is(.section-sources, .blok-sources) a:is(:hover, :focus-visible) { text-decoration: underline; }

/* »Sådan er guiden lavet« (3.12): the full note on artificial intelligence after the source list, set like it. */
.reading-section.made-with h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.made-with p { max-width: 68ch; font-size: 1rem; }

.table-note { display: none; }

.table-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  font-weight: 650;
}

.table-region {
  overflow-x: auto;
  margin-block: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-region table { width: 100%; border-collapse: collapse; font-size: 0.94em; line-height: 1.4; }

.table-wide table { min-width: 33rem; }

/* A narrow table on a phone (fem småting, 16 November): a word in a cell breaks with a hyphen from 10 letters (5 before,
   4 after), since a column of a third of the screen cannot hold »producenten« whole, and a shorter word keeps its column
   wide enough instead of breaking anywhere (»producente|n«, »maksimu|m«). */
.table-region:not(.table-wide) :is(th, td) {
  overflow-wrap: break-word;
  hyphens: auto;
  hyphenate-limit-chars: 10 5 4;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 4;
}

.table-region th, .table-region td {
  padding: 0.6rem 0.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-region :is(th, td):last-child { border-right: 0; }

.table-region tbody tr:last-child td { border-bottom: 0; }

.table-region th { background: var(--wash); color: var(--ink); }

.table-region td:first-child { font-weight: 650; }

.sources-list { padding-left: 1.5rem; font-size: 1rem; }

.sources-list li + li { margin-top: 0.6rem; }

.sources-list span { display: block; }

.sources-list li:target {
  margin-inline: -0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  outline: 2px solid var(--green);
  background: var(--wash);
}

.sources-list li:target span { color: var(--muted); }

.related a { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; }

.related svg { flex: none; }

/* Form fields: tools.css builds on these. */

.field label { display: block; margin-bottom: 0.3rem; color: var(--heading); font-size: 1rem; line-height: 1.3; }

.field input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

.field input::placeholder { color: var(--muted); }

.field input[aria-invalid="true"] { border-color: var(--error); }

.field-error { color: var(--error); font-size: 0.875rem; }

/* ---------------------------------------------------------------- Blocks (BLOKKE.md 3.3-3.11) */

.ikon { flex: none; width: 1.75rem; height: 1.75rem; color: var(--green); }

.blok-value { font-variant-numeric: lining-nums; }

.blok-condition, .blok-by { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

/* Short answer: always visible, never folded. */

.answer {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
}

.answer h2 {
  color: var(--green);
  font: 700 0.875rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.answer-value {
  margin-top: 0.5rem;
  color: var(--heading);
  font: 700 clamp(2.75rem, 7vw, 5rem)/1 var(--serif);
  letter-spacing: -0.03em;
}

.answer-value .blok-unit { font-size: 0.5em; letter-spacing: -0.01em; }

/* The answer's value and unit on one line, as a figure's (fem småting, 16 November: »800–2.000 kg« broke on three lines
   in magasin's 392 px column at 1440). The answer is the size container; a family whose wide answer puts the value in a
   column of its own sets --fit-space on .answer to that column's width. */
.answer { container-type: inline-size; }

.answer-text { max-width: 60ch; margin-top: 0.75rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.45; }

.answer > h2 + .answer-text {
  color: var(--heading);
  font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--serif);
  letter-spacing: -0.02em;
}

.answer .blok-condition { max-width: 68ch; margin-top: 0.75rem; font-size: 1rem; }

.answer .section-sources { margin-top: 0.75rem; color: var(--muted); font-size: 0.8125rem; }

.answer :focus-visible { outline-color: var(--green); }

/* Figures */

ul.blok-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.blok-figure {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
}

.blok-figure-value {
  color: var(--heading);
  font: 700 clamp(2.25rem, 4vw, 3rem)/1 var(--serif);
  letter-spacing: -0.03em;
}

.blok-figure-value .blok-unit { font-size: 0.5em; letter-spacing: 0; }

/* A figure's value and unit on one line (pilot 16 November: »800–2.000 kg« broke in three columns at 1440). The card is
   a size container; .blok-fit carries the value's estimated width in em (blocks.mjs figureWidth) and shrinks below the
   family's size only when the card is too narrow for it. --fit-room is room a family keeps beside the value; --fit-space
   (default the container's width) is the room the value has, which only the answer narrows. Width 16 is the ceiling of
   the estimate, so such a value may still wrap rather than run out of its card. */
.blok-figure { container-type: inline-size; }

.blok-fit { display: inline-block; max-width: 100%; }

.blok-fit:not([data-bredde="16"]) { white-space: nowrap; }

.blok-fit[data-bredde="3"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 3)); }
.blok-fit[data-bredde="4"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 4)); }
.blok-fit[data-bredde="5"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 5)); }
.blok-fit[data-bredde="6"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 6)); }
.blok-fit[data-bredde="7"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 7)); }
.blok-fit[data-bredde="8"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 8)); }
.blok-fit[data-bredde="9"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 9)); }
.blok-fit[data-bredde="10"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 10)); }
.blok-fit[data-bredde="11"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 11)); }
.blok-fit[data-bredde="12"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 12)); }
.blok-fit[data-bredde="13"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 13)); }
.blok-fit[data-bredde="14"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 14)); }
.blok-fit[data-bredde="15"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 15)); }
.blok-fit[data-bredde="16"] { font-size: min(1em, calc((var(--fit-space, 100cqi) - var(--fit-room, 0px)) / 16)); }

.blok-figure-label { color: var(--ink); font-weight: 650; line-height: 1.35; }

.blok-figure .section-sources, .blok-figure .blok-sources { margin-top: auto; padding-top: 0.25rem; }

.blok-figure .section-sources { color: var(--muted); }

/* Steps */

ol.blok-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: trin;
}

.blok-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  counter-increment: trin;
}

.blok-step::before {
  content: counter(trin);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font: 700 1.25rem/1 var(--serif);
}

.blok-step > .ikon { position: absolute; top: 0; right: 0; }

.blok-step h3 { grid-column: 2; padding-top: 0.6rem; font-size: 1.3rem; letter-spacing: -0.01em; }

.blok-step:has(> .ikon) h3 { padding-right: 2.5rem; }

.blok-step p { grid-column: 2; margin-top: 0.35rem; }

/* Range and bars: the number stands as text, the SVG draws only its length (BLOKKE.md 3.6). An amount is a bar from the
   base line: full colour as far as it surely goes, an outlined box of the same height for »up to«, so fill and outline
   carry the difference, not colour alone. A temperature or pH span is a line between two end points. Every track has
   the axis steps as faint guide lines: over an amount's full bar, so its length reads in steps, and under the box's
   outline and a span's line. */

.blok-chart { container: diagram / inline-size; margin-top: 1.5rem; }

.blok-rows { display: grid; gap: 1.1rem; padding: 0; list-style: none; }

/* Label and value share a line while the label keeps at least 10rem; otherwise the value wraps to its own line under
   the label, still at the right, and the label takes the row's full width (lysstyring 17 November: »2,53–3,48 timer i
   døgnet« left the label 45 px at 390 px and broke its words). The value never breaks. Track and note take a line each. */
.blok-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
}

.blok-label { flex: 1 1 10rem; min-width: 0; color: var(--ink); font-weight: 600; }

.blok-row-value { flex: 0 0 auto; margin-left: auto; color: var(--heading); font: 700 1.25rem/1.2 var(--serif); white-space: nowrap; }

.blok-track { flex: 0 0 100%; width: 100%; height: 1.5rem; overflow: visible; }

.blok-grid { fill: none; stroke: var(--line); stroke-width: 1; }

.blok-base { fill: none; stroke: var(--muted); stroke-width: 2; }

.blok-bar { fill: var(--green); stroke: none; }

.blok-reach { fill: none; stroke: var(--green); stroke-width: 2; }

.blok-span { fill: var(--green); stroke: none; }

.blok-end { fill: var(--green); stroke: none; }

.blok-note { flex: 0 0 100%; color: var(--muted); font-size: 0.875rem; }

/* The marks hold only their numbers; the unit is its own line under the axis, right-aligned under the last mark
   (blocks.mjs), so a long unit never runs into a number. The axis is one line high. */
.blok-axis {
  position: relative;
  box-sizing: content-box;
  height: calc(0.2rem + 1.3em);
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.blok-axis li {
  position: absolute;
  top: 0.2rem;
  left: var(--pos);
  transform: translateX(-50%);
  line-height: 1.3;
  white-space: nowrap;
}

.blok-axis li:first-child { transform: none; }

.blok-axis li:last-child { transform: translateX(-100%); text-align: right; }

.blok-chart > .blok-axis-unit { max-width: none; margin: 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.3; text-align: right; }

/* A narrow chart, measured in its own text size (eftersyn 17 November): from under 15em the marks take the smallest text
   (12 px, 4.5), since »800« and »1.000« ran together at 320 px; from under 11em (large text on a phone) only the first,
   the middle and the last mark keep their number, since »300400« ran together at 200 % text. The guide lines still
   show every step, and each row's own number stands as text. */
@container diagram (max-width: 15em) {
  .blok-axis { font-size: 0.75rem; }
}

@container diagram (max-width: 11em) {
  .blok-axis li:not(:first-child, :last-child, :nth-child(2):nth-last-child(2), :nth-child(3):nth-last-child(3), :nth-child(4):nth-last-child(4), :nth-child(5):nth-last-child(5)) { visibility: hidden; }
}

/* Compare: cards in every width */

ul.blok-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.blok-card { padding: 1.25rem; border-radius: var(--radius); background: var(--wash); color: var(--ink); }

.blok-card h3 { font-size: 1.375rem; letter-spacing: -0.015em; }

.blok-card dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: 0.85rem; }

.blok-card dt { color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.blok-card dd { margin-top: 0.15rem; }

/* Do and avoid. The list is a grid of one column that may be narrower than its longest word (minmax(0, 1fr)): with the
   grid's own auto column, a word such as »skuresvampe« or »parketmundstykke)« made the column, and the items stood
   up to 31 px outside their list in 200 % text (hovedrengoringen, 17 November); now the word breaks inside its item. */

.blok-dodont {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.blok-do, .blok-dont { padding: 1.25rem; border-radius: var(--radius); background: var(--wash); color: var(--ink); }

.blok-do h3, .blok-dont h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; }

.blok-dont .ikon { color: var(--error); }

.blok-dodont ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin-top: 0.75rem; padding-left: 1.2rem; }

/* Warning: wash surface, ink text, error edge and icon. Never folded. */

.blok-warning-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1.25rem;
  border-left: 0.375rem solid var(--error);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
}

.blok-warning-box .ikon { color: var(--error); width: 2rem; height: 2rem; }

.blok-warning-box ul { margin-top: 0.6rem; padding-left: 1.2rem; }

.blok-warning-box p + p { margin-top: 0.6rem; }

/* Fold: a closed details element whose summary carries the section heading. */

details.fold > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding-block: 0.6rem;
  cursor: pointer;
  list-style: none;
}

details.fold > summary::-webkit-details-marker { display: none; }

details.fold > summary::after {
  content: '';
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: auto;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translate(-0.15rem, -0.15rem);
  transition: transform 0.15s;
}

details.fold:is([open], :target) > summary::after { transform: rotate(-135deg); }

/* A fold reached by its own link (the table of contents, #afsnit-…) shows its content at once, without JavaScript
   (pilot 16 November: the reader landed on a closed heading). It is drawn as open for as long as it is the target; a
   browser without ::details-content still lands on the summary, as before. */
details.fold:target:not([open])::details-content { display: block; content-visibility: visible; }

details.fold > summary h2 { margin-bottom: 0; }

details.fold > summary h2 > span:last-child { color: var(--green); }

details.fold:is([open], :target) > summary { margin-bottom: 0.5rem; }

.tool-explain { margin-top: 1.25rem; border-top: 1px solid var(--line); }

.tool-explain > summary h2 { font-size: 1.375rem; }

/* A tool field's label stands on one line where there is room (fem småting, 16 November: »Vand, du fylder i badet ·
   liter« broke in a 13rem column at 1440 beside its »?« button). Columns of 17rem leave the label about 14rem; on a
   phone min() keeps one column as before. tools.css, shared with sites without design, is unchanged. */
main .tool :is(.tool-fields, .tool-group) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }

/* The choices stand side by side only where each button's text keeps at least 8 characters of its size (8em) inside
   the button's own edge (--valg-kant) and its 2 px border; otherwise one to a row. At 360 px (zoom in) two buttons left
   »Kiramis CULT-si-ovn: 22 kW« 119 px (zoom 17 November). A phone keeps two buttons beside each other at 390 px with a
   thinner edge. */
main .tool .tool-choice-options { --valg-kant: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(8em + 2 * var(--valg-kant) + 4px)), 1fr)); }

main .tool .tool-choice-option { padding-inline: var(--valg-kant); }

/* A fieldset's »?« button is 44 px (tools.css), so its legend keeps 44 px and a gap free, not 3.25rem: at 200 % text
   3.25rem is 104 px and left »Hvad ved du om ovnen?« 150 px at 320 px (17 November). At normal text both are 52 px.
   tools.css, shared with sites without design, is unchanged. */
main .tool :is(.tool-group, .tool-checks, .tool-repeat, .tool-choice):has(> .tool-help-toggle) > legend:not(.sr-only) { padding-right: calc(44px + 0.5rem); }

/* A figure in the tool's result list keeps 8em of its own size in its column, so it is never squeezed: the list's 11rem
   columns (in the list's text size) left »højst 124 cm over gulvet« 195 px at 25.6-26.4 px from 1280 px, on two lines
   (kontorro, 17 November). The figure's size is one value for its column and for the figure itself; below 8em of it the
   11rem stays, and on a phone min() keeps one column as before. tools.css, shared with sites without design, is
   unchanged. */
.tool .tool-figures { --tal-skrift: clamp(1.3rem, 2vw, 1.65rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, max(11rem, 8 * var(--tal-skrift))), 1fr)); }

.tool .tool-figures dd { font-size: var(--tal-skrift); }

/* Home blocks */

.home-figures, .home-tool, .home-feature, .tool-entries, #guider { margin-top: clamp(2rem, 5vw, 4rem); }

.home-tool > h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.03em; margin-bottom: 1rem; }

.blok-more { margin-top: 1rem; }

.blok-more a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; font-weight: 700; }

.blok-more svg { flex: none; }

.blok-sources { margin-top: 0.75rem; }

@container side (min-width: 50.01rem) {
  .contents { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; }
}

@container side (max-width: 50rem) {
  .home-hero, .article-hero { grid-template-columns: minmax(0, 1fr); }

  .article-layout { grid-template-columns: minmax(0, 1fr); }

  .contents ul { display: flex; flex-wrap: wrap; column-gap: 1rem; }

  .contents a { padding-left: 0; border-left: 0; text-decoration: underline; }

  .guide-row { grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; gap: 0.3rem 0.75rem; }

  .guide-row p { grid-column: 2; }

  .guide-row svg { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

  .guide-row .section-number { grid-row: 1 / span 2; align-self: start; }
}

@container side (max-width: 37.5rem) {
  /* The header on a phone (BLOKKE.md 4.5, pilot 16 November): the name and the »Menu« button on one line of 44 px, at
     most 4rem with the 6 px above and below that keep the button's focus ring whole (also under magasin's clip-path).
     The button folds out every menu item as a list of rows of at least 48 px under the name, in the page flow, so no
     item hides in a strip that must be pushed sideways. The button sits in the header's corner; the name keeps clear. */
  .site-header { flex-wrap: wrap; min-height: 0; padding-block: 6px; row-gap: 0; }

  .site-header .wordmark { font-size: 1.375rem; line-height: 1.1; }

  .site-header:has(> .site-menu) .wordmark { max-width: calc(100% - 7.5rem); }

  .site-menu { flex: 1 0 100%; }

  .site-menu > details > summary { position: absolute; top: 6px; right: 0; }

  .site-menu-links { flex-direction: column; align-items: stretch; padding-block: 0.25rem 0.5rem; }

  .site-menu-links a { min-height: 48px; padding-inline: 0.25rem; border-top: 1px solid var(--line); }

  .site-header .site-menu-links a[aria-current="page"] { padding-left: 0.75rem; box-shadow: inset 0.25rem 0 0 var(--green); text-decoration: none; }

  /* The home's link to the main guide: the copy under the second block shows, the hero's own is hidden (see above). */
  main > .hero-link { display: inline-flex; }

  .home-hero .hero-link { display: none; }

  /* The tool on a phone (pilot 16 November): its own frame and the result box inside it keep only a thin inner edge, so
     the headline figure and its explanation get most of the width (at least about 300 px of 390) instead of a box in a
     box. tools.css, shared with sites without design, is unchanged; these rules win on main. */
  main .tool { padding-inline: 0.5rem; }

  main .tool-result { padding-inline: 0.75rem; }

  main .tool .tool-choice-options { --valg-kant: 0.5rem; }

  /* Three choices in a tool stand two and one on a phone: the third takes the whole row instead of leaving a hole. */
  main .tool .tool-choice-options > .tool-choice-option:nth-child(3):last-child { grid-column: 1 / -1; }

  .table-note { display: block; margin-top: 0.8rem; color: var(--muted); font-size: 0.875rem; }

  .table-note + .table-region { margin-top: 0.3rem; }

  .reading-section h2 .section-number { font-size: 1.75rem; }

  .blok-step { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.85rem; }

  .blok-step::before { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
}

@container side (max-width: 22.5rem) {
  /* 320 px: the name keeps clear of the »Menu« button. It cannot break, so it takes the size at which about 9.5 of its
     characters fit beside the button (it ran 4-15 px under the button before, eftersyn 17 November). */
  body .site-header:has(> .site-menu) .wordmark { font-size: min(1.375rem, (100cqw - 9.5rem) / 9.5); }
}

/* Large text on a narrow screen (eftersyn 17 November): the reader's own text size at 200 % on a 390 px phone leaves
   the page about 11.5 times its text size wide, and the phone layout above, measured in rem, kept every column beside
   another (step titles of two letters a line, the warning's text 2.9em, guide cards 2em). Measured in the page's own text
   size (the body container »side«), a page under 18em (390 px from about 140 % text) stacks what stood side by side,
   hyphenates words from 10 letters and lets headings hyphenate too. A phone at normal size is about 23em and is not touched. The selectors start with »body«,
   so they outrank the family sheets' own layouts, which come after this sheet. */
@container side (max-width: 18em) {
  body > * { hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }

  body :is(h1, h2, h3, .wordmark, summary, label, legend, .answer-text, .tool-headline, .hero-link, .blok-more) { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 3; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 3; }

  /* The header: the name on its own line, the »Menu« button under it in the flow. */
  body .site-header:has(> .site-menu) .wordmark { max-width: 100%; font-size: min(1.375rem, (100cqw - 2rem) / 9); }

  body .site-menu > details > summary { position: static; margin-block: 0.25rem; }

  /* The menu's links: a name of one long word (»Sætsammenligner«, 15 letters) could neither break nor shrink, so every
     page scrolled sideways (404 of 390 px, akrylmaleriet 17 November). The links hyphenate like the headings, may break
     anywhere as the last resort, and the menu and its links may shrink below their longest word. */
  body :is(.site-menu, .site-menu-links, .site-menu-links a) { min-width: 0; }

  body .site-menu-links a { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 3; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 3; overflow-wrap: anywhere; }

  body .hero h1 { font-size: 1.75rem; }

  /* The disclosure badge on its plate goes under the picture: in 200 % text it covered most of a phone-wide picture. */
  body :is(.hero-figure, .blok-image) > figcaption { grid-area: 2 / 1; max-width: 100%; margin: 0.375rem 0 0; }

  /* Steps: the number over its title and text. */
  body .blok-step { grid-template-columns: minmax(0, 1fr); }

  body .blok-step::before { grid-row: auto; }

  body .blok-step > :is(h3, p) { grid-column: 1; }

  body .blok-step:has(> .ikon) h3 { padding-right: 0; }

  /* Warning: the sign over the text, a thinner edge. */
  body .blok-warning-box { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding: 0.75rem; }

  /* A section heading and a fold's heading: the number over the title. */
  body :is(.reading-section h2, details.fold > summary h2) { flex-direction: column; align-items: flex-start; gap: 0.25rem; }

  body details.fold > summary { gap: 0.5rem; }

  /* Guide cards and tool entries: one column, the picture first, then number, title, summary and arrow. */
  body .guide-list .guide-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  body .guide-list .guide-row > :is(h3, div, p, .guide-thumb) { align-self: stretch; }

  body .guide-list .guide-row > .guide-thumb { order: -1; }

  body .tool-entry { grid-template-columns: minmax(0, 1fr); }

  body .tool-entry > svg { grid-column: 1; grid-row: auto; }

  /* A chart row: the label, then the value on a line of its own at the right, where it may wrap. */
  body .blok-label { flex-basis: 100%; }

  body .blok-row-value { flex: 1 1 100%; min-width: 0; text-align: right; white-space: normal; }

  /* A narrow phone in large text (360 x 780, 375 x 667 and 320 x 568 at 200 %, 17 November): the page is 9.4-11em of
     its text, and the insets measured in rem (the page's 1rem gutter, a card's 1.25rem edge, the tool's result box)
     took so much of it that boxes kept 3.2-4.9em of their text; a section heading of 1.9rem had 280 px of 60.8 px at
     360 px. Under 18em the gutter and the inner edges are thin (0.5-0.75rem), and a section heading and the answer's
     sentence stand in a size that keeps 5em in the column. A family that bleeds a band to the screen edge bleeds the
     thinner gutter (vaerktoej, haandbog). */
  body .wrap { width: calc(100% - 1rem); }

  body .answer > h2 + .answer-text { font-size: 1.25rem; }

  body :is(.blok-figure, .blok-card, .blok-do, .blok-dont) { padding-inline: 0.75rem; }

  body .reading-section h2 { font-size: 1.5rem; }

  body main .tool-result { padding-inline: 0.5rem; }

  /* The tool's answer line keeps within a third of a short phone (197 of 189 px at 320 x 568). */
  body .tool-sticky-bar { padding: 0.25rem 0.5rem; font-size: 1rem; line-height: 1.3; }

  body .tool-field-example { padding-inline: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .skip-link, .site-header nav, .contents, .table-download, .table-note, .related, .site-footer nav { display: none; }

  .article-layout { display: block; }

  details.fold > * { display: block; }

  /* A closed fold prints open: the content slot of <details> is shown on paper (Chrome 131+, Safari 18.4+). */
  details.fold::details-content { display: block; content-visibility: visible; }

  .table-region { overflow: visible; break-inside: avoid; }
}

/* Family B, Værktøj først (BLOKKE.md 2.3, after base.css). The tool is the middle of the page: it stands high and big,
   in a framed panel, with the guides as look-ups beside it. A tight, square and functional look: visible frames in
   --heading, readouts with big numbers, square number tiles and one filled signal surface (the short answer).
   Only tokens; text stands only in the pairs of BLOKKE.md 2.4. Text on --dark is always --dark-ink, text on --green
   always --paper. The corners follow --radius, but never rounder than a small bevel. */

:root {
  --r: min(var(--radius), 0.375rem);
  --rule: 2px solid var(--heading);
}

body { font-family: var(--sans); }

h1, h2, h3, .wordmark { font-weight: 800; letter-spacing: -0.02em; }

/* Header: paper with a firm rule and a square signal before the name. Base.css owns the phone strip. */

.site-header { border-bottom: var(--rule); }

.wordmark::before {
  content: '';
  flex: none;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  border-radius: calc(var(--r) / 2);
  background: var(--green);
}

.site-header nav a[aria-current="page"] { text-decoration: none; box-shadow: inset 0 -0.2rem 0 var(--green); }

/* Footer: a wash band edge to edge under a firm rule. */

.site-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1rem 1.5rem;
  border-top: var(--rule);
  background: var(--wash);
  box-shadow: 0 0 0 100vmax var(--wash);
  clip-path: inset(0 -100vmax);
}

.site-footer a { color: var(--heading); }

.site-footer > span { color: var(--ink); }

/* Heroes: compact, so the tool comes high. Pictures carry a frame; text never stands on them. */

.hero { padding-block: clamp(1.25rem, 3vw, 2.25rem); }

.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; }

.hero-figure img, .blok-image img { border: var(--rule); border-radius: var(--r); }

.hero-link, .blok-more a {
  padding: 0.55rem 1rem;
  border: 2px solid var(--green);
  border-radius: var(--r);
  text-decoration: none;
}

.hero-link { background: var(--green); color: var(--paper); box-shadow: 0.25rem 0.25rem 0 var(--heading); }

.hero-link:hover, .blok-more a:hover { text-decoration: underline; }

.blok-more a { color: var(--green); }

/* Section numbers are small square tiles, not big figures: the numbers that matter are the readouts. */

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.15rem 0.4rem;
  border: 2px solid currentColor;
  border-radius: var(--r);
  color: var(--moss);
  font: 700 0.875rem/1.2 var(--sans);
  letter-spacing: 0.06em;
}

.reading-section h2 { align-items: center; gap: 0.75rem; font-size: clamp(1.6rem, 2.6vw, 2.25rem); }

.reading-section h2 .section-number { font-size: 0.875rem; }

/* ---------------------------------------------------------------- The tool: a framed instrument */

main .tool {
  border: var(--rule);
  border-radius: var(--r);
  box-shadow: 0.5rem 0.5rem 0 var(--green);
}

main .tool-result { border: 2px solid var(--green); border-radius: var(--r); }

/* The big figure's size is one value for the figure and for its column in the wide readout below (--tal). */
main .tool .tool-answer { --tal: clamp(2.75rem, 7vw, 4.75rem); }

main .tool .tool-headline { font-size: var(--tal); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }

main .tool .tool-example-badge { border-radius: var(--r); }

main .tool .tool-choice-option, main .tool .tool-step, main .tool .field input, main .tool .field select, main .tool .tool-print { border-radius: var(--r); }

main .tool .tool-choice-option { border-color: var(--muted); }

@container side (min-width: 60rem) {
  /* The answer stays above the choices (browser-qa: »answer below the choices«) but reads as one wide readout: the
     marked example and the big figure to the left, its sentence and notes to the right. The figure's column keeps 3.5
     times the figure's size, so a short figure stands on at most two lines: on the home page beside the guides the
     answer is only about 425 px at 960 px, and 0.85fr left »1 t 40 min« 168 px of 67 px, on three lines (Fraunces,
     17 November; »1 t 40« is 2.5 of its size, »40 min« 3.4). Where 0.85fr is wider, nothing changes. */
  main .tool-answer { display: grid; grid-template-columns: minmax(min(100%, 3.5 * var(--tal)), 0.85fr) minmax(0, 1.15fr); column-gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }

  main .tool-answer > * { grid-column: 2; }

  main .tool-answer > :is(.tool-example-mark, .tool-headline-label, .tool-headline) { grid-column: 1; }

  main .tool-answer > .tool-headline-text { grid-row: 1 / span 3; margin-top: 0; align-self: center; }
}

/* ---------------------------------------------------------------- Home */

/* The home tool lies on a drawing sheet: a framed --wash panel with a fine grid in --line, the family's one carrying
   picture (bølge 2). The tool card on it keeps its own --field surface; the question and the link stand on --wash. */
.home-tool {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  border: var(--rule);
  border-radius: var(--r);
  background-color: var(--wash);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 1.25rem 1.25rem;
  background-position: -1px -1px;
}

.home-tool > h2 {
  max-width: 24ch;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(1.6rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.home-tool > .blok-more { margin-top: 1.5rem; }

/* Figures on the home page: a dark readout band edge to edge. */

.home-figures {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 4vw, 3rem);
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: 0 0 0 100vmax var(--dark);
  clip-path: inset(0 -100vmax);
}

.home-figures :is(p, a, .blok-figure-value, .blok-figure-label, .blok-by, .blok-condition, .blok-sources, .ikon) { color: var(--dark-ink); }

.home-figures :focus-visible { outline-color: var(--dark-ink); }

.home-figures ul.blok-figures { margin-top: 0; border-color: var(--dark-ink); }

.home-figures .blok-figure { box-shadow: 0 0 0 1px var(--dark-ink); }

/* The featured block: a framed panel with the chart beside its text on a wide screen. */

.home-feature {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: var(--rule);
  border-radius: var(--r);
}

.home-feature h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

@container side (min-width: 60rem) {
  .home-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(1.5rem, 4vw, 3rem); align-content: start; }

  .home-feature > * { grid-column: 1; }

  .home-feature > :is(.blok-chart, ul.blok-figures, ol.blok-steps, ul.blok-compare, .blok-dodont, .blok-warning-box) {
    grid-column: 2;
    grid-row: 1 / span 8;
    align-self: start;
    margin-top: 0;
  }
}

/* Guides: index cards. */

#guider, .tool-entries { margin-top: clamp(2rem, 4vw, 3rem); }

.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0.75rem;
  border-top: 0;
}

.guide-list > li { border-bottom: 0; }

.guide-list .guide-row {
  grid-template-columns: auto minmax(0, 1fr) 1.5rem;
  align-items: center;
  align-content: start;
  gap: 0.5rem 0.75rem;
  height: 100%;
  min-height: 0;
  padding: 1rem;
  border: var(--rule);
  border-radius: var(--r);
}

.guide-list .guide-row .section-number { grid-column: 1; grid-row: 1; align-self: center; }

.guide-list .guide-row svg { grid-column: 3; grid-row: 1; align-self: center; }

.guide-list .guide-row h3 { grid-column: 1 / -1; grid-row: 2; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.15; letter-spacing: -0.015em; }

.guide-list .guide-row p { grid-column: 1 / -1; grid-row: 3; font-size: 1rem; line-height: 1.45; }

.guide-list .guide-row:hover, .guide-list .guide-row:focus-visible { border-color: var(--green); }

/* An index card with its guide's picture: a framed 5:2 strip across the top, the number tile and arrow under it. */
.guide-list .guide-row:has(> .guide-thumb) { padding-top: 0.75rem; }

.guide-list .guide-row > .guide-thumb { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0.25rem; }

.guide-thumb img { aspect-ratio: 5 / 2; }

.guide-list .guide-row:has(> .guide-thumb) > .section-number, .guide-list .guide-row:has(> .guide-thumb) > svg { grid-row: 2; }

.guide-list .guide-row:has(> .guide-thumb) > :is(h3, div) { grid-row: 3; }

.guide-list .guide-row:has(> .guide-thumb) > p { grid-row: 4; }

.tool-entry { border: var(--rule); border-radius: var(--r); }

@container side (min-width: 60rem) {
  .home-hero:not(.hero-text-only) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

  .home-hero .hero-figure img { aspect-ratio: 2 / 1; }

  /* The tool with the guides as look-ups beside it, when the tool follows the hero. Every other block spans both. */
  main:has(> .home-hero + .home-tool) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
  }

  main:has(> .home-hero + .home-tool) > * { grid-column: 1 / -1; }

  main:has(> .home-hero + .home-tool) > .home-hero { grid-row: 1; }

  main > .home-hero + .home-tool { grid-column: 1; grid-row: 2; }

  /* The guides stand still beside the tool. They stuck at the top before, but a sticky element is held inside main, not
     inside its grid row, so the list (about 1,100 px) slid over the figures and the feature under the tool (zoom 17
     November). */
  main:has(> .home-hero + .home-tool) > #guider { grid-column: 2; grid-row: 2; }

  main:has(> .home-hero + .home-tool) > #guider .guide-list { grid-template-columns: minmax(0, 1fr); }

  main:has(> .home-hero + .home-tool) > #guider .guide-row p { font-size: 1rem; }
}

/* ---------------------------------------------------------------- Guide */

/* The short answer: the one filled signal surface. Every word on it is --paper (T18). */

.article-hero h1 { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.05; }

.answer {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r);
  background: var(--green);
  color: var(--paper);
  box-shadow: 0.375rem 0.375rem 0 var(--heading);
}

.answer :is(h2, p, a, .answer-value, .answer-text, .blok-condition, .section-sources) { color: var(--paper); }

.answer > h2 + .answer-text { color: var(--paper); }

.answer :focus-visible { outline-color: var(--paper); }

.answer-value { font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em; }

@container side (min-width: 60rem) {
  .article-hero:not(.hero-text-only) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

  .article-hero .hero-figure img { aspect-ratio: 16 / 9; }

  .answer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(1.5rem, 4vw, 3rem); align-content: start;
    --fit-space: calc((100cqi - clamp(1.5rem, 4vw, 3rem)) * 0.4); }

  .answer > * { grid-column: 2; }

  .answer > h2 { grid-column: 1; grid-row: 1; }

  .answer > .answer-value { grid-column: 1; grid-row: 2 / span 3; align-self: start; }

  .answer > .answer-value + .answer-text { margin-top: 0; }

  .answer > h2 + .answer-text { grid-column: 1 / -1; }
}

/* Contents: a framed look-up panel beside the text on a wide screen, chips on a phone. */

.contents h2 { font: 700 0.8125rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

@container side (min-width: 50.01rem) {
  .article-layout { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); }

  .contents { padding: 1rem; border: var(--rule); border-radius: var(--r); }

  .contents ul { border-top: 1px solid var(--line); }

  .contents li { border-bottom: 1px solid var(--line); }

  .contents a { padding-left: 0.6rem; font-weight: 600; line-height: 1.3; }
}

@container side (max-width: 50rem) {
  /* One strip of look-up chips that scrolls sideways inside itself, like the header menu; the page never does. */
  .contents ul {
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-inline: -1rem;
    padding: 0 2rem 0.25rem 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    /* Tab scrolls a chip into view clear of the edge and its fade; without it Chrome left a chip that was 1 px in view
       where it was (»Fandt du en fejl?« at 389 of 390 px, /om/, Tab check 17 November). */
    scroll-padding-inline: 1rem 2rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to left, transparent, var(--ink) 2rem);
    mask-image: linear-gradient(to left, transparent, var(--ink) 2rem);
  }

  .contents ul::-webkit-scrollbar { display: none; }

  .contents li { flex: none; }

  .contents a { white-space: nowrap; }

  .contents a {
    padding: 0.25rem 0.75rem;
    border: 2px solid var(--line);
    border-radius: var(--r);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
  }

  .contents a:hover, .contents a:focus-visible { border-color: var(--green); text-decoration: underline; }
}

/* Reading sections: each opens under a firm rule. */

.reading-column > .reading-section:not(.fold), .reading-column > #kilder {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: var(--rule);
}

.reading-column > .reading-section + .reading-section, .reading-column > .reading-section + #kilder { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }

.reading-column > details.fold + details.fold { margin-top: 0.75rem; }

.reading-column > .related { border-top: 0; }

.reading-column .blok-image { max-width: 48rem; }

.reading-column .blok-image img { aspect-ratio: 16 / 9; }

/* Readouts: figures in framed cells, the number big. One rule between cells (two touching 1px shadows). */

ul.blok-figures {
  gap: 0;
  border: 1px solid var(--heading);
  border-radius: var(--r);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.blok-figure {
  position: relative;
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 0 0 1px var(--heading);
}

.blok-figure { --fit-room: 2.25rem; }

.blok-figure > .ikon { position: absolute; top: 1rem; right: 1rem; width: 1.75rem; height: 1.75rem; }

.blok-figure-value { padding-right: 2.25rem; font-size: clamp(2.75rem, 5.5vw, 4.25rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }

.blok-figure-label { color: var(--heading); font-size: 1.0625rem; }

/* Steps: a procedure card with square number tiles. */

ol.blok-steps { gap: 0; border: var(--rule); border-radius: var(--r); }

.blok-step { padding: 1rem; }

.blok-step + .blok-step { border-top: 1px solid var(--line); }

.blok-step::before { border-radius: var(--r); font-family: var(--sans); font-weight: 800; }

.blok-step > .ikon { top: 1rem; right: 1rem; }

.blok-step h3 { padding-top: 0.55rem; font-size: 1.2rem; }

/* Range and bars: a framed instrument with square bars and the value in big figures. */

.blok-chart { padding: clamp(1rem, 2.5vw, 1.5rem); border: var(--rule); border-radius: var(--r); }

.blok-track { height: 1.75rem; }

.blok-row-value { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; font-variant-numeric: tabular-nums; }

.blok-axis { border-top: 2px solid var(--heading); font-variant-numeric: tabular-nums; }

/* Compare: cards with a header bar. */

.blok-card { padding: 0; border: var(--rule); border-radius: var(--r); background: var(--paper); overflow: hidden; }

.blok-card h3 { padding: 0.75rem 1rem; border-bottom: 2px solid var(--heading); background: var(--wash); font-size: 1.25rem; }

.blok-card dl { margin: 0; padding: 0.75rem 1rem 1rem; }

/* Do and avoid: two framed panels, the edge says which. */

.blok-do, .blok-dont { border: 2px solid var(--green); border-radius: var(--r); background: var(--paper); }

.blok-dont { border-color: var(--error); }

.blok-do h3, .blok-dont h3 { padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); font-size: 1.2rem; }

/* Warning: a wash box framed in the error colour. */

.blok-warning-box { padding: clamp(1rem, 2.5vw, 1.5rem); border: 2px solid var(--error); border-left-width: 0.5rem; border-radius: var(--r); }

.blok-warning-box .ikon { width: 2.25rem; height: 2.25rem; }

/* Folds: framed rows that open in place. */

details.fold { padding: 0 1rem; border: 2px solid var(--line); border-radius: var(--r); }

details.fold:is([open], :target) { padding-bottom: 1.25rem; border-color: var(--heading); }

details.fold > summary h2 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

details.fold > summary::after { border-color: var(--green); }

.tool-explain { border-top: 2px solid var(--line); }

/* Sources. */

.reading-column > #kilder h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

/* ---------------------------------------------------------------- Tool page */

.tool-page .tool-layout { max-width: 72rem; }

.tool-page .tool-layout > :is(.reading-section, .tool-meta, #kilder) { max-width: 46rem; }

.tool-page .tool-layout > .reading-section:not(.fold) { border-top: 0; padding-top: 0; }

/* ---------------------------------------------------------------- Phone */

@container side (max-width: 37.5rem) {
  .hero h1 { font-size: 1.75rem; line-height: 1.05; }

  /* Home first screen (BLOKKE.md 4.5): title, summary, a 2:1 picture edge to edge (5:2 before the one-line header), then the second block. With the
     tool there, its question, the marked example and the headline figure stand on the first screen. The hero's own
     box drops out (display: contents) so its title, summary and picture take part in the order; the hero holds nothing
     else that takes focus. The link stands under the second block, there in the DOM too (render.mjs, base.css), so the
     Tab order follows the view. */
  main:has(> .home-hero) { display: flex; flex-direction: column; }

  main > .home-hero, .home-hero > .hero-copy { display: contents; }

  .home-hero h1 { order: 0; padding-top: 0.75rem; }

  .home-hero .hero-copy > p { order: 1; margin-top: 0.4rem; font-size: 1rem; line-height: 1.4; }

  .home-hero .hero-figure { order: 2; margin: 0.75rem -1rem 0; }

  .home-hero .hero-figure img { aspect-ratio: 2 / 1; border-inline: 0; border-radius: 0; }

  main > .home-hero ~ * { order: 3; }

  main > .hero-link { align-self: flex-start; margin-top: 1.5rem; }

  main > .home-hero + .home-tool, main > .home-hero + .home-figures { margin-top: 0.75rem; }

  .home-tool { margin-inline: -1rem; padding: 0.75rem 1rem 1rem; border-inline: 0; border-radius: 0; }

  .home-tool > h2 { font-size: 1.375rem; line-height: 1.12; margin-bottom: 0.6rem; }

  main .tool { padding: 0.75rem 0.5rem; box-shadow: 0.3rem 0.3rem 0 var(--green); }

  main .tool-result { padding: 0.75rem; }

  main .tool .tool-headline { font-size: 2.75rem; }

  .home-figures { padding-block: 1.25rem 1.5rem; }

  .home-feature { padding: 1rem; }

  /* Guide top: the short answer follows the title, the picture follows the answer. */
  article:has(> .answer) { display: flex; flex-direction: column; }

  article:has(> .answer) > .article-hero { display: contents; }

  article:has(> .answer) > .article-hero > .hero-copy { padding-block: 0.75rem 0; }

  article:has(> .answer) > .answer { order: 1; margin-top: 0.75rem; padding: 1rem 1.1rem; box-shadow: 0.25rem 0.25rem 0 var(--heading); }

  article:has(> .answer) > .article-hero > .hero-figure { order: 2; margin-top: 1.25rem; }

  article:has(> .answer) > .article-layout { order: 3; }

  .article-hero .article-meta { margin-top: 0.6rem; gap: 0.2rem 0.75rem; font-size: 0.8125rem; line-height: 1.35; }

  .answer-value { font-size: 3.5rem; }

  .answer-text { font-size: 1.0625rem; }

  .reading-section h2 { font-size: 1.5rem; }

  .reading-section h2 .section-number { font-size: 0.8125rem; }

  .blok-figure-value { font-size: 2.75rem; }

  .guide-list .guide-row { padding: 0.85rem; }

  details.fold { padding-inline: 0.75rem; }
}

@container side (max-width: 22.5rem) {
  /* 320 px: a chart in a fold sits in two frames; thinner inner edges give its track 16 px more, so »800« and »1.000«
     on a six-mark axis keep apart (1.2 px before, eftersyn 17 November). */
  .blok-chart, details.fold { padding-inline: 0.5rem; }
}

/* Large text on a narrow screen (base.css, »side«): a frame in a frame keeps a thin inner edge, so the chart in the
   featured block keeps its text (»2,5–3,5 timer« had 190 px of 40 px in 200 % text, eftersyn 17 November). */
@container side (max-width: 18em) {
  body :is(.home-feature, .blok-chart) { padding-inline: 0.5rem; }

  /* The bands that bleed to the screen edge (the tool, the home picture, the strip of contents) bleed only the thinner
     gutter of base.css, else the page scrolled 16 px sideways. A card's header and list keep a thin edge of their own
     (the card has none). The tool's figure in 1.75rem: »1 t 40 min« stood on three lines in 2.75rem at 320 px. */
  body .home-tool { margin-inline: -0.5rem; padding-inline: 0.5rem; }

  body .home-hero .hero-figure { margin-inline: -0.5rem; }

  body .blok-card { padding-inline: 0; }

  body .blok-card :is(h3, dl) { padding-inline: 0.5rem; }

  body main .tool .tool-headline { font-size: 1.75rem; }

  body .contents ul { margin-inline: -0.5rem; padding-left: 0.5rem; }
}
