@charset "utf-8";
/* ============================================================
   WORKNEST — 본문 뷰어 & 웹 인포그래픽 부품
   본문 컨텐츠(content/*.php)는 여기 정의된 클래스만 사용한다.
   ============================================================ */

/* ── 읽기 진행 바 ─────────────────────────────────────────── */
.read-progress {
  position: fixed; left: 0; top: var(--header-h); z-index: 99;
  width: 100%; height: 3px; background: transparent;
}
.read-progress i {
  display: block; height: 100%; width: 0;
  background: var(--brand-gradient);
  transition: width .12s linear;
}

/* ── 챕터 머리 ────────────────────────────────────────────── */
.rd-head {
  padding: calc(var(--header-h) - 40px) 0 40px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.rd-head .breadcrumb { margin-bottom: 18px; }
.rd-code {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
  font-size: .82rem; font-weight: 700;
}
.rd-head h1 { margin: 16px 0 12px; max-width: 15em; }
.rd-head .lead { max-width: var(--read); }
.rd-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px;
  font-size: .83rem; color: var(--gray-2);
}
.rd-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── 본문 레이아웃 (사이드 목차 + 글) ─────────────────────── */
.rd-layout {
  display: grid; grid-template-columns: 238px minmax(0, 1fr);
  gap: 56px; align-items: start;
  /* padding 축약형을 쓰면 .wrap 의 좌우 여백(padding-inline)이 0으로 덮여
     모바일에서 본문이 화면 끝에 붙는다. 위아래만 지정한다. */
  padding-block: 48px 20px;
}

