/* Shared chrome uses the baseline palette on every page, including case studies. */
#shared-header,
#shared-footer {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

#shared-header {
  position: sticky;
  top: 0;
  z-index: 110;
}

.ethos-banner {
  min-height: 42px;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  background: #7c5cbf;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.ethos-banner em { font-family: 'Fraunces', serif; font-size: 16px; }
.ethos-banner a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.ethos-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
}

.abc-header-row {
  position: relative;
  min-height: 76px;
  padding: 8px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #faf9f7;
  border-bottom: 1px solid #ebebeb;
}

.abc-brand img { display: block; width: auto; height: 58px; }
.abc-menu { display: none; }

#abc-primary-nav {
  position: static;
  height: auto;
  padding: 0;
  display: flex;
  gap: 28px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

#abc-primary-nav a {
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

#abc-primary-nav a:hover,
#abc-primary-nav a[aria-current] {
  color: #6646a3;
  text-decoration: underline;
  text-underline-offset: 5px;
}

#shared-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 48px);
  background: #1a1a1a;
  color: #d4d0cb;
}

#shared-footer a { color: inherit; text-decoration: none; }
#shared-footer a:hover { text-decoration: underline; }
.abc-footer-brand { font: italic 400 20px 'Fraunces', serif; }
.abc-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; font-size: 14px; }
#shared-footer small { font-size: 12px; }

:where([id]) { scroll-margin-top: 130px; }

@media (max-width: 760px) {
  .abc-header-row { min-height: 68px; }
  .abc-brand img { height: 50px; }
  .abc-menu {
    display: block;
    padding: 10px 14px;
    border: 1px solid #d6d0c9;
    border-radius: 8px;
    background: transparent;
    color: #1a1a1a;
    font: 600 14px 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
  }
  #abc-primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 135px);
    overflow: auto;
    padding: 8px 20px 16px;
    background: #faf9f7;
    border-bottom: 1px solid #ebebeb;
  }
  #abc-primary-nav.is-open { display: flex; }
  #abc-primary-nav a { padding: 12px 0; }
  #shared-footer { flex-direction: column; text-align: center; }
}
