/* The forms a reading page gives its text, each to the container's edge as a table stands:
   - points that each open on a bold name ("Best for:", "Runs inside:") are rows of name and words on hairlines, so a
     reader compares entry with entry; two of them (a comparison's two sides) stand side by side;
   - a ranked entry's heading sets its rank beside its name, in Panel, over a hairline that parts it from the one
     before;
   - the questions a text asks under one heading are Questions' rows that open;
   - quotes that follow each other stand together on midnight, once a page: a voice from outside; a page whose
     quotes each stand alone gives midnight to its first;
   - a line that only names the sources is quiet and small. */
.rd-rows { display: grid; margin: 0; border-top: 1px solid var(--border-subtle); }
.rd-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: var(--space-5); padding-block: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.rd-row-name { color: var(--ink-primary); font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); text-wrap: balance; }
.rd-row-words { margin: 0; color: var(--ink-primary); font: var(--t-body); text-wrap: pretty; overflow-wrap: break-word; }
.rd-rows--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); border-top: 0; }
.rd-rows--pair > .rd-row { grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: var(--space-2); padding-block: var(--space-4) 0; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.rd-rows--pair .rd-row-name { font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); }
.prose > h3.rd-entry { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-4); align-items: baseline; margin-top: var(--space-8);
  padding-top: var(--space-6); border-top: 1px solid var(--border-strong); font: var(--t-headline); letter-spacing: var(--t-headline-tracking); }   /* a step under its part's title */
.prose > h2 + h3.rd-entry { margin-top: var(--space-5); }
.rd-entry-n { min-width: 1.4ch; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
/* marks that follow each other (a rating's badges, one a picture) stand in one row at their own size */
.rd-marks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); }
.rd-marks > .post-figure { margin: 0; }
.rd-marks > .post-figure img { border-radius: 0; background: none; }    /* a mark at its own size, with no surface under it */
.rd-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-6) var(--space-7); padding: var(--space-7);
  border-radius: var(--radius-lg); background: var(--surface-inverse); }
.rd-voices > .prose-quote { display: grid; align-content: space-between; row-gap: var(--space-5); margin: 0; padding: 0; border: 0; }
.rd-voices > .prose-quote blockquote { margin: 0; padding: 0; border: 0; }
/* A quotation on midnight: its words in Large, who said it in Body, the name in the on-dark ink at 600 */
.rd-voices > .prose-quote blockquote p { margin: 0; color: var(--ink-on-dark); font: var(--t-large); letter-spacing: var(--t-large-tracking); text-wrap: pretty; }
.rd-voices > .prose-quote blockquote p + p { margin-top: var(--space-4); }
.rd-voices > .prose-quote figcaption { display: grid; row-gap: var(--space-1); margin: 0; color: var(--ink-on-dark-secondary); font: var(--t-body); }
.rd-voices .prose-quote-name { color: var(--ink-on-dark); font: var(--t-body); font-weight: 600; }
.rd-voices a { color: var(--ink-on-dark-accent); }
.prose > p.rd-source { color: var(--ink-secondary); font: var(--t-small); }
@media (max-width: 599px) {
  .rd-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
  .rd-rows--pair { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .rd-voices { padding: var(--space-6) var(--space-5); }
  .prose > h3.rd-entry { margin-top: var(--space-7); font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); }
  .post-body .text-rank-head { font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); }   /* an entry's name a step under its part's title on a phone too */
}
/* The account of the rule: the contents in Article body's rail beside the whole text, from the summary it opens on to
   the checklist. Running text holds the measure and stands flush on the page, and so do the rule's own words (behind
   a drawn line, their article in the margin), the plain tables (on hairlines) and the dates (down a line). A surface
   is kept for what a reader uses or takes away: what Synthflow does (soft violet), a product moment on its stage, the
   lines to say and the checklist (white cards). Everything but running text runs to the container's right edge, so
   the page keeps one right edge. Below 1200 px one column, the contents one row held under the nav's bar, naming the
   part in view. */
