/* /what-jinn-can-do/writing (lib/site/pages/content.ts), build five U5b. The Writing sub-pages (writing-how, -why,
   -features, -compare) load this sheet too, with the parent's list (feature-sub-page.ts), under the same
   [data-product="content"]: every rule here is keyed on a section id, and the build eight P8 rules at the end name the
   sub-page section each one is for. */

/* Sarah 8sAhNUbh9vtd: "Other brands, written the same way." sits on one line where it fits. The kit's head is capped
   at 46rem, which broke this heading in two at every desktop width; the lede keeps its own 62ch cap. */
[data-product="content"] #gallery.fp-gallery .fp-head { max-width: none; }

/* Sarah Wg5LkFF1Ysro and xA0DUkEUX8yA: the Olipop and Paleo Pro cards at one height, side by side.
   The Olipop picture is one wide image (1172 x 663); the Paleo Pro piece is two tall slides (1080 x 1350) side by
   side, so at equal columns the Paleo Pro card runs about 5% taller. The Olipop column takes 1.08 shares to the Paleo
   Pro column's 1, which grows the Olipop picture to the Paleo Pro height (within about 3px from 861px to 1440px)
   with no crop and no stretch; the row then stretches both cards to one height, and any leftover pixel lands as
   white at the foot of the shorter card. Under 861px the cards stack and keep their own heights. */
@media (min-width: 861px) {
  [data-product="content"] #gallery.fp-gallery .fp-gallery__pieces[data-n="2"] { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: stretch; }
  [data-product="content"] #gallery.fp-gallery .fp-gallery__piece { display: flex; flex-direction: column; }
  [data-product="content"] #gallery.fp-gallery .fp-gallery__piece > .p-dlv { flex: 1 1 auto; align-content: start; }
}

/* Build six part two PW (Sarah XaJeoi1r7cIu: "Proof should be larger and nudged a bit to the left"): the checker in
   the planted-line card, from the kit's 120px at 14px in to 168px at 48px in, the card's reading column and floor
   widened to match so the words never run under Proof. Phone (kit.css 560px): Proof keeps its own row under the
   words, 88px to 120px, and moves in from the edge the same way. `#check-live` prints on the Writing overview only. */
[data-product="content"] #check-live .kit-check__card:has(> .kit-uwee) { padding-right: 236px; min-height: 196px; }
[data-product="content"] #check-live .kit-check__card > .kit-uwee { right: 48px; width: 168px; }
/* Build eight P8 (Sarah 9Zd9QpTL7aBa: "move Proof further to the left and up slightly"): from 861px Proof sits 96px in
   from the card's right edge where it sat 48px in, and 16px off the card's foot where it stood on it; the words'
   column and the card's floor follow, so the words still never run under him and he stays inside the card, at 168px.
   Phones: the same move on his own row, further in from the edge and closer under the words, and (P8 look pass) the
   same 16px up off the card's foot as on desktop, where the -18px margin had him standing on it. */
@media (min-width: 861px) {
  [data-product="content"] #check-live .kit-check__card:has(> .kit-uwee) { padding-right: 284px; min-height: 212px; }
  [data-product="content"] #check-live .kit-check__card > .kit-uwee { right: 96px; bottom: 16px; }
}
@media (max-width: 560px) {
  [data-product="content"] #check-live .kit-check__card:has(> .kit-uwee) { padding-right: 20px; min-height: 0; }
  [data-product="content"] #check-live .kit-check__card > .kit-uwee { width: 120px; margin: 0 56px -2px auto; }
}

/* Build six part two PW (Sarah N66n9PWUIsii: "a different surface color ... so it pops a bit more"): the start band
   moved from studio, the same ground as the gallery above it, to navy (content.ts `#start`), so it stands apart from
   the studio gallery above and the cream how band below. The two drafts keep studio's tokens inside their cards (site.css
   [data-ground="studio"]: white card, ink text, ink-2 labels), so the comparison reads exactly as it did; the heading, lede and link take navy's light text from the
   ground. `#start` prints on the Writing overview only. */
[data-product="content"] #start .kit-compare__pane { --fg: var(--ink); --muted: var(--ink-2); --rule: rgba(21,23,28,.12); --card: #ffffff; background: var(--card); color: var(--fg); }

