/*
 * Korotana component system — PRE-V6 SURFACES AWAITING THEIR APPENDIX M STEP.
 *
 * V6 (2 September 2026): the shared primitives (focus, buttons, links, fields,
 * inline errors, toasts, skeletons, badges, accordion, breadcrumb, empty and
 * global states) now live in primitives.css, which this sheet depends on. What
 * remains here is the page-level component set built under the superseded
 * documents: dock, sheet, card, swipe, filter, sizes, colour drawer, footer,
 * menu sheet and the specimen furniture. Every block is classified in
 * docs/v6-reconciliation.md and is rebuilt or deleted at its step (5–8).
 * Nothing new may be added here. Clause numbers in the comments below are
 * pre-V6 numbers.
 *
 *
 * The components themselves — everything a real page composes from. Kept
 * separate from component-states.css, which is only the specimen sheet that
 * documents them, so a page can use a component without inheriting the
 * reference page's furniture.
 *
 * TOKENS ONLY. Every value resolves to a --k-* token from tokens.css, except
 * the values the DNA states but has no token for, quarantined below.
 */

/* ==========================================================================
   UNTOKENISED DNA VALUES
   --------------------------------------------------------------------------
   Values the DNA states explicitly but tokens.css has no token for. NOT
   Korotana tokens — deliberately not named --k-*. Gathered here once so they
   are auditable and the system contains no scattered magic numbers.

   Nothing here is invented: each is the DNA's own figure, or the midpoint of
   a range the DNA gives. Those marked INFERRED are the exception — the DNA
   implies them without stating a number, and they need a decision.

   The 44px touch target and 2px focus ring were promoted to real tokens
   (--k-touch-min, --k-focus-ring) on 2026-08-02 and are no longer here.
   ========================================================================== */
:root {
  /* INFERRED: §25 says "with offset" but names no value. */
  --gap-focus-offset: var(--k-focus-offset); /* V6: promoted to --k-focus-offset (DEFAULT) */

  /* §25: "1 px Ink border" (secondary button), "Quiet 1 px border" (input).
     --k-grid-line exists but is hardcoded to Warm Stone, so it cannot express
     a 1px Ink border. Also §16: "1 px Warm Stone hairline separators". */
  --gap-hairline: var(--k-hairline); /* V6: promoted to --k-hairline */

  /* §14.2: "icons 1.5 px stroke, 20-22 px visual" */
  --gap-icon-size: 21px;
  --gap-icon-stroke: 1.5px;

  /* §17.1: wishlist heart "44×44 px target, 18-20 px visual icon" */
  --gap-wish-icon: 19px;

  /* §14.2: "translucent neutral surface at 72-82% opacity with 16-20 px
     backdrop blur (final blur at D16)". Midpoints used; D16 PENDING. */
  --gap-dock-opacity: 0.77;
  --gap-dock-blur: 18px;

  /* §25: "no heavy rounding" (input). INFERRED as zero — the DNA permits
     slight rounding but names no radius, and there is no radius token.
     §16 also requires "No rounded cards". */
  --gap-radius: var(--k-radius-none); /* V6: promoted to --k-radius-none (DEFAULT) */

  /* §12: "Maximum three visible weights per page: Regular, Medium, Semibold" */
  --gap-weight-regular: var(--k-weight-regular); /* V6: promoted */
  --gap-weight-medium: var(--k-weight-medium); /* V6: promoted */
  --gap-weight-semibold: var(--k-weight-semibold); /* V6: promoted */

  /* §14.1: "4-6 s per message (C1)". Midpoint. Distinct from --k-loop, which
     is hero film (12-18 s). */
  --gap-announce-interval: 5s;

  /* §24: "hover zoom max 1.02-1.04" */
  --gap-hover-zoom: 1.02;

  /* §13: "Text block maximum width 30-34 rem / 36-44 rem". INFERRED choice of
     the upper desktop bound. */
  --gap-measure: var(--k-measure); /* V6: promoted to --k-measure (DEFAULT) */

  /* Catalog Image DNA v2.0 §24: "Image to copy zone 32-40 px". A range, so the
     midpoint, per this block's own convention. */
  --gap-copy-gap: 36px;

  /* PENDING MEASURED SUITSUPPLY VERIFICATION. Owner ruling §3, 1 September 2026.

     The overlap module's centred maximum-width container. v2.0 §26 asks for one
     and never names it. 510 px is the figure A05 carried; it is NOT locked, and
     its status is pending measured verification against the reference.

     A DERIVED REPLACEMENT IS FORBIDDEN. The ruling is verbatim: "Do not derive a
     replacement value from the general KOROTANA grid." An earlier version of
     this block carried a value derived that way; the value and its derivation
     are withdrawn and struck from the record, so neither can later be mistaken
     for a decision.

     Class C under the replication clarification, and the ruling names this value
     as the example: inferred or adapted, no locked divergence, resolved by
     measurement and never by our grid. One line to swap when the measurement
     lands. */
  --gap-craft-max: 510px;
}

/*
 * §13 breakpoints (0-479 / 480-767 / 768-1023 / 1024-1439 / 1440+) have no
 * tokens, and CSS custom properties cannot be used inside a @media condition
 * even if they did. Breakpoints are written literally and flagged.
 */


/* ==========================================================================
   Focus ring — §25: 2 px outline with offset
   ========================================================================== */
.k-btn:focus-visible,
.k-link:focus-visible,
.k-accordion__trigger:focus-visible,
.k-swatch:focus-visible,
.k-field__input:focus-visible,
.k-card__link:focus-visible,
.k-wish:focus-visible,
.k-filterbtn:focus-visible,
.k-dot:focus-visible,
.k-sheet__close:focus-visible,
.is-focus {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--gap-focus-offset);
}

/* ==========================================================================
   §25 Swatch
   ========================================================================== */
