/* The page's own rules that several sections share.
   .pp-wide: the page's wide surfaces (the first screen's stage, the recordings' panel) stand past the container's
   edges, as far as the gutter lets them and at most 96 px a side on a wide screen. */
.pp-wide { box-sizing: border-box; width: min(100% - 2 * var(--gutter), var(--content) + 2 * var(--space-9)); margin-inline: auto; }

/* A buyer's question with its proof (.pp-ask): the question as the section's title over its answer in one column,
   the proof in the other, the two starting level. Split holds a list and an action beside a brush stage of 540 px;
   here the proof is a customer's tile or photograph, as wide as its columns. --start sets the proof first, in five
   columns, and gives the words six, for an answer that holds a drawing.
   One column below 1000 px, the question and its answer before the proof. */
.pp-ask { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); align-items: start; }
.pp-ask-words { grid-column: 1 / span 5; display: grid; gap: var(--space-6); align-content: start; }
.pp-ask-proof { grid-column: 7 / -1; min-width: 0; }
.pp-ask--wide > .pp-ask-proof { grid-column: 6 / -1; }   /* two tiles side by side */
.pp-ask--start > .pp-ask-words { grid-column: 7 / -1; grid-row: 1; }
.pp-ask--start > .pp-ask-proof { grid-column: 1 / span 5; grid-row: 1; }
.pp-ask-title { margin: 0; }
.pp-ask-answer { display: grid; gap: var(--space-4); }
.pp-ask-answer > p { margin: 0; text-wrap: pretty; }
.pp-ask-answer > .t-lead { color: var(--ink-primary); }
.pp-ask-answer > .t-body { color: var(--ink-secondary); }

/* A buyer's question with no proof to show (.pp-plain): the question at the start, its answer at the measure beside
   it, on the plain page. Section head sets one lead of 480 px beside its title; an answer runs to several
   paragraphs and a list. */
.pp-plain { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); align-items: start; }
.pp-plain > .pp-ask-title { grid-column: 1 / span 5; }
.pp-plain > .pp-ask-answer { grid-column: 7 / -1; max-width: var(--measure); }
/* Two such questions in a row are rows of one list: a hairline over each, the room between them a block's */
.pp-plain { padding-top: var(--space-7); border-top: 1px solid var(--border-subtle); }
.pp-plain-section + .pp-plain-section { padding-top: 0; }
.pp-plain .pp-fan { margin-top: var(--space-4); }

@media (max-width: 999px) {
  .pp-ask, .pp-plain { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .pp-ask > *, .pp-plain > * { grid-column: 1 !important; grid-row: auto !important; }
  .pp-ask-words { gap: var(--space-5); }
}

/* A question over its answer (.pp-q), for a section whose proof is a drawing across the page: the question as the
   section's title, its answer under it in Lead and primary ink at the measure, so the answer is the first text
   after its heading. --centre sets both in the middle, over a drawing that is itself centred (the systems' dome).
   Section head sets the lead in a column of its own, 80 px from the title and level with its last line. */
.pp-q { display: grid; gap: var(--space-5); max-width: calc(var(--measure) + var(--space-9)); }
.pp-q > h2 { margin: 0; }
.pp-q > p { max-width: var(--measure); margin: 0; color: var(--ink-primary); text-wrap: pretty; }
.pp-q--centre { justify-items: center; margin-inline: auto; text-align: center; }

/* The figures that show a fit (.pp-figures): two or three figures in an answer, each in Figure M over what it
   counts and whose it is, a hairline over each. */
.pp-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: 0; }
.pp-figures > div { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border-strong); }
.pp-figures dt { order: 2; font: var(--t-small); color: var(--ink-secondary); overflow-wrap: break-word; }
.pp-figures dd { margin: 0; font: var(--t-figure-m); letter-spacing: var(--t-figure-m-tracking); color: var(--ink-primary); font-variant-numeric: tabular-nums; }
.pp-plain .pp-figures { margin-top: var(--space-4); }

