/*
 * KOROTANA typography — implementation of the TYPOGRAPHY FINAL CLOSED SPEC v4.0
 * (3 September 2026), which is the sole typography authority for this build.
 *
 * v4.0 §01: "If anything elsewhere conflicts with this document, this document
 * wins for KOROTANA typography unless the owner explicitly issues a later
 * written change. Previous font manuals are superseded."
 *
 * The KOROTANA FONTS manual that produced the previous T0–T8 layer is archived
 * (docs/archive/pre-v6/korotana-fonts-manual.pdf). The V6 §1.2 typography
 * delegation now resolves here. See docs/governing/resolved-conflicts.md RC-03.
 *
 * OWNER DESIGN RULING, HUSNAIN, 5 SEPTEMBER 2026 — THE FAMILY IS SPACE MONO.
 * The owner exercised design authority directly, with Abdullah's agreement, and
 * set Space Mono as the single family for the whole site: every role, every
 * component, every surface. There is no serif/sans split any more. The six §02
 * role aliases survive as aliases — they still name six separately swappable
 * roles — but all six now resolve to one family, and hierarchy is carried by
 * size, case and tracking rather than by family or weight. The ruling is scoped
 * to design and overrides v4.0 §02 and V6 §7 where they conflict.
 * Recorded as resolved-conflicts.md RC-22 (family) and RC-23 (the weight).
 *
 * STATUS: TYPOGRAPHY ASSETS ARE REAL AND FINAL FOR THIS RUN.
 * The engineering stand-ins that carried the layer until now —
 * korotana-sans-v1.woff2 and korotana-serif-v1.woff2 — are retired to
 * assets/fonts/retired/ and referenced from nowhere. J-13.2's "temporary
 * repository fallbacks are not a final sign-off baseline" no longer applies to
 * anything that is loaded, because nothing temporary is loaded.
 *
 * ---------------------------------------------------------------------------
 * ASSET CONDITION — measured 5 September 2026 with fontTools, not assumed
 * ---------------------------------------------------------------------------
 * Space Mono v1.003, SIL Open Font License 1.1, NO Reserved Font Name declared.
 * OFL.txt ships beside the binaries and is deployed with them: OFL §2 requires
 * the licence to travel with the font.
 *
 * Four static faces. NO VARIABLE AXIS. Weights 400 and 700 only — there is
 * nothing between them, which is the one real gap this family has against the
 * v4.0 scale and is handled at --kr-medium-weight in tokens.css, not here.
 *
 *   SpaceMono-Regular.woff2     400 normal  760 glyphs, 624 cmap
 *     sha256 8a5ae143219460729b4326f6a9e58ab7076354622478a463f872c94b15f9cb80
 *   SpaceMono-Bold.woff2        700 normal  760 glyphs, 624 cmap
 *     sha256 0f7b8a91153f621a5e433c693694f26e07109bbc67c41e33f3b397acf352f2b5
 *   SpaceMono-Italic.woff2      400 italic  724 glyphs, 624 cmap, -12 degrees
 *     sha256 dc250c461bde78626d88fb9f569f7b7a2695347a785e8b9d5cee67a89af812db
 *   SpaceMono-BoldItalic.woff2  700 italic  724 glyphs, 624 cmap, -12 degrees
 *     sha256 cbdbf3bc6101155a4edcde1d3747d9ffd2555ee1ceb50e70d1e15b9daa858e59
 *
 * All four are MONOSPACED — isFixedPitch = 1, every advance 612/1000 em. Every
 * character in the §12 specimen set is present in all four, including the
 * × % @ # ™ £ € $ and the curly quotes the retired faces were missing. The two
 * §12 gaps this file used to record are closed.
 *
 * FONT-ASSET-MISSING IS CLOSED. --kr-tertiary-bold (700) has a real face for
 * the first time; RC-07's deliberate non-declaration is withdrawn and the 700
 * @font-face below is that role's binary. korotana_font_missing_roles() still
 * runs and TypographyTest still guards it — the report is gone because the
 * condition is gone, not because the check was removed.
 *
 * MONOSPACE CHANGES LINE LENGTH EVERYWHERE. Every glyph is 0.612em, so a string
 * that fitted in a proportional face may not fit now. v4.0 §08's rule governs
 * the fix: "Fix container width before modifying typography." Containers move;
 * the scale does not.
 */

/* ===========================================================================
   v4.0 §02 — FONT ROLE BINDING (as overridden 5 September 2026)
   Six roles, one family. "The captured system uses role variables rather than
   one universal face. Preserve that separation" — the separation is preserved
   as six aliases in tokens.css, each still swappable in one line; what the
   owner removed is the requirement that they resolve to different files.
   =========================================================================== */

