/*
 * Site chrome — DNA V6 Section 10 (dock, menu, search, cart drawer),
 * Section 40 (header, wordmark, announcement bar), Section 41 (navigation),
 * Section 42 (footer) and Section 43 (cart).
 *
 * KOROTANA-ORIGINAL (Appendix A, G-07): "No external reference may be
 * introduced" for the header, footer, checkout, account, Vault, support,
 * archive or Brand Facts. Nothing here replicates a reference surface.
 *
 * Tokens only. Every dimension is either V6-stated (and tagged DEFAULT in
 * tokens.css) or LOCKED. Typography comes from the Closed Spec v4.0 classes —
 * .kr-m12 on the announcement bar (owner ruling J-13.1), .kr-nav-primary and
 * .kr-nav-utility on the header (v4.0 §06), .kr-footer-heading / .kr-footer-link
 * / .kr-footer-legal on the footer — so no font-size, line-height, tracking or
 * weight is declared in this file at all. If you find one here, it is a bug.
 */

/* ==========================================================================
   40.1–40.3 ANNOUNCEMENT BAR
   ========================================================================== */

/*
 * 40.2: "The bar height is fixed per breakpoint so rotation causes zero layout
 * shift." That is what the grid does: every message occupies the SAME cell, so
 * changing which one is opaque cannot change the bar's height. A message that
 * would wrap is rejected by CMS validation (40.2), and overflow:hidden here
 * means a message that slipped through still cannot grow the bar.
 */
.k-announce {
  position: relative;
  z-index: var(--k-z-header);
  height: var(--k-announce-h-mobile);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 var(--k-gutter-mobile);
  /* 40.3: "Background and text use the governed dark surface tokens at AA
     contrast." --k-on-surface-dark is contrast-validated against --k-surface-dark. */
  background: var(--k-surface-dark);
  color: var(--k-on-surface-dark);
  /* 40.3: "On pages where the header is transparent over media, the bar
     remains solid." It has no transparent state, so this is structural. */
}

.k-announce__track { display: grid; place-items: center; width: 100%; }

.k-announce__msg {
  grid-area: 1 / 1;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0;
  /*
   * visibility, not opacity alone. A message at opacity 0 is still focusable and
   * still in the accessibility tree, so every non-current announcement's link
   * sat in the tab order invisibly. visibility:hidden removes it from both while
   * keeping it in the same grid cell — the bar's height is unaffected, so 40.2's
   * zero layout shift still holds.
   */
  visibility: hidden;
}

/*
 * Before the script takes over — and permanently under reduced motion, where
 * the script never starts a timer — the first scheduled message is the visible
 * one. 40.2: "Users with prefers-reduced-motion receive the first scheduled
 * message statically with no rotation."
 */
.k-announce__msg:first-child { opacity: 1; visibility: visible; }
.k-announce[data-rotating] .k-announce__msg { opacity: 0; visibility: hidden; }
.k-announce[data-rotating] .k-announce__msg.is-current { opacity: 1; visibility: visible; }

/* The cross-fade is declared ONLY in the no-preference branch, so a
   reduced-motion user gets no transition rather than a fast one. */
@media (prefers-reduced-motion: no-preference) {
  /* visibility is transitioned as a step so the fade still reads, but focus and
     the accessibility tree change at the end of it rather than never. */
  .k-announce__msg { transition: opacity var(--k-motion-quick) var(--k-ease-calm), visibility var(--k-motion-quick); }
}

.k-announce__link { color: inherit; text-decoration: underline; text-underline-offset: var(--kr-underline-offset); }

@media (min-width: 768px) {
  .k-announce { height: var(--k-announce-h-desktop); padding: 0 var(--k-header-pad-x); }
}

/* ==========================================================================
   40.4–40.10 HEADER
   ========================================================================== */

/*
 * 40.8 LOCKED, mobile: "not sticky — it scrolls with the page."
 * 40.7 LOCKED, desktop: "The desktop header is sticky."
 *
 * Two clauses, two breakpoints. The base is the mobile one; sticky starts at
 * 768 with the desktop structure. Declaring sticky here and never unsetting it
 * made the mobile header sticky, which 40.8 forbids in so many words.
 */
.k-header {
  position: relative;
  z-index: var(--k-z-header);
  height: var(--k-header-h-mobile);
  /*
   * RC-49: measured on staging, .k-header computes content-box, so the solid
   * state's 1px hairline (40.6) grew the band to 57px — 1px of document
   * growth on every swap, which is 1px of trigger-boundary movement, and the
   * band was 1px over the F-07 default. border-box makes the declared height
   * the whole truth in both states.
   */
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.k-header__inner {
  width: 100%;
  display: grid;
  /*
   * ONE CENTRED TRACK BELOW 768, because 40.8 leaves only the wordmark there.
   *
   * The three-track layout is set at 768 instead, NOT here. A `display: none`
   * grid item is removed from the grid entirely, so with the left and right
   * groups hidden the wordmark fell into the first 1fr track and rendered
   * LEFT-ALIGNED — against 40.8's "Centred KOROTANA wordmark". Screenshotted at
   * 390px before this rule existed.
   */
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: var(--k-space-4);
  padding: 0 var(--k-gutter-mobile);
}

/*
 * 40.6 LOCKED. Transparent over the opening media; solid everywhere else and
 * once the media has scrolled past. The 200ms transition is --k-motion-quick,
 * the token 40.6 states, and it is declared only in the no-preference branch
 * because 40.6 also says the transition is "disabled under reduced motion".
 */
.k-header--solid { background: var(--k-surface-page); color: var(--k-ink); border-bottom: var(--k-border-hairline); }

/*
 * THE OVERLAY IS THE ROUTE'S, NOT THE STATE'S — RC-49.
 *
 * 40.6: "Transparent state: OVER the homepage hero, collection opening
 * editorial (when enabled) and any approved full-bleed editorial media." 40.8
 * says the same of the mobile header: "over media it FLOATS in the transparent
 * state". A sticky header in normal flow occupies its own band above the hero,
 * so "transparent" would mean transparent over the PAGE BACKGROUND — and the
 * light-on-dark treatment 9.2 requires over media becomes light on light.
 *
 * The negative margin makes the header occupy zero NET height in flow, so the
 * hero begins at the header's own top edge and the header paints over it at
 * --k-z-header. It used to live on .k-header--transparent, which is a class
 * chrome.js TOGGLES at the hero boundary — so the state swap grew the document
 * by the header's height, moved the hero (the very element whose bounds the
 * observer tests) across the trigger line, and rang: measured on staging,
 * 7 September 2026, five solid↔transparent alternations in 133ms while
 * completely idle inside the trap window, and 22–34 alternations per slow
 * scroll through it, the whole page displacing 57/73px each time. That is the
 * owner's "flicker like epilepsy" and a WCAG 2.3.1 exposure (§08 launch gate).
 *
 * So the margin now keys on .k-header--overlay, a class the SERVER emits when
 * the request renders an opening hero and no script ever touches. On an
 * overlay route the header occupies zero net flow height in BOTH states —
 * indistinguishable when solid, because the desktop header is sticky at the
 * viewport top by then and the mobile header (40.8, not sticky) has scrolled
 * away entirely — and the transparent↔solid swap changes paint only, so a
 * state change can no longer move its own trigger boundary. Sticky behaviour
 * (40.7) is unaffected.
 */
.k-header--overlay { margin-bottom: calc(-1 * var(--k-header-h-mobile)); }

/* J-20's ramp reads ONE span; the pair is selected here, in the same sheet and
   on the same breakpoint that selects the header's own height, because a custom
   property cannot be read inside a media condition (tokens.css, v4.0 §04). */
.k-header { --k-wordmark-fade-span: var(--k-wordmark-fade-span-mobile); }

.k-header--transparent {
  background: transparent;
  border-bottom: 0;

  /*
   * 9.2: "Logo/header colour over media must be chosen from governed light/dark
   * asset state." This declaration is the FALLBACK, not the rule — Ink, because
   * Catalog\MediaTone's own default for an ungoverned crop is 'light' and
   * korotana_hero_tone() returns it, so an unanswered header agrees with the
   * hero rather than contradicting it. It previously read
   * var(--k-on-surface-dark) and was keyed off nothing at all: Snow nav text and
   * a Snow currentColor focus ring over any light crop, which is SC 1.4.3 for
   * the Menu/Men/Women labels, SC 1.4.11 for the icon strokes and SC 2.4.7 /
   * 2.4.11 for the ring. The hero's own scrim does not save it: home.css puts
   * that gradient on `to top`, fully transparent by 55%, and the header sits at
   * the TOP of the media where nothing veils it.
   *
   * [data-tone] is written by korotana_render_header() from the mobile crop's
   * governed value and re-pointed at [data-tone-desktop] by assets/js/chrome.js
   * above [data-tone-switch]. Only colour changes, so v4.0 section 05's state
   * geometry — size, line-height, tracking — is untouched.
   */
  color: var(--k-ink);
}

.k-header--transparent[data-tone="light"] { color: var(--k-ink); }
.k-header--transparent[data-tone="dark"]  { color: var(--k-snow); }

@media (prefers-reduced-motion: no-preference) {
  .k-header { transition: background-color var(--k-motion-quick) var(--k-ease-calm), color var(--k-motion-quick) var(--k-ease-calm); }
}

.k-header__left,
.k-header__right { align-items: center; gap: var(--k-space-4); }
.k-header__right { justify-content: flex-end; }
.k-header__centre { display: flex; justify-content: center; }

/*
 * 40.8 LOCKED, mobile: "Centred KOROTANA wordmark linking to Home; no other
 * controls. All actions live in the mobile dock (Section 10). Header and dock
 * must not duplicate functionality."
 *
 * display:none — not visibility or opacity — because a hidden-but-present
 * control is still a duplicate for assistive technology, which is the substance
 * of that clause. This is the whole of 40.8's implementation.
 */
.k-header__left,
.k-header__right { display: none; }

.k-header__link,
.k-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--k-space-2);
  min-height: var(--k-touch-min);   /* 08 / 2.5.8: the target, not the glyph */
  min-width: var(--k-touch-min);
  color: inherit;
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.k-header__link:focus-visible,
.k-header__icon:focus-visible,
.k-header__wordmark:focus-visible {
  outline: var(--k-focus-ring) solid currentColor;
  outline-offset: var(--k-focus-offset);
}

.k-header__link:hover { text-decoration: underline; text-underline-offset: var(--kr-underline-offset); }

/*
 * THE MARK IS CENTRED IN THE HEADER BY ITS BOX AND NUDGED BY ITS INK.
 *
 * 40.8 LOCKED gives a 56px mobile header and an 18px wordmark and stops there;
 * V6 states no vertical alignment for it anywhere, so the band's own centre is
 * the rule and .k-header (flex, align-items:center) with .k-header__inner
 * (grid, align-items:center) already delivers it. Measured signed out at 390 on
 * an inner page, header band 0 → 56: the 18px box ran 19 → 37, 19px above and
 * 19px below. Exact.
 *
 * The 40.9 placeholder is TEXT, though, and a capital-only string with no
 * descender does not sit in the middle of its own line box. The same
 * measurement put the drawn letters at 23.5 → 34.5 — 23.5px above, 21.5px
 * below — so the mark a reader sees was 1.0px low while its box was level.
 * --k-header-wordmark-offset-y is that 1px, governed rather than baked in
 * here, because the value belongs to the placeholder face and dies with it.
 *
 * IT DIED WITH IT. The asset landed on 6 September 2026 and the token is now
 * 0px: an <svg> has no line box, and the repaired viewBox is the ink plus a
 * half-unit bleed on every edge, so its ink centre IS its box centre and the
 * band's own centre is already the optical centre. Measured after the change,
 * ink gaps inside the 56px band: 19.08 above, 19.08 below. The token stays as
 * the governed knob — see tokens.css — because F-07 still owns the header
 * numerics and 40.9's light/dark variants have not arrived. RC-45.
 *
 * ON THE LINK, NOT ON .k-mark--wordmark: the mark class is also worn by the
 * 404/global-states block (inc/states.php), which does not sit in a 56px band.
 * And `translate`, not a margin or a top, so it changes no layout —
 * .k-header--transparent cancels the header's height with a negative margin and
 * a flow-changing nudge here would shift the hero by the same amount. RC-42.
 */
/*
 * AND IT IS OVER THE BAND, NOT IN IT — owner ruling J-20, 8 September 2026,
 * Husnain: "we want its position to be ON the header but it should be OVER it."
 *
 * That is a layering instruction, and it is executed as one. The link leaves
 * the header's grid and becomes a layer positioned on .k-header itself, which
 * is already the containing block (position: relative below 768, sticky from
 * 768 up). Nothing else moves: .k-header__centre stays in flow as the grid
 * item it was, so 41.8's LOCKED DOM order Menu → Men → Women → wordmark →
 * Search → Account → Wishlist → Cart is untouched, and .k-header's height is
 * declared rather than derived from its content, so the band does not collapse
 * when the mark stops filling it. Measured at all seven §08 widths in both
 * engines: document height unchanged, header box unchanged, mark's vertical
 * position unchanged to 0.00px.
 *
 * WHAT DOES CHANGE, AND IT IS A FIX. `1fr` is `minmax(auto, 1fr)`, so once the
 * centre track was wide enough to matter the two side tracks stopped being
 * equal and the mark drifted — measured 18.72px left of the page centre at 768,
 * recorded in chrome.spec.js's own docblock as a defect the layout "could never
 * have centred". A layer does not compete for a track, so the mark is now
 * exactly page-centred at 375, 390, 430, 768, 992, 1280 and 1440. RC-70.
 *
 * THE MARK PAINTS UNDER THE HEADER'S CONTROLS, and that is deliberate. "Over
 * the header" means over its BAND — its background and its 40.6 hairline — not
 * over its furniture. At 768 the page-centred mark's box overlaps the Search
 * icon's by 2.72px, so the two groups are lifted above it: measured, Search
 * keeps the whole of its 40.5 44px hit target and the ink of the two never
 * meets (12.04px of clearance at the tightest width).
 *
 * `translate` still carries --k-header-wordmark-offset-y, and it is still the
 * reason this is a translate rather than a top: RC-42.
 *
 * THIS RULE IS THE RESTING GEOMETRY AND NOTHING ELSE. J-25's hold — the mark
 * standing still on the screen while the non-sticky mobile band scrolls out
 * from under it — is a `transform` declared with the rest of the ramp, further
 * down this file, and composes on top of this `translate` without either
 * having to know about the other. RC-92.
 */
.k-header__wordmark {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% calc(-50% + var(--k-header-wordmark-offset-y));
  z-index: var(--k-z-wordmark);
}

