/*
 * Products and Applications dropdown redesign.
 * Measurements and palette follow the supplied YTL navigation reference.
 * The menu content itself remains controlled by Appearance > Menus.
 */
@media (min-width: 901px) {
  body > .site-header .header-utilities {
    display: flex !important;
  }

  body > .site-header .wrap {
    grid-template-columns: 150px minmax(560px, 1fr) minmax(190px, 220px) 58px 170px;
    gap: 14px;
  }

  body > .site-header .main-nav {
    gap: clamp(24px, 2vw, 38px);
  }

  body > .site-header .main-nav .nav-link {
    position: relative;
    padding: 0;
    color: #0a2747;
    font-size: 16px;
    font-weight: 620 !important;
    letter-spacing: -.01em;
  }

  body > .site-header .main-nav .nav-item.has-mega > .nav-link {
    padding-right: 17px;
  }

  body > .site-header .main-nav .nav-item.has-mega > .nav-link::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 12px;
    height: 12px;
    background: currentColor;
    transform: translateY(-50%);
    transition: transform .2s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 9.5 5 5 5-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 9.5 5 5 5-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  body > .site-header .main-nav .nav-item.has-mega:hover > .nav-link::before {
    transform: translateY(-50%) rotate(180deg);
  }

  body > .site-header .main-nav .nav-item:hover > .nav-link::after,
  body > .site-header .main-nav .nav-link:focus-visible::after,
  body > .site-header .main-nav .nav-link.active::after {
    width: 100%;
  }

  body > .site-header .products-panel,
  body > .site-header .apps-panel,
  body > .site-header .has-simple .simple-panel {
    width: min(calc(100vw - 80px), 1380px) !important;
    max-width: 1380px !important;
    padding: 10px 0 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body > .site-header .products-panel {
    width: min(calc(100vw - 24px), 1480px) !important;
    max-width: 1480px !important;
  }

  body > .site-header .products-mega,
  body > .site-header .apps-menu,
  body > .site-header .simple-menu {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid rgba(10, 39, 71, .1);
    border-top: 4px solid #2faa43;
    border-radius: 18px;
    background: #f8fbfd;
    box-shadow: 0 26px 70px rgba(7, 29, 53, .16);
  }

  body > .site-header .products-mega {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 28px;
  }

  body > .site-header .product-menu-column {
    min-width: 0;
    padding: 18px 10px 16px;
    border: 1px solid #e5edf3;
    border-radius: 13px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  body > .site-header .product-menu-column:hover {
    border-color: rgba(47, 170, 67, .38);
    box-shadow: 0 12px 30px rgba(7, 29, 53, .08);
    transform: translateY(-2px);
  }

  body > .site-header .pm-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e5edf3;
    color: #0a2747;
    font-size: 13.25px;
    font-weight: 760 !important;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body > .site-header .pm-head .menu-link-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    color: #218b32;
    background: transparent;
  }

  body > .site-header .pm-head .menu-link-icon svg {
    width: 27px;
    height: 27px;
  }

  body > .site-header .pm-head .menu-link-label {
    min-width: 0;
  }

  body > .site-header .pm-list {
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: 12.25px;
    line-height: 1.35;
  }

  body > .site-header .pm-list .pm-category-link {
    position: relative;
    display: block;
    padding: 8px 4px;
    border-radius: 7px;
    color: #536b83;
    font-size: 12.25px;
    font-weight: 400 !important;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, padding-left .18s ease;
  }

  body > .site-header .pm-list .pm-category-link:hover,
  body > .site-header .pm-list .pm-category-link:focus-visible,
  body > .site-header .pm-list .pm-category-link.current {
    padding-left: 13px;
    color: #218b32;
    background: #eaf8ec;
    outline: 0;
  }

  body > .site-header .apps-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 28px;
  }

  body > .site-header .apps-panel,
  body > .site-header .has-resources-menu .simple-panel,
  body > .site-header .has-about-menu .simple-panel {
    width: min(calc(100vw - 80px), 1280px) !important;
    max-width: 1280px !important;
  }

  body > .site-header .apps-menu .app-mini {
    min-height: 78px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    overflow: visible;
    border: 1px solid #e5edf3;
    border-radius: 13px;
    background: #fff;
    color: #0a2747;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  body > .site-header .apps-menu .app-mini::after {
    content: "\2192";
    color: #cfdbe6;
    font-size: 17px;
    line-height: 1;
    transition: color .18s ease, transform .18s ease;
  }

  body > .site-header .apps-menu .app-mini:hover,
  body > .site-header .apps-menu .app-mini:focus-visible,
  body > .site-header .apps-menu .app-mini.current {
    border-color: rgba(47, 170, 67, .48);
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 29, 53, .08);
    transform: translateY(-2px);
    outline: 0;
  }

  body > .site-header .apps-menu .app-mini:hover::after,
  body > .site-header .apps-menu .app-mini:focus-visible::after,
  body > .site-header .apps-menu .app-mini.current::after {
    color: #2faa43;
    transform: translateX(2px);
  }

  body > .site-header .apps-menu .app-mini > .chip {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #218b32;
    background: transparent;
    box-shadow: none;
  }

  body > .site-header .apps-menu .app-mini > .chip svg {
    width: 31px;
    height: 31px;
  }

  body > .site-header .apps-menu .app-mini strong {
    display: block;
    margin: 0;
    color: #0a2747;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.3;
  }

  body > .site-header .apps-menu .app-mini > span:nth-child(2) > span {
    display: none;
  }

  body > .site-header .nav-item.has-simple {
    position: static;
  }

  body > .site-header .has-simple .simple-panel {
    width: min(calc(100vw - 80px), 960px) !important;
  }

  body > .site-header .simple-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 28px;
  }

  body > .site-header .has-resources-menu .simple-panel,
  body > .site-header .has-about-menu .simple-panel {
    width: min(calc(100vw - 80px), 1280px) !important;
    max-width: 1280px !important;
  }

  body > .site-header .has-resources-menu .simple-menu,
  body > .site-header .has-about-menu .simple-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body > .site-header .simple-menu .simple-menu-link {
    min-height: 78px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border: 1px solid #e5edf3;
    border-radius: 13px;
    background: #fff;
    color: #0a2747;
    font-size: 14px;
    font-weight: 720 !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  body > .site-header .simple-menu .simple-menu-link::after {
    opacity: 1;
    color: #cfdbe6;
    transform: none;
  }

  body > .site-header .simple-menu .simple-menu-link:hover,
  body > .site-header .simple-menu .simple-menu-link:focus-visible,
  body > .site-header .simple-menu .simple-menu-link.current {
    border-color: rgba(47, 170, 67, .48);
    background: #fff;
    color: #0a2747;
    box-shadow: 0 12px 30px rgba(7, 29, 53, .08);
    transform: translateY(-2px);
    outline: 0;
  }

  body > .site-header .simple-menu .simple-menu-link:hover::after,
  body > .site-header .simple-menu .simple-menu-link:focus-visible::after,
  body > .site-header .simple-menu .simple-menu-link.current::after {
    color: #2faa43;
    transform: translateX(2px);
  }

  body > .site-header .simple-menu .menu-link-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #218b32;
    background: transparent;
  }

  body > .site-header .simple-menu .menu-link-icon svg {
    width: 31px;
    height: 31px;
  }

  body > .site-header .simple-menu .menu-link-label {
    min-width: 0;
  }
}

