/* support: skin-depth — opt-in container look for a piece (piece.skin = "depth"), built ONLY from what the Dudoxx
   design system allows (dudoxx-branding design-system.md §1-3 + governance.md):
     - depth = the two-stop OKLCH ink-tinted elevation ladder (hue 262, elev-1..4) + a fill step + 3D tilt;
     - NO gradients (fill or text), NO container borders / rim lines / top or bottom strips, NO glow, NO blur;
     - cobalt (--accent) is the one action/value hue; orange (--signal) is decorative only: 8 px dots and rules;
     - tint wells = a flat colour-mix of the action hue into paper (one flat fill, not a gradient).
   Motion lives in skin-depth.js (elevation lift on landing, tilt-in, slow sway, photo drift) — all seek-pure.
   © Dudoxx UG / Acceleate Consulting - Walid Boudabbous <walid@acceleate.com> */
html.skin-depth {
  --elev-1: 0 1px 2px oklch(0.22 0.035 262 / 0.08), 0 1px 3px oklch(0.22 0.035 262 / 0.11);
  --elev-2: 0 2px 4px oklch(0.22 0.035 262 / 0.09), 0 4px 12px -2px oklch(0.22 0.035 262 / 0.14);
  --elev-3: 0 4px 8px oklch(0.22 0.035 262 / 0.10), 0 12px 32px -8px oklch(0.22 0.035 262 / 0.20);
  --elev-4: 0 8px 16px oklch(0.22 0.035 262 / 0.12), 0 24px 56px -12px oklch(0.22 0.035 262 / 0.26);
  --tint-cobalt: color-mix(in oklch, var(--brand-color-primary) 8%, var(--brand-color-paper, white));
  --r-card: 1.2cqw;
}

/* ---- surfaces: borderless, elevation + fill step -------------------------------------------------------- */
html.skin-depth :is(.card, .kpi-tile, .cta-card, .big) { border-radius: var(--r-card); background: var(--card); box-shadow: var(--elev-3); }
html.skin-depth .mk-frame { border-radius: var(--r-card); box-shadow: var(--elev-4); }
html.skin-depth .mk-frame.mk-laptop { border-radius: 0; box-shadow: none; }
html.skin-depth :is(.mk-note.is-on, .sr-step.is-on, .agenda-item.is-current) { background: var(--tint-cobalt); box-shadow: var(--elev-1); border-radius: 0.9cqw; }

/* ---- card-grid --------------------------------------------------------------------------------------------- */
html.skin-depth .cards { perspective: 120cqw; gap: 1.8cqw; }
html.skin-depth .card { transform-style: preserve-3d; }
html.skin-depth .card:not(.has-page) { padding: 1.6cqw 1.9cqw 1.9cqw; gap: 0.6cqw; }
html.skin-depth .card-img { margin-bottom: 0.6cqw; transform-origin: 50% 40%; }
/* number: a paper chip on the photo, cobalt numeral + orange signal dot — no pill gradient, no outline */
html.skin-depth .card-num { right: 1.2cqw; top: 1.2cqw; display: inline-flex; align-items: center; gap: 0.5cqw;
  padding: 0.3cqw 0.8cqw 0.3cqw 0.7cqw; border-radius: 99em; background: var(--card); box-shadow: var(--elev-2);
  font-family: var(--face-head); font-weight: 700; font-size: var(--fs-label); letter-spacing: -0.01em; color: var(--accent); }
html.skin-depth .card-num::before { content: ''; width: 0.42cqw; aspect-ratio: 1; border-radius: 50%; background: var(--signal); }
html.skin-depth .card h3 { padding-right: 0; letter-spacing: -0.01em; }
html.skin-depth .card-tag { display: inline-flex; align-items: center; gap: 0.5cqw; padding: 0.25cqw 0.9cqw; letter-spacing: 0.04em;
  color: var(--brand-color-link, var(--accent)); background: var(--tint-cobalt); }
html.skin-depth .card-tag::before { content: ''; width: 0.42cqw; aspect-ratio: 1; border-radius: 50%; background: var(--signal); }
html.skin-depth .card-stat { color: var(--brand-color-link, var(--accent)); }

/* ---- kpi-trio: value in cobalt, 8 px orange dot beside the label (governance: no strip, no line) ------------ */
html.skin-depth .kpi-row { perspective: 120cqw; }
html.skin-depth .kpi-tile { padding: 2.6cqw; }
html.skin-depth .kpi-value { color: var(--brand-color-link, var(--accent)); letter-spacing: -0.03em; }
html.skin-depth .kpi-label { display: inline-flex; align-items: center; gap: 0.7cqw; color: var(--ink); }
html.skin-depth .kpi-label::before { content: ''; flex: 0 0 auto; width: 0.5cqw; aspect-ratio: 1; border-radius: 50%; background: var(--signal); }

/* ---- chapter strap numbering: big numeral, muted total ------------------------------------------------------- */
html.skin-depth .strap-num { display: inline-flex; align-items: baseline; gap: 0.35cqw; font-family: var(--face-head); }
html.skin-depth .strap-num b { font-size: 2.6cqw; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
html.skin-depth .strap-num span { font-family: var(--face-mono); font-size: var(--fs-label); color: var(--muted); }
/* on a photo card the number chip sits on the photo, top-left; a copy-only card keeps it top-right, clear of the tag */
html.skin-depth .card.has-img .card-num { left: 1cqw; right: auto; top: 1cqw; }