/*
 * THE 40.4 CONTROLS KEEP THE PAINT AND THE HIT TARGET ABOVE THE PROMOTED MARK
 * — AND "THE CONTROLS" MEANS THE CONTROLS, NOT THE TRACKS THEY SIT IN. RC-99.
 *
 * This lift used to be declared on .k-header__left and .k-header__right, and
 * it made the desktop wordmark 87% unclickable. Owner report, 10 September
 * 2026, Husnain: the wordmark "does not navigate to the homepage when clicked"
 * on desktop, while Tab + Enter on the same element navigates correctly.
 *
 * WHY THE TWO PATHS DISAGREED, WHICH IS THE WHOLE DIAGNOSIS. Keyboard
 * activation does not hit-test; a mouse click does. The two groups are grid
 * items in the >=768 `1fr auto 1fr` track list and `justify-items: stretch`,
 * so each one is as wide as its whole 1fr TRACK — not as wide as the Menu /
 * Men / Women ink inside it. .k-header__centre holds a promoted (absolute)
 * link and therefore measures 0 wide, so the two 1fr tracks meet in the middle
 * of the header with only the 16px grid gap between them, while the mark they
 * meet over is 245.44px. Lifting the GROUPS to --k-z-header-controls put two
 * empty, invisible, full-track boxes above the mark.
 *
 * MEASURED ON STAGING, 10 September 2026, before the fix — Chromium and WebKit,
 * signed in and signed out, at 768, 992, 1280 and 1440: the mark is reachable
 * for 32px of its 245.44px, 13.1%, and the reachable 32px is the grid gap at
 * the exact centre. 106px of the left end is owned by .k-header__left and 107px
 * of the right end by .k-header__right. Below 768 both groups are
 * `display: none` (40.8) so nothing covers the mark and 375/390 measured 100%
 * reachable, which is why the report was desktop-only.
 *
 * THE FIX IS TO LIFT WHAT THE COMMENT ALWAYS SAID WAS BEING LIFTED. Every child
 * of both groups is a .k-header__link or a .k-header__icon and both already
 * carry `position: relative` for their badges, so the z-index goes there and
 * the groups go back to being untouched grid items. The 40.5 44px targets keep
 * the whole of their paint and the whole of their hit area above the mark — the
 * 768 case the old comment measured, where the page-centred mark overlaps the
 * Search icon's box by 2.72px, is preserved and is asserted at that width.
 *
 * WHAT IT DOES NOT CHANGE: nothing paints from the group boxes themselves —
 * all their ink lives inside the lifted controls — so the mark passing above
 * an empty box is invisible. Screenshotted at all six widths, both engines.
 */
.k-header__link,
.k-header__icon { z-index: var(--k-z-header-controls); }
/*
 * THE WORDMARK IS ARTWORK, NOT TEXT IN THE §03 SCALE — and this file says it
 * declares no type, so the exception is stated rather than hidden.
 *
 * 40.9 makes this a single ASSET component, and its metrics are logotype
 * geometry (--k-wordmark-h-*, 40.5/40.8) rather than a §03 token: 18px below
 * 768, 22px from 768 up. Both figures come from the clauses, not from the type
 * scale, and v4.0 §03 has neither of them.
 *
 * ONE RULE, TWO STATES, AND THAT IS THE POINT. The rule now sizes BOTH the
 * asset and the load-failure placeholder 40.9 requires, because
 * korotana_wordmark_asset() puts this class on both. It used to size only the
 * placeholder — the SVG branch returned the file verbatim and carried no class
 * at all — which would have meant the two states were sized by different rules
 * and the fallback's geometry was never exercised until a file went missing.
 *
 * HEIGHT DRIVES, WIDTH FOLLOWS. `width: auto` is written out rather than left
 * to the initial value, because it is load-bearing and easy to "tidy" away: the
 * asset has an intrinsic RATIO (11.1564 : 1) and no intrinsic SIZE, so a
 * declared height gives a computed width of 200.81px at 18px and 245.44px at
 * 22px, and declaring a width instead would give a mark taller than the header.
 * Setting BOTH would stretch the drawing, which 02 forbids outright.
 *
 * line-height and letter-spacing reach the placeholder only — an <svg> has no
 * line box and no letterforms to track — and line-height equal to the height is
 * what makes the text state occupy the asset's box exactly. It previously also
 * set line-height inside the 768 media block, which made the placeholder render
 * 14/18 below 768 and 14/22 above: an invented pair, and a second responsive
 * type rule in a build that claims to have one.
 */
.k-mark--wordmark {
  display: block;
  height: var(--k-wordmark-h-mobile);
  width: auto;
  line-height: var(--k-wordmark-h-mobile);
  letter-spacing: .28em;
}
.k-mark--monogram { display: block; }

/* The marks' raster margin (RC-138) lives in primitives.css: every document
   that shows a mark loads that sheet, and the front door, the maintenance page
   and the 404 do not load this one. */

/* 41.5 DEFAULT: "signed-in state shown by a small filled dot on the icon; no
   name in the header." */
.k-header__icon.is-signed-in::after {
  content: "";
  position: absolute;
  top: calc(50% - var(--k-icon) / 2);
  right: calc(50% - var(--k-icon) / 2);
  width: var(--k-space-2);
  height: var(--k-space-2);
  border-radius: 50%;
  background: currentColor;
}

@media (min-width: 768px) {
  /* 40.10 DEFAULT, tablet: the desktop structure, with Men and Women collapsed
     into Menu; the wordmark centred; the right-side icons retained. */
  /* 40.7: the desktop header is sticky. */
  .k-header { position: sticky; top: 0; height: var(--k-header-h-desktop); }
  /* RC-49: the overlay margin is the route's, so the state swap cannot move
     its own trigger boundary — see the .k-header--overlay comment above. */
  .k-header--overlay { margin-bottom: calc(-1 * var(--k-header-h-desktop)); }
  .k-header { --k-wordmark-fade-span: var(--k-wordmark-fade-span-desktop); }
  /*
   * Three equal tracks, so the wordmark is optically centred on the PAGE and not
   * merely between its neighbours — a centre column that shrank with its
   * siblings would drift as the left group gained or lost a link.
   */
  .k-header__inner { grid-template-columns: 1fr auto 1fr; justify-items: stretch; padding: 0 var(--k-header-pad-x); }
  .k-header__left,
  .k-header__right { display: flex; }
  .k-header__link--collapse { display: none; }
  .k-mark--wordmark { height: var(--k-wordmark-h-desktop); line-height: var(--k-wordmark-h-desktop); }
}

@media (min-width: 992px) {
  /* 40.4: the two collection links appear as text from the large breakpoint. */
  .k-header__link--collapse { display: inline-flex; }
}

/*
 * .k-dock__icon is the pre-V6 class name. Three internal specimen sheets
 * (collection-specimen, product-specimen, component-states) and two preview
 * shells still emit it, and it lost its only rule when the dock moved out of
 * components.css — leaving un-sized SVGs on those sheets. Aliased here rather
 * than edited across five files that are each rebuilt at their own Appendix M
 * step, and deleted with the last of them.
 */
.k-icon,
.k-dock__icon {
  width: var(--k-icon);
  height: var(--k-icon);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--k-icon-stroke);  /* Section 10: "slightly heavier line" */
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 40.7: "anchored scroll positions and the PDP sticky buying panel offset by
   header height." One declaration, so every anchor on the site clears the
   sticky header without a per-page value.

   HEADER HEIGHT ONLY — the announcement term is gone (RC-65). RC-41 recorded
   this rule as "one phantom left standing" and Run 14 retires it: the bar is
   not sticky (40.3 keeps it solid, not pinned), so by the time any anchor
   jump lands the bar has scrolled away and only the sticky header still
   overlays the target. Reserving the bar's height here over-cleared every
   fragment jump by 32/36px whether or not a bar existed — 40.1: "the bar
   does not render and occupies no height". */
:root { scroll-padding-top: var(--k-header-h-mobile); }

/*
 * AND THE BOTTOM, WHICH HAD NO RESERVATION AT ALL — R48-014's sibling
 * R48-015, fixed in Run 56. A grep of wp-content found scroll-padding-top
 * and rail.css's scroll-padding-inline and NOTHING for the bottom, while the
 * dock is fixed over the foot of every page below 768.
 *
 * WHAT THAT COST. Focus moves the viewport by scrolling the target into
 * view, and with no bottom reservation the browser is content to stop with
 * the control flush to the viewport floor — underneath the dock. Measured at
 * 375x667 the homepage hero CTA sat 98% under the dock AT LOAD, and at
 * 390x664 the product page's 'Details & Materials' 71%. On the product-page
 * rail at maximum scroll they cannot be scrolled clear at all, because there
 * is no further scroll to give.
 *
 * RESERVED FROM THE DOCK'S OWN GEOMETRY, not a figure: Section 10 LOCKS it
 * at --k-dock-h tall, --k-dock-bottom above the safe area. The product page
 * adds the pinned purchase bar on top of this, and does it in product.css
 * where that bar's arithmetic lives.
 *
 * AND THE HAIRLINE IS PART OF THAT GEOMETRY — RC-317, Run 71. This rule used
 * to say the dock's top edge "is exactly this far up" and it was 2px wrong,
 * because `.k-dock` is `height: var(--k-dock-h)` PLUS
 * `border: var(--k-glass-hairline)` on a content-box element: 68 + 1 + 1 = 70
 * rendered, 82 occupied from the viewport foot, against a reservation of 80.
 * Measured at 390x900 in WebKit: a focused `.k-col__columnsbtn` came to rest
 * at 776-820 with `nav.k-dock` taking its bottom two rows, leaving 42px of a
 * 44px control reachable (40.5). el.focus() put it there exactly as
 * Playwright's scrollIntoViewIfNeeded did, so it was the build and not the
 * instrument.
 *
 * The two pixels are therefore added from the hairline token that causes
 * them, so they track it rather than being a bare 2px. This is the same
 * content-box trap RC-49 recorded for the header's own hairline, and
 * vault-landing.css's scoped sibling covers the identical two pixels with one
 * --k-space-1; a later run should unify the two expressions.
 *
 * NOT CHANGED, same root cause, not measured by this run: tokens.css's
 * --k-page-pad-bottom and this file's .k-panel--search max-height compose from
 * --k-dock-h the same way and are the same 2px out. Every other consumer
 * carries a --k-space-3/--k-space-4/--k-pdp-bar-gap cushion larger than the
 * hairline, so none of them under-reserves in effect.
 *
 * SCOPED TO WHERE THE DOCK EXISTS, which is the lesson RC-65 left on the
 * rule above: reserving the announcement bar's height unconditionally
 * over-cleared every fragment jump by 32/36px whether or not a bar existed.
 * The dock is `display: none` from 768, so the reservation is zero there.
 */
:root {
  scroll-padding-bottom: calc(
    var(--k-dock-h) + var(--k-dock-bottom) + env(safe-area-inset-bottom)
    + (2 * var(--k-hairline))
  );
}
@media (min-width: 768px) {
  :root {
    scroll-padding-top: var(--k-header-h-desktop);
    /* No dock and no pinned bar from here up (40.10), so nothing to clear. */
    scroll-padding-bottom: 0;
  }
}

/* ==========================================================================
   BADGES — Section 10 cart badge, 41.6 wishlist
   ========================================================================== */

