/* ---------- Praxis Impact case study (Nov 1, 2026) ----------
   Shared components in Praxis lavender. Uses the colour, spacing and motion tokens only. */

/* One tint, not a rainbow: insight cards, the At a glance panel and the outcome numbers */
.cs-praxis .cards li { --tint: var(--cs-tint); }
.cs-praxis .gc, .cs-praxis .gc[data-side] { --tint: var(--cs-tint); }
.cs-praxis #outcomes .oc-stats li { background: var(--cs-tint); }
.cs-praxis #outcomes .oc-lesson, .cs-praxis #outcomes .oc-lesson + .oc-lesson { border-left-color: var(--cs-accent); }

/* Hero: the final dashboard, framed like the other hero visuals */
.hero-intro .hero-proto img {
  display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .3);
}

/* Captions under images: muted, small, never faded with opacity */
.cs-praxis figure > figcaption { margin-top: var(--r-cap); font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Text beside an image: a new sub-topic inside a section */
.cs-praxis section > .split { margin-top: var(--r-sub); align-items: center; }
.cs-praxis section > .split figure { margin: 0; }
.cs-praxis section > .split .prose h3 { margin-top: 0; }
.cs-praxis section > * + .hmw-pair, .cs-praxis section > * + .fixes { margin-top: var(--r-tt); }
.cs-praxis section > .fixes + .ph-grid { margin-top: var(--r-tm); }
.cs-praxis section > .chips { margin-top: 16px; }

/* ---------- Image frame: every research, testing and design image sits in the same box ----------
   One width (the content column, or its grid cell), one shape per row, the image centred inside.
   Images are never stretched past their real size, so small exports stay sharp instead of blurry. */
.cs-praxis .zoom.frame {
  --fr: 16 / 10;
  display: flex; align-items: center; justify-content: center; aspect-ratio: var(--fr);
  padding: clamp(12px, 2.4vw, 28px); border-radius: 12px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 3%, var(--surface));
}
.cs-praxis .zoom.frame img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; border: 0; border-radius: 4px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent);
}
/* side-by-side images share one squarer shape so their tops, bottoms and captions line up */
.cs-praxis .ph-grid .zoom.frame { --fr: 4 / 3; }

/* ---------- Size by importance ----------
   Large: full column width (concept map, session notes, setup wizard, final screens).
   Medium: two in a row, or beside the text (interviews, persona, competitors, wireframes, style guide).
   Small: supporting documents beside their paragraph, or three in a row (sprint brief, survey, test plan). */
