/* ============================================================
   Pymander Health / safety
   Layered on pages-v2.css. Adds the methodology diagram, the
   safety-principle grid, and the USMLE proof block. Monochrome
   and cream, matching /evals. Nothing here is used elsewhere.
   ============================================================ */

.prose.trust { max-width: 820px; }
.prose.trust.safety-open { padding-top: clamp(112px, 17vh, 190px); }

/* Editorial opener: a big left-aligned title, then a larger statement, in the
   same left-aligned rhythm as the rest of the page (matches /evals). */
.prose.trust .page-title {
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(38px, 6.4vw, 74px); color: var(--ink);
  margin: 0 0 20px; text-wrap: balance; max-width: 15ch;
}
.prose.trust > p.lead {
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.38; font-weight: 500; letter-spacing: -0.016em;
  color: var(--ink); margin: 0; max-width: 34ch;
}
.prose.trust > p.section-lead {
  font-size: 17.5px; line-height: 1.7; color: #2a2620; margin-bottom: 4px; max-width: 62ch;
}

/* Warm human anchor under the opener. */
.safety-photo { margin: clamp(34px, 6vw, 60px) 0 clamp(6px, 2vw, 14px); }
.safety-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover; object-position: center 42%;
  border-radius: 22px;
}
@media (min-width: 700px) { .safety-photo img { aspect-ratio: 21 / 9; } }

/* ── detailed vertical flow (the diagram) ────────────────────── */
.flow { margin: 4px 0 8px; }
.flow-step {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  padding-bottom: 36px;
}
.flow-step:last-child { padding-bottom: 0; }
/* the connecting rail, drawn behind the nodes */
.flow-step::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0;
  width: 2px; background: var(--grey);
}
.flow-step:last-child::before { display: none; }
.flow-node {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--on-dark);
  display: grid; place-items: center;
  font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
}
.flow-body { min-width: 0; padding-top: 3px; }
.flow-title {
  font-weight: 600; font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px;
}
.flow-desc {
  font-size: 16px; line-height: 1.66; color: #2a2620;
  margin: 0 0 14px; max-width: 54ch;
}
.flow-io {
  background: var(--cream); border: 1px solid var(--grey);
  border-radius: 12px; padding: 14px 16px;
  overflow-x: auto;
}
.flow-io .io-label {
  display: block; font-family: var(--font);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-light-dim); margin-bottom: 9px;
}
.flow-io .io-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.75; color: #2a2620;
}
.flow-io .io-mono .k { color: var(--on-light-dim); }
.flow-io .io-quote { display: block; color: var(--ink); font-size: 15px; line-height: 1.55; }
.flow-io .io-quote + .io-quote { margin-top: 7px; }

/* ── safety principles ───────────────────────────────────────── */
.principles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin: 24px 0 8px;
}
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--cream); border: 1px solid var(--grey);
  border-radius: 16px; padding: 22px 22px 24px;
}
.principle h4 {
  font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 9px;
}
.principle p { font-size: 15px; line-height: 1.62; color: #2a2620; margin: 0; }

/* ── USMLE proof block (dark card) ───────────────────────────── */
.proof {
  display: flex; align-items: center; gap: clamp(22px, 5vw, 44px);
  flex-wrap: wrap;
  background: var(--ink); color: var(--on-dark);
  border-radius: 22px; padding: clamp(26px, 4vw, 40px);
  margin: 24px 0 20px;
}
.proof-fig {
  font-size: clamp(3.1rem, 9vw, 4.8rem); font-weight: 600; line-height: 0.9;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums; flex: none;
}
.proof-fig span { font-size: 0.4em; font-weight: 500; color: var(--on-dark-dim); margin-left: 3px; letter-spacing: 0; }
.proof-meta { flex: 1; min-width: 230px; }
.proof-exam {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-dim); margin-bottom: 9px;
}
.proof-meta p { font-size: 15px; line-height: 1.55; color: var(--on-dark-dim); margin: 0 0 15px; }
.proof-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-dark); font-weight: 600; font-size: 14.5px;
  border-bottom: 1px solid rgba(255,255,255,0.42); padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.proof-cta:hover { border-color: var(--on-dark); }
.proof-cta svg { width: 16px; height: 16px; }

.prose.trust .close { margin-top: 44px; font-size: 17px; color: #2a2620; }

/* ── Three-pillar loop — clean rounded images, text below, on white ──
   (the layout borrowed from the homepage stat trio: no overlays, no
   extra design, just beautiful white.) */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px); margin: clamp(22px, 3vw, 32px) 0 8px;
}
.pillar-img {
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 3.5; background: var(--cream);
}
.pillar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar h3 {
  font-weight: 600; font-size: clamp(17px, 1.9vw, 20px);
  letter-spacing: -0.01em; color: var(--ink); margin: 18px 0 7px;
}
.pillar p { font-size: 15px; line-height: 1.6; color: #2a2620; margin: 0; }
@media (max-width: 680px) { .pillars { grid-template-columns: 1fr; gap: 26px; } }
