/* Shared Pacific header. Scoped to avoid the legacy navigation selectors. */
body:has(#pacific-header) {
  --ph-header-height: 164px;
  padding-top: var(--ph-header-height);
  scroll-padding-top: calc(var(--ph-header-height) + 20px);
}
html:has(#pacific-header) { scroll-padding-top: 184px; }
body:has(#pacific-header) #products-header { height: 0 !important; }
body:has(#pacific-header) main.capabilities-index,
body:has(#pacific-header) main.catalog-index { margin-top: 0; }
body:has(#pacific-header) #products-header + section,
body:has(#pacific-header) > section:has(#hero) { margin-top: 0; }
#pacific-header {
  --ph-blue: #163da8;
  --ph-ink: #10213f;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  width: 100%;
  margin: 0;
  color: var(--ph-ink);
  background: #fff;
  border-bottom: 1px solid #dce3ed;
  box-shadow: 0 2px 8px rgb(16 33 63 / 5%);
  font: 16px/1.4 'PT Sans', Arial, sans-serif;
  text-align: left;
  text-shadow: none;
}
#pacific-header *, #pacific-header *::before, #pacific-header *::after { box-sizing: border-box; }
#pacific-header a { color: inherit; text-decoration: none; }
#pacific-header ul { position: static; inset: auto; width: auto; height: auto; float: none; visibility: visible; text-align: left; }
#pacific-header li, #pacific-header .ph-group-title { text-align: left; }
#pacific-header a:hover { color: var(--ph-blue); }
#pacific-header :is(a, button, summary, input):focus-visible {
  outline: 3px solid #3565dc;
  outline-offset: 3px;
  border-radius: 4px;
}
#pacific-header svg { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
#pacific-header .ph-container { width: min(1600px, calc(100% - 64px)); margin: 0 auto; }
#pacific-header .ph-utility { background: #eef1f5; }
#pacific-header .ph-utility > .ph-container { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#pacific-header .ph-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--ph-blue); font-size: 18px; font-weight: 700; white-space: nowrap; }
#pacific-header .ph-phone svg { width: 19px; height: 19px; }
#pacific-header .ph-utility-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
#pacific-header .ph-utility-links li { display: block; width: auto; padding: 0; margin: 0; }
#pacific-header .ph-utility-links li + li { border-left: 1px solid #8b96aa; }
#pacific-header .ph-utility-links a { display: block; padding: 0 18px; font-size: 14px; font-weight: 700; line-height: 20px; }
#pacific-header .ph-utility-links li:last-child a { padding-right: 0; }
#pacific-header .ph-main { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 46px; min-height: 120px; }
#pacific-header .ph-brand { position: relative; z-index: 1; display: block; flex: 0 0 250px; }
#pacific-header .ph-brand img { display: block; width: 250px; height: auto; max-width: 100%; object-fit: contain; border-radius: 4% / 11%; }
#pacific-header .ph-navigation { position: static; display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 16px; width: auto; margin: 0; padding: 0; background: none; }
#pacific-header .ph-menu { display: flex; align-items: stretch; justify-content: space-between; flex: 1; gap: 8px; padding: 0; margin: 0; list-style: none; }
#pacific-header .ph-item { position: static; display: block; width: auto; margin: 0; padding: 0; }
#pacific-header details { margin: 0; padding: 0; }
#pacific-header summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#pacific-header summary::-webkit-details-marker { display: none; }
#pacific-header .ph-trigger { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 48px; padding: 10px 5px; border-radius: 5px; color: var(--ph-ink); font-size: 16px; font-weight: 700; white-space: nowrap; }
#pacific-header .ph-chevron { width: 13px; height: 13px; transition: transform 150ms ease; }
#pacific-header details[open] > summary .ph-chevron { transform: rotate(180deg); }
#pacific-header .ph-trigger:hover, #pacific-header details[open] > .ph-trigger { color: var(--ph-blue); background: #f0f4fc; }
#pacific-header .ph-contact { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 5px; background: var(--ph-blue); color: #fff; font-weight: 700; white-space: nowrap; }
#pacific-header .ph-contact:hover { background: #0e2d85; color: #fff; }
#pacific-header .ph-search-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 5px; }
#pacific-header .ph-search-toggle:hover, #pacific-header .ph-search[open] > summary { background: #f0f4fc; color: var(--ph-blue); }
#pacific-header .ph-search-toggle svg { width: 25px; height: 25px; }
/* Panels meet the header edge; a transparent bridge covers the trip from trigger. */
#pacific-header .ph-panel, #pacific-header .ph-search-panel {
  position: absolute; top: 100%; right: 0; left: 0;
  max-height: calc(100vh - var(--ph-header-height) - 16px);
  max-height: calc(100dvh - var(--ph-header-height) - 16px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 28px 28px; border: 1px solid #dce3ed;
  border-top: 3px solid var(--ph-blue); border-radius: 0 0 10px 10px;
  background: #fff; box-shadow: 0 16px 32px rgb(16 33 63 / 18%);
}
#pacific-header .ph-dropdown[open]::before, #pacific-header .ph-search[open]::before { content: ''; position: absolute; top: calc(50% + 24px); bottom: 0; left: 0; right: 0; }
#pacific-header .ph-dropdown[open] > summary, #pacific-header .ph-search[open] > summary { position: relative; }
#pacific-header .ph-panel-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid #e1e6ef; }
#pacific-header .ph-overview { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ph-blue); font-size: 18px; font-weight: 700; }
#pacific-header .ph-overview:hover { text-decoration: underline; text-underline-offset: 4px; }
#pacific-header .ph-groups { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
#pacific-header .ph-group { min-width: 0; margin: 0; padding: 0; }
#pacific-header .ph-group + .ph-group { border-left: 1px solid #e1e6ef; padding-left: 24px; }
#pacific-header .ph-group-title { display: block; margin: 0 0 10px; padding: 6px 10px; color: var(--ph-ink); font-size: 16px; font-weight: 700; }
#pacific-header .ph-group-title:hover { text-decoration: underline; }
#pacific-header .ph-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 20px; margin: 0; padding: 0; }
#pacific-header .ph-group .ph-links { grid-template-columns: 1fr; }
#pacific-header .ph-group--packaging .ph-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#pacific-header .ph-links li { display: block; width: auto; margin: 0; padding: 0; }
#pacific-header .ph-links a { display: flex; align-items: center; min-height: 44px; height: auto; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #33435d; font-size: 15px; font-weight: 400; line-height: 1.4; white-space: normal; }
#pacific-header .ph-links a:hover, #pacific-header .ph-links a:focus-visible { background: #edf3ff; color: var(--ph-blue); }
#pacific-header .ph-links a[aria-current='page'] { background: #edf3ff; color: var(--ph-blue); font-weight: 700; }
#pacific-header .ph-search-panel { left: auto; width: min(520px, 100%); padding: 24px; }
#pacific-header .ph-search-form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0; padding: 0; }
#pacific-header .ph-search-fields { display: flex; align-items: stretch; gap: 10px; width: 100%; }
#pacific-header .ph-search-form label { width: 100%; font-size: 16px; font-weight: 700; }
#pacific-header .ph-search-input { flex: 1; width: 0; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid #8997b0; border-radius: 5px; background: #fff; color: var(--ph-ink); font: inherit; }
#pacific-header .ph-search-submit { min-height: 46px; padding: 10px 16px; border: 0; border-radius: 5px; background: var(--ph-blue); color: #fff; font: 700 16px/1.4 'PT Sans', Arial, sans-serif; }
#pacific-header .ph-mobile-toggle { display: none; }
@media (min-width: 1600px) {
  #pacific-header .ph-main { gap: 68px; }
  #pacific-header .ph-brand { flex-basis: 280px; }
  #pacific-header .ph-brand img { width: 280px; height: auto; }
  #pacific-header .ph-trigger { font-size: 18px; padding-inline: 10px; }
  #pacific-header .ph-navigation { gap: 22px; }
}
@media (min-width: 1200px) and (max-width: 1340px) {
  #pacific-header .ph-container { width: calc(100% - 40px); }
  #pacific-header .ph-main { gap: 20px; }
  #pacific-header .ph-brand { flex-basis: 210px; }
  #pacific-header .ph-brand img { width: 210px; height: auto; }
  #pacific-header .ph-navigation { gap: 8px; }
  #pacific-header .ph-menu { gap: 2px; }
  #pacific-header .ph-trigger { font-size: 15px; gap: 6px; }
  #pacific-header .ph-contact { padding-inline: 16px; }
}
@media (max-width: 1199px) {
  body:has(#pacific-header) { --ph-header-height: 132px; }
  html:has(#pacific-header) { scroll-padding-top: 152px; }
  #pacific-header .ph-container { width: calc(100% - 40px); }
  #pacific-header .ph-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 88px auto; min-height: 88px; gap: 0; }
  #pacific-header .ph-brand { flex-basis: 210px; }
  #pacific-header .ph-brand img { width: 210px; height: auto; }
  #pacific-header .ph-utility-links a { padding-inline: 10px; font-size: 13px; }
  #pacific-header.ph-enhanced .ph-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #cad3e3; border-radius: 5px; background: #fff; color: var(--ph-ink); font: 700 16px/1.4 'PT Sans', Arial, sans-serif; }
  #pacific-header .ph-navigation { grid-column: 1 / -1; overflow-anchor: none; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 12px; flex: 0 0 100%; padding: 8px 0 20px; max-height: calc(100dvh - var(--ph-header-height)); overflow-y: auto; overscroll-behavior: contain; }
  #pacific-header.ph-enhanced .ph-navigation { display: none; }
  #pacific-header.ph-enhanced.ph-mobile-open .ph-navigation { display: flex; }
  #pacific-header .ph-menu { display: block; flex: 0 0 auto; }
  #pacific-header .ph-item { border-bottom: 1px solid #e1e6ef; }
  #pacific-header .ph-trigger { min-height: 54px; padding: 12px; font-size: 17px; }
  #pacific-header .ph-dropdown[open]::before, #pacific-header .ph-search[open]::before { display: none; }
  #pacific-header .ph-panel, #pacific-header .ph-search-panel { position: static; width: 100%; max-height: none; overflow: visible; padding: 14px 12px 20px; border: 0; border-radius: 0; box-shadow: none; background: #f6f8fc; }
  #pacific-header .ph-panel-heading { margin-bottom: 10px; padding-bottom: 10px; }
  #pacific-header .ph-overview { font-size: 16px; }
  #pacific-header .ph-groups { grid-template-columns: 1fr; gap: 22px; }
  #pacific-header .ph-group + .ph-group { padding: 18px 0 0; border-left: 0; border-top: 1px solid #dce3ed; }
  #pacific-header .ph-group--packaging .ph-links, #pacific-header .ph-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  #pacific-header .ph-search-toggle { justify-content: flex-start; width: 100%; gap: 12px; padding-inline: 12px; font-weight: 700; }
  #pacific-header .ph-search-toggle::after { content: 'Search website'; }
  #pacific-header .ph-contact { margin: 0 12px; }
  #pacific-header:not(.ph-enhanced) { position: relative; }
  body:has(#pacific-header:not(.ph-enhanced)) { padding-top: 0; }
  body #products-header:has(#pacific-header:not(.ph-enhanced)) { height: auto !important; }
}
@media (max-width: 699px) {
  body:has(#pacific-header) { --ph-header-height: 154px; }
  html:has(#pacific-header) { scroll-padding-top: 174px; }
  #pacific-header .ph-container { width: calc(100% - 32px); }
  #pacific-header .ph-utility > .ph-container { min-height: 72px; flex-direction: column; justify-content: center; gap: 5px; padding: 6px 0; }
  #pacific-header .ph-phone { font-size: 16px; }
  #pacific-header .ph-utility-links { justify-content: center; }
  #pacific-header .ph-utility-links a { padding: 2px 7px; font-size: 11px; line-height: 18px; }
  #pacific-header .ph-utility-links li:first-child a { padding-left: 0; }
  #pacific-header .ph-main { grid-template-rows: 82px auto; min-height: 82px; }
  #pacific-header .ph-brand { flex-basis: 190px; }
  #pacific-header .ph-brand img { width: 190px; }
  #pacific-header .ph-links, #pacific-header .ph-group--packaging .ph-links { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  #pacific-header .ph-brand { flex-basis: 176px; }
  #pacific-header .ph-brand img { width: 176px; }
  #pacific-header .ph-utility-links a { font-size: 10px; padding-inline: 5px; }
  #pacific-header.ph-enhanced .ph-mobile-toggle { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { #pacific-header .ph-chevron { transition: none; } }
@media print {
  .statement-document #pacific-header { display: none !important; }
  #pacific-header { position: static; }
  #pacific-header .ph-navigation, #pacific-header .ph-mobile-toggle { display: none !important; }
  body:has(#pacific-header) { padding-top: 0; }
  body #products-header:has(#pacific-header) { height: auto !important; }
}
