/* 디자인 파일
   색깔은 맨 위 :root 에 모아뒀어요. 여기 숫자만 바꾸면 사이트 전체 색이 바뀌어요. */

:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: #22201c;
  --muted: #6b665e;
  --line: #ebe4d8;
  --primary: #ff6b35;       /* 주황: 출발! 느낌 */
  --primary-text: #ffffff;
  --primary-soft: #fff0e8;
  --caution-bg: #fff8e1;
  --caution-line: #f2dc9b;
  --radius: 14px;
  --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --surface: #26241f;
    --text: #f3efe8;
    --muted: #a8a299;
    --line: #3a372f;
    --primary: #ff8a5c;
    --primary-text: #1b1a18;
    --primary-soft: #3a2a20;
    --caution-bg: #2e2918;
    --caution-line: #574b22;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;          /* 한글 단어가 중간에 끊기지 않게 */
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); }
h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 1.2rem; }
.muted { color: var(--muted); }

/* ---------- 위쪽 바 + 메뉴 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* 휴대폰: 메뉴를 화면 아래에 고정 (엄지로 누르기 편하게) */
@media (max-width: 719px) {
  .nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .nav a {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    border-radius: 0;
    font-size: 0.7rem;
  }
  .nav .nav-icon { font-size: 1.3rem; }
  body { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }
}

/* 태블릿·PC: 메뉴를 위쪽에 가로로 */
@media (min-width: 720px) {
  .nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
}

/* ---------- 본문 ---------- */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.hero {
  padding: 28px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: var(--primary-soft);
}
.hero h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 4px; }
.hero-tagline { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }

.section-title { margin: 8px 0 12px; }

/* 카드 목록: 휴대폰 1줄, 태블릿 2줄, PC 3줄 */
.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card-icon { font-size: 1.8rem; }
.card-step {
  position: absolute;
  top: 14px; right: 14px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- 버튼, 안내 상자 ---------- */
.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  min-height: 44px;              /* 손가락으로 누르기 좋은 크기 */
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

.link-button {
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.notice {
  padding: 16px;
  margin: 12px 0;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--surface);
}
.notice p { margin: 4px 0; }

/* '예시', '참고용' 표시에 쓸 작은 딱지 (다음 단계부터 사용) */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff3c4;
  color: #6b5200;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.small { font-size: 0.85rem; }

/* ---------- 기능 1: 분야 가이드 ---------- */
/* 분야 버튼: 휴대폰 4칸, 태블릿 이상 8칸 */
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 24px;
}
@media (min-width: 720px) { .field-grid { grid-template-columns: repeat(8, 1fr); } }

.field-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 76px;
  padding: 10px 4px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.25;
  cursor: pointer;
}
.field-chip-icon { font-size: 1.6rem; }
.field-chip:hover { border-color: var(--primary); }
.field-chip[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.guide { scroll-margin-top: 80px; }   /* 위쪽 바에 가려지지 않게 */
#guide-body { scroll-margin-top: 80px; }

.guide-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.guide-head h2 { margin: 0; font-size: 1.4rem; }
.guide-head p { margin: 2px 0 0; }
.guide-icon {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  font-size: 1.8rem;
}

/* 세 가지 카드: 휴대폰 1줄, PC 3줄 */
.guide-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }

.guide-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.guide-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.05rem; }
.num {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 0.8rem;
}

.type-list, .tip-list { margin: 0; padding: 0; list-style: none; }
.type-list li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.type-list li:first-child { border-top: none; }
.type-list span { color: var(--muted); font-size: 0.9rem; }
.tip-list li { position: relative; padding: 6px 0 6px 20px; }
.tip-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.step-list { margin: 0 0 12px; padding-left: 20px; }
.step-list li { padding: 4px 0; }

.example-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
}
.example-box ul { margin: 6px 0 0; padding-left: 20px; }

.caution {
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--caution-bg);
  border: 1px solid var(--caution-line);
}
.caution p { margin: 6px 0 0; }

.builder {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  background: var(--surface);
}
.builder h3 { margin: 0 0 4px; }
.builder-fields { display: grid; gap: 12px; margin: 16px 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .builder-fields { grid-template-columns: 1fr 1fr; } }
.builder label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.builder input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;               /* 16px 미만이면 아이폰이 화면을 자동 확대해요 */
}
.builder input::placeholder { color: var(--muted); opacity: 0.7; font-weight: 400; }
.builder input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.sentence {
  padding: 14px;
  border-radius: 10px;
  background: var(--primary-soft);
}
.sentence p { margin: 0; }
.sentence p + p { margin-top: 6px; }
.sentence b { color: var(--primary); }
.sentence .blank { color: var(--muted); }

