/* Platinum Signs shared commerce header.
 *
 * This is the static-site counterpart of the approved platinum-shop header.
 * It deliberately owns only #masthead so the migrated page bodies, metadata,
 * canonicals and internal content remain unchanged.
 */

body #masthead.ps-commerce-header {
  --ps-header-bg: #1a1a2e;
  --ps-header-text: #ffffff;
  --ps-header-muted: rgba(255, 255, 255, 0.78);
  --ps-header-search: rgba(255, 255, 255, 0.12);
  --ps-header-search-border: rgba(255, 255, 255, 0.18);
  --ps-header-cyan: #00aeef;
  --ps-header-cyan-hover: #0098d4;
  --ps-header-pink: #ec008c;
  --ps-header-pink-hover: #ce007b;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  min-height: 64px !important;
  margin: 0;
  padding: 0;
  background: var(--ps-header-bg) !important;
  color: var(--ps-header-text);
  box-shadow: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#masthead.ps-commerce-header,
#masthead.ps-commerce-header *,
#masthead.ps-commerce-header *::before,
#masthead.ps-commerce-header *::after {
  box-sizing: border-box;
}

#masthead.ps-commerce-header a {
  text-decoration: none;
}

#masthead.ps-commerce-header .ps-commerce-header__inner {
  width: min(100%, 1560px);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

#masthead.ps-commerce-header .ps-commerce-header__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-width: 120px;
  min-height: 44px;
}

#masthead.ps-commerce-header .ps-commerce-header__logo {
  display: block;
  width: 120px !important;
  height: auto !important;
  max-width: 120px !important;
  max-height: 32px !important;
  object-fit: contain;
}

#masthead.ps-commerce-header .ps-commerce-header__search {
  position: relative;
  flex: 1 1 280px;
  max-width: 350px;
  min-width: 180px;
  height: 44px;
  margin: 0;
}

#masthead.ps-commerce-header .ps-commerce-header__search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

#masthead.ps-commerce-header .ps-commerce-header__search-input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 48px;
  border: 1px solid var(--ps-header-search-border);
  border-radius: 999px;
  outline: none;
  background: var(--ps-header-search);
  color: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  -webkit-appearance: none;
}

#masthead.ps-commerce-header .ps-commerce-header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.54);
  opacity: 1;
}

#masthead.ps-commerce-header .ps-commerce-header__search-input:hover {
  background: rgba(255, 255, 255, 0.16);
}

#masthead.ps-commerce-header .ps-commerce-header__search-input:focus {
  border-color: #fff;
  background: #fff;
  color: #1a1a2e;
}

#masthead.ps-commerce-header .ps-commerce-header__search-input:focus::placeholder {
  color: #71717f;
}

#masthead.ps-commerce-header .ps-commerce-header__search-submit {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

#masthead.ps-commerce-header .ps-commerce-header__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 64px;
}

#masthead.ps-commerce-header .ps-commerce-header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
}

#masthead.ps-commerce-header .ps-commerce-header__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 7px;
  border-radius: 7px;
  color: var(--ps-header-muted) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

#masthead.ps-commerce-header .ps-commerce-header__nav-link:hover,
#masthead.ps-commerce-header .ps-commerce-header__nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

#masthead.ps-commerce-header .ps-commerce-header__nav-link > svg {
  width: 12px;
  height: 12px;
  margin-left: 5px;
  transition: transform 150ms ease;
}

#masthead.ps-commerce-header .ps-commerce-header__nav-item--cutting:hover .ps-commerce-header__nav-link > svg,
#masthead.ps-commerce-header .ps-commerce-header__nav-item--cutting:focus-within .ps-commerce-header__nav-link > svg {
  transform: rotate(180deg);
}

#masthead.ps-commerce-header .ps-commerce-header__services-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 1004;
  width: 560px;
  padding: 14px;
  border: 1px solid #e1e4e9;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 18, 35, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

#masthead.ps-commerce-header .ps-commerce-header__nav-item--cutting:hover .ps-commerce-header__services-menu,
#masthead.ps-commerce-header .ps-commerce-header__nav-item--cutting:focus-within .ps-commerce-header__services-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

