/* Case file pages (/case-files/01, /case-files/02), rendered from
   _case-files/cases.json. Built from parts the site already has: the
   /diagnostic-booked hero, bands, numbered timeline nodes, result rows and
   video box (diagnostic-booked.css), the homepage stat tiles (.s52) and the
   CTA pill (.s84). No new colors. */

/* Hero, then the tiles and the video breakdown under it */
.cf-hero .db-h1 { max-width: 22ch; }
.cf-hero .db-h1 .s14 { white-space: nowrap; }   /* keep the accent phrase on one line */
.cf-top { padding-top: 56px; padding-bottom: 104px; }
.cf-tiles { margin-top: 0; }
.cf-video { margin-top: 48px; }

/* Bands: each block is one band, alternating dark and light */
.db-band { position: relative; }
.cf-para { max-width: 68ch; }

/* What was built, in order: numbered nodes on one Action Blue line */
.cf-steps { --node: 44px; list-style: none; margin: 8px 0 0; padding: 0; }
.cf-step { position: relative; padding: 0 0 40px calc(var(--node) + 32px); }
.cf-step:last-child { padding-bottom: 0; }
.cf-step:not(:last-child)::after {
  content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); width: 2px;
  top: var(--node); bottom: 0; background: #2F6FED;
}
.cf-step .db-node { top: 0; }
.cf-step-lead { margin: 0; padding-top: 9px; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; color: #FFFFFF; }
.cf-step .db-body { margin-top: 10px; }

/* What moved: one row per measure, label and value side by side */
.cf-moved { margin: 0; }
.cf-moved-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; align-items: baseline; }
.cf-moved-label { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.66); }
.cf-moved-value { margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; color: #2F6FED; }

/* Takeaway, testimonial and the note on the numbers */
.cf-quote { margin-top: 48px; }
.cf-note { margin-top: 40px; max-width: 68ch; }

/* Closing CTA and the link to the other case file */
.cf-cta .db-body { margin-top: 16px; }
.cf-cta .s84 { margin-top: 32px; }
.cf-next { margin-top: 40px; }

/* ---- light grounds ---- */
.band-light .cf-moved-label, html[data-theme="light"] .cf-moved-label { color: #5C6672; }
.band-light .cf-moved-value, html[data-theme="light"] .cf-moved-value { color: #2F6FED; }
html[data-theme="light"] .cf-step-lead { color: #0F2A44; }

/* ============================= phone, <= 560px ========================= */
@media (max-width: 560px) {
  .cf-top { padding-top: 40px; padding-bottom: 72px; }
  .cf-video { margin-top: 32px; }
  .cf-steps { --node: 34px; }
  .cf-step { padding-left: calc(var(--node) + 18px); padding-bottom: 32px; }
  .cf-step-lead { padding-top: 5px; font-size: 20px; }
  .cf-moved-row { grid-template-columns: 1fr; }
  .cf-moved-value { font-size: 26px; }
}
