/* p-shop.css — layout that belongs to the catalogue archive only.

   Everything with a c- prefix comes from the component families and is not
   restyled there. Four things this page needed did not exist anywhere, so
   they are built here rather than inside a c- file this page does not own:
   the filter panel and its checkbox option row, the control bar, the active
   filter row, and the featured flag. They are named p- so nobody mistakes
   them for system components.

   MOBILE IS THE DESIGN SURFACE. Every block below is written at 390 first and
   the 1024 archive is the derivation, not the other way round. The two places
   the structures genuinely diverge are marked: the filter control (a sticky
   bar plus a sheet on a phone, a standing panel in a left column on a desktop)
   and the featured cell (full width on a phone, two columns by two rows on a
   desktop). Nothing exists at 1440 that does not exist at 390.

   THE BORDER DECISION, REVISED. Earlier waves gave the catalogue no card at
   all, on the argument that an item in a list is not a choice between boxes.
   That was correct about BORDERS and wrong about DEPTH: twenty-three bordered
   rectangles would be twenty-three competing edges, but twenty-three surfaces
   that sit one step above the page are not edges at all, they are objects. So
   the card is still unbordered and is now elevated: white, radius-xl, contact
   and ambient shadow, the top light edge, and an honest lift on hover. The
   only bordered things on the page remain the ones that take a choice — the
   checkbox, the sort select, the filter button, the removable chip.

   THE CHROMA RULE. The measured product-chroma share is the one number this
   page is not allowed to spend. Every surface added by this wave — the wash
   bed, the card, the sheet, the dark panel — is neutral or near-neutral by
   construction, and the card was elevated by BLEEDING the tinted bed to the
   card's own edges rather than insetting it inside a padded frame, which
   would have cost roughly a third of the colour area at 390.

   No raw hex, no px outside 0/1/2, no !important: every value is a token,
   except the vendor brand colours, which arrive through the tile component's
   own --brand custom property and are never written here.  */

/* ONE STEP BETWEEN SECTIONS. The page has three joins below the head: shelf
   to closing panel, closing panel to footer, and the footer's own top. Round
   two made the first two one variable; a later pass split them again, so at
   1440 the panel sat 128px under the shelf and 96px over the footer and the
   page's closing object was pushed toward the footer by 32px of asymmetry
   nothing states. One step again, spent twice: 64px on the phone and 128px at
   1440, which is what home's tail spends on both sides of its own dark panel
   (140/140 measured). Two pages, one rhythm. */
.p-shop {
  --shop-step: var(--space-16);
  /* DENSITY PASS, 2026-09-04: the masthead's wash ends and the shelf begins
     one stated step later, 56 on the phone and 96 from 64rem, so the first
     screen opens on air rather than on a control bar glued to the banner. */
  /* 2026-09-09: ZERO ON THE PHONE. The 56px "step" between the banner's
     hairline and the control bar was an empty tinted-to-white band 358px wide
     and a seventh of the first screen, and it was what made the bar read as a
     floating card rather than as the head's own toolbar. The bar closes the
     head instead: wash, chips, hairline, controls, hairline, product. The
     first card moves from y464 to y~398 of an 844px window. */
  --shop-open: 0px;
}

@media (min-width: 64rem) {
  .p-shop {
    --shop-step: var(--space-32);
    /* 96 -> 64 the same day and for the same reason as the phone's 56 -> 0:
       the band under the banner is the widest empty rectangle on the page
       (1272 x 96) and it sat between two things that belong together, the
       page title and the count of what is under it. 64 still reads as a step
       against the banner's own 40/33 padding. */
    --shop-open: var(--space-16);
  }
}

.p-shop__view { padding-block-start: var(--shop-open); }

.p-shop__main {
  padding-block-end: var(--shop-step);
  background-color: var(--color-page);
}

/* ------------------------------------------------------------------
   1. THE BANNER

   One washed surface per page, and this is it: the tonal wash and the
   grain sit on the page head, which is the only surface here large
   enough to carry either. It runs edge to edge — the one element on the
   page allowed to — and it closes on a live-figures strip pinned along
   its bottom edge, so the catalogue opens on something that is happening
   rather than on a noun.

   Every figure in the strip is read from docs/catalogue.json: 23 products,
   21 of them in_stock, 6 categories. The delivery window is the same
   sentence the announcement bar carries. Nothing here is a countdown and
   nothing is invented.
   ------------------------------------------------------------------ */

.p-shop__banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block-end: 1px solid var(--color-border-subtle);
}

.p-shop__head {
  position: relative;
  z-index: var(--layer-base);
  padding-block: var(--space-6) var(--space-5);
}

/* The one emphasised phrase on this page. Instrument Serif, italic, two
   words, at the end of the line so its descenders have nothing beneath them.
   The line-height is one notch looser than --text-3xl-line because the serif
   spans 1.30em vertically against Inter's 1.21em; .u-em-line is the display
   step's correction and is tighter than this heading needs. */
/* THE TRAIL (round two). The component is c-controls' `.crumbs`; this is only
   where it sits on the band and how it collapses on the phone.

   The rung is 44px tall for the target, so nine of those pixels are already
   air under the word — the same reason /blog/'s masthead drops its own margin
   below the tablet step. It carries space-1 here so the trail is nearer the
   title it belongs to than the header rule above it. */
.p-shop__crumbs { margin-block-end: var(--space-1); }

/* The two declarations p-post.css makes for the masthead's copy of this trail.
   That sheet is enqueued on the post and page templates only, so on the shop
   they have to be stated here or the phone's back rung draws at 1440 as well —
   which it did, as `‹ Home Home › Catalogue`. */
.p-shop__crumbs .crumbs__up { display: none; }

.p-shop__crumbs .crumbs__back {
  inline-size: var(--space-4);
  block-size: var(--space-4);
  margin-inline-end: var(--space-1);
  color: var(--color-ink-tertiary);
}

/* Ledger V19, on this page's own band: below the tablet step the trail is not
   an address but the route back, one back-chevron rung. `Home › Catalogue`
   would fit on one 390 line and `Home › Catalogue › Design and creative`
   would not; more to the point, the H1 twenty pixels under it already says
   Catalogue, and on the eight archive routes the count line says which shelf.
   So the phone gets the one thing the page does not otherwise have: a 44px
   target back to all ninety-nine. */
@media (max-width: 47.9375rem) {
  .p-shop__crumbs li:not(.crumbs__up) { display: none; }
  .p-shop__crumbs .crumbs__up { display: inline-flex; }
  .p-shop__crumbs { margin-block-end: 0; }
}

.p-shop__title {
  /* 36px at 390. The previous 24px made the page's one typographic gesture
     inaudible on the surface most shoppers arrive on: the serif italic landed
     at 25px and the headline read as a subheading. --text-4xl is 36/40 below
     48rem and the emphasis rides it at 1.06em, so the phrase is 38px there. */
  font-size: var(--text-4xl-size);
  line-height: 1.14;
  letter-spacing: var(--text-4xl-track);
  font-weight: var(--weight-semibold);
  text-wrap: balance;
  color: var(--color-ink);
}

.p-shop__lead {
  max-width: var(--measure-lead);
  margin-block-start: var(--space-3);
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
  color: var(--color-ink-secondary);
}

/* ---- THE RACK, REMOVED (wave 20) -----------------------------------
   The band carried eight real vendor marks at 80-120px, in full brand colour,
   above the headline's own wash. It was the page's only saturated surface and
   it was doing three things wrong at once: it was decorative on a page whose
   job is to be shopped, it was the fifth stacked band before the first product
   at 390 (hero copy, rack, stat line, category chips, count + filter + sort),
   and it paraded eight brand marks directly above ninety-nine products of
   which only twelve carry one — advertising the artwork that has not arrived
   instead of covering for it.

   The marks belong in the tiles, which is where this bullet put them. Nothing
   replaces it: the band is now headline, lead and the live stat strip, which
   is shorter, quieter and still the coloured field the page opens on. This is
   the note so nobody re-adds it to "fill" the band — a band is not a hole. */

/* ---- the live strip ------------------------------------------------
   Pinned to the banner's bottom edge, full bleed, one hairline above it.
   It wraps rather than scrolls: a horizontally scrolling strip at 390
   hides half its own content behind a gesture nobody is told about. */

.p-ticker {
  position: relative;
  z-index: var(--layer-base);
  border-block-start: 1px solid var(--color-border-subtle);
}

/* base.css resets ul[role="list"] to zero inline padding at specificity
   (0,1,1), which beats .u-container's own (0,1,0) and strips the page gutter
   off any list that carries the container class. The gutter is restored here
   at (0,2,0) rather than by nesting another wrapper element. */
.p-ticker .p-ticker__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-6);
  padding-inline: var(--gutter-inline);
  padding-block: var(--space-3);
  list-style: none;
}

/* No separator glyphs between the figures. A middot or a rule drawn with a
   pseudo-element cannot know it has landed at the start of a wrapped line,
   and at 390 this strip wraps: every dotted version of it opened its second
   row with a dangling dot. The bold tabular figure against its lighter label
   is separation enough. */
.p-ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-ink-secondary);
}

