/* ============================================================
   워크숍 사전 준비 안내
   타이포그래피 + 여백 + 가는 선. 컬러블록/파스텔카드 배제.
   ============================================================ */

:root {
  --navy: #2C3E50;
  --teal: #1B7A8A;
  --amber: #D4984A;
  --coral: #C75C3A;
  --sage: #5A7D6A;

  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-faint: #888;
  --line: #d9d9d9;
  --line-strong: #1a1a1a;
  --rule: #e5e5e5;
}

* { box-sizing: border-box; }

/* 라이트/다크 모두 자연스럽게 — 박스 배경 없앤 구조라 강제 반전돼도 안전 */
html {
  color-scheme: light dark;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR",
               "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

/* ---------- 표지 ---------- */
.cover {
  padding: 64px 24px 56px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.cover .kicker {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--ink-faint);
  margin: 0 0 20px;
  text-transform: uppercase;
  font-weight: 500;
}
.cover h1 {
  font-family: "Do Hyeon", "Pretendard", sans-serif;
  font-size: 42px;
  margin: 0 0 14px;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.3;
  font-weight: normal;
}
.cover .sub {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-weight: 400;
}
.cover .meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
}
.cover .meta b {
  color: var(--ink);
  font-weight: 600;
}

.back-link {
  margin-top: 28px;
  font-size: 14px;
  color: var(--teal);
}
.back-link a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 1px;
}
.back-link a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ---------- 본문 컨테이너 ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

/* ---------- 개요 ---------- */
.intro-note {
  margin: 0 0 48px;
  padding: 0;
}
.intro-note h2 {
  font-family: "Do Hyeon", sans-serif;
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: normal;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-strong);
}
.intro-note p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}
.intro-note p:last-child { margin-bottom: 0; }