.k-badge {
  position: absolute;
  top: calc(50% - var(--k-icon));
  right: calc(50% - var(--k-icon));
  min-width: var(--k-space-4);
  height: var(--k-space-4);
  padding: 0 var(--k-space-1);
  border-radius: var(--k-space-4);
  background: var(--k-surface-dark);
  color: var(--k-on-surface-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/*
 * [hidden] MUST WIN. The UA rule is `[hidden] { display: none }`, which a class
 * selector setting `display: inline-flex` outranks — so an empty badge that PHP
 * renders `hidden` still painted, as a filled circle beside the Wishlist and
 * Cart icons. Screenshotted at 1440 before this rule existed. Every element in
 * this file that carries `hidden` and an explicit display needs the same guard.
 */
.k-badge[hidden] { display: none; }
/*
 * M12 exactly — 12/16, which is the §03 row. The `/1` this carried was an
 * invented 12/12 pair, and §03 is explicit: "Do not invent intermediate values."
 * The badge is a fixed-height flex box, so the real line-height centres just as
 * well as a collapsed one.
 */
.k-badge__visible { font: var(--kr-medium-weight) var(--kr-m12-size)/var(--kr-m12-line) var(--kr-medium); }
.k-header--transparent .k-badge { background: var(--k-on-surface-dark); color: var(--k-ink); }

/* ==========================================================================
   THE WORDMARK'S FADE — owner ruling J-20, 8 September 2026, Husnain
   ========================================================================== */

/*
 * "…and then you scroll down and it gradually disappears."
 *
 * ONE MARK, ONE NUMBER, AND NOTHING TO HAND OFF. The old J-13.11 layer put a
 * SECOND KOROTANA on the page and spent 224 lines here and 459 in a script
 * deciding which of the two owned the paint, the tab order and the
 * accessibility tree. Every one of the five defects Run 10 named when it
 * deleted the layer was a defect OF THAT ARRANGEMENT: two marks painted at
 * once, a test that required the crossfade, the visible copy withdrawn from
 * the tree while the hidden one kept it, a phantom announcement-bar offset,
 * and a position:fixed layer that ignored the admin bar. There is one mark
 * here. It is the 40.4/40.8 header link, it is never duplicated, never
 * removed from the DOM, never removed from the tab order, never
 * aria-hidden, and it never leaves its LOCKED 41.8 position. What changes is
 * one number: its opacity.
 *
 * WHO GETS THE RAMP — SPLIT AT THE DOCK'S OWN BOUNDARY (owner ruling J-22.1,
 * 8 September 2026, Husnain: "The KOROTANA header should behave the same on all
 * pages on mobile view"). Run 17 shipped it in the §40.6 TRANSPARENT state
 * only, which is where 40.8's "over media it FLOATS" put it — and today only
 * the homepage renders an opening hero, so only the homepage faded. Run 17
 * registered the extension as Q-23 rather than deciding it. The owner has now
 * ruled it, for mobile.
 *
 * BELOW 768 the ramp applies on EVERY route, transparent or solid. AT ≥768 it
 * stays the transparent state's, exactly as Run 17 shipped it. The asymmetry is
 * measured, not stylistic: at ≥768 the header is sticky (40.7) and its wordmark
 * is the only home control on screen, so Run 17 measured roughly 144–690px of
 * scroll with no painted home affordance at all. Below 768 that gap does not
 * exist — Section 10's LOCKED dock carries the crowned-K Home control — and the
 * mark may fade to nothing on mobile PRECISELY BECAUSE the dock is still there.
 * The owner ruled desktop out in the same breath: "for the moment lets keep it
 * as it is for desktop." RC-76.
 *
 * THE SHAPE IS BASE + ≥768 OVERRIDE, and that is not tidying. The file's two
 * queries are `(max-width: 767.98px)` and `(min-width: 768px)`, and 767.99px —
 * reachable by fractional browser zoom — matches neither. A `max-width` block
 * would have left the mark in that sliver painting under whichever rule
 * happened to win; declaring the mobile behaviour in the base rule and undoing
 * it at ≥768 closes the gap by construction. RC-75 established the shape.
 *
 * OPACITY AND POINTER-EVENTS ONLY. No transform, no travel (J-20 rules a fade
 * and no movement), no layout property, nothing that can change the document's
 * height. RC-49 measured what happens when a scroll-driven state near this
 * header moves its own trigger: five alternations in 133ms, which the owner
 * called "flicker, like epilepsy". tests/playwright/home-motion.spec.js is the
 * permanent gate on it and this run does not touch it.
 *
 * PAINTED IF AND ONLY IF CLICKABLE. Defect 3 was a mark a mouse could click
 * and nothing else could reach. The inverse hazard is the one this design has
 * to answer: an element at opacity 0 is still hit-testable, so without the
 * second rule below a mouse would be able to click a wordmark that is not
 * there. [data-wordmark-fade] is written by assets/js/header-mark.js from the
 * SAME number as the opacity, so the two cannot disagree about where the mark
 * has got to.
 *
 * AND FOCUS ALWAYS BRINGS IT BACK. The link keeps the tab order and the
 * accessibility tree at every scroll offset — 41.8 LOCKED requires it — so
 * focus can land on it while it is unpainted, and §08 forbids a control that
 * is focusable and not visible. Focusing it restores full ink instantly. This
 * is the mechanism 60.8 already requires of the skip link (primitives.css),
 * not a new idea. :focus AND :focus-visible, because visibility is not a
 * convention: if focus reaches this link by any route at all it must be seen.
 */
/*
 * AND IT HOLDS ITS PLACE ON THE SCREEN WHILE IT FADES — owner ruling J-25,
 * 8 September 2026, Husnain: the 168px span stands, and the mark must hold its
 * position in the viewport for the duration of its own fade, so the whole ramp
 * is seen. Once faded it releases and behaves exactly as it did before.
 *
 * WHY, IN ONE MEASUREMENT. §40.8's mobile header is not sticky, so it carries
 * the mark off the top of the screen at 37px of scroll (18.5 → 36.5 with no
 * announcement bar, measured). A 168px ramp therefore played 22% of itself on
 * screen and the other 78% above it: the customer saw 1.00 → 0.78, which is
 * the least perceptible third of a fade, and then the mark was gone. Run 19
 * measured that and reported it; this is the answer. The number is unchanged.
 *
 * THE HOLD IS A TRANSFORM, NOT A POSITION SWITCH, AND THAT IS THE WHOLE
 * DESIGN. assets/js/header-mark.js writes --k-wordmark-hold — clamp(scrollY, 0,
 * start + span) — from the SAME scroll read as the opacity, in the same frame,
 * so the two cannot disagree about where the mark has got to. Translating the
 * mark down the document by exactly the distance the document has scrolled
 * leaves it standing still on the screen. That is the identity the whole
 * mechanism is: hold = scrollY ⟹ viewport position constant.
 *
 * `position: fixed` WOULD HAVE BEEN THE OBVIOUS WAY AND IS THE ONE THING THIS
 * MUST NOT DO. Defect 5 of the retired J-13.11 layer was a fixed mark measured
 * against the viewport: correct signed out, and 46px wrong for every signed-in
 * member of staff, because WordPress's admin bar pushes the header down and a
 * viewport-anchored mark does not follow it. A transform on a mark that is
 * still positioned inside the header inherits every offset the header already
 * has — the admin bar, the 40.1 announcement bar, whatever else lands above it
 * — because it is measured from the header and not from the screen. The defect
 * is not compensated for; it is made unreachable. tests/playwright/wordmark.spec.js
 * measures it signed in and signed out at 390 and 375 anyway.
 *
 * IT CHANGES NO LAYOUT AND NO DOCUMENT HEIGHT, WHICH RC-49 MAKES A HARD
 * REQUIREMENT. A transform paints; it does not lay out. And the translated box
 * cannot grow the scrollable area either, by arithmetic rather than by luck:
 * the hold is at most scrollY, so the mark's bottom sits at scrollY + its own
 * height above the fold — always inside the region the document already has.
 * tests/playwright/home-motion.spec.js is the permanent oscillation gate and is
 * not touched by this run.
 *
 * ON `transform` AND NOT ON `translate`. The centring above is a `translate`
 * with two percentage components and an optical nudge; it is the resting
 * geometry and it belongs to 40.8. This is the ramp's, it is a different
 * concern, and the two properties compose (translate, then rotate, then scale,
 * then transform) so neither has to know about the other. It also means a
 * value this file cannot parse would invalidate the HOLD alone and leave the
 * mark centred, rather than dropping the -50% and throwing it across the band.
 *
 * NOTHING TRANSITIONS IT. The transition rules below name `opacity` and only
 * `opacity`. A transitioned transform would make the mark lag the customer's
 * own finger, which is the one thing a scroll-linked value must never do —
 * the same reason the ramp's own opacity is 0s while it is running.
 */
.k-header { --k-wordmark-hold-applied: var(--k-wordmark-hold, 0px); }

.k-header .k-header__wordmark {
  opacity: var(--k-wordmark-fade, 1);
  transform: translate3d(0, var(--k-wordmark-hold-applied, 0px), 0);
}
.k-header[data-wordmark-fade="out"] .k-header__wordmark { pointer-events: none; }

/*
 * AND A MARK NOBODY CAN SEE STOPS TAKING TAPS — J-25's second consequence, and
 * the one it introduces rather than fixes. RC-93.
 *
 * "PAINTED IF AND ONLY IF CLICKABLE" was true above because the mark left the
 * screen at 37px of scroll, at 0.78 of its ink: it was never both faint and
 * present. Held, it is present for the whole 168px, and by scroll 167 it is a
 * 200.81 × 18px link at 0.006 of its ink sitting over whatever the customer is
 * reading — at --k-z-header, so it hit-tests above the content beneath it. A
 * tap meant for a card at the top of the screen would go Home instead.
 *
 * --k-wordmark-hit-floor is where that stops, and the value is engineering's
 * and stated as such in tokens.css. Not a contrast threshold: Ink on Snow
 * passes 3:1 only down to about 0.71 of ink, so a fade held to that bar would
 * not be a fade. It is a perceptibility floor.
 *
 * THE FOCUS RESCUE STILL OUTRANKS IT — (0,4,0), and last — so a keyboard user
 * who has just made the mark visible can click the thing they can see. And
 * Section 10's dock carries Home at every offset below 768, which is the same
 * ground J-22.1 was decided on.
 */
.k-header[data-wordmark-faint] .k-header__wordmark { pointer-events: none; }

/*
 * ≥768: the ramp is the transparent state's again, and a SOLID desktop header
 * keeps its mark painted and clickable — 40.4/40.8 furniture in a band with a
 * ground and a hairline, with no media for it to float over.
 *
 * Specificity is the mechanism. `.k-header:not(.k-header--transparent)
 * .k-header__wordmark` is (0,3,0) against the base rule's (0,2,0), and the
 * pointer-events pair is (0,4,0) against (0,3,0), so each override wins on
 * weight rather than on where it sits. Both still lose to the focus rescue
 * below, which is (0,4,0) AND last — that ordering is load-bearing and is why
 * this block is here rather than at the end of the file.
 *
 * AND THE HOLD IS OFF ENTIRELY, ON EVERY ROUTE — a flat 0px, not the fade's
 * `:not(--transparent)` shape, and the difference is not an oversight. The
 * fade still runs at ≥768 in the transparent state, so its exemption has to be
 * stateful. The hold does not, in EITHER state, because from 768 up the header
 * is sticky (40.7): it holds the mark itself, and a second hold on top of the
 * first would translate the mark down the screen at scroll speed. The owner
 * ruled desktop out of this run in the same breath as J-22.2's "for the moment
 * lets keep it as it is for desktop", and a named mutation removes this line to
 * prove the exemption is doing work.
 *
 * The variable is overridden rather than the transform being unset, because
 * --k-wordmark-hold is written INLINE on the element by the script and an
 * inline custom property beats any stylesheet rule for that name. The
 * indirection is what lets a media query have the last word — the same
 * arrangement --k-wordmark-fade-span already uses for its breakpoint pair.
 */
@media (min-width: 768px) {
  .k-header { --k-wordmark-hold-applied: 0px; }
  .k-header:not(.k-header--transparent) .k-header__wordmark { opacity: 1; }
  .k-header:not(.k-header--transparent)[data-wordmark-fade="out"] .k-header__wordmark { pointer-events: auto; }
  .k-header:not(.k-header--transparent)[data-wordmark-faint]:not([data-wordmark-fade="out"]) .k-header__wordmark { pointer-events: auto; }
}

/*
 * AND THE HIT FLOOR IS MOBILE'S TOO, WHICH IS WHAT THE LINE ABOVE SAYS — AND
 * ITS `:not([data-wordmark-fade="out"])` IS THE WHOLE OF IT BEING SAID
 * CORRECTLY. IT WAS WRONG ONCE, IN THIS RUN, AND THE HARNESS CAUGHT IT.
 *
 * Why an override is needed at all: the script writes [data-wordmark-faint]
 * from the ramp's own arithmetic and knows nothing about the ≥768 exemption, so
 * on a SOLID desktop header the attribute appears while the mark is still
 * forced to full ink by the rule above it. Without an override a fully painted
 * desktop home control would stop taking clicks.
 *
 * WHY IT IS NOT UNCONDITIONAL, WHICH IS HOW IT WAS FIRST WRITTEN. An
 * unconditional override outranks `[data-wordmark-fade="out"] { pointer-events:
 * none }` — so on the TRANSPARENT desktop header, where the fade really does run
 * to nothing, it handed hit-testing back to a mark at opacity 0. That is the
 * exact inverse of this file's "PAINTED IF AND ONLY IF CLICKABLE" invariant, and
 * it is a change to desktop behaviour in a run whose brief rules desktop
 * untouched. `chrome.spec.js`'s harness assertion — "the mark is painted at
 * 0.000 and is hit-testable — paint and pointer-events must agree" — went red at
 * 1440, 1280, 992 and 768 and was right to.
 *
 * Excluding `out` makes the override answer the one case it exists for and
 * leaves the other three exactly as they were: solid-and-faint gets its clicks
 * back; solid-and-out is still handled by the pointer-events pair above; and
 * both transparent cases keep the base rules. Desktop hit-testing is then
 * byte-for-byte what it was before this run, in both header states.
 *
 * AND IT NEEDED THE STATE GUARD AS WELL AS THE `out` GUARD — RC-100, Run 26.
 *
 * "Both transparent cases keep the base rules" was the intention above and it
 * was not what the selector said. Excluding `out` leaves the band where ink is
 * in (0, --k-wordmark-hit-floor) and the ramp has not finished, and in the
 * TRANSPARENT state that band is real: the fade genuinely runs there, so the
 * override handed hit-testing back to a mark the customer cannot see. Measured
 * on the staging homepage at 1440, 1280 and 768, signed in and signed out,
 * before this run: scroll 140, `data-wordmark-faint` present, `fade="leaving"`,
 * opacity 0.028 — and `pointer-events: auto`. The hit floor J-25 introduced was
 * simply not in force at >=768 in the state it was written for.
 *
 * Adding `:not(.k-header--transparent)` scopes the override to the SOLID
 * desktop header, which is the only place it was ever needed: there the rule
 * above forces opacity 1, so the mark is fully painted and must be fully
 * clickable. On the transparent header the base
 * `[data-wordmark-faint] { pointer-events: none }` now wins, which is the
 * floor doing its job. Specificity rises to (0,5,0), which is above the focus
 * rescue's (0,4,0) — harmless, because both declare `pointer-events: auto` and
 * a focused mark is a painted mark either way.
 *
 * Specificity: (0,4,0) against the base rule's (0,3,0), so it wins on weight.
 * It TIES the focus rescue at (0,4,0) and the rescue is last, so the rescue
 * still wins — and they agree about pointer-events anyway.
 */

/*
 * PRINT HAS NO SCROLL TO HOLD AGAINST.
 *
 * --k-wordmark-hold is an inline custom property left at whatever the last
 * painted frame wrote, and print resolves min-width against the page box —
 * A4 portrait less default margins is about 698px, so the ≥768 override does
 * not apply and a page printed from mid-ramp would put the wordmark 84px down
 * over the copy. This is not a print stylesheet and the theme still has none;
 * it is the hold declining to apply where the quantity it cancels does not
 * exist.
 */
@media print {
  .k-header { --k-wordmark-hold-applied: 0px; }
}

/*
 * THE RETURN IS TIMED; THE RAMP IS NOT.
 *
 * Two different things share one property here and they must not share one
 * duration. The ramp is a pure function of the customer's own scroll offset —
 * it has no timeline, and a transition on it would make the mark lag the
 * finger by --k-motion-quick, which is the one thing a scroll-linked value
 * must never do. The RETURN is a state change: 40.6's transparent↔solid swap,
 * which the DNA itself times at 200ms.
 *
 * So the duration is keyed off the ramp's own state. While the mark is `in` or
 * `leaving` the transition is 0s and the opacity is frame-exact. At `out` —
 * which is where both crossings of the 40.6 boundary happen, because the
 * boundary is the hero's bottom and the ramp is over by the header's own
 * height — the mark crosses on the same 200ms and the same easing as the
 * band's background, its hairline and its ink. Four things resolve together in
 * one gesture and the customer reads "the header has landed", not "the logo
 * blinked". It is symmetric: scrolling back up, the mark leaves on the same
 * curve the ground does rather than snapping out under an easing background.
 *
 * Declared only in the no-preference branch, exactly as 40.6's own transition
 * on .k-header is, so a reduced-motion visitor gets no transition rather than
 * a fast one. The RAMP is not in here, and that is the decision rather than an
 * oversight: it is not a slide, not a transform and has no timeline to remove,
 * §08's exclusion names "slide/transform effects", and the theme's one direct
 * fade precedent (home.css, the 11.2 reveal) keeps its fade under reduce for
 * the same reason — "it carries no movement". Suppressing it would give a
 * reduced-motion visitor a different feature, not an equivalent state.
 */
@media (prefers-reduced-motion: no-preference) {
  .k-header__wordmark { transition: opacity 0s; }
  .k-header[data-wordmark-fade="out"] .k-header__wordmark {
    transition: opacity var(--k-motion-quick) var(--k-ease-calm);
  }
}

/*
 * AND FOCUS BRINGS IT BACK INSTANTLY. LAST, AND ON FOUR CLASS-LEVEL SELECTORS,
 * AND BOTH FACTS ARE LOAD-BEARING.
 *
 * MEASURED, ON STAGING, BEFORE THIS RULE HAD ITS PRESENT SHAPE. With the
 * rescue written as `.k-header .k-header__wordmark:focus` it ties the
 * transition rule above at (0,3,0) and loses the tie on source order, so
 * focusing the faded mark started a 200ms fade IN — chromium and WebKit, 1280
 * and 390, opacity read 0 at the moment focus landed, with the 2px focus ring
 * composited into it. A focus indicator that fades in is a focus indicator
 * that is not yet there: §08 "visibly focusable", SC 2.4.7, SC 2.4.11. Run 10
 * found and fixed the identical defect in the retired layer and wrote it down;
 * this run reproduced it anyway, which is the argument for the assertion in
 * tests/playwright/wordmark.spec.js that reads the opacity 0ms after focus
 * rather than after a settle.
 *
 * [data-korotana-header] is the header's own server-rendered attribute, always
 * present, so this is (0,4,0) and outranks the transition rule outright rather
 * than depending on where in the file it sits. It is ALSO placed last, so a
 * future reorder cannot quietly reintroduce the defect either way.
 *
 * :focus AND :focus-visible, deliberately. The outline convention in this build
 * is :focus-visible, but VISIBILITY is not a convention: if focus reaches this
 * link by any route at all — a script, a fragment jump, an engine that scores
 * the heuristic differently — it must be seen. Measured: with :focus-visible
 * alone a programmatic focus() left the retired layer's mark at 0.4.
 *
 * pointer-events comes back with it, so the thing a keyboard user has just made
 * visible is also the thing a mouse can then click.
 */
.k-header[data-korotana-header] .k-header__wordmark:focus,
.k-header[data-korotana-header] .k-header__wordmark:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

/* ==========================================================================
   THE HERO'S CONTAINING BLOCK
   — all that survives the J-13.11 floating wordmark, retired at J-14.1
   ========================================================================== */

/*
 * WHAT WAS HERE. 224 lines of floating-wordmark layer: .k-floatmark and its
 * sentinels, the progress-driven fade and lift, the [data-wordmark-owner]
 * handoff that held the header's own mark at opacity 0, its :focus-visible
 * rescue, its reduced-motion branch, its tone rules and the two
 * --k-announce-occupied offsets. Owner ruling J-14.1, 6 September 2026,
 * Husnain: "mine, it should be in the header." The header's wordmark is now the
 * only wordmark, so none of it has anything to paint. RC-44.
 *
 * WHY THIS ONE RULE STAYS. It is not the floating mark's rule and never was —
 * inc/render-hero.php publishes `position: relative` on [data-korotana-hero] as
 * the hero component's own CSS contract, and it is the PDP hero's only
 * containing-block declaration. The sentinels merely happened to rely on it
 * too. Deleting it with them would have moved every absolutely-positioned child
 * of every hero on the site to the viewport.
 */
[data-korotana-hero] { position: relative; }

/* ==========================================================================
   SECTION 10 — THE DOCK
   ========================================================================== */

/*
 * LOCKED, every value: "Fixed. 16px left/right. Bottom = 12px above safe area.
 * Transparent frosted glass, soft rounded rectangle, approximately 65%
 * background opacity, moderate blur, subtle 1px border, no shadow."
 *
 * THE GLASS ITSELF IS NOT DECLARED HERE ANY MORE — J-37, RC-136. The dock is
 * the reference every overlay on the site now matches, so its surface lives
 * with theirs in tokens.css ("THE GLASS SURFACE"): 65% of the page colour,
 * 18px of blur, no shadow, opaque where the engine cannot blur. The values
 * did not move; the declarations did. GlassTest refuses a background or a
 * backdrop-filter on any overlay outside tokens.css, this one included.
 *
 * The old fallback asked `@supports not (backdrop-filter: blur(1px))`, which
 * Safari before 18 answers "not supported" while blurring perfectly well under
 * its prefix — so every such iPhone got the opaque dock. tokens.css asks for
 * either spelling.
 */
.k-dock {
  position: fixed;
  left: var(--k-dock-inset-x);
  right: var(--k-dock-inset-x);
  bottom: calc(var(--k-dock-bottom) + env(safe-area-inset-bottom));
  z-index: var(--k-z-dock);
  height: var(--k-dock-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: var(--k-dock-radius);
  border: var(--k-glass-hairline);
}

/*
 * SINCE J-32 THIS BOX HOLDS ONE IN-FLOW CHILD, AND min-height IS LOAD-BEARING.
 *
 * Husnain, 22 September 2026: "we just wanna keep the icons there". The dock's
 * visible labels are gone, so the flex column that used to stack a 22px icon
 * over a 16px M12 label with a 4px gap — 42px of content in a 44px box — now
 * centres a bare 22px icon. The .screen-reader-text name is position:absolute
 * (primitives.css) and .k-badge is too, so neither is a flex item.
 *
 * WHAT THAT MEANS FOR THE 44px TARGET. min-height used to win by 2px and is now
 * carrying 22. It is the ONLY thing holding V6 40.5's "44px hit target", so a
 * later tidy that removes it as redundant halves every dock target without
 * changing one visible pixel. It is not redundant. (40.5's 44px is KOROTANA's
 * own rule; WCAG 2.2 AA is SC 2.5.8 at 24px, and 44px is AAA's SC 2.5.5 — see
 * --k-touch-min's own comment in tokens.css.)
 *
 * flex-direction and gap are KEPT rather than tidied away: preview/_shell.php
 * and patterns/component-states.php are pre-V6 dock specimens that still put
 * two in-flow children in a .k-dock__item, so both declarations are still doing
 * work in this file. RC-124.
 */
.k-dock__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--k-space-1);
  min-height: var(--k-touch-min);
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  /* Section 10: "fixed very dark charcoal/black" — the icon colour does not
     follow the surface behind it, by design. */
  color: var(--k-dock-icon-colour);
}
.k-dock__item .k-icon { width: var(--k-dock-icon); height: var(--k-dock-icon); }
.k-dock__item:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--k-focus-offset); }
/*
 * 02 and 60.8: "Colour alone cannot carry status." --k-mist's own token comment
 * says it "never carries required information", so this greying is the second
 * carrier and never the only one — inc/chrome.php renders an unprovisioned slot
 * as a real <button disabled>, whose state assistive technology reads from the
 * element rather than from this rule. It used to be a <span aria-disabled>, and
 * aria-disabled is dropped on a role-less span: the slot read as ordinary text
 * to a screen reader while looking disabled to everyone else.
 */
