/* The pages whose bodies are design v5's, drawn by the one system's frame (the site round, 23 November 2026): the product pages
   (.is-product: site-src/v6/pages/products.mjs) and the reading and form pages (.is-page: Accuracy, Contact, Suggest a tool, Privacy, Terms,
   the 404; site-src/v6/pages/carried.mjs). Their words, their forms and the parts their scripts read are as they were; this sheet gives
   design v5's names the system's values, restores what design v5's base did where the system's leaves things to the browser, and lays
   the page out on the system's grid: the head, then each section with its heading in its own columns from 1024 px. Each page's own
   parts keep their own sheet (assets/css/v5/products.css, forms.css) or the reading layer's (content.css). */

/* ───────── design v5's names, in the system's values ───────── */
:is(.is-page, .is-product) { --ink: var(--text); --ink-2: var(--text-2); --ink-3: var(--line-strong); --tint: var(--raised); --col: 40rem; --font: var(--text-face); --gutter: var(--margin); }

/* ───────── the base design v5's pages had, where the system's leaves things to the browser (zero specificity: every rule wins) ───────── */
:where(.is-page, .is-product) :where(h4, dl, dd, blockquote, fieldset) { margin: 0; }
:where(.is-page, .is-product) :where(input, textarea, select) { font: inherit; color: inherit; }
:where(.is-page, .is-product) :where(img, svg) { max-width: 100%; }
:where(.is-page, .is-product) :where(button) { cursor: pointer; }

/* ───────── the page: its head, then its sections, each heading in its own columns from 1024 px ───────── */
:is(.is-page, .is-product) .top { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); padding-top: var(--s9); }
:is(.is-page, .is-product) .top > * { max-width: var(--measure); }
:is(.is-page, .is-product) .top h1 { max-width: min(100%, 15em); font-family: var(--display-cut); font-weight: 800; font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); color: var(--text); text-wrap: balance; }
:is(.is-page, .is-product) .top .lede { font-size: var(--t-lead); line-height: var(--lh-lead); color: var(--text-body); }
/* the headline stands 24 px over what follows it, as the system's page head does (site.css .ph-lead) */
:is(.is-page, .is-product) .top h1 + * { margin-top: var(--s2); }
:is(.is-page, .is-product) .sec { padding-top: var(--section); }
:is(.is-page, .is-product) .sec > * + * { margin-top: var(--s4); }
:is(.is-page, .is-product) .sec > .sec-h + * { margin-top: var(--s6); }
:is(.is-page, .is-product) .sec > :is(p, ul, ol, dl, h3, .note) { max-width: var(--measure); }
:is(.is-page, .is-product) .sec p:not([class]):not(.skin *) { color: var(--text-body); } /* (never inside a product's own screen: the tracker's "Why?" line was the page's grey on the product's cream) */
:is(.is-page, .is-product) .sec h3:not(.skin *) { font-family: var(--display); font-weight: var(--w-h4); font-size: var(--t-h4); line-height: var(--lh-h4); color: var(--text); }
@media (min-width: 1024px) {
  :is(.is-page, .is-product) .sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  :is(.is-page, .is-product) .sec > * { grid-column: 5 / 13; }
  :is(.is-page, .is-product) .sec > .sec-h { grid-column: 1 / 5; grid-row: 1 / span 40; position: sticky; top: calc(var(--mast-h) + var(--s5)); margin-top: 0; }
  .is-product .sec > .sec-h { top: var(--s5); }
  :is(.is-page, .is-product) .sec > .sec-h + * { margin-top: 0; }
  :is(.is-page, .is-product) .sec:not(:has(> .sec-h)) > * { grid-column: 1 / 13; }
}
:is(.is-page, .is-product) .wrap > .sec:last-child { padding-bottom: var(--section); }

/* ───────── a page's head: its kicker (Accuracy's date line) as the system's ───────── */
.is-page .top > .eyebrow { order: -1; font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; color: var(--text-2); }
/* Contact: the line for someone who lost money stays first, said quietly (D2: it was the loudest line on a page owners write from) */
.is-page .c-safety { display: inline-flex; align-items: center; min-height: var(--tap); padding-block: 0; font-weight: 400; font-size: var(--t-small); color: var(--text-2); text-decoration: underline 1px var(--line-strong); text-underline-offset: 0.2em; }

