body[data-site-shell] {
  --public-header-height: 88px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: calc(12px + var(--testing-notice-height, 0px));
  left: 12px;
  padding: 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #067357;
  font-weight: 800;
  transform: translateY(-500%);
}

.skip-link:focus {
  transform: none;
  outline: 3px solid #1d4ed8;
}

body[data-site-shell] :is([id], #public-content) {
  scroll-margin-top: calc(var(--testing-notice-height, 0px) + var(--public-header-height) + 24px);
}

#public-content {
  display: block;
  height: 0;
}

[data-public-header] .download-panel {
  max-height: var(--public-menu-height, calc(100dvh - 240px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

[data-public-header] :is(a, summary, button):focus-visible,
.public-footer a:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

body[data-site-shell] .legal-page {
  padding-top: calc(var(--public-header-height) + 32px);
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1fr 1fr auto;
  align-items: start;
  gap: 24px;
  line-height: 1.5;
}

.public-footer :is(nav, .footer-identity) {
  display: grid;
  justify-self: stretch;
  gap: 8px;
  min-width: 0;
}

.public-footer a {
  display: inline-block;
  padding-block: 4px;
  overflow-wrap: anywhere;
}

.public-footer .footer-language {
  justify-self: end;
}

@media (max-width: 1100px) and (min-width: 781px) {
  [data-public-header] {
    gap: 12px;
    padding-inline: 20px;
  }
  [data-public-header] > nav {
    gap: 10px;
    font-size: 14px;
  }
  [data-public-header] > nav > a:not(.nav-cta):not(.phone-link):not(.language-switch) {
    display: none;
  }
}

@media (max-width: 780px) {
  body[data-site-shell] .legal-page {
    padding-top: 36px;
  }
  .public-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-footer .footer-identity {
    grid-column: 1 / -1;
  }
  .public-footer .footer-language {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .public-footer {
    grid-template-columns: minmax(0, 1fr);
  }
}
