/* PITVU premium profile cards: precise, compact, consistent in both themes. */
:root .historical-profile-header{
 --pitvu-card-bg:var(--theme-raised,#fffdf8);
 --pitvu-card-line:var(--theme-border,#ccd1c5);
 --pitvu-card-fg:var(--theme-text,#26372d);
 --pitvu-card-sub:var(--theme-muted,#667268);
}
:root .historical-profile-header .pitvu-profile-gallery-stage.pitvu-photo-portrait{
 aspect-ratio:4/4.7!important;max-height:min(76vh,620px);
}
:root .historical-profile-header .pitvu-profile-gallery-stage.pitvu-photo-landscape{
 aspect-ratio:5/4!important;max-height:min(64vh,515px);
}
:root .historical-profile-header .historical-profile-overview.has-photograph{
 gap:clamp(16px,1.8vw,25px)!important;
}
:root .historical-profile-header .historical-profile-information{min-width:0}
:root .historical-profile-header .historical-profile-parents{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px!important;
}
:root .historical-profile-header .historical-parent-card{
 display:flex;flex-direction:column;justify-content:center;
 min-width:0;min-height:79px!important;box-sizing:border-box;
 padding:13px 16px!important;border:1px solid var(--pitvu-card-line)!important;
 border-radius:8px!important;background:var(--pitvu-card-bg)!important;
 box-shadow:none!important;color:var(--pitvu-card-fg)!important;
 transition:border-color .16s ease,background-color .16s ease;
}
:root .historical-profile-header .historical-parent-card:focus-within,
:root .historical-profile-header .historical-parent-card:hover{
 border-color:var(--theme-link,#335e4b)!important;
}
:root .historical-profile-header .historical-parent-card .eyebrow{
 margin:0 0 6px!important;font-size:.7rem!important;
 color:var(--pitvu-card-sub)!important;letter-spacing:.065em;
}
:root .historical-profile-header .historical-parent-card>a,
:root .historical-profile-header .historical-parent-card>span:not(.eyebrow){
 display:block;overflow-wrap:anywhere;font-size:clamp(.95rem,1.3vw,1.1rem)!important;
 line-height:1.35!important;font-weight:650!important;
 color:var(--theme-link,#285848)!important;
}
:root .historical-profile-header .historical-profile-visible-facts{
 margin-top:0!important;
}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 grid-auto-flow:row;align-items:stretch;gap:9px!important;
}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div{
 box-sizing:border-box;min-width:0;
 padding:12px 14px!important;min-height:77px!important;
 border:1px solid var(--pitvu-card-line)!important;border-radius:8px!important;
 background:var(--theme-surface,#f7f4eb)!important;box-shadow:none!important;
 transition:border-color .16s ease,background-color .16s ease!important;
}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div:is(:hover,:focus-within){
 border-color:var(--theme-control,#98ab9a)!important;
}
:root .historical-profile-header .historical-profile-facts dt{
 margin:0 0 6px!important;color:var(--pitvu-card-sub)!important;
 line-height:1.35!important;font-size:.75rem!important;font-weight:500!important;
}
:root .historical-profile-header .historical-profile-facts dd{
 color:var(--pitvu-card-fg)!important;font-size:clamp(.82rem,1.05vw,.96rem)!important;
 line-height:1.48!important;font-weight:600!important;margin:0!important;overflow-wrap:anywhere;
}
:root .historical-profile-header .historical-profile-facts dd :is(a,span){
 line-height:inherit;
}
:root .historical-profile-header .historical-fact-citation{
 display:none!important;
}
:root .historical-profile-header .historical-profile-actions{
 align-items:center;gap:9px!important;min-height:0;margin:1px 0!important;
}
:root .historical-profile-header .historical-profile-actions>.button{
 display:inline-flex;align-items:center;justify-content:center;
 position:relative;isolation:isolate;padding:9px 15px!important;
 margin:0!important;min-height:40px!important;line-height:1.35!important;
 box-sizing:border-box;border-radius:6px!important;
 transform:none!important;box-shadow:none!important;
 transition:background-color .18s,border-color .18s!important;
}
:root .historical-profile-header .historical-profile-actions>.button::before,
:root .historical-profile-header .historical-profile-actions>.button::after{
 content:none!important;display:none!important;
}
:root .historical-profile-header .historical-profile-actions>.button:hover{
 transform:none!important;
}
:root .historical-profile-header .historical-profile-actions>.button:focus-visible{
 outline:2px solid var(--theme-link,#315c4b);outline-offset:3px;
}
:root .historical-profile-header .pitvu-gallery-footer-id{
 color:var(--pitvu-card-sub);font-size:.71rem;
}
@media(min-width:801px) and (max-width:1100px){
 :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 .pitvu-profile-gallery-stage.pitvu-photo-portrait{
  aspect-ratio:4/4.7!important;max-height:540px!important;
 }
 :root .historical-profile-header .pitvu-profile-gallery-stage.pitvu-photo-landscape{
  aspect-ratio:5/4!important;max-height:430px!important;
 }
 :root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 :root .historical-profile-header .historical-parent-card{padding:11px 13px!important;min-height:74px!important}
 :root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div{
  padding:11px 12px!important;min-height:72px!important;
 }
}
@media(max-width:420px){
 :root .historical-profile-header .historical-profile-overview.has-photograph{
  gap:12px!important;
 }
 :root .historical-profile-header .historical-profile-facts dd{font-size:.84rem!important}
 :root .historical-profile-header .historical-profile-facts dt{font-size:.72rem!important}
 :root .historical-profile-header .historical-profile-actions>.button{
  min-height:42px!important;padding-inline:13px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 :root .historical-profile-header .historical-parent-card,
 :root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div{
  transition:none!important;
 }
}
