/* 여쭙다 · 브랜드 커스텀 CSS */

/* Pretendard 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --pico-font-family-sans-serif: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Roboto, "Noto Sans KR", "Segoe UI", sans-serif;
  --pico-font-size: 16px;
  --pico-line-height: 1.65;

  /* 로고에서 추출한 브랜드 컬러 */
  --brand-navy: #2A3F5F;          /* 로고 남색 · 주요 강조 */
  --brand-navy-hover: #1E2E48;
  --brand-brown: #8B6F47;         /* 로고 브라운 · 포인트 */
  --brand-brown-hover: #6F5836;
  --brand-beige: #C4A57B;         /* 로고 베이지 · 보조 */
  --brand-bg: #FBF7F0;            /* 아이보리 배경 */
  --brand-text: #2A3F5F;          /* 남색 계열 텍스트 (로고와 통일) */
  --brand-muted: #7A6B5A;
  --brand-border: #E8DFD1;
  --brand-success: #5A7A4A;
  --brand-warning: #B87850;
  --brand-danger: #A04747;

  /* Pico 오버라이드 · 남색을 Primary로 */
  --pico-primary: var(--brand-navy);
  --pico-primary-background: var(--brand-navy);
  --pico-primary-hover: var(--brand-navy-hover);
  --pico-primary-hover-background: var(--brand-navy-hover);
}

body {
  background: var(--brand-bg);
  color: var(--brand-text);
}

/* 브랜드 헤더 */
.brand-header {
  border-bottom: 1px solid var(--brand-border);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  background: white;
}
.brand-header .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo img {
  height: 72px;
  width: auto;
  display: block;
}
.brand-logo:hover { opacity: 0.85; }

