/* Portrait framing and shared profile rhythm. */
:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:32px;align-items:start}
:root .historical-profile-header .historical-profile-portrait{width:100%;max-width:360px;justify-self:center;position:relative}
:root .historical-profile-header .historical-profile-portrait .historical-photograph,:root .historical-profile-header .historical-profile-portrait .historical-photograph>a{height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important;width:100%;display:block;padding:0;overflow:hidden;border-radius:12px}
:root .historical-profile-header .historical-profile-portrait .historical-photograph>a>img{display:block;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain;object-position:center;margin:0;border:0;border-radius:12px;box-shadow:none}
:root .historical-profile-header .historical-profile-title{position:relative;padding-inline-end:56px;margin-bottom:24px}
:root .historical-profile-header .historical-profile-title h1{font-size:clamp(30px,3.1vw,46px);line-height:1.15;margin-bottom:12px}
:root .historical-profile-header .historical-profile-summary{margin:0;gap:6px 18px}
:root .historical-profile-header .contextual-edit-toolbar{margin:0;padding:0;min-height:0}
:root .historical-profile-header .contextual-edit{font-size:0!important;gap:0;width:34px;height:34px;min-height:34px;padding:8px;border-radius:8px;background:var(--theme-raised);opacity:.85}
:root .historical-profile-header .contextual-edit svg{width:16px;height:16px}
:root .historical-profile-title>.contextual-edit-toolbar{position:absolute;right:0;top:4px}
:root .historical-profile-portrait>.contextual-edit-toolbar{position:absolute;right:8px;top:8px;z-index:2}
:root .historical-profile-information{position:relative}
:root .historical-profile-information>.contextual-edit-toolbar{position:absolute;right:8px;top:8px;z-index:2}
:root .historical-profile-visible-facts{position:relative;margin-top:4px}
:root .historical-profile-visible-facts>.contextual-edit-toolbar{position:absolute;right:6px;top:6px;z-index:2}
:root .historical-profile-header .historical-profile-information{gap:20px}
:root .historical-profile-header .historical-profile-parents{gap:14px}
:root .historical-profile-header .historical-parent-card{border-radius:12px;padding:20px;min-height:100px;box-shadow:none}
:root .historical-profile-header .historical-parent-card>a{font-size:18px;line-height:1.45;font-weight:600}
:root .historical-profile-header .historical-profile-actions{gap:10px;margin:0}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{gap:12px}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div{padding:16px;border-radius:10px;min-height:80px;box-shadow:none}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts dt{font-size:12px;margin-bottom:7px}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts dd{font-size:15px}
:root .historical-profile-header .historical-profile-context-layout{margin-top:28px;padding-top:24px;gap:28px}
:root .historical-profile-header .historical-profile-details{padding:16px 18px;border-radius:10px;margin-top:22px;background:var(--theme-surface);border:1px solid var(--theme-border)}
:root .historical-profile-header .historical-profile-nav{padding-top:18px;margin-top:18px}
:root .historical-profile-header>.panel{margin-top:22px;border-radius:14px}
:root .historical-dossier .historical-claims{gap:14px}
:root .historical-dossier .historical-claim{background:var(--theme-raised);border:1px solid var(--theme-border);border-radius:12px;padding:20px}
:root #source-pedigree.panel,:root .historical-dossier.panel{border-radius:16px;padding:28px}
:root .pedigree-completeness{border-radius:12px;padding:18px 20px;background:var(--theme-raised)}
@media(max-width:900px){:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(210px,290px) minmax(0,1fr);gap:22px}:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(0,1fr)}:root .historical-profile-header .historical-profile-portrait{max-width:360px}:root .historical-profile-header .historical-profile-title h1{font-size:30px}:root #source-pedigree.panel,:root .historical-dossier.panel{padding:18px}:root .historical-profile-header .historical-parent-card{padding:16px;min-height:90px}}
