/* Continue the offline prototype's rose accents and quiet white reading surfaces. */
.inheritor-hero { border-bottom: 1px solid var(--line); }
.inheritor-hero .inheritor-designation { color: var(--red); font-size: 14px; font-weight: 600; }
.profile-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 18px; }
.profile-nav a { border-bottom: 1px solid var(--pink); padding-bottom: 5px; font-size: 14px; }
.profile-content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.profile-reading { max-width: 780px; }
.profile-reading h2, .profile-records h2 { font-size: 25px; margin: 0 0 18px; }
.profile-reading p { color: var(--body); line-height: 2; margin: 0; }
.profile-reading article { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.profile-references { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.profile-references a { font-size: 12px; color: var(--red); padding: 2px 4px; }
.profile-records { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.profile-hint { font-size: 13px; color: var(--muted); line-height: 1.9; }
.profile-timeline { list-style: none; margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--pink-soft); }
.profile-timeline li { position: relative; padding: 0 0 24px 8px; }
.profile-timeline li:last-child { padding-bottom: 0; }
.profile-timeline li::before { content: ''; position: absolute; width: 8px; height: 8px; background: var(--pink); border-radius: 50%; top: 10px; left: -23px; }
.profile-timeline time { font-size: 14px; color: var(--red); font-weight: 700; }
.profile-timeline p { margin: 8px 0 0; font-size: 14px; color: var(--body); }
.profile-sources { background: var(--white); border-top: 1px solid var(--line); }
.profile-sources ol { padding-left: 24px; margin: 0; }
.profile-sources li { padding: 12px 0; }
.profile-sources li::marker { color: var(--red); }
.profile-sources li a { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.profile-sources li p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.profile-sources li:target { background: var(--pink-soft); }
#biography, #milestones, #profile-sources, #regional-materials, .profile-sources li { scroll-margin-top: 24px; }
.person-photos { border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.photo-count { display: inline-block; vertical-align: middle; padding: 3px 10px; font-size: 14px; color: var(--red); background: var(--pink-soft); border-radius: 20px; }
.person-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.person-photo { min-width: 0; margin: 0; }
.person-photo > a { position: relative; display: flex; align-items: center; justify-content: center; height: 440px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.person-photo > a:hover, .person-photo > a:focus-visible { border-color: var(--pink); outline: 2px solid var(--pink-soft); outline-offset: 3px; }
.photo-enlarge { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; background: var(--white); color: var(--red); border: 1px solid var(--line); border-radius: 20px; font-size: 12px; }
.person-photo figcaption { padding: 16px 2px 4px; }
.person-photo h3 { font-size: 18px; margin: 0 0 6px; }
.person-photo figcaption p { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 850px) {
  .profile-content { grid-template-columns: 1fr; gap: 32px; }
  .profile-records { padding: 24px; }
}
@media (max-width: 580px) {
  .person-photo-grid { grid-template-columns: 1fr; gap: 24px; }
  .person-photo > a { height: 340px; padding: 12px; }
  .profile-nav { gap: 12px 20px; }
  .profile-reading h2, .profile-records h2 { font-size: 23px; }
  .profile-reading p { font-size: 15px; }
}
