/* All tenant contact flows use this header; branding is supplied by the tenant. */
.tenant-contact-header {
  position: relative;
  background: var(--contact-header-background, #f9f7f1);
  color: var(--contact-header-color, #25372f);
  border-bottom: 1px solid #80808033;
}

.tenant-contact-header__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, 1200px);
  min-height: 88px;
  margin-inline: auto;
}

.tenant-contact-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.tenant-contact-header__logo {
  display: block;
  width: auto;
  max-width: min(250px, 100%);
  max-height: 52px;
  object-fit: contain;
}

.tenant-contact-header__name {
  font-family: var(--contact-brand-font, inherit);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tenant-contact-header__return {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font: 14px/1.5 system-ui, sans-serif;
  text-decoration: none;
}

.tenant-contact-header a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* The shared header occupies normal flow, unlike fixed LP headers. */
.tenant-layout--contact .tenant-contact-page {
  padding-top: 56px;
}

@media (max-width: 700px) {
  .tenant-contact-header__inner {
    width: calc(100% - 32px);
    min-height: 76px;
    gap: 12px;
  }
  .tenant-contact-header__logo {
    max-width: min(160px, 100%);
    max-height: 44px;
  }
  .tenant-contact-header__return {
    padding-inline: 12px;
    font-size: 12px;
  }
  .tenant-layout--contact .tenant-contact-page {
    padding-top: 32px;
  }
}
