/* Shared biography layout. Copy, chapter count and the photograph are optional inputs. */
.biography-reading { padding: 0 0 38px; background: #f8f1e4; }
.biography-reading > .biography-container { width: min(1460px, 87%); }
.biography-reading .breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 17px; padding: 0; font-size: .86rem; line-height: 1.6; color: #647182; }
.biography-heading { padding: 9px 0 23px; border-bottom: 2px solid #ad8549; }
.biography-heading--with-photo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; align-items: center; }
.biography-heading-copy { min-width: 0; }
.biography-heading .section-kicker { margin: 0 0 11px; font-size: .9rem; letter-spacing: .025em; }
.biography-heading h1 { margin: 0; font-family: Georgia, "Noto Serif Hebrew", serif; font-size: clamp(2.4rem, 3.3vw, 3.6rem); line-height: 1.2; font-weight: 600; color: #183348; }
.biography-introduction { max-width: 49em; margin: 14px 0 0; font-size: clamp(1.05rem, 1.2vw, 1.25rem); line-height: 1.8; color: #405365; }
.biography-origin { margin: 14px 0 0; font-size: .86rem; color: #6f6554; }
.biography-photograph { margin: 0; }
.biography-photograph img { width: 100%; height: auto; border-radius: 9px; border: 1px solid #d5c6aa; }
.biography-photograph figcaption { margin-top: 7px; color: #526375; font-size: .79rem; line-height: 1.6; }
.biography-layout { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 24px; align-items: start; }
.biography-layout--with-contents { grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; }
.biography-contents { grid-column: 2; grid-row: 1; position: sticky; top: 24px; min-width: 0; padding: 14px 19px 5px; border-inline-start: 2px solid #d7c7a9; }
.biography-contents h2 { margin: 0 0 9px; font: 700 1rem/1.6 var(--interface-font); color: #29495f; }
.biography-contents ol { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.biography-contents li + li { border-top: 1px solid #ded3bf; }
.biography-contents a { display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 12px 0; color: #344b5b; font-size: .93rem; line-height: 1.7; }
.biography-contents a:hover { color: #80500e; text-decoration: underline; text-underline-offset: 5px; }
.biography-chapter-number { flex: 0 0 auto; color: #8a6a36; font: 400 .9rem/1.5 Georgia, serif; direction: ltr; }
.biography-paper { grid-column: 1; grid-row: 1; min-width: 0; padding: 28px 32px 20px; border: 1px solid #ddcfb8; border-radius: 12px; background: linear-gradient(145deg, rgba(255, 255, 252, 0.99), rgba(245, 229, 198, 0.9)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(137, 105, 59, 0.08), 0 2px 4px rgba(83, 65, 38, 0.08), 0 12px 28px rgba(83, 65, 38, 0.12), 0 28px 56px rgba(83, 65, 38, 0.08); }
.biography-body { max-width: 980px; margin-inline: auto; }
.biography-anchor, .biography-chapter h2 { scroll-margin-top: 24px; }
.biography-chapter + .biography-chapter { margin-top: 29px; padding-top: 23px; border-top: 1px solid #e2d7c5; }
.biography-chapter h2 { margin: 0 0 14px; font: 650 clamp(1.25rem, 1.55vw, 1.55rem)/1.55 var(--interface-font); color: #23465e; text-wrap: balance; }
.biography-chapter-copy p { margin: 0 0 .95em; font-family: var(--interface-font); font-size: clamp(18px, 1.2vw, 20px); font-weight: 400; line-height: 1.9; color: #2d3b4f; overflow-wrap: break-word; }
.biography-chapter-copy p:last-child { margin-bottom: 0; }
.biography-chapter-copy img { max-width: 100%; height: auto; }
.biography-chapter-copy blockquote { margin: 1em 0; padding: 14px 20px; border-inline-start: 3px solid #b59157; border-radius: 12px; background: linear-gradient(115deg, rgba(216,228,231,.55), rgba(237,224,196,.50)); }
.biography-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; max-width: 980px; margin: 28px auto 0; padding-top: 15px; border-top: 1px solid #ded3bf; font-size: .85rem; line-height: 1.8; color: #596776; }
.biography-source a { display: inline-flex; align-items: center; min-height: 36px; color: #285577; text-decoration: underline; text-underline-offset: 4px; }
.biography-variants { margin: 24px 0 0; padding: 0; }
.biography-variants > h2 { margin: 0 0 5px; font: 650 .95rem/1.7 var(--interface-font); color: #526375; }
.biography-variants details { border-top: 1px solid #d8ccb7; }
.biography-variants summary { cursor: pointer; padding: 11px 0; min-height: 44px; font-size: .9rem; color: #36566e; }
.biography-variants [data-text-variant] { max-width: 70ch; padding-bottom: 10px; line-height: 1.85; }
.biography-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; margin-top: 23px; padding-top: 15px; border-top: 1px solid #d1c1a4; }
.biography-next > span { font-size: .9rem; font-weight: 700; color: #6e6049; }
.biography-next a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #285577; font-size: .95rem; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1099px) {
  .biography-reading > .biography-container { width: calc(100% - 36px); }
  .biography-heading--with-photo { grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; }
  .biography-layout--with-contents { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .biography-contents { grid-column: 1; grid-row: auto; position: static; padding: 0; border: 0; }
  .biography-contents h2 { font-size: .9rem; margin-bottom: 6px; }
  .biography-contents ol { display: flex; flex-wrap: wrap; gap: 3px 20px; }
  .biography-contents li + li { border: 0; }
  .biography-contents a { gap: 7px; padding: 7px 0; min-height: 44px; font-size: .85rem; text-decoration: underline; text-underline-offset: 5px; }
  .biography-chapter-number { font-size: .8rem; }
  .biography-paper { grid-row: auto; padding: 24px 26px 18px; }
}
@media (max-width: 600px) {
  .biography-reading > .biography-container { width: calc(100% - 24px); }
  .biography-reading .breadcrumbs { margin: 12px 0 12px; font-size: .75rem; gap: 6px; }
  .biography-heading { padding: 7px 0 17px; }
  .biography-heading--with-photo { display: block; }
  .biography-heading h1 { font-size: 2.35rem; line-height: 1.25; }
  .biography-heading .section-kicker { margin-bottom: 8px; font-size: .83rem; }
  .biography-introduction { margin-top: 10px; font-size: 1rem; line-height: 1.75; }
  .biography-origin { margin-top: 9px; font-size: .8rem; }
  .biography-photograph { margin: 16px 0 0; max-width: 340px; }
  .biography-photograph figcaption { font-size: .75rem; }
  .biography-layout { margin-top: 17px; }
  .biography-contents ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
  .biography-contents a { align-items: baseline; font-size: .82rem; padding: 6px 0; }
  .biography-paper { padding: 20px 17px 16px; border-radius: 9px; }
  .biography-chapter h2 { font-size: 1.19rem; margin-bottom: 12px; }
  .biography-chapter + .biography-chapter { margin-top: 23px; padding-top: 19px; }
  .biography-chapter-copy p { font-size: 18px; line-height: 1.85; margin-bottom: .9em; }
  .biography-source { margin-top: 23px; font-size: .8rem; }
  .biography-next { display: grid; gap: 3px; margin-top: 19px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .biography-contents, .biography-next, .biography-variants, .biography-source a { display: none; }
  .biography-reading { background: none; }
  .biography-reading > .biography-container { width: 100%; }
  .biography-layout--with-contents { display: block; }
  .biography-paper { padding: 15px 0; border: 0; box-shadow: none; }
}