/* Build six part two PW (Sarah Eo7QvC7RKoiC: "too much negative space between the section title and 'A project
   includes', and then between 'A project includes' and 'You still decide...'"): the gaps came from the kit setting the
   list and Biscuit side by side, centered on each other, so the short list floated in the middle of Biscuit's height.
   From 861px (where sections.css puts the host beside the words) the band is one grid: the title across the top,
   every line of words in the left column in reading order, straight under one another, and Biscuit in the right
   column from the list down. `.sx-beside` steps aside (display: contents: a plain div, no semantics) so its two
   children join the grid. Six items under the title: the list, three lines, the price; the last row takes whatever
   height Biscuit needs beyond them. Under 861px nothing changes. `#plans` prints on the Writing overview only. */
@media (min-width: 861px) {
  [data-product="content"] #plans > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); grid-template-rows: repeat(6, auto) 1fr; column-gap: clamp(28px, 4vw, 56px); align-items: start; }
  [data-product="content"] #plans > .wrap > * { grid-column: 1; }
  [data-product="content"] #plans > .wrap > h2 { grid-column: 1 / -1; }
  [data-product="content"] #plans .sx-beside { display: contents; }
  [data-product="content"] #plans .sx-beside__copy { grid-column: 1; }
  [data-product="content"] #plans .sx-host--beside { grid-column: 2; grid-row: 2 / -1; }
}

/* Build eight P8 (Sarah fnd8c9zp6yZw: "The numbered items need to pop more. Increase the numbers font size and change
   to match the same font as the 'From your brand...' above it, but not quite as large"): the step numbers of the
   overview's how band in the heading's own face (site.css h2: --display, weight 400), at about three quarters of its
   size, in the heading's ink rather than the muted gray. feature.css's .fp-steps is shared by every feature page;
   this is the Writing overview's #how only. */
[data-product="content"] #how .fp-steps li { grid-template-columns: 52px 1fr; }
[data-product="content"] #how .fp-steps li::before { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.7vw, 2.4rem); line-height: 1; letter-spacing: -.012em; color: var(--fg); padding-top: 0; }
@media (max-width: 560px) {
  [data-product="content"] #how .fp-steps li { grid-template-columns: 40px 1fr; }
}

/* Build eight P8: the crew on the Writing sub-pages, each portrait over its roster name and title (writing-compare.ts
   #hiring and #limits, writing-how.ts #machinery). Sizes live here, not inline (castFigure prints no width), so each
   band sets its own; each rule names its section, as every rule in this sheet does (feature-page.test.ts). */
[data-product="content"] #hiring .wr-host,
[data-product="content"] #limits .wr-host,
[data-product="content"] #machinery .wr-host { margin: 0; display: grid; justify-items: center; gap: 10px; width: fit-content; max-width: 100%; }
[data-product="content"] #hiring .wr-host__uwee,
[data-product="content"] #limits .wr-host__uwee,
[data-product="content"] #machinery .wr-host__uwee { display: block; }
[data-product="content"] #hiring .wr-host .fp-role,
[data-product="content"] #limits .wr-host .fp-role,
[data-product="content"] #machinery .wr-host .fp-role { text-align: center; }

/* Sarah pHLNT1IA5n8Q and cOMhVHXheYNh (writing/compare #hiring): Ocho and her bubble above the hiring copy, which moves
   down under him. The bubble keeps the site's tagline-bubble, a size down so its two sentences sit on three lines. */
[data-product="content"] #hiring .wr-host--hiring { margin: 4px 0 clamp(24px, 3vw, 36px); }
[data-product="content"] #hiring .wr-host--hiring .wr-host__uwee { width: clamp(150px, 14vw, 190px); }
[data-product="content"] #hiring .wr-host__says { max-width: 24ch; margin: 0 0 8px; font-size: clamp(1.2rem, 1.6vw, 1.5rem); }

/* Sarah oLUNr9i7kfOu (writing/compare #limits): Errata larger (170px from the 76px corner cut-out depth.css drew) with
   her name and title, beside the limits table from 861px and above it on phones. */
[data-product="content"] #limits .wr-limits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
[data-product="content"] #limits .wr-limits > .wr-host--limits { order: -1; justify-self: start; }
[data-product="content"] #limits .wr-host--limits .wr-host__uwee { width: 130px; }
@media (min-width: 861px) {
  [data-product="content"] #limits .wr-limits { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(28px, 4vw, 56px); align-items: start; }
  [data-product="content"] #limits .wr-limits > .wr-host--limits { order: 0; }
  [data-product="content"] #limits .wr-host--limits .wr-host__uwee { width: clamp(150px, 13vw, 180px); }
}