.brand-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}
.brand-nav a {
  font-size: 0.9rem;
  color: var(--brand-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.brand-nav a:hover { color: var(--brand-navy); }

/* 본문 컨테이너 */
.main-container {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

/* 페이지 타이틀 */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.page-desc {
  color: var(--brand-muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

/* 카드 */
.card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { margin-top: 0; }

/* 신청 리스트 */
.app-list { list-style: none; padding: 0; margin: 0; }
.app-item {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.app-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.app-id { color: var(--brand-muted); font-size: 0.85rem; }
.app-status {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pending { background: #FFF4E0; color: #B87850; }
.status-active { background: #E7F0DE; color: #5A7A4A; }
.status-other { background: #EEE; color: #666; }

.app-people { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.75rem 0; }
.app-people-block { }
.app-people-label { font-size: 0.8rem; color: var(--brand-muted); margin-bottom: 0.25rem; }
.app-people-name { font-weight: 600; color: var(--brand-navy); }
.app-people-phone { color: var(--brand-muted); font-size: 0.9rem; }
@media (max-width: 500px) {
  .app-people { grid-template-columns: 1fr; }
}

/* 신청 폼 */
.form-section { margin-bottom: 1.5rem; }
.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-brown);
  color: var(--brand-brown);
  letter-spacing: -0.01em;
}
label { font-weight: 500; }
label small { color: var(--brand-muted); font-weight: 400; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--brand-bg);
}
.checkbox-row input[type=checkbox] { margin-top: 0.15rem; }
.checkbox-row label { margin: 0; font-weight: 400; }

.button-primary {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: white;
  font-weight: 600;
}
.button-primary:hover {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
}
.button-secondary {
  background: transparent;
  border-color: var(--brand-border);
  color: var(--brand-navy);
}

/* 완료 화면 */
.thanks-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.thanks-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.thanks-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}
.thanks-id {
  color: var(--brand-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* 어르신 카드 */
.elder-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.elder-name { font-weight: 700; font-size: 1.1rem; color: var(--brand-navy); }
.elder-phone { color: var(--brand-muted); font-size: 0.9rem; }
.elder-stats {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--brand-muted);
}
.elder-stats strong { color: var(--brand-navy); }
.elder-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.elder-actions a {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--brand-navy);
  font-size: 0.9rem;
}
.elder-actions a:hover {
  background: var(--brand-bg);
  border-color: var(--brand-navy);
}

/* 푸터 */
.brand-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--brand-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--brand-border);
}


/* 모바일에서는 로고 조금 작게 */
@media (max-width: 600px) {
  .brand-logo img { height: 56px; }
  .brand-header { padding: 0.75rem 0; }
  .brand-nav { gap: 0.75rem; }
  .brand-nav a { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════
   랜딩 페이지 스타일
   ═══════════════════════════════════════ */

/* 히어로 섹션 */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--brand-navy);
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--brand-muted);
  line-height: 1.7;
  margin: 0 0 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta a {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta a { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
}

/* 공통 섹션 */
.section {
  padding: 3rem 0;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-align: center;
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}

/* 인용문 · 문제 제기 */
.section-quote {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-left: 4px solid var(--brand-brown);
  border-radius: 8px;
}
.section-quote p:first-child {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.section-quote-sub {
  color: var(--brand-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* 단계 · 이렇게 진행됩니다 */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step {
  display: flex;
  gap: 1.25rem;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body { flex: 1; }
.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}
.step-desc {
  color: var(--brand-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 강점 · 부모님을 배려한 서비스 */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.feature {
  background: white;
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.feature-title {
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.feature-desc {
  color: var(--brand-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}

/* 최종 CTA */
.cta-final {
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.cta-sub {
  color: var(--brand-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.button-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
}
.cta-note {
  margin-top: 1.5rem;
  color: var(--brand-muted);
  font-size: 0.9rem;
}
.cta-note a { color: var(--brand-navy); }

/* ═══════════════════════════════════════
   통화 목록 · 자서전 상세 스타일
   ═══════════════════════════════════════ */

/* 통화 목록 */
.call-list { list-style: none; padding: 0; margin: 0; }
.call-item {
  margin-bottom: 0.75rem;
}
.call-item-link {
  display: block;
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.call-item-link:hover {
  border-color: var(--brand-navy);
  transform: translateY(-1px);
}
.call-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.call-item-date {
  font-weight: 600;
  color: var(--brand-navy);
}
.call-item-meta {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

/* 배지 */
.call-badges { display: flex; gap: 0.3rem; }
.badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #E7F0DE; color: #5A7A4A; }
.badge-info { background: #E0EBF5; color: #2A5F7F; }
.badge-neutral { background: #EEE; color: #888; }

/* 자서전 카드 (편집본 표시) */
.memoir-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(42, 63, 95, 0.04);
}
.memoir-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-brown);
}
.memoir-label {
  font-size: 0.85rem;
  color: var(--brand-brown);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.memoir-chapter {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}
.memoir-meta {
  color: var(--brand-muted);
  font-size: 0.8rem;
  text-align: right;
}
.memoir-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--brand-text);
  padding: 0.5rem 0;
}
.memoir-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-brown);
  margin: 1.75rem 0 0.75rem;
  padding: 0;
  border: none;
}
.memoir-body h3:first-child { margin-top: 0; }
.memoir-body br + h3 { margin-top: 1.5rem; }
.memoir-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brand-border);
  display: flex;
  gap: 0.5rem;
}

/* 접힘 블록 (원본 전사, 녹음) */
.detail-block {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}
.detail-block summary {
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--brand-navy);
  list-style: none;
}
.detail-block summary::marker { display: none; }
.detail-block summary::-webkit-details-marker { display: none; }
.detail-block summary::before {
  content: "▶ ";
  color: var(--brand-brown);
  display: inline-block;
  transition: transform 0.15s;
}
.detail-block[open] summary::before { content: "▼ "; }

/* PDF 다운로드 · 폰트 3종 선택 */
.pdf-download-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--brand-border);
}
.pdf-download-label {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin-bottom: 0.6rem;
}
.pdf-download-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pdf-btn {
  flex: 1;
  min-width: 100px;
  padding: 0.6rem 0.8rem;
  text-align: center;
  background: white;
  border: 1px solid var(--brand-brown);
  border-radius: 8px;
  color: var(--brand-brown);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s;
}
.pdf-btn small {
  font-weight: 400;
  color: var(--brand-muted);
  font-size: 0.75rem;
}
.pdf-btn:hover {
  background: var(--brand-brown);
  color: white;
}
.pdf-btn:hover small { color: rgba(255,255,255,0.8); }

/* 사진 섹션 */
.photo-section {
  margin-top: 1rem;
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.photo-item {
  position: relative;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.photo-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.photo-caption {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--brand-muted);
  background: white;
}
.photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 1rem;
  line-height: 24px;
  cursor: pointer;
  font-weight: 700;
}
.photo-delete:hover {
  background: var(--brand-danger);
}
.photo-upload-form {
  padding-top: 1rem;
  border-top: 1px dashed var(--brand-border);
}
.photo-upload-form input[type=text] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
}

/* 프로필 사진 카드 */
.profile-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.profile-photo-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-border);
}
.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-empty {
  font-size: 0.75rem;
  color: var(--brand-muted);
  text-align: center;
}
.profile-body { flex: 1; min-width: 0; }
.profile-title {
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}
.profile-desc {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 0.75rem;
}
.profile-body form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.profile-body input[type=file] {
  font-size: 0.85rem;
  flex: 1;
  min-width: 150px;
}

/* 통합 자서전 뷰 */
.memoir-intro,
.memoir-epilogue {
  background: var(--brand-bg);
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.9;
}
.memoir-intro-label,
.memoir-epilogue-label {
  font-size: 0.85rem;
  color: var(--brand-brown);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.memoir-toc {
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  padding: 1.25rem 0;
  margin: 2rem 0;
}
.memoir-toc-label {
  font-size: 0.85rem;
  color: var(--brand-brown);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.memoir-toc ol {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 2;
}
.memoir-toc li {
  color: var(--brand-navy);
  font-weight: 600;
}
.memoir-chapter-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--brand-brown);
}
.memoir-chapter-h {
  font-size: 1.3rem;
  color: var(--brand-navy);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

/* 관리자 대시보드 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-sub {
  font-size: 0.85rem;
  color: var(--brand-muted);
}
.stat-warn {
  color: var(--brand-warning);
}

/* 파이프라인 */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.pipeline-item {
  text-align: center;
  padding: 1rem;
  background: var(--brand-bg);
  border-radius: 8px;
}
.pipeline-label {
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin-bottom: 0.4rem;
}
.pipeline-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
}

/* 미니 리스트 */
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--brand-border);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.mini-row:last-child { border-bottom: 0; }
.mini-time {
  color: var(--brand-muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}
.badge-warn {
  background: #FFF4E0;
  color: #B87850;
}

/* 공유 링크 아이템 */
.share-link-item {
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--brand-bg);
}
.share-link-url code {
  display: block;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--brand-navy);
  word-break: break-all;
  border: 1px solid var(--brand-border);
}
.share-link-meta {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin: 0.75rem 0;
}
.share-link-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.share-link-actions a,
.share-link-actions button {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
}

/* 공개 뷰 (public_book.html) */
.public-book-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid var(--brand-border);
  margin-bottom: 2rem;
}
.public-profile {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}
.public-book-brand {
  font-size: 0.9rem;
  color: var(--brand-brown);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.public-book-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.public-book-sub {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.public-section-label {
  font-size: 0.8rem;
  color: var(--brand-brown);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.public-intro,
.public-epilogue {
  background: var(--brand-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  line-height: 1.9;
}
.public-toc {
  padding: 1.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}
.public-toc ol {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 2.2;
  color: var(--brand-navy);
  font-weight: 600;
}

.public-chapter {
  margin-top: 3rem;
  padding-top: 2rem;
}
.public-chapter-num {
  font-size: 0.85rem;
  color: var(--brand-brown);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.public-chapter-title {
  font-size: 1.6rem;
  color: var(--brand-navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.public-chapter-divider {
  width: 40px;
  height: 2px;
  background: var(--brand-brown);
  margin-bottom: 1.5rem;
}
.public-chapter-body {
  font-size: 1.05rem;
  line-height: 1.95;
}
.public-chapter-body h3 {
  font-size: 1.15rem;
  color: var(--brand-brown);
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}
.public-chapter-body p {
  margin: 0 0 1rem;
}

.public-download {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--brand-bg);
  border-radius: 12px;
}
.public-cta {
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--brand-border);
}
.public-cta p {
  color: var(--brand-muted);
  margin-bottom: 1rem;
}

/* 공개 뷰 · 사진첩 */
.public-photos {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--brand-border);
}
.public-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.public-photo-item {
  margin: 0;
  padding: 0;
}
.public-photo-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.public-photo-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--brand-muted);
  font-style: italic;
  text-align: center;
}

/* 챕터별 사진 (통합 자서전 뷰) */
.chapter-photos {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--brand-border);
}
.chapter-photos-label {
  font-size: 0.85rem;
  color: var(--brand-brown);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.chapter-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.chapter-photo {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 0.5rem;
}
.chapter-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 0.4rem;
}
.chapter-photo-caption {
  font-size: 0.8rem;
  color: var(--brand-muted);
  padding: 0.15rem 0.25rem;
  margin-bottom: 0.4rem;
}
.chapter-photo-move select {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--brand-border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
}
.chapter-photo-move select:hover {
  border-color: var(--brand-navy);
}
.orphan-photos-block {
  background: var(--brand-bg);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px dashed var(--brand-brown);
}

/* 어르신 정보 카드 */
.elder-info-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.elder-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.elder-info-title {
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}
.elder-info-desc {
  font-size: 0.85rem;
  color: var(--brand-muted);
}
.elder-info-summary {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--brand-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.elder-info-item {
  font-size: 0.9rem;
  color: var(--brand-navy);
  background: var(--brand-bg);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.elder-info-item strong {
  color: var(--brand-brown);
}
.elder-info-intro {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--brand-bg);
  border-radius: 8px;
  font-style: italic;
  color: var(--brand-text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.elder-info-empty {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--brand-border);
  color: var(--brand-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* 프로필 편집 폼 */
.profile-form {
  max-width: 640px;
}
.profile-field {
  margin-bottom: 1.5rem;
}
.profile-field label {
  display: block;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}
.profile-field input,
.profile-field select,
.profile-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.profile-field textarea {
  resize: vertical;
  min-height: 90px;
}
.profile-field small {
  display: block;
  color: var(--brand-muted);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

/* 어르신 질문 관리 · 챕터 그룹 */
.chapter-block {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.chapter-header {
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.chapter-header::-webkit-details-marker { display: none; }
.chapter-header:hover {
  background: var(--brand-bg);
}
.chapter-title {
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chapter-arrow {
  color: var(--brand-brown);
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.chapter-count {
  font-size: 0.9rem;
  color: var(--brand-muted);
  background: var(--brand-bg);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}
.ch-active {
  color: var(--brand-success);
  font-weight: 700;
}
.chapter-body {
  padding: 0.5rem 1.25rem 1rem;
  border-top: 1px solid var(--brand-border);
}

/* 질문 아이템 */
.question-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--brand-border);
}
.question-item:last-child { border-bottom: 0; }

.question-item.disabled .question-body { opacity: 0.5; }
.question-item.disabled .question-title { text-decoration: line-through; }

.question-toggle-form {
  margin: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
}
button.question-toggle-btn,
.question-toggle-btn {
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  border: 2px solid var(--brand-border) !important;
  background: white !important;
  color: var(--brand-muted) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s !important;
  aspect-ratio: 1 / 1 !important;
}
.question-item.enabled .question-toggle-btn {
  background: var(--brand-success);
  color: white;
  border-color: var(--brand-success);
}
.question-toggle-btn:hover {
  transform: scale(1.1);
}

.question-body {
  flex: 1;
  min-width: 0;
}
.question-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}
.question-title {
  font-weight: 600;
  color: var(--brand-navy);
}
.question-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: #E0EBF5;
  color: #2A5F7F;
  font-weight: 600;
}
.question-badge.badge-brown {
  background: #F5E9D8;
  color: var(--brand-brown);
}
.question-edit-form { margin: 0; }
.question-edit-form textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--brand-text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
}
.question-edit-form textarea:hover {
  background: var(--brand-bg);
}
.question-edit-form textarea:focus {
  outline: none;
  background: white;
  border-color: var(--brand-brown);
}

/* 새 질문 추가 폼 */
.add-question-form .add-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.add-question-form input,
.add-question-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.add-question-form textarea {
  margin-bottom: 0.75rem;
  resize: vertical;
}

/* 기본 질문 뱅크 · 읽기 전용 스타일 */
.question-toggle-btn.readonly {
  cursor: default;
}
.question-toggle-btn.readonly:hover {
  transform: none;
}
.question-prompt-readonly {
  padding: 0.4rem 0.6rem;
  color: var(--brand-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== 브랜드 푸터 (사업자 정보 포함) ===== */
.brand-footer {
  background: #F5EEE0;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-text);
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 상단 · 브랜드 + 링크 */
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(139, 111, 71, 0.2);
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand {}
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.footer-tagline {
  color: var(--brand-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.9rem;
}
.footer-parent {
  color: var(--brand-brown);
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
.footer-col h4 {
  font-size: 0.85rem;
  color: var(--brand-navy);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}
.footer-col a {
  display: block;
  color: var(--brand-muted);
  text-decoration: none;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--brand-navy); }

/* 중단 · 사업자 정보 */
.footer-biz {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(139, 111, 71, 0.2);
}
.footer-biz-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-brown);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer-biz-info {
  color: var(--brand-muted);
  font-size: 0.82rem;
  line-height: 1.85;
}
.footer-biz-info strong { color: var(--brand-text); }
.footer-biz-info a {
  color: var(--brand-muted);
  text-decoration: underline;
}
.footer-biz-info a:hover { color: var(--brand-navy); }

/* 저작권 */
.footer-copyright {
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.8rem;
  padding-top: 1.25rem;
  letter-spacing: 0.02em;
}

/* 통합 자서전 · 챕터 편집 UI */
.memoir-chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.chapter-edit-btn {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.chapter-edit-btn:hover {
  border-color: var(--brand-brown);
  color: var(--brand-brown);
}

.chapter-edit-panel {
  background: var(--brand-bg);
  border: 1px dashed var(--brand-brown);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.chapter-edit-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--brand-border);
  margin-bottom: 1rem;
}
.tab-btn {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--brand-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.tab-btn.active {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-brown);
}
.tab-content label {
  display: block;
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 0.85rem;
  margin: 0.75rem 0 0.4rem;
}
.tab-content label:first-child { margin-top: 0; }
.tab-content input,
.tab-content textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  background: white;
}
.tab-content textarea {
  resize: vertical;
  min-height: 100px;
}
.tab-content .hint {
  color: var(--brand-muted);
  font-size: 0.82rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}
.chapter-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* 자녀 편지 카드 */
.child-letter-card {
  background: linear-gradient(180deg, #FBF7F0 0%, #F5E9D8 100%);
  border: 1px solid var(--brand-brown);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(139, 111, 71, 0.08);
}
.child-letter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-brown);
  flex-wrap: wrap;
}
.letter-preview {
  padding: 0.5rem 0;
}
.letter-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--brand-text);
  white-space: pre-wrap;
  word-break: keep-all;
}
.letter-signature {
  text-align: right;
  margin-top: 1.5rem;
  color: var(--brand-brown);
  font-weight: 700;
  font-style: italic;
  font-size: 1rem;
}
.letter-updated {
  text-align: right;
  color: var(--brand-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.letter-empty {
  color: var(--brand-muted);
  padding: 0.5rem 0;
  line-height: 1.8;
}
.letter-edit-panel {
  padding-top: 0.5rem;
}
.letter-edit-panel label {
  display: block;
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 0.85rem;
  margin: 0.75rem 0 0.4rem;
}
.letter-edit-panel input,
.letter-edit-panel textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  background: white;
}
.letter-edit-panel textarea {
  resize: vertical;
  min-height: 180px;
}

/* 편지 여러 개 지원 */
.letter-item {
  padding: 1.25rem 0;
  border-bottom: 1px dashed rgba(139, 111, 71, 0.3);
}
.letter-item:last-of-type { border-bottom: 0; }

.letter-view {}
.letter-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  color: var(--brand-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.letter-mini-btn {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
}
.letter-mini-btn:hover {
  border-color: var(--brand-brown);
  color: var(--brand-brown);
}
.letter-mini-btn.letter-delete:hover {
  border-color: var(--brand-danger, #c33);
  color: var(--brand-danger, #c33);
}

.letter-edit-inline {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--brand-border);
  margin-top: 0.5rem;
}
.letter-edit-inline label {
  display: block;
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 0.85rem;
  margin: 0.75rem 0 0.4rem;
}
.letter-edit-inline label:first-child { margin-top: 0; }
.letter-edit-inline input,
.letter-edit-inline textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  background: white;
}
.letter-edit-inline textarea {
  resize: vertical;
  min-height: 140px;
}

.letter-add-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 111, 71, 0.3);
}

/* 공개 뷰 · 자녀 편지 */
.public-letters {
  margin: 3rem 0;
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, #FBF7F0 0%, #F5E9D8 100%);
  border-radius: 12px;
  border: 1px solid var(--brand-brown);
}
.public-letter {
  padding: 1.5rem 0;
  border-bottom: 1px dashed rgba(139, 111, 71, 0.3);
}
.public-letter:last-child { border-bottom: 0; }
.public-letter:first-of-type { padding-top: 1rem; }

.public-letter-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--brand-text);
  white-space: pre-wrap;
  word-break: keep-all;
}
.public-letter-signature {
  text-align: right;
  margin-top: 1.5rem;
  color: var(--brand-brown);
  font-weight: 700;
  font-style: italic;
}

/* 체험 페이지 */
.try-hero {
  text-align: center;
  padding: 2rem 0;
}
.try-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--brand-brown);
  color: white;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.try-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.try-subtitle {
  color: var(--brand-muted);
  line-height: 1.7;
  margin: 0;
}
.try-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.try-step {
  text-align: center;
  min-width: 90px;
}
.try-step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  background: var(--brand-navy);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.try-step-text {
  font-size: 0.85rem;
  color: var(--brand-navy);
  font-weight: 600;
}
.try-step-arrow {
  color: var(--brand-brown);
  font-size: 1.5rem;
  font-weight: 700;
}
.try-form-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(42, 63, 95, 0.04);
}
.try-form-card label {
  display: block;
  margin-bottom: 1rem;
}
.try-label {
  display: block;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}
.try-form-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.try-form-card input:focus {
  outline: none;
  border-color: var(--brand-navy);
}
.try-notice {
  font-size: 0.85rem;
  color: var(--brand-muted);
  line-height: 1.7;
  padding: 0.75rem;
  background: var(--brand-bg);
  border-radius: 6px;
  margin: 1rem 0;
}
.try-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}
.try-questions {
  background: var(--brand-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.try-questions-title {
  font-weight: 700;
  color: var(--brand-brown);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.try-questions-list {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--brand-navy);
  line-height: 2;
}

/* 체험 · 3회 인터뷰 안내 */
.try-round {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--brand-brown);
}
.try-round:last-child { margin-bottom: 0; }
.try-round-title {
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.try-round ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--brand-muted);
  line-height: 1.9;
  font-size: 0.9rem;
}

/* 체험 진행 상태 */
.trial-progress {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.trial-progress-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--brand-border);
  opacity: 0.4;
  transition: opacity 0.3s, background 0.3s;
}
.trial-progress-item:last-child { border-bottom: 0; }
.trial-progress-item.completed { opacity: 1; }
.trial-progress-item.active {
  opacity: 1;
  background: var(--brand-bg);
  border-radius: 8px;
  padding-left: 0.75rem;
}
.trial-progress-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}
.trial-progress-label {
  flex: 1;
  font-weight: 600;
  color: var(--brand-navy);
}
.trial-progress-status {
  font-size: 0.85rem;
  color: var(--brand-muted);
}
.trial-progress-item.completed .trial-progress-status {
  color: #5A7A4A;
  font-weight: 600;
}
.trial-progress-item.active .trial-progress-status {
  color: var(--brand-brown);
  font-weight: 600;
}