#masthead.ps-commerce-header .ps-commerce-header__services-all {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-radius: 8px;
  color: #a60063 !important;
  font-size: 13px !important;
  font-weight: 780 !important;
}

#masthead.ps-commerce-header .ps-commerce-header__services-menu ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

#masthead.ps-commerce-header .ps-commerce-header__services-menu li {
  margin: 0;
  padding: 0;
}

#masthead.ps-commerce-header .ps-commerce-header__services-menu li a {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #252537 !important;
}

#masthead.ps-commerce-header .ps-commerce-header__services-menu a:hover,
#masthead.ps-commerce-header .ps-commerce-header__services-menu a:focus-visible {
  background: #f5f6f9;
}

#masthead.ps-commerce-header .ps-commerce-header__services-menu strong {
  color: #252537;
  font-size: 13px;
  font-weight: 730;
  line-height: 1.2;
}

#masthead.ps-commerce-header .ps-commerce-header__services-menu li span {
  color: #656a78;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

#masthead.ps-commerce-header .ps-commerce-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#masthead.ps-commerce-header .ps-commerce-header__action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

#masthead.ps-commerce-header .ps-commerce-header__action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

#masthead.ps-commerce-header .ps-commerce-header__signin {
  padding: 0 2px;
  color: var(--ps-header-muted) !important;
}

#masthead.ps-commerce-header .ps-commerce-header__signin:hover,
#masthead.ps-commerce-header .ps-commerce-header__signin:focus-visible {
  color: #fff !important;
}

#masthead.ps-commerce-header .ps-commerce-header__quote {
  padding: 0 15px;
  background: var(--ps-header-cyan);
}

#masthead.ps-commerce-header .ps-commerce-header__quote:hover,
#masthead.ps-commerce-header .ps-commerce-header__quote:focus-visible {
  background: var(--ps-header-cyan-hover);
}

#masthead.ps-commerce-header .ps-commerce-header__cart {
  position: relative;
  padding: 0 15px;
  background: var(--ps-header-pink);
}

#masthead.ps-commerce-header .ps-commerce-header__cart:hover,
#masthead.ps-commerce-header .ps-commerce-header__cart:focus-visible {
  background: var(--ps-header-pink-hover);
}

#masthead.ps-commerce-header .ps-commerce-header__cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ps-header-pink);
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#masthead.ps-commerce-header .ps-commerce-header__cart-count[hidden] {
  display: none !important;
}

#masthead.ps-commerce-header .ps-commerce-header__mobile-search,
#masthead.ps-commerce-header .ps-commerce-header__menu-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

#masthead.ps-commerce-header .ps-commerce-header__mobile-search svg,
#masthead.ps-commerce-header .ps-commerce-header__menu-toggle svg {
  width: 20px;
  height: 20px;
}

#masthead.ps-commerce-header .ps-commerce-header__drawer {
  display: none;
}

#masthead.ps-commerce-header :focus-visible {
  outline: 3px solid #ffdf42;
  outline-offset: 3px;
}

