/* ═══════════════════════════════════════════════════════════════════════════
   help.css — THE HELP SECTION ONLY (2026-10-04)
   ═══════════════════════════════════════════════════════════════════════════

   ⚠️ THIS IS THE SITE'S SECOND STYLESHEET, AND IT WAS A BUDGET DECISION, NOT A
   STYLE ONE. brand.css was 51KB before this round and every page pays for all
   of it. The Help redesign needed step blocks, callouts, tiles, a side-by-side
   step figure and an icon rail — rules that NOTHING outside /help/ can ever
   use. Appending them to brand.css would have charged the home page, the three
   product pages, Pricing, Security and About for markup they do not contain.

   ⚠️ IT IS LINKED CONDITIONALLY, from base.njk, on `helpCss: true` in front
   matter. The flag is set in exactly two places — `src/help/help.json` (which
   every article inherits) and `src/help.njk` — so a new article is still just
   a new markdown file. A page that forgets the flag renders as unstyled prose
   rather than breaking, which is the right failure.

   ⚠️ TWO BLOCKS WERE MOVED HERE OUT OF brand.css, NOT COPIED — `.prose` and
   `.help-index`. Both were already help-only (grep: `class="prose"` appears in
   article.njk alone, `help-index` in help.njk alone), so brand.css SHRANK by
   roughly what the moved rules weighed. If a second markdown section is ever
   added outside /help/, move `.prose` back rather than setting this flag on it.

   THE PALETTE IS THE SITE'S, UNCHANGED — docs/BRAND.md. Gold #C49A47 for the
   icons, the step discs and every rail; charcoal #1C1917 for text ON gold;
   sand #E7E5E4 for borders; white surfaces on the ivory page.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── markdown prose (moved from brand.css, 2026-10-04) ──────────────── */
/* Markdown is why this site has a generator rather than a hand-rolled
   assembler, so the elements it emits need styling once, here.

   ⚠️ THE 44rem CAP MOVED FROM THE CONTAINER ONTO THE TEXT CHILDREN. It used to
   sit on `.prose` itself, which capped the FIGURES too — a 1600px-wide product
   screenshot was being drawn at 704px on a 1440px screen while `.shot` in
   brand.css says 56rem (896px), and the two-column step figure below could not
   exist at all. Capping `> p`, `> ul`, `> ol` and the headings keeps the
   measure where it belongs (reading line length) and lets a figure or a step
   block use the whole column. Child combinators on purpose: a paragraph INSIDE
   a callout or a step figure is sized by its own box, not by this. */
.prose { max-width: none; }
.prose > p,
.prose > ul,
.prose > ol,
.prose > h2,
.prose > h3 { max-width: 44rem; }
.prose h2 {
  font-size: var(--font-size-h3);
  line-height: 1.2;
  margin-top: 2.5rem;
}
.prose h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-top: 2rem;
}
.prose p,
.prose ul,
.prose ol { margin-top: 1rem; color: var(--color-text-secondary); }
.prose li { margin-top: 0.375rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code {
  font-size: 0.875em;
  background: var(--color-background-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.25rem;
  padding: 0.1em 0.35em;
}

/* THE OPENING PARAGRAPH IS THE LEDE, SET AUTOMATICALLY. Every help article
   opens with one sentence that frames the rest; typing a class on each of the
   seven would be seven chances to forget. `:first-child` is safe because the
   layout emits nothing before the content, and an article that happens to open
   with a heading simply does not match. */
.prose > p:first-child {
  margin-top: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-primary);
}

/* ─── numbered step blocks ───────────────────────────────────────────── */
/* ⚠️ THE WRAPPER IS A <div> AROUND A MARKDOWN LIST, DELIBERATELY. markdown-it
   cannot put a class on an <ol> it generates, and rewriting the lists as raw
   HTML would take the prose out of markdown — the one thing this site uses a
   generator for. A type-6 HTML block ends at the first blank line, so the list
   between the tags is still parsed as markdown and still editable as markdown.

   ⚠️ CHARCOAL ON GOLD, NEVER IVORY ON GOLD. Ivory #FAFAF9 on #C49A47 measures
   2.49:1 and fails; charcoal #1C1917 on the same gold is 6.75:1 and passes AA.
   The numerals are real content here (they carry the order), not decoration
   like the ghost figures they replaced on the index, so the bar applies. */
.steps { margin-top: 1.75rem; max-width: 44rem; }
.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  margin-top: 1.125rem;
  padding-left: 3rem;
  min-height: 2rem;
  color: var(--color-text-secondary);
}
.steps li:first-child { margin-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text-primary);
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}