/* ---------------------------------------------------------------------------
 * FOUR FACES, ONE FAMILY. Space Mono ships as four static binaries — there is
 * no variable axis and no weight between 400 and 700 — so all four are declared
 * under one family name and the browser picks by weight and style. The family
 * string is the font's real name, not a KOROTANA alias: v4.0 §02's BINDING RULE
 * permits either, and the honest name is what makes the OFL.txt shipped beside
 * these files legible as the licence for what is actually loaded.
 *
 * SWAP POINT. Each @font-face below is one `src` line. Replacing a face is that
 * line plus its row in assets/fonts/MANIFEST.json. Nothing else in the theme
 * names a font file.
 * --------------------------------------------------------------------------- */

/* Regular 400 — the default face for every role. */
@font-face {
  font-family: "Space Mono";
  src: url(../fonts/SpaceMono-Regular.woff2) format("woff2"); /* SWAP POINT */
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Bold 700 — the tertiary-bold role, and the only heavier weight that exists. */
@font-face {
  font-family: "Space Mono";
  src: url(../fonts/SpaceMono-Bold.woff2) format("woff2"); /* SWAP POINT */
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Italic 400 and 700. Real faces, at -12 degrees, wired so that nothing has to
   be synthesized if a component ever needs them. NO COMPONENT RULE APPLIES THEM:
   they are available, not in use, and no rule in any customer-facing sheet sets
   font-style other than the explicit `normal` on the §03 utilities below. The
   internal QA route at /typography-qa/ renders them deliberately, in block 10,
   which is how the owner sees a face that is loaded and unused. */
@font-face {
  font-family: "Space Mono";
  src: url(../fonts/SpaceMono-Italic.woff2) format("woff2"); /* SWAP POINT */
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url(../fonts/SpaceMono-BoldItalic.woff2) format("woff2"); /* SWAP POINT */
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

/*
 * font-synthesis stays off. Every weight and style this theme asks for is now a
 * real binary — 400, 700, and both italics — so the property no longer hides a
 * gap; it guarantees that a future rule asking for something that does not
 * exist (600, say, or oblique) FAILS VISIBLY rather than being faked.
 * V6 §7.4; v4.0 §10: "Do not synthesize a missing face for final QA."
 */
html { font-synthesis: none; }

/*
 * Form controls do not inherit font-family from their ancestors — a browser
 * default. Without this, every input, select, textarea and button renders in
 * the UA font, which is exactly where a wrong face survives unnoticed and
 * where v4.0 §05's button metrics would silently not apply.
 */
input, select, textarea, button, optgroup {
  font: inherit;
  letter-spacing: inherit;
}

/*
 * NUMERALS — v4.0 §08: "Use the same active role as surrounding price/count
 * component; do not substitute tabular numerals unless explicitly configured."
 *
 * The blanket `font-variant-numeric: tabular-nums lining-nums` that this file
 * carried on twelve selectors (including a global `table td, table th`) is
 * REMOVED: it substituted tabular figures across the site with nothing
 * configuring it, which is the case §08 rules out. Numerals now inherit the
 * active role of their component, as §06 requires of the PLP result count
 * ("numerals same face"). resolved-conflicts.md RC-08.
 *
 * .kr-tabular is the explicit configuration §08 allows, for a component that
 * genuinely needs digits to align in a column or change in place. No component
 * in the §06 or §07 map claims it. commerce.css keeps three per-component
 * opt-ins of its own on the WooCommerce checkout and orders table; those are
 * explicit configurations on named components and are compliant.
 */
.kr-tabular { font-variant-numeric: tabular-nums lining-nums; }

/* ===========================================================================
   v4.0 §03 — THE EXACT CAPTURED TYPE SCALE
   Twenty-five utility classes, one per token, each binding the full property
   set. Weight comes from the role (§02); size, line and tracking from §03.
   "They are the allowed base palette. Do not invent intermediate values."
   =========================================================================== */

.kr-m32,.kr-m24,.kr-m18,.kr-m16,.kr-m14,.kr-m12,
.kr-r18,.kr-r16,.kr-r14,.kr-r12,.kr-r10,
.kr-s32,.kr-s24,.kr-s20,.kr-s16,.kr-s14,
.kr-b32,.kr-b24,.kr-b20,.kr-b18,.kr-b16,.kr-b14,.kr-b12,
.kr-t14,.kr-tb14 { font-style: normal; }

/* Medium role, weight 500. */
.kr-m32 { font-family: var(--kr-medium); font-size: var(--kr-m32-size); line-height: var(--kr-m32-line); letter-spacing: var(--kr-m32-track); font-weight: var(--kr-medium-weight); }
.kr-m24 { font-family: var(--kr-medium); font-size: var(--kr-m24-size); line-height: var(--kr-m24-line); letter-spacing: var(--kr-m24-track); font-weight: var(--kr-medium-weight); }
.kr-m18 { font-family: var(--kr-medium); font-size: var(--kr-m18-size); line-height: var(--kr-m18-line); letter-spacing: var(--kr-m18-track); font-weight: var(--kr-medium-weight); }
.kr-m16 { font-family: var(--kr-medium); font-size: var(--kr-m16-size); line-height: var(--kr-m16-line); letter-spacing: var(--kr-m16-track); font-weight: var(--kr-medium-weight); }
.kr-m14 { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); }
.kr-m12 { font-family: var(--kr-medium); font-size: var(--kr-m12-size); line-height: var(--kr-m12-line); letter-spacing: var(--kr-m12-track); font-weight: var(--kr-medium-weight); }

/* Regular role, weight 400. */
.kr-r18 { font-family: var(--kr-regular); font-size: var(--kr-r18-size); line-height: var(--kr-r18-line); letter-spacing: var(--kr-r18-track); font-weight: var(--kr-regular-weight); }
.kr-r16 { font-family: var(--kr-regular); font-size: var(--kr-r16-size); line-height: var(--kr-r16-line); letter-spacing: var(--kr-r16-track); font-weight: var(--kr-regular-weight); }
.kr-r14 { font-family: var(--kr-regular); font-size: var(--kr-r14-size); line-height: var(--kr-r14-line); letter-spacing: var(--kr-r14-track); font-weight: var(--kr-regular-weight); }
.kr-r12 { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); }
.kr-r10 { font-family: var(--kr-regular); font-size: var(--kr-r10-size); line-height: var(--kr-r10-line); letter-spacing: var(--kr-r10-track); font-weight: var(--kr-regular-weight); }

/* Secondary role, weight 400 — tracked editorial. */
.kr-s32 { font-family: var(--kr-secondary); font-size: var(--kr-s32-size); line-height: var(--kr-s32-line); letter-spacing: var(--kr-s32-track); font-weight: var(--kr-secondary-weight); }
.kr-s24 { font-family: var(--kr-secondary); font-size: var(--kr-s24-size); line-height: var(--kr-s24-line); letter-spacing: var(--kr-s24-track); font-weight: var(--kr-secondary-weight); }
.kr-s20 { font-family: var(--kr-secondary); font-size: var(--kr-s20-size); line-height: var(--kr-s20-line); letter-spacing: var(--kr-s20-track); font-weight: var(--kr-secondary-weight); }
.kr-s16 { font-family: var(--kr-secondary); font-size: var(--kr-s16-size); line-height: var(--kr-s16-line); letter-spacing: var(--kr-s16-track); font-weight: var(--kr-secondary-weight); }
.kr-s14 { font-family: var(--kr-secondary); font-size: var(--kr-s14-size); line-height: var(--kr-s14-line); letter-spacing: var(--kr-s14-track); font-weight: var(--kr-secondary-weight); }

/* Secondary-brand role, weight 400 — tracked branded link/editorial. */
.kr-b32 { font-family: var(--kr-secondary-brand); font-size: var(--kr-b32-size); line-height: var(--kr-b32-line); letter-spacing: var(--kr-b32-track); font-weight: var(--kr-secondary-brand-weight); }
.kr-b24 { font-family: var(--kr-secondary-brand); font-size: var(--kr-b24-size); line-height: var(--kr-b24-line); letter-spacing: var(--kr-b24-track); font-weight: var(--kr-secondary-brand-weight); }
.kr-b20 { font-family: var(--kr-secondary-brand); font-size: var(--kr-b20-size); line-height: var(--kr-b20-line); letter-spacing: var(--kr-b20-track); font-weight: var(--kr-secondary-brand-weight); }
.kr-b18 { font-family: var(--kr-secondary-brand); font-size: var(--kr-b18-size); line-height: var(--kr-b18-line); letter-spacing: var(--kr-b18-track); font-weight: var(--kr-secondary-brand-weight); }
.kr-b16 { font-family: var(--kr-secondary-brand); font-size: var(--kr-b16-size); line-height: var(--kr-b16-line); letter-spacing: var(--kr-b16-track); font-weight: var(--kr-secondary-brand-weight); }
.kr-b14 { font-family: var(--kr-secondary-brand); font-size: var(--kr-b14-size); line-height: var(--kr-b14-line); letter-spacing: var(--kr-b14-track); font-weight: var(--kr-secondary-brand-weight); }
.kr-b12 { font-family: var(--kr-secondary-brand); font-size: var(--kr-b12-size); line-height: var(--kr-b12-line); letter-spacing: var(--kr-b12-track); font-weight: var(--kr-secondary-brand-weight); }

/* Tertiary role. .kr-tb14 renders on the declared fallback until a real 700
   cut exists — FONT-ASSET-MISSING, never a synthesized or clamped face. */
.kr-t14  { font-family: var(--kr-tertiary); font-size: var(--kr-t14-size); line-height: var(--kr-t14-line); letter-spacing: var(--kr-t14-track); font-weight: var(--kr-tertiary-weight); }
.kr-tb14 { font-family: var(--kr-tertiary-bold); font-size: var(--kr-tb14-size); line-height: var(--kr-tb14-line); letter-spacing: var(--kr-tb14-track); font-weight: var(--kr-tertiary-bold-weight); }

/* ===========================================================================
   v4.0 §05 — DIRECTLY CAPTURED BUTTON & LINK TYPOGRAPHY
   Every row of the table, with its case rule and its stated geometry.
   =========================================================================== */

/*
 * Primary / secondary commerce button: M14 = 14/21, 0 tracking, 500,
 * UPPERCASE, padding 12px 14px, primary radius 0.
 * §08 confirms the case rule is per-component, not global: "Primary/secondary
 * commerce buttons use uppercase. Tertiary/text links do not unless component
 * rule says so." No site-wide text-transform exists anywhere in this build.
 */
.kr-commerce-button {
  font: var(--kr-medium-weight) var(--kr-m14-size)/var(--kr-m14-line) var(--kr-medium);
  letter-spacing: var(--kr-m14-track);
  text-transform: uppercase;
  white-space: nowrap;
  padding: var(--kr-button-pad-y) var(--kr-button-pad-x);
  border-radius: var(--kr-radius-primary);
}

/* Generic button shell: same type, general radius 2px. */
.kr-button {
  font: var(--kr-medium-weight) var(--kr-m14-size)/var(--kr-m14-line) var(--kr-medium);
  letter-spacing: var(--kr-m14-track);
  text-transform: uppercase;
  white-space: nowrap;
  padding: var(--kr-button-pad-y) var(--kr-button-pad-x);
  border-radius: var(--kr-radius-button);
}

/* Tertiary button: same type, padding 12px, and NO case change. */
.kr-button-tertiary {
  font: var(--kr-medium-weight) var(--kr-m14-size)/var(--kr-m14-line) var(--kr-medium);
  letter-spacing: var(--kr-m14-track);
  text-transform: none;
  white-space: nowrap;
  padding: var(--kr-button-pad-tertiary);
  border-radius: var(--kr-radius-button);
}

/*
 * Text link: B14 = 14/18, 0.42px, 400, no case change, animated 1px underline.
 * The animation is a background-size transition on a 1px gradient, so the text
 * box never changes — §05 STATE GEOMETRY: states "must not change font-size,
 * line-height, tracking or cause accidental reflow". A border or
 * text-decoration toggle would move the line box; this cannot.
 */
.kr-text-link {
  font: var(--kr-secondary-brand-weight) var(--kr-b14-size)/var(--kr-b14-line) var(--kr-secondary-brand);
  letter-spacing: var(--kr-b14-track);
  text-transform: none;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 var(--kr-underline-weight);
  transition: background-size var(--k-motion-quick) var(--k-ease-calm);
}
.kr-text-link:hover,
.kr-text-link:focus-visible { background-size: 100% var(--kr-underline-weight); }

/* Underlined text link: the same token, permanently underlined, offset 3px. */
.kr-text-link-underlined {
  font: var(--kr-secondary-brand-weight) var(--kr-b14-size)/var(--kr-b14-line) var(--kr-secondary-brand);
  letter-spacing: var(--kr-b14-track);
  text-transform: none;
  text-decoration: underline;
  text-decoration-thickness: var(--kr-underline-weight);
  text-underline-offset: var(--kr-underline-offset);
}

/* Add-to-Cart success text: R14 = 14/21, 0, 400, UPPERCASE, white on the
   success surface. The STRING is "Add to Cart" — v4.0 prints the reference's
   own "bag" wording, which V6 §43 and owner ruling J-13.6 replace. The
   typography is implemented exactly as tabled. resolved-conflicts.md RC-01. */
.kr-cart-success-text {
  font: var(--kr-regular-weight) var(--kr-r14-size)/var(--kr-r14-line) var(--kr-regular);
  letter-spacing: var(--kr-r14-track);
  text-transform: uppercase;
}

/* Add-to-Cart success action: M14, UPPERCASE, single line. */
.kr-cart-success-action {
  font: var(--kr-medium-weight) var(--kr-m14-size)/var(--kr-m14-line) var(--kr-medium);
  letter-spacing: var(--kr-m14-track);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Wishlist success — the one responsive switch in the system. Defined at the
   base and overridden at 768 in the RESPONSIVE block at the foot of this file. */
.kr-wishlist-success { text-transform: uppercase; }

/* Store / mobile toggle: M14, UPPERCASE. "State changes colour only." */
.kr-toggle {
  font: var(--kr-medium-weight) var(--kr-m14-size)/var(--kr-m14-line) var(--kr-medium);
  letter-spacing: var(--kr-m14-track);
  text-transform: uppercase;
}

/* ===========================================================================
   v4.0 §06 — CLOSED COMMERCE COMPONENT MAP
   Every row. Where §06 says "UPPERCASE only if authored that way" / "where
   authored" / "if authored", the rule is that the AUTHORED STRING carries the
   case and no transform is applied — §08: "Preserve source string. Do not
   auto-title-case or auto-uppercase." Those rows therefore set no transform.
   =========================================================================== */

/* Header primary navigation — M14, source case, no-wrap. */
.kr-nav-primary { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); text-transform: none; white-space: nowrap; }

/* Header utility links / account / search — F-14 measures T14 (14/18, 0), not
   the R14 (14/21) §06 inferred. Same size, tighter line. RC-24. */
.kr-nav-utility { font-family: var(--kr-tertiary); font-size: var(--kr-t14-size); line-height: var(--kr-t14-line); letter-spacing: var(--kr-t14-track); font-weight: var(--kr-tertiary-weight); text-transform: none; white-space: nowrap; }

/* Mega-menu column heading — M14. No mega-menu exists at launch (V6 §41.3
   "No mega-menu, no hover flyout"); the row is implemented so the map is
   complete and the value is not re-derived if one is ever approved. */
.kr-megamenu-heading { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); text-transform: none; }