.rd-side { position: sticky; top: calc(var(--header-h) + 26px); }
.rd-side h4 {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-3); margin-bottom: 12px;
}
.rd-side ol { display: grid; gap: 1px; border-left: 2px solid var(--line); }
.rd-side a {
  display: block; padding: 7px 0 7px 15px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .87rem; color: var(--gray-2); line-height: 1.45;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.rd-side a:hover { color: var(--ink); }
.rd-side a.is-active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

.rd-body { max-width: var(--read); }
.rd-body > * + * { margin-top: 20px; }

/* ── 본문 기본 요소 ───────────────────────────────────────── */
.rd-body p { color: #33383F; }
.rd-body strong { font-weight: 700; color: var(--ink); }
.rd-body em { font-style: normal; background: linear-gradient(180deg, transparent 62%, #D7E4FF 62%); }

.rd-h2 {
  margin-top: 62px !important; padding-top: 8px;
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.65rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.rd-h2 .num {
  display: block; margin-bottom: 7px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  color: var(--blue);
}
.rd-h3 { margin-top: 36px !important; font-size: 1.08rem; }

.rd-body ul.dot, .rd-body ol.num { display: grid; gap: 10px; padding-left: 2px; }
.rd-body ul.dot > li { position: relative; padding-left: 22px; color: #33383F; }
.rd-body ul.dot > li::before {
  content: ''; position: absolute; left: 3px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: .8;
}
.rd-body ol.num { counter-reset: rdnum; }
.rd-body ol.num > li { position: relative; padding-left: 32px; color: #33383F; }
.rd-body ol.num > li::before {
  counter-increment: rdnum; content: counter(rdnum);
  position: absolute; left: 0; top: .18em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  font-size: .76rem; font-weight: 700; display: grid; place-items: center;
}

/* ── 표 (모바일에서 가로 스크롤) ──────────────────────────── */
.rd-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r);
  /* 가로로 더 볼 내용이 있을 때만 양쪽에 그림자가 보인다 (스크롤 안내) */
  background:
    linear-gradient(90deg, #fff 40%, rgba(255,255,255,0)) left   / 34px 100% no-repeat local,
    linear-gradient(90deg, rgba(255,255,255,0), #fff 60%) right  / 34px 100% no-repeat local,
    radial-gradient(farthest-side at 0   50%, rgba(16,24,40,.13), transparent) left  / 13px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(16,24,40,.13), transparent) right / 13px 100% no-repeat scroll,
    #fff;
}
.rd-table { min-width: 480px; font-size: .91rem; }
.rd-table th, .rd-table td {
  padding: 13px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.rd-table thead th {
  background: #DCE6FF; color: #1E3A8A; font-weight: 700;
  font-size: .86rem; white-space: nowrap;
  position: sticky; top: 0;
}
.rd-table tbody tr:last-child td { border-bottom: 0; }
.rd-table tbody tr:hover { background: #FAFCFF; }
.rd-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.rd-table.free td:first-child { white-space: normal; }
.rd-table .hl { background: #FFF9E6; }

.rd-cap { font-size: .82rem; color: var(--gray-2); text-align: center; }

/* ── 콜아웃 3종 (전자책의 박스 규칙 그대로) ───────────────── */
.callout {
  position: relative; padding: 20px 24px 20px 26px;
  border-radius: var(--r); background: var(--blue-soft);
  border-left: 4px solid var(--blue);
}
.callout h4 { color: var(--blue); font-size: .96rem; margin-bottom: 7px; }
.callout p, .callout li { font-size: .93rem; color: #2C3542; }
.callout ul.dot > li::before { background: var(--blue); }

.callout-green { background: var(--green-soft); border-left-color: var(--green); }
.callout-green h4 { color: var(--green); }
.callout-amber { background: var(--amber-soft); border-left-color: #D97706; }
.callout-amber h4 { color: var(--amber); }

/* 프롬프트(복붙) 박스 */
.prompt-box {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--navy-2); color: #E2E8F0;
}
.prompt-box .p-label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 18px; background: rgba(255,255,255,.05);
  font-size: .8rem; font-weight: 700; color: #93C5FD; letter-spacing: .04em;
}
.prompt-box pre {
  margin: 0; padding: 18px; white-space: pre-wrap;
  font-size: .88rem; line-height: 1.7;
}
/* 폴더 트리처럼 줄이 바뀌면 안 되는 내용은 가로 스크롤로 둔다 */
.prompt-box.is-tree pre {
  white-space: pre;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.copy-btn {
  padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s;
}
.copy-btn:hover { background: rgba(255,255,255,.2); }
.copy-btn.is-done { background: var(--green); }

/* ── 인포그래픽 ① 가로 흐름도 ────────────────────────────── */
.flow {
  display: flex; align-items: stretch; gap: 0;
  padding: 26px 22px; border-radius: var(--r-lg);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.flow-step {
  flex: 1; min-width: 0; text-align: center; padding: 4px 10px;
}
.flow-step b { display: block; font-size: .98rem; margin-bottom: 4px; }
.flow-step span { font-size: .82rem; color: var(--gray-2); line-height: 1.5; display: block; }
.flow-step .ico {
  width: 42px; height: 42px; margin: 0 auto 11px;
  border-radius: 13px; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-1); color: var(--blue);
}
.flow-arrow {
  flex: 0 0 34px; display: grid; place-items: center;
  color: var(--gray-3); font-size: 1.15rem;
}
/* 순서대로 등장 */
.flow.reveal .flow-step, .flow.reveal .flow-arrow {
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.flow.is-in .flow-step, .flow.is-in .flow-arrow { opacity: 1; transform: none; }
.flow.is-in > *:nth-child(1) { transition-delay: .05s; }
.flow.is-in > *:nth-child(2) { transition-delay: .17s; }
.flow.is-in > *:nth-child(3) { transition-delay: .29s; }
.flow.is-in > *:nth-child(4) { transition-delay: .41s; }
.flow.is-in > *:nth-child(5) { transition-delay: .53s; }
.flow.is-in > *:nth-child(6) { transition-delay: .65s; }
.flow.is-in > *:nth-child(7) { transition-delay: .77s; }

.flow-accent .flow-step:last-child .ico { background: var(--blue); color: #fff; }

/* ── 인포그래픽 ② 세로 타임라인 ──────────────────────────── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--g1), var(--g2) 55%, var(--g3));
  border-radius: 2px;
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.4s var(--ease);
}
.timeline.is-in::before { transform: scaleY(1); }

.tl-item {
  position: relative; padding: 13px 0 13px 4px;
  opacity: 0; transform: translateX(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.timeline.is-in .tl-item { opacity: 1; transform: none; }
.timeline.is-in .tl-item:nth-child(1)  { transition-delay: .10s; }
.timeline.is-in .tl-item:nth-child(2)  { transition-delay: .18s; }
.timeline.is-in .tl-item:nth-child(3)  { transition-delay: .26s; }
.timeline.is-in .tl-item:nth-child(4)  { transition-delay: .34s; }
.timeline.is-in .tl-item:nth-child(5)  { transition-delay: .42s; }
.timeline.is-in .tl-item:nth-child(6)  { transition-delay: .50s; }
.timeline.is-in .tl-item:nth-child(7)  { transition-delay: .58s; }
.timeline.is-in .tl-item:nth-child(8)  { transition-delay: .66s; }
.timeline.is-in .tl-item:nth-child(9)  { transition-delay: .74s; }
.timeline.is-in .tl-item:nth-child(10) { transition-delay: .82s; }
.timeline.is-in .tl-item:nth-child(11) { transition-delay: .90s; }
.timeline.is-in .tl-item:nth-child(12) { transition-delay: .98s; }

.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 20px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--g2);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-item.is-key::before {
  width: 14px; height: 14px; left: -32px; top: 18px;
  background: var(--brand-gradient); border-color: transparent;
}
.tl-when { font-size: .8rem; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
.tl-who  { font-size: .98rem; font-weight: 700; margin: 2px 0 2px; }
.tl-what { font-size: .87rem; color: var(--gray); line-height: 1.6; }
.tl-item.is-key {
  background: linear-gradient(90deg, rgba(37,99,235,.06), transparent 70%);
  border-radius: var(--r-sm); padding-left: 14px; margin-left: -10px;
}
.tl-item.is-key .tl-who { color: var(--blue); }

/* ── 인포그래픽 ③ 카드 격자 (용어 등) ────────────────────── */
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
.mini-card {
  padding: 18px 19px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #CBDBF7; }
.mini-card .mc-no {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 7px; background: var(--blue-soft); color: var(--blue);
  font-size: .74rem; font-weight: 800; margin-bottom: 10px;
}
.mini-card h4 { font-size: .97rem; margin-bottom: 6px; }
.mini-card p { font-size: .85rem; color: var(--gray); line-height: 1.6; }
.mini-card .mc-check {
  display: block; margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: .81rem; color: var(--blue);
}

/* ── 인포그래픽 ④ 좌우 대비 패널 ─────────────────────────── */
.vs {
  display: grid; grid-template-columns: 1fr 46px 1fr; gap: 0; align-items: stretch;
}
.vs-col {
  padding: 24px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: #fff;
}
.vs-col.is-ai    { background: linear-gradient(180deg, #F2F7FF, #fff); border-color: #CFE0FB; }
.vs-col.is-human { background: linear-gradient(180deg, #FBF6FF, #fff); border-color: #E2D3FA; }
.vs-col h4 { font-size: .95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.vs-col.is-ai h4    { color: var(--blue); }
.vs-col.is-human h4 { color: var(--purple); }
.vs-col li {
  position: relative; padding: 9px 0 9px 20px; font-size: .88rem;
  color: #33383F; border-bottom: 1px dashed var(--line-soft); line-height: 1.55;
}
.vs-col li:last-child { border-bottom: 0; }
.vs-col li::before {
  content: ''; position: absolute; left: 2px; top: 1.03em;
  width: 6px; height: 6px; border-radius: 50%;
}
.vs-col.is-ai li::before    { background: var(--blue); }
.vs-col.is-human li::before { background: var(--purple); }
.vs-mid {
  display: grid; place-items: center;
  font-size: .76rem; font-weight: 800; color: var(--gray-3); letter-spacing: .06em;
}
.vs-mid span {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

/* ── 인포그래픽 ⑤ 두 제품 비교 카드 ──────────────────────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card {
  position: relative; overflow: hidden;
  padding: 26px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: #fff;
}
.duo-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
}
.duo-card.is-gpt::before    { background: linear-gradient(90deg, #10A37F, #34D399); }
.duo-card.is-claude::before { background: linear-gradient(90deg, #7C34ED, #C084FC); }
.duo-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.duo-card.is-gpt .duo-tag    { background: rgba(16,163,127,.1);  color: #0B7A5E; }
.duo-card.is-claude .duo-tag { background: rgba(124,52,237,.1);  color: #6B21D8; }
.duo-card h4 { font-size: 1.12rem; margin: 13px 0 8px; }
.duo-card p  { font-size: .89rem; color: var(--gray); line-height: 1.65; }
.duo-card ul { margin-top: 14px; display: grid; gap: 7px; }
.duo-card li { font-size: .85rem; color: #33383F; padding-left: 17px; position: relative; }
.duo-card li::before { content: '·'; position: absolute; left: 5px; top: -.08em; font-size: 1.2rem; color: var(--gray-3); }

/* ── 인포그래픽 ⑥ 질문 → 결정 단계 ───────────────────────── */
.qsteps { display: grid; gap: 10px; }
.qstep {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.qstep:hover { border-color: #C6D8F8; box-shadow: var(--shadow-1); }
.qstep .qn {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--brand-gradient); color: #fff; font-size: .84rem; font-weight: 800;
}
.qstep .qq { font-weight: 700; font-size: .97rem; margin-bottom: 10px; }
.qstep .qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qstep .qa > div {
  padding: 10px 13px; border-radius: var(--r-sm); font-size: .84rem; line-height: 1.5;
}
.qstep .yes { background: var(--blue-soft); color: #1E3A8A; }
.qstep .no  { background: var(--bg-mute);   color: var(--gray); }
.qstep .yes b, .qstep .no b { display: block; font-size: .74rem; letter-spacing: .06em; margin-bottom: 3px; opacity: .75; }

/* ── 인포그래픽 ⑦ 수치 강조 ──────────────────────────────── */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.kpi {
  padding: 20px 18px; border-radius: var(--r); text-align: center;
  background: #fff; border: 1px solid var(--line);
}
.kpi b {
  display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi span { display: block; margin-top: 4px; font-size: .83rem; color: var(--gray-2); }

/* ── 인포그래픽 ⑧ 큰 인용 ────────────────────────────────── */
.pull {
  position: relative; padding: 30px 30px 30px 58px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0E1729, #1B2C4C);
  color: #fff;
}
.pull::before {
  content: '“'; position: absolute; left: 22px; top: 6px;
  font-size: 3.4rem; line-height: 1; color: rgba(255,255,255,.22); font-family: Georgia, serif;
}
.pull p { font-size: 1.08rem; line-height: 1.7; color: rgba(255,255,255,.94); font-weight: 600; }
.pull cite { display: block; margin-top: 10px; font-style: normal; font-size: .84rem; color: rgba(255,255,255,.5); }

/* ── 본문 이미지 ──────────────────────────────────────────── */
.rd-fig { margin-top: 26px; }
.rd-fig img {
  width: 100%; border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.rd-fig figcaption { margin-top: 9px; font-size: .82rem; color: var(--gray-2); text-align: center; }

/* ── 컬러 · 폰트 예시 모음 (부록 B) ──────────────────────── */
.palette-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.palette-item { margin: 0; }
.palette-item img {
  width: 100%; border-radius: var(--r-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.palette-item img:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

@media (max-width: 560px) {
  .palette-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── 한 줄 정리 / 이어서 ──────────────────────────────────── */
.rd-summary {
  display: flex; gap: 15px; align-items: flex-start;
  margin-top: 46px !important; padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--green-soft); border: 1px solid #C4E9D2;
}
.rd-summary .ico {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: var(--green); color: #fff; font-size: .9rem;
}
.rd-summary b { display: block; color: var(--green); font-size: .82rem; letter-spacing: .06em; margin-bottom: 4px; }
.rd-summary p { font-size: .95rem; color: #14532D; }

.rd-next {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px !important; padding: 16px 22px;
  border-radius: var(--r); background: var(--bg-soft); border: 1px dashed var(--line);
  font-size: .9rem; color: var(--gray);
}
.rd-next b { color: var(--blue); }

/* ── 다음 챕터 이동 ───────────────────────────────────────── */
.chapter-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 60px 0 0; padding-top: 34px; border-top: 1px solid var(--line);
}
.cn-item {
  padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line);
  background: #fff; transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.cn-item:hover { border-color: #BFD3F5; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.cn-item small { display: block; font-size: .76rem; color: var(--gray-3); letter-spacing: .08em; margin-bottom: 6px; }
.cn-item b { font-size: .97rem; }
.cn-item.is-next { text-align: right; }
.cn-item.is-empty { background: var(--bg-soft); border-style: dashed; pointer-events: none; opacity: .55; }
.cn-item.is-locked b { color: var(--gray-2); }

/* ── 잠긴 본문 안내 ───────────────────────────────────────── */
.locked-page {
  max-width: 560px; margin: 80px auto; padding: 46px 34px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: #fff; box-shadow: var(--shadow-2);
}
.locked-page .lp-ico {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.locked-page h2 { font-size: 1.35rem; margin-bottom: 10px; }
.locked-page p { color: var(--gray); font-size: .95rem; }
.locked-page .lp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ── 미리보기(맛보기) 흐림 처리 ──────────────────────────── */
.preview-fade { position: relative; max-height: 320px; overflow: hidden; }
.preview-fade::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 190px;
  background: linear-gradient(180deg, transparent, #fff 78%);
}

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .rd-layout { grid-template-columns: 1fr; gap: 0; padding-block-start: 34px; }
  .rd-side {
    position: static; margin-bottom: 30px; padding: 18px 20px;
    border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft);
  }
  .rd-side ol { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); display: grid; border-left: 0; }
  .rd-side a { padding: 6px 0; border-left: 0; }
  .rd-side a.is-active { border-left: 0; }
}
@media (max-width: 760px) {
  .duo, .qstep .qa { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; gap: 12px; }
  .vs-mid { padding: 2px 0; }
  .vs-mid span { width: 32px; height: 32px; font-size: .72rem; }
  .flow { flex-direction: column; gap: 4px; padding: 20px 18px; }
  .flow-arrow { flex: 0 0 24px; transform: rotate(90deg); }
  .chapter-nav { grid-template-columns: 1fr; }
  .cn-item.is-next { text-align: left; }
  .pull { padding: 24px 22px 24px 22px; }
  .pull::before { position: static; display: block; font-size: 2.4rem; }
}

/* ── 휴대폰 ───────────────────────────────────────────────── */
@media (max-width: 560px) {
  .rd-head { padding-bottom: 28px; }
  .rd-head h1 { max-width: none; }
  .rd-meta { gap: 6px 14px; font-size: .8rem; }

  .rd-body { font-size: .97rem; }
  .rd-body > * + * { margin-top: 17px; }
  .rd-h2 { margin-top: 46px !important; }
  .rd-h3 { margin-top: 30px !important; }

  /* 상자 안쪽 여백을 줄여 글자가 들어갈 자리를 넓힌다 */
  .callout { padding: 17px 18px 17px 19px; }
  .callout p, .callout li { font-size: .9rem; }
  .prompt-box pre { padding: 15px 14px; font-size: .82rem; line-height: 1.65; }
  .prompt-box .p-label { padding: 10px 14px; font-size: .76rem; }
  .prompt-box .p-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .rd-table { min-width: 420px; font-size: .87rem; }
  .rd-table th, .rd-table td { padding: 11px 13px; }

  .mini-card { padding: 15px 16px; }
  .vs-col { padding: 19px 17px; }
  .duo-card { padding: 20px 18px; }
  .qstep { padding: 15px 16px; gap: 12px; }

  .rd-summary { padding: 18px 18px; gap: 12px; }
  .rd-next { padding: 14px 17px; flex-wrap: wrap; }
  .cn-item { padding: 16px 17px; }

  .locked-page { margin: 44px auto; padding: 34px 20px; border-radius: var(--r-lg); }
  .locked-page h2 { font-size: 1.18rem; }

  .rd-side { padding: 15px 16px; }
  .rd-side ol { grid-template-columns: 1fr; }
}
