/*
 * The product page — DNA V6 Sections 17, 18, 19 and 20, Appendix B, the F-03
 * and F-05 measurements, and owner rulings J-13.3, J-13.4, J-13.7 and J-13.10.
 *
 * PAGE RHYTHM AND PDP COMPONENTS. Everything shared comes from primitives.css
 * and components.css; nothing here restates a colour, a spacing step or a type
 * value. Where a figure below is not a token it is an F-03 MEASUREMENT, and it
 * says so on the line.
 *
 * WHAT WAS DELETED AT APPENDIX M STEP 8, and why each had to go.
 *
 *   .k-craft, and the six --k-craft-* tokens behind it. It implemented
 *   Catalog Image DNA v2.0 §26's factory overlap in viewport units, from the
 *   placement layer CLAUDE.md §1 declares VOID. V6 18.4 replaces it: "the
 *   provenance pair is the sole inset class", 510px, fixed between Gallery 4
 *   and Gallery 5 (18.6), full content width on phones (J-13.7).
 *
 *   --k-ratio-gallery (18:25) and --k-ratio-inset (3:4). 18.4 withdraws both
 *   rules outright and J-13.4 made 850 x 1176 permanent — "not to be
 *   reopened". Both tokens were tagged STALE "until step 8"; this is step 8.
 *   (J-49, 22 October 2026, has since retired J-13.4 and put the frame at
 *   3:4. The deleted tokens are not coming back: --k-ratio-frame is still
 *   the one frame token, and it is still the only one any rule here reads.)
 *
 *   --k-copy-pad (28px). A v2.0 §25 figure. 17.4 leaves copy-zone spacing with
 *   the approved Suitsupply architecture, which puts it on the page gutter.
 *
 *   --k-stack-max (150px). A pre-V6 figure for a bar V6 was silent about
 *   (Q-09). J-13.3 closes Q-09 by INCLUDING the bar and attaching a condition:
 *   it "must not overlap or conflict with the floating dock". A capped stack
 *   height cannot express that condition; the clearance is composed from the
 *   dock's own LOCKED geometry below, so the two can never drift apart.
 *
 * THE BREAKPOINTS ARE LITERALS BECAUSE THEY MUST BE. A custom property cannot
 * be read inside a @media condition. Each is one of v4.0 §04's inclusive
 * starts (576, 768, 992, 1200, 1400, 1600, 1920) and each is cited where it
 * appears. There is no second breakpoint system on this page.
 */

/* ==========================================================================
   THE WHITE GROUND — NOT SET HERE ANY MORE (owner instruction, 22 September
   2026 — J-31.1, RC-119)
   --------------------------------------------------------------------------
   "Make the background color of the website absolute white, not grey not
   anything else... I am the source of truth here, so make the website's
   background white."

   RUN 28'S PDP-ONLY SCOPING IS DELETED. This file used to carry

       body:has(.k-pdp) { --k-surface-page: var(--k-surface-page-product); }

   and tokens.css used to carry --k-surface-page-product beside it. Both are
   gone. The ground lives at --k-pad (pure white then, snow white since
   J-51), which --k-surface-page aliases,
   so every route gets it from the one declaration and this page gets it the
   same way every other page does. The instruction's own words for why the
   scope had to go: "so there is one rule, not two".

   WHAT THAT ALSO SETTLES. .k-frame--pad below reads --k-pad, so the
   CONTAIN+PAD letterbox follows the ground WITHOUT a second rule -- and the
   Catalog Image DNA v2.0 F01/§07 identity Run 28 broke is restored: the pad
   and the page are the same colour again, so "a padded frame beside a shot
   frame must show no seam" is true again. The photographic backdrop standard
   moves to pure white with it; see tokens.css:--k-pad and K-46.
   ========================================================================== */

/* ==========================================================================
   THE PAGE SHELL
   ========================================================================== */

/*
 * THE PINNED BAR'S ARITHMETIC, AT :root — Run 56 (R48-015).
 *
 * Declared here, in the sheet that owns the bar, but on :root because
 * scroll-padding applies to the scroll container and nothing declared on
 * .k-pdp reaches it. product.css is enqueued only on a product page or the
 * archive article (functions.php), so these names exist nowhere they are not
 * wanted.
 *
 * --k-pdp-cta-h: max() keeps the touch floor honest if the type role ever
 * shrinks — the reservation is whichever of the two actually governs the box.
 * Every operand is governed: --kr-m14-line and --kr-button-pad-y are LOCKED
 * v4.0 §03/§05, --k-touch-min is 40.5's 44px floor (WCAG 2.2 SC 2.5.8),
 * --k-hairline is Section 10's 1px, --k-space-3 is the bar's own padding.
 */
:root {
  --k-pdp-bar-gap: var(--k-space-2);
  --k-pdp-cta-h: max(
    var(--k-touch-min),
    calc(var(--kr-m14-line) + var(--kr-button-pad-y) * 2 + var(--k-hairline) * 2)
  );
  --k-pdp-bar-h: calc(var(--k-pdp-cta-h) + var(--k-space-3) * 2 + var(--k-hairline));
}

/*
 * AND THE FOCUS CLEARANCE THE BAR NEEDS — R48-015, which measured this as a
 * LAUNCH BLOCKER. At 683x318 (a 1366 laptop at 200% zoom, which is BELOW the
 * 768 switch, so a desktop machine gets the mobile chrome in a 318px-tall
 * window) every 'You may also like' tab stop sat 98-100% under the pinned
 * purchase bar with 0% of the focused box hitting the control itself. That is
 * SC 2.4.11 Focus Not Obscured (Minimum), an AA criterion and part of §08's
 * launch gate.
 *
 * chrome.css reserves the dock for every page; this adds the bar ON TOP of it,
 * from the same operands the bar is positioned with, so the two can never
 * disagree. :has() picks the pages that actually render a bar — the archive
 * article loads this sheet too and has no purchase bar, so it keeps the
 * dock-only reservation. Without :has() support a browser simply keeps that
 * dock reservation, which is the larger part of the clearance.
 */
:root:has(.k-pdp__purchase) {
  scroll-padding-bottom: calc(
    var(--k-dock-h) + var(--k-dock-bottom) + var(--k-pdp-bar-gap)
    + var(--k-pdp-bar-h) + env(safe-area-inset-bottom)
  );
}
@media (min-width: 768px) {
  /* The bar and the dock are both display:none from here (40.10). */
  :root:has(.k-pdp__purchase) { scroll-padding-bottom: 0; }
}

.k-pdp {
  color: var(--k-ink);
  background: var(--k-surface-page);
  margin: 0;

  /*
   * J-13.3's clearance, composed rather than capped.
   *
   *   --k-pdp-bar-gap    the air between the pinned bar and the dock.
   *   --k-pdp-cta-h      the CTA's own border box.
   *   --k-pdp-bar-h      the bar's own border box.
   *
   * WHY THE CTA IS ITS OWN TERM. The previous composition was
   * `--k-touch-min + --k-space-3 * 2` — one 44px target inside the BAR's 12px
   * padding — and it left out everything the CTA contributes: v4.0 §05's
   * 12px padding top and bottom on .kr-commerce-button, the CTA's own 1px
   * border, and the bar's 1px border-top. The rendered bar was 95px in Chrome
   * and 72px in Firefox against a declared 68, so the reservation was wrong by
   * a different amount per engine, which is worse than being wrong by one.
   * (.k-pdp__cta now sizes from its border box — primitives.css — so the two
   * engines agree, and this arithmetic is the rendered height rather than an
   * approximation of it.)
   *
   * Every operand is governed: --kr-m14-line and --kr-button-pad-y are LOCKED
   * v4.0 §03/§05, --k-touch-min is 40.5's 44px floor (WCAG 2.2 SC 2.5.8),
   * --k-hairline is Section 10's 1px, --k-space-3 is the bar's own padding.
   * max() keeps the touch floor honest if the type role ever shrinks: the
   * reservation is whichever of the two actually governs the box.
   */
  /*
   * THESE THREE MOVED TO :root BELOW in Run 56, and are declared there
   * rather than here so that the scroll-padding rule can read them —
   * scroll-padding applies to the SCROLL CONTAINER, which is the root
   * element, and a custom property declared on .k-pdp does not resolve
   * there. Every operand is a :root token already, so the arithmetic is
   * identical and .k-pdp's descendants inherit exactly what they did.
   * ONE home, not two: the bar's height is still computed in a single
   * place, which is the point.
   */

  /*
   * THE CLEARANCE IS NOT RESERVED HERE. It used to be `padding-bottom` on this
   * element, and korotana_render_footer() renders INSIDE .k-pdp — so 156px of
   * clearance landed BENEATH the footer, where neither the dock nor the bar
   * is, while the footer itself kept only .k-pdp__footergap's 96px above it.
   * The bar's top edge sits 160 + safe above the viewport floor, so the last
   * thing a PDP reader saw at 375, 390 and 430 was a fixed bar painted over
   * the footer's first 44px accordion control — 14.2: "interactive elements
   * get bottom padding and are never obscured". The reservation moved to
   * .k-pdp__footergap, the one element that is above the footer, and the bar
   * learned the footer boundary every other floating layer already had (see
   * the pinned-bar block below). The composition is unchanged; only its
   * placement is.
   */

  /*
   * --k-pdp-gutter SURVIVES AS THE PDP PAGE-INSET TOKEN ONLY. Until Run 57 it
   * was also the two-column layout's gutter, carrying the 3 September F-03
   * values (20px at 1280, 52px at 1440). The 28 October 2026 re-measurement
   * on the owner's P7235 specimen (J-50 run) found the reference has no
   * gutter constant at all: the panel is a 466px box CENTRED in a 40% track,
   * so its side insets are derived, (0.4 × layoutW − 466) / 2. The grid below
   * now implements that rule from the tokens.css measurements and reads no
   * gutter. What still reads this token is the inset of the surfaces that
   * live OUTSIDE the two-column region — .k-pdp__section (below) and the
   * discovery rail (rail.css) — whose page inset was built against these
   * values and is not what the 28 October capture measured. Their values are
   * unchanged so those surfaces do not move in a run that is about the panel
   * and the hero (J-50 changes what it changes and nothing else).
   */
  --k-pdp-gutter: 20px;      /* page inset for sections/rail below 1400 */
}

@media (min-width: 1400px) {
  .k-pdp { --k-pdp-gutter: 52px; }  /* page inset for sections/rail from 1400 */
}

/* ==========================================================================
   18.5 — THE HERO
   --------------------------------------------------------------------------
   The markup is the shared component in inc/render-hero.php, whose CSS
   contract that file states in full. These rules are the PDP's half of it,
   scoped to .k-pdp so they can never collide with the homepage's or the
   collection's, which own their own ratios (11.1, 14.1) and their own sheet.

   The box takes the ratio the component passed in as a custom property, so the
   container and the <source> swap at the same width (--k-hero-switch, RC-15,
   DEFAULT 768) and the two can never disagree about which crop is showing.
   ========================================================================== */

.k-pdp .k-hero {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--k-hero-ratio-mobile);
  overflow: hidden;
  /*
   * The ground, not the pad — J-28, RC-111. This box held --k-pad while the
   * two were the same colour, and the choice was never a seam contract: 18.1
   * position 1 puts the hero on FILL at both ratios and 18.8 confines
   * CONTAIN + PAD to the flat frames, so nothing is ever letterboxed into
   * this box and the
   * colour shows only while the crop loads. Left on --k-pad it would have
   * been a grey block on a white page, which is the thing the instruction
   * rules out. .k-frame--pad is the one that keeps --k-pad, and it keeps it
   * for a reason that does not apply here.
   */
  background: var(--k-surface-page);
}
.k-pdp .k-hero__media { position: absolute; inset: 0; overflow: hidden; }
.k-pdp .k-hero__still,
.k-pdp .k-hero__still picture { display: block; width: 100%; height: 100%; }
.k-pdp .k-hero__still img,
.k-pdp .k-hero__video {
  width: 100%;
  height: 100%;
  /* 02 and 28: cover with a governed focal point, never a stretch. */
  object-fit: cover;
  object-position: var(--k-hero-focal-mobile, 50% 50%);
}
.k-pdp .k-hero__skel { position: absolute; inset: 0; }
.k-pdp .k-hero__pending,
.k-pdp .k-hero__note {
  margin: var(--k-space-3) var(--k-gutter-mobile) 0;
  color: var(--k-graphite);
}

