/*
 * Shared public-site chrome
 * A compact editorial header and a quiet, structured legal footer.
 */

.shared-site-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1e1d1e;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .14);
}

.shared-header-inner {
  display: flex;
  min-height: 4.25rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 2rem;
  padding-block: .75rem !important;
}

.site-header-inner.shared-header-inner,
.site-footer-inner.shared-footer-inner {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.shared-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-left: .9rem;
  color: #fff;
  font-size: 1.25rem !important;
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.15;
  text-decoration: none;
  transition: color 150ms cubic-bezier(.4, 0, .2, 1);
}

.shared-brand::before {
  position: absolute;
  top: .7rem;
  bottom: .7rem;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, .38);
  content: "";
}

.shared-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem !important;
  font-size: .9375rem !important;
  font-weight: 600;
  letter-spacing: .025em;
}

.shared-site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(255, 255, 255, .78) !important;
  text-decoration: none;
  transition: color 150ms cubic-bezier(.4, 0, .2, 1);
}

.shared-site-nav a::after {
  position: absolute;
  right: 0;
  bottom: .45rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition:
    opacity 150ms cubic-bezier(.4, 0, .2, 1),
    transform 150ms cubic-bezier(.4, 0, .2, 1);
}

.shared-site-nav a:hover,
.shared-site-nav a[aria-current="page"],
.shared-brand:hover {
  color: #d99af3 !important;
}

.shared-site-nav a:hover::after,
.shared-site-nav a[aria-current="page"]::after {
  opacity: .78;
  transform: scaleX(1);
}

.shared-site-footer {
  width: 100%;
  border-top: 1px solid #e4e2e2 !important;
  background: #fdfbf8;
  color: #5b5758;
}

.site-footer.shared-site-footer {
  padding-block: 0;
}

.shared-footer-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem !important;
  padding-block: 2rem !important;
}

.shared-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .65rem 1.5rem !important;
  font-size: .875rem !important;
  line-height: 1.5;
}

.shared-footer-links {
  display: grid;
  gap: .35rem;
}

.shared-footer-nav > * {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
}

.shared-footer-nav a {
  min-height: 2.75rem;
  align-items: center;
}

.shared-footer-nav .text-xs,
.shared-footer-nav small {
  font-size: .8125rem !important;
  letter-spacing: .01em;
}

.shared-footer-owner {
  max-width: 23rem !important;
  margin: 0;
  border-top: 1px solid #e4e2e2;
  padding-top: 1.15rem;
  color: #5b5758;
  font-size: .875rem !important;
  line-height: 1.55 !important;
}

.shared-footer-back {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  color: #3325ab;
  font-size: .875rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .site-header-inner.shared-header-inner,
  .site-footer-inner.shared-footer-inner {
    padding-inline: 2rem;
  }

  .shared-header-inner {
    flex-wrap: nowrap;
  }

  .shared-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
    align-items: start !important;
    gap: 2.5rem !important;
  }

  .shared-footer-owner {
    border-top: 0;
    border-left: 1px solid #e4e2e2;
    padding-top: .15rem;
    padding-left: 1.5rem;
    text-align: left !important;
  }
}

@media (max-width: 639px) {
  .shared-site-header {
    box-shadow: none;
  }

  .site-header-inner.shared-header-inner {
    padding-inline: 1rem;
  }

  .shared-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    align-items: flex-start;
    gap: 0;
    padding-block: .55rem !important;
  }

  .shared-brand {
    width: auto;
    min-height: 0;
    padding: .2rem 0;
    font-size: clamp(1rem, 4.4vw, 1.0625rem) !important;
    line-height: 1.2;
  }

  .shared-brand::before {
    display: none;
  }

  .shared-site-nav {
    display: flex;
    width: auto;
    justify-self: start;
    gap: 0 1.25rem !important;
  }

  .shared-site-nav a {
    min-width: 0;
    min-height: 2.5rem;
    justify-content: flex-start;
    padding-inline: 0;
    white-space: nowrap;
  }

  .shared-site-nav a + a {
    border: 0;
    padding-left: 0;
  }

  .shared-site-nav a::after {
    display: none;
  }

  .shared-footer-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .4rem !important;
  }
}