.k-dock__item.is-unavailable { color: var(--k-mist); cursor: default; }

/*
 * THE CROWNED-K, AT 75% OF THE DOCK'S INNER HEIGHT — owner design ruling J-15,
 * Husnain, 6 September 2026: "I want to make the dock K 25% smaller."
 *
 * That supersedes the HEIGHT half of Abdullah's instruction of the same day,
 * quoted below in full because the rest of it still governs this rule. Run 10
 * built the mark to his words, measured it, and reported that it "does not read
 * as one of five peers; it reads as a brand emblem set into the dock… it
 * dominates the row". The owner read that report and ruled. RC-48.
 *
 * Abdullah's instruction, verbatim:
 *
 *   "Replace the text 'K' in the center of the bottom sticky navigation dock
 *    with this image. The image must be natively anchored inside the dock's
 *    HTML container so it travels perfectly with the dock during page scroll
 *    and doesn't detach. Set the image height to scale and touch the exact top
 *    and bottom inner bounds of the dock container (e.g. height: 100% with zero
 *    vertical margin/padding), keeping width: auto so it scales
 *    proportionally. Center it horizontally between the Search and Account
 *    icons."
 *
 * ANCHORING NEEDED NOTHING. The monogram is already the third of five children
 * of .k-dock itself, so it travels with the dock by construction; there is no
 * fixed-position layer and nothing to detach. Measured at three scroll offsets:
 * the dock's box is identical at all three.
 *
 * THE HEIGHT IS A TOKEN NOW, NOT A PERCENTAGE, AND THAT IS A REAL CHANGE.
 *
 * RC-46 used `height: 100%` with `align-self: stretch`, and rejected a token on
 * the grounds that it "would have replaced his words with a token". That
 * reasoning expires here: the mark no longer touches the dock's inner bounds, so
 * the words the percentage was preserving are themselves superseded and there is
 * nothing left for it to be faithful to. What the percentage still carried was
 * the hazard — a percentage against an indeterminate cross size is exactly what
 * produced the 300 × 150 default-object-size mark RC-46 had to diagnose, and
 * keeping that shape for no remaining benefit would be keeping a trap.
 *
 * --k-dock-home-h is `calc(var(--k-dock-h) * 0.75)`, so the mark is a share of
 * the dock and tracks it rather than going stale, and the owner can try another
 * value by overriding one custom property in dev tools without a build.
 *
 * HEIGHT DRIVES, WIDTH FOLLOWS: 51px × the 0.75526 : 1 portrait ratio = 38.52px.
 * The width is never declared. A portrait mark sized by width is how a dock ends
 * up with a K taller than the dock.
 *
 * `align-self: stretch` STAYS, AND IT IS NOT CARGO — it has changed job.
 *
 * It is no longer load-bearing for size or position: the height is absolute now,
 * so it resolves with or without a definite containing height, and the mark
 * centres identically either way. Measured both ways at 390 and 375: mark
 * 51 × 38.52 and 8.50px of clearance above and below, in BOTH cases. What
 * changes is the SLOT — 68px with it, 51px without — and that slot is the tap
 * target. Dropping the declaration would shave 17px off the hit area of the one
 * control in the dock that has no text label, for no gain anywhere else. 51px
 * would still clear --k-touch-min, so no gate forces this; it is simply worse.
 * The declaration is kept and its reason rewritten, which is the opposite of
 * leaving cargo: cargo is a line nobody can state a purpose for.
 *
 * VERTICAL CLEAR SPACE EXISTS FOR THE FIRST TIME. At full height the mark
 * touched both inner bounds and 40.9's outstanding clear-space rule had no room
 * to apply; there is now 8.50px above and below. That is not a licence to invent
 * the rule — it is still [PENDING OWNER CONTENT] — but the room is there when it
 * arrives.
 *
 * ZERO VERTICAL MARGIN, as instructed (the padding is RC-138's raster margin
 * now — see the rule) — and the margin that goes is load-bearing history. It used to be `margin-bottom: calc(var(--kr-m12-line) +
 * var(--k-space-1))` = 20px, reserving the label row the wordless home slot does
 * not have so that a 21px text glyph's line box lined up with the four 22px
 * icons. With a 68px mark that same margin would make the slot 88px, the dock
 * would stay 68px, and the mark would hang 10px below the pill. The mark now
 * fills the slot instead of sitting on a text baseline inside it, so there is no
 * baseline left to correct.
 *
 * WHAT WENT WITH IT: --k-dock-home-size (the 3.0 scale) and
 * --k-dock-home-offset-y (the 2px ink nudge). Both were corrections to a Space
 * Mono capital's line box, and both are retired rather than left inert — see
 * tokens.css. RC-46.
 */
.k-dock__item--home {
  align-self: stretch;
}

.k-dock__item--home .k-mark--monogram {
  display: block;
  height: var(--k-dock-home-h);
  width: auto;
  margin: 0;
  /*
   * NOT ZERO ANY MORE — Run 38 CP3b, RC-138. Abdullah's "zero vertical
   * margin/padding" belonged to "touch the exact top and bottom inner bounds",
   * the half of his instruction J-15 superseded when the mark went to 75%; the
   * owners' 30 September report that the crown is cut off supersedes what was
   * left of it. This is the raster margin svg.k-mark carries everywhere,
   * restated here because this rule outranks that one and would otherwise
   * zero it on exactly the mark that clipped. content-box (svg.k-mark), so the
   * drawing is still --k-dock-home-h tall and J-15's 75% is untouched.
   */
  padding: var(--k-mark-raster-margin);
  /*
   * OPTICALLY CENTRED, NOT GEOMETRICALLY — and this is a property of the
   * drawing, not a matter of taste.
   *
   * The monogram is one path holding three closed subpaths. Measured with the
   * browser's own geometry engine (tools/qa/brand-mark-measure.js and the Run 10
   * report): subpath 0 is the crown, x 10.31 → 948.83; subpath 2 is the letter
   * K, x 139.72 → 693.03. The crown's right-hand ball therefore overhangs the K
   * by 255.80 units, so the crown alone defines the ink box and its bbox centre
   * IS the viewBox centre, to 0.00 units. Centre that box and the box is
   * perfect while the letter is not: the K's own bbox centre sits 63.20 units
   * left of it and the ink-AREA centroid 64.41 units left, which at 68px is
   * 3.46px and 3.52px respectively. Beside four icons that are centred properly,
   * the K reads shoved left.
   *
   * --k-dock-home-offset-x is that correction, expressed as a share of the
   * mark's height so it tracks --k-dock-h rather than having to be re-measured
   * if the dock is ever retuned. `translate`, not a margin: it changes no
   * layout, so the slot keeps the height align-self gave it and the dock keeps
   * --k-dock-h. The ARTWORK IS NOT MOVED — not one path coordinate is touched,
   * which is the whole reason this is a CSS token and not a redrawn file.
   */
  translate: var(--k-dock-home-offset-x) 0;
}

/*
 * THE DOCK'S LOAD-FAILURE STATE, WHICH THE RULE ABOVE BREAKS ON ITS OWN.
 *
 * 40.9 requires this component to have a fallback, and the two states are only
 * equivalent if both are usable. The selector above matches the placeholder
 * SPAN as well as the asset — it carries .k-mark--monogram too, deliberately,
 * so the two states cannot drift — and on a span `height: 100%` produces a 68px
 * BLOCK with a 14px letter sitting at its top left corner. Not a smaller mark:
 * a mark in the wrong place, inside a box the right size.
 *
 * The old rule sized this glyph with `transform: scale(--k-dock-home-size)`,
 * which is retired with the text mark it scaled. This does not bring a scale
 * back and it declares no font-size: v4.0 §03 is closed and has no row for one
 * (§7, "Invent no intermediate size"). It declares no line-height either, which
 * TokenSystemTest refuses in a V6 sheet outside the --kr-* tokens and caught on
 * the first attempt. It centres what is there with flexbox, which is layout
 * rather than type: the span becomes a 68px flex box with the letter in the
 * middle of it, and the letter keeps whatever size v4.0 gives it.
 *
 * The result is a small K in the middle of the slot rather than a small K in
 * the corner of it. It is still a placeholder and 6.5 still says a placeholder
 * cannot pass final visual sign-off. RC-43.
 */
.k-dock__item--home .k-wordmark-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  translate: none;
}
/* Section 10 persistence: "hides as soon as footer begins entering viewport;
   reappears when above footer." */
.k-dock[data-footer="in"] { display: none; }

/*
 * NO PANEL HIDES THE DOCK ANY MORE. This rule once hid it for every panel;
 * J-17.1 freed the menu, J-21 freed the cart, and owner ruling J-24.2
 * (8 September 2026, Abdullah) frees the last one: "the same Search control in
 * the floating dock becomes X — tap X to close." A dock that hides under the
 * panel it is meant to close is a user locked inside a dialog, so the rule is
 * REMOVED rather than narrowed — there is deliberately no
 * `body.k-panel-open--<name> .k-dock { display: none }` left in this file, and
 * NavigationTest asserts the empty set rather than a shrinking list. RC-85.
 */

/*
 * J-17.1, extended to the cart by J-21: while the panel is open the dock
 * rides ABOVE it — same left/right/bottom, same box, only the stacking
 * changes, so the four-point box measurement (closed, mid-open, open,
 * mid-close) cannot move. The panel keeps --k-z-panel (200); raising the dock
 * one above it leaves the PDP's pinned purchase bar (--k-z-purchase, 110)
 * correctly covered by the panel, which lowering the panel below --k-z-dock
 * would not have.
 *
 * The cart drawer is half the viewport, not all of it, so it RUNS BEHIND the
 * dock exactly as the full-screen menu does — the same answer to the same
 * question, which is the point (two panels resolving it differently is the
 * defect). Its .k-panel__body reserves the dock band below, so nothing the
 * customer needs is ever under the pill.
 */
