/* Header only. Overrides the historical rules in site.css. */
.admin-bar .dlp-header.is-overlay,
.admin-bar .dlp-header.is-sticky {
  top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 782px) {
  .admin-bar .dlp-header.is-overlay,
  .admin-bar .dlp-header.is-sticky {
    top: var(--wp-admin--admin-bar--height, 46px);
  }
}
@media (max-width: 600px) {
  .admin-bar .dlp-header.is-sticky { top: 0; }
}
.dlp-header .header-inner {
  --header-logo: clamp(134px, 9.271vw, 178px);
  --header-gap: clamp(20px, 2.604vw, 50px);
  --header-reserve: clamp(132px, 8.75vw, 168px);
  --header-play: clamp(18px, 1.198vw, 23px);
  --header-action-gap: clamp(14px, 1.042vw, 20px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--header-logo) minmax(0, 1fr);
  align-items: center;
  column-gap: 0;
  min-height: clamp(99px, 7.24vw, 139px);
  padding-block: clamp(24px, 1.823vw, 35px);
}
.dlp-header.is-sticky .header-inner {
  padding-block: clamp(16px, 1.042vw, 20px);
  min-height: clamp(84px, 5.677vw, 109px);
}
@media (min-width: 1201px) {
  .site-header.dlp-header.is-overlay:not(.is-sticky) .header-inner {
    min-height: clamp(99px, 7.24vw, 139px);
    padding-block: clamp(24px, 1.823vw, 35px);
  }
}
.dlp-header .header-inner > .brand {
  grid-column: 2;
  grid-row: 1;
  width: var(--header-logo);
  justify-self: center;
  z-index: 2;
}
.dlp-header .brand-logo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.dlp-header .main-nav {
  grid-column: auto;
  grid-row: auto;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--header-logo) minmax(0, 1fr);
  align-items: center;
  pointer-events: none;
}
.dlp-header .header-nav-side {
  pointer-events: auto;
  min-width: 0;
}
.dlp-header .header-nav-left { grid-column: 1; }
.dlp-header .header-nav-right {
  grid-column: 3;
  justify-self: end;
  margin-right: calc(var(--header-reserve) + var(--header-play) + var(--header-action-gap) + var(--header-gap));
}
.dlp-header .nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--header-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}
.dlp-header .nav-list > li {
  grid-column: auto;
  margin: 0;
}
.dlp-header .nav-list a {
  font: 400 clamp(12px, .8333vw, 16px)/1.25 var(--dlp-body);
  padding-block: 12px;
  white-space: nowrap;
}
.dlp-header .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dlp-header .menu-item-has-children > a::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.dlp-header .nav-list .sub-menu {
  min-width: 238px;
  border-radius: 5px;
  padding: 20px 12px;
}
.dlp-header.is-overlay:not(.is-sticky) .sub-menu {
  background: white;
  color: var(--dlp-green);
}
.dlp-header .nav-list .sub-menu a {
  font-size: 16px;
  white-space: normal;
}
.dlp-header .header-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--header-action-gap);
  z-index: 2;
}
.dlp-header .button--header {
  display: inline-flex;
  width: var(--header-reserve);
  min-height: clamp(38px, 2.604vw, 50px);
  padding: 0 10px;
  font: italic 700 clamp(13px, .8333vw, 16px)/1.2 var(--dlp-body);
  border: 1px solid white;
  border-radius: 2px;
  background: transparent;
  color: white;
  white-space: nowrap;
}
.dlp-header .button--header:hover { background: rgba(255,255,255,.12); }
.dlp-header .header-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--header-play);
  height: var(--header-play);
}
.dlp-header .header-video img { width: 100%; height: 100%; }
.dlp-header .header-reserve-mobile,
.dlp-header .menu-toggle { display: none; }

@media (max-width: 1200px) {
  .dlp-header .header-inner {
    --header-logo: clamp(90px, 20.93vw, 142px);
    --header-reserve: clamp(92px, 23.49vw, 159px);
    width: calc(100% - 2 * clamp(12px, 2.093vw, 14px));
    min-height: clamp(84px, 19.535vw, 132px);
    padding-block: 16px;
    gap: 0;
  }
  .dlp-header .menu-toggle {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-items: center;
    gap: clamp(5px, 1.163vw, 8px);
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    font: 400 clamp(16px, 4.186vw, 28px)/1 var(--dlp-body);
    letter-spacing: .1em;
    color: white;
    background: transparent;
  }
  .dlp-header.is-sticky .header-inner {
    min-height: clamp(84px, 19.535vw, 132px);
    padding-block: 16px;
  }
  .dlp-header .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: clamp(18px, 4.186vw, 28px);
    height: clamp(18px, 4.186vw, 28px);
    padding-block: 2px;
  }
  .dlp-header .menu-icon i {
    display: block;
    width: 100%;
    height: clamp(2px, .465vw, 3px);
    border-radius: 100%;
    background: currentColor;
  }
  .dlp-header .menu-icon i:nth-child(2) { transform: rotate(-2deg); }
  .dlp-header .menu-icon i:nth-child(3) { transform: rotate(1deg); }
  .dlp-header .header-actions { gap: 0; }
  .dlp-header .button--header {
    min-height: clamp(34px, 8.14vw, 55px);
    font-size: clamp(14px, 3.721vw, 25px);
    padding: 0 8px;
  }
  .dlp-header .header-reserve-mobile { display: inline; }
  .dlp-header .header-reserve-desktop,
  .dlp-header .header-video { display: none; }
  .dlp-header .main-nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    padding: 20px 12px;
    background: var(--dlp-green);
    pointer-events: auto;
  }
  .menu-ready .dlp-header .main-nav { display: none; }
  .menu-ready .dlp-header .main-nav.is-open { display: block; }
  .dlp-header .header-nav-right { margin: 0; }
  .dlp-header .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .dlp-header .nav-list a { font-size: 16px; }
  .dlp-header .nav-list .sub-menu,
  .dlp-header.is-overlay:not(.is-sticky) .nav-list .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    background: transparent;
    color: white;
    padding: 0 0 12px 20px;
    min-width: 0;
  }
}

