.global-header {
  position: fixed;
  z-index: 100;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content-width);
  height: var(--header-height);
  padding: 0 var(--space-6);
  overflow: visible;
  border: 1px solid rgba(128, 186, 165, 0.5);
  border-radius: var(--radius-small);
  background: #334f5f;
  transition: background-color 180ms ease-out;
}

.global-header--dark {
  background: #334f5f;
}

.global-header--light {
  background: #dde2e5;
}

.global-header--green {
  background: var(--color-sage);
}

.global-header__brand img { width: 91px; height: 24px; }

.global-header--light .global-header__brand,
.global-header--green .global-header__brand {
  width: 91px;
  height: 24px;
  background: var(--color-navy);
  -webkit-mask: url("../assets/branding/header-logo.svg") center / 91px 24px no-repeat;
  mask: url("../assets/branding/header-logo.svg") center / 91px 24px no-repeat;
}

.global-header--light .global-header__brand img,
.global-header--green .global-header__brand img { visibility: hidden; }

.global-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.global-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(128, 186, 165, 0.5);
  border-radius: var(--radius-small);
  background: transparent;
  font: 300 14px/20px var(--font-body);
  cursor: pointer;
}

.global-header__menu-label--close,
.global-header.is-nav-open .global-header__menu-label--open {
  display: none;
}

.global-header.is-nav-open .global-header__menu-label--close {
  display: inline;
}

/* Reserved for an approved menu/close SVG when one is added to the project assets. */
.global-header__menu-icon-slot {
  display: none;
}

.global-header__nav a,
.global-header__product-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) 14px;
  color: var(--color-white-green);
  font: 300 14px/normal var(--font-body);
  white-space: nowrap;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.global-header--dark .global-header__nav a,
.global-header--dark .global-header__product-toggle {
  color: var(--color-white-green);
}

.global-header--dark .global-header__nav a:hover,
.global-header--dark .global-header__nav a:focus-visible,
.global-header--dark .global-header__product-toggle:hover,
.global-header--dark .global-header__product-toggle:focus-visible,
.global-header--dark .global-header__product-toggle[aria-expanded="true"] {
  color: var(--color-mint);
}

.global-header--light .global-header__nav a,
.global-header--light .global-header__product-toggle,
.global-header--green .global-header__nav a,
.global-header--green .global-header__product-toggle {
  color: #4d6270;
}

.global-header--light .global-header__nav a:hover,
.global-header--light .global-header__nav a:focus-visible,
.global-header--light .global-header__product-toggle:hover,
.global-header--light .global-header__product-toggle:focus-visible,
.global-header--light .global-header__product-toggle[aria-expanded="true"],
.global-header--green .global-header__nav a:hover,
.global-header--green .global-header__nav a:focus-visible,
.global-header--green .global-header__product-toggle:hover,
.global-header--green .global-header__product-toggle:focus-visible,
.global-header--green .global-header__product-toggle[aria-expanded="true"] {
  color: var(--color-navy);
}

.global-header__product {
  position: relative;
  display: flex;
}

.global-header__product-toggle img { width: 20px; height: 20px; }

.global-header--dark .global-header__product-toggle:hover img,
.global-header--dark .global-header__product-toggle:focus-visible img,
.global-header--dark .global-header__product-toggle[aria-expanded="true"] img {
  content: url("../assets/icons/header-caret-hover-dark.svg");
}

.global-header--light .global-header__product-toggle img,
.global-header--green .global-header__product-toggle img {
  content: url("../assets/icons/header-caret-light.svg");
}

.global-header--light .global-header__product-toggle:hover img,
.global-header--light .global-header__product-toggle:focus-visible img,
.global-header--light .global-header__product-toggle[aria-expanded="true"] img,
.global-header--green .global-header__product-toggle:hover img,
.global-header--green .global-header__product-toggle:focus-visible img,
.global-header--green .global-header__product-toggle[aria-expanded="true"] img {
  content: url("../assets/icons/header-caret-hover-light.svg");
}

.global-header__dropdown {
  position: absolute;
  z-index: 10;
  top: 44px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 260px;
  height: 139px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(128, 186, 165, 0.5);
  border-radius: 8px;
  transition: background-color 180ms ease-out;
}

