/* Which fits which buyer: each side opens on its fit line, set large */
.cmp-fit-line { color: var(--ink-primary); text-wrap: balance; }
/* The platforms each works inside: Level rows on the page, each row head the platform's mark over its name */
.cmp-platforms .vs-mark { height: 24px; }
.cmp-platforms .vs-mark--square { height: 32px; }
/* A platform's name under its mark takes no hyphen on a German page either; a row head of words (a group of systems)
   breaks as the other row heads do */
.cmp-platforms .vs-mark + .t-card-title:lang(de) { hyphens: manual; }
@media (max-width: 899px) {
  /* The head across: the mark before the name, on one line */
  .cmp-platforms .cmp-rows-head { display: flex; align-items: center; gap: var(--space-3); }
  .cmp-platforms .vs-mark { height: 16px; margin: 0; }
  .cmp-platforms .vs-mark--square { height: 24px; }
}
/* One phone system's setups, on frost, edge to edge: the one change of ground between the differences, and the page's
   drawn product moment. First the call's path, drawn from the page's own words: the phone system's tile, a lane a
   side to that side's name, the fields that side sends back as white event pills in mono on its line, and the line
   back into the phone system. Synthflow's lane is the violet path; another side's is a rule. The fields share their
   columns across the lanes, so the ones both send stand under each other and Synthflow's further ones run on under
   them. Then the other rows as Level rows, their note, and Synthflow's steps down a white card beside their head. */
.cmp-system { background: var(--surface-sunken); }
.cmp-path-box { container: cmp-path / inline-size; }
.cmp-path { --y: calc(var(--space-4) + var(--space-4)); --path-rule: var(--border-control); --path-stem: calc(var(--space-2) + var(--space-5));
  display: grid; grid-template-columns: max-content minmax(var(--space-9), 1fr) max-content repeat(4, max-content) minmax(var(--space-9), 1fr) max-content;
  column-gap: var(--space-2); align-items: start; margin: 0; }
.cmp-path-cap { grid-column: 4 / span 4; grid-row: 1; padding-bottom: var(--space-1); color: var(--ink-primary); }
/* The phone system, where the call leaves and where it comes back: its Integration tile, or its name on a white tile */
.cmp-path-sys { grid-column: 1; grid-row: 2 / span var(--sides); align-self: center; position: relative; }
.cmp-path-sys--back { grid-column: 9; }
.cmp-path-sys::after { content: ""; position: absolute; top: 50%; left: 100%; width: var(--path-stem); border-top: var(--line-drawn) solid var(--path-rule);
  transform: translateY(-50%); }
.cmp-path-sys--back::after { left: auto; right: 100%; }
.cmp-path-sys--back::before { content: ""; position: absolute; top: 50%; right: 100%; z-index: var(--layer-raised); width: 7px; height: 8px;
  background: var(--path-rule); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); }
.cmp-path-name { display: grid; place-items: center; width: 104px; aspect-ratio: 1; padding: var(--space-2); border-radius: var(--radius-md);
  background: var(--surface-card); box-shadow: var(--elev-tile-light); color: var(--ink-primary); text-align: center; }
/* A side's lane: its line across (::before), and its part of the two rails that join the lanes to the phone system
   (::after), from the first lane's line to the last one's */
.cmp-path-lane { grid-column: 2 / 9; display: grid; grid-template-columns: subgrid; position: relative; margin-inline: var(--space-5); padding-block: var(--space-4); }
.cmp-path-lane::before { content: ""; position: absolute; inset: var(--y) 0 auto; border-top: var(--line-drawn) solid var(--path-rule); transform: translateY(-50%); }
.cmp-path-lane.is-ours::before { border-color: var(--accent); }
.cmp-path-lane::after { content: ""; position: absolute; inset: 0; border-inline: var(--line-drawn) solid var(--path-rule); pointer-events: none; }
.cmp-path-lane:first-of-type::after { top: var(--y); }
.cmp-path-lane:last-of-type::after { bottom: calc(100% - var(--y)); }
.cmp-path-side { grid-column: 2; align-self: start; position: relative; z-index: var(--layer-raised); display: inline-flex; align-items: center; min-height: var(--space-6);
  margin-right: var(--space-5); padding-inline: var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-full);
  background: var(--surface-card); color: var(--ink-primary); white-space: nowrap; }
