/* Apna Legal Saathi v1.9.23 - overlay of existing approved styling ONLY.
   All navigation flyouts have one golden perimeter, no internal separator.
   No form/select dropdowns, images or unrelated WordPress widgets are altered. */
body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown > ul,
body:not(.wp-admin) #masthead [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown > ul,
body:not(.wp-admin) #masthead li.alsu-nav-weblinks > ul,
body:not(.wp-admin) #masthead li.alsu-nav-weblinks > ul.mega-sub-menu,
body:not(.wp-admin) [id^="mega-menu-wrap-"] li.alsu-nav-weblinks > ul.mega-sub-menu {
 border:1px solid #c39a5d!important;
 border-image:none!important;outline:0!important;
 background:#2d1d14!important;box-sizing:border-box!important;
}
body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul li,
body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul li > a,
body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul li > a.mega-menu-link,
body:not(.wp-admin) [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown ul li,
body:not(.wp-admin) [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown ul li > a.mega-menu-link {
 border:0!important;box-shadow:none!important;outline-offset:-2px;
}
/* Mega Menu may insert separators using a :before pseudo element. Only remove
   decorative category rules; arrows on anchor :after remain untouched. */
body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul li::before,
body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul li > a::before {
 border:0!important;box-shadow:none!important;
}
/* Typography: top headings retain their existing sizes. Nested text decreases
   one level at a time while preserving approved weights, colours, hover styles. */
body.alsu-walnut-site:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown > ul > li > a,
body:not(.wp-admin) [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown > ul > li > a.mega-menu-link {font-size:15px!important;line-height:1.4!important;}
body.alsu-walnut-site:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul ul > li > a,
body:not(.wp-admin) [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown ul ul > li > a.mega-menu-link {font-size:13px!important;line-height:1.4!important;}
body.alsu-walnut-site:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul ul ul > li > a,
body:not(.wp-admin) [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown ul ul ul > li > a.mega-menu-link {font-size:12px!important;line-height:1.4!important;}
@media(min-width:922px){
 /* Content determines submenu widths, not inherited 295/385px fixed widths. */
 body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown > ul,
 body:not(.wp-admin) [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown > ul,
 body:not(.wp-admin) #masthead li.alsu-nav-weblinks > ul {
   width:max-content!important;min-width:max-content!important;
   max-width:min(455px,calc(100vw - 24px))!important;
 }
 body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown ul li > a,
 body:not(.wp-admin) [id^="mega-menu-wrap-"] .alsu-unified-nav li.alsu-unified-dropdown ul li > a.mega-menu-link {
   white-space:normal!important;overflow-wrap:normal!important;
   padding:8px 28px 8px 12px!important;
 }
 /* Compact labels should not need a broad box to accommodate a hidden arrow. */
 body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown > ul > li {max-width:455px!important}
 /* Every right-hand flyout fits its label, not a legacy 385px fixed width. */
 body.alsu-walnut-site:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown.alsu-level-1 > ul,
 body.alsu-walnut-site:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown.alsu-level-2 > ul,
 body.alsu-walnut-site:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown.alsu-level-3 > ul,
 body.alsu-walnut-site:not(.wp-admin) #masthead .alsu-unified-nav li:is(.alsu-document-menu,.alsu-orop-document-menu) > ul {
   width:max-content!important;min-width:max-content!important;
   max-width:min(455px,calc(100vw - 24px))!important;
 }
}
@media(max-width:921px){
 body:not(.wp-admin) #masthead .alsu-unified-nav li.alsu-unified-dropdown > ul {
   width:100%!important;min-width:0!important;max-width:100%!important;
 }
}
/* Clock remains at the same viewport location as in the logged-out HOME header;
   bypass the old v1.9.11 second-row fallback triggered by the longer MY ACCOUNT. */
body.alsu-walnut-site:not(.als-dashboard-only) #alsu-ist-clock.alsu-clock-menu-aligned,
body.alsu-walnut-site:not(.als-dashboard-only) #alsu-ist-clock.alsu-clock-fallback {
 position:fixed!important;
 top:var(--alsu-static-clock-top,8px)!important;
 right:var(--alsu-static-clock-right,8px)!important;
 left:auto!important;
 z-index:98998!important;
 margin:0!important;
}
/* Fullscreen button is always viewport-fixed, including the member dashboard. */
body:not(.wp-admin) #alsu-site-fullscreen,
body.als-dashboard-only #alsu-site-fullscreen {
 position:fixed!important;left:10px!important;top:10px!important;
 z-index:98999!important;transform:none!important;
}
body.admin-bar:not(.wp-admin) #alsu-site-fullscreen{top:42px!important}
@media(max-width:782px){body.admin-bar:not(.wp-admin) #alsu-site-fullscreen{top:56px!important}}
body.als-dashboard-only #alsu-site-fullscreen,
body.alsu-dashboard-control-generated #alsu-site-fullscreen{
 width:42px;height:42px;display:flex;align-items:center;justify-content:center;
 padding:8px;border:1px solid #b38b52;border-radius:9px;
 background:linear-gradient(120deg,#24170f,#432b1d);color:#edc98b;
 box-shadow:0 2px 8px #0006;cursor:pointer;
}
body.als-dashboard-only #alsu-site-fullscreen svg,body.alsu-dashboard-control-generated #alsu-site-fullscreen svg{width:24px;height:24px}
/* Also cover a pre-existing client dashboard fullscreen/zoom control without
   changing its click handler or position relative to the viewport. */
body:not(.wp-admin) .alsu-dashboard-fixed-control {
 position:fixed!important;top:10px!important;left:10px!important;
 transform:none!important;z-index:98999!important;
}
body.admin-bar:not(.wp-admin) .alsu-dashboard-fixed-control {top:42px!important}
@media(max-width:782px){body.admin-bar:not(.wp-admin) .alsu-dashboard-fixed-control{top:56px!important}}
