.bio-shell {
  --facts-bg: #f3eddf;
  --reader-rule: #d6cdbd;
  --reader-gold: #806330;
  --chapter-active: #eae6db;
  display: grid;
  grid-template-columns: minmax(0, 275px) minmax(0, 1fr);
  column-gap: clamp(34px, 6vw, 92px);
  align-items: start;
  max-width: 1192px;
  margin-inline: auto;
  padding: 0 36px 4rem;
}
:root[data-theme="dark"] .bio-shell {
  --facts-bg: #1d3239;
  --reader-rule: #405053;
  --reader-gold: #dfb976;
  --chapter-active: #263e44;
}
.bio-shell > * { grid-column: 1 / -1; min-width: 0; }
.bio-crumb, .bio-category, .intro-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.bio-crumb { gap: 12px; padding-block: 19px; color: var(--muted); font-size: .84rem; }
.bio-crumb a, .bio-crumb a:visited { color: inherit; }
.bio-crumb [aria-hidden] { color: var(--reader-gold); font: 1.2rem Georgia, serif; }
.bio-front {
  --portrait-column: 39.2%;
  --front-gutter: clamp(20px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--portrait-column);
  overflow: hidden;
  background: #10272f;
  color: #fffaf1;
  border-radius: 3px 3px 0 0;
}
.bio-front-text-only { grid-template-columns: 1fr; }
.bio-front-text { min-width: 0; align-self: center; padding: 32px var(--front-gutter); }
.bio-front-text:has(.bio-profile-lines:empty) h1 { margin-block-end: 0; }
.bio-category, .intro-label { gap: .72rem; font-size: .93rem; font-weight: 700; }
.bio-category { gap: .5em; color: #f0cc8b; }
.bio-category svg { width: 1.12em; height: 1.12em; margin: 0; color: inherit; }
.intro-label::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.bio-front h1 {
  margin: .12em 0 20px;
  border: 0;
  padding: 0;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  line-height: 1.5;
  color: inherit;
  overflow-wrap: anywhere;
}
.bio-front .infobox-head-name { vertical-align: baseline; }
.bio-front.measuring-name .infobox-head-name { display: inline-block; white-space: nowrap; }
.bio-front .bio-name-end { white-space: nowrap; }
.bio-front .verdict-seal { width: 22px; height: 22px; margin-inline-start: .22em; vertical-align: .04em; }
.bio-profile-lines { min-width: 0; }
.bio-profession {
  display: flex; align-items: baseline; gap: .5em; min-width: 0;
  margin: 0; color: #f5f1e7; font-size: 1.15rem; line-height: 1.7; overflow-wrap: anywhere;
}
.bio-profession .infobox-icon {
  align-self: flex-start; flex: none; color: #e7c789;
  width: 1.04em; height: 1.04em; margin: .35em 0 0;
}
.bio-facts, .chapter-mobile { background: var(--facts-bg); border-block-end: 1px solid var(--reader-rule); }
.bio-reading .chapter-mobile > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 9px 23px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}
.chapter-mobile > summary::-webkit-details-marker { display: none; }
.bio-reading .chapter-mobile > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin: 0 3px 4px;
  color: inherit;
  border-inline-end: 1.5px solid;
  border-block-end: 1.5px solid;
  transform: rotate(-45deg);
}
.bio-reading .chapter-mobile[open] > summary::after { transform: rotate(135deg); }
.bio-facts > h2 {
  margin: 0;
  padding: .85rem 24px .4rem;
  border: 0;
  font-size: 1.18rem;
  line-height: 1.55;
}
/* Keep cached pages with the earlier native disclosure operable during rollout. */
details.bio-facts > summary { padding: 10px 16px; cursor: pointer; }
details.bio-facts:not([open]) .facts-hide, details.bio-facts[open] .facts-show { display: none; }
.bio-facts .infobox {
  display: block;
  float: none;
  clear: none;
  margin: 0;
  padding: 6px 24px 20px;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 1rem;
}
.bio-facts tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 22px; }
.bio-facts .infobox-row { display: block; min-width: 0; padding-top: 7px; border-block-start: 1px solid var(--reader-rule); }
.bio-facts .infobox th, .bio-facts .infobox td { display: block; width: auto; padding: 0; background: transparent; }
.bio-facts .infobox th { font-size: .88rem; color: var(--muted); }
.bio-facts .infobox td { margin-top: .18em; line-height: 1.65; }
.bio-facts .infobox-icon { color: var(--reader-gold); width: 1.1em; height: 1.1em; }
/* Both markup versions keep the index beside the text during a rolling upload. */
.bio-shell > .chapter-panel,
.bio-shell > .chapter-rail { grid-column: 1; align-self: stretch; }
.bio-shell > .chapter-panel { align-self: start; }
.chapter-panel, .bio-reading { margin-top: 42px; }
.chapter-rail > .chapter-panel {
  position: sticky;
  top: 84px;
}
.chapter-panel {
  overflow-y: auto;
  max-height: calc(100vh - 100px);
  scrollbar-width: thin;
  border-block-start: 2px solid #ab8546;
  padding-block-start: 16px;
}
.chapter-panel h2 { font-size: 1.3rem; margin: 0 12px 12px; border: 0; padding: 0; }
.chapter-panel ol, .bio-reading .chapter-mobile ol { list-style: none; padding: 0; margin: 0; }
.chapter-panel ol ol, .bio-reading .chapter-mobile ol ol { padding-inline-start: 1rem; }
.chapter-panel li, .bio-reading .chapter-mobile li { margin: 0; }
.chapter-panel li + li, .chapter-mobile li + li { border-block-start: 1px solid var(--reader-rule); }
.chapter-panel a, .chapter-mobile nav a {
  display: block;
  padding: .54rem .85rem;
  color: inherit;
  text-decoration: none;
  font-size: .93rem;
  line-height: 1.55;
}
.chapter-panel a:visited, .chapter-mobile nav a:visited { color: inherit; }
.chapter-panel a[aria-current], .chapter-panel a:hover, .chapter-mobile nav a:hover { background: var(--chapter-active); }
.chapter-panel a[aria-current] { box-shadow: inset -3px 0 var(--reader-gold); font-weight: 700; }
.chapter-panel .tocnumber, .chapter-mobile .tocnumber { color: var(--reader-gold); font-size: .85em; }
.bio-shell > :is(.chapter-rail, .chapter-panel) + .bio-reading { grid-column: 2; }
.bio-reading { font-size: clamp(1.12rem, 1.55vw, 1.32rem); line-height: 1.94; overflow-wrap: anywhere; }
.bio-shell .chapter-mobile { display: none; }
.intro-label { margin-bottom: 12px; color: var(--reader-gold); }
.bio-shell .bio-reading > :is(p, ul, ol, blockquote, .bio-pullquote) { font-size: 1em; font-weight: 400; }
.bio-reading > p { margin: 0 0 1.15em; }
.bio-reading > :is(ul,ol) { padding-inline-start: 1.4em; margin-inline-start: 0; }
.bio-reading > :is(ul,ol) > li { margin-block-end: .52em; }
.bio-shell > .page-body > h2 {
  margin: 1.75em 0 .72em;
  padding: .65em 0 0;
  border: 0;
  border-block-start: 1px solid var(--reader-rule);
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  line-height: 1.5;
}
.bio-reading .bio-section-icon { color: var(--reader-gold); margin-inline-end: .22em; }
.bio-reading [id] { scroll-margin-top: 90px; }
.bio-reading > .sources { font-size: .94em; }
.bio-reading > .dating-note { margin-top: 1.3em; }

