/*
 * The collection page — V6 14, 15, 16 and 46; F-01 and F-02.
 *
 * WHAT THIS REPLACES. The previous sheet was the Phase 1b mobile specimen: a
 * three-column grid from 768 (the pre-V6 §13 rule), a craft section, a
 * newsletter block, a footer strip, and the A01 floating-dock override built on
 * six --k-dock-float-* tokens that tokens.css has marked STALE since step 3
 * ("collection.css consumes until step 5"). Step 5 rebuilt the dock on Section
 * 10's LOCKED values, so the override is deleted here and the last consumer of
 * those six tokens goes with it.
 *
 * THE GRID IS ONE-UP ON THE COLLECTION BELOW 768 AND TWO-UP FROM 768.
 * Owner ruling J-40 (Husnain, 30 September 2026). The run brief states the
 * ruling's content as: one product per row on mobile, "the owner wants the
 * jacket emphasised", with a mobile-only toggle back to two and a default that
 * is always one. Those are the BRIEF's words, not a transcript of the owner's —
 * the one verbatim owner sentence the brief carries is quoted in J-40's own
 * entry, and Run 40's close-out review caught this build writing brief
 * sentences as though the owner had spoken them.
 *
 * WHAT THAT SUPERSEDES, AND WHAT IT DOES NOT. §14.5 is the clause that said
 * "Two product cards per row on both mobile and desktop"; it is untagged Part A
 * body text carrying no §0.3 tag, so its mobile half is superseded by a later
 * dated owner ruling under §0.5 and §0b. Appendix G-03 — "Two cards per row on
 * desktop (14.5)", authority column "v6.0 owner ruling" — is DESKTOP-ONLY and
 * is untouched: two-up survives from 768 up, unchanged, and F-01's measurement
 * of FOUR columns on the approved Louis Vuitton reference at 1440, 1280 and 768
 * is still the divergence G-03 licenses.
 *
 * AND IT IS A NEW DIVERGENCE ON MOBILE, WHICH IS SAID HERE RATHER THAN HIDDEN.
 * F-01 measured the Louis Vuitton reference rendering TWO cards at 430, so the
 * two-up mobile grid this replaces was reference-matching and one-up is a
 * departure from P3 measured reference behaviour. §1.4's permitted category is
 * "a later explicit owner ruling", which is what J-40 is. The owner also named
 * a different collection reference for the ruling, and that one renders one card
 * per row below 768 and two from 768 — the same shape as this rule. Both
 * readings are recorded in the run report; neither is inferred here.
 *
 * THE SCOPE IS `.k-col` AND THAT IS DELIBERATE. `.k-pcard-grid` is also the
 * Vault product listing, the wishlist and the search results, and the owner
 * ruled on the collection. The base two-up rule below is therefore left alone
 * and the one-up rule is scoped to the collection wrapper, so three surfaces
 * nobody ruled on do not move — and so they do not end up one-up with no
 * toggle to get back, since the toggle lives on the collection's control row.
 *
 * F-01 IS PARTIALLY CLOSED AND THIS SHEET SAYS SO WHERE IT MATTERS. 390 and 375
 * were never measured — the reference served bot protection — and §1.7 forbids
 * inferring them from 430. No value below is described as "F-01 measured" at
 * those two widths.
 *
 * WHAT F-01 MEASURED AND THIS SHEET DOES NOT ADOPT. The reference grid is
 * edge-to-edge: outer gutter 0, column gap 0, row gap 0 at every width. F-01's
 * own conclusion is that "adopting zero gutters is a design-owner decision at
 * the §30.1 gate, not a mechanical consequence of the measurement", and
 * KOROTANA already carries a mobile gutter. So the gutters and gaps below stay
 * DEFAULT, from the governed spacing scale, pending that gate. The measured
 * zeros are recorded beside them so the gate has both numbers in front of it.
 *
 * THE HERO RULES ARE SCOPED TO .k-col ON PURPOSE. inc/render-hero.php is the
 * shared component for 11.1, 14.1 and 18.5, and its base stylesheet belongs to
 * whichever sheet loads on each of those routes. Only collection.css loads on a
 * collection route, so the collection's hero is dressed here, under .k-col, and
 * cannot collide with the homepage's or the PDP's rules for the same component.
 *
 * TYPOGRAPHY IS NOWHERE IN THIS FILE. Every type decision is a .kr-* class in
 * the markup, from the v4.0 §06 component map: PLP title M24, PLP result count
 * R12, Filter/Sort labels M14, card title R14, card price R14, card badge M12.
 * The only declarations below that touch type at all are the two-line clamp
 * §08 requires on a card title and `white-space: nowrap` on a price, neither of
 * which changes size, line-height, weight or tracking. No state rule below
 * changes any of those four either (v4.0 §11).
 */

/* ==========================================================================
   The page
   ========================================================================== */
.k-col {
  /* 6.4 / D9: the collection field is the page ground, which is also the
     CONTAIN+PAD colour a flat frame pads with (18.8). */
  background: var(--k-surface-page);
  color: var(--k-ink);
  margin: 0;
}

/*
 * INTERNAL SPECIMEN FURNITURE, and the only rule in this file that is not a
 * customer surface. `patterns/collection-specimen.php` renders on the
 * `collection-specimen` page, which `korotana_gate_internal_pages()` 404s to
 * anyone who cannot edit content, and the banner is what stops a screenshot of
 * that page being mistaken for an approved design. It is deleted with the
 * specimen. Oxblood is 6.4's editorial accent used editorially, not as a
 * status colour.
 */
.k-col__banner {
  background: var(--k-oxblood);
  color: var(--k-on-surface-dark);
  padding: var(--k-space-4) var(--k-gutter-mobile);
}

.k-col__banner p { margin: 0 0 var(--k-space-2); }
.k-col__banner p:last-child { margin-bottom: 0; }

/*
 * §0.4 markers, RC-11 shape: they exist only off production and must never be
 * mistaken for content. Quiet, full-width, and out of the cadence's rhythm.
 */
.k-col__pending,
.k-col .k-hero__pending,
.k-col .k-hero__note {
  margin: var(--k-space-4) 0;
  padding: 0 var(--k-gutter-mobile);
  color: var(--k-graphite);
}

/* ==========================================================================
   14.1 — the opening editorial
   --------------------------------------------------------------------------
   J-8, quoted in the 14.1 redirect box: "When enabled it is 100vh on desktop
   and 100svh on mobile, header and announcement-bar occupancy considered."

   WHAT ACTUALLY OCCUPIES SPACE ABOVE IT. 40.6 puts the header in its
   transparent state "over the homepage hero, collection opening editorial (when
   enabled) and any approved full-bleed editorial media", and chrome.css
   implements that with a negative margin so the transparent header takes ZERO
   net height in flow — the media begins at the header's own top edge. The
   announcement bar does not: 40.3 puts it ABOVE the header, solid, at a fixed
   height per breakpoint, and it is in normal flow. So the announcement bar is
   the whole of the occupancy to subtract, and it is subtracted only when a
   message is actually scheduled — 40.1: "When no message is scheduled the bar
   does not render and occupies no height."

   100svh on mobile is J-8's own word: the SMALL viewport unit keeps the
   composition whole while a mobile browser's toolbars are expanded, which is
   what "100svh on mobile" means and what 100vh would break.
   ========================================================================== */
.k-col .k-hero {
  position: relative;
  background: var(--k-surface-page);
  /* The overlay is the only in-flow child, so the box centres it; the media is
     taken out of flow beneath. Nothing is clipped, which is what keeps the
     composition usable at the 200% zoom §08 requires — a taller-than-viewport
     overlay grows the hero rather than disappearing inside it. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.k-col .k-hero--viewport { min-height: 100svh; }

body:has(.k-announce) .k-col .k-hero--viewport {
  min-height: calc(100svh - var(--k-announce-h-mobile));
}

.k-col .k-hero__media {
  position: absolute;
  inset: 0;
}

.k-col .k-hero__still,
.k-col .k-hero__skel { display: block; width: 100%; height: 100%; }

/*
 * 14.1: "cover and focal point". The focal point arrives as a custom property
 * from the component, per crop, because §28 forbids the delivery layer from
 * choosing it. The fallback is the geometric centre only where no governed
 * focal point exists at all.
 */
.k-col .k-hero__still img,
.k-col .k-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--k-hero-focal-mobile, 50% 50%);
}

.k-col .k-hero__video { position: absolute; inset: 0; }

/*
 * 60.5: the film "respects prefers-reduced-motion AND data-saver by showing the
 * still". The still is already painted underneath, so hiding the film is the
 * whole fallback — and a display:none <video> with preload="none" neither plays
 * nor downloads, so the bytes are saved as well as the motion.
 */
@media (prefers-reduced-motion: reduce) {
  .k-col .k-hero__video { display: none; }
}

@media (prefers-reduced-data: reduce) {
  .k-col .k-hero__video { display: none; }
}

/*
 * 14.2: "Optional heading + short copy may overlay the opening media, centred.
 * Media-only is valid when copy is disabled" — so this element only exists when
 * the collection authored copy, and it reserves nothing when it does not.
 */
.k-col .k-hero__overlay {
  position: relative;
  z-index: var(--k-z-content);
  /* Stretched to the whole box rather than centred as a band: the veil below
     has to cover the media, not sit on it as a strip. `flex: 1` grows it with
     the copy, so long text at 200% zoom pushes the hero taller instead of
     overflowing it. */
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--k-space-4);
  padding: var(--k-space-9) var(--k-gutter-mobile);
  text-align: center;
  /*
   * §08 "colour contrast at AA" over a photograph nobody has approved yet, and
   * the veil BELOW is measured rather than asserted.
   *
   * This rule used to read `color: var(--k-on-surface-dark)` over a fixed
   * `color-mix(in srgb, var(--k-ink) 35%, transparent)`, with a comment
   * claiming the veil "keeps the Snow text at AA whatever is beneath it". It
   * does not: 35% Ink over a white crop composites to roughly #A9A9A9, and Snow
   * on that is about 2.3:1 — below AA for the R16 copy (4.5:1) AND for the M24
   * heading (3:1 as large text). §9.2 forbids exactly that move, relying on a
   * blend treatment "as a substitute for measured contrast", and §1.4 admits no
   * category for a departure justified by an arithmetically false claim.
   *
   * So the pair is keyed off the governed per-crop tone the component already
   * hands the stylesheet — `[data-korotana-tone]` on `.k-hero__media`, which
   * render-hero.php emits "so the overlay and the CTA can be coloured from it"
   * — the same way home.css does it for the identical job. The default branch
   * is the LIGHT one, because korotana_hero_tone() returns 'light' when nothing
   * governs the crop and a light crop is the worse case for Snow.
   *
   *   light media — Snow veil at 78%, Ink copy. Worst case beneath is pure
   *                 black: composite ~#C3C3C1, Ink on it ~11.2:1.
   *   dark  media — Ink veil at 70%, Snow copy. Worst case beneath is pure
   *                 white: composite ~#535353, Snow on it ~7.3:1.
   *
   * 78 and 70 are home.css's own values for the same problem, not new ones.
   * The veil rides on the overlay and not on the media, so a hero with no
   * authored copy (14.2: "Media-only is valid") is never dimmed for nothing.
   */
  color: var(--k-ink);
  background: color-mix(in srgb, var(--k-snow) 78%, transparent);
}

