/* partners.css
 * 500-line rule justification: one stylesheet for the whole institutions
 * landing (hero, evidence, journey map, embed, packaging, diligence, FAQ,
 * footnotes, close) — no build step means one request beats per-section files. — Wellfy for institutions (/partners), linked from partners.html only.
 * Editorial register shared with methodology.html and the landing's editorial
 * region: Cormorant statements, Jost data, hairline rules, 820px measure.
 * Tokens only — dark mode arrives via tokens.css for free.
 * One amber moment per viewport: hero CTA · score_computed · EAM contact ·
 * the close band. Nothing else is amber.
 */

/* ══ Document flow ══════════════════════════════════════════════════
 * base.css assumes the app-container model (body overflow hidden);
 * this is a document, so restore normal flow. */
html, body {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  overscroll-behavior: auto;
}

body {
  font-family: var(--font-data);
  font-weight: 300;
  color: var(--ink-body);
  line-height: 1.65;
}

/* ══ Masthead ══════════════════════════════════════════════════════ */

.p-masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) 0;
}

.p-wordmark {
  font-family: var(--font-authority);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.28em;
  color: var(--ink);
  text-decoration: none;
}

.p-masthead-link {
  font-family: var(--font-authority);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  color: var(--ink-calm);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-rule);
  padding-bottom: 1px;
}

.p-masthead-link:hover { color: var(--ink); border-bottom-color: var(--ink-soft); }

/* ══ Shared editorial system ═══════════════════════════════════════ */

.p-section {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(64px, 11vh, 128px) var(--space-6);
}

.p-section + .p-section { border-top: 0.5px solid var(--ink-rule); }

.p-eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}

.p-statement {
  font-family: var(--font-soul);
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.p-body {
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 58ch;
  margin-top: var(--space-5);
}

.p-body a {
  color: var(--ink-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-rule);
}

.p-footnote {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
}

sup.p-fn {
  font-family: var(--font-data);
  font-size: 0.72em;
  line-height: 0;
}

sup.p-fn a { text-decoration: none; color: var(--ink-calm); }

/* ══ Hero ══════════════════════════════════════════════════════════ */

.p-hero { padding-top: clamp(72px, 14vh, 150px); }

.p-hero-title {
  font-family: var(--font-soul);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
}

.p-dek {
  font-family: var(--font-soul);
  font-style: italic;
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-calm);
  max-width: 46ch;
  margin-top: var(--space-6);
}

.p-hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: var(--space-6);
}

.p-hero-chips li {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (min-width: 560px) {
  .p-hero-chips li + li::before {
    content: '·';
    margin-right: 10px;
    color: var(--ink-rule);
  }
}

.p-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-10);
}

/* The hero viewport's one amber moment */
.p-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  background: var(--amber);
  color: var(--stock);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  transition: opacity var(--dur-quick) var(--ease-house);
}

.p-cta-primary:hover { opacity: 0.9; }

.p-cta-secondary {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-rule);
  padding: 8px 0;
}

.p-cta-secondary:hover { text-decoration-color: var(--ink-soft); }

.p-cta-quiet {
  font-family: var(--font-soul);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 0;
}

.p-cta-quiet:hover { color: var(--ink-calm); }

/* ══ 02 · The problem in numbers ═══════════════════════════════════ */

.p-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8) var(--space-8);
  margin-top: var(--space-10);
}

.p-stat {
  border-top: 0.5px solid var(--ink-rule);
  padding-top: var(--space-5);
}

.p-stat-num {
  font-family: var(--font-data);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 200;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.p-stat-line {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-calm);
  margin-top: var(--space-3);
}

/* ══ 03 · The journey — numbered steps ═════════════════════════════ */

.p-step { padding: clamp(36px, 6vh, 64px) 0; }
.p-step + .p-step { border-top: 0.5px solid var(--ink-rule); }
.p-step:first-of-type { padding-top: var(--space-10); }

.p-step-statement {
  font-family: var(--font-soul);
  font-size: clamp(1.4rem, 4.4vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}

.p-step-num {
  font-family: var(--font-data);
  font-size: 0.5em;
  font-weight: 200;
  letter-spacing: 2px;
  color: var(--ink-soft);
  vertical-align: 0.25em;
  margin-right: 0.35em;
  font-feature-settings: 'lnum' 1;
}

.p-step .p-body { margin-top: var(--space-4); }

/* This viewport's one amber moment: the event that is the product */
.p-event {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--amber);
}

/* ══ Tables (pillar map, posture) ══════════════════════════════════ */

.p-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-6);
}

.p-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.p-table th,
.p-table td {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  text-align: left;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 0.5px solid var(--ink-rule);
  vertical-align: top;
}