.k-swatch {
  min-width: var(--k-touch-min);
  min-height: var(--k-touch-min);
  padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.k-swatch__visual {
  width: var(--k-space-5);
  height: var(--k-space-5);
  border: var(--gap-hairline) solid var(--k-mist);
  display: block;
  transition: transform var(--k-motion-instant) var(--k-ease-calm);
}
.k-swatch:hover .k-swatch__visual,
.k-swatch.is-hover .k-swatch__visual { transform: scale(var(--gap-hover-zoom)); }
.k-swatch[aria-pressed="true"] .k-swatch__visual,
.k-swatch.is-selected .k-swatch__visual { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }
.k-swatch.is-disabled { cursor: not-allowed; }
.k-swatch.is-disabled .k-swatch__visual { opacity: .4; }

/* ==========================================================================
   ANNOUNCEMENT BAR and DOCK — MOVED to assets/css/chrome.css
   ==========================================================================
   Rebuilt at Appendix M step 5 against V6 40.1-40.3 (a bar height FIXED per
   breakpoint so rotation causes zero layout shift, the governed dark surface,
   and the micro type role per owner ruling J-13.1) and Section 10 (a FLOATING
   dock: 16px insets, 12px above the safe area, ~65% opacity with blur, a 1px
   border, no shadow, hidden as the footer enters and from 768 up).

   What was here was the pre-V6 pair: a bottom-attached dock at 77% opacity
   whose fifth slot was labelled 'Bag' (prohibited by 43, retired by 61.1), and
   a bar whose height was derived rather than fixed.
   ========================================================================== */

/* ==========================================================================
   §18.7 (v5.1 §18.3) Purchase bar
   ========================================================================== */
/* No fill and no layer of its own (J-37, RC-136). The live bar is
   .k-purchase.k-pdp__purchase, whose glass is painted in tokens.css and whose
   layer is product.css's; a Snow fill here, loading after tokens.css at the
   same specificity, would have kept the live bar opaque. The z-index was
   inert on this in-flow specimen class and went with it. */
.k-purchase {
  border-top: var(--gap-hairline) solid var(--k-stone);
  padding: var(--k-space-3) var(--k-space-4);
  display: flex; align-items: center; gap: var(--k-space-4);
}
.k-purchase__price { font-size: var(--k-type-product); font-weight: var(--gap-weight-medium); }
.k-purchase__meta  { font-size: var(--k-type-micro); color: var(--k-graphite); }
.k-purchase .k-btn { margin-left: auto; }

/* ==========================================================================
   G3 System states
   ========================================================================== */
.k-sysstate {
  border: var(--gap-hairline) solid var(--k-stone);
  background: var(--k-porcelain);
  padding: var(--k-space-7) var(--k-space-5);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--k-space-4);
}
.k-sysstate__title { font-size: var(--k-type-h3); font-weight: var(--gap-weight-medium); }
.k-sysstate__body  { color: var(--k-graphite); max-width: var(--gap-measure); }

/* ==========================================================================
   G6 / §28 Media skeleton
   --------------------------------------------------------------------------
   "Skeletons pre-sized to media ratios in Porcelain/Warm Stone — CLS-safe,
   no spinners over hero media." Pre-sizing by aspect-ratio reserves the box
   before any asset loads, so nothing shifts.

   These also stand in for photography that does not exist yet. §23 is a gate
   and no approved assets have been produced, so every media field on the
   collection specimen is a skeleton, labelled as one.
   ========================================================================== */
.k-skel {
  background: var(--k-pad);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.k-skel::after {
  content: "";
  position: absolute;
  inset: var(--k-space-5);
  border: var(--gap-hairline) dashed var(--k-stone);
}
.k-skel__label {
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  color: var(--k-graphite);
  text-align: center;
  padding: var(--k-space-3);
  position: relative;
  z-index: var(--k-z-content);
}
/* §28 media asset matrix ratios. 5x9 was deleted by Run 57: its one asset,
   the PDP desktop hero, is 9:16 under owner ruling J-50 (28 October 2026),
   and a utility for a shape no asset has left is an invitation to reuse it. */
.k-skel--4x5  { aspect-ratio: 4 / 5; }
.k-skel--5x6  { aspect-ratio: 5 / 6; }
.k-skel--1x1  { aspect-ratio: 1 / 1; }
.k-skel--3x2  { aspect-ratio: 3 / 2; }
.k-skel--16x9 { aspect-ratio: 16 / 9; }
.k-skel--9x16 { aspect-ratio: 9 / 16; }

/* ==========================================================================
   Run 12 CP2 — the cross-surface media review box (RC-50, J-16.1)
   --------------------------------------------------------------------------
   Off production only (RC-11 gate in inc/media-slots.php — on production the
   emitting branch returns '', so these selectors match nothing there). Each
   box carries, on its face: the surface name, the Appendix B ratio as
   written, the rendered pixel box at the current viewport (filled by
   korotana_media_review_script()), the fit mode, and the §0.4 markers with
   their K/F rows. The look is product.css's .k-frame--review — dashed
   Porcelain, top-aligned, scrollable — restated here because product.css
   loads only on the PDP and these boxes render on the homepage and the
   collection surfaces too.

   NO SHAPE IS DECLARED HERE, deliberately: every box takes its geometry from
   the surface's own governed container (the hero's aspect-ratio, the 50vh
   feature, the module ratios, the card frame), so this file cannot invent a
   ratio (§15.1, §14.1). The one exception is the opening editorial, which is
   HEIGHT-DRIVEN by 14.1's own words and gets the viewport-height pair below.
   ========================================================================== */
.k-mediareview {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--k-space-2);
  padding: var(--k-space-3);
  box-sizing: border-box;
  overflow: auto;
  background: var(--k-porcelain);
  border: var(--k-hairline) dashed var(--k-border-control);
  color: var(--k-graphite);
  overflow-wrap: anywhere;
}
.k-mediareview > p { margin: 0; }
.k-mediareview__name { color: var(--k-ink); }

/* Fills a container whose governed geometry already made the box. */
.k-mediareview--fill { position: absolute; inset: 0; }

/*
 * 14.1: the opening editorial "does not use an invented fixed aspect ratio" —
 * it is height-driven, 100svh mobile / 100vh desktop (Appendix J ruling 8),
 * and its review box says so in words instead of printing a ratio. The pair
 * mirrors collection.css's .k-col .k-hero--viewport.
 */
.k-mediareview--opening { min-height: 100svh; }
@media (min-width: 768px) {
  .k-mediareview--opening { min-height: 100vh; }
}

/*
 * The production zero state for an empty media surface: §57.8's neutral
 * ground with NO shimmer. A skeleton's shimmer means "loading"; an unbound
 * CMS field is not loading and never resolves, so animating it stated a
 * falsehood at 1Hz over most of the viewport (RC-50, the second mechanism of
 * the owner's 7 September flicker report). Geometry comes from the caller's
 * box, exactly as the skeleton's did.
 */
.k-mediaground { position: absolute; inset: 0; background: var(--k-surface-skeleton); }

/* ==========================================================================
   Run 12 CP4 — draft-copy marking (RC-51, J-16.3). Off production only:
   inc/draft-copy.php emits nothing anywhere else, so these selectors match
   nothing a customer can see. The colours are the governed 6.4 WARNING
   functional pair — draft copy is a warning state, and reusing the dedicated
   status tokens is 6.3's reusable-system rule; no new colour exists for this.
   ========================================================================== */
