/* tweakflix — CONTACT AND THE PLAIN PAGES
   Pages with no composition of their own in styleguide/pages/ (contact, help,
   legal, 404). They wear post.html's masthead and reading column (p-post.css);
   this sheet only stacks the form's fields and the channel buttons, which
   c-controls.css sizes one at a time. The buttons sit OUTSIDE .e-prose: the
   prose link rule would recolour their label. Tokens only. */

.p-contact__channels {
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure-lead);
  margin-block: var(--space-4) var(--space-8);
}

/* THE FORM'S COLUMN. Everything else on this page — the lead under the page
   title, the "Message us directly" heading, the two channel rows, the reply
   note, the h2 above the form — sits on --measure-lead. The form did not: a
   `.p-contact .field { max-width: none }` here cancelled .field's own measure,
   so at 1440 Your name, Email address and Which plan each drew a 720px rule
   across the article column (x 224, y 820–1096) with 176px of empty column to
   their right and 336 beyond it. A 720px input asks for a sentence, gets a
   name, and reads as a document that was never set. The form takes the page's
   column now, and the override is gone: .field's own max-width is the same
   544, so nothing inside needs to fight it. */
.p-contact {
  display: grid;
  gap: var(--space-6);
  max-width: var(--measure-lead);
  margin-block-start: var(--space-6);
}

/* The two short answers pair. Name and email are the only fields on this form
   whose content is shorter than the column, and stacking them printed two more
   full-width rules under each other; side by side above the fold-width they
   read as one question ("who are you"), and the form loses a row. Below 48rem
   they stack, because 260px halves of a 358px phone column are not fields. */
.p-contact__pair {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .p-contact__pair {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-4);
  }
}

/* The field's edge answers the caret the way the shop's search field does —
   one focus language for every text control in the system. */
.p-contact .input:focus { border-color: var(--color-accent); }

.p-contact > p { margin: 0; }

/* --- the two direct routes ------------------------------------------------
   The weighting is decided HERE, on the page whose entire job is these two
   routes. Across the shop WhatsApp is the order channel and Telegram is the
   alternative (ledger F2); the closing panels state that with a filled
   WhatsApp control and a bare underlined Telegram line. The RANK is the same
   on this page. The ANATOMY is not, and the reason is the page: a closing
   panel is an aside at the end of another page's argument, so its second
   route can be a line of type. This page is nothing but the two routes, so
   the second one has to be a target. Both rows are therefore the same 52px
   block control on the same column, and the only thing that ranks them is
   the FILL — WhatsApp carries its own green, Telegram is enclosed on the
   white surface with the system's control edge and keeps its mark in its own
   blue. Two saturated full-bleed fills stacked (the old pair) ranked nothing
   and put three loud hues — violet header, green, blue — in one 844px view. */
.p-contact__direct {
  max-width: var(--measure-lead);
  margin-block-end: var(--space-12);
}

/* The section heading is the reading column's h2 at the ramp's 3xl step; it
   is written here rather than borrowed from .e-prose because the block is no
   longer inside the prose — the prose's 64px heading margin was opening a
   hole between the masthead rule and the page's first control. */
.p-contact__ask {
  margin: 0 0 var(--space-4);
  font-size: var(--text-3xl-size);
  line-height: var(--text-3xl-line);
  letter-spacing: var(--text-3xl-track);
  font-weight: var(--weight-semibold);
}

/* THE PAGE'S HEADING REGISTER ON THE PHONE.
   At 390 the page title is the ramp's 4xl step (32px/600) and every section
   heading was the 3xl step (26px/600) in the same ink: six pixels and no other
   difference. Measured before this change, the masthead rule fell at y356 and
   "Message us directly" opened at y376 — twenty pixels under the hairline,
   with 48 to the next section — so the title, the rule and the ask read as one
   heading stack and the two channel rows read as its footnotes rather than as
   the page's primary act. Above the tablet step nothing is wrong: the title is
   the display step there and already towers over 26.
   So, below it: one step down for the section headings, to lg. 32 against 20
   is a twelve-pixel span the eye reads instantly, and the loudest thing left
   inside the section is the WhatsApp fill, which is the act. Both of the
   page's section headings move together — a page whose first section heading
   is smaller than its second ranks them backwards. */
