/* Existing native carousel layout; standalone dashboard and other routes excluded. */
@media(max-width:767px){
 .desktop-stammit-page:has(>[data-stammit-landing]){min-height:100%;overflow:visible}
 .desktop-content-stage:has([data-stammit-landing]){margin-top:env(safe-area-inset-top,0px);padding-top:0!important}
 [data-stammit-landing]{padding-top:0!important;--stammit-card-height:clamp(200px,calc(100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 58.333vw - 164px),340px)}
 [data-stammit-landing] [data-testid="stammit-section-carousel"]{padding-inline:calc(50% - var(--stammit-card-height)*.375)!important}
 [data-stammit-landing] [data-testid="stammit-section-carousel"]>button{height:var(--stammit-card-height);width:calc(var(--stammit-card-height)*.75);aspect-ratio:3/4}
}
/* Keep the same top/bottom copy placement, with intrinsic height when text grows. */
 [data-stammit-landing] [data-testid="stammit-section-carousel"]>button{display:flex;flex-direction:column;height:auto;aspect-ratio:auto;min-height:var(--stammit-card-height);overflow-wrap:anywhere}
 [data-stammit-landing] [data-testid="stammit-section-carousel"]>button>span:nth-last-child(2){position:relative;inset:auto;margin:12px 12px 0;flex:none}
 [data-stammit-landing] [data-testid="stammit-section-carousel"]>button>span:last-child{position:relative;inset:auto;margin:12px;margin-top:auto;flex:none}
@media(min-width:768px){
 .desktop-stammit-page:has(>[data-stammit-landing]){min-height:100%;overflow:visible}
 [data-stammit-landing]{--stammit-card-height:clamp(200px,calc(72svh - 200px),340px)}
 [data-stammit-landing] .desktop-stammit-hero{height:auto!important;min-height:0!important}
 [data-stammit-landing] .desktop-stammit-hero>div{height:clamp(160px,28svh,260px)!important;min-height:0!important}
 [data-stammit-landing] [data-testid="stammit-section-carousel"]{padding-inline:calc(50% - var(--stammit-card-height)*.375)!important}
 [data-stammit-landing] [data-testid="stammit-section-carousel"]>button{width:calc(var(--stammit-card-height)*.75)!important;max-width:none!important;flex:0 0 calc(var(--stammit-card-height)*.75)}
}
/* Percentage padding uses its containing block; remove native negative gutters so
   the first card and scroll-snap viewport share the same centre. */
[data-stammit-landing] [data-testid="stammit-section-carousel"]{margin-inline:0!important}
/* Restore the native intended 7rem reserve explicitly; its frozen utility is absent. */
@media(max-width:767px){[data-stammit-landing]{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}}
