@layer base {
/* ========== Public footer (METIS-pub#489) ==========
   One footer for the public site and every invitation page. These rules used
   to be copied into view/css/shared.css and invite/css/shared.css, differing
   only in width, so restyling one left the other behind with no error.
   `.view-footer` must be declared here and nowhere else
   (web/view/tests_nav_footer.py).

   Left, the lockup: mark, name, slogan (hidden on the neutral invitation shell,
   which passes show_footer_logo=False). Right, the record's public links and
   the join link, as words. */
.view-footer {
  --footer-ground: var(--green-900);
  --footer-text: color-mix(in oklab, var(--color-text-invert) 80%, var(--footer-ground));
  --footer-link: color-mix(in oklab, var(--color-text-invert) 70%, var(--footer-ground));
  background: var(--footer-ground);
  color: var(--footer-text);
  padding: var(--space-6);
}

.view-footer-inner {
  /* The column the page above it uses: 1200px on the public site, and the
     invitation stylesheet sets 960px to line up with its form. */
  max-width: var(--footer-max, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer-logo-wrap > a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
  text-decoration: none;
}

/* A pack's own `a:hover` (the Gathering signup.css, loaded later in the same
   layer) would otherwise tint the slogan olive on the dark ground. */
.footer-logo-wrap > a:is(:hover, :focus-visible) {
  color: inherit;
}

.view-footer-logo {
  height: 60px;
  padding: var(--space-1);
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-name {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-xl);
  color: var(--color-text-invert);
}

.footer-slogan {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
}

.view-footer .footer-link {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  color: var(--footer-link);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

.view-footer .footer-link:hover,
.view-footer .footer-link:focus-visible {
  color: var(--color-text-invert);
}

/* On a phone the footer stacks: lockup, then the links, wrapping. */
@media (max-width: 600px) {
  .view-footer-inner {
    flex-direction: column;
    gap: var(--space-4);
  }
}
}