@media (max-width: 800px) {
  .bio-shell { display: block; padding-inline: 22px; }
  .bio-shell > :is(.chapter-rail, .chapter-panel) { display: none; }
  .bio-shell .chapter-mobile {
    display: block; width: auto; margin: 1.1em 0; padding: 0;
    border: 1px solid var(--reader-rule); background: var(--facts-bg); border-radius: 2px;
  }
  .chapter-mobile nav { padding: 0 12px 12px; }
  .bio-reading { margin-top: 24px; font-size: 1.13rem; }
  .bio-facts tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bio-shell { padding-inline: 16px; }
  .bio-crumb { padding: 12px 0; gap: 8px; font-size: .78rem; }
  .bio-front { --front-gutter: 13px; }
  .bio-front-text { padding: 14px var(--front-gutter); }
  .bio-category { gap: .4rem; font-size: .76rem; }
  .bio-front h1 { margin: .12em 0 18px; font-size: clamp(1.5rem, 6.6vw, 1.94rem); }
  .bio-front .verdict-seal { width: 20px; height: 20px; vertical-align: -.04em; }
  .bio-profession { font-size: .88rem; line-height: 1.6; }
  .bio-reading .chapter-mobile > summary { min-height: 44px; padding: 8px 13px; font-size: .94rem; }
  .bio-facts > h2 { padding: .7rem 13px .3rem; font-size: 1.05rem; }
  .bio-facts .infobox { padding: 4px 13px 14px; }
  .bio-facts tbody { gap: 9px 14px; }
  .bio-facts .infobox td { font-size: .93rem; }
  .intro-label { margin-bottom: 8px; font-size: .86rem; }
  .bio-reading { font-size: 1.08rem; }
}
@media screen and (max-width: 500px) {
  .bio-front { grid-template-columns: minmax(0, 1fr); }
  .bio-front > figure { grid-row: 1; padding: 15px 15px 0; }
  .bio-front-text { padding: 15px 16px 18px; }
  .bio-front h1 { margin-block-end: 10px; }
}
@media (max-width: 360px) {
  .bio-facts .infobox-row:is(.infobox-row-occupation, .infobox-row-born, .infobox-row-died, .infobox-row-full_name) {
    grid-column: 1 / -1;
  }
}
@media print {
  .bio-shell { display: block; max-width: none; padding: 0; }
  .bio-front { background: white; color: black; grid-template-columns: 2fr 1fr; }
  .bio-category, .bio-profession, .intro-label, .bio-facts .infobox-icon, .bio-profession .infobox-icon { color: black; }
  .bio-shell > :is(.chapter-rail, .chapter-panel), .bio-shell .chapter-mobile, .bio-facts > summary { display: none; }
  .bio-facts { background: transparent; }
  details.bio-facts::details-content, .bio-facts details::details-content { content-visibility: visible; }
  .bio-facts tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-reading { margin-top: 1.5em; }
  .bio-shell .bio-reading > h2 { break-after: avoid; }
}
