/*
 * coss-workshop.css — workshop pages (/workshops/<slug>).
 *
 * Two layers:
 *   wk-*  the page: hero band, answers, the shift, recording, resources, open
 *         questions, closing band. Structure and look follow the Clueso v2
 *         front door (prototypes/projects/clueso/v2): a neutral page in light
 *         and dark, with soft coloured lights behind frosted glass in the bands.
 *   ws-*  the slide deck: 16:9 frames, slide layouts, post-its.
 *
 * Mode: <html data-mode="light|dark"> is set before first paint by a script in
 * the page head (dark first). Slides follow the page; full screen is always dark.
 *
 * Slides are sized in em, where 1em = 1% of the slide's width (font-size: 1cqw
 * on .ws-slide). A 1600px-wide slide gives 1em = 16px, so 1.5em = 24px is the
 * smallest slide text.
 *
 * Layout rule: a line that fits the full width stays on one line. No narrow
 * text columns, no text-wrap: balance, no max-width on headings or ledes.
 * Post-its are the exception.
 *
 * Copy lives in content/workshops/<slug>.json (sync-workshop-content.mjs).
 */

/* ---------- Tokens ---------- */
.workshop-page {
  --wk-wrap: 1280px;
  --wk-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* slides and bands (light) */
  --wk-bg: var(--card);
  --wk-fg: var(--gray-12);
  --wk-muted: var(--gray-11);
  --wk-quiet: var(--gray-10);
  --wk-line: var(--gray-5);
  --wk-raised: var(--gray-2);
  --wk-accent: var(--grass-11);
  --wk-accent-fg: #ffffff;
  --wk-veil: rgb(255 255 255 / 0.25);
  --wk-note-shadow: rgb(0 0 0 / 0.16);
  --wk-glow-strength: 0.5;
}

/* Dark values for slides and bands: the dark page, and any slide shown full screen. */
html[data-mode="dark"] .workshop-page,
.ws-deck:fullscreen {
  --wk-bg: #0d0c0d;
  --wk-fg: #f5f4f5;
  --wk-muted: #a3a0a3;
  --wk-quiet: #858285;
  --wk-line: rgb(255 255 255 / 0.12);
  --wk-raised: rgb(255 255 255 / 0.06);
  --wk-accent: #CFEA55;
  --wk-accent-fg: #16201B;
  --wk-veil: rgb(255 255 255 / 0.035);
  --wk-note-shadow: rgb(0 0 0 / 0.5);
  --wk-glow-strength: 0.34;
}

/* Dark page: remap the shared COSS tokens so the top bar, drawer and footer follow. */
html[data-mode="dark"] .workshop-page {
  color-scheme: dark;
  --background: #0d0c0d;
  --page-bg: #0d0c0d;
  --foreground: #f5f4f5;
  --muted-foreground: #a3a0a3;
  --fg-subtle: #858285;
  --card: #161516;
  --popover: #1b1a1b;
  --secondary: rgb(255 255 255 / 0.08);
  --muted: rgb(255 255 255 / 0.06);
  --border: rgb(255 255 255 / 0.1);
  --border-strong: rgb(255 255 255 / 0.2);
  --input: rgb(255 255 255 / 0.16);
  --detail-line: rgb(255 255 255 / 0.1);
  --detail-soft: #a3a0a3;
  --detail-quiet: #858285;
  --footer-band-bg: #0d0c0d;
  --primary: #CFEA55;
  --primary-foreground: #16201B;
  --accent-hover: #DAF27A;
  --ring: #CFEA55;
  --focus-ring: #CFEA55;
}

html[data-mode="dark"]:has(.workshop-page) { background: #0d0c0d; color-scheme: dark; }

html:has(.workshop-page) {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.workshop-page) { scroll-behavior: auto; }
}

.workshop-page :focus-visible {
  outline: 2px solid var(--wk-accent);
  outline-offset: 3px;
}

