/* quali-fit 로드맵/진행 docs — 순수 정적 CSS (빌드 없음).
   원칙: 정적·확실, 노트북/모니터 폭 기준, 인쇄(A4) 가능, 외부 의존 없음. */

:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --soft: #f8fafc;
  --accent: #2563eb;
  --done: #16a34a;
  --next: #d97706;
  --later: #94a3b8;
  --maxw: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.65;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { padding-top: 28px; padding-bottom: 22px; }
header.site h1 { margin: 0 0 6px; font-size: 26px; }
header.site p { margin: 0; color: var(--muted); }
.updated { font-size: 13px; color: var(--muted); margin-top: 10px; }

main .wrap { padding-top: 8px; padding-bottom: 48px; }

section.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 20px 0;
}
section.card > h2 {
  margin: 0 0 14px;
  font-size: 19px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
section.card > h2 .num { color: var(--accent); margin-right: 8px; }

p.lead { color: var(--muted); margin-top: 0; }

/* 우리가 일하는 법 — 단계 흐름 (순수 CSS, JS 없음) */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 4px;
}
.flow .step {
  flex: 1 1 150px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.flow .step .k { font-weight: 700; display: block; }
.flow .step .d { font-size: 13px; color: var(--muted); }
.flow .arrow { align-self: center; color: var(--later); font-weight: 700; }

/* 상태 뱃지 */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.badge.done { background: #dcfce7; color: var(--done); }
.badge.next { background: #fef3c7; color: var(--next); }
.badge.later { background: #f1f5f9; color: var(--later); }

/* 주차별 진행 로그 */
.week {
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 16px;
  margin: 0 0 4px;
}
.week + .week { margin-top: 18px; }
.week.current { border-left-color: var(--accent); }
.week h3 { margin: 0 0 2px; font-size: 16px; }
.week .range { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.week ul { margin: 8px 0 0; padding-left: 18px; }
.week li { margin: 7px 0; }
.week .ref { color: var(--muted); font-size: 13px; }

/* 근거 칩: PR / 이슈 / 배포 화면 — 한눈에 구분 + 링크 */
.refs { display: inline; }
.refs a {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 0 7px;
  margin: 2px 3px 0 0;
  border-radius: 5px;
  border: 1px solid;
  text-decoration: none;
  white-space: nowrap;
}
.refs a.pr   { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.refs a.iss  { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
.refs a.live { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.refs a:hover { filter: brightness(0.96); }

.legend { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

.ver-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 2px;
}

/* 로드맵 */
.road { list-style: none; margin: 0; padding: 0; }
.road li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.road li:last-child { border-bottom: none; }
.road .ver { font-weight: 700; margin-right: 10px; }
.road .desc { color: var(--muted); }

table.vh { width: 100%; border-collapse: collapse; font-size: 14px; }
table.vh th, table.vh td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
table.vh th { color: var(--muted); font-weight: 600; }
table.vh td.v { font-weight: 700; white-space: nowrap; }

a { color: var(--accent); }
footer.site { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0 40px; }

/* 진행 보드 (다음 → 진행 중 → 완료) */
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.col {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  padding: 4px 4px 12px;
}
.col-head .ico { font-size: 26px; line-height: 1; }
.col-todo .col-head { color: #b45309; }
.col-doing .col-head { color: #1d4ed8; }
.col-done  .col-head { color: #15803d; }

.kanban {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 5px solid var(--later);
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 10px;
}
.col-todo  .kanban { border-left-color: #d97706; }
.col-doing .kanban { border-left-color: #2563eb; }
.col-done  .kanban { border-left-color: #16a34a; }
.kanban:last-child { margin-bottom: 0; }
.kanban.dim { opacity: 0.72; }
.kanban .title { font-weight: 700; font-size: 15px; }
.kanban .note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kanban .meta { margin-top: 9px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kanban .date { font-size: 12.5px; font-weight: 700; color: #15803d; }
.kanban .more { font-size: 13px; font-weight: 700; text-decoration: none; }
.kanban .more:hover { text-decoration: underline; }

.vchip {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  color: #334155; background: #eef2ff;
  border: 1px solid #e0e7ff; border-radius: 5px;
  padding: 0 6px;
}
.vchip.later { color: var(--muted); background: var(--soft); border-color: var(--line); }

/* 주차 태그 */
.wk-tag {
  display: inline-block;
  font-size: 13px; font-weight: 800;
  color: #475569; background: var(--soft);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 9px; margin-right: 8px;
}
.wk-tag.now { color: #fff; background: var(--accent); border-color: var(--accent); }

/* 버전 표 — 완성 날짜 열 */
table.vh td.d { white-space: nowrap; color: var(--muted); font-weight: 600; }
table.vh tr.cur td { background: #eff6ff; }

/* 좁은 화면(노트북 작은 폭/태블릿)에서 보드는 세로로 쌓기 */
@media (max-width: 760px) {
  .board { grid-template-columns: 1fr; }
}

/* 인쇄(A4) — 주간 성과보고 출력용 */
@media print {
  .board { grid-template-columns: repeat(3, 1fr); }
  .col, .kanban { break-inside: avoid; }
  body { background: #fff; }
  section.card { border: none; padding: 8px 0; margin: 8px 0; page-break-inside: avoid; }
  header.site { border-bottom: 1px solid #000; }
  a { color: #000; text-decoration: none; }
  .badge { border: 1px solid #999; }
}
