/* Second-edition case studies. Everything is open on the page, the work gets more room than the
   words, and each section is built from a few plain blocks (text, figures, numbers, lists). */
.case-study.cs2 { --cs2-gutter: clamp(24px, 4.5vw, 64px); max-width: 1200px; }
/* Every band keeps the same side margin inside the paper, so nothing touches its edge. */
.case-study.cs2 :is(.cs-hero, .cs-reader, .cs2-summary, .cs2-leadwork) { padding-inline: var(--cs2-gutter); }
.case-study.cs2 .cs-hero { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(44px, 5vw, 72px); column-gap: clamp(32px, 5vw, 72px); }
.cs2 .cs-reader { grid-template-columns: 170px minmax(0, 840px); gap: 56px; padding-top: clamp(48px, 5vw, 72px); }
.cs2 .cs2-summary { padding-block: clamp(28px, 3.5vw, 44px); }

/* ---- Facts under the title: role, team, when, where it runs ---- */
.cs2 .cs2-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 32px; border-top: 1px solid var(--cs-line); }
.cs2-facts > div { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--cs-line); }
.cs2-facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cs-dim); }
.cs2-facts dd { margin: 5px 0 0; font-size: 16px; line-height: 1.5; color: var(--cs-ink); }

.cs2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cs2-link { display: inline-flex; align-items: center; gap: 18px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--cs-ink); color: var(--cs-ink); font-size: 16px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.cs2-link:hover { background: var(--cs-ink); color: var(--cs-paper) !important; }

/* ---- In short: the whole story in three or four lines ---- */
.cs2-summary { padding: 36px 48px; background: var(--cs-wash); border-bottom: 1px solid var(--cs-line); }
.case-study .cs2-summary h2 { margin-bottom: 14px; font: 600 13px/1.6 var(--cs-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cs-accent); }
.case-study .cs2-summary ul { display: grid; gap: 10px; max-width: 80ch; padding: 0; list-style: none; }
.cs2-summary li { position: relative; padding-left: 24px; font-size: 19px; line-height: 1.6; color: var(--cs-ink); }
.cs2-summary li::before { content: ''; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--cs-accent); }

/* ---- The finished work, large, before any process ---- */
.cs2-leadwork { padding: 44px 48px 0; }

/* ---- Sections ---- */
.cs2 .cs2-section > * + * { margin-top: 24px; }
.cs2 .cs2-section > h2 + * { margin-top: 0; }
.cs2 .cs2-section > p { max-width: 68ch; font-size: 18px; line-height: 1.8; color: var(--cs-ink); }
.cs2 .cs2-section > p + p { margin-top: 16px; }
.cs2 .cs2-section > .cs2-lead-line { max-width: 34ch; font-family: var(--cs-display); font-size: 27px; line-height: 1.38; letter-spacing: -.015em; }
.cs2 .cs2-section > .cs2-figures, .cs2 .cs2-section > .cs2-figures + * { margin-top: 32px; }

/* ---- Figures: every one opens at full size and says what to look at ---- */
.case-study .cs2-figure { margin: 0; }
.cs2-figure a { display: block; border: 1px solid var(--cs-line); background: var(--cs-panel); }
.cs2-figure img { display: block; width: 100%; height: auto; }
.cs2-figure figcaption { max-width: 72ch; margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--cs-dim); }
.cs2-figure-plain a { border: 0; background: none; }
.cs2-figure-tall img { max-height: 760px; object-fit: contain; object-position: top center; }
.cs2-figures { display: grid; gap: 26px 20px; align-items: start; }
.cs2-l-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs2-l-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs2-l-phones { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cs2-l-wide-narrow { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

/* ---- Numbers ---- */
.cs2 .cs2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; border: 1px solid var(--cs-line); background: var(--cs-line); }
.cs2-stats > div { padding: 18px 20px; background: var(--cs-paper); }
.cs2-stats dt { font: var(--cs-title-weight, 500) 34px/1.1 var(--cs-display); letter-spacing: -.02em; color: var(--cs-accent); }
.cs2-stats dd { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--cs-dim); }

/* ---- Lists of points and steps ---- */
.cs2 .cs2-points, .cs2 .cs2-steps, .cs2 .cs2-list { display: grid; gap: 16px; max-width: 72ch; padding: 0; list-style: none; }
.cs2-points li, .cs2-steps li { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--cs-accent); }
.cs2-points strong, .cs2-steps strong { font-size: 17px; line-height: 1.5; color: var(--cs-ink); }
.cs2-points span, .cs2-steps span { font-size: 16.5px; line-height: 1.7; color: var(--cs-ink); }
.cs2-steps { counter-reset: cs2-step; }
.cs2-steps li { counter-increment: cs2-step; }
.cs2-steps strong::before { content: counter(cs2-step) '. '; color: var(--cs-accent); font-variant-numeric: tabular-nums; }
.cs2-list li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.7; color: var(--cs-ink); }
.cs2-list li::before { content: ''; position: absolute; left: 0; top: .8em; width: 10px; height: 2px; background: var(--cs-accent); }

/* ---- Asides: what was ruled out, a constraint, a caveat ---- */
.cs2-aside { max-width: 72ch; padding: 18px 20px; border-left: 3px solid var(--cs-accent); background: var(--cs-soft); }
.cs2 .cs2-aside p { font-size: 16.5px; line-height: 1.7; color: var(--cs-ink); }
.cs2-quote { max-width: 60ch; margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--cs-accent); }
.cs2 .cs2-quote p { font: 400 23px/1.45 var(--cs-display); color: var(--cs-ink); }
.cs2-quote footer { margin-top: 8px; font-size: 14px; color: var(--cs-dim); }

/* ---- Small tables (stack, trade-offs) ---- */
.cs2-table { overflow-x: auto; }
.cs2-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.cs2-table th, .cs2-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--cs-line); text-align: left; vertical-align: top; color: var(--cs-ink); }
.cs2-table thead th { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cs-dim); }
.cs2-table tbody th { font-weight: 600; white-space: nowrap; }

/* ---- Closing links ---- */
.case-study .cs2-foot h2 { font-family: var(--cs-display); font-size: 28px; line-height: 1.3; }
.cs2-foot .cs2-actions { margin-top: 18px; }
.cs2 .cs2-share { margin-top: 18px; font-size: 15px; color: var(--cs-dim); }

@media (max-width: 1000px) {
  .cs2 .cs-reader { grid-template-columns: 140px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  .cs2-summary li { font-size: 17.5px; }
  .cs2-leadwork { padding-top: 28px; }
  .cs2 .cs2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs2 .cs2-section > p { font-size: 17px; }
  .cs2 .cs2-section > .cs2-lead-line { font-size: 23px; }
  .cs2-l-two, .cs2-l-three, .cs2-l-wide-narrow { grid-template-columns: 1fr; }
  .cs2-l-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs2-stats dt { font-size: 28px; }
}
@media print {
  .cs2-actions, .cs2-foot { display: none; }
  .cs2-figure { break-inside: avoid; }
}