/* Top bar: brand, the section links (sticky with the bar), then socials and the mode toggle. */
.workshop-page .detail-topbar__inner { justify-content: flex-start; flex-wrap: wrap; gap: 0 6px; }

.wk-jump {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--font-label);
  font-size: 14px;
  color: var(--muted-foreground);
}

.wk-jump::-webkit-scrollbar { display: none; }

.wk-jump a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.wk-jump a:hover { color: var(--foreground); }
.wk-jump a[aria-current="true"] { background: var(--muted); color: var(--foreground); }

/* Narrow: the links drop to their own row under the brand, still inside the sticky bar. */
@media (max-width: 860px) {
  .workshop-page .detail-brand { margin-right: auto; }
  .wk-jump { order: 5; flex: 1 0 100%; margin: 0 -6px; padding-bottom: 8px; }
  html:has(.workshop-page) { scroll-padding-top: 120px; }
}
.wk-mode { cursor: pointer; background: none; border: 0; }
html[data-mode="dark"] .workshop-page .coss-footer__meta { color: var(--fg-subtle); }

/* ---------- The frosted lights (drawn by coss-workshop.js) ---------- */
.wk-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wk-glow canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(36px) saturate(1.15);
}

.wk-glow__veil { position: absolute; inset: 0; background: var(--wk-veil); }

.wk-glow__grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Page: hero band ---------- */
/* Plain: no band, no background (Madhuri, 2026-11-19). It lines up with the sections below. */
.wk-hero {
  max-width: var(--wk-wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) clamp(16px, 3vw, 40px) clamp(28px, 4vw, 48px);
}

.wk-hero__band {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wk-eyebrow {
  margin: 0;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.wk-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(2.25rem, 4.8vw, 4.375rem);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--foreground);
}

.wk-hero__title span { display: block; }
.wk-hero__title .is-muted { color: var(--muted-foreground); }

.wk-hero__summary {
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--foreground);
}

.wk-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.wk-hero__author {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.wk-hero__author a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--wk-accent);
  font-weight: 500;
  white-space: nowrap;
}

.wk-hero__author a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wk-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
}

.wk-cue__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  font-size: 18px;
  transition: transform 0.3s var(--wk-ease);
}


/* ---------- Page: sections ---------- */
.wk-section {
  border-top: 1px solid var(--border);
  padding-block: clamp(56px, 8vw, 112px);
}

.wk-section--deck {
  margin-top: 0;
  border-top: 0;
  padding-block: 0;
}

.wk-section--deck + .wk-section { margin-top: clamp(40px, 6vw, 72px); padding-block: clamp(40px, 5vw, 64px); }

.wk-wrap {
  width: 100%;
  max-width: var(--wk-wrap);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 40px);
}

.wk-section--deck .wk-wrap { max-width: 1400px; padding-inline: 12px; }

.wk-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.wk-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--foreground);
}

.wk-h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--foreground);
}

.wk-lede {
  margin: 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--muted-foreground);
}

.wk-label {
  margin: 0 0 4px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ---------- Page: the hint in the deck's control row ---------- */
.wk-hint { margin: 0 4px 0 auto; font-size: 13px; color: var(--muted-foreground); }

.wk-hint kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font: 500 12px/1.4 var(--font-label);
  text-align: center;
}

/* ---------- Page: what to do instead ---------- */
.wk-answer {
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--border);
}

.wk-answer:last-child { padding-bottom: 0; }
.wk-answer__head { display: flex; flex-direction: column; gap: 12px; }

.wk-answer__count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.wk-answer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--foreground);
}

.wk-answer__why { display: grid; gap: 4px; margin: 4px 0 0; }
.wk-answer__why > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; }
.wk-answer__why dt { font-size: 13px; color: var(--muted-foreground); }
.wk-answer__why dd { margin: 0; font-size: 17px; line-height: 1.45; color: var(--foreground); }

.wk-answer > .wk-label { margin-top: clamp(24px, 3vw, 36px); }

