/* Isolated mobile navigation dialog. Legacy location/filter panels keep their own handlers. */
#wd-mobile-menu:not([open]){display:none!important}
.wd-menu-trigger{display:none}
@media(max-width:767px){
 header .menu-links .wd-menu-trigger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:10px;border:1px solid transparent;border-radius:12px;background:transparent;color:#47627a;cursor:pointer;flex-shrink:0}
 header .menu-links .wd-menu-trigger svg{width:24px;height:24px;fill:currentColor}
 header .menu-links .wd-menu-trigger:hover{background:#edf3fb}
 header .menu-links .wd-menu-trigger:focus-visible{outline:3px solid #88b2f5;outline-offset:1px}
 dialog#wd-mobile-menu{position:fixed;inset:auto 8px max(8px,env(safe-area-inset-bottom,0px));margin:0 auto;width:calc(100% - 16px);max-width:460px;height:90vh;height:90dvh;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #d9e4ef;border-radius:22px;background:#fff;color:#284d63;box-shadow:0 24px 80px #122d4f40;overflow:hidden;font-family:inherit;font-size:15px;line-height:1.5;z-index:2147483000}
 dialog#wd-mobile-menu[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
 #wd-mobile-menu::backdrop{background:rgba(16,35,54,.56);backdrop-filter:blur(2px)}
 #wd-mobile-menu *{box-sizing:border-box}
 #wd-mobile-menu svg{display:block;position:static;flex:0 0 auto;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
 #wd-mobile-menu a{float:none;text-decoration:none;color:inherit}
 #wd-mobile-menu button{font-family:inherit}
 #wd-mobile-menu a:focus-visible,#wd-mobile-menu button:focus-visible,#wd-mobile-menu summary:focus-visible{outline:3px solid #89b2f4;outline-offset:-3px}
 .wd-menu-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px 15px;border-bottom:1px solid #e3ebf3;background:#f6f9fd}
 #wd-mobile-menu .wd-menu-identity{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
 .wd-menu-identity img,.wd-menu-brand{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:13px;object-fit:cover;background:#e6effb;color:#346bd5;font-size:23px;font-weight:800}
 .wd-menu-identity>span:not(.wd-menu-brand){min-width:0}
 .wd-menu-identity small{display:block;color:#70869b;font-size:11px;line-height:1.5;font-weight:500}
 .wd-menu-identity strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}
 #wd-mobile-menu .wd-menu-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;margin:0;border:1px solid #dbe5ef;border-radius:12px;background:#fff;color:#526c83;cursor:pointer}
 .wd-menu-scroll{min-height:0;padding:16px 16px 18px;overflow:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;touch-action:pan-y}
 #wd-mobile-menu .wd-menu-publish{display:flex;align-items:center;gap:12px;padding:13px 14px;min-height:60px;width:100%;border-radius:13px;background:#346bd5;color:#fff;box-shadow:0 4px 10px #346bd520;font-weight:700}
 .wd-menu-publish>span{flex:1;min-width:0}.wd-menu-publish small{display:block;font-size:11px;font-weight:400;opacity:.92;line-height:1.6;margin-top:2px}.wd-menu-publish>svg:last-child{width:16px;height:16px}
 .wd-menu-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 18px}
 #wd-mobile-menu .wd-menu-shortcuts>a{display:flex;align-items:center;gap:9px;position:relative;min-width:0;min-height:54px;padding:11px 12px;border:1px solid #e0e8f2;border-radius:11px;background:#f7faff;font-size:12px;font-weight:600;line-height:1.5}
 .wd-menu-shortcuts svg{color:#4675af}.wd-menu-shortcuts span:not(.wd-menu-count){min-width:0;overflow-wrap:anywhere}
 .wd-menu-section{margin:0 0 9px}.wd-menu-section h2{margin:16px 0 5px;padding:0 9px;color:#76899a;font-size:11px;line-height:1.6;font-weight:600;letter-spacing:.4px}
 #wd-mobile-menu .wd-menu-row{display:flex;align-items:center;gap:11px;width:100%;min-height:46px;margin:0;padding:10px 9px;border:0;border-radius:10px;background:transparent;font-size:14px;line-height:1.5;font-weight:500}
 .wd-menu-row>span:not(.wd-menu-count){flex:1;min-width:0;overflow-wrap:anywhere}.wd-menu-row>svg:first-child{color:#71899f}.wd-menu-row>svg:last-child:not(:first-child){width:14px;height:14px;color:#9aabbc}
 #wd-mobile-menu a:hover,#wd-mobile-menu summary:hover{background:#edf3fc}#wd-mobile-menu .wd-menu-publish:hover{background:#285fbd}
 .wd-menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;border-radius:8px;background:#eaf1fc;color:#356bb8;font-size:11px;font-weight:700;flex-shrink:0}
 .wd-menu-shortcuts .wd-menu-count{margin-left:auto;min-width:19px;height:19px;padding:0 4px;font-size:10px}
 .wd-menu-details{border-top:1px solid #e5ecf4;margin:0;padding:0}
 #wd-mobile-menu .wd-menu-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:0;padding:11px 9px;list-style:none;font-size:13px;font-weight:600;border-radius:9px;cursor:pointer}
 .wd-menu-details>summary::-webkit-details-marker{display:none}.wd-menu-details>summary svg{width:15px;height:15px;color:#849bb0;transition:transform .15s}.wd-menu-details[open]>summary svg{transform:rotate(90deg)}
 .wd-menu-details>nav{padding:2px 0 10px}.wd-menu-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #wd-mobile-menu .wd-menu-categories>a{display:flex;align-items:center;min-height:44px;padding:9px 12px;border:1px solid #e2eaf3;border-radius:9px;font-size:12px;background:#fafcfe;font-weight:500}
 #wd-mobile-menu .wd-menu-categories>.wd-menu-all{grid-column:1/-1;justify-content:center;background:#f0f6ff;color:#356abe}
 .wd-menu-help{border-top:1px solid #e5ecf4;padding-top:1px}
 .wd-menu-legal{display:flex;flex-wrap:wrap;gap:0 14px;margin:8px 9px 0;font-size:11px;color:#70869a}.wd-menu-legal a{display:flex;align-items:center;min-height:44px}
 .wd-menu-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px max(8px,env(safe-area-inset-bottom,0px));border-top:1px solid #e2ebf3;background:#f8fafd}
 #wd-mobile-menu .wd-menu-bottom>a{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 7px;border-radius:9px;font-size:12px;font-weight:500}
 .wd-menu-bottom svg{width:18px!important;height:18px!important}
 .wd-menu-auth{padding:12px 0 0}.wd-menu-auth p{margin:0 0 10px;font-size:12px;color:#6a8296}.wd-menu-auth>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}
 #wd-mobile-menu .wd-menu-auth a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px;border:1px solid #cbdcf4;border-radius:10px;color:#315f9b;background:#f3f7fd;font-size:13px;font-weight:600}
 #wd-mobile-menu .wd-menu-extensions a{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 9px;border-radius:9px;font-size:13px}.wd-menu-extensions i{color:#71899f}.wd-menu-extensions a:before{display:none}
 html[mode=dark] #wd-mobile-menu{background:#182a3b;color:#dce8f4;border-color:#3a5065}
 html[mode=dark] .wd-menu-top,html[mode=dark] .wd-menu-bottom{background:#1e3247;border-color:#344b61}
 html[mode=dark] #wd-mobile-menu .wd-menu-close,html[mode=dark] #wd-mobile-menu .wd-menu-shortcuts>a,html[mode=dark] #wd-mobile-menu .wd-menu-categories>a,html[mode=dark] #wd-mobile-menu .wd-menu-auth a{background:#233b52;color:#e0eafa;border-color:#3a526b}
 html[mode=dark] #wd-mobile-menu a:hover,html[mode=dark] #wd-mobile-menu summary:hover{background:#2b455f}
 html[mode=dark] .wd-menu-details,html[mode=dark] .wd-menu-help{border-color:#344b61}
 html[mode=dark] .wd-menu-count{background:#2a4a70;color:#d9eaff}
 html[mode=dark] .wd-menu-identity small,html[mode=dark] .wd-menu-section h2,html[mode=dark] .wd-menu-auth p,html[mode=dark] .wd-menu-legal{color:#adc0d2}
}
@media(max-width:350px){.wd-menu-top{padding:12px}.wd-menu-scroll{padding:12px}.wd-menu-identity strong{font-size:14px}#wd-mobile-menu .wd-menu-shortcuts>a{padding:10px 8px;gap:7px;font-size:11px}}
@media(prefers-reduced-motion:reduce){#wd-mobile-menu *{transition:none!important}}

@media(max-width:767px){
 #wd-mobile-menu .wd-menu-section h2{font-size:11px!important;line-height:1.6!important;font-weight:600!important;letter-spacing:.4px!important;color:#76899a!important;margin:16px 0 5px!important;padding:0 9px!important}
 #wd-mobile-menu .wd-menu-row[aria-current=page],#wd-mobile-menu .wd-menu-shortcuts>a[aria-current=page]{background:#edf3ff;color:#285fc6;font-weight:700}
 html[mode=dark] #wd-mobile-menu .wd-menu-section h2{color:#adc0d2!important}
 html[mode=dark] #wd-mobile-menu .wd-menu-row[aria-current=page],html[mode=dark] #wd-mobile-menu .wd-menu-shortcuts>a[aria-current=page]{background:#2a4a70;color:#e1edff}
}

@media(max-width:767px){
 #wd-mobile-menu .wd-menu-scroll::-webkit-scrollbar{width:5px}
 #wd-mobile-menu .wd-menu-scroll::-webkit-scrollbar-track{background:transparent}
 #wd-mobile-menu .wd-menu-scroll::-webkit-scrollbar-thumb{background:#c4d1df;border-radius:9px}
 html[mode=dark] #wd-mobile-menu{color-scheme:dark}
 html[mode=dark] #wd-mobile-menu .wd-menu-scroll::-webkit-scrollbar-thumb{background:#55718c}
 html[mode=dark] #wd-mobile-menu .wd-menu-shortcuts svg{color:#a5c7f5}
 html[mode=dark] #wd-mobile-menu .wd-menu-row>svg:first-child{color:#adc0d2}
}

/* Plugin links share the drawer rhythm. Deduplicated links can leave empty list rows. */
@media(max-width:767px){
 #wd-mobile-menu .wd-menu-extensions{display:block;margin:0;padding:0;list-style:none}
 #wd-mobile-menu .wd-menu-extensions ul,#wd-mobile-menu .wd-menu-extensions ol,#wd-mobile-menu .wd-menu-extensions li{display:block;float:none;width:100%;min-height:0;height:auto;margin:0!important;padding:0!important;border:0;background:transparent;list-style:none}
 #wd-mobile-menu .wd-menu-extensions li:empty{display:none!important}
 #wd-mobile-menu .wd-menu-extensions li::marker{content:''}
 #wd-mobile-menu .wd-menu-extensions li::before,#wd-mobile-menu .wd-menu-extensions li::after{display:none!important;content:none!important}
 #wd-mobile-menu .wd-menu-extensions a{display:flex;align-items:center;gap:11px;float:none;width:100%;min-height:46px;height:auto;margin:0!important;padding:10px 9px!important;border:0;border-radius:10px;background:transparent;color:#284d63;font-size:14px;line-height:1.5;font-weight:500;white-space:normal;overflow-wrap:anywhere}
 #wd-mobile-menu .wd-menu-extensions a:hover{background:#edf3fc}
 #wd-mobile-menu .wd-menu-extensions i{display:inline-flex;align-items:center;justify-content:center;flex:0 0 21px;width:21px;margin:0;font-size:18px;line-height:21px;color:#71899f}
 #wd-mobile-menu .wd-menu-details>summary{color:#47627a}
 html[mode=dark] #wd-mobile-menu .wd-menu-extensions a{color:#dce8f4}
 html[mode=dark] #wd-mobile-menu .wd-menu-extensions i,html[mode=dark] #wd-mobile-menu .wd-menu-details>summary{color:#adc0d2}
 html[mode=dark] #wd-mobile-menu .wd-menu-extensions a:hover{background:#2b455f}
}

@media(max-width:767px){#wd-mobile-menu .wd-menu-extensions a:not(:has(i,svg)){padding-left:41px!important}}