.p-table thead th {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.p-table tbody th {
  font-family: var(--font-soul);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.p-table td { color: var(--ink-calm); }

.p-table td:last-child { color: var(--ink-body); font-weight: 400; }

/* ══ 04 · Category evidence ════════════════════════════════════════ */

.p-evi { padding: var(--space-8) 0; }
.p-evi + .p-evi { border-top: 0.5px solid var(--ink-rule); }
.p-evi:first-of-type { margin-top: var(--space-6); }

.p-evi-kicker {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.p-evi-headline {
  font-family: var(--font-soul);
  font-size: clamp(1.3rem, 3.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.p-evi-body {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 58ch;
  margin-top: var(--space-3);
}

/* Honesty block — the house pattern */
.p-plain {
  border-left: 1px solid var(--ink-soft);
  padding-left: var(--space-5);
  margin-top: var(--space-10);
}

.p-plain-label {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-calm);
  margin-bottom: var(--space-2);
}

.p-plain p {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 56ch;
}

/* ══ 05 · The embed ════════════════════════════════════════════════ */

.p-code {
  background: var(--ink);
  color: var(--stock);
  border-radius: var(--card-radius, 16px);
  padding: var(--space-6);
  margin-top: var(--space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.p-code pre {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
}

.p-code-caption {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: var(--space-3);
}

.p-facts {
  list-style: none;
  margin-top: var(--space-8);
}

.p-facts li {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 62ch;
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--ink-rule);
}

.p-facts strong { font-weight: 500; color: var(--ink); }

/* What Wellfy sees / never sees */
.p-posture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

@media (max-width: 620px) {
  .p-posture-grid { grid-template-columns: 1fr; }
}

.p-posture-col h3 {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-calm);
  padding-bottom: var(--space-3);
  border-bottom: 0.5px solid var(--ink-soft);
}

.p-posture-col p {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  margin-top: var(--space-4);
}

/* ══ 06 · Packaging ════════════════════════════════════════════════ */

.p-pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (max-width: 680px) {
  .p-pack-grid { grid-template-columns: 1fr; }
}

.p-pack {
  background: var(--stock);
  border: 0.5px solid var(--ink-rule);
  border-radius: var(--card-radius, 16px);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
}

.p-pack-audience {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.p-pack-price {
  font-family: var(--font-soul);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-top: var(--space-4);
}

.p-pack-body {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  margin-top: var(--space-4);
  flex: 1;
}

.p-pack-cta {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: var(--space-6);
  padding: 8px 0;
}

/* This viewport's one amber moment: the door that opens today */
.p-pack-cta--amber {
  color: var(--amber);
  text-decoration-color: var(--amber-45);
}

.p-pack-cta--amber:hover { text-decoration-color: var(--amber); }

.p-pack-cta--ink {
  color: var(--ink-body);
  text-decoration-color: var(--ink-rule);
}

.p-pack-cta--ink:hover { text-decoration-color: var(--ink-soft); }

.p-prospect {
  border-top: 0.5px solid var(--ink-rule);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
}

/* ══ 07 · Diligence ════════════════════════════════════════════════ */

.p-dd-item { padding: var(--space-6) 0; }
.p-dd-item + .p-dd-item { border-top: 0.5px solid var(--ink-rule); }
.p-dd-item:first-of-type { margin-top: var(--space-6); }

.p-dd-item h3 {
  font-family: var(--font-soul);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.p-dd-item p {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 58ch;
}

.p-dd-item a {
  color: var(--ink-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-rule);
}

/* ══ 08 · FAQ ══════════════════════════════════════════════════════ */

.p-faq-item { padding: var(--space-6) 0; }
.p-faq-item + .p-faq-item { border-top: 0.5px solid var(--ink-rule); }

.p-faq-q {
  font-family: var(--font-soul);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.p-faq-a {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 56ch;
}

.p-faq-a a {
  color: var(--ink-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-rule);
}

/* ══ Footnotes ═════════════════════════════════════════════════════ */

.p-footnotes {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-12);
  border-top: 0.5px solid var(--ink-rule);
}

.p-footnotes h2 {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-calm);
  margin-bottom: var(--space-4);
}

.p-footnotes ol { list-style: none; }

.p-footnotes li {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-calm);
  margin-bottom: var(--space-3);
  padding-left: var(--space-6);
  position: relative;
}

.p-fn-mark {
  position: absolute;
  left: 0;
  font-family: var(--font-data);
  color: var(--ink-soft);
}

/* ══ The close — the one full-bleed amber spend on the page ════════ */

.p-close-band {
  background: var(--amber);
  padding: clamp(56px, 9vh, 96px) var(--space-6);
}

.p-close-cols {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
}

.p-close-col {
  display: block;
  text-decoration: none;
  padding: var(--space-2) 0;
}

.p-close-col + .p-close-col {
  border-left: 0.5px solid var(--stock);
  padding-left: var(--space-8);
}

.p-close-action {
  display: block;
  font-family: var(--font-soul);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--stock);
}

.p-close-sub {
  display: block;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--stock);
  opacity: 0.75;
  margin-top: var(--space-2);
}

.p-close-col:hover .p-close-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 680px) {
  .p-close-cols {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .p-close-col + .p-close-col {
    border-left: none;
    border-top: 0.5px solid var(--stock);
    padding-left: 0;
    padding-top: var(--space-6);
  }
}

/* ══ Footer ════════════════════════════════════════════════════════ */

.p-footer {
  padding: var(--space-8) var(--space-6) max(env(safe-area-inset-bottom, 16px), var(--space-10));
  text-align: center;
}

.p-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

.p-footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--dur-quick) var(--ease-house);
}

.p-footer-nav a:hover { color: var(--ink-calm); }

.p-footer-disclaimer {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* ══ Print — this page is circulated to buying committees ══════════ */

@media print {
  .p-masthead-link, .p-close-band { display: none; }
  body { background: none; color: #000; }
  .p-hero-title, .p-statement, .p-step-statement, .p-evi-headline,
  .p-faq-q, .p-dd-item h3, .p-pack-price, .p-stat-num { color: #000; }
  .p-code { background: none; color: #000; border: 1px solid #000; }
  .p-section { break-inside: avoid-page; padding: 2rem var(--space-6); }
  .p-table-wrap, .p-code { overflow: visible; }
}

/* Footnote jumps land with breathing room, not flush at the viewport top. */
[id^="ref-"],
[id^="fn-"] {
  scroll-margin-top: var(--space-8);
}