/* 체험 안내 */
.trial-notice {
  text-align: center;
  padding: 1.5rem;
  background: var(--brand-bg);
  border-radius: 12px;
  margin-top: 1rem;
}

/* 체험 3단계 카드 */
.trial-steps { margin: 1.5rem 0; }
.trial-step-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
}
.trial-step-card.locked {
  opacity: 0.5;
  background: var(--brand-bg);
}
.trial-step-card.completed {
  border-color: #7BA05B;
}
.trial-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--brand-border);
}
.trial-step-num {
  width: 32px;
  height: 32px;
  background: var(--brand-navy);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trial-step-card.completed .trial-step-num {
  background: #7BA05B;
}
.trial-step-title {
  flex: 1;
  font-weight: 700;
  color: var(--brand-navy);
}
.trial-step-status {
  font-size: 0.85rem;
  color: var(--brand-muted);
}
.trial-step-card.completed .trial-step-status {
  color: #7BA05B;
  font-weight: 600;
}
.trial-step-body p {
  color: var(--brand-muted);
  margin: 0 0 1rem;
}

/* 공개 자서전 페이지 */
.public-book {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
  font-family: "Nanum Myeongjo", "NanumMyeongjo", serif;
  line-height: 1.9;
  color: #2A3F5F;
}
.pb-cover {
  text-align: center;
  padding: 3rem 1rem 4rem;
  background: #FBF7F0;
  border-radius: 16px;
  margin-bottom: 2rem;
}
.pb-brand {
  font-size: 1rem;
  color: #8B6F47;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.pb-title {
  font-size: 2rem;
  color: #2A3F5F;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.4;
}
.pb-subtitle {
  color: #7A6B5A;
  margin: 0;
}
.pb-divider {
  width: 60px;
  height: 2px;
  background: #8B6F47;
  margin: 2rem auto;
}
.pb-date {
  color: #7A6B5A;
  font-size: 0.9rem;
  margin: 0;
}
.pb-profile-page {
  text-align: center;
  padding: 2rem 1rem 3rem;
}
.pb-profile-page img {
  max-width: 260px;
  max-height: 340px;
  border: 8px solid #FBF7F0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.pb-profile-caption {
  margin-top: 1.5rem;
  color: #8B6F47;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.pb-chapter {
  padding: 2rem 0;
}
.pb-chapter-num {
  font-size: 0.85rem;
  color: #8B6F47;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.pb-chapter-title {
  font-size: 1.6rem;
  color: #2A3F5F;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.pb-chapter-divider {
  width: 40px;
  height: 2px;
  background: #8B6F47;
  margin: 0.5rem 0 2rem;
}
.pb-body h3 {
  font-size: 1.2rem;
  color: #8B6F47;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.pb-body p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 2;
}
.pb-photos {
  margin: 2rem 0;
}
.pb-photo {
  margin: 0 0 1.5rem;
  text-align: center;
}
.pb-photo img {
  max-width: 100%;
  border: 6px solid #FBF7F0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.pb-photo figcaption {
  margin-top: 0.75rem;
  color: #7A6B5A;
  font-size: 0.9rem;
  font-style: italic;
}
.pb-epilogue {
  text-align: center;
  padding: 3rem 1rem;
  background: #FBF7F0;
  border-radius: 16px;
  margin: 2rem 0;
}
.pb-epilogue-title {
  color: #8B6F47;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.pb-epilogue p {
  margin: 0;
  color: #7A6B5A;
  line-height: 2;
}
.pb-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.pb-actions button, .pb-actions a {
  padding: 0.75rem 1.5rem;
}
.pb-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #7A6B5A;
  font-size: 0.85rem;
  border-top: 1px solid #E8DFD1;
}
.pb-footer a {
  color: #8B6F47;
  font-weight: 600;
}

/* 내 체험 대시보드 */
.my-summary {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.my-stat {
  flex: 1;
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.my-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1;
}
.my-stat-label {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-top: 0.4rem;
}
.my-session-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.my-session-item {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.my-session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.my-session-date {
  font-weight: 600;
  color: var(--brand-navy);
}
.my-session-chapter {
  font-size: 0.9rem;
  color: var(--brand-brown);
  margin-top: 0.2rem;
}
.my-session-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 랜딩 체험 CTA 카드 */
.try-cta-section {
  padding: 2rem 0;
}
.try-cta-card {
  background: linear-gradient(135deg, #FBF7F0 0%, #F5EDDD 100%);
  border: 2px solid var(--brand-brown);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 3px 12px rgba(139, 111, 71, 0.08);
  max-width: 480px;
  margin: 0 auto;
}
.try-cta-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--brand-brown);
  color: white;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.try-cta-title {
  font-size: 1.35rem;
  color: var(--brand-navy);
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.try-cta-desc {
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.try-cta-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.try-cta-note {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin: 0.5rem 0 0;
}