/* Mega-menu child link — F-14 measures B14 (14/18, 0.42px), the tracked brand
   role, not the R14 §06 inferred. RC-24. */
.kr-megamenu-link { font-family: var(--kr-secondary-brand); font-size: var(--kr-b14-size); line-height: var(--kr-b14-line); letter-spacing: var(--kr-b14-track); font-weight: var(--kr-secondary-brand-weight); text-transform: none; }

/* PLP category / page title — F-14 measures R16 (16/20) from 992 up and R14
   (14/21) below it, NOT the M24 §06 inferred from "the captured 24px medium
   scale". The switch width was measured to the pixel: 991 renders R14, 992
   renders R16, so it is exactly v4.0 §04's LG inclusive start.

   This is a component choosing a different EXISTING token at a breakpoint, not
   a second scale: no size, line or tracking outside the §03 twenty-five is
   introduced. §08's two-line clamp is unchanged. RC-24, RC-25. */
.kr-plp-title {
  font-family: var(--kr-regular); font-size: var(--kr-r14-size); line-height: var(--kr-r14-line);
  letter-spacing: var(--kr-r14-track); font-weight: var(--kr-regular-weight); text-transform: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
@media (min-width: 992px) { /* v4.0 §04 LG inclusive start; F-14 measured 991→992 */
  .kr-plp-title { font-size: var(--kr-r16-size); line-height: var(--kr-r16-line); letter-spacing: var(--kr-r16-track); }
}

/* PLP result count — R12, source case, numerals in the same face. */
.kr-plp-count { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); text-transform: none; }