.k-col .k-hero__media[data-korotana-tone="dark"] ~ .k-hero__overlay {
  color: var(--k-on-surface-dark);
  background: color-mix(in srgb, var(--k-ink) 70%, transparent);
}

.k-col .k-hero__overlay > * { margin: 0; max-width: var(--k-measure); }

/*
 * No CTA rule, deliberately. 11.1 gives the homepage hero "Explore the
 * Collection"; 14.1 and 14.2 give the collection's opening editorial none, and
 * korotana_render_collection() therefore passes neither a label nor a target,
 * so the component renders no control at all. A style for one here would be a
 * rule for an element V6 does not put on this surface.
 */

@media (min-width: 768px) {
  .k-col .k-hero--viewport { min-height: 100vh; }

  body:has(.k-announce) .k-col .k-hero--viewport {
    min-height: calc(100vh - var(--k-announce-h-desktop));
  }

  .k-col .k-hero__still img,
  .k-col .k-hero__video { object-position: var(--k-hero-focal-desktop, 50% 50%); }

  .k-col .k-hero__overlay { padding-left: var(--k-gutter-desktop); padding-right: var(--k-gutter-desktop); }

  /* Above the switch the DESKTOP crop is the media beneath the words, so its
     own governed tone decides them (9.2, MediaTone: "per image, not per page").
     A 9:16 and a 16:9 export of one composition routinely disagree. */
  .k-col .k-hero__media[data-korotana-tone-desktop="light"] ~ .k-hero__overlay {
    color: var(--k-ink);
    background: color-mix(in srgb, var(--k-snow) 78%, transparent);
  }

  .k-col .k-hero__media[data-korotana-tone-desktop="dark"] ~ .k-hero__overlay {
    color: var(--k-on-surface-dark);
    background: color-mix(in srgb, var(--k-ink) 70%, transparent);
  }
}

/* ==========================================================================
   The heading row — F-02's placement relationship (16.2)
   --------------------------------------------------------------------------
   Measured: the heading sits at the left inset; the result count sits 4px after
   it on the same baseline; the trigger is pinned to the right edge of the same
   row; the grid begins 20px below. At mobile the heading takes its own line and
   the count and trigger drop to a second row which becomes STICKY.
   ========================================================================== */
.k-col__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  /* F-02: "Gap, heading right → count left: 4" at every width measured. */
  column-gap: var(--k-space-1);
  padding: var(--k-space-5) var(--k-gutter-mobile) 0;
}

.k-col__title {
  /* v4.0 §06 "PLP category / page title | M24 | Source case; max 2 lines". */
  margin: 0;
  flex: 1 1 100%;
}

.k-col__meta {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*
   * THE ROW WRAPS, AND THAT IS A DEFECT FIX RATHER THAN A CONSEQUENCE OF J-40.
   *
   * Measured on staging before the toggle existed: with its original TWO
   * children the row's min-content width is 205.46px, because the trigger's
   * label is no-wrap, and at a 188px viewport — 375 CSS px at the 200% zoom §08
   * makes a launch gate — the row rendered 229.45px wide and the document
   * scrolled horizontally. The same reading at 195 and 215 (390 and 430 at
   * 200%). Nobody had tested it: chrome.spec.js and rail.spec.js both check
   * 1280 at 200% = 640px, where there is 395.84px of slack and no overflow.
   *
   * `flex-wrap: wrap` is inert at every acceptance width — at 375 the three
   * children and their gaps come to 280.16px inside 351px of content box, so
   * nothing wraps — and it engages only in the zoom range that was already
   * overflowing. So this removes a pre-existing §08 reflow failure rather than
   * mitigating one this run introduced. SC 1.4.10 asks for 320 CSS px and is
   * met; this is KOROTANA's own §08 acceptance rule, which names 375.
   */
  flex-wrap: wrap;
  gap: var(--k-space-4);
  /*
   * THE ROW DOES NOT STICK — owner ruling of 4 October 2026 (J-42.5), RC-160.
   * REVERSES K-60 / J-41.2 of 1 October, which was his own ruling and which
   * Run 42 implemented correctly. He has now seen it on a phone: "I don't need
   * the section from screenshot 2 being glued when we scroll down."
   *
   * This is a RULING, not a defect report. The row did exactly what he asked
   * for three days ago, and Run 42's build of it was right.
   *
   * WHAT WENT WITH IT, and why each thing had to:
   *   `position: sticky` and `top: 0`   — the behaviour itself
   *   the comment claiming the row travels — F-02's "becomes sticky so it stays
   *     reachable while the grid scrolls", which is now false about this row
   *   `z-index: --k-z-content` and the --k-z-stickyrow step below it — the
   *     layer existed only so .k-pcard__wish could not hit-test over a STUCK
   *     row; a row in flow is never under a card
   *   `background: --k-surface-page` — an opaque surface a stuck row needed so
   *     the grid did not show through it
   *   `margin-inline` and the negative-gutter bleed — the full-bleed bar was
   *     the sticky's look
   *
   * WHAT DID NOT GO: chrome.js's footer release. See the note below the rule.
   *
   * THE SHAPE IS THE AXEL ARIGATO ROW, MEASURED — J-42.4, RC-159. The owner
   * sent axelarigato.com/men/apparel/knitwear as the reference. Measured there
   * at 324 CSS px on 4 October 2026, not described:
   *
   *   row            324.00 x 48.60, border-top and border-bottom 0.8px #E9E9E9
   *   left cell      230.40 x 47.00, flex:1, 16px of leading padding
   *   view switch    47.80 wide, border-left 0.8px; its button 47 x 47
   *   filter         45.80 wide, border-left 0.8px; the button IS the cell
   *   both glyphs    15 x 15, currentColor, monochrome
   *
   * TRANSLATED INTO THIS BUILD'S OWN TOKENS rather than their values: the
   * hairline is --k-border-hairline (1px Stone) because every other rule on
   * the site is, the leading padding is --k-gutter-mobile (12px) so the count
   * lines up with the grid beside it rather than with their 16, and the cells
   * are --k-touch-min (44px) rather than their 47, because 44 is KOROTANA's
   * rule and theirs is simply larger than it needs to be. §1.5: observable
   * architecture and geometry, with KOROTANA's own assets — never their svg
   * paths, their colours or their copy.
   *
   * THE ROW'S OWN PADDING GOES TO ZERO. Each cell carries its own, so the
   * divider between two cells can run the full height of the row; a row with
   * padding would leave a gap above and below every rule.
   */
  gap: var(--k-space-4);
  /*
   * THE BASE RULE IS WHAT IT WAS, MINUS THE STICKY. `inc/render-search.php`
   * builds a `.k-col__meta` too, and the owner ruled on the COLLECTION: the
   * reference he sent is a collection page and the screenshot he annotated is
   * one. So the sticky — which his ruling withdraws, and which never had a
   * pixel of travel on the search route either (K-63) — goes from the base,
   * and everything about the new SHAPE is scoped to `.k-col` below.
   *
   * A first build of this put the rules and the bleed on the base. The search
   * route silently grew a 1px rule above and below its own count row at 390,
   * and nothing in either suite would have reported it; the neighbour check
   * this run runs against every surface the instruction touches is what found
   * it.
   */
  margin-inline: calc(-1 * var(--k-gutter-mobile));
  padding: var(--k-space-3) var(--k-gutter-mobile);
  margin-bottom: calc(var(--k-space-5) - var(--k-space-1));
}

/* ==========================================================================
   J-42.4 — THE COLLECTION'S ROW TAKES THE REFERENCE SHAPE
   --------------------------------------------------------------------------
   Scoped to `.k-col` throughout, for the reason the base rule above states.

   FULL BLEED, AND IT IS THE RULES THAT NEED IT. The reference row is 324.00
   wide inside a 324 viewport and its hairlines run edge to edge; the owner's
   screenshot is "one full-width strip with a hairline above and below". The
   row sits inside `.k-col__head`, which carries --k-gutter-mobile on each side
   below 768, so without the negative margin it renders 351 inside 375 and the
   rules stop 12px short at both ends — measured exactly that on staging before
   it was added. The margin is inherited from the base rule, which spends the
   head's own gutter, so the two cannot drift.

   THE ROW'S OWN PADDING GOES TO ZERO and each cell carries its own, which is
   what lets a divider run the row's full height; a row with padding would
   leave a gap above and below every rule.
   ========================================================================== */
.k-col .k-col__meta {
  gap: 0;
  padding: 0;
  border-top: var(--k-border-hairline);
  border-bottom: var(--k-border-hairline);
}

/*
 * AND WITH NO SCRIPTING THERE IS NO STRIP, because there is nothing in it.
 * `korotana_filter_noscript()` hides both controls when JavaScript never runs
 * — a visible button that announces a dialog and opens nothing is worse than
 * no button (its own rule says so). That left the row as an 18px full-bleed
 * band bounded by two hairlines with only the count inside it: a frame drawn
 * around an empty space, which reads as a rendering fault rather than as a
 * design. Measured at 18.00px on staging with scripting disabled.
 *
 * The rules are the CONTROLS' frame. With the controls gone the row falls back
 * to what it was before J-42.4: the count, in the flow, with no border and the
 * gutter it shares with the grid.
 *
 * THE RULE ITSELF LIVES IN korotana_filter_noscript(), not here, and that is
 * deliberate: it is the same inline <style> that hides the two controls, so
 * the frame cannot outlive the thing it frames. A rule here would be a second
 * place to remember.
 */