@media (max-width: 47.9375rem) {
  .p-contact__ask,
  .p-contactpage .e-prose > h2 {
    font-size: var(--text-lg-size);
    line-height: var(--text-lg-line);
    letter-spacing: var(--text-lg-track);
  }

  /* The label binds to the pair it names: twelve pixels below it, forty-eight
     above it. */
  .p-contact__ask { margin-block-end: var(--space-3); }

  /* And the step under the rule opens to the same forty-eight the section
     takes to the next one, so the channel block stands free between two equal
     gaps instead of hanging off the masthead. */
  .p-contactpage .p-post { padding-block-start: var(--space-12); }
}

/* The pair is one object: 8px between the rows, not the 12px the 404 page's
   two unrelated choices take. */
.p-contact__direct .p-contact__channels {
  gap: var(--space-2);
  margin-block: 0;
}

.p-contact__channels .p-contact__alt {
  --btn-bg: var(--color-surface);
  --btn-bg-hover: var(--color-surface-sunken);
  --btn-bg-active: var(--color-surface-sunken);
  --btn-edge: var(--color-border-strong);
  --btn-edge-hover: var(--color-ink-secondary);
  --btn-edge-active: var(--color-ink);
  --btn-ink: var(--color-ink);
  /* c-controls rebinds the ring to the on-accent ink for every messenger
     fill; on a white row that ring is invisible, so the page ring comes back. */
  --focus-color: var(--color-accent);
}

/* The mark stays the vendor's, on a control that no longer is. */
.p-contact__channels .p-contact__alt .i { color: var(--color-telegram); }

/* The reply line belongs to the pair, not to the form below it: it sat 32px
   under the buttons at the prose's base step with 90px of nothing after it,
   which read as the opening sentence of the next section. */
.p-contact__note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-ink-tertiary);
}

/* 2026-09-29, his email for queries, a third route under the two buttons. */
.p-contact__email {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-ink-secondary);
}

.p-contact__email a {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  text-underline-offset: 0.2em;
}

/* --- the child-page index -------------------------------------------
   /help/ and /legal/ are parent pages whose whole job is to hand the reader
   the four pages under them, and they printed that list as a bare <ul> inside
   .e-prose: four underlined violet links in body copy, with 250px of empty
   column under them at 1440 and the footer repeating the same four links,
   better set, further down the page. The list is the page now.

   It is not a new material: it is the home page's ruled category rack at page
   scale — one hairline-topped plate, one row per child, no row gaps, the row
   filling in the soft accent under the pointer with its own rule going out
   from under the fill. A child's WordPress excerpt is the second line where it
   has one; where it has none (every /legal/ page today) the row is the title
   alone at the same height, which is why a page the client writes in the
   editor with nothing in the excerpt field still lands as a deliberate row
   rather than as a gap. */

.p-pageindex {
  display: grid;
  /* On the reading column's own measure, not the article column's. At 720 the
     plate ran 176px wider than every paragraph above it and parked the chevron
     at the far right of a 400px title — one object pretending to be a table.
     At --measure-lead the index, the lead and the prose share one right edge
     and the cue sits where the name ends. */
  max-width: var(--measure-lead);
  margin-block-start: var(--space-6);
  border-block-start: 1px solid var(--color-border);
}

.p-pageindex__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--space-4);
  /* No min-block-size: the padding sets the target (16 + 28 + 16 = 60px on the
     shortest row, a title with no excerpt), and a floor would have made the
     grid area taller than its content, which is what pushed the cue away from
     the line it belongs to. */
  padding: var(--space-4) var(--space-2);
  border-block-end: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  text-decoration: none;
  transition: background-color var(--duration-hover) var(--ease-out),
              transform var(--duration-press) var(--ease-out);
}

.p-pageindex__say {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 0;
}

/* The title is the row's content, so it sits a step above body: a four-item
   index whose names are at reading size reads as a paragraph with bullets,
   which is the failure this replaces. */
.p-pageindex__name {
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  letter-spacing: var(--text-lg-track);
  font-weight: var(--weight-semibold);
  text-wrap: pretty;
}

.p-pageindex__blurb {
  max-width: var(--measure-lead);
  color: var(--color-ink-secondary);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  letter-spacing: var(--text-sm-track);
  text-wrap: pretty;
}