/* Filter / Sort labels — M14, source case, no-wrap (§08 UI controls). */
.kr-filter-label { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); text-transform: none; white-space: nowrap; }

/* Product-card title — F-14 measures B14 (14/18, 0.42px), the tracked brand
   role, not the R14 §06 inferred. Constant at all seven widths. RC-24. */
.kr-card-title {
  font-family: var(--kr-secondary-brand); font-size: var(--kr-b14-size); line-height: var(--kr-b14-line);
  letter-spacing: var(--kr-b14-track); font-weight: var(--kr-secondary-brand-weight); text-transform: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}

/* Product-card price — F-14 measures B16 (16/22, 0.48px), not R14. The price is
   LARGER than the title in the measured system, which is the whole point of
   carrying hierarchy without weight. Constant at all seven widths.
   §08's "keep currency and amount together" no-wrap is unchanged. RC-24. */
.kr-card-price { font-family: var(--kr-secondary-brand); font-size: var(--kr-b16-size); line-height: var(--kr-b16-line); letter-spacing: var(--kr-b16-track); font-weight: var(--kr-secondary-brand-weight); white-space: nowrap; }

/* Product-card badge / status — F-14 measures R14 (14/21) from 768 up and R12
   (12/16) below it, not the M12 §06 inferred. 575 and 576 both render R12 and
   768 renders R14, so the switch is v4.0 §04's MD inclusive start. RC-24, RC-25. */
