/* The masthead is a small directory, not a second hero. */
.leasing-masthead {
  container: masthead / inline-size;
  position: relative;
  z-index: 4;
  color: var(--bw-ink);
  background: var(--bw-paper);
  border-bottom: 1px solid color-mix(in srgb, var(--bw-ink) 13%, transparent);
}

.leasing-masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(14px, 2.25vw, 34px);
  width: min(100%, 1512px);
  min-height: 72px;
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 80px);
}

.leasing-masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 48px;
  color: var(--bw-wordmark);
  text-decoration: none;
}

.leasing-masthead__nav {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(18px, 2.1vw, 33px);
}

.leasing-masthead__nav a,
.leasing-masthead__phone,
.leasing-masthead__menu-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bw-muted);
  font-size: 0.82rem;
  font-weight: 470;
  letter-spacing: -0.012em;
  text-decoration: none;
}

.leasing-masthead__nav a {
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}

.leasing-masthead__nav a:hover,
.leasing-masthead__phone:hover,
.leasing-masthead__menu-nav a:hover {
  color: var(--bw-ink);
}

.leasing-masthead__nav a:hover {
  border-bottom-color: var(--bw-wordmark);
}

.leasing-masthead__phone {
  gap: 7px;
  color: var(--bw-ink);
  font-size: 0.81rem;
  white-space: nowrap;
  padding-inline: 5px;
}

.leasing-masthead__phone-icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.masthead-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  color: var(--bw-paper);
  background: var(--bw-ink);
  font-size: 0.82rem;
  font-weight: 570;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-decoration: none;
  white-space: nowrap;
}

.masthead-enquire:hover {
  background: var(--bw-ink-hover);
}

.masthead-enquire svg {
  width: 15px;
  height: 15px;
  margin-left: 8px;
}

.masthead-enquire__short {
  display: none;
}

.leasing-masthead__menu {
  display: none;
}

.leasing-masthead :is(a, summary):focus-visible {
  outline: 2px solid var(--bw-focus);
  outline-offset: 4px;
}

/* The compact version keeps an enquiry feeling like one continuous task. */
.leasing-masthead--compact {
  display: block;
  width: min(1216px, calc(100% - clamp(40px, 8vw, 128px)));
  min-height: 72px;
  margin-inline: auto;
  padding-block: 0;
  background: transparent;
  border-bottom-color: color-mix(in srgb, var(--bw-ink) 12%, transparent);
}

.leasing-masthead--compact .leasing-masthead__inner {
  width: 100%;
  min-height: 72px;
  padding-inline: 0;
}

.leasing-masthead__utility {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.leasing-masthead__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bw-ink);
  font-size: 0.82rem;
  font-weight: 560;
  text-decoration: none;
}

.leasing-masthead__back::before {
  content: "←";
  margin-right: 7px;
  font-size: 1.1em;
}

@container masthead (max-width: 69em) {
  .leasing-masthead__nav {
    gap: 17px;
  }

  .leasing-masthead__phone {
    display: none;
  }
}

@container masthead (max-width: 51em) {
  .leasing-masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-rows: 68px auto;
    gap: 0 10px;
    min-height: 68px;
    padding-inline: clamp(16px, 5vw, 30px);
  }

  .leasing-masthead__nav,
  .leasing-masthead__phone {
    display: none;
  }

  .masthead-enquire {
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    padding-inline: 15px;
  }

  .masthead-enquire__full {
    display: none;
  }

  .masthead-enquire__short {
    display: inline;
  }

  .masthead-enquire svg {
    display: none;
  }

  .leasing-masthead__menu {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
  }

  .leasing-masthead__summary {
    position: absolute;
    top: -56px;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    color: var(--bw-ink);
    font-size: 0;
  }

  .leasing-masthead__summary::-webkit-details-marker {
    display: none;
  }

  .leasing-masthead__summary::before {
    content: "";
    width: 19px;
    height: 12px;
    border-block: 1.5px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1.5px
      no-repeat;
  }

  .leasing-masthead__menu[open] .leasing-masthead__summary::before {
    width: 17px;
    height: 17px;
    border: 0;
    background:
      linear-gradient(
        45deg,
        transparent 46%,
        currentColor 47% 53%,
        transparent 54%
      ),
      linear-gradient(
        -45deg,
        transparent 46%,
        currentColor 47% 53%,
        transparent 54%
      );
  }

  .leasing-masthead__menu-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding: 5px 0 14px;
    border-top: 1px solid color-mix(in srgb, var(--bw-ink) 12%, transparent);
  }

  .leasing-masthead__menu-nav a {
    min-height: 46px;
    color: var(--bw-ink);
    font-size: 0.91rem;
  }

  .leasing-masthead__menu-call {
    grid-column: 1 / -1;
    margin-top: 5px;
    color: var(--bw-muted) !important;
  }
}