/* 18.5's second ratio and second crop, at RC-15's DEFAULT 768. */
@media (min-width: 768px) {
  .k-pdp .k-hero { aspect-ratio: var(--k-hero-ratio-desktop); }
  .k-pdp .k-hero__still img,
  .k-pdp .k-hero__video { object-position: var(--k-hero-focal-desktop, 50% 50%); }
  .k-pdp .k-hero__pending,
  .k-pdp .k-hero__note { margin-inline: var(--k-gutter-desktop); }

  /*
   * THE PANEL SWITCHES GUTTER WITH THE REST OF THE PAGE (17.2, 02, §6.3).
   *
   * The panel had exactly two insets — the 12px mobile gutter and the 992
   * F-03 55px — so at 768 and 991, two of the seven §08 validation widths, the
   * whole primary purchase surface sat on a 12px inset while every neighbour
   * on the same page had already switched to --k-gutter-desktop: .k-copyzone,
   * .k-pdp__section and .k-pdp .k-hero__pending all do it in this file. The
   * panel's contents were inset 28px LESS than the copy zone directly beneath
   * them. 768 is v4.0 §04's tablet threshold and 17.2 makes the panel the
   * surface the customer buys from at that width; a single-block gutter
   * exception is the one-off styling 02 puts behind a reusable system, and
   * F-03 measured nothing at 768 that would justify one.
   *
   * SCOPED TO .k-pdp for the reason the 992 block below spells out at length:
   * a media query adds no specificity, and the base `.k-pdp__panel` rule is
   * LATER in this sheet, so a 0-1-0 selector here would lose to it at every
   * width and this declaration would be dead.
   */
  .k-pdp .k-pdp__panel { padding-inline: var(--k-gutter-desktop); }
}

@media (prefers-reduced-motion: reduce) {
  /* 60.5: the still is already in the DOM beneath the film. */
  .k-pdp .k-hero__video { display: none; }
}

/* ==========================================================================
   17.3 — THE DESKTOP ARCHITECTURE (as measured 28 October 2026, J-50 run)
   --------------------------------------------------------------------------
   17.3: "Replicate Suitsupply's desktop buying-panel architecture and
   sticky/persistent behaviour while the media column scrolls. Measure sticky
   start/stop/release behaviour from the approved reference rather than
   inventing it."

   F-03 is closed by the 28 October 2026 capture on the owner's P7235
   specimen (docs/reference-measurements/F-03-pdp-sticky-and-gallery-2026-10-28.md):
     - the layout is a 60% / 40% two-column grid, no content max-width;
     - the media column is the 60% track, flush left, zero inset, and under
       J-50 the HERO IS ITS FIRST FRAME — the panel's natural top is the top
       of the page, which is what makes the next line true;
     - the panel is `width: 100%; max-width: 466px`, CENTRED in the 40%
       track (side insets are derived, not a gutter constant: 55 at 1440,
       23 at 1280, 74.2 at 1536 @1.25 — and the clamp was sampled directly:
       409.594 at 1024, 440 at 1100, 466 from ~1165);
     - sticky mode is `position: sticky; top: 0`, pinned from scroll 0
       (KOROTANA's top offset is the header height — 40.7 LOCKED, an owner
       ruling, outranks the measured 0 under §0.5, and the reference's
       header is not KOROTANA's);
     - the RELEASE is containerTop + containerHeight - panelHeight, observed
       at 15885 / 14119 / 17159 against predictions within 1.5px: "The
       release is not a magic offset — it is the media column's height."

   That last line is why there is no JavaScript here and no copied number.
   A sticky grid item with `align-self: start` releases at exactly that point
   by construction, so KOROTANA's release is a function of KOROTANA's own
   media column height (hero + gallery) rather than of the reference's.

   THE COLUMN BREAKPOINT IS 992, A DECLARED DIVERGENCE (RC-209). The 28
   October capture pinned the reference's two-column start at 1024 (one
   column at 1023). 992 is kept: it is the v4.0 §04 inclusive start the
   build has used since the September bracket (768–1280), 1024 is not a
   width in the governed breakpoint system (§02: reusable system before a
   one-off value), and the measured clamp rule makes 992 safe — the panel
   renders at its track's width there, exactly as the reference does at its
   own narrowest two-column width.

   DOM ORDER IS THE MOBILE ORDER AT EVERY WIDTH (17.2) — hero, buying panel,
   gallery — and the columns are placed explicitly rather than by source
   order. 60.8 keeps the keyboard order the DOM order, so after the hero the
   purchase action comes first for a keyboard and a screen reader at every
   width, while the eye gets the reference's media-left arrangement.
   ========================================================================== */

.k-pdp__layout { display: block; }

@media (min-width: 992px) {
  .k-pdp__layout {
    display: grid;
    /*
     * 60% media / 40% panel track — the measured proportions, from
     * tokens.css, never a figure here (GovernedRatiosTest holds the
     * contract). No column-gap and no padding: the reference has neither,
     * and the panel's side insets fall out of centring the 466px box in
     * the 40% track.
     */
    grid-template-columns: var(--k-pdp-media-col) minmax(0, 1fr);
    align-items: start;
  }

  /*
   * J-50: the desktop hero is the first frame INSIDE the media column —
   * column 1, row 1, above the gallery — never full-bleed. The measured
   * 40px separates it from the first gallery frame; the margin lives on
   * the hero cell rather than as row-gap so an unphotographed page (no
   * hero cell at all) opens its gallery exactly where it used to.
   */
  .k-pdp__opening {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: var(--k-pdp-hero-gap);
  }

  .k-pdp__gallery { grid-column: 1; grid-row: 2; }

  /*
   * SCOPED TO .k-pdp DELIBERATELY, so this rule outranks the base
   * `.k-pdp__panel` padding further down the sheet. A media query adds no
   * specificity and both selectors were 0-1-0, so the later base declaration
   * won at every width and the F-03 inset below was dead: at 1440 and 1280
   * the sticky panel rendered with the mobile gutter and no top space. The
   * other properties here survived only because the base rule does not
   * restate them, which is why the bug was invisible — the two-column layout
   * looked right and only the measured inset was gone. 0.5 P3 puts a
   * measured reference value above a developer default, so the measurement
   * has to be the one that lands.
   */
  .k-pdp .k-pdp__panel {
    grid-column: 2;
    /*
     * J-100 CHANGE 3, AND IT SITS BELOW grid-column DELIBERATELY.
     *
     * The base .k-pdp__panel is a flex column from Run 89 so the allocation
     * panel can be ordered last on mobile; desktop goes back to block layout,
     * which makes that `order` inert and leaves this column byte-identical to
     * what it was.
     *
     * It is declared inside this block rather than in a rule of its own
     * because GovernedRatiosTest allows exactly two `.k-pdp .k-pdp__panel`
     * selectors in this sheet — a third at the same specificity could
     * override the guarded geometry from outside the guarded block.
     *
     * And it is declared AFTER grid-column because two tests find this block
     * by the selector followed immediately by `grid-column: 2;`, so that they
     * read the 992 geometry rule and not the 768 gutter switch above it.
     * Inserting anything between the two made both of them read nothing and
     * report the rule missing. The anchor is part of the contract.
     */
    display: block;
    /*
     * BOTH media rows — the hero and the gallery — so the panel's sticky
     * travel is the whole media column's scroll, hero included (17.3), and
     * its release is that column's bottom.
     */
    grid-row: 1 / 3;
    /*
     * The measured box: 466px max-width at full track width below it,
     * centred in the 40% track. The side insets the reference shows are
     * DERIVED from this centring — (track − 466) / 2 — not a gutter.
     */
    width: 100%;
    max-width: var(--k-pdp-panel-w);
    /*
     * BORDER BOX, or the measurement is not implemented. 466 is the panel's
     * OUTER width on the reference and 55 is its content inset INSIDE that
     * box (content 356 = 466 − 2×55). Under the default content-box the
     * max-width would cap the content at 466 and the padding would ride
     * outside it, rendering a 576px panel — found live on the first deploy
     * of this rule.
     */
    box-sizing: border-box;
    justify-self: center;
    position: sticky;
    /*
     * 40.7 LOCKED names this component: "The desktop header is sticky. It
     * never obstructs content: anchored scroll positions and the PDP sticky
     * buying panel offset by header height. Tested at 1440, 1280 and 768."
     * chrome.css makes .k-header sticky at top: 0 from 768 up with
     * --k-header-h-desktop, so a panel pinned at 0 puts the product name and
     * price under it for the whole pinned range. F-03's own `top: 0` is
     * measured reference behaviour (P3) and 40.7 is an explicit owner ruling
     * (P2); §0.5 puts the ruling above the measurement, and the reference's
     * header is not KOROTANA's. The announcement bar is not sticky —
     * chrome.css declares no sticky positioning on .k-announce — so the
     * header height is the whole offset.
     */
    top: var(--k-header-h-desktop);
    /* Without this the grid item stretches to the row height and sticky has
       nothing to travel inside — the panel would simply never pin. */
    align-self: start;
    /* F-03: the reference's panel is exactly the viewport height. A panel
       taller than the viewport cannot pin, so it scrolls inside itself. The
       space it actually has is the viewport less the header it sits under. */
    max-height: calc(100vh - var(--k-header-h-desktop));
    overflow-y: auto;
    /* F-03 measured 55px of content inset each side inside the 466px panel
       — confirmed unchanged on the 28 October 2026 capture, and a token now
       (tokens.css), never a figure here. */
    padding: var(--k-space-7) var(--k-pdp-panel-inset);
  }
}

/* ==========================================================================
   18.1 — THE GALLERY
   --------------------------------------------------------------------------
   A single column. 18.1's sequence has no paired row anywhere and 18.2
   approves exactly four configurations, none of which is a grid.

   18.7: "Gallery row gap remains 2px mobile and 4px from the 768px breakpoint
   unless later direct measurement of the approved reference produces a
   contradictory owner-approved value." F-05 measured every gap at every
   Section 08 width and found no contradiction: 4, 4, 4, 4 at 1440, 1280 and
   768; 2, 2, 2, 2 at 430, 390 and 375. The clause is CONFIRMED exactly.

   The 2px is deliberate and is not a rounding error: it reads as a continuous
   editorial run rather than a grid of separate tiles, while still stopping two
   adjacent frames looking like one photograph.
   ========================================================================== */

.k-pdp__gallery {
  display: flex;
  flex-direction: column;
  row-gap: var(--k-gallery-gap);
  width: 100%;
}

@media (min-width: 768px) {
  .k-pdp__gallery { row-gap: var(--k-gallery-gap-wide); }
}