.cp-doc { padding-bottom: 0; }
.cp-body { padding-block-end: 0; }
.cp-body > .cp-main { min-width: 0; max-width: none; }

/* A part and what stands in it. A part opens under a hairline with a section's room over it and its title in the
   section's size; a passage inside it opens on a head three steps smaller. A passage's head has four times the room
   over it that it has under it (48 and 12 px; 32 and 12 on a phone), whatever stands before and after it, so it
   belongs to what it names. */
.cp-main > .cp-part { margin-top: var(--space-9); padding-top: var(--space-8); border-top: 1px solid var(--border-subtle); }
.cp-main > .cp-part:first-child { margin-top: 0; padding-top: 0; border-top: 0; }   /* a text that opens on its first part */
.cp-main > .cp-part + .cp-open { margin-top: var(--space-9); padding-top: var(--space-8); border-top: 1px solid var(--border-subtle); }   /* the summary after the rule's own table: a part's room over it */
.cp-part > * + * { margin-top: var(--space-5); }
.cp-main .prose h3 { font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); }
/* Passages that follow each other, each a head and one paragraph, are rows of name and words (article.py's reading
   forms): the reader sees the seven things a part names at a glance and reads the one they need */
.cp-part > .rd-rows { margin-top: var(--space-6); }
.cp-part > .rd-rows .rd-row-name { font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); }
.cp-part > .rd-rows .rd-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding-block: var(--space-5); }
.cp-part > .rd-rows + .prose { margin-top: var(--space-7); }
.cp-main .prose > h3 { margin-top: var(--space-7); }
.cp-main .prose > h3 + * { margin-top: var(--space-3); }
.cp-main .prose > h2 + h3 { margin-top: var(--space-6); }
.cp-part > .prose + :is(.table-frame, .cp-greeting, .cp-steps, .cp-certs, .cp-timeline, .cp-figure) { margin-top: var(--space-6); }
.cp-part > :is(.table-frame, .cp-greeting, .cp-certs, .cp-timeline, .cp-figure) + * { margin-top: var(--space-6); }
.cp-part > .cp-cite + :is(.table-frame, .cp-timeline) { margin-top: var(--space-7); }   /* a table with no surface keeps clear of the rule's words */
.cp-part > .prose:has(> h3:last-child) + * { margin-top: var(--space-3); }   /* a head that closes its block names the block after it */
.cp-part > * + .prose:has(> h3:first-child) { margin-top: var(--space-7); }   /* a head after a block keeps a passage's room over it */
.cp-main :is(h2, h3) { scroll-margin-top: var(--space-6); }
.cp-main q { quotes: none; }   /* a source's words stand in their written marks */

/* The summary the text opens on, then where its facts come from: a paragraph of the text in Small */
.prose > .cp-small { margin-top: var(--space-4); }

/* A person's words in the text: Prose's quote, its source under it */
.prose > .cp-said { margin-block: var(--space-5) var(--space-6); }

/* A picture of the text: a surface, its caption under it */
.cp-figure { margin: 0; }
.cp-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.cp-figure figcaption { margin-top: var(--space-3); color: var(--ink-secondary); font: var(--t-small); text-wrap: pretty; }

/* The rule's own words: a citation, flush on the page. A drawn line in ink down its left, the words in primary ink at
   the text's own size (one ink: the quotation marks say which words are the rule's), and the article that holds them
   in the margin beside their first line, a mono link. A row a passage; one row can name two articles. A row whose
   article is its sentence's subject keeps it in the sentence (.cp-cite-row--subject). A code the source does not link
   is a span in ink. Under 720 px of its own width (a tablet, a phone) the article stands over its words. */
.cp-cite { display: grid; row-gap: var(--space-5); margin-bottom: 0; padding-left: var(--space-5); border-left: var(--line-drawn) solid var(--ink-primary);
  container: cite / inline-size; }