@container masthead (max-width: 17em) {
  .leasing-masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 68px 56px auto;
  }

  .masthead-enquire {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .leasing-masthead__menu {
    grid-row: 3;
  }

  .leasing-masthead__summary {
    top: -110px;
  }
}

@container masthead (max-width: 22em) {
  .masthead-enquire {
    padding-inline: 12px;
  }
}

@media (max-width: 700px) {
  .leasing-masthead--compact {
    min-height: 68px;
  }

  .leasing-masthead--compact .leasing-masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 68px;
    padding-inline: 0;
  }

  .leasing-masthead--compact .leasing-masthead__utility {
    gap: 8px;
  }

  .leasing-masthead--compact .leasing-masthead__phone {
    display: none;
  }
}

/* Homepage only: retain the shared compact masthead on the intake pages. */
body.bayward-v2 > .leasing-masthead {
  border-bottom-color: color-mix(in srgb, var(--bw-ink) 10%, transparent);
}

body.bayward-v2 > .leasing-masthead .leasing-masthead__inner {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 74px;
  gap: clamp(14px, 2vw, 31px);
  padding-inline: clamp(22px, 5vw, 80px);
}

body.bayward-v2 > .leasing-masthead .leasing-masthead__nav {
  justify-self: center;
  gap: clamp(18px, 2vw, 30px);
}

body.bayward-v2 > .leasing-masthead .leasing-masthead__nav a {
  min-height: 46px;
  color: color-mix(in srgb, var(--bw-ink) 76%, var(--bw-paper));
  font-size: 0.84rem;
  font-weight: 500;
}

body.bayward-v2 > .leasing-masthead .leasing-masthead__phone {
  gap: 6px;
  color: color-mix(in srgb, var(--bw-ink) 76%, var(--bw-paper));
  font-size: 0.79rem;
  font-weight: 500;
}

body.bayward-v2 > .leasing-masthead .leasing-masthead__phone-icon {
  width: 14px;
  height: 14px;
}

body.bayward-v2 > .leasing-masthead .masthead-enquire {
  min-height: 46px;
  padding-inline: 18px 17px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--bw-paper) 14%, transparent) inset;
}

body.bayward-v2 > .leasing-masthead .masthead-enquire:hover {
  transform: translateY(-1px);
}

body.bayward-v2 > .leasing-masthead .masthead-enquire:active {
  transform: translateY(0);
}

@container masthead (max-width: 69em) {
  body.bayward-v2 > .leasing-masthead .leasing-masthead__nav {
    justify-self: end;
  }
}

@container masthead (max-width: 51em) {
  body.bayward-v2 > .leasing-masthead .leasing-masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-rows: 70px auto;
    gap: 0 10px;
    min-height: 70px;
    padding-inline: clamp(16px, 5vw, 30px);
  }

  body.bayward-v2 > .leasing-masthead .masthead-enquire {
    min-height: 44px;
    padding-inline: 15px;
    box-shadow: none;
  }

  body.bayward-v2 > .leasing-masthead .leasing-masthead__summary {
    top: -57px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  body.bayward-v2 > .leasing-masthead .leasing-masthead__menu-nav {
    gap: 0 16px;
    padding: 8px 0 16px;
    border-top-color: color-mix(in srgb, var(--bw-ink) 14%, transparent);
  }

  body.bayward-v2 > .leasing-masthead .leasing-masthead__menu-nav a {
    min-height: 48px;
    font-size: 0.93rem;
  }

  body.bayward-v2 > .leasing-masthead .leasing-masthead__menu-call {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid color-mix(in srgb, var(--bw-ink) 10%, transparent);
  }
}

@container masthead (max-width: 17em) {
  body.bayward-v2 > .leasing-masthead .leasing-masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 70px 56px auto;
  }

  body.bayward-v2 > .leasing-masthead .leasing-masthead__summary {
    top: -113px;
  }
}

.brokerage-identity {
  margin: 0;
  padding: .65rem clamp(22px, 5vw, 80px);
  background: var(--bw-paper);
  color: var(--bw-ink);
  text-align: center;
  font: 500 .94rem/1.5 var(--public-sans);
}