/* --------------------------------------------------------------------------
   RUN 40 — THE COLOUR SWAP'S ARRIVAL FADE

   product.js grafts the fetched colour's server-rendered hero and gallery in
   and lets them fade up. The tokens are the house's own — --k-motion-quick is
   40.6's LOCKED 200ms state transition, --k-ease-calm the standing curve —
   because a swap is a state change, not an editorial reveal, and inventing a
   third easing is exactly what RC-67 refused. Opacity only: geometry is
   asserted identical across colours, so nothing here may move a pixel.

   The whole pair sits behind prefers-reduced-motion: a reduced-motion visitor
   gets the swap with no transition at all, because product.js never adds
   .k-swap-in for them and, belt-and-braces, the rule cannot match anyway.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .k-swap-in { opacity: 0; }
  .k-swap-in--active {
    opacity: 1;
    transition: opacity var(--k-motion-quick) var(--k-ease-calm);
  }
}

/* --------------------------------------------------------------------------
   THE FRAME (18.1, 18.8; owner ruling J-49, 22 October 2026, RC-199)

   ONE gallery shape: 3:4 / 0.75, delivered 1800 x 2400. It is held in
   --k-ratio-frame and read from there by every rule below, by the colour
   drawer at the foot of this sheet and by primitives.css's frame skeleton,
   so the shape is declared once.

   WHAT J-49 REPLACED. 18.4 withdrew the full-width 18:25 rule and the
   full-width 3:4 inset class together and put the frame at 850 x 1176 /
   0.722789; J-13.4 (3 September 2026) called that "an intentional KOROTANA
   divergence. Not to be reopened." J-49 reopened it, on the ground that the
   approved generator — Nano Banana Pro through Higgsfield — offers 1:1, 3:4,
   4:3, 2:3, 3:2, 9:16, 16:9, 5:4, 4:5 and 21:9 and will never offer
   0.722789, so the old figure was reachable only by hand-cropping every
   catalogue picture in perpetuity. A later dated owner ruling beats an
   earlier one (0.5), so J-13.4 is retired rather than contradicted.

   NOTE THE DIRECTION. 3:4 is WIDER than 0.722789, and every delivered
   export on the build is wider still (4:5 and three landscape sources), so
   the change makes FILL crop LESS and CONTAIN pad LESS on every bound
   photograph. The measured figures are in the WooCommerce note below.

   THE ARCHIVE DOES NOT FOLLOW. J-49 names the PDP. The archive article
   reuses .k-frame--frame and archive.css overrides it back to 850 x 1176
   from its own token; whether the archive should follow is the owner's call,
   registered as K-96.

   18.8's fit contract: "Gallery/detail = FILL. Flat frames = CONTAIN + PAD
   with complete garment visible." The pad ground is --k-pad, which is also the
   page ground, so a contained flat letterboxes into the page rather than into
   a visible box.

   THAT SENTENCE WAS FALSE FOR TWO DAYS AND IS TRUE AGAIN. Run 28 moved the
   product page to pure white and left --k-pad on the old grey, so from
   20 September a padded flat WAS a visible grey box on this page -- 27.74px
   of it at 390 and 55.07px at 1280, a tenth of the frame. The instruction of
   22 September (J-31.1, RC-119) moves --k-pad to pure white, so .k-frame--pad
   below needs no change at all: it already reads the token, and the token is
   now the ground. FIT IS UNTOUCHED -- a flat still CONTAINs, it just no longer
   letterboxes into a different colour from the page it sits on.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   WHY THE COMPONENT CLASS IS WRITTEN TWICE BELOW — Run 39 CP2, RC-139.

   THE DEFECT. Every `.woocommerce` and `.woocommerce-page` document — which
   is every product page — loads `woocommerce-layout.css`, and it ships

       .woocommerce img, .woocommerce-page img { height: auto; max-width: 100% }

   at specificity (0,1,1). `.k-frame > img` was ALSO (0,1,1), and specificity
   ties are settled by load order: functions.php enqueues product.css before
   WooCommerce's stylesheets, so WooCommerce's declaration arrived last and
   won. `height: auto` took over, the <img> box took the PHOTOGRAPH's ratio
   instead of the FRAME's, `object-fit` never engaged because there was no
   box to fit into, and the image sat at the top of the frame with the
   remainder of the frame box showing beneath it.

   MEASURED, at a 774px sequence column, IN THE 0.722789 FRAME: with the
   delivered 4:5 export (2062 x 2560) the image covered 89.74% of its frame and
   left 10.26% uncovered; with a square export, 27.72%; with the 1.49 landscape
   export this article also owns, 51.52%. Run 30 found it by arithmetic and
   could not verify a fix — no §18 slot held an attachment, so every frame
   collapsed and there was nothing to measure. Run 39 bound real photography to
   eight slots of article 2171 (tools/demo-imagery.php) and measured it.

   THE SAME FIGURES IN THE 3:4 FRAME (J-49, Run 52). Every one of them falls,
   because 3:4 is wider than 0.722789 and all eight bound sources are wider
   still: the 4:5 export's uncovered share goes 10.26% -> 6.89%, the 1.24
   landscape 41.78% -> 39.59%, the 1.34 landscape 46.03% -> 44.00%, and the
   1.49 landscape 51.52% -> 49.70%. The flat at slot 10 is the CONTAIN case
   and its pad falls by the same 10.26% -> 6.89%. No bound photograph is
   cropped harder by J-49 and none is padded more; the frame moved toward the
   catalogue, not away from it.

   THE REPAIR, AND WHY THIS ONE. Doubling the class takes the selector to
   (0,2,1), which beats (0,1,1) on specificity, so the rule no longer depends
   on load order at all — the alternative repair, moving the theme's
   stylesheets after WooCommerce's, works today and breaks the day anyone
   touches the enqueue, and its blast radius is EVERY tie between the theme
   and WooCommerce in both directions on every product page rather than these
   three selectors.

   NOT !important, AND NOT GLOBAL. `height: auto` is CORRECT for a
   WooCommerce-native image — a cart thumbnail, an order-email image, an
   admin thumbnail — and a rule that reached WooCommerce's declaration
   globally would break all three. The repair is scoped to the boxes the theme
   owns and sizes: this frame, `.k-media` (components.css) and
   `.k-pcard__image` (collection.css), each of which declares its own
   aspect-ratio and therefore needs its image to fill the box it was given.

   `.k-frame > picture` is doubled for the same reason and by the same
   arithmetic. `width` was never at risk: WooCommerce sets only `max-width`
   on an image, so the theme's `width: 100%` was already unopposed.
   -------------------------------------------------------------------------- */

/*
 * AND `object-fit: inherit` HAD TO GO WITH THE DOUBLING — Run 39 CP5,
 * adversarial review finding 1. It was on this base rule and it was always a
 * no-op, because nothing in the build gives a <picture> an `object-fit`, so it
 * inherited the initial value `fill`. Harmless while the base rule was (0,1,2)
 * and TIED with `.k-frame--fill > picture > img`, which comes later in this
 * file and therefore won. Doubling the class takes the base to (0,2,2), which
 * BEATS the modifiers at (0,1,2) — so the repair would have turned every
 * picture-wrapped framed photograph into a STRETCH, which §02 forbids outright
 * and which the coverage test cannot see (a stretched image is 100% of its box
 * at any source ratio). Latent, because korotana_media_slot() emits a bare
 * <img>; live the moment a WebP/AVIF plugin wraps one, or a slot is rendered
 * through render-hero.php's two-crop <picture>.
 *
 * Deleted rather than worked round. The three fit modes below already name
 * `> picture > img` themselves, so they are the only rules that should ever
 * decide a fit — and frame-coverage.spec.js now asserts that every framed
 * image carries one of the three classes AND computes the fit that class
 * means, so a frame that loses its fit goes red instead of reading 100%.
 */
.k-frame { display: block; width: 100%; overflow: hidden; }
.k-frame.k-frame > img,
.k-frame.k-frame > picture { display: block; width: 100%; height: 100%; }
.k-frame.k-frame > picture > img { display: block; width: 100%; height: 100%; }

.k-frame--frame { aspect-ratio: var(--k-ratio-frame); }
.k-frame--7x15  { aspect-ratio: var(--k-ratio-hero-mobile); }
.k-frame--9x16  { aspect-ratio: var(--k-ratio-hero-desktop); }

.k-frame--fill > img,
.k-frame--fill > picture > img { object-fit: cover; }
.k-frame--pad { background: var(--k-pad); }
.k-frame--pad > img,
.k-frame--pad > picture > img { object-fit: contain; }

/*
 * 18.8's third mode, which the schema now returns: "Provenance = INSET." An
 * inset frame takes the export's own shape inside the 510px module rather than
 * being cropped to a declared box, so it forces no aspect-ratio and contains
 * rather than covers. It ships with no consumer today — J-13.9 parks F-04, so
 * korotana_media_slot() refuses both provenance rows for want of delivered
 * dimensions — and it exists so that the moment the ruling is lifted the sole
 * inset in V6 does not ship as a cover-crop.
 */
.k-frame--inset > img,
.k-frame--inset > picture > img { object-fit: contain; }

/* --------------------------------------------------------------------------
   THE STORY INSET — owner ruling, 22 September 2026 (J-31.2, RC-120)

   THREE MODULES, AT THREE FIXED POSITIONS: position 2 (the cut, Copy A),
   positions 5A/5B (the source, Copy M), position 8 (the make, Copy B). The
   narrative is what it is -> where it comes from -> what it is made of, and the
   rhythm big, small, big, big, big, small-group, big, big, small, big is the
   point of it.

   WHAT AN INSET IS, AND THE WHOLE OF WHAT IT IS. The frame does not touch the
   sides of the column. It sits in a narrower one with page ground either side.
   That size drop is the entire effect: it reads as a detail ABOUT the thing
   rather than as the thing.

   THERE IS NOTHING TO DRAW, AND DRAWING ANYTHING WOULD BE THE MISREADING. On a
   white page the margin is the same white as the page, so there is no visible
   frame -- no border, no outline, no shadow, no background tint, no rounded
   corner. This rule therefore declares width and margin and NOTHING ELSE, and
   a test asserts that it declares nothing else.

   margin-inline: auto AND NOT 15%. The two are identical arithmetic at 70%
   (100 - 70 = 30, halved), and `auto` stays correct if the width is ever
   retuned, where a hard 15% would silently stop centring. The ruled 15% is
   what it renders; --k-inset-w is the only figure.

   IT KEYS ON THE SLOT TABLE'S OWN FIELD. `data-presentation` comes from
   korotana_slot_presentation(), so the layout contract lives in the table with
   the rest of the row and a CSS edit alone cannot inset a fourth position.

   .k-frame AND NOT .k-pdp__gallery > [data-presentation="inset"]: the
   provenance module is ALSO data-presentation="inset" -- it is the second of
   the three, and the count selector has to find it -- but it is a
   `.k-provenance`, not a `.k-frame`, and J-13.7 already gives it its own
   geometry (full content width on phones, the LOCKED 510px from tablet up).
   Scoping to .k-frame is how this rule reaches the two new insets and leaves
   the third alone, which the ruling requires.
   -------------------------------------------------------------------------- */
.k-frame[data-presentation="inset"] {
  inline-size: var(--k-inset-w);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   THE REVIEW BOXES — OFF PRODUCTION ONLY (RC-11, §0.4, J-13.12)

   Nothing in this block can reach a customer. Every element it styles is
   emitted inside `! korotana_is_production()` in inc/media-slots.php and
   inc/render-product.php, which is RC-11's shape and the only placeholder gate
   this build has. On production the §18 positions collapse exactly as they
   always did and none of these selectors matches anything.

   WHY THE GEOMETRY IS NOT RESTATED HERE. Each box carries the SAME ratio class
   a real export would — `.k-frame--frame` for 3:4 (J-49), the
   hero pair below — so the shape under review is the token, not a copy of it.
   The only rule this block adds is that a box with nothing in it is visible:
   a dashed boundary in --k-border-control, which is 4.76:1 over the Porcelain
   it is actually drawn on (5.23:1 on the page ground since J-31.1) and so
   clears WCAG 1.4.11's 3:1 for a non-text boundary either way.

   DELIBERATELY NOT A 57.8 SKELETON. `.k-skeleton` shimmers because it means
   "loading, and this will resolve on its own". These mean "no approved export
   exists", which resolves only when someone delivers one, so they are static
   and they say so in words. Nothing here animates, so prefers-reduced-motion
   has nothing to suppress.

   THE BOX SCROLLS RATHER THAN CLIPS. .k-frame is `overflow: hidden`, which is
   right for a photograph and wrong for a paragraph: at 200% zoom on a 375px
   viewport a marker in a monospace face (RC-22 — every Space Mono glyph is
   0.612em) needs more lines than a 7:15 box has room for, and 08 makes 200%
   zoom a launch gate. `overflow: auto` keeps every character reachable without
   the type shrinking, which v4.0 §11 forbids anyway.
   -------------------------------------------------------------------------- */

.k-frame--review {
  display: flex;
  flex-direction: column;
  /*
   * TOP-ALIGNED, NOT CENTRED. A centred flex column whose content outgrows it
   * pushes the first line above the scroll origin and makes it unreachable in
   * every engine — which at 200% zoom is precisely the content this box exists
   * to show. Reading order beats vertical rhythm on a review surface.
   */
  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);
  /* Fix the CONTAINER, never the type: a long marker wraps inside the frame. */
  overflow-wrap: anywhere;
}
.k-frame--review > p { margin: 0; }
.k-frame__slot { color: var(--k-ink); }

/*
 * 18.5's two hero ratios in ONE review box, swapping where the shipping hero
 * swaps: --k-hero-switch, RC-15, DEFAULT 768. The pair and the order are
 * `.k-pdp .k-hero`'s, above, so the review box and the real hero cannot come
 * to disagree about which crop a width gets. The literal is the breakpoint for
 * the reason stated in this file's header — a custom property cannot be read
 * inside a @media condition — and 768 is v4.0 §04's inclusive tablet start.
 */
.k-frame--heroreview { aspect-ratio: var(--k-ratio-hero-mobile); }

@media (min-width: 768px) {
  .k-frame--heroreview { aspect-ratio: var(--k-ratio-hero-desktop); }
}

/* The 18.2 configuration caption, on the page gutter like every sibling. */
.k-pdp__reviewnote {
  margin: 0;
  padding: var(--k-space-3) var(--k-gutter-mobile);
  border: var(--k-hairline) dashed var(--k-border-control);
  color: var(--k-graphite);
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .k-pdp__reviewnote { padding-inline: var(--k-gutter-desktop); }
}