/* The cue reads against the NAME, not against the middle of a three-line row.
   Centred, it floated beside the second line of the excerpt on /help/, which
   is the one place a chevron says nothing. Four pixels down from the top of
   the block puts it on the title's own line at every row length. */
.p-pageindex__go {
  align-self: start;
  margin-block-start: var(--space-1);
  color: var(--color-ink-tertiary);
  transition: transform var(--duration-hover) var(--ease-out),
              color var(--duration-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .p-pageindex__row:hover {
    background-color: var(--color-accent-soft);
    border-block-end-color: transparent;
  }

  .p-pageindex__row:hover .p-pageindex__go {
    color: var(--color-accent);
    transform: translateX(var(--space-1));
  }
}

.p-pageindex__row:active {
  background-color: var(--color-surface-sunken);
  border-block-end-color: transparent;
  transform: scale(var(--press-scale));
}

@media (prefers-reduced-motion: reduce) {
  .p-pageindex__row,
  .p-pageindex__go { transition: none; }
  .p-pageindex__row:active { transform: none; }
  .p-pageindex__row:hover .p-pageindex__go { transform: none; }
}

/* --- the way onward (ledger V17) ------------------------------------------
   Measured before this block, at 390: /help/sourcing/ ended its last sentence
   at y982 and the footer opened at y1126 — 144px of dead ground, no sibling,
   no route back to Help, no person. The other three help pages and every
   /legal/ page ended the same way. A page that answers one worry and then
   stops is where the shopper leaves.

   The tail is not a new object: it is the SAME ruled rack the parent prints,
   read across instead of down — an uppercase label that is the route back to
   the parent, the sibling pages as rows (titles only; the excerpts belong to
   the hub, where the reader is choosing, not to the tail, where they have
   already read one), and one route to a person in the shop's own message
   control. The hub gets only the control: its rows are already the page. */

.p-onward {
  max-width: var(--measure-lead);
  margin-block-start: var(--space-12);
}

.p-onward__title {
  margin: 0;
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-track);
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
}

/* The label is the target: 12px of type with 16 above and below is a 44px row
   on the column's own left edge, so the route back to Help is a tap and not a
   caption. */
.p-onward__up {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--space-12);
  padding-inline: var(--space-2);
  margin-inline-start: calc(var(--space-2) * -1);
  color: var(--color-ink-secondary);
  text-decoration: none;
  transition: color var(--duration-hover) var(--ease-out);
}