.cp-cite-row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
.cp-cite dt { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); min-width: 0; }
.cp-cite dt > * { font: var(--t-code-l); letter-spacing: var(--t-code-l-tracking); overflow-wrap: break-word; }
.cp-cite dt > span { color: var(--ink-primary); }
.cp-cite dt a { color: var(--ink-accent); text-decoration: underline 1px transparent; text-underline-offset: 4px;
  transition: text-decoration-color var(--motion-hover) var(--ease-settle); }
.cp-cite dt a:hover { text-decoration-color: currentColor; }
.cp-cite dd { margin: 0; color: var(--ink-primary); font: var(--t-lead); letter-spacing: var(--t-lead-tracking); text-wrap: pretty; }
.cp-cite dd p + p { margin-top: var(--space-3); }
.cp-cite-row--subject { display: block; }
.cp-cite-row--subject :is(dt, dd, dd > p) { display: inline; }
.cp-cite-row--subject dt > * { font: var(--t-code-xl); letter-spacing: var(--t-code-xl-tracking); }
@container cite (min-width: 720px) {
  .cp-cite-row { grid-template-columns: minmax(0, 1fr) 11rem; column-gap: var(--space-6); align-items: baseline; }
  .cp-cite dt { grid-area: 1 / 2; display: grid; justify-items: start; gap: var(--space-1); }
  .cp-cite dd { grid-area: 1 / 1; }
  .cp-cite-row--subject { padding-right: calc(11rem + var(--space-6)); }
  /* a German citation ("Art. 6 Abs. 3 UAbs. 3") is longer than an English one: its margin is wider, so no label
     leaves one character alone on a line of its own */
  .cp-cite-row:lang(de) { grid-template-columns: minmax(0, 1fr) 12.5rem; }
  .cp-cite-row--subject:lang(de) { padding-right: calc(12.5rem + var(--space-6)); }
}
@media (pointer: coarse) {
  .cp-cite dt a { position: relative; }
  .cp-cite dt a::after { content: ""; position: absolute; inset: calc((var(--control-target) - 100%) / -2) calc(var(--space-2) * -1); }
}

/* A code of the rule that is no link (a paragraph, an Annex III point, a date's articles): mono, in ink */
.cp-code { color: var(--ink-primary); font: var(--t-code-l); letter-spacing: var(--t-code-l-tracking); }
.cp-table tbody th > .cp-code { display: block; margin-bottom: var(--space-1); }
/* On a phone a table of short facts keeps them on one line: a use's point and its date side by side under it */
@container table (max-width: 559px) {
  .cp-table .table.cp-pairs tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
  .cp-table .table.cp-pairs tbody th { grid-column: 1 / -1; }
  .cp-table .table.cp-pairs td + td { margin-top: 0; }
}

/* The dates, down a line: a table whose rows are headed by days, drawn in the line language. A node on the line a
   date, the date in Card title, what applies beside it and its articles in the margin's column. A midnight pill on
   the line marks the day the page was last checked: over it the line is solid and the nodes are filled (these apply),
   under it the line is dashed and the nodes hollow (these are ahead). With no checked day among the dates the pill
   leaves and the line is solid. It stays a table (its parts say their roles, since they are laid out as a grid).
   Under 560 px of its own width a date stands over its articles and what applies, and the column heads are kept for
   screen readers. */
.cp-timeline { --cp-node: var(--space-3); container: timeline / inline-size; }
.cp-timeline table { display: grid; grid-template-columns: max-content minmax(0, 1fr) 11rem; column-gap: var(--space-6); width: 100%; }   /* the dates' column as wide as the longest date: "2 Feb 2025", "2. Dezember 2026" */
.cp-timeline--two table { grid-template-columns: max-content minmax(0, 1fr); }   /* a date and what applies, with no articles' column */
.cp-timeline:lang(de):not(.cp-timeline--two) table { grid-template-columns: max-content minmax(0, 1fr) 12.5rem; }   /* the German citation's margin ("113 lit. c Ziff. ii") */
.cp-timeline :is(thead, tbody) { display: contents; }
.cp-timeline tr { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline;
  padding: var(--space-4) 0 var(--space-4) var(--space-6); text-align: left; }