/* --------------------------------------------------------------------------
   18.1 — THE PROVENANCE PAIR: THE SECOND OF THREE INSETS (J-31.2), WITH ITS
   OWN GEOMETRY (J-13.7), WHICH THE STORY-INSET RULE ABOVE MUST NOT TOUCH

   18.1 position 5A/5B: "510px inset, size-differentiated". Appendix B repeats
   it: "PDP provenance | 510px inset module | 510px inset module |
   Size-differentiated pair; optional verified only."

   J-13.7 answers the one question those left open, and it is the reason there
   are two regimes here rather than one: the module "takes FULL CONTENT WIDTH
   ON PHONES; the locked 510px holds from tablet upward". A fixed 510px box on
   a 375px viewport would overflow the page, which is what the ruling closes.

   SIZE-DIFFERENTIATED, NOT OVERLAPPED. The two frames are a pair at different
   scales; nothing in V6 layers them. The v2.0 overlap — 06B over 06A with a
   60px offset and a leftward bleed — was the void placement layer's and is
   deleted with it.

   The frames' own delivered sizes are Appendix F row F-04 and owner ruling
   J-13.9 PARKS them: "measure fresh if the module is ever published." So the
   module's WIDTH is locked and its frames are not sized here at all — they
   take the shape of the exports, which the renderer refuses to emit until
   those exports have declared dimensions. The position and the collapse are
   built; the frames are not invented.
   -------------------------------------------------------------------------- */

.k-provenance {
  display: grid;
  gap: var(--k-space-4);
  /* J-13.7: full content width on phones. */
  width: 100%;
  padding-inline: var(--k-gutter-mobile);
  margin-block: var(--k-space-6);
  box-sizing: border-box;
}
/* "Size-differentiated": the second frame is the smaller of the pair. */
.k-provenance__b { width: 70%; justify-self: end; }

@media (min-width: 768px) {
  .k-provenance {
    /* The LOCKED 510px, from tablet upward (18.1, Appendix B, J-13.7). */
    width: var(--k-provenance-w);
    max-width: 100%;
    padding-inline: 0;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   20.2 — THE COPY ZONES

   Copy A after Gallery 1, Copy B after Detail/Material, Copy M after the
   provenance pair. "Copy never precedes the photograph it describes", which
   the renderer enforces structurally: a zone whose evidence did not render is
   not emitted at all, so there is no empty-zone state to style.

   17.4 leaves spacing hierarchy with the approved reference and typography
   with KOROTANA, so the type is v4.0's R14 through .kr-r14 in the markup and
   only the rhythm is here.
   -------------------------------------------------------------------------- */

.k-copyzone {
  padding-inline: var(--k-gutter-mobile);
  margin-block: var(--k-space-6);
  max-width: var(--k-measure);
}
.k-copyzone__body { color: var(--k-graphite); margin: 0; }
.k-copyzone__body p { margin: 0 0 var(--k-space-3); }
.k-copyzone__body p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .k-copyzone { padding-inline: var(--k-gutter-desktop); }
}

@media (min-width: 992px) {
  /* Inside the media column the gutter is the layout's, not the page's. */
  .k-copyzone { padding-inline: 0; }
}

/* ==========================================================================
   17.2 / 19 — THE BUYING PANEL
   --------------------------------------------------------------------------
   17.2: "Hero first. Immediately after hero: KOROTANA buying block with
   product name/price and existing approved secondary product data, primary
   Pre-order CTA, limited-production line, then governed supporting
   content/accordions."
   ========================================================================== */

.k-pdp__panel { padding: var(--k-space-5) var(--k-gutter-mobile) 0; }

.k-pdp__namerow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--k-space-4);
}
.k-pdp__identity { min-width: 0; }
.k-pdp__name { margin: 0; }
.k-pdp__price { margin: var(--k-space-2) 0 0; }

/* --------------------------------------------------------------------------
   50.3 LOCKED (J-12) — THE SAVE CONTROL IS ADJACENT TO THE CTA

   "PDP: a save control adjacent to the Pre-order CTA in the buying panel on
   desktop and in the mobile buying block." It used to sit in the name row,
   three blocks and roughly 150px above the CTA at 1440; it is now the CTA's
   own row. `.k-wish` is positioned absolutely for the collection card, which
   is why `position: static` is still needed here.
   -------------------------------------------------------------------------- */
.k-pdp__action {
  display: flex;
  align-items: stretch;
  gap: var(--k-space-3);
}
/* The CTA keeps the row: `width: 100%` on a flex item resolves against the
   container and would overflow it beside the save control. */
.k-pdp__action .k-pdp__cta { width: auto; flex: 1 1 auto; min-width: 0; }
/* The saved state is the shared component's own (a filled heart), so nothing
   is added here beyond taking it out of the card's absolute position. */
.k-pdp__save { position: static; flex: none; }

/* v4.0 §06's colour-value role is .kr-pdp-colour-value and carries the whole
   type. This class carries the colour and nothing else, so the pre-V6
   .k-colourthumb__name font-size cannot win the cascade against it. */
.k-pdp__colourname { color: var(--k-graphite); }

.k-pdp__block { margin-top: var(--k-space-5); }

/* Edition panel (A02) — the four mandated fields, from the ledger. */
.k-pdp__edition {
  background: var(--k-surface-sunken);
  padding: var(--k-space-4);
  margin-top: var(--k-space-5);
}
.k-pdp__editionrow {
  display: flex;
  justify-content: space-between;
  gap: var(--k-space-4);
  padding: var(--k-space-2) 0;
  border-bottom: var(--k-hairline) solid var(--k-stone);
}
.k-pdp__editionrow:last-child { border-bottom: 0; }
.k-pdp__editionlabel { color: var(--k-graphite); }
.k-pdp__blocktitle { color: var(--k-graphite); margin: 0 0 var(--k-space-3); }

/* --------------------------------------------------------------------------
   19.1 / J-13.10 — THE PRIMARY CTA

   Typography is v4.0 §06's commerce-button row and arrives on
   .kr-commerce-button: M14, 14/21, 0 tracking, weight 500, UPPERCASE, no-wrap,
   12px/14px padding, radius 0. NOTHING BELOW TOUCHES ANY OF THAT — a state
   change may alter colour, underline or surface and never font-size,
   line-height or tracking (v4.0 §05 STATE GEOMETRY, §11).

   It is deliberately not also a .k-btn: that primitive sets text-transform
   from --k-t6-transform, which is `none`, and would silently undo the
   uppercase. The surface treatment is here instead, following the cart
   drawer's .kr-commerce-button + .k-cart__checkout precedent.
   -------------------------------------------------------------------------- */

.k-pdp__buy { margin-top: var(--k-space-5); }

.k-pdp__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--k-touch-min);
  background: var(--k-ink);
  color: var(--k-snow);
  border: var(--k-hairline) solid var(--k-ink);
  border-radius: var(--kr-radius-primary);
  cursor: pointer;
}
.k-pdp__cta:hover { background: var(--k-graphite); border-color: var(--k-graphite); }
.k-pdp__cta:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}
/*
 * The disabled state — 46.1's no-batch, paused, sold-out and closed rows, and
 * every article on the build today. Surface and colour only: the box does not
 * move, so a state change cannot shift the page (v4.0 §11).
 */
.k-pdp__cta:disabled,
/*
 * The in-flight state. product.js sets aria-disabled rather than `disabled`
 * while the Store API request is open, because disabling the element the
 * customer has just activated removes it from the tab order and drops focus
 * to <body> — WCAG 2.2 SC 2.4.3. Surface and colour only, exactly as the
 * disabled row above (v4.0 §11).
 */
.k-pdp__cta[aria-disabled="true"] {
  background: var(--k-surface-sunken);
  color: var(--k-graphite);
  border-color: var(--k-mist);
  cursor: not-allowed;
}
.k-pdp__cta[aria-busy="true"] { cursor: progress; }

/* J-13.10's "Size · Change" affordance. Hidden until a size is chosen, so it
   reserves no space in the state the page loads in. */
.k-pdp__selection {
  display: flex;
  align-items: center;
  gap: var(--k-space-3);
  margin: 0 0 var(--k-space-3);
  color: var(--k-ink);
}
/*
 * [hidden] MUST WIN. The UA rule is `[hidden] { display: none }`, and an
 * AUTHOR `display` declaration beats it whatever the specificity, because
 * author origin beats user-agent origin. Without this guard the row above —
 * and the focusable "Change size" button inside it — were visible and in the
 * accessibility tree on every product page from first paint, before any size
 * had been chosen: 19.1's prohibited "separate visible 'Select size' CTA
 * before the customer clicks Pre-order", reintroduced under another label,
 * pointing `aria-controls` at a region the .k-js rule had removed. chrome.css
 * documents the same trap and every other display-setting class in this build
 * carries the guard; this one was missed.
 */
.k-pdp__selection[hidden] { display: none; }
.k-pdp__change {
  background: none;
  border: 0;
  padding: 0;
  min-height: var(--k-touch-min);
  color: inherit;
  cursor: pointer;
}
.k-pdp__change:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

/* 19.2, in the slot F-03 measured 20px beneath the CTA on the reference. */
.k-pdp__production {
  margin: var(--k-space-5) 0 0;
  color: var(--k-graphite);
  text-align: center;
}

/*
 * THE LEAD-TIME LINE — owner instruction, 20 September 2026 (J-28, RC-108).
 *
 * It stands in the slot the removed "How Pre-order Works" link vacated, and
 * it takes the SAME treatment as the 19.2 line above it because F-03 measured
 * the reference's delivery microcopy as centred 20px beneath the CTA and
 * §19.2's second sentence — the one this instruction supersedes — is what had
 * vacated that position. Centred, Graphite, R12.
 *
 * Two top margins, and the reason is the gate. With 0 batches the 19.2 line
 * renders nothing at all (RC-13), so this line is the CTA's immediate
 * neighbour and takes the full --k-space-5 the slot is worth. When a batch
 * exists the two stack, and the second of a pair does not need the air the
 * first did.
 */
.k-pdp__leadtime {
  margin: var(--k-space-5) 0 0;
  color: var(--k-graphite);
  text-align: center;
}
.k-pdp__production + .k-pdp__leadtime { margin-top: var(--k-space-2); }

/* 57.4: the inline error sits with the control that produced it. */
.k-pdp__error { margin: var(--k-space-3) 0 0; }

/* ==========================================================================
   19.3 — THE SIZE SURFACE
   --------------------------------------------------------------------------
   THREE STATES, AND THE ORDER THEY ARE DECLARED IN IS THE POINT.

   1. NO JAVASCRIPT (the base rules). The surface is a plain expanded fieldset
      in flow inside the form — 3.6's "sane non-JavaScript fallback" for a cart
      destination, and the state an unscripted browser gets with no work.
   2. SCRIPTED (.k-js). Collapsed. The flag is printed in the head by
      inc/render-size-surface.php, so the collapse happens BEFORE first paint
      rather than after it: a script that hides the surface on load would move
      the whole buying panel after paint, which is the layout shift 60.3 LOCKS
      at CLS <= 0.1.
   3. OPEN (.is-open). Below 768 a full-screen sheet; from 768 a panel
      overlaying the buying column. Both are what F-03 measured on the
      reference, which opens a full-screen sheet under mobile emulation and a
      570px side sheet at 1440 — in both cases OVER the page, never pushing the
      CTA down.
   ========================================================================== */

/* State 1 — the fieldset. Overrides .k-sheet's fixed positioning entirely. */
.k-sizesurface {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  margin-top: var(--k-space-5);
}
/* No background reset needed in state 1 any more: the glass rule in tokens.css
   reaches `.k-sheet:not(.k-sizesurface)` and `.k-js .k-sizesurface.is-open`,
   so the unscripted fieldset simply has no fill (J-37, RC-136). */
.k-sizesurface .k-sheet__head { padding-inline: 0; }
.k-sizesurface .k-sheet__body { padding: var(--k-space-4) 0 0; overflow: visible; }

/* State 2 — collapsed on a scripted document, from the head, before paint. */
.k-js .k-sizesurface { display: none; }

/* State 3 — open. Below 768 the full-screen sheet .k-sheet already describes. */
.k-js .k-sizesurface.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: var(--k-z-panel);
  /* The surface is glass, painted in tokens.css (J-37, RC-136). */
}
.k-js .k-sizesurface.is-open .k-sheet__head { padding-inline: var(--k-gutter-mobile); }
.k-js .k-sizesurface.is-open .k-sheet__body {
  padding: var(--k-space-5) var(--k-gutter-mobile);
  overflow-y: auto;
  flex: 1;
}