/* Standards as cells (.pp-certs): one to six standards as a question's proof, two a row on hairlines, each its seal
   beside its name and its status (Certification's own pieces). Certification's list stacks a row a standard, which
   on a phone is a screen of seals, and its grid sets each in a white card. */
.pp-certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.pp-certs > .cert { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-4); padding: var(--space-5) 0; border: 0; border-top: 1px solid var(--border-subtle); }
.pp-certs .cert-seal { width: calc(var(--space-8) + var(--space-2)); height: calc(var(--space-8) + var(--space-2)); }
.pp-certs .cert-name { display: grid; justify-items: start; gap: var(--space-2); margin: 0; }
.pp-certs .cert-name > .t-card-title { font: var(--t-headline); letter-spacing: var(--t-headline-tracking); }
/* Beside its question the proof's column is narrow from 1000 to 1199 px: a cell's name had 120 px there, and a name
   that cannot break (ISO/IEC 27001, 161 px at the headline's size) left its cell and the page. The seal and the name
   step down, and a name breaks before it leaves its cell. */
.pp-certs .cert-name { min-width: 0; }
.pp-certs .cert-name > .t-card-title { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .pp-certs .cert-seal { width: var(--control-l); height: var(--control-l); }
  .pp-certs .cert-name > .t-card-title { font: var(--t-card-title-s); letter-spacing: var(--t-card-title-s-tracking); }
}
@media (max-width: 1199px) { .pp-figures dd { font: var(--t-figure-s); letter-spacing: var(--t-figure-s-tracking); } }
@media (max-width: 599px) {
  .pp-q { gap: var(--space-4); }
  .pp-figures { gap: var(--space-4); }
  .pp-certs { column-gap: var(--space-4); }
  .pp-certs > .cert { gap: var(--space-3); padding: var(--space-4) 0; }
  .pp-certs .cert-seal { width: var(--control-m); height: var(--control-m); }
  .pp-certs .cert-name > .t-card-title { font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }
}
@media (max-width: 359px) {
  .pp-certs { grid-template-columns: minmax(0, 1fr); }
  .pp-figures dt { hyphens: auto; }   /* a third of 280 px is 83 px: a long German word is hyphenated in its cell */
}

/* The page's sources at its end (.pp-sources): the notes on them in Small, and the sources in Fold under their name
   and count, shut at rest, in columns as wide as a source's line reads */
.pp-sources { padding-block: var(--space-7) var(--space-8); }
.pp-sources-inner { display: grid; gap: var(--space-4); }
.pp-sources-inner > p { max-width: var(--measure); margin: 0; }
.pp-sources-list { margin: 0; padding-inline-start: 2.25em; columns: 3 17rem; column-gap: var(--space-7); font: var(--t-small); font-variant-numeric: tabular-nums; list-style: decimal outside; }
.pp-sources-list > li { display: list-item; break-inside: avoid; overflow-wrap: anywhere; }
.pp-sources-list > li::marker { color: var(--ink-secondary); }
.pp-sources-list > li + li { margin-block-start: var(--space-1); }
/* A page's own parts (sections/parts.py): each a section in the frame's flow, its title at the left and its text
   whole in the lead's column. A part's form stands under them across the container: points as the frame's cells,
   a table as the family's (frame.table: the kit's Table on the page's own rules, its columns kept on a phone where it
   has four or more). Steps stand across the container in rows. */
.part-table { --table-head: 28%; }
.part > .fr-flow > .table-frame { padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-subtle); }
.part-table :is(th, td) { overflow-wrap: break-word; }
.part-table tbody th { font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }
.part-steps > .steps { margin: 0; }
.part-steps .steps-item > p { color: var(--ink-secondary); overflow-wrap: break-word; }
/* Steps across the container in rows (steps_open): where their box is 800 px wide or more, two, three or four stand in
   a row (the class says how many: a step's words keep a column they read in), each row's path ending at its last
   node; under 800 px the kit sets them down one path. */