.global-header__dropdown[hidden] { display: none; }

.global-header--dark .global-header__dropdown {
  background: #334f5f;
}

.global-header--light .global-header__dropdown {
  background: #dde2e5;
}

.global-header--green .global-header__dropdown {
  background: var(--color-sage);
}


.global-header__dropdown a {
  flex: 0 0 31px;
  justify-content: flex-start;
  width: max-content;
  height: 31px;
  padding: 8px 14px;
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .global-header {
    left: 50%;
    transform: translateX(-50%);
    width: 1040px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .global-header {
    left: 32px;
    transform: none;
    width: calc(100vw - 64px);
  }
}

@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .global-header {
    height: 64px;
    padding-inline: 20px;
  }

  .global-header__brand img { width: 100px; height: auto; }
  .global-header--light .global-header__brand,
  .global-header--green .global-header__brand {
    width: 100px;
    height: 27px;
    -webkit-mask-size: 100px 27px;
    mask-size: 100px 27px;
  }
  .global-header__nav { gap: 2px; }
  .global-header__nav a,
  .global-header__product-toggle {
    padding-inline: 10px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .global-header {
    top: 16px;
    left: 24px;
    transform: none;
    width: calc(100vw - 48px);
    padding: 0 16px;
  }

  .global-header__menu-toggle {
    display: inline-flex;
  }

  .global-header--dark .global-header__menu-toggle {
    color: var(--color-white-green);
  }

  .global-header--light .global-header__menu-toggle,
  .global-header--green .global-header__menu-toggle {
    color: var(--color-navy);
  }

  .global-header__menu-toggle:hover,
  .global-header__menu-toggle:focus-visible,
  .global-header__menu-toggle[aria-expanded="true"] {
    border-color: var(--color-sage);
  }

  .global-header--dark .global-header__menu-toggle:hover,
  .global-header--dark .global-header__menu-toggle:focus-visible,
  .global-header--dark .global-header__menu-toggle[aria-expanded="true"] {
    color: var(--color-mint);
  }

  .global-header__nav {
    position: absolute;
    top: 64px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    width: 100%;
    padding: 12px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(128, 186, 165, 0.5);
    border-radius: var(--radius-small);
    transition: background-color 180ms ease-out;
  }

  .global-header--dark .global-header__nav {
    background: #334f5f;
  }

  .global-header--light .global-header__nav {
    background: #dde2e5;
  }

  .global-header--green .global-header__nav {
    background: var(--color-sage);
  }

  .global-header.is-nav-open .global-header__nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .global-header__nav > a,
  .global-header__product,
  .global-header__product-toggle {
    width: 100%;
  }

  .global-header__nav > a,
  .global-header__product-toggle {
    justify-content: flex-start;
    min-height: 36px;
  }

  .global-header__product {
    flex-direction: column;
    align-items: stretch;
  }

  .global-header__product-toggle {
    justify-content: space-between;
  }

  .global-header__dropdown {
    position: static;
    width: 100%;
    height: auto;
    margin-top: var(--space-1);
    padding: 8px;
    overflow: visible;
    gap: var(--space-1);
  }

  .global-header__dropdown a {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 36px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-header,
  .global-header__nav,
  .global-header__dropdown {
    transition: none;
  }
}
.dark-block {
  position: absolute;
  height: 60px;
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-small);
  background: rgba(51, 79, 95, 0.5);
}

.global-footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: var(--footer-height);
  overflow: hidden;
  background: var(--color-navy);
}

.global-footer__grain {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("../assets/backgrounds/footer-grain-figma.png") center top / 1440px 544px repeat-x;
  opacity: 1;
  pointer-events: none;
}

.global-footer__inner {
  position: absolute;
  z-index: 1;
  top: 120px;
  left: calc(50% - 520px);
  display: flex;
  justify-content: space-between;
  width: 1008px;
  height: 304px;
}

.global-footer__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 242px;
  height: 304px;
}

.global-footer__brand::after {
  content: none;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 242px;
  height: 60px;
  background: url("../assets/backgrounds/footer-logo-grain-mask.png") left top / 242px 60px no-repeat;
  -webkit-mask: url("../assets/branding/footer-logo.svg") left top / 242px 60px no-repeat;
  mask: url("../assets/branding/footer-logo.svg") left top / 242px 60px no-repeat;
  pointer-events: none;
}