/*
 * THE CELLS. The count takes the slack; each control is a fixed box with a
 * rule on its leading edge, which is what makes the dividers in the reference.
 * The reference puts a rule before EACH control (two dividers, not one — its
 * `divide-x` sets border-left on every child after the first); the owner's
 * screenshot reads as one because the left cell is wide. Both are built.
 */
.k-col .k-col__meta > .k-col__count {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline-start: var(--k-gutter-mobile);
}

.k-col__cell {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--k-touch-min);
  min-width: var(--k-touch-min);
  padding: 0 var(--k-space-3);
  background: transparent;
  color: var(--k-ink);
  /*
   * THE DIVIDER IS A BORDER ON THE CELL, not a separate element and not a
   * `gap`. A border is what makes it run the full height of the row with no
   * arithmetic, and `align-self: stretch` is what makes "full height" true
   * when a neighbouring cell is taller.
   */
  align-self: stretch;
  border: 0;
  border-inline-start: var(--k-border-hairline);
  border-radius: var(--k-radius-none);
  cursor: pointer;
}

.k-col__cell:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  /*
   * ZERO OFFSET, UNLIKE THE OUTLINED BUTTONS THIS REPLACES. Those drew the
   * ring outside an Ink-filled pressed state, where a positive offset was the
   * only thing keeping it visible. These cells have no fill, and a positive
   * offset here would put the ring across the neighbouring cell's divider and
   * outside the row's own rules.
   */
  outline-offset: 0;
}

.k-col__columnsglyph { display: inline-flex; }

/*
 * THE FILTER CELL'S TWO FACES, below 768. The word is visually hidden the way
 * .screen-reader-text is — clipped to a 1px box, never `display: none` and
 * never `visibility: hidden`, either of which would take it out of the
 * accessible name as well as out of the paint. The glyph shows instead. From
 * 768 the pair swaps and the control is the worded button F-02 measured.
 */