@container (min-width: 800px) {
  .steps--rows { grid-auto-flow: row; row-gap: var(--space-7); }
  .steps--rows.steps--1 { grid-template-columns: minmax(0, var(--measure)); }
  .steps--rows.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); --gap: var(--space-8); }
  .steps--rows.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps--rows.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--rows > .steps-item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); grid-row: auto; }
  .steps--rows.steps--2 > .steps-item:nth-child(2n)::after, .steps--rows.steps--3 > .steps-item:nth-child(3n)::after,
  .steps--rows.steps--4 > .steps-item:nth-child(4n)::after, .steps--rows.steps--1 > .steps-item::after { content: none; }
  .steps--rows > .steps-item > p { max-width: var(--measure); }
}
.part-picture { margin: 0; }
/* two pictures side by side: each takes the share of the row its own proportions ask for, so both are one height */
.part-pictures { display: flex; gap: var(--space-5); align-items: flex-start; }
.part-pictures > .part-picture { flex: var(--ratio, 1) 1 0; min-width: 0; }
.part-pictures > .part-picture > img { width: 100%; }
@media (max-width: 899px) { .part-pictures { flex-direction: column; } .part-pictures > .part-picture { flex: none; width: 100%; } }
/* A part's drawing fits the width it stands in, whole, at every width: nothing of it is cut and nothing scrolls
   sideways. A wide drawing (WIDE px or more) is also a button: on a press it opens at its own size over the page
   (a popover: the browser's own, so a keyboard opens it, Escape and its Close shut it, and no script runs), where it
   scrolls both ways; on a phone, where its own words are too small to read at the window's width, a line under it
   says so, outside the drawing's frame, so it covers no word of the drawing. */
.part-picture :is(img, .part-picture-open) { display: block; max-width: 100%; }
.part-picture > img, .part-picture-open > img { width: auto; height: auto; max-height: calc(var(--space-9) * 7.5); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-card); }
.part-picture-open { position: relative; padding: 0; border: 0; border-radius: var(--radius-lg); background: none; cursor: zoom-in; }
.part-picture-open:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.part-picture-cue { display: none; }
.part-picture-full { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: var(--space-8) var(--space-5) var(--space-5); border: 0; overflow: auto; overscroll-behavior: contain;
  background: var(--surface-page); }
.part-picture .part-picture-full > img { display: block; width: auto; max-width: none; height: auto; max-height: none; border-radius: var(--radius-md); }
.part-picture-x { position: fixed; top: var(--space-3); right: var(--space-4); z-index: var(--layer-raised); display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-m, 40px); padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-full); background: var(--surface-inverse); color: var(--ink-on-dark); font: var(--t-label); cursor: pointer; }
.part-picture-x:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
@media (max-width: 599px) {
  .part-picture > img, .part-picture-open > img { width: 100%; max-height: none; }
  .part-picture-open { width: 100%; }
  .part-picture-open { display: grid; row-gap: var(--space-2); justify-items: start; color: var(--ink-accent); font: var(--t-label); text-align: left; }
  .part-picture-cue { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-s, 32px); }
}
/* A part's one picture stands beside its text (the language: a picture stands beside its text): from 1200 px, under
   the part's title in the head's left column, where the text beside it left the page empty. So a part of words and a
   drawing is as tall as its words, not its words and 685 px of drawing under them. The drawing stands at the column's
   560 px there at the most (a tall one keeps the height every drawing is held to), so its line says that it opens at
   its own size, as on a phone. Two pictures, and a part with no text, stand across the container as before. */
@media (min-width: 1200px) {
  .part > .fr-flow:has(> .fr-text):has(> .part-picture) > .fr-text { grid-row: 1 / span 2; }
  .part > .fr-flow:has(> .fr-text) > .part-picture { grid-column: 1; grid-row: 2; }
  .part > .fr-flow:has(> .fr-text) > .part-picture > .part-picture-open { display: grid; row-gap: var(--space-2); justify-items: start; color: var(--ink-accent); font: var(--t-label); text-align: left; }
  .part > .fr-flow:has(> .fr-text) > .part-picture .part-picture-cue { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-s, 32px); }
}
@media (forced-colors: active) { .part-picture-x, .part-picture-cue { border: 1px solid ButtonText; } }
/* A tool of the site's own (tool()): its box in the text's column, what the page hands it and the tool's slot. The
   list it is handed stands on hairlines, and the tool's script sets Choice's box before each line; lines of code
   stand on the sunken ground, and a line longer than the box breaks inside it. The slot's own parts (a
   calculator's card, a bar of buttons) are the system's, written in the site's part. */