.p-ticker__n {
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

/* AND IT IS A DESKTOP STRIP ONLY (wave 24). At 390 the page opened with
   three stacked control bands inside 200px — this strip's "99 plans", the
   sticky pill's "99 plans" and the filter sheet's "99 plans" — so the total
   was printed three times before a single product. The strip is the one that
   can go: it is the only one of the three that cannot be acted on, and the
   two numbers it carries are both still on the page at that width (the
   sticky pill counts the grid live, the availability facet reads "In stock
   86 / Sold out 13", and the labelled divider names the sold-out shelf).
   Removing it lifts the first product by ~64px on the client's primary
   surface. From 64rem the banner has the room and the strip stays. */
@media (max-width: 63.999rem) {
  .p-shop .p-ticker { display: none; }
}

/* AND FROM 64rem TOO (round one). With the bar's count set at body size the
   strip's "99 plans" and the bar's "99 plans" sat 47px apart, one above the
   other, saying the same number twice before a product. The strip goes at
   every width; the count is the bar's, the in-stock figure is the
   availability facet's, and the banner closes on its lead. */
.p-shop .p-ticker { display: none; }

/* From 64rem the headline and its lead share the band, and the band gains a
   diagonal wash instead of the top-down one, because its content is now
   weighted to the left. */
@media (min-width: 64rem) {
  /* Headline and its one line of subhead stack on the reading edge; the
     rack takes the half of the band that used to be empty. The split-header
     the brief bans is a big headline beside a small explainer — this right
     column carries the page's only real visual, which is the exception the
     rule names. */
  /* One column since the rack was removed: a two-track grid with one child
     is an empty right half, which is the defect the rack was added to hide. */
  .p-shop__head {
    padding-block: var(--space-10) var(--space-8);
  }

  .p-shop__title {
    /* Derived from the phone, not the other way round: the same step, opened
       to 56px at 1440. Against 16px body that is 3.5:1 of scale contrast,
       where the page previously had 2.25:1 and read as a system with no
       voice. Capped rather than left on the display clamp because a fourth
       line of headline would push the first row of product beds — which is
       where every measured point of chroma on this page comes from — under
       the fold. */
    font-size: var(--text-4xl-size);
    letter-spacing: var(--text-4xl-track);
  }

  .p-shop__lead { margin-block-start: var(--space-5); }

  .p-shop__banner { box-shadow: var(--wash-corner); }
}

/* ------------------------------------------------------------------
   2. THE ARCHIVE SHELL

   At 390 this is a plain block: control bar, filter sheet, results. The
   bar is sticky rather than the layout being a grid, because a sticky
   grid item is trapped inside its own auto-sized area and never moves.

   From 64rem it becomes the two-column archive, with the filter panel
   spanning both rows of the right-hand column so the bar and the grid
   share one left edge. The panel track is 15rem so the panel can hold a
   header row, a hairline between groups and a count chip without any of
   the four facet legends wrapping — and no wider, because every rem the
   panel takes comes straight off the three product beds beside it, which is
   where this page's measured colour lives.
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   2a. THE JUMP ROW

   Ninety-nine products replaced twenty-three this wave, and at 390 that is a
   long scroll however tidily it is set. The client asked for the catalogue to
   be cleaner, not shorter, so the answer is a handle on the scroll rather
   than fewer products: eight categories and an All, one tap each, running
   sideways off the edge of the phone so the row costs one line instead of
   nine.

   It is the SAME STATE the category facet holds - pressing a chip ticks the
   box, ticking the box presses the chip - so there are two ways in and one
   truth. Buttons, not links: nothing here navigates.
   ------------------------------------------------------------------ */

/* THE ROW SITS INSIDE THE BANNER (round one). At 390 the page opened on
   three stacked bands in 260px: the wash with the headline, a row of nine
   pills, and the control bar. The category row is part of the head, not a
   third band: it closes the wash under the lead, and the bar is the first
   thing on the page ground. Two surfaces, not three. */
.p-cats {
  margin-block: var(--space-5) 0;
}

.p-cats__track {
  display: flex;
  /* 8px between two 24px-padded tabs reads as the same 20px gutter the row had
     when the tabs were bare words; the padding is what the thumb needed. */
  gap: var(--space-2);
  margin-inline: calc(-1 * var(--gutter-inline));
  /* The tabs carry 12px of their own now, so the track gives 12 back: the label
     "All" still starts on the page's text column, under the H1 and the lead. */
  padding-inline: calc(var(--gutter-inline) - var(--space-3));
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;

  /* THE ROW LOADS ON THE PAGE'S OWN TEXT COLUMN (2026-09-09, round two).
     The track bleeds to both viewport edges and pays the gutter back as
     padding, so its SNAPPORT started at x=0 while its first chip started at
     x=16. The browser resolves that on the first layout: it scrolled the
     track 16px to seat "All" against the viewport edge, so the catalogue's
     primary narrowing control loaded 16px to the LEFT of the H1 and the lead
     above it, half a chip already gone, reading as a clipped strip of words
     rather than as a row of tabs. scroll-padding is the snapport's own inset:
     with the gutter declared on both edges the resting position is
     scrollLeft 0, "All" sits at 16 on the same column as the headline, and a
     chip scrolled to the far end stops at 374 instead of against the glass. */
  scroll-padding-inline: calc(var(--gutter-inline) - var(--space-3));

  /* THE ROW IS CUT AT THE VIEWPORT EDGE AND IT STAYS THAT WAY, for now.
     At 390 the ninth chip is sliced mid-word ("Developer tools 20"), which on
     first glance reads as an overflow bug rather than as "this row scrolls".
     The fix is the standard one — a ~24px mask-image fade on the trailing
     edge, no element, no arrow, no shadow — and it is BLOCKED: the only way
     to write a fade is a linear-gradient, and tools/validate.mjs bans
     `linear-gradient` outright ("no gradients outside the logo"). The rule is
     aimed at painted gradients, not at an alpha mask, but it is a hard gate
     and it is not this lane's to loosen. Stated in the return. */
}

.p-cats__track::-webkit-scrollbar { display: none; }

/* TEXT TABS, NOT PILLS (density pass, 2026-09-04). Nine bordered pills each
   carrying a count box were a second row of boxes under the headline and a
   third under the bar; the row is now nine words on the wash, 44px tall for
   the thumb, and the selected one carries a 2px rule in the ink. No count:
   the bar under the row prints the number the tap produces. Ink rather than
   the accent for the same reason as before: this is a place, not an action. */
.p-cats__chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-block-size: var(--control-height);
  /* 12px each side, not 4 (2026-09-10, round two). A tab was only as wide as its
     own label, so "All" — the tab that undoes every filter, and the one a
     shopper reaches for most — was a 25 x 44 target on the surface the client
     judges. The shortest label is now 49px wide and the rule under a pressed
     tab reads as a tab rather than as an underlined word. */
  padding-inline: var(--space-3);
  /* "All" is two letters wide; 24px of padding still left it at 41. The floor is
     square, so the shortest label in the row is a 44 x 44 target like everything
     else on the page. */
  min-inline-size: var(--control-height);
  justify-content: center;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background-color: transparent;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-weight: var(--weight-medium);
  color: var(--color-ink-secondary);
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color var(--duration-hover) var(--ease-out),
              border-color var(--duration-hover) var(--ease-out);
}

.p-cats__chip[aria-pressed="true"] {
  border-block-end-color: var(--color-ink);
  color: var(--color-ink);
}

.p-cats__chip:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

@media (hover: hover) and (pointer: fine) {
  .p-cats__chip:hover { color: var(--color-ink); }
}

/* A THUMB GETS AN ANSWER BEFORE THE SHELF DOES (round two). Hover is behind
   a pointer query, correctly, so on the phone this control had NO state
   between "not pressed" and "the grid has re-rendered and the page has
   jumped" — a tap on a word that looks identical for the whole of that beat.
   The press half-lights the tab: the label takes the ink and the rule under
   it comes up in the subtle border, so the chip reads as "about to be the
   one" without ever claiming to be it. The transition is already declared on
   the component, so the release settles rather than snapping. */
.p-cats__chip:active {
  color: var(--color-ink);
  border-block-end-color: var(--color-border-strong);
}

.p-cats__chip[aria-pressed="true"]:active {
  border-block-end-color: var(--color-ink);
}

@media (min-width: 64rem) {
  .p-cats__track { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow-x: visible; }
}

.p-shop__layout { display: block; }

@media (min-width: 64rem) {
  /* TWO COLUMNS, TWO ROWS NO LONGER (2026-09-10, round two). The bar had a grid
     area of its own on the first row, and a grid item's containing block is its
     own area — so `position: sticky` on it could travel nowhere, which is why the
     count and the sort were reset to static here and were gone by y≈450. The bar
     is printed inside the results column now, so this is one row of two columns:
     the filters and the shelf, each sticky against the page's own scroll. */
  .p-shop__layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-areas: "filters results";
    column-gap: var(--space-8);
    align-items: start;
  }

  .p-shop__rail   { grid-area: filters; }
  .p-shop__results{ grid-area: results; }
}

.p-shop__results {
  min-width: 0;
  /* The floating contact button is fixed over this column and the pager is
     the last thing in it. The column reserves the button's height, its inset
     and the safe area, so the last row and the pager can be scrolled clear of
     it instead of ending underneath it.

     THE RESERVE IS NOT PAID TWICE. This 72px sat directly on top of the
     promise band's own 64px margin, so at 390 the catalogue ended in 136px of
     white — half a screen of nothing between the last product and the next
     thing on the page, and the largest single piece of dead space left on the
     phone. The band below is what actually clears the button (it is 700px
     tall and the button is 52px), so the reserve only has to hold when the
     grid is the last thing on screen — a filtered result of one or two cards.
     A card is 246px, so half the button's height is a floor with room in it.
     Measured at 390 before and after: 136px of gap becomes 106px. */
  padding-block-end: 0;
}

/* ------------------------------------------------------------------
   3. THE CONTROL BAR

   The mobile answer to "the filter rail is a plain stack of checkboxes".
   At 390 the bar is a floating pill that stays under the header for the
   whole length of the view: the count, the filter toggle, and the sort
   select, all three at the 44px floor, all three reachable while the
   shopper is at card nineteen. Nothing about it is hover-dependent.

   Three of these exist on the page, one per view state. Each is sticky
   inside its own view, so they hand off at the section boundary instead
   of stacking; none of them is position: fixed, so the page carries no
   floating overlay beyond the contact button the chrome already owns.

   From 64rem the pill dissolves into the old toolbar: a hairline row with
   the count on the reading edge and sort at the far end, and the filter
   toggle is gone because the panel is permanently open beside it.
   ------------------------------------------------------------------ */