/* ---------- 목차 ---------- */
.toc {
  margin: 0 0 48px;
  padding: 0;
  border: 0;
  background: none;
}
.toc h2 {
  font-family: "Do Hyeon", sans-serif;
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--navy);
  font-weight: normal;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-strong);
}
.toc-group {
  margin: 0 0 22px;
  padding: 0;
  background: none;
  border: 0;
}
.toc-group-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  text-transform: uppercase;
}
.toc-group-head span {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
  text-transform: none;
}
.toc-group ol,
.toc-tail {
  margin: 0;
  padding-left: 24px;
  font-size: 16px;
}
.toc ol li { margin: 8px 0; }
.toc-tail { margin-top: 20px; }
.toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.toc a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ---------- 준비물 ---------- */
.prep {
  margin: 0 0 56px;
  padding: 0;
  background: none;
  border: 0;
}
.prep h2 {
  font-family: "Do Hyeon", sans-serif;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--navy);
  font-weight: normal;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-strong);
}
.prep .lead {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}
.prep ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prep li {
  padding: 12px 0;
  font-size: 16px;
  line-height: 1.7;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.prep li:last-child { border-bottom: 0; }
.prep li::before {
  content: "□";
  color: var(--ink-faint);
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ---------- 섹션 ---------- */
.section {
  margin: 0 0 64px;
  scroll-margin-top: 20px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 0 10px;
  margin-bottom: 32px;
  background: none;
  color: var(--ink);
  border-radius: 0;
  box-shadow: none;
  border-bottom: 2px solid var(--line-strong);
}
.section-head .big-num {
  font-family: "Do Hyeon", sans-serif;
  font-size: 40px;
  background: none;
  color: var(--teal);
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline;
  font-weight: normal;
  line-height: 1;
  min-width: 32px;
}
.section-head h2 {
  margin: 0;
  font-family: "Do Hyeon", sans-serif;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -0.3px;
  flex: 1;
  font-weight: normal;
}
.section-head .time {
  margin-left: auto;
  font-size: 13px;
  background: none;
  color: var(--ink-faint);
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---------- 단계(스텝) ---------- */
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: 0; }

.step-num {
  width: 32px;
  height: 32px;
  background: none;
  color: var(--teal);
  font-family: "Do Hyeon", sans-serif;
  font-size: 22px;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: none;
  border-radius: 0;
  line-height: 1;
  padding-top: 4px;
}

.step-body h3 {
  margin: 0 0 10px;
  font-family: "Pretendard", sans-serif;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.3px;
  font-weight: 600;
  line-height: 1.5;
}
.step-body p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
}
.step-body ul, .step-body ol {
  margin: 10px 0 14px 0;
  padding-left: 22px;
}
.step-body li {
  margin: 6px 0;
  font-size: 15.5px;
  line-height: 1.8;
}
.step-body b {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- 스크린샷 + 하이라이트 ---------- */
.shot {
  position: relative;
  display: block;
  margin: 18px 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: none;
  box-shadow: none;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* 하이라이트 박스 (캡처 내부 강조) */
.hl {
  position: absolute;
  border: 3px solid var(--coral);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
  pointer-events: none;
}
.hl .badge {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hl.bl .badge { top: auto; bottom: -14px; left: -14px; }
.hl.br .badge { top: auto; bottom: -14px; left: auto; right: -14px; }
.hl.tr .badge { left: auto; right: -14px; }

.shot-caption {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 8px 2px 0;
  line-height: 1.7;
}
.shot-caption b {
  color: var(--coral);
  font-weight: 600;
}

/* ---------- 알림 블록 (박스 없이 좌측 라벨) ---------- */
.note, .tip, .warn, .danger {
  margin: 18px 0;
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--line-strong);
  border-radius: 0;
  background: none;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink);
}
.note        { border-left-color: var(--teal);  }
.tip         { border-left-color: var(--sage);  }
.warn        { border-left-color: var(--amber); }
.danger      { border-left-color: var(--coral); }

.note::before,
.tip::before,
.warn::before,
.danger::before {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.note::before   { content: "알아두세요"; color: var(--teal);  }
.tip::before    { content: "도움말";    color: var(--sage);  }
.warn::before   { content: "주의";      color: var(--amber); }
.danger::before { content: "중요";      color: var(--coral); }

/* ---------- 용어 풀어쓰기 ---------- */
dfn {
  font-style: normal;
  background: none;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px dotted var(--amber);
  cursor: help;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- 키 / 버튼 라벨 (인라인 코드 느낌) ---------- */
kbd, .btn-label {
  display: inline-block;
  padding: 1px 8px;
  background: none;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: "Pretendard", "Noto Sans Mono", monospace;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: baseline;
}
.btn-label {
  color: var(--teal);
  border-color: var(--teal);
}

/* ---------- 태그 (추천 등) ---------- */
.tag-ok {
  display: inline-block;
  background: none;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
  border: 1px solid var(--sage);
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 16px;
}
.faq details {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 14px 0;
  margin: 0;
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-left: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--teal);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
}
.faq details[open] summary::before { content: "−"; }
.faq details[open] { background: none; border-color: var(--rule); }
.faq details p {
  margin: 10px 0 4px 20px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ---------- 맺음말 ---------- */
.ending {
  margin-top: 64px;
  padding: 40px 0 0;
  border-top: 2px solid var(--line-strong);
  background: none;
  color: var(--ink);
  border-radius: 0;
  text-align: left;
}
.ending h2 {
  font-family: "Do Hyeon", sans-serif;
  font-size: 24px;
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: normal;
}
.ending p {
  font-size: 16px;
  margin: 8px 0;
  color: var(--ink);
  line-height: 1.85;
}
.ending .back-link a {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ---------- 반응형 ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cover { padding: 44px 20px 40px; }
  .cover h1 { font-size: 32px; }
  .cover .sub { font-size: 16px; }
  .wrap { padding: 32px 20px 60px; }
  .section { margin-bottom: 48px; }
  .section-head { gap: 12px; flex-wrap: wrap; }
  .section-head .big-num { font-size: 32px; min-width: 26px; }
  .section-head h2 { font-size: 20px; }
  .section-head .time { font-size: 12px; }
  .step { grid-template-columns: 30px 1fr; gap: 14px; padding: 22px 0; }
  .step-num { width: 24px; height: 24px; font-size: 18px; padding-top: 2px; }
  .step-body h3 { font-size: 17px; }
  .step-body p { font-size: 15px; }
  .hl .badge { width: 22px; height: 22px; font-size: 12px; top: -11px; left: -11px; }
  .note, .tip, .warn, .danger { font-size: 14.5px; padding-left: 14px; }
  .faq summary { font-size: 15px; }
}

/* ---------- 다크모드 색상 재정의 ---------- */
/* 브라우저 시스템 다크모드일 때. 배경/텍스트/강조색을 명시해서
   카카오톡 인앱 같은 "자동 반전 안 하는" 브라우저에서도 가독성 유지. */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #c8d5e0;
    --teal: #5cc4d4;
    --amber: #e8b474;
    --coral: #e08470;
    --sage: #8cb4a0;

    --ink: #e8e8e8;
    --ink-soft: #b0b0b0;
    --ink-faint: #808080;
    --line: #3a3a3a;
    --line-strong: #6a6a6a;
    --rule: #2a2a2a;
  }
  body { background-color: #121212; }

  kbd, .btn-label {
    border-color: var(--line-strong);
    color: var(--ink);
  }
  .btn-label {
    color: var(--teal);
    border-color: var(--teal);
  }
  .step-body b { color: #f0f0f0; }
  .faq summary { color: var(--ink); }
  .faq details p { color: var(--ink-soft); }
}

/* ---------- 인쇄 ---------- */
@media print {
  body { font-size: 12pt; color: #000; }
  .cover, .ending { background: none; color: #000; border-color: #000; }
  .hl { animation: none; }
  .section { page-break-inside: avoid; }
  a { color: #000; }
  .back-link { display: none; }
}
