body .dm-site-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 22px 0 40px;
  border: 0;
  border-top: 1px solid #dfe6ef;
  background: transparent;
  color: #64748b;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

body > .dm-site-footer {
  width: min(1120px, calc(100% - 28px));
  margin-right: auto;
  margin-left: auto;
}

body .dm-site-footer p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
body .dm-site-footer .dm-footer-disclaimer { margin-top: 4px; }
body .dm-site-footer .dm-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding: 0; font-size: 13px; }
body .dm-site-footer .dm-footer-links a { color: #526581; text-decoration: none; }
body .dm-site-footer .dm-footer-links a:hover { color: #1d4ed8; text-decoration: underline; }
body .dm-site-footer .dm-footer-links a:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

.dm-article-note { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid #e5eaf1; color: #64748b; font-size: 13px; line-height: 1.7; }
.dm-article-note p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }

.dm-back-to-top {
  position: fixed;
  z-index: 200;
  right: max(2px, env(safe-area-inset-right));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 44px;
  padding: 0;
  border: 1px solid #8eafe8;
  border-radius: 16px;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .20);
  color: #1d4ed8;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  cursor: grab;
  touch-action: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dm-back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.dm-back-to-top.is-dragging { cursor: grabbing; }
.dm-back-to-top-action {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: inherit;
  touch-action: none;
}
.dm-back-to-top-action:first-child { border-radius: 15px 15px 0 0; }
.dm-back-to-top-action:last-child { border-top: 1px solid #bcd1f3; border-radius: 0 0 15px 15px; }
.dm-back-to-top-action:hover { background: #dbeafe; }
.dm-back-to-top-action:focus-visible { outline: 2px solid #2563eb; outline-offset: -3px; }
.dm-back-to-top-arrow { font-size: 19px; font-weight: 700; line-height: 1; }
.dm-back-to-top-label { font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
html[data-dm-theme="dark"] .dm-back-to-top-action:last-child { border-color: #526b8a; }
html[data-dm-theme="dark"] .dm-back-to-top-action:hover { background: #344c6b; }

@media (min-width: 901px) {
  .dm-back-to-top { border-radius: 18px; }
  .dm-back-to-top-label { font-size: 11px; }
}

@media print { .dm-back-to-top, .dm-footer-top { display: none !important; } }
