/**
 * Blocks Mega Menu - Frontend Styles
 *
 * Uses CSS custom properties for easy theme override:
 * --mega-menu-bg, --mega-menu-text, --mega-menu-main-nav,
 * --mega-menu-link, --mega-menu-link-hover, --mega-menu-heading,
 * --mega-menu-border
 *
 * Override in your theme:
 * :root { --mega-menu-bg: #your-color; }
 */

/* ==========================================================================
   Base Navigation
   ========================================================================== */

.mega-menu-nav {
  position: relative;
}

.mega-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.mega-menu-list>li {
  position: static;
  margin: 0;
  padding: 0;
}

.mega-menu-list li li {
  position: relative;
  margin: 0;
  padding: 0;
}

.mega-menu-list>li>a,
.mega-menu-nav .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  color: var(--mega-menu-main-nav, var(--mega-menu-link, #333));
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.mega-menu-panel .wp-block-columns {
  padding: 0 0 30px;
}

/* Items with dropdowns act as toggles, not links */
.mega-menu-list>li.mega-menu-item>a,
.mega-menu-list>li.menu-item-has-children>a {
  cursor: pointer;
}

.mega-menu-list>li>a:hover,
.mega-menu-list>li>a:focus-visible,
.mega-menu-nav .wp-block-navigation-item__content:hover,
.mega-menu-nav .wp-block-navigation-item__content:focus-visible {
  color: var(--mega-menu-link-hover, #8e3690);
}

.mega-menu-list>li>a:focus-visible,
.mega-menu-nav .wp-block-navigation-item__content:focus-visible,
.mega-menu-panel .mega-menu-link-list a:focus-visible,
.mega-menu-toggle:focus-visible {
  outline: 2px solid var(--mega-menu-link-hover, #8e3690);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Active page states - preserved from WordPress */
.mega-menu-list>li.current-menu-item>a,
.mega-menu-list>li.current-menu-parent>a,
.mega-menu-list>li.current-menu-ancestor>a,
.mega-menu-list>li.current_page_item>a,
.mega-menu-list>li.current_page_parent>a,
.mega-menu-list>li.current_page_ancestor>a {
  color: var(--mega-menu-link-hover, #8e3690);
  font-weight: 600;
}

.mega-menu-nav .current-menu-item>.wp-block-navigation-item__content,
.mega-menu-nav .current-menu-parent>.wp-block-navigation-item__content,
.mega-menu-nav .current-menu-ancestor>.wp-block-navigation-item__content,
.mega-menu-nav .current_page_item>.wp-block-navigation-item__content,
.mega-menu-nav .current_page_parent>.wp-block-navigation-item__content,
.mega-menu-nav .current_page_ancestor>.wp-block-navigation-item__content {
  color: var(--mega-menu-link-hover, #8e3690);
  font-weight: 600;
}

/* Active menu item indicator */
.mega-menu-list>li.current-menu-item>a::after,
.mega-menu-list>li.current-menu-parent>a::after,
.mega-menu-list>li.current-menu-ancestor>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--mega-menu-link-hover, #8e3690);
}

/* Open state for menu items */
.mega-menu-list>li.mega-menu-item--open>a,
.mega-menu-list>li.menu-item-has-children.mega-menu-item--open>a,
.mega-menu-nav .mega-menu-item--open>.wp-block-navigation-item__content {
  color: var(--mega-menu-link-hover, #8e3690);
}

/* ==========================================================================
   Dropdown Indicator
   ========================================================================== */

.mega-menu-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 0.625rem;
  height: 0.375rem;
  background: none !important;
  color: currentColor;
  filter: none !important;
  line-height: 0;
  transition: transform 0.2s ease;
}

.mega-menu-indicator svg {
  display: block;
  width: 1rem;
  height: 1rem;
  overflow: visible;
  stroke: currentColor;
}

.mega-menu-indicator svg path {
  stroke-width: 1;
}

.mega-menu-nav .mega-menu-indicator.nav-chevron {
  width: 0.625rem;
  height: 0.375rem;
  flex-basis: 0.625rem;
  background: transparent !important;
  -webkit-mask: none !important;
  mask: none !important;
  filter: none !important;
  transform: none !important;
}

.mega-menu-nav a>.nav-chevron:not(.mega-menu-indicator) {
  display: none !important;
}

.mega-menu-nav .mega-menu-item>.wp-block-navigation__submenu-icon,
.mega-menu-nav .mega-menu-item>.wp-block-navigation-submenu__toggle,
.mega-menu-nav .mega-menu-item>.wp-block-navigation-item__content>.wp-block-navigation__submenu-icon {
  display: none !important;
}

.mega-menu-item--open>.wp-block-navigation-item__content .mega-menu-indicator,
.mega-menu-item--open>a>.mega-menu-indicator,
.mega-menu-nav .mega-menu-item--open .mega-menu-indicator.nav-chevron,
.mega-menu-nav .wp-block-navigation-item__content[aria-expanded="true"] .mega-menu-indicator {
  transform: rotate(180deg) !important;
}

.mega-menu-panel .layout-card-with-icon .dcfs-card__content .wp-block-group {
  display: flex;
  gap: 5px;
}

/* ==========================================================================
   Mega Menu Panel (Full-Width Dropdown)
   ========================================================================== */

.mega-menu-panel {
  position: absolute;
  z-index: 10040;
  background-color: var(--mega-menu-bg, #fff);
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 16px;
}

/* Animation: Fade */
.mega-menu-panel[data-animation="fade"] {
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mega-menu-item--open>.mega-menu-panel[data-animation="fade"] {
  opacity: 1;
}

/* Animation: Slide */
.mega-menu-panel[data-animation="slide"] {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.mega-menu-item--open>.mega-menu-panel[data-animation="slide"] {
  opacity: 1;
  transform: translateY(0);
}

/* Open state */
.mega-menu-item--open>.mega-menu-panel {
  display: block;
}

.mega-menu-panel__inner {
  max-width: 1330px;
  margin: 0 auto;
  padding: 30px;
  gap: 10px;
  background: #FFFFFF;
  box-shadow: 0px 9px 22.9px rgba(0, 0, 0, 0.11);
  border-radius: var(--dcfs-mega-radius-lg);
  box-sizing: border-box;
}


.mega-menu-panel a {
  color: var(--mega-menu-link, #333);
}

.mega-menu-panel a:hover,
.mega-menu-panel a:focus-visible {
  color: var(--mega-menu-link-hover, #8e3690);
}

/* ==========================================================================
   Standard Submenu (Non-Mega-Menu Dropdowns)
   ========================================================================== */

.mega-menu-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--mega-menu-bg, #fff);
  border: 1px solid var(--mega-menu-border, #e5e5e5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: none;
}

.mega-menu-list>li.mega-menu-item--open>.sub-menu,
.mega-menu-list>li.menu-item-has-children.mega-menu-item--open>.sub-menu {
  display: block;
}

.mega-menu-list .sub-menu li {
  margin: 0;
}

.mega-menu-list .sub-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--mega-menu-link, #333);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mega-menu-list .sub-menu a:hover,
.mega-menu-list .sub-menu a:focus-visible {
  background: #f5f5f5;
  color: var(--mega-menu-link-hover, #8e3690);
}

.mega-menu-list .sub-menu a:focus-visible {
  outline: 2px solid var(--mega-menu-link-hover, #8e3690);
  outline-offset: 2px;
}

/* Nested submenus */
.mega-menu-list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* ==========================================================================
   Mega Menu Content Styling (Block Editor Output)
   ========================================================================== */

.mega-menu-panel .wp-block-heading {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  padding: 0 0.16em;
  border-bottom: 0;
  isolation: isolate;
}

.mega-menu-panel .wp-block-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.55em;
  right: -0.2em;
  top: 50%;
  height: 58%;
  background: #cfe7ab;
  border-radius: 1.5rem 0.35rem 1rem 0.35rem;
  transform: translateY(-45%) rotate(0.25deg);
  clip-path: polygon(1% 12%, 10% 7%, 22% 11%, 34% 6%, 48% 10%, 62% 5%, 77% 10%, 91% 6%, 100% 11%, 99% 91%, 88% 96%, 74% 90%, 61% 96%, 46% 90%, 31% 94%, 17% 89%, 0 94%);
}

.mega-menu-panel .wp-block-heading.has-text-align-center {
  margin-left: auto;
  margin-right: auto;
}

.mega-menu-panel .wp-block-heading.has-text-align-right {
  margin-left: auto;
}

.mega-menu-panel .wp-block-column .wp-block-heading {
  font-weight: 400;
  font-size: var(--dcfs-mega-font-nav);
  line-height: 27px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* color: #1D1D27; */


}

.mega-menu-panel .mega-menu-panel__inner .wp-block-columns .wp-block-button__link {
  background-color: #ffffff;
  color: #1D407A;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 21px;

}

.mega-menu-panel .wp-block-column .wp-block-heading::before {
  left: -0.25em;
  right: -0.1em;
  height: 64%;
  border-radius: 0.75rem 0.2rem 0.55rem 0.2rem;
}

.mega-menu-panel .mega-menu-link-list,
.mega-menu-panel .mega-menu-persona-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-panel .mega-menu-link-list li,
.mega-menu-panel .mega-menu-persona-list li {
  margin: 0;
  padding: 0;
}

.mega-menu-panel .mega-menu-link-list a {
  padding: 5px 0;
  display: flex;
  align-items: center;
  color: #818181;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 400;
  font-size: var(--dcfs-mega-font-link);
  line-height: 27px;
}

.mega-menu-panel .mega-menu-link-list a:hover,
.mega-menu-panel .mega-menu-link-list a:focus-visible {
  color: var(--mega-menu-link-hover, #8e3690);
}

/* Persona list in sidebar (min 44px touch targets) */
.mega-menu-panel .mega-menu-persona-list a {
  font-style: normal;
  font-weight: 400;
  font-size: var(--dcfs-mega-font-persona);
  line-height: 26px;
  color: #1D407A !important;

}

.mega-menu-panel .mega-menu-persona-list a:hover,
.mega-menu-panel .mega-menu-persona-list a:focus-visible {
  color: var(--mega-menu-link-hover, #8e3690);
}

.mega-menu-panel .mega-menu-sidebar-label {
  color: var(--mega-menu-heading, #8e3690);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Card grid within mega menu */
.mega-menu-panel .wp-block-columns {
  gap: 1.5rem;
}

/* ==========================================================================
   Mobile Toggle Button
   ========================================================================== */

.mega-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mega-menu-toggle__icon {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s ease;
}

.mega-menu-toggle__icon::before,
.mega-menu-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.mega-menu-toggle__icon::before {
  top: -7px;
}

.mega-menu-toggle__icon::after {
  bottom: -7px;
}

/* Hamburger to X animation */
.mega-menu-toggle[aria-expanded="true"] .mega-menu-toggle__icon {
  background: transparent;
}

.mega-menu-toggle[aria-expanded="true"] .mega-menu-toggle__icon::before {
  transform: translateY(7px) rotate(45deg);
}

.mega-menu-toggle[aria-expanded="true"] .mega-menu-toggle__icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Styles
   ========================================================================== */

@media (max-width: 1024px) {
  .mega-menu-toggle {
    display: flex;
  }

  .mega-menu-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mega-menu-bg, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }

  .mega-menu-list.mega-menu-list--open {
    display: flex;
  }

  .mega-menu-list>li {
    border-bottom: 1px solid var(--mega-menu-border, #e5e5e5);
  }

  .mega-menu-list>li>a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.25rem;
    min-height: 44px;
  }

  /* Mega menu panel becomes inline on mobile */
  .mega-menu-panel {
    position: static;
    width: 100%;
    margin-left: 0;
    border: none;
    box-shadow: var(--dcfs-mega-shadow-none);
  }

  /* Stack columns vertically on mobile */
  .mega-menu-panel .wp-block-columns {
    flex-direction: column;
    gap: 0;
  }

  .mega-menu-panel .wp-block-column {
    flex-basis: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mega-menu-border, #e5e5e5);
  }

  .mega-menu-panel .wp-block-column:last-child {
    border-bottom: none;
  }

  /* Standard submenu mobile */
  .mega-menu-list .sub-menu {
    position: static;
    width: 100%;
    box-shadow: var(--dcfs-mega-shadow-none);
    border: none;
    border-top: 1px solid var(--mega-menu-border, #e5e5e5);
    padding: 0;
  }

  .mega-menu-list .sub-menu a {
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Card grid stacks on mobile */
  .mega-menu-panel .wp-block-mega-menu-card {
    flex-direction: row;
    /* gap: .5rem; */
  }

  .mega-menu-panel .mega-menu-card__image {
    width: 80px;
    flex-shrink: 0;
  }

  .mega-menu-panel .mega-menu-card__image img {
    height: 60px;
    aspect-ratio: 1;
  }
}

/* Smaller mobile adjustments */
@media (max-width: 480px) {
  .mega-menu-panel__inner {
    padding: 0.75rem 1rem;
  }

  .mega-menu-panel .wp-block-mega-menu-card {
    flex-direction: column;
  }

  .mega-menu-panel .mega-menu-card__image {
    width: 100%;
  }
}

/* ==========================================================================
   Screen Reader Only Text
   ========================================================================== */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Skip Navigation (Accessibility)
   ========================================================================== */

.mega-menu-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--mega-menu-link-hover, #8e3690);
  color: var(--dcfs-mega-white);
  text-decoration: none;
  font-weight: 600;
}

.mega-menu-skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .mega-menu-panel,
  .mega-menu-indicator,
  .mega-menu-toggle__icon,
  .mega-menu-toggle__icon::before,
  .mega-menu-toggle__icon::after,
  .wp-block-mega-menu-card {
    transition: none !important;
  }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (forced-colors: active) {

  .mega-menu-list>li>a:focus-visible,
  .mega-menu-panel .mega-menu-link-list a:focus-visible,
  .mega-menu-toggle:focus-visible {
    outline: 2px solid LinkText;
  }

}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {

  .mega-menu-toggle,
  .mega-menu-indicator,
  .mega-menu-panel {
    display: none !important;
  }
}

/* ==========================================================================
   DCFS Header Mega Menu Skin
   ========================================================================== */

:root {
  --dcfs-mega-white: #ffffff;
  --dcfs-mega-blue: #1d407a;
  --dcfs-mega-blue-dark: #102c5b;
  --dcfs-mega-ink: #1d1d27;
  --dcfs-mega-button-purple: #8e3690;
  --dcfs-mega-radius-pill: 999rem;
  --dcfs-mega-space-0: 0;
  --dcfs-mega-space-sm: 15px;
  --dcfs-mega-radius-lg: 20px;
  --dcfs-mega-shadow-none: none;
  --dcfs-mega-font-sm: 1rem;
  --dcfs-mega-leading-body-fixed: 1.6875rem;
  --dcfs-mega-button-gap: 0.6875rem;
  --dcfs-mega-button-min-height: 3.3125rem;
  --dcfs-mega-button-padding: 0.75rem 1rem;
  --dcfs-mega-button-arrow-size: 1.8125rem;
  --dcfs-mega-motion-duration: 240ms;
  --dcfs-mega-motion-ease: cubic-bezier(0.2, 0.75, 0.35, 1);
  --dcfs-mega-font-nav: clamp(1rem, 1vw, 1rem);
  --dcfs-mega-font-button: clamp(1rem, 1vw, 1rem);
  --dcfs-mega-font-body: clamp(1rem, 1vw, 1rem);
  --dcfs-mega-font-link: clamp(1.25rem, 1.2vw, 1.25rem);
  --dcfs-mega-font-card-title: clamp(1.25rem, 1.2vw, 1.25rem);
  --dcfs-mega-font-sidebar-label: clamp(1.75rem, 2.2vw, 2.375rem);
  --dcfs-mega-font-persona: clamp(1.375rem, 1.8vw, 1.375rem);
  --dcfs-mega-font-icon-title: clamp(1.625rem, 1.8vw, 1.625rem);
}


#masthead>div:has(.mega-menu-nav) {
  /* position: relative;
z-index: 10050;
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
margin: 20px auto;
border-radius: var(--dcfs-mega-radius-pill);
background: var(--dcfs-mega-white) !important;
color: var(--dcfs-mega-ink);
box-shadow: 0 4px 10px rgba(56, 60, 66, 0.2);
min-height: 73px;
padding: var(--dcfs-mega-space-sm) !important;
max-width: fit-content; */
}

#masthead>div:has(.mega-menu-nav)>div:first-child {
  /* display: none; */
}

.mega-menu-panel {
  padding-bottom: 130px;
}

.mega-menu-nav {
  position: relative;
  z-index: 10050;
  width: 100%;
}

#masthead:has(.mega-menu-item--open),
.site-header:has(.mega-menu-item--open),
#masthead:has(.mega-menu-panel:not([hidden])),
.site-header:has(.mega-menu-panel:not([hidden])),
#masthead>div:has(.mega-menu-item--open),
.site-header>div:has(.mega-menu-item--open),
#masthead>div:has(.mega-menu-panel:not([hidden])),
.site-header>div:has(.mega-menu-panel:not([hidden])) {
  position: relative;
  z-index: 100000 !important;
  overflow: visible !important;
}

.mega-menu-item--open>.mega-menu-panel,
.mega-menu-panel:not([hidden]) {
  z-index: 100001 !important;
}

.mega-menu-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  grid-template-columns: none;
  align-items: center;
  width: 100%;
  margin: var(--dcfs-mega-space-0);
  padding: var(--dcfs-mega-space-0);
  border: 0;
  background: transparent;
  list-style: none;
}

.mega-menu-list>li {
  margin: var(--dcfs-mega-space-0);
  padding: 0 10px;
}

.mega-menu-nav .mega-menu-list>li>a,
.mega-menu-nav .wp-block-navigation-item__content {
  display: inline-flex;
  font-style: normal;
  font-weight: 400;
  text-align: center;
  font-size: 1rem;
}

.mega-menu-nav .mega-menu-list>li>a:hover,
.mega-menu-nav .mega-menu-list>li>a:focus-visible,
.mega-menu-nav .wp-block-navigation-item__content:hover,
.mega-menu-nav .wp-block-navigation-item__content:focus-visible,
.mega-menu-nav .mega-menu-item--open>a,
.mega-menu-nav .mega-menu-item--open>.wp-block-navigation-item__content {
  background: transparent;
}

.mega-menu-nav .mega-menu-item--open>a,
.mega-menu-nav .mega-menu-item--open>.wp-block-navigation-item__content,
.mega-menu-nav .wp-block-navigation-item__content[aria-expanded="true"],
.mega-menu-nav .mega-menu-list>li:has(> .mega-menu-panel:hover)>a,
.mega-menu-nav .mega-menu-list>li:has(> .mega-menu-panel:focus-within)>a {
  color: var(--dcfs-mega-button-purple, var(--mega-menu-link-hover, #8e3690)) !important;
  font-weight: 700;
}

.mega-menu-indicator {
  width: 1rem;
  height: 0.625rem;
  color: currentColor;
}

.header-report-abuse {
  margin: var(--dcfs-mega-space-0);
}

.header-report-abuse .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  border-radius: var(--dcfs-mega-radius-pill);
  background: var(--dcfs-mega-button-purple);
  color: var(--dcfs-mega-white);
  text-decoration: none;
  white-space: nowrap;
  font-style: normal;
  font-weight: 600;
  font-size: var(--dcfs-mega-font-button);
  line-height: 21px;
  padding: 14px 20px;
}

.header-report-abuse .wp-block-button__link:hover {
  background: var(--dcfs-mega-blue);
}


.header-report-abuse .dcfs-btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: 0 0 0 10px;
  border-radius: 50%;
  background: var(--dcfs-mega-white);
}

.mega-menu-panel .dcfs-card-block.layout-card-with-icon .dcfs-card__content .wp-block-heading {
  font-style: normal;
  font-family: var(--font-rubik, "Rubik", Arial, sans-serif);
  font-weight: 500;
  font-size: var(--text-h3, 1.625rem) !important;
  line-height: var(--leading-h3, 1.2);
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.header-report-abuse .dcfs-btn-arrow img {
  width: 13px;
  height: auto;
  filter: brightness(0) saturate(100%);
}

@media (max-width: 1024px) {
  #masthead>div:has(.mega-menu-nav) {
    display: flex;
    margin: 1rem;
    padding: 1rem !important;
  }

  #masthead>div:has(.mega-menu-nav)>div:first-child {
    display: flex;
  }

  .header-report-abuse {
    display: none;
  }

  .mega-menu-list {
    display: flex !important;
    gap: 0;
  }
}

/* Persona sidebar */
:where(.mega-menu-panel, .editor-styles-wrapper) .wp-block-columns:has(.mega-menu-persona-list) {
  align-items: stretch;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .wp-block-column:has(> .mega-menu-persona-list) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  padding: 20px;
  gap: 16px;
  height: fit-content;
  border-radius: var(--dcfs-mega-radius-lg);
  background-color: #eff4e8 !important;
  background-image:
    radial-gradient(70% 58% at 100% 0%, rgba(198, 226, 173, 0.64) 0%, rgba(198, 226, 173, 0.28) 36%, rgba(198, 226, 173, 0) 72%),
    radial-gradient(78% 68% at 0% 100%, rgba(176, 218, 223, 0.68) 0%, rgba(216, 195, 225, 0.30) 42%, rgba(216, 195, 225, 0) 78%),
    linear-gradient(115deg, #fbfbf1 0%, #eff4e8 48%, #c5e6cf 100%) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-sidebar-label {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  max-width: max-content;
  margin: 0 0 2.125rem;
  padding: 0.1em 0.45em;
  color: transparent !important;
  font-family: var(--font-rubik, Arial, sans-serif);
  font-size: var(--dcfs-mega-font-sidebar-label);
  font-style: normal !important;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  isolation: isolate;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-sidebar-label::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -0.15em 10% -0.2em;
  background: #cbe5a7;
  clip-path: polygon(0 22%, 16% 16%, 31% 19%, 46% 12%, 62% 17%, 78% 11%, 100% 17%, 96% 82%, 80% 86%, 65% 81%, 48% 88%, 31% 83%, 13% 89%, 1% 82%);
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list {
  display: grid;
  gap: var(--dcfs-mega-space-sm);
  margin: var(--dcfs-mega-space-0);
  padding: var(--dcfs-mega-space-0);
  list-style: none;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list li {
  margin: var(--dcfs-mega-space-0);
  padding: var(--dcfs-mega-space-0);
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 400;
  font-size: var(--dcfs-mega-font-persona);
  line-height: 26px;
  color: var(--dcfs-mega-blue) !important;
  gap: 20px;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a::before {
  content: "";
  aspect-ratio: 1;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: var(--persona-icon) center / 58% no-repeat, linear-gradient(135deg, #dbf4e3 0%, #d9eef5 54%, #eadff8 100%);
}

:where(.mega-menu-panel, .editor-styles-wrapper) .dcfs-card-block .wp-block-heading::before {
  content: none !important;
  display: none !important;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list li:nth-child(1) {
  --persona-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%231d407a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='23' cy='21' r='10'/%3E%3Ccircle cx='57' cy='24' r='9'/%3E%3Ccircle cx='40' cy='47' r='9'/%3E%3Cpath d='M8 66V43c0-8 6-14 15-14s15 6 15 14'/%3E%3Cpath d='M42 43c0-7 6-12 14-12s14 5 14 13v22'/%3E%3Cpath d='M26 70V60c0-7 5-12 14-12s14 5 14 12v10'/%3E%3C/g%3E%3C/svg%3E");
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list li:nth-child(2) {
  --persona-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%231d407a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 34 40 7l30 27'/%3E%3Cpath d='M17 30v38h46V30'/%3E%3Cpath d='M26 68V45h28v23'/%3E%3Ccircle cx='29' cy='34' r='8'/%3E%3Ccircle cx='51' cy='34' r='8'/%3E%3Ccircle cx='40' cy='54' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list li:nth-child(3) {
  --persona-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%231d407a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='40' cy='16' r='11'/%3E%3Cpath d='M24 68h32l2-27c0-8-7-14-18-14S22 33 22 41l2 27Z'/%3E%3Cpath d='M22 49h9'/%3E%3Cpath d='M49 49h9'/%3E%3C/g%3E%3C/svg%3E");
}

:where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list li:nth-child(4) {
  --persona-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%231d407a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='35' cy='16' r='9'/%3E%3Cpath d='M21 68V39c0-8 6-14 14-14s14 6 14 14v29'/%3E%3Cpath d='M28 44 16 60'/%3E%3Cpath d='M44 44 56 60'/%3E%3Cpath d='M35 43v25'/%3E%3Cpath d='M61 40v30'/%3E%3Cpath d='M56 47c4-2 8-2 12 1'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
  :where(.mega-menu-panel, .editor-styles-wrapper) .wp-block-column:has(> .mega-menu-persona-list) {
    padding: 2.25rem 3.25rem 2.75rem 3.5rem;
    border-radius: var(--dcfs-mega-radius-lg);
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-sidebar-label {
    margin-bottom: 2.125rem;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list {
    gap: 1.75rem;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a {
    gap: 1.75rem;
    font-size: var(--dcfs-mega-font-persona);
    line-height: 1.2;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a::before {
    width: 4.75rem;
    height: 4.75rem;
  }
}

/* Mega menu card design */
.mega-menu-panel .wp-block-columns:has(> .wp-block-column[style*="flex-basis"]) {
  display: flex;
}

.mega-menu-panel .wp-block-columns:has(.wp-block-mega-menu-card):not(:has(> .wp-block-column[style*="flex-basis"])) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  padding: var(--dcfs-mega-space-sm);
}

.mega-menu-panel .wp-block-columns:has(.wp-block-mega-menu-card):not(:has(> .wp-block-column[style*="flex-basis"]))>.wp-block-column {
  display: flex;
  min-width: 0;
  padding: 0 !important;
}

.wp-block-mega-menu-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: var(--dcfs-mega-space-0);
  border: 0;
  border-radius: var(--dcfs-mega-space-0);
  background: transparent;
  box-shadow: var(--dcfs-mega-shadow-none);
  color: var(--dcfs-mega-ink);
  text-decoration: none;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wp-block-mega-menu-card:has(.mega-menu-card__cta:hover),
.wp-block-mega-menu-card:has(.mega-menu-card__cta:focus-visible) {
  transform: translateY(-2px);
}

.wp-block-mega-menu-card:focus-visible {
  outline: 3px solid var(--dcfs-mega-button-purple);
  outline-offset: 6px;
  border-radius: 1.5rem;
}

.wp-block-mega-menu-card .mega-menu-card__image {
  width: 100%;
  margin-bottom: var(--dcfs-mega-space-sm);
  border-radius: var(--dcfs-mega-radius-lg);
  background: #eef2f4;
}

.wp-block-mega-menu-card .mega-menu-card__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: inherit;
}

.mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__title {
  margin: 0 0 var(--dcfs-mega-space-sm);
  font-style: normal;
  font-weight: 700;
  font-size: var(--dcfs-mega-font-card-title);
  line-height: 27px;
  color: var(--dcfs-mega-ink);
  text-transform: capitalize;
}

/* When a simple card's title is the link, keep the title's size/weight. */
.mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__title .mega-menu-card__cta {
  font-size: inherit;
  font-weight: inherit;
}

.mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__description {
  margin: 0 0 var(--dcfs-mega-space-sm);
  font-style: normal;
  font-weight: 400;
  font-size: var(--dcfs-mega-font-body);
  line-height: 22px;
  color: #818181;
}

.wp-block-mega-menu-card .mega-menu-card__cta-wrap {
  margin-top: 0;
}

.wp-block-mega-menu-card .mega-menu-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-style: normal;
  font-weight: 500;
  font-size: var(--dcfs-mega-font-nav);
  line-height: 27px;
  color: var(--dcfs-mega-blue) !important;
  text-decoration: none;
}

.wp-block-mega-menu-card .mega-menu-card__cta:hover,
.wp-block-mega-menu-card .mega-menu-card__cta:focus-visible {
  color: var(--dcfs-mega-button-purple) !important;
}

.wp-block-mega-menu-card:focus-visible,
.wp-block-mega-menu-card:hover {
  box-shadow: var(--dcfs-mega-shadow-none);
}

.mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__cta:not(.button)>span.mega-menu-card__cta-arrow[aria-hidden="true"]:not(.nav-chevron):not(.dcfs-btn-arrow):not(.dir-page-arrow) {
  display: inline-flex;
  width: 0.8125rem;
  height: 0.75rem;
  line-height: 0;
  background: currentColor;
  filter: none;
  -webkit-mask: url("../images/arrow.svg") center / contain no-repeat;
  mask: url("../images/arrow.svg") center / contain no-repeat;
  transition: transform 180ms ease;
  margin-left: 5px;
}

.mega-menu-card__cta:hover .mega-menu-card__cta-arrow,
.mega-menu-card__cta:focus-visible .mega-menu-card__cta-arrow {
  transform: translateX(0.25rem);
}

/* Whole-card link: an accessible stretched overlay so the card is one link. */
.wp-block-mega-menu-card.has-card-link {
  position: relative;
}

.wp-block-mega-menu-card .mega-menu-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mega-menu-panel .wp-block-mega-menu-card.has-card-link:hover .mega-menu-card__cta-arrow,
.mega-menu-panel .wp-block-mega-menu-card.has-card-link:focus-within .mega-menu-card__cta-arrow {
  transform: translateX(0.25rem);
}

@media (max-width: 1024px) {
  .mega-menu-panel .wp-block-columns:has(.wp-block-mega-menu-card):not(:has(> .wp-block-column[style*="flex-basis"])) {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wp-block-mega-menu-card .mega-menu-card__image {
    margin-bottom: 1rem;
    border-radius: 1.25rem;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__image img {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
  }

}

/* ==========================================================================
   Responsive Mega Menu Polish
   Keep these overrides at the end of this file.
   ========================================================================== */

@media (min-width: 1025px) and (max-width: 1280px) {
  #masthead>div:has(.mega-menu-nav) {
    max-width: calc(100% - 32px);
    min-height: 68px;
    padding: 12px !important;
  }

  .mega-menu-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-template-columns: none;
  }

  .mega-menu-list>li {
    padding: 0 6px;
  }

  .mega-menu-nav .mega-menu-list>li>a,
  .mega-menu-nav .wp-block-navigation-item__content {
    padding: 0.65rem 0.75rem;
    font-size: var(--dcfs-mega-font-nav);
    line-height: 1.2;
  }

  .header-report-abuse .wp-block-button__link {
    padding: 12px 16px;
    font-size: var(--dcfs-mega-font-button);
  }

  .mega-menu-panel__inner {
    width: calc(100vw - 48px);
    max-width: 1200px;
    padding: 24px;
  }
}

@media (max-width: 1024px) {
  :root {
    --dcfs-mega-font-nav: clamp(0.85rem, 1.45vw, 0.85rem);
    --dcfs-mega-font-button: clamp(0.85rem, 1.45vw, 0.85rem);
    --dcfs-mega-font-body: clamp(0.85rem, 1.45vw, 0.85rem);
    --dcfs-mega-font-link: clamp(1.063rem, 1.75vw, 1.063rem);
    --dcfs-mega-font-card-title: clamp(1.063rem, 2vw, 1.063rem);
    --dcfs-mega-font-sidebar-label: clamp(1.488rem, 3.4vw, 2.019rem);
    --dcfs-mega-font-persona: clamp(1.169rem, 3.4vw, 1.169rem);
    --dcfs-mega-font-icon-title: clamp(1.381rem, 3.4vw, 1.7rem);
  }

  #masthead>div:has(.mega-menu-nav) {
    position: relative;
    z-index: 10050;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100vw;
    max-width: 100vw;
    min-height: 120px;
    margin: 0 calc(50% - 50vw);
    padding: 20px 24px !important;
    border-radius: 0;
  }

  #masthead>div:has(.mega-menu-nav)>div:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
  }

  #masthead>div:has(.mega-menu-nav)>div:first-child .wp-block-site-logo,
  #masthead>div:has(.mega-menu-nav)>div:first-child .custom-logo-link {
    width: clamp(132px, 22vw, 210px) !important;
    max-width: clamp(132px, 22vw, 210px) !important;
    flex: 0 0 auto;
  }

  #masthead>div:has(.mega-menu-nav)>div:first-child .custom-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #masthead>div:has(.mega-menu-nav)>div:first-child .wp-block-site-title {
    display: none;
  }

  .mega-menu-nav {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  .header-report-abuse {
    display: none !important;
  }

  .mega-menu-toggle,
  .mega-menu-nav .wp-block-navigation__responsive-container-open {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    min-width: 132px;
    height: 54px;
    padding: 0 28px;
    border-radius: var(--dcfs-mega-radius-pill);
    color: var(--dcfs-mega-white);
    background: #17396e;
    font-style: normal;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 21px !important;

  }

  .mega-menu-toggle {
    flex: 0 0 auto;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container-open::after {
    content: "Menu";
    display: block;
    line-height: 21px;
    top: 1px;
    position: relative;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container-open svg {
    display: block;
    width: 30px;
    height: 20px;
    padding: 0;
    background: linear-gradient(currentColor 0 0) center 0 / 30px 2.5px no-repeat,
      linear-gradient(currentColor 0 0) center 6.75px / 30px 2.5px no-repeat,
      linear-gradient(currentColor 0 0) center 14.5px / 30px 2.5px no-repeat;
    transform: translateY(3px);
  }

  .mega-menu-nav .wp-block-navigation__responsive-container-open svg * {
    display: none;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container-close {
    display: none !important;
    place-items: center;
    width: 44px;
    height: 44px;
    top: 16px;
    right: 16px;
    padding: 0;
    border-radius: 50%;
    color: var(--dcfs-mega-ink);
    background: rgba(29, 64, 122, 0.06);
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    display: inline-grid !important;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container-close svg {
    width: 24px;
    height: 24px;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    inset: 12px;
    z-index: 10060;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow-y: auto;
    border-radius: 28px;
    background: var(--dcfs-mega-white) !important;
    box-shadow: 0 24px 64px rgba(29, 29, 39, 0.24);
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open :where(.wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-close, .wp-block-navigation__responsive-container-content) {
    width: 100%;
    max-width: 100%;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    display: block;
    padding: 64px 16px 18px;
  }

  .mega-menu-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 10051;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100dvh - 112px);
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    border: 0;
    border-radius: 24px;
    background: var(--dcfs-mega-white);
    box-shadow: 0 18px 48px rgba(29, 29, 39, 0.18);
    -webkit-overflow-scrolling: touch;
  }

  .mega-menu-list.mega-menu-list--open {
    display: grid;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open .mega-menu-list,
  .mega-menu-nav:not(:has(.mega-menu-toggle)):not(:has(.wp-block-navigation__responsive-container-open)) .mega-menu-list {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: none;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: var(--dcfs-mega-shadow-none);
  }

  .mega-menu-list>li {
    position: relative;
    padding: 0;
    border-bottom: 1px solid rgba(29, 29, 39, 0.08);
  }

  .mega-menu-list>li:last-child {
    border-bottom: 0;
  }

  .mega-menu-list>li>a,
  .mega-menu-nav .wp-block-navigation-item__content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 10px;
    border-radius: 16px;
    font-size: var(--dcfs-mega-font-persona);
    line-height: 1.25;
    text-align: left;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    box-sizing: border-box;
    padding-right: 16px !important;
    font-size: var(--dcfs-mega-font-persona);
    line-height: 26px;
  }

  .mega-menu-list>li.current-menu-item>a::after,
  .mega-menu-list>li.current-menu-parent>a::after,
  .mega-menu-list>li.current-menu-ancestor>a::after {
    content: none;
  }

  .mega-menu-panel {
    position: static !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    border: 0;
    overflow: visible;
  }

  .mega-menu-panel__inner {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 18px;
    box-shadow: var(--dcfs-mega-shadow-none);
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open .mega-menu-list>li:has(.mega-menu-panel:not([hidden])),
  .mega-menu-nav:not(:has(.mega-menu-toggle)):not(:has(.wp-block-navigation__responsive-container-open)) .mega-menu-list>li:has(.mega-menu-panel:not([hidden])) {
    display: block;
    grid-column: 1 / -1;
  }

  .mega-menu-panel :where(.wp-block-columns, .wp-block-group, .wp-block-buttons) {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 18px !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .mega-menu-panel :where(.wp-block-column, .wp-block-button, .wp-block-button__link, .wp-block-image, .wp-block-image img, .dcfs-card-block, .dcfs-card__content, .wp-block-mega-menu-card, .mega-menu-card__title, .mega-menu-card__description, .mega-menu-card__cta-wrap, .mega-menu-card__cta) {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .mega-menu-panel :where(.wp-block-column, .wp-block-image img) {
    width: 100%;
  }

  .mega-menu-panel :where(.wp-block-column) {
    padding: 0 !important;
    border-bottom: 0;
  }

  .mega-menu-panel :where(.is-nowrap) {
    flex-wrap: wrap !important;
    white-space: normal;
  }

  .mega-menu-panel :where(h1, h2, h3, h4, h5, h6, p, a) {
    overflow-wrap: normal;
    word-break: normal;
  }

  .mega-menu-panel .wp-block-heading {
    margin-bottom: 0.875rem;
    font-size: var(--dcfs-mega-font-body);
    line-height: 1.35;
  }

  .mega-menu-panel .mega-menu-link-list a {
    min-height: 40px;
    padding: 6px 0;
    font-size: var(--dcfs-mega-font-link);
    line-height: 1.35;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .wp-block-column:has(> .mega-menu-persona-list) {
    width: 100%;
    padding: 24px 22px !important;
    gap: 16px;
    border-radius: 24px;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-sidebar-label {
    margin-bottom: 0.75rem;
    font-size: var(--dcfs-mega-font-sidebar-label);
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list {
    gap: 1rem;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a {
    gap: 1rem;
    font-size: var(--dcfs-mega-font-persona);
    line-height: 1.2;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a::before {
    width: 4rem;
    height: 4rem;
  }

  .mega-menu-panel .wp-block-columns:has(.wp-block-mega-menu-card):not(:has(> .wp-block-column[style*="flex-basis"])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px !important;
  }

  .mega-menu-panel .wp-block-mega-menu-card {
    display: flex;
    flex-direction: column !important;
    gap: 0;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__image {
    width: 100% !important;
    flex: 0 0 auto;
    margin-bottom: 5px;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__image img {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__title {
    font-size: var(--dcfs-mega-font-card-title);
    line-height: 1.25;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__description {
    line-height: 1.45;
  }

  .mega-menu-panel .dcfs-card-block {
    width: 100% !important;
    overflow: hidden;
    font-family: var(--font-rubik, "Rubik", Arial, sans-serif);
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon {
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .dcfs-card__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100% !important;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .dcfs-card__content>.wp-block-group {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px !important;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .wp-block-image {
    flex: 0 0 auto;
    width: 96px !important;
    max-width: 96px;
    height: 96px;
    margin: 0;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .dcfs-card__content .wp-block-heading {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: var(--font-rubik, "Rubik", Arial, sans-serif);
    font-size: var(--text-h3, 1.625rem) !important;
    font-weight: 500;
    line-height: var(--leading-h3, 1.2);
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .dcfs-card__content p {
    margin: 0;
    max-width: 100%;
    font-family: var(--font-rubik, "Rubik", Arial, sans-serif);
    font-size: var(--text-body, 1.125rem);
    line-height: 1.5;
  }
}

@media (max-width: 699px) {
  :root {
    --dcfs-mega-font-nav: clamp(0.8rem, 3.5vw, 0.8rem);
    --dcfs-mega-font-button: clamp(0.8rem, 3.4vw, 0.8rem);
    --dcfs-mega-font-body: clamp(0.8rem, 3.4vw, 0.8rem);
    --dcfs-mega-font-link: clamp(1rem, 4vw, 1rem);
    --dcfs-mega-font-card-title: clamp(1rem, 5vw, 1rem);
    --dcfs-mega-font-sidebar-label: clamp(1.4rem, 6vw, 1.5rem);
    --dcfs-mega-font-persona: clamp(1.1rem, 5vw, 1.1rem);
    --dcfs-mega-font-icon-title: clamp(1.3rem, 6vw, 1.45rem);
  }

  #masthead>div:has(.mega-menu-nav) {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw);
    min-height: 94px;
    padding: 14px 18px !important;
    border-radius: 0;
  }

  #masthead>div:has(.mega-menu-nav)>div:first-child {
    gap: 10px;
  }

  #masthead>div:has(.mega-menu-nav)>div:first-child .wp-block-site-logo,
  #masthead>div:has(.mega-menu-nav)>div:first-child .custom-logo-link {
    /* width: clamp(116px, 36vw, 150px) !important;
    max-width: clamp(116px, 36vw, 150px) !important; */
  }

  .mega-menu-nav .wp-block-navigation__responsive-container-open {
    /* min-width: 132px;
    height: 54px;
    gap: 10px;
    padding: 0 20px;
    font-size: 16px !important;
    line-height: 21px !important; */
  }

  .mega-menu-list {
    top: calc(100% + 8px);
    max-height: calc(100dvh - 96px);
    padding: 8px;
    border-radius: 22px;
  }

  .mega-menu-list>li>a,
  .mega-menu-nav .wp-block-navigation-item__content {
    min-height: 46px;
    padding: 11px 10px;
    font-size: var(--dcfs-mega-font-persona);
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    box-sizing: border-box;
    padding-right: 16px !important;
    font-size: var(--dcfs-mega-font-persona);
    line-height: 26px;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open {
    inset: 8px;
    max-height: calc(100dvh - 16px);
    border-radius: 24px;
  }

  .mega-menu-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding: 60px 14px 16px;
  }

  .mega-menu-panel__inner {
    padding: 14px;
    border-radius: 16px;
  }

  .mega-menu-panel .wp-block-columns:has(.wp-block-mega-menu-card):not(:has(> .wp-block-column[style*="flex-basis"])),
  .mega-menu-nav:not(:has(.mega-menu-toggle)):not(:has(.wp-block-navigation__responsive-container-open)) .mega-menu-list {
    grid-template-columns: 1fr;
  }

  .mega-menu-panel .wp-block-columns:has(.wp-block-mega-menu-card):not(:has(> .wp-block-column[style*="flex-basis"]))>.wp-block-column:not(:last-child) {
    padding-bottom: 22px !important;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__image {
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__title {
    margin-bottom: 8px;
  }

  .mega-menu-panel .wp-block-mega-menu-card .mega-menu-card__description {
    margin-bottom: 10px;
    font-size: var(--dcfs-mega-font-body);
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon {
    padding: 22px;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .wp-block-image {
    width: 80px !important;
    max-width: 80px;
    height: 80px;
  }

  .mega-menu-panel .dcfs-card-block.layout-card-with-icon .dcfs-card__content .wp-block-heading {
    font-size: var(--text-h3, 1.625rem) !important;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .wp-block-column:has(> .mega-menu-persona-list) {
    padding: 22px 18px !important;
    border-radius: 22px;
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a {
    gap: 0.875rem;
    font-size: var(--dcfs-mega-font-persona);
  }

  :where(.mega-menu-panel, .editor-styles-wrapper) .mega-menu-persona-list a::before {
    width: 3.5rem;
    height: 3.5rem;
  }
}


@media (max-width: 74.999rem) {
  #masthead.site-header {
    position: relative;
    z-index: 10050;
  }

  #masthead.site-header .mobile-toggle[aria-controls] {
    height: 2.5rem;
    min-width: 7.3125rem;
    box-sizing: border-box;
    padding: 0;
    color: var(--dcfs-mega-white);
    font-family: 'Rubik', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3125rem;
    background: var(--dcfs-mega-blue-dark);
    border-radius: 200px;
    padding: 8px 20px;
    gap: 6px;
  }

  #masthead.site-header .mobile-toggle[aria-controls] .mobile-toggle-icon {
    display: grid;
    gap: 4px;
    width: 25px;
  }

  #masthead.site-header .mobile-toggle[aria-controls] .mobile-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: var(--dcfs-mega-radius-pill);
    background: currentColor;
  }

  #masthead.site-header #mobile-menu.mobile-menu.is-open,
  #masthead.site-header #mobile-menu.mobile-menu.is-closing {
    position: absolute;
    z-index: 10040;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 2.25rem 4.125rem 3rem;
    background: var(--dcfs-mega-white);
    box-shadow: 0 1.25rem 2.5rem rgba(29, 64, 122, 0.12);
    transform-origin: top center;
    will-change: opacity, transform;
  }

  #masthead.site-header #mobile-menu.mobile-menu.is-open {
    animation: dcfs-mega-mobile-drawer-in var(--dcfs-mega-motion-duration) var(--dcfs-mega-motion-ease) both;
  }

  #masthead.site-header #mobile-menu.mobile-menu.is-closing {
    pointer-events: none;
    animation: dcfs-mega-mobile-drawer-out 200ms var(--dcfs-mega-motion-ease) both;
  }

  #masthead.site-header .mobile-menu.is-open #mobile-header-menu.mega-menu-list,
  #masthead.site-header .mobile-menu.is-closing #mobile-header-menu.mega-menu-list {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    list-style: none;
  }

  #masthead.site-header .mobile-menu #mobile-header-menu>li {
    display: block;
    width: 100%;
    margin: 0 0 1.35rem;
    padding: 0;
    border: 0;
  }



  #masthead.site-header .mobile-menu #mobile-header-menu>li.mega-menu-item--open>a {
    color: var(--dcfs-mega-button-purple, var(--mega-menu-link-hover, #8e3690));
  }

  #masthead.site-header .mobile-menu #mobile-header-menu .mega-menu-indicator {
    width: 1.4rem;
    height: 1rem;
    flex: 0 0 1.4rem;
    margin-left: 1rem;
  }

  #masthead.site-header .mobile-menu #mobile-header-menu .button-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--dcfs-mega-button-gap);
    width: fit-content;
    max-width: 100%;
    min-height: var(--dcfs-mega-button-min-height);
    padding: var(--dcfs-mega-button-padding);
    color: var(--dcfs-mega-white);
    background: var(--dcfs-mega-button-purple);
    border-radius: var(--dcfs-mega-radius-pill);
    font-size: var(--dcfs-mega-font-sm);
    font-style: normal;
    font-weight: 600;
    line-height: 1.3125rem;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  #masthead.site-header .mobile-menu #mobile-header-menu .button-report .arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--dcfs-mega-button-arrow-size);
    height: var(--dcfs-mega-button-arrow-size);
    flex: 0 0 var(--dcfs-mega-button-arrow-size);
    border-radius: 50%;
    color: var(--dcfs-mega-blue);
    background: var(--dcfs-mega-white);
    font-size: 0;
    line-height: 1;
  }

  #masthead.site-header .mobile-menu #mobile-header-menu .mega-menu-panel {
    position: static;
    width: 100%;
    margin: 1rem 0 0;
    box-shadow: none;
    transform-origin: top center;
  }

  #masthead.site-header .mobile-menu #mobile-header-menu .mega-menu-item--open>.mega-menu-panel,
  #masthead.site-header .mobile-menu #mobile-header-menu .menu-item-has-children.mega-menu-item--open>.sub-menu {
    animation: dcfs-mega-mobile-panel-in var(--dcfs-mega-motion-duration) var(--dcfs-mega-motion-ease) both;
  }

  #masthead.site-header .mobile-menu #mobile-header-menu .mega-menu-panel__inner {
    padding: 1rem 0 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
}

@keyframes dcfs-mega-mobile-drawer-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dcfs-mega-mobile-drawer-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

@keyframes dcfs-mega-mobile-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  #masthead.site-header #mobile-menu.mobile-menu.is-open,
  #masthead.site-header #mobile-menu.mobile-menu.is-closing,
  #masthead.site-header .mobile-menu #mobile-header-menu .mega-menu-item--open>.mega-menu-panel,
  #masthead.site-header .mobile-menu #mobile-header-menu .menu-item-has-children.mega-menu-item--open>.sub-menu {
    animation: none;
  }
}

@media (max-width: 30rem) {

  #masthead.site-header #mobile-menu.mobile-menu.is-open,
  #masthead.site-header #mobile-menu.mobile-menu.is-closing {
    padding: 1.75rem 2rem 2.5rem;
  }

  #masthead.site-header .mobile-menu #mobile-header-menu>li {
    margin-bottom: .5rem;
  }
}

:where(.mega-menu-panel, .editor-styles-wrapper) .dcfs-card-block,
:where(.mega-menu-panel, .editor-styles-wrapper) .dcfs-card-block :where(h1, h2, h3, h4, h5, h6, p, a, .block-editor-rich-text__editable) {
  font-family: var(--font-rubik, "Rubik", Arial, sans-serif);
}

:where(.mega-menu-panel, .editor-styles-wrapper) .dcfs-card-block .wp-block-heading {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-rubik, "Rubik", Arial, sans-serif);
  font-size: var(--text-h3, 1.625rem) !important;
  font-weight: 500;
  line-height: var(--leading-h3, 1.2);
  letter-spacing: 0 !important;
  text-transform: none !important;
  isolation: auto;
}

.editor-styles-wrapper .dcfs-card-block .wp-block-heading::before {
  content: none !important;
  display: none !important;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .dcfs-card-block .dcfs-card__content p {
  font-size: var(--text-body, 1.125rem);
  line-height: 1.5;
}

:where(.mega-menu-panel, .editor-styles-wrapper) .dcfs-card-block .wp-block-button__link {
  font-family: var(--font-rubik, "Rubik", Arial, sans-serif);
  font-size: var(--text-sm, 1rem);
}

.mega-menu-panel .dcfs-card-block.layout-card-with-icon,
.mega-menu-panel .dcfs-card-block.layout-card-with-icon .dcfs-card__content {
  height: 100%;
  height: auto;
}