.k-draft {
  border-left: 3px solid var(--k-status-warning);
  padding-left: var(--k-space-3);
}

.k-draft__list { margin: 0; padding-left: var(--k-space-4); }

/*
 * The ribbon: a fixed vertical tab on the left viewport edge, present on any
 * page that served a draft string, sized to survive a screenshot at 375
 * without covering the content under review. Above the header (draft status
 * outranks chrome in a review) and below panels/toasts, which must stay
 * usable over it.
 */
.k-draft-ribbon {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  padding: var(--k-space-3) var(--k-space-1);
  /* Glass (J-37, RC-136). The warning marking is carried by the text, in the
     warning colour, and by the warning-coloured edge — not by a tinted fill,
     which colour alone could never carry anyway (02). --k-glass-tint's 80% is
     set by exactly this text: 4.66:1 over black. */
  color: var(--k-status-warning);
  border: var(--k-hairline) solid var(--k-status-warning);
  border-left: 0;
  z-index: calc(var(--k-z-panel) - 1);
  pointer-events: none;
}

/*
 * Run 23 (J-26, RC-94): the same ribbon on the RIGHT edge, for the
 * edition-state selector. A modifier rather than a second component (6.3),
 * and it exists because the draft-copy layer holds the left edge — two notes
 * at the same 50% offset would hide each other, and a review marking nobody
 * can read is not a marking. Every other property is inherited.
 */
.k-draft-ribbon--right {
  left: auto;
  right: 0;
  border-left: var(--k-hairline) solid var(--k-status-warning);
  border-right: 0;
}

/* ==========================================================================
   §17.1 Product card
   --------------------------------------------------------------------------
   No rounded corners, no drop shadows (§16) — the page is the canvas.
   Card text aligns to the left edge of its media field.
   ========================================================================== */
.k-card { display: flex; flex-direction: column; gap: var(--k-space-3); position: relative; }
.k-card__media { position: relative; }

/* §17.1: wishlist heart top-right, 44×44 target, 18-20px visual */
.k-wish {
  position: absolute;
  top: 0; right: 0;
  min-width: var(--k-touch-min);
  min-height: var(--k-touch-min);
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--k-ink);
}
.k-wish__icon {
  width: var(--gap-wish-icon);
  height: var(--gap-wish-icon);
  stroke: currentColor;
  stroke-width: var(--gap-icon-stroke);
  fill: none;
  transition: fill var(--k-motion-instant) var(--k-ease-calm);
}
/* Outline = not saved; filled = saved. */
.k-wish[aria-pressed="true"] .k-wish__icon,
.k-wish.is-saved .k-wish__icon { fill: currentColor; }

/* §17.1: status label only when true */
.k-status {
  position: absolute;
  top: var(--k-space-2); left: var(--k-space-2);
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  background: var(--k-surface-raised); /* J-51: the raised ROLE, not the snow COLOUR — the ground is Snow now */
  color: var(--k-ink);
  padding: var(--k-space-1) var(--k-space-2);
}
.k-status--closed { background: var(--k-ink); color: var(--k-snow); }
/* Placeholder variant: used wherever real data would be required (P3). */
.k-status--placeholder {
  background: transparent;
  border: var(--gap-hairline) dashed var(--k-graphite);
  color: var(--k-graphite);
}

/* §17.1 (v5.1 §17.2): pagination dots only when more than one image */
.k-dots { display: flex; gap: var(--k-space-2); justify-content: center; padding: var(--k-space-2) 0; }
.k-dot {
  width: var(--k-space-2);
  height: var(--k-space-2);
  border-radius: 50%;
  background: var(--k-mist);
  border: 0; padding: 0; cursor: pointer;
}
.k-dot[aria-current="true"], .k-dot.is-current { background: var(--k-ink); }

.k-card__body { display: flex; flex-direction: column; gap: var(--k-space-1); }
/* §17.1: name and price compact, equal prominence */
.k-card__name,
.k-card__price {
  font-size: var(--k-type-product);
  font-weight: var(--gap-weight-regular);
  letter-spacing: var(--k-track-card);
  color: var(--k-ink);
  margin: 0;
}
/* G8: truthful compare-at rendered small, Mist strikethrough */
.k-card__compare { font-size: var(--k-type-micro); color: var(--k-mist); text-decoration: line-through; }
.k-card__link { color: inherit; text-decoration: none; display: block; }
.k-card__colours { display: flex; gap: var(--k-space-2); align-items: center; }
.k-card__more { font-size: var(--k-type-micro); color: var(--k-graphite); }

/* Placeholder text treatment — must read unmistakably as a placeholder (P3). */
.k-ph {
  font-family: var(--k-font-ui);
  color: var(--k-graphite);
  background: var(--k-porcelain);
  border: var(--gap-hairline) dashed var(--k-stone);
  padding: 0 var(--k-space-2);
  font-style: normal;
}

/* ==========================================================================
   §16 / G9 Filter button and sheet
   ========================================================================== */
.k-filterbtn {
  font-family: var(--k-font-ui);
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  min-height: var(--k-touch-min);
  padding: 0 var(--k-space-4);
  background: transparent;
  color: var(--k-ink);
  border: var(--gap-hairline) solid var(--k-ink);
  border-radius: var(--gap-radius);
  cursor: pointer;
}

/* Full-height sheet with large targets; Apply and Clear stay in the safe area.
   Its surface is glass (J-37, RC-136): painted in tokens.css with every other
   overlay's, never here. */