.cp-timeline thead tr { padding-block: 0 var(--space-3); border-bottom: 1px solid var(--border-strong); }
.cp-timeline thead th { color: var(--ink-secondary); font: var(--t-label); }
.cp-timeline tbody tr { font: var(--t-card-title); }   /* the line's own measure: a row's first line is a date's */
.cp-timeline tbody th { color: var(--ink-primary); font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); white-space: nowrap; }
.cp-timeline tbody td { color: var(--ink-primary); font: var(--t-body); text-wrap: pretty; }
.cp-timeline tbody tr::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc((var(--cp-node) - var(--line-drawn)) / 2);
  border-left: var(--line-drawn) solid var(--ink-primary); }
.cp-timeline tbody tr:first-child::before { top: calc(var(--space-4) + .5lh); }
.cp-timeline tbody tr:last-child::before { bottom: auto; height: calc(var(--space-4) + .5lh); }
.cp-timeline tbody tr:only-child::before { content: none; }
.cp-timeline tbody tr:not(:last-child, .cp-timeline-now, :has(+ .cp-timeline-now))::after { content: ""; position: absolute; left: var(--space-6); right: 0; bottom: 0;
  border-bottom: 1px solid var(--border-subtle); }
.cp-timeline tbody th::before { content: ""; position: absolute; left: 0; top: calc(var(--space-4) + (1lh - var(--cp-node)) / 2);
  width: var(--cp-node); height: var(--cp-node); box-sizing: border-box; border: var(--line-drawn) solid var(--ink-primary); border-radius: var(--radius-full);
  background: var(--ink-primary); }
.cp-timeline tbody .cp-timeline-now ~ tr::before, .cp-timeline tbody tr.cp-timeline-now::after { width: var(--line-drawn); border-left: 0;
  background: repeating-linear-gradient(to bottom, var(--ink-primary) 0 var(--space-1), transparent var(--space-1) var(--space-2)); }
.cp-timeline tbody .cp-timeline-now ~ tr th::before { background: var(--surface-page); }
.cp-timeline tbody tr.cp-timeline-now { display: block; padding: var(--space-3) 0; }
.cp-timeline tbody tr.cp-timeline-now::after { content: ""; position: absolute; top: 50%; bottom: 0; left: calc((var(--cp-node) - var(--line-drawn)) / 2); }
.cp-timeline tbody tr.cp-timeline-now::before { bottom: 50%; }
.cp-timeline tbody tr.cp-timeline-now:last-child::after { content: none; }
.cp-timeline tbody tr.cp-timeline-now:first-child::before { content: none; }
.cp-timeline-now td { display: block; }
.cp-timeline-pill { position: relative; z-index: var(--layer-raised); display: inline-block; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); background: var(--surface-inverse); color: var(--ink-on-dark); font: var(--t-label-s); }
@container timeline (max-width: 559px) {
  .cp-timeline thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cp-timeline table { display: block; }
  .cp-timeline :is(thead, tbody) { display: block; }
  .cp-timeline tr { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); padding-left: var(--space-5); }
  .cp-timeline tbody th { white-space: normal; }
  .cp-timeline tbody td:last-child { order: 1; }
  .cp-timeline tbody td:nth-child(2) { order: 2; }
  .cp-timeline tbody td[data-label]::before { content: attr(data-label); margin-right: var(--space-2); color: var(--ink-secondary); font: var(--t-caption); }
  .cp-timeline tbody tr:not(:last-child, .cp-timeline-now, :has(+ .cp-timeline-now))::after { left: var(--space-5); }
}

/* What Synthflow does, set apart from the rule on soft violet (the accent's fill), the page's one use of it: its name
   beside its words in primary ink */
.cp-ours { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: var(--space-5); align-items: baseline;
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--ink-primary);
  container: ours / inline-size; }