.k-filters__trigger--icon .k-filters__triggerword {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/*
 * THE GLYPH'S SIZE. korotana_icon() emits a 24-unit viewBox with no intrinsic
 * size, so the box is set here: 16px, against the reference's 15. One pixel
 * larger, and chosen rather than copied — 16 is --k-space-4 and the build's
 * own icon step, and .k-icon elsewhere is already sized from the same scale.
 */
.k-col__cell .k-icon { width: var(--k-space-4); height: var(--k-space-4); }

/*
 * Section 10's footer boundary, shared with the dock and the floating wordmark
 * through chrome.js. The row stops floating rather than disappearing: 16.5
 * keeps Filter & Sort available, and a control that vanishes at the foot of a
 * long collection is a worse answer than one that stops following.
 *
 * THAT SENTENCE WAS ONLY EVER TRUE OF A ROW THAT DID NOT STICK — J-41.2,
 * RC-152. `position: static` returns the row to its position in the document,
 * which on `/men/` at 390 is 1,128px from the top of an 8,541px page. For a row
 * that never travelled, that was where it already was and the rule changed
 * nothing. For a row that does travel, it is a teleport: the observer writes
 * `data-footer="in"` as soon as the footer's top edge crosses the viewport
 * bottom — scrollY 6,841 of 7,641 — and the control jumps roughly 5,700px above
 * the viewport and is gone, with a whole screen of page still to scroll. The
 * rule designed to stop it disappearing is what makes it disappear.
 *
 * SO THE COLLECTION'S ROW IS EXEMPT, AND ITS GEOMETRY DOES THE JOB INSTEAD.
 * `korotana_render_collection()` now closes `.k-col` BEFORE the footer, so the
 * row's containing block ends at the collection's last pixel: it rides the
 * viewport top while there are products and then leaves WITH the page, which is
 * what "stops following" was always supposed to look like. It cannot overlap
 * the footer, because the box it is confined to ends where the footer begins,
 * and that is true with scripting off as well.
 *
 * THE RELEASE IS NOT REMOVED AND chrome.js IS NOT TOUCHED. The attribute is
 * still written on this row and on the dock by the one observer, so the two
 * still cannot disagree about where the footer starts, and the rule still
 * governs every OTHER `.k-col__meta` — `inc/render-search.php:728` builds one
 * inside `.k-search`, where the sticky still has no travel (K-63).
 */
/*
 * THE RELEASE RULES ARE GONE, AND chrome.js IS NOT TOUCHED — J-42.5, RC-160.
 *
 * What stood here was a pair:
 *
 *     .k-col__meta[data-footer="in"]          { position: static; }
 *     .k-col .k-col__meta[data-footer="in"]   { position: sticky; }
 *
 * The first released every `.k-col__meta` at the footer; the second exempted
 * the collection's, because for a row that DOES travel `position: static` is a
 * teleport rather than a release (RC-152). Neither has anything to govern now:
 * a row that never sticks has nothing to release.
 *
 * THE OBSERVER STAYS, and the brief's own test for that is whether the release
 * serves anything else. It does — THREE consumers, not one. chrome.js writes
 * `data-footer` on every `[data-korotana-hidesatfooter]` element plus the dock
 * directly, and the attribute is read by:
 *
 *   chrome.css   `.k-dock[data-footer="in"] { display: none; }`  (Section 10)
 *   product.css  `.k-pdp__purchase[data-footer="in"] { display: none; }`  (J-13.3)
 *
 * Removing the observer would take the dock's footer behaviour and the PDP's
 * pinned pre-order bar with it. tests/phpunit/ProductPageTest.php pins its
 * literal text for exactly that reason.
 *
 * WHAT THIS ROW DROPS IS ITS OWN SUBSCRIPTION, not the mechanism:
 * `data-korotana-hidesatfooter` comes off the collection's row in
 * inc/render-collection.php, because an element that subscribes to a boundary
 * it does not react to is machinery with no consumer. The search route's
 * `.k-col__meta` (inc/render-search.php) keeps nothing either — see K-63 below.
 *
 * A SPECIFICITY DEFECT GOES WITH THE PAIR, found at CP0 and never asserted by
 * anything. `.k-col .k-col__meta[data-footer="in"]` is (0,3,0); the 768
 * override that returns the row to `position: static` on desktop lives in a
 * plain `.k-col__meta` block at (0,1,0), and a media query adds no specificity.
 * So at >= 768, with the footer in view, the row computed `sticky` rather than
 * `static`, and `top: 0` was never reset there either. It was visually inert
 * — the head's box is restored at 768, so there was no travel to make — and
 * collection-grid.spec.js's desktop test never scrolls, so nothing could see
 * it. Both rules go, so the defect goes with them rather than being fixed.
 */

/* ==========================================================================
   J-41.2 — WHAT USED TO BE HERE, AND WHY IT IS WORTH A PARAGRAPH
   --------------------------------------------------------------------------
   HISTORY, NOT A RULE. Nothing below this heading is in force; it is kept
   because the next person to be asked for a sticky row on this surface should
   not have to rediscover any of it.

   `position: sticky` had been declared on this row since the collection was
   built, its own comment claimed Filter & Sort "stays reachable while the grid
   scrolls", and chrome.js computed a footer release for it. NONE OF IT EVER
   WORKED. Sticky is constrained by the element's CONTAINING BLOCK, and
   `.k-col__head` is a wrap flex container holding exactly the heading and this
   row, so it shrink-wrapped to them and the travel available was zero.
   Measured on staging at 390, both engines, the row's top by `scrollY`:
   1128 at 0, 728 at 400, 128 at 1000, −1372 at 2500 — perfectly linear, which
   is what "never stuck for one pixel" looks like. Run 41's seventh reviewer
   found it and registered it as K-60; nothing in either suite asserted it
   either way, which is how it survived.

   Owner ruling J-41.2 (1 October 2026) made it work, by dissolving the head's
   box with `display: contents` so the containing block became `.k-col`. The
   three alternatives were considered and rejected then, and the reasons still
   hold if this is ever asked for again: `position: fixed` reserves no space
   and GlassTest requires a fixed surface to be glass; moving the row out of
   the head in PHP breaks F-02's measured desktop relationship, which needs the
   heading, the count and the trigger in ONE flex row; making `.k-col` a grid
   constrains a sticky item to its own grid area, which is the same defect in a
   new place.

   AND THE OWNER HAS SINCE RULED AGAINST THE WHOLE THING — J-42.5, 4 October
   2026, three days later, having seen it on a phone. The machinery is removed
   below. That is a ruling reversing a ruling, not a defect being fixed: Run
   42's build did exactly what K-60 asked for.
   ========================================================================== */
/*
 * ALL OF IT IS GONE — J-42.5, RC-160. This is the "remove the machinery with
 * it" half of the owner's instruction, and each piece is named with what it
 * was for, so nothing is deleted on a hunch:
 *
 *   `.k-col > .k-col__head { display: contents; }`
 *       The head is a wrap flex container holding the heading and the row, so
 *       it shrink-wrapped to them and the sticky had ZERO travel. Dissolving
 *       its box moved the containing block up to `.k-col`, which runs to the
 *       collection's last pixel. With no sticky there is nothing to give
 *       travel to, and the head is a box at every width again — which is also
 *       what it was before Run 42.
 *
 *   `.k-col .k-col__title { padding: ... }` and its `padding: 0` at 768
 *       Both existed only to carry the head's own padding while the head had
 *       no box, and to hand it back when it did. The head keeps its padding
 *       now, so the title needs neither rule.
 *
 *   `.k-col .k-col__meta { margin-inline: 0; z-index: --k-z-stickyrow; }`
 *       The margin reset cancelled a negative gutter the base rule no longer
 *       declares. The layer step existed because `.k-pcard__wish` is also
 *       `--k-z-content` and every card is emitted AFTER this row, so a STUCK
 *       row was painted over and hit-tested through by the 50.3 wishlist
 *       control as cards passed beneath it. A row in document flow is never
 *       under a card, so the collision it solved cannot occur.
 *
 * --k-z-stickyrow ITSELF IS KEPT IN tokens.css, with no consumer, and that is
 * deliberate rather than an oversight — see its note there (K-68).
 */

.k-col__count { margin: 0; color: var(--k-graphite); }

/*
 * J-40 — THE MOBILE COLUMNS TOGGLE, AND THE GROUP THAT KEEPS THE ROW'S SHAPE.
 *
 * WHY A WRAPPER RATHER THAN A THIRD CHILD. `.k-col__meta` is
 * `justify-content: space-between` over exactly two children, and F-02 measured
 * that two-part relationship — count at the left, trigger pinned right. A third
 * child would be pushed to the visual MIDDLE by space-between, which is not a
 * relationship anything measured. The toggle and the trigger therefore share one
 * group, the row keeps two children, and F-02's measurement survives untouched.
 * This is not a second control bar (the owner's instruction forbids one): it is
 * a grouping inside the one §16 row.
 *
 * THE SEGMENTED CONTROL IS TWO BUTTONS, NOT A SELECT AND NOT AN ICON PAIR.
 * The visible label is the numeral, which needs no icon asset, no legend and no
 * translation, and each button carries a `.screen-reader-text` name that CONTAINS
 * that numeral — "1 product per row" — so SC 2.5.3 Label in Name is met. An
 * `aria-label` of "One product per row" would have failed it: the accessible
 * name must contain the visible label, and "One" does not contain "1".
 *
 * THE SELECTED STATE IS A SURFACE INVERSION, NOT A TINT. tokens.css records that
 * a Snow or Porcelain fill on the white ground is 1.05:1 and 1.10:1 — "effectively
 * invisible on its own" — and §02 forbids colour alone carrying status. The
 * pressed button swaps Ink and Snow, which is a LIGHTNESS inversion: it survives
 * greyscale and forced-dark, it is a `surface` change of the kind v4.0 §11 permits,
 * and it alters no size, no line box and no tracking. `aria-pressed` carries the
 * same fact programmatically, so the state is never colour alone.
 *
 * NAMING: `.k-col__*`, deliberately. GlassTest's overlay-root pattern covers
 * `.k-filters` and any `--modifier` of it and refuses such a surface its own
 * background, so a `.k-filters--columns` could not have been painted at all. An
 * `__element` name under `.k-col` is outside that pattern. The control also stays
 * in the sticky `--k-z-content` layer rather than taking `position: fixed`, which
 * the same test would require to be glass.
 *
 * THE BOX IS DECLARED UNPREFIXED, unlike `.k-col .k-filters__trigger` above.
 * That scoping is why the search route's copy of this row has a bare UA button
 * with no 44px target and no focus ring, and there is no reason to inherit the
 * defect: wherever this control renders, it brings its own box.
 */
.k-col__controls {
  display: flex;
  /*
   * J-42.4: the cells sit FLUSH and stretch to the row's full height, because
   * the divider between them is a cell's own leading border. A gap would put
   * daylight either side of every rule, and `align-items: center` would leave
   * each rule shorter than the row. Both are restored at 768, where F-02's
   * desktop row has neither dividers nor a full-height relationship.
   */
  align-items: stretch;
  /*
   * IT WRAPS TOO, AND LEAVING THIS OFF WAS A REAL DEFECT FOR ONE COMMIT.
   *
   * `flex-wrap` on `.k-col__meta` alone lets the result count drop to its own
   * line and does nothing for this group, which is itself a non-wrapping flex
   * container holding a 96px toggle and a 145.39px no-wrap trigger. Its
   * min-content is therefore about 253px, and the row's min-content went UP
   * rather than down: measured at a 188px viewport (375 CSS px at 200% zoom),
   * 229.45px before this run and 277.39px with the group added and only the row
   * wrapping. The run's own adversarial review caught the claim before the
   * record was signed.
   *
   * With both wrapping, the row's min-content is the widest single child plus
   * the gutters rather than the sum of all of them.
   */
  flex-wrap: wrap;
  gap: 0;
}

.k-col__columns {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}

/* An author `display` beats the UA `[hidden]` rule at any specificity. */
.k-col__columns[hidden] { display: none; }

/*
 * THE BOX IS .k-col__cell's NOW — J-42.4, RC-159. What stood here was the
 * outlined, numeral-bearing button of the two-button control: a full Ink
 * border on all four sides and an Ink/Snow fill inversion for the pressed
 * state. Both are withdrawn with the second button.
 *
 *   The four-sided border was the mark of a standalone control. In the
 *   reference's shape a control is a CELL in a strip, and its only rule is the
 *   divider on its leading edge. Two bordered boxes inside a bordered row read
 *   as a box in a box, which is what the first build of this looked like on
 *   staging.
 *
 *   The Ink/Snow inversion carried the pressed state visibly. One button has
 *   no "other" to contrast against, so an inversion would say nothing; the
 *   GLYPH carries the state instead, which is a shape rather than a colour and
 *   survives greyscale, forced colours and forced dark without a second rule.
 *   That also retires the `forced-colors` Highlight/HighlightText pair below,
 *   which existed only to keep that fill legible when the mode replaced it.
 *
 * `white-space: nowrap` goes too: there is no text left in the button.
 */
.k-col__columnsbtn { padding: 0 var(--k-space-3); }

/*
 * THE FOCUS RING IS .k-col__cell's NOW. The rule that stood here put the ring
 * OUTSIDE the box with a positive offset, and said why: an Ink outline drawn
 * on the pressed button's Ink fill would have been invisible. There is no fill
 * any more, so the dependency is gone and the cell's own zero-offset ring is
 * correct — a positive offset here would draw across the neighbouring cell's
 * divider and outside the row's own rules.
 */

/*
 * THE forced-colors BLOCK IS RETIRED — J-42.4, RC-159. It painted the pressed
 * button with the user's own Highlight / HighlightText pair, because under
 * `forced-colors: active` the user agent replaces `background` and `color` and
 * an Ink/Snow inversion became two identically painted buttons. There is one
 * button now and it carries no fill: the state is the GLYPH's shape, which
 * that mode does not touch, plus `aria-pressed`. Nothing is left for the rule
 * to rescue.
 */

/*
 * DESKTOP NEVER SHOWS IT. Declared in the base and undone at 768, the RC-72 /
 * RC-75 shape, so 767.99px cannot fall between two conditions and show a
 * control that governs nothing.
 */
@media (min-width: 768px) {
  /*
   * SCOPED TO `.k-col` FROM RUN 50, AND THE SCOPE IS THE WHOLE POINT.
   *
   * This rule hides the toggle where the COLLECTION's grid stops obeying it —
   * 768, where that grid becomes two-up for good. It was written when
   * `.k-col__columns` existed on one surface, so it named the class alone.
   *
   * The Collections Archive borrows this component and its grid changes shape
   * at 992, not 768. Unscoped, this rule hid the archive's toggle through the
   * whole 768–991 band while `data-kr-arch-columns` was still fully in
   * effect there: the single-column option J-47.2 grants did not exist at
   * 768 (an acceptance width), and a visitor who chose one-up on a phone and
   * then widened the window was left with one card per row and NO VISIBLE
   * CONTROL to revert it — the status region is inside this wrapper too, so
   * nothing announced the state either. Measured at 767/768/800/991/992.
   *
   * The collection's own row is inside `.k-col`, so its behaviour is
   * unchanged. RC-192.
   */
  .k-col .k-col__columns { display: none; }
}

/* ==========================================================================
   14.3 — the cadence
   --------------------------------------------------------------------------
   The POSITIONS are structural; the spacing between them is this sheet's.
   A slot with no content renders no element at all, so there is no rule here
   that could reserve space for one.
   ========================================================================== */
.k-col__group + .k-col__group { margin-top: var(--k-space-7); }

/* ==========================================================================
   14.4 — interstitial editorial
   "still or video, optional heading + short copy lower-left, separate
    mobile/desktop assets, 4:5 mobile and 16:9 desktop."
   ========================================================================== */
/*
 * THE RATIO IS ON THE WRAPPER AND THE CAPTION IS IN FLOW — RC-20, the same
 * decision home.css records for the 11.2 features and the 12.6 Vault
 * placement, applied here because 14.4 is the same overlay geometry.
 *
 * The caption used to be `position: absolute; bottom: 0` over a media box whose
 * `aspect-ratio` fixed the height, with no `max-height` and no `overflow`. At
 * 375 CSS px under 200% zoom the layout viewport is about 187px, the 4:5 media
 * box is about 234px tall, and `--k-space-9` of top padding plus a two-line M24
 * heading plus a wrapped R16 line plus `--k-space-6` of bottom padding is more
 * than that — so the caption grew upward out of `.k-col__editorial`, which had
 * no `overflow` of its own, and printed over the cards above it. §08 makes 200%
 * zoom a launch gate at all six acceptance widths, not only on the homepage.
 *
 * Adding a clip guard would have traded that for the failure home.css has just
 * removed: a scroll container inside an editorial block is unreachable in
 * WebKit (SC 2.1.1, 1.4.4) and an unnamed tab stop in Chrome (SC 4.1.2). So the
 * box grows instead. The ratio moves to the wrapper and the media fills it
 * absolutely; wherever the caption fits, the rendering is identical to what the
 * 4:5 and 16:9 rows of 14.4 specify, and `min-height: min-content` is only the
 * floor that stops the preferred ratio clipping what it cannot hold.
 *
 * `.k-col__editorialtext` keeps `position: relative` so it stays in the
 * positioned painting layer and its veil still paints over the media.
 */
.k-col__editorial {
  position: relative;
  margin: var(--k-space-9) 0;
  background: var(--k-surface-page);
  /* 14.4, stated in the clause: 4:5 mobile. */
  aspect-ratio: 4 / 5;
  min-height: min-content;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.k-col__editorialmedia {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.k-col__editorialmedia .k-hero__still { display: block; width: 100%; height: 100%; }

.k-col__editorialmedia img,
.k-col__editorialmedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--k-hero-focal-mobile, 50% 50%);
}

.k-col__editorialmedia video { position: absolute; inset: 0; }

@media (prefers-reduced-motion: reduce) {
  .k-col__editorialmedia video { display: none; }
}

@media (prefers-reduced-data: reduce) {
  .k-col__editorialmedia video { display: none; }
}

/*
 * 14.4: "lower-left".
 *
 * THE VEIL HOLDS ACROSS THE COPY AND FADES ONLY IN THE PADDING ABOVE IT, and
 * that is the whole reason for the calc().
 *
 * The previous rule was a two-stop `linear-gradient(to top, 62% Ink,
 * transparent)` under 96px of top padding. 62% at the very bottom edge is about
 * 5.4:1 against Snow over a white crop, which passes — but the first line of
 * copy sits at the TOP of the box, a third of the way down the gradient, where
 * the veil has already thinned to roughly 19% and the ratio is about 1.5:1. The
 * guarantee expired exactly where the text began. SC 1.4.3 needs 4.5:1 for the
 * R16 copy and 3:1 for the M24 heading as large text; §08 makes it a launch
 * gate.
 *
 * `calc(100% - var(--k-space-9))` is the top of the content box measured from
 * the bottom, because the top padding IS `--k-space-9`. So the veil is at full
 * strength everywhere text can be, and fades out only through the padding band
 * above the first line — whatever the copy's height turns out to be. Tie the
 * stop to the token, never to a guessed percentage, or a two-line heading
 * silently walks out of the guarantee.
 *
 * The colour pair is the governed per-crop tone, not a fixed Snow:
 * korotana_collection_interstitial() now emits `[data-korotana-tone]` on the
 * media for the same reason korotana_hero() does. Default is the LIGHT branch —
 * Snow veil, Ink copy — because that is korotana_hero_tone()'s own zero value
 * and a light crop is the worse case for Snow text.
 */
.k-col__editorialtext {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--k-space-3);
  padding: var(--k-space-9) var(--k-gutter-mobile) var(--k-space-6);
  color: var(--k-ink);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--k-snow) 86%, transparent) 0,
    color-mix(in srgb, var(--k-snow) 78%, transparent) calc(100% - var(--k-space-9)),
    transparent 100%
  );
}

