/* The "who built this" block (templates/partials/_founder_block.html) and the
   landing-page credential proof row. Loaded only by the pages that render
   them: landing, About, role pages, the pack offer and the Exposure Check
   report.

   Variants:
     .founder-block--card  Bootstrap theme variables; light and dark mode.
     .founder-block--dark  fixed-dark marketing band (landing / role pages):
                           every colour is explicit, never inherited, so light
                           mode cannot render dark text on the dark card.
     .founder-block--pack  the pack frame's editorial page (serif body copy,
                           system-ui controls). */

.founder-block {
  display: flex; gap: 1.5rem; align-items: flex-start;
  border-radius: 8px; padding: 1.75rem; margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.founder-media { flex: 0 0 auto; }
.founder-photo,
.founder-initials {
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.founder-photo { object-fit: cover; }
.founder-initials {
  font-size: 2.25rem; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(135deg, #1f6feb 0%, #4dabf7 100%); color: #ffffff;
}
.founder-body { flex: 1 1 320px; min-width: 0; }
.founder-kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 .35rem;
}
.founder-name { font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin: 0 0 .15rem; }
.founder-credentials { font-size: .95rem; font-weight: 500; }
.founder-role { font-size: .95rem; margin: 0 0 .85rem; }
.founder-bio { line-height: 1.6; margin: 0 0 1.1rem; max-width: 62ch; }
.founder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.founder-profile-link { font-size: .9rem; }

/* card: on the page background, theme-aware */
.founder-block--card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); color: var(--bs-body-color); }
.founder-block--card .founder-kicker,
.founder-block--card .founder-credentials,
.founder-block--card .founder-role { color: var(--bs-secondary-color); }
.founder-block--card .founder-kicker { color: var(--bs-primary); }
.founder-block--card .founder-profile-link { color: var(--bs-link-color); }

/* dark: fixed palette (matches .vbr-card in landing.css) */
.founder-block--dark { background: #161b22; border: 1px solid #30363d; color: #c9d1d9; }
.founder-block--dark .founder-kicker { color: #4dabf7; }
.founder-block--dark .founder-name { color: #e6edf3; }
.founder-block--dark .founder-credentials,
.founder-block--dark .founder-role { color: #8b949e; }
.founder-block--dark .founder-bio { color: #c9d1d9; }
.founder-block--dark .founder-profile-link { color: #74c0fc; }
.founder-block--dark .btn-outline-secondary { color: #c9d1d9; border-color: #8b949e; }
.founder-block--dark .btn-outline-secondary:hover,
.founder-block--dark .btn-outline-secondary:focus-visible { color: #0d1117; background: #c9d1d9; border-color: #c9d1d9; }

/* pack: inside the editorial article */
.founder-block--pack { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); color: var(--bs-body-color); padding: 1.5rem; }
.founder-block--pack .founder-kicker,
.founder-block--pack .founder-credentials,
.founder-block--pack .founder-role { color: var(--bs-secondary-color); }
.founder-block--pack .founder-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.founder-block--pack .founder-bio { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
.founder-block--pack .founder-profile-link { color: var(--bs-link-color); }

/* ---- Landing: credential proof row (human credentials above the counters) ---- */
.proof-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.proof-item {
  display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.25rem;
  background: #161b22; border: 1px solid #30363d; border-radius: 8px; color: #c9d1d9;
}
.proof-item i { font-size: 1.5rem; color: #4dabf7; flex: 0 0 auto; line-height: 1; margin-top: .1rem; }
.proof-item .proof-label { display: block; font-weight: 600; color: #e6edf3; line-height: 1.3; margin-bottom: .2rem; }
.proof-item .proof-detail { display: block; font-size: .875rem; color: #8b949e; line-height: 1.45; }
.proof-lead { text-align: center; color: #8b949e; margin: 0 auto 1.5rem; max-width: 680px; }
.proof-lead strong { color: #e6edf3; }

@media (max-width: 575.98px) {
  .founder-block { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1.25rem; }
  .founder-bio { max-width: none; }
  .founder-actions { justify-content: center; }
  .founder-photo, .founder-initials { width: 96px; height: 96px; }
  .founder-initials { font-size: 2rem; }
}

@media (forced-colors: active) {
  .founder-block, .proof-item { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .founder-block .founder-name, .founder-block .founder-bio, .founder-block .founder-role,
  .founder-block .founder-credentials, .founder-block .founder-kicker,
  .proof-item .proof-label, .proof-item .proof-detail, .proof-lead, .proof-lead strong { color: CanvasText; }
  .founder-initials { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .founder-profile-link { color: LinkText; }
}