.k-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--k-z-sheet);
  display: flex;
  flex-direction: column;
  transition: transform var(--k-motion-standard) var(--k-ease-calm);
}
.k-sheet[hidden] { display: none; }
.k-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--k-space-4) var(--k-gutter-mobile);
  border-bottom: var(--gap-hairline) solid var(--k-stone);
}
.k-sheet__title { font-size: var(--k-type-h3); font-weight: var(--gap-weight-medium); margin: 0; }
.k-sheet__close {
  min-width: var(--k-touch-min); min-height: var(--k-touch-min);
  background: none; border: 0; cursor: pointer; color: var(--k-ink);
}
.k-sheet__body { flex: 1; overflow-y: auto; padding: var(--k-space-5) var(--k-gutter-mobile); }
.k-sheet__group { margin-bottom: var(--k-space-6); }
.k-sheet__grouptitle {
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  color: var(--k-graphite);
  margin: 0 0 var(--k-space-3);
}
.k-sheet__options { display: flex; flex-wrap: wrap; gap: var(--k-space-2); }
/* Large targets (G9) */
.k-sheet__option {
  min-height: var(--k-touch-min);
  /* §25 requires 44x44, not 44 tall. Short labels ("S", "L") measured 40-42px
     wide in the accessibility audit on 2026-08-02. */
  min-width: var(--k-touch-min);
  padding: 0 var(--k-space-4);
  display: inline-flex; align-items: center;
  border: var(--gap-hairline) solid var(--k-stone);
  background: var(--k-surface-raised); /* J-51: the raised ROLE, not the snow COLOUR — the ground is Snow now */
  color: var(--k-ink);
  font-size: var(--k-type-product);
  cursor: pointer;
}
.k-sheet__option[aria-pressed="true"] { border-color: var(--k-ink); background: var(--k-porcelain); }
.k-sheet__option:disabled { color: var(--k-mist); border-color: var(--k-mist); cursor: not-allowed; }
.k-sheet__foot {
  display: flex; gap: var(--k-space-3);
  padding: var(--k-space-4) var(--k-gutter-mobile);
  padding-bottom: calc(var(--k-space-4) + env(safe-area-inset-bottom));
  border-top: var(--gap-hairline) solid var(--k-stone);
  /* No fill of its own (J-37, RC-136): a Snow band here was an opaque strip
     across the foot of a glass sheet. The sheet's glass shows through it and
     the hairline above still separates Apply and Clear from the list. */
}
.k-sheet__foot .k-btn { flex: 1; }

/* ==========================================================================
   §16 Editorial media insertion
   ========================================================================== */
.k-editorial { position: relative; }
/* "Model and jacket dominate; 32 px text safe area" — 32px = --k-space-6 */
.k-editorial__text {
  position: absolute;
  left: var(--k-space-6); right: var(--k-space-6); bottom: var(--k-space-6);
  color: var(--k-snow);
}
.k-editorial__text--onlight { color: var(--k-ink); }
.k-editorial__kicker {
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--k-space-2);
}
.k-editorial__title { font-size: var(--k-type-h2); font-weight: var(--gap-weight-medium); margin: 0; }

/* Swipe editorial: 2-5 frames, visible pagination, manual control (§16) */
.k-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--k-space-2); }
.k-swipe > * { flex: 0 0 85%; scroll-snap-align: start; }
/* The dots are the pagination affordance (§17.1 (v5.1 §17.2)), so the raw scrollbar is
   noise inside a product card. Hiding it does not reduce discoverability —
   the dots remain, and keyboard left/right still works. */
.k-swipe { scrollbar-width: none; }
.k-swipe::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Pending-decision flag
   --------------------------------------------------------------------------
   Every specimen page needs this, so it lives with the components rather than
   with the states-page furniture. Labels an interim value standing in for an
   owner decision that is still open.
   ========================================================================== */
.k-pending {
  display: inline-block;
  background: var(--k-brass);
  color: var(--k-ink); /* §11 B1: Brass surfaces always carry Ink text, never Snow */
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  padding: var(--k-space-1) var(--k-space-2);
}

/* `.k-fixed` IS DELETED, and the category with it.
   It marked "copy the DNA states verbatim — distinct from a placeholder". The
   category had exactly one member across the whole build, the "Production and
   dispatch: 4–5 weeks." line, and that member was the opposite of fixed copy:
   V6 §47.7 makes the production line "never typed", so the marker asserted the
   one thing about that string that is false. Six uses in preview/ and the
   legend row in preview/index.php that taught the category are gone; the string
   now carries the §0.4 grammar like every other value that is waiting on data.
   Removed 5 September 2026, Run 6 CP9. If a genuinely verbatim-specified string
   ever needs a marker, it needs a new class and a real example. */

/* ==========================================================================
   §18.7 (v5.1 §18.3) Size selector
   ========================================================================== */
.k-sizes { display: flex; flex-wrap: wrap; gap: var(--k-space-2); }
.k-size {
  min-width: var(--k-touch-min);
  min-height: var(--k-touch-min);
  padding: 0 var(--k-space-3);
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--gap-hairline) solid var(--k-stone);
  background: var(--k-surface-raised); /* J-51: the raised ROLE, not the snow COLOUR — the ground is Snow now */
  color: var(--k-ink);
  font-family: var(--k-font-ui);
  font-size: var(--k-type-product);
  border-radius: var(--gap-radius);
  cursor: pointer;
  transition: border-color var(--k-motion-instant) var(--k-ease-calm);
}
.k-size:hover, .k-size.is-hover { border-color: var(--k-graphite); }
.k-size[aria-pressed="true"], .k-size.is-selected { border-color: var(--k-ink); background: var(--k-porcelain); }
.k-size:disabled, .k-size.is-disabled { color: var(--k-mist); border-color: var(--k-mist); cursor: not-allowed; }
.k-size:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }

/* Region views: UK, EU/Italy, US, Japan (§18.7 (v5.1 §18.3)) */
.k-sizeregions { display: flex; gap: var(--k-space-1); margin-bottom: var(--k-space-3); flex-wrap: wrap; }
.k-sizeregion {
  min-height: var(--k-touch-min);
  /* §25 44x44 — "UK" and "US" measured 39-40px wide. */
  min-width: var(--k-touch-min);
  padding: 0 var(--k-space-3);
  display: inline-flex; align-items: center;
  background: none; border: 0; cursor: pointer;
  font-family: var(--k-font-ui);
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  color: var(--k-graphite);
  border-bottom: var(--k-focus-ring) solid transparent;
}
.k-sizeregion[aria-pressed="true"] { color: var(--k-ink); border-bottom-color: var(--k-ink); }
.k-sizeregion:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }

/* ==========================================================================
   §18.7 (v5.1 §18.3) Colour drawer — collapsed, with thumbnails
   ========================================================================== */
.k-colourdrawer { border-top: var(--gap-hairline) solid var(--k-stone); border-bottom: var(--gap-hairline) solid var(--k-stone); }
.k-colourdrawer__trigger {
  width: 100%;
  min-height: var(--k-touch-min);
  padding: var(--k-space-4) 0;
  background: none; border: 0; cursor: pointer;
  font: inherit;
  color: var(--k-ink);
  display: flex; align-items: center; justify-content: space-between; gap: var(--k-space-3);
  text-align: left;
}
.k-colourdrawer__trigger:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }
.k-colourdrawer__current { font-size: var(--k-type-product); color: var(--k-graphite); }
.k-colourdrawer__panel { padding-bottom: var(--k-space-4); }
.k-colourdrawer__panel[hidden] { display: none; }
.k-colourdrawer__thumbs { display: flex; gap: var(--k-space-3); flex-wrap: wrap; }
/* Thumbnail is a swatch over a pre-sized media box (§18.7 (v5.1 §18.3): colour drawer with
   thumbnails; selection updates gallery, query state, price and availability). */