.cmp-path-lane.is-ours .cmp-path-side { border-color: var(--accent); background: var(--accent); color: var(--ink-on-dark); }
.cmp-path-side::before { content: ""; position: absolute; top: 50%; right: 100%; width: 7px; height: 8px;
  background: var(--path-rule); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); }
.cmp-path-lane.is-ours .cmp-path-side::before { background: var(--accent); }
.cmp-fields { grid-column: 3 / span 4; position: relative; z-index: var(--layer-raised); display: grid; grid-template-columns: subgrid; row-gap: var(--space-2);
  margin: 0; padding: 0; list-style: none; }
.cmp-fields li { display: flex; align-items: center; min-height: var(--space-6); padding-inline: var(--space-3); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); background: var(--surface-card); color: var(--ink-primary); font: var(--t-code-m); letter-spacing: var(--t-code-m-tracking);
  white-space: nowrap; }

/* In a box under 1120 px, too narrow for a lane across, the path turns: the phone system over the lanes, a lane a column, the call running down */
@container cmp-path (max-width: 1119px) {
  .cmp-path { grid-template-columns: repeat(var(--sides), minmax(0, 1fr)); column-gap: 0; }
  .cmp-path-cap { grid-column: 1 / -1; padding-bottom: var(--space-4); }
  .cmp-path-sys { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-bottom: var(--path-stem); }
  .cmp-path-sys--back { grid-row: 4; margin: var(--path-stem) 0 0; }
  .cmp-path-sys::after { top: 100%; left: 50%; width: 0; height: var(--path-stem); border-top: 0; border-left: var(--line-drawn) solid var(--path-rule);
    transform: translateX(-50%); }
  .cmp-path-sys--back::after { top: auto; right: auto; bottom: 100%; left: 50%; }
  .cmp-path-sys--back::before { top: auto; right: auto; bottom: 100%; left: 50%; width: 8px; height: 7px; clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%); }
  .cmp-path-lane { grid-column: auto; grid-row: 3; align-self: stretch; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; row-gap: var(--space-3);
    margin: 0; padding: var(--space-5) var(--space-1); }
  .cmp-path-lane::before { inset: 0 auto 0 50%; border-top: 0; border-left: var(--line-drawn) solid var(--path-rule); transform: translateX(-50%); }
  .cmp-path-lane.is-ours::before { border-color: var(--accent); }
  .cmp-path-lane::after, .cmp-path-lane:first-of-type::after, .cmp-path-lane:last-of-type::after { inset: 0; border-inline: 0;
    border-block: var(--line-drawn) solid var(--path-rule); }
  .cmp-path-lane:first-of-type::after { left: 50%; }
  .cmp-path-lane:last-of-type::after { right: 50%; }
  .cmp-path-side { grid-column: 1; align-self: auto; margin: 0; }
  .cmp-path-side::before { top: auto; right: auto; bottom: 100%; left: 50%; width: 8px; height: 7px; margin: 0; clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%); }
  .cmp-fields { grid-column: 1; grid-template-columns: repeat(2, max-content); justify-content: center; column-gap: var(--space-2); }
  .cmp-path-name, .cmp-path-sys .integration-tile { --integration-tile-size: 88px; width: 88px; }
}
@container cmp-path (max-width: 559px) {
  .cmp-fields { grid-template-columns: max-content; }
  .cmp-fields li { padding-inline: var(--space-2); font: var(--t-code); letter-spacing: var(--t-code-tracking); }
  /* Beside two rivals or more a phone has no room for a lane a column: each side's name over its fields, no lines */
  .cmp-path--many { grid-template-columns: minmax(0, 1fr); }
  .cmp-path--many .cmp-path-sys, .cmp-path--many .cmp-path-lane::before, .cmp-path--many .cmp-path-lane::after,
  .cmp-path--many .cmp-path-side::before { display: none; }
  .cmp-path--many .cmp-path-lane { grid-row: auto; justify-items: start; padding: var(--space-3) 0; }
  .cmp-path--many .cmp-fields { grid-template-columns: repeat(2, max-content); justify-content: start; }
}
@media (forced-colors: active) {
  .cmp-path-side, .cmp-fields li, .cmp-path-name { border: 1px solid CanvasText; }
}

