/* Site footer (shared with cisco-magazine). */

.site-footer {
  background: #fff;
  color: var(--muse-color-brand-gray-70);
  font-family: var(--muse-font-family-default);
  position: relative;
  z-index: 20;
}

.site-footer__shell {
  padding: 2.25rem clamp(1.5rem, 5vw, 3.5rem) 2.5rem;
  box-sizing: border-box;
}

.site-footer__inner {
  width: 100%;
}

.site-footer__row--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer__nav {
  margin: 0;
}

.site-footer__nav--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.site-footer__link {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__link:focus-visible {
  outline: 2px solid var(--muse-color-brand-medium-blue-40);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--muse-color-brand-gray-70);
  text-decoration: none;
  border: 1px solid var(--muse-color-brand-gray-20);
  background: transparent;
  box-sizing: border-box;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-footer__social-link:hover {
  color: var(--muse-color-brand-midnight);
  border-color: var(--muse-color-brand-gray-40);
  background: rgba(255, 255, 255, 0.6);
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--muse-color-brand-medium-blue-40);
  outline-offset: 2px;
}

.site-footer__social-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.site-footer__rule {
  border: 0;
  border-top: 1px solid var(--muse-color-brand-gray-15);
  margin: 1.35rem 0 1.15rem;
}

.site-footer__nav--utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer__link--utility {
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__copyright {
  margin: 1.35rem 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muse-color-brand-gray-60);
}

/*
 * GSAP stack: spacer height = slides × viewport (set in story.js). Footer scroll runway is the
 * in-flow .site-footer block — not body min-height. {@code story-html--footer-visible} is visual only.
 */
.story-footer-spacer {
  display: none;
  height: 0;
  pointer-events: none;
}

html.story-html--gsap-transitions .story-footer-spacer {
  display: block;
  /* Before story.js sets slides × viewport height, avoid footer sitting at y=0. */
  min-height: 100dvh;
}

html.story-html--gsap-transitions .site-footer {
  transition: opacity 0.2s ease;
}

html.story-html--gsap-transitions:not(.story-html--footer-visible) .site-footer {
  opacity: 0;
  pointer-events: none;
}

html.story-html--gsap-transitions.story-html--footer-visible .site-footer {
  opacity: 1;
  pointer-events: auto;
}

/*
 * Hide the fixed slide stack so the in-flow footer can receive clicks (z-index 20 vs slides 25).
 * Slide 11’s toolbar stays inside #story-slide-11; GSAP often keeps that snap visible via inline
 * styles while pointer-events: none still applied — restore hits on the actions bar only.
 */
html.story-html--gsap-transitions.story-html--footer-visible #story-main > .story-snap {
  visibility: hidden;
  pointer-events: none;
}

html.story-html--gsap-transitions.story-html--footer-visible
  #story-slide-11
  .actions-bar--story-toolbar {
  visibility: visible;
  pointer-events: auto;
  position: relative;
  z-index: 30;
}

@media (prefers-reduced-motion: reduce) {
  html.story-html--gsap-transitions .site-footer {
    transition: none;
  }
}
