/* 문서 맨 아래 안내 */
.notice {
  margin-top: 8px;
}

.notice p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

/* 문서 하단 */
.doc-foot {
  margin-top: 64px;
}

/* 이전·다음 버튼이 없는 문서는 본문과 푸터가 과하게 벌어지지 않도록 */
.doc-foot:has(.pager:empty) {
  margin-top: 40px;
}

.updated {
  color: var(--mute);
  font-size: 13.5px;
}

.pager {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.pager:empty {
  display: none;
}

.pager a {
  flex: 1 1 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pager a:hover {
  background: #f0f1f3;
}
.pager a.prev {
  text-align: left;
}
.pager a.next {
  text-align: right;
}
.pager small {
  display: block;
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
}
.pager b {
  font-size: 17px;
  font-weight: 700;
}

/* 우측 On this page */
.toc {
  position: sticky;
  top: var(--gnb-h);
  align-self: start;
  max-height: calc(100vh - var(--gnb-h));
  overflow-y: auto;
  padding: 56px 0 60px;
}

.toc-title {
  margin: 0 0 12px;
  padding-left: 13px;
  color: var(--mute);
  font-size: 13px;
  font-weight: 700;
}

.toc a {
  display: block;
  padding: 5px 12px;
  border-left: 2px solid var(--line);
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none;
}

.toc a.sub {
  padding-left: 24px;
  font-size: 13px;
  color: var(--mute);
}
.toc a:hover {
  color: var(--ink);
}
.toc a.active {
  border-left-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

/* 사이트 푸터 */
/* 푸터는 본문과 같은 컬럼에 놓여 함께 스크롤된다(LNB 는 고정) */
.site-foot {
  grid-column: 2 / 3;
  margin: 0 48px 0 96px; /* 본문(.main)과 동일한 여백 → 폭이 정확히 일치 */
  padding-bottom: 96px;
}

.site-foot-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  padding: 44px 0 0;
}

/* 좌우 여백(28px)을 뺀 실제 콘텐츠 폭 1100 에만 라인을 긋는다 */
.site-foot-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.foot-brand img {
  display: block;
  width: auto;
  height: 26px;
}

.foot-note {
  max-width: 420px;
  margin: 22px 0 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
}

.foot-copy {
  margin: 2px 0 0;
  color: var(--mute);
  font-size: 12.5px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, auto));
  gap: 44px;
}

.foot-col b {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.foot-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--gray);
  font-size: 13.5px;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-col + .foot-col-stack {
  margin-top: 30px;
}

@media (max-width: 900px) {
  .site-foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 44px 0 0;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}
