/* Styles of /smartlayers/ only (moved out of its <style> block on 2026-11-10).
   Loaded after the shared sheets, at the same place the block was, so the
   cascade is unchanged. Rules shared by several pages go in /css. */

/* SmartLayers, page-specific only. Everything structural comes from
   css/case-page.css; this adds the part openers (the app, the website and
   brand) and the duo of illustrations. The editorial rows (text beside its
   figures) are .cp-ed in css/case-page.css. All of it sits on the content
   column lines (9 or 12 on desktop, 8, 4), nothing is a fixed pixel position. */

/* ---------- PART OPENER: name (h3), then what the project was ---------- */
body.case-page .cp-block .sl-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
body.case-page .cp-block .sl-kicker + p { margin-top: calc(var(--v-gutter) * 0.75); }

/* ---------- DUO: two illustrations side by side (5 + 4 of the nine content
   columns, 7 + 5 of the twelve above 1200px) ---------- */
body.case-page .cp .sl-duo { align-items: start; }
body.case-page .cp .sl-duo > figure { margin: 0; min-width: 0; }
body.case-page .cp .sl-duo > figure:nth-of-type(1) { grid-column: 1 / span 5; }
body.case-page .cp .sl-duo > figure:nth-of-type(2) { grid-column: 6 / span 4; }
@media (min-width: 75.0625em) {
  body.case-page .cp .sl-duo > figure:nth-of-type(1) { grid-column: 1 / span 7; }
  body.case-page .cp .sl-duo > figure:nth-of-type(2) { grid-column: 8 / span 5; }
}

/* ---------- TABLET (8 columns) and PHONE (4): the duo stacks ---------- */
@media (max-width: 63.99em) {
  body.case-page .cp .sl-duo {
    display: grid;
    grid-template-columns: repeat(var(--g-cols), minmax(0, 1fr));
    column-gap: var(--g-gutter);
    row-gap: var(--cp-gap);
  }
  body.case-page .cp .sl-duo > figure:nth-of-type(1) { grid-column: 1 / -1; }
  body.case-page .cp .sl-duo > figure:nth-of-type(2) { grid-column: 1 / span 4; }
}
@media (max-width: 37.49em) {
  body.case-page .cp .sl-duo > figure:nth-of-type(2) { grid-column: 1 / -1; }
}

/* The hero crop keeps the useful part of the screen in view (was inline). */
body.case-page .cp-hero img.sl-hero-img { object-position: 72% 50%; }
