/* Westin Product Concepts case study (staging page 2060): page-level rules only, from the approved page design
   "Westin Product Concepts — Case Study" 1794668980-4187 (the helmet styles of Main.dc.html) and the media manifest §3.
   Everything else is the design system (system.css, 1794587056-f55e, shared stylesheet 991e1bfd94e3) and the theme's
   WordPress glue (site.css, inc/case-study.php, inc/westin.php). Nothing here restyles a shared component.
   Classes: ws-opener (the opening figure), ws-constraints-set and ws-constraints (production constraints),
   ws-concept (each concept's group: ws-text, ws-art, ws-evid), ws-trim (Metropolitan Rhythm's artwork only),
   ws-evidence (the supporting images' local grid) and ws-evid-img (each supporting image).
   The design writes some modifiers on the frame (.pf-opener-frame.ws-opener, .ws-art-frame, .ws-trim); the theme
   publishes an image block's own classes on the figure (figure.ws-opener › div.pf-opener-frame), so those rules are
   scoped through it. */

/* 1 · APPROVED PAGE EXCEPTION (14 Nov 2026; Westin only): the opening frame keeps the system's full-width cover crop
   (2:1 / 16:9) at focal point 50% 68%, with a 90svh height cap instead of 75svh, and 1:1 instead of 4:5 when the
   section is narrower than 600px (range syntax, as the system's boundary). The system's 8px caption gap is kept. */
.ws-opener .pf-opener-frame { max-height: 90svh; }
.ws-opener .pf-opener-frame img { --pf-focus: 50% 68%; }
@container pf-section (width < 600px) {
  .ws-opener .pf-opener-frame { aspect-ratio: 1 / 1; }
}

/* 2 · Production constraints: the eyebrow and bulleted List on columns 1–6 (12 and 8 columns), with 30 Story Coffee's
   tightened list spacing. */
.ws-constraints-set { --pf-s8: 1 / span 6; --pf-s12: 1 / span 6; }
.ws-constraints { gap: 2px; line-height: 1.45; }

/* 3 · Concept block (approved composition): text 1–5 and artwork 6–12 on 12 columns (about 40/60), 1–3 and 4–8 on 8,
   stacked on 4. From a 600px section the artwork spans both rows (text, then the supporting images). Source order is
   text, artwork, supporting images at every width. */
.ws-concept { row-gap: var(--pf-space-moderate); }
.ws-concept .pf-heading { overflow-wrap: break-word; }
.ws-text { --pf-s8: 1 / span 3; --pf-s12: 1 / span 5; }
.ws-art { --pf-s8: 4 / -1; --pf-s12: 6 / -1; margin: 0; }
.ws-evid { --pf-s8: 1 / span 3; --pf-s12: 1 / span 5; }
@container pf-section (min-width: 600px) {
  .ws-concept { grid-template-rows: auto 1fr; }
  .ws-art { grid-row: span 2; }
}
/* From a 1024px section the artwork sits right, no taller than the viewport less 128px (at most 1120px), so a concept's
   eyebrow, artwork and caption fit one screen at normal text. */
@container pf-section (min-width: 1024px) {
  .ws-art { justify-self: end; width: min(100%, calc(min(100svh - 128px, 1120px) * 2081 / 2560)); }
}

/* 4 · Bottle artwork: transparent PNGs straight on the page ground (no frame ground), in a frame at the files' own
   2081 / 2560 proportion (set from the attachment), so nothing is cropped. */
.ws-art .pf-frame { background-color: transparent; }
/* APPROVED (14 Nov 2026): Metropolitan Rhythm's file carries a 1–2px #EB0D8C line round its canvas; 2 CSS px of
   transparent edge are clipped on every side. The file is unchanged. */
.ws-trim .pf-frame img { clip-path: inset(2px); }

/* 5 · Supporting images: equal fitted 4:3 frames in a small local grid, two across on 12 and 4 columns, one per row on
   8. A single image (Cairn Balance) takes one cell. The fit padding is a fixed 12px inside this grid only. */
.ws-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pf-space-s) var(--pf-grid-gap); align-items: start; }
@container pf-section (min-width: 600px) and (width < 1024px) {
  .ws-evidence { grid-template-columns: minmax(0, 1fr); }
}
.ws-evidence .pf-frame { --pf-ratio: 4 / 3; }
.ws-evidence .pf-frame--fit img { padding: var(--pf-space-xs); }
.ws-evidence .pf-caption { overflow-wrap: break-word; }

/* 6 · Viewer: the three transparent bottle artworks (their larger originals) on the surface ground inside the dark
   viewer, so the grey ink, clear glass and QR codes read (as Occamy's light ground). Every other slide, including the
   page's other PNG (the Eat Well reference), keeps the dark viewer. */
.pswp__img:is([src$="/skyline-concept.png"], [src$="/sip-well-concept2.png"], [src$="/cairn-balance-concept.png"]):not(.pswp__img--placeholder) { background-color: var(--pf-color-surface); }
