/* Route-specific dark appearance. Prepared independently of public build.
   Artwork and archive photographs retain their original pixels and cropping. */
html[data-arc-theme="dark"][data-archelaos-page="photos"] body :is(.photo-archive-closing-quote,.gallery-guide,#photoDrawer .photo-view-stack){
 background:var(--arc-appearance-surface)!important;color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"][data-archelaos-page="photos"] body :is(.hero h1,.gallery-head h2,.gallery-guide h2,.gallery-guide-step h3,.gallery-guide-heading p strong,.photo-archive-closing-quote blockquote,#photoDrawer .detail-heading,#photoDrawer .photo-bio-heading,.photo-related h3){
 color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"][data-archelaos-page="photos"] body :is(.hero p,.gallery-head p,.gallery-guide-heading p,.gallery-guide-step p,.gallery-foot,.page-status,.detail-caption,.photo-bio-meta,.photo-bio-body,.photo-related p,.proposal-help,.proposal-consent,.proposal-form label small){
 color:var(--arc-appearance-muted)!important;
}
html[data-arc-theme="dark"][data-archelaos-page="photos"] body :is(.gallery-guide-step,.proposal-security,.search,.filter-btn:not(.active),.view-btn:not(.active),.gallery-pagination button:not([aria-current="page"]),.photo-person-links a):not(:hover):not(:focus-visible){
 background:var(--arc-appearance-surface-raised)!important;color:var(--arc-appearance-ink)!important;border-color:var(--arc-appearance-border)!important;
}
html[data-arc-theme="dark"][data-archelaos-page="photos"] body .hero-art::after{
 background:linear-gradient(to bottom,rgba(16,26,22,.10),transparent 22%,transparent 75%,var(--arc-appearance-surface) 100%),linear-gradient(to right,var(--arc-appearance-surface) 0%,rgba(16,26,22,.85) 16%,transparent 65%)!important;
}
html[data-arc-theme="dark"][data-archelaos-page="photos"] body .search input{color:var(--arc-appearance-ink)!important}
html[data-arc-theme="dark"][data-archelaos-page="photos"] body :is(.drawer-kicker,.section-kicker,.photo-bio-kicker){color:var(--arc-appearance-accent)!important}
html[data-arc-theme="dark"][data-archelaos-page="photos"] body .proposal-feedback{color:#ffb5a5!important}
/* The Board generator uses local --b-* values. Keep the president's green
   card and the emblem unchanged; map its non-brand surfaces only. */
:root[data-arc-theme="dark"] body .board-page{
 --b-dark:var(--arc-appearance-ink);--b-line:var(--arc-appearance-border);--b-muted:var(--arc-appearance-muted);
 background:var(--arc-appearance-surface)!important;color:var(--arc-appearance-ink)!important;
}
:root[data-arc-theme="dark"] body .board-page :is(.board-roster-shell,.board-drawer){
 background:var(--arc-appearance-surface-raised)!important;border-color:var(--arc-appearance-border);
}
:root[data-arc-theme="dark"] body .board-page :is(.board-year,.board-era:not([aria-pressed="true"]),.board-link,.board-ctl,.board-tabs button,.board-drawer-years button:not([aria-current="true"]),.board-close):not(:hover):not(:focus-visible){
 background:var(--arc-appearance-surface-raised)!important;color:var(--arc-appearance-ink)!important;border-color:var(--arc-appearance-border)!important;
}
:root[data-arc-theme="dark"] body .board-page .board-year:not(:hover):not(:focus-visible){border-left-color:var(--arc-appearance-yellow)!important}
:root[data-arc-theme="dark"] body .board-page :is(.board-year strong,.board-year span,.board-roster dd,.board-drawer-scroll h2,.board-roster-head,.board-drawer-top strong,.board-eyebrow):not(.board-president .board-eyebrow){
 color:var(--arc-appearance-ink)!important;
}
:root[data-arc-theme="dark"] body .board-page :is(.board-year:hover,.board-year:focus-visible) :is(strong,span,time){color:var(--arc-appearance-hover-ink)!important}
:root[data-arc-theme="dark"] body .board-page :is(.board-intro,.board-footnote){color:var(--arc-appearance-muted)!important}
:root[data-arc-theme="dark"] body .board-page .board-roster div{border-bottom-color:var(--arc-appearance-border)}
:root[data-arc-theme="dark"] body .board-page .board-tabs button[aria-selected="true"]{box-shadow:inset 0 -3px var(--arc-appearance-yellow);border-color:var(--arc-appearance-yellow)!important}
/* Press uses local variables. Map reader/text/form components explicitly,
   leaving media lightboxes, printed documents and download artwork alone. */
:root[data-arc-theme="dark"] body:has(.press-public-form) :is(.press-desk,.press-public-form,.reader-footer-nav,.release-row:is(:hover,:focus-within)){
 background:var(--arc-appearance-surface-raised)!important;border-color:var(--arc-appearance-border)!important;
}
:root[data-arc-theme="dark"] body:has(.press-public-form) :is(.hero h1,.section-head h2,.release-main h3,.press-desk-meta a,.reader-intro,.reader-copy,.press-public-form h3,.press-public-form label,.press-consent){
 color:var(--arc-appearance-ink)!important;
}
:root[data-arc-theme="dark"] body:has(.press-public-form) :is(.hero-desc,.section-note,.release-meta,.release-lead,.press-desk-label,.press-desk-meta,.press-public-form>p,.press-privacy,.press-pagination .page-summary){
 color:var(--arc-appearance-muted)!important;
}
:root[data-arc-theme="dark"] body:has(.press-public-form) .press-desk-email{color:var(--arc-appearance-accent)!important}
:root[data-arc-theme="dark"] body:has(.press-public-form) :is(.filters,.press-public-form) :is(input:not([type="checkbox"]):not([type="hidden"]),select,textarea){
 color:var(--arc-appearance-ink)!important;background:var(--arc-appearance-surface-raised)!important;border-color:var(--arc-appearance-border)!important;
}
:root[data-arc-theme="dark"] body:has(.press-public-form) .press-status{color:var(--arc-appearance-accent)!important}
:root[data-arc-theme="dark"] body:has(.press-public-form) .press-status[data-error="true"]{color:#ffb5a5!important}
:root[data-arc-theme="dark"] body:has(.press-public-form) dialog.drawer{background:var(--arc-appearance-surface)!important;color:var(--arc-appearance-ink)!important}
/* Artwork is generated from the Support shell. Never alter image filters,
   original download links, resolution, crop, or device selection. */
:root[data-arc-theme="dark"] body :is(main.aw,.aw-modal){
 background:var(--arc-appearance-surface)!important;color:var(--arc-appearance-ink)!important;
}
:root[data-arc-theme="dark"] body :is(.aw-hero h1,.aw-toolbar h2,.aw-info h3,.aw-modal-header h2){color:var(--arc-appearance-ink)!important}
:root[data-arc-theme="dark"] body :is(.aw-hero p,.aw-note,.aw-downloads small){color:var(--arc-appearance-muted)!important}
:root[data-arc-theme="dark"] body :is(.aw-card,.aw-hero-art,.aw-toggle,.aw-image,.aw-downloads a:not(:hover):not(:focus-visible)){
 background:var(--arc-appearance-surface-raised)!important;border-color:var(--arc-appearance-border)!important;color:var(--arc-appearance-ink)!important;
}
:root[data-arc-theme="dark"] body .aw-toggle button:not([aria-pressed="true"]):not(:hover):not(:focus-visible){color:var(--arc-appearance-ink)!important}
:root[data-arc-theme="dark"] body .aw-toggle button[aria-pressed="true"]{color:var(--arc-appearance-hover-ink)!important}
:root[data-arc-theme="dark"] body .aw-downloads a:is(:hover,:focus-visible){color:var(--arc-appearance-hover-ink)!important}
:root[data-arc-theme="dark"] body .aw-downloads a:is(:hover,:focus-visible) small{color:inherit!important}
:root[data-arc-theme="dark"] body .aw-modal-header button:not(:hover):not(:focus-visible){color:var(--arc-appearance-ink)!important}
/* Static public biographies and historical events, generated by
   scripts/public-archive-pages.mjs. Existing article share remains intact. */
:root[data-arc-theme="dark"] body .arc-entry-main{background:var(--arc-appearance-surface)!important;color:var(--arc-appearance-ink)!important}
:root[data-arc-theme="dark"] body .arc-entry-main :is(h1,.arc-prose p,.arc-directory-item){color:var(--arc-appearance-ink)!important}
:root[data-arc-theme="dark"] body .arc-entry-main :is(.arc-meta,.arc-label,.arc-breadcrumb,.arc-directory-item small,.arc-directory>p){color:var(--arc-appearance-muted)!important}
:root[data-arc-theme="dark"] body .arc-entry-main :is(.arc-breadcrumb a,.arc-back,.arc-share-status){color:var(--arc-appearance-accent)!important}
:root[data-arc-theme="dark"] body .arc-entry-main :is(.arc-toolbar,.arc-directory-item){border-color:var(--arc-appearance-border)!important}
:root[data-arc-theme="dark"] body .arc-entry-main .arc-share:not(:hover):not(:focus-visible){background:var(--arc-appearance-surface-raised)!important;color:var(--arc-appearance-ink)!important;border-color:var(--arc-appearance-border)!important}
/* Real readable text sizing for long-form records. */
:root body .arc-entry-main .arc-prose p{font-size:calc(clamp(16px,1.8vw,18px) * var(--arc-appearance-text-scale,1))}
:root body #photoDrawer .photo-bio-body{font-size:calc(clamp(16px,1.2vw,18px) * var(--arc-appearance-text-scale,1))}
:root body .board-page .board-drawer-list li strong{font-size:calc(13px * var(--arc-appearance-text-scale,1))}
:root body .board-page .board-drawer-list li span{font-size:calc(11px * var(--arc-appearance-text-scale,1))}
:root body .reader-copy{font-size:calc(15px * var(--arc-appearance-text-scale,1))}
:root[data-arc-reduced-motion="true"] body .arc-entry :is(.arc-label,h1,.arc-meta,.arc-prose,.arc-toolbar){animation:none!important}
:root[data-arc-reduced-motion="true"] body .aw-image img{transform:none!important;transition:none!important}

/* Museum runtime drawers and mixed search, verified against the actual DOM.
   Only dark theme; do not alter image pixels, layout, gestures or record data. */
html[data-arc-theme="dark"] body #top #archive :is(#sectionTitle,.result-group-head),
html[data-arc-theme="dark"] body #top #results button.result .name{
 color:var(--arc-appearance-ink)!important;-webkit-text-fill-color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"] body #top #archive :is(#sectionKicker,.archive-sub,.museum-page-status,.result .year,.search-kicker,.search-kicker span){
 color:var(--arc-appearance-muted)!important;-webkit-text-fill-color:var(--arc-appearance-muted)!important;
}
html[data-arc-theme="dark"] body #top #archive .result-group-head span{
 background:var(--arc-appearance-surface-raised)!important;color:var(--arc-appearance-accent)!important;border-color:var(--arc-appearance-border)!important;-webkit-text-fill-color:var(--arc-appearance-accent)!important;
}
html[data-arc-theme="dark"] body #top #archive .museum-page-nav button[aria-current="page"]{
 background:var(--arc-appearance-accent)!important;color:var(--arc-appearance-hover-ink)!important;border-color:var(--arc-appearance-accent)!important;
}
html[data-arc-theme="dark"] body #top #archive .museum-page-nav button:disabled{
 opacity:1!important;color:var(--arc-appearance-muted)!important;border-color:var(--arc-appearance-border)!important;
}
html[data-arc-theme="dark"] body #overlay :is(.panel-close-row,.detail-scene,.detail-pane,#detailGallery,#galleryBrowse,#galleryPhotoView){
 background:var(--arc-appearance-surface)!important;background-image:none!important;border-color:var(--arc-appearance-border)!important;
}
html[data-arc-theme="dark"] body #overlay :is(#detailTitle,.detail-pane h3,.museum-history-heading,.museum-related-heading,.museum-linked-title,.panel-label){
 color:var(--arc-appearance-ink)!important;-webkit-text-fill-color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"] body #overlay :is(#detailBody,#detailBody p,#detailBody li,.museum-history-detail,.museum-history-detail p,.museum-news-intro,.museum-news-body,.museum-news-body p){
 color:var(--arc-appearance-ink)!important;-webkit-text-fill-color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"] body #overlay :is(#detailKind,#detailDate,.museum-section-kicker,.museum-linked-date,.museum-linked-excerpt,.museum-history-empty,.gallery-photo-caption,.museum-article-photo figcaption){
 color:var(--arc-appearance-muted)!important;-webkit-text-fill-color:var(--arc-appearance-muted)!important;
}
html[data-arc-theme="dark"] body #overlay :is(.museum-linked-card,.museum-inner-back,.back-to-text,#galleryGrid button,.related button,.related a){
 background:var(--arc-appearance-surface-raised)!important;background-image:none!important;border-color:var(--arc-appearance-border)!important;color:var(--arc-appearance-ink)!important;box-shadow:none!important;
}
html[data-arc-theme="dark"] body #overlay :is(.museum-linked-news-count,#detailBody a,.museum-news-body a){
 color:var(--arc-appearance-accent)!important;-webkit-text-fill-color:var(--arc-appearance-accent)!important;
}
html[data-arc-theme="dark"] body #overlay .panel-close-row .panel-tools button{
 background:var(--arc-appearance-surface-raised)!important;background-image:none!important;border-color:var(--arc-appearance-border)!important;color:var(--arc-appearance-ink)!important;box-shadow:none!important;
}
html[data-arc-theme="dark"] body #overlay .panel-tools :is(#close .site-close-x,.tool-heart svg){
 color:var(--arc-appearance-ink)!important;-webkit-text-fill-color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"] body #overlay .panel-tools .tool-heart svg{stroke:var(--arc-appearance-ink)!important}