.kr-card-badge { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); text-transform: none; }
@media (min-width: 768px) { /* v4.0 §04 MD inclusive start; F-14 measured 576→768 */
  .kr-card-badge { font-size: var(--kr-r14-size); line-height: var(--kr-r14-line); letter-spacing: var(--kr-r14-track); }
}

/* PDP product title — F-14 measures B16 (16/22, 0.48px) from 992 up and B14
   (14/18, 0.42px) below it, not the M24 §06 inferred. This is the single most
   visible consequence of the F-14 correction: the reference does not set a
   product name large, it sets it in the tracked brand role at commerce size and
   lets case and tracking do the work. §08's natural wrap is unchanged —
   "Fix container width before modifying typography." RC-24, RC-25. */
.kr-pdp-title { font-family: var(--kr-secondary-brand); font-size: var(--kr-b14-size); line-height: var(--kr-b14-line); letter-spacing: var(--kr-b14-track); font-weight: var(--kr-secondary-brand-weight); text-transform: none; }
@media (min-width: 992px) { /* v4.0 §04 LG inclusive start; F-14 measured 768→992 */
  .kr-pdp-title { font-size: var(--kr-b16-size); line-height: var(--kr-b16-line); letter-spacing: var(--kr-b16-track); }
}

/* PDP price — F-14 measures B16 (16/22, 0.48px) at all seven widths, not R18.
   Card price and PDP price are the same token in the measured system. RC-24. */
