/* =========================================================================
   DIRECT PAY - case-study-specific CSS
   Scope: work-direct-pay.html ONLY. Never edit styles.css to add these.
   Everything here either (a) extends an existing shared class via a new
   modifier that only activates when combined with a dp- class (zero risk
   to other pages), or (b) is a genuinely new pattern for the two signature
   visuals the handoff calls out: the hero transformation rail's state
   boundary, and the MVP-vs-Next-Phase decision tree.
   ========================================================================= */

/* --- Safe grid-size extensions (compound selectors; inert everywhere else) --- */
.process-moves.steps-6 { grid-template-columns: repeat(6, 1fr); }
.process-moves.steps-6 .pm-icon { color: var(--color-orange-text); }
@media (max-width: 900px) { .process-moves.steps-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .process-moves.steps-6 { grid-template-columns: 1fr !important; } .process-moves.steps-6 .pm-card { text-align: left; } }

.evidence-cells.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Shipped / Designed state label (hero rail + lifecycle phases) --- */
.dp-state-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-navy); margin-bottom: 12px; }
.dp-state-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-navy); flex-shrink: 0; }
.dp-state-label.designed { color: var(--color-orange-text); }
.dp-state-label.designed::before { background: var(--color-orange); }

/* Legibility on the dark hero band (navy-on-navy would otherwise be invisible) */
.hero-band .dp-state-label, .outcome-band-v3 .dp-state-label { color: rgba(255,255,255,.9); }
.hero-band .dp-state-label::before, .outcome-band-v3 .dp-state-label::before { background: rgba(255,255,255,.9); }
.hero-band .dp-state-label.designed, .outcome-band-v3 .dp-state-label.designed { color: var(--color-orange); }
.hero-band .dp-state-label.designed::before, .outcome-band-v3 .dp-state-label.designed::before { background: var(--color-orange); }

/* --- Hero transformation rail (reuses .af-row / .af-node / .af-arrow from styles.css for the nodes themselves) ---
   Each state (MVP / Next Phase) is its own labeled block, stacked vertically. The boundary divider sits
   between the two blocks as a dedicated row-level element - never an inline flex item among the nodes -
   so it cannot end up dangling when a block's own node row wraps. */
.dp-hero-rail { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.dp-rail-block { display: flex; flex-direction: column; }
.dp-rail-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dp-boundary { display: flex; align-items: center; gap: 6px; margin: 10px 0; align-self: flex-start; }
.dp-boundary-line { width: 34px; height: 1px; border-top: 1.5px dashed rgba(255,255,255,.35); }
.dp-boundary-arrow { color: var(--color-orange); flex-shrink: 0; display: flex; }
.dp-boundary-arrow svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-dasharray: 3 3; transform: rotate(90deg); }

/* --- Compact hero callout (locked line, restored) --- */
.dp-hero-callout { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--color-orange); }
.dp-hero-callout p { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.85); margin: 0; max-width: 520px; }
.dp-hero-callout strong { color: #fff; font-weight: 700; }

/* On the dark hero band, restyle af-node/af-arrow for legibility (scoped to this page only) */
.hero-band .af-node { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.hero-band .af-node svg { stroke: rgba(255,255,255,.75); }
.hero-band .af-node.accent { border-color: var(--color-orange); background: rgba(239,131,84,.14); }
.hero-band .af-node.accent svg { stroke: var(--color-orange); }
.hero-band .af-arrow { color: rgba(255,255,255,.35); }
.hero-band .af-arrow.dashed svg { stroke-dasharray: 3 3; }

@media (max-width: 700px) {
  .dp-rail-group { flex-direction: column; align-items: stretch; }
  .dp-rail-group .af-arrow { transform: rotate(90deg); align-self: center; }
}

/* --- Explicit boundary marker for the responsibility-boundary rail (label/structure, not color alone) --- */
.cpr-boundary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 0 0 auto; padding: 0 10px; }
.cpr-boundary .cpr-boundary-tag { font-size: 8.5px; margin-bottom: 0; white-space: nowrap; }
.cpr-boundary .cpr-boundary-tag::before { width: 5px; height: 5px; }
.cpr-boundary-divider { width: 1px; height: 22px; border-left: 1.5px dashed var(--color-orange); }
@media (max-width: 700px) {
  .cpr-boundary { flex-direction: row; padding: 6px 0; gap: 10px; }
  .cpr-boundary-divider { width: 22px; height: 1px; border-left: none; border-top: 1.5px dashed var(--color-orange); }
}

/* --- Fix: the boundary marker added ~150px of fixed-width content to this rail, which the
   shared .care-path-rail component's 700px stacking breakpoint (styles.css) was never sized for.
   Verified pre-existing (reproduces on the pre-remediation build too) and specific to this page's
   rail composition, not the shared component itself - scoped here rather than touching styles.css,
   so work-healthcare-iugo.html's use of the same shared component is entirely unaffected. --- */
@media (max-width: 900px) and (min-width: 701px) {
  .care-path-rail { flex-direction: column; align-items: stretch; gap: 10px; }
  .cpr-seg { display: none; }
  .cpr-boundary { flex-direction: row; padding: 6px 0; gap: 10px; }
  .cpr-boundary-divider { width: 22px; height: 1px; border-left: none; border-top: 1.5px dashed var(--color-orange); }
}

/* --- What Changed: supporting bullet list under the single approved headline --- */
.dp-outcome-list { list-style: none; margin: 20px auto 0; padding: 0; max-width: 520px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.dp-outcome-list li { position: relative; padding-left: 18px; font-size: 13px; color: rgba(255,255,255,.68); line-height: 1.55; }
.dp-outcome-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-orange); }