html[data-arc-theme="dark"] body #overlay .panel-tools .tool-heart[aria-pressed="true"] svg{fill:var(--arc-appearance-yellow)!important}
html[data-arc-theme="dark"] body #overlay .panel-close-row .panel-tools button:focus-visible,
html[data-arc-theme="dark"] body #overlay :is(.museum-linked-card,.museum-inner-back,.back-to-text):focus-visible{
 background:var(--arc-appearance-yellow)!important;color:var(--arc-appearance-hover-ink)!important;border-color:var(--arc-appearance-yellow)!important;
}
html[data-arc-theme="dark"] body #overlay .panel-tools #close:focus-visible .site-close-x,
html[data-arc-theme="dark"] body #overlay .museum-linked-card:focus-visible :is(.museum-linked-title,.museum-linked-date,.museum-linked-excerpt,.museum-linked-news-count),
html[data-arc-theme="dark"] body #top #results button.result:focus-visible .name{
 color:var(--arc-appearance-hover-ink)!important;-webkit-text-fill-color:var(--arc-appearance-hover-ink)!important;
}
html[data-arc-theme="dark"] body #overlay .panel-tools .tool-heart:focus-visible svg{stroke:var(--arc-appearance-hover-ink)!important}
@media(hover:hover) and (pointer:fine){
 html[data-arc-theme="dark"] body #overlay .panel-close-row .panel-tools button:hover,
 html[data-arc-theme="dark"] body #overlay :is(.museum-linked-card,.museum-inner-back,.back-to-text):hover{
  background:var(--arc-appearance-yellow)!important;color:var(--arc-appearance-hover-ink)!important;border-color:var(--arc-appearance-yellow)!important;
 }
 html[data-arc-theme="dark"] body #overlay .panel-tools #close:hover .site-close-x,
 html[data-arc-theme="dark"] body #overlay .museum-linked-card:hover :is(.museum-linked-title,.museum-linked-date,.museum-linked-excerpt,.museum-linked-news-count),
 html[data-arc-theme="dark"] body #top #results button.result:hover .name{
  color:var(--arc-appearance-hover-ink)!important;-webkit-text-fill-color:var(--arc-appearance-hover-ink)!important;
 }
 html[data-arc-theme="dark"] body #overlay .panel-tools .tool-heart:hover svg{stroke:var(--arc-appearance-hover-ink)!important}
}

