/**
 * Hodlr-aligned site footer — keep in sync with site/src/config/footer.ts.
 * Astro imports this from global.css; legacy pages link it directly.
 *
 * Legacy tool CSS often sets `p`/`a` (sometimes with !important) for VT323 —
 * keep footer Marcellus + fixed type regardless of host page theme.
 */
.siteFooter {
  --site-footer-font: "Marcellus", ui-serif, "Iowan Old Style", Palatino, Georgia,
    serif;
  --site-footer-size: 0.95rem;
  --site-footer-color: #ccc;
  flex-shrink: 0;
  margin-top: auto;
  background-color: #1b1b1b;
  border-top: 1px solid #666;
  color: var(--site-footer-color);
  width: 100%;
  font-family: var(--site-footer-font);
  font-size: var(--site-footer-size);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.siteFooter,
.siteFooter * {
  font-family: var(--site-footer-font) !important;
  font-size: var(--site-footer-size) !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

.siteFooter a,
.siteFooter a:link,
.siteFooter a:visited {
  font-style: normal;
  text-decoration: none;
  color: var(--site-footer-color) !important;
}

.siteFooter a:hover,
.siteFooter .siteFooterLink:hover,
.siteFooter .siteFooterIconLink:hover {
  color: #fff !important;
}

.siteFooterInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 0.35rem;
  column-gap: 1rem;
  max-width: var(--max-width, 72rem);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 1.5rem);
  text-align: center;
}

.siteFooterCopy {
  margin: 0;
  color: var(--site-footer-color);
}

.siteFooterLink {
  color: var(--site-footer-color);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.siteFooterSep {
  color: #555;
  user-select: none;
}

.siteFooterSocial {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.siteFooterIconLink {
  display: flex;
  color: var(--site-footer-color);
  line-height: 0 !important;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
}

.siteFooterIcon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.siteFooterEyeIcon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
  opacity: 0.85;
}

.siteFooterIconLink:hover .siteFooterEyeIcon {
  opacity: 1;
}

@media (max-width: 480px) {
  .siteFooter,
  .siteFooter * {
    line-height: 1.25 !important;
  }

  .siteFooterSep {
    display: none;
  }

  .siteFooterInner {
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .siteFooterSocial {
    order: -1;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 0.35rem;
  }

  .siteFooterCopy {
    order: 0;
  }

  .siteFooterInner > .siteFooterLink {
    order: 1;
  }

  .siteFooterLink {
    min-height: 0;
    padding: 0.15rem 0;
  }

  .siteFooterIconLink {
    min-height: 2.25rem;
    min-width: 2.25rem;
    line-height: 0 !important;
  }
}