@media (min-width: 768px) {
  /* A panel in the buying column: anchored over the buying block rather than
     inserted above the CTA, so opening it moves nothing. */
  .k-js .k-sizesurface.is-open {
    position: absolute;
    inset: auto 0 0 0;
    max-height: 100%;
    border: var(--k-hairline) solid var(--k-stone);
    overflow: hidden;
  }
  .k-js .k-sizesurface.is-open .k-sheet__head,
  .k-js .k-sizesurface.is-open .k-sheet__body { padding-inline: var(--k-space-4); }
}

/* The form is the positioning context for that panel. */
.k-pdp__form { position: relative; }

.k-sizesurface__regions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--k-space-1);
  margin-bottom: var(--k-space-3);
}
.k-sizesurface__set { border: 0; margin: 0; padding: 0; min-width: 0; }
/* .k-sizesurface__note is gone with the region copy it carried — see
   inc/render-size-surface.php for why 19.6 and 1.7 removed it. */
.k-sizesurface__pending { color: var(--k-graphite); margin: 0 0 var(--k-space-4); }
.k-sizesurface__guide { margin: var(--k-space-5) 0 0; }

/* --------------------------------------------------------------------------
   19.5 — THE SIZE STATES, WITH DISABLED GEOMETRY STABLE

   19.5: "Available, unavailable, selected, focus and disabled size states must
   be unambiguous and accessible. Unavailable sizes are disabled rather than
   silently omitted where the reference shows them."

   The control is a real radio with a styled label, so the group is a group in
   the accessibility tree and arrow keys move through it. The input is visually
   hidden but NOT display:none — a display:none radio is unfocusable and drops
   out of the tab order, which would make the whole surface keyboard-dead.

   DISABLED CHANGES COLOUR AND OPACITY ONLY. Same font-size, same line-height,
   same tracking, same padding, same min-width, same min-height: the box is
   identical in all five states, so no state change can move the row under a
   finger reaching for it (v4.0 §05 STATE GEOMETRY, §11 Disabled).

   Colour is never the only carrier: the renderer appends a screen-reader
   "unavailable" to each disabled control, because 02 and 60.8 both forbid
   colour alone carrying status.

   F-03 measured the reference's size rows at 40 tall on a 48 pitch under
   mobile emulation. KOROTANA's are 44 because 40.5 states a 44px hit target
   and 08 makes accessibility a launch gate — a declared divergence under 1.4
   "accessibility", not developer preference. (Corrected 20 September 2026,
   Run 28: this comment read "40.5 and WCAG 2.5.8 require a 44px target". SC
   2.5.8 is the AA criterion and it requires 24; 44 is AAA's SC 2.5.5 and is
   KOROTANA's own stricter rule, which tokens.css has said all along at
   --k-touch-min. Comment only; the size rows are unchanged.)
   -------------------------------------------------------------------------- */

.k-sizes { display: flex; flex-wrap: wrap; gap: var(--k-space-2); }
.k-sizeoption { display: contents; }

.k-sizeoption__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.k-sizeoption__input + .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(--k-hairline) solid var(--k-stone);
  background: var(--k-surface-raised);
  color: var(--k-ink);
  cursor: pointer;
  transition: border-color var(--k-motion-instant) var(--k-ease-calm),
              background-color var(--k-motion-instant) var(--k-ease-calm);
}
.k-sizeoption__input:hover + .k-size { border-color: var(--k-graphite); }
.k-sizeoption__input:checked + .k-size { border-color: var(--k-ink); background: var(--k-surface-sunken); }
.k-sizeoption__input:focus-visible + .k-size {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}
.k-sizeoption__input:disabled + .k-size {
  /* Colour and opacity. Nothing else. */
  color: var(--k-graphite);
  border-color: var(--k-mist);
  background: var(--k-surface-sunken);
  opacity: .55;
  cursor: not-allowed;
}

/* 19.4's region views. The unavailable views are disabled and say so in text;
   the state change here is colour and border only (v4.0 §06: "State changes
   colour only"). */
.k-sizeregion {
  min-width: var(--k-touch-min);
  min-height: var(--k-touch-min);
  padding: 0 var(--k-space-3);
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: var(--k-focus-ring) solid transparent;
  color: var(--k-graphite);
  cursor: pointer;
}
.k-sizeregion[aria-pressed="true"] { color: var(--k-ink); border-bottom-color: var(--k-ink); }
.k-sizeregion:disabled { color: var(--k-mist); cursor: not-allowed; }
.k-sizeregion:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

/* ==========================================================================
   20.1 — THE ACCORDIONS, COMPACT (owner instruction, 20 September 2026 —
   J-28, RC-106 / RC-112)
   --------------------------------------------------------------------------
   "Look at Suitsupply's mobile product pages as the layout reference. I want
   the same compact approach: small section titles, minimal vertical spacing,
   subtle dividers, and a small '+' on the right. All sections should be
   closed by default, and the '+' should change to '−' when opened. Keep
   KOROTANA's own typography and identity, but make the structure and use of
   space as clean and efficient as Suitsupply."

   17.4 and §6.2 leave ORDER, SPACING and HIERARCHY with the reference and
   keep wording, product data and typography with KOROTANA, so the owner's
   instruction is consistent with V6 here rather than superseding it — which
   makes §1.6 the governing rule: measured beats inferred. What was actually
   measured, and what was not, is the whole of this block's honesty.

   MEASURED (F-03, C24212, 3 September 2026, getBoundingClientRect):
     · trigger height 36, full content width (356 at 1440, 398 at 430),
       contiguous — pitch 36, no gap;
     · a real <button> with aria-expanded;
     · the panel expands in place and pushes following content down.

   NOT MEASURED, ANYWHERE IN THE ARCHIVE — registered as Appendix F row F-15:
     · vertical padding as distinct from row height;
     · divider weight; divider colour;
     · any indicator glyph at all, its size or its inset from the right;
     · the open/close transition's duration, easing or property.
   Every value below that answers one of those is an engineering DEFAULT. It
   is not described as measured here, in the report, or in a commit message.
   (F-02's 22×22 plus/minus icon at inset 16 and its 0.85s open transition
   would close three of them and are NOT used: Appendix A gives Off-White the
   collection Filter & Sort and nothing else, and a measurement outside its
   reference's jurisdiction is void however accurate it is.)

   36 IS NOT ADOPTED, AND COMPACT STOPS AT 44. The floor is 40.5's, not the
   AA minimum's: §40.5 states a "44px hit target", tokens.css carries it as
   --k-touch-min, and §08 makes accessibility a launch gate. WCAG 2.2 AA asks
   for 24 (SC 2.5.8) and 44 is AAA's figure (SC 2.5.5), so KOROTANA is above
   the gate by its own rule rather than at it — a declared divergence from the
   reference under 1.4 "accessibility", not developer preference. So the row
   compacts to exactly the floor: padding drops 12 → 8 and the indicator box
   drops from the 22px icon to the 21px heading line, which takes the content
   box to 37 and lets min-height do the rest. The rendered row goes 46 → 44.
   Lower than that is a gate failure with no ruling behind it.

   SMALL TITLES ARE THE ROLE THEY ALREADY HAD. Typography v4.0 is a closed
   contract: §06 binds the accordion heading to M14 and the body to R14,
   §11 forbids a state changing font-size, line-height or tracking, and
   CLAUDE.md §7 forbids inventing an intermediate size or a second mobile
   scale. "Small" is delivered in space and in the indicator, never in type.

   ONE DIVIDER, NOT TWO. Until this run every internal divider on this stack
   was 2px — the primitive gives each item a border-bottom and a rule here
   gave every adjacent item a border-top, and they stacked. The border-top
   rule is deleted; the primitive's single bottom rule is recoloured to
   --k-divider, as is the container's top rule. That is the whole
   of "subtle dividers": one hairline, lighter than --k-stone.

   NO HEIGHT ANIMATION, AND THAT IS THE MEASUREMENT TALKING. F-03 recorded
   "expands in place and pushes following content down" and recorded no
   timing; an animated height would be an unmeasured behaviour claim and a
   layout-thrash risk against Run 12's oscillation gate. The only motion is
   the trigger's colour, on the house pair --k-motion-quick / --k-ease-calm
   (no fifth easing; --k-menu-ease is the menu and cart's own feel and is not
   borrowed), inside a reduced-motion guard. Under reduced motion the section
   still opens — opening is a hidden attribute, not an animation.
   ========================================================================== */

.k-pdp__drawers { margin-top: var(--k-space-7); }
.k-pdp__drawers .k-accordion { max-width: none; border-top-color: var(--k-divider); }
.k-pdp__drawers .k-accordion__item { border-bottom-color: var(--k-divider); background: none; }
.k-pdp__drawers .k-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--k-space-4);
  width: 100%;
  /* 40.5's 44px hit target, above SC 2.5.8's 24. The floor the row stops at. */
  min-height: var(--k-touch-min);
  /* DEFAULT (J-28 "minimal vertical spacing"); F-15 outstanding. Was --k-space-3. */
  padding: var(--k-space-2) 0;
  background: none;
  border: 0;
  color: var(--k-ink);
  text-align: left;
  cursor: pointer;
}
.k-pdp__drawers .k-accordion__label { min-width: 0; }

/*
 * THE SIGN. One element, one identity, both states — so focus survives the
 * toggle. The characters are CSS content on an aria-hidden span, so the
 * accessible name stays the label alone and aria-expanded remains the only
 * thing that announces state. The box is fixed at the M14 line box (21px) in
 * both states: Space Mono is monospaced, "+" and "−" share an advance, and
 * v4.0 §11 does not permit a state to change the type metrics anyway.
 *
 * Inset from the right edge is ZERO — flush with the panel's content edge,
 * which is where the chevron sat. F-03 measured no indicator and therefore no
 * inset; keeping the existing value invents nothing (F-15).
 */
.k-pdp__drawers .k-accordion__sign {
  flex: none;
  display: grid;
  place-items: center;
  /* DEFAULT (J-28 "a small '+'"); the M14 line box, so the row height is the
     text's and not the indicator's. F-15 outstanding. */
  inline-size: var(--kr-m14-line);
  block-size: var(--kr-m14-line);
}
.k-pdp__drawers .k-accordion__sign::before { content: "+"; }
.k-pdp__drawers .k-accordion__trigger[aria-expanded="true"] .k-accordion__sign::before { content: "\2212"; }

.k-pdp__drawers .k-accordion__panel { padding: 0 0 var(--k-space-4); color: var(--k-graphite); }
.k-pdp__drawers .k-accordion__panel > :first-child { margin-top: 0; }
.k-pdp__drawers .k-accordion__panel > :last-child { margin-bottom: 0; }

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

/* ==========================================================================
   SECTION RHYTHM AND RECOMMENDATIONS
   ========================================================================== */

.k-pdp__section { margin-top: var(--k-space-9); padding-inline: var(--k-gutter-mobile); }
.k-pdp__sectionhead { margin-bottom: var(--k-space-4); }
.k-pdp__sectionhead h2 { margin: 0; }
.k-pdp__kicker { color: var(--k-graphite); display: block; }

/*
 * `.k-pdp__recs` STOOD HERE AND IS GONE — Run 24, ruling J-27, RC-97.
 *
 * It was the two-column recommendation grid, and the rule above it argued at
 * length that 14.5's "Two product cards per row on both mobile and desktop"
 * reached this surface even though §14 does not name it. The owner's
 * instruction of 8 September 2026 replaces the surface itself with a
 * horizontal rail carrying "a deliberate peek of the next" product, which no
 * two-column grid can be, and J-27 makes a direct instruction the ruling. The
 * argument is not withdrawn, but J-40 has narrowed where it reaches. The base
 * `.k-pcard-grid` and `.k-col__grid` still carry `repeat(2, minmax(0, 1fr))` —
 * the Vault listing, the wishlist and the search results are all two-up at
 * every width, and CollectionTest asserts it. The COLLECTION's own grid is
 * one-up below 768 and two-up from 768, scoped to `.k-col` in collection.css,
 * by the owner ruling of 30 September 2026.
 *
 * The rail's own geometry is assets/css/rail.css, enqueued on a singular
 * product only. It sets no `grid-template-columns` at all; it is a flex
 * scroller whose card width is derived from the visible count, the peek, the
 * gap and the gutter.
 */

@media (min-width: 768px) {
  .k-pdp__section { padding-inline: var(--k-gutter-desktop); }
}

@media (min-width: 992px) {
  .k-pdp__section { padding-inline: var(--k-pdp-gutter); }
}