.wk-answer__do {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.wk-answer__do li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
}

.wk-answer__do b { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--foreground); }
.wk-answer__do span { font-size: 16px; line-height: 1.5; color: var(--muted-foreground); }

.wk-answer__slide {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wk-answer__slide:hover { color: var(--foreground); }

/* ---------- Page: the shift ---------- */
.wk-shift {
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.wk-shift li {
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-top: 1px solid var(--border);
  font-size: clamp(1.1875rem, 2.1vw, 1.75rem);
  line-height: 1.3;
  color: var(--foreground);
}

/* ---------- Page: recording ---------- */
.wk-pending {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 28px clamp(20px, 3vw, 32px);
  border-radius: 12px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.wk-pending i { font-size: 22px; }
.wk-pending p { margin: 0; font-size: 16px; color: inherit; }

.wk-video {
  margin-top: clamp(24px, 3vw, 36px);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0c0d;
  aspect-ratio: 16 / 9;
}

.wk-video__play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.wk-video__play img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wk-video__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--wk-accent);
  color: var(--wk-accent-fg);
  font-size: 32px;
  transition: transform 0.3s var(--wk-ease);
}

.wk-video iframe { display: block; width: 100%; height: 100%; border: 0; }

.wk-chapters { display: flex; gap: 4px; margin: 12px 0 0; padding: 0 0 4px; list-style: none; overflow-x: auto; }

.wk-chapters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: 14px/1 var(--font-label);
  color: var(--muted-foreground);
  white-space: nowrap;
  cursor: pointer;
}

.wk-chapters button span { font-size: 12px; font-variant-numeric: tabular-nums; }
.wk-chapters button:hover, .wk-chapters button[aria-current] { background: var(--muted); color: var(--foreground); }

/* ---------- Page: resources ---------- */
.wk-group + .wk-group { margin-top: clamp(40px, 5vw, 64px); }

.wk-group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 24px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.wk-group__note { grid-column: 1; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted-foreground); }

.wk-install {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font: 13px/1.4 var(--font-mono);
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.wk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wk-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.wk-card:hover { border-color: var(--wk-accent); }

.wk-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.wk-card__media { position: relative; display: block; }

.wk-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgb(13 12 13 / 0.78);
  color: #fff;
  font-size: 22px;
}

.wk-card__text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.wk-card__text b { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--foreground); }
.wk-card__text > span { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }

.wk-rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }

.wk-rowlink {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.wk-rowlink b { font-size: 16px; font-weight: 600; color: var(--foreground); }
.wk-rowlink span { font-size: 15px; line-height: 1.45; color: var(--muted-foreground); }
.wk-rowlink i { color: var(--muted-foreground); transition: transform 0.25s var(--wk-ease); }
.wk-rowlink:hover b, .wk-rowlink:hover i { color: var(--wk-accent); }
.wk-rowlink:hover i { transform: translateX(3px); }

.wk-pack__files {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wk-pack__files a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.2s var(--ease);
}

.wk-pack__files a:hover { border-color: var(--wk-accent); }
.wk-pack__files i { grid-row: span 2; font-size: 22px; color: var(--wk-accent); }
.wk-pack__files b { font-size: 15px; font-weight: 600; color: var(--foreground); }
.wk-pack__files span { font: 12px/1.4 var(--font-mono); color: var(--muted-foreground); }

/* ---------- Page: open questions ---------- */
.wk-questions { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.wk-questions li { border-top: 1px solid var(--border); }
.wk-question { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.4; color: var(--foreground); }
.wk-question--open { padding: 18px 0; }

.wk-question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.wk-question summary::-webkit-details-marker { display: none; }
.wk-question summary i { color: var(--muted-foreground); transition: transform 0.2s var(--ease); }
.wk-question[open] summary i { transform: rotate(180deg); }
.wk-question p { margin: 0; padding: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Page: closing ---------- */
.wk-close {
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 7vw, 96px);
}

.wk-close__band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  max-width: var(--wk-wrap);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 40px);
}