body.k-panel-open--menu .k-dock,
body.k-panel-open--search .k-dock,
body.k-panel-open--cart .k-dock,
body.k-panel-closing--menu .k-dock,
body.k-panel-closing--search .k-dock,
body.k-panel-closing--cart .k-dock { z-index: calc(var(--k-z-panel) + 1); }
/* ^ k-panel-closing--<name>: chrome.js keeps the raise for the length of the
   fall (J-17.1: the dock stays throughout — INCLUDING mid-close, or the
   panel would paint over it for the ride down; glass since J-37, and a dock
   seen through glass is still a dock beneath one). It was k-menu-closing
   until J-21 needed the same thing for a second panel; the name is now
   generated from the panel name, exactly as k-panel-open--<name> already is,
   so a third panel needs no new class. RC-72. */

/*
 * And while ANY panel is open the dock is NEVER hidden — it carries the only
 * close control on the screen (J-17.2, J-21, J-24.2). The footer observer's
 * data-footer="in" state cannot legitimately fire with the body scroll
 * locked, but a keyboard user must not be trappable behind a race: this
 * outranks the rule above by specificity, deliberately.
 */
/*
 * ONLY WHERE THE DOCK EXISTS — Run 38 review. Unscoped, this rule's specificity
 * also beat 40.10's `@media (min-width: 768px) { .k-dock { display: none } }`,
 * so opening any panel from 768 up with the footer in view put the mobile dock
 * over the desktop page (measured: display flex at 1280). Pre-existing, and next
 * to the floating menu J-37.2 puts there. `not all and (min-width: 768px)` is the
 * exact complement of the dock's own hide, sliver included.
 */
@media not all and (min-width: 768px) {
  body.k-panel-open--menu .k-dock[data-footer="in"],
  body.k-panel-open--search .k-dock[data-footer="in"],
  body.k-panel-open--cart .k-dock[data-footer="in"],
  body.k-panel-closing--menu .k-dock[data-footer="in"],
  body.k-panel-closing--search .k-dock[data-footer="in"],
  body.k-panel-closing--cart .k-dock[data-footer="in"] { display: flex; }
}

/*
 * J-17.2, J-21 and J-24.2: the two server-rendered states of the dock's Menu,
 * Search and Cart controls, swapped by aria-expanded alone. display:contents makes each
 * state's icon and label direct flex items of the button, so the box is
 * identical in both states — a state change alters content here, never
 * geometry (v4.0 §11's principle); display:none takes the inactive state out
 * of the accessibility tree, so the accessible name is always exactly one of
 * "Menu" / "Close menu", "Search" / "Close search", "Cart" / "Close cart".
 *
 * The Cart control's count badge lives INSIDE its closed state, so it leaves
 * with the cart icon: a count on an X is a claim about nothing the control
 * now does, and the drawer it opened is showing the same contents. The badge
 * is position:absolute against .k-dock__item, which display:contents does not
 * become a containing block for, so its geometry is unchanged either way.
 */
.k-dock .k-dock__state { display: contents; }
.k-dock .k-dock__state--open { display: none; }
.k-dock [data-korotana-menu-open][aria-expanded="true"] .k-dock__state--closed,
.k-dock [data-korotana-search-open][aria-expanded="true"] .k-dock__state--closed,
.k-dock [data-korotana-cart-open][aria-expanded="true"] .k-dock__state--closed { display: none; }
.k-dock [data-korotana-menu-open][aria-expanded="true"] .k-dock__state--open,
.k-dock [data-korotana-search-open][aria-expanded="true"] .k-dock__state--open,
.k-dock [data-korotana-cart-open][aria-expanded="true"] .k-dock__state--open { display: contents; }

/* 40.10: "The mobile dock is not shown at 768." display:none also removes it
   from the accessibility tree, so it cannot duplicate the desktop header. */
@media (min-width: 768px) {
  .k-dock { display: none; }
}

/* Content clears the floating dock. */
body { padding-bottom: var(--k-page-pad-bottom); }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* ==========================================================================
   PANELS — 41.1 menu, 41.4 search, 43.1 cart drawer
   ========================================================================== */

/* The scrim's colour is the glass set's (tokens.css, --k-glass-scrim-share);
   its place, layer and [hidden] handling are the panels'. */
.k-panel__scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--k-z-panel) - 1);
}
.k-panel__scrim[hidden] { display: none; }

/*
 * GLASS, NOT "SOLID PAGE TOKEN" — J-37, RC-136. 41.1's DEFAULT "background
 * solid page token" is superseded, and Section 10 had already asked for the
 * menu as "a full-screen translucent/frosted overlay". The surface is painted
 * in tokens.css with every other overlay's; this rule keeps the ink.
 */
.k-panel {
  position: fixed;
  z-index: var(--k-z-panel);
  display: flex;
  flex-direction: column;
  color: var(--k-ink);
  max-height: 100dvh;
}
.k-panel[hidden] { display: none; }

.k-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--k-space-4);
  padding: var(--k-space-4) var(--k-gutter-mobile);
  border-bottom: var(--k-border-hairline);
}
.k-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--k-touch-min);
  min-height: var(--k-touch-min);
  margin-left: auto;                   /* 41.1: "close control top-right" */
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.k-panel__close:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--k-focus-offset); }
.k-panel__body { flex: 1; overflow-y: auto; padding: var(--k-space-5) var(--k-gutter-mobile); }

/* 41.1: body scroll locked while a panel is open. */
body.k-panel-open { overflow: hidden; }

/* --- 41.1 MENU: full-screen below 768; hangs off the word "Menu" from 768 -- */
.k-panel--menu { inset: 0 auto 0 0; width: 100%; }

/*
 * FROM 768 THE MENU FLOATS, CENTRED, CLEAR OF EVERY EDGE — owner ruling of
 * 4 October 2026 (Husnain, from an annotated screenshot of staging); J-42.1,
 * RC-156.
 *
 * WHAT IT SUPERSEDES, AND WHY. Run 39 built J-38 exactly as instructed: the
 * panel hung off the word "Menu", its top at the header's measured bottom
 * edge, its left at the word's measured ink, its foot flush to the viewport
 * floor, clamp(440px, 34vw, 680px) wide — 652.80 x 804 at 1920 x 912 on
 * staging. The owner has now looked at THAT and ruled against it in one
 * sentence:
 *
 *   "I want it to be floating in the centre and not attached to any of the
 *    four sides of the screen."
 *
 * All four of J-38's edges are therefore withdrawn. Nothing about the ruling
 * is partial: "not attached to any of the four sides" rules out the header
 * edge and the floor as surely as it rules out the left gutter.
 *
 * THE BOX, FROM HIS OWN ANNOTATION. Drawn on a 1920 x 912 CSS page:
 * 1524 x 696, with 165px of clear page on the LEFT and 165px on the RIGHT —
 * 79.4% x 76.4%, and the two equal side gaps are the instruction restated as
 * a measurement. Vertically he drew it high (114 above, 65 below), but the
 * words are explicit and the drawing is not: it is centred on BOTH axes.
 * tokens.css carries 79vw / 76vh and the four clamps, with the derivation.
 *
 * CENTRING, AND WHY NOT A TRANSFORM. `inset: 0` with `margin: auto` and a
 * definite width and height centres a fixed box on both axes exactly, and it
 * leaves `transform` free. That matters: the open/close motion below already
 * owns `transform` (translateY at ≥768, translateY(100%) below), and a
 * centring transform would have to be composed into every one of those
 * declarations and into the reduced-motion exemption. One geometry mechanism,
 * one motion mechanism, no interaction.
 *
 * CLEAR OF EVERY EDGE, BY ARITHMETIC RATHER THAN BY HOPE. Centring on its own
 * does not keep the panel off the edges: `min-width: max-content` can still
 * push it past them, which is exactly how a floating panel ends up touching
 * something at a width nobody measured. --k-menu-float-inset-min (24px) is the
 * FLOOR on all four margins, spent here as a max-width and a max-height, so it
 * beats the clamp rather than competing with it. The minimum margin is
 * therefore never below 24px at any width this rule governs — for any label
 * under about 640px wide, the one thing that can outvote it (min-width, below),
 * and the tests
 * assert the measured margin on all four sides rather than the declaration.
 *
 * min-width: max-content SURVIVES, for J-38's reason: if "How Pre-order
 * Works", the longest item, would not fit on one line at its LOCKED M18, the
 * panel widens rather than the type shrinking. It is NOT bounded by the inset
 * floor: where min-width and max-width disagree, min-width wins (CSS 2.1
 * §10.4). In practice the floor still holds, because max-content is the
 * longest label (216px) plus 48px of padding, 30px of scrollbar gutter and 2px
 * of border, and at 768 the floor allows 720px — a label would have to pass
 * about 640px before it pushed an edge inside 24px. (Until Run 45 this said
 * the floor bounded it.) scrollbar-gutter keeps a classic
 * scrollbar out of the arithmetic — on BOTH edges since J-43, so the gutter
 * cannot pull the centred contents off the panel's centre line (see below).
 *
 * THE HAIRLINE RETURNS TO ALL FOUR SIDES, AND THE RADIUS COMES BACK.
 * J-38 kept the hairline on the left and right ONLY, and set border-radius: 0,
 * and said why in terms that have just stopped being true: "at the top it
 * meets the header and at the bottom the screen edge, and a 16px notch under
 * the header is the opposite of attached". The panel meets neither any more —
 * all four edges face open page. A floating glass surface with two of its four
 * borders missing and square corners is not a deliberate look, it is the
 * residue of an attachment that was removed. Both are restored:
 * --k-glass-hairline on four sides, --k-glass-radius (16px) which J-37.1
 * declared for exactly this case and which J-38 left with no consumer.
 * Resolved under J-13.12 and recorded as RC-156; flagged for the owner in
 * docs/for-abdullah.md because it is a visible choice he has not seen.
 *
 * K-54 FALLS OUT WITH IT. K-54 registered "no top rule, because on a solid
 * header it would double the header's own border-bottom". The panel's top edge
 * is nowhere near the header now, so there is nothing to double.
 *
 * THE TWO MEASURED ANCHORS ARE GONE. --k-menu-anchor-left and
 * --k-menu-header-bottom were J-38's, written at open by assets/js/chrome.js
 * from a Range over the word "Menu" and from the header's bounding box. A
 * centred panel reads neither. Both the tokens and the two setProperty writes
 * are deleted rather than left computing a value nothing consumes — the same
 * call J-38 itself made on --k-menu-float-ratio and --k-menu-float-gap, and
 * the same call the owner's own CP-C instruction makes about the sticky row's
 * dead machinery.
 *
 * IT MAY SIT OVER THE HEADER, AND WHETHER IT DOES IS A FUNCTION OF VIEWPORT
 * HEIGHT, NOT WIDTH. Measured on staging, panel top against the 108px header
 * band at the top of a page carrying the 40.1 announcement bar:
 *
 *      844 x 390    top  24.00   overlaps by 84.00   (iPhone landscape; the 24px inset floor)
 *     1920 x 468    top  24.00   overlaps by 84.00   (the 24px inset floor)
 *     1920 x 500    top  40.00   overlaps by 68.00   (the 420px height floor)
 *     1920 x 560    top  67.20   overlaps by 40.80   (76vh = 425.6px; not the floor)
 *     1100 x 600    top  72.00   overlaps by 36.00
 *     1024 x 768    top  92.16   overlaps by 15.84
 *     1280 x 800    top  96.00   overlaps by 12.00
 *     1440 x 900    top 108.00   touches exactly, 0.00
 *     1920 x 912    top 109.44   CLEARS by 1.44
 *      768 x 1024   top 122.88   clears by 14.88
 *     2560 x 1440   top 220.00   clears by 112.00
 *
 * The crossover is a 900px-tall viewport: the top margin is (h - 0.76h) / 2 =
 * 0.12h, which reaches the header's 108px exactly at h = 900. Below that it
 * overlaps, above it clears. Under 553px tall the 420px height floor holds the
 * panel and the top is (h - 420) / 2; under 468px the max-height inset floor
 * takes over and the top is 24px. So the deepest overlap is 108 - 24 = 84px,
 * on any viewport 468px tall or less — iPhone landscape, a §08 surface, among
 * them. Measured, both engines, at 1920 x 468, 844 x 390 and 932 x 430.
 *
 * AND THIS PARAGRAPH WAS WRONG A SECOND TIME, after the first correction below.
 * It said "the deepest overlap the clamps allow is the 40.80px the height floor
 * produces", and labelled 1920 x 560 as the height floor. At 560 the panel is
 * 76vh = 425.6px — the floor is not binding there — and the overlap keeps
 * growing to 84px below it. The table's eight figures were right; the sentence
 * generalising from them was not. Found by Run 45's adversarial panel and
 * re-measured.
 *
 * AN EARLIER DRAFT OF THIS PARAGRAPH SAID THE OPPOSITE OF ITS OWN FIGURE. It
 * read "lands at y 109.44, which is inside the 108px header band by 1.44px" —
 * 109.44 is BELOW 108, so that is the one viewport in the table where the panel
 * clears, described as the case where it does not. It also offered a single
 * worked example as if the answer were the same everywhere, when it varies by
 * 40px across the range. Corrected after this run's adversarial panel.
 *
 * THE OVERLAP IS ACCEPTABLE AND THE REASON IS NOT THE SIZE OF IT. The panel is
 * an overlay (z 200) carrying its own close control, and the scrim at 199
 * already veils the header whatever the panel covers — measured: all eight
 * header controls answer to `.k-panel__scrim` and NONE to the panel. What is
 * not acceptable is anything becoming unreachable, so the close control and
 * every link are hit-tested across the whole box at 1px per Run 26's rule
 * rather than argued about.
 *
 * WHAT IS UNTOUCHED BELOW 768. J-17.1's full-screen sheet still rises and
 * falls on its own travel tokens, in the same full-screen box, at CSS
 * opacity 1 throughout. Nothing in this rule reaches it: every declaration
 * here is inside @media (min-width: 768px), which is where Run 39's K-51 put
 * the desktop geometry and where this rule replaces it. The STAGGER below is
 * deliberately NOT scoped that way — see its own note.
 *
 * The body keeps --k-space-5 at the sides rather than the edge-to-edge
 * panel's 12px gutter. Layout, not type. (So did the head, until J-43 floated
 * it in the corner with no padding of its own; the head half of this rule
 * went with it rather than being left overridden by a later one.)
 */
@media (min-width: 768px) {
  .k-panel--menu {
    /* border-box: the hairline belongs INSIDE the box, so four rules do not
       widen it past the clamp or past the inset floor. */
    box-sizing: border-box;
    /* Centred on both axes. inset + margin:auto, so `transform` stays the
       motion layer's alone. */
    inset: 0;
    margin: auto;
    width: clamp(var(--k-menu-panel-min), var(--k-menu-panel-w), var(--k-menu-panel-max));
    min-width: max-content;
    height: clamp(var(--k-menu-panel-h-min), var(--k-menu-panel-h), var(--k-menu-panel-h-max));
    /* The four-edge guarantee. These beat the clamps, so no width or height
       the clamp can produce puts an edge closer than --k-menu-float-inset-min
       to the viewport. They do NOT beat min-width: max-content — min-width
       wins a conflict — so the guarantee holds for any label under about
       640px wide at 768; see the note above. */
    max-width: calc(100vw - (2 * var(--k-menu-float-inset-min)));
    max-height: calc(100vh - (2 * var(--k-menu-float-inset-min)));
    border: var(--k-glass-hairline);
    border-radius: var(--k-glass-radius);
    overflow: hidden;
  }
  .k-panel--menu .k-panel__body { padding-left: var(--k-space-5); padding-right: var(--k-space-5); }
  .k-panel--menu .k-panel__body { scrollbar-gutter: stable both-edges; }
}

