/* ==========================================================================
   Page rhythm — search, wishlist, coming-state shells
   --------------------------------------------------------------------------
   PAGE RHYTHM ONLY, exactly like collection.css and product.css. Every
   component on these pages comes from components.css; this file positions
   them and nothing else. No new colours, no new type sizes, no new spacing
   values — every declaration below resolves to an existing token (P4).

   THE HOMEPAGE LEFT THIS FILE AT APPENDIX M STEP 6. It used to be the first
   surface here, laid out as the pre-V6 §15 page: a hero box, a CTA section,
   Explore gateways, an edition summary on Porcelain, craftsmanship tiles,
   preorder steps and a Founding Collectors panel. DNA V6 Section 11 specifies
   none of those, so the rules were deleted rather than restyled and the V6
   homepage — hero, Women feature, Men feature, storytelling zone — is laid out
   by assets/css/home.css. Nothing about search, the wishlist or the shells
   changed with it.

   Mobile-first, and judged at 390px first, per §36's device rule.

   §13 rhythm, mapped to the same tokens the collection uses:
     viewport gutter 12-16px    -> --k-gutter-mobile (12)
     content groups 48-64px     -> --k-space-7 (48)
     major sections 80-96px     -> --k-space-9 (96)
   ========================================================================== */

.k-search,
.k-shell,
.k-wishlistpage {
  font-family: var(--k-font-ui);
  font-size: var(--k-type-body);
  font-weight: var(--gap-weight-regular);
  color: var(--k-ink);
  background: var(--k-pad);
  margin: 0;
  /*
   * §14.2: "Content may move behind the dock, but interactive elements get
   * bottom padding and are never obscured — including at 200% zoom and on
   * short viewports."
   */
  padding-bottom: var(--k-page-pad-bottom);
}

/* ==========================================================================
   Search (§14.2, G5)
   ========================================================================== */

.k-searchform {
  display: flex;
  flex-direction: column;
  gap: var(--k-space-4);
  max-width: var(--gap-measure);
}
.k-search__group { margin-top: var(--k-space-7); }
.k-search__group .k-sysstate { margin: 0 var(--k-gutter-mobile); }

/* ==========================================================================
   Wishlist (§17.3) — the same two-column card system as a collection
   ========================================================================== */

.k-wishlistpage__group { margin-top: var(--k-space-7); }
.k-wishlistpage__group .k-sysstate { margin: 0 var(--k-gutter-mobile); }
.k-wishlistpage__note {
  color: var(--k-graphite);
  padding: 0 var(--k-gutter-mobile);
  max-width: var(--gap-measure);
}

/* ==========================================================================
   Coming-state shells
   --------------------------------------------------------------------------
   Deliberately plain. A shell has one job: say what the section is, say it is
   being prepared, and offer a way onward. Anything more would be decorating an
   absence.
   ========================================================================== */

.k-shell__onward { margin-top: var(--k-space-6); }

/* The shell is short, so the footer would otherwise ride up the viewport on a
   tall screen. This pushes it down without inventing filler. */
.k-shell { display: flex; flex-direction: column; min-height: 100dvh; }
.k-shell .k-footer { margin-top: auto; }

@media (min-width: 768px) {
  .k-search__group .k-sysstate,
  .k-wishlistpage__group .k-sysstate { margin: 0 var(--k-gutter-desktop); }
  .k-wishlistpage__note { padding: 0 var(--k-gutter-desktop); }
}

/* ==========================================================================
   Production Journey — owner ruling J-29.4
   --------------------------------------------------------------------------
   POSITIONING ONLY. Every value below resolves to an existing token; no new
   colour, type size or spacing step is introduced (P4, §6.3). The timing list
   and the stage list are two plain lists because that is what the approved row
   supplies — three labelled values and ten names — and decorating ten names
   into cards would be inventing a design for content that has none yet.

   The pending modifier is the RC-11 staging state. It is never served in
   production, so this rule paints a marker the customer cannot reach; it is
   here so the team can see at a glance which rows are waiting on a batch.
   ========================================================================== */

.k-pj__timing { list-style: none; margin: 0 0 var(--k-space-7); padding: 0; }
.k-pj__row { display: flex; flex-wrap: wrap; gap: var(--k-space-2); padding: var(--k-space-3) 0; border-bottom: var(--k-border-hairline); }
.k-pj__label { color: var(--k-graphite); }
.k-pj__value { color: var(--k-ink); }
.k-pj__row--pending .k-pj__value { color: var(--k-graphite); }

.k-pj__stages { margin: 0; padding: 0 0 0 var(--k-space-5); }
.k-pj__stage { margin: 0 0 var(--k-space-4); }
.k-pj__stagename { display: block; color: var(--k-ink); }
.k-pj__stagecopy { margin: var(--k-space-2) 0 0; }
.k-pj__period { margin: var(--k-space-6) 0 0; color: var(--k-graphite); }

@media (min-width: 768px) {
  .k-pj__timing, .k-pj__stages, .k-pj__period { padding-left: 0; }
  .k-pj__stages { padding-left: var(--k-space-5); }
}