.k-colourthumb {
  min-width: var(--k-touch-min);
  padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: var(--k-space-1);
}
.k-colourthumb__media { width: var(--k-space-8); }
.k-colourthumb__name { font-size: var(--k-type-micro); color: var(--k-graphite); }
.k-colourthumb[aria-pressed="true"] .k-colourthumb__media { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }
.k-colourthumb:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }

/* ==========================================================================
   Measurement table (§18.7 (v5.1 §18.3): verified measurements only)
   ========================================================================== */
.k-measure { width: 100%; border-collapse: collapse; font-size: var(--k-type-product); }
.k-measure th,
.k-measure td {
  text-align: left;
  padding: var(--k-space-3) var(--k-space-2);
  border-bottom: var(--gap-hairline) solid var(--k-stone);
}
.k-measure th {
  font-weight: var(--gap-weight-medium);
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  color: var(--k-graphite);
}

/* ==========================================================================
   Product rail — recommendations, recently viewed
   Shared by the collection and product specimens.
   ========================================================================== */
.k-rail {
  display: flex;
  gap: var(--k-gutter-mobile);
  overflow-x: auto;
  padding: 0 var(--k-gutter-mobile);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.k-rail::-webkit-scrollbar { display: none; }
.k-rail > * { flex: 0 0 45%; scroll-snap-align: start; }

/* ==========================================================================
   Reduced motion — mirrors the tokens.css rule for on-demand demonstration.
   The real rule lives in tokens.css and fires on the OS setting.
   ========================================================================== */
.demo-reduced-motion *,
.demo-reduced-motion *::before,
.demo-reduced-motion *::after {
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
.demo-reduced-motion .k-parallax { transform: none !important; }
.demo-reduced-motion video[data-autoplay] { display: none; }
.demo-reduced-motion .k-media-poster { display: block; }

/* ==========================================================================
   STRUCTURAL PREVIEW COMPONENTS
   --------------------------------------------------------------------------
   Added 2026-08-02 for the all-pages structural preview. Every one is built
   from existing tokens, so a later design ruling propagates automatically.
   All are documented with their states on the component states page.
   ========================================================================== */

/* --- Page header, for content pages (Brand / Preorder education / Guides) --- */
.k-pagehead {
  padding: var(--k-space-7) var(--k-gutter-mobile) var(--k-space-5);
  border-bottom: var(--gap-hairline) solid var(--k-stone);
}
.k-pagehead__kicker {
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  color: var(--k-graphite);
  display: block;
  margin-bottom: var(--k-space-3);
}
.k-pagehead__title { font-size: var(--k-type-h1); font-weight: var(--gap-weight-medium); margin: 0; }
.k-pagehead__standfirst { color: var(--k-graphite); max-width: var(--gap-measure); margin: var(--k-space-4) 0 0; }

/* --- Prose block. Section 12: body line length 45-70 characters. --- */
.k-prose { padding: var(--k-space-6) var(--k-gutter-mobile); max-width: var(--gap-measure); }
.k-prose h2 { font-size: var(--k-type-h2); font-weight: var(--gap-weight-medium); margin: var(--k-space-7) 0 var(--k-space-4); }
.k-prose h3 { font-size: var(--k-type-h3); font-weight: var(--gap-weight-medium); margin: var(--k-space-6) 0 var(--k-space-3); }
.k-prose p  { margin: 0 0 var(--k-space-4); color: var(--k-graphite); }
.k-prose > :first-child { margin-top: 0; }

/* --- Numbered steps (Section 15 section 8: preorder steps) --- */
.k-steps { list-style: none; margin: 0; padding: 0; counter-reset: k-step; }
.k-steps__item {
  counter-increment: k-step;
  display: flex;
  gap: var(--k-space-4);
  padding: var(--k-space-5) 0;
  border-bottom: var(--gap-hairline) solid var(--k-stone);
}
.k-steps__item::before {
  content: counter(k-step);
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  color: var(--k-brass-text);
  min-width: var(--k-space-5);
}
.k-steps__body { flex: 1; }
.k-steps__title { font-weight: var(--gap-weight-medium); margin: 0 0 var(--k-space-2); }
.k-steps__note { color: var(--k-graphite); margin: 0; font-size: var(--k-type-product); }

/* --- Gateway tiles (Section 15 section 4: Men and Women gateways).
   Section 15 requires the links to exist in HTML even if animation fails. --- */
.k-gateways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-gutter-mobile); padding: 0 var(--k-gutter-mobile); }
.k-gateway { position: relative; display: block; text-decoration: none; color: var(--k-ink); }
.k-gateway__label {
  position: absolute;
  left: var(--k-space-4); bottom: var(--k-space-4);
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  background: var(--k-surface-raised); /* J-51: the raised ROLE, not the snow COLOUR — the ground is Snow now */
  padding: var(--k-space-2) var(--k-space-3);
}
.k-gateway:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }

/* --- Manual tiles (Section 15 section 10: manual tiles only, no live embed) --- */
.k-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-space-2); padding: 0 var(--k-gutter-mobile); }

/* --- Production timeline (Section 20) --- */
.k-timeline { list-style: none; margin: 0; padding: 0; }
.k-timeline__item {
  display: flex;
  gap: var(--k-space-4);
  padding: var(--k-space-4) 0;
  border-bottom: var(--gap-hairline) solid var(--k-stone);
}
.k-timeline__marker {
  width: var(--k-space-3);
  height: var(--k-space-3);
  border: var(--gap-hairline) solid var(--k-mist);
  border-radius: 50%;
  margin-top: var(--k-space-1);
  flex: 0 0 auto;
}
.k-timeline__item.is-reached .k-timeline__marker { background: var(--k-ink); border-color: var(--k-ink); }
.k-timeline__item.is-current .k-timeline__marker { border-color: var(--k-ink); border-width: var(--k-focus-ring); }
.k-timeline__label { font-weight: var(--gap-weight-medium); margin: 0; }
.k-timeline__meta { font-size: var(--k-type-micro); color: var(--k-graphite); margin: var(--k-space-1) 0 0; }