/* ───────── design v5's outline button, on the system's ───────── */
:is(.is-page, .is-product) .btn-line:not(.skin .btn) { background: transparent; }

/* ───────── a page that is only its head (the 404): the system's section space before the footer ───────── */
:is(.is-page, .is-product) .wrap > .top:last-child { padding-bottom: var(--section); }

/* ───────── a form's send (Contact, Suggest a tool): the filled button, as a tool's main action is (content.css .btn-fill) ───────── */
.is-page .c-btn { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .is-page .c-btn:hover { background: var(--text-body); border-color: var(--text-body); } }

/* ───────── the forms (Contact, Suggest a tool) on the system's scale: design v5's sheet (forms.css) nudged each radio 2 px down and set a
   choice's two lines 2 px apart. The radio's top meets its words' (the 22 px control on a 24 px first line), the lines are one step
   apart, and the fields a person must leave empty (the spam traps) are clipped where they stand rather than parked far off the screen
   (still in the form, still sent, still empty for a person) ───────── */
.is-page :is(.topic, .radio-row) input { margin: 0; }
.is-page .topic-text { gap: var(--s1); }
.is-page :is(.cf-form .hp, .sg-hp) { left: auto; clip-path: inset(50%); white-space: nowrap; }
.is-page :is(.cf-form .hp, .sg-hp) input { padding: 0; }

/* ───────── two steps of headings: a carried page's headline is the system's second size (its titles are long and read at once: Accuracy's
   is a measured sentence), so its sections' headings take the third, and the page keeps a clear order, as the system's own heads do
   (.ph: the display size over the second). They were the second size too, as large as the headline (76 px at 1440). ───────── */
:is(.is-page, .is-product) .sec > .sec-h { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); }

/* ───────── the legal pages (Privacy, Terms: body.is-doc), a calm reading layout. Their text is the owner's, unchanged in meaning; the
   page gives it a reading scale: its headings at the two steps above, and the sections one step of the scale apart (64 px) instead of the
   section space. The heading still stands beside its text from 1024 px, as on every page; the last section keeps the section space
   before the footer. ───────── */
.is-doc .sec { padding-top: var(--s8); }
.is-doc .wrap > .sec:last-child { padding-bottom: var(--section); }

/* ───────── a jump to a section (Privacy's and Terms' lists of contents, a link to Accuracy's parts) lands its heading just under the header,
   not the section's own space above it (it landed 80 px lower on Privacy): the section's scroll margin takes that space back ───────── */
:is(.is-page, .is-product) .sec[id] { scroll-margin-top: calc(-1 * var(--section)); }
.is-doc .sec[id] { scroll-margin-top: calc(-1 * var(--s8)); }

/* ───────── Contact: the form where the header's one button lands. The guidance for a business and the form come one step apart (64 px),
   not a section's space, and from 1024 px the guidance stands in the headings' column beside the form, so the form starts right under
   the page's head (it started at about 1,170 px at every size). The form's elements and their order are unchanged: contact.js and the
   server read them. ───────── */
.is-page #business, .is-page #business + .form-sec { padding-top: var(--s8); }
/* (the thank-you takes the form's place: where the form opens its section, the frame's step between a section's parts must not put 16 px
   above the thank-you that the form never had, or the page below moves down as it arrives; the e2e test "the thank-you keeps the form's
   height", the full checks of 23 Nov 2026. On Suggest the form follows its heading and keeps the step, as the thank-you does) */
.sec > .c-form:first-child + .c-done { margin-top: 0; }
@media (min-width: 1024px) {
  .is-page .wrap:has(> #business + .form-sec) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .is-page .wrap:has(> #business + .form-sec) > * { grid-column: 1 / 13; }
  .is-page .wrap:has(> #business + .form-sec) > #business { grid-column: 1 / 5; display: block; } /* (the :has() prefix: the span-all rule above counts the id too) */
  .is-page .wrap > #business > * { max-width: none; }
  .is-page .wrap > #business > .sec-h { position: static; }
  .is-page .wrap > #business > .sec-h + * { margin-top: var(--s6); }
  .is-page .wrap:has(> #business + .form-sec) > #business + .form-sec { grid-column: 5 / 13; display: block; }
}

