/* 2027 전도캠프 팀원용 페이지 · 휴대폰 우선 · 초록 배경 */
:root {
  --ink: #ffffff;
  --muted: #e4f2e9;
  --line: rgba(255, 255, 255, 0.35);
  --paper: #3a8a5c;          /* 섹션 배경 (밝은 초록) */
  --bg: #19442c;             /* 페이지 배경 (버튼 색과 같은 진한 초록) */
  --accent: #245c3d;         /* 버튼 배경 (배경보다 약간 밝은 초록) */
  --accent-ink: #ffffff;
  --highlight: #1b4d31;      /* 강조 박스 */
  --gold: #f7e7a1;           /* 제목 포인트 색 */
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: #ffffff; text-underline-offset: 3px; }

.cp {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.cp-hero {
  padding: 36px 4px 24px;
  text-align: center;
}

.cp-kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
}

.cp-hero h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.3;
}

.cp-lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.cp-buttons {
  display: grid;
  gap: 10px;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cp-btn:focus-visible,
.cp-chip:focus-visible,
.cp-files a:focus-visible,
.cp-qr-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.cp-btn-ghost {
  background: transparent;
  color: #ffffff;
}

.cp-btn-wide { width: 100%; }

.cp-section {
  margin-top: 28px;
  padding: 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 12px;
}

.cp-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.cp-sub {
  margin: 22px 0 8px;
  font-size: 18px;
}

.cp-hint,
.cp-small {
  color: var(--muted);
  font-size: 15px;
}

/* 상황 카드 */
.cp-situations {
  display: grid;
  gap: 12px;
}

.cp-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.cp-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cp-card p { margin: 4px 0; }

.cp-say { color: #f1f8f3; }

/* 언어 · 자료 고르기 */
.cp-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.cp-chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: var(--bg);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.cp-chip[aria-pressed="true"] {
  border-color: #ffffff;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.cp-output {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--highlight);
}

.cp-output-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.cp-output-url {
  margin: 0 0 12px;
  font-size: 14px;
  word-break: break-all;
}

.cp-output-actions {
  display: grid;
  gap: 10px;
}

.cp-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.cp-empty {
  margin: 14px 0 0;
  color: var(--muted);
}

/* 그림 뷰어 */
.cp-viewer-stage {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cp-slide {
  display: none;
  margin: 0;
}

.cp-slide.is-active { display: block; }

.cp-slide img {
  width: 100%;
  height: auto;
}

.cp-viewer-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.cp-count {
  font-weight: 700;
  min-width: 64px;
  text-align: center;
}

/* 실습 */
.cp-steps {
  margin: 0;
  padding-left: 22px;
}

.cp-steps li { margin-bottom: 16px; }

.cp-steps p { margin: 2px 0; }

.cp-time {
  font-weight: 700;
  color: var(--gold);
}

.cp-en {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--gold);
  background: var(--highlight);
  font-weight: 700;
}

/* 오프라인 */
.cp-files {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.cp-files a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: var(--bg);
  color: #ffffff;
}

.cp-video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

/* 팀원 QR */
.cp-team { text-align: center; }

.cp-team-qr {
  margin: 12px auto;
  width: 240px;
  height: 240px;
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
}

/* 전체 화면 QR · 스캔을 위해 흰 바탕 유지 */
.cp-qr-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
}

.cp-qr-screen[hidden] { display: none; }

.cp-qr-screen img {
  width: min(88vw, 88vh - 80px, 520px);
  height: auto;
}

.cp-qr-screen p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1d2330;
  text-align: center;
}

.cp-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 44px;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
}

@media (min-width: 640px) {
  .cp-buttons { grid-template-columns: repeat(3, 1fr); }
  .cp-situations { grid-template-columns: 1fr 1fr; }
  .cp-output-actions { grid-template-columns: repeat(3, 1fr); }
  .cp-hero h1 { font-size: 34px; }
}
