/* Accessibility + layout stability (cocoanma.net) */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  height: auto;
  outline: 3px solid #f5c76a;
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid #b88a52;
  outline-offset: 2px;
}

/* Do not remove focus for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

#footerBar {
  max-height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 480px) {
  #footerBar {
    max-height: 52px;
  }
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

.go-top {
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
}

.go-top button,
.go-top[role="button"] {
  border: none;
  background: inherit;
  cursor: pointer;
  padding: 0;
}

.mean-container .mean-nav {
  max-height: 70vh;
  overflow-y: auto;
}

.mean-container a.meanmenu-reveal {
  color: #1a1a1a;
}

.mean-container a.meanmenu-reveal:focus-visible {
  outline: 3px solid #b88a52;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  max-width: 100%;
  height: auto;
}

.header-logo img,
.mobile-nav .logo img {
  width: 160px;
  height: auto;
}
