/* v1.0.3: HOME dropdown only. Respect original site header/logo dimensions
   and keep HOME's anchor linked to the real homepage. */
#masthead li.als-fa-home-parent,
#mega-menu-wrap-primary li.als-fa-home-parent {position:relative!important;}

/* About Us and Services: same compact dark-wood / gold-outline treatment
   as existing ALS dropdowns. Do not style other menu roots. */
#masthead li.als-fa-home-parent > ul.sub-menu,
#masthead li.als-fa-home-parent > ul.mega-sub-menu,
#mega-menu-wrap-primary li.als-fa-home-parent > ul.mega-sub-menu {
  display:none!important;visibility:hidden!important;opacity:0!important;
  position:absolute!important;top:100%!important;left:0!important;right:auto!important;
  width:max-content!important;min-width:150px!important;max-width:min(90vw,280px)!important;
  margin:0!important;padding:5px!important;list-style:none!important;
  background:#302017!important;border:1px solid #c39a5d!important;border-radius:2px!important;
  box-sizing:border-box!important;z-index:99999!important;transform:none!important;
}
#masthead li.als-fa-home-parent:is(:hover,:focus-within,.ast-submenu-expanded,.mega-toggle-on) > :is(ul.sub-menu,ul.mega-sub-menu),
#mega-menu-wrap-primary li.als-fa-home-parent:is(:hover,:focus-within,.mega-toggle-on) > ul.mega-sub-menu {
  display:block!important;visibility:visible!important;opacity:1!important;transform:none!important;
}
#masthead li.als-fa-home-parent > :is(ul.sub-menu,ul.mega-sub-menu) > li.als-fa-home-child,
#mega-menu-wrap-primary li.als-fa-home-parent > ul.mega-sub-menu > li.als-fa-home-child {
  display:block!important;float:none!important;width:100%!important;margin:0!important;
}
#masthead li.als-fa-home-parent > :is(ul.sub-menu,ul.mega-sub-menu) > li.als-fa-home-child > a,
#mega-menu-wrap-primary li.als-fa-home-parent > ul.mega-sub-menu > li.als-fa-home-child > a {
  display:block!important;width:100%!important;padding:8px 12px!important;
  color:#e8c58c!important;background:transparent!important;
  font-size:14px!important;line-height:1.4!important;font-weight:500!important;
  white-space:nowrap!important;text-decoration:none!important;box-sizing:border-box!important;
}
#masthead li.als-fa-home-parent > :is(ul.sub-menu,ul.mega-sub-menu) > li.als-fa-home-child > a:is(:hover,:focus-visible),
#mega-menu-wrap-primary li.als-fa-home-parent > ul.mega-sub-menu > li.als-fa-home-child > a:is(:hover,:focus-visible) {
  background:#573e2b!important;color:white!important;
}
/* Preserve theme's distinct submenu toggle on touch layouts. HOME text itself
   remains an ordinary link; the arrow/toggle opens ABOUT US and SERVICES. */
@media(max-width:921px) {
  #masthead li.als-fa-home-parent > :is(ul.sub-menu,ul.mega-sub-menu),
  #mega-menu-wrap-primary li.als-fa-home-parent > ul.mega-sub-menu {
    position:static!important;top:auto!important;left:auto!important;right:auto!important;
    max-width:100%!important;width:100%!important;min-width:0!important;
    box-shadow:none!important;
  }
}

/* v1.0.3 compatibility: old updater CSS marked the HOME submenu as
   "home-cleared" and hid it. The real HOME children must remain available.
   This override applies only to our re-parented HOME menu, not other flyouts. */
body:not(.wp-admin) #masthead li.als-fa-home-parent.alsu-v1933-home-cleared:is(:hover,:focus-within,.alsu-nav-open,.mega-toggle-on) > :is(ul.sub-menu,ul.mega-sub-menu) {
  display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
}
/* No duplicate ABOUT/SERVICES links alongside the Flag–Logo–Photo banner.
   Do not affect the banner's dimensions, alignment, images or styles. */
