/* Shared site footer for standalone pages. Mirrors the index footer exactly. */
.site-footer {
  padding-block: 50px;
  color: #aeb5b8;
  background: #181c1f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Pretendard", "SUIT", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  word-break: keep-all;
}

.site-footer > .section-shell {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 50px;
  align-items: start;
}

.footer-inner img {
  width: 108px;
  height: auto;
  filter: none;
}

.footer-inner p {
  margin: 8px 0 0;
  font-size: 13px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 10px 0 0;
  color: #dfe3e5;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
}

.footer-contact span:last-child {
  flex-basis: 100%;
}

.footer-contact a,
.footer-source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(167, 214, 45, 0.65);
  text-underline-offset: 3px;
}

.footer-source {
  display: inline-block;
  margin-top: 8px;
}

.footer-channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.footer-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dfe3e5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.footer-channel-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.footer-channel:hover {
  color: #b7dd50;
}

.footer-channel:focus-visible {
  outline: 2px solid #b7dd50;
  outline-offset: 4px;
  border-radius: 3px;
}

.footer-inner nav {
  display: flex;
  gap: 24px;
  color: #dfe3e5;
  font-size: 13px;
  font-weight: 700;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 22px;
  color: #aeb5b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .site-footer > .section-shell {
    width: min(calc(100% - 36px), 1180px);
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .site-footer > .section-shell {
    width: min(calc(100% - 28px), 1180px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .footer-note {
    grid-column: 1;
  }

  .footer-channel-links {
    gap: 8px 16px;
  }
}
