/* Scoped to expanded character biographies; gallery and homepage imagery stay unchanged. */
.ed-character-profile:has(.cb-biography):has(.ed-character-details[open]) {
  grid-column: 1 / -1;
}
.cb-biography {
  max-width: 75ch;
  margin: 0 auto;
  padding: 14px 0 8px;
  color: #344f49;
  overflow-wrap: break-word;
}
.cb-biography .cb-portrait {
  max-width: 520px;
  margin: 8px auto 30px;
}
.cb-biography .cb-portrait .ed-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f4f7ed;
}
.cb-biography .cb-portrait .ed-image-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 580px;
  object-fit: contain;
  margin: 0 auto;
}
.cb-biography .cb-portrait figcaption {
  font-size: 12px;
  line-height: 1.8;
}
.cb-biography .cb-heading {
  font-family: var(--ed-serif, Georgia, serif);
  font-weight: 400;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #153b35;
  margin: 36px 0 18px;
}
.cb-biography .cb-heading:first-child {
  margin-top: 12px;
}
.cb-biography .cb-subheading {
  font-family: var(--ed-serif, Georgia, serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.35;
  color: #006d70;
  margin: 27px 0 15px;
}
.cb-biography .cb-paragraph,
.cb-biography .cb-list {
  font-size: 16px;
  line-height: 1.9;
  color: #526964;
  margin: 17px 0;
}
.cb-biography .cb-standfirst {
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 24px;
  line-height: 1.45;
  color: #31534a;
  margin: 17px 0;
}
.cb-biography .cb-role {
  font-size: 13px;
  line-height: 1.8;
  color: #006d70;
  margin: 18px 0;
}
.cb-biography .cb-lead {
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 21px;
  line-height: 1.65;
  color: #34574d;
  margin: 24px 0;
}
.cb-biography .cb-list {
  padding-left: 24px;
}
.cb-biography .cb-list li + li {
  margin-top: 8px;
}
.cb-biography .cb-quotation {
  margin: 28px 0;
  padding: 1px 0 1px 23px;
  border-left: 2px solid #b5ab78;
}
.cb-biography .cb-quotation .cb-paragraph {
  color: #34574d;
}
.cb-biography .cb-attribution,
.cb-biography .cb-signature {
  font-size: 15px;
  line-height: 1.8;
  font-style: normal;
  color: #31534a;
  margin: 20px 0;
}
.cb-biography .cb-motto {
  font-family: var(--ed-serif, Georgia, serif);
  font-size: 24px;
  line-height: 1.55;
  color: #006d70;
  margin: 33px 0 15px;
}
@media (max-width: 650px) {
  .cb-biography .cb-portrait .ed-image-frame { padding: 11px; }
  .cb-biography .cb-paragraph,
  .cb-biography .cb-list { font-size: 15px; line-height: 1.9; }
  .cb-biography .cb-heading { font-size: 27px; margin-top: 30px; }
  .cb-biography .cb-subheading { font-size: 22px; }
  .cb-biography .cb-quotation { padding-left: 17px; }
  .cb-biography .cb-motto { font-size: 23px; }
}
