/* Section 04, Wellness & Recovery (27 Oct, light cards; Shali's direction supersedes the dark staggered gallery).
   Starlight ground, Void type: a compact heading, ONE horizontal row of equal cards (4:5 image above, title and details
   below), with complete source inventory; no entitlement groups beneath. Desktop: the row scrolls
   sideways with previous/next arrows at the right of the heading (wellness.js). Phones: native swipe, one full card and
   a peek of the next, no arrows. No Gold on Starlight. Scoped to .well; normal flow, no motion. */
.well { position: relative; z-index: 7; background: var(--star); color: var(--void);
  --wl-gap: clamp(16px, 1.6vw, 24px); --wl-line: rgba(14, 14, 15, 0.14);
  padding: clamp(56px, 5vw, 72px) var(--m) clamp(80px, 7.5vw, 112px); }
.well ::selection { background: var(--void); color: var(--star); }

/* Heading left, arrows right. */
.wl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
/* Same section-title scale as sections 02 and 03, a step below the hero headline. */
.wl-h { margin: 0; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -0.04em; color: var(--void); text-wrap: balance; }
.wl-lead { margin: 14px 0 0; max-width: 34em; font-size: var(--t-lead); line-height: 1.5; color: rgba(14, 14, 15, 0.7); text-wrap: pretty; }
.wl-nav { display: none; }
html.js .wl-nav:not([hidden]) { display: flex; gap: 8px; flex: none; }
.wl-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(14, 14, 15, 0.22); color: var(--void);
  transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.wl-btn svg { width: 24px; height: 24px; fill: currentColor; }
.wl-btn:hover:not(:disabled) { background: rgba(14, 14, 15, 0.06); box-shadow: inset 0 0 0 1px rgba(14, 14, 15, 0.4); }
.wl-btn:disabled { opacity: 0.32; cursor: default; }
.wl-btn:focus-visible { outline: 2px solid var(--void); outline-offset: 2px; }

/* The row: equal cards, two whole ones and a glimpse of the third where space allows; it runs to the right screen edge. */
.wl-gallery { margin-top: clamp(28px, 3vw, 40px); margin-right: calc(-1 * var(--m)); }
.wl-track { list-style: none; margin: 0; padding: 0 var(--m) 4px 0; display: flex; gap: var(--wl-gap); overflow-x: auto;
  overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wl-track::-webkit-scrollbar { display: none; }
.wl-track:focus-visible { outline: 2px solid var(--void); outline-offset: 4px; border-radius: 12px; }
.wl-item { flex: 0 0 clamp(260px, 32vw, 480px); margin: 0; scroll-snap-align: start; } /* 4:5 cards (Shali, 27 Oct) */
.wl-fig { margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5; background: rgba(14, 14, 15, 0.06); }
.wl-fig img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.wl-cap { margin-top: 16px; padding-right: 8px; }
.wl-name { margin: 0; font: 400 clamp(20px, 1.6vw, 24px)/1.25 var(--f-display); letter-spacing: -0.015em; color: var(--void); }
.wl-desc { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: rgba(14, 14, 15, 0.74); }
.wl-status { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(14, 14, 15, 0.56); }

/* With your assessment / Optional wellness sessions: two plain text groups under a fine rule. */
.wl-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--rv-gap, 48px);
  margin-top: clamp(40px, 4vw, 56px); padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--wl-line); }
.wl-term-h { margin: 0; font: 400 clamp(19px, 1.5vw, 22px)/1.25 var(--f-display); letter-spacing: -0.015em; color: var(--void); }
.wl-term p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: rgba(14, 14, 15, 0.74); }
.wl-term .wl-status { margin-top: 4px; font-size: 14px; color: rgba(14, 14, 15, 0.56); }

@media (max-width: 1099px) {
  .wl-item { flex-basis: clamp(260px, 42vw, 440px); } /* two whole cards and a peek at 820 */
}
/* Phones: one complete card and the start of the next at the right edge; swipe only, no arrows. */
@media (max-width: 759px) {
  .well { padding: 40px var(--m) calc(64px + env(safe-area-inset-bottom)); }
  .wl-h { font-size: clamp(28px, 7.8vw, 32px); line-height: 1.06; }
  .wl-lead { font-size: 16px; margin-top: 12px; }
  html.js .wl-nav:not([hidden]) { display: none; } /* no hidden focus targets: not rendered at all */
  .wl-gallery { margin-top: 24px; }
  .wl-track { gap: 12px; scroll-snap-type: x mandatory; }
  .wl-item { flex-basis: 86%; }
  .wl-name { font-size: 21px; }
  .wl-terms { grid-template-columns: 1fr; margin-top: 36px; padding-top: 22px; }
}