.kr-pdp-price { font-family: var(--kr-secondary-brand); font-size: var(--kr-b16-size); line-height: var(--kr-b16-line); letter-spacing: var(--kr-b16-track); font-weight: var(--kr-secondary-brand-weight); white-space: nowrap; }

/* PDP colour label / value — the label stays M14. F-14 measures the VALUE as
   TB14 (14/18, 0, 700) in the tertiary-bold role, not R14: it is the one place
   in the whole measured map where weight, not case or tracking, carries the
   emphasis. That is also the only component that gives --kr-tertiary-bold a job,
   and it now has a real 700 face to do it with. RC-24. */
.kr-pdp-colour-label { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); text-transform: none; }
.kr-pdp-colour-value { font-family: var(--kr-tertiary-bold); font-size: var(--kr-tb14-size); line-height: var(--kr-tb14-line); letter-spacing: var(--kr-tb14-track); font-weight: var(--kr-tertiary-bold-weight); text-transform: none; }

/* Size Guide — F-14 measures M12 (12/16, 0), not the B14 §06 inferred: it is a
   small control, not a brand link. The underline treatment is kept, because §05
   states it for the control and F-14 did not contradict it. RC-24. */
.kr-size-guide {
  font-family: var(--kr-medium); font-size: var(--kr-m12-size); line-height: var(--kr-m12-line);
  letter-spacing: var(--kr-m12-track); font-weight: var(--kr-medium-weight); text-transform: none;
  text-decoration: underline; text-decoration-thickness: var(--kr-underline-weight);
  text-underline-offset: var(--kr-underline-offset); white-space: nowrap;
}

/* Size selector values — M14, no-wrap, "disabled geometry stable".
   The disabled state changes colour and opacity only; the box is unchanged, so
   a sold-out size never moves the row (§05 STATE GEOMETRY, §11 Disabled). */
.kr-size-value { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); text-transform: none; white-space: nowrap; }

/* Add to Cart / Notify me — M14, UPPERCASE. §06 prints the row as "Add to bag";
   the token is implemented exactly, the string is "Add to Cart" (RC-01). */
.kr-cta-commerce { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); text-transform: uppercase; white-space: nowrap; }

/* Accordion heading — M14, uppercase only where the authored label is. */
.kr-accordion-heading { font-family: var(--kr-medium); font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight); text-transform: none; }

/* Accordion body — R14, sentence case. This is the captured body scale. */
.kr-accordion-body { font-family: var(--kr-regular); font-size: var(--kr-r14-size); line-height: var(--kr-r14-line); letter-spacing: var(--kr-r14-track); font-weight: var(--kr-regular-weight); text-transform: none; }

/* Product code / helper — R12, source case. */
.kr-product-code { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); text-transform: none; }

/* Recommendation section title — M18. Note the 0.36px tracking this token
   carries; it is the only tracked Medium row in §03. */
.kr-recommendation-title { font-family: var(--kr-medium); font-size: var(--kr-m18-size); line-height: var(--kr-m18-line); letter-spacing: var(--kr-m18-track); font-weight: var(--kr-medium-weight); text-transform: none; }

/* Footer column heading — F-14 measures R14 (14/21, uppercase-authored), not
   the M12 §06 inferred. Constant at all seven widths. RC-24. */
.kr-footer-heading { font-family: var(--kr-regular); font-size: var(--kr-r14-size); line-height: var(--kr-r14-line); letter-spacing: var(--kr-r14-track); font-weight: var(--kr-regular-weight); text-transform: none; }

/* Footer links — F-14 measures B14 (14/18, 0.42px), not R12. The footer is one
   of the tracked-brand-role surfaces in the measured system. RC-24. */
.kr-footer-link { font-family: var(--kr-secondary-brand); font-size: var(--kr-b14-size); line-height: var(--kr-b14-line); letter-spacing: var(--kr-b14-track); font-weight: var(--kr-secondary-brand-weight); text-transform: none; }

