/* The source details also work as a list of expandable profiles with scripting disabled. */
.person { background: var(--paper-card); border: 1px solid var(--line); margin: 0 0 .75rem; }
.person summary { cursor: pointer; list-style: none; color: var(--ink); }
.person summary::-webkit-details-marker { display: none; }
.person > summary::before { content: "＋"; color: var(--wine); font: 600 1rem var(--ui); }
.person[open] > summary::before { content: "−"; }
.person-body { display: flow-root; padding: .25rem clamp(1rem, 3vw, 2rem) 1.25rem; overflow-wrap: anywhere; }
.person-body p { margin: .7rem 0 1rem; }
.people-note { border-left: 3px solid var(--wine); padding: .8rem 1rem; background: #e8f1ea; }

.people-list .directory-content .person > summary, .directory-content .person-archive-years { display: none; }
.person-profile-heading {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: var(--directory-gap) 0;
  margin-bottom: var(--directory-gap);
  border-bottom: 1px solid var(--directory-card-line);
}
.people-list img.person-profile-portrait {
  flex: none;
  width: clamp(5.5rem, 10vw, 8rem);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid var(--line);
  border-radius: .75rem;
  box-shadow: 0 .25rem .45rem #14282927;
}
.directory-content .person-profile-heading { padding-top: 0; }
.person-profile-info { min-width: 0; }
.person-profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.person-profile-years {
  padding: .12rem .65rem;
  color: white;
  background: var(--wine);
  border-radius: 2rem;
  font: .8rem/1.4 var(--mono);
}
.people-list .person-title {
  margin: .45rem 0 .6rem;
  overflow-wrap: anywhere;
  font: 650 clamp(1.9rem, 3vw, 2.45rem)/1.05 var(--display);
}
.people-list .person-role { margin: 0; color: var(--accent); font: 550 .83rem/1.45 var(--ui); }
.people-list .person-full-name { margin: 0 0 .65rem; color: var(--ink-muted); font: italic .9rem/1.45 var(--reading); }
.people-list .person-connection { margin: 0; color: var(--ink-muted); font: .92rem/1.6 var(--ui); }
.people-list .person-profile-heading .related-links { gap: .5rem; margin: .85rem 0 0; }
.people-list .person-profile-heading .related-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .7rem;
  color: var(--ink);
  border-radius: .55rem;
  font-weight: 550;
  text-decoration: none;
}
.people-list .person-profile-heading .related-links a:hover { text-decoration: underline; }
.people-list .person-profile-heading .related-links a::before {
  width: 1rem;
  height: 1rem;
  flex: none;
  content: "";
  background: currentColor;
  mask: var(--person-link-icon) center / contain no-repeat;
}
.people-list .person-profile-heading .related-links .profile-gallery-link {
  --person-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E");
  color: white;
  background: var(--directory-green);
}
.people-list .person-profile-heading .related-links .profile-places-link {
  --person-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M19 9c0 5-7 12-7 12S5 14 5 9a7 7 0 1 1 14 0Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}
.people-list .person-profile-heading .related-links .profile-places-link::before { color: var(--wine); }
.people-list .person-profile-heading .related-links .profile-reading-link {
  --person-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5C9 3 5 3 2 4v15c3-1 7-1 10 1 3-2 7-2 10-1V4c-3-1-7-1-10 1Zm0 0v15'/%3E%3C/svg%3E");
  color: #6e4b1f;
  background: #b5834733;
}
.museum .people-list .directory-content .person-body { max-width: none; padding: 0; }
.person-section-title {
  margin: 0 0 1rem;
  padding-inline-start: .75rem;
  border-inline-start: 3px solid var(--wine);
  font: 650 clamp(1.35rem, 2.4vw, 1.8rem)/1.3 var(--display);
}
@media (max-width: 37.5rem) {
  .person-profile-heading { flex-wrap: wrap; }
  .person-body { padding-inline: .8rem; }
}

/* Bibliographic fragment retained from the source document. */
.people-list .person-body .person-hidden-bibliography-fragment { position: absolute; left: -10000px; top: 591px; width: 1px; height: 1px; overflow: hidden; }
.person-hidden-bibliography-fragment :is(.bib-spacious, .bib-indented, .bib-hanging) { text-align: justify; margin-left: 18pt; line-height: 150%; }
.person-hidden-bibliography-fragment .bib-spacious { line-height: 200%; }
.person-hidden-bibliography-fragment .bib-hanging { margin-left: 36pt; text-indent: -18pt; }
.person-hidden-bibliography-fragment .bib-times { font-family: "Times New Roman", "serif"; }
.person-hidden-bibliography-fragment .bib-bashkir { font-family: "TimBashk", "serif"; }
.person-hidden-bibliography-fragment .bib-fine-print { font: 7pt "Times New Roman"; }

.bibliography-source-title, .bibliography-spacing { display: none; }
.people-list .person-body .bibliography-results .bibliography-section-title {
  margin: .85rem 0 .4rem;
  color: var(--wine);
  font: 650 .77rem/1.45 var(--ui);
  letter-spacing: .04em;
  text-align: start;
  text-transform: uppercase;
}
.people-list .person-body .bibliography-entry p { margin: 0; }
.people-list .person-body .bibliography-entry p + p:not(.bibliography-spacing) { margin-block-start: .33rem; }
