@media (min-width: 783px) {

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) {
    --pkds-header-bg: #013142;
    --pkds-header-accent: #d9b25a;
    --pkds-header-text: #f4ead2;
    --pkds-header-h: 76px;
    --pkds-header-logo-h: 56px;
    --pkds-header-pad: 24px;
    position: sticky !important;
    top: 0 !important;
    z-index: 100000 !important;
    margin: 0 0 40px !important;
    padding: 0 !important;
    background: var(--pkds-header-bg) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18) !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .wp-block-group {
    background: transparent !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) > .wp-block-group {
    padding: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .wp-block-group:has(> .pkds-nav-desktop-wrap) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: var(--wp--style--global--content-size, 1280px) !important;
    height: var(--pkds-header-h) !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 0 var(--pkds-header-pad) !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .wp-block-group:has(> .pkds-nav-desktop-wrap) > * {
    margin: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .wp-block-site-logo {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    line-height: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .wp-block-site-logo img {
    height: var(--pkds-header-logo-h) !important;
    width: calc(var(--pkds-header-logo-h) * 507 / 156) !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: 47.4% 50% !important;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 2.4%, #000 97.6%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 2.4%, #000 97.6%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
    mask-composite: intersect;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap {
    flex: 0 1 auto !important;
    width: auto !important;
    padding: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container {
    justify-content: flex-end !important;
    gap: 4px !important;
    padding: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item {
    align-items: center !important;
    border-radius: 8px !important;
    color: var(--pkds-header-text) !important;
    transition: background-color .15s ease, color .15s ease !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within, .current-menu-item, :has(.current-menu-item)) {
    background: rgba(217, 178, 90, .14) !important;
    color: var(--pkds-header-accent) !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
    padding-right: 4px !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-icon {
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    color: inherit !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
    top: calc(100% + 8px) !important;
    left: 0 !important;
    min-width: 240px !important;
    box-sizing: border-box !important;
    padding: 8px !important;
    border: 1px solid rgba(1, 49, 66, .08) !important;
    border-top: 3px solid var(--pkds-header-accent) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(1, 49, 66, .2) !important;
    color: var(--pkd-text, #2a1e12) !important;
    transform: translateY(6px) !important;
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .has-child:is(:hover, :focus-within, :has(> [aria-expanded="true"])) > .wp-block-navigation__submenu-container {
    transform: none !important;
    transition: opacity .15s ease, transform .15s ease, visibility 0s !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .has-child > .wp-block-navigation__submenu-container::before {
    content: "" !important;
    position: absolute !important;
    inset: -12px 0 auto !important;
    height: 12px !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-container .has-child > .wp-block-navigation__submenu-container {
    top: -11px !important;
    left: calc(100% + 8px) !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-container .has-child > .wp-block-navigation__submenu-container::before {
    inset: 0 auto 0 -12px !important;
    width: 12px !important;
    height: auto !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .has-child:nth-last-child(-n+2) > .wp-block-navigation__submenu-container {
    left: auto !important;
    right: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .has-child:nth-last-child(-n+2) .wp-block-navigation__submenu-container .has-child > .wp-block-navigation__submenu-container {
    left: auto !important;
    right: calc(100% + 8px) !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .has-child:nth-last-child(-n+2) .wp-block-navigation__submenu-container .has-child > .wp-block-navigation__submenu-container::before {
    inset: 0 -12px 0 auto !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
    align-items: center !important;
    border-radius: 8px !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    flex: 1 1 auto !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item:is(:hover, :focus-within, .current-menu-item, :has(.current-menu-item)) {
    background: var(--pkd-red, #7a1515) !important;
    color: #fff !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon,
  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
    display: none !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation :is(.wp-block-navigation-item__content, .wp-block-navigation__submenu-icon):focus-visible {
    outline: 2px solid var(--pkds-header-accent) !important;
    outline-offset: 2px !important;
  }

  :is(body.admin-bar header.wp-block-template-part, body.admin-bar.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) {
    top: 32px !important;
  }
}

@media (min-width: 783px) and (max-width: 1100px) {
  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) {
    --pkds-header-logo-h: 46px;
    --pkds-header-pad: 16px;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .wp-block-group:has(> .pkds-nav-desktop-wrap) {
    gap: 12px !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container {
    gap: 0 !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    padding: 8px !important;
    font-size: 13px !important;
  }

  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .wp-block-navigation__submenu-icon {
    margin-right: 6px !important;
  }
}

@media (min-width: 783px) and (prefers-reduced-motion: reduce) {
  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .has-child > .wp-block-navigation__submenu-container,
  :is(body header.wp-block-template-part, body.pkds-sds-plugin-rendered-page .wp-site-blocks > .wp-block-group:first-child) .pkds-nav-desktop-wrap .wp-block-navigation .has-child:is(:hover, :focus-within, :has(> [aria-expanded="true"])) > .wp-block-navigation__submenu-container {
    transform: none !important;
    transition: none !important;
  }
}
