/* Shared navigation and footer across the fundraiser and stats pages */
.topbar {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 15px;
}
nav.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 3px solid var(--sky);
}
nav.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
nav.site .logo { display: flex; align-items: center; justify-content: center; text-decoration: none; }
nav.site .logo img { display: block; width: auto; height: 76px; }
nav.site ul, .site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
nav.site a { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; }
nav.site a:hover, .site-footer a:hover { color: var(--blue); }
.btn-pink {
  display: inline-block;
  background: var(--pink);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: "Luckiest Guy", cursive;
  letter-spacing: .5px;
}
.site-footer {
  background: var(--sky);
  padding: 28px 0;
  border-top: 3px solid var(--blue);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer nav { order: 1; }
.site-footer nav ul { gap: 16px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 800; }
.site-footer .footer-brand { order: 0; }
.site-footer .footer-logo { display: inline-block; line-height: 0; }
.site-footer .footer-logo img { width: 126px; height: auto; margin-bottom: 8px; }
.site-footer .copy { margin: 0; color: var(--muted); font-size: 14px; }
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 3px 12px rgb(17 17 17 / 24%);
  color: var(--white);
  font-family: "Luckiest Guy", cursive;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
}
.back-to-top span { font-family: "Nunito", system-ui, sans-serif; font-size: 24px; font-weight: 800; }
.back-to-top:hover { background: var(--blue); color: var(--white); }
.back-to-top:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 860px) {
  nav.site .wrap { flex-direction: column; justify-content: center; gap: 6px; padding: 8px 0 12px; }
  nav.site .logo { width: 100%; }
  nav.site .logo img { height: 58px; }
  nav.site ul { width: 100%; justify-content: center; gap: 8px 10px; }
  nav.site a { font-size: 13px; }
  nav.site .btn-pink { padding: 8px 13px; }
  .site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 100px; grid-template-rows: auto auto; gap: 10px 8px; }
  .site-footer nav { grid-column: 1; grid-row: 1; order: 0; }
  .site-footer nav ul { justify-content: center; gap: 7px 9px; }
  .site-footer nav a { font-size: 12px; }
  .site-footer .footer-brand { display: contents; }
  .site-footer .footer-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .site-footer .footer-logo img { width: 96px; margin: 0; }
  .site-footer .copy { grid-column: 1 / -1; grid-row: 2; font-size: 13px; text-align: center; }
}
@media (max-width: 560px) {
  .back-to-top { right: 14px; bottom: 14px; min-height: 44px; padding: 0 15px; font-size: 15px; }
}
@media (max-width: 380px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) 86px; }
  .site-footer nav ul { gap: 6px 7px; }
  .site-footer nav a { font-size: 11px; }
  .site-footer .footer-logo img { width: 82px; }
}