body:not(.wp-admin) .entry-content nav.alsu-v1933-rail {display:none!important;}

/* v1.0.4: Restore the two HOME children if older Website Updater JS/CSS
   marked them for relocation. Scope to the HOME submenu only. */
body:not(.wp-admin) #masthead li.als-fa-home-parent > ul > li.als-fa-home-child,
body:not(.wp-admin) #masthead li.als-fa-home-parent > ul > li.als-fa-home-child.alsu-v1937-relocated,
body:not(.wp-admin) #masthead li.als-fa-home-parent > ul > li.als-fa-home-child.alsu-v1933-rail-source {
  display:list-item!important;visibility:visible!important;opacity:1!important;
}
body:not(.wp-admin) .alsu-v1933-layout > nav.alsu-v1933-rail {display:none!important;}
body:not(.wp-admin) #masthead li.als-fa-home-parent > a{pointer-events:auto!important;cursor:pointer!important;}

/* Family Assistance is a primary-row heading immediately before Login. */
@media(min-width:922px){
 #masthead #mega-menu-wrap-primary #mega-menu-primary {
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  width:100%!important;max-width:none!important;
 }
 #masthead #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item {
  float:none!important;flex:0 1 auto!important;clear:none!important;
 }
 #masthead #mega-menu-wrap-primary #mega-menu-primary > li.als-fa-main-heading {
  display:list-item!important;visibility:visible!important;position:relative!important;
 }
 #masthead #mega-menu-wrap-primary #mega-menu-primary > li.als-fa-main-heading > a {
  white-space:nowrap!important;
 }
}

/* Uniform desktop heading baseline. Apply only to top-level navigation;
   dropdown positioning and mobile menu behaviour remain independent. */
@media(min-width:922px){
 html body #masthead .site-primary-header-wrap > .ast-builder-grid-row {
  grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;
 }
 html body #masthead .site-header-primary-section-center {
  width:100%!important;min-width:0!important;justify-self:stretch!important;
 }
 html body #masthead :is(.ast-builder-menu-1,.ast-main-header-bar-alignment,#mega-menu-wrap-primary) {
  width:100%!important;max-width:none!important;min-width:0!important;
 }
 html body #masthead #mega-menu-wrap-primary #mega-menu-primary {
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  justify-content:space-between!important;align-items:center!important;gap:0!important;
  padding:0!important;margin:0!important;min-height:44px!important;
 }
 html body #masthead #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item {
  display:flex!important;align-items:center!important;align-self:center!important;
  position:relative!important;float:none!important;clear:none!important;
  margin:0!important;padding:0!important;top:auto!important;bottom:auto!important;
  transform:none!important;min-height:44px!important;height:auto!important;
  background:transparent!important;box-shadow:none!important;
 }
 html body #masthead #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-height:44px!important;height:44px!important;
  line-height:1.2!important;white-space:nowrap!important;vertical-align:middle!important;
  margin:0!important;padding:0 clamp(3px,.6vw,10px)!important;
  top:auto!important;bottom:auto!important;transform:none!important;
  font-size:clamp(12px,1.25vw,18px)!important;
  background:transparent!important;box-shadow:none!important;
 }
}
/* A single wooden canvas behind every main heading, including active links. */
html body.alsu-walnut-site:not(.als-dashboard-only):not(.wp-admin) #masthead {
 background:repeating-linear-gradient(93deg,#c28a4208 0,#c28a4208 1px,transparent 2px,transparent 19px),linear-gradient(115deg,#24170f,#432b1d)!important;
 background-attachment:fixed!important;
}
html body.alsu-walnut-site:not(.als-dashboard-only):not(.wp-admin) #masthead :is(
.ast-primary-header-bar,.main-header-bar,.site-primary-header-wrap,
.site-header-primary-section-center,.ast-builder-menu-1,.ast-main-header-bar-alignment),
html body.alsu-walnut-site:not(.als-dashboard-only):not(.wp-admin) #masthead #mega-menu-wrap-primary,
html body.alsu-walnut-site:not(.als-dashboard-only):not(.wp-admin) #masthead #mega-menu-wrap-primary #mega-menu-primary {
 background:transparent!important;
}