/* The setups' other rows, with the note that says where they come from right under them */
.cmp-system-rows { display: grid; row-gap: var(--space-5); }
/* Synthflow's side of the setup: its head at the left, the steps down a white card at the right (Steps turns down in a
   box narrower than 800 px), at body size. A link in the head is the head's ink under a rule: a heading holds no
   accent word. */
.cmp-system-steps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-5) var(--space-8); align-items: start; }
.cmp-system-steps > h3 { margin: 0; text-wrap: balance; }
.cmp-system-steps > h3 a { color: inherit; text-decoration: underline 1px var(--border-control); text-underline-offset: var(--space-1);
  transition: text-decoration-color var(--motion-hover) var(--ease-settle); }
.cmp-system-steps > h3 a:hover { text-decoration-color: currentColor; }
.cmp-system-path { min-width: 0; }
@media (max-width: 1199px) {
  .cmp-system-steps { grid-template-columns: minmax(0, 1fr); }
}
/* Security and data, in Level rows on the page: Synthflow's standards with their seals beside the other side's list
   as its page gives it, in words, then each side's own account; the rules a buyer checks as the section's note */
.cmp-certs > .cert { grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-2); }
.cmp-certs > .cert:first-child { border-top: 0; padding-top: 0; }
.cmp-certs > .cert:last-child { border-bottom: 0; }
.cmp-certs .cert-seal { width: 40px; height: 40px; }
.cmp-certs .cert-name .t-card-title { color: var(--ink-primary); font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }
/* Another side's list as its page gives it: words on hairlines, no seal (no other vendor's mark) */
.cmp-standards { display: grid; align-content: start; margin: 0; padding: 0; list-style: none; }
.cmp-standards li:first-child { border-top: 0; }
.cmp-standards li { display: flex; align-items: center; min-height: 40px; border-top: 1px solid var(--border-subtle); color: var(--ink-primary);
  font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); }

/* A part of a comparison (sections/comparison_rows.py): its blocks stand the section's own step apart (48 px, 32 under
   1200 px), none adds space of its own. Under its head what the page says of both sides at the measure,
   the part's one form, then one picture at the container's width. A plain list keeps the measure. */
.cv-part .cv-text { display: grid; gap: var(--space-4); max-width: var(--measure); }
.cv-part .cv-text > p { margin: 0; text-wrap: pretty; }
/* A part's text whose paragraphs open on a run-in head: a row each in the family's flow, the head in the title's
   column at the left, its words at a reader's measure in the lead's column (Section head's columns), so the points
   stand in sight down the left and no wall of text stands at half the width; under 1200 px the head over its words */
.cv-part .cv-runs { grid-template-columns: minmax(0, var(--fr-left)) minmax(0, 1fr); column-gap: var(--fr-gap); row-gap: var(--space-5); max-width: none; }
.cv-part .cv-run { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
.cv-part .cv-run > .cv-run-head { grid-column: 1; margin: 0; color: var(--ink-primary); text-wrap: balance; }
.cv-part .cv-run > p { grid-column: 2; max-width: var(--measure); margin: 0; text-wrap: pretty; overflow-wrap: anywhere; }
@media (max-width: 1199px) {
  .cv-part .cv-runs { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); }
  .cv-part .cv-run { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
  .cv-part .cv-run > :is(.cv-run-head, p) { grid-column: 1; }
}
.cv-part :is(.cv-text, .cv-steps, .cv-list) :is(p, li) { overflow-wrap: anywhere; }        /* an address or a header's name is one long word */
/* Paragraphs of a part's text that each open on a side's name stand side by side, a column each on the rows' own
   line (Synthflow's the violet one), from 900 px; narrower, one under the other at the measure. */
.cv-part .cv-sides { --sides: 2; display: grid; grid-template-columns: repeat(var(--sides), minmax(0, 1fr)); gap: var(--space-5) var(--space-7); margin: 0; }
.cv-part .cv-sides > p { position: relative; margin: 0; padding-top: var(--space-4); text-wrap: pretty; overflow-wrap: anywhere; }
.cv-part .cv-sides > p::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--border-strong); }
.cv-part .cv-sides > p.is-ours::before { height: var(--line-current); background: var(--accent); }
@media (max-width: 899px) { .cv-part .cv-sides { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); } }
.cv-part .cv-picture { margin: 0; }
.cv-part .cv-picture > img { display: block; width: 100%; height: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-card); }
/* Steps: the kit's Steps on the page's ground at the container's width, under their own title, every word in ink.
   Four or fewer short steps stand across, a column each on one path (the kit's own form); longer or more stand two
   or three a row, the path's line through each row and no line off a row's end. Under 800 px of box the kit sets
   them down its line. */