/*
 * Breathing room before the footer — and, below 768, J-13.3's whole clearance.
 *
 * This is the last element before korotana_render_footer(), and it is the only
 * one on the page that is ABOVE the footer, so it is the only place the
 * reservation does any work. --k-page-pad-bottom is already the dock's height
 * plus its bottom offset plus the safe area (tokens.css); --k-pdp-bar-h and
 * --k-pdp-bar-gap add the bar and the air beneath it. The sum is exactly the
 * bar's own top edge, composed from the same two custom properties the bar's
 * `bottom` offset reads, so the reservation and the surface cannot disagree.
 *
 * It subsumes the 96px of breathing room rather than adding to it: the
 * clearance is larger, and stacking the two would put a second dead screen
 * between the recommendations and the footer.
 */
.k-pdp__footergap {
  height: calc(var(--k-page-pad-bottom) + var(--k-pdp-bar-h) + var(--k-pdp-bar-gap));
}

/* From 768 the dock is hidden (40.10) and so is the pinned bar, so nothing
   needs clearing and the gap is breathing room again. */
@media (min-width: 768px) {
  .k-pdp__footergap { height: var(--k-space-9); }
}

/* ==========================================================================
   J-13.3 — THE PINNED MOBILE PURCHASE BAR
   --------------------------------------------------------------------------
   J-13.3: the bar is "included, and must not overlap or conflict with the
   floating dock". The non-collision is the CONDITION the ruling attaches, so
   it is the acceptance test for this block. Four things enforce it:

     1. THE OFFSET IS THE DOCK'S OWN GEOMETRY. Section 10 LOCKS the dock at
        `bottom: --k-dock-bottom + safe area` with height --k-dock-h, so the
        top of the dock is exactly --k-dock-h + --k-dock-bottom + safe area
        above the viewport floor. The bar sits a further --k-pdp-bar-gap above
        that. The build this replaces used `--k-dock-h + safe area` and omitted
        --k-dock-bottom, so its lower 12px sat behind the dock at every width
        below 768 — a real overlap, measured, and exactly what J-13.3 forbids.
     2. THE LAYER IS EXPLICIT. --k-z-purchase (110) against --k-z-dock (100).
        The bar had no z-index at all before this, so the two surfaces were
        ordered by whichever painted last.
     3. THE BAR IS GONE FROM 768. 40.10: "The mobile dock is not shown at 768",
        and F-03 measured no bottom bar on the reference at 768 either — the
        buying block is in flow there. The two disappear together.
     4. THE PAGE RESERVES BOTH. .k-pdp's bottom padding is the dock stack plus
        the bar plus the gap, so the last content clears the pair.

   17.2's mobile flow makes the panel itself the primary purchase surface, so
   the bar mounts only after the panel leaves the viewport (assets/js/
   components.js measures it). Before that it is transparent to the pointer and
   carries no focusable target the customer has not scrolled to.
   ========================================================================== */

.k-pdp__purchase {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--k-dock-h) + var(--k-dock-bottom) + var(--k-pdp-bar-gap) + env(safe-area-inset-bottom));
  z-index: var(--k-z-purchase);
  min-height: var(--k-pdp-bar-h);
  box-sizing: border-box;
  padding: var(--k-space-3) var(--k-gutter-mobile);
  display: flex;
  align-items: center;
  gap: var(--k-space-4);
  /* Glass, like the dock beneath it (J-37, RC-136): painted in tokens.css.
     The top hairline is the glass hairline. */
  border-top: var(--k-glass-hairline);
  transform: translateY(calc(100% + var(--k-dock-h) + var(--k-dock-bottom) + var(--k-pdp-bar-gap)));
  opacity: 0;
  pointer-events: none;
  /*
   * A hidden fixed bar is still in the tab order, and 60.8 puts the dock last
   * in focus order before the footer — a control the customer cannot see must
   * not sit between them.
   */
  visibility: hidden;
}
.k-pdp__purchase.is-mounted {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/*
 * 9.3 — THE FOOTER BOUNDARY, the same one every other floating layer has.
 *
 * "Floating elements specified to disappear at the footer must stop before
 * colliding with footer content." chrome.js's boundaries() IIFE observes
 * [data-korotana-footer] and writes data-footer="in"/"out" onto the dock and
 * onto every [data-korotana-hidesatfooter] element; the dock hides at
 * chrome.css:478 and the J-13.11 wordmark at :394. The bar opted into neither,
 * and components.js mounts it on `panel.getBoundingClientRect().bottom <= 0`,
 * which is permanently true at the foot of the page — so it was GUARANTEED to
 * be mounted at the exact moment the dock beneath it disappeared, hovering
 * over footer links that each carry a 44px target. render-purchase-bar.php now
 * carries the attribute, so this is the observer, the attribute and the
 * boundary that already existed rather than a second mechanism.
 *
 * `display: none` rather than `visibility: hidden`, matching the dock: the bar
 * holds the primary CTA, and a visibility-hidden fixed element is still laid
 * out over the footer for hit-testing in some engines.
 */
.k-pdp__purchase[data-footer="in"] { display: none; }

.k-pdp__purchaseinfo { display: flex; flex-direction: column; min-width: 0; }
.k-pdp__purchasemeta { color: var(--k-graphite); }
.k-pdp__purchase .k-pdp__cta { width: auto; margin-left: auto; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .k-pdp__purchase {
    transition: transform var(--k-motion-standard) var(--k-ease-calm),
                opacity var(--k-motion-standard) var(--k-ease-calm),
                visibility 0s linear var(--k-motion-standard);
  }
  .k-pdp__purchase.is-mounted { transition-delay: 0s; }
}

/* 40.10 / F-03: no dock and no bottom bar from 768. */
@media (min-width: 768px) {
  .k-pdp__purchase { display: none; }
}

/* ==========================================================================
   COLOUR DRAWER MEDIA
   --------------------------------------------------------------------------
   The colourway thumbnails take the governed frame ratio rather than a second
   one: 02 puts a reusable system before one-off styling, and a 4:5 thumbnail
   next to the gallery frame is a second ratio system for one control. Since
   J-49 the frame is 3:4, so these follow it there and keep matching it.

   These two belong in components.css beside .k-media--* and .k-skel--*; they
   are here because that sheet is outside this step's file set. Named in the
   step-8 report for relocation.
   ========================================================================== */

.k-media--frame { aspect-ratio: var(--k-ratio-frame); }
.k-skel--frame  { aspect-ratio: var(--k-ratio-frame); }

/* ==========================================================================
   THE PRE-V6 SPECIMEN CLASSES — quarantined, not deleted
   --------------------------------------------------------------------------
   patterns/product-specimen.php and preview/product.php still render the old
   eight-slot layout, and functions.php loads this sheet on the structural
   preview for exactly that reason. They are internal reference specimens, not
   the product page; rewriting them onto 18.1's sequence is a larger change
   than the regression warrants and neither is a customer surface (both are
   noindex, gated, and 404 to anyone who cannot edit).

   Scoped to classes the live page no longer emits, so nothing here can reach
   the rendered PDP. Named in the step-8 report for deletion with those two
   files.
   ========================================================================== */

.k-pdp__banner {
  background: var(--k-oxblood);
  color: var(--k-snow);
  padding: var(--k-space-4) var(--k-gutter-mobile);
}
.k-pdp__banner p { margin: 0 0 var(--k-space-2); }
.k-pdp__banner p:last-child { margin-bottom: 0; }

.k-pdp__twoup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--k-space-2);
}
.k-pdp__slotlabel {
  color: var(--k-graphite);
  padding: var(--k-space-2) var(--k-gutter-mobile) 0;
  display: block;
}
.k-pdp__footer {
  border-top: var(--k-hairline) solid var(--k-stone);
  padding: var(--k-space-6) var(--k-gutter-mobile);
  color: var(--k-graphite);
}
.k-pdp__purchase.is-reduced .k-pdp__purchase-extra { display: none; }

@media (min-width: 768px) {
  .k-pdp__slotlabel,
  .k-pdp__footer { padding-left: var(--k-gutter-desktop); padding-right: var(--k-gutter-desktop); }
}

/* --------------------------------------------------------------------------
   RUN 14 (J-18.1, RC-64) — THE §46 EDITION-STATE REVIEW BOARD

   Off-production only: inc/review-previews.php emits nothing anywhere the
   gate refuses, so these selectors match nothing a customer can see. The
   marking is the governed 6.4 warning pair via .k-draft (components.css) —
   no new colour, no new type token; every string inside is M12/R12 and the
   specimen panel reuses the real .k-pdp__edition rules above.
   -------------------------------------------------------------------------- */
.k-edition-review { margin-top: var(--k-space-6); display: grid; gap: var(--k-space-4); }
.k-edition-review__notice { background: var(--k-status-warning-surface); padding: var(--k-space-3); }
.k-edition-review__notice p { margin: 0 0 var(--k-space-2); }
.k-edition-review__notice p:last-child { margin-bottom: 0; }
.k-edition-review__state { display: grid; gap: var(--k-space-2); }
.k-edition-review__name { margin: 0; color: var(--k-graphite); text-transform: uppercase; }
.k-edition-review__cell { margin: 0; }
.k-edition-review__line { color: var(--k-graphite); }

/* --------------------------------------------------------------------------
   RUN 23 (J-26, RC-94) — THE ONE-STATE REVIEW NOTICE

   The board's own notice, in the one position that cannot be cropped away
   from what it governs: immediately above the purchase control. Same
   governed 6.4 warning pair through .k-draft, same M12/R12 roles, no new
   colour and no new type token. Off production only; on a customer request
   inc/review-previews.php returns '' and this selector matches nothing.
   -------------------------------------------------------------------------- */
.k-pdp__reviewnotice {
  background: var(--k-status-warning-surface);
  padding: var(--k-space-3);
  margin-bottom: var(--k-space-3);
}
.k-pdp__reviewnotice p { margin: 0 0 var(--k-space-2); }
.k-pdp__reviewnotice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   RUN 20 (J-23.1, RC-79/RC-80) — THE ALLOCATION PANEL

   The owner's LOCKED reference: Snow White ground, black type, one size,
   labels left, values right, no separating lines, no ornament. The wrapper
   keeps .k-pdp__edition for its slot identity; every declaration that class
   set above is overridden here (same specificity, later in the file), so the
   A02 sunken ground and the hairline row borders cannot reach this panel.
   Type is the theme.json R14 base — nothing here declares a font property,
   which is what "all text at approximately one size" compiles to.

   The meter is the build's first (RC-80): ink fill on a stone track between
   the reference's own 0% / 100% end labels. Height is --k-space-2 (DEFAULT,
   registered). No transition is declared anywhere in this block, so reduced
   motion has nothing to suppress.
   -------------------------------------------------------------------------- */
.k-allocation {
  background: var(--k-surface-raised); /* RC-80 ruled "Snow White" against the then-white page; since J-51 the PAGE is snow, so the raised role (now --k-white) is what keeps this panel a distinguishable very-light surface — which was RC-80's point */
  color: var(--k-ink);
  padding: var(--k-space-4);
  margin-top: var(--k-space-5);
}
.k-allocation__row {
  display: flex;
  justify-content: space-between;
  gap: var(--k-space-4);
  padding: var(--k-space-2) 0;
  border-bottom: 0; /* J-23.1: no separating lines */
}
/* [hidden] MUST WIN over the author display (the .k-pdp__selection lesson
   above): edition.js sheds rows the state no longer renders by setting
   row.hidden, and without this guard the author flex would keep a stale
   governed figure on screen. */
.k-allocation__row[hidden],
.k-allocation__meter[hidden] { display: none; }
.k-allocation__label { color: var(--k-ink); } /* "black type": no graphite label on this panel (RC-80) */
.k-allocation__value { text-align: right; }
.k-allocation__status { text-transform: uppercase; } /* J-23.4 strings stored sentence-case; case is presentation */
.k-allocation__meter {
  display: flex;
  align-items: center;
  gap: var(--k-space-3);
  padding: var(--k-space-2) 0;
}
.k-allocation__track {
  flex: 1;
  height: var(--k-space-2);
  background: var(--k-stone);
  border-radius: var(--k-radius-none);
}
.k-allocation__fill {
  height: 100%;
  background: var(--k-ink);
}

/* The outstanding overall delivery estimate (J-29.5, RC-114). Staging only —
   korotana_render_lead_time_line() emits it nowhere else — so this rule paints
   a marker a customer can never reach. It is deliberately quiet: the line it
   sits beside is the owner's copy and the marker is a note to the team. */
.k-pdp__leadtime-pending { color: var(--k-graphite); }