/* Mobile drawer: Figma Menu 153:5258 and expanded state 174:1488. */
.mobile-menu-heading,
.mobile-menu-contact,
.mobile-menu-bottom,
.menu-backdrop { display: none; }
@media (max-width: 1200px) {
  html.mobile-menu-open,
  .mobile-menu-open body { overflow: hidden; }
  .site-header.dlp-header.is-overlay:not(.is-sticky):has(.main-nav.is-open) { background: transparent; }
  .dlp-header .menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100dvh;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 30%);
  }
  .dlp-header .main-nav {
    position: fixed;
    inset: 0 auto 0 0;
    top: var(--dlp-admin-offset, 0px);
    z-index: 4;
    width: min(306px, calc(100vw - 44px));
    height: calc(100dvh - var(--dlp-admin-offset, 0px));
    max-height: none;
    padding: 10px 15px 20px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    color: white;
  }
  .menu-ready .dlp-header .main-nav.is-open { display: flex; }
  .dlp-header .mobile-menu-heading {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding-bottom: 10px;
    margin-bottom: 7px;
    border-bottom: 1px solid rgb(229 240 190 / 15%);
  }
  .dlp-header .menu-close {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 33px;
    padding: 0;
    border: 0;
    color: white;
    background: transparent;
    font: 400 14px/20px var(--dlp-body);
    letter-spacing: 2.1px;
  }
  .dlp-header .menu-close > span:first-child { font-size: 20px; letter-spacing: 0; }
  .dlp-header .mobile-menu-brand { width: 86px; }
  .dlp-header .mobile-menu-brand img { width: 86px; height: auto; }
  .dlp-header .header-nav-side { width: 100%; }
  .dlp-header .nav-list > li { position: relative; }
  .dlp-header .nav-list > li > a {
    display: block;
    padding: 13px 0 12px;
    font: 400 13px/16px var(--dlp-body);
  }
  .dlp-header .menu-item-has-children { border-bottom: 1px solid var(--dlp-light); }
  .dlp-header .menu-item-has-children > a { padding-right: 40px; }
  .dlp-header .menu-item-has-children > a::after { display: none; }
  .dlp-header .submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 41px;
    padding: 0;
    border: 0;
    background: transparent;
    color: white;
  }
  .dlp-header .submenu-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .dlp-header .submenu-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
  .dlp-header .menu-item-has-children:has(.submenu-toggle[aria-expanded="true"]) > a { font-weight: 700; font-style: italic; }
  .menu-ready .dlp-header .nav-list .sub-menu { display: none; padding: 0 0 10px; }
  .menu-ready .dlp-header .nav-list .sub-menu.is-expanded { display: block; }
  .dlp-header .nav-list .sub-menu a { padding: 8px 0; font-size: 13px; line-height: 16px; color: var(--dlp-light); }
  .dlp-header .mobile-menu-contact { display: block; margin-top: 13px; }
  .dlp-header .mobile-menu-contact .button {
    min-height: 46px;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 16px;
  }
  .dlp-header .mobile-menu-bottom {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 30px;
    margin-top: auto;
  }
  .mobile-menu-socials { display: flex; gap: 15px; align-items: center; }
  .mobile-menu-socials img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
  .mobile-menu-bottom .dlp-languages { position: relative; }
  .mobile-menu-bottom .dlp-languages > summary {
    min-width: 64px;
    min-height: 25px;
    padding: 5px 10px;
    gap: 4px;
    border: 1px solid white;
    background: transparent;
    font: 400 13px/1 var(--dlp-body);
  }
  .mobile-menu-bottom .dlp-languages img { width: 13px; height: 13px; border: 0; border-radius: 50%; }
  .mobile-menu-bottom .dlp-language-options { left: auto; right: 0; }
}
@media (min-width: 1201px) {
  .dlp-header .submenu-toggle { display: none; }
}

@media (hover:hover) {
  .dlp-header .button--header:hover { background:#fff; color:#163f08; border-color:#fff; }
}
.dlp-header .button--header:active { background:#fff; color:#45903b; border-color:#fff; }

/* Style guide dropdown: centered panel and centered seven-link list. */
@media (min-width:1201px) {
  .dlp-header .nav-list .sub-menu {
    left:50%; transform:translateX(-50%); width:238px; min-width:238px;
    padding:20px 12px; text-align:center; background:#163f08; color:#fff;
    margin:13px 0 0;
  }
  .dlp-header .nav-list .sub-menu::before {
    content:''; position:absolute; inset:-16px 0 auto; height:16px;
  }
  .dlp-header .nav-list .sub-menu::after {
    content:''; position:absolute; left:50%; top:-13px; transform:translateX(-50%);
    border-left:13px solid transparent; border-right:13px solid transparent; border-bottom:13px solid #163f08;
  }
  .dlp-header.is-overlay:not(.is-sticky) .nav-list .sub-menu { background:#fff; color:#163f08; }
  .dlp-header.is-overlay:not(.is-sticky) .nav-list .sub-menu::after { border-bottom-color:#fff; }
  .dlp-header .nav-list .sub-menu a { display:block; padding:5px 0; font-size:16px; line-height:20px; color:inherit; }
  .dlp-header .nav-list .sub-menu .dlp-menu-all-services > a { font-style:italic; font-weight:700; }
  .dlp-header .nav-list .sub-menu a:hover { text-decoration:underline; text-underline-offset:3px; }
}
