/* Approved crown/UR mark. Champagne gold and navy match the website palette. */
/* Logo links and lettering stay unadorned, including hover and keyboard focus. */
html body a:is(.brand,.sanctuary-brand),
html body a:is(.brand,.sanctuary-brand):is(:hover,:focus,:active),
html body a:is(.brand,.sanctuary-brand) :is(.realm-wordmark,small){text-decoration:none!important}
html body .sidebar .brand{border-bottom:0!important}
html body .sidebar .brand:after{display:none!important}
html body .sidebar .brand{height:192px!important;padding:8px!important;display:grid!important;place-items:center!important}
html body .sidebar .brand img{width:132px!important;height:132px!important;max-height:none!important;object-fit:contain!important;filter:none!important}
html body .cover-portal img{width:min(65vw,350px)!important;height:auto!important;max-height:55vh!important;object-fit:contain!important;filter:none!important}
html body .home-sanctuary .sanctuary-brand img,
html body.sanctuary-home-page #view .home-sanctuary .sanctuary-welcome .sanctuary-brand img{width:clamp(120px,18vw,190px)!important;height:clamp(120px,18vw,190px)!important;max-height:none!important;object-fit:contain!important;filter:none!important}
html body .sanctuary-standard-nav{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%!important;min-width:0!important;gap:8px!important;scrollbar-width:thin;scrollbar-color:#d6b470 #121b2c;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
html body .sanctuary-standard-nav a{flex:0 0 auto!important;white-space:nowrap!important;min-height:44px;scroll-margin-inline:12px}
html body.sanctuary-home-page #view .home-sanctuary .sanctuary-topbar{display:block!important;position:relative!important;max-width:100%!important;min-width:0!important}
html body.sanctuary-home-page #view .home-sanctuary .sanctuary-standard-nav{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;white-space:nowrap!important;scrollbar-width:thin!important;padding-bottom:10px!important}
html body nav.realm-bottom-nav{flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100vw!important;scrollbar-width:thin;scrollbar-color:#d6b470 #121b2c;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
html body nav.realm-bottom-nav a{flex:0 0 auto!important;max-width:none!important;min-width:88px!important;white-space:nowrap!important;padding:14px 17px!important;scroll-margin-inline:10px}
html body .nav-scroll-button{position:fixed;bottom:calc(76px + env(safe-area-inset-bottom));z-index:42;min-width:40px;min-height:40px;border:1px solid #b99a5a88;background:#10192af2;color:#edcf91;border-radius:50%;font-size:26px;cursor:pointer}
html body .nav-scroll-button[data-direction="left"]{left:8px}
html body .nav-scroll-button[data-direction="right"]{right:8px}
html body .nav-scroll-button:disabled{opacity:.25}
html body .shell main{padding-bottom:calc(105px + env(safe-area-inset-bottom))!important}
body>main>a>img[src*="upperrealm-monogram"]{width:140px;height:140px;object-fit:contain}
@media(min-width:861px){html body .nav-scroll-button{display:none!important}html body .shell main{padding-bottom:35px!important}}
@media(max-width:860px){html body nav.realm-bottom-nav,html body.sanctuary-home-page nav.realm-bottom-nav{display:flex!important}html body.sanctuary-home-page .shell main{padding-bottom:calc(105px + env(safe-area-inset-bottom))!important}html body .sanctuary-standard-nav{padding-bottom:10px!important}}

html body .realm-wordmark{display:block!important;color:#f2d7a1!important;font:500 28px/1.15 "Playfair Display",Georgia,serif!important;letter-spacing:1px!important;text-align:center!important;white-space:nowrap!important;margin-top:8px!important}
html body .home-sanctuary .sanctuary-brand,html body.sanctuary-home-page #view .home-sanctuary .sanctuary-welcome .sanctuary-brand{height:auto!important;max-height:none!important;text-decoration:none!important}
html body .home-sanctuary .realm-wordmark{font-size:clamp(26px,4vw,38px)!important}
html body .cover-portal .realm-wordmark{font-size:clamp(28px,5vw,46px)!important}

html body .realm-wordmark small{display:block!important;margin-top:7px!important;font:600 12px/1.4 "DM Sans",sans-serif!important;letter-spacing:3px!important;color:#d8bd86!important;text-transform:none!important}

/* One primary navigation at each width; the home wordmark remains visible. */
@media(max-width:860px){
 html body .shell{display:block!important}
 html body .sidebar{display:none!important}
 html body .shell>main>header .menu,html body #mobile-nav-scrim{display:none!important}
 html body.sanctuary-home-page #view .home-sanctuary .sanctuary-topbar,
 html body.sanctuary-home-page #view .home-sanctuary .sanctuary-standard-nav{display:none!important}
 html body nav.realm-bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;width:100%;padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:#091328f5;border-top:1px solid #bfcbdf29}
}
@media(min-width:861px){html body nav.realm-bottom-nav{display:none!important}}
#prayer-room-session{position:relative;z-index:10}
#prayer-room-session .prayer-room-dock{display:none}
#prayer-room-session.is-docked>.native-prayer-room{display:none}
#prayer-room-session.is-docked .prayer-room-dock{display:flex;align-items:center;flex-wrap:wrap;gap:8px;position:fixed;bottom:18px;left:300px;right:20px;z-index:45;padding:12px 18px;border:1px solid #c6a96c;background:#101a2bf5;border-radius:16px;box-shadow:0 8px 30px #0008}
.prayer-room-dock strong{flex:1;font-size:.9rem;color:#f2d7a1}
.prayer-room-dock .link{padding:8px!important;font-size:.85rem}
@media(max-width:860px){#prayer-room-session.is-docked .prayer-room-dock{left:10px;right:10px;bottom:calc(122px + env(safe-area-inset-bottom))}}
.library-upload{margin:24px 0;padding:20px 0;border-block:1px solid #a68a4f55}
.library-upload .learning-resource-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:100%;margin-top:18px}
.library-upload .learning-resource-form label{display:grid;gap:8px;min-width:0;font-weight:600}
.library-upload .learning-resource-form input,.library-upload .learning-resource-form textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;color:#f2e6ca}
.library-upload .learning-resource-form textarea{min-height:120px;resize:vertical}
.library-upload .learning-resource-form .primary{justify-self:start;min-width:180px}
.library-upload .form-status{overflow-wrap:anywhere}

/* Keep Safari's media elements attached outside the hidden room controls. */
#prayer-room-session>#livekit-audio-sink{display:block!important;position:fixed!important;left:0!important;bottom:0!important;width:1px!important;height:1px!important;overflow:hidden!important;pointer-events:none!important}
#prayer-room-session>#livekit-audio-sink audio{display:block!important;width:1px!important;height:1px!important}

/* Phone/tablet navigation is one dock: arrows align with the scrollable links,
   instead of floating over page content. A sidebar returns above tablet widths. */
html body .realm-navigation-dock{display:none}
@media(max-width:1024px){
 html body .shell{display:block!important}
 html body .sidebar,html body .shell>main>header .menu,html body #mobile-nav-scrim{display:none!important}
 html body:not(.sanctuary-home-page) .realm-navigation-dock{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;position:fixed;bottom:0;left:0;right:0;z-index:42;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:#091328f5;border-top:1px solid #bfcbdf29;backdrop-filter:blur(16px)}
 html body .realm-navigation-dock nav.realm-bottom-nav{display:flex!important;position:static!important;width:auto!important;min-width:0;max-width:100%!important;padding:0!important;border:0;background:transparent;scroll-padding-inline:8px}
 html body .realm-navigation-dock .nav-scroll-button{display:block!important;position:static;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;border-radius:50%;font-size:25px}
 html body .realm-navigation-dock nav.realm-bottom-nav a{min-height:44px!important;font-size:13px!important;padding:12px 15px!important;display:grid;place-items:center}
 html body .shell main{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
 #prayer-room-session.is-docked .prayer-room-dock{left:10px;right:10px;bottom:calc(86px + env(safe-area-inset-bottom))}
}
@media(min-width:861px) and (max-width:1024px){html body .shell main{padding:0 28px calc(100px + env(safe-area-inset-bottom))!important}}
html body.sanctuary-home-page .realm-navigation-dock{display:none!important}
/* The native app already supplies its own persistent header and navigation. */
html.upperrealm-native-shell body .realm-navigation-dock,
html.upperrealm-native-shell body .sidebar,
html.upperrealm-native-shell body .shell>main>header{display:none!important}