.cp-ours:not(:has(> .cp-ours-head)) { grid-template-columns: minmax(0, 1fr); }   /* with no name of its own, its words across the panel */
.cp-ours-head { color: var(--accent-strong); font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); }
.cp-ours-words { min-width: 0; max-width: 35rem; font: var(--t-body); text-wrap: pretty; }
.cp-ours-words > * + * { margin-top: var(--space-4); }
@media (min-width: 900px) { :lang(de) .cp-ours:has(> .cp-ours-head) { grid-template-columns: 12.5rem minmax(0, 1fr); } }
/* Who holds which part: Synthflow's on its violet line, the business's on a hairline */
.cp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-bottom: 0; }
.cp-split-side { padding-top: var(--space-3); border-top: var(--line-drawn) solid var(--border-strong); }
.cp-split-side.is-ours { border-top-color: var(--accent); }
.cp-split dt { color: color-mix(in srgb, var(--c-midnight) 20%, var(--c-body)); font: var(--t-label); }
.cp-split-side.is-ours dt { color: var(--accent-strong); }
.cp-split dd { margin: var(--space-1) 0 0; font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); text-wrap: balance; }

/* The message setting as the product draws it (Region panel's glass on its brush), the chosen half first, the
   message in its field and the mode's code before what it does */
.cp-greeting { margin-inline: 0; }
.cp-greeting .region-panel { min-height: 0; padding-block: var(--space-7); }
.cp-greeting .region-panel-ui { width: min(30rem, 100% - var(--space-7)); margin-block: 0; }
.cp-greeting .region-panel-thumb { left: var(--space-1); }
.cp-greeting .region-panel-note { margin-top: 0; }
.cp-greeting-message { padding: var(--space-3) var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  background: var(--surface-glass-firm); color: var(--ink-primary); font: var(--t-moment); text-wrap: pretty; }
.cp-greeting-mode { align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); color: color-mix(in srgb, var(--c-midnight) 20%, var(--c-body)); }
.cp-greeting-code { color: var(--ink-accent); }

/* The standards the text names: Certification's rows, two a line */
.cp-certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); margin-bottom: 0; padding: 0; list-style: none; }
.cp-certs.cert-list > .cert { border-bottom: 0; }
.cp-certs.cert-list > .cert:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border-subtle); }

/* The steps down their violet path, the example call on its stage inside the step it opens on */
.cp-steps { position: relative; }
.cp-steps .steps-item > p { max-width: var(--measure); color: var(--ink-primary); }   /* a step's sentences are the page's text: ink, as its running text */
.cp-steps .steps-item code { font-family: var(--font-mono); color: var(--ink-primary); }
.cp-call { --stage-pad: var(--space-3); width: 100%; max-width: 30rem; margin-top: var(--space-3); padding-bottom: var(--space-6); }
.cp-call .call-card { width: 100%; margin: 0; }

/* The lines to say, on their card: each in Large as a spoken line, a bracket a slot to fill in body ink (the words
   that stay are in primary ink), its copy button at the line's end */
.cp-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); align-items: start; }
.cp-line p { color: var(--ink-primary); text-wrap: pretty; }
.cp-slot { display: inline-block; max-width: 100%; color: var(--ink-secondary); }   /* a slot keeps together where it fits, and wraps only where it is longer than its line */
.cp-copy { margin-top: calc(var(--space-1) * -1); }
.cp-lines .table td:last-child { font: var(--t-small); }
.cp-lines .table tbody th { font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }

/* The checklist, the page's one sheet: a white card that reads as the printed page does. Its head row holds the
   part's title, how many items it has (the script counts the ticked ones) and its two actions, with the list's lead
   across the head under them where it has one; under a rule each item a box the reader ticks (Choice), at the
   measure. Then what the page is not, as a Notice in ink on white: violet is kept for what Synthflow does. */
.cp-sheet-card { padding: var(--space-6); }
.cp-sheet-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-4) var(--space-6);
  padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-strong); }