.cs-praxis section > .split.aside { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.cs-praxis section > .split.aside .prose p:first-child { margin-top: 0; }
.cs-praxis .ph-grid.trio .zoom.frame { --fr: 1; }
/* rhythm around side-by-side blocks: text → block 40, block → whatever follows 64 (phones 32 / 48) */
.cs-praxis.cs section > .prose + .split.aside { margin-top: var(--r-tt); }
.cs-praxis.cs section > .split + * { margin-top: var(--r-mt) !important; }
@media (max-width: 760px) {
  .cs-praxis section > .split.aside { grid-template-columns: minmax(0, 1fr); }
  .cs-praxis section > .split.aside figure { max-width: 360px; }
}
@media (max-width: 720px) { .cs-praxis .ph-grid.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 520px) { .cs-praxis .ph-grid.trio { grid-template-columns: minmax(0, 1fr); gap: var(--r-mm); } .cs-praxis .ph-grid.trio figure { max-width: 360px; } }
.cs-praxis .zoom.frame:focus-visible, .cs-praxis .zoom.crop:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Very tall artefacts (design system, inspiration board, persona) fill the same kind of box and show their top;
   the full image opens on click */
.cs-praxis .zoom.crop img {
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top center;
  border-radius: 12px; border: 1px solid var(--line);
}

/* Wireframe progression inside each design problem: low fidelity, then mid fidelity */
.hmw-pair .steps { display: grid; gap: var(--r-mm); }
.hmw-pair .steps figure { margin: 0; }

/* Final screens: each one large with a short line above it */
.cs-praxis .feature-stack figure { margin: 0; }

@media (max-width: 720px) {
  .cs-praxis .ph-grid.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cs-praxis .ph-grid.stack { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Research rebuild (Nov 2, 2026) ----------
   Themes, sticky-note evidence, personas, the list/board/grid choice and the test-note key.
   Tokens only, except the sticky-note yellow, which stays the same on every page and theme. */

/* Spacing for the new blocks, following the in-section rhythm */
.cs.cs.cs-praxis section > * + :is(.themes, .personas, .notes, .key) { margin-top: var(--r-tt) !important; }
.cs.cs.cs-praxis section > .prose + .options { margin-top: var(--r-tt) !important; }
.cs.cs.cs-praxis section > * + .pivot { margin-top: var(--r-tm) !important; }
.cs.cs.cs-praxis section > * + .notes-label { margin-top: var(--r-cap) !important; }
.cs.cs.cs-praxis section > .key + figure { margin-top: 16px !important; }
.cs.cs.cs-praxis section > :is(.notes-label, .themes, .personas, .notes, .pivot, .options) + :is(figure, .ph-grid) { margin-top: var(--r-tm) !important; }
.cs.cs.cs-praxis section > :is(.notes-label, .themes, .personas, .notes, .pivot, .options) + .prose { margin-top: var(--r-mt) !important; }
.cs.cs.cs-praxis section > :is(figure, .ph-grid) + .split { margin-top: var(--r-mt) !important; }

/* A one-line turn in the story: the takeaway that leads into what comes next */
.cs-praxis .pivot {
  max-width: 62ch; margin-bottom: 0; padding-left: 20px; border-left: 3px solid var(--cs-accent);
  font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.4; color: var(--text);
}

/* Sticky notes: evidence in the team's own notes. Always sticky-note yellow, in light and dark */
.cs-praxis .notes { display: grid; gap: 12px; }
.cs-praxis .note {
  margin: 0; padding: 14px 16px; background: #fff3a3; color: #2b2a1f;
  font: 400 15px/1.45 var(--font-body); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .35); rotate: -1deg;
}
.cs-praxis .note:nth-child(even) { rotate: 1deg; }
.cs-praxis .notes-label { margin-bottom: 0; font-size: 14px; color: var(--muted); }
.cs-praxis .notes.wall-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* Three themes: what we heard, the notes behind it, what it led to */
.cs-praxis .themes { list-style: none; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cs-praxis .theme {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.cs-praxis .theme-num, .cs-praxis .hats-label {
  margin: 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.cs-praxis .theme-num::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; background: var(--cs-accent); border-radius: 2px; }
.cs-praxis .theme h4, .cs-praxis .persona h4 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; }
.cs-praxis .theme > p:not([class]) { margin: 0; font-size: var(--fs-card); line-height: 1.55; }
.cs-praxis .theme .notes { margin: 4px 0; }
.cs-praxis .theme-led { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-card); line-height: 1.55; }

/* Personas: who they are, in their words, and how many hats they wear */
.cs-praxis .personas { list-style: none; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cs-praxis .persona {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--cs-tint); border-radius: var(--radius);
}
.cs-praxis .persona-role { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cs-praxis .persona blockquote {
  margin: 4px 0; padding-left: 14px; border-left: 3px solid var(--cs-accent);
  font: 400 16px/1.5 var(--font-body); font-style: normal; color: var(--text);
}
.cs-praxis .hats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-praxis .hats li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 1.3; }
.cs-praxis .persona-more {
  align-self: flex-start; margin-top: auto; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 14px var(--font-body); cursor: pointer; transition: border-color .2s ease;
}
.cs-praxis .persona-more:hover { border-color: var(--text); }
.cs-praxis .persona-more:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* List, board or grid: text-only options, the chosen one outlined in the accent */
.cs-praxis .options .option { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cs-praxis .options .option.picked { border: 2px solid var(--cs-accent); background: var(--cs-tint); }
.cs-praxis .option .badge { font-size: 14px; }
.cs-praxis .option.picked .badge { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--cs-accent); }
.cs-praxis .option dd { color: var(--text); }

/* Colour key for the test notes */
.cs-praxis .key { list-style: none; margin-bottom: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.cs-praxis .key li { display: flex; align-items: center; gap: 8px; }
.cs-praxis .key i { width: 16px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.cs-praxis .key .k-red { background: #f6a49a; }
.cs-praxis .key .k-green { background: #86dba5; }
.cs-praxis .key .k-yellow { background: #ffd966; }
.cs-praxis .key .k-blue { background: #80d4ee; }

@media (max-width: 860px) {
  .cs-praxis .themes, .cs-praxis .personas { grid-template-columns: minmax(0, 1fr); }
  .cs-praxis .notes.wall-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cs-praxis .notes.wall-notes { grid-template-columns: minmax(0, 1fr); }
  .cs-praxis .theme, .cs-praxis .persona { padding: 20px; }
}
.cs.cs.cs-praxis section > .hmw-pair + .prose { margin-top: var(--r-sub) !important; }
.cs.cs.cs-praxis section > .notes + .notes-label { margin-top: 20px !important; }
.cs-praxis .zoom.frame[style*="18 / 5"] { padding: clamp(8px, 1.2vw, 14px); }
/* Small labels on lavender stay full-strength text, so they pass 7:1 in light and dark */
.cs-praxis .persona-role, .cs-praxis .persona .hats-label, .cs-praxis .theme-num { color: var(--text); }
