.doc {
  max-width: 940px;
  margin: 0 auto;
  padding: calc(78px + 44px + clamp(40px, 6vw, 84px)) var(--gutter) clamp(60px, 9vw, 120px);
}

/* ---- guide breadcrumb / anchor nav (2026-09-15) ---- */

.guide-crumbs {
  position: fixed;
  top: 78px; left: 0; right: 0;
  z-index: 39;
  height: 44px;
  background: rgba(244, 239, 227, 0.97);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}
.guide-crumbs__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-crumbs__row::-webkit-scrollbar { display: none; }
.guide-crumbs__root {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.guide-crumbs__root:hover { color: var(--accent); }
.guide-crumbs__sep { color: var(--text-faint); font-size: 0.8rem; }
.guide-crumbs__link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-faint);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.guide-crumbs__link:hover { color: var(--text-muted); }
.guide-crumbs__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.doc section { scroll-margin-top: calc(78px + 44px + 20px); }

.doc__slate { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-bottom: 18px; }
.doc__slate span { position: relative; padding-left: 15px; }
.doc__slate span::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 1px;
  background: var(--accent-soft);
}

.doc__title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.14;
  margin-bottom: 18px;
}
.doc__intro { max-width: 60ch; }

.doc section { margin-top: clamp(44px, 6vw, 78px); }

.doc h2 {
  font-family: var(--font-display-kr);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  letter-spacing: -0.028em;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule-strong);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.doc h2 .slate { color: var(--accent); }

.doc h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.doc p { margin-bottom: 14px; color: var(--text-muted); max-width: 62ch; line-height: 1.75; }
.doc p strong { color: var(--text); font-weight: 500; }

.floor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.floor li { background: var(--page); padding: 18px 20px; font-size: 1.01rem; line-height: 1.6; }
/* 2026-09-23: 예전엔 li 안의 모든 <b>가 제목줄(block)이 돼, 문장 속 굵은 글씨가 문장 한가운데서
   끊겨 제목처럼 보였다(전 페이지 34곳). 맨 앞 <b>만 제목으로 쓰고, 나머지는 문장 속 굵은 글씨로 둔다. */
.floor li > b:first-child { display: block; color: var(--accent); font-weight: 500; margin-bottom: 5px; }
/* 2026-09-23: 항목 수가 홀수면 2열 그리드 마지막에 회색 빈칸이 남았다(13곳). 마지막 항목을 두 칸 폭으로. */
.floor li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.tier { border-top: 1px solid var(--rule); padding: 26px 0; display: grid; grid-template-columns: 172px 1fr 172px; gap: clamp(16px, 2.4vw, 34px); align-items: start; }
.tier:last-of-type { border-bottom: 1px solid var(--rule); }
.tier__code { display: flex; align-items: baseline; gap: 11px; }
.tier__code b {
  font-family: var(--font-display-en);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--accent);
}
.tier__code span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--text);
  white-space: nowrap;
}
.tier ul { margin: 10px 0 0; }
.tier ul li { position: relative; padding-left: 15px; font-size: 0.98rem; line-height: 1.62; color: var(--text-muted); margin-bottom: 5px; }
.tier ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 1px; background: var(--accent-soft); }
.tier__gain { border-left: 1px solid var(--rule); padding-left: clamp(14px, 1.8vw, 24px); }
.tier__gain b { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--data); margin-bottom: 8px; }
.tier__gain span { font-size: 0.96rem; line-height: 1.6; color: var(--text-muted); }
.tier__weight { font-family: var(--font-body); font-weight: 600; font-size: 0.96rem; color: var(--accent); margin-top: 12px; display: block; }

.rate { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 0.98rem; }
.rate th, .rate td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.rate th { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.rate td:last-child, .rate th:last-child { text-align: right; font-family: var(--font-mono); color: var(--accent); }
/* 2026-09-30: 해상도×프레임 표(촬영 품질 배율) — 가운데 정렬, 첫 칸만 왼쪽 */
.rate.rate--grid td, .rate.rate--grid th { text-align: center; }
.rate.rate--grid td:first-child, .rate.rate--grid th:first-child { text-align: left; font-family: var(--font-body); color: inherit; }
.rate.rate--grid td:not(:first-child) { font-family: var(--font-mono); color: var(--accent); }
.rate.rate--grid th:last-child { font-family: var(--font-body); color: var(--text-muted); }

.example { background: var(--panel); border: 1px solid var(--rule); padding: clamp(20px, 2.6vw, 30px); }
.example h3 { color: var(--accent); }
.example ol { counter-reset: step; }
.example ol li { counter-increment: step; position: relative; padding-left: 30px; margin-bottom: 9px; font-size: 0.99rem; line-height: 1.62; color: var(--text-muted); }
.example ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  border: 1px solid var(--rule-strong);
  width: 19px; height: 19px; display: flex; align-items: center; justify-content: center;
}
.example__total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-strong); font-size: 1.05rem; color: var(--text); }

.faq { border-top: 1px solid var(--rule); }
.faq > div { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq h3 { color: var(--text); margin-bottom: 8px; }
.faq p { margin-bottom: 0; font-size: 0.99rem; }

.doc__foot { margin-top: clamp(44px, 6vw, 76px); padding-top: 22px; border-top: 1px solid var(--rule-strong); }

@media (max-width: 780px) {
  .floor { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 1fr; gap: 14px; }
  .tier__gain { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 14px; }
}

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .masthead, .guide-crumbs, .rails, .grain, .cursor, .cursor-ring, .doc__actions { display: none !important; }
  html, body { background: #fff !important; }
  body { color: #1c1a15 !important; font-size: 10.5pt; }
  .doc { padding: 0; max-width: none; }
  .doc p, .tier ul li, .tier__gain span, .floor li { color: #45403a !important; }
  .doc section { margin-top: 22pt; break-inside: avoid; }
  .tier, .example, .faq > div { break-inside: avoid; }
  .doc h2 { break-after: avoid; }
  .example { background: #f2ede2 !important; }
  /* 2026-09-23: 인쇄(PDF)는 화면 폭과 상관없이 늘 한 줄 배치로 고정한다. 예전 PDF는 한 줄이었는데
     같은 방식으로 다시 뽑자 2열로 나왔다 — 인쇄 폭이 780px 기준을 넘는 것으로 계산돼서다.
     A4 한 장에 2열이면 글이 너무 좁아지므로 휴대폰 화면과 같은 배치를 인쇄에 명시한다. */
  .floor { grid-template-columns: 1fr; background: none; border: none; }
  .floor li:last-child:nth-child(odd) { grid-column: auto; }
  /* 목록이 쪽 경계에서 끊기면 목록 바탕(회색 구분선용)이 쪽 끝까지 회색 덩어리로 찍혔다 — 칸마다 테두리로 대신한다 */
  .floor li { border: 1px solid var(--rule); margin-top: -1px; break-inside: avoid; }
  .tier { grid-template-columns: 1fr; gap: 14px; }
  .tier__gain { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 14px; }
}

/* 2026-09-16 (진행맵 16번) 가이드 상단 PDF 내려받기 줄.
   @media print 에서 이미 display:none 처리되어 있으므로 PDF 안에는 나오지 않는다. */
.doc__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}
.doc__actions .note { margin: 0; }
