/* Preserve the original scroll shelf and unfolding animation in both themes. */
#catalog.is-mobile-index-collapsed :is(.archive-index-search,.archive-index-grid){display:none}
@media(min-width:641px){
 #catalog:not(.is-mobile-index-collapsed) .archive-shelf{visibility:hidden}
 #catalog .archive-index{max-height:46%;overflow:auto}
 #catalog .archive-index-grid{grid-auto-rows:minmax(36px,auto)}
}
html[data-theme="dark"] body #catalog .archive-volume-button{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme="dark"] body #catalog .archive-volume-button span{background:#172720dd!important;color:#f5ebcf!important}
html[data-theme="dark"] body #catalog .archive-volume-button.is-active span{background:#893d30!important;color:#fff3d5!important}
html[data-theme="dark"] body #catalog .archive-index-button{background:#34483e!important;color:#f3ecdc!important;border-color:#697f6c!important}
html[data-theme="dark"] body #catalog .archive-index-button.is-active{background:#78473c!important;color:#fff0d7!important;border-color:#edc396!important}
html[data-theme="dark"] body #catalog .volume-work-badges em{background:#405443!important;color:#eee2be!important}
@media(max-width:640px){#catalog .archive-index{position:relative;top:auto}#catalog .archive-index-grid{grid-template-rows:none;grid-auto-rows:minmax(36px,auto)}}
@media(min-width:641px){#catalog.is-mobile-index-collapsed .archive-shelf{visibility:visible}}