.k-col__editorialmedia[data-korotana-tone="dark"] ~ .k-col__editorialtext {
  color: var(--k-on-surface-dark);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--k-ink) 80%, transparent) 0,
    color-mix(in srgb, var(--k-ink) 70%, transparent) calc(100% - var(--k-space-9)),
    transparent 100%
  );
}

.k-col__editorialheading,
.k-col__editorialcopy { margin: 0; max-width: var(--k-measure); }

@media (min-width: 768px) {
  /* 14.4, stated in the clause: 16:9 desktop. The ratio sits on the wrapper on
     both sides of the switch — see RC-20 above. */
  .k-col__editorial { aspect-ratio: 16 / 9; }

  .k-col__editorialmedia img,
  .k-col__editorialmedia video { object-position: var(--k-hero-focal-desktop, 50% 50%); }

  .k-col__editorialtext { padding-left: var(--k-gutter-desktop); padding-right: var(--k-gutter-desktop); }

  /* The desktop crop is the media beneath the caption above the switch. */
  .k-col__editorialmedia[data-korotana-tone-desktop="light"] ~ .k-col__editorialtext {
    color: var(--k-ink);
    background: linear-gradient(
      to top,
      color-mix(in srgb, var(--k-snow) 86%, transparent) 0,
      color-mix(in srgb, var(--k-snow) 78%, transparent) calc(100% - var(--k-space-9)),
      transparent 100%
    );
  }

  .k-col__editorialmedia[data-korotana-tone-desktop="dark"] ~ .k-col__editorialtext {
    color: var(--k-on-surface-dark);
    background: linear-gradient(
      to top,
      color-mix(in srgb, var(--k-ink) 80%, transparent) 0,
      color-mix(in srgb, var(--k-ink) 70%, transparent) calc(100% - var(--k-space-9)),
      transparent 100%
    );
  }
}

/* ==========================================================================
   Section 15 — the product card
   --------------------------------------------------------------------------
   The markup is inc/render-card.php's; every class below is one it emits.
   ========================================================================== */

/*
 * THE BASE GRID IS TWO-UP, AND IT IS NO LONGER THE COLLECTION'S.
 *
 * G-03 for desktop, and for the three surfaces that share this component and
 * that J-40 does not reach: the §51.5 Vault product listing, the §50.5 wishlist
 * and the §57.6 search results. The collection's own column count is set below,
 * scoped to `.k-col`, and overrides this at (0,2,0).
 *
 * minmax(0, 1fr), not 1fr: a plain 1fr track floors at min-content, so a card
 * containing a horizontal scroll track would widen its own column and the two
 * columns would stop being equal.
 *
 * align-items: stretch is 15.9's "Cards in the same row keep equal overall
 * height/text alignment" — with the media frame at a fixed ratio and the title
 * box reserving two lines, every card in a row is the same height by
 * construction rather than by a script measuring anything.
 */
.k-pcard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  /* DEFAULT, pending the §30.1 design-owner gate. F-01 measured the reference
     at 0 for the outer gutter, the column gap and the row gap alike; F-01's own
     conclusion is that adopting zero is a gate decision, not a consequence of
     the measurement, and KOROTANA already carries a mobile gutter. */
  column-gap: var(--k-space-3);
  row-gap: var(--k-space-5);
  padding: 0 var(--k-gutter-mobile);
}

/*
 * `.k-col__grid` IS THE OLD NAME AND IT SURVIVES ONLY AS AN ALIAS.
 *
 * It was the inline collection grid this rebuild replaced, and four preview
 * views that are not part of Appendix M step 7 — preview/account.php,
 * preview/commerce.php, preview/journal.php, preview/system.php — still emit
 * it. Dropping the selector would leave those four stacking full-width with no
 * error anywhere, which is exactly the failure mode the enqueue comment in
 * functions.php was written about. It carries the same two-up geometry so the
 * alias cannot drift from the thing it aliases, and it is deleted with the last
 * of those four views.
 *
 * J-40 DOES NOT REACH IT, AND THAT IS CORRECT RATHER THAN AN OVERSIGHT. The
 * thing it aliases is the BASE rule above, which is still two-up at every width;
 * the collection's one-up rule is a separate, `.k-col`-scoped rule below. None
 * of the four preview views that emit this class is a collection surface, so
 * none of them should move. `CollectionTest` reads `.k-col__grid` as UNSCOPED
 * for exactly this reason — the negative lookahead in its scope test rejects
 * `.k-col__`, so the alias still owes two columns.
 */
.k-col__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  column-gap: var(--k-space-3);
  row-gap: var(--k-space-5);
  padding: 0 var(--k-gutter-mobile);
}

/*
 * J-40 — ONE PRODUCT PER ROW ON THE COLLECTION BELOW 768, AND THE WAY BACK.
 *
 * THE SHAPE IS THE ONE RC-72 / RC-75 SETTLED, and it is not an aesthetic
 * choice. `(max-width: 767.98px)` and `(min-width: 768px)` between them leave
 * 767.99px matching NEITHER — reachable by fractional browser zoom — so the
 * mobile behaviour is declared in the BASE rule and undone at
 * `min-width: 768px`, which is also the only breakpoint system this file has
 * and an inclusive start in v4.0 §04. Nothing here introduces a second one.
 *
 * THE TOGGLE'S STATE IS AN ATTRIBUTE ON THE DOCUMENT ELEMENT, not a class on
 * the grid and not an inline style, and each of those three was ruled out by
 * something real. A class on the grid widens `CollectionTest`'s own container
 * discovery, which reads the rendered markup, and reds a second test that pins
 * the literal `class="k-pcard-grid"`. An inline style is refused on a card by
 * another test in the same file. And a collection page renders SEVERAL grids —
 * one per §14.3 cadence group — so the state has to live above all of them for
 * one control to move them together.
 *
 * IT IS THE DOCUMENT ELEMENT RATHER THAN `.k-col` FOR ONE REASON: the flag is
 * written by a blocking script in the head, before `.k-col` exists, so a
 * remembered two-up choice is in force at FIRST PAINT and there is no reflow
 * from one column to two after the page has drawn (60.3 LOCKED, CLS <= 0.1).
 * That is the same direction of enhancement `korotana_pdp_script_flag()` runs
 * in, and for the same reason.
 *
 * AT 768 AND ABOVE THE ATTRIBUTE HAS NO EFFECT AT ALL. The reset names both
 * selectors so a state left behind by a narrower viewport — a rotated phone, a
 * resized window — cannot leak a one-up or a two-up decision into the desktop
 * grid G-03 governs.
 */
.k-col .k-pcard-grid { grid-template-columns: minmax(0, 1fr); }

:root[data-kr-card-columns="2"] .k-col .k-pcard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .k-col .k-pcard-grid,
  :root[data-kr-card-columns="2"] .k-col .k-pcard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.k-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- Media -------------------------------------------------------------- */
.k-pcard__media { position: relative; }

/*
 * 15.4: "Mobile and desktop use restrained drag/swipe only, no arrows. Mobile
 * shows no dots, pagination or 'peek' of the next image."
 *
 * The track is a real scroll container, which is what makes the gesture
 * available to a pointer, a trackpad and a touch screen without an
 * author-implemented drag — WCAG 2.2 SC 2.5.7 is satisfied by user-agent
 * functionality. Each slide is exactly 100% wide, so there is no peek by
 * construction and not by a rule that could be overridden.
 *
 * The scrollbar is suppressed because it is the only chrome the container would
 * otherwise show and 15.4's whole instruction is that the card shows none. The
 * track keeps its tab stop, its accessible name and its arrow keys
 * (assets/js/collection.js), so nothing that suppression removes is the only
 * route to an image.
 *
 * The axis rule is the NEXT rule, and it is deliberately not in this one.
 */