.wk-close__text { display: flex; flex-direction: column; gap: 14px; }
.wk-close__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.workshop-page .coss-footer { margin-top: 0; }

/* =====================================================================
   The deck
   ===================================================================== */
.ws-deck { outline: none; }
.ws-deck:focus-visible .ws-frame.is-active { outline: 2px solid var(--wk-accent); outline-offset: 4px; }

.ws-frames { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.ws-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  container-type: size;
  border-radius: 16px;
  background: var(--wk-bg);
  box-shadow: inset 0 0 0 1px var(--wk-line);
  overflow: hidden;
  scroll-margin-top: 8px;
}

/* One slide at a time once the script is running (wide screens only). */
.ws-deck.is-ready .ws-frame { display: none; }
.ws-deck.is-ready .ws-frame.is-active { display: block; }

.ws-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 3em;
  padding: 5em;
  font-size: 1cqw; /* 1em = 1% of the slide width */
  font-family: var(--font-body);
  color: var(--wk-fg);
  line-height: 1.3;
}

.ws-slide :where(h2, h3, p, ul, ol, dl, dt, dd, figure) { margin: 0; padding: 0; }
.ws-slide :where(ul, ol) { list-style: none; }
.ws-slide :where(h2, h3, p, li, dt, dd, figcaption) { color: inherit; }

/* The lights sit behind the slide's content. */
.ws-slide > .wk-glow { z-index: 0; }
.ws-slide > .wk-glow canvas { filter: blur(2.3em) saturate(1.15); }
.ws-slide > :not(.wk-glow) { position: relative; z-index: 1; }

.ws-slide > .ws-slide__no {
  position: absolute;
  right: 2.6em;
  bottom: 2.2em;
  font-size: 1.1em;
  font-variant-numeric: tabular-nums;
  color: var(--wk-quiet);
}

/* shared slide type */
.ws-kicker {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-label);
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wk-muted);
}

.ws-h1 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 4.8em;
  line-height: 1.04;
  letter-spacing: 0;
}

.ws-h2 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 3.4em;
  line-height: 1.1;
  letter-spacing: 0;
}

.ws-lead { font-size: 2.4em; line-height: 1.25; color: var(--wk-muted); }
.ws-head { display: flex; flex-direction: column; gap: 1.2em; }
.ws-head--tight { gap: 0.9em; }
.ws-foot { font-size: 2.1em; color: var(--wk-muted); }
.ws-foot b { color: var(--wk-fg); font-weight: 600; margin-right: 0.4em; }

.ws-url { font-family: var(--font-mono); font-size: 1.5em; color: var(--wk-accent); }

.ws-dot {
  display: inline-block;
  flex: none;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #CFEA55;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14);
}

.ws-dot--yellow { background: var(--yellow-6); }
.ws-dot--grass { background: var(--grass-8); }
.ws-dot--mauve { background: var(--mauve-8); }

/* post-its: the same four colours in both modes */
.ws-postit {
  display: flex;
  align-items: center;
  padding: 0.8em 0.9em;
  border-radius: 0.2em;
  background: #CFEA55;
  color: #16201B;
  font-family: var(--font-label);
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.22;
  box-shadow: 0 0.5em 1.2em var(--wk-note-shadow);
  transform: rotate(var(--ws-tilt, 0deg));
  text-wrap: pretty;
}

.ws-postit--yellow { background: var(--yellow-6); }
.ws-postit--grass { background: var(--grass-6); }
.ws-postit--mauve { background: var(--mauve-6); }

.ws-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4em; }
.ws-row--tall { grid-auto-rows: 13em; }
.ws-row--tall .ws-postit { font-size: 1.85em; }