/*
 * AND THE DYNAMIC VIEWPORT, WHERE THE ENGINE HAS ONE — kept from Run 39 CP5's
 * review, restated for a centred box.
 *
 * A centred panel sized in vh resolves against the LARGE viewport in engines
 * that distinguish the two, so under a retracting mobile toolbar a 76vh panel
 * can be taller than the visible page and its foot can sit behind the toolbar.
 * This rule applies from 768, which includes iPhone landscape (844 x 390,
 * 932 x 430) — a §08 real-device acceptance surface. Clamping the height and
 * the max-height to the DYNAMIC viewport fixes it without reintroducing Run
 * 38's trap: the whole @supports block is skipped by an engine that does not
 * know `dvh`, so nothing computes to nothing and the large-viewport box stays
 * the default rather than the fallback.
 */
@supports (height: 100dvh) {
  @media (min-width: 768px) {
    .k-panel--menu {
      height: clamp(var(--k-menu-panel-h-min), var(--k-menu-panel-h-dvh), var(--k-menu-panel-h-max));
      max-height: calc(100dvh - (2 * var(--k-menu-float-inset-min)));
    }
  }
}

/*
 * J-17.2, below the dock boundary: the dock's Menu control is the X, so the
 * panel's own close control does not exist on the mobile screen. The NODE is
 * removed by assets/js/chrome.js (the ruling says removed, not hidden); these
 * rules are the no-script backstop — and with the close gone the head holds
 * only the sr-only dialog title, so the whole strip (padding + hairline over
 * nothing) goes with it. aria-labelledby resolves a hidden element's text, so
 * the dialog keeps its name (41.8).
 *
 * The list scrolls INSIDE the panel (the panel itself never moves once open),
 * chaining is contained so an iOS gesture past the end cannot reach the locked
 * page underneath, and the list's foot clears the dock band plus the safe
 * area, so the last item is fully visible above the dock at rest.
 */
@media (max-width: 767.98px) {
  .k-panel--menu .k-panel__close { display: none; }
  .k-panel--menu .k-panel__head { display: none; }
  .k-panel--menu .k-panel__body {
    overscroll-behavior: contain;
    padding-bottom: calc(var(--k-dock-h) + var(--k-dock-bottom) + var(--k-space-4) + env(safe-area-inset-bottom));
  }
}

.k-menu__list { list-style: none; margin: 0 0 var(--k-space-7); padding: 0; }
.k-menu__link {
  display: flex;
  align-items: center;
  min-height: var(--k-touch-min);
  color: var(--k-ink);
  text-decoration: none;
}
.k-menu__link:hover { text-decoration: underline; text-underline-offset: var(--kr-underline-offset); }
.k-menu__link:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--k-focus-offset); }
.k-menu__link[aria-current="page"] { text-decoration: underline; text-underline-offset: var(--kr-underline-offset); }
/* 41.2: Account, Orders and Sign out sit at the FOOT of the panel. */
/*
 * 41.2: "Signed-in users additionally see Account, Orders, Sign out AT THE FOOT
 * of the panel." `margin-top: auto` is how that is expressed — and it was
 * INERT, because `.k-panel__body` is `flex: 1; overflow-y: auto` with no
 * `display`, so it is a flex ITEM of `.k-panel` and a BLOCK container for its
 * own children. An auto top margin on a block-level child computes to 0
 * (CSS 2.1 10.6.3), so the account tier simply followed the primary list.
 *
 * Nothing could see it: the tier renders only when signed in, and every
 * capture, every CP-A measurement and the whole glass block run SIGNED OUT.
 * Found by this run's adversarial panel, which is also the only reason the
 * 151px of empty panel CP-A opened was not reported to the owner as a layout
 * question with the answer already sitting in the stylesheet.
 *
 * SCOPED TO THE MENU. `.k-panel__body` is shared with the search panel's form
 * and the cart drawer's body, and neither wants a flex column.
 */
.k-panel--menu .k-panel__body { display: flex; flex-direction: column; }

.k-menu__list--account { margin: auto 0 0; padding-top: var(--k-space-5); border-top: var(--k-border-hairline); }

/*
 * K-77 (Husnain, 5 October 2026): "Put Account, Orders and Sign out in one row."
 * One row of three at every width, in their order. Signed in, the stacked tier
 * was 3 x 44px; as a row it is one 44px line, which gives the panel 88px back.
 *
 * THE SPACE BETWEEN THEM IS --k-space-5, the gap the consent banner already
 * puts between its two policy links (components.css) — the house's one row of
 * inline links. No glyph: the theme has no separator between links anywhere,
 * and 24px between three words of R14 reads as three words.
 *
 * BELOW 768 the row starts at the left, under the left-aligned list of J-17's
 * full-screen sheet. FROM 768 it is centred: see the J-43 block below.
 *
 * IT WRAPS RATHER THAN SHRINKS. The three need 228px; a 375px phone zoomed to
 * 200% is a 187px sheet, and a row that may not wrap squeezed "Sign out" to a
 * 35px box running off the edge (measured, Run 47). Wrapping keeps every link
 * its own 44px target at any zoom; at every phone width it is one row.
 */
.k-menu__list--account { display: flex; flex-wrap: wrap; column-gap: var(--k-space-5); }
/* Each its own 44px target at every width: a word narrower than 44px still gets the floor. */
.k-menu__link--account { min-width: var(--k-touch-min); }

/*
 * FROM 768 THE CONTENTS ARE CENTRED ON BOTH AXES, AND THE PANEL DOES NOT
 * SCROLL — owner ruling of 5 October 2026 (Husnain, from a capture of staging,
 * signed out); J-43, RC-168. Closes K-69.
 *
 *   "what I need is the contents of the menu to be centred, in the centre, it
 *    would look better since a lot of the space right now is hollow."
 *   "the scroller pointed by the blue arrow, I need that gone."
 *
 * HIS SCREEN, AND WHY THE SCROLLBAR WAS THERE AT ALL. His capture is 1920 x
 * 1080 PHYSICAL pixels from a display at Windows' 125% scaling: a 1536 x 730
 * CSS viewport. Every figure in it is x 1.25 — the 55px link pitch he showed is
 * this build's 44px; "How Pre-order Works", 216.16px wide here, is 270px in his
 * capture (the brief read 266 off it by eye). There the panel is 554.8px tall
 * and the ten links needed 615: the panel's 2px of border, the head's 77px band,
 * the body's 24 + 24, the list's 48px trailing margin and 440px of links. So the
 * bar he arrowed was 60px of real overflow, not a styling artefact, and the
 * pitch is already AT the 44px floor (§40.5) — it has nothing left to give.
 * The room came from the panel's own furniture instead, below.
 *
 * THREE DECISIONS, each its own declaration.
 *
 *   1. EACH LINK IS CENTRED ON THE PANEL'S OWN CENTRE LINE. The list is a
 *      column whose items centre (align-items), so every link is its own box
 *      on the line — not a left-aligned column nudged to the middle, which
 *      would centre the block and leave "Men" hanging off its left edge. The
 *      link shrinks to its word with --k-touch-min as the floor on both axes,
 *      and centres its word inside that floor where the word is narrower
 *      ("Men" is 34.14px). So the clickable box is where the word is: a
 *      full-width row with a centred word would navigate on a click 700px
 *      away from it.
 *
 *   2. THE BLOCK IS CENTRED HORIZONTALLY, which (1) gives — provided the
 *      scrollbar gutter does not take it back. `scrollbar-gutter: stable`
 *      reserves the bar's 15px on the RIGHT only, even when nothing scrolls,
 *      so in a browser that draws classic scrollbars (his Chrome on Windows)
 *      the content box's centre sat 7.5px left of the panel's. `both-edges`
 *      (above) reserves it symmetrically, so the centre line is the panel's
 *      whether or not a bar is drawn.
 *
 *   3. THE BLOCK IS CENTRED VERTICALLY WHERE IT FITS, AND SCROLLS FROM THE
 *      TOP WHERE IT DOES NOT. `margin-block: auto` on the primary list, inside
 *      the body's flex column — and NOT `justify-content: center` on the body.
 *      An auto margin takes only POSITIVE free space: when the list is shorter
 *      than its box the two margins split the difference and it sits in the
 *      middle; when it is taller there is no free space, both margins compute
 *      to 0, and the list starts at the top of the scroller with its first
 *      item in view. `justify-content: center` overflows BOTH ways instead,
 *      and a centred block taller than its scroller pushes its first item
 *      above the top, where no scroll position reaches it.
 *
 * THE BOX IT CENTRES WITHIN is the body's content box, less §41.2's account
 * tier when there is one. The tier stays pinned to the foot (Run 44's fix)
 * because the primary list's LOWER auto margin is what pushes it there; its own
 * top margin is a fixed --k-space-5 rather than auto, so it takes no share of
 * the free space and the nav block centres in exactly the space ABOVE it. With
 * an auto margin of its own the free space would split three ways and the
 * block would sit a third of the way down.
 *
 * THE CLOSE CONTROL FLOATS IN THE CORNER, AND ITS BAND GOES. The head was a
 * 77px band in flow above the list — 16 + 44 + 16 and a hairline — holding one
 * 44px control and a screen-reader title. Taken out of flow it keeps the exact
 * coordinates it had (16px down, 24px in from the right), stays first in the
 * tab order and first in the stagger, and paints above the list
 * (--k-z-content, LOCAL to the panel's stacking context, which the items' own
 * animation stacking contexts at z auto cannot reach over). The hairline
 * goes with the band: a rule under one corner control is not a divider.
 * Recorded for the owner as K-76, because it is a visible choice he has not seen.
 *
 * ITS BOX IS THE CLOSE CONTROL'S OWN, 44 x 44, AND NOT THE BAND'S. The first
 * build floated the head with its padding still on — a 92 x 76 box flush with
 * the panel's top-right corner. The body now starts at the panel's top, so its
 * scrollbar runs up that edge, and the transparent box sat over the top 76px of
 * it: wherever the list still scrolls (his own screen, signed in) the up arrow
 * and the top of the track answered as the head and did nothing. Three of this
 * run's reviewers found it. The offsets moved from padding into top/right, so
 * the control is where it was and the box around it is only the control. The
 * bar is in the body's outer 15px; the close's box starts 24px in. Centred
 * links never reach the corner either — the longest is 216px wide in a panel
 * at least 606px wide. menu-centre.spec.js hit-tests the top of the drawn bar.
 *
 * WHERE IT STILL DOES NOT FIT, IT SCROLLS AND THE BAR SHOWS. With the band
 * gone the ten links need 490px. The panel is 76vh, so they fit in any window
 * at least 645px tall (490 / 0.76) — his 730 included — and scroll in a
 * shorter one: 1100 x 600, for instance, where the panel is 456px. (Below 553px
 * tall the 420px height floor takes over; that is not where the line is.) The
 * thirteen links a signed-in visitor sees needed 671px stacked — a window at
 * least 883px tall. Since K-77's row (Run 47) they need 583px, a WINDOW at least
 * 768px tall: a 1280 x 800 window fits, a 768px-tall one by under a pixel (a
 * maximised browser on a 1366 x 768 laptop is shorter, about 650px, and still
 * scrolls), and his 1536 x 730 (a 554.8px panel) by 28px. Nothing here hides a
 * scrollbar, and nothing may: a hidden bar over overflowing content leaves
 * items a visitor cannot see and no sign they exist. tests/playwright/
 * menu-centre.spec.js measures the body's own scrollHeight against its
 * clientHeight, which a hidden bar cannot satisfy, and — at 1100 x 600 signed
 * out and at his 1536 x 730 signed in — reads the drawn bar from pixels and
 * hit-tests its top. The account links became one row (K-77, Run 47); what
 * remains at his screen — a taller panel or two columns — is the owner's.
 *
 * BELOW 768 NOTHING CHANGES. The ruling is about the panel he was looking at,
 * the floating one; J-17's full-screen sheet keeps its left-aligned list, its
 * own close in the dock, and its foot clear of the dock band.
 */
@media (min-width: 768px) {
  .k-panel--menu .k-panel__head {
    position: absolute;
    top: var(--k-space-4);
    right: var(--k-space-5);
    z-index: var(--k-z-content);
    padding: 0;
    border-bottom: 0;
  }
  .k-panel--menu .k-menu__list { display: flex; flex-direction: column; align-items: center; }
  .k-panel--menu .k-menu__list:not(.k-menu__list--account) { margin-block: auto; }
  .k-panel--menu .k-menu__list--account { margin-top: var(--k-space-5); }
  .k-panel--menu .k-menu__link { justify-content: center; min-width: var(--k-touch-min); }
  /*
   * K-77's ROW, ON THE CENTRE LINE. J-43 puts every link of the list above on
   * the panel's centre line; a row of three cannot put all three there, so the
   * ROW is centred and its MIDDLE link sits on the line. Two equal outer tracks
   * do both at once: Orders takes the middle track at its own width, centred on
   * the line, and Account and Sign out sit against it at the --k-space-5 gap,
   * each its own word wide. The outer words differ in length (Sign out is the
   * longer), so the row's ink is a few pixels wider on the right — the spacing
   * between the three words stays even, which a centred group of three unequal
   * words could only buy by moving the middle word off the line.
   */
  .k-panel--menu .k-menu__list--account {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: var(--k-space-5);
  }
  .k-panel--menu .k-menu__list--account > :first-child { justify-self: end; }
  .k-panel--menu .k-menu__list--account > :last-child { justify-self: start; }
  /* Without WooCommerce only Sign out renders: alone, it takes the middle track. */
  .k-panel--menu .k-menu__list--account > :only-child { grid-column: 2; justify-self: center; }
}

/* --- 41.4 SEARCH: an overlay panel beneath the header -------------------- */
/*
 * SECTION 10: "Search expands as a compact field above the dock, not a
 * full-screen search page." It is anchored to the TOP and its height is
 * CONTENT-LED — a field, plus up to two suggestions or two live matches. There
 * is no half-screen decision to make here and none is made: unlike the cart
 * (J-21's --k-cart-drawer-h) the box still grows to fit what is in it.
 *
 * WHAT J-24.2 CHANGED IS THE CEILING. The cap was `100dvh`, which let a long
 * results list reach the floor of the viewport. That was harmless while the
 * dock hid under the panel; now the dock carries the panel's ONLY close
 * control below 768, so a panel that can reach the dock band is a panel that
 * can paint over its own X. The cap therefore stops above the dock, and the
 * dock is visible and in place for the whole of the panel's life. From 768 the
 * dock does not exist (40.10) and the full-height cap is restored below with
 * the desktop `top`. RC-85.
 */
