/* Anchored filters retain shared dialog dismissal/focus and each form's draft semantics. */
body.mobile-ui #overlay[data-anchored-filter=true]{display:block;align-items:initial;padding:0;background:transparent;backdrop-filter:none}
body.mobile-ui #overlay[data-anchored-filter=true] .sheet{position:absolute;top:var(--filter-popover-top);left:var(--filter-popover-left);display:flex;flex-direction:column;width:var(--filter-popover-width);max-height:var(--filter-popover-height);margin:0;padding:0;overflow:hidden;border:1px solid var(--holyuni-line);border-radius:var(--holyuni-radius-card);background:var(--holyuni-surface);box-shadow:var(--holyuni-shadow-card);transform:translateY(-8px)}
body.mobile-ui #overlay.open[data-anchored-filter=true] .sheet{transform:translateY(0)}
body.mobile-ui #overlay[data-anchored-filter=true] .sheet-head{flex:none;min-height:52px;padding:var(--holyuni-space-2) var(--holyuni-space-4)}
body.mobile-ui #overlay[data-anchored-filter=true] .sheet-head h2{font-size:var(--holyuni-font-section-title)!important;font-weight:600}
body.mobile-ui #overlay[data-anchored-filter=true] .sheet-content{display:flex;flex-direction:column;min-height:0;margin:0;padding:0;overflow:hidden}
body.mobile-ui #overlay[data-anchored-filter=true] :is(.home-filter-form,.group-discovery-filter,.search-filter-form){min-height:0}
body.mobile-ui #overlay[data-anchored-filter=true] .home-filter-fields{padding-inline:var(--holyuni-space-4)}
body.mobile-ui #overlay[data-anchored-filter=true] .search-filter-form{overflow:auto;padding:0 var(--holyuni-space-4) var(--holyuni-space-3);overscroll-behavior:contain}
body.mobile-ui #overlay[data-anchored-filter=true] .search-filter-form footer{padding-bottom:var(--holyuni-space-2)}
body.mobile-ui #overlay[data-anchored-filter=true] :is(.home-filter-footer,.group-discovery-footer){padding:var(--holyuni-space-3) var(--holyuni-space-4)}
body.mobile-ui #overlay[data-anchored-filter=true][data-detail="group-discovery-sort"] .sheet{padding:var(--holyuni-space-4)}
body.mobile-ui #overlay[data-anchored-filter=true][data-detail="group-discovery-sort"] .sheet-head{min-height:0;padding:0}
body.mobile-ui #overlay[data-anchored-filter=true][data-detail="event-date-filter"] .sheet-content{overflow:auto;padding:0 var(--holyuni-space-4) var(--holyuni-space-4)}
/* Home and group filters share the same full-width surface below their navigation row. */
body.mobile-ui :is(.group-discovery-page .group-browse-toolbar,.home-browse-controls){background:var(--holyuni-canvas)}
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth]::before{content:"";position:absolute;top:var(--filter-popover-top);bottom:0;left:var(--filter-popover-left);width:var(--filter-popover-width);background:color-mix(in srgb,var(--holyuni-ink) 24%,transparent);pointer-events:none}
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth] .sheet{background:var(--holyuni-canvas);border:0;border-radius:0;box-shadow:none;transform-origin:top center}
body.mobile-ui #overlay.open[data-anchored-filter=true][data-filter-layout=fullwidth] .sheet{animation:holyuni-filter-expand .2s ease-out both}
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth] .sheet-head{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth] .sheet-head button{display:none}
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth] :is(.group-discovery-filter,.home-filter-fields,.home-sort-options){padding-top:var(--holyuni-space-4)}
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth] :is(.group-discovery-footer,.home-filter-footer){background:var(--holyuni-canvas);padding-bottom:calc(var(--holyuni-space-3) + env(safe-area-inset-bottom))}
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth] :is(.group-filter-chips,.home-filter-choice) input:not(:checked)+span,
body.mobile-ui #overlay[data-anchored-filter=true][data-filter-layout=fullwidth] :is(.group-discovery-footer,.home-filter-footer) .secondary{background:var(--holyuni-surface)}
@keyframes holyuni-filter-expand{from{clip-path:inset(0 0 100% 0);opacity:0;transform:translateY(0)}to{clip-path:inset(0);opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body.mobile-ui #overlay[data-anchored-filter=true] .sheet{transition:none;animation:none!important}}