.p-onward__go {
  color: var(--color-ink-tertiary);
  transition: transform var(--duration-hover) var(--ease-out),
              color var(--duration-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .p-onward__up:hover { color: var(--color-accent); }
  .p-onward__up:hover .p-onward__go {
    color: var(--color-accent);
    transform: translateX(var(--space-1));
  }
}

.p-onward__up:active { color: var(--color-accent-deep); }

/* The tail's rack carries no excerpts, so its rows are one line: the same
   16px padding reads as a tighter list than the hub's three-line rows, which
   is the rank this block wants against the prose above it. */
.p-pageindex--tail { margin-block-start: var(--space-2); }

/* One control, left on the column, sized like every other message route in
   the shop. Not block-width: a full-bleed green bar under four short policy
   pages would be the loudest thing on each of them. */
.p-onward__ask { margin-block-start: var(--space-6); }

/* Where the ask is the whole rail — the hub, a legal parent, a page the client
   writes with prose and nothing else — its step from the rack above it is a
   step from nothing, and it printed as 56px of plate above the control against
   32 below it. The plate's own padding is the air in that case. */
.p-onward__plate > .p-onward__ask:first-child { margin-block-start: 0; }

@media (prefers-reduced-motion: reduce) {
  .p-onward__up,
  .p-onward__go { transition: none; }
  .p-onward__up:hover .p-onward__go { transform: none; }
}

/* --- THE TEMPLATE PAGES READ ACROSS FROM 64rem (.p-docpage) ----------------
   Every page tweakflix_render_page() draws — the help hub, its four children,
   the four legal pages and anything the client writes in the editor — was the
   phone's column left standing at desktop. Measured at 1440 before this block:
   /help/ ran x224–768, a 544px text column inside a 992 content box, with 448px
   of blank page to its right and 165px of dead ground between the last control
   (y1070) and the footer (y1235); /legal/privacy/ and every help child were the
   same shape, and so was every page he has not written yet.

   The composition is the one the contact page took last round, on the same 992
   the shop's other pages run across (x224 to x1216). What may not move is the
   running prose: a warranty answer set 992 wide is not a better answer, so the
   left track is --measure-lead and the measure is untouched at 544 / ~71
   characters. What moves is everything that is not running prose — the route
   back to the parent, the sibling pages and the ask — into the 384 that is
   left, enclosed on the sunken plane with the system's hairline so the shorter
   column has a bottom edge rather than trailing off.

   Two things make it hold for shapes as different as a four-row hub, an
   1,100px policy and a page with three paragraphs and nothing else:

   1. THE PLATE TRAVELS. A child page's prose runs 1,100px past the bottom of a
      300px plate, and a plate pinned at the top would have moved the void
      rather than closed it. Sticky under the header, the rail is beside the
      reader for the whole read and the route to a person is one click away at
      the line where the worry actually lands — which is V17's own argument,
      finally answered at the width it failed on.
   2. THE INDEX IS NOT AN ASIDE. On a hub the list of children IS the page, so
      it does not go in the rail: it takes both tracks under the prose, two
      columns wide, which is also where its excerpts get room to be read.

   A page with prose and nothing else keeps its second track because the ask is
   on every page of this template now, so no page here is ever a lone column
   again. */
@media (min-width: 64rem) {
  .p-docpage .e-article {
    display: grid;
    grid-template-columns: var(--measure-lead) minmax(0, 1fr);
    align-items: start;
    column-gap: var(--space-16);
    max-width: none;
  }

  .p-docpage .e-prose {
    grid-column: 1;
    grid-row: 1;
  }

  .p-docpage .p-onward {
    grid-column: 2;
    grid-row: 1;
    /* The rail's grid area takes the row's full height; the plate inside it is
       what travels. Without this the area is the plate's own height and the
       sticky offset has nothing to move within. */
    align-self: stretch;
    max-width: none;
    margin-block-start: 0;
  }

  .p-docpage .p-onward__plate {
    position: sticky;
    inset-block-start: var(--scroll-offset);
    padding: var(--space-8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface-sunken);
  }

  /* The plate's own object, so it takes the plate's width. The rule above it —
     never block-width — is about a green bar under a policy page's 544px
     column, where the control would have been the loudest thing on the page;
     inside a 384px plate it is the plate's purpose, set exactly as the contact
     page sets its two channel rows. */
  .p-docpage .p-onward__ask {
    display: flex;
    inline-size: 100%;
  }

  /* The hub's index takes the page, two columns on the container's own 992.
     At 544 in a 992 box it was the same stranded column the prose was, and its
     excerpts — the one thing that tells a reader which of four pages answers
     their question — were wrapping to three lines at half the available width. */
  .p-docpage .e-article > .p-pageindex {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-16);
    max-width: none;
    margin-block-start: var(--space-12);
  }
}

/* The template paid its closing air twice: .p-post's own 40 under the article
   plus <main>'s 125, which is what made the last 165px read as the page
   trailing off rather than ending. One gap, and it is the same one every other
   page in the shop closes on. */
.p-docpage .p-post { padding-block-end: 0; }

/* THE FORM'S THREE ANSWERS (round one, verified in the browser).
   A submit that fails posts back to the top of the page: at 390 the first
   error sat 756px below the fold, so the reader saw a masthead and nothing
   else. contact.js moves focus to the notice, the first invalid field or the
   sent panel; these three rules give each of them something worth landing on.
   Copy is docs/copy-deck.md § 10 / § 10.1, unchanged. */

/* The whole-form failure: the field's own danger fill, its own edge, so it
   reads as a state of the form rather than a red sentence in the prose. */
.p-contact__notice {
  margin-block: 0 var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  background-color: var(--color-danger-soft);
  color: var(--color-danger);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-weight: var(--weight-medium);
}

.p-contact__notice a { color: inherit; }

/* Success replaces the form, so it is the only object left in the section. */
.p-contact__sent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-block: 0;
  padding: var(--space-5);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  background-color: var(--color-success-soft);
  color: var(--color-ink);
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
}

.p-contact__sent .i {
  flex: none;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  margin-block-start: 2px;
  color: var(--color-success);
}

