/* Explicit dark-mode contrast: legacy PITVU variables mix dark text with light surfaces. */
:root[data-theme="dark"] .historical-profile-header,
:root[data-pitvu-theme="dark"] .historical-profile-header{
 --pitvu-card-bg:#1c2d29!important;
 --pitvu-card-line:#465c53!important;
 --pitvu-card-fg:#f2eee5!important;
 --pitvu-card-sub:#b0c0b5!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-parent-card,
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-parent-card{
 background:#1c2d29!important;border-color:#465c53!important;color:#f2eee5!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-parent-card .eyebrow,
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-parent-card .eyebrow{
 color:#b4c3b9!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-parent-card>a,
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-parent-card>a{
 color:#c5e7d2!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div,
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div{
 background:#20312c!important;border-color:#465c53!important;color:#f2eee5!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-profile-facts :is(dt,dt a),
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-profile-facts :is(dt,dt a){
 color:#b4c3b9!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-profile-facts :is(dd,dd span,dd a,dd strong,dd time,dd summary),
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-profile-facts :is(dd,dd span,dd a,dd strong,dd time,dd summary){
 color:#f2eee5!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-profile-actions>.button:first-of-type,
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-profile-actions>.button:first-of-type{
 background:#294d3e!important;border-color:#618878!important;color:#f2f7f0!important;
}
:root[data-theme="dark"] .historical-profile-header .historical-profile-actions>.button.secondary,
:root[data-pitvu-theme="dark"] .historical-profile-header .historical-profile-actions>.button.secondary{
 background:#21352e!important;border-color:#668273!important;color:#e4f0e9!important;
}
:root[data-theme="dark"] .historical-profile-header .pitvu-gallery-footer,
:root[data-pitvu-theme="dark"] .historical-profile-header .pitvu-gallery-footer{
 color:#b4c3b9!important;
}
:root[data-theme="dark"] .historical-profile-header .pitvu-gallery-footer-id,
:root[data-pitvu-theme="dark"] .historical-profile-header .pitvu-gallery-footer-id{
 color:#b4c3b9!important;
}
