/* Reserve the measured catalogue bar before allocating the landing viewport. */
html[data-jdn-theme] .jdn-home.catalog-background-banners{
 height:calc(var(--simphoni-visible-viewport-height,100dvh) - var(--jdn-publishing-bar-height,0px))!important;
 max-height:none!important;min-height:0!important;width:100%!important;max-width:none!important;
 box-sizing:border-box;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;
 padding:calc(8px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 6px max(12px,env(safe-area-inset-left,0px))!important;gap:6px!important;overflow:hidden!important;
}
html[data-jdn-theme] .jdn-home.catalog-background-banners>main{
 display:flex!important;flex-direction:column!important;min-height:0!important;width:100%!important;max-width:none!important;
 margin:0!important;padding:0!important;gap:6px!important;overflow:auto!important;overscroll-behavior:contain;
}
html[data-jdn-theme] .jdn-home .home-introduction{flex:0 0 auto!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between;gap:8px;padding:0!important}
html[data-jdn-theme] .jdn-home .home-introduction h1{margin:0!important}
html[data-jdn-theme] .jdn-home .home-introduction .home-donate{margin:0!important;min-height:44px}
html[data-jdn-theme] .jdn-home .discovery-catalogs{flex:1 0 330px!important;min-height:330px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:none!important}
html[data-jdn-theme] .jdn-home .discovery-card{height:auto!important;min-height:0!important;max-height:none!important;box-sizing:border-box;align-content:center;padding:10px 18px!important;gap:5px 20px!important}
html[data-jdn-theme] .jdn-home .home-utility-bar{flex:0 0 auto!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin:0!important;padding:0!important}
html[data-jdn-theme] .jdn-home .home-utility-bar :is(button,a){min-height:44px!important;display:flex;align-items:center;font-size:14px!important;padding:5px 8px!important}
html[data-jdn-theme] .jdn-home>footer{margin:0!important;padding:0!important;min-height:0!important;max-height:none!important;flex-wrap:wrap;font-size:12px!important;overflow:visible!important}
@media(max-width:760px){
 html[data-jdn-theme] .jdn-home .home-introduction h1{font-size:23px!important;line-height:1.2}
 html[data-jdn-theme] .jdn-home .home-introduction .artist-subtitle{display:none!important}
 html[data-jdn-theme] .jdn-home .discovery-card{padding:6px 9px!important;gap:3px!important}
 html[data-jdn-theme] .jdn-home .discovery-card>h2{font-size:18px!important;line-height:1.2!important}
 html[data-jdn-theme] .jdn-home .discovery-card>p{font-size:14px!important;line-height:1.25!important}
 html[data-jdn-theme] .jdn-home .discovery-card :is(.work-explore,button){min-height:44px!important;font-size:14px!important;padding:4px 6px!important}
 html[data-jdn-theme] .jdn-home .home-utility-bar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-jdn-theme] .jdn-home .home-utility-bar :is(button,a){font-size:13px!important;padding:3px 5px!important}
}
/* When text enlargement or an exceptionally short screen cannot fit the minimum
   readable strips, only main scrolls; its lower edge remains above navigation. */
/* Desktop media uses its allocated pane instead of the retained 190px cap.
   Complete score pages and native videos retain their intrinsic aspect ratios. */
@media(min-width:1024px) and (min-height:700px){
 html[data-jdn-theme] .jdn-voice.simultaneous-catalog.with-catalogue-sidebar :is(.preview-column,.video-column,.instrumental-listening){container-type:size}
 html[data-jdn-theme] .jdn-voice.simultaneous-catalog.with-catalogue-sidebar .voice-score:not(.voice-score-expanded) .voice-score-stage{height:max(190px,calc(100cqh - 210px))!important;min-height:0!important}
 html[data-jdn-theme] .jdn-voice.simultaneous-catalog.with-catalogue-sidebar :is(.video-column,.instrumental-listening){--jdn-media-height:max(190px,calc(100cqh - 210px))}
 html[data-jdn-theme] .jdn-voice.simultaneous-catalog.with-catalogue-sidebar iframe[src*="youtube"]{width:min(100%,calc(max(190px,100cqh - 210px) * 16 / 9))!important;height:auto!important;aspect-ratio:16/9!important;max-height:none!important}
 html[data-jdn-theme] .jdn-voice.simultaneous-catalog.with-catalogue-sidebar video{width:100%!important;height:auto!important;max-height:max(190px,calc(100cqh - 210px))!important;object-fit:contain!important}
}
/* Utility links use the same theme contrast in rest, hover and keyboard focus. */
html[data-jdn-theme] .jdn-home .home-utility-bar :is(button,a){color:var(--pub-ink)!important;background:var(--pub-paper)!important;border:1px solid var(--pub-line)!important}
html[data-jdn-theme] .jdn-home .home-utility-bar :is(button,a):is(:hover,:focus-visible){color:var(--pub-ink)!important;background:var(--pub-panel)!important;text-decoration:underline;text-underline-offset:3px}
html[data-jdn-theme] .jdn-home>footer{color:var(--pub-ink)!important}