/* Footer legal — F-14 measures B12 (12/16, 0), not R10. R10 (10px) is measured
   NOWHERE on the reference and is the one §03 token with no observed use; it is
   kept in the scale because §03 is normative, but nothing claims it. The locale
   row keeps R12, which F-14 confirms on the © line. RC-24. */
.kr-footer-legal  { font-family: var(--kr-secondary-brand); font-size: var(--kr-b12-size); line-height: var(--kr-b12-line); letter-spacing: var(--kr-b12-track); font-weight: var(--kr-secondary-brand-weight); text-transform: none; }
.kr-footer-locale { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); text-transform: none; }

/* ===========================================================================
   v4.0 §07 — OTHER DIRECTLY CAPTURED COMPONENT RULES
   Fourteen rows, each with an exact size/line/weight/case/tracking. Several of
   these components (sitemap, customer care, store locator) do not exist in the
   KOROTANA build. They are implemented because §07 states them exactly and
   because the QA route renders every one — so the value is held by a live
   specimen rather than left to be re-derived from the PDF later.
   =========================================================================== */

.kr-sitemap-page      { font-family: var(--kr-medium);  font-size: var(--kr-m24-size); line-height: var(--kr-m24-line); letter-spacing: var(--kr-m24-track); font-weight: var(--kr-medium-weight);  text-transform: uppercase; }
.kr-sitemap-category  { font-family: var(--kr-medium);  font-size: var(--kr-m12-size); line-height: var(--kr-m12-line); letter-spacing: var(--kr-m12-track); font-weight: var(--kr-medium-weight);  text-transform: uppercase; }
.kr-sitemap-leaf      { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); text-transform: none; }
.kr-sitemap-link      { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); text-transform: none; }

.kr-care-body         { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); text-transform: none; }
.kr-care-hours        { font-family: var(--kr-medium);  font-size: var(--kr-m12-size); line-height: var(--kr-m12-line); letter-spacing: var(--kr-m12-track); font-weight: var(--kr-medium-weight);  text-transform: none; }

.kr-store-card-body   { font-family: var(--kr-regular); font-size: var(--kr-r14-size); line-height: var(--kr-r14-line); letter-spacing: var(--kr-r14-track); font-weight: var(--kr-regular-weight); text-transform: none; }
.kr-store-card-title  { font-family: var(--kr-medium);  font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight);  text-transform: none; }
.kr-store-discover    { font-family: var(--kr-medium);  font-size: var(--kr-m12-size); line-height: var(--kr-m12-line); letter-spacing: var(--kr-m12-track); font-weight: var(--kr-medium-weight);  text-transform: none; }

/* Store details name — the only §07 row with tracking: 18/22, Medium, uppercase, 0.36px. */
.kr-store-name        { font-family: var(--kr-medium);  font-size: var(--kr-m18-size); line-height: var(--kr-m18-line); letter-spacing: var(--kr-m18-track); font-weight: var(--kr-medium-weight);  text-transform: uppercase; }
.kr-store-address     { font-family: var(--kr-regular); font-size: var(--kr-r14-size); line-height: var(--kr-r14-line); letter-spacing: var(--kr-r14-track); font-weight: var(--kr-regular-weight); text-transform: none; }
.kr-store-label       { font-family: var(--kr-medium);  font-size: var(--kr-m14-size); line-height: var(--kr-m14-line); letter-spacing: var(--kr-m14-track); font-weight: var(--kr-medium-weight);  text-transform: uppercase; }

/* Store info link — R14 with underline offset 4px (not the 3px of §05). */
.kr-store-info-link {
  font-family: var(--kr-regular); font-size: var(--kr-r14-size); line-height: var(--kr-r14-line);
  letter-spacing: var(--kr-r14-track); font-weight: var(--kr-regular-weight); text-transform: none;
  text-decoration: underline; text-decoration-thickness: var(--kr-underline-weight);
  text-underline-offset: var(--kr-underline-offset-info);
}

/* Carousel pagination number — "12px size; inherits surrounding line rules".
   Size only, deliberately: line-height, family and weight are inherited. */
.kr-carousel-page { font-size: var(--kr-m12-size); }

/* ===========================================================================
   v4.0 §11 — INTERACTION STATES & ACCESSIBILITY
   "Hover, active, focus, selected and disabled states may change colour,
   underline or surface treatment, but must not change font-size, line-height,
   tracking or cause accidental reflow" (§05 STATE GEOMETRY, restated in §11).
   Nothing here sets a metric; these rules exist so that the *permitted*
   changes have a home and no component invents its own.
   =========================================================================== */

/* Error helper text — §11: "Use R12 for helper/error text unless component map
   already uses another captured token." */
.kr-error-text { font-family: var(--kr-regular); font-size: var(--kr-r12-size); line-height: var(--kr-r12-line); letter-spacing: var(--kr-r12-track); font-weight: var(--kr-regular-weight); }