.global-footer__logo { width: 242px; height: 60px; }
.global-footer__iso { width: 80px; height: 66px; }

.global-footer__columns {
  display: flex;
  gap: 89px;
  width: 653px;
  font-size: 16px;
  line-height: 28px;
}

.global-footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.global-footer__column--left { width: 265px; }
.global-footer__column--right { width: 299px; }

.global-footer__column section {
  display: flex;
  flex-direction: column;
}

.global-footer__column h2 {
  margin: 0;
  color: var(--color-mint);
  font: italic 400 16px/28px var(--font-body);
}

.global-footer__column a {
  color: var(--color-sage);
  font: 300 16px/28px var(--font-body);
  white-space: nowrap;
}

.global-footer__copyright {
  margin: 0;
  color: var(--color-mint);
  font: 300 16px/28px var(--font-body);
}

@media (min-width: 768px) and (max-width: 1199px) {
  .global-footer {
    left: 0;
    transform: none;
    width: 100vw;
    height: 640px;
  }

  .global-footer__grain {
    background-image: url("../assets/backgrounds/footer-grain-only-responsive.png");
    background-position: left top;
    background-size: 1440px 1088px;
    background-repeat: no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .global-footer__brand::after { opacity: .30; }

  .global-footer__inner {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: 242px minmax(0, 1fr);
    gap: clamp(48px, 6vw, 72px);
    width: auto;
    height: auto;
    padding: 104px clamp(32px, 5.34vw, 64px) 80px;
  }

  .global-footer__brand {
    width: 242px;
    height: 304px;
  }

  .global-footer__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 56px);
    width: auto;
  }

  .global-footer__column,
  .global-footer__column--left,
  .global-footer__column--right {
    width: auto;
    min-width: 0;
  }

  .global-footer__column a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body .home-page { height: 4292px; }
  body .contact-page { height: 2213px; }
  body .aggregation-page { height: 3738px; }
  body .enrichment-page { height: 4720px; }
  body .exposure-page { height: 5327px; }
  body .resources-page { height: 3191px; }
  body .about-page { height: 4743px; }
}

@media (max-width: 767px) {
  .global-footer {
    left: 0;
    transform: none;
    width: 100vw;
    height: 1080px;
  }

  .global-footer__grain {
    background-image: url("../assets/backgrounds/footer-grain-only-responsive.png");
    background-position: left top;
    background-size: 1440px 1088px;
    background-repeat: no-repeat;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .global-footer__inner {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: auto;
    height: auto;
    padding: 104px 24px 64px;
  }

  .global-footer__brand {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
    width: min(242px, 100%);
    height: auto;
    margin-bottom: 40px;
  }

  .global-footer__brand::after {
    width: min(242px, 100%);
    max-width: 242px;
    background-size: 242px 60px;
    mask-size: 242px 60px;
    -webkit-mask-size: 242px 60px;
    opacity: .30;
  }

  .global-footer__logo {
    width: min(242px, 100%);
    height: auto;
    aspect-ratio: 242 / 60;
  }

  .global-footer__iso {
    flex: 0 0 auto;
    width: 80px;
    height: 66px;
  }

  .global-footer__columns,
  .global-footer__column {
    display: contents;
  }

  .global-footer__column section {
    margin-bottom: 28px;
  }

  .global-footer__column--left section:first-child { order: 1; }
  .global-footer__column--left section:nth-child(2) { order: 2; }
  .global-footer__column--right section:first-child { order: 3; }
  .global-footer__column--right section:nth-child(2) { order: 4; }

  .global-footer__copyright {
    order: 5;
    margin-top: 12px;
  }

  .global-footer__column a {
    min-height: 28px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body .home-page { height: 4732px; }
  body .contact-page { height: 2653px; }
  body .aggregation-page { height: 4178px; }
  body .enrichment-page { height: 5160px; }
  body .exposure-page { height: 5767px; }
  body .resources-page { height: 3631px; }
  body .about-page { height: 5183px; }
}
