/* Care only. Loaded on the page whose stored blocks carry the Care hero (Xcelsior_Page_Assets,
   marker `"variant":"care"`), keyed on the section ids the pattern gives its bands. The Care
   pattern uses the shared .cols flex grid and the plain block spacing; docs/mockups/care.html
   uses four grid classes (.ai-grid, .cover-grid, .when-grid, .proof-grid) and inline margins on
   the lede paragraphs and tile headings. This file gives the same result without touching the
   stored content. Values are from the mockup. Grids, not flex, so an even number of tiles never
   leaves one alone on a row (four as 2x2 or four across, six as 3x2 or 2x3). */

/* Grids: one column on a phone, then the mockup's own breakpoints. */
:is(#why, [data-anchor="why"]) .cols, :is(#covered, [data-anchor="covered"]) .cols, :is(#steps, [data-anchor="steps"]) .cols, :is(#recoveries, [data-anchor="recoveries"]) .cols { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
:is(#why, [data-anchor="why"]) .cols > *, :is(#covered, [data-anchor="covered"]) .cols > *, :is(#steps, [data-anchor="steps"]) .cols > *, :is(#recoveries, [data-anchor="recoveries"]) .cols > * { min-width: 0; }
@media (min-width: 40rem) {
  :is(#covered, [data-anchor="covered"]) .cols, :is(#steps, [data-anchor="steps"]) .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 48rem) {
  :is(#why, [data-anchor="why"]) .cols, :is(#recoveries, [data-anchor="recoveries"]) .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  :is(#covered, [data-anchor="covered"]) .cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 80rem) {
  :is(#steps, [data-anchor="steps"]) .cols { grid-template-columns: repeat(4, 1fr); }
}

/* Why it matters now: heading, lede (44rem measure), the two panels, the closing line (44rem), the button. */
:is(#why, [data-anchor="why"]) h2 { margin-bottom: 1.5rem; }
:is(#why, [data-anchor="why"]) .body-lg { max-width: 44rem; }
:is(#why, [data-anchor="why"]) h2 + .body-lg { margin: 0 0 3rem; }
:is(#why, [data-anchor="why"]) .cols + .body-lg { margin: 3rem 0 1.5rem; }

/* What is covered, When we step in: the icon, the title and the text spaced as the mockup's tiles. */
:is(#covered, [data-anchor="covered"]) .tile h3, :is(#steps, [data-anchor="steps"]) .tile h3 { margin: 1rem 0 0.5rem; }
:is(#covered, [data-anchor="covered"]) .tile p, :is(#steps, [data-anchor="steps"]) .tile p { margin: 0; }

/* Your custom guide: the heading sits 1rem under the eyebrow and 1.5rem above the text. */
:is(#guide, [data-anchor="guide"]) h2 { margin: 1rem 0 1.5rem; }

/* Recent recoveries: the lede pulled up under the heading, 44rem measure; the tile's label and title spaced 1rem. */
:is(#recoveries, [data-anchor="recoveries"]) h2 + .body-lg { max-width: 44rem; margin: -1.5rem 0 3rem; }
:is(#recoveries, [data-anchor="recoveries"]) .tile .who { margin: 0 0 1rem; }
:is(#recoveries, [data-anchor="recoveries"]) .tile h3 { margin: 0 0 1rem; }

/* The mockup has no doctype, so it renders in quirks mode, where the line holding a tile's icon is exactly the icon's height.
   In standards mode the same line is 8px taller (the text strut under the icon). Aligning the icon to the top of its line gives the mockup's height (a block icon would too, but then the icon-render check measures the tile, not the glyph). */
:is(#covered, [data-anchor="covered"]) .tile > .icon, :is(#steps, [data-anchor="steps"]) .tile > .icon { vertical-align: top; }

/* The "On the other side" and "On your side" labels, and the recovery tile labels: the mockup draws them at the body size (20px), the shared
   label style is 16px. */
:is(#why, [data-anchor="why"]) .tile .who, :is(#recoveries, [data-anchor="recoveries"]) .tile .who { font-size: 1.25rem; line-height: 1.6; }
:is(#why, [data-anchor="why"]) .tile .who { margin: 0; }

/* Your custom guide: the heading breaks as the mockup's three lines ("Most sites come / with no manual. / Yours will."), which it gets from
   a span per line there. At the two-column width (64rem and up) a measure in em keeps that break at every font size without a span in the owner's heading text; below it the heading wraps on its own, as the mockup's does. The list keeps
   2rem under it and the sample link sits flush at the end of the column. */
@media (min-width: 64rem) { :is(#guide, [data-anchor="guide"]) h2 { max-width: 8.5em; } }
:is(#guide, [data-anchor="guide"]) .guide-list { margin-bottom: 2rem; }
:is(#guide, [data-anchor="guide"]) .guide-feature p:last-child { margin: 0; }

/* Closing band: the mockup sets the heading to a 46rem measure ("Start with a free / site check-up.", two lines). The measure is on the
   heading itself there; the shared closing band has none. */
.cta-band.final-cta .closing-h2 { flex: 1 1 30rem; max-width: 46rem; }

/* Hero: the line under the button sits 0.75rem below it (the mockup's inline margin). */
.hero-care .caption-bar { margin: 0.75rem 0 0; }
