/* 학부모 화면: 학생 화면과 같은 브랜드(딥그린, 오렌지, 라이트)지만 어른 눈높이로 차분하게 */

/* 관리자 단계 탭 오른쪽 끝의 학부모 탭 */
.stage-tabs .spacer { flex: 1; }

/* 로그인 */
.pa-login { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.pa-login-in { width: 100%; max-width: 480px; display: grid; gap: 18px; justify-items: center; }
.pa-logo { height: 52px; display: block; }
.pa-card { width: 100%; background: #fff; border-radius: 24px; padding: 30px 26px; }
.pa-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pa-card h1 { margin: 6px 0 8px; font-size: 26px; font-weight: 700; color: var(--brand); }
.pa-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pa-demo { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: #a53a14; font-size: 14px; font-weight: 600; }
.pa-form { display: grid; gap: 16px; }
.pa-choices { display: grid; gap: 8px; }
.pa-choices .k-btn { justify-content: space-between; background: var(--sky); }
.pa-choices .k-btn span { font-size: 14px; font-weight: 500; color: var(--muted); }
.pa-links { font-size: 14px; color: var(--muted); }
.pa-links a { color: var(--muted); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* 머리와 자녀 고르기 */
.pa-badge { background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pa-main { display: grid; gap: 36px; padding-top: 4px; }
.pa-kids { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-kids a { text-decoration: none; background: #fff; color: var(--brand); font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.pa-kids a[aria-current="true"] { background: var(--brand); color: #fff; }
.pa-kids a.add { background: transparent; color: var(--muted); }
.pa-kids .icon { width: 16px; height: 16px; }

.pa-hero { background: var(--brand); color: #fff; border-radius: 24px; padding: 28px 28px 24px; display: grid; gap: 4px; }
.pa-hero .t { font-size: 15px; font-weight: 600; opacity: .75; }
.pa-hero h1 { margin: 0 0 18px; font-size: 30px; font-weight: 500; line-height: 1.3; }
.pa-hero h1 b { font-weight: 700; color: #ffd2c2; }
.pa-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pa-sum > div { background: rgba(255, 255, 255, .1); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.pa-sum span { font-size: 14px; font-weight: 600; opacity: .75; }
.pa-sum b { font-size: 30px; font-weight: 700; line-height: 1.2; }
.pa-sum b em { font-style: normal; font-size: 18px; margin-left: 2px; font-weight: 600; }
.pa-sum small { font-size: 13px; opacity: .75; display: inline-flex; align-items: center; gap: 5px; }
.pa-sum small .icon { width: 14px; height: 14px; }

/* 섹션 */
.pa-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pa-sec-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand); }
.pa-sec-head > span { color: var(--muted); font-size: 14px; flex: 1; }
.pa-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* 단계별 기록: 단계마다 한 줄씩 크게, 열리기 전 단계는 안내 한 줄만 */
.pa-phases { display: grid; gap: 12px; }
.pa-phase { background: #fff; border-radius: 22px; padding: 22px 24px; display: grid; gap: 16px; }
.pa-phase.upcoming { background: transparent; border: 2px dashed #dfe4e2; padding: 18px 22px; gap: 8px; }
.pa-phase-head { display: flex; align-items: center; gap: 12px; }
.pa-phase-head .no { width: 42px; height: 42px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 16px; flex: none; }
.pa-phase.upcoming .no { background: var(--sky); color: var(--muted); }
.pa-phase-head > div { flex: 1; display: grid; gap: 2px; }
.pa-phase-head b { font-size: 21px; color: var(--brand); }
.pa-phase.upcoming .pa-phase-head b { color: var(--muted); }
.pa-phase-head > div span { font-size: 14px; color: var(--muted); }
.pa-pill { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--sky); color: var(--muted); white-space: nowrap; }
.pa-pill.open { background: var(--accent-soft); color: #c2441a; }
.pa-pill.closed { background: var(--brand-soft); color: var(--brand); }
.pa-wait { margin: 0 0 0 54px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.pa-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pa-tile { background: var(--sky); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.pa-tile .lb { font-size: 14px; color: var(--muted); font-weight: 600; }
.pa-tile .v { font-size: 22px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.pa-tile.done .v { color: #1f7a52; }
.pa-tile .v .icon { width: 22px; height: 22px; stroke-width: 3; }
.pa-tile .sub { font-size: 14px; color: var(--muted); }
.pa-bar { height: 8px; border-radius: 99px; background: #e2e7e5; overflow: hidden; margin-top: 4px; }
.pa-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pa-ws { display: flex; gap: 8px; margin-top: 6px; }
.pa-ws img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: #fff; }
.pa-tile .pa-qa { background: #fff; margin-top: 6px; }
.pa-qa { background: var(--sky); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.pa-qa p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.pa-qa b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

/* 특이사항 */
.pa-box { background: #fff; border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
.pa-ta { width: 100%; min-height: 120px; resize: vertical; border: 0; background: var(--sky); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); outline: none; }
.pa-ta:focus { background: #eceff0; }
.pa-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pa-row .sp { flex: 1; }

/* 캠프 사진 */
.pa-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pa-ph { border: 0; padding: 0; background: #e6eae8; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.pa-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
@media (hover: hover) { .pa-ph:hover img { transform: scale(1.03); } }
.pa-viewer { flex-direction: column; gap: 14px; }
.pa-viewer img { max-height: calc(100dvh - 120px); }
.pa-viewer .pa-save { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--accent, #ff6334); color: #fff; font: inherit; font-size: 16px; font-weight: 700; padding: 12px 20px; border-radius: 14px; cursor: pointer; }
.pa-viewer .pa-save .icon { width: 18px; height: 18px; }

/* 비어 있을 때와 리포트 */
.pa-empty { background: #fff; border-radius: 20px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; }
.pa-empty .ic, .pa-report .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.pa-empty .ic .icon { width: 24px; height: 24px; }
.pa-empty b { display: block; font-size: 17px; color: var(--brand); margin-bottom: 2px; }
.pa-empty span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.pa-report { background: #fff; border-radius: 20px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.pa-report .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.pa-report .ic .icon { width: 24px; height: 24px; }
.pa-report > div:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.pa-report b { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.pa-report span { font-size: 13px; color: var(--muted); }

/* 관리자 학부모 탭 */
.pa-admin-grid .cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-note-cell { max-width: 360px; }
.pa-note-text { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }

@media (max-width: 760px) {
  .pa-sum { grid-template-columns: 1fr; }
  .pa-sum > div { grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 16px; }
  .pa-sum b { font-size: 24px; grid-row: 1 / 3; grid-column: 2; align-self: center; }
}
@media (max-width: 560px) {
  .pa-hero { padding: 22px 20px; }
  .pa-hero h1 { font-size: 24px; }
  .pa-phase { padding: 18px; }
  .pa-wait { margin-left: 0; }
  .pa-photos { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pa-ph { border-radius: 10px; aspect-ratio: 1; }
  .pa-report { flex-wrap: wrap; }
  .pa-report .k-btn { width: 100%; }
  .pa-sec-head { flex-wrap: wrap; }
  .pa-tiles { grid-template-columns: 1fr; }
}

/* 우리 아이 서울대 탐방(보물찾기 포토존 사진과 수료증) */
.pa-cert { display: grid; gap: 8px; justify-items: center; width: 100%; border: 0; background: #fff; border-radius: 18px; padding: 16px; cursor: zoom-in; font: inherit; color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.pa-cert img { width: min(320px, 100%); border-radius: 10px; box-shadow: 0 8px 22px rgba(16, 75, 58, .18); }
.pa-cert span { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.pa-explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pa-explore .pa-ph { aspect-ratio: 3 / 4; position: relative; }
.pa-explore .pa-ph img { width: 100%; height: 100%; object-fit: cover; }
.pa-explore .pa-ph span { position: absolute; left: 6px; bottom: 6px; background: rgba(16, 75, 58, .85); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