/* THE STICKY LINE IS THE HEADER'S REAL HEIGHT, NOT THE TOKEN'S.
   --header-height is 4rem / 64px and the rendered sticky header is 79px at
   390 and 768 (it carries the search field) and 73px at 1440. So the bar was
   parking 15px UNDER the header on the phone: on a 16,274px scroll the pill's
   top edge, its top radius and the top of its shadow were behind the chrome
   for the whole length of the catalogue, and the one control the client asked
   to "stay reachable" was the one drawn clipped. The offset is stated here as
   a page-local step over the token rather than by editing the token, because
   the token belongs to the chrome and five pages read it. */
/* ROUND ONE: THE OFFSET IS THE HEADER'S REAL BOX, NOT THE TOKEN PLUS AIR.
   c-chrome.css builds the phone header as a floating shell: header padding
   space-2 top and bottom, shell padding space-3 top and bottom, a 1px border
   each side, one 44px row. Below 30rem the shell's padding steps to space-2,
   the wordmark takes its own line and the field and menu take a second, with
   space-3 between the rows. Measured at 390: 134px. The token said 64, so the
   bar was parked 70px BEHIND the chrome for the whole length of the shelf.
   The sum is written from the same tokens the chrome spends, so the bar sits
   flush under the header's lower edge and reads as its second row. */
/* LEDGER V5, 2026-09-09: ONE CHROME ON EVERY PAGE, AND THE BAR SITS UNDER IT.
   The density pass had scoped `position: static` onto `.p-shop .site-header`
   below 64rem — the one place in the whole site where a page reached up and
   restyled the chrome — so at 390 a shopper thirty cards into the catalogue
   had no search, no menu and no Message us without scrolling 5,000px back.
   Two costs, both paid for one problem (200px of stacked sticky chrome) that
   is now solved the honest way instead: the header is 65px on the phone since
   the round-four chrome pass (one row: wordmark, search, menu, WhatsApp), and
   the bar is a 61px band offset directly under it, so the pair is 126px, not
   200. The override is deleted. --shop-stick is the header's real box — its
   64px min row plus its own hairline — and it is declared once for every
   width, because from 64rem the bar is static and only the grid's jump target
   reads it. Nothing double-sticks: the header owns 0, the bar owns 65, and
   they meet on one edge with nothing behind either. */
.p-shop {
  --shop-stick: calc(var(--header-height-sm) + 1px);
}

/* AND FROM 64rem IT IS THE DESKTOP HEADER'S REAL BOX (2026-09-10, round two).
   c-chrome.css sets the wide header's inner row to space-16 + space-2 (72) and the
   header carries its own hairline, so the chrome measures 73 at 1440 while the token
   says 65. Eight pixels does not sound like much until the bar is parked at 65: its
   first line of text sits behind the chrome for the whole length of the shelf. Written
   from the same two tokens the header spends, so the pair cannot drift. */
@media (min-width: 64rem) {
  .p-shop {
    --shop-stick: calc(var(--header-height) + 1px);
  }
}

.p-bar {
  position: sticky;
  inset-block-start: var(--shop-stick);
  z-index: var(--layer-float);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-block: 0 var(--space-4);
  /* A BAND, NOT A CARD (2026-09-09, the catalogue round). It was a white
     rounded pill inset in the page gutter, floating 56px below the banner —
     which made the first object on a catalogue of ninety-nine white cards a
     white card that is not a product, and, once stuck at the viewport's top
     edge, drew its own top radius and the top of its shadow CUT OFF by that
     edge. Captured at 390 with Streaming applied and the page at 1,200px: a
     sliced pill hanging off the top of the screen.
     It is now the head's second row: full bleed to both viewport edges, no
     radius, no ring, one hairline along its foot, parked flush under the
     sticky header. Nothing about it is a card, so nothing about it competes
     with the cards, and there is no corner left for the viewport to cut. */
  margin-inline: calc(-1 * var(--gutter-inline));
  padding: var(--space-2) var(--gutter-inline);
  border-block-end: 1px solid var(--color-border-subtle);
  /* Opaque white in both states, no fade between them: a ground that changes
     under a moving shelf reads as translucent, and a price passing beneath it
     must never show. */
  background-color: var(--color-surface);
  transition: box-shadow var(--duration-hover) var(--ease-out),
              border-color var(--duration-hover) var(--ease-out);
}

/* Stuck, it takes exactly what the header above it takes when the page has
   scrolled under it — the firmer hairline and the small shadow — so the two
   bands read as one two-row chrome rather than as a page element wearing a
   card's elevation. Paint only; the box never changes height mid-scroll. */
.p-bar.is-stuck {
  border-block-end-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* THE COUNT NEVER WRAPS THE BAR (wave 24). Ticking "Streaming" widened it
   from 77px to 205px and pushed the sort field onto a second sticky row: the
   bar grew 60px → 112px and the grid jumped down at the moment of the tap,
   permanently costing a filtered shopper 192px of an 844px viewport. So the
   readout is nowrap and the "in Streaming" tail is dropped below 64rem,
   where the pressed chip and the active-filter chip both name the category
   within 100px of the bar. From 64rem the deck's full string is drawn. */
.p-count {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  padding-inline-start: var(--space-1);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.p-bar__filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex: none;
  min-block-size: var(--control-height);
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-sm-size);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background-color var(--duration-hover) var(--ease-out),
              border-color var(--duration-hover) var(--ease-out);
}

.p-bar__filter:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.p-bar__filter .i {
  inline-size: var(--space-4);
  block-size: var(--space-4);
  color: var(--color-ink-secondary);
}

/* THE CARET WENT IN WAVE 24, AND IT WAS NEVER TRUE. This button only exists
   below 64rem, and below 64rem the panel it opens is a full-screen modal
   sheet — a chevron that flips from down to up says "this expands in place",
   which is the one thing it does not do. It also cost 20px of a bar that has
   342px to give and wrapped onto a second sticky row the moment the filter
   badge appeared beside it. A lie and a wrap for the same 20px. */

/* The badge is the only accent on the bar and it is there because a shopper
   who has scrolled past the sheet needs to know the grid is filtered without
   reopening it. It carries a number, never a dot. */
.p-bar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: var(--space-5);
  block-size: var(--space-5);
  padding-inline: var(--space-1);
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  color: var(--color-ink-on-accent);
  font-size: var(--text-sm-size);
  line-height: var(--space-5);
  font-variant-numeric: tabular-nums;
}

/* ---- WHERE YOU ARE IN NINETY-NINE PRODUCTS --------------------------
   The 2px scroll rail that used to sit in the pill's bottom padding was cut
   in wave 24. At 390 it drew a mid-grey line filling ~70% of the pill's
   width with a lighter track running past it, which is exactly what a
   horizontal scrollbar under an overflowing toolbar looks like — one reader
   went hunting for an overflow bug because of it. It was decoration for a
   fact the words already carry.

   The position readout takes the count's slot rather than sitting beside it.
   At 390 the bar is 358px wide and "99 plans" + Filter + Sort already fill
   it; a fourth object wraps the bar onto a second row, which is a second
   sticky row, which is the busier page the client asked us not to build.
   "37 of 99" and "99 plans" set to within a few pixels of each other, so the
   swap moves nothing. */
.p-count.is-pos [data-count-text] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Below 48rem only. At 768 the bar is 700px wide and the deck's full string
   fits with room to spare; it is 390, where the readout has 73px, that
   cannot carry it. */
@media (max-width: 47.999rem) {
  .p-count__in { display: none; }
}

.p-count__pos {
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

/* The chip is a jump (shop.html), so the grid must land under the bar rather
   than beneath it: the header, the pill and the gap between them. */
#catalogue-grid {
  scroll-margin-block-start: calc(var(--shop-stick) + var(--control-height) + var(--space-6));
}

/* The sort field is the controls-family field laid on one line. Below 48rem
   the spelled-out label is clipped rather than deleted — the select still
   shows the current sort as a sentence, never as a bare chevron — because at
   390 the label plus the select plus the filter button do not fit one row and
   the label is the part the native control already implies. */
.p-sort {
  flex: none;
  grid-auto-flow: column;
  align-items: center;
  gap: var(--space-3);
  max-width: none;
}

.p-sort .field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A native select is as wide as its widest OPTION, so a min-inline-size does
   not size it — "Price: low to high" was pushing the control to 189px and
   wrapping the bar onto a second row at 390. Below 48rem the control is given
   an explicit width that holds the selected value; the options themselves
   open in the platform's own picker at full length. */
/* ONE EDGE FAMILY IN THE BAR (2026-09-09). The Filter control is a pill and
   the sort select was the controls sheet's 8px box, so the two controls
   standing 8px apart in the same 44px row wore two different corner radii —
   the kind of mismatch nobody names and everybody reads as unfinished. The
   select takes the pill here only; the field component keeps its own corner
   everywhere else on the site. The outline follows border-radius, so the
   focus ring comes with it and needs no rule of its own. */
.p-sort .select select {
  border-radius: var(--radius-pill);
  min-inline-size: 0;
  inline-size: 9rem;
  /* 9rem is the widest the control can be before the bar wraps onto a second
     sticky row (measured: 10rem wraps it at 390), and "Price: low to high"
     wants 189px. So the longest values are cut at 390 whatever we do - the
     choice is only between a clean cut and a dirty one. Ellipsis, plus the
     left padding trimmed to buy back four characters, so it reads
     "Price: low to..." instead of a half-drawn glyph sliding under the
     caret. The full sentence is always there in the platform's own picker,
     and from 48rem the control is wide enough to say all of it. */
  padding-inline-start: var(--space-3);
  text-overflow: ellipsis;
}

@media (min-width: 48rem) {
  .p-sort .field__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  /* Fixed, not auto, from 48rem too. `auto` means "as wide as the widest
     OPTION", so the bar's geometry was hostage to the longest string in the
     menu: adding the sixth sort the client asked for would have widened the
     control by a third and pushed the count and the filter button around,
     for a line of text that is only ever seen inside the platform's own
     picker. The closed control has to hold the SELECTED value, which is at
     most "Price: low to high". */
  .p-sort .select select {
    min-inline-size: 0;
    inline-size: 12rem;
  }
}