.header-language-menu {
  position: relative;
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.header-language-trigger {
  display: inline-grid;
  width: 52px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #173655;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.header-language-trigger img {
  width: 25px;
  height: 24px;
  display: block;
  object-fit: contain;
  transition: opacity .18s ease, transform .18s ease;
}

.header-language-menu:hover .header-language-trigger,
.header-language-menu:focus-within .header-language-trigger {
  background: transparent;
  outline: none;
}

.header-language-menu:hover .header-language-trigger img,
.header-language-menu:focus-within .header-language-trigger img {
  opacity: .72;
  transform: translateY(-1px);
}

.header-language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 4000;
  width: 154px;
  padding: 5px 0;
  visibility: hidden;
  border: 1px solid #dbe7ef;
  border-bottom: 3px solid #45b64f;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 39, 71, .16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.header-language-menu:hover .header-language-dropdown,
.header-language-menu:focus-within .header-language-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.header-language-dropdown::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
}

.header-language-dropdown a {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  color: #173655;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.header-language-dropdown a:hover,
.header-language-dropdown a:focus-visible,
.header-language-dropdown a.is-current {
  background: #f1faef;
  color: #218b32;
  outline: none;
}

.header-language-dropdown .language-flag {
  width: 22px;
  flex: 0 0 22px;
  font-size: 17px;
  line-height: 1;
}

body > .site-header .main-nav .ytl-mobile-language {
  display: none !important;
}

@media (max-width: 1279px) {
  body > .site-header .header-search {
    display: none !important;
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  body > .site-header .wrap {
    grid-template-columns: 140px minmax(620px, 1fr) 56px 160px;
    gap: 12px;
  }
}

@media (min-width: 1101px) and (max-width: 1379px) {
  body > .site-header .products-mega {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 20px;
  }

  body > .site-header .product-menu-column {
    padding-inline: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  body > .site-header .wrap {
    grid-template-columns: 96px minmax(500px, 1fr) 52px 148px;
    gap: 8px;
  }

  body > .site-header .main-nav {
    gap: 6px;
  }

  body > .site-header .main-nav .nav-link {
    padding-inline: 4px;
    font-size: 14px;
  }

  body > .site-header .main-nav .nav-item.has-mega > .nav-link {
    padding-right: 16px;
  }

  body > .site-header .products-mega {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 20px;
  }

  body > .site-header .product-menu-column {
    padding-inline: 12px;
  }

  body > .site-header .pm-head {
    font-size: 12px;
  }

  body > .site-header .pm-list .pm-category-link {
    padding-inline: 5px;
    font-size: 11.5px;
  }
}

@media (max-width: 900px) {
  body > .site-header .header-utilities {
    display: none !important;
  }

  body > .site-header .main-nav .ytl-mobile-language {
    display: block !important;
    margin-top: 10px;
    padding: 14px 4px 4px;
    border-bottom: 0;
  }

  body > .site-header .ytl-mobile-language-title {
    display: block;
    margin-bottom: 9px;
    color: #536b83;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body > .site-header .ytl-mobile-language-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body > .site-header .ytl-mobile-language-options a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #dbe7ef;
    border-radius: 8px;
    background: #fff;
    color: #173655;
    font-size: 13px;
    font-weight: 700;
  }

  body > .site-header .ytl-mobile-language-options a.is-current {
    border-color: rgba(47, 170, 67, .42);
    background: #eaf8ec;
    color: #218b32;
  }

  body > .site-header .pm-head,
  body > .site-header .simple-menu .simple-menu-link {
    justify-content: flex-start;
    gap: 12px;
  }

  body > .site-header .pm-head .menu-link-icon,
  body > .site-header .simple-menu .menu-link-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: #218b32;
    background: transparent;
  }

  body > .site-header .pm-head .menu-link-icon svg,
  body > .site-header .simple-menu .menu-link-icon svg {
    width: 27px;
    height: 27px;
  }

  body > .site-header .simple-menu .simple-menu-link::after {
    margin-left: auto;
  }

  /* These secondary links should sit visually below their 14px parent items. */
  body > .site-header .has-resources-menu .simple-menu,
  body > .site-header .has-about-menu .simple-menu {
    gap: 2px;
    padding-left: 8px;
  }

  body > .site-header .has-resources-menu .simple-menu-link,
  body > .site-header .has-about-menu .simple-menu-link {
    min-height: 44px;
    padding: 6px 8px;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  body > .site-header .has-resources-menu .menu-link-icon,
  body > .site-header .has-about-menu .menu-link-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  body > .site-header .has-resources-menu .menu-link-icon svg,
  body > .site-header .has-about-menu .menu-link-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* BEGIN YTL temporary navigation icon visibility — 2026-10-09.
   Remove this block to restore menu illustrations and chevrons.
   Keep labels, links, focus/active underlines and all expansion behavior. */
body > .site-header .main-nav .menu-link-icon,
body > .site-header .main-nav .apps-menu .app-mini > .chip,
body > .site-header .main-nav .nav-item.has-mega > .nav-link::before,
body > .site-header .main-nav .apps-menu .app-mini::after,
body > .site-header .main-nav .simple-menu .simple-menu-link::after {
  display: none !important;
}
body > .site-header .main-nav .apps-menu .app-mini,
body > .site-header .main-nav .simple-menu .simple-menu-link {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
body > .site-header .main-nav .pm-head {
  gap: 0;
}
@media (min-width: 901px) {
  body > .site-header .main-nav .nav-item.has-mega > .nav-link {
    padding-right: 0;
  }
}
@media (max-width: 900px) {
  body > .site-header .main-nav .nav-item.has-mega > .nav-link::after {
    display: none !important;
  }
}
/* END YTL temporary navigation icon visibility. */

/* YTL shared utilities: Buy, Request Quote, language, search (2026-10-13). */
body > .site-header .header-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 4px;
  border: 1px solid rgba(44, 168, 63, .4);
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
body > .site-header .header-store-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body > .site-header .header-store-link:hover,
body > .site-header .header-store-link:focus-visible {
  color: var(--green);
  background: #fff;
  border-color: var(--green);
  box-shadow: none;
  transform: translateY(-2px);
}
body > .site-header .header-store-link:focus-visible {
  outline: 2px solid #218b32;
  outline-offset: 3px;
}
@media (min-width: 1280px) {
  body > .site-header .wrap {
    grid-template-columns: 118px minmax(0, 1fr) 70px 160px 48px minmax(160px, 220px);
    gap: 12px;
  }
  body > .site-header .main-nav {
    gap: clamp(16px, 1.7vw, 24px);
  }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  body > .site-header .wrap {
    grid-template-columns: 118px minmax(0, 1fr) 70px 160px 48px;
    gap: 10px;
  }
  body > .site-header .main-nav {
    gap: 18px;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  body > .site-header .wrap {
    grid-template-columns: 96px minmax(0, 1fr) 40px 148px 44px;
    gap: 8px;
  }
  body > .site-header .header-store-link span {
    display: none;
  }
}
@media (max-width: 900px) {
  body > .site-header > .wrap {
    grid-template-columns: minmax(0, 1fr) 44px auto 42px !important;
    gap: 6px !important;
  }
  body > .site-header .logo {
    max-width: 100% !important;
  }
  body > .site-header .logo .logo-image {
    max-width: 100% !important;
  }
  body > .site-header .header-store-link {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
  }
  body > .site-header .header-store-link span {
    display: none;
  }
  body > .site-header .quote-btn {
    grid-column: 3 !important;
    margin-right: 0 !important;
  }
  body > .site-header .mobile-menu-toggle {
    grid-column: 4 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body > .site-header .header-store-link {
    transition: none;
  }
  body > .site-header .header-store-link:hover,
  body > .site-header .header-store-link:focus-visible {
    transform: none;
  }
}