.cv-part .cv-steps { margin: 0; }
.cv-part .cv-steps > h3 { max-width: var(--measure); margin: 0 0 var(--space-6); color: var(--ink-primary); text-wrap: balance; }
.cv-part .cv-steps > h3 a { color: inherit; text-decoration: underline 1px var(--border-control); text-underline-offset: var(--space-1); }
.cv-part .cv-steps > h3 a:hover { text-decoration-color: currentColor; }
.cv-part .cv-steps .steps-item > p:not(.steps-tags) { color: var(--ink-primary); }
@container (min-width: 800px) {
  .cv-steps > .steps[data-across] { grid-auto-flow: row; }
  .cv-steps > .steps[data-across="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-steps > .steps[data-across="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cv-steps > .steps[data-across] > .steps-item.is-later { margin-top: var(--space-6); }
  .cv-steps > .steps[data-across] > .steps-item.is-end::after { content: none; }
}
.cv-part .cv-list { display: grid; gap: var(--space-3); max-width: var(--measure); margin: 0; padding-left: var(--space-5); color: var(--ink-primary); font: var(--t-body); }
.cv-part .cv-list > li { text-wrap: pretty; }
.cv-part > .container > .table-frame { margin: 0; }
/* One of the site's tools under the part's form (parts.tool: a calculator on its card), a film's still and a recorded
   call: the call in the text's column; the tool and the film a step wider, so a calculator's table of results keeps
   its columns and the film stands 16:9. */
.cv-part .cv-tool { max-width: calc(var(--measure) * 1.25); }
.cv-part .cv-tool > .tool > .tool-title { margin: 0; font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); color: var(--ink-primary); }
.cv-part .cv-tool > .tool > :is(.tool-line, .tool-note) { margin: 0; color: var(--ink-secondary); font: var(--t-body); text-wrap: pretty; }
.cv-part .cv-film { display: grid; gap: var(--space-2); max-width: calc(var(--measure) * 1.25); }
.cv-part .cv-film > .film-poster { margin: 0; aspect-ratio: 16 / 9; }
.cv-part .cv-film > p { margin: 0; }
/* A recorded call, the part's product moment: its card at the container's width, the call's name and what is heard on
   it at the left, the Hear button and the time at the right from 900 px */
.cv-part .cv-hear .text-hear-name { font: var(--t-headline); letter-spacing: var(--t-headline-tracking); }
.cv-part .cv-hear .cv-hear-line { max-width: var(--measure); margin: 0; color: var(--ink-primary); text-wrap: pretty; }
@media (max-width: 599px) { .cv-part .cv-hear .text-hear-name { font: var(--t-card-title); letter-spacing: var(--t-card-title-tracking); } }
@media (min-width: 900px) {
  .cv-part .cv-hear > .text-hear { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-7); align-items: center; }
  .cv-part .cv-hear > .text-hear > :is(.text-hear-name, .cv-hear-line) { grid-column: 1; }
  .cv-part .cv-hear > .text-hear > .text-hear-bar { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
/* 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)); } }