/* --------------------------------------------------------------------------
   J-52.1 — NO HORIZONTAL RULES INSIDE THE BUYING PANEL
   (owner ruling, Husnain, 1 November 2026; RC-214)

   "The horizontal rules inside the PDP buying panel are removed. All of them."

   THE COUNT WAS TAKEN ON THE SERVED PAGE, NOT TRUSTED. The owner counted
   seven; seven is exactly what the Ashford PDP paints at 1536x730 and at 390,
   with the colour drawer shut and open alike:

     1-2  .k-colourdrawer            top + bottom   1px --k-stone
            (components.css:615 — the rule under the price block and the one
            under the colour row are this one box's two edges)
     3    .k-pdp__drawers .k-accordion      top     1px --k-divider
     4-7  .k-pdp__drawers .k-accordion__item bottom 1px --k-divider  (x4)

   A BORDERED CONTROL IS NOT A RULE. #pdp-cta and the five .k-size labels carry
   borders on all four sides: they are the shapes of controls, they are not
   lines between sections, and they stay. The probe that produced the count
   flags a four-sided box separately for exactly this reason, so the
   distinction is in the measurement rather than in somebody's judgement.

   TWO MORE BORDERS ARE INSIDE [data-buyingpanel] IN THE DOM AND STAY, both
   belonging to the size surface:
     - .k-sheet__head's bottom border. The size surface is not in the panel's
       flow: open, it is `position: fixed` below 768 and `position: absolute`
       with its own outer border from 768, anchored OVER the buying block (see
       the state-3 block above). That border is an overlay's own chrome, the
       same category as the cart drawer's rules, which this ruling keeps.
     - .k-sizeregion's 2px bottom border, which is the `aria-pressed="true"`
       indicator. Removing it would leave the selected region marked by colour
       alone, and the launch gate (CLAUDE.md §7, WCAG 2.2) says colour alone
       cannot carry status. A state indicator is not a section rule.
   Neither is reachable in a browser on this build in any case: every article's
   CTA is disabled while no batch is open, so the surface cannot be opened.

   .k-pdp__editionrow IS IN SCOPE AND CANNOT BE PHOTOGRAPHED. The edition panel
   renders inside the buying panel, so its row dividers are rules inside it and
   go with the rest. No served page paints them today — the one demonstration
   batch is closed and the panel draws no rows — so this one is held by the
   rule-text assertion in BuyingPanelRulesTest rather than by a capture. It is
   removed on the law, not on the picture.

   (The batch's id is deliberately not written above. The hex guard in
   TokenSystemTest scans comments as well as declarations and reads a
   four-digit id after a hash as a colour literal — it caught this run's own
   prose, as it caught Run 58's.)

   THE SCOPE IS [data-buyingpanel], AND THAT ATTRIBUTE IS THE WHOLE REASON THIS
   IS SAFE. Scoping to the obvious class would have reached two surfaces the
   ruling protects: the archive article reuses `.k-pdp__panel` ITSELF
   (render-archive.php:799, under .k-pdp--archive) and `.k-pdp__drawers`
   (:1013), and RC-211 holds the archive at the September architecture. Only a
   real buying panel carries `data-buyingpanel` — the product template, the
   specimen pattern and the preview shell, all three of which ARE buying
   panels. It is also the selector the CP0 count used, so the measurement and
   the fix cannot drift apart.

   SPECIFICITY IS DELIBERATE, NOT INCIDENTAL. `[data-buyingpanel] .k-accordion`
   would be (0,2,0) and TIE with `.k-pdp__drawers .k-accordion` above, leaving
   the outcome to source order; the descendant form below is (0,3,0) and wins
   outright.

   RULES GO, RHYTHM STAYS. Nothing here touches spacing, and nothing needs to:
   each row's height is its trigger's own `padding` plus the --k-touch-min
   floor (--k-space-4 on the colour drawer, --k-space-2 on the drawers), so
   removing a 1px edge removes 1px and no section collapses into its
   neighbour. The accordions keep their open/close behaviour untouched.
   ========================================================================== */
[data-buyingpanel] .k-colourdrawer { border-top: 0; border-bottom: 0; }
[data-buyingpanel] .k-pdp__drawers .k-accordion { border-top: 0; }
[data-buyingpanel] .k-pdp__drawers .k-accordion__item { border-bottom: 0; }
[data-buyingpanel] .k-pdp__editionrow { border-bottom: 0; }

/* ---------------------------------------------------------------------------
   J-65 — the two Size & Fit tables, the Care drawer's note, and the size
   label span the region views swap.

   THE SCROLLER IS THE ACCESSIBILITY ANSWER, NOT A COMPROMISE. A garment
   measurement table is six columns wide and cannot reflow to 390 without
   becoming unreadable; SC 1.4.10 exempts data tables from the single-scroll
   rule for exactly this reason. The container therefore scrolls on one axis
   and is focusable, so a keyboard can reach the far columns without a
   pointer (SC 2.1.1), and it carries a role and a name so the focus stop is
   announced as something rather than as an anonymous box.
   --------------------------------------------------------------------------- */

.k-table-scroll {
  overflow-x: auto;
  margin: var(--k-space-4) 0 0;
  /* The sideways reach is a scroll, so say so to a touch device and keep the
     page's own vertical scroll out of it. */
  overscroll-behavior-x: contain;
}

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

.k-spec-table {
  border-collapse: collapse;
  width: 100%;
  /* Below this the columns crush rather than scroll, which is the thing the
     scroller exists to prevent. */
  min-width: 34rem;
  text-align: left;
}

.k-spec-table__caption {
  text-align: left;
  color: var(--k-graphite);
  padding-bottom: var(--k-space-2);
}

.k-spec-table th,
.k-spec-table td {
  padding: var(--k-space-2) var(--k-space-3) var(--k-space-2) 0;
  border-bottom: var(--k-border-hairline);
  vertical-align: top;
  /* A measurement must never break across two lines: "57.5" wrapping to
     "57." and "5" is a different number. */
  white-space: nowrap;
}

.k-spec-table thead th {
  color: var(--k-graphite);
}

.k-spec-table tbody th {
  /* The row header is the only cell allowed to wrap, because it is prose
     ("Chest — pit to pit") rather than a figure. */
  white-space: normal;
  padding-right: var(--k-space-4);
}

.k-spec-table tbody tr:last-child th,
.k-spec-table tbody tr:last-child td {
  border-bottom: 0;
}

/* The shared Editor's Note sits apart from the governed sentence above it
   without a rule between them — 20.1's drawers carry no ornament. */
.k-editor-note {
  margin-top: var(--k-space-4);
  color: var(--k-graphite);
}

/* The region views rewrite this span and nothing else, so the status span
   beside it is never touched. It is inline so the label box is unchanged:
   v4.0 §05 forbids a state from moving type metrics. */
.k-size__value {
  display: inline;
}

/* ==========================================================================
   J-100 CHANGE 3 — THE ALLOCATION PANEL GOES LAST ON MOBILE
   --------------------------------------------------------------------------
   "Desktop: no change. It stays in the right-hand column, in its current
   position. It is correct where it is. Mobile: it moves to the bottom of the
   page. It sits below the whole accordion list, after Care."

   THE DOM DOES NOT MOVE. korotana_render_edition_panel() still prints before
   the drawers, which is what keeps desktop byte-identical and what keeps the
   keyboard order the DOM order at every width (60.8, SC 2.4.3): the panel is
   a statement of fact about the edition, read before the customer reaches the
   supporting drawers. Only the mobile PAINT order changes.

   WHY FLEX AND NOT `display: contents` OR A SECOND RENDER. `display: contents`
   moves a child's containing block to the grandparent, which has broken sticky
   positioning on this build before. A second render would put the same figures
   on the page twice — the duplicate truth 20.5 forbids — with duplicate ids.
   A flex column with one `order` is the whole change.

   MARGINS WERE CHECKED, NOT ASSUMED. Flex stops margin collapsing, so this
   could have changed the gap between the panel and the drawers. It does not:
   .k-pdp__edition declares `margin-top` only and no `margin-bottom`, so the
   block-layout collapse between its 0 bottom margin and .k-pdp__drawers'
   `margin-top: var(--k-space-7)` already resolved to space-7, and the flex sum
   of 0 + space-7 is the same number. Moved to last, the panel's own
   `margin-top: var(--k-space-5)` becomes its gap below Care.

   THE :992 RESET IS SCOPED ON PURPOSE, and this file records why from the
   last time it bit: "A media query adds no specificity and both selectors
   were 0-1-0, so the later base declaration won at every width." `.k-pdp
   .k-pdp__panel` is 0-2-0, so the reset wins wherever it sits in the sheet
   and a later base rule cannot silently take the desktop layout back.
   ========================================================================== */

/* RC-407 — THE SCOPE IS [data-buyingpanel], FOR THE REASON THIS FILE ALREADY
   GAVE 140 LINES ABOVE AND THIS RULE THEN IGNORED.

   Change 3 shipped as a bare `.k-pdp__panel`, and `.k-pdp__panel` is NOT a
   product-page class: the archive article reuses the element itself
   (render-archive.php:799, under .k-pdp--archive) and product.css is enqueued
   on both archive routes. So below 992 an unscoped flex switch changed the
   LAYOUT MODE of a surface RC-211 holds at the September architecture — a rule
   crossing into a frozen surface, which is exactly the fault the
   [data-buyingpanel] note above was written to prevent.

   Only a real buying panel carries the attribute: the product template
   (render-product.php:1443), the specimen pattern and the preview shell. The
   archive's panel does not, so it is untouched again.

   SPECIFICITY IS UNCHANGED WHERE IT MATTERS. `[data-buyingpanel]` is 0-1-0, the
   same weight the bare class had, so the 0-2-0 `.k-pdp .k-pdp__panel` reset at
   :992 still wins wherever it sits in the sheet and the desktop geometry cannot
   be taken back by a later base rule. */
[data-buyingpanel] {
  display: flex;
  flex-direction: column;
}

/* The one moved item. Everything else keeps the implicit `order: 0`, so the
   stack is DOM order with this one element taken to the end. */
[data-buyingpanel] > .k-pdp__edition { order: 1; }

/* The :992 reset is NOT a third `.k-pdp .k-pdp__panel` rule of its own.
   GovernedRatiosTest holds product.css to exactly two of them — the 768 gutter
   switch and the 992 geometry block — because "a third at the same specificity
   can override the guarded geometry from outside the guarded block". That is the
   right guard and it caught this: `display: block` now lives inside the 992
   block it belongs to, around line 374, rather than in a rule down here. */

/* ==========================================================================
   J-100 CHANGE 4 — DETAILS & MATERIALS: THE LEAD AND THE SPEC ROWS
   --------------------------------------------------------------------------
   "a short lead of one or two lines, then the facts as rows. One fact per row,
   label on the left, value on the right, read in a second."

   A description list, so the pairing is in the markup rather than in a visual
   arrangement a screen reader cannot see. Each pair is wrapped in its own
   element and laid out with grid; `display: contents` on the row would have
   been shorter and is avoided for the reason change 3 avoids it.

   The label column is sized from the longest label in the governed set
   ("Collar and yoke") rather than a magic number, so a future row cannot
   silently wrap to two lines.
   ========================================================================== */

.k-specrows__lead { margin: 0 0 var(--k-space-4); }

.k-specrows {
  margin: 0;
  display: grid;
  gap: 0;
}

.k-specrows__row {
  display: grid;
  grid-template-columns: minmax(0, 11ch) minmax(0, 1fr);
  gap: var(--k-space-4);
  padding: var(--k-space-2) 0;
  border-bottom: var(--k-hairline) solid var(--k-divider);
}

.k-specrows__row:last-child { border-bottom: 0; }

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

.k-specrows__value {
  margin: 0;
  min-width: 0;
}

@media (min-width: 768px) {
  .k-specrows__row { grid-template-columns: minmax(0, 14ch) minmax(0, 1fr); }
}

/* ==========================================================================
   J-100 CHANGES 1 AND 2 — THE TWO POP-UPS, THE SIZE MIRRORS, THE DRAWINGS
   --------------------------------------------------------------------------
   NOTHING HERE PAINTS A SURFACE. The glass is declared once in tokens.css for
   a list of overlays, and GlassTest refuses a background, a blur filter or a
   scrim declared on any overlay in any other stylesheet. Both pop-ups are
   `.k-panel`, which is already on that list, so they arrive with the house
   glass, the house scrim, the hairline and no shadow, and this block sets
   GEOMETRY ONLY. The legibility floor the owner asked for — "If transparency
   and legibility conflict, legibility wins — raise the panel opacity and keep
   the blur" — is --k-glass-tint's 85% and glass.spec.js's CP4.1 bound over
   black, neither of which is this file's to restate.
   ========================================================================== */