/* ONE CATEGORY CONTROL PER WIDTH (wave 23).
   From 64rem the filter rail stops being a modal sheet and becomes a pinned
   sidebar, and from that width the page showed its eight categories TWICE at
   once: this chip row, and the rail's CATEGORY checkbox list directly under it
   — same eight labels, same eight counts, one job, two controls, sixteen
   numbers on screen before a product was chosen. That is the duplication
   reading the client's framing rules out, and it is the only real one on the
   page.

   It is the CHIPS that give way and not the rail, which is the opposite of the
   obvious cut. A chip is one tap against the rail's tick-and-close, so the
   chips look like the better control — but they are static furniture at the
   top of a 10,500px document, while the rail is pinned and stays in reach at
   card sixty. Cutting the rail's category would price a category change at a
   5,600px scroll back to the top. Below 64rem the chip row is the whole point
   — one tap, no sheet, on the surface that is judged first — and the rail's
   sheet is modal, so the two are never on screen together there and there is
   nothing to remove.

   display:none, so the nine buttons leave the tab order at the width where
   they are not shown; the script still keeps their pressed state in sync, so
   a resize never reveals a stale control. */
@media (min-width: 64rem) {
  .p-cats { display: none; }

  /* THE TOOLBAR TRAVELS AT 1440 TOO (2026-09-10, round two). It was pinned on
     the phone and explicitly reset to `position: static` here, so on a 6,036px
     page the count and the sort left the viewport at y≈450 and a shopper at Load
     more — 4,350px lower — could neither see how many plans he was looking at
     nor re-sort them without scrolling the whole shelf back. It now parks under
     the header exactly as it does on the phone, one behaviour at both ends of
     the range, and the position readout the script already computes ("37 of 99")
     finally has somewhere to be read.

     A 12px bleed each side, paid back as padding: the mosaic's cards carry an
     ambient shadow that reaches a couple of pixels past the column's edge, and
     without it a sliver of that shadow slid out from behind the band. */
  .p-bar {
    position: sticky;
    inset-block-start: var(--shop-stick);
    margin-block: 0 var(--space-6);
    margin-inline: calc(-1 * var(--space-3));
    padding: var(--space-3) var(--space-3) var(--space-4);
    border: 0;
    border-radius: 0;
    background-color: var(--color-page);
    box-shadow: none;
    justify-content: space-between;
    gap: var(--space-4) var(--space-6);
    /* Transparent rather than absent, so the stuck state is a colour change and
       not a box that grows a pixel taller under a moving shelf. */
    border-block-end: 1px solid transparent;
  }

  /* NO RULE AT REST, A RULE WHEN IT IS OVER THE SHELF. The hairline used to be
     drawn always, and it started 272px in from the reading edge — half a rule
     under a header that spans two columns, which is what the rail's own head row
     was added to complete. Neither is needed: at rest the cards are elevated
     objects on the page ground and the air is separation enough, and the edge
     is only ever load-bearing once a price is passing underneath. So the band
     takes the same two paint changes the header takes when it is stuck, and the
     rail can drop its head and start on the shelf's own first line. */
  /* The hairline and nothing else. The phone's band bleeds to both edges of the
     glass, so a shadow under it reads as depth; this one is 1,024px wide inside
     a 1,440px window, and the shadow drew its two short ends as well — a slab
     with corners floating over the shelf, which is the card-that-is-not-a-
     product the band was built to stop being. One edge is all a moving price
     needs to know it is passing underneath. */
  .p-bar.is-stuck {
    border-block-end-color: var(--color-border);
    box-shadow: none;
  }

  .p-bar__filter { display: none; }

  /* Body size, semibold. It was --text-lg, the card title's step, so the
     shelf opened on a second 20px line that was not a product. */
  .p-count {
    flex: 0 1 auto;
    padding-inline-start: 0;
    font-size: var(--text-base-size);
    line-height: var(--text-base-line);
    letter-spacing: var(--text-base-track);
  }
}

@media (hover: hover) and (pointer: fine) {
  .p-bar__filter:hover {
    border-color: var(--color-ink-secondary);
    background-color: var(--color-surface-sunken);
  }
}

/* ------------------------------------------------------------------
   4. THE FILTER PANEL

   One object at both ends of the range, dressed twice. On a phone it is a
   sheet: a raised white surface that opens directly under the bar, capped
   at 26rem with its own scroll so the results are never more than a
   thumb-flick away, and closed by a full-width primary action that names
   the number it is about to show. From 64rem it is the archive's left
   column: the same raised surface, no cap, no scroll, no action row,
   standing beside the grid.

   Script closes it on load below 64rem and wires the toggle. It ships
   open, so with scripting off the phone gets a complete rail rather than
   a control that cannot be operated.
   ------------------------------------------------------------------ */

/* The rail is the LAYER; the sheet is the SURFACE. Splitting the two is what
   lets the same markup be an inline panel with no script, a fixed bottom sheet
   over a scrim on a phone, and a standing column at 64rem, without any of the
   three borrowing the other's box. */
.p-shop__rail { margin-block-end: var(--space-6); }

.p-shop__rail[hidden] { display: none; }

/* No bottom padding on the scroller: the sheet's action row is sticky at its
   foot and a sticky element cannot travel past its containing block, so
   padding here would strand it above the surface's edge with a half-row of
   options showing underneath. The action row carries it instead. */
.p-sheet {
  padding: var(--space-4) var(--space-5) 0;
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: var(--edge-light), var(--elevation-raised);
}

/* Off by default. It exists only for the scripted sheet, which is the only
   state on this page where the filters sit over the results instead of beside
   or above them. */
.p-sheet__scrim { display: none; }

.p-filters {
  display: grid;
  gap: var(--space-5);
}

.p-filters__title {
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
  letter-spacing: var(--text-base-track);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}

/* A facet group. It is a role="group" rather than a fieldset because the
   group needs a header ROW — one heading and one optional clear control on
   the same line — and a legend cannot be a flex item without fighting the
   browser's own legend placement. Groups are separated by a hairline rather
   than by air alone: at 26rem with four groups, air is not enough signal. */
.p-facet { min-inline-size: 0; }

/* Groups are separated by the step above, not by a rule: four hairlines and
   twenty-one count chips made the rail a column of boxes beside the shelf. */

.p-facet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-block-size: var(--control-height);
}

/* 14PX, NOT THE 12PX LABEL STEP. design-brief.md permits a small uppercase
   label at 10-12px and the client's bullet sets a 14px floor for this
   surface; both cannot hold, so the rule is stated rather than left to
   whichever file is read first: INSIDE A CONTROL the bullet's floor wins —
   these four headings are how a shopper finds Category, Price, Term and
   Availability in the filter sheet on the phone. A decorative section label outside a
   control keeps the 12px step, because it labels a passage of copy rather
   than a control. Tracking and weight are the label
   step's, so the two still read as one family. */
.p-facet__legend {
  font-size: var(--text-sm-size);
  line-height: var(--text-label-line);
  letter-spacing: var(--text-label-track);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  color: var(--color-ink-tertiary);
}

/* THE ONE FOLDED GROUP (TERM). A <details>, so it is one tap either way with
   no script and it keeps working with scripting off. The row is a real 44px
   target across its whole width, and the caret is the only decoration on it:
   it is the affordance, so unlike the filter button's caret it is telling the
   truth. The count beside the label is the number of ticks hiding inside a
   closed group — without it, closing the group hides the state as well as the
   controls. */
.p-facet--fold {
  padding-block: var(--space-1);
}

.p-facet__summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--control-height);
  cursor: pointer;
  list-style: none;
}

.p-facet__summary::-webkit-details-marker { display: none; }

.p-facet__summary:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

.p-facet__caret {
  inline-size: var(--space-4);
  block-size: var(--space-4);
  margin-inline-start: auto;
  color: var(--color-ink-tertiary);
  transition: rotate var(--duration-hover) var(--ease-out);
}

.p-facet--fold[open] .p-facet__caret { rotate: 180deg; }

.p-facet__foldn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: var(--space-5);
  block-size: var(--space-5);
  padding-inline: var(--space-1);
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  color: var(--color-ink-on-accent);
  /* 14px, not the 12px badge step: it sits inside the filter panel, and the
     client's bullet sets a 14px floor for every string in there. */
  font-size: var(--text-sm-size);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.p-facet__foldn[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .p-facet__caret { transition: none; }
}

.p-facet__clear {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  margin-inline-end: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  border: 0;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--color-accent);
  font: inherit;
  font-size: var(--text-sm-size);
  cursor: pointer;
}

.p-facet__clear:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.p-facet__list {
  margin-block-start: var(--space-1);
  padding-inline-start: 0;
  list-style: none;
}

/* ---- the option row ------------------------------------------------
   The whole row is the target, at the 44 floor, and it is the label that
   carries it, so there is no 20px box hidden inside a wide dead area. A
   selected row is a filled row, not just a ticked box: on a phone the tick
   is 20px of signal in a 44px row and the eye has to hunt for it. */

.p-opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--control-height);
  margin-inline: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--duration-hover) var(--ease-out);
}

.p-opt:has(.p-opt__input:checked) {
  background-color: var(--color-accent-soft);
  box-shadow: inset 0 0 0 1px var(--color-accent-border);
}

.p-opt__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  /* It is invisible; it paints nothing either, so a probe counting painted
     boxes does not count twenty-one of these. */
  background-color: transparent;
}

.p-opt__box {
  display: grid;
  place-items: center;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  background-color: var(--color-surface);
  transition: background-color var(--duration-hover) var(--ease-out),
              border-color var(--duration-hover) var(--ease-out);
}

.p-opt__box .i {
  inline-size: var(--space-4);
  block-size: var(--space-4);
  opacity: 0;
}

/* The checked box takes the accent as a FILL and a step-darker accent as its
   edge. Two tokens, one colour: --color-accent-hover is the same hue at -12%
   lightness, which is the edge a filled control wants and which keeps this
   file inside the six-appearance accent budget the brief sets. */
