.advisor-header {
  background: #f8f5ee;
  color: #212824;
  font-family: "Libre Franklin", Franklin, Arial, sans-serif;
}

.advisor-header__inner {
  display: grid;
  grid-template-areas: "brand nav book";
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(22px, 3.2vw, 44px);
  width: min(1216px, calc(100% - 2 * clamp(20px, 5.4vw, 78px)));
  min-height: 80px;
  margin-inline: auto;
  border-bottom: 1px solid #a8ac9f;
}

.advisor-header a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font: 500 15px/1.3 "Libre Franklin", Franklin, Arial, sans-serif;
  text-decoration: none;
}

.advisor-header a:focus-visible,
.advisor-sample-return a:focus-visible {
  outline: 2px solid #a5441f;
  outline-offset: 4px;
}

.advisor-header__brand {
  grid-area: brand;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
}

.advisor-header__brand img {
  display: block;
  width: clamp(212px, 24vw, 306px);
  max-width: 100%;
  height: auto;
}

.advisor-header__nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.3vw, 32px);
}

.advisor-header__nav a {
  position: relative;
  white-space: nowrap;
  color: #435049;
}

.advisor-header__nav a[aria-current] {
  color: #212824;
  font-weight: 650;
}

.advisor-header__nav a[aria-current]::after {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 19px;
  height: 2px;
  background: #a5441f;
  content: "";
}

.advisor-header__nav a:hover,
.advisor-sample-return a:hover {
  color: #873817;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.advisor-header a.advisor-header__book {
  grid-area: book;
  justify-self: end;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #32483e;
  border-radius: 3px;
  background: #32483e;
  color: #fffdf7;
  font-weight: 600;
  white-space: nowrap;
}

.advisor-header__book svg,
.advisor-sample-return svg {
  flex: none;
}

.advisor-header a.advisor-header__book:hover {
  background: #22352c;
}

.advisor-sample-return {
  width: min(780px, calc(100% - 2 * var(--edge)));
  margin: clamp(16px, 3vw, 36px) auto 0;
}

.advisor-sample-return a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #435049;
  font: 500 14px/1.4 "Libre Franklin", Franklin, Arial, sans-serif;
  text-decoration: none;
}

.advisor-sample-return + .letter {
  margin-top: 8px;
}

@media (max-width: 880px) {
  .advisor-header__inner {
    grid-template-areas:
      "brand book"
      "nav   nav";
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 15px;
    padding-top: 8px;
  }

  .advisor-header__brand img {
    width: clamp(150px, 45vw, 240px);
  }

  .advisor-header__nav {
    gap: clamp(14px, 4vw, 24px);
  }

  .advisor-header__nav a[aria-current]::after {
    bottom: 0;
  }

  .advisor-header a.advisor-header__book {
    padding-inline: 12px;
  }
}
