/* 홈리스추모제 푸터 1.1.5 — compact responsive footer */
@font-face {
  font-family: "HMF Pretendard";
  src: url("PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}
body.hmf-footer-enabled > .site-footer-custom,
.hmf-footer ~ .site-footer-custom { display: none !important; }
body.hmf-footer-enabled {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  background-color: #000 !important;
  overscroll-behavior-y: none;
}
html:has(body.hmf-footer-enabled) { background-color: #000; overscroll-behavior-y: none; }
.hmf-footer, .hmf-footer *, .hmf-footer *::before, .hmf-footer *::after { box-sizing: border-box; }
.hmf-footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: clamp(40px, 2.916667vw, 56px) 0 0;
  border: 0;
  background: #000;
  color: #fff;
  color-scheme: dark;
  text-align: left;
  font-family: "HMF Pretendard", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.304348;
  letter-spacing: 0;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.hmf-footer__inner {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: calc(100% - clamp(48px, 20.833334vw, 400px));
  max-width: 1520px;
  margin: 0 auto;
  padding: 0;
}
.hmf-footer__wordmark {
  display: block;
  width: min(45vw, 864px);
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.hmf-footer__wordmark img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1439 / 280;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  object-fit: contain;
}
.hmf-footer__copy {
  display: block;
  margin: clamp(24px, 1.5625vw, 30px) 0 0;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: 1.217392;
  overflow-wrap: break-word;
  word-break: normal;
}
.hmf-footer p, .hmf-footer address {
  display: block;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.hmf-footer__copy p + p { margin-top: clamp(12px, .833334vw, 16px); }
.hmf-footer__credits > span { display: block; }
.hmf-footer__social { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.hmf-footer__social-item { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.hmf-footer__social-item img { display: block; width: 41px; height: 41px; object-fit: contain; border: 0; box-shadow: none; }
.hmf-footer__social-item .hmf-footer__social-icon--facebook { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.hmf-footer__social-item .hmf-footer__social-icon--youtube { width: 40px; height: 28px; }
.hmf-footer__social-item .hmf-footer__social-icon--twitter { width: 39px; height: 31px; }
.hmf-footer a { color: inherit; text-decoration: none; }
.hmf-footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hmf-footer a.hmf-footer__support-link { text-decoration: underline; text-decoration-color: #ffffff80; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hmf-footer a.hmf-footer__support-link:hover { text-decoration-color: #fff; }
.hmf-footer__social a:hover { opacity: .8; }
.hmf-footer a:focus-visible { outline: 2px solid #f5a771; outline-offset: 4px; }
.hmf-footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(40px, 3.333334vw, 64px);
  /* Match the visible SNS gaps, corrected for glyph shapes in footer.js. */
  margin-top: calc(22px + var(--hmf-social-offset, 0px));
  padding-top: 0;
  line-height: 1.304348;
}
.hmf-footer__account { white-space: nowrap; }
.hmf-footer__contact { text-align: right; word-break: keep-all; overflow-wrap: break-word; }
.hmf-cat-band {
  --hmf-cat-cell: 92px;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  /* About five times the former desktop text-to-cat breathing space. */
  height: calc(var(--hmf-cat-cell) + 123px);
  overflow: hidden;
  background: #000;
}
.hmf-cat {
  position: absolute;
  left: 0;
  bottom: 13px;
  width: var(--hmf-cat-cell);
  height: calc(var(--hmf-cat-cell) * 200 / 180);
  pointer-events: none;
  will-change: transform;
}
.hmf-cat-sprite {
  display: block;
  width: 100%;
  height: 100%;
  background: url("cat-walk-sprite.webp") 0 0 / 2400% 100% repeat-x;
  animation: hmf-cat-step .96s steps(24, end) infinite;
}
@keyframes hmf-cat-step { to { background-position-x: calc(var(--hmf-cat-cell) * -24); } }
.hmf-footer.is-paused .hmf-cat-sprite { animation-play-state: paused; }
@media (min-width: 768px) and (max-width: 1100px) {
  .hmf-footer__bottom { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .hmf-footer__contact { text-align: left; }
}
@media (max-width: 767px) {
  .hmf-footer {
    min-height: 0;
    padding-top: 36px;
    font-size: clamp(14px, 4.2vw, 16.38px);
    line-height: 20px;
  }
  .hmf-footer__inner { width: calc(100% - clamp(48px, 18.461538vw, 72px)); max-width: 500px; }
  .hmf-footer__wordmark { width: clamp(156px, 47.692308vw, 186px); }
  .hmf-footer__wordmark img { aspect-ratio: 744 / 620; }
  .hmf-footer__copy { margin-top: 22px; line-height: 20px; }
  .hmf-footer__copy p + p { margin-top: 8px; }
  .hmf-footer__social { margin-top: 8px; }
  /* Shrink only the artwork; preserve centers, 44px targets and all flow positions. */
  .hmf-footer__social-item img { transform: scale(.8); transform-origin: center; }
  .hmf-footer__bottom { display: block; margin-top: calc(24px + var(--hmf-social-offset, 0px)); padding-top: 0; line-height: 20px; }
  .hmf-footer__holder { display: block; }
  .hmf-footer__support-ask { margin-top: 8px !important; }
  .hmf-footer__contact { margin-top: 24px !important; text-align: left; line-height: 27px !important; }
  .hmf-footer__contact p:first-child { line-height: 20px; margin-bottom: 8px; }
  .hmf-footer__street-number { display: block; }
  .hmf-cat-band { margin-top: 40px; height: calc(32.820513vw + env(safe-area-inset-bottom, 0px)); }
  .hmf-cat { bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .hmf-cat-sprite { animation: none; } }
@media print {
  .hmf-footer { min-height: 0; padding-block: 24px; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .hmf-footer__bottom { margin-top: 32px; padding-top: 0; }
  .hmf-cat-band { display: none; }
}