/* Both are landing targets, not controls: contact.js focuses them so the
   reader (and the screen reader) starts on the answer, and Tab from there goes
   straight to the first field. They keep the site's one focus ring rather than
   a quieter local one — a skip target that paints a different ring teaches a
   second focus language on the one page where the reader is already lost. */
.p-contact__sent:focus-visible,
.p-contact__notice:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* Sending: the label swaps to a shorter word, so the width is pinned first
   (contact.js) and the button holds its box rather than resizing under the
   thumb. The state itself is c-controls' [aria-busy] — the accent's pressed
   fill, the on-accent ink at full strength, and the one-shot sweep rule under
   the label. It is NOT the disabled treatment it used to borrow: that painted
   --color-ink-disabled on --color-surface-tile, and "Sending" measured 1.61:1
   on the one screen where the reader most needs to know something is
   happening. Nothing is dimmed here; only the fill steps down. */

/* --- the tail: what closes /contact/ --------------------------------------
   THE DECISION, taken in this round and argued rather than assumed: this page
   does NOT end on the shop's dark closing panel (.p-close), the way home,
   /catalogue/, /offers/ and /blog/ now do.

   .p-close exists to give a page whose content is not a contact route a route
   to contact. On /contact/ that job IS the page. Measured at 390 before the
   change: the WhatsApp / Telegram pair sits at y 460-620, the submit at
   y 1258, the footer's WhatsApp / Telegram / mail icon row at y 1530, and the
   header's Message us is fixed above all of it. A closing panel here would
   print the same two routes a third time inside 1100px of scroll, in the
   loudest material the shop owns, directly under a form that has just asked
   the reader for the same thing in writing, and 100px above a footer row that
   asks a fourth time. /how-it-works/ already carries this decision in
   theme/inc/pages.php, for the same reason. The page ends on its own content.

   What was actually wrong is that it did not END. Two changes, both removals. */

/* 1. One anatomy for the page's three routes. The two channel rows at the top
      are 52px block controls on the reading column; the submit was the same
      52px control at 165px, so at 390 the last and most committing of the
      three asks was drawn as the smallest. It fills the column now and the
      page closes on a solid edge. Above the phone the form is on its 544
      column, where a full-bleed submit would be a banner, so the control keeps
      its own label width and its own left edge.

      The rule above it is the form's own end. Four fields and a button in one
      even 24px stack gave the submit the weight of a fifth field: nothing said
      "you have finished answering". A hairline across the column, with the
      button hung 24px under it, closes the questions and opens the act — and
      it is the same hairline the masthead already draws above this section, so
      the page gains no new material for it. */
.p-contact__send {
  margin: 0;
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--color-border);
}

.p-contact__send .btn { inline-size: 100%; }

@media (min-width: 48rem) {
  .p-contact__send .btn { inline-size: auto; }
}

/* 2. The end of the page charged the section pad twice, the failure .p-post's
      own comment records at the top of p-post.css: main's
      --section-pad-bottom (104 at 390, 125 at 1440) on top of .p-post's 40.
      That is 144 and 165px of empty plane after the last thing the page says
      — on the phone, a fifth of a screen of nothing between the submit and
      the footer, which is what made the page read as unfinished rather than
      as closed. One step now, and the footer's white plate arrives as the
      page's ground. */
.p-contactpage { padding-block-end: var(--space-8); }

@media (min-width: 48rem) {
  .p-contactpage { padding-block-end: var(--space-16); }
}

