/* Shared by the four primary V7 pages. */
:is(.v7-home, .v7-secondary) a {
  text-decoration: none;
}

:is(.v7-home, .v7-secondary) .v5-header {
  padding-inline: var(--v7-gutter);
  background: rgb(8 8 8 / 94%);
  backdrop-filter: blur(12px);
}

:is(.v7-home, .v7-secondary) .v5-brand {
  font-size: clamp(20px, 1.8vw, 29px);
  letter-spacing: -.055em;
}

:is(.v7-home, .v7-secondary) .v5-tagline {
  border-color: var(--line);
  color: var(--paper);
  font-size: 13px;
}

.v7-brand-text {
  text-transform: none;
}

:is(.v7-home, .v7-secondary) .v5-header nav > a[aria-current]::after {
  content: none;
}

:is(.v7-home, .v7-secondary) :is(.v5-header, .v7-site-footer) a:is(:hover, :active, [aria-current="page"]) {
  color: var(--ice);
}

:is(.v7-home, .v7-secondary) :is(.v5-header, .v7-site-footer) a[aria-current="page"] {
  font-weight: 600;
}

.v7-site-footer {
  padding: 32px var(--v7-gutter) 20px;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
}

.v7-footer-grid,
.v7-footer-bottom {
  max-width: 1096px;
  margin-inline: auto;
}

.v7-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(22px, 4vw, 58px);
}

.v7-site-footer h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.v7-site-footer :is(.v7-footer-name, .v7-footer-phone) {
  color: var(--white);
  font-weight: 600;
}

.v7-site-footer .v7-footer-name {
  font-size: 21px;
  letter-spacing: -.04em;
}

.v7-footer-brand p {
  max-width: 29ch;
  margin-top: 6px;
}

.v7-site-footer ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.v7-footer-contact > a {
  display: block;
  width: fit-content;
  overflow-wrap: anywhere;
}

.v7-site-footer .v7-footer-phone {
  margin-bottom: 3px;
  font-size: 18px;
}

.v7-footer-contact address {
  margin-top: 6px;
  font-style: normal;
}

.v7-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.v7-back-to-top {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--secondary);
  color: var(--ice);
  font-size: 22px;
  line-height: 1;
}

.v7-back-to-top[hidden] {
  display: none;
}

.v7-back-to-top:is(:hover, :active) {
  border-color: var(--ice);
  color: var(--ice);
}

@media (max-width: 570px) {
  .v7-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .v7-footer-brand {
    grid-column: 1 / -1;
  }

  .v7-site-footer ul {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
