/* Only the existing services branch in Listeo's horizontal navigation. */
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu {
  /* Existing accessible pink used in the site's editorial links. Native
     #f91942 is too light for normal-size text on white/pale pink. */
  --cas-services-accent: #d10c42;
  --cas-services-tint: #fff3f6;
}
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 576px;
  min-width: 0;
  max-width: calc(100vw - 24px);
  padding: 16px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(23 23 23 / 12%);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0, var(--menu-dropdown-offset, 8px));
  transition: opacity 160ms ease, visibility 160ms ease;
}
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu.cas-services-open > .lhb-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li {
  min-width: 0;
  margin: 0;
}
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li > a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  height: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  margin: 0;
  border: 1px solid #e0e2e6;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu [data-cas-service]::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background-color: currentColor;
  -webkit-mask: var(--cas-service-icon) center / contain no-repeat;
  mask: var(--cas-service-icon) center / contain no-repeat;
}
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li > a:is(:hover, :focus-visible, [aria-current="page"]),
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li.current-menu-item > a {
  color: var(--cas-services-accent);
  border-color: color-mix(in srgb, var(--cas-services-accent) 44%, white);
  background: var(--cas-services-tint);
}
[data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li > a:focus-visible {
  outline: 2px solid var(--cas-services-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  [data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub,
  [data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li > a { transition: none; }
}
@media (forced-colors: active) {
  [data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li > a { border-color: ButtonText; }
  [data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li > a:focus-visible { outline-color: Highlight; }
}

/* The existing native drawer takes over at Listeo's 1024px breakpoint.
   Its own level remains the only scrolling region; no second menu is built. */
[data-lhb-frontend-header] .cas-services-drawer {
  --cas-services-accent: #d10c42;
  --cas-services-tint: #fff3f6;
  top: var(--cas-postcode-viewport-top, var(--cas-services-top, 0px));
}
[data-lhb-frontend-header] .cas-services-drawer .lhb-hb-mobile-panel {
  height: var(--cas-postcode-viewport-height, calc(100dvh - var(--cas-services-top, 0px)));
}
@media (max-width: 1024px) {
  /* Keep translated levels clipped without allowing focus to scroll the viewport sideways. */
  [data-lhb-frontend-header] .cas-services-drawer .lhb-hb-mobile-scroll { overflow: clip; }
}
[data-lhb-frontend-header] .cas-services-drawer .lhb-hb-mobile-close { width: 44px; height: 44px; }
[data-lhb-frontend-header] .cas-services-level [data-lhb-mobile-back] { min-height: 44px; }
[data-lhb-frontend-header] .cas-services-level .lhb-hb-mobile-link {
  min-height: 52px;
  gap: 14px;
  padding: 12px 8px;
  color: #171717;
  font-size: 15px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  background: #fff;
  transition: none;
}
[data-lhb-frontend-header] .cas-services-level [data-cas-service]::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-color: currentColor;
  -webkit-mask: var(--cas-service-icon) center / contain no-repeat;
  mask: var(--cas-service-icon) center / contain no-repeat;
}
[data-lhb-frontend-header] .cas-services-level .lhb-hb-mobile-link:is(:hover, :focus-visible, [aria-current="page"]),
[data-lhb-frontend-header] .cas-services-level .current-menu-item > .lhb-hb-mobile-link {
  color: var(--cas-services-accent);
  background: var(--cas-services-tint);
}
[data-lhb-frontend-header] .cas-services-drawer :is(button,a,input):focus-visible {
  outline: 2px solid var(--cas-services-accent);
  outline-offset: -2px;
}
@media (min-width: 1025px) and (max-width: 1279px) {
  [data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub { width: 552px; padding: 12px; gap: 10px; }
  [data-lhb-frontend-header] .lhb-menu-horizontal .cas-services-menu > .lhb-sub > li > a { min-height: 64px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-lhb-frontend-header] .cas-services-drawer,
  [data-lhb-frontend-header] .cas-services-drawer :is(.lhb-hb-mobile-panel,.lhb-hb-mobile-level,.lhb-hb-mobile-link) { transition: none; }
}
@media (forced-colors: active) {
  [data-lhb-frontend-header] .cas-services-level [data-cas-service]::before { background-color: LinkText; }
  [data-lhb-frontend-header] .cas-services-drawer :is(button,a,input):focus-visible { outline-color: Highlight; }
}
