/* Rumi Management: the site's own CSS, loaded after the kit (system, cards, motion, layout) and the
   tokens. Only what the brief sets and the kit lacks: the self-hosted fonts, the body size, the accent
   hover, the rosette, the girih band, a few page rules inside visuals, and print. */

/* ---------------------------------------------------------------- fonts (self-hosted, OFL) */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations"),
       url("/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/libre-franklin-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/libre-franklin-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- the brief's settings */
/* the colours the kit has no token for (Sami's R10; docs/PLAN.md, computed by scripts/colours.mjs): the blue's
   hover, the rosette's green and raspberry (its parts 2 and 3, nothing else), the error text, the form field's
   edge, and the hairline (the brief's own grey instead of the kit's ink mix) */
:root { --accent-hover: #016880; --green: #3c7a14; --raspberry: #c2185b; --error: #b42318; --field: #7b8593; --line: #dce2e8; }
/* text people read: 17px on a phone, 18px from 1024, line height 1.6 (brief 4.4) */
:root { --t-body: 17px; }
@media (min-width: 1024px) { :root { --t-body: 18px; } }
body { line-height: 1.6; }
:is(h1, h2, h3, .nav__logo, .footer__lede) { font-optical-sizing: auto; }
/* the filled button's hover is a darker Rumi blue (#016880), its white label 6.38:1, on a pointer that hovers (a
   tap on a touch screen would leave it lit); as specific as the motion layer's own hover */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover, html:not([data-motion="off"]) .btn--primary:hover { background: var(--accent-hover); }
}
/* a photograph with a phone crop sits in a <picture> inside its frame: it fills the frame as the kit's own .frame__img
   does (the kit's rule reaches a frame's direct child only; .frame--photo makes this one step more specific than the
   kit's catch-all for a frame's other children) */
.frame.frame--photo > picture { position: absolute; inset: 0; z-index: 0; }
.frame.frame--photo > picture > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* a guide chapter's photograph: its crop (--pos), and on a tablet, where its frame is a tall narrow strip about a
   fifth of the photograph wide, its own crop (--pos-t) where the subject would fall outside the strip */
.step-chapter__pic > .frame__img { object-position: var(--pos, 50% 50%); }
@media (min-width: 640px) and (max-width: 1023px) {
  .step-chapter__pic > .frame__img { object-position: var(--pos-t, var(--pos, 50% 50%)); }
}
/* the questions on a wide screen: six rows (with Sami's answer on where the firm works, L8) hold one screen beside the
   photograph with 16px rows and a 4px gap (the kit's 24px and 8px ran them 98px past the screen at 1440x900);
   the first row keeps the kit's flush top */
@media (min-width: 1024px) {
  #questions .faq > .faq__item { padding-bottom: var(--s-4); gap: var(--s-1); }
  #questions .faq > .faq__item:not(:first-child) { padding-top: var(--s-4); }
}
/* the photo hero's own ground, which shows only while its photograph loads (or if it fails), is the cool gray, not
   the kit's near-black: R10 allows no dark ground anywhere (below 1024 the kit already sets the page's white) */
@media (min-width: 1024px) { .hero--photo { background-color: var(--p-surface); } }
/* under "more contrast": the pattern band goes and the secondary text rises to the ink */
@media (prefers-contrast: more) {
  :root { --p-muted: var(--p-ink); }
  .girih-band { display: none; }
}

/* the statement hero's line holds 54 characters in two lines (heroes.json): Source Serif sets wider than the
   kit's own faces, so its measure is 32ch, not 21 (the longest title, "Accessibility at Rumi Management", is 32) */
.hero--statement h1 { max-width: 32ch; }

/* ---------------------------------------------------------------- the rosette (brief 4.5) */
/* thin strokes, no fill; each of the four parts in its own colour (Sami's R10): part 1, the centre and its
   circle, Rumi blue; part 2, the ten points, green; part 3, the chevrons, raspberry; part 4, the outer ring,
   ink. The colours stay on the figure: no word is ever coloured */
.rosette { display: block; flex: none; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.rosette path { vector-effect: non-scaling-stroke; }
.rosette .part-1 { stroke: var(--accent); }
.rosette .part-2 { stroke: var(--green); }
.rosette .part-3 { stroke: var(--raspberry); }
.rosette .part-4 { stroke: var(--ink); }
.nav__logo .rosette, .footer .nav__logo .rosette { width: 28px; height: 28px; }
@media (max-width: 639px) { .nav__logo .rosette { width: 24px; height: 24px; } }

/* the rosette in each phase of the steps: the parts already built keep their own colours, the phase's own
   part draws in its colour; at "Finishing well" the whole figure shows all four */
.phase__head { display: flex; align-items: center; gap: var(--s-4); }
.phase__head .rosette { width: 72px; height: 72px; }
/* live (the moment's chapter in hand, .is-on): the phase's new part draws once along its lines */
@media (prefers-reduced-motion: no-preference) {
  [data-moment="photo-chapters"].is-live .rosette .is-new { stroke-dasharray: 1; stroke-dashoffset: 1; }
  [data-moment="photo-chapters"].is-live .mo-ph__ch.is-on .rosette .is-new { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms cubic-bezier(.22, 1, .36, 1) 160ms; }
}

/* ---------------------------------------------------------------- the girih band (brief 4.5, place 3) */
/* one quiet band across the .wrap near the close: ink lines at 7% (in the file), as faint on white (1.15:1) as
   R8's ivory lines were on the green, never behind text */
.girih-band { height: 56px; background: url("/brand/girih-band.svg") repeat-x left center / auto 100%; }
@media (max-width: 639px) { .girih-band { height: 28px; } }
/* a phone: the footer's links are a screen of their own (footer.closing.g2m), so its rows sit a little closer */
@media (max-width: 639px) { .closing__links .footer__legal { row-gap: var(--s-2); } }

/* ---------------------------------------------------------------- the statement's words (Sami's R10) */
/* the kit's word-highlight turns a <strong> word to the accent; no word is ever coloured here, so it turns to the
   ink like the rest of the line (the moment still lights the line word by word as the scroll reaches it) */
/* (one element more specific than the kit's rule: the moment's own stylesheet loads after this one) */
html .mo-wh strong .mo-w.is-on { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html .mo-wh strong .mo-w { color: var(--ink); } }

/* ---------------------------------------------------------------- links (Sami's R10) */
/* a link's words stay ink (no word is ever coloured); its line is Rumi blue (5.16:1 on white, 4.75:1 on the
   surface), so the blue marks every action: the filled button, the links' lines and the focus ring. Hovered,
   the kit draws the ink line over it. (The footer's lists keep the kit's lines, which show only on hover.) */
html:not([data-motion="off"]) :is(.link, .m-link, p a:not([class]), .footer .link) { --m-rest: var(--accent); }
:is(.link, p a:not([class])) { text-decoration-color: var(--accent); }
html[data-buttons="block"] .btn--secondary { text-decoration-color: var(--accent); }
@media (max-width: 639px) { .btn-row > .btn--secondary { text-decoration-color: var(--accent); } }

/* ---------------------------------------------------------------- print: dark text on white, links written out */
@media print {
  :root { --p-bg: #ffffff; --p-surface: #ffffff; --p-ink: #111111; --p-muted: #333333; --p-accent: #111111; --p-action: #111111; --p-action-ink: #ffffff; }
  html, body { background: #fff !important; color: #111 !important; }
  .nav, .actionbar, .girih-band, .hero__bg, .skip-link, .btn-row, .closing__cta .btn { display: none !important; }
  main > section, footer.closing { height: auto !important; min-height: 0 !important; padding-block: 24px !important; }
  a[href^="http"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  a[href^="/"]:not(.nav__logo)::after { content: " (rumimanagement.com" attr(href) ")"; font-size: 0.85em; }
  img, picture, figure { display: none !important; }
  .rosette { stroke: #111 !important; }
  /* the guide on paper: no photographs or frames, no screen-by-screen grid, no "read next" links; steps and
     grant words never split across two pages */
  .frame, .hero__media, .ly-float, .chapter__next { display: none !important; }
  main > section.g2 > .wrap, .group { display: block !important; height: auto !important; }
  main > section.step-chapter > .wrap, .step-chapter__top { display: block !important; height: auto !important; }
  .chapter__head { margin-bottom: 12px !important; }
  .chapter__body { margin-top: 12px; row-gap: 16px; }
  .step, .glossary > div, .rows li { break-inside: avoid; }
}
.services__note { margin-top: var(--s-5); }

/* ---------------------------------------------------------------- the guide (/guide/) */
/* a chapter (sections-library, chapter: a series that shares one layout), two screens: the first holds the
   heading (five columns), its line (from the split line) and a wide photograph down to the screen's foot;
   the second the phase's two steps, or seven grant words, in two columns on the page's two lines */
.chapter__head { margin-bottom: var(--s-7); align-items: start; }
.chapter__head > p { color: var(--muted); font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
/* a link in the line never breaks: split over two lines, its box ran most of the container off its lines */
.chapter__head > p a { white-space: nowrap; }
/* the split hero's quieter link carries no side padding: when the pair wraps (1024), its words start on the
   page's margin like the button above it */
.hero--split .btn-row > .btn--secondary { padding-inline: 0; }
.chapter__pic { margin: 0; padding: 0; border: 0; }
/* the second screen ends on the link to the next part, at the screen's foot */
.chapter__next { margin-top: auto; padding-top: var(--s-6); }
@media (max-width: 1023px) { .chapter__head > p { font-size: var(--t-body); } .chapter__pic { --ratio: 56.25%; } }
/* a phone: the first group (heading and photograph) takes what the words leave of the two screens, so the
   photograph grows and the chapter ends on its foot; never under 240px */
@media (max-width: 639px) {
  .chapter > .wrap > .group:first-child { flex: 1 1 auto; }
  .chapter__pic { --ratio: 0px; min-height: 240px; }
  /* the words start well clear of the photograph (a short line right under a picture reads as its caption),
     and the link to the next part stays clear of the action bar's strip */
  .chapter > .wrap > .group + .group:has(.step) { padding-top: var(--s-4); }
  .chapter__next { margin-bottom: var(--s-6); }
  /* tighter rhythm on a phone, so the photograph keeps a fair share of the two screens */
  .chapter__head { margin-bottom: var(--s-5); }
  .step__parts, .step { gap: var(--s-4); }
  .glossary > div { padding-bottom: var(--s-4); }
  /* the hero's float card would cover the photograph's subject on a phone */
  .hero--split .ly-float { display: none; }
}
/* a step: its title, then what happens, what you bring and what to watch for */
.step { display: grid; gap: var(--s-5); align-content: start; }
.step__n { display: block; margin-bottom: var(--s-2); font-family: var(--font-text); }
.step__parts { display: grid; gap: var(--s-5); margin: 0; }
.step__parts > div { display: grid; gap: var(--s-1); }
.step__parts dt { color: var(--muted); }
.step__parts dd { margin: 0; }
.step__parts dd, .glossary dd, .rows p { text-wrap: pretty; }
/* the eight steps, one a chapter (Sami's answer L9; sections-library, chapter: a series). A wide screen: one screen,
   the label, title and line, then the step's three parts on the left six columns, its photograph on the right six
   from the label's top to the section's foot. A tablet or a phone: two screens, the heading and the photograph
   (taking what the heading leaves), then the three parts with the link to the next step at the foot */
.step-chapter__head > h2 { margin: 0; }
.step-chapter__line { color: var(--muted); max-width: 60ch; margin: var(--s-4) 0 0; }
.step-chapter__pic { margin: 0; padding: 0; border: 0; --ratio: 0px; }
.step-chapter__words { display: flex; flex-direction: column; min-height: 0; }
/* the grant words in the steps' layout (Sami's answer L10): one column beside the photograph; a link in a part's line
   never breaks (split over two lines, its box ran most of the column off its lines) */
.step-chapter .glossary { columns: 1; }
/* four words and the next link hold one wide screen, and one phone screen, with a little less air between the words */
@media (min-width: 1280px) { .step-chapter .glossary > div { padding-bottom: var(--s-5); } }
@media (max-width: 639px) { .step-chapter .glossary > div { padding-bottom: var(--s-2); } }
.step-chapter__line a { white-space: nowrap; }
/* (a tablet takes the wide screen's split too, one screen, the words on seven columns and the photograph on five: as
   two screens its second screen stood half empty, and its gaps to the next section were four times the page's) */
@media (min-width: 640px) {
  main > section.step-chapter > .wrap.step-chapter__wrap {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr);
    column-gap: var(--gutter); row-gap: var(--s-7);
  }
  .step-chapter__top { display: contents; }
  .step-chapter__head { grid-column: 1 / span 6; grid-row: 1; }
  .step-chapter__pic { grid-column: 7 / span 6; grid-row: 1 / span 2; height: auto; min-height: 0; }
  .step-chapter__words { grid-column: 1 / span 6; grid-row: 2; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  main > section.step-chapter > .wrap.step-chapter__wrap { row-gap: var(--s-5); }
  .step-chapter__head, .step-chapter__words { grid-column: 1 / span 7; }
  .step-chapter__pic { grid-column: 8 / span 5; }
  .step-chapter .glossary > div { padding-bottom: var(--s-3); }
  /* the link to the next part follows the words (at the foot it left a hole under them on a tall tablet); the
     photograph beside them runs to the section's foot */
  .step-chapter__words .chapter__next { margin-top: 0; }
}
@media (max-width: 639px) {
  main > section.step-chapter > .wrap.step-chapter__wrap { row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
  .step-chapter__top { display: flex; flex-direction: column; gap: var(--s-5); min-height: 0; }
  .step-chapter__pic { flex: 1 1 0; min-height: 240px; height: auto; }
  .step-chapter__words { padding-top: var(--s-2); }
  .step-chapter__words .chapter__next { margin-bottom: var(--s-6); }
}
/* a grant word in a step's text is underlined by the text's own line, in Rumi blue, not the kit's drawn line: the drawn
   line is a background, which reads as a box, and in one column a long term ("Progress and financial reports") made a
   box wider than half a phone's column; the look is the same blue line under the words */
html:not([data-motion="off"]) .step-chapter .step__parts dd p a { background-image: none; padding-bottom: 0; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
html:not([data-motion="off"]) .step-chapter .step__parts dd p a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
/* (.step-chapter makes it one class more specific than the kit's drawn line for links in a sentence, which won before) */
/* on a phone the step's title stays a clear step under the chapter's heading (1.35x) */
@media (max-width: 639px) { .step h3 { font-size: calc(var(--t-h2) / 1.35); } }
/* the grant words, and the small pages' points: two columns on the grid's own lines (one on a phone) */
.glossary { margin: 0; columns: 2; column-gap: var(--gutter); }
/* the small pages' points are a grid, so two points side by side start on one line (columns staggered them) */
/* (each point stretches to its row, so a pair is one height, its words at the top) */
.points { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
:is(.glossary, .points) > div { break-inside: avoid; display: grid; gap: var(--s-1); padding-bottom: var(--s-5); }
.points > div { align-content: start; }
:is(.glossary, .points) dt { font-weight: 500; }
:is(.glossary, .points) dd { margin: 0; text-wrap: pretty; }
/* one column on a phone and below 1024 on a tall tablet (820x1180), where two short columns would leave a hole
   over the link to the next part, or the screen sparse; two on a shorter tablet (768x1024), where one column
   runs past its screen */
@media (max-width: 639px), (max-width: 1023px) and (min-height: 1101px) { .glossary { columns: 1; } }
@media (max-width: 1023px) { .points { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 1100px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* on a wide screen the guide reads at the lead size (20px, about 60 characters a line in its columns), with room
   between the parts, so each chapter's second screen reads as a page, not a short list */
@media (min-width: 1280px) {
  .step__parts dd, .glossary dd { font-size: var(--t-lead); line-height: 1.5; }
  .step__parts { gap: var(--s-6); }
  .step { gap: var(--s-6); }
  .glossary > div { padding-bottom: var(--s-6); }
  .glossary dt { font-size: var(--t-lead); }
}

/* ---------------------------------------------------------------- the close's button */
/* its text colour never changes (the hover steps the fill only), so it transitions everything but the colour:
   the taste checker hides and restores every text colour while it samples grounds, and a colour transition
   caught mid-way as the button scrolled in read as a scroll reveal (DECISIONS.md) */
html:not([data-motion="off"]) .closing__cta .btn { transition-property: background-color, border-color, box-shadow, transform; }

/* ---------------------------------------------------------------- the credits page */
/* each photograph small beside its credit, so a reader sees which is which */
.credit-list { list-style: none; margin: 0; padding: 0; row-gap: var(--s-5); }
.credit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.credit__pic { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm, 4px); clip-path: inset(0 round var(--r-sm, 4px)); }
/* a hovered row answers the pointer: the author's line turns full ink at once (no movement, so with motion off
   too, and harmless where a tap leaves a hover behind), and on a mouse with motion on the small copy grows 3%
   inside its own clip: the clip closes in by the same share as the picture grows (1 / 1.03), so its box never
   moves; the kit's image timing. The picture stays the row's first child, which the checkers read as the
   row's icon */
.credit:hover .credit__by a { --m-rest: currentColor; text-decoration-color: currentColor; }
html:not([data-motion="off"]) .credit__pic { transition: transform var(--m-image-out) var(--m-ease), clip-path var(--m-image-out) var(--m-ease); }
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .credit:hover .credit__pic { transform: scale(1.03); clip-path: inset(1.46% round 3.9px); transition-duration: var(--m-image); }
}
.credit__text { display: grid; }
.credit__by a { display: inline-flex; align-items: center; min-height: 44px; }
.credit__where { color: var(--muted); }
:is(.credit__by, .credit__where) a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
/* a phone: the words on the left edge, the small copy on the right */
@media (max-width: 639px) {
  .credit { grid-template-columns: minmax(0, 1fr) 64px; gap: var(--s-3); }
  .credit__pic { grid-column: 2; grid-row: 1; width: 64px; height: 48px; margin-top: 10px; }
  .credit__text { grid-column: 1; grid-row: 1; }
  .credit-list { row-gap: var(--s-3); }
  .credit__place { display: none; }
}
.photo-credits .group + .group { margin-top: var(--s-5); }
/* a tablet: the credits stay in pairs, so each list holds one screen */
@media (min-width: 640px) and (max-width: 1023px) { .credit-list > .credit { grid-column: auto / span 6; } }
/* the guide's fourteen on a tablet: one screen (not the wide screen's two, which stood half empty), in pairs of the
   phone's compact rows: the words on the left, the small copy on the right, the place left to the heading */
@media (min-width: 640px) and (max-width: 1023px) {
  main > section#guide-photos.g2 { --h: 1; }
  main > section#guide-photos.g2 > .wrap { display: flex; flex-direction: column; row-gap: 0; }
  #guide-photos .credit { grid-template-columns: minmax(0, 1fr) 64px; gap: var(--s-3); }
  #guide-photos .credit__pic { grid-column: 2; grid-row: 1; width: 64px; height: 48px; margin-top: 10px; }
  #guide-photos .credit__text { grid-column: 1; grid-row: 1; }
  #guide-photos .credit-list { row-gap: var(--s-3); }
  #guide-photos .credit__place { display: none; }
  #guide-photos .group + .group { margin-top: var(--s-3); }
}

@media (max-width: 639px) { .photo-credits .group + .group { margin-top: 0; } }
/* the guide's fourteen on a phone: rows 8px apart, and the first half as tall as it needs (it ends above the fold's band,
   the second starts below it); with the kit's two equal halves the list ran 6% past its two screens */
@media (max-width: 639px) {
  #guide-photos .credit-list { row-gap: var(--s-2); }
  main > section#guide-photos.g2m > .wrap { grid-template-rows: auto minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- the 404 */
/* the site's pages in two columns on a wide screen; every page link a finger can hit */
/* (two on a shorter tablet too, 768x1024, where one column ran the section 40px past its screen) */
@media (min-width: 1024px), (min-width: 640px) and (max-height: 1100px) { .site-pages { columns: 2; column-gap: var(--gutter); } .site-pages > li { break-inside: avoid; } }
/* on a phone the address in a section's line is a line of its own, edge to edge (it is wider than half the
   column, and a box that wide sits on the column's lines), 44px tall like any link outside a sentence (at 27px
   the close's touched the action bar's button). The kit draws a link's line across its whole box, which here
   would be a rule from edge to edge, so the line is the text's own underline, under the words only */
@media (max-width: 639px) {
  .section-head p > a[data-address] { display: flex; align-items: center; min-height: 44px; }
  html:not([data-motion="off"]) .section-head p > a[data-address],
  html:not([data-motion="off"]) .section-head p > a[data-address]:is(:hover, :focus-visible) {
    background-size: 0 0, 0 0; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
    text-decoration-color: var(--accent);
  }
}
.site-pages a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- the home page on a tablet and a phone */
/* (layout-v4.md, content windows) a split's photograph is .frame--fill in a .grid.fill: on a tablet or a phone
   it takes what the words leave of the section's screens. On a tablet the questions stand in two columns, so
   the five and their photograph hold one screen. The close's big button is the close's one size on a tablet
   too (the kit narrows it to half the column there, under the width the page keeps for its close). Links
   inside a line never break across two lines. */
/* the kit's .fill (a split's grid that takes what the screen leaves, its photograph taking what the words
   leave), applied below 1024 only: from 1024 the grid keeps its height, so a section there grows with its words */
@media (max-width: 1023px) {
  main > :is(section, .section) > .wrap > .grid.tablet-fill { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: var(--s-6); }
  .grid.tablet-fill > .frame--fill { flex: 1 1 0; height: auto; min-height: 200px; }
}
/* a phone: the two photographs of the clients section share one screen with its words */
@media (max-width: 639px) { #clients .grid > .frame--fill { min-height: 176px; } }
/* a small phone (320x640): the clients take two screens, and a split's photograph a fixed 220px, so the words
   never run into the next section (the section grows with them instead) */
@media (max-width: 639px) and (max-height: 700px) {
  #clients { --hm: 2; }
  main > :is(section, .section) > .wrap > .grid.tablet-fill { flex: none; }
  .grid.tablet-fill > .frame--fill { flex: none; height: 220px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  /* the opening photograph takes what the words leave of the first screen (the kit's 46% left 300px of
     empty ground under the words on a tall tablet) */
  .hero--photo { --photo: max(200px, calc(100svh - 520px)); }
  #questions .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; }
  #questions .faq > .faq__item { align-content: start; }
  #questions .faq > .faq__item:nth-child(-n+2) { padding-top: 0; }
  .closing__cta.close--type > .btn--xl:not(.btn--wide) { width: 100%; }
}
:is(.section-head, .closing__cta) p a { white-space: nowrap; }

/* ---------------------------------------------------------------- short laptop screens */
/* the pages are composed for 900px of height (1440x900). On a desktop screen shorter than 860px (1366x768,
   1280x800) a section grows past its screen rather than run under the next one, as the kit lets it on a
   tablet; the live steps moment keeps its own height */
@media (min-width: 1280px) and (max-height: 860px) {
  main > :is(section, .section):not(.hero, .section--hero, .is-live), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
  :where(main > :is(section, .section):not(.hero, .section--hero, .is-live), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero, .is-live) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}

/* ---------------------------------------------------------------- the promises: words, then their photograph */
/* two groups: on a wide screen a split (the words on six columns, the photograph on the other six from the
   heading's top to the section's foot); on a tablet the photograph takes what the words leave; on a phone each
   group is a screen of its own (.g2m), the photograph's from a file large enough for its tall crop */
@media (min-width: 1024px) {
  main > section.promises > .wrap.promises__wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .promises__words { grid-column: 1 / span 6; }
  .promises__pic { grid-column: 7 / span 6; }
}
.promises__pic { display: flex; flex-direction: column; }
.promises__pic > .frame { flex: 1 1 0; min-height: 0; height: auto; }
@media (max-width: 1023px) {
  .promises__wrap > .promises__pic { flex: 1 1 0; min-height: 200px; margin-top: var(--s-6); }
}
@media (max-width: 639px) { .promises__wrap > .promises__pic { margin-top: 0; } }

/* the close's address: inside its sentence on a wide screen, underlined like any link in a sentence (it carries
   no class, so the kit's sentence-link line reaches it); on a phone a line of its own (the rule for an address
   in a section's line, with the small pages above) */