.fr-flow > .tool { grid-column: 2; }
.fr-flow > .tool:has(> .site-part table) { grid-column: 1 / -1; }   /* a tool that works out tables takes the container's width, as a part's table does */
.tool { display: grid; gap: var(--space-4); min-width: 0; }
.tool > * { min-width: 0; margin: 0; }
.tool-title { color: var(--ink-primary); font: var(--t-headline); letter-spacing: var(--t-headline-tracking); text-wrap: balance; }
.tool-line, .tool-note { max-width: var(--measure); color: var(--ink-secondary); font: var(--t-body); text-wrap: pretty; overflow-wrap: anywhere; }
.tool-items { padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.tool-items > li { padding-block: var(--space-3); border-bottom: 1px solid var(--border-subtle); color: var(--ink-primary); font: var(--t-body); overflow-wrap: break-word; }
.tool-items > li > .choice { align-items: flex-start; }
.tool-code { padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink-primary); font: var(--t-code-l); letter-spacing: var(--t-code-l-tracking); tab-size: 2;
  /* a line of code longer than its box breaks in it, its indent kept: no line is cut at the box's edge, and nothing scrolls out of a keyboard's reach */
  white-space: pre-wrap; overflow-wrap: anywhere; }
.tool > .site-part { display: grid; gap: var(--space-4); min-width: 0; }
.tool > .site-part > * { min-width: 0; }
.tool > .site-part:empty { display: none; }
.tool [hidden] { display: none !important; }
/* The pieces a tool's own part is written with beside the system's (Calculator, Field, Input, Choice, Segmented,
   Button, Table): a bar of buttons with the line that says what a press did; a value the visitor copies (its label,
   the value in code on the sunken ground, its Copy); rows of fields the visitor adds and takes out; a group's head
   inside a calculator; a figure past its limit. */
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.tool-status { margin: 0; color: var(--ink-secondary); font: var(--t-small); }
.tool-status:empty { display: none; }
.tool-outs { display: grid; gap: var(--space-5); }
.tool-out { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-4); margin: 0; }
.tool-out > .tool-out-label { grid-column: 1 / -1; margin: 0; color: var(--ink-secondary); font: var(--t-small); }
.tool-out > .tool-value:last-child { grid-column: 1 / -1; }
.tool-value { display: block; min-width: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-primary);
  font: var(--t-code-l); letter-spacing: var(--t-code-l-tracking); overflow-wrap: anywhere; }