.p-opt__input:checked ~ .p-opt__box {
  border-color: var(--color-accent-hover);
  background-color: var(--color-accent);
  color: var(--color-ink-on-accent);
}

.p-opt__input:checked ~ .p-opt__box .i { opacity: 1; }

.p-opt__input:focus-visible ~ .p-opt__box {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.p-opt__label {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-ink);
}

.p-opt__input:checked ~ .p-opt__label { font-weight: var(--weight-medium); }

/* The count is plain tabular type on the row's trailing edge. It was a chip on
   a sunken bed, which put twenty-one boxes down the rail's edge. */
.p-opt__count {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-tertiary);
}

.p-opt:has(.p-opt__input:checked) .p-opt__count { color: var(--color-ink); }

/* A VALUE THAT WOULD RETURN NOTHING, INSIDE WHAT IS ALREADY SET.
   The page script counts every facet value against the other groups and
   disables the ones that are empty (see "the twenty-one numbers" in
   shop.html). The row stays where it was and keeps its number: it is
   telling the shopper that Streaming has no plan under $25, which is
   information, where removing the row would just make the panel twitch.
   Quiet, not hidden - one step of ink, no strike-through, no red. */
.p-opt.is-empty {
  cursor: default;
}

.p-opt.is-empty .p-opt__label,
.p-opt.is-empty .p-opt__count {
  color: var(--color-ink-secondary);
  opacity: 0.55;
}

.p-opt.is-empty .p-opt__box {
  border-color: var(--color-border);
  background-color: var(--color-surface-sunken);
}

.p-cats__chip.is-empty {
  opacity: 0.5;
}

@media (hover: hover) and (pointer: fine) {
  .p-opt:not(.is-empty):hover { background-color: var(--color-surface-sunken); }
  .p-opt:not(.is-empty):hover .p-opt__box { border-color: var(--color-ink-secondary); }
  .p-opt:hover .p-opt__input:checked ~ .p-opt__box { border-color: var(--color-accent-hover); }
  .p-facet__clear:hover { text-decoration: underline; text-underline-offset: 0.16em; }
}

/* ---- the sheet's action --------------------------------------------
   Full width, primary, in the thumb zone at the foot of the sheet, and it
   names the number it is about to show. It exists only where the sheet
   exists. */
.p-filters__foot {
  position: sticky;
  inset-block-end: 0;
  padding-block: var(--space-4) var(--space-5);
  border-block-start: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface);
}

.p-filters__apply { width: 100%; }

/* ---- the two-column facet list -------------------------------------
   Opened at 390 as one column the panel ran seventeen 44px rows. The values
   are short — the longest is "Marketing and SEO" — and the row is already a
   three-track grid that handles a narrow column, so they pair up. The row
   keeps its 44px block size and its whole-row target; only the column count
   changes. Held to below 64rem, which is exactly the range where the panel
   is a sheet rather than a column. */
@media (max-width: 63.999rem) {
  /* The sheet scrolls inside itself, so its length is no longer the thing to
     optimise — legibility is. Paired into two columns at 390 the widest four
     values ("Design and creative", "Marketing and SEO") each broke over two
     lines inside an 83px label track. One column at the phone, two from
     40rem where a 170px label track holds every value on one line. */
  @media (min-width: 40rem) {
    .p-facet__list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: var(--space-4);
    }
  }

  /* Without script the rail is an inline panel two rows under a bar that
     already says "Filter", so the heading is clipped there rather than set
     twice in 40px — clipped, not display:none, so the h2 stays in the heading
     outline. Inside the sheet the header is load-bearing (it carries the live
     count and the close control) and is shown. */
  html:not(.js-sheet) .p-filters__head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* ---- THE BOTTOM SHEET ------------------------------------------
     The filter rail below 64rem was an inline 26rem box clipped inside the
     document: it scrolled its own seventeen values inside a window barely
     four rows tall, and it pushed the first product down the page whenever it
     was open. A phone-first catalogue wants the opposite — the results stay
     where they are and the filters come over them.

     So it is now a real sheet. Fixed to the viewport, a scrim behind it, a
     rounded surface rising from the bottom edge to at most 85svh (svh, not
     vh, so a mobile browser's collapsing address bar cannot crop the action
     row off the end), its own scroll inside, a header carrying the live match
     count and a close, and a foot carrying Clear all beside the apply button
     that names the number it is about to show. Both actions sit in the thumb
     zone and clear the safe area.

     The whole fixed layer is gated on .js-sheet, added by the page script:
     an overlay that can only be dismissed by script must not exist where
     script did not run. */
  .js-sheet .p-shop__rail {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    display: grid;
    grid-template-rows: minmax(var(--space-16), 1fr) auto;
    margin-block-end: 0;
  }

  /* display: grid above outranks the base [hidden] rule on equal specificity,
     so the closed state is restated inside the sheet's own block. */
  .js-sheet .p-shop__rail[hidden] { display: none; }

  .js-sheet .p-sheet__scrim {
    display: block;
    grid-row: 1 / -1;
    grid-column: 1;
    border: 0;
    padding: 0;
    background-color: var(--color-scrim);
    animation: sheet-fade var(--duration-overlay) var(--ease-out) both;
  }

  .js-sheet .p-sheet {
    grid-row: 2;
    grid-column: 1;
    max-block-size: 85svh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-block-start: 0;
    border-radius: 0;
    border-start-start-radius: var(--radius-2xl);
    border-start-end-radius: var(--radius-2xl);
    box-shadow: var(--edge-light), var(--elevation-overlay);
    animation: sheet-in var(--duration-overlay) var(--ease-drawer) both;
  }

  .js-sheet .p-filters__head {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--layer-float);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    margin-inline: calc(-1 * var(--space-5));
    padding: var(--space-4) var(--space-5) var(--space-3);
    background-color: var(--color-surface);
  }

  .js-sheet .p-filters__foot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    margin-inline: calc(-1 * var(--space-5));
    padding: var(--space-4) var(--space-5) calc(var(--space-5) + var(--safe-bottom));
  }
}

@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { translate: 0 100%; } to { translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .js-sheet .p-sheet { animation-name: sheet-fade; }
}

/* The live count. It is the sheet's answer to the only question a filter panel
   is ever asked — how many are left — and it is a status region so a screen
   reader hears the number change without the focus moving. */
.p-filters__count {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-secondary);
}

.p-sheet__close {
  display: inline-grid;
  place-items: center;
  inline-size: var(--control-height);
  block-size: var(--control-height);
  margin-inline-end: calc(-1 * var(--space-3));
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-ink-secondary);
  cursor: pointer;
}

.p-sheet__close .i {
  inline-size: var(--space-5);
  block-size: var(--space-5);
}

.p-sheet__close:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

@media (hover: hover) and (pointer: fine) {
  .p-sheet__close:hover {
    background-color: var(--color-surface-sunken);
    color: var(--color-ink);
  }
}

@media (min-width: 64rem) {
  /* PINNED, AND SHORT ENOUGH TO BE PINNED (2026-09-10, round two).
     It was made static in the density pass for a real reason: 886px of controls
     under a 796px cap scrolled inside itself, so the Availability rows were
     sliced at the viewport's foot at every scroll position and every blind
     critic read the panel as clipped. But static cost more than it saved — on a
     6,036px page the whole rail was gone by y≈450, so changing category at card
     sixty was a 4,000px scroll back.
     The fix is the one that was skipped last time: make the panel FIT, then pin
     it. Three things were paying for the overflow and none of them was a
     control — the head row that restated "Filter" over a panel that is
     permanently open and self-evident (60 + 24), the 20px step between groups
     (60), and 4px above each list (16). That is 160px removed from a panel that
     was 89px too tall, so at 1440x900 the four groups stand ~740px inside an
     803px cap and no scrollbar is drawn. Every row keeps its 44px target; the
     cap is a maximum for a short window, not a design, and scroll chaining is
     left on so a wheel over the filters never stops the catalogue dead. */
  .p-shop__rail {
    margin-block-end: 0;
    position: sticky;
    inset-block-start: var(--shop-stick);
    align-self: start;
    max-block-size: calc(100svh - var(--shop-stick) - var(--space-6));
    overflow-y: auto;
    /* CATEGORY and "99 plans" set on one line across the two columns: the bar's
       own top padding, paid again on this side, is what puts the two labels on
       the same baseline without a rule to prove it. */
    padding-block-start: var(--space-6);
    /* The option row's focus ring sits 2px outside the row and an overflow
       container clips against its own edge, so the rail gives that back as
       padding and takes it off the outside: nothing moves, nothing is cut. */
    margin-inline: calc(-1 * var(--space-1));
    padding-inline: var(--space-1);
  }

  /* The head restated the word Filter above four legends that name themselves,
     on a panel that is always open at this width. Clipped, not removed: the h2
     is the rail's landmark heading and stays in the outline. */
  .p-filters__head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .p-filters { gap: var(--space-4); }

  .p-facet__list { margin-block-start: 0; }

  /* THE RAIL IS CHROME, NOT CONTENT (2026-09-09). At 1440 the standing panel
     was a 240 x 886 white card carrying a violet wash, a light edge and a
     raised shadow — the page's SECOND washed surface, next to the banner the
     sheet's own header calls "one washed surface per page", and a second card
     family beside ninety-nine product cards. So the shopper's eye had to sort
     two kinds of white box before it found a plan.
     The panel stands on the page ground now: no fill, no shadow, no corner,
     no padding of its own. Everything it holds is unchanged — the same
     legends, the same 44px option rows, the same counts, the same hover and
     checked states — and the only white left on this page is a product. The
     column-gap (32px) is the whole separation it needs, and the colour the
     card was spending goes back to the tiles, which is where this page's
     chroma budget is meant to live. Below 64rem the sheet keeps every bit of
     its surface: there it is a modal over the results and must read as one. */
  .p-shop__rail .p-sheet {
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
  }

  /* AND IT IS SHORTER THAN THE SCREEN, BECAUSE A STICKY PANEL TALLER THAN
       THE VIEWPORT HAS A TAIL NOBODY CAN REACH.
       Ninety-nine products bought this rail four facet groups and twenty
       values: measured at 1440x900 it stands 1,198px tall and pins its top at
       80, so its last 378px — the whole Availability group, which is the one
       facet a shopper uses to hide the thirteen sold-out plans — sat below the
       fold at every scroll position on the page. Sticky is what made it
       unreachable: before it pins, the panel scrolls with the grid and the
       bottom does come up; from the moment it pins, the bottom is frozen off
       screen. It was reachable at twenty-three products and stopped being
       reachable at ninety-nine, which is exactly the class of thing this
       length was meant to expose.
       So the panel is capped at the screen minus its own offset and scrolls
       inside itself. On a screen tall enough to hold it nothing changes: the
       cap is a maximum, the panel is its natural height, and no scrollbar is
       drawn.
       Scroll chaining is left ON, deliberately, where the drawer form of this
       same panel contains it. A drawer is a mode and must trap the gesture; a
       standing sidebar is not, and `overscroll-behavior: contain` here would
       mean a wheel over the filters ran the facet list to its end and then
       stopped the catalogue dead — the page appearing to jam under the cursor,
       which is a worse defect than the one being fixed.
       The violet wash, the light edge and the raised shadow that used to be
       declared on this panel went with the card above. */

  /* The sheet's own chrome is the sheet's. A standing column is not dismissed,
     is not applied, and does not need to restate a count the bar above the
     grid already carries. */
  .p-filters__count,
  .p-sheet__close { display: none; }

  /* THE HEADER LINE WENT WITH THE HEAD (2026-09-10, round two). The rail's head
     row existed to complete the bar's hairline across both columns, and the bar
     no longer draws one at rest — it takes the edge only when it is pinned over
     the shelf, where an edge is what a shopper needs. So both go: the archive
     opens on CATEGORY and "99 plans" standing on the same line with nothing
     ruled under either, and the rail is 84px shorter, which is most of what it
     needed to be pinnable at all. */

  /* The panel is never hidden on a layout that has no button to reopen it.
     Script restores this on a breakpoint change; this is the belt to that
     brace, for the load that lands wide with a stale hidden attribute. */
  .p-shop__rail[hidden] { display: block; }

  .p-filters__foot { display: none; }
}

