/* Shared profile flow: compact media/facts, then readable biography with family context. */
:root .historical-profile-header,:root .historical-profile-section{box-sizing:border-box;width:100%;max-width:1680px;margin-inline:auto;padding-inline:clamp(20px,2.2vw,40px)}
:root .historical-profile-header{padding-block:12px 8px}
:root .historical-profile-header>.back-link{display:inline-flex;align-items:center;min-height:36px;margin:0;font-size:12px}
:root .historical-profile-header .historical-profile-title{margin-block:6px 16px}
:root .historical-profile-header .historical-profile-title h1{margin-block:0 6px;font-size:clamp(28px,3.1vw,42px);line-height:1.14}
:root .historical-profile-header .historical-profile-summary{align-items:center;gap:2px 14px;margin:0;line-height:1.6}
:root .historical-profile-header .historical-profile-source-status{min-height:28px;padding:0;font-size:12px}
:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(280px,min(35%,480px)) minmax(0,1fr);gap:24px;align-items:start}
:root .historical-profile-header .historical-profile-portrait{display:flex;flex-direction:column;gap:14px;min-width:0}
:root .historical-profile-header .historical-profile-story{margin:0;padding:0}
:root .historical-profile-header .historical-profile-story .historical-profile-context{font-size:14px;line-height:1.65}
:root .historical-profile-header .historical-profile-context p{max-width:88ch}
:root .historical-profile-header .historical-photo-details-link{display:inline-flex;align-items:center;min-height:36px;max-width:100%;color:var(--theme-link);font-size:12px;text-decoration:none;overflow-wrap:anywhere}
:root .historical-profile-header .historical-photo-details-link:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}
:root .historical-profile-header .historical-photo-details-link:focus-visible{outline:1px solid var(--theme-control);outline-offset:3px;border-radius:3px}
:root .historical-profile-header .historical-profile-portrait figcaption{padding-block-start:4px}
:root .historical-profile-header .historical-profile-information{gap:14px}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{gap:10px}
:root .historical-profile-header .historical-profile-related-preview{margin-block-start:14px}
:root .historical-profile-header .historical-profile-documentation{margin-block-start:12px}
:root .historical-profile-header .historical-profile-details{margin-block-start:16px}
:root .historical-profile-header .historical-profile-nav{margin-block-start:6px}
@media(min-width:801px){:root .historical-profile-header .mobile-profile-overview>summary{display:none}:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px) and (min-width:801px){:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:20px}:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(0,1fr);gap:14px}:root .historical-profile-header>.back-link{min-height:44px}:root .historical-profile-header .historical-profile-portrait{gap:4px}:root .historical-profile-header .historical-photo-details-link{min-height:44px}:root .historical-profile-header .historical-profile-title{margin-block:4px 14px}:root .historical-profile-header .historical-profile-story{border-block-end:1px solid var(--theme-border)}:root .historical-profile-header .historical-profile-story[open]{padding-block-end:12px}:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{:root .historical-profile-header,:root .historical-profile-section{width:100%;max-width:none;padding-inline:0}:root .historical-profile-header .mobile-profile-overview::details-content{content-visibility:visible!important;display:block!important}:root .historical-profile-header .mobile-profile-overview>summary{display:none}:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}:root .historical-profile-header .historical-profile-portrait{break-inside:avoid}}

:root .historical-profile-header>.historical-profile-story{margin-block-start:20px;padding-block-start:16px;border-block-start:1px solid var(--theme-border)}
:root .historical-profile-header .historical-profile-context-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
:root .historical-profile-header .historical-profile-context-layout>*{min-width:0}
:root .historical-profile-header .historical-profile-supporting-context{font-size:13px;line-height:1.6;min-width:0}
:root .historical-profile-header .historical-profile-supporting-context .historical-profile-related-preview{margin:0;padding-block-start:0;border-block-start:0}
:root .historical-profile-header .historical-profile-supporting-context .historical-profile-documentation{margin-block-start:12px}
@media(min-width:1001px){:root .historical-profile-header .historical-profile-context-layout:has(>.historical-profile-supporting-context){grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr)}:root .historical-profile-header .historical-profile-supporting-context{border-inline-start:1px solid var(--theme-border);padding-inline-start:24px}}
@media(max-width:800px){:root .historical-profile-header>.historical-profile-story{margin-block-start:12px;padding-block-start:0;border-block-end:0}:root .historical-profile-header .historical-profile-context-layout{gap:14px}:root .historical-profile-header .historical-profile-supporting-context{border-block-start:1px solid var(--theme-border);padding-block-start:12px}}
@media print{:root .historical-profile-header .historical-profile-context-layout{grid-template-columns:minmax(0,1fr)}:root .historical-profile-header .historical-profile-supporting-context{border-inline-start:0;padding-inline-start:0}}

@media(min-width:1001px){:root .historical-profile-header .historical-profile-overview.has-photograph{grid-template-columns:minmax(280px,min(44%,520px)) minmax(0,1fr)}:root .historical-profile-header .historical-profile-portrait .historical-photograph>a>img{width:100%;max-width:100%;height:auto;max-height:480px}}