.k-panel--search {
  inset: 0 0 auto 0;
  max-height: calc(100dvh - var(--k-dock-h) - var(--k-dock-bottom) - var(--k-space-4) - env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  /*
   * RC-65: the announcement term is CONDITIONAL on the bar actually being on
   * the page — the same body:has(.k-announce) seam collection.css already
   * uses for the hero. The old unconditional calc reserved 36px for a bar
   * that did not exist (40.1 LOCKED: an absent bar occupies no height), so
   * the desktop search panel opened with a 36px gap below the header on
   * every route. Known residual, recorded in RC-65: with a bar on the page
   * AND the page scrolled, the non-sticky bar has left the viewport while
   * the sticky header remains, and the panel still reserves the bar's row —
   * a positional refinement owned by the F-13 measure, not silently fixed
   * here.
   */
  /* 40.10: no dock from 768, so nothing is reserved for one. */
  .k-panel--search { top: var(--k-header-h-desktop); max-height: 100dvh; }
  body:has(.k-announce) .k-panel--search { top: calc(var(--k-announce-h-desktop) + var(--k-header-h-desktop)); }
}
/*
 * J-24.2, on the J-17.2 pattern: below 768 the dock's own Search control is
 * the X and the panel's chrome close must not exist — "Do not add a second
 * separate close button." chrome.js takes the node out of the DOM; this is the
 * no-script backstop, and it removes the head with it, because the search
 * head holds nothing else but a screen-reader-text <h2> and a bare hairline
 * over nothing is a rule with no job. aria-labelledby resolves a display:none
 * element's text, so the dialog keeps its name (41.8) — the same reasoning the
 * menu's block above records.
 *
 * THE INLINE CLEAR-TEXT × IS NOT TOUCHED AND MUST NOT BE. It lives in
 * .k-panel__body, inside the field, and Section 10 names it as a separate
 * control with a separate job: the X dismisses the surface, the × empties the
 * query. Removing the panel's close removes one of Section 10's two controls,
 * not both. RC-85.
 */
@media (max-width: 767.98px) {
  .k-panel--search .k-panel__close { display: none; }
  .k-panel--search .k-panel__head { display: none; }
  .k-panel--search .k-panel__body { overscroll-behavior: contain; }
}

.k-search__field { display: flex; align-items: center; gap: var(--k-space-2); border-bottom: var(--k-hairline) solid var(--k-ink); }
.k-search__input { flex: 1; border: 0; background: none; color: inherit; padding: var(--k-space-3) 0; }
.k-search__input:focus-visible { outline: none; }
/*
 * THE PLACEHOLDER IS THE ONLY VISIBLE LABEL, so it is text under SC 1.4.3 and
 * gets a governed colour — Run 38 review. The theme never set one: Chromium's
 * default #757575 was 4.6:1 on white and falls to 2.87:1 on the glass panel over
 * black; WebKit's #A9A9A9 was already 2.35:1 on white and is 1.46:1 on glass.
 * Graphite is 9.54:1 at the worst the glass can do. opacity: 1 because Firefox
 * dims placeholders by default.
 */
.k-search__input::placeholder { color: var(--k-graphite); opacity: 1; }
.k-search__field:focus-within { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--k-focus-offset); }
.k-search__clear { min-width: var(--k-touch-min); min-height: var(--k-touch-min); border: 0; background: none; color: inherit; cursor: pointer; }
.k-search__list { list-style: none; margin: var(--k-space-5) 0 0; padding: 0; display: grid; gap: var(--k-space-4); }
.k-search__result { display: grid; grid-template-columns: var(--k-space-9) 1fr auto; gap: var(--k-space-4); align-items: center; color: var(--k-ink); text-decoration: none; min-height: var(--k-touch-min); }
.k-search__result img { width: 100%; height: auto; display: block; }
.k-search__result:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--k-focus-offset); }

/* --- 43.1 CART DRAWER ---------------------------------------------------- */
/*
 * "The cart drawer specified in Section 10 is the cart surface on mobile,
 * tablet and desktop. On desktop it opens from the RIGHT at 440px width."
 *
 * THE MOBILE FORM IS RULED, NOT CONTENT-LED — owner ruling J-21, 8 September
 * 2026, Husnain: "right now it opens a very little window, but what I want is
 * it covers half the page screen." Section 10's "height is content-led with a
 * maximum" is superseded below 768 and the 85dvh maximum goes with it: the
 * height is one token, --k-cart-drawer-h (50dvh, DEFAULT). Section 10's
 * "internal scroll" is NOT superseded — it becomes load-bearing, because the
 * box no longer grows to fit the contents. RC-72.
 */
.k-panel--cart { inset: auto 0 0 0; height: var(--k-cart-drawer-h); border-top-left-radius: var(--k-dock-radius); border-top-right-radius: var(--k-dock-radius); }
/*
 * §41.7 LOCKED, untouched by J-21 (which is the mobile bottom drawer only):
 * from 768 the drawer opens from the RIGHT at 440px, full height, square.
 *
 * `height: auto` is not tidying. `inset: 0 0 0 auto` sets top AND bottom, and
 * an absolutely positioned box with top, bottom and height all resolved is
 * over-constrained — CSS drops `bottom`, so the inherited 50dvh would leave
 * the desktop drawer half-height and hanging from the top of the viewport.
 */
/*
 * THE DOCK BAND, RESERVED IN THE BASE RULE AND GIVEN BACK AT ≥768 — not
 * declared inside `@media (max-width: 767.98px)`, which is where it naturally
 * wanted to go.
 *
 * The two mobile/desktop queries in this file are `(max-width: 767.98px)` and
 * `(min-width: 768px)`, and between them lies a sliver — 767.99px, reachable
 * by fractional browser zoom — where NEITHER matches. The drawer's height is
 * already immune to it, because 50dvh is declared in the base rule and undone
 * at ≥768. The clearance was not: in the sliver the dock is still displayed
 * (its own hide is `min-width: 768px`) and still raised over the drawer, so a
 * drawer with no reserved band would have put Checkout under the pill. Same
 * shape as the height, so the same immunity.
 *
 * The reset restores exactly what .k-panel__body already declares, so the
 * ≥768 drawer computes identically to before this run — §41.7 untouched.
 * The menu keeps the sliver it has always had; changing its boundary is a
 * refactor of the panel this run was told not to rebuild, and it is recorded
 * as a residual rather than smuggled in here. RC-72.
 */
.k-panel--cart .k-panel__body {
  overscroll-behavior: contain;
  padding-bottom: calc(var(--k-dock-h) + var(--k-dock-bottom) + var(--k-space-4) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .k-panel--cart { inset: 0 0 0 auto; width: var(--k-cart-drawer-w); height: auto; max-height: 100dvh; border-radius: 0; }
  .k-panel--cart .k-panel__body { overscroll-behavior: auto; padding-bottom: var(--k-space-5); }
}

/*
 * J-21, below the dock boundary, the same shape J-17.2 gave the menu: the
 * dock's Cart control is the X, so the drawer's own close control does not
 * exist on the mobile screen. The NODE is removed by assets/js/chrome.js (the
 * ruling supersedes the control, it does not hide it); this rule is the
 * no-script backstop.
 *
 * The head STAYS, unlike the menu's. The menu's head holds nothing but a
 * screen-reader-text title, so with the close gone there was nothing left to
 * draw; the drawer's <h2>Cart</h2> is visible type and removing it would be a
 * change nobody ruled.
 *
 * The list scrolls INSIDE the drawer, chaining is contained so an iOS gesture
 * past the end cannot reach the locked page underneath, and the foot clears
 * the dock band plus the safe area — so the Checkout button, which is the
 * last thing in the body, is fully visible above the dock rather than under
 * the pill that is now floating over the drawer.
 */
@media (max-width: 767.98px) {
  .k-panel--cart .k-panel__close { display: none; }
  /*
   * 29.88px OF NOTHING, INSIDE A BOX THE OWNER FIXED AT HALF THE SCREEN.
   *
   * The drawer's head measured 84.88px at every mobile width. Its governed
   * parts come to 55: --k-space-4 twice (32) + M18's 22px line + the 1px
   * hairline. The remaining 29.88 is the user agent's default `0.83em 0` on
   * an <h2> — a value from no clause and no token, which .k-panel__head's
   * `display: flex` prevents from collapsing away, so it is pure added
   * height. It cost 12% of the usable content area at 390 and 18% at 375.
   * 6.3: spacing is a governed system and a page-specific value needs a
   * documented reason; a browser default is not one. Removing it takes the
   * head to 55px and gives the ruled 50% box back 29.88px of contents.
   *
   * Scoped below 768 ONLY, deliberately. The identical 29.88px is still in
   * the ≥768 drawer's head, because §41.7's drawer is outside this run's
   * scope and "desktop completely untouched" is an instruction, not an
   * oversight. It is recorded as a follow-up rather than fixed quietly.
   */
  .k-panel--cart .k-panel__head h2 { margin: 0; }
}

.k-cart__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--k-space-5); }
.k-cart__item { display: grid; grid-template-columns: var(--k-space-10) 1fr; gap: var(--k-space-4); }
.k-cart__media img { width: 100%; height: auto; display: block; }
.k-cart__name a { color: var(--k-ink); text-decoration: none; }
.k-cart__name a:hover { text-decoration: underline; }
.k-cart__variant, .k-cart__availability { color: var(--k-graphite); margin: var(--k-space-1) 0 0; }
.k-cart__qty { display: inline-flex; align-items: center; gap: var(--k-space-2); margin-top: var(--k-space-3); }
/*
 * R48-014 — THE CART AND FOOTER CONTROLS TAKE --k-border-control, Run 56.
 *
 * The quantity button, the quantity input, the Continue button and the
 * newsletter field all drew their only visible edge in --k-stone (#E8E5DF),
 * which is 1.20:1 on Snow and 1.26:1 on white. SC 1.4.11 asks 3:1 of a user
 * interface component's boundary, and on these the border IS the boundary:
 * each has `background: none` or the page ground behind it, so fill and
 * surround differ by about 1.0:1 and nothing else marks where the control is.
 * --k-border-control is 5.01:1 on Snow, 5.23:1 on the ground.
 *
 * THE :disabled STATE BELOW KEEPS --k-mist, deliberately. SC 1.4.11 exempts
 * "inactive user interface components", and a disabled control that looked as
 * emphatic as a live one would be worse for everyone. The audit asked for
 * four rules here; .k-cart__continue was not among them and is the same
 * defect on a button, so it is repointed too.
 */
.k-cart__qtybtn { min-width: var(--k-touch-min); min-height: var(--k-touch-min); border: var(--k-hairline) solid var(--k-border-control); background: none; color: inherit; cursor: pointer; }
.k-cart__qtybtn:disabled { color: var(--k-mist); border-color: var(--k-mist); cursor: not-allowed; }
.k-cart__qtyinput { width: var(--k-space-8); text-align: center; border: var(--k-hairline) solid var(--k-border-control); background: none; color: inherit; min-height: var(--k-touch-min); }
.k-cart__unit { color: var(--k-graphite); margin: var(--k-space-2) 0 0; }
.k-cart__limit { color: var(--k-status-error); margin: var(--k-space-2) 0 0; }
.k-cart__totals { margin-top: var(--k-space-6); padding-top: var(--k-space-4); border-top: var(--k-border-hairline); }
.k-cart__total { display: flex; justify-content: space-between; margin: 0; }
/* 43.4, beneath the totals. */
.k-cart__nohold { color: var(--k-graphite); margin: var(--k-space-3) 0 0; }
.k-cart__actions { display: grid; gap: var(--k-space-3); margin-top: var(--k-space-5); }
.k-cart__checkout { display: inline-flex; align-items: center; justify-content: center; background: var(--k-ink); color: var(--k-snow); border: var(--k-hairline) solid var(--k-ink); text-decoration: none; min-height: var(--k-touch-min); }
.k-cart__checkout:disabled { opacity: .45; cursor: not-allowed; }
.k-cart__continue { border: var(--k-hairline) solid var(--k-border-control); background: none; color: inherit; cursor: pointer; min-height: var(--k-touch-min); }
/* 08 / 2.5.8: Remove is a real target, not an 18px line of text. */
.k-cart__remove { display: inline-flex; align-items: center; min-height: var(--k-touch-min); background: none; border: 0; cursor: pointer; padding: 0; }
.k-cart__blocked { margin: 0; }

/*
 * 43.5's INLINE Undo row — R48-013.
 *
 * INLINE, AND NOT THE 57.5 TOAST: the clause says inline, and the toast region
 * is a body child (inc/primitives.php) that assets/js/chrome.js inerts for the
 * whole time a panel is open, so a toast raised from an open drawer would paint
 * above it (--k-z-toast over --k-z-panel) and be reachable by neither pointer
 * nor Tab.
 *
 * NO FILL AND NO NEW COLOUR PAIR. The row sits on the drawer's own ground and
 * inherits the drawer's own ink, so it introduces no contrast pair to verify;
 * the left rule is the marking, the same shape .k-toast uses.
 *
 * NO text-decoration, AND NO BORDER. The Undo wears .kr-text-link, which owns
 * the underline as an animated background-size (fonts.css) because s05 states
 * that a state "must not change font-size, line-height, tracking or cause
 * accidental reflow" — a text-decoration toggle moves the line box, which is
 * the mechanism that primitive exists to avoid. background-COLOR, not the
 * background shorthand, for the same reason: the shorthand would reset the
 * background-image the underline is drawn with. The shape below is
 * .k-cart__remove's, one rule above: a control that draws no border raises no
 * SC 1.4.11 boundary and adds no --k-border-control pin.
 *
 * THE SAME ROW CARRIES AN ERROR'S DISMISS CONTROL. One class, because they are
 * the same affordance in the same place; what differs is the timer, which is
 * suppressed for an error in chrome.js, not here.
 */
.k-cart__status { display: flex; align-items: baseline; gap: var(--k-space-3); margin: 0 0 var(--k-space-5); padding-left: var(--k-space-3); border-left: var(--k-space-1) solid var(--k-ink); }
.k-cart__status p { margin: 0; flex: 1 1 auto; }
.k-cart__undo { flex: none; display: inline-flex; align-items: center; min-height: var(--k-touch-min); background-color: transparent; border: 0; padding: 0; color: inherit; cursor: pointer; }
.k-cart__empty { display: grid; gap: var(--k-space-5); }
.k-cart__suggestions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--k-space-4); }
.k-cart__suggestion { display: grid; grid-template-columns: var(--k-space-9) 1fr; gap: var(--k-space-4); align-items: center; color: var(--k-ink); text-decoration: none; min-height: var(--k-touch-min); }
.k-cart__suggestion img { width: 100%; height: auto; display: block; }
/*
 * The Run 18 populated-drawer specimen's in-flow notice (J-21, RC-72) — the
 * same shape and the same governed 6.4 warning pair as the Run 14 edition
 * board's (product.css), so a screenshot cannot crop the marking away from
 * the content it governs. inc/review-previews.php emits this class only
 * behind its fail-closed gate, so these selectors match nothing a customer
 * can see.
 */
