.home-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home-page > main {
  flex: 1 1 auto;
}

.public-header {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.home-public-header .public-header__brand {
  padding-inline: 0;
}

.public-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(64rem, calc(100% - 2rem));
  margin-inline: auto;
  gap: 0.75rem;
}

.site-footer-directory a:focus-visible,
.site-footer-legal a:focus-visible,
.footer-brand:focus-visible,
.link-brand:focus-visible {
  box-shadow: 0 0 0 2px var(--focus-ring);
  outline: none;
}

.home-logo {
  height: 1.25rem;
  width: auto;
}

.site-footer {
  width: 100%;
  background: var(--surface-footer);
  color: var(--text-primary);
  padding-block: var(--space-6);
}

.site-footer-inner {
  width: min(64rem, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
}

.site-footer-directory {
  display: grid;
  gap: var(--space-6) var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.site-footer-column {
  display: grid;
  align-content: start;
  gap: var(--space-3);
}

.site-footer-column h2 {
  margin: 0 0 var(--space-1);
  color: rgba(0, 0, 0, 0.72);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.site-footer-directory a {
  color: rgba(0, 0, 0, 0.72);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.site-footer-directory a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  padding-top: var(--space-4);
  font-size: 0.875rem;
}

.site-footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 500;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

.site-footer-legal a {
  color: rgba(0, 0, 0, 0.72);
  font-weight: 400;
  transition: color 0.15s ease;
}

.site-footer-legal a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
}

.footer-brand img {
  height: auto;
  width: 5rem;
}

@media (min-width: 640px) {
  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


/* Author display rules must not reveal hidden menus, account actions or forms. */
.home-public-header [hidden],
.home-mobile-menu[hidden],
.home-mobile-menu [hidden],
.home-landing [hidden],
.offer-page [hidden] {
  display: none !important;
}
.site-footer-column { min-width: 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .home-page a, .home-page button { transition: none; }
}