/* --- Line row: cart items, order items, wishlist rows --- */
.k-linerow {
  display: grid;
  grid-template-columns: var(--k-space-9) 1fr;
  gap: var(--k-space-4);
  padding: var(--k-space-4) 0;
  border-bottom: var(--gap-hairline) solid var(--k-stone);
  align-items: start;
}
.k-linerow__body { display: flex; flex-direction: column; gap: var(--k-space-2); }
.k-linerow__name { font-size: var(--k-type-product); margin: 0; }
.k-linerow__meta { font-size: var(--k-type-micro); color: var(--k-graphite); margin: 0; }
.k-linerow__actions { display: flex; gap: var(--k-space-4); flex-wrap: wrap; }

/* --- Summary block: cart totals, order totals --- */
.k-summary { border-top: var(--k-focus-ring) solid var(--k-ink); padding-top: var(--k-space-4); }
.k-summary__row {
  display: flex;
  justify-content: space-between;
  gap: var(--k-space-4);
  padding: var(--k-space-2) 0;
  font-size: var(--k-type-product);
}
.k-summary__row--total {
  font-weight: var(--gap-weight-medium);
  border-top: var(--gap-hairline) solid var(--k-stone);
  margin-top: var(--k-space-2);
  padding-top: var(--k-space-3);
}

/* --- Account navigation (Section 20 account sections) --- */
.k-accountnav {
  display: flex;
  gap: var(--k-space-1);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--k-gutter-mobile);
  border-bottom: var(--gap-hairline) solid var(--k-stone);
}
.k-accountnav::-webkit-scrollbar { display: none; }
.k-accountnav__item {
  min-height: var(--k-touch-min);
  padding: 0 var(--k-space-3);
  display: inline-flex; align-items: center;
  white-space: nowrap;
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  color: var(--k-graphite);
  text-decoration: none;
  border-bottom: var(--k-focus-ring) solid transparent;
}
.k-accountnav__item[aria-current="page"] { color: var(--k-ink); border-bottom-color: var(--k-ink); }
.k-accountnav__item:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }

/* --- COOKIE CONSENT — owner ruling J-44 (Run 46), RC-170 / RC-173 ----------
   Louis Vuitton's modal, centred over a dimmed page, in Korotana's glass, with
   exactly two equal buttons. inc/consent.php has the law; this is the layout.

   THE SURFACES ARE NOT PAINTED HERE. The layer's dimming and the card's glass
   are declared in tokens.css and nowhere else (GlassTest): the layer at the one
   scrim share, the card at --k-glass-tint-consent. This file sets geometry,
   visibility and the controls.

   VISIBILITY IS THE HEAD FLAG'S, NEVER THE [hidden] ATTRIBUTE. The layer is
   display: none until the document says otherwise — `data-kr-consent="pending"`,
   written by korotana_consent_flag() before first paint, shows the banner on a
   page that asks; `.is-settings`, written by consent.js, shows Cookie Settings.
   With no JavaScript the attribute is never written and nothing shows, which is
   honest: no gated tag can run without JavaScript either.

   THE GEOMETRY IS LOUIS VUITTON'S, MEASURED LIVE (Run 46 CP0, uk.louisvuitton.com
   /eng-gb): from 992 the card is 60% of the viewport wide, as tall as its
   content, centred on both axes, 48px of padding, two 48px buttons each half the
   inner width with a 16px gap. Below 992 it is 90% wide, capped at 95% of the
   viewport's height and scrolling inside itself, 24px of padding, the buttons
   stacked. Two Korotana departures, both recorded in RC-173: the corner is the
   glass radius (16px, the floating menu's), not LV's 4px; and the page is dimmed
   at the one scrim share (20%, J-38), not LV's 70%. ------------------------- */
.k-consent-layer {
  position: fixed;
  inset: 0;
  z-index: var(--k-z-consent);
  display: none;
  overflow: hidden;
  overscroll-behavior: contain;
}
:root[data-kr-consent="pending"] .k-consent-layer--prompt,
.k-consent-layer.is-settings { display: flex; }

/* LV's banner locks the page (measured): nothing behind the question scrolls.
   BODY ONLY, the way the panels lock it (chrome.css, body.k-panel-open): with
   <html> left visible, body's `hidden` propagates to the viewport and body
   itself stays an ordinary box, so every position: sticky on the page keeps
   its scroller. Locking <html> as well would make body a scroll container
   that never scrolls, and the sticky header would come unstuck under the
   scrim. The head flag writes "pending" only on a page that asks. */
:root[data-kr-consent="pending"] body,
:root.k-consent-open body { overflow: hidden; }

/* The card is a column: the words scroll, the buttons do not. Where the card
   is shorter than its content (a landscape phone, 200% zoom) the two buttons
   stay in view together, so neither can sit below the other's fold. */
.k-consent {
  display: none;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  /* margin: auto centres on both axes inside the flex layer, and falls back to
     the top edge rather than clipping it if the card ever outgrows the layer —
     Run 45's safe centring. max-height keeps it from doing so. */
  margin: auto;
  width: var(--k-consent-w-narrow);
  max-height: var(--k-consent-h-max-narrow);
  overflow: hidden;
  padding: var(--k-space-5);
  border: var(--k-glass-hairline);
  border-radius: var(--k-glass-radius);
  color: var(--k-ink);
}
@supports (height: 100dvh) {
  .k-consent { max-height: var(--k-consent-h-max-narrow-dvh); }
}
:root[data-kr-consent="pending"] .k-consent-layer--prompt:not(.is-settings) .k-consent--banner,
.k-consent-layer.is-settings .k-consent--settings { display: flex; }

.k-consent__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}
.k-consent__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Room for a control's WHOLE focus ring inside the scroller's clip: the
     ring's width plus its offset. (The first build reserved the width alone, and
     the checkbox ring, which sits outside the box, lost its left side.) */
  padding: calc(var(--k-focus-ring) + var(--gap-focus-offset));
  margin: calc(-1 * (var(--k-focus-ring) + var(--gap-focus-offset)));
}

/* The card takes focus on open so a screen reader starts at its title; it is
   not a control, so it draws no ring. Every control inside it does. */
.k-consent:focus { outline: none; }

.k-consent__title {
  margin: 0 0 var(--k-space-6);
  padding-bottom: var(--k-space-5);
  border-bottom: var(--k-glass-hairline);
}
.k-consent__body { margin: 0; }
.k-consent__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--k-space-5);
  margin: var(--k-space-2) 0 0;
}
/* Each link is a 44px target (KOROTANA's rule; the links stand alone, not in a
   sentence, so SC 2.5.8's inline exception would not cover them either). */