/* =========================================================================
   OPTION C: TIMELINE FLOW - approved redesign, Direct Pay only.
   Adds: the 01-06 chapter rail, chapter-specific spacing/background rhythm,
   the Discovery question callout, the Release Sequencing chip row, and the
   contained Trade-off panel. Everything below is scoped to .dp-chapter /
   .dp-* classes that exist only on this page - zero risk to other cases.
   ========================================================================= */

/* --- Chapter rail: one marker + one line segment per chapter, positioned
   inside each chapter's own .content-width so it doesn't need to know the
   page's total height. The marker sits at content-width's own top edge
   (which is already the chapter's eyebrow position, since the section's
   own padding-block is what pushed content-width down in the first place -
   giving the marker a second top offset on top of that double-counts it).
   The line uses negative top/bottom equal to the section's padding-block,
   extending it out to the section's own edges so adjacent chapters' line
   segments meet with zero gap and read as one continuous line. --- */
.dp-chapter { position: relative; }
.dp-chapter.case-section-v3 { padding-block: 108px; }
.dp-chapter .content-width { position: relative; padding-left: 136px; }
.dp-chapter-marker {
  position: absolute; left: 64px; top: 2px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-orange); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.dp-chapter-line { position: absolute; left: 85px; top: -108px; bottom: -108px; width: 1.5px; background: var(--border-light); z-index: 1; }
.dp-chapter-line.on-dark { background: rgba(255,255,255,.22); }
/* outcome-band-v3 (chapter 05) uses 88px padding-block, not case-section-v3's 108px */
.outcome-band-v3.dp-chapter .dp-chapter-line { top: -88px; bottom: -88px; }

.dp-chapter .editorial-spine { max-width: 960px; }

@media (max-width: 1024px) {
  .dp-chapter.case-section-v3 { padding-block: 88px; }
  .dp-chapter-line { top: -88px; bottom: -88px; }
}
@media (max-width: 700px) {
  .dp-chapter.case-section-v3 { padding-block: 56px; }
  .dp-chapter .content-width { padding-left: 56px; }
  .dp-chapter-marker { left: 0; top: 0; width: 36px; height: 36px; font-size: 13px; }
  .dp-chapter-line { left: 17px; top: -56px; bottom: -56px; }
}

/* --- Related-subsection rhythm inside a chapter (tighter than the chapter's own top/bottom) --- */
.dp-subsection { margin-top: 68px; }
.dp-subsection-tight { margin-top: 44px; }
@media (max-width: 700px) {
  .dp-subsection { margin-top: 48px; }
  .dp-subsection-tight { margin-top: 32px; }
}

/* --- Restrained divider between supporting subsections (not a full-width rule) --- */
.dp-divider { width: 150px; height: 1px; background: var(--border-light); margin: 56px 0 0; }
@media (max-width: 700px) { .dp-divider { margin-top: 40px; } }

/* --- Discovery question: contained callout at the close of chapter 02, not its own section --- */
.dp-discovery-callout {
  margin-top: 40px; max-width: 640px;
  border: 1px solid var(--border-light); border-radius: 16px;
  background: #fff; padding: 22px 26px;
}
.dp-discovery-callout .question-eyebrow { margin-bottom: 8px; }
.dp-discovery-callout .framing-question-v4 { font-size: 1.15rem; margin: 0; }

/* --- Release sequencing: compact chip row, supporting evidence inside Key Decision --- */
.dp-release-sequence { margin-top: 40px; }
.dp-release-sequence-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 14px; }
.dp-release-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-release-chip { display: flex; align-items: center; padding: 10px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--color-navy); background: var(--surface-soft); border: 1px solid var(--border-light); white-space: nowrap; }
.dp-release-chip.shipped { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.dp-release-arrow { color: var(--color-slate); flex-shrink: 0; display: flex; }
.dp-release-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; }
@media (max-width: 700px) {
  .dp-release-row { flex-direction: column; align-items: stretch; }
  .dp-release-arrow { transform: rotate(90deg); align-self: center; }
}

/* --- Trade-off: contained decision panel, replacing the document-table feel --- */
.dp-tradeoff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 12px; border: 1px solid var(--border-light); border-radius: 20px; overflow: hidden; background: #fff; }
.dp-tradeoff-col { padding: 26px 28px; border-left: 1px solid var(--border-light); }
.dp-tradeoff-col:first-child { border-left: none; }
.dp-tradeoff-col.chose { background: #FFF8F4; }
.dp-tradeoff-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; }
.dp-tradeoff-col.chose .dp-tradeoff-label { color: var(--color-orange-text); }
.dp-tradeoff-text { font-size: 14px; line-height: 1.55; color: var(--color-navy); }
@media (max-width: 700px) {
  .dp-tradeoff { grid-template-columns: 1fr; }
  .dp-tradeoff-col { border-left: none; border-top: 1px solid var(--border-light); }
  .dp-tradeoff-col:first-child { border-top: none; }
}

/* --- Payment Lifecycle: one contained surface around both phases, replacing two floating groups --- */
.dp-lifecycle-container { border: 1px solid var(--border-light); border-radius: 20px; background: #fff; padding: 32px 36px; }
@media (max-width: 700px) { .dp-lifecycle-container { padding: 24px 20px; } }
.dp-outcome-list li { color: rgba(255,255,255,.8); }

/* --- What I Learned: reduced dead space, chapter 06 target padding --- */
/* What I Learned (chapter 06) uses the shared .case-section spacing by default;
   no override needed here since that default is already the approved result. */
.dp-chapter-learned .dp-role-block { margin-top: 72px; }
@media (max-width: 700px) {
  .dp-chapter-learned .dp-role-block { margin-top: 48px; }
}