.cp-sheet-title { flex: 1 1 20rem; min-width: 0; }
.cp-sheet-count { margin-top: var(--space-2); color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.cp-sheet-lead { flex: 1 1 100%; max-width: var(--measure); margin: 0; color: var(--ink-secondary); text-wrap: pretty; }
.cp-sheet-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cp-sheet-actions .btn { gap: var(--space-2); }
.cp-checks { display: grid; gap: var(--space-1); max-width: var(--measure); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.cp-checks .choice { padding-block: var(--space-1); }
.cp-notice { --notice-fill: var(--surface-card); --notice-ink: var(--ink-primary); --notice-line: var(--border-strong); }
.cp-part > .cp-notice { margin-top: var(--space-6); padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5); scroll-margin-top: var(--space-9); }
.cp-notice .notice-mark { font: var(--t-card-title); inline-size: var(--icon-l); }
.cp-notice .notice-body { gap: var(--space-2); }
.cp-notice .notice-title { font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); }
.cp-notice .notice-text { max-width: 40rem; font: var(--t-body); text-wrap: pretty; }
/* the notice's title stands without the colon that led into its text, so the text opens on a capital, as a sentence does */
.cp-notice .notice-text::first-letter { text-transform: uppercase; }
.cp-sheet-from { display: none; }


/* The contents' held row names the part in view and its place (the script writes it): the contents' own name stays
   for a screen reader */
.cp-toc-now { display: none; }

@media (min-width: 1200px) {
  /* the example call stands beside the steps that happen on the call (BESIDE), from the step it opens on; what comes
     before the call and after it runs the column's width */
  .cp-steps { padding-right: var(--space-2); }   /* its box stays under the 800 px where Steps turn across */
  .cp-steps .cp-call { position: absolute; top: 0; right: calc(var(--space-2) * -1); width: 23rem; max-width: none; margin-top: 0; }
}
@media (max-width: 1199px) {
  .cp-main > :is(.cp-part, .cp-part + .cp-open) { margin-top: var(--space-8); padding-top: var(--space-7); }
  /* the contents stay with the reader: one row held under the nav's bar, its list scrolling in its own box */
  .cp-body > .toc { position: sticky; top: var(--space-8); z-index: var(--layer-raised); background: var(--surface-page); }
  .cp-body > .cp-main { isolation: isolate; }   /* what a block of the text raises (a step's number) stays under the contents' row and its open list */
  .static .cp-body > .toc { top: 0; }   /* at rest the nav's bar is not held, so the row stands at the top */
  .cp-body > .toc .fold[open] .toc-list { max-height: calc(100vh - var(--space-9) * 2); overflow-y: auto; overscroll-behavior: contain; }
  .cp-main :is(h2, h3) { scroll-margin-top: calc(var(--space-8) + var(--space-5)); }
  .cp-part > .cp-notice { scroll-margin-top: calc(var(--space-9) + var(--space-6)); }
  .cp-body > .toc .fold-head:has(> .cp-toc-now:not([hidden])) > .cp-toc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cp-toc-now:not([hidden]) { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); min-width: 0; }
  .cp-toc-part { overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
  .cp-toc-count { flex: none; color: var(--ink-secondary); font: var(--t-small); font-variant-numeric: tabular-nums; }
}
@media (max-width: 899px) {
  .cp-ours { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
}
@media (max-width: 599px) {
  .cp-main > :is(.cp-part, .cp-part + .cp-open) { margin-top: var(--space-8); padding-top: var(--space-6); }
  .cp-main > .cp-part:first-child { margin-top: 0; padding-top: 0; }
  /* on a phone a row is its name over its words at the column's width (the reading forms' own phone form, which the
     rule's wider row above would else keep side by side, its words in a strip of 25 letters) */
  .cp-part > .rd-rows .rd-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); padding-block: var(--space-4); }
  .cp-part > .rd-rows .rd-row-name { font: var(--t-label-xl); letter-spacing: var(--t-label-xl-tracking); }
  /* a passage's head in the text's face, one weight up, so the part's title over it (Instrument Sans, 24 px) leads */
  .cp-main .prose h3 { font: var(--t-label-xl); letter-spacing: var(--t-label-xl-tracking); }
  .cp-main .prose > h3, .cp-part > * + .prose:has(> h3:first-child) { margin-top: var(--space-6); }
  .cp-cite { padding-left: var(--space-4); }
  .cp-cite dd { font: var(--t-body); letter-spacing: 0; text-wrap: wrap; }
  .cp-cite-row--subject dt > * { font: var(--t-code-l); letter-spacing: var(--t-code-l-tracking); }
  .cp-main .prose .cp-said p:first-child { text-indent: 0; }   /* no mark hung outside a phone's gutter (Prose hangs it) */
  .cp-ours { padding: var(--space-4) var(--space-5); }
  .cp-ours-head { font: var(--t-label-xl); letter-spacing: var(--t-label-xl-tracking); }
  .cp-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .cp-certs { grid-template-columns: minmax(0, 1fr); }
  .cp-certs.cert-list > .cert:nth-last-child(2) { border-bottom: 0; }
  .cp-greeting .region-panel { padding-block: var(--space-5); }
  .cp-greeting .region-panel-ui { width: calc(100% - 2 * var(--space-3)); }
  .cp-sheet-card { padding: var(--space-5); }
  .cp-sheet-actions { width: 100%; }
  .cp-sheet-actions .btn { flex: 1 1 auto; }
  .cp-part > .cp-notice { padding: var(--space-4); }
  .cp-notice .notice-title { font: var(--t-label-xl); letter-spacing: var(--t-label-xl-tracking); }
}
@media (forced-colors: active) { .cp-ours { border: 1px solid CanvasText; } .cp-timeline-pill { border: 1px solid CanvasText; } }