/* Complete planned inventory. Model-specific photographs remain explicit placeholders until image generation succeeds. */
.wl-image-pending { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; background: linear-gradient(145deg,#faf9f6,#eeeae3); color: rgba(14,14,15,.45); font: 400 14px/1.4 var(--f-text); }
.wl-image-pending .msr { font-size: 48px; }
.wl-fig { transition: box-shadow .4s ease; }
.wl-fig img { transition: transform .45s cubic-bezier(.22,1,.36,1); }
@media(hover:hover) and (pointer:fine) { .wl-item:hover .wl-fig img { transform: scale(1.025); } .wl-item:hover .wl-fig { box-shadow: 0 8px 22px rgba(14,14,15,.075); } }
.wl-btn:active:not(:disabled) { transform: scale(.96); }
@media(prefers-reduced-motion:reduce) { .wl-fig,.wl-fig img,.wl-btn { transition: none; } }


/* 28 Oct: categories + drawers. Chips filter the row (wellness.js); light pills, Void when selected (no Gold on Starlight). */
.wl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 2.6vw, 32px); }
.wl-cat { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(14, 14, 15, 0.06); color: var(--void);
  font: 400 15px/1.2 var(--f-text); cursor: pointer; transition: background-color .25s ease, color .25s ease; white-space: nowrap; }
.wl-cat:hover { background: rgba(14, 14, 15, 0.1); }
.wl-cat[aria-pressed="true"] { background: var(--void); color: var(--star); }
.wl-cat:focus-visible { outline: 2px solid var(--void); outline-offset: 2px; }
.wl-cats + .wl-gallery { margin-top: 20px; }
/* The whole card opens its drawer: one transparent button over the card; focus ring drawn round the image. */
.wl-item { position: relative; }
.wl-open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 16px; }
.wl-open:focus-visible { outline: none; }
.wl-item:has(.wl-open:focus-visible) .wl-fig { outline: 2px solid var(--void); outline-offset: 3px; }
/* Drawer image (shares the assessment drawer's shell, CTA and motion). */
.wd-fig { margin: 0 0 20px; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: rgba(14, 14, 15, 0.06); }
.wd-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
#wd-title { margin: 0; font: 400 clamp(30px, 3vw, 40px)/1.06 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
#wd-detail { margin: 14px 0 0; font: 400 16px/1.6 var(--f-text); color: rgba(14,14,15,.74); }
@media (max-width: 759px) {
  .wl-cats { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--m)); padding-right: var(--m); scrollbar-width: none; }
  .wl-cats::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wl-cat { transition: none; } }
.wl-drawer .ad-scroll { flex: 1; } /* short content: the enquiry stays at the foot, as in the assessment drawers */

/* 28 Oct refine. "Details" cue under each caption (only where the drawer works); the full explanation shows instead when
   script is off; the chip row fades at its scrollable edges on phones (wellness.js sets is-start / is-end). */
.wl-more { display: none; align-items: center; gap: 4px; margin-top: 10px; font: 500 14px/1.4 var(--f-text); color: var(--void); }
.wl-more .pki { font-size: 17px; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
html.js .wl-more { display: inline-flex; }
@media (hover: hover) and (pointer: fine) { .wl-item:hover .wl-more .pki { transform: translateX(3px); } }
.wl-nojs-detail { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: rgba(14, 14, 15, 0.66); }
html.js .wl-nojs-detail { display: none; }
@media (max-width: 759px) {
  .wl-cats.is-scrollable { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); }
  .wl-cats.is-scrollable:not(.is-start) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%); }
  .wl-cats.is-scrollable.is-end:not(.is-start) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px); mask-image: linear-gradient(90deg, transparent 0, #000 32px); }
}
@media (prefers-reduced-motion: reduce) { .wl-more .pki { transition: none; } }
/* No script: the fuller explanation replaces the one-line caption, so nothing reads twice. */
html:not(.js) .wl-item:has(.wl-nojs-detail) .wl-desc { display: none; }
html:not(.js) .wl-nojs-detail { margin-top: 6px; font-size: 16px; color: rgba(14, 14, 15, 0.74); }