/* --------------------------------------------------------------------------
   THE SIZE MIRRORS (decision 5)

   A mirror is a view of a control, so it is useless without the script that
   writes through it. `hidden` in the markup, revealed on the `k-js` flag that
   korotana_pdp_script_flag() prints in the head BEFORE first paint — so an
   unscripted document never shows a dead radiogroup and a scripted one never
   flashes one in and out (60.3 LOCKED, CLS <= 0.1). The [hidden] attribute is
   kept rather than replaced so a client with no CSS at all still hides it.
   -------------------------------------------------------------------------- */

.k-js [data-korotana-sizepick][hidden],
.k-js [data-korotana-sizepick-popup][hidden],
.k-js [data-korotana-units][hidden] { display: block; }

.k-sizepick__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--k-space-4);
}
.k-sizepick__title { margin: 0; }
.k-sizepick__guide {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.k-sizepick__set { display: flex; flex-wrap: wrap; gap: var(--k-space-2); }

/* The same box as the canonical radios' label (.k-sizeoption__input + .k-size),
   because they are two views of one control and a customer should not be able
   to tell which one they are looking at. The selected and unavailable states
   change colour, border, background and opacity — never size and never
   position, so choosing a size never moves the row under the finger reaching
   for it (19.5; v4.0 §05 STATE GEOMETRY, §11). */
.k-sizepick__opt {
  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(--k-hairline) solid var(--k-stone);
  background: var(--k-surface-raised);
  color: var(--k-ink);
  cursor: pointer;
  transition: border-color var(--k-motion-instant) var(--k-ease-calm),
              background-color var(--k-motion-instant) var(--k-ease-calm);
}
.k-sizepick__opt:hover { border-color: var(--k-graphite); }
.k-sizepick__opt[aria-checked="true"] { border-color: var(--k-ink); background: var(--k-surface-sunken); }
.k-sizepick__opt:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

/* 19.5: unavailable keeps its place and its box and says so in text. It is
   aria-disabled rather than disabled so the control stays in the tab order and
   a keyboard user hears WHY, instead of sweeping past a silent gap. */
.k-sizepick__opt[aria-disabled="true"] {
  color: var(--k-graphite);
  border-color: var(--k-mist);
  background: var(--k-surface-sunken);
  opacity: .55;
  cursor: not-allowed;
}

.k-sizepick__chosen { margin: var(--k-space-3) 0 0; color: var(--k-graphite); }
.k-sizepick__chosen:empty { display: none; }

/* --------------------------------------------------------------------------
   THE ACCORDION ROW THAT OPENS A PANEL (change 1)

   "The row keeps a visible affordance that it opens something — the + can
   stay, but it should not read as an accordion that expands in place."

   So the sign is pinned to "+". The base rule flips it to a minus on
   [aria-expanded="true"], and chrome.js sets aria-expanded on whatever opened
   a panel for as long as it is open — which on a disclosure means "this region
   is showing below" and here would mean nothing at all. Pinned, the row reads
   the same open or shut, and the dialog announces its own state.
   -------------------------------------------------------------------------- */

.k-pdp__drawers .k-accordion__item--opens .k-accordion__trigger[aria-expanded="true"] .k-accordion__sign::before {
  content: "+";
}

/* --------------------------------------------------------------------------
   CHANGE 1 — THE SIZE & FIT POP-UP

   "The pop-up is wide. It is not constrained to the width of the right-hand
   column, which is the reason the content does not fit today. Use the
   available viewport width so the full size chart can be read without
   fighting it." And on mobile: "The pop-up takes the full screen on mobile
   rather than floating as a small panel."
   -------------------------------------------------------------------------- */

.k-panel--sizefit {
  /* Mobile: the full screen, as instructed. */
  inset: 0;
}

@media (min-width: 768px) {
  /*
   * Wide, and centred by symmetric insets rather than by a transform: a
   * transform on a fixed element creates a containing block and this build has
   * been bitten by that before (checkout.css §3). The inline inset is whichever
   * is larger of a 2vw margin and the space left over past 1180px, so the panel
   * uses the viewport on a laptop and stops growing on a 1920 display.
   */
  .k-panel--sizefit {
    inset-block: 4vh;
    inset-inline: max(2vw, calc((100vw - 1180px) / 2));
  }
}

/*
 * THE BODY DOES NOT SCROLL ON DESKTOP — ITS TWO HALVES DO.
 * "Each scrolls on its own axis, independently, inside the same panel."
 * min-height: 0 on the grid child is the part that is easy to miss: a grid item
 * defaults to min-height: auto and will not shrink below its content, so the
 * overflow never engages and the whole panel grows instead.
 */
.k-sizefit__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.k-sizefit__fit { margin: 0 0 var(--k-space-5); }
.k-sizefit__fit > :first-child { margin-top: 0; }
.k-sizefit__fit > :last-child { margin-bottom: 0; }

/*
 * MOBILE ORDER, DECISION 4: "fit paragraph, then the tables, then the
 * drawings." The DOM is drawings-then-chart because that is desktop's reading
 * order; mobile reverses it with `order`, so there is one render and no
 * duplicate ids. "The drawings scroll vertically as part of the pop-up's own
 * scroll, not in a nested scroll area of their own. Nested vertical scroll
 * inside a vertically scrolling sheet is the thing that makes mobile pop-ups
 * feel broken." So no column scrolls below 768.
 */
.k-sizefit__cols {
  display: grid;
  gap: var(--k-space-6);
  min-height: 0;
}
.k-sizefit__col { min-width: 0; }
.k-sizefit__col--draw { order: 2; }
.k-sizefit__col--chart { order: 1; }

/*
 * THE TWO HALVES HAVE A FLOOR, AND THE PANEL SCROLLS BEFORE THEY LOSE IT.
 *
 * RC-406. The rule below used to give the columns `flex: 1` against a body that
 * could not scroll, which means the fit paragraph above them was free to take
 * the whole panel and leave them nothing. Measured on a fixture whose fit block
 * ran to 567px: at 1440 the pair came out 104px tall against 639px of chart,
 * and at 1280 they came out ZERO — the body then clipped 61px of content with
 * no scroll anywhere to reach it, and the unit toggle's own centre fell outside
 * its container's clip edge, so document.elementFromPoint at a customer's click
 * point returned the panel body and the control could not be pressed at all.
 * On the real article the fit block is 70px and the columns get 601px, so this
 * never showed on the catalogue — it was one owner paragraph away.
 *
 * So: a floor the pair may not go below, and `auto` on the body so that when
 * the floor cannot be met the panel scrolls rather than swallowing its own
 * content. "Each scrolls on its own axis, independently, inside the same panel"
 * still describes every case with room for it, which is the normal one; the
 * body's scroll is the fallback, and losing content and an unclickable 44px
 * target is not an acceptable alternative to it (25.6, WCAG 2.2 AA).
 *
 * The floor is two of the largest step on the spacing scale, not a new number.
 */
@media (min-width: 768px) {
  .k-sizefit__body { overflow-y: auto; }

  .k-sizefit__cols {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    flex: 1 1 auto;
    min-height: calc(var(--k-space-11) * 2);
    overflow: hidden;
  }

  /* Side by side, and each with its own axis. */
  .k-sizefit__col--draw { order: 1; }
  .k-sizefit__col--chart { order: 2; }
  .k-sizefit__col {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* The units toggle, in the region-view language already on this page. */
.k-sizefit__units {
  display: flex;
  gap: var(--k-space-2);
  margin: 0 0 var(--k-space-4);
}
.k-sizefit__unit {
  min-height: var(--k-touch-min);
  padding: 0 var(--k-space-3);
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: var(--k-focus-ring) solid transparent;
  color: var(--k-graphite);
  cursor: pointer;
}
.k-sizefit__unit[aria-checked="true"] { color: var(--k-ink); border-bottom-color: var(--k-ink); }
.k-sizefit__unit:focus-visible {
  outline: var(--k-focus-ring) solid var(--k-ink);
  outline-offset: var(--k-focus-offset);
}

.k-sizefit__pick { margin: 0 0 var(--k-space-5); }

/* --------------------------------------------------------------------------
   THE PINNED MEASUREMENT COLUMN

   "Keep the first column (the measurement name) pinned while the size columns
   scroll." SC 1.4.10 permits a data table to scroll in the second direction,
   and korotana_table_scroller() already gives the container a role, a name and
   a tab stop so a keyboard can reach it (SC 2.1.1).

   The pinned cell needs an opaque fill or the scrolling figures read through
   it, which is the legibility floor the owner put above transparency in terms.
   It is an ordinary surface token on a table cell — not a second glass, and
   not an overlay surface.
   -------------------------------------------------------------------------- */

.k-panel--sizefit .k-spec-table { border-collapse: separate; border-spacing: 0; }

.k-panel--sizefit .k-spec-table th[scope="row"],
.k-panel--sizefit .k-spec-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--k-surface-page);
  text-align: left;
  padding-right: var(--k-space-4);
}

/* --------------------------------------------------------------------------
   THE DRAWINGS

   The frame carries .k-frame--frame, so its ratio is --k-ratio-frame — J-49's
   3:4 for "the PDP gallery, detail and FLAT outer frame", which a technical
   flat is. GovernedRatiosTest holds that rule, and no ratio is written here.

   Until the artwork arrives the frame is EMPTY: no invented outline and no
   invented leader lines (J-100.3, §1.7). What the owner reviews now is the real
   layout at the real ratio with the real figures beside it.
   -------------------------------------------------------------------------- */

.k-sizedraw { display: grid; gap: var(--k-space-5); }
.k-sizedraw__item { margin: 0; }
.k-sizedraw__frame {
  position: relative;
  overflow: hidden;
  background: var(--k-surface-sunken);
}
.k-sizedraw__art { width: 100%; height: 100%; object-fit: contain; display: block; }

/* The leader lines sit over the artwork in the frame's own coordinate space. */
.k-sizedraw__callouts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.k-sizedraw__leader {
  stroke: var(--k-ink);
  stroke-width: .35;
  /* The layer is stretched to the frame, so an unscaled stroke keeps every
     leader the same weight whatever the frame's size. */
  vector-effect: non-scaling-stroke;
}

/* The figure is HTML over the frame, not SVG text: its type is a captured
   role (kr-r12 in the markup) rather than a literal in this sheet, and it is
   not distorted by the leader layer's preserveAspectRatio="none". The record
   supplies only the two coordinates, as percentages. */
.k-sizedraw__figure {
  position: absolute;
  left: var(--k-draw-x, 50%);
  top: var(--k-draw-y, 50%);
  transform: translate(-50%, -50%);
  padding: 0 var(--k-space-1);
  color: var(--k-ink);
  background: var(--k-surface-page);
  pointer-events: none;
  white-space: nowrap;
}
/* Nothing to say yet: no size chosen, or no figure for this row. */
.k-sizedraw__figure:has( [data-korotana-figure]:empty ) { display: none; }
.k-sizedraw__caption { margin: var(--k-space-2) 0 0; color: var(--k-graphite); }

/* --------------------------------------------------------------------------
   CHANGE 2 — THE LIMITED PRODUCTION POP-UP

   "On desktop it is a small panel rather than a full-screen overlay; on mobile
   it should not cover the product image or the pre-order button."

   On mobile that is an arithmetic problem, not a judgement: the pre-order
   control at those widths is the J-13.3 pinned bar, which sits at
   dock + dock-bottom + bar-gap above the floor and is bar-h tall. The panel
   clears all of it, using the page's OWN reservation expression rather than a
   new set of numbers — the same calc .k-pdp__footergap and the root's
   scroll-padding-bottom already carry, so a change to the dock moves all three
   together. It is bottom-anchored, so the product image and the title block at
   the top of the page stay uncovered.
   -------------------------------------------------------------------------- */

.k-panel--limited {
  inset: auto var(--k-gutter-mobile)
         calc(
           var(--k-dock-h) + var(--k-dock-bottom) + var(--k-pdp-bar-gap)
           + var(--k-pdp-bar-h) + var(--k-pdp-bar-gap) + env(safe-area-inset-bottom)
         )
         var(--k-gutter-mobile);
  max-height: 60dvh;
  border-radius: var(--k-glass-radius);
}

@media (min-width: 768px) {
  /* A small panel, bottom-right, clear of the dock. No pinned bar at these
     widths, so the reservation is the dock's alone. */
  .k-panel--limited {
    inset: auto var(--k-gutter-desktop)
           calc(var(--k-dock-h) + var(--k-dock-bottom) + var(--k-space-5) + env(safe-area-inset-bottom))
           auto;
    width: min(92vw, 380px);
    max-height: 70dvh;
  }
}

.k-limited__body { overflow-y: auto; overscroll-behavior: contain; }
.k-limited__body > :first-child { margin-top: 0; }
.k-limited__body > :last-child { margin-bottom: 0; }