/* Legacy close rules have an extra ID and !important; match that specificity
   explicitly and remove the white resting paint on every Museum sub-pane. */
html[data-arc-theme="dark"] body #overlay .panel-close-row .panel-tools #close.site-close-trigger{
 background:var(--arc-appearance-surface-raised)!important;background-image:none!important;
 border-color:var(--arc-appearance-border)!important;color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"] body #overlay .panel-close-row .panel-tools #close.site-close-trigger:focus-visible{
 background:var(--arc-appearance-yellow)!important;border-color:var(--arc-appearance-yellow)!important;color:var(--arc-appearance-hover-ink)!important;
}
@media(hover:hover) and (pointer:fine){
 html[data-arc-theme="dark"] body #overlay .panel-close-row .panel-tools #close.site-close-trigger:hover{
  background:var(--arc-appearance-yellow)!important;border-color:var(--arc-appearance-yellow)!important;color:var(--arc-appearance-hover-ink)!important;
 }
}

/* Empty / loading / unavailable linked-photo state is produced by
   populateGallery; it is UI chrome, not a photograph or scanned document. */
html[data-arc-theme="dark"] body #overlay #galleryEmpty.gallery-empty{
 background:var(--arc-appearance-surface-raised)!important;
 border-color:var(--arc-appearance-border)!important;
 color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"] body #overlay #galleryEmpty strong{
 color:var(--arc-appearance-ink)!important;
 -webkit-text-fill-color:var(--arc-appearance-ink)!important;
}
html[data-arc-theme="dark"] body #overlay #galleryEmpty p{
 color:var(--arc-appearance-muted)!important;
 -webkit-text-fill-color:var(--arc-appearance-muted)!important;
}
html[data-arc-theme="dark"] body #overlay #galleryEmpty .gallery-empty-symbol{
 color:var(--arc-appearance-accent)!important;
 -webkit-text-fill-color:var(--arc-appearance-accent)!important;
}