/* ---------- 공통: 입력 상자, 패널 ---------- */
.panel {
  margin: 0 0 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 80px;
}
.panel-title { margin: 0 0 8px; font-size: 1.05rem; }
.field-label { display: block; margin-bottom: 6px; font-weight: 700; }
.text-input, .idea-form textarea, .idea-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.idea-form textarea { resize: vertical; }
.text-input::placeholder, .idea-form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.text-input:focus, .idea-form textarea:focus, .idea-form select:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}
.chip {
  display: inline-block;
  padding: 1px 8px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}
.plain-list { margin: 0 0 8px; padding-left: 20px; }
.plain-list li { padding: 3px 0; }

/* ---------- 기능 2: 아이디어 체크 ---------- */
.idea-form { margin-top: 16px; }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.form-row .button { margin-top: 0; }
.inline-label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
#idea-result { scroll-margin-top: 80px; margin-top: 16px; }

.score-panel { border: 2px solid var(--primary); }
.score-top { display: flex; gap: 16px; align-items: center; }
.score-ring {
  flex: none;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--line) 0);
}
.score-ring > div {
  width: 82px; height: 82px;
  display: grid; place-content: center;
  border-radius: 50%;
  background: var(--surface);
  text-align: center;
  line-height: 1.1;
}
.score-ring b { font-size: 1.9rem; color: var(--primary); }
.score-ring span { font-size: 0.75rem; color: var(--muted); }
.score-kicker { margin: 0; font-weight: 700; }
.score-label { margin: 2px 0 4px; font-size: 1.35rem; }
.score-top .small { margin: 0; }

.score-parts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .score-parts { grid-template-columns: 1fr 1fr; } }
.part-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.95rem; }
.bar { height: 8px; margin: 4px 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.score-parts p { margin: 0; }
.disclaimer {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--caution-bg);
  border: 1px solid var(--caution-line);
}

.link-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
.search-link {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.search-link:hover { border-color: var(--primary); }
.search-link b { color: var(--primary); }
.search-link span { font-size: 0.85rem; color: var(--muted); }

/* 설문 버튼: 동그란 칩 모양 라디오 */
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-block;
  padding: 10px 14px;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.segmented input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.segmented input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.note-form { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .note-form { grid-template-columns: 1fr 2fr auto; } }
.note-form .button { margin-top: 0; }
.note-list { list-style: none; margin: 12px 0 0; padding: 0; }
.note-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

/* ---------- 기능 3: 창업 퀘스트 ---------- */
.progress {
  display: block;
  height: 12px;
  margin: 12px 0 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ffb347);
  transition: width 0.4s ease;
}

.quest-status { border: 2px solid var(--primary); }
.quest-level { display: flex; align-items: center; gap: 12px; }
.quest-level h2 { margin: 0; font-size: 1.3rem; }
.quest-level p { margin: 0; }
.level-badge {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 800;
}
.xp {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}
.next-task { margin: 8px 0 0; }

/* 퀘스트 지도: 왼쪽에 세로 길을 그리고 단계를 이어요 */
.quest-map { list-style: none; margin: 16px 0; padding: 0; position: relative; }
.quest-map::before {
  content: "";
  position: absolute;
  left: 31px; top: 28px; bottom: 28px;
  width: 4px;
  border-radius: 2px;
  background: var(--line);
}
.quest-stage { position: relative; margin-bottom: 12px; }
.quest-stage details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quest-stage details[open] { border-color: var(--primary); }
.quest-stage summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 8px;
  list-style: none;
  cursor: pointer;
}
.quest-stage summary::-webkit-details-marker { display: none; }
.stage-icon {
  flex: none;
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-left: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--line);
  font-size: 1.4rem;
}
.quest-stage.done .stage-icon { border-color: var(--primary); background: var(--primary-soft); }
.stage-text { display: flex; flex-direction: column; line-height: 1.3; }
.stage-meta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.stage-state { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.stage-body { padding: 0 16px 16px; }
.stage-goal { margin: 0 0 4px; font-weight: 600; }

.task-list { list-style: none; margin: 12px 0; padding: 0; }
.task-list > li { padding: 6px 0; border-top: 1px solid var(--line); }
.task { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 8px; cursor: pointer; }
.task input {
  flex: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.task input:checked + span { color: var(--muted); text-decoration: line-through; }
.task-link { display: inline-block; margin-left: 32px; }
.task-hint {
  margin: 4px 0 0 32px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--caution-bg);
}
.memo-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.memo-label textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  resize: vertical;
}
.memo-label textarea::placeholder { color: var(--muted); opacity: 0.7; }
.memo-label textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }

/* 퀘스트 클리어 알림 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 720px) { .toast { bottom: 32px; } }

/* 첫 화면 진행률 카드 */
.home-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--text);
  text-decoration: none;
}
.home-progress:hover { border-color: var(--primary); }
.home-progress-text { flex: 1; display: flex; flex-direction: column; }
.home-progress .progress { margin: 6px 0 4px; }

/* 움직임을 줄이고 싶은 사람 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .progress i, .toast, .card { transition: none; }
}

/* ---------- 기능 4: 지원 사업·대회 ---------- */
.support-field { margin-top: 16px; max-width: 320px; }
.kstartup-tip { border: 2px solid var(--primary); }
.kstartup-tip .step-list { margin-bottom: 8px; }

.resource-grid {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .resource-grid { grid-template-columns: repeat(3, 1fr); } }

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.resource-card h3 { margin: 8px 0 0; font-size: 1.02rem; line-height: 1.35; }
.resource-card .small { margin: 2px 0 0; }
.resource-desc { flex: 1; margin: 8px 0 12px; font-size: 0.92rem; }
.resource-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.resource-tags .chip { margin: 0; font-size: 0.75rem; }
.badge.official { background: #dff3e4; color: #1d6b35; }
.small-button { align-self: flex-start; margin-top: 0; padding: 10px 16px; font-size: 0.9rem; }

.more-resources { margin-bottom: 16px; }
.more-resources summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}
.more-resources[open] summary { margin-bottom: 8px; }

/* ---------- 기능 5: 사업 계획서 초안 ---------- */
.plan-status { border: 2px solid var(--primary); }
.plan-meter-text { margin: 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plan-actions .button { margin-top: 0; }
@media (max-width: 559px) {
  .plan-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .plan-actions .button { padding: 10px 8px; font-size: 0.9rem; text-align: center; }
}
#plan-msg { margin: 8px 0 0; min-height: 1.2em; }
@media (min-width: 900px) { .only-mobile { display: none; } }

/* 태블릿 가로·PC: 왼쪽 입력, 오른쪽 미리보기 */
.plan-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .plan-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .plan-preview { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.plan-preview { scroll-margin-top: 80px; }

.plan-fieldset { min-width: 0; }
.plan-fieldset legend {
  float: left;          /* legend를 상자 안쪽 제목처럼 보이게 */
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.plan-fieldset legend + * { clear: both; }
.plan-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.plan-field label { font-weight: 600; font-size: 0.95rem; }
.plan-field textarea { resize: vertical; }
.plan-notes { margin: 14px 0 0; }

/* 미리보기: 종이 문서처럼 */
.paper {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  line-height: 1.7;
}
.paper-kicker { margin: 0; color: var(--primary); font-weight: 700; font-size: 0.85rem; }
.paper-title { margin: 2px 0 4px; font-size: 1.5rem; }
.paper-oneline { margin: 0; font-weight: 600; }
.paper-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.paper-section { margin-top: 20px; padding-top: 12px; border-top: 2px solid var(--line); }
.paper-section h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--primary); }
.paper-section h4 { margin: 12px 0 2px; font-size: 0.95rem; }
.paper-section p { margin: 0; white-space: pre-wrap; }   /* 줄바꿈 그대로 보여주기 */
.paper-section ul { margin: 0; padding-left: 20px; }
.paper .empty { color: var(--muted); font-style: italic; opacity: 0.8; }
.paper-notice { margin: 24px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.85rem; }

/* 인쇄할 때는 계획서만 */
@media print {
  .topbar, .nav, .footer, .no-print, .toast { display: none !important; }
  body { padding: 0 !important; background: #fff; color: #000; }
  .page { max-width: none; padding: 0; }
  .plan-layout { display: block; }
  .plan-preview { position: static; max-height: none; overflow: visible; }
  .paper { border: none; box-shadow: none; padding: 0; background: #fff; color: #000; }
  .paper-section { break-inside: auto; }
  .paper-section h3, .paper-section h4 { break-after: avoid; }
}

/* ---------- 아래쪽 ---------- */
.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.footer p { margin: 0 0 4px; }
