/* Detail takes the full viewport on tablet and phone, in both orientations. */
#detail52:not([open]){display:none!important}
#detail52[open]{position:fixed;inset:0;display:flex!important;flex-direction:column;width:min(920px,calc(100vw - 48px));height:calc(100vh - 48px);height:min(820px,calc(100dvh - 48px));max-width:920px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);min-height:280px;margin:auto;padding:0!important;overflow:hidden;z-index:20000;border-radius:18px}
.nw-detail-header58{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-height:72px;padding:14px 20px;border-bottom:1px solid #56727f;background:#203b48;color:#edf4f7}
.nw-detail-header58>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.nw-detail-header58 span{font-size:12px;color:#c9dbe4}
#detail-title58{font-size:18px;overflow-wrap:anywhere}
#close-detail52{float:none!important;flex:none;width:48px!important;height:48px!important;min-height:48px!important;border-radius:10px!important;font-size:24px;line-height:1;background:#294653;color:#fff}
#detail-content52{flex:1 1 auto;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:20px 24px 32px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-wrap:anywhere}
#detail-content52 h2{font-size:24px;line-height:1.3}
#detail-content52 p{font-size:15px!important;line-height:1.65!important}
#detail-content52 .nw-services53{display:flex;flex-wrap:wrap;gap:10px}
#detail-content52 .nw-services53 a,#detail-content52 button{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px}
#detail-content52 .notice{font-size:13px!important}
body.nw-detail58-open{overflow:hidden!important}
body.nw-detail58-open #adelain-global-bar{visibility:hidden!important}
#detail52[data-fallback58][open]{box-shadow:0 0 0 200vmax #173247aa}
@media(max-width:1100px),(pointer:coarse){
 #detail52[open]{inset:0!important;width:100vw!important;max-width:none!important;height:100vh!important;height:100dvh!important;min-height:100vh!important;min-height:100dvh!important;max-height:100vh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important}
 .nw-detail-header58{padding-top:max(12px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 #detail-content52{padding:18px max(18px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
}
@media(max-height:400px){#detail52[open]{min-height:0}.nw-detail-header58{min-height:58px;padding-top:6px;padding-bottom:6px}#detail-title58{font-size:16px}}

/* Android panel avoids the native modal/top-layer path. Measured WebView height. */
body.nw-webview-detail62 #detail52[open]{position:fixed!important;inset:0!important;display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:100%!important;max-width:none!important;height:var(--detail-height62,100vh)!important;max-height:var(--detail-height62,100vh)!important;min-height:0!important;margin:0!important;transform:none!important;z-index:2147483646!important;border-radius:0!important}
#detail-back62{min-height:48px;padding:8px 12px;flex:none;background:#294653;color:#fff;border:1px solid #88b5b2;border-radius:10px;font:600 14px system-ui}
.nw-detail-header58>div{flex:1 1 auto}

#results .open-name62{display:block;text-align:left;min-height:44px;width:100%;padding:4px 0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}#results .open-name62:focus-visible{outline:3px solid #edcc8d;outline-offset:3px}
