
:root {
  --md-text-font: "Malgun Gothic", "맑은 고딕", sans-serif;
  --md-code-font: "D2Coding", "Consolas", monospace;
}

/* footer copyright 정렬 보정 */
.md-footer-meta__inner {
  justify-content: center;   /* 가운데 정렬 */
}


/* ─────────────────────────────────────────────
   Neumorphism watermark (bottom-left)
───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   Global watermark (bottom-left)
───────────────────────────────────────────── */
body::after {
  content: "";
  position: fixed;
  bottom: 24px;
  left: 24px;

  width: 180px;
  height: 180px;

  background-image: url("../../images/watermark.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;

  opacity: 0.13;          /* 워터마크 느낌 */
  pointer-events: none;  /* 클릭 방해 X */
  z-index: 0;             /* UI 아래 */
}



/* ─────────────────────────────────────────────
   Back to top floating button
───────────────────────────────────────────── */
#u4a-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 48px;
  height: 48px;
  border-radius: 14px;

  font-size: 20px;
  font-weight: 600;

  background: rgba(255,255,255,0.85);
  color: #555;

  border: none;
  cursor: pointer;

  box-shadow:
    6px 6px 12px rgba(0,0,0,0.12),
   -6px -6px 12px rgba(255,255,255,0.8);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: opacity .25s ease, transform .25s ease;
  z-index: 20;
}

/* 표시 상태 */
#u4a-back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* hover */
#u4a-back-to-top:hover {
  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.15),
    inset -4px -4px 8px rgba(255,255,255,0.9);
}

/* Dark mode */
[data-md-color-scheme="slate"] #u4a-back-to-top {
  background: rgba(30,30,36,0.9);
  color: #ddd;

  box-shadow:
    6px 6px 12px rgba(0,0,0,0.6),
   -6px -6px 12px rgba(255,255,255,0.08);
}





/* ─────────────────────────────────────────────
   Global custom scrollbar (WebKit)
───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(120, 120, 140, 0.35);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 140, 0.55);
}


/* ─────────────────────────────────────────────
   Search result font normalization
───────────────────────────────────────────── */

.md-search-result,
.md-search-result * {
  font-family:
    "Noto Sans KR",
    "Segoe UI",
    system-ui,
    sans-serif !important;
}

.md-search-result mark {
  font-weight: 600;
  background: rgba(255, 215, 0, 0.25);
}

.md-search-result code {
  font-family: inherit !important;
  font-size: 0.95em;
}


/* 1. 커스텀 결과가 리스트에 하나라도 존재하면 */
.md-search-result__list:has(.u4a-custom-result) {
  display: block !important;
}

/* 2. 그 바로 위에 있는 "일치하는 문서가 없습니다" 문구를 강제로 숨김 */
.md-search-result__list:has(.u4a-custom-result) + .md-search-result__meta,
.md-search-result__meta:has(+ .md-search-result__list .u4a-custom-result),
.md-search-result:has(.u4a-custom-result) .md-search-result__meta {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
}


.warning-text {
  color: #E74C3C;
  font-weight: bold;
}

.highlight-text {
  color: #F39C12;
  font-weight: bold;
}

.info-text {
  color: #3498DB;
  font-weight: bold;
}