.site-header {
  position: relative;
  z-index: 40;
}

.brand-pair {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-pair .brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-pair .brand img {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-pair .brand-ehydra img {
  width: 112px;
  height: 46px;
}

.brand-pair .brand-supply img {
  width: 164px;
  height: 46px;
}

.brand-pair .brand:hover img {
  opacity: 0.82;
}

.brand-pair .brand:focus-visible {
  border-radius: 7px;
  outline: 3px solid rgba(10, 119, 117, 0.28);
  outline-offset: 4px;
}

.brand-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 36px;
  background: rgba(8, 40, 60, 0.16);
}

footer img[src="/terasek-supply-logo.png"] {
  width: 170px;
  height: auto;
}

.site-header .page-directory {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 20px;
  margin-left: auto;
}

.page-directory details,
.page-directory summary {
  position: relative;
}

.page-directory details {
  z-index: 1000;
}

.page-directory-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  background: rgba(4, 27, 42, 0.34);
  cursor: default;
}

.page-directory.is-open .page-directory-backdrop {
  display: block;
}

.page-directory summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(8, 40, 60, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #08283c);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.page-directory summary::-webkit-details-marker {
  display: none;
}

.page-directory summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.page-directory summary:hover,
.page-directory summary:focus-visible,
.page-directory details[open] summary {
  border-color: var(--teal, #0a7775);
  background: #f0fbf9;
  outline: none;
}

.page-directory details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.page-directory-short-label {
  display: none;
}

.page-directory-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: -78px;
  z-index: 1000;
  width: min(920px, calc(100vw - 56px));
  max-height: min(720px, calc(100vh - 124px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(8, 40, 60, 0.13);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(4, 27, 42, 0.2);
  overscroll-behavior: contain;
}

.page-directory-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 2px 19px;
  border-bottom: 1px solid rgba(8, 40, 60, 0.11);
}

.page-directory-eyebrow {
  display: block;
  color: var(--teal, #0a7775);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-directory-primary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-header .page-directory .page-directory-home {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef5f5;
  color: var(--ink, #08283c);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.site-header .page-directory .page-directory-home:hover,
.site-header .page-directory .page-directory-home:focus-visible,
.site-header .page-directory .page-directory-home[aria-current="page"] {
  background: #dff6f1;
  color: #075f5d;
  outline: none;
}

.page-directory-intro strong {
  max-width: 480px;
  color: var(--ink, #08283c);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.15;
  text-align: right;
}

.page-directory-groups {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 22px 2px;
}

.page-directory-group h2 {
  margin: 0 0 12px;
  color: var(--ink, #08283c);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-directory-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.site-header .page-directory .page-directory-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #355263;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
}

.site-header .page-directory .page-directory-links a:hover,
.site-header .page-directory .page-directory-links a:focus-visible {
  background: #f1f7f7;
  color: var(--teal, #0a7775);
  outline: none;
}

.site-header .page-directory .page-directory-links a[aria-current="page"] {
  background: #dff6f1;
  color: #075f5d;
  font-weight: 900;
}

.site-header .page-directory .page-directory-links a[aria-current="page"]::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--teal, #0a7775);
  content: "";
}

.page-directory-utilities {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 2px 0;
  border-top: 1px solid rgba(8, 40, 60, 0.11);
}

.page-directory-utilities > span {
  flex: 0 0 auto;
  color: #6d7d86;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-directory-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-header .page-directory .page-directory-shortcuts a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f6f6;
  color: #4f6774;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.site-header .page-directory .page-directory-shortcuts a:hover,
.site-header .page-directory .page-directory-shortcuts a:focus-visible {
  background: #e3f3f0;
  color: var(--teal, #0a7775);
  outline: none;
}

body.page-directory-is-open {
  overflow: hidden;
}

@media (min-width: 981px) and (max-height: 900px) {
  .site-shell:not(.home-page) .hero {
    min-height: calc(100svh - 128px);
    gap: 36px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .site-shell:not(.home-page) .hero .breadcrumb {
    margin-bottom: 24px;
  }

  .site-shell:not(.home-page) .hero .eyebrow {
    margin-bottom: 12px;
  }

  .site-shell:not(.home-page) .hero h1 {
    font-size: clamp(48px, 4.7vw, 60px);
    line-height: 0.98;
  }

  .site-shell:not(.home-page) .hero-description {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.5;
  }

  .site-shell:not(.home-page) .hero-actions {
    margin-top: 22px;
  }

  .site-shell:not(.home-page) .hero-media {
    min-height: 0;
    height: min(500px, calc(100svh - 188px));
  }
}

@media (max-width: 980px) {
  .brand-pair {
    gap: 10px;
  }

  .brand-pair .brand-ehydra img {
    width: 96px;
    height: 40px;
  }

  .brand-pair .brand-supply img {
    width: 138px;
    height: 40px;
  }

  .brand-divider {
    height: 31px;
  }

  .site-header .page-directory {
    display: flex;
    margin-right: 10px;
  }

  .page-directory-panel {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 84px);
  }
}

@media (max-width: 720px) {
  .brand-pair {
    gap: 7px;
  }

  .brand-pair .brand-ehydra img {
    width: 76px;
    height: 33px;
  }

  .brand-pair .brand-supply img {
    width: 102px;
    height: 33px;
  }

  .brand-divider {
    height: 27px;
  }

  .page-directory-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .page-directory-intro {
    display: block;
  }

  .page-directory-intro strong {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .page-directory-groups {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-directory-utilities {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-header .page-directory {
    margin-right: 7px;
  }

  .brand-pair {
    flex: 0 0 auto;
    gap: 5px;
  }

  .brand-pair .brand-ehydra img {
    width: 58px;
    height: 29px;
  }

  .brand-pair .brand-supply img {
    width: 76px;
    height: 29px;
  }

  .brand-divider {
    height: 24px;
  }

  .page-directory summary {
    min-height: 38px;
    gap: 8px;
    padding: 0 12px;
    font-size: 12px;
  }

  .page-directory-full-label {
    display: none;
  }

  .page-directory-short-label {
    display: inline;
  }

  .page-directory-panel {
    top: 68px;
    right: 8px;
    left: 8px;
    max-height: calc(100vh - 76px);
    padding: 18px 16px;
  }

  .page-directory-links {
    grid-template-columns: 1fr;
  }

  .site-header .page-directory .page-directory-links a {
    min-height: 38px;
  }

  .language-link {
    gap: 5px;
    padding: 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-directory summary,
  .page-directory summary::after {
    transition: none;
  }
}
