/* ==========================================================================
   PUBLIC CASE-STUDY OVERLAY  (case-study-public.css)
   --------------------------------------------------------------------------
   Loads AFTER valere.css + case-study.css on the PUBLIC, attributed
   case-study pages (/case-studies/*). First consumer: Strive Medical
   (/case-studies/strive-medical/), which is the PAC case-study TEMPLATE.
   Every future public case study shares this sheet, so keep rules generic.
   Never edit valere.css or case-study.css for a public page's needs
   (MODULES.md spin-off rule 2): page/template overrides live here.

   Brand tokens in play (from valere.css):
     Navy #003262 (headlines, structure) . Light Blue #51B7E7 (connectivity)
     Seafoam #00C29B (Enable More / outcomes) . Orange #F88024 (Execution)
     Body Gray #4D4D4D (body copy) . White #FFFFFF (primary canvas)
   ========================================================================== */

/* --------------------------------------------------------------------------
   S4 — AUTOMATION WINDOW: per-panel descriptive lede
   The shared .cs-panel-head is display:none (proposal chrome keeps panel
   names in the tab strip only). Public pages add ONE short descriptive line
   above each panel's flow. Italic = the descriptive-line role under a head
   (typography rule: italic is never emphasis). White-muted on the navy
   window body (#003262).
   -------------------------------------------------------------------------- */
.csp-panel-lede {
  margin: 0 auto clamp(16px, 2.5vw, 26px);
  max-width: var(--p1-max); /* one prose width site-wide (Caleb 2026-07-07) */
  text-align: center;
  font-size: var(--fs-body);
  font-style: italic;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   S6 — CULTURE SHIFT: two stacked pull quotes with a connecting line between
   them. The bridge paragraph reuses .cs-head-p (centered, 70ch); this only
   spaces it away from the quote cards above and below.
   -------------------------------------------------------------------------- */
.csp-quote-bridge { margin-top: clamp(28px, 5vw, 44px); }

/* --------------------------------------------------------------------------
   STRIVE CUSTOMER STORY additions (11/04/2026), first used on
   /resources/blog/valere-health-and-strive-medical-scalable-automation-partnership/
   -------------------------------------------------------------------------- */

/* S1 hero: small kicker over the H1 (white-muted on navy #003262) */
.csp-hero-kicker {
  display: block; margin: 0 0 10px;
  font-size: var(--fs-caption); font-weight: var(--w-bold);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--light-blue);                       /* Light Blue #51B7E7, bold, on navy */
}
.cs-hero--split .hero-title { text-wrap: balance; }
.cs-hero--split .cs-hero-lede { text-wrap: pretty; }

/* S1 hero: the customer's headline quote on a white card. Navy -> light blue
   flow rule = her quotes' accent across the page. */
.csp-hero-quote {
  margin: 0; position: relative; text-align: left;
  background: #fff; border-radius: 14px;
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-window);
}
.csp-hero-quote__q { margin: 0; }
.csp-hero-quote__q p {
  margin: 0; max-width: none;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.45;
  color: var(--navy); text-wrap: pretty;
}
.csp-hero-quote__q p::before { content: "\201C"; color: var(--light-blue); font-weight: var(--w-bold); }
.csp-hero-quote__q p::after  { content: "\201D"; color: var(--light-blue); font-weight: var(--w-bold); }
.csp-hero-quote__by {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(18px, 2.4vw, 24px); padding-top: clamp(16px, 2vw, 20px);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-caption); font-style: italic; color: var(--body-gray); line-height: 1.45;
}
.csp-hero-quote__by img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.csp-hero-quote__by strong { display: block; font-style: normal; font-size: var(--fs-body); color: var(--navy); }

/* Pull quotes that follow a section head or a card grid */
.csp-quote-gap { margin-top: clamp(32px, 5vw, 52px); }

