/* 위치: static/css/guide.css
   드램픽 가이드 페이지 스타일. 앱과 같은 모카/브라운 계열. */

:root {
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --text: #2B2320;
  --muted: #8A7F76;
  --accent: #7B4B2A;
  --border: #E8E0D6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

/* 상단바 ------------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}
.brand-name { font-weight: 700; font-size: 15px; }

/* 본문 틀 ------------------------------------------------ */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { margin: 0 6px; }

.page-head { margin-bottom: 36px; }
.page-head h1 {
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* 목차 --------------------------------------------------- */
.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.toc li { border-bottom: 1px solid var(--border); }
.toc a {
  display: flex;
  gap: 16px;
  padding: 18px 4px;
  text-decoration: none;
}
.toc a:hover { background: rgba(123, 75, 42, 0.04); }
.toc .num {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding-top: 2px;
  flex: 0 0 auto;
}
.toc-text { display: flex; flex-direction: column; }
.toc-text strong { font-size: 16px; font-weight: 600; }
.toc-text .summary {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

/* 문서 --------------------------------------------------- */
.doc .sec { margin-bottom: 40px; }
.doc h2 {
  font-size: 18px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.doc p { margin: 0 0 14px; font-size: 15px; }

.bullets, .steps {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 15px;
}
.bullets li, .steps li { margin-bottom: 6px; }
.steps li::marker { color: var(--accent); font-weight: 700; }

.note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
}

/* 이전 / 다음 -------------------------------------------- */
.pager {
  display: flex;
  gap: 12px;
  margin: 48px 0 40px;
}
.pager-item {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--card);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pager-item.empty { border: none; background: none; }
.pager-item.next { text-align: right; }
.pager-label { font-size: 12px; color: var(--muted); }
.pager-title {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 앱 유도 ------------------------------------------------ */
.cta {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.cta p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* 바닥 --------------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--card);
}
.foot p { margin: 4px 0; }

@media (max-width: 480px) {
  .page-head h1 { font-size: 24px; }
  .pager { flex-direction: column; }
  .pager-item.next { text-align: left; }
  .pager-item.empty { display: none; }
}