/* Family Assistance shares the header canvas at every screen width and state.
   Override the standalone button/current-item fill from older menu providers. */
html body #masthead #mega-menu-wrap-primary #mega-menu-primary > li.als-fa-main-heading,
html body #masthead #mega-menu-wrap-primary #mega-menu-primary > li.als-fa-main-heading > a,
html body #masthead li.als-fa-main-heading,
html body #masthead li.als-fa-main-heading > a,
html body #masthead li.als-fa-main-heading > a > :is(span,div) {
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;
}
html body #masthead li.als-fa-main-heading::before,
html body #masthead li.als-fa-main-heading::after,
html body #masthead li.als-fa-main-heading > a::before,
html body #masthead li.als-fa-main-heading > a::after {
 background:transparent!important;background-image:none!important;box-shadow:none!important;
}

/* v1.0.24: anchor only first-level desktop panels to their own heading.
   Explicit top/bottom reset prevents inherited upward panel placement. */
@media(min-width:922px){
 html body #masthead #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > ul.mega-sub-menu,
 html body #masthead .main-header-menu > li.menu-item > ul.sub-menu {
  position:absolute!important;top:100%!important;bottom:auto!important;
  left:0!important;right:auto!important;margin-top:0!important;
  margin-bottom:0!important;transform:none!important;
 }
 html body #masthead .main-header-menu > li.menu-item {position:relative!important;}
 html body #masthead #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item:last-child > ul.mega-sub-menu,
 html body #masthead .main-header-menu > li.menu-item:last-child > ul.sub-menu {
  left:auto!important;right:0!important;
 }
}

/* Hide decorative arrows while retaining every submenu and its controls. */
#masthead :is(.mega-indicator,.alsu-v1936-caret,.alsu-v1934-caret){display:none!important}
#masthead .dropdown-menu-toggle .ast-icon{visibility:hidden!important}
#masthead .mega-menu-link::after{content:none!important}


/* Remove the full-window control, including late-created legacy instances. */
html body #alsu-site-fullscreen,
html body .alsu-dashboard-fixed-control,
html body #alsu-fullscreen-status{display:none!important;pointer-events:none!important}
/* Bring navigation closer to the upper divider without shifting the brand row. */
html body:not(.wp-admin) #masthead,
html body:not(.wp-admin) #masthead :is(.ast-main-header-wrap,.main-header-bar-wrap,.ast-primary-header-bar,.site-primary-header-wrap) {
 margin-top:0!important;padding-top:0!important;
}

/* Main heading hover/focus: white lettering on the shared header canvas. */
html body #masthead #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:is(:hover,:focus-visible),
html body #masthead .main-header-menu > li.menu-item > a:is(:hover,:focus-visible) {
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* Site-wide link hover, including nested menu and link label text. */
html body:not(.wp-admin) a:is(:hover,:focus-visible),
html body:not(.wp-admin) a:is(:hover,:focus-visible) :is(span,strong,b,em,i),
html body:not(.wp-admin) #masthead :is(.mega-menu-link,.menu-link):is(:hover,:focus-visible),
html body:not(.wp-admin) #masthead :is(.mega-menu-link,.menu-link):is(:hover,:focus-visible) :is(span,strong,b,em,i) {
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}

html body #masthead #mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link:is(:hover,:focus-visible),
html body #masthead #mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link:is(:hover,:focus-visible) span {
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* Home ticker shares its surrounding wooden background. */
html body.home:not(.wp-admin) .entry-content .alsu-disability-ticker.als-headline-v109,
html body.page-id-282:not(.wp-admin) .entry-content .alsu-disability-ticker.als-headline-v109 {
 background:transparent!important;background-image:none!important;box-shadow:none!important;
}