/* S5 rollout: six step cards, each with an orange icon tile (Execution) */
.csp-steps { margin-top: clamp(28px, 4vw, 44px); text-align: left; }
.csp-step__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 10px;
  background: color-mix(in srgb, var(--orange) 12%, #fff);
  color: var(--orange); font-size: 22px;           /* Orange #F88024 */
}
.csp-step h3 { font-size: var(--fs-h3); color: var(--navy); text-wrap: balance; }   /* H3 20px Bold, navy (Caleb, 11/04/2026) */
.csp-step p  { font-size: var(--fs-body); line-height: 1.55; text-wrap: pretty; }
@media (min-width: 621px) and (max-width: 820px) {
  .csp-steps { grid-template-columns: repeat(2, 1fr); }
}
/* Phone: compact rows (icon left, text right) so six steps do not run six screens */
@media (max-width: 620px) {
  .csp-steps { gap: 12px; }
  .csp-step {
    display: grid; grid-template-columns: 40px 1fr; column-gap: 14px;
    padding: 16px 18px;
  }
  .csp-step__icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; font-size: 20px; }
  .csp-step h3 { margin: 2px 0 4px; }
}
/* White cards on the off-white tint band (the base .card is off-white) */
.section--tint .csp-step { background: #fff; }

/* --------------------------------------------------------------------------
   ROUND 2 (11/04/2026)
   -------------------------------------------------------------------------- */

/* S1 hero: Strive's own logo (white wordmark) over the kicker */
.csp-hero-brand { display: block; width: clamp(150px, 16vw, 200px); height: auto; margin: 0 0 clamp(16px, 2.4vw, 24px); }
@media (max-width: 860px) { .csp-hero-brand { margin-left: auto; margin-right: auto; } }

/* STICKY SECTION SUB-NAV — links-only variant, same rules as /technology.
   Body Gray links, Navy active text, Orange #F88024 active underline. */
.site-header { top: 0; z-index: 70; }
.subnav {
  position: sticky; top: var(--subnav-top, 72px); z-index: 60;
  background: var(--off-white);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.subnav__inner { display: flex; align-items: center; gap: 6px; padding: 8px 0; min-height: 52px; }
.subnav__links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 auto; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__link {
  white-space: nowrap; text-decoration: none;
  color: var(--body-gray); font-size: 14px; font-weight: var(--w-medium);
  padding: 8px 12px; border-radius: 6px;
  transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.subnav__link:hover { color: var(--navy); background: rgba(0, 50, 98, .05); }
.subnav__link.is-active { color: var(--navy); font-weight: var(--w-bold); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 4px; }
.subnav__link:focus-visible { outline: 3px solid var(--light-blue); outline-offset: 2px; }
@media (max-width: 640px) { .subnav__link { font-size: 13px; padding: 8px 9px; } }
/* a jump lands below both sticky bars (JS sets --jump-offset) */
main section[id] { scroll-margin-top: var(--jump-offset, 130px); }

/* S4: seven tabs share one row on desktop */
.csp-window .cs-tab { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }

/* S6 RESULTS: big outcome numbers. Navy #003262 cards, seafoam #00C29B
   numbers (outcome), white labels. Headline row large, shift row medium. */
.csp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.csp-stats--big { margin-top: clamp(28px, 4vw, 48px); }
.csp-stats--shift { margin-top: 14px; }
.csp-stat {
  background: var(--navy); border-radius: 14px; text-align: center;
  padding: clamp(22px, 3vw, 34px) 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.csp-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-window); }
@media (prefers-reduced-motion: reduce) { .csp-stat { transition: none; } .csp-stat:hover { transform: none; } }
.csp-stat__num { white-space: nowrap; font-weight: var(--w-bold); color: var(--seafoam); line-height: 1; }
.csp-stats--big .csp-stat__num { font-size: clamp(32px, 3.6vw, 44px); }   /* ~65% of the first pass (68px read as too big, Caleb 11/04/2026) */
.csp-stats--shift .csp-stat__num { font-size: clamp(24px, 2.8vw, 32px); }
.csp-stat__label { font-size: var(--fs-body); font-weight: var(--w-bold); color: #fff; line-height: 1.3; text-wrap: balance; }
.csp-stats + .cs-statnote { margin-top: 18px; }
@media (max-width: 720px) {
  .csp-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .csp-stats--shift { margin-top: 12px; }
}

/* No orphans in short centered copy: quotes, step labels, stat labels and
   card sub-lines balance their lines (Caleb, 11/04/2026). */
.csp-hero-quote__q p, .cs-step__t, .csp-stat__label,
.cs-minicard__sub, .spine-endpoint__name { text-wrap: balance; }
/* Phone: the before/after row becomes full-width rows (number left, label
   right) so every label sits on one line. */
@media (max-width: 720px) {
  .csp-stats--shift { grid-template-columns: 1fr; gap: 10px; }
  .csp-stats--shift .csp-stat { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; padding: 16px 20px; }
  .csp-stats--shift .csp-stat__num { min-width: 128px; }
}
/* Phone: the 01/02/03 step strip stacks into rows (number left, label right)
   instead of three 70px columns that put one word on each line. */
@media (max-width: 620px) {
  .csp-window .cs-steps { grid-template-columns: 1fr; }
  .csp-window .cs-step { display: flex; align-items: baseline; gap: 12px; min-height: 0; padding: 12px 16px; border-left-width: 1px; border-radius: 0; }
  .csp-window .cs-step:first-child { border-radius: 10px 10px 0 0; }
  .csp-window .cs-step__n { margin: 0; flex: none; }
  .csp-window .cs-step + .cs-step { border-top-width: 0; }
}
@media (max-width: 720px) {
  .csp-stats--shift .csp-stat { gap: 14px; }
  .csp-stats--shift .csp-stat__num { min-width: 104px; font-size: 22px; }
  .csp-stats--shift .csp-stat__label { font-size: 13px; }
}
