/* ===== 기본 색상 (교회 색상이 정해지면 여기만 바꾸면 됨) ===== */
:root {
  --primary: #0f6e78;        /* 바다색 */
  --primary-dark: #0a4f57;
  --accent: #f2b33d;         /* 햇살색 */
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #5b6573;
  --line: #e6e2d8;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ===== 헤더 / 메뉴 ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 246, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; color: var(--primary-dark); text-decoration: none; font-size: 1.05rem; }

.menu-toggle {
  display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text);
}
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 0.95rem;
}
.nav a:hover { background: #f0ede4; }
.nav a.active { color: var(--primary); font-weight: 700; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--bg); padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
}

/* ===== 히어로 (홈 상단) ===== */
.hero {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 72px 0 64px;
}
.hero .eyebrow { opacity: 0.85; font-size: 0.95rem; margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 16px; line-height: 1.3; }
.hero .verse { max-width: 560px; margin: 0 auto; opacity: 0.92; }
.hero .verse cite { display: block; margin-top: 4px; font-style: normal; font-size: 0.9rem; opacity: 0.8; }
.dday {
  display: inline-block; margin-top: 28px; padding: 8px 20px; border-radius: 999px;
  background: var(--accent); color: #2b1d00; font-weight: 800; font-size: 1.1rem;
}

/* ===== 페이지 제목 (하위 페이지) ===== */
.page-title { background: var(--primary-dark); color: #fff; padding: 48px 0 40px; }
.page-title h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.page-title p { margin: 6px 0 0; opacity: 0.85; }

/* ===== 공통 섹션 / 카드 ===== */
section { padding: 48px 0; }
section + section { padding-top: 0; }
h2 { font-size: 1.35rem; margin: 0 0 16px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card p { margin: 0; color: var(--muted); }
a.card { text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--primary); transform: translateY(-2px); }

.info-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.info-list div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.info-list dt { font-size: 0.85rem; color: var(--muted); }
.info-list dd { margin: 2px 0 0; font-weight: 700; }

/* 아직 내용이 없는 자리 표시 */
.todo { color: #b45309; background: #fff7e6; border-radius: 6px; padding: 0 6px; font-size: 0.9em; }

/* ===== 목록형 (일정, 기도, 공지) ===== */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 20px 20px; }
.timeline > li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--primary);
}
.timeline .date { font-weight: 700; color: var(--primary); }
.timeline ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }


/* ===== 체크리스트 ===== */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.checklist input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--primary); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ===== 버튼 ===== */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700;
}
.btn:hover { background: var(--primary-dark); }

/* ===== 푸터 ===== */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.site-footer p { margin: 2px 0; }

/* ===== 숫자 요약 (하이라이트) ===== */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stats strong { display: block; font-size: 1.6rem; color: var(--primary); }
.stats span { color: var(--muted); font-size: 0.9rem; }

.tag { display: inline-block; font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; background: #e7f2f3; color: var(--primary-dark); margin: 0 4px 4px 0; }
.note { color: var(--muted); font-size: 0.9rem; }
.photo-slot {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 16px;
  text-align: center; color: var(--muted); background: var(--surface);
}
ol.plain { margin: 0; padding-left: 20px; }
ol.plain li { margin-bottom: 8px; }
ol.plain li p { margin: 2px 0 0; color: var(--muted); }

/* ===== 지도 (선교 소개) ===== */
.map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.needle-pin { background: none; border: 0; }
.place-list { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.place-list button {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 34px;
  position: relative;
}
.place-list button::before {
  content: ""; position: absolute; left: 12px; top: 14px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--pin, #e02424);
}
.map-legend { display: flex; gap: 16px; margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.map-legend span::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; background: var(--pin);
}
.place-list button:hover { border-color: var(--primary); }
.place-list span { display: block; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 600px) {
  .map { height: 380px; }
  .area-label.minor { display: none; }
}

/* ===== 후원 계좌 ===== */
.account { font-size: 1.25rem; font-weight: 800; color: var(--text) !important; letter-spacing: 0.02em; margin: 4px 0 !important; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* 지도 위 한국어 이름표 */
.area-label span {
  display: block; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 0.8rem; font-weight: 700; color: #4b5563;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.area-label.water span { color: #4a7fa8; font-style: italic; font-weight: 600; }
.leaflet-tooltip.pin-label {
  background: rgba(255, 255, 255, 0.92); border: 0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  padding: 2px 6px; font-family: inherit; font-size: 0.78rem; font-weight: 700; color: var(--text);
}
.leaflet-tooltip.pin-label::before { display: none; }
/* 지도 출처 표시: 사용 조건상 필요해서 아주 작고 흐리게 */
.leaflet-control-attribution.leaflet-control {
  background: transparent; font-size: 9px; color: #9ca3af; padding: 0 4px; line-height: 1.4;
}
.leaflet-control-attribution a { color: #9ca3af; }

/* ===== 사진 ===== */
.hero.has-photo {
  background:
    linear-gradient(160deg, rgba(10, 79, 87, 0.88), rgba(15, 110, 120, 0.72)),
    url("/images/2026/group-wmc.jpg") center 70% / cover;
}
.photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #e5e7eb; }
.zoomable { cursor: zoom-in; }
.photo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 16px; }
.photo-grid figure { margin: 0; }
.photo-grid figcaption { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.timeline-photo { max-width: 420px; margin-top: 10px; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.lightbox p { color: #fff; margin: 10px 0 0; text-align: center; }