.k-cart__reviewnotice { background: var(--k-status-warning-surface); padding: var(--k-space-3); margin-bottom: var(--k-space-5); }
.k-cart__reviewnotice p { margin: 0 0 var(--k-space-2); }
.k-cart__reviewnotice p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Section 10: "Drawer opens/closes with fade and minimal movement." The
     exit now actually plays: chrome.js keeps a closing panel in the document
     until its transition ends (it used to set [hidden] synchronously, so
     "opens/closes with fade" was true of the open only). */
  .k-panel { transition: opacity var(--k-motion-quick) var(--k-ease-calm), transform var(--k-motion-quick) var(--k-ease-calm); }
  .k-panel:not(.is-open) { opacity: 0; }
  .k-panel--cart:not(.is-open) { transform: translateY(var(--k-space-4)); }
}

/*
 * ≥768 THE MENU FADES AND RISES — J-37.2, RC-137. It no longer touches an
 * edge, so arriving from one is wrong: 41.1's left slide-fade (J-17.3 kept it
 * "untouched") is superseded by a fade with a small rise, --k-space-4, on the
 * house --k-motion-standard and --k-ease-calm. No new easing: the tokens hold
 * three (--k-ease-calm, --k-menu-ease, the wordmark's linear) and the only
 * other curve in the theme is F-02's measured filter animation (collection.css);
 * this adds none. GlassTest pins the set. Transform and opacity only, so nothing lays out per frame.
 *
 * The mobile menu's rise and fall (J-17.1, J-19, J-22.3) is the
 * (max-width: 767.98px) block below and is not touched.
 */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .k-panel--menu {
    transition: opacity var(--k-motion-standard) var(--k-ease-calm), transform var(--k-motion-standard) var(--k-ease-calm);
  }
  .k-panel--menu:not(.is-open) { transform: translateY(var(--k-space-4)); }
}

/*
 * UNDER REDUCED MOTION THE RISE GOES AND THE FADE STAYS — J-37.2. A fade
 * carries no movement (Section 08 excludes "slide/transform effects"), which
 * is the reasoning home.css's 11.2 reveal and the wordmark ramp already use.
 *
 * !important IS THE MECHANISM, NOT A HABIT. tokens.css's §08 backstop zeroes
 * every transition with `* { transition-duration: .01ms !important }`, so an
 * ordinary declaration here could never play. Among !important declarations
 * specificity still decides, and a class outranks the universal selector: this
 * wins, and only for this panel's opacity. chrome.js reads the computed
 * duration to decide whether to wait for transitionend, so the close fades
 * out rather than vanishing.
 */
@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .k-panel--menu { transition: opacity var(--k-motion-standard) var(--k-ease-calm) !important; }
  .k-panel--menu:not(.is-open) { opacity: 0; transform: none; }
}

/*
 * J-17.1, below the dock boundary: the menu RISES from the bottom to rest and
 * FALLS back down — transform only, full opacity throughout (a full-screen
 * sheet needs no fade, and the travel must never read through a half-faded
 * page). Never height, top, or anything that lays out: the closed state is
 * the same full-screen box translated one viewport down. Duration and easing
 * are the J-19 DEFAULT tokens (RC-67), tunable in tokens.css without a run —
 * and the two directions are separate: a transition plays with the
 * DESTINATION state's declared duration, so the base rule times the fall and
 * the .is-open rule times the rise. Under reduced motion none of this block
 * applies: the panel appears and disappears with no travel, and still opens
 * and closes.
 */
@media (prefers-reduced-motion: no-preference) and (max-width: 767.98px) {
  .k-panel--menu { transition: transform var(--k-menu-travel-close) var(--k-menu-ease); }
  .k-panel--menu.is-open { transition: transform var(--k-menu-travel-open) var(--k-menu-ease); }
  .k-panel--menu:not(.is-open) { opacity: 1; transform: translateY(100%); }
}

/*
 * J-21: THE CART DRAWER RISES AND FALLS THE SAME WAY. "The menu button
 * animation we did — I want the same for the cart as well."
 *
 * The same three DECLARATIONS the menu reads, not copies of their values, so
 * a later retune of the menu's feel moves the cart with it (tokens.css says
 * why the names still read "menu"). Transform only, full opacity throughout:
 * Section 10's fade is superseded, and a drawer that fades while it travels
 * reads as two effects fighting. Never height, top or bottom — the closed
 * state is the same 50dvh box translated its own height downward, so nothing
 * lays out per frame and Run 16's frame budget still holds.
 *
 * SOURCE ORDER IS THE MECHANISM, not an accident of where this landed. The
 * base block above declares `.k-panel { transition: opacity, transform }` and
 * `.k-panel--cart:not(.is-open) { transform: translateY(--k-space-4) }` at
 * the same specificity as these; this block wins because it comes after.
 * Run 17 lost a rule exactly here (RC-69) — do not move it above the base.
 *
 * Under reduced motion none of this applies: the drawer appears and
 * disappears with no travel, and still opens and closes.
 */
@media (prefers-reduced-motion: no-preference) and (max-width: 767.98px) {
  .k-panel--cart { transition: transform var(--k-menu-travel-close) var(--k-menu-ease); }
  .k-panel--cart.is-open { transition: transform var(--k-menu-travel-open) var(--k-menu-ease); }
  .k-panel--cart:not(.is-open) { opacity: 1; transform: translateY(100%); }
}

/* A closing panel is scenery: visible for the length of its exit transition,
   interactive never. chrome.js pairs this with the inert attribute. */
.k-panel.is-closing { pointer-events: none; }

/*
 * THE MENU'S CONTENTS ARRIVE IN SEQUENCE — owner ruling of 4 October 2026
 * (J-42.2), RC-157.
 *
 *   "one animation if you can add, all the contents show gradually in a row,
 *    I might not be using the right term but you get the point."
 *
 * A staggered reveal: each item enters after the one before it by a fixed
 * interval, rather than the whole list appearing at once.
 *
 * THE NUMBERS, AND WHERE THEY COME FROM. The interval is
 * --k-menu-stagger-step (25ms) and the per-item duration is --k-motion-quick
 * (200ms), at --k-ease-calm. The easing and the duration are tokens the build
 * already had; only the interval is new, and tokens.css says why none of the
 * --k-motion-* names fits it. The sequence ends at (items - 1) x 25 + 200:
 *
 *     signed out   11 items (the close, ten links)          450ms
 *     signed in    14 items (+ Account, Orders, Sign out)   525ms
 *     worst case   16 items (+ New Arrivals and Journal)    575ms, under
 *                  the 600ms ceiling glass.spec.js and CollectionTest assert
 *
 * Against the panel's own motion: below 768 the sheet rises over 500ms, so a
 * signed-out reveal finishes inside the rise and a signed-in one 25ms after it;
 * from 768 the panel fades in over 320ms (--k-motion-standard), and every
 * reveal outlasts that fade — by design, the items arrive onto a panel that
 * is already there.
 *
 * WHAT THIS PARAGRAPH SAID UNTIL RUN 45, left visible because the reasoning is
 * the kind a reader repeats: "--k-menu-stagger-step (40ms) … Eleven items …
 * put the last item's START at 400ms and the sequence's END at 600ms. That is
 * inside the 500ms the panel's own open travel already spends below 768."
 * 600 is not inside 500, and Run 44's correction (RC-165) moved the token to
 * 25ms without reaching this note.
 *
 * NOTHING IS UNREACHABLE WHILE IT RUNS, AND THAT IS THE WHOLE DESIGN.
 * The animation moves `opacity` and `transform` and NOTHING ELSE. No
 * visibility, no display, no pointer-events, no inert. An element at
 * opacity 0 is still in the layout, still hit-testable and still focusable,
 * so every link and the close control are clickable and tabbable at the FIRST
 * FRAME, before any of them has finished arriving. The tests assert that at
 * frame one rather than after the sequence, because a sequence that is
 * reachable only once it has finished is the defect this note exists to stop.
 *
 * IT IS NOT SCOPED TO 768. The ruling is about the menu's contents, and the
 * contents are the same list at every width. Below 768 the sheet's own rise
 * carries it; the stagger runs inside that rise rather than instead of it.
 *
 * WHAT ACTUALLY TURNS THIS OFF UNDER prefers-reduced-motion, established by
 * three mutations rather than by reasoning — the first two of which proved
 * GREEN and corrected what was written here.
 *
 * THE GATE IS THE MECHANISM. The stagger is only ever APPLIED inside
 * `@media (prefers-reduced-motion: no-preference)` below. Under `reduce` that
 * rule never matches, so `animation-name` stays at its initial `none` and
 * there is no animation and no delay. That is the whole of it.
 *
 * THE BLOCK BELOW AND ITS !important ARE BELT AND BRACES, and the mutations
 * say so plainly:
 *   - remove the !important — GREEN. `animation: none` resets name, delay and
 *     duration together, so the universal rule only reclaims
 *     `animation-duration`, which is already 0.
 *   - delete the whole block — ALSO GREEN, because the gate above is still
 *     doing the work.
 *   - unwrap the gate AND delete the block — RED, and this is the real claim.
 * They are kept because they state the intent at the point of reading and
 * because they catch a future change that moves the enabling rule out of the
 * gate.
 *
 * AND THE HAZARD THE GATE EXISTS FOR IS REAL, which is why none of this is
 * ceremony. tokens.css's global reduced-motion block resets
 * `animation-duration` and `transition-duration` with !important — it does NOT
 * reset `animation-delay`. An implementation that applied this animation
 * unconditionally and leaned on that block would keep every item's
 * 0 / 25 / 50 / 75ms delay, and the reveal would survive `reduce` as eleven
 * INSTANT appearances one interval apart: still a sequence, and still exactly
 * what the ruling says must stop. That is measured, not asserted — it is what
 * mutation M3 does, and the test goes red on it.
 *
 * An earlier draft of this note said the !important was the mechanism. It was
 * not, and the correction is left visible rather than tidied away, because the
 * next person to reach for a reduced-motion kill should see which of the three
 * things is load-bearing.
 */
@keyframes k-menu-item-in {
  from { opacity: 0; transform: translateY(var(--k-space-2)); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .k-panel--menu.is-open .k-menu__item,
  .k-panel--menu.is-open .k-panel__close {
    animation: k-menu-item-in var(--k-motion-quick) var(--k-ease-calm) both;
    animation-delay: calc(var(--k-menu-stagger-step) * var(--k-menu-stagger-i, 0));
  }
}

/* Belt and braces. The no-preference gate above is what turns the sequence off;
   deleting this block alone leaves the stagger correctly off (mutation M3,
   proved GREEN). It is kept to state the intent and to catch a change that
   moves the enabling rule out of that gate. */
@media (prefers-reduced-motion: reduce) {
  .k-panel--menu.is-open .k-menu__item,
  .k-panel--menu.is-open .k-panel__close {
    animation: none !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   SECTION 42 — FOOTER
   ========================================================================== */

.k-footer {
  border-top: var(--k-border-hairline);   /* 42.6: "top border 1px governed token" */
  background: var(--k-surface-page);      /* 42.6: "standard page background" */
  color: var(--k-ink);
  padding: var(--k-footer-pad-top) 0 var(--k-footer-pad-bottom);
}
.k-footer__inner { padding: 0 var(--k-gutter-mobile); display: grid; gap: var(--k-space-6); }

/* 42.7 LOCKED, mobile: the link groups collapse into accordions. <details> is
   keyboard-operable and works with no JavaScript; chrome.js adds only the
   "one open at a time" DEFAULT on top. */
.k-footer__group { border-bottom: var(--k-border-hairline); }
.k-footer__heading { display: flex; align-items: center; justify-content: space-between; min-height: var(--k-touch-min); margin: 0; }
/* Only the accordion's <summary> is a control; the Legal group's heading is a
   <p>, because 42.7 keeps the legal links outside the accordions. */
summary.k-footer__heading { cursor: pointer; }
.k-footer__heading::-webkit-details-marker { display: none; }
.k-footer__heading:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--k-focus-offset); }
.k-footer__list { list-style: none; margin: 0 0 var(--k-space-4); padding: 0; display: grid; gap: var(--k-space-2); }
.k-footer__list a { color: var(--k-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--k-touch-min); }
.k-footer__list a:hover { text-decoration: underline; text-underline-offset: var(--kr-underline-offset); }
.k-footer__list a:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--k-focus-offset); }

.k-footer__group--community { border-bottom: 0; }
.k-newsletter { display: grid; gap: var(--k-space-3); margin-top: var(--k-space-3); }
.k-newsletter__input { border: var(--k-hairline) solid var(--k-border-control); background: var(--k-surface-raised); color: inherit; padding: var(--k-space-3); min-height: var(--k-touch-min); } /* J-51: an input is a raised surface; at var(--k-surface-page) this was the one input filled with the page token — white like every other input before J-51, snow after it, found by the run's own review */
.k-newsletter__consent { display: flex; gap: var(--k-space-2); align-items: flex-start; color: var(--k-graphite); }
.k-newsletter__consent input { margin-top: var(--k-space-1); min-width: var(--k-space-4); min-height: var(--k-space-4); }
.k-newsletter__submit { background: var(--k-ink); color: var(--k-snow); border: var(--k-hairline) solid var(--k-ink); cursor: pointer; min-height: var(--k-touch-min); }
.k-footer__social { list-style: none; margin: var(--k-space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--k-space-4); }
.k-footer__pending { color: var(--k-graphite); }

/* 42.7: "legal links remain visible outside accordions … Cookie Settings link
   permanently visible." */
.k-footer__cookies { margin: 0; }
.k-footer__cookies button { border: 0; background: none; padding: 0; cursor: pointer; min-height: var(--k-touch-min); }

.k-footer__identity { display: grid; gap: var(--k-space-1); color: var(--k-graphite); }
.k-footer__identityrow--pending { color: var(--k-status-warning); }

/* J-67: Annex A writes the identity as ONE line joined by " · ", so when the
   Annex A canon supplies it the block flows instead of stacking. Each segment
   is its own inline-block, so the line breaks BETWEEN segments and never
   mid-address; the separator sits inside the segment it follows, so a wrap
   cannot strand a dot at the start of a line. */
.k-footer__identity--line { display: block; }
.k-footer__identity--line .k-footer__identityrow { display: inline-block; }
.k-footer__copyright { color: var(--k-graphite); margin: 0; }

@media (min-width: 768px) {
  .k-footer__inner { padding: 0 var(--k-header-pad-x); }
  /* 42.6 DEFAULT: two columns at 768. */
  .k-footer__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-space-6); }
  /*
   * 42.7 is a MOBILE clause: "Link groups collapse into accordions". Above the
   * mobile breakpoint the groups are always open and the summary reads as a
   * heading rather than a control.
   *
   * The `open` attribute is set by chrome.js, not here: a <details> hides its
   * content in a UA-internal slot that CSS cannot reopen, so a rule like
   * `.k-footer__list { display: grid }` looks like it works and does nothing.
   * With no JavaScript the groups stay closed and remain clickable, which is a
   * degradation rather than a break.
   */
  .k-footer__group { border-bottom: 0; }
  .k-footer__heading { cursor: default; }
  .k-footer__heading::marker { content: ""; }
}

@media (min-width: 1200px) {
  /* 42.6 DEFAULT: four columns at 1280 and 1440. */
  .k-footer__groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