/* --- 1440: the page becomes a composition, not a long phone -------------
   THE FAILURE, measured at 1440 before this block. The whole page body was
   one 544px column pinned at x224 — the masthead lead, both channel rows and
   every field — running y477 to y1326 with 672px of untouched page to its
   right, closed by a full-bleed footer that made the emptiness the last thing
   the eye read. The vertical step was the phone's, unchanged: 40px from the
   masthead rule to the first section, 48 from that section to the next. A
   desktop visitor was looking at a phone layout that had been allowed to sit
   still.

   The page has exactly two jobs and they do not follow one another — they
   stand side by side: reach a person NOW (the two channel rows) or write
   instead (the form). Below 64rem that is a sequence, because a phone has one
   column and the deck's own lead reads in that order. From 64rem it is a pair,
   on the content box the container already gives every other page here (224 to
   1216, the 992 /how-it-works/ runs its own WhatsApp/Telegram pair across).

   The tracks are not equal and they are not arbitrary. The form keeps
   --measure-lead: 544 is the width this system fills a text field at, and a
   992px input is not an improvement on a 544px one. The channels take what is
   left, 384, which is wide enough for two 52px block controls and narrow
   enough that the pair reads as the page's aside rather than as its argument.

   The left column is a plate, not a bare stack. Two columns of unequal height
   with nothing under the shorter one is the same void moved 384px to the left;
   enclosed on the sunken plane with the system's hairline, the short column is
   an object with a bottom edge, and the composition reads as a filled field
   with a light half and a heavy half. No new material: it is the enclosure the
   shop already uses wherever a block of controls has to hold together. */
/* K-03 (client, 2026-09-24: "the contact section feels slightly too empty,
   balance the spacing/proportions between the direct-message card and the
   form"). Measured before: the plate 384×268 beside a 544×599 form, 331px of
   bare ground under the plate, and its heading 33px below "Or send a
   message". The two columns are now the two panes of ONE object: a white
   surface with the system hairline, the direct pane on the sunken plane
   (the plate's own material), the form pane on white. Both panes take the
   same height and the same 32px inset, so the two headings share a line and
   the object ends on one edge under the Send row. The form keeps its 544
   measure; the direct pane keeps its 384 and its content exactly as it was. */
@media (min-width: 64rem) {
  .p-contactpage .e-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(var(--measure-lead) + 2 * var(--space-8));
    align-items: stretch;
    max-width: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    overflow: hidden;
  }

  .p-contactpage .e-article > .e-prose { padding: var(--space-8); }

  /* The step under the masthead rule is the width's step, not the phone's:
     40px of air between a 72px title's rule and the first control read as the
     gap inside a stack rather than as the opening of the page body. */
  .p-contactpage .p-post { padding-block-start: var(--space-16); }

  .p-contactpage .p-contact__direct {
    max-width: none;
    margin-block-end: 0;
    padding: var(--space-8);
    border-inline-end: 1px solid var(--color-border);
    background-color: var(--color-surface-sunken);
  }

  .p-contactpage .p-contact__channels { max-width: none; }

  /* The form column starts on the same line as the plate: the two headings
     are one row, so the page reads across before it reads down. */
  .p-contactpage .e-prose > h2 { margin-block-start: 0; }
}

/* ------------------------------------------------------------------ 404 */
/* docs/copy-deck.md § 14. The page was the masthead, two stacked full-width
   buttons and then nothing: 176px of dead ground above the footer at 390,
   290px at 1440, on a screen whose whole job is to put a lost shopper back on
   a shelf. Two changes, no new material: the pair becomes a real pair on any
   width that can hold one, and the help index — the same ruled plate /help/
   and /legal/ use for their children — carries the client's own categories
   under it, name and live count, so the page ends on eight real doors instead
   of on air. */

/* ROUND TWO. The pair rides in the masthead (theme/inc/pages.php): it is the
   answer to the sentence directly above it, so it belongs in the band that
   carries the sentence rather than under the rule that closes it. The channels
   block's own outer margins are a form column's; here the masthead grid's gap
   is the air, and the order on a phone is unchanged. */
.p-masthead__aside .p-notfound__actions { margin-block: 0; }

/* ROUND FOUR. The second action opens wa.me and was drawn as a bare grey
   outline button: on the one page where a lost shopper has to recognise the
   route to a person at a glance, it was the only WhatsApp control in the shop
   with no WhatsApp on it. The mark goes on, in the vendor's own green on the
   outlined control — /contact/'s own anatomy for a second route — rather than a
   second saturated fill beside the violet primary, which would have put two
   loud hues in one band. The label is § 14's `Message us` and does not move. */
.p-notfound__wa .i--mark { color: var(--color-whatsapp); }

/* The shop's closing air is set for a page that ends on a section; this one
   ends on a rack of eight rows, and the theme's own 125px under it plus the
   block's 40 read as the page trailing off. Half of it is the right amount of
   silence after the last door. */
.p-notfoundpage { padding-block-end: var(--space-12); }