/* ─── callouts: the aside that was a paragraph ───────────────────────── */
/* Two variants and no more. `.callout` is a note worth separating from the
   flow; `.callout-warn` is the one the reader loses money or data by missing.
   A third tier would mean nothing — if everything is highlighted, nothing is.

   ⚠️ `.callout-warn` IS STANDALONE, NOT A MODIFIER — it carries the box as
   well as the colour, so `class="callout-warn"` on its own is correct and
   `class="callout callout-warn"` is not required. The modifier form was
   written first and every warning in the seven articles shipped as the
   modifier alone, which rendered them as bare paragraphs. Making the base
   selector match both is the version an author cannot get wrong. */
.callout,
.callout-warn {
  margin-top: 1.75rem;
  max-width: 44rem;
  padding: 1.125rem 1.25rem;
  background: var(--color-background-surface);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-medium);
}
.callout > :first-child,
.callout-warn > :first-child { margin-top: 0; }
.callout > :last-child,
.callout-warn > :last-child { margin-bottom: 0; }
/* The gold wash is 8% — enough to read as a different surface on ivory,
   nowhere near enough to drop the charcoal text below AA. */
.callout-warn {
  background: rgba(196, 154, 71, 0.08);
  border-color: rgba(196, 154, 71, 0.35);
  border-left-color: var(--color-accent);
}
.callout-warn p { color: var(--color-text-primary); }

/* ─── tiles: a bullet list that stops looking like a bullet list ─────── */
/* Same words, same <ul>, same order — the list is still a list to a screen
   reader. What changes is that four short facts stop reading as four more
   lines of the paragraph above them. Only for lists of SHORT items; a tile
   holding three sentences is just a card full of wall. */
.tiles { margin-top: 1.5rem; max-width: 44rem; }
.tiles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 40rem) {
  .tiles ul { grid-template-columns: 1fr 1fr; }
}
.tiles li {
  margin: 0;
  padding: 0.875rem 1.125rem;
  background: var(--color-background-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.tiles li strong { color: var(--color-text-primary); }

/* ─── a step with its screenshot beside it ───────────────────────────── */
/* ⚠️ SIDE BY SIDE ONLY FROM 64rem, WHICH IS WHERE THE ARTICLE GRID ITSELF
   SPLITS (see .article-grid in brand.css). Below that the aside has already
   dropped under the prose and the main column is the full container; two
   columns in there would give a 1600px-wide UI screenshot about 160px, which
   is a smudge, not an illustration. Stacked is the correct phone layout.

   The image column is the wider of the two: the text is one short step, the
   screenshot is the thing being pointed at. */
.step-figure { margin-top: 2.25rem; }
.step-figure > :first-child { margin-top: 0; }
/* ⚠️ THE TEXT COLUMN LEADS AT 64rem, THE IMAGE LEADS AT 80rem, AND BOTH RATIOS
   WERE MEASURED RATHER THAN GUESSED. The first attempt was 1fr / 1.15fr with a
   2.5rem gap at every width: at 1024 that left the paragraph 272px — about 38
   characters a line — which is a column of rags, not a step. The sticky aside
   takes 15rem off this column, so 1024 is the tight case and has to be tuned
   for its own sake. 1.1fr / 1fr over a 2rem gap gives the text 306px there,
   and the image only loses 34px. */
@media (min-width: 64rem) {
  .step-figure {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .step-figure .shot { margin-top: 0; }
}
/* Above 80rem the column is wide enough that both are comfortable, so the
   screenshot takes the surplus — it is the thing being pointed at. */
@media (min-width: 80rem) {
  .step-figure {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }
}

/* ─── the Help index (moved from brand.css, 2026-10-04) ──────────────── */
/* ⚠️ THE GHOST NUMERALS ARE GONE, REPLACED BY THE SEVEN ICONS. They were
   sand #E7E5E4 on ivory — 1.16:1, legal only because they were decoration —
   and they were also the reason three comments in this file and in article.njk
   said "01–06" after a seventh article shipped. An icon carries the topic at a
   glance, which is what the row was missing; the <ol> still carries the order
   semantically, so nothing was lost by dropping the counter.

   ⚠️ THE ICONS ARE DECORATION TOO (aria-hidden, see help-icons.njk) — gold on
   a 10% gold wash is a deliberate quiet tint, not an information carrier.
   Nothing in the row is identified by its icon; the heading beside it is. */
/* ⚠️ `margin-top: 0`, NOT the 2.5rem it had in brand.css. That 2.5rem existed
   to clear the lede that used to sit under the h1; the lede was deleted on
   2026-10-04 and the gap it left measured ~170px of nothing between the
   charcoal band and the first row. `.section`'s own top padding is the whole
   spacing now. Put the 2.5rem back if anything is ever added above the list. */
.help-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border-subtle);
}
.help-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.625rem 0.75rem;
  margin: 0 -0.75rem;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color 0.15s ease;
}
.help-row:hover { background: var(--color-background-surface); }
.help-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-medium);
  /* ⚠️ THE BORDER IS NOT DECORATION ON TOP OF DECORATION. Measured at 22px and
     a 1.5 stroke on the 10% wash alone, the icons read as a pale smudge from
     normal reading distance — which defeats the point of replacing a 1.16:1
     numeral. 24px, a 1.75 stroke and a gold hairline make the tile an object
     and the glyph legible, without inventing a colour outside BRAND.md. */
  background: rgba(196, 154, 71, 0.12);
  border: 1px solid rgba(196, 154, 71, 0.28);
  color: var(--color-accent);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.help-row:hover .help-icon-tile {
  background: rgba(196, 154, 71, 0.2);
  border-color: rgba(196, 154, 71, 0.45);
}
/* After `.section h2` in the cascade on purpose — these are rows, not section
   headings, and must not take the display size. */