.tool-rows { display: grid; gap: var(--space-4); }
.tool-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-3); }
.tool-row > :is(.tool-row-says, .field-error) { grid-column: 1 / -1; margin: 0; }
.tool-row-says { color: var(--ink-secondary); font: var(--t-code); letter-spacing: var(--t-code-tracking); overflow-wrap: anywhere; }
.tool-row-says:empty { display: none; }
.tool-head { margin: 0; color: var(--ink-primary); font: var(--t-label-strong); }
.tool .calc-result > :not(.calc-figure) { grid-column: 1 / -1; }
.tool .calc-figure.is-over > dd, .tool .is-over > .tool-value { color: var(--status-danger); }
.tool-lines { margin: 0; padding: 0; list-style: none; font: var(--t-code-l); letter-spacing: var(--t-code-l-tracking); }
.tool .table code { font: var(--t-code-l); letter-spacing: var(--t-code-l-tracking); overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .tool-row { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
  .tool-row > .btn { justify-self: start; }
  .tool-out { grid-template-columns: minmax(0, 1fr); }
  .tool-out > .btn { justify-self: start; }
}
@media (max-width: 1199px) { .fr-flow > .tool { grid-column: 1; max-width: 40em; } .fr-flow > .tool:has(> .site-part table) { max-width: none; } }
/* A calculator takes the width its form needs: from 1200 px it stands across the container, what the reader types
   in one column and what comes out beside it in a second (the browser's columns: the result opens the second), so
   no half of the section stands empty beside a tall card. A calculator that works out a table keeps one column. */
@media (min-width: 1200px) {
  .fr-flow > .tool:has(> .site-part > .calc > .calc-result) { grid-column: 1 / -1; }
  .fr-flow > .tool > .site-part > .calc:has(> .calc-result):not(:has(table)) { display: block; columns: 2; column-gap: var(--space-8); }
  .fr-flow > .tool > .site-part > .calc:has(> .calc-result):not(:has(table)) > * { break-inside: avoid; }
  .fr-flow > .tool > .site-part > .calc:has(> .calc-result):not(:has(table)) > * + * { margin-top: var(--space-6); }
  .fr-flow > .tool > .site-part > .calc:has(> .calc-result):not(:has(table)) > .calc-result { break-before: column; margin-top: 0; padding-top: 0; border-top: 0; }
  /* Lines of code a reader copies, with the page's words for them: the words (the line over the code, the note
     under it) stand in the title's column and the code with its Copy beside them, so the code is read with what it
     means in one look and no half of the section stands empty */
  .fr-flow > .tool:has(> .tool-code):has(> :is(.tool-line, .tool-note)):not(:has(> .tool-title, > .tool-items)) {
    grid-column: 1 / -1; grid-template-columns: subgrid; grid-template-rows: auto auto 1fr auto; column-gap: var(--fr-gap); }
  .fr-flow > .tool:has(> .tool-code):has(> :is(.tool-line, .tool-note)):not(:has(> .tool-title, > .tool-items)) > .tool-line { grid-area: 1 / 1; }
  .fr-flow > .tool:has(> .tool-code):has(> :is(.tool-line, .tool-note)):not(:has(> .tool-title, > .tool-items)) > .tool-note { grid-area: 2 / 1; }
  .fr-flow > .tool:has(> .tool-code):not(:has(> .tool-line)):not(:has(> .tool-title, > .tool-items)) > .tool-note { grid-area: 1 / 1; }
  .fr-flow > .tool:has(> .tool-code):has(> :is(.tool-line, .tool-note)):not(:has(> .tool-title, > .tool-items)) > .tool-code { grid-area: 1 / 2 / span 3; }
  .fr-flow > .tool:has(> .tool-code):has(> :is(.tool-line, .tool-note)):not(:has(> .tool-title, > .tool-items)) > .site-part { grid-area: 4 / 2; }
}
.part > .fr-flow > .part-foot { grid-column: 2; max-width: var(--measure); margin-top: calc(var(--space-5) - var(--space-7)); color: var(--ink-secondary); font: var(--t-body); text-wrap: pretty; }
@media (max-width: 1199px) { .part > .fr-flow > .part-foot { grid-column: 1; margin-top: calc(var(--space-4) - var(--space-6)); } }
/* A plain Customer tile's facts: under its title, in the title's cell of the row's grid, a row of them on a hairline */
.customer-tile-cell { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
@media (min-width: 600px) { .customer-tiles > .customer-tile:not(:has(.customer-tile-img)) .customer-tile-cell { grid-column: 1; grid-row: 3; } }
.customer-tile-cell > .customer-tile-facts { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin: 0; padding: var(--space-4) var(--customer-tile-pad) 0; border-top: 1px solid var(--border-subtle); }
.customer-tile-cell > .customer-tile-facts > div, .customer-tile-cell > .customer-tile-facts > div:first-child { display: flex; flex: 0 1 auto; flex-direction: column-reverse; gap: 2px; padding: 0; border: 0; }
.customer-tile-cell > .customer-tile-facts dd { margin: 0; font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); color: var(--ink-primary); }
.customer-tile-cell > .customer-tile-facts dt { font: var(--t-small); color: var(--ink-secondary); }