/* Stacked at 390, where a 358px block button IS the target; side by side from
   40rem, where two 264px halves of the lead column read as one decision
   rather than as two slabs of a form. */
@media (min-width: 40rem) {
  .p-notfound__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sentence case, one step under the buttons' baseline weight: a lead-in to
   the list, not a second section heading competing with the h1 above it. */
.p-notfound__label {
  margin: 0;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  letter-spacing: var(--text-sm-track);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-secondary);
}

/* The index sits ON its label (the component's own space-6 belongs under a
   paragraph, not under a two-word caption), and each row is one line: the
   count is the row's right-hand column, not a second line under the name, so
   eight shelves cost 480px instead of 670 on a phone. */
.p-notfound__index {
  margin-block-start: var(--space-3);
}

.p-notfound__index .p-pageindex__row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--space-3);
}

.p-notfound__index .p-pageindex__go {
  align-self: center;
  margin-block-start: 0;
}

/* The one number the row can prove — the catalogue's own in-stock count, the
   same string the home rack prints. Lining figures so the eight counts read
   as a column. */
.p-notfound__n {
  color: var(--color-ink-tertiary);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  letter-spacing: var(--text-sm-track);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* At 64rem the page stops being a column. Measured before this block: the
   masthead, the pair and the shelves all sat on the 720 article measure inside
   the 1120 container, so every edge stopped at x944 with 400px of empty page
   beside it and 166px of dead ground between the last row (y942) and the
   footer (y1108) — an unfinished left column above the footer's full-width
   five-column grid. Three rules, no new material: the band reads across, the
   shelves take the container, and the eight rows are two deep instead of
   four. */
@media (min-width: 64rem) {
  /* ROUND THREE. The rail was an 18rem column with a 4rem gutter, which put it
     at x928 on a page whose index below runs on four columns starting at
     x224/478/732/986: the buttons' leading edge cut 58px into column three, and
     `align-items: end` parked a 116px pair at the FOOT of a 313px band, so
     y129-358 of the top-right quadrant was empty on the first screen. The rail
     is the index's own last column now — same width, same gutter, same left
     edge, so the pair and the last shelf share one line down the page — and it
     starts with the headline instead of ending with the sentence. */
  .p-notfoundpage .p-masthead__inner {
    grid-template-columns: minmax(0, 1fr) calc((100% - var(--space-6) * 3) / 4);
    align-items: start;
    column-gap: var(--space-6);
  }

  /* The pair starts where the headline starts, so the sentence and its two
     answers open on one line. Round four: that used to cost a --space-16 offset
     to clear the crumb row above the headline. The crumb row is gone (a 404 is
     not a location, and its one rung was the H1 reprinted), so the offset went
     with it — left in, it parked the pair 62px below the line it aligns to. */
  .p-notfoundpage .p-masthead__aside { margin-block-start: 0; }

  /* In a 288px rail two halves would be 132px of button; the pair stacks
     again, and each one is the rail's full width. */
  .p-notfoundpage .p-masthead__aside .p-notfound__actions {
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .p-notfoundpage .e-article { max-width: none; }

  .p-notfound__index {
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--space-6);
  }

  /* A 250px column will not hold "Security and privacy" and "3 plans" on one
     line, and a shelf name that shrinks to fit is not a shelf name. The count
     drops under the name — quieter, and every one of the eight rows is the
     same height. */
  .p-notfound__index .p-pageindex__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: var(--space-1);
    /* Centred, the four names in a row did not share a line: the two that wrap
       filled the 1fr track and the two that do not floated 15px lower inside
       it. Top-aligned, the four names open on one line, the four counts sit on
       one floor, and the block reads as a table. */
    align-items: start;
  }

  .p-notfound__index .p-pageindex__say { grid-column: 1; grid-row: 1; }

  /* Two of the eight names take a second line at this column width. The counts
     sit on the row's floor rather than under their own name, so the four in a
     row share one baseline and the block reads as a table instead of as eight
     independently placed pairs. */
  .p-notfound__index .p-pageindex__row { grid-template-rows: 1fr auto; }

  .p-notfound__index .p-notfound__n {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  /* The cue belongs to the name, not to the row's box: on the name's first
     line, the way it sits on every other rack in the shop. */
  .p-notfound__index .p-pageindex__go {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-block-start: var(--space-1);
  }
}