/* label and line pairs, one line each */
.ws-pairs { display: grid; gap: 0.9em; }
.ws-pairs > div { display: grid; grid-template-columns: 17em minmax(0, 1fr); align-items: baseline; }
.ws-pairs dt { white-space: nowrap; }
.ws-pairs dt { font-family: var(--font-label); font-size: 1.5em; font-weight: 500; color: var(--wk-quiet); }
.ws-pairs dd { font-size: 2.4em; line-height: 1.25; color: var(--wk-muted); }
.ws-pairs .is-strong dd { color: var(--wk-fg); }
.ws-pairs--notes > div { grid-template-columns: 11.5em minmax(0, 1fr); column-gap: 1.2em; }
.ws-pairs--notes dt { font-size: 2em; font-weight: 600; color: var(--wk-fg); }
.ws-pairs--notes dd { font-size: 2em; }

/* the bar: quality over revisions, a low bar and a high bar (chart rules from the dataviz skill:
   one series in the text colour, the high bar in the accent, the low bar in grey, direct labels
   in text colours, recessive axes, a surface ring on every marker) */
.ws-slide--bar { gap: 2em; }
.ws-chart { flex: 1; min-height: 0; }
.ws-chart svg { display: block; width: 100%; height: 100%; overflow: visible; font-family: var(--font-body); }
.ws-chart__axis { stroke: var(--wk-line); stroke-width: 2; }
.ws-chart__axislabel, .ws-chart__tick { fill: var(--wk-muted); font-size: 25px; }
.ws-chart__tick { font-variant-numeric: tabular-nums; }
.ws-chart__bar { stroke-width: 3; }
.ws-chart__bar--low { stroke: var(--wk-quiet); stroke-dasharray: 4 10; stroke-linecap: round; }
.ws-chart__bar--high { stroke: var(--wk-accent); }
.ws-chart__barlabel { fill: var(--wk-muted); font-size: 28px; font-weight: 600; }
.ws-chart__barlabel.is-strong { fill: var(--wk-fg); }
.ws-chart__line { fill: none; stroke: var(--wk-fg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ws-chart__dot { fill: var(--wk-fg); stroke: var(--wk-bg); stroke-width: 3; }
.ws-chart__mark { stroke: var(--wk-bg); stroke-width: 4; }
.ws-chart__mark--low { fill: var(--wk-quiet); }
.ws-chart__mark--high { fill: var(--wk-accent); }
.ws-chart__note { fill: var(--wk-muted); font-size: 28px; }
.ws-chart__note.is-strong { fill: var(--wk-fg); font-weight: 600; }

/* 1 · title */
.ws-slide--title { justify-content: flex-end; }
.ws-title { display: flex; flex-direction: column; gap: 1.6em; }

.ws-title__h {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 10.5em;
  line-height: 0.96;
  letter-spacing: 0;
}

.ws-title__sub { font-size: 3em; color: var(--wk-muted); }

/* 2 · intro */
.ws-slide--intro { justify-content: space-between; }
.ws-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 4em; }
.ws-intro__text { display: flex; flex-direction: column; gap: 1.5em; }

.ws-intro__photo {
  flex: none;
  width: 15em;
  height: 15em;
  border-radius: 50%;
  object-fit: cover;
}

.ws-facts { display: flex; flex-direction: column; gap: 0.5em; margin-top: 0.6em; font-size: 2em; }
.ws-facts li { display: flex; gap: 0.7em; }
.ws-facts li::before { content: ""; flex: none; width: 0.4em; height: 0.4em; margin-top: 0.48em; border-radius: 50%; background: var(--wk-accent); }
.ws-intro .ws-url { margin-top: 0.4em; font-size: 1.75em; }

/* the logo strip is always light, so the brand marks keep their own colours */
.ws-logos {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3em;
  padding: 1.5em 2.2em;
  border-radius: 1em;
  background: #f3f3f3;
  color: #202020;
}

.ws-logos__label { font-family: var(--font-label); font-size: 1.5em; font-weight: 500; color: #646464; white-space: nowrap; }
.ws-logos__row { display: flex; align-items: center; justify-content: space-between; gap: 2em; }
.ws-logos__logo { height: 2em; width: auto; max-width: 9em; object-fit: contain; }

/* 3, 13 · a list of one-line statements */
.ws-lines { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1em; }
.ws-lines li { display: flex; align-items: baseline; gap: 0.6em; font-size: 3.1em; line-height: 1.2; }
.ws-lines li::before { content: ""; flex: none; width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--wk-accent); transform: translateY(-0.18em); }
.ws-slide--shift .ws-h1 { font-size: 4.4em; }
.ws-slide--shift .ws-lines li { font-size: 2.45em; }

/* 4 · wall of post-its */
.ws-wall {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1.5em;
}

.ws-wall--open { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2em; }
.ws-wall--open .ws-postit { font-size: 2em; padding: 1em 1.2em; }

/* 5 · the three questions, one row each */
.ws-slide--groups { gap: 2.4em; }
.ws-slide--groups .ws-h1 { font-size: 4.2em; }
.ws-groups { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.5em; }
.ws-group { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.7em; }
.ws-group__title { display: flex; align-items: baseline; gap: 0.4em; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 2em; line-height: 1.1; }
.ws-group__title b { font-weight: inherit; }
.ws-group__title span { margin-right: 0.5em; font-family: var(--font-label); font-size: 0.75em; font-weight: 400; color: var(--wk-muted); }
.ws-group .ws-row { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.ws-group .ws-postit { padding: 0.5em 0.8em; }

/* 6, 8, 10 · a pattern */
.ws-slide--pattern { justify-content: center; gap: 3.4em; }

/* 7, 9, 11 · do this instead */
.ws-do { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.8em; }
.ws-do li { display: flex; flex-direction: column; gap: 0.5em; }
/* Onest, not the display face: these are statements to read, not headlines (Madhuri, 2026-11-19). */
.ws-do__title { font-family: var(--font-body); font-weight: 600; font-size: 2.6em; line-height: 1.15; }
.ws-do__line { font-size: 2.2em; line-height: 1.25; color: var(--wk-muted); }

/* 12 · before and after */
.ws-slide--ba { gap: 2em; }
.ws-ba { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 2.4em; min-height: 0; }
.ws-ba__col { display: flex; flex-direction: column; gap: 0.7em; min-height: 0; }
.ws-ba__col figcaption { font-family: var(--font-label); font-size: 1.5em; font-weight: 500; color: var(--wk-muted); }

/* a screenshot of real work */
.ws-shot {
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: 0.9em;
  object-fit: cover;
  object-position: left top;
  box-shadow: 0 0 0 1px var(--wk-line);
}

/* 14 · show and tell */
.ws-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.3em; }
.ws-pick__box { flex: 1; display: flex; align-items: center; gap: 2em; padding: 0 2.4em; border-radius: 1.1em; background: var(--wk-raised); box-shadow: inset 0 0 0 1px var(--wk-line); }
.ws-pick__n { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--wk-accent); color: var(--wk-accent-fg); font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 2.2em; }
.ws-pick__title { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 2.7em; line-height: 1.1; }

