/* Owner-selected default header chrome. Dither is 150% of the original 4px tile. */
:root{--banderov-header-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath fill='%23ffffff' fill-opacity='.14' d='M0 0h1v1H0zM2 2h1v1H2z'/%3E%3Cpath fill='%23122854' fill-opacity='.2' d='M2 0h1v1H2zM0 2h1v1H0z'/%3E%3C/svg%3E");--banderov-header-gradient:linear-gradient(90deg,rgb(49 76 108 / 80%) 0%,rgb(67 68 99 / 80%) 30%,rgb(90 61 89 / 80%) 55%,rgb(112 55 67 / 80%) 78%,rgb(121 59 68 / 80%) 100%);--banderov-dither-size:6px;--banderov-header-shade:linear-gradient(rgb(7 16 27 / 38%),rgb(7 16 27 / 38%));--banderov-header-photo:url("/assets/header-night-palms.webp")}
/* Explicitly marked site bars; no blanket header rule can reach game/editor canvases. */
[data-banderov-header],.contact-email,.contact-email:hover,.window-label,.viewer-head,.hero .intro>.eyebrow,.hero-art .art-heading,.discipline-bar,.story-title>.eyebrow,.connections>summary,.connection-grid article>.eyebrow,.music-section>div:first-child>.eyebrow,.art-grid figcaption,.deck-heading{
 background-image:var(--banderov-header-dither),var(--banderov-header-gradient),var(--banderov-header-shade),var(--banderov-header-photo)!important;
 background-size:var(--banderov-dither-size) var(--banderov-dither-size),100% 100%,100% 100%,cover!important;
 background-repeat:repeat,no-repeat,no-repeat,no-repeat!important;background-position:0 0,0 0,0 0,center!important;background-color:#414b88!important;
 color:#fff!important;border-color:#fff!important;
 box-shadow:inset 0 1px #ffffffb3,inset 1px 0 #ffffff80,inset -1px 0 #ffffff80,0 2px 0 #111a39!important;
}
[data-banderov-header] :is(a,span,p,h1,h2,h3,summary){color:#fff}
/* These existing desktop window labels are full header panels only at wide sizes. */
@media(min-width:1100px){#art .section-heading .eyebrow,#music>div:first-child{
 background-image:var(--banderov-header-dither),var(--banderov-header-gradient),var(--banderov-header-shade),var(--banderov-header-photo)!important;background-size:6px 6px,100% 100%,100% 100%,cover!important;background-repeat:repeat,no-repeat,no-repeat,no-repeat!important;background-position:0 0,0 0,0 0,center!important;color:#fff!important;border-color:#fff!important;
}#music>div:first-child :is(h2,p,a){color:#fff}}
@media(forced-colors:active){[data-banderov-header],.contact-email,.contact-email:hover,.window-label,.viewer-head,.hero .intro>.eyebrow,.hero-art .art-heading,.discipline-bar,.story-title>.eyebrow,.connections>summary,.connection-grid article>.eyebrow,.music-section>div:first-child>.eyebrow,.art-grid figcaption,.deck-heading,#art .section-heading .eyebrow,#music>div:first-child{background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}[data-banderov-header] :is(a,span,p,h1,h2,h3,summary),#music>div:first-child :is(h2,p,a){color:CanvasText}}
@media print{[data-banderov-header],.contact-email,.contact-email:hover,.window-label,.viewer-head,.hero .intro>.eyebrow,.hero-art .art-heading,.discipline-bar,.story-title>.eyebrow,.connections>summary,.connection-grid article>.eyebrow,.music-section>div:first-child>.eyebrow,.art-grid figcaption,.deck-heading,#art .section-heading .eyebrow,#music>div:first-child{background:none!important;color:#000!important;box-shadow:none!important}[data-banderov-header] :is(a,span,p,h1,h2,h3,summary),#music>div:first-child :is(h2,p,a){color:#000}}

/* Keep window labels and their plain text white across both palettes. */
:where(.hero .intro>.eyebrow,.story-title>.eyebrow,.connection-grid article>.eyebrow,.music-section>div:first-child>.eyebrow,.art-grid figcaption,.deck-heading) :is(span,p,a,h2,h3){color:#fff}
@media(forced-colors:active){:where(.hero .intro>.eyebrow,.story-title>.eyebrow,.connection-grid article>.eyebrow,.music-section>div:first-child>.eyebrow,.art-grid figcaption,.deck-heading) :is(span,p,a,h2,h3){color:CanvasText}}
@media print{:where(.hero .intro>.eyebrow,.story-title>.eyebrow,.connection-grid article>.eyebrow,.music-section>div:first-child>.eyebrow,.art-grid figcaption,.deck-heading) :is(span,p,a,h2,h3){color:#000}}

.hero-art .art-heading span{color:#fff!important}
@media(forced-colors:active){.hero-art .art-heading span{color:CanvasText!important}}
@media print{.hero-art .art-heading span{color:#000!important}}

/* The owner requested matching top/bottom chrome; layout and inner windows stay intact. */
body>footer{background-image:var(--banderov-header-dither),var(--banderov-header-gradient),var(--banderov-header-shade),var(--banderov-header-photo)!important;background-size:var(--banderov-dither-size) var(--banderov-dither-size),100% 100%,100% 100%,cover!important;background-repeat:repeat,no-repeat,no-repeat,no-repeat!important;background-position:0 0,0 0,0 0,center!important;background-color:#414b88!important;color:#fff!important;border-color:#fff!important;box-shadow:inset 0 1px #ffffffb3!important}
body>footer>.footer-note,body>footer>.shell,body>footer>.room-shell,body>footer>.footer-links,body>footer>.footer-links a{color:#fff}
body>footer :is(a,button):focus-visible{outline:3px solid #ffda8a;outline-offset:3px}
@media(forced-colors:active){body>footer{background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}body>footer>.footer-note,body>footer>.shell,body>footer>.room-shell,body>footer>.footer-links,body>footer>.footer-links a{color:CanvasText}body>footer :is(a,button):focus-visible{outline-color:Highlight}}
@media print{body>footer{background:none!important;color:#000!important;box-shadow:none!important}body>footer>.footer-note,body>footer>.shell,body>footer>.room-shell,body>footer>.footer-links,body>footer>.footer-links a{color:#000}}

/* Retain the full original white outline on the narrowest phone windows. */
@media(max-width:360px){.contact-window-body .contact-chibi{max-width:100%}}

/* Legacy metadata colors were designed for pale panels, before shared chrome. */
:root{--banderov-chrome-label:#fff}
.connections>summary .connection-summary-meta,.connections>summary .connection-summary-meta span,.deck-heading .deck-status,.discipline-bar .directory-label,body>footer>div>p,body>footer a{color:var(--banderov-chrome-label)!important}
@media(forced-colors:active){:root{--banderov-chrome-label:CanvasText}}
@media print{:root{--banderov-chrome-label:#000}}

/* A legacy clipped text gradient must not darken this newly dark desktop bar. */
@media(min-width:1100px){#music>div:first-child h2{background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}}
@media print{#music>div:first-child h2{-webkit-text-fill-color:#000!important;color:#000!important}}
@media(forced-colors:active){#music>div:first-child h2{-webkit-text-fill-color:CanvasText!important;color:CanvasText!important}}

/* Photo-backed window titles keep opaque white lettering, including section pages. */
[data-banderov-header] :is(h1,h2,h3),#music-title{background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}
@media(forced-colors:active){[data-banderov-header] :is(h1,h2,h3),#music-title{-webkit-text-fill-color:CanvasText!important;color:CanvasText!important}}
@media print{[data-banderov-header] :is(h1,h2,h3),#music-title{-webkit-text-fill-color:#000!important;color:#000!important}}

/* Game directory chrome shares the selected photographic gradient treatment. */
#games{--banderov-header-photo:url("/assets/photos/bg-02.webp");--banderov-header-shade:linear-gradient(rgb(7 16 27 / 55%),rgb(7 16 27 / 55%))}
.feature-tabs[data-banderov-header] button{background:#111a3980!important;color:#fff!important;border-color:#ffffff80!important;border-bottom:4px solid transparent!important;box-shadow:none!important}
.feature-tabs[data-banderov-header] button[aria-selected="true"]{background:#ffffff14!important;border-bottom-color:#ffc8ed!important;box-shadow:inset 0 0 0 1px #ffffff70!important}
.feature-tabs[data-banderov-header] button:hover{background:#ffffff24!important}
.feature-tabs[data-banderov-header] button:focus-visible{outline:3px solid #ffda8a!important;outline-offset:-5px!important}
@media(forced-colors:active){.feature-tabs[data-banderov-header] button{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;box-shadow:none!important}.feature-tabs[data-banderov-header] button[aria-selected="true"]{border-bottom-color:Highlight!important}.feature-tabs[data-banderov-header] button:focus-visible{outline-color:Highlight!important}}
@media print{.feature-tabs[data-banderov-header] button{background:none!important;color:#000!important;box-shadow:none!important}.feature-tabs[data-banderov-header] button[aria-selected="true"]{border-bottom-color:#000!important}}
