/* /{locale}/why/ (design B, Claude Design 2026-10-31: suite docs/design/site-redesign/export/Why.dc.html).
   The Navy page head, .eyebrow, .lead, .text-link and .meta come from site.css; this file holds the index, the
   three sections and their figures. Tokens only, no hex values. */

/* The title keeps its line break but gets room for longer languages (Russian: three lines, not four). */

/* In-page index under the page head: three numbered links under a hairline, the numbers in nav-muted as on
   /international/ (ailix Green is never text, DESIGN.md 1장). */
.why-index { margin-top: clamp(16px, 3vw, 40px); border-top: 1px solid var(--color-nav-line); }
.why-index ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: var(--space-6); }
.why-index a { display: flex; align-items: baseline; gap: var(--space-3); min-height: 44px; padding-block: var(--space-5); font-size: var(--font-size-body-lg); font-weight: var(--font-weight-medium); line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.why-index a:hover { text-decoration: underline; text-underline-offset: 4px; }
.why-index span { flex: none; font-size: var(--font-size-label); color: var(--color-nav-muted); font-variant-numeric: tabular-nums; }

/* Sections: copy beside its figure, two columns where both get 480px, else one. The middle one sits on the grey. */
.why-section { padding-top: var(--space-mkt-section); }
.why-section.is-alt { margin-top: var(--space-mkt-section); padding-bottom: var(--space-mkt-section); background: var(--color-bg); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--space-12) clamp(40px, 6vw, 96px); align-items: start; }
.why-copy { min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.why-copy .text-link { align-self: flex-start; }

/* Three points under a dark rule, one hairline each. Long joined names (Patient·Encounter…) may break. */
.why-points { margin-top: var(--space-3); border-top: 1px solid var(--color-ink); }
.why-points > div { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid var(--color-line); }
.is-alt .why-points > div { border-bottom-color: var(--color-line-strong); }
.why-points dt { font-size: 18px; font-weight: var(--font-weight-semibold); line-height: 1.45; }
.why-copy .lead strong { font-weight: var(--font-weight-semibold); white-space: nowrap; }
.why-points dd { font-size: 16px; line-height: 1.65; color: var(--color-ink-secondary); }
.why-points dt, .why-points dd, .why-copy .lead { overflow-wrap: anywhere; }

/* All three figures scroll with their sections; do not pin them beside the copy. */
.why-figure { min-width: 0; }
.why-graph img { width: 100%; border-radius: var(--radius-xl); background: var(--color-chrome); }

/* Data protection: four steps, then the two stores linked only by a pseudonymous ID. Laid out by the figure's own
   width, so longer languages get two steps a row before four. */
.why-flow { container-type: inline-size; display: flex; flex-direction: column; gap: var(--space-6); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--color-line); border-radius: var(--radius-xl); background: var(--color-surface); }
.why-flow figcaption { margin: 0; line-height: 1.6; }
.why-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.why-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-bg); }
.why-node { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: 50%; background: var(--color-surface); color: var(--color-ink); }
.why-steps li:nth-child(2) .why-node { border-color: var(--color-brand-navy); background: var(--color-brand-navy); color: var(--color-ink-inverse); }
.why-steps strong { font-size: 16px; font-weight: var(--font-weight-semibold); line-height: 1.4; }
.why-steps small { font-size: var(--font-size-caption); line-height: 1.4; color: var(--color-ink-muted); }
.why-steps strong, .why-steps small, .why-store, .why-link { overflow-wrap: anywhere; }
.why-vault { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.why-store { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface-sunk); }
.why-store strong { font-size: var(--font-size-body-lg); font-weight: var(--font-weight-semibold); line-height: 1.4; }
.why-store small { font-size: var(--font-size-label); line-height: 1.5; color: var(--color-ink-secondary); }
.why-store.is-vault { background: var(--color-brand-navy); color: var(--color-ink-inverse); }
.why-store.is-vault small { color: var(--color-nav-ink); }
.why-link { display: flex; align-items: center; justify-content: center; padding: var(--space-5); border: 1px dashed var(--color-line-field); border-radius: var(--radius-lg); font-size: var(--font-size-label); font-weight: var(--font-weight-medium); line-height: 1.5; color: var(--color-ink-secondary); text-align: center; }
@container (min-width: 440px) {
  .why-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5) var(--space-4); }
}
@container (min-width: 560px) { .why-vault { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 720px) { .why-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* FHIR Bundle excerpt: JSON as written on the dark data surface, keys in their own colour, wrapped lines hanging
   under their indent. */
.why-code pre { margin: 0; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--radius-xl); background: var(--color-chrome); color: var(--color-chrome-ink); font-family: var(--font-family-mono); font-size: var(--font-size-caption); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.why-line { display: block; padding-left: calc(var(--d) * var(--space-4) + var(--space-4)); text-indent: calc(-1 * var(--space-4)); }
.why-key { color: var(--color-info-line); }
.why-str { color: var(--color-chrome-ink); }

/* The AI note the page ends on, before the closing band. */
.why-note { padding-block: var(--space-mkt-section) clamp(56px, 7vw, 96px); }
.why-note p { padding-top: var(--space-6); border-top: 1px solid var(--color-line); font-size: var(--font-size-caption); line-height: 1.6; color: var(--color-ink-muted); }

/* Phones: long Russian, Kazakh or Mongolian words in the big titles hyphenate instead of breaking anywhere. */
@media (max-width: 479px) {
  .why h1, .why h2 { -webkit-hyphens: auto; hyphens: auto; }
}