/* ---- NO SCRIPT, NO DEAD CONTROLS (wave 26) -------------------------
   Measured with script execution disabled at 390: the rail rendered inline
   and fully open above the results, so the first product card started at
   1,795px instead of 533. That is ~1,260px of controls to scroll past, and
   every one of them was inert — #filters has no action and no submit, the
   apply button is type="button", "Clear all filters" is script-driven, the
   sort <select> submits nothing and the category chips are buttons with
   listeners on them. A wall of switches that does nothing is worse than no
   switches: it reads as a broken page and it buries the thing the visitor
   came for.

   So without script the page is what it can honestly be — the complete
   ninety-nine-product catalogue, in the client's own rank order, sold-out
   block last, with the count above it. Every control that needs script to
   mean anything is not drawn. Nothing is hidden from a shopper who HAS
   script: .js is set by three lines in the document head, before first paint,
   so there is no frame in which a script-capable browser sees the stripped
   page and no shift when the controls arrive. The header search keeps its
   real form action either way.

   This is the honest half of the fix. The other half is a server: the day
   #filters posts to a URL, these become progressive-enhancement controls and
   this rule comes out. That is stated in the return, not papered over. */
html:not(.js) :is(.p-shop__rail, .p-bar__filter, .p-sort, .p-cats, .c-more) {
  display: none;
}

/* ------------------------------------------------------------------
   5. THE MOSAIC — THE FIRST REVIEW'S CATALOGUE, WITH NINETY-NINE PRODUCTS
      IN IT

   THE CLIENT'S DECISION, VERBATIM: "for both desktop and mobile, I strongly
   prefer the first-review catalogue version ... more aesthetic, less linear,
   more visually interesting, easier to browse, more premium. I especially
   prefer the layout where some product tiles are slightly bigger/smaller
   instead of everything being perfectly uniform and inline."

   The second review answered his earlier "slightly cluttered" note by making
   every cell the same size — one plate, ninety-nine times, four columns wide.
   That removed the clutter and the interest together, and he read it back as
   "very linear and inline". So the uniform grid goes and R1's arrangement
   returns, generalised from twenty-three hand-written cards to ninety-nine
   generated ones.

   THE TENSION THIS SECTION MANAGES, stated so the next wave does not undo it:
   his worst word for this page was "cluttered" and his best word for R1 was
   "premium". Those pull in opposite directions on density. The resolution is
   that the mosaic buys interest with SCALE, not with objects: there is one
   card anatomy, one tile geometry, one radius and one ink on all ninety-nine,
   and the only thing that varies is how many grid units a card takes. Nothing
   new is drawn.

   ---- THE ARRANGEMENT ------------------------------------------------

   tools/render-catalogue.py assigns the cell by position modulo five inside
   the in-stock list, and shop.html's script re-assigns it the same way after
   every sort and every filter. The arithmetic closes at both column counts:

       2 columns (390 to 64rem)   2 + 1 + 1 + 1 + 1 = 6 units = 3 exact rows
       3 columns (from 64rem)     2 + 1 + 1 + 1 + 1 = 6 units = 2 exact rows

   Measured against R1's own rhythm: R1 put a landscape cell at card 1 and card
   6 at 390 — one per five — and, at 1440, a landscape cell beside a
   full-height card followed by a plain row of three. The modulo reproduces
   both with no hand-placed class anywhere.

   THE FOURTH COLUMN IS GONE, and that is the one measurable cost. The second
   review stepped to four columns at 78rem to keep a 99-card page short.
   2+1+1+1+1 does not tile a four-column row — it leaves a two-unit hole every
   five cards, which is the grid rule's own ban arriving through the front
   door — and the page-length argument went with the pagination: twenty-four
   cards are on screen at first paint now, not ninety-nine. Three columns at
   1440 buys a 312px card and a 312x234 bed, which is R1's own measurement and
   1.4x the area of the four-column cell it replaces.

   ---- WHAT WAS KEPT FROM THE SECOND REVIEW ---------------------------

   All ninety-nine real products; the sold-out block under its own labelled
   rule with drained tiles; the Featured sort; the category chip row and the
   filter sheet at 390; the typographic wordmark for the eighty-seven products
   whose mark we do not hold; the search; the honest counts in the banner; and
   the real, focusable, announced Buy action — R1's card carried an
   aria-hidden <span> that looked like a button and was wired to nothing, and
   that defect is not coming back.

   ---- WHAT THE PAGE NO LONGER OWNS -----------------------------------

   Six hundred lines of tile styling. The tile is one component with three fill
   states now (c-product.css §1, tools/tilemark.py); this page sets the four
   per-surface custom properties the contract lists for a catalogue card and
   nothing else. Every per-vendor optical correction, every bed mix, every
   wordmark step and every sold-out drain that used to be restated here is the
   component's, so the catalogue tile and the homepage tile can no longer
   disagree.
   ------------------------------------------------------------------ */

/* ---- THE SHELF IS THE COMPONENT'S, NOT THIS PAGE'S ------------------
   (2026-09-09, catalogue round one.) Everything that used to stand between
   here and the sold-out rule below — the grid, the card, its bed, its tile
   steps, its type stack, its action row, the landscape and full-height cells,
   the press, the lift, the focus ring and the phone's insets — was this
   page's own copy of c-product.css § 4a, kept in step by hand. The grid wears
   `class="c-shelf"` now (theme/inc/catalogue.php, and the search results in
   theme/inc/pages.php, which render the same card), so the component owns the
   shelf on every surface and the catalogue can no longer drift from the home
   deck. The rules that were genuinely this page's and had no counterpart
   there moved INTO the component beside their siblings: the sold-out card's
   flatter shadow, the phone tile's padding step and the phone's type floor
   for the card's small print. What is left in this sheet below is what only
   the catalogue has — the sold-out divider, the Load more box, the active
   filter row and the script-only hiding that ledger 04a needs.
   ------------------------------------------------------------------ */

/* ---- A SHORT RESULT LIST CLOSES ITS ROWS --------------------------
   (2026-09-09, search round two, ledger V14.) The search results are the
   shelf's card and the shelf's controls, but a query returns four cards, not
   ninety-nine, and at three columns four cards end on an empty cell beside
   the last one. The fit class (theme/inc/pages.php) picks the column count
   that closes the rows for the two counts where it matters — one match, and
   two or four — and the cards keep the width they have on the catalogue: the
   grid is capped to the width those columns would have at three, so a card in
   a four-match result and a card on the shelf are the same object at the same
   size. Everything else keeps the shelf's own columns, where a ragged last
   row is simply what the end of a long list looks like.

   2026-09-10, search round three. The fit class was printed on the SECTION
   (`p-shop__view--pair`) and every rule below was written for the GRID, so
   for a year of rounds neither modifier matched anything: /?s=canva drew its
   four matches as three 403px columns with the fourth alone in row two beside
   two empty cells. The class is on the `<ul class="c-shelf">` now, where the
   sheet always expected it, and the fit governs the whole result COLUMN, not
   the grid alone: the count bar, the list and the row that closes it take one
   measure, so a four-match result reads as one deliberate column under the
   query instead of a short grid stranded beside a 424px hole with a full-width
   rule over it.
   ------------------------------------------------------------------ */
