/* 사이트맵 페이지 전용 스타일: 미니멀, 텍스트 트리 위주, 카드/캐러셀/색상 블록 없음 */

:root {
  --ink: #212121;
  --accent: #90A4AE;
  --border: #e0e0e0;
  --muted: #9e9e9e;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-display: swap;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

a { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- 헤더: 사이트 내 가장 단순한 헤더. 얇은 선 + 워드마크만 ---- */
.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
}

#primary-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
}

#primary-nav.is-open { display: flex; }

#primary-nav a {
  display: block;
  padding: 12px 4px;
  min-height: 44px;
  line-height: 20px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--border);
}

/* ---- 본문 ---- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.sitemap-intro h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.sitemap-intro p {
  margin: 0 0 40px;
  color: var(--ink);
}

/* ---- 트리 리스트 ---- */
.tree,
.tree-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree > li {
  position: relative;
  padding: 0 0 20px 20px;
  border-left: 1px solid var(--border);
}

.tree > li:last-child {
  border-left-color: transparent;
}

.tree > li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  width: 14px;
  height: 1px;
  background: var(--border);
}

.tree a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 4px;
  line-height: 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.tree a:hover,
.tree a:focus-visible {
  border-bottom-color: var(--accent);
}

.tree > li > p {
  margin: 0 0 4px;
  padding-left: 4px;
  color: #555;
  font-size: 0.9375rem;
}

.tree-sub {
  margin-top: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.tree-sub .placeholder {
  padding: 10px 0 10px 16px;
  position: relative;
}

.tree-sub .placeholder::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 20px;
  width: 14px;
  height: 1px;
  background: var(--border);
}

.tree-sub .placeholder span:first-child {
  color: var(--muted);
  font-size: 0.9375rem;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: #757575;
  background: #f0f0f0;
  border: 1px solid var(--border);
  border-radius: 3px;
  vertical-align: middle;
}

.tree-sub .placeholder p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.tree-sub code {
  font-size: 0.875em;
  color: #757575;
}

/* ---- 푸터 ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  font-size: 0.875rem;
  color: #616161;
}

.footer-nav {
  max-width: 960px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #616161;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
}

address {
  max-width: 960px;
  margin: 0 auto 12px;
  font-style: normal;
  line-height: 1.8;
}

address a {
  color: #616161;
  text-decoration: underline;
}

.site-footer p {
  max-width: 960px;
  margin: 0 auto;
  color: #9e9e9e;
}

/* ---- 반응형 ---- */
@media (min-width: 480px) {
  .badge { font-size: 0.8125rem; }
}

@media (min-width: 768px) {
  .header-inner { padding: 20px 32px; }
  .menu-toggle { display: none; }
  #primary-nav {
    display: flex;
    flex-direction: row;
    gap: 24px;
  }
  #primary-nav a {
    border-top: 0;
    padding: 10px 0;
    min-height: auto;
  }
  main { padding: 64px 32px 96px; }
  .sitemap-intro h1 { font-size: 2rem; }
  .tree a { font-size: 1.125rem; }
}

@media (min-width: 1024px) {
  main { max-width: 780px; }
}

@media (min-width: 1280px) {
  main { max-width: 840px; }
}