.k-consent__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--k-touch-min);
  min-width: var(--k-touch-min);
  color: var(--k-ink);
}
.k-consent__links a:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: calc(-1 * var(--k-focus-ring)); }

/* THE TWO BUTTONS ARE ONE BUTTON. One class, one fill, one border — equal
   prominence is structural (V5.1 G4, §58.2), so there is no pair of
   declarations to drift apart. A GRID, so the two are the same box at every
   width: its rows are equal (1fr), so where a narrow screen wraps "Accept
   essential cookies" onto a line more than "Accept all cookies", both grow
   together. LV's ORDER, not LV's mechanism (wrap-reverse sizes each line to its
   own content): essential is first in the document, LEFT on a desktop row, and
   placed in the SECOND row where they stack, so "Accept all cookies" is ON TOP.
   That one rule addresses one button for its POSITION and nothing else —
   CookieConsentTest refuses any other property on a selector that tells the
   two apart. */
.k-consent__choices {
  flex: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: var(--k-space-4);
  margin-top: var(--k-space-5);
}
.k-consent__choices > .k-consent__choice:first-child { grid-row: 2; }
.k-consent__choice {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--k-consent-choice-h);
  min-width: var(--k-touch-min);
  margin: 0;
  background: var(--k-ink);
  color: var(--k-snow);
  border: var(--k-hairline) solid var(--k-ink);
  /* .kr-button is no-wrap (§05); a consent label is not one of §08's no-wrap
     controls, and at 200% zoom on a phone it would otherwise run off the card. */
  white-space: normal;
  text-align: center;
  cursor: pointer;
}
.k-consent__choice:hover { background: var(--k-graphite); border-color: var(--k-graphite); }
.k-consent__choice:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }

/* Cookie Settings — §58.3. Close in the corner; three categories; and the same
   two-button row as the banner: "Accept essential cookies" (one press back to
   essential-only, Art 7(3)) and Save. */
.k-consent__close {
  position: absolute;
  top: var(--k-space-2);
  right: var(--k-space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--k-touch-min);
  height: var(--k-touch-min);
  padding: 0;
  border: 0;
  background: none;
  color: var(--k-ink);
  cursor: pointer;
}
.k-consent__close:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: calc(-1 * var(--k-focus-ring)); }
.k-consent--settings .k-consent__title { padding-right: var(--k-touch-min); }
.k-consent__category { padding: var(--k-space-3) 0; border-top: var(--k-glass-hairline); }
/* The whole row is the label, so the whole row is the 44px target. */
.k-consent__toggle {
  display: flex;
  align-items: center;
  gap: var(--k-space-3);
  min-height: var(--k-touch-min);
  cursor: pointer;
}
/* The box's boundary is INK, not --k-border-control: border-control needs 77%
   of glass over black and this card is 48% (tokens.css). Ink holds 4.71:1. */
.k-consent__check {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: var(--k-space-5);
  height: var(--k-space-5);
  margin: 0;
  border: var(--k-hairline) solid var(--k-ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.k-consent__check::before {
  content: "";
  width: var(--k-space-3);
  height: var(--k-space-3);
  background: var(--k-ink);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
}
.k-consent__check:checked::before { transform: scale(1); }
/* Forced colours repaint an author background as Canvas — on a Canvas card the
   tick would vanish and ticked would look like unticked. The system colour
   survives. */
@media (forced-colors: active) {
  .k-consent__check::before { background: CanvasText; }
}
.k-consent__check:disabled { cursor: default; }
.k-consent__check:focus-visible { outline: var(--k-focus-ring) solid var(--k-ink); outline-offset: var(--gap-focus-offset); }
.k-consent__always { margin-left: auto; }
.k-consent__desc { margin: var(--k-space-1) 0 0; }

/* The /cookie-settings/ page's own control opens the panel; it sits in prose. */
.k-consent__open { width: auto; padding-left: var(--k-space-5); padding-right: var(--k-space-5); }

@media (min-width: 992px) {
  .k-consent {
    width: var(--k-consent-w);
    max-height: calc(100vh - (2 * var(--k-space-5)));
    padding: var(--k-space-7);
  }
  .k-consent__choices { grid-template-columns: 1fr 1fr; }
  .k-consent__choices > .k-consent__choice:first-child { grid-row: auto; }
}
@supports (height: 100dvh) {
  @media (min-width: 992px) {
    .k-consent { max-height: calc(100dvh - (2 * var(--k-space-5))); }
  }
}

/* The entrance: the card fades and rises a step — the floating menu's motion
   (J-42.1) on the house curve; the scrim is simply there, as it is for the
   panels. NOT an opacity on the layer: an ancestor below opacity 1 is a
   backdrop root (Filter Effects 2), and the card's blur would only see the
   scrim until the fade ended. Applied ONLY where motion is welcome (Run 44's
   rule: the gate is the mechanism, not a kill under reduce), so a reduced-
   motion visitor's banner is simply there. Keyframes rather than a transition,
   because the banner appears by a display change at first paint and a
   transition does not run from display: none. */
@media (prefers-reduced-motion: no-preference) {
  .k-consent { animation: k-consent-in var(--k-motion-standard) var(--k-ease-calm); }
}
@keyframes k-consent-in { from { opacity: 0; transform: translateY(var(--k-space-4)); } }

/* Internal specimens (component-states, structural-preview) show the two cards
   in the page flow, open, without the layer. */
.k-consent-specimen .k-consent { display: flex; margin: 0 0 var(--k-space-6); max-height: none; animation: none; }

/* --- MENU, SEARCH and FOOTER — MOVED to assets/css/chrome.css ---
   Rebuilt at Appendix M step 5 against 41.1 (a 420px full-height panel from
   the LEFT, not a full-screen sheet rising from the bottom), 41.4 and
   Section 10 Search (a compact panel — the clause is explicit that it is
   "not a full-screen search page"), and 42.1-42.8 (four LOCKED groups in a
   fixed order, the identity block, a computed copyright year, a newsletter
   with unticked consent, a permanently visible Cookie Settings control, and
   mobile accordions with the legal links outside them).

   .k-menusheet__link--pending is deleted outright rather than moved: 9.4
   forbids a placeholder reaching a customer surface, and a greyed non-link
   in a navigation panel is exactly that. --- */

/* --- Authenticity certificate (Section 20, Section 07 verify route) --- */
.k-certificate {
  border: var(--gap-hairline) solid var(--k-brass);
  padding: var(--k-space-6) var(--k-space-5);
  text-align: center;
  background: var(--k-porcelain);
}
.k-certificate__mark {
  font-size: var(--k-type-micro);
  letter-spacing: var(--k-track-label);
  text-transform: uppercase;
  color: var(--k-brass-text);
  display: block;
  margin-bottom: var(--k-space-3);
}

/* --- Concierge conversation (Section 14.4). Ink headers, Snow message space. --- */
.k-chat { display: flex; flex-direction: column; gap: var(--k-space-3); padding: var(--k-space-5) var(--k-gutter-mobile); }
.k-chat__msg { max-width: 85%; padding: var(--k-space-3) var(--k-space-4); font-size: var(--k-type-product); }
.k-chat__msg--assistant { background: var(--k-porcelain); align-self: flex-start; }
.k-chat__msg--customer { background: var(--k-ink); color: var(--k-snow); align-self: flex-end; }
.k-chat__disclosure {
  font-size: var(--k-type-micro);
  color: var(--k-graphite);
  border-top: var(--gap-hairline) solid var(--k-stone);
  padding-top: var(--k-space-3);
}

/* --- SITE FOOTER — MOVED to assets/css/chrome.css ---
   Rebuilt at Appendix M step 5 against 42.1-42.8. The rules here were the
   pre-V6 'complete lightweight footer': invented column names, no identity
   block, no newsletter, no Cookie Settings control, and a two/four column
   grid rather than 42.7's mobile accordions. --- */

@media (min-width: 768px) {
  /* .k-footer is gone from this list: chrome.css owns the footer's padding
     now (42.6), and two sheets setting it would be two sources of truth. */
  .k-pagehead, .k-prose, .k-searchpanel, .k-chat,
  .k-gateways, .k-tiles, .k-accountnav { padding-left: var(--k-gutter-desktop); padding-right: var(--k-gutter-desktop); }
}

/* ==========================================================================
   Real product media
   --------------------------------------------------------------------------
   The specimens define their media slots by RATIO and fill them with .k-skel.
   Real photography goes into the same ratio boxes through .k-media, so the
   layout and the CLS behaviour are identical whether an asset exists or not.

   Two fits, chosen per image in inc/media-slots.php:
     --fill  object-fit: cover. Used when filling the slot discards no more
             than §23's 8% crop safe area.
     --fit   object-fit: contain. Used when cover would cut further than that.
             The garment keeps its full silhouette and sits on the pad ground
             (.k-media paints var(--k-pad) — porcelain in this note's day,
             snow since J-51) instead of being sliced.
   ========================================================================== */
.k-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--k-pad);
}
/*
 * THE CLASS IS WRITTEN TWICE — Run 39 CP2, RC-139, and the reason is in full
 * beside `.k-frame` in product.css. In short: `.woocommerce img` in
 * woocommerce-layout.css declares `height: auto` at the same (0,1,1) this
 * selector had, and WooCommerce's stylesheet loads after the theme's, so it
 * won every tie on every product page. Doubling the class makes it (0,2,1) and
 * removes the dependency on load order.
 *
 * WHERE IT WAS VISIBLE. The colour drawer's swatches (inc/render-product.php)
 * are `.k-media.k-media--frame.k-media--fill` — a frame-ratio box (850 x 1176
 * when this was written, 3:4 since J-49) with a
 * --k-pad ground — so each thumbnail sat at the top of a very tall white box
 * with the remainder empty, from the moment the drawer was opened. It was not
 * found until Run 39 because the drawer is `hidden` at rest and every frame
 * measured 0 x 0 while it was.
 */
