/*
 * HOW PRE-ORDER WORKS — /how-pre-order-works (owner ruling J-67, Run 67).
 *
 * THIS SHEET STATES NO TYPOGRAPHY AT ALL. Not one font-size, line-height,
 * letter-spacing, font-weight or font-family. Typography Closed Spec v4.0 is a
 * closed contract and every page sheet loads after fonts.css, so a single type
 * declaration here would silently beat the .kr-* role class on the same
 * element. The markup carries the roles (kr-m32 the page title, kr-m24 the step
 * headings, kr-r16 the body, kr-r14 the captions) and this sheet carries layout,
 * spacing and colour only. That is also what keeps the responsive difference in
 * component choice rather than in a second scale, which v4.0 forbids.
 *
 * NO COLOUR VALUE IS WRITTEN HERE EITHER — only governed tokens. The page
 * ground is not set at all: --k-surface-page already carries it on every route
 * since J-51, and a second ground rule is exactly what that ruling removed.
 *
 * NO aspect-ratio. Every panel img carries its own width and height attributes,
 * so the browser reserves the correct box from the intrinsic ratio before the
 * bytes land. A CSS ratio here would be a second source of truth for a number
 * the file already knows, and the CLS gate is met without one.
 *
 * THE LAYOUT, AND THE TWO SWITCHES THAT ARE NOT THE SAME SWITCH.
 *   - 768 is the IMAGE switch: below it the square cut is served, above it the
 *     wide cut. That lives in the <source media> query, not here.
 *   - 992 is the LAYOUT switch: below it a step is one column, above it a
 *     figured step becomes a 40/60 grid with the text first.
 *   Between 768 and 991 the wide cut therefore draws full width in one column,
 *   which is why KOROTANA_POW_SIZES carries a 100vw condition in that band.
 */

/* ----------------------------------------------------------------------
   THE PAGE
   ---------------------------------------------------------------------- */

.k-pow {
  display: block;
  padding-inline: var(--k-gutter-mobile);
  padding-block: var(--k-space-7) var(--k-space-9);
  margin-inline: auto;
  max-width: 1400px;
}

.k-pow__masthead {
  margin-block-end: var(--k-space-6);
}

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

/* ----------------------------------------------------------------------
   OPENING
   ---------------------------------------------------------------------- */

.k-pow__opening {
  max-width: var(--k-measure);
  margin-block-end: var(--k-space-8);
  padding-block-end: var(--k-space-7);
  border-block-end: var(--k-border-hairline);
}

.k-pow__lede {
  margin: 0 0 var(--k-space-4);
  color: var(--k-graphite);
}

.k-pow__lede:last-child {
  margin-block-end: 0;
}

/* The first line of the opening is the page's claim; it carries the ink. */
.k-pow__lede--first {
  color: var(--k-ink);
}

/* ----------------------------------------------------------------------
   THE SIX STEPS
   ---------------------------------------------------------------------- */

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

.k-pow__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--k-space-5);
  align-items: start;
}

.k-pow__steptext {
  max-width: var(--k-measure);
}

.k-pow__heading {
  margin: 0 0 var(--k-space-4);
  color: var(--k-ink);
  text-wrap: balance;
}

.k-pow__body {
  margin: 0 0 var(--k-space-4);
  color: var(--k-graphite);
}

.k-pow__body:last-child {
  margin-block-end: 0;
}

/* ----------------------------------------------------------------------
   THE PANELS
   ---------------------------------------------------------------------- */

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

.k-pow__picture {
  display: block;
}

.k-pow__img {
  display: block;
  width: 100%;
  height: auto;
}

.k-pow__caption {
  margin: var(--k-space-3) 0 0;
  color: var(--k-graphite);
}

/* ----------------------------------------------------------------------
   IF YOU CHANGE YOUR MIND
   ---------------------------------------------------------------------- */

.k-pow__changed {
  margin-block-start: var(--k-space-9);
  padding-block-start: var(--k-space-7);
  border-block-start: var(--k-border-hairline);
}

.k-pow__h2 {
  margin: 0 0 var(--k-space-5);
  color: var(--k-ink);
}

.k-pow__comlist {
  display: flex;
  flex-direction: column;
  gap: var(--k-space-4);
  max-width: var(--k-measure);
}

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

/* The lead is set in the surrounding role; <strong> changes colour only, never
   a type value — v4.0 §11: a state or an emphasis may alter colour, underline
   or surface, never font-size, line-height or tracking. */
.k-pow__comlead {
  color: var(--k-ink);
}

.k-pow__link {
  color: var(--k-ink);
  text-decoration: underline;
  text-underline-offset: var(--k-space-1);
}

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

/* ----------------------------------------------------------------------
   992 — THE LAYOUT SWITCH
   ---------------------------------------------------------------------- */

@media (min-width: 992px) {
  .k-pow {
    padding-inline: var(--k-gutter-desktop);
    padding-block: var(--k-space-9) var(--k-space-10);
  }

  .k-pow__masthead {
    margin-block-end: var(--k-space-7);
  }

  .k-pow__opening {
    margin-block-end: var(--k-space-9);
  }

  /* A figured step: text at 40, photograph at 60. A step with no panel keeps
     one column, so steps 1 and the closing block stay at the text measure. */
  .k-pow__step--figured {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    gap: var(--k-space-8);
  }

  .k-pow__changed {
    margin-block-start: var(--k-space-10);
  }
}