/* Sarah Ieq0V9MHYU-b (writing/how #machinery): Pockets after the three cards, her line above his name and title. */
[data-product="content"] #machinery .wr-host--sign { margin: clamp(28px, 4vw, 48px) auto 0; }
[data-product="content"] #machinery .wr-host--sign .wr-host__uwee { width: clamp(150px, 14vw, 190px); }
[data-product="content"] #machinery .wr-host--sign figcaption { display: grid; justify-items: center; gap: 10px; }
[data-product="content"] #machinery .wr-host__line { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; text-align: center; color: var(--fg); }

/* Sarah w0PA6SqFD-u0 (writing/features #stages): the sentence on what Paleo Pro is, above its carousel. */
[data-product="content"] #stages .sp-row__brand { margin: 0 0 14px; }

/* Build nine U6 (Sarah Y54UHdwQavL5, writing/compare #limits: "feels like a screenshot of an Excel file"): the same table,
   the same words and links (depthTable's markup is untouched), drawn as five slips instead of a ruled grid. Each row is
   one white slip with the amber key on its edge: the limit in the heading face on the left, and where the site says so
   on the right under its own small label (the column heads stay for screen readers). On phones a slip stacks, the
   source under a dashed rule. */
[data-product="content"] #limits .wr-limits__table .dp-tablewrap { padding: 0; background: transparent; }
[data-product="content"] #limits .wr-limits__table .dp-table { border-collapse: separate; border-spacing: 0 10px; margin: -10px 0; font-size: 1rem; }
[data-product="content"] #limits .wr-limits__table .dp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-product="content"] #limits .wr-limits__table .dp-table tbody tr { filter: drop-shadow(0 1px 2px rgba(21, 23, 28, .08)); }
[data-product="content"] #limits .wr-limits__table .dp-table tbody th,
[data-product="content"] #limits .wr-limits__table .dp-table tbody td { background: #fff; border: 0; padding: 16px 20px; vertical-align: middle; }
[data-product="content"] #limits .wr-limits__table .dp-table tbody th { border-radius: 14px 0 0 14px; box-shadow: inset 4px 0 0 var(--amber); padding-left: 24px; font-family: var(--head); font-weight: 600; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); line-height: 1.35; color: var(--ink); }
[data-product="content"] #limits .wr-limits__table .dp-table tbody td { width: 15.5rem; border-radius: 0 14px 14px 0; border-left: 1px dashed rgba(21, 23, 28, .18); font-size: .95rem; line-height: 1.35; }
[data-product="content"] #limits .wr-limits__table .dp-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--ui); font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--ink-3); }
[data-product="content"] #limits .wr-limits__table .dp-table td a { font-family: var(--ui); font-weight: 700; color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .2em; }
[data-product="content"] #limits .wr-limits__table .dp-table td a::after { content: " \2192"; content: " \2192" / ""; text-decoration: none; display: inline-block; margin-left: .3em; }
@media (max-width: 720px) {
  [data-product="content"] #limits .wr-limits__table .dp-table { margin: 0; }
  [data-product="content"] #limits .wr-limits__table .dp-table tbody tr { margin-bottom: 10px; padding: 0; border-bottom: 0; border-radius: 14px; background: #fff; box-shadow: inset 4px 0 0 var(--amber); overflow: hidden; }
  [data-product="content"] #limits .wr-limits__table .dp-table tbody th,
  [data-product="content"] #limits .wr-limits__table .dp-table tbody td { background: transparent; border-radius: 0; box-shadow: none; width: auto; padding: 14px 16px 12px 20px; }
  [data-product="content"] #limits .wr-limits__table .dp-table tbody td { border-left: 0; border-top: 1px dashed rgba(21, 23, 28, .18); padding-top: 10px; padding-bottom: 14px; }
}

/* Build nine (row a:writing-compare-third-line: the third line under the draft, "Jinn checks...", goes to the larger size):
   the law line under the signed draft on the three Writing pages that print it (The Comparison, How It Works, Why It
   Matters; writing-moments.ts withLargeLaw prints .wr-law), at the sign note's size above it (sub-page.css .sign
   .sp-sign-note). Dan: a fix on a shared part goes to every page that prints it. */
[data-product="content"] #sign .wr-law { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; }