/* Printing the checklist: the sheet alone, its boxes as the reader ticked them, what the page is not and where it
   came from */
@media print {
  .cp-printing body > :not(main), .cp-printing main > :not(#rule), .cp-printing #rule .toc, .cp-printing .cp-main > :not(.cp-sheet),
  .cp-printing .cp-sheet-actions { display: none; }
  .cp-printing .cp-doc { padding: 0; }
  .cp-printing .cp-main > .cp-sheet { margin-top: 0; padding-top: 0; border-top: 0; }
  .cp-printing .cp-sheet-card { padding: 0; box-shadow: none; }
  .cp-printing .cp-sheet-from { display: block; }
  .cp-printing .cp-checks > li { break-inside: avoid; }
  .cp-printing .choice-input, .cp-printing .choice-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* A table whose columns cannot hold its words (the page type's own form of Table, body.py): each row a block, its head
   over its cells, each cell beside its column's name. Under 560 px Table's own narrow form stands. */
@container table (min-width: 560px) {
  .table.table--blocks, .table.table--blocks :is(tbody, tr, th, td) { display: block; }
  .table.table--blocks caption { display: block; }
  .table.table--blocks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table.table--blocks tbody tr { padding-block: var(--space-5); }
  .table.table--blocks tbody tr:first-child { padding-block-start: 0; }
  .table.table--blocks tbody tr + tr { border-top: 1px solid var(--border-subtle); }
  .table.table--blocks tbody tr + tr > * { border-top: 0; }
  .table.table--blocks :is(th, td) { width: auto; padding: 0; }
  .table.table--blocks tbody th { margin-bottom: var(--space-3); }
  .table.table--blocks td + td { margin-top: var(--space-3); }
  .table.table--blocks td[data-label] { display: flow-root; padding-inline-start: calc(var(--space-9) * 2 + var(--space-5)); }
  .table.table--blocks td[data-label]::before { content: attr(data-label); float: inline-start; width: calc(var(--space-9) * 2);
    margin-inline-start: calc((var(--space-9) * 2 + var(--space-5)) * -1); padding-block-start: calc(var(--space-1) / 2);
    color: var(--ink-secondary); font: var(--t-small); text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
  .table--compare.table--blocks td.is-ours[data-label]::before { color: var(--ink-accent); }
}
/* Code, an address or a host name in a table's cell (body.py's form): never hyphenated, as a reader may copy it; where it
   must break, Table's cell breaks it with no mark */
.text-address { hyphens: manual; }
