#site-signature{position:fixed;z-index:90;inset:auto 0 0;margin:0;padding:7px max(16px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:center;gap:5px 14px;flex-wrap:wrap;background:linear-gradient(90deg,#172b35ed,#263c46ed);color:#e9e3d7;border-top:1px solid #cfb47d55;font:11px/1.5 system-ui;text-align:center;box-sizing:border-box}#site-signature a{color:#f0d5a0;text-decoration:underline;text-underline-offset:3px;padding:3px 0}#site-signature a:focus-visible{outline:2px solid #f0d5a0;outline-offset:3px}#site-signature .signature-mobile-credits{display:none}#classic-content,.detail-body{padding-bottom:calc(var(--signature-height,85px) + 28px)}#expand,#accessibility-button{bottom:calc(var(--signature-height,85px) + 10px)}#crossing-status{bottom:calc(var(--signature-height,85px) + 10px)}#crossing-entry,#crossing-back{bottom:calc(var(--signature-height,85px) + 55px)}#crossing-next{bottom:calc(var(--signature-height,85px) + 100px)}#secondary-menu{bottom:calc(var(--signature-height,85px) + 48px)}
@media(max-width:700px){
 :root{--signature-height:calc(48px + env(safe-area-inset-bottom))}
 #site-signature{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:0;padding:2px 6px calc(2px + env(safe-area-inset-bottom));background:transparent;border:0;font:11px/16px system-ui}
 #site-signature .signature-creation{display:none}
 #site-signature>span:not(.signature-creation){grid-row:1;max-width:100%;padding:2px 6px;background:#172b35c9;color:#fff2d5;border-radius:5px}
 #site-signature>a:first-child{grid-row:2;display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 8px;color:#fff2d5;background:#172b35c9;border-radius:5px}
 #immersive-reading .reading-card,#immersive-reading .reading-card.places{padding-bottom:calc(var(--signature-height,48px) + 14px)}
 body #mobile-crystal-menu:not([hidden]){max-height:calc(100dvh - 92px - env(safe-area-inset-top) - var(--signature-height,48px))}
 .detail-page.detail-page{height:calc(100dvh - 64px - var(--signature-height,48px))}
 body.admin-bar .detail-page.detail-page{height:calc(100dvh - 100px - var(--signature-height,48px))}
 .detail-page .detail-body{padding-bottom:24px}
 .hero-frame .hero-copy{padding-bottom:calc(var(--signature-height,48px) + 25px)}
}

@media(max-width:700px){body.admin-bar .hero-frame .hero-copy{padding-bottom:calc(var(--signature-height,48px) + 75px)}}

.site-skip{position:fixed;top:-200px;left:12px;z-index:1000;background:#f8f5ef;color:#172b35;padding:14px 20px;border:2px solid #96723b;text-decoration:underline;font:16px/1.5 system-ui}.site-skip:focus{top:12px}body.admin-bar .site-skip:focus{top:52px}

/* Keep keyboard access visible without overlapping the mobile crystal. */
@media(max-width:700px){body #accessibility-button{display:none!important}.site-skip:focus{left:80px;right:12px;width:auto;max-width:calc(100vw - 92px);box-sizing:border-box;font-size:14px;padding:10px}body.admin-bar #mobile-crystal-menu:not([hidden]){max-height:calc(100dvh - 138px - var(--signature-height,48px))}}

/* Public interface: no preview settings or floating accessibility control. */
body #controls,body #expand,body #accessibility-button{display:none!important}
#site-signature .signature-accessibility{appearance:none;background:none;border:0;border-radius:0;color:#f0d5a0;font:inherit;text-decoration:underline;text-underline-offset:3px;padding:3px 0;margin:0;cursor:pointer}
#site-signature .signature-accessibility:focus-visible{outline:2px solid #f0d5a0;outline-offset:3px}
@media(max-width:700px){#site-signature .signature-accessibility{display:none!important}}

/* Space below the last answer remains reachable above the fixed credits. */
@media(max-width:700px){
 .detail-page .detail-body{padding-bottom:calc(var(--signature-height,56px) + env(safe-area-inset-bottom) + 40px)!important}
 .faq-library{padding-bottom:32px}
 #classic-content{padding-bottom:calc(var(--signature-height,56px) + env(safe-area-inset-bottom) + 40px)}
}

@media(max-width:700px){body:not(.cabinet-immersive) .wp-site-blocks main{padding-bottom:calc(var(--signature-height,56px) + env(safe-area-inset-bottom) + 40px)!important}}

/* Test mobile: physical scroll space beyond the last FAQ/link, including iOS safe area. */
@media(max-width:700px){
 .detail-page{scroll-padding-bottom:calc(var(--signature-height,56px) + env(safe-area-inset-bottom,0px) + 40px)}
 .detail-page .detail-body{padding-bottom:max(144px,calc(var(--signature-height,56px) + env(safe-area-inset-bottom,0px) + 88px))!important}
 .detail-page .detail-body::after{content:"";display:block;height:32px;min-height:32px;flex-shrink:0;pointer-events:none}
 body:not(.cabinet-immersive) .wp-site-blocks main{padding-bottom:max(160px,calc(var(--signature-height,56px) + env(safe-area-inset-bottom,0px) + 88px))!important}
}

/* Keep the mobile cookie control readable over pale pages and bright scenes. */
@media(max-width:700px){#site-signature #cabinet-cookie-settings{color:#fff2d5;background:#172b35ed;border-radius:5px;padding:2px 8px;min-height:24px}}

/* Scrollable mobile panels: reserve real content space after the final FAQ link.
   Outer card padding alone does not extend the inner scrolling surface. */
@media(max-width:700px){
 #immersive-reading .reading-content::after{
  content:"";display:block;clear:both;width:100%;
  height:max(240px,calc(var(--signature-height,80px) + env(safe-area-inset-bottom,0px) + 140px));
  min-height:240px;flex-shrink:0;pointer-events:none;
 }
 #immersive-reading .reading-content{scroll-padding-bottom:calc(var(--signature-height,80px) + env(safe-area-inset-bottom,0px) + 32px)}
}