/*
 * AND THE OTHER AXIS IS DECLARED, BECAUSE CSS DECLARES IT FOR YOU OTHERWISE.
 *
 * CSS Overflow 3 §3.2: where one of overflow-x/overflow-y is not `visible`, a
 * `visible` value on the other computes to `auto`. So a container written as
 * `overflow-x: auto` alone is a scroll container on BOTH axes, and the only
 * thing keeping it from scrolling vertically is that nothing happens to
 * overflow. Something did: RC-32 records the 56px of vertical overflow the
 * per-slide placeholder caption introduced, and the axis rule below then handed
 * the user agent a vertical axis it spent on the images instead of the page.
 * The caption is out of the track now and the overflow is gone, and the
 * declaration says which axis this container is FOR, so the next thing that
 * grows a pixel inside it cannot silently reopen the same defect.
 *
 * `hidden` and not `clip`: the acceptance matrix includes real iPhone Safari
 * (08) and `overflow: clip` only reaches it at Safari 16, while `hidden` has
 * always been there. The distinction does not matter here — with no vertical
 * overflow to scroll, a vertical pan chains to the page, which is the point.
 *
 * THE DECLARATIONS STAY IN THE RULE AND THE PROSE STAYS OUT OF IT. This
 * explanation was written inside the block, and `CardTest`'s guard on an
 * unbound track reads from `.k-pcard__track {` to the first `}` — so a comment
 * naming the axis property defeated a real assertion. The file's convention is
 * a block above the rule, and the convention is load-bearing.
 */
.k-pcard__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/*
 * THE AXIS RULE, AND IT IS A RULE ABOUT THE PAGE.
 *
 * Owner report: "Card images drag in every direction. They must only move
 * sideways." A touch that begins on a bound track may pan the page vertically
 * and may do nothing else — the user agent owns that axis outright and keeps it
 * for the whole gesture, so a diagonal drag can no longer move the carousel and
 * scroll the page at once and leave a frame stranded half on screen. A stranded
 * frame is the "peek" 15.4 forbids, reached by accident rather than by design.
 *
 * WHAT IT COSTS. `pan-y` also takes the HORIZONTAL half away from the user
 * agent: the browser will not scroll this container sideways from a touch, so
 * `collection.js` implements that half for every pointer rather than for the
 * mouse alone. That moves the gesture out of WCAG 2.2 SC 2.5.7's "determined by
 * the user agent and not modified by the author" exception —
 * `docs/governing/resolved-conflicts.md` RC-28 records the conflict, what
 * answers it without adding a control 15.4 forbids, and the real-device check
 * that has to confirm it. Wheel and trackpad scrolling are not governed by
 * `touch-action` and are unchanged.
 *
 * WHY THE ATTRIBUTE AND NOT THE ELEMENT. `data-card-drag="on"` is written by
 * `collection.js` when it binds the gesture and removed when it unbinds, so the
 * only tracks that lose the horizontal axis are the ones something is holding
 * it for. That matters on two live surfaces and would be a real defect on both:
 * `functions.php` enqueues this stylesheet on a single product for the §15
 * recommendation rail but does NOT enqueue `collection.js` there, and 3.6
 * requires the card to survive with no scripting at all. Declared on the
 * element, `pan-y` would disable a horizontal gesture nothing implements and
 * the rail's frames 2 and 3 would be unreachable by touch. Declared here, those
 * tracks keep the user agent's own scrolling, which is what they had.
 *
 * One-image tracks never carry it either: `overflow-x: hidden` below is their
 * whole answer (15.4), and there is no axis to arbitrate.
 */
.k-pcard__track[data-card-drag="on"] { touch-action: pan-y; }

/*
 * THE SNAP IS SUSPENDED FOR THE LENGTH OF A HORIZONTAL DRAG, AND ONLY THAT.
 * RC-37, and it is the rule that makes 15.4's "drag" a drag.
 *
 * `scroll-snap-type: x mandatory` above is not, as the rule below it used to
 * assume, a promise about scrolls the USER AGENT drove. CSS Scroll Snap §5
 * requires the container to rest on a snap position whenever no scrolling
 * operation is in progress, and a `scrollLeft` assignment is not a scrolling
 * operation — it completes instantly, so the engine re-snaps it on the spot.
 * Measured on the real /men/ at 390, frame width 177: every offset this file
 * wrote was read straight back as the snap's own answer.
 *
 *   wrote 10 20 40 60 80 88 -> read back 0     (all of them)
 *   wrote 89 100 120 150 177 -> read back 177  (all of them)
 *
 * With `scroll-snap-type: none` the same eleven writes each survived exactly.
 * So under the mandatory rule the frame could not follow a finger or a cursor
 * at all: it sat still for the first half of the gesture and teleported a whole
 * frame at the midpoint. That is not a restrained drag, and below the midpoint
 * it is no movement whatsoever — which is the owner's report.
 *
 * SUSPENDED, NOT REMOVED, AND NEVER AT REST. `collection.js` writes this
 * attribute only once a gesture has LATCHED the horizontal axis and clears it
 * before it settles, so the mandatory rule is in force at every moment the user
 * is not actively dragging. It is what settles the wheel, the trackpad and the
 * arrow keys; it re-snaps the instant the finger lifts; and it is still the
 * thing that guarantees 15.4's "no peek" — a track can no more rest between two
 * frames than it could before. What it no longer does is arbitrate a gesture
 * that is still in the user's hand.
 *
 * An attribute and not an inline style, for the reason the rule above gives:
 * the trade is confined to tracks this file's script is holding, it is visible
 * to a browser that is asked about it, and the value stays in the stylesheet.
 */
.k-pcard__track[data-card-dragging="x"] { scroll-snap-type: none; }

.k-pcard__track::-webkit-scrollbar { display: none; }

.k-pcard__track:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

/* One-image cards disable swipe (15.4). */
.k-pcard__track[data-card-swipe="false"] { overflow-x: hidden; }

.k-pcard__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

/* A hidden colourway must stay hidden: the flex rule above would otherwise
   defeat the UA's [hidden] display:none and every set would stack. */
.k-pcard__slide[hidden] { display: none; }

.k-pcard__slidelink { display: block; height: 100%; }

/*
 * THE BASE RATIO IS STILL F-01'S TWO REGIMES, AND AFTER J-41.1 IT GOVERNS
 * EVERY CARD SURFACE EXCEPT THE COLLECTION.
 *
 * F-01, measured: media frame ratio 4:5 (0.8000) at 1440, 1280 and 768; 1:1 at
 * 430. The switch between the two regimes was not measured — the reference's
 * own boundary lies somewhere in (430, 768] and 390 and 375 were never read at
 * all — so it is placed at 768, the nearest inclusive breakpoint start in v4.0
 * §04, rather than at a width nothing governs. DEFAULT until §30.1.
 *
 * The §50.5 wishlist, the §57.6 search results, the §51.5 Vault listing and the
 * §24 discovery rail all render this same card and all still read this rule.
 * The collection does not: J-41.1 moved it, and only it, to one ratio at every
 * width — see `.k-col .k-pcard__frame` below.
 */
.k-pcard__frame,
.k-pcard__empty {
  aspect-ratio: 1 / 1;
  /* F-01: "Media frame background rgba(0,0,0,0) — the page ground shows
     through." */
  background: transparent;
  overflow: hidden;
}

/*
 * J-41.1 — THE COLLECTION CARD IS 4:5 AT EVERY WIDTH.
 *
 * Owner ruling, Husnain, 1 October 2026, after looking at the one-per-row
 * collection on staging: "the square isn't what I would want, so change it to
 * 4:5 — I think 4:5 is close to what Suitsupply has." That closes K-55, which
 * Run 41 raised with exactly these three options and measured the reference at
 * 5:6 (0.83334); 4:5 is 0.800, a 4% divergence, and the owner's generator
 * cannot produce 5:6 without a crop he has ruled out.
 *
 * IT SUPERSEDES TWO THINGS AND BOTH ARE NAMED. §14.5 disowns 4:5 as a card
 * ratio ("not by the old generic 4:5 grid rule"), and F-01 MEASURED the
 * approved Louis Vuitton reference at 1:1 on a 430px phone. Under §1.4 the
 * permitted category for departing from a measured reference is "a later
 * explicit owner ruling", which is what this is. RC-150.
 *
 * ONE DECLARATION, NO BREAKPOINT PAIR. The frame is now the same shape at 375
 * as at 1440, so there is no switch width to place and no 767.99px gap of the
 * kind RC-72 / RC-75 exist to avoid. The 768 override below is left in place
 * because it is still the rule for every OTHER card surface.
 *
 * SCOPED TO `.k-col`, THE SAME ROOT J-40's ONE-PER-ROW RULE IS SCOPED TO. The
 * wishlist, the search results and the Vault listing render the same component
 * outside `.k-col` and are registered as K-56; the §24 rail renders it on the
 * PDP and inherits the base rule by design (rail.css). The owner ruled on the
 * collection, so the collection is what moves.
 *
 * (0,2,0) beats the base rule's (0,1,0) at every width, which is the same
 * mechanism RC-139 used to win against `.woocommerce img` and the same shape
 * `.k-col .k-pcard-grid` already uses for the column count.
 */
.k-col .k-pcard__frame,
.k-col .k-pcard__empty {
  aspect-ratio: 4 / 5;
}

/*
 * F-01, measured: `object-fit: contain`, `object-position: 50% 0%` — "no crop,
 * no stretch, a square subject top-aligned in a taller frame over the page
 * ground". §02 forbids stretched media outright, and 15.2 forbids passing a
 * recropped PDP export off as a card composition, so the browser crops nothing.
 */
/*
 * THE CLASS IS WRITTEN TWICE — Run 39 CP2, RC-139, reason in full beside
 * `.k-frame` in product.css.
 *
 * THIS ONE WAS THE WORST OF THE THREE, and it was live. The selector was a
 * single class, (0,1,0), against `.woocommerce img`'s (0,1,1) — so it lost on
 * SPECIFICITY, not on load order, and reordering the stylesheets would not
 * have saved it. On /men/ and /women/ nothing was wrong, because those routes
 * are ordinary WordPress pages and carry no `woocommerce` body class; on the
 * PRODUCT page, which carries both, the §15 recommendation rail's cards were
 * measurably broken in the browser: a 3:2 source covered 53.6% of its 4:5
 * card frame and a square source 80%, with the remainder showing beneath.
 * Nobody had reported it. (0,2,0) beats (0,1,1) and settles it.
 */
.k-pcard__image.k-pcard__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 0%;
}

/* 50.3 LOCKED (J-12): "top-right of the collection-card image". It sits over
   the media but outside the scroll track, so a drag never starts on it. */
.k-pcard__wish {
  position: absolute;
  top: 0;
  right: 0;
  z-index: var(--k-z-content);
}