.p-shop__results .c-shelf--solo { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 64rem) {
  /* Two of the shelf's three columns and the gutter between them: the measure
     the bar, the list and the closing row share. */
  .p-shop__view:has(.c-shelf--solo) > .p-bar,
  .p-shop__view:has(.c-shelf--solo) .p-shop__results,
  .p-shop__view:has(.c-shelf--pair) > .p-bar,
  .p-shop__view:has(.c-shelf--pair) .p-shop__results {
    max-inline-size: calc((200% - var(--grid-gap)) / 3);
  }

  /* One card of that pair, so a lone match is a card and not a banner. */
  .p-shop__results .c-shelf--solo {
    max-inline-size: calc((100% - var(--grid-gap)) / 2);
  }

  .p-shop__results .c-shelf--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- A RESULT LIST DOES NOT MAKE AN ENTRANCE ----------------------
   The shelf's cards enter on the scroll reveal, which is right for a
   ninety-nine-card catalogue read by scrolling and wrong for the four cards
   that ARE the answer to a typed query: the second row of a 2x2 sits below
   the fold at 1440, so the list a shopper asked for arrived at opacity 0 and
   waited for a scroll — and in any full-page capture it simply is not there.
   The cards keep every other behaviour of the component (the lift, the press,
   the focus ring, Load more's own reveal on the cards it adds); they are
   printed, not performed.
   ------------------------------------------------------------------ */
.js-reveal [data-search-results] .c-shelf .c-pcard {
  opacity: 1;
  transform: none;
}

.js-reveal [data-search-results] .c-shelf .c-pcard.is-revealed {
  animation-name: none;
}

/* ---- THE RULE THE SOLD-OUT BLOCK SITS UNDER -----------------------
   A named boundary, not a gap. Without it the thirteenth-from-last card is
   just a card that happens to say Sold out, and the shopper reads the end of
   the catalogue as a page that ran out of stock. The count is written by the
   filter code, so it stays true under every sort and every filter. */
.p-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-block-start: var(--space-6);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--color-border);
}

.p-divider__label {
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
  letter-spacing: var(--text-base-track);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}

.p-divider__n {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-tertiary);
}

/* AND AT 1440 IT IS A HEAD, NOT A HAIRLINE WITH A CAPTION UNDER IT
   (2026-09-10, round two of the shelf — measured). It is the ONE structural
   landmark in a grid that runs 13,300px once every plan is loaded, and its
   air was grouping it with the wrong side: 20px from the rule above it to its
   label and 32px (the shelf's own row gutter) from that label to the block it
   names, so the words "Sold out · 13 plans" sat closer to the end of the
   in-stock shelf than to the thirteen cards they introduce. The two steps are
   swapped: 40px of ground opens above the rule, so the rule reads as the
   sold-out block's own top edge rather than a line glued to the last card
   that happened to be in stock, and 40px carries the label clear of it —
   more space above the head than below it, which is the rest of the page's
   rule. The phone keeps its own step: at 390 the shelf is two columns and
   the rule is never more than a card's width from the card above it. */
@media (min-width: 64rem) {
  .p-divider {
    margin-block-start: var(--space-10);
    padding-block-start: var(--space-10);
  }
}

/* A grid card is display:grid, which beats the [hidden] default, so the
   filter would leave every non-matching card on screen. */
/* THE UNREVEALED CARDS (ledger 04a). They are in the document, in the right
   order, with their prices and their links — a crawler and a shopper with no
   scripting both get the complete catalogue. The rule is scoped to html.js so
   that the attribute can only ever hide something on a page that also ships
   the control able to un-hide it. */
html.js .p-shop__results .c-pcard[data-more] { display: none; }

.p-shop__results .c-pcard[hidden],
.p-divider[hidden],
.p-active[hidden],
.p-bar__badge[hidden] { display: none; }

/* ---- active filters ------------------------------------------------ */

/* Same trap as .c-empty: the attribute is the state, so it wins. */
.p-active[hidden] { display: none; }

.p-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-block-end: var(--space-5);
}

.p-active__label {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-ink-secondary);
}

.p-active__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-inline-start: 0;
  list-style: none;
}

/* 44PX, MEASURED. It is a btn--sm, which is a 32px control (41px effective
   hit box) — under the bullet's own floor and under design-brief.md line 70,
   on a button that appears whenever any filter is set, i.e. on the phone,
   mid-grid. The visible pill is unchanged; only the box it is hit in grows to
   the height every other control on this page already uses. */
/* And the pill corner, for the same reason the sort select took one: it
   stands 12px from a removable filter chip that is a pill, in a row that
   exists only to be one row, and two radii in one row is the mismatch a
   shopper reads as unfinished without ever naming it. */
.p-active__clear {
  min-block-size: var(--control-height);
  border-radius: var(--radius-pill);
}

@media (min-width: 48rem) {
  .p-active__clear { margin-inline-start: auto; }
}

/* AND NOT AT 1440 (2026-09-10, round two). `auto` threw the control to the far
   end of a 1,000px column: "Clear all filters" stood 880px from the single chip
   it clears and landed directly under the Sort control, so the first thing a
   filtered shopper met beside his sort was a button that undoes his filter. It
   sits beside the chips, where the thing it acts on is. */
@media (min-width: 64rem) {
  .p-active__clear { margin-inline-start: 0; }
}

/* ---- LOAD MORE (density pass, round three) ---------------------------
   The outline button read 36 to 40px beside the 44px sort select and the
   header's Message us, although it measured 44. It takes the sort select's
   construction (the same edge and radius) at 48px with a wider inline step,
   and its label sits on the base step; the "24 of 99 shown" line above it
   is a caption at sm on the tertiary ink. */
.p-shop__results .c-more__btn {
  min-block-size: var(--space-12);
  padding-inline: var(--space-6);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-base-size);
  line-height: var(--text-base-line);
}

.p-shop__results .c-more__count {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-ink-tertiary);
}

/* ------------------------------------------------------------------
   6. THE CLOSING PANEL

   The page's one dark panel, and its whole tail. An inset object with a
   large radius floating on the light ground, grained so a 1272-wide flat
   fill does not read as a fill; never the page background, never the hero.

   ROUND ONE OF THE CATALOGUE: it was the proof and an unnamed button. At
   1440 a 20rem column carried nothing but a 180px control beside three
   statements, and at 390 the page ended on a control with no sentence to
   explain it. Home's tail was judged five times and settled as one dark
   panel with the ask stated on its left edge and the proof down its right;
   a shopper meets both pages, so this panel takes that anatomy — the same
   heading, the same pair (WhatsApp filled, Telegram the quiet route under
   it) and the copy deck's § 5.5 trust strip as the proof. The composition
   turns at 64rem, the width home's turns at, so the two tails are one
   object at every width rather than two objects that agree at 1440.
   ------------------------------------------------------------------ */

.p-shop__trust {
  max-width: var(--container-max);
  margin-block-start: var(--shop-step);
  margin-inline: auto;
}

/* The panel itself (.p-panel and its ask and proof) moved to c-product.css,
   "the bottom section", on 2026-09-24 (ledger C-04): it is the shared
   component tweakflix_close_panel() prints, and the product page takes it
   at P-09. Only the catalogue's own wrapper stays here. */

/* A filled button gives its SVG the whole box to grow into unless the glyph
   is held at a size, and the drawer's foot puts an icon in one too. */
.site-drawer__actions .btn svg {
  flex: none;
  inline-size: var(--space-5);
  block-size: var(--space-5);
}

/* ------------------------------------------------------------------
   7. EMPTY
   The component is the product family's. All this adds is the action row,
   because c-empty carries one action and this state offers two: undo the
   filters, or go back to everything.
   ------------------------------------------------------------------ */

.p-shop__results .c-empty {
  margin-block-start: var(--space-4);
  padding: var(--space-10) var(--space-8);
  /* The shelf that has emptied is scrolled back under the bar exactly the
     way the grid is, so a search that matches nothing lands where the
     results would have been rather than above the viewport. */
  scroll-margin-block-start: calc(var(--shop-stick) + var(--control-height) + var(--space-6));
}

.p-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
}

/* ------------------------------------------------------------------
   8. THE PHONE GRID

   Two-up at 390, matching the homepage shelf, because the same card must
   not have two grid behaviours at the same viewport width. Fixed at this
   level rather than in c-product.css because the component's one-up base is
   still right where it is used: post.html and product.html each run a short
   related-products row where a full-width card is the correct phone
   treatment. This page is a 99-item catalogue, which is a different job.

   NINETY-NINE PRODUCTS CHANGE WHAT THE PHONE OWES THE SHOPPER. The answer is
   not a shorter scroll, it is a navigable one: the jump row above the grid,
   the sticky bar that keeps the count and both controls in reach at card
   sixty, and a rule the sold-out block sits under so the end of the buyable
   list is a place rather than a surprise. What the card itself owes is
   silence — two rows of type, a price, one control.
   ------------------------------------------------------------------ */