/* the loop, as a flow diagram under the actions it illustrates */
.ws-slide--withloop { gap: 2.2em; }
.ws-slide--withloop .ws-do { flex: none; gap: 1.4em; }
.ws-slide--withloop .ws-do li { gap: 0.4em; }
.ws-slide--withloop .ws-do__title { font-size: 2.3em; }
.ws-slide--withloop .ws-do__line { font-size: 1.9em; }
.ws-loopfig { margin-top: auto; display: flex; flex-direction: column; gap: 1em; }

.ws-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4em;
  padding-bottom: 2.6em;
}

/* the way back from Edit to Brief */
.ws-loop::after {
  content: "";
  position: absolute;
  left: 2em;
  right: 2em;
  bottom: 0;
  height: 1.7em;
  border: 0.2em solid var(--wk-accent);
  border-top: 0;
  border-radius: 0 0 1.7em 1.7em;
  opacity: 0.6;
}

.ws-loop::before {
  content: "";
  position: absolute;
  left: 1.5em;
  bottom: 1.5em;
  border: 0.6em solid transparent;
  border-top: 0;
  border-bottom: 0.9em solid var(--wk-accent);
  opacity: 0.6;
}

.ws-loop__step { position: relative; display: flex; flex-direction: column; gap: 0.4em; padding-top: 0.9em; border-top: 0.2em solid var(--wk-accent); }
.ws-loop__step:not(:last-child)::after { content: "\2192"; position: absolute; top: -0.92em; right: -1.3em; font-size: 1.8em; color: var(--wk-accent); }
.ws-loop__step b { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 2.2em; line-height: 1; color: var(--wk-fg); }
.ws-loop__step span { font-size: 1.5em; line-height: 1.3; color: var(--wk-muted); }