/* --- Body --------------------------------------------------------------- */
.k-pcard__bodylink {
  display: block;
  color: inherit;
  text-decoration: none;
  /* F-01 records the reference's image-to-text relationship as a bottom anchor
     rather than a gap, and concludes there is "no single image-to-text spacing
     value in the reference to copy". 15.9's equal height and shared text
     alignment are met by the fixed frame and the reserved title box instead, so
     this is a governed rhythm value, DEFAULT until §30.1. */
  margin-top: var(--k-space-3);
}

.k-pcard__body { display: flex; flex-direction: column; gap: var(--k-space-1); }

/*
 * v4.0 §08: "Product cards — Title maximum 2 lines; do not shrink font to save
 * a third line", and §13 WRAP-01 makes it an acceptance item. The clamp is the
 * whole implementation of that rule; the font is untouched.
 *
 * The box RESERVES both lines whether or not the name needs them, so a
 * one-line and a two-line name put their prices on the same line across a row
 * (15.9) and nothing moves when a font finally loads (§08, 60.3).
 */
/* The reserved two-line box follows the TITLE'S OWN line-height. It was
   calc(var(--kr-r14-line) * 2) — 42px — while the title was .kr-r14. F-14 moved
   the product-card title to B14 (RC-24), whose line is 18px, so the old figure
   reserved 6px of empty space under every one-line name and put the prices of a
   one-line and a two-line card on different lines, which is the one thing 15.9
   asks this rule to prevent. It is --kr-b14-line for the same reason it was
   --kr-r14-line: it is the line-height of the type that sits in the box. */
.k-pcard__name {
  margin: 0;
  min-height: calc(var(--kr-b14-line) * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* v4.0 §06 "Product-card price | R14 | No-wrap" and §08 "Prices — No-wrap.
   Keep currency and amount together." */
.k-pcard__price { margin: 0; white-space: nowrap; }

/* 15.9: "Discounted products show struck-through original price + primary
   reduced price." WooCommerce emits the <del>/<ins> pair; this is the only
   thing that has to be true about it — the struck price must not read as the
   one being charged. Never colour alone (§02): the strike-through carries it. */
.k-pcard__price del { color: var(--k-graphite); margin-right: var(--k-space-2); }
.k-pcard__price ins { text-decoration: none; }

.k-pcard__state,
.k-pcard__availability { margin: 0; color: var(--k-graphite); }

/* K-216. An author `display` beats the UA `[hidden]` rule at any specificity,
   and the 768 block below sets one on both of these. On a colour-partitioned
   article the swatch row can move the card to a 46.1 row that has no word or
   no figure, and the element then has to collapse exactly as an absent one
   would — no empty box, no reserved space. */
.k-pcard__state[hidden],
.k-pcard__availability[hidden] { display: none; }

/*
 * 15.5: "Mobile visible card information is Product name + Price only."
 * 15.6 adds pre-order state, edition availability and colour on desktop.
 *
 * Both sets are in every response and CSS chooses, because the collection is
 * served from a full-page cache and a server-side viewport guess would hand one
 * viewport's markup to the next visitor on the other. `display: none` and not a
 * visually-hidden treatment: 15.5 says what the mobile card CONTAINS, so
 * announcing the desktop metadata to a mobile screen-reader user would make the
 * two experiences differ in the opposite direction.
 */
.k-pcard__state,
.k-pcard__availability,
.k-pcard__swatches { display: none; }

/* --- Swatches (15.6, 15.7) ---------------------------------------------- */
.k-pcard__swatchlabel { color: var(--k-graphite); }

.k-pcard__pending { color: var(--k-graphite); margin: var(--k-space-2) 0 0; }

/*
 * THE 15.2 MARKER LEFT THE PHOTOGRAPH — Q-20, J-16.4, RC-53 (was RC-32's
 * opaque band across the foot of the media box).
 *
 * The owner ruled the composition marker out of the image: it now renders in
 * flow, below the price, as `.k-pcard__pending--composition` on the shared
 * pending-note rule above. RC-32's substance is intact and is now stronger:
 * the marker is one per card, and it is no longer inside .k-pcard__media at
 * all, so the media box, the scroll track and every slide are byte-identical
 * with and without it — the overflow-y trap it once caused cannot recur from
 * here. The card grows by exactly this one line, off production only, which
 * is the shape Q-20 offered and the owner accepted; every card in a row
 * carries the same line, so 15.9's equal rows hold.
 */
.k-pcard__pending--composition { overflow-wrap: anywhere; }

/*
 * Run 12 CP2 (RC-50): the empty card frame's review label, absolutely inside
 * the frame's own governed geometry so 15.9's rows and the card height are
 * untouched by the labelling.
 */
.k-pcard__emptyreview {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: var(--k-space-2);
  display: flex;
  flex-direction: column;
  gap: var(--k-space-1);
  text-align: left;
  overflow-wrap: anywhere;
}
.k-pcard__emptyreview > p { margin: 0; }

/* The once-per-page F-01 note above the first card grid (RC-50). */
.k-pcard-grid__reviewnote {
  color: var(--k-graphite);
  margin: 0 0 var(--k-space-3);
  padding: 0 var(--k-gutter-mobile);
}
@media (min-width: 768px) {
  .k-pcard-grid__reviewnote { padding: 0 var(--k-gutter-desktop); }
}

@media (min-width: 768px) {
  .k-pcard-grid,
  .k-col__grid {
    column-gap: var(--k-space-4);
    row-gap: var(--k-space-7);
    padding: 0 var(--k-gutter-desktop);
  }

  /* F-01, measured at 1440, 1280 and 768. Still the rule for the wishlist,
     the search results, the Vault listing and the §24 rail; the collection's
     own ratio is J-41.1's `.k-col`-scoped one and is the same figure here. */
  .k-pcard__frame,
  .k-pcard__empty { aspect-ratio: 4 / 5; }

  .k-pcard__state,
  .k-pcard__availability { display: block; }

  .k-pcard__swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--k-space-2);
    margin-top: var(--k-space-2);
  }
}

/*
 * 15.8: "Desktop adds no decorative hover animation beyond cursor/required
 * control states." There is deliberately no hover rule on the card, its media
 * or its body anywhere in this sheet. The cursor and the control states are the
 * only permitted change and they come from the primitives.
 */

/* ==========================================================================
   Section 16 — Filter & Sort, from F-02
   ========================================================================== */

/*
 * The trigger. v4.0 §06: "Filter / Sort labels | M14 | Source case; no-wrap",
 * so .kr-m14 supplies the type and nothing here touches it. It deliberately
 * does not carry the pre-V6 .k-filterbtn, whose rule is the withdrawn
 * --k-type-micro scale with text-transform: uppercase; the 44px box (40.5) and
 * the focus ring (§08) that class also carried are declared here instead, so
 * dropping it costs nothing.
 */
/*
 * SCOPED TO THE WORDED FORM — J-42.4, RC-159. The collection's trigger is the
 * funnel cell now and takes its box from `.k-col__cell`; this outlined,
 * 44px-tall worded button is what the search route still renders, and what
 * this rule still has to supply there. `:not()` rather than a new class on the
 * worded form, so the search route's markup is byte-identical to what it was.
 */
.k-col .k-filters__trigger:not(.k-filters__trigger--icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--k-touch-min);
  min-width: var(--k-touch-min);
  padding: 0 var(--k-space-4);
  background: transparent;
  color: var(--k-ink);
  border: var(--k-hairline) solid var(--k-ink);
  border-radius: var(--k-radius-none);
  white-space: nowrap;
  cursor: pointer;
}

.k-col .k-filters__trigger:not(.k-filters__trigger--icon):focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

/*
 * The panel.
 *
 * F-02, measured: a 375px LEFT flyout at 1440, 1280 and 768; a full-screen
 * sheet at 430, 390 and 375. The switch is placed at 768 — the boundary the
 * measurement brackets, and an inclusive breakpoint start in v4.0 §04, so no
 * second breakpoint system is introduced.
 *
 * .k-sheet (components.css) already supplies fixed/inset-0, the column layout,
 * the raised surface and --k-z-sheet, and components.js already supplies the
 * dialog behaviour — inert background, Escape, focus return to the trigger. No
 * second modal implementation is introduced here.
 */
.k-filters { max-width: 100%; }

/*
 * F-02: "Panel open transition — transform 0.85s cubic-bezier(0.19, 1, 0.22,
 * 1)". An animation rather than a transition, because the panel opens by
 * losing [hidden] and a transition has no start value across a display change.
 * §08 and F-02's own note: the reference does not honour reduced motion and
 * KOROTANA must, so the whole animation is inside the no-preference branch and
 * the panel simply appears when motion is reduced.
 */
@media (prefers-reduced-motion: no-preference) {
  @keyframes k-filters-in {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }

  .k-filters { animation: k-filters-in 0.85s cubic-bezier(0.19, 1, 0.22, 1); }
}

/* F-02: close control 22 × 22, 16 from the panel right, 24 from the panel top. */
.k-filters__head {
  padding: var(--k-space-5) var(--k-space-4);
  align-items: flex-start;
}

/* F-02: "Panel title inset from panel left: 20" at every width measured. 20 is
   on the governed 4px scale but has no single token, so it is composed from
   two rather than introduced as a third. */
.k-filters__title { margin: 0; padding-left: var(--k-space-1); }

.k-filters__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.k-filters__body { padding: 0; min-height: 0; }

.k-filters__group { border-bottom: var(--k-border-hairline); }

/*
 * F-02: "Groups are an accordion — opening one collapses the previously open
 * one", with a plus icon when collapsed and a minus when expanded, 22 × 22 and
 * inset 16 from the panel right. <details>/<summary> carries the state, the
 * keyboard operation and the announcement with no script; collection.js adds
 * only the single-open coordination.
 *
 * The icon is drawn from currentColor rather than shipped as a glyph or an
 * asset, so it inherits the control's colour in every state and adds no request.
 */
.k-filters__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--k-space-4);
  box-sizing: border-box;
  min-height: var(--k-touch-min);
  padding: var(--k-space-4) var(--k-space-4);
  padding-left: calc(var(--k-space-4) + var(--k-space-1));
  cursor: pointer;
  list-style: none;
}

.k-filters__summary::-webkit-details-marker { display: none; }