@media (max-width: 39.999rem) {
  /* THE CARD'S OWN PHONE STEP IS THE COMPONENT'S (c-product.css § 4a): the
     12px side padding, the bed and action pulled out by the same 12, the
     4px price channel and the -4px hit box all live there now, so the
     catalogue and the home deck answer a 390 thumb identically. What is left
     here is the two things only this shelf has at this width. */

  /* ONE GUTTER, BOTH AXES. The row gap was 24 against a 16 column gap, and
     at fifty rows a vertical gutter half again as wide as the horizontal one
     stops reading as a grid and starts reading as fifty stacked stripes —
     the eye follows the widest channel, and the widest channel ran across
     the shelf instead of down it. Equalising costs the shopper nothing (the
     cards are white panels with their own shadow on a tinted ground, so the
     boundary is the card, not the gap) and returns 8px x 50 rows = 400px of
     the phone's 17,348. A well-stocked shelf is the client's own density
     lever; this is the cheapest honest 400px of it. */
  .p-shop__results .c-shelf { gap: var(--space-4); }

  /* THE ROWS STILL HOLD, and they hold for a better reason. The title's
     two-line reserve used to be what kept every price in a row on one
     baseline, at the cost of truncating twenty-three names. The reserve is
     now the TILE, which is a fixed 4:3 box on every card whatever the name
     does inside it, so the baselines are guaranteed by geometry and no name
     is cut. */

  /* The count is the one thing in the sticky bar that changes length, and the
     bar has one row to give it. It shortens rather than wrapping the two
     controls onto a second line. */
  .p-shop .p-count {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* ------------------------------------------------------------------
   10. WHY THE MOSAIC SURVIVES A SORT

   The argument that removed the mosaic in the second review was a real one and
   it has to be answered rather than ignored: "a card that is twice the width
   of its neighbours has to be pinned to a position in the DOM, and every sort
   and every filter moves it — the exception would land on whatever product
   happened to be third that second."

   It is answered by not pinning it to a product at all. The cell belongs to the
   POSITION, not to the card: shop.html's script clears every cell class and
   re-applies the modulo after each apply(), so whatever the shopper sorts or
   filters to, the shelf they get has a landscape cell at result 1, 6, 11 and so
   on, and the rows close at both column counts. Sorting by price low-to-high
   gives a different set of products in the wide cells and the same rhythm.

   The second half of that argument — that a change making the page busier is a
   failed change — still holds and is the constraint section 5 is written
   against. The mosaic adds no new objects; it varies how many grid units the
   existing ones take.
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   11. THE PHONE'S TYPE FLOOR

   Measured at 390, four elements on this page reached 16px and everything
   else sat at 13 or 14 — including .c-pcard__desc, which was SMALLER on the
   phone than on the desktop it was designed for. Shrinking body copy on the
   surface the client says most customers use is the opposite of the
   instruction. Nothing below 64rem is now smaller than its own desktop value,
   and running text, prices and links all clear 16.

   The uppercase label step (--text-label-size, 12) is untouched: it is a
   tracked, short, non-running form and the floor is a floor for reading, not
   for labels.
   ------------------------------------------------------------------ */

@media (max-width: 63.999rem) {
  .p-shop .p-ticker__item,
  .p-shop .p-count,
  .p-shop .p-active__label,
  .p-shop .field__label,
  .p-shop .pager__link,
  .p-shop .c-trust__body,
  .p-shop .c-empty__body,
  .p-shop .p-bar__filter,
  .p-shop .btn,
  .p-shop .chip {
    font-size: var(--text-base-size);
    line-height: var(--text-base-line);
  }

  .p-shop .p-bar__badge {
    font-size: var(--text-sm-size);
    line-height: var(--text-sm-line);
  }
  /* THE CARD'S SMALL PRINT LEFT THIS LIST 2026-09-09 (catalogue round one).
     .c-price__term, .c-price__saving and .c-pcard__meta were stepped up here
     and nowhere on home, so the same card's term line measured 16 on the
     catalogue and 14 on the home deck at 390. The step is right and it is the
     CARD's, not the page's: it is declared on .c-shelf in c-product.css § 4a
     now and both shelves take it.
     .p-cta is not here either: it sets at --text-sm on every width from its
     own rule. .c-stock and .p-opt__count left for the same reason — see
     "THE FLOOR IS A FLOOR AT 1440 TOO" below. */
}

/* THE FLOOR IS A FLOOR AT 1440 TOO.
   The block above lifts a list of small labels to 14px, and it is a
   `max-width: 63.999rem` block — so every one of them was 14 on the phone and
   13 on the desktop, which is the floor stated backwards: the wide viewport
   has MORE room for type, not less, and a shopper on a laptop is not more
   able to read 13px than a shopper on a phone.

   Two of the list were wrong in a way that matters rather than in principle:

   .c-stock--out is the "Sold out" pill, and it is the one word on the card
   that changes what a shopper can DO with it. It sat at 13px on all thirteen
   sold-out cards at 1440 while the "Buy now" beside it — lifted last wave for
   exactly this reason — sat at 14. The card the client's bullet is about was
   running its state label under the project's own floor.

   .p-opt__count is the number beside each of the twenty-one filter values,
   and at 1440 the filter panel is the permanently-open rail: it is the most
   read small type on the page at that width and it was the smallest.

   Both are declared at --text-sm outright, so the phone renders exactly what
   it rendered before (it was already being stepped to 14) and the desktop
   comes up one step. Nothing else in the list moves. */
.p-shop .p-opt__count {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
}

/* ------------------------------------------------------------------
   12. THE THUMB ZONE

   Two identical icon-only WhatsApp controls were on screen at once below
   48rem — the header button and the floating one — and neither carried a
   visible label. The header's is stood down there (the drawer carries the
   same route, labelled, pinned to its foot) and the floating one becomes what
   the buyoctopus note asks for: one unmissable, labelled primary action in
   the thumb zone.

   It is fixed, so the page owes it its own footprint. The footer pads by the
   control's height plus its inset plus the safe area, and the legal line is
   no longer underneath it.
   ------------------------------------------------------------------ */

/* 2026-09-08: the floating contact button and the header action's quiet
   variant left this sheet; the chrome ships neither on any page, so the
   catalogue no longer needs a rule of its own for either. */

/* ------------------------------------------------------------------
   13. THE SEARCH RESULTS PAGE (ledger V14, 2026-09-09)

   The same sheet, because the results are the catalogue's cards on the
   catalogue's shelf under the catalogue's bar. What is scoped here is only
   what a RESULT LIST has that the shelf does not: a head whose subject is
   the query, an empty state set at page scale rather than in a panel, and
   the row that hands the shopper back to the page where the filters live.
   ------------------------------------------------------------------ */

/* The page is named above the query, at the label step, so the two are
   separated by size, case and tracking rather than by grey alone. */
.p-shop__kicker {
  display: block;
  margin-block-end: var(--space-3);
  color: var(--color-ink-secondary);
  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-medium);
}

/* THE QUERY IS THE HEADLINE. It was a lead line under a headline reading
   "Search" — the page's largest type spent on the one word that is the same
   on every search, with the shopper's own word set at 16px underneath it.
   The word wraps where a long query needs it to; nothing else on the head
   changes. */
.p-shop__title--q {
  overflow-wrap: anywhere;
}

/* The empty head carries a sentence rather than a noun, so it is set one
   step down from the query's own display size: at 390 "No plans match
   "photoshop"" runs to three lines at 36px and the two actions under it
   leave the fold. It is still the largest thing on the page. */
.p-shop__title--none {
  font-size: var(--text-3xl-size);
  line-height: var(--text-3xl-line);
  letter-spacing: var(--text-3xl-track);
  overflow-wrap: anywhere;
}

/* Copy deck § 13's action, in the head where the state is named, instead of
   inside a grey panel repeating a heading the head has already printed. */
.p-shop__acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-6) var(--space-2);
}

/* A page with no results owes the reader no reserve. The shelf's own bottom
   step is the room ninety-nine cards need above the footer; under a head that
   is four lines long it was 130px of nothing on a 940px page — the same dead
   ground the empty grey panel used to sit in. */
.p-shop__main--none { padding-block-end: var(--space-12); }

/* ---- THE EMPTY STATE'S EIGHT DOORS --------------------------------
   (2026-09-10, search round three.) The head is the empty state, and under it
   the page held nothing but the footer. The rows below are the same component
   the result list closes on, stacked into the rack this shop uses wherever a
   page has to hand the reader somewhere else: one hairline per category, its
   own live count beside the name. Stacked, each row's top rule is the one
   above it's bottom rule, so only the last one needs closing. */
.p-shop__doors {
  /* --shop-open is 0 below 64rem, and at 0 the rack's first hairline lands on
     the banner's own bottom edge and reads as a doubled rule. */
  padding-block-start: max(var(--shop-open), var(--space-8));
  padding-block-end: var(--space-6);
}

.p-shop__doors .p-onward { margin-block-start: 0; }

.p-shop__doors .p-onward:last-child {
  border-block-end: 1px solid var(--color-border);
}

@media (min-width: 64rem) {
  /* The same measure the result list takes: the rack starts on the head's own
     left edge and ends where a two-column list of matches would, so the empty
     state and the found state are one page at one width. */
  .p-shop__doors .p-onward {
    max-inline-size: calc((200% - var(--grid-gap)) / 3);
  }
}

/* The result list has no rail, so its bar is the page's own full-bleed band
   at every width — the negative gutter margin it carries below 64rem, kept
   above it, where the catalogue instead parks the bar in a grid column. */
@media (min-width: 64rem) {
  .p-shop__view > .p-bar { margin-block-end: var(--space-6); }
}

/* The revealed cards land under the bar, not beneath it — the same offset
   the catalogue's own grid carries. */
#results-grid {
  scroll-margin-block-start: calc(var(--shop-stick) + var(--control-height) + var(--space-6));
}

/* ---- THE ROW THAT CLOSES THE LIST ----------------------------------
   Four matches used to end on the last card and 104px of nothing, and a
   result list is the one page on the shop that is guaranteed not to hold
   what the shopper wanted. It ends on the route it does not carry itself:
   the filters, the categories and the other ninety-odd plans, named in the
   catalogue's own words. It is the page's last hairline, not a card, so it
   competes with nothing on the shelf above it. */
.p-onward {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block-start: var(--space-10);
  padding-block: var(--space-5);
  border-block-start: 1px solid var(--color-border);
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color var(--duration-hover) var(--ease-out);
}

.p-onward__say {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.p-onward__name {
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  font-weight: var(--weight-semibold);
}

.p-onward__blurb {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-ink-secondary);
}

.p-onward__go {
  flex: none;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  margin-inline-start: auto;
  color: var(--color-ink-secondary);
  transition: transform var(--duration-lift) var(--ease-out),
              color var(--duration-hover) var(--ease-out);
}

/* The chevron travels and the name takes the accent — the same answer the
   card's own quiet row gives, so one gesture means one thing on this page. */
@media (hover: hover) and (pointer: fine) {
  .p-onward:hover { border-block-start-color: var(--color-border-strong); }
  .p-onward:hover .p-onward__name { color: var(--color-accent); }
  .p-onward:hover .p-onward__go {
    transform: translateX(var(--space-1));
    color: var(--color-accent);
  }
}

.p-onward:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

.p-onward:active .p-onward__name { color: var(--color-accent-deep); }
.p-onward:active .p-onward__go { color: var(--color-accent-deep); }
