/* Case study pages. Load after style-new.css; uses its color and type tokens. */

.crumb { font: .8rem/1.5 var(--f-mono); color: var(--ink-soft); margin: 0 0 10px; }
.crumb a { color: var(--ink-soft); }
.dek { font: 400 1.15rem/1.5 var(--f-display); color: var(--ink-soft); max-width: 60ch; margin: 0 0 18px; text-wrap: balance; }

/* Sub-sections inside a section (Growth Metrics, User Interviews, ...) */
.article h3 { scroll-margin-top: 20px; }

/* Full-width screenshots */
.shot { margin: 22px 0 26px; max-width: 900px; }
.shot img {
  display: block; width: 100%; max-width: 100%; height: auto;
  border: 1px solid var(--rule); background: var(--panel);
}
.shot figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; max-width: 68ch; }

/* Headline numbers */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin: 14px 0 22px; max-width: 900px;
}
.stat { background: var(--paper); padding: 14px 16px; min-width: 0; }
.stat b { display: block; font: 400 1.7rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.35; }

/* Pull quote */
.pull {
  margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ink);
  font: 400 1.2rem/1.5 var(--f-display); max-width: 60ch;
}
.pull cite { display: block; font: normal .8rem var(--f-mono); color: var(--ink-soft); margin-top: 8px; }

/* Design Thinking lists */
.principles { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; gap: 14px; max-width: 68ch; }
.principles li { padding-left: 16px; border-left: 1px solid var(--rule); }
.principles b { display: block; font-weight: 600; }

.sequence { list-style: none; padding: 0; margin: 12px 0 22px; counter-reset: step; display: grid; gap: 0; max-width: 68ch; }
.sequence li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.sequence li:last-child { border-bottom: 1px solid var(--rule); }
.sequence li::before { content: counter(step, decimal-leading-zero); font: 500 .85rem/1.6 var(--f-mono); color: var(--ink-soft); }
.sequence b { font-weight: 600; }

.tag-types { padding-left: 1.2em; max-width: 68ch; }
.tag-types li { margin-bottom: 6px; }

/* Draft prompts: visible on purpose so nothing ships half-written. Delete each one once its section is written. */
.todo {
  border: 1px dashed var(--passive); background: var(--panel);
  padding: 10px 14px; margin: 10px 0 18px; max-width: 68ch; font-size: .9rem; color: var(--ink-soft);
}
.todo::before {
  content: "To write"; display: block; margin-bottom: 4px;
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--passive);
}

/* Next/previous case study */
.next-case { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; }

/* Multi-project case studies: each project told as Problem / Key decision / What shipped / Result */
.project-label { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 2.6em 0 -1.4em; }
.beat { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 1.6em 0 .5em; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 22px 0 8px; max-width: 900px; }
.pair figure { margin: 0; min-width: 0; }
.pair img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--panel); }
.pair figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
.diagram { margin: 22px 0 26px; max-width: 900px; border: 1px solid var(--rule); background: var(--paper); padding: 16px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }
.diagram figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }
.shot.narrow { max-width: 520px; }

/* Customer review quotes */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 14px 0 10px; max-width: 900px; }
.testimonial { margin: 0; padding: 16px 18px; border: 1px solid var(--rule); background: var(--panel); display: grid; gap: 10px; align-content: space-between; min-width: 0; }
.testimonial blockquote { margin: 0; font: 400 1rem/1.55 var(--f-display); }
.testimonial figcaption { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }
.testimonial figcaption b { color: var(--ink); font-weight: 600; }
.source-note { font: .78rem/1.5 var(--f-mono); color: var(--ink-soft); max-width: 68ch; }

.shot .duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: center;
}