.k-filters__summary::after {
  content: "";
  flex: 0 0 auto;
  width: var(--k-icon);
  height: var(--k-icon);
  background:
    linear-gradient(currentColor, currentColor) center / 100% var(--k-hairline) no-repeat,
    linear-gradient(currentColor, currentColor) center / var(--k-hairline) 100% no-repeat;
}

.k-filters__group[open] > .k-filters__summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% var(--k-hairline) no-repeat;
}

.k-filters__summary:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: calc(-1 * var(--k-focus-offset));
}

.k-filters__options { padding: 0 var(--k-space-4) var(--k-space-4); }

/*
 * F-02, measured and reproduced exactly: option row height 21, row pitch 53,
 * "derived spacing between option rows 32". A 21px text line — which is the
 * M14 line-height the label already carries — inside 16px of block padding is
 * 53px of pitch with the rows adjacent, so the reference's rhythm and
 * KOROTANA's 44px hit target (40.5, above SC 2.5.8's floor) are the same box
 * rather than two competing ones.
 */
.k-filters__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--k-space-3);
  box-sizing: border-box;
  min-height: var(--k-touch-min);
  padding: var(--k-space-4) 0;
  cursor: pointer;
}

/*
 * F-02: "Native inputs are appearance: none; the visible mark is a separate
 * icon", and "Selected state is carried by the icon only — the label's colour,
 * weight and decoration do not change." That is already §02's rule (colour
 * alone cannot carry status) and v4.0 §11's (a state change never alters
 * font-size, line-height or tracking), so it is kept exactly.
 *
 * The input stays in the accessibility tree and in the tab order; only its
 * painted box is suppressed. Its focus ring is drawn on the mark, or the
 * control would be operable and invisible (§08 "visibly focusable").
 */
.k-filters__input {
  position: absolute;
  width: var(--k-hairline);
  height: var(--k-hairline);
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.k-filters__mark {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: var(--k-space-4);
  height: var(--k-space-4);
  border: var(--k-hairline) solid var(--k-border-control);
  background: var(--k-surface-raised);
}

.k-filters__mark--radio { border-radius: var(--k-radius-round); }

/* Shape, not only colour: an empty box becomes a filled box (§02, §08). */
.k-filters__input:checked + .k-filters__mark {
  border-color: var(--k-ink);
  background: var(--k-ink);
  box-shadow: inset 0 0 0 var(--k-focus-offset) var(--k-surface-raised);
}

.k-filters__input:focus-visible + .k-filters__mark {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

.k-filters__label { flex: 1 1 auto; }

.k-filters__count { flex: 0 0 auto; color: var(--k-graphite); }

/* F-02: footer inset 16 from the panel sides and 16 from the panel bottom;
   button gap 8. The measured 38px button height is NOT adopted: 40.5 sets the
   KOROTANA target at 44px and §08 makes WCAG 2.2 AA a launch gate, which §1.4
   admits as a category of departure. .k-btn keeps its box. */
.k-filters__foot {
  gap: var(--k-space-2);
  padding: var(--k-space-4);
  padding-bottom: calc(var(--k-space-4) + env(safe-area-inset-bottom));
}

.k-filters__clear,
.k-filters__apply { flex: 1 1 0; }

/*
 * Section 10: the dock "hides as soon as footer begins entering viewport" and
 * chrome.css already hides it under body.k-panel-open. The filter sheet is the
 * other full-height dialog on this route and components.js flags it with its
 * own body class, so the dock must not sit on top of that one either. 16.5 and
 * G-05 are unaffected: the trigger was never in the dock.
 */
body.k-sheet-open .k-dock { display: none; }

/*
 * THE BACKGROUND DOES NOT SCROLL UNDER THE OPEN PANEL.
 *
 * F-02 measured the lock at all six §08 widths — "Body scroll while open:
 * overflow: hidden (locked)", repeated in its proposed-values table as "Scroll
 * lock while open | yes" — and §16.2 puts the panel's opening and responsive
 * behaviour inside Off-White's jurisdiction, which §0.5 P3 makes binding absent
 * a higher rule. It is also the house pattern already ruled elsewhere: 41.1
 * LOCKED requires "body scroll locked" for the equivalent full-height Menu
 * overlay. And below 768 the panel is a full-screen fixed sheet, so without it
 * an `aria-modal` dialog sits over a collection the customer's gesture is still
 * moving — an §08 failure as well as a divergence.
 *
 * KEYED ON THE CLASS components.js ALREADY SETS, so nothing new has to be
 * toggled and the size surface and the menu get the same treatment on this
 * route for free. The rule belongs beside the `.k-sheet` block in
 * components.css so every sheet on every route inherits it once instead of
 * per-route; that file is outside this run's file set, and this sheet already
 * owns a `body.k-sheet-open` rule, so it is declared here and the move is
 * reported rather than done silently.
 */
body.k-sheet-open { overflow: hidden; }

@media (min-width: 768px) {
  /* F-02, measured: a 375px flyout on the LEFT at 1440, 1280 and 768. */
  .k-filters {
    right: auto;
    width: 375px;
    max-width: 100vw;
    border-right: var(--k-border-hairline);
  }
}

/* ==========================================================================
   Empty states
   ========================================================================== */
.k-col__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--k-space-5);
  padding: var(--k-space-9) var(--k-gutter-mobile);
}

.k-col__emptytext { margin: 0; max-width: var(--k-measure); color: var(--k-graphite); }

/* 42.x: breathing room before the footer. */
.k-col__footergap { height: var(--k-space-9); }

@media (min-width: 768px) {
  /*
   * J-42.5: the two rules that stood here — `.k-col > .k-col__head { display:
   * flex }` and `.k-col .k-col__title { padding: 0 }` — were J-41.2's, and
   * both existed to UNDO the mobile containing-block trick at 768. With the
   * sticky gone the trick is gone, the head is a flex box at every width, and
   * there is nothing left here to undo. F-02's desktop row is untouched by any
   * of it: the heading, the count and the trigger still share one line.
   */
  .k-col__head { padding-left: var(--k-gutter-desktop); padding-right: var(--k-gutter-desktop); }

  /* F-02: on desktop and tablet the heading, the count and the trigger share
     one row — heading and count on the left, trigger pinned right. */
  .k-col__title { flex: 0 1 auto; }

  /*
   * THE UNDO IS UNSCOPED, AND THAT IS A REPAIR RATHER THAN A STYLE CHOICE.
   *
   * The base `.k-col__meta` rule carries the MOBILE bleed and padding, and
   * `inc/render-search.php` builds a `.k-col__meta` too. This block was
   * briefly re-scoped to `.k-col` along with the new shape, which took the
   * search route's desktop reset away with it: measured on staging, the search
   * row at 768, 1280 and 1440 kept `margin-inline: -12px` and
   * `padding: 12px`, so it rendered at x 28 inside a 40px gutter and 24px
   * taller than it should be. The row's SHAPE is the collection's; the undo of
   * the base rule's own mobile declarations belongs to every surface that
   * inherits it.
   */
  .k-col__meta {
    flex: 1 1 auto;
    margin-inline: 0;
    padding: 0;
    /* F-02: "Gap, trigger bottom → grid top: 20". */
    margin-bottom: calc(var(--k-space-4) + var(--k-space-1));
  }

  /*
   * AND THE NEW SHAPE COMES OFF, scoped the way it went on. J-42.4 is the
   * owner's ruling about the MOBILE row — his reference was measured at 324
   * CSS px and his screenshot is a phone. Desktop keeps F-02's measured
   * one-line relationship exactly as it was.
   */
  .k-col .k-col__meta {
    border: 0;
    gap: var(--k-space-4);
  }

  /* The count's leading padding and the cells' dividers are the mobile row's. */
  .k-col .k-col__meta > .k-col__count { padding-inline-start: 0; }

  /*
   * FROM 768 THE ROW IS F-02's AGAIN, so the cells stop being cells: no
   * divider, no stretch, and the filter goes back to the outlined worded
   * button it has always been on this surface. J-42.4 is a ruling about the
   * MOBILE row and nothing above this width is in its scope.
   */
  /* Scoped from Run 50: see the note on `.k-col .k-col__columns` above. The
     archive's control row keeps its stretched cells and its divider at every
     width, because its row is two compact controls rather than this one. */
  .k-col .k-col__cell {
    align-self: auto;
    border-inline-start: 0;
  }

  .k-col__controls { align-items: center; flex-wrap: wrap; gap: var(--k-space-3); }

  /*
   * The word returns and the glyph goes — ON THE COLLECTION. Scoped from
   * Run 50: these two rules are unscoped no longer, because the BOX that
   * should come back with the word is `.k-col`-scoped just below. On the
   * archive they produced, from 768 up, a borderless and icon-less text
   * string reading "Filter & Sort" sitting next to the archive's own body
   * text — the only control for filtering the listing, with no affordance at
   * all. Measured: `border: 0px none`, icon `display: none`, word visible.
   *
   * The archive therefore keeps the FUNNEL at every width, which is the face
   * its row was built around: two compact controls beside a count, not the
   * collection's measured heading row. RC-192.
   */
  .k-col .k-filters__trigger--icon .k-filters__triggerword {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
  }

  .k-col .k-filters__trigger--icon .k-icon { display: none; }

  /* ...and with the word back, so is the box the worded trigger carries. */
  .k-col .k-filters__trigger--icon {
    min-height: var(--k-touch-min);
    min-width: var(--k-touch-min);
    padding: 0 var(--k-space-4);
    border: var(--k-hairline) solid var(--k-ink);
    border-radius: var(--k-radius-none);
    white-space: nowrap;
  }

  .k-col .k-filters__trigger--icon:focus-visible {
    outline: var(--k-focus-ring) solid var(--k-ink);
    outline-offset: var(--k-focus-offset);
  }

  /* 57.7's shared empty state is `korotana_empty_state( 'collection' )`, whose
     own rule in primitives.css carries the mobile gutter only. On this route it
     has to line up with the grid it replaces. */
  .k-col__empty,
  .k-col > .k-empty { padding-left: var(--k-gutter-desktop); padding-right: var(--k-gutter-desktop); }

  .k-col__pending,
  .k-col .k-hero__pending,
  .k-col .k-hero__note { padding-left: var(--k-gutter-desktop); padding-right: var(--k-gutter-desktop); }
}