/* Selected: "Do not change font family/size merely to signal selection."
   Disabled: "Opacity/colour may change; same metrics." */
[aria-selected="true"], [aria-current="true"], .is-selected,
:disabled, [aria-disabled="true"] { font-size: inherit; line-height: inherit; letter-spacing: inherit; }

/* Sale price: "Old/new values remain stable; strike-through must not alter the
   line box." line-through is drawn inside the existing box and adds no height. */
.kr-price-was { text-decoration: line-through; text-decoration-thickness: var(--kr-underline-weight); }

/* Loading: "Reserve final text geometry where skeleton/pending state exists." */
[aria-busy="true"] .kr-reserve { min-height: var(--kr-r14-line); }

/* ===========================================================================
   v4.0 §09 — RESPONSIVE OVERRIDES
   The ONLY responsive typography rule in this build.
   "The captured reusable typography utilities repeat the same type values
   across breakpoints. Do not invent a generic mobile type scale. Responsive
   differences come from component choice, layout and the few explicit
   component switches such as wishlist success 12/16 below 768 and 14/21 at
   768+." The breakpoint is the §04 MD inclusive start, written as a literal
   because a custom property cannot be read inside a media condition.
   =========================================================================== */
@media (max-width: 767px) {
  .kr-wishlist-success { font: var(--kr-medium-weight) var(--kr-m12-size)/var(--kr-m12-line) var(--kr-medium); letter-spacing: var(--kr-m12-track); }
}
@media (min-width: 768px) {
  .kr-wishlist-success { font: var(--kr-medium-weight) var(--kr-m14-size)/var(--kr-m14-line) var(--kr-medium); letter-spacing: var(--kr-m14-track); }
}

/* ===========================================================================
   STALE — the superseded T0–T8 utility classes.
   Kept only because primitives.css, inc/primitives.php, inc/states.php,
   theme.json, forms.js, toast.js and the specimen patterns still apply them.
   Each --k-t*-* token is now an alias onto the v4.0 token for the role that
   level served (tokens.css), so these classes render the new system unchanged.
   Nothing new may use them; each is deleted with its surface at steps 5–8.
   The tabular-numeral binding that .k-t4 carried is gone with the rest (§08).
   =========================================================================== */
.k-t0, .k-t1, .k-t2, .k-t3, .k-t4, .k-t5, .k-t6, .k-t7, .k-t8 {
  font-style: normal;
  text-decoration: none;
}
.k-t0 { font-family: var(--k-t0-family); font-size: var(--k-t0-size); line-height: var(--k-t0-lh); letter-spacing: var(--k-t0-track); font-weight: var(--k-t0-weight); text-transform: var(--k-t0-transform); }
.k-t1 { font-family: var(--k-t1-family); font-size: var(--k-t1-size); line-height: var(--k-t1-lh); letter-spacing: var(--k-t1-track); font-weight: var(--k-t1-weight); text-transform: var(--k-t1-transform); }
.k-t2 { font-family: var(--k-t2-family); font-size: var(--k-t2-size); line-height: var(--k-t2-lh); letter-spacing: var(--k-t2-track); font-weight: var(--k-t2-weight); text-transform: var(--k-t2-transform); }
.k-t3 { font-family: var(--k-t3-family); font-size: var(--k-t3-size); line-height: var(--k-t3-lh); letter-spacing: var(--k-t3-track); font-weight: var(--k-t3-weight); text-transform: var(--k-t3-transform); }
.k-t4 { font-family: var(--k-t4-family); font-size: var(--k-t4-size); line-height: var(--k-t4-lh); letter-spacing: var(--k-t4-track); font-weight: var(--k-t4-weight); text-transform: var(--k-t4-transform); }
.k-t5 { font-family: var(--k-t5-family); font-size: var(--k-t5-size); line-height: var(--k-t5-lh); letter-spacing: var(--k-t5-track); font-weight: var(--k-t5-weight); text-transform: var(--k-t5-transform); }
.k-t6 { font-family: var(--k-t6-family); font-size: var(--k-t6-size); line-height: var(--k-t6-lh); letter-spacing: var(--k-t6-track); font-weight: var(--k-t6-weight); text-transform: var(--k-t6-transform); }
.k-t7 { font-family: var(--k-t7-family); font-size: var(--k-t7-size); line-height: var(--k-t7-lh); letter-spacing: var(--k-t7-track); font-weight: var(--k-t7-weight); text-transform: var(--k-t7-transform); }
.k-t8 { font-family: var(--k-t8-family); font-size: var(--k-t8-size); line-height: var(--k-t8-lh); letter-spacing: var(--k-t8-track); font-weight: var(--k-t8-weight); text-transform: var(--k-t8-transform); }