@media (max-width: 1399px) {
  #masthead.ps-commerce-header .ps-commerce-header__inner {
    gap: 16px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__nav {
    display: none;
  }

  #masthead.ps-commerce-header .ps-commerce-header__search {
    max-width: none;
  }

  #masthead.ps-commerce-header .ps-commerce-header__menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 799px) {
  html.ps-commerce-menu-open,
  body.ps-commerce-menu-open {
    overflow: hidden;
  }

  /* The commerce actions make the legacy fixed call bar redundant. */
  body {
    padding-bottom: 0 !important;
  }

  body .d-mobile {
    display: none !important;
  }

  /* Legacy breadcrumb text was below WCAG contrast on the shared light titlebar. */
  body .breadcrumbs-wrap .breadcrumbs,
  body .breadcrumbs-wrap .breadcrumbs a,
  body .breadcrumbs-wrap .breadcrumbs span {
    color: #414457 !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__inner {
    min-height: 64px;
    padding: 0 14px;
    gap: 9px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__brand {
    min-width: 108px;
    margin-right: auto;
  }

  #masthead.ps-commerce-header .ps-commerce-header__logo {
    width: 108px !important;
    max-width: 108px !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__search {
    display: none;
  }

  #masthead.ps-commerce-header .ps-commerce-header__mobile-search {
    display: inline-flex;
  }

  #masthead.ps-commerce-header .ps-commerce-header__signin,
  #masthead.ps-commerce-header .ps-commerce-header__quote {
    display: none;
  }

  #masthead.ps-commerce-header .ps-commerce-header__actions {
    gap: 8px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__cart {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__cart-label {
    display: none;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    padding: 14px 18px 18px;
    border-top: 1px solid #e4e5ea;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 18, 35, 0.18);
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer:not([hidden]) {
    display: block;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-search {
    position: relative;
    display: block;
    margin: 0 0 12px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-search input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 48px 0 16px;
    border: 1px solid #d8dce4;
    border-radius: 999px;
    background: #f7f8fb;
    color: #1a1a2e;
    font-size: 16px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-search button {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f2f6;
    color: #1a1a2e;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-search svg {
    width: 19px;
    height: 19px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav {
    display: grid;
    gap: 2px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: #252537 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading > a {
    min-width: 0;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f3f4f7;
    color: #252537;
    cursor: pointer;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading button svg {
    width: 13px;
    height: 13px;
    transition: transform 150ms ease;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading button[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-submenu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin: 3px 0 8px;
    padding: 7px;
    border-radius: 9px;
    background: #f6f7fa;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-submenu[hidden] {
    display: none !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-submenu a {
    min-height: 44px;
    padding: 7px 9px;
    font-size: 13px !important;
    font-weight: 650 !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav a:hover,
  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav a:focus-visible {
    background: #f5f6f9;
    color: #b3086d !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-divider {
    height: 1px;
    margin: 8px 0;
    background: #e4e5ea;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-actions a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-actions a.ps-commerce-header__drawer-signin {
    border: 1px solid #d8dce4;
    color: #252537 !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-quote {
    background: var(--ps-header-cyan);
  }
}

/* The standalone search page predates the shared header. Keep its primary
 * search control at 16px so iOS does not zoom the viewport on focus. */
body .search-form input[type="search"] {
  font-size: 16px !important;
}

/* Case-study exports use the shop design tokens. These small labels need the
 * darker accessible variants on light cards at mobile sizes. */
body .ps-cs .bg-gray-100.text-text-muted {
  color: #314158 !important;
}

body .ps-cs .font-semibold.text-primary,
body .ps-cs .font-bold.uppercase.text-primary {
  color: #a60063 !important;
}

@media (min-width: 800px) and (max-width: 1399px) {
  #masthead.ps-commerce-header .ps-commerce-header__drawer {
    position: absolute;
    top: 64px;
    right: max(20px, calc((100vw - 1560px) / 2));
    width: 330px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid #e4e5ea;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 18, 35, 0.18);
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer:not([hidden]) {
    display: block;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-search {
    display: none;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav {
    display: grid;
    gap: 2px;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 7px;
    color: #252537 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #f3f4f7;
    color: #252537;
    cursor: pointer;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading button svg {
    width: 13px;
    height: 13px;
    transition: transform 150ms ease;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-group-heading button[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-submenu {
    display: grid;
    gap: 2px;
    margin: 3px 0 8px;
    padding: 7px;
    border-radius: 9px;
    background: #f6f7fa;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-submenu[hidden] {
    display: none !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-submenu a {
    padding: 7px 9px;
    font-size: 13px !important;
    font-weight: 650 !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav a:hover,
  #masthead.ps-commerce-header .ps-commerce-header__drawer-nav a:focus-visible {
    background: #f5f6f9;
    color: #b3086d !important;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-divider {
    height: 1px;
    margin: 10px 0;
    background: #e4e5ea;
  }

  #masthead.ps-commerce-header .ps-commerce-header__drawer-actions {
    display: none;
  }
}

@media print {
  #masthead.ps-commerce-header {
    display: none !important;
  }
}
