/* ESV 7.50 – consolidated founder component.
   Desktop: text left, portrait right. Small screens: heading, image, copy.
   Shared by the runtime block, current pattern and saved legacy patterns.
   Historical wording and the image asset are not modified by this layout. */
.esv-founder-portrait {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 32px 0 36px !important;
  padding: 28px 32px !important;
  box-sizing: border-box;
  border: 1px solid var(--esv-color-border,#d8e2da);
  border-left: 4px solid var(--esv-color-link,#00873b);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--esv-color-surface,#f8fbf9) 0%, var(--esv-color-surface-2,#f2f7f3) 100%);
  box-shadow: 0 10px 26px rgba(0,45,28,.04);
  color: var(--esv-color-text,#152b20);
  text-align: left;
}
.esv-founder-portrait *,
.esv-founder-portrait *::before,
.esv-founder-portrait *::after { box-sizing: border-box; }
.esv-founder-portrait::before { content: none; }
.esv-founder-portrait > .esv-founder-portrait-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 320px) !important;
  column-gap: 36px !important;
  row-gap: 16px !important;
  align-items: start !important;
  margin: 0 !important;
  width: 100%;
  max-width: none !important;
}
.esv-founder-portrait-grid > * {
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
}
.esv-founder-portrait-grid.esv-founder-layout-v750 {
  grid-template-areas: "heading portrait" "copy portrait";
  grid-template-rows: auto 1fr;
}
.esv-founder-layout-v750 > .esv-founder-heading { grid-area: heading; }
.esv-founder-layout-v750 > .esv-founder-image-wrap { grid-area: portrait; align-self: center !important; }
.esv-founder-layout-v750 > .esv-founder-copy { grid-area: copy; }
/* A custom/older editor layout may not have been normalized on the server.
   Keep its two columns readable without deleting custom content. */
.esv-founder-portrait-grid:not(.esv-founder-layout-v750) > :first-child { grid-column: 2; grid-row: 1; align-self: center !important; }
.esv-founder-portrait-grid:not(.esv-founder-layout-v750) > :nth-child(2) { grid-column: 1; grid-row: 1; }
.esv-founder-portrait .esv-founder-heading > .esv-kicker {
  margin: 0 0 12px !important;
  color: var(--esv-color-link,#007734);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: .09em;
}
.esv-founder-portrait .esv-founder-heading > h2,
.esv-founder-portrait .esv-founder-copy > h2,
.esv-founder-portrait .esv-founder-portrait-grid h2 {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  color: var(--esv-color-text,#152b20);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -.018em;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.esv-founder-portrait .esv-founder-copy {
  width: 100%;
  max-width: none !important;
  text-align: left;
}
.esv-founder-portrait .esv-founder-copy > p {
  max-width: none !important;
  margin: 0 0 16px !important;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.esv-founder-portrait .esv-founder-copy > .esv-founder-lead,
.esv-founder-portrait .esv-founder-copy > .has-large-font-size {
  margin: 0 0 16px !important;
  color: var(--esv-color-text,#254b37);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem) !important;
  line-height: 1.5 !important;
}
.esv-founder-portrait .esv-founder-image {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}
.esv-founder-portrait .esv-founder-image img {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 320px;
  aspect-ratio: auto !important;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 16px;
  /* Existing monochrome treatment retained; no additional crop. */
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.esv-founder-portrait .esv-founder-proof {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 20px 0 16px !important;
  width: 100%;
  max-width: none !important;
}
.esv-founder-portrait .esv-founder-proof > p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid var(--esv-color-border,#d2e1d6);
  border-radius: 12px;
  background: var(--esv-color-surface,#fff);
}
.esv-founder-portrait .esv-founder-proof strong {
  color: var(--esv-color-link,#007734);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.esv-founder-portrait .esv-founder-proof span {
  color: var(--esv-color-muted,#526458);
  font-size: .85rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.esv-founder-portrait .esv-founder-copy > .esv-founder-source-note {
  margin: 0 !important;
  color: var(--esv-color-muted,#58685e) !important;
  font-size: .85rem !important;
  line-height: 1.55 !important;
}
/* Context remains visible, below both columns and spanning their full width. */
.esv-founder-portrait .esv-history-context {
  display: block;
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
  margin: 26px 0 0 !important;
  padding: 18px 20px;
  border: 1px solid var(--esv-color-border,#d5dfd8);
  border-left: 3px solid var(--esv-color-border,#597264);
  border-radius: 10px;
  background: var(--esv-color-surface,#fff);
  color: var(--esv-color-text,#293c32);
  text-align: left;
}
.esv-founder-portrait .esv-history-context h3 {
  margin: 0 0 8px !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  color: var(--esv-color-text,#1d392a);
}
.esv-founder-portrait .esv-history-context p {
  margin: 0 !important;
  max-width: none !important;
  font-size: .92rem !important;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
}
.esv-founder-portrait .esv-history-context p + p { margin-top: 10px !important; }
@media (max-width: 900px) {
  .esv-founder-portrait {
    margin: 28px 0 32px !important;
    padding: 24px !important;
  }
  .esv-founder-portrait > .esv-founder-portrait-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }
  .esv-founder-portrait-grid.esv-founder-layout-v750 {
    grid-template-areas: "heading" "portrait" "copy";
    grid-template-rows: auto;
  }
  .esv-founder-portrait-grid:not(.esv-founder-layout-v750) > :first-child { grid-column: 1; grid-row: 2; }
  .esv-founder-portrait-grid:not(.esv-founder-layout-v750) > :nth-child(2) { grid-column: 1; grid-row: 1; }
  .esv-founder-portrait .esv-founder-image img { max-width: 280px; }
  .esv-founder-portrait .esv-founder-heading > h2 { text-wrap: initial; }
}
@media (max-width: 620px) {
  .esv-founder-portrait {
    padding: 20px 16px !important;
    border-radius: 18px;
  }
  .esv-founder-portrait .esv-founder-image img { max-width: 250px; }
  .esv-founder-portrait .esv-founder-proof { grid-template-columns: minmax(0,1fr) !important; }
  .esv-founder-portrait .esv-founder-proof > p {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 10px 12px;
  }
  .esv-founder-portrait .esv-history-context { padding: 16px; margin-top: 22px !important; }
}