.k-media.k-media img {
  display: block;
  width: 100%;
  height: 100%;
}
.k-media--fill img { object-fit: cover; }
.k-media--fit  img { object-fit: contain; }

/* §28 media asset matrix ratios, matching .k-skel exactly (5x9 deleted with
   its .k-skel row — J-50, Run 57). */
.k-media--4x5  { aspect-ratio: 4 / 5; }
.k-media--5x6  { aspect-ratio: 5 / 6; }
.k-media--1x1  { aspect-ratio: 1 / 1; }
.k-media--3x2  { aspect-ratio: 3 / 2; }
.k-media--16x9 { aspect-ratio: 16 / 9; }
.k-media--9x16 { aspect-ratio: 9 / 16; }

/* --- The J-24.6 introduction block ---------------------------------------
 *
 * Owner ruling J-24.6, 8 September 2026: the homepage brand introduction and
 * the two collection introductions. One component, three placements
 * (inc/render-modules.php korotana_intro_block()), so the three cannot drift.
 *
 * IT DECLARES NO TYPE. The paragraphs carry .kr-r14 and the optional subhead
 * .kr-m18 in the markup, which is where every governed component in this build
 * puts its type since RC-24 — the stylesheet owns rhythm, the class owns the
 * face. v4.0 §08's rule is the reason the box is what is sized here and the
 * scale is not touched: "Fix container width before modifying typography."
 *
 * ITS WIDTH IS THE GOVERNED MEASURE, now 35rem under J-24.1 (RC-84). This is
 * the longest continuous prose on either the homepage or a collection page, so
 * it is exactly the surface that ruling exists for.
 *
 * The gutters follow the page's, not the grid's: --k-gutter-mobile below 768
 * and --k-gutter-desktop from it, the same pair .k-copyzone uses on the PDP, so
 * an introduction lines up with the cards beneath it rather than floating in
 * its own inset.
 * ------------------------------------------------------------------------- */
.k-intro {
  padding: var(--k-space-6) var(--k-gutter-mobile);
}
.k-intro__body {
  max-width: var(--k-measure);
}
.k-intro__para {
  margin: 0 0 var(--k-space-4);
}
.k-intro__para:last-child {
  margin-bottom: 0;
}
.k-intro__subhead {
  margin: var(--k-space-5) 0 var(--k-space-3);
}
/* The §0.4 marker reads as the pending state it is, on the governed secondary
   ink — never on colour alone (§02): it is also the only text in the block
   wrapped in brackets, which is §0.4's own grammar doing the work. */
.k-intro__pending {
  color: var(--k-graphite);
}
@media (min-width: 768px) {
  .k-intro {
    padding: var(--k-space-7) var(--k-gutter-desktop);
  }
}

/* A FACT callout in approved editorial copy (handoff J-02). The owner marks
   these with a bare "FACT" line beside an image; the label is structure, so it
   becomes a modifier rather than a printed word. No new token. */
.k-prose__fact { border-left: var(--k-border-hairline); padding-left: var(--k-space-4); color: var(--k-ink); }