/* where to find everything, on the last slide */
.ws-urlline { display: flex; align-items: baseline; gap: 1em; }
.ws-urlline > span:first-child { font-size: 1.7em; color: var(--wk-muted); }
.ws-urlline .ws-url { font-size: 1.9em; }

/* ---------- Deck controls ---------- */
.ws-bar { display: none; align-items: center; gap: 8px; padding: 12px clamp(4px, 2vw, 24px) 0; }
.ws-deck.is-ready .ws-bar { display: flex; }

.ws-bar__btn { width: 44px; height: 44px; cursor: pointer; }
.ws-bar__present { min-height: 44px; gap: 8px; cursor: pointer; }
.ws-bar__present i { font-size: 16px; }
.ws-bar__btn:disabled { opacity: 0.4; cursor: default; }
.ws-bar__count { min-width: 64px; text-align: center; font: 14px/1 var(--font-label); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.ws-bar__count b { color: var(--foreground); font-weight: 600; }

/* ---------- Full screen (always dark) ---------- */
.ws-deck:fullscreen { display: grid; place-items: center; background: #0d0c0d; cursor: none; }
.ws-deck:fullscreen.is-pointing { cursor: default; }
.ws-deck:fullscreen .ws-frames { width: min(100vw, 177.778vh); }
.ws-deck:fullscreen .ws-frame { border-radius: 0; box-shadow: none; }
.ws-deck:fullscreen .ws-bar { display: none; }

/* ---------- Narrow screens: the deck becomes a scrolling list ---------- */
@media (max-width: 900px) {
  .ws-deck.is-ready .ws-frame { display: block; }
  .ws-deck.is-ready .ws-bar { display: none; }
  .ws-frame { border-radius: 10px; }
  .wk-hint { display: none; }

  .wk-answer__do { grid-template-columns: 1fr; }
  .wk-answer__why > div { grid-template-columns: 1fr; gap: 0; }
  .wk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-pack__files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-group__head { grid-template-columns: 1fr; }
  .wk-install { grid-column: 1; grid-row: auto; justify-self: start; }
  .wk-rowlink { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
  .wk-rowlink span { grid-column: 1; grid-row: 2; }
  .wk-rowlink i { grid-row: 1 / span 2; }
}

@media (max-width: 560px) {
  .wk-cards { grid-template-columns: 1fr; }
  .wk-pack__files { grid-template-columns: 1fr; }
  .wk-close__actions { width: 100%; }
}

/* ---------- Print: one slide per page ---------- */
@media print {
  @page { size: 1600px 900px; margin: 0; }
  .workshop-page > *:not(main), .wk-main > *:not(#slides), .ws-bar { display: none !important; }
  .wk-section--deck, .wk-section--deck .wk-wrap { margin: 0; padding: 0; max-width: none; }
  .ws-frames { gap: 0; }
  .ws-deck.is-ready .ws-frame, .ws-frame { display: block; border-radius: 0; break-after: page; width: 1600px; height: 900px; }
  .ws-frame, .ws-postit, .ws-logos { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-page *, .workshop-page *::before, .workshop-page *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