.help-row h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: none;
}
.help-row h2 a { text-decoration: none; }
.help-row:hover h2 a { border-bottom: 1px solid var(--color-accent); }
.help-row p {
  margin-top: 0.375rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  max-width: 38rem;
}
.help-arrow {
  color: var(--color-text-secondary);
  transition: transform 0.15s ease, color 0.15s ease;
}
.help-row:hover .help-arrow {
  color: var(--color-text-primary);
  transform: translateX(4px);
}
/* ⚠️ TOP-ALIGNED ON A PHONE, CENTRED ABOVE IT — and that is a measured fix,
   not a preference. At 375px four of the seven titles wrap to two or three
   lines, so a vertically centred icon lands beside the DESCRIPTION rather than
   the heading it belongs to; "Inviting someone, and choosing their role" put
   it two lines below its own title. The rows are short enough at desktop that
   centring reads correctly there. The arrow stays centred either way: it is
   the row's affordance, not the heading's. */
@media (max-width: 639px) {
  .help-row { grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 0.875rem; align-items: start; }
  .help-arrow { align-self: center; }
  .help-icon-tile { width: 2.75rem; height: 2.75rem; }
  .help-icon-tile svg { width: 20px; height: 20px; }
}

/* ─── the contact line under the index ──────────────────────────────── */
/* ⚠️ IT REPLACES A JOB THE DELETED LEDE WAS DOING. The lede carried
   support@ypreno.com; deleting it on the owner's instruction left Help with
   no contact route in the body, and this is the owner's own replacement.

   Sized and coloured like `.pricing-note` in brand.css — the site's existing
   note paragraph, already used on /pricing/ and /security/ — rather than a
   new scale. It is NOT that class, because it needs the link rules below and
   `.pricing-note` is used on two pages that do not load this stylesheet.

   ⚠️ THE UNDERLINE IS NOT DECORATION. Sitewide `a { color: inherit }` with no
   text-decoration, so a mailto dropped into a paragraph renders as plain
   body text and nobody can tell it is a link. The sand underline makes it
   one; the gold on hover is the same affordance `.card h2 a`, `.pager-link`
   and `.header-signin` already use. */
.help-foot {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  max-width: 46rem;
}
.help-foot a {
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-subtle);
  /* 44px of hit area from padding, height given back by negative margins —
     the same trick `.eyebrow-link` uses, so the line's rhythm is unchanged. */
  display: inline-block;
  min-height: 2.75rem;
  padding-top: 1rem;
  margin: -1rem 0 -0.75rem;
}
.help-foot a:hover { border-bottom-color: var(--color-accent); }

/* ─── THE GUIDES (2026-10-30) ───────────────────────────────────────────────

   Two blocks that article.njk renders below the prose for a guide: the FAQ
   and the one call to action.

   ⚠️ THE FAQ ITSELF IS NOT STYLED HERE. `.faq` and `.faq details` live in
   brand.css and are the home page's own; the guides reuse them so the two
   cannot drift into looking like different components. All that is needed
   here is the space above the block and its heading.

   ⚠️ EVERY VALUE IS A TOKEN. No literal colours, no literal radii — the
   accent, the surface, the subtle border and the card radius all come from
   brand.css, so a change to the palette reaches these two blocks as well. */
.article-faq {
  margin-top: var(--space-heading);
}
.article-faq > h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h3);
  letter-spacing: -0.01em;
}

/* ⚠️ A SURFACE, NOT A BANNER. It sits at the end of an article a visitor has
   just read, so it is quiet: the same white card, subtle border and card
   radius the FAQ rows use, with the accent appearing only as the top rule.
   An ad-shaped block here would undo the article's job. */
.guide-cta {
  margin-top: var(--space-heading);
  padding: 1.75rem 1.5rem;
  background: var(--color-background-surface);
  border: 1px solid var(--color-border-subtle);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
  max-width: 46rem;
}
.guide-cta > h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-h3);
  letter-spacing: -0.01em;
  margin: 0;
}
.guide-cta > p {
  margin-top: 0.625rem;
  color: var(--color-text-secondary);
}
/* ⚠️ WRAPS AT 360. Two buttons side by side overflow a 360px viewport inside
   the article column's padding; `flex-wrap` is what keeps "See pricing" on
   the page rather than off the right edge. Measured at 360, 375 and 740×360. */
.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
