/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e6e3dd;
  --paper: #ffffff;
  --paper-alt: #f7f5f0;
  --dark: #15171c;
  --accent: #3d5a4c;      /* deep evergreen — 씨앗/생명 모티프 */
  --accent-soft: #6f8a7c;
  --gold: #b89b5e;
  --maxw: 1140px;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: 22px 0;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-kr {
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: 1.25rem; color: #fff; letter-spacing: .04em;
  transition: color .4s ease;
}
.logo-en {
  font-family: "Cormorant Garamond", serif; font-size: .72rem;
  letter-spacing: .28em; color: rgba(255,255,255,.7);
  transition: color .4s ease;
}
.hdr-dash-btn {
  display: inline-flex; align-items: center; margin-left: 10px; white-space: nowrap;
  font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.34);
  padding: 6px 14px; border-radius: 999px;
  transition: background .25s ease, color .3s ease, border-color .3s ease;
}
.hdr-dash-btn:hover { background: rgba(255,255,255,.24); }
#header.scrolled .hdr-dash-btn { color: var(--accent); background: rgba(3,34,87,.07); border-color: rgba(3,34,87,.22); }
#header.scrolled .hdr-dash-btn:hover { background: rgba(3,34,87,.14); }
@media (max-width: 480px) { .hdr-dash-btn { margin-left: 8px; padding: 5px 11px; font-size: .76rem; } }
.nav-menu { display: flex; gap: 22px; flex-wrap: nowrap; }
.nav-menu a {
  font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.92);
  position: relative; transition: color .3s ease; white-space: nowrap;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .3s ease;
}
.nav-menu a:hover::after { width: 100%; }

/* scrolled state */
#header.scrolled {
  background: rgba(255,255,255,.97); padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
#header.scrolled .logo-kr { color: var(--accent); }
#header.scrolled .logo-en { color: var(--muted); }
#header.scrolled .nav-menu a { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; transition: .3s ease;
}
.nav-toggle span:nth-child(1){ top: 0; }
.nav-toggle span:nth-child(2){ top: 10px; }
.nav-toggle span:nth-child(3){ top: 20px; }
#header.scrolled .nav-toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; text-align: center;
  background: #1e2a24;
  color: #fff; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 960px; width: 100%; }
.hero-since {
  font-family: "Cormorant Garamond", serif; letter-spacing: .5em;
  font-size: .9rem; margin-bottom: 26px; color: var(--gold);
  opacity: 0; animation: fadeUp 1s ease .2s forwards;
}
.hero-title {
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1.32;
  letter-spacing: .01em; margin-bottom: 26px;
  word-break: keep-all; white-space: normal;
  opacity: 0; animation: fadeUp 1s ease .4s forwards;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 300;
  color: rgba(255,255,255,.88); margin-bottom: 40px;
  opacity: 0; animation: fadeUp 1s ease .6s forwards;
}
.hero-verse {
  font-family: "Noto Serif KR", serif; font-size: 1rem;
  color: rgba(255,255,255,.78); border-top: 1px solid rgba(255,255,255,.22);
  display: inline-block; padding-top: 22px;
  opacity: 0; animation: fadeUp 1s ease .8s forwards;
}
.hero-verse span { display: block; font-size: .8rem; color: var(--gold); margin-top: 6px; letter-spacing: .1em; }
/* 김동석 목사 저서 */
.book-feature { display: flex; gap: 44px; align-items: center; max-width: 860px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.book-cover { position: relative; flex-shrink: 0; }
.book-cover img { width: 260px; max-width: 72vw; border-radius: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.18); display: block; }
.book-badge { position: absolute; top: 14px; right: -8px; background: var(--gold); color: #1f1f1f; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 6px 13px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.book-info { flex: 1; min-width: 240px; }
.book-info .book-eyebrow { font-size: .72rem; letter-spacing: .22em; color: var(--gold); margin-bottom: 12px; }
.book-info .book-title { font-family: "Noto Serif KR", serif; font-size: 1.85rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; line-height: 1.3; }
.book-br { display: none; }
@media (max-width: 700px) { .book-br { display: inline; } }
.book-info .book-sub { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.6; }
.book-info .book-author { color: var(--ink); margin-bottom: 20px; }
.book-info .book-note { display: inline-block; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 22px; padding: 9px 18px; font-size: .9rem; color: var(--accent-soft); }
@media (max-width: 680px) { .book-feature { gap: 26px; } .book-info { text-align: center; } }

/* 히어로 슬라이드 인디케이터(바) */
.hero-dots { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-dot { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s, width .3s; }
.hero-dot:hover { background: rgba(255,255,255,.55); }
.hero-dot.active { background: var(--gold); width: 44px; }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 1.4rem; color: #fff; opacity: .7;
  animation: bounce 2s infinite;
}

/* 히어로 제목 회전(슬라이드) */
.hero-rotator { position: relative; min-height: 340px; margin-bottom: 6px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .hero-title, .hero-slide .hero-sub { margin-bottom: 0; }
.hero-slide .hero-sub { margin-top: 18px; }
.hero-cta {
  display: inline-block; margin-top: 30px; padding: 14px 30px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 32px;
  color: #fff; font-size: 1rem; font-weight: 500; letter-spacing: .01em;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.hero-cta:hover { background: #fff; color: var(--accent); border-color: #fff; }
@media (max-width: 760px) {
  .hero-content { padding: 0 18px; }
  .hero-title { font-size: clamp(1.95rem, 8.2vw, 2.7rem); margin-bottom: 22px; }
  .hero-rotator { min-height: 320px; }
  .hero-cta { padding: 12px 24px; font-size: .94rem; }
}

@keyframes fadeUp { from{opacity:0; transform:translateY(24px);} to{opacity:1; transform:translateY(0);} }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }

/* ===== Section base ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--dark); color: #fff; }

.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
  display: inline-block; font-family: "Cormorant Garamond", serif;
  letter-spacing: .4em; font-size: .85rem; color: var(--accent-soft);
  margin-bottom: 12px;
}
.eyebrow.light { color: var(--gold); }
.section-head h2 {
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem); position: relative; display: inline-block;
}
.section-head h2::after {
  content: ""; display: block; width: 42px; height: 3px; background: var(--gold);
  margin: 18px auto 0;
}

/* ===== About ===== */
.about-intro { max-width: 760px; margin: 0 auto 80px; text-align: center; }
.about-intro .lead {
  font-family: "Noto Serif KR", serif; font-size: 1.35rem; font-weight: 600;
  line-height: 1.7; margin-bottom: 26px; color: var(--ink);
}
.about-intro p { color: var(--ink-soft); font-weight: 300; }

.sub-title {
  text-align: center; font-family: "Noto Serif KR", serif;
  font-size: 1.3rem; margin-bottom: 38px; color: var(--accent);
}
.servant-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 680px; margin: 0 auto 40px;
}
.servant-card {
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 10px; padding: 34px 18px; text-align: center;
  display: flex; flex-direction: column; gap: 8px; transition: transform .3s ease, box-shadow .3s ease;
}
.servant-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.07); }
.servant-card.highlight { background: var(--accent); border-color: var(--accent); }
.servant-card .role { font-size: .82rem; color: var(--muted); letter-spacing: .05em; }
.servant-card .name { font-family: "Noto Serif KR", serif; font-size: 1.4rem; font-weight: 700; }
.servant-card.highlight .role { color: rgba(255,255,255,.75); }
.servant-card.highlight .name { color: #fff; }

.servant-rows { max-width: 760px; margin: 0 auto; }
.servant-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 18px;
  padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.row-label { font-weight: 700; color: var(--accent); font-size: .95rem; }
.row-names { color: var(--ink-soft); font-size: .95rem; font-weight: 300; }

.servant-subgroup {
  max-width: 760px; margin: 46px auto 8px; text-align: center;
  font-family: "Noto Serif KR", serif; font-size: 1.05rem; color: var(--accent-soft);
  letter-spacing: .03em;
}

/* 이 달의 봉사위원 */
.committee {
  max-width: 760px; margin: 44px auto 0; background: var(--accent); color: #fff;
  border-radius: 16px; padding: 34px 40px;
}
.committee-head { text-align: center; margin-bottom: 22px; }
.committee-head .w-en { display: block; }
.committee-head h4 { font-family: "Noto Serif KR", serif; font-size: 1.35rem; font-weight: 700; margin-top: 4px; }
.committee-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.committee-item {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 18px 20px; text-align: center;
}
.c-role { display: block; font-size: .82rem; color: var(--gold); margin-bottom: 7px; letter-spacing: .03em; }
.c-names { font-size: .98rem; font-weight: 500; line-height: 1.6; word-break: keep-all; }
@media (max-width: 680px) {
  .committee-rows { grid-template-columns: 1fr; }
  .committee { padding: 28px 24px; }
}

/* ===== Worship ===== */
.worship-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.worship-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 36px 26px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.worship-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: var(--accent-soft); }
.w-day { display: block; font-family: "Noto Serif KR", serif; font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.w-en { display: block; font-family: "Cormorant Garamond", serif; letter-spacing: .2em; font-size: .8rem; color: var(--muted); margin: 4px 0 22px; }
.worship-card ul li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px dashed var(--line); font-size: .92rem;
}
.worship-card ul li span { color: var(--ink-soft); }
.worship-card ul li strong { color: var(--ink); font-weight: 700; }
.worship-card ul li.w-note { display: block; color: var(--accent-soft); font-size: .82rem; padding-top: 12px; }
.worship-foot { text-align: center; margin-top: 40px; color: var(--muted); font-size: .9rem; }

/* ===== Education ===== */
.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 24px; justify-content: center;
}
.card-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  color: var(--accent-soft); font-size: .85rem; font-weight: 300; line-height: 1.6;
}

/* ===== Sermon nav (이번 주 / 지난 주) ===== */
.sermon-nav {
  display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 42px;
}
.sermon-btn {
  font-family: "Noto Sans KR", sans-serif; font-size: .95rem; font-weight: 500;
  color: var(--accent); background: transparent;
  border: 1px solid var(--accent-soft); border-radius: 30px; padding: 11px 26px;
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.sermon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sermon-btn.disabled { opacity: .35; pointer-events: none; }
.sermon-dots { display: flex; gap: 9px; }
.sdot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line);
  cursor: pointer; padding: 0; transition: all .25s ease;
}
.sdot:hover { background: var(--accent-soft); }
.sdot.active { background: var(--accent); transform: scale(1.3); }

/* ===== Sermon deck (3D 회전 카드) ===== */
.sermon-deck { position: relative; perspective: 1600px; min-height: 360px; margin-bottom: 30px; }
.sermon-deck .deck-card {
  position: absolute; inset: 0; margin: 0; cursor: pointer;
  transform-style: preserve-3d; will-change: transform, opacity;
  transition: transform .6s cubic-bezier(.34, .12, .2, 1), opacity .6s ease, box-shadow .4s ease;
}
.sermon-deck .deck-card.is-active { cursor: default; box-shadow: 0 26px 60px rgba(20,30,25,.28); }

/* ===== Sermon ===== */
.sermon-feature {
  background: var(--accent); color: #fff; border-radius: 16px;
  padding: 56px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 28px;
}
.sermon-date { font-size: .85rem; color: var(--gold); letter-spacing: .08em; }
.sermon-title { font-family: "Noto Serif KR", serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 14px 0; }
.sermon-ref { font-size: 1.05rem; color: rgba(255,255,255,.85); }
.sermon-preacher { margin-top: 18px; font-size: .95rem; color: rgba(255,255,255,.7); }
.sermon-quote {
  font-family: "Noto Serif KR", serif; font-size: 1.05rem; line-height: 1.9;
  color: rgba(255,255,255,.92); border-left: 3px solid var(--gold); padding-left: 24px;
}
.sermon-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.side-card { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 12px; padding: 28px 30px; }
.side-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: #fff; background: var(--accent-soft); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.side-card p { color: var(--ink-soft); font-size: .95rem; }

/* ===== QT (오늘의 말씀) ===== */
.qt-today { max-width: 620px; margin: 0 auto; }
.qt-loading { text-align: center; color: var(--muted); padding: 36px 0; }
.qt-card-today {
  width: 100%; text-align: center; cursor: pointer; font-family: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.qt-card-today:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,.1); border-color: var(--accent-soft); }
.qt-badge {
  font-size: .82rem; font-weight: 700; color: #fff; background: var(--accent);
  padding: 6px 16px; border-radius: 20px; letter-spacing: .03em;
}
.qt-card-title { font-family: "Noto Serif KR", serif; font-size: 1.6rem; margin: 22px 0 10px; line-height: 1.45; word-break: keep-all; }
.qt-card-ref { color: var(--accent); font-size: 1.05rem; font-weight: 500; }
.qt-card-more { margin-top: 24px; font-size: .9rem; font-weight: 500; color: var(--accent-soft); }

/* QT 모달 (상단 날짜 스트립 + 넓은 본문) */
.modal-box-qt { max-width: 760px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 88vh; }
.qt-modal-v2 { display: flex; flex-direction: column; min-height: 0; }
/* 연도 넘김 바 — 지난 해의 묵상으로 이동 */
.qt-yearbar {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 13px 20px 3px; background: var(--paper-alt); flex: 0 0 auto;
}
.qt-year-label {
  font-family: "Cormorant Garamond", serif; font-size: 1.18rem; letter-spacing: .06em;
  color: var(--ink); font-weight: 600; min-width: 84px; text-align: center;
}
.qt-year-nav {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: 1.35rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; padding: 0;
}
.qt-year-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.qt-year-nav:disabled { opacity: .28; cursor: default; }
/* 상단 날짜 가로 스트립 — 손으로 밀어 넘기며 지난 묵상 탐색 */
.qt-datebar {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper-alt);
  flex: 0 0 auto; scroll-padding: 20px;
}
.qt-dl-item {
  flex: 0 0 auto; white-space: nowrap; background: #fff; border: 1px solid var(--line);
  font-family: "Noto Sans KR", sans-serif; font-size: .92rem; color: var(--ink-soft);
  padding: 9px 16px; border-radius: 22px; cursor: pointer; transition: all .2s ease;
}
.qt-dl-item:hover { border-color: var(--accent-soft); }
.qt-dl-item.active { background: var(--accent); color: #fff; border-color: var(--accent); }
/* 본문 — 한 면 전체로 넓게, 본문체로 크게 */
.qt-detail { padding: 0 40px 32px; overflow-y: auto; }
.qt-d-top { padding: 26px 0 12px; }
/* 낭독 컨트롤(듣기 버튼 + 재생바) — 스크롤해도 상단에 고정. 좌우·상단을 본문 영역에 꽉 맞춤(풀블리드) */
.qt-d-controls {
  position: sticky; top: 0; z-index: 6;
  background: var(--paper);
  margin: 0 -40px 12px; padding: 12px 40px;
  border-bottom: 1px solid var(--line);
}
.qt-d-date { font-family: "Cormorant Garamond", serif; letter-spacing: .1em; color: var(--gold); font-size: 1.05rem; }
.qt-d-title { font-family: "Noto Serif KR", serif; font-size: 1.7rem; line-height: 1.45; color: var(--ink); margin: 10px 0 8px; word-break: keep-all; }
.qt-d-ref { color: var(--accent); font-size: 1.08rem; font-weight: 600; }
.qt-d-head {
  font-family: "Noto Serif KR", serif; font-size: 1.2rem; color: var(--accent);
  margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.qt-d-sec p { font-family: "Noto Sans KR", sans-serif; font-size: 1.06rem; line-height: 2; color: var(--ink); word-break: keep-all; white-space: pre-line; }
.qt-d-sec p + p { margin-top: 14px; }
@media (max-width: 680px) {
  .qt-detail { padding: 0 20px 24px; }
  .qt-d-top { padding-top: 20px; }
  .qt-d-controls { margin: 0 -20px 12px; padding: 12px 20px; }
  .qt-datebar { padding: 13px 14px; }
  .qt-yearbar { padding: 11px 14px 2px; }
  .qt-d-title { font-size: 1.4rem; }
  .qt-d-sec p { font-size: 1rem; line-height: 1.92; }
}

/* ===== Bulletin archive ===== */
.bulletin-controls {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 50px;
}
.bulletin-controls .ctrl { display: flex; flex-direction: column; gap: 7px; }
.bulletin-controls .ctrl > span {
  font-size: .8rem; letter-spacing: .05em; color: var(--muted); padding-left: 2px;
}
.bulletin-controls select,
.bulletin-controls input {
  font-family: "Noto Sans KR", sans-serif; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; min-width: 180px; transition: border-color .25s ease;
}
.bulletin-controls .ctrl-search input { min-width: 280px; }
.bulletin-controls select:focus,
.bulletin-controls input:focus { outline: none; border-color: var(--accent-soft); }

.bulletin-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.bulletin-card {
  text-align: left; font-family: inherit; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px 26px; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bulletin-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.09); border-color: var(--accent-soft); }
.bulletin-card .b-week {
  align-self: flex-start; font-size: .78rem; font-weight: 700; color: #fff;
  background: var(--accent-soft); padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.bulletin-card .b-date { font-family: "Cormorant Garamond", serif; letter-spacing: .12em; color: var(--gold); font-size: 1rem; }
.bulletin-card h4 { font-family: "Noto Serif KR", serif; font-size: 1.3rem; margin: 6px 0 8px; line-height: 1.4; }
.bulletin-card .b-ref { color: var(--ink-soft); font-size: .92rem; font-weight: 300; }
.bulletin-card .b-more { margin-top: 18px; font-size: .85rem; font-weight: 500; color: var(--accent); }
/* 게시 주보에 설교 요약이 있을 때만 표시되는 칩 */
.bulletin-card .b-sum {
  align-self: flex-start; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--accent);
  background: #f2f6fd; border: 1px solid #dbe6f7; padding: 4px 12px; border-radius: 20px; transition: background .2s ease;
}
.bulletin-card .b-sum:hover { background: #e4edfb; }
.bulletin-empty { text-align: center; color: var(--muted); margin-top: 30px; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,17,20,.6); backdrop-filter: blur(3px); animation: fade .3s ease; }
.modal-box {
  position: relative; z-index: 1; background: var(--paper); border-radius: 18px;
  max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 46px 48px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: pop .35s ease;
}
@keyframes fade { from{opacity:0;} to{opacity:1;} }
@keyframes pop { from{opacity:0; transform:translateY(20px) scale(.98);} to{opacity:1; transform:translateY(0) scale(1);} }
.modal-close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0;
  font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer; transition: color .2s ease;
}
.modal-close:hover { color: var(--ink); }
.m-eyebrow { font-size: .82rem; color: var(--accent-soft); letter-spacing: .05em; }
.m-title { font-family: "Noto Serif KR", serif; font-size: 1.7rem; margin: 8px 0 6px; }
.m-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.m-quote {
  font-family: "Noto Serif KR", serif; font-size: 1rem; line-height: 1.9; color: var(--accent);
  border-left: 3px solid var(--gold); padding-left: 20px; margin-bottom: 30px;
}
.m-head {
  font-family: "Noto Serif KR", serif; font-size: 1.1rem; color: var(--accent);
  margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.m-order { counter-reset: step; padding-left: 0; }
.m-order li {
  counter-increment: step; position: relative; padding: 8px 0 8px 40px;
  border-bottom: 1px dashed var(--line); font-size: .93rem; color: var(--ink-soft);
}
.m-order li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 8px;
  font-family: "Cormorant Garamond", serif; color: var(--gold); font-size: .95rem; font-weight: 600;
}
.m-extra li { padding: 8px 0; font-size: .92rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }

/* 한 주의 소식 */
.m-news { counter-reset: nstep; padding-left: 0; }
.m-news li {
  counter-increment: nstep; position: relative; padding: 12px 0 12px 40px;
  border-bottom: 1px dashed var(--line);
}
.m-news li::before {
  content: counter(nstep, decimal-leading-zero); position: absolute; left: 0; top: 13px;
  font-family: "Cormorant Garamond", serif; color: var(--gold); font-size: .95rem; font-weight: 600;
}
.m-news li strong { display: block; font-family: "Noto Serif KR", serif; font-size: 1rem; color: var(--ink); margin-bottom: 3px; }
.m-news li span { font-size: .9rem; color: var(--ink-soft); font-weight: 300; }

/* 향기로운 예물 */
.m-offering { display: flex; flex-direction: column; gap: 2px; }
.m-off-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.m-off-cat { font-weight: 700; color: var(--accent); font-size: .88rem; }
.m-off-names {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  column-gap: 8px; row-gap: 7px;
}
.m-off-names span {
  font-size: .88rem; color: var(--ink-soft); font-weight: 300;
  white-space: nowrap; word-break: keep-all;
}

/* Faith & Books */
.m-book-title { font-family: "Noto Serif KR", serif; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.m-book-title span { color: var(--muted); font-weight: 400; font-size: .85rem; }
.m-book-text { font-size: .92rem; line-height: 1.95; color: var(--ink-soft); font-weight: 300; }

.m-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* ===== News ===== */
.news-list { max-width: 820px; margin: 0 auto; }
.news-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 26px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.news-no { font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--gold); line-height: 1; }
.news-item h4 { font-family: "Noto Serif KR", serif; font-size: 1.2rem; margin-bottom: 8px; }
.news-item p { color: var(--ink-soft); font-weight: 300; font-size: .98rem; }

/* ===== Mission ===== */
.mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mission-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 34px 28px;
  position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.mission-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s ease;
}
.mission-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.mission-card:hover::before { transform: scaleY(1); }
.mission-card h4 { font-family: "Noto Serif KR", serif; font-size: 1.25rem; color: var(--accent); margin-bottom: 10px; }
.m-region { font-size: .9rem; color: var(--ink-soft); font-weight: 300; }
.m-name { margin-top: 16px; font-weight: 500; font-size: .92rem; }

/* ===== Location ===== */
.location-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: stretch; }
.loc-info { display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.loc-row { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 22px; }
.loc-label { display: inline-block; font-family: "Cormorant Garamond", serif; letter-spacing: .2em; font-size: .8rem; color: var(--gold); margin-bottom: 8px; }
.loc-row p { font-size: 1.1rem; color: rgba(255,255,255,.92); }
.loc-row a { color: #fff; }
.loc-map { border-radius: 14px; overflow: hidden; min-height: 360px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.2); }

/* ===== Footer ===== */
.footer { background: #0e1014; color: #fff; padding: 56px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .logo-kr { color: #fff; font-size: 1.3rem; }
.footer-brand .logo-en { color: var(--gold); margin-top: 4px; }
.footer-meta { text-align: right; }
.footer-meta p { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.footer-meta .copy { margin-top: 14px; font-size: .78rem; color: rgba(255,255,255,.35); }

/* ===== Install bar (PWA) ===== */
.install-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 300; width: calc(100% - 32px); max-width: 460px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 16px 44px rgba(0,0,0,.18);
  animation: slideUp .45s ease;
}
.install-bar[hidden] { display: none; }
.install-icon { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.install-text { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.install-text strong { font-size: .98rem; color: var(--ink); }
.install-text span { font-size: .82rem; color: var(--ink-soft); }
.install-go {
  flex-shrink: 0; background: #032257; color: #fff; border: 0; border-radius: 24px;
  padding: 10px 20px; font-family: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: opacity .2s ease;
}
.install-go:hover { opacity: .88; }
.install-close {
  flex-shrink: 0; background: none; border: 0; font-size: 1.5rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px;
}
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .worship-grid, .mission-grid, .bulletin-list { grid-template-columns: repeat(2, 1fr); }
  .sermon-feature, .sermon-side { grid-template-columns: 1fr; }
  .sermon-deck { min-height: 500px; }
  .location-grid { grid-template-columns: 1fr; }
  .servant-grid { grid-template-columns: 1fr; max-width: 340px; }
}
/* 중간 폭(좁은 노트북·태블릿 가로): 메뉴가 한 줄에 들어가도록 간격·글자 축소 */
@media (max-width: 1180px) and (min-width: 761px) {
  .nav-inner { padding: 0 20px; }
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: .85rem; }
}

@media (max-width: 760px) {
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 330px; height: 100vh; height: 100dvh;
    background: #fff; flex-direction: column; gap: 0; padding: 92px 32px 150px;
    box-shadow: -10px 0 40px rgba(0,0,0,.12); transition: right .4s ease;
    z-index: 106; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .nav-menu.open { right: 0; }
  /* 배경 딤 */
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.58); z-index: 104;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  /* 메뉴 열렸을 때 본문 스크롤 잠금 */
  body.menu-lock { overflow: hidden; }
  .nav-menu a { color: var(--ink) !important; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-menu a::after { display: none; }
  .nav-toggle { display: block; z-index: 110; }
  #header.menu-open .nav-toggle span { background: var(--ink); }
  #header.menu-open .nav-toggle span:nth-child(1){ top: 10px; transform: rotate(45deg); }
  #header.menu-open .nav-toggle span:nth-child(2){ opacity: 0; }
  #header.menu-open .nav-toggle span:nth-child(3){ top: 10px; transform: rotate(-45deg); }
  .section { padding: 80px 0; }
  .worship-grid, .mission-grid, .bulletin-list { grid-template-columns: 1fr; }
  .bulletin-controls .ctrl-search input { min-width: 0; width: 100%; }
  .bulletin-controls .ctrl { width: 100%; }
  .modal-box { padding: 38px 26px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .servant-row { grid-template-columns: 1fr; gap: 4px; }
  .sermon-feature { padding: 40px 28px; }
  .sermon-deck { min-height: 560px; }
  .sermon-nav { flex-wrap: wrap; gap: 12px; }
}

/* ============================================================
   멀티페이지 IA 컴포넌트 (5대 메뉴 구조)
   ============================================================ */
.logo { flex-direction: row; align-items: center; gap: 11px; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }

.nav-menu a.active { color: var(--gold); }
.nav-menu a.active::after { width: 100%; background: var(--gold); }
#header.scrolled .nav-menu a.active { color: var(--accent); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-nav a { font-size: .88rem; color: rgba(255,255,255,.75); }
.footer-nav a:hover { color: var(--gold); }
.footer-inner { flex-wrap: wrap; gap: 24px; }

/* 버튼 */
.btn { display: inline-block; font-family: inherit; font-weight: 700; font-size: .95rem; border-radius: 30px; padding: 13px 30px; cursor: pointer; transition: all .25s ease; border: 1.5px solid transparent; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #2f463a; }
.btn-line { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--accent); color: #fff; }

/* 서브페이지 히어로 */
.page-hero { position: relative; padding: 150px 24px 70px; text-align: center; color: #fff; background: #26362e; }
.page-hero .ph-eyebrow { font-family:"Cormorant Garamond",serif; letter-spacing:.4em; font-size:.85rem; color:var(--gold); }
.page-hero h1 { font-family:"Noto Serif KR",serif; font-size: clamp(1.9rem,4.5vw,2.9rem); margin: 12px 0 14px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto; font-weight: 300; }

/* 페이지 내부 블록 */
.block { padding: 84px 0; }
.block-alt { background: var(--paper-alt); }
.block-head { text-align: left; margin-bottom: 34px; max-width: 760px; }
.block-head .eyebrow2 { font-family:"Cormorant Garamond",serif; letter-spacing:.25em; font-size:.8rem; color: var(--accent-soft); }
.block-head h2 { font-family:"Noto Serif KR",serif; font-size: clamp(1.5rem,3.4vw,2.1rem); margin-top: 6px; }
.block-head p { color: var(--ink-soft); margin-top: 12px; font-weight: 300; }
.lead-text { font-family:"Noto Serif KR",serif; font-size:1.2rem; line-height:1.8; color:var(--ink); }
.placeholder-note { display:inline-block; font-size:.78rem; color:var(--accent-soft); background: rgba(111,138,124,.12); border-radius: 20px; padding: 4px 12px; margin-top: 10px; }

.tone-box { background:#fff; border:1px solid var(--line); border-left:4px solid var(--gold); border-radius:12px; padding:24px 28px; margin-bottom:38px; }
.tone-box p { color: var(--ink-soft); }

/* 홈 흐름 서사 + 진입 카드 */
.flow-narrative { text-align:center; max-width:720px; margin:0 auto 52px; }
.flow-narrative p { color: var(--ink-soft); font-weight:300; }
.flow-narrative .flow-line { font-family:"Noto Serif KR",serif; font-size:1.2rem; color:var(--accent); margin-top:10px; }
.entry-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap:22px; }
.entry-card { display:block; background:#fff; border:1px solid var(--line); border-radius:16px; padding:32px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.entry-card:hover { transform: translateY(-6px); box-shadow:0 20px 44px rgba(0,0,0,.09); border-color:var(--accent-soft); }
.entry-num { font-family:"Cormorant Garamond",serif; font-size:1.1rem; color:var(--gold); }
.entry-card h3 { font-family:"Noto Serif KR",serif; font-size:1.25rem; margin:8px 0 10px; }
.entry-card p { color:var(--ink-soft); font-size:.9rem; font-weight:300; }
.entry-card .entry-go { display:inline-block; margin-top:16px; font-size:.85rem; font-weight:500; color:var(--accent); }

.home-sermon { max-width:720px; margin:0 auto; background:var(--accent); color:#fff; border-radius:18px; padding:46px 44px; text-align:center; }
.home-sermon .hs-date { font-size:.85rem; color:var(--gold); letter-spacing:.06em; }
.home-sermon .hs-title { font-family:"Noto Serif KR",serif; font-size:clamp(1.6rem,3.6vw,2.2rem); margin:12px 0 8px; }
.home-sermon .hs-ref { color:rgba(255,255,255,.82); }
.home-sermon .hs-quote { font-family:"Noto Serif KR",serif; color:rgba(255,255,255,.9); line-height:1.85; border-top:1px solid rgba(255,255,255,.2); margin:22px 0; padding-top:20px; font-size:1rem; }
.home-sermon .btn-line { border-color:rgba(255,255,255,.6); color:#fff; }
.home-sermon .btn-line:hover { background:#fff; color:var(--accent); }

/* 이동 유도 CTA */
.cta-flow { background: var(--accent); color:#fff; border-radius:18px; padding:50px 40px; text-align:center; }
.cta-flow .cta-eyebrow { font-family:"Cormorant Garamond",serif; letter-spacing:.3em; font-size:.8rem; color:var(--gold); }
.cta-flow h3 { font-family:"Noto Serif KR",serif; font-size:1.45rem; margin:12px 0 22px; }
.cta-flow .cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cta-flow .btn-line { border-color:rgba(255,255,255,.6); color:#fff; }
.cta-flow .btn-line:hover { background:#fff; color:var(--accent); }

/* 정보 카드 */
.info-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:24px; }
.info-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:30px 28px; }
.info-card h3 { font-family:"Noto Serif KR",serif; font-size:1.2rem; color:var(--accent); margin-bottom:12px; }
.info-card ul li { padding:8px 0; border-bottom:1px dashed var(--line); display:flex; justify-content:space-between; gap:12px; font-size:.93rem; color:var(--ink-soft); }
.info-card ul li strong { color:var(--ink); }
.info-card p { color:var(--ink-soft); font-size:.93rem; font-weight:300; }

/* 교회 가는 길 */
.directions { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:start; }
.dir-steps { display:flex; flex-direction:column; gap:16px; }
.dir-step { display:flex; gap:16px; align-items:flex-start; }
.dir-step .ds-num { flex-shrink:0; width:34px; height:34px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem; }
.dir-step h4 { font-size:1rem; margin-bottom:3px; }
.dir-step p { color:var(--ink-soft); font-size:.9rem; font-weight:300; }
.dir-photo { background:var(--paper-alt); border:1px dashed var(--line); border-radius:14px; min-height:220px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.9rem; text-align:center; padding:20px; }

/* 인사말 */
.greeting { display:grid; grid-template-columns:220px 1fr; gap:40px; align-items:start; }
.greeting .pastor-photo { background:var(--paper-alt); border-radius:14px; aspect-ratio:3/4; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.85rem; text-align:center; border:1px dashed var(--line); }
.greeting img.pastor-photo { width:100%; height:auto; object-fit:cover; border:0; box-shadow:0 14px 36px rgba(0,0,0,.16); }
.greeting .greeting-text p { color:var(--ink-soft); margin-bottom:14px; }
.greeting .greeting-sign { font-family:"Noto Serif KR",serif; color:var(--accent); margin-top:8px; }

/* 폼 */
.form-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:36px; max-width:680px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field { display:flex; flex-direction:column; gap:6px; }
.form-field.full { grid-column:1 / -1; }
.form-field label { font-size:.85rem; color:var(--ink-soft); font-weight:500; }
.form-field input, .form-field textarea, .form-field select { font-family:inherit; font-size:.95rem; padding:12px 14px; border:1px solid var(--line); border-radius:10px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline:none; border-color:var(--accent-soft); }
.form-actions { margin-top:22px; }
.newcomer-done { text-align:center; padding:40px; background:var(--paper-alt); border-radius:16px; }
.newcomer-done h3 { font-family:"Noto Serif KR",serif; color:var(--accent); margin-bottom:10px; }

.welcome-steps { display:flex; flex-wrap:wrap; gap:16px; margin-top:30px; }
.welcome-step { flex:1; min-width:150px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; text-align:center; }
.welcome-step .ws-num { font-family:"Cormorant Garamond",serif; color:var(--gold); font-size:1.2rem; }
.welcome-step h4 { font-size:1rem; margin:6px 0; }
.welcome-step p { font-size:.85rem; color:var(--ink-soft); font-weight:300; }

/* 성장 로드맵 */
.roadmap { display:flex; flex-wrap:wrap; align-items:stretch; }
.roadmap-step { flex:1; min-width:180px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:28px 24px; margin:8px; }
.roadmap-step .rm-stage { font-family:"Cormorant Garamond",serif; letter-spacing:.1em; color:var(--gold); font-size:.95rem; }
.roadmap-step h4 { font-family:"Noto Serif KR",serif; font-size:1.15rem; margin:6px 0 8px; color:var(--accent); }
.roadmap-step p { color:var(--ink-soft); font-size:.88rem; font-weight:300; }

/* 연령별 공동체 / 소그룹 */
.community-grid, .group-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:22px; }
.community-card, .group-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:30px 28px; transition: transform .3s, box-shadow .3s; }
.community-card:hover, .group-card:hover { transform:translateY(-5px); box-shadow:0 16px 36px rgba(0,0,0,.08); }
.community-card h3 { font-family:"Noto Serif KR",serif; font-size:1.25rem; color:var(--accent); }
.community-card .cc-meta { font-size:.85rem; color:var(--muted); margin:6px 0 14px; }
.community-card ul li, .group-card ul li { font-size:.9rem; color:var(--ink-soft); padding:5px 0; border-bottom:1px dashed var(--line); }
.group-card h4 { font-family:"Noto Serif KR",serif; font-size:1.1rem; margin-bottom:8px; }
.group-card p { font-size:.9rem; color:var(--ink-soft); font-weight:300; }

/* 회원 전용 잠금 */
.member-lock { background:var(--paper-alt); border:1px dashed var(--accent-soft); border-radius:16px; padding:40px; text-align:center; }
.member-lock .lock-icon { font-size:1.8rem; }
.member-lock h3 { font-family:"Noto Serif KR",serif; margin:10px 0 8px; color:var(--accent); }
.member-lock p { color:var(--ink-soft); font-size:.92rem; }
.member-lock .ml-list { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:18px 0; }
.member-lock .ml-list span { background:#fff; border:1px solid var(--line); border-radius:20px; padding:6px 14px; font-size:.85rem; color:var(--ink-soft); }

/* 기도 게시판 */
.prayer-board { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.prayer-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; }
.prayer-card .pc-by { font-size:.82rem; color:var(--muted); margin-bottom:6px; }
.prayer-card p { font-size:.92rem; color:var(--ink-soft); }

/* 지역 사역 스토리 */
.region-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:34px 32px; margin-bottom:20px; border-left:4px solid var(--accent); }
.region-card .rc-tag { display:inline-block; font-size:.78rem; font-weight:700; color:#fff; background:var(--accent-soft); border-radius:20px; padding:4px 12px; margin-bottom:12px; }
.region-card h3 { font-family:"Noto Serif KR",serif; font-size:1.3rem; margin-bottom:10px; }
.region-card p { color:var(--ink-soft); font-weight:300; }
.region-card-link { display:block; transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.region-card-link:hover { border-left-color:var(--accent-soft); box-shadow:0 12px 28px rgba(0,0,0,.07); transform:translateY(-2px); }
.region-card-link .rc-go { display:inline-block; margin-top:14px; font-size:.9rem; font-weight:600; color:var(--accent); }
.region-card .rc-btn { display:inline-flex; align-items:center; margin-top:18px; }

/* 선교지 카드(클릭 → 지도) + 지도 모달 */
.mission-card-btn { width:100%; text-align:left; font-family:inherit; color:inherit; background:transparent; cursor:pointer; display:block; }
.mission-card-btn .m-go { display:inline-block; margin-top:14px; font-size:.85rem; font-weight:600; color:var(--accent-soft); }
.modal-box-map { max-width:640px; padding:0; overflow:hidden; }
.map-head { padding:28px 30px 4px; }
.map-title { font-family:"Noto Serif KR",serif; font-size:1.4rem; color:var(--ink); }
.map-addr { color:var(--ink-soft); font-size:.92rem; margin-top:6px; }
.map-frame { padding:16px 30px 0; }
.map-frame iframe { width:100%; height:360px; border:0; border-radius:12px; display:block; }
.map-open { display:inline-block; margin:16px 30px 28px; }
@media (max-width:680px){
  .map-head { padding:24px 22px 4px; }
  .map-frame { padding:14px 22px 0; }
  .map-frame iframe { height:300px; }
  .map-open { margin:14px 22px 24px; }
}

/* 함께 섬기기 */
.serve-list { display:grid; gap:14px; }
.serve-item { display:flex; justify-content:space-between; align-items:center; gap:16px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 24px; flex-wrap:wrap; }
.serve-item h4 { font-size:1.02rem; }
.serve-item p { font-size:.85rem; color:var(--ink-soft); font-weight:300; }

/* 간증 */
.story-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:24px; }
.story-card { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; transition: transform .3s, box-shadow .3s; }
.story-card:hover { transform:translateY(-5px); box-shadow:0 16px 36px rgba(0,0,0,.08); }
.story-card .sc-photo { aspect-ratio:4/3; background:var(--paper-alt); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.85rem; }
.story-card .sc-body { padding:24px 26px; }
.story-card .sc-tag { font-size:.78rem; color:var(--gold); }
.story-card h3 { font-family:"Noto Serif KR",serif; font-size:1.15rem; margin:6px 0 8px; }
.story-card p { font-size:.9rem; color:var(--ink-soft); font-weight:300; }

/* Q&A 아코디언 */
.qna-item { background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:12px; overflow:hidden; }
.qna-q { width:100%; text-align:left; background:none; border:0; font-family:inherit; font-size:1.02rem; font-weight:500; color:var(--ink); padding:20px 24px; cursor:pointer; display:flex; justify-content:space-between; gap:16px; }
.qna-q .qna-mark { color:var(--gold); font-family:"Noto Serif KR",serif; }
.qna-a { padding:0 24px; max-height:0; overflow:hidden; transition: max-height .35s ease, padding .35s ease; color:var(--ink-soft); font-weight:300; font-size:.93rem; }
.qna-item.open .qna-a { max-height:500px; padding:0 24px 22px; }
.qna-cat { font-family:"Noto Serif KR",serif; font-size:1.2rem; color:var(--accent); margin:30px 0 14px; padding-bottom:8px; border-bottom:2px solid var(--accent); }
.qna-cat:first-child { margin-top:0; }

/* 전체 연혁 (요람 교회연혁 전문) */
.hist-subhead { font-family:"Noto Serif KR",serif; font-size:1.3rem; color:var(--ink); margin:50px 0 6px; padding-top:32px; border-top:1px solid var(--line); }
.hist-note { font-size:.88rem; color:var(--muted); margin-bottom:22px; }
.history-full {
  max-height:520px; overflow-y:auto; -webkit-overflow-scrolling:touch;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:4px 26px; box-shadow:inset 0 -14px 16px -14px rgba(0,0,0,.12);
}
.hist-row { display:grid; grid-template-columns:118px 1fr; gap:18px; padding:13px 0; border-bottom:1px solid var(--line); }
.hist-row:last-child { border-bottom:0; }
.hist-date { font-weight:700; color:var(--accent); font-size:.9rem; white-space:nowrap; letter-spacing:.01em; }
.hist-text p { font-size:.94rem; color:var(--ink); line-height:1.7; word-break:keep-all; }
.hist-text p + p { margin-top:3px; font-size:.88rem; color:var(--muted); }
@media (max-width:680px){
  .history-full { padding:4px 16px; max-height:440px; }
  .hist-row { grid-template-columns:80px 1fr; gap:10px; }
  .hist-date { font-size:.82rem; }
  .hist-text p { font-size:.9rem; }
}

/* 앨범 */
.album-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap:14px; }
.album-item { aspect-ratio:1; background:var(--paper-alt); border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.82rem; text-align:center; padding:10px; border:1px dashed var(--line); }
/* 앨범 카드(사진 업로드/보기) */
.album-hint { color: var(--muted); font-size: .9rem; margin: -6px 0 18px; }
.album-card { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: var(--paper-alt); transition: .2s; }
.album-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.10); transform: translateY(-2px); }
.album-card.drag { outline: 3px dashed var(--accent); outline-offset: -3px; }
.album-thumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--muted); background-size: cover; background-position: center; }
.album-card.has-photo .album-thumb { color: transparent; }
.album-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: .9rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.album-card:not(.has-photo) .album-cap { color: var(--ink); background: none; }
.album-count { font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 12px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.album-add { position: absolute; top: 8px; right: 8px; z-index: 2; font-family: inherit; font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 16px; border: 0; background: rgba(255,255,255,.92); color: var(--accent); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.album-add:hover { background: #fff; }
.album-droplay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(3,34,87,.55); color: #fff; font-weight: 600; font-size: .85rem; pointer-events: none; }
.album-card.drag .album-droplay { display: flex; }
/* 갤러리 모달 — 인스타그램 피드형 */
.modal-box-album { max-width: 500px; width: 100%; }
.album-feed { margin-top: 14px; max-height: 74vh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding-right: 2px; }
.album-feed.empty { display: block; }
.ig-card { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-avatar { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; color: #fff; background: var(--accent); }
.ig-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ig-who b { font-size: .92rem; color: var(--ink); }
.ig-who span { font-size: .74rem; color: var(--muted); }
.ig-menu { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: .8rem; cursor: pointer; padding: 4px 6px; }
.ig-menu:hover { color: #c0392b; }
.ig-media { position: relative; background: #000; cursor: pointer; display: block; }
.ig-media img { display: block; width: 100%; max-height: 62vh; object-fit: contain; user-select: none; }
.ig-heartburst, .igv-heartburst { position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; transform: translate(-50%,-50%) scale(0); opacity: 0; color: #fff; pointer-events: none; }
.ig-heartburst.go, .igv-heartburst.go { animation: igheart .9s ease; }
@keyframes igheart { 0%{transform:translate(-50%,-50%) scale(0);opacity:0;} 15%{transform:translate(-50%,-50%) scale(1.15);opacity:.95;} 30%{transform:translate(-50%,-50%) scale(.95);} 70%{opacity:.95;} 100%{transform:translate(-50%,-50%) scale(1);opacity:0;} }
.ig-actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px 2px; }
.ig-btn { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); line-height: 0; border-radius: 50%; }
.ig-btn:hover { background: var(--paper-alt); }
.ig-ic { width: 26px; height: 26px; display: block; }
.ig-like.on { color: #e0245e; }
.ig-likecount { padding: 2px 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.ig-caption { padding: 4px 14px 2px; font-size: .92rem; line-height: 1.5; color: var(--ink); word-break: break-word; }
.ig-caption b { font-weight: 700; margin-right: 4px; }
.ig-comments { padding: 2px 14px; display: flex; flex-direction: column; gap: 3px; }
.ig-morecmt { align-self: flex-start; border: 0; background: none; color: var(--muted); font-size: .85rem; cursor: pointer; padding: 2px 0; }
.ig-cmt { font-size: .9rem; line-height: 1.5; color: var(--ink); word-break: break-word; }
.ig-cmt b { font-weight: 700; margin-right: 4px; }
.ig-cmt-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .95rem; padding: 0 4px; }
.ig-addcmt { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding: 9px 14px; }
.ig-addcmt input { flex: 1; border: 0; outline: none; font-family: inherit; font-size: .9rem; background: none; color: var(--ink); }
.ig-addcmt button { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: .9rem; cursor: pointer; padding: 2px 4px; }
.ig-addcmt button:hover { opacity: .7; }

/* 전체화면 뷰어 */
.ig-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.ig-viewer[hidden] { display: none; }
.igv-stage { position: relative; max-width: 100%; max-height: 82vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.igv-stage img { max-width: 100vw; max-height: 82vh; object-fit: contain; touch-action: pan-y; transition: transform .05s linear; user-select: none; }
.igv-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.igv-close:hover { background: rgba(255,255,255,.22); }
.igv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.igv-nav:hover { background: rgba(255,255,255,.26); }
.igv-prev { left: 12px; } .igv-next { right: 12px; }
.igv-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; }
.igv-acts { display: flex; align-items: center; gap: 10px; }
.igv-like { border: 0; background: none; color: #fff; cursor: pointer; padding: 4px; line-height: 0; }
.igv-like.on { color: #ff2d55; }
.igv-like .ig-ic { width: 32px; height: 32px; }
.igv-likecount { font-size: .95rem; font-weight: 600; }
.igv-cap { margin-top: 8px; font-size: .95rem; line-height: 1.5; max-height: 22vh; overflow-y: auto; }
.igv-cap b { font-weight: 700; margin-right: 5px; }
.igv-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.igv-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.igv-dot.on { background: #fff; }
@media (max-width: 680px) {
  .ig-media img { max-height: 70vh; }
  .igv-nav { display: none; }        /* 모바일은 스와이프로 넘김 */
}

/* 공유 대상 페이지(share.html) */
.share-wrap { max-width: 460px; margin: 0 auto; }
.share-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #fff; }
.share-card h3 { font-family: "Noto Serif KR", serif; font-size: 1.25rem; color: var(--ink); margin-bottom: 10px; }
.share-note { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; word-break: keep-all; }
.share-note a { color: var(--accent); word-break: break-all; }
.share-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 18px; }
.share-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.share-field { display: block; margin-bottom: 16px; }
.share-field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.share-field select, .share-field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-alt); outline: none;
}
.share-field select:focus, .share-field textarea:focus { border-color: var(--accent); }
.share-field textarea { resize: vertical; }
.share-go { width: 100%; margin-top: 4px; }
.share-status { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--accent); font-weight: 600; }
/* 우리들 소식 — 공유로 올리기 안내 버튼 */
.album-share-cta { display: inline-flex; align-items: center; gap: 7px; margin: 2px 0 20px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--accent);
  font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.album-share-cta:hover { border-color: var(--accent); }

/* ===== 홈 '우리들 소식' 캐러셀 ===== */
.hn-box { max-width: 860px; margin: 0 auto; }
.hn-carousel { position: relative; border-radius: 18px; overflow: hidden; background: var(--paper-alt); aspect-ratio: 16 / 10; box-shadow: 0 8px 30px rgba(3,34,87,.10); }
.hn-track { position: absolute; inset: 0; }
.hn-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; cursor: pointer; }
.hn-slide.on { opacity: 1; }
.hn-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.hn-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; }
.hn-cap b { font-family: "Noto Serif KR", serif; font-size: 1.15rem; font-weight: 700; word-break: keep-all; }
.hn-cap span { font-size: .82rem; color: rgba(255,255,255,.82); font-family: "Cormorant Garamond", serif; letter-spacing: .04em; }
.hn-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.hn-empty span { font-size: 2.4rem; }
.hn-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.82); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.hn-arrow:hover { background: #fff; }
.hn-a-prev { left: 12px; } .hn-a-next { right: 12px; }
.hn-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 7px; justify-content: center; z-index: 2; }
.hn-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.hn-dot.on { background: #fff; transform: scale(1.25); }
.hn-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.hn-add { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border: 0; border-radius: 26px; cursor: pointer;
  font-family: inherit; font-size: .92rem; font-weight: 600; color: #fff; background: var(--accent); box-shadow: 0 4px 14px rgba(3,34,87,.22); }
.hn-add:hover { filter: brightness(1.08); }
.hn-add[hidden] { display: none; }
@media (max-width: 680px) {
  .hn-carousel { aspect-ratio: 4 / 5; border-radius: 14px; }
  .hn-arrow { display: none; }          /* 모바일은 스와이프 */
  .hn-cap b { font-size: 1.02rem; }
  .hn-actions { flex-wrap: wrap; }
}

/* ===== 업로드 모달(제목·날짜·드래그드롭) ===== */
.modal-box-upload { max-width: 520px; width: 100%; }
.up-drop { border: 2px dashed var(--line); border-radius: 14px; background: var(--paper-alt); margin-top: 14px; transition: .2s; cursor: pointer; }
.up-drop.drag { border-color: var(--accent); background: #eef3fb; }
.up-drop-in { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; text-align: center; pointer-events: none; }
.up-drop-in .up-pick { pointer-events: auto; margin: 4px 0; }
.up-drop-ic { font-size: 2rem; }
.up-drop-t { font-size: .92rem; color: var(--ink-soft); }
.up-drop-s { font-size: .78rem; color: var(--muted); }
.up-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 12px; }
.up-thumbs:empty { display: none; }
.up-th { position: relative; }
.up-th img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; }
.up-th-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #c0392b; color: #fff; font-size: .9rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.up-fields { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.up-f { display: block; }
.up-f > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.up-f > span em { font-style: normal; color: var(--muted); font-weight: 400; }
.up-f input, .up-f select, .up-f textarea { width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.up-f input:focus, .up-f select:focus, .up-f textarea:focus { border-color: var(--accent); }
.up-f textarea { resize: vertical; }
.up-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-go { width: 100%; margin-top: 18px; }
.up-go:disabled { opacity: .5; cursor: default; }
.up-status { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--accent); font-weight: 600; }
@media (max-width: 680px) { .up-row { grid-template-columns: 1fr; } }

/* ===== 링크 게시(인스타그램·유튜브) ===== */
.up-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: .8rem; }
.up-or::before, .up-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.up-link-hint { margin-top: 6px; font-size: .8rem; font-weight: 600; }
.up-link-hint.ok { color: #2f7d46; }
.up-link-hint.bad { color: #c0392b; }
.up-link-hint[hidden] { display: none; }
.hn-linkbadge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; letter-spacing: .02em; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hn-linkbadge.yt { background: #e62117; }
.hn-linkbadge.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ig-media .hn-linkbadge { top: 10px; left: 10px; }
.ig-embed { cursor: default; background: #000; }
.ig-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.ig-embed-insta { background: #fff; }
.ig-embed-insta iframe { aspect-ratio: auto; height: 620px; }
@media (max-width: 680px) { .ig-embed-insta iframe { height: 540px; } }
.igv-embed { width: min(92vw, 900px); aspect-ratio: 16 / 9; max-height: 82vh; }
.igv-embed iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.igv-embed-insta { width: min(92vw, 420px); aspect-ratio: auto; height: min(76vh, 660px); background: #fff; border-radius: 8px; overflow: hidden; }
.igv-linkgo { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 11px 22px; border-radius: 999px; background: rgba(255,255,255,.95); color: #111; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); white-space: nowrap; }
.igv-linkgo:hover { background: #fff; }
.igv-linkout { color: #9ecbff; font-size: .84rem; text-decoration: none; }
.igv-linkout:hover { text-decoration: underline; }

/* 카테고리 관리 버튼(업로드 모달·community) */
.up-catmgr { border: 0; background: none; color: var(--accent); font-size: .78rem; font-weight: 600; cursor: pointer; margin-left: 6px; padding: 0; }
.up-catmgr:hover { text-decoration: underline; }
.album-cat-manage { margin-left: 8px; cursor: pointer; font-family: inherit; }
.album-cat-manage[hidden] { display: none; }
/* 카테고리 관리 모달 */
.modal-box-cat { max-width: 420px; width: 100%; }
.cat-note { font-size: .86rem; color: var(--ink-soft); margin: 8px 0 16px; line-height: 1.55; }
.cat-add { display: flex; gap: 8px; margin-bottom: 16px; }
.cat-add input { flex: 1; font-family: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.cat-add input:focus { border-color: var(--accent); }
.cat-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.cat-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; color: var(--ink); }
.cat-del { border: 0; background: none; color: #c0392b; font-size: .82rem; cursor: pointer; padding: 2px 4px; }
.cat-del:hover { text-decoration: underline; }
.cat-del:disabled { opacity: .4; cursor: default; }

/* 공지사항 */
.nt-wrap { max-width: 820px; margin: 0 auto; }
.nt-adminbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.nt-write { font-size: .88rem; padding: 8px 16px; }
.nt-empty { text-align: center; color: var(--muted); font-size: .92rem; padding: 22px 0; }
.nt-more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.nt-list { display: flex; flex-direction: column; gap: 12px; }
/* 전체(community) */
.nt-item { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #fff; }
.nt-item.pinned { border-color: var(--accent-soft, #b9c6dd); background: var(--paper-alt); }
.nt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nt-t { font-family: "Noto Serif KR", serif; font-size: 1.12rem; font-weight: 700; color: var(--ink); word-break: keep-all; }
.nt-pin { font-size: .78rem; color: var(--accent); font-weight: 700; margin-right: 6px; }
.nt-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.nt-body { margin-top: 10px; font-size: .96rem; line-height: 1.7; color: var(--ink); word-break: break-word; }
.nt-del { border: 0; background: none; color: #c0392b; font-size: .8rem; cursor: pointer; padding: 2px 4px; }
.nt-del:hover { text-decoration: underline; }
/* 홈(compact) */
.nt-item.nt-compact { display: block; padding: 0; overflow: hidden; }
.nt-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 14px 18px; }
.nt-toggle:hover { background: var(--paper-alt); }
.nt-compact .nt-t { font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nt-compact .nt-d { font-size: .8rem; color: var(--muted); white-space: nowrap; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.nt-caret { display: inline-block; transition: transform .2s ease; font-size: .7rem; color: var(--accent); }
.nt-compact.open .nt-caret { transform: rotate(180deg); }
.nt-compact .nt-body { padding: 2px 18px 16px; font-size: .93rem; line-height: 1.7; color: var(--ink); word-break: break-word; border-top: 1px solid var(--line); margin-top: -1px; }
.nt-adminrow { display: flex; gap: 14px; justify-content: flex-end; padding: 0 18px 12px; }
.nt-edit { border: 0; background: none; color: var(--accent); font-size: .8rem; cursor: pointer; padding: 2px 4px; }
.nt-edit:hover { text-decoration: underline; }
/* 공지 작성 모달 */
.modal-box-notice { max-width: 560px; width: 100%; }
.nt-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.nt-f { display: block; }
.nt-f > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.nt-f input, .nt-f textarea { width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.nt-f input:focus, .nt-f textarea:focus { border-color: var(--accent); }
.nt-f textarea { resize: vertical; }
.nt-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); cursor: pointer; }
.nt-submit { width: 100%; margin-top: 4px; }
.nt-status { text-align: center; font-size: .88rem; color: var(--accent); font-weight: 600; }

/* 연혁 타임라인 */
.timeline { position:relative; max-width:760px; margin:0 auto; padding-left:30px; }
.timeline::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--line); }
.timeline-item { position:relative; padding:0 0 30px 26px; }
.timeline-item::before { content:""; position:absolute; left:-30px; top:4px; width:16px; height:16px; border-radius:50%; background:var(--accent); border:3px solid var(--paper-alt); }
.timeline-item .tl-year { font-family:"Cormorant Garamond",serif; font-size:1.2rem; color:var(--gold); font-weight:600; }
.timeline-item h4 { font-family:"Noto Serif KR",serif; font-size:1.1rem; margin:2px 0 4px; }
.timeline-item p { color:var(--ink-soft); font-size:.9rem; font-weight:300; }

@media (max-width: 820px) {
  .directions, .greeting { grid-template-columns: 1fr; }
  .greeting .pastor-photo { max-width: 200px; }
  .cta-flow, .home-sermon { padding: 36px 24px; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 128px 20px 54px; }
  .block { padding: 60px 0; }
}

/* ============================================================
   인증(로그인) + 나눔터(게시판)
   ============================================================ */
.notify-btn { font-family: inherit; font-size: 1.05rem; line-height: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; justify-content: center; margin-left: 14px; flex: none; }
.notify-btn:hover { background: rgba(255,255,255,.16); }
#header.scrolled .notify-btn { border-color: var(--accent-soft); }
#header.scrolled .notify-btn:hover { background: var(--paper-alt); }
.notify-btn.on { background: var(--accent); border-color: var(--accent); }
.auth-slot { display: flex; align-items: center; gap: 10px; margin-left: 18px; }
.auth-btn { font-family: inherit; font-size: .85rem; font-weight: 500; padding: 7px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; transition: .2s; white-space: nowrap; }
.auth-btn:hover { background: #fff; color: var(--accent); }
#header.scrolled .auth-btn { border-color: var(--accent-soft); color: var(--accent); }
#header.scrolled .auth-btn:hover { background: var(--accent); color: #fff; }
.auth-name { font-size: .85rem; color: #fff; }
#header.scrolled .auth-name { color: var(--ink); }
.auth-pending { font-size: .85rem; color: rgba(255,255,255,.6); cursor: default; }
#header.scrolled .auth-pending { color: var(--muted); }

.modal-box-auth { max-width: 420px; padding: 40px 36px; text-align: center; }
.auth-head { margin-bottom: 22px; }
.auth-logo { width: 54px; height: 54px; border-radius: 12px; }
.auth-head h3 { font-family: "Noto Serif KR", serif; font-size: 1.4rem; margin: 12px 0 6px; }
.auth-head p { font-size: .88rem; color: var(--ink-soft); }
.kakao-btn { width: 100%; background: #FEE500; color: #3A1D1D; border: 0; border-radius: 12px; padding: 13px; font-family: inherit; font-size: .98rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; }
.kakao-btn:hover { filter: brightness(.96); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.auth-form .form-field input { width: 100%; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-msg { font-size: .85rem; padding: 6px 0; }
.auth-msg.err { color: #c0392b; }
.auth-msg.ok { color: var(--accent); }
.auth-switch { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); }
.auth-switch button { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; font-family: inherit; }
.auth-forgot { margin-top: 12px; font-size: .84rem; }
.auth-forgot button { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: inherit; }
.auth-forgot[hidden] { display: none; }
.auth-kakao-note { margin: 8px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.auth-kakao-note a { color: var(--accent); text-decoration: underline; }
.auth-kakao-note[hidden] { display: none; }
.auth-check a { color: var(--accent); text-decoration: underline; }
.auth-check[hidden] { display: none; }

.board-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.board-list { display: flex; flex-direction: column; gap: 12px; }
.board-item { text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; cursor: pointer; font-family: inherit; transition: .25s; }
.board-item:hover { border-color: var(--accent-soft); box-shadow: 0 10px 26px rgba(0,0,0,.06); transform: translateY(-2px); }
.board-item h3 { font-family: "Noto Serif KR", serif; font-size: 1.15rem; margin-bottom: 6px; }
.bi-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); }
.board-sub { font-size: .86rem; color: var(--ink-soft); margin-top: 6px; }
.bi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bi-top h3 { margin-bottom: 6px; }
.board-tag { flex-shrink: 0; font-size: .76rem; font-weight: 600; color: var(--accent); background: var(--paper-alt); border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
/* 게시판 '목록으로 보기' 토글 + 한 줄 목록 */
.board-toggle-wrap { text-align: center; margin-top: 16px; }
.board-toggle { font-size: .88rem; padding: 9px 20px; }
.board-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.board-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 13px 18px; cursor: pointer; font-family: inherit; transition: background .15s; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--paper-alt); }
.br-title { flex: 1; min-width: 0; font-size: .98rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-meta { flex-shrink: 0; font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) {
  .board-row { flex-wrap: wrap; gap: 4px 10px; }
  .br-title { flex-basis: 100%; white-space: normal; }
}

/* 게시글 반응(좋아요·응원·기도 등) */
.reactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.reaction-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 22px; background: #fff; cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink); transition: .15s; }
.reaction-btn:hover { border-color: var(--accent-soft); }
.reaction-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.reaction-btn .re-emoji { font-size: 1rem; line-height: 1; }
.reaction-btn .re-count { font-weight: 700; min-width: 14px; text-align: center; }
.reaction-btn.on .re-count { color: #fff; }
.board-form textarea { width: 100%; resize: vertical; }

.post-detail .post-body { margin: 18px 0; line-height: 1.9; color: var(--ink-soft); }
/* 게시글 첨부 사진 */
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 4px 0 18px; }
.post-images a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.post-images img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform .25s; }
.post-images a:hover img { transform: scale(1.04); }
/* 글쓰기 사진 미리보기 */
.board-img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.board-img-preview .bip-item { font-size: .82rem; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; color: var(--ink-soft); }
.board-img-preview .bip-item em { color: var(--muted); font-style: normal; }
.post-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 10px; }
.post-actions .btn { padding: 7px 18px; font-size: .85rem; }
.post-actions .post-del { background: #c0392b; color: #fff; border: 0; }
.post-actions .post-del:hover { background: #a5301f; }

/* 양육 자료실 — 외부 링크 목록 */
.resource-list { display: grid; gap: 10px; max-width: 640px; }
.resource-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; transition: .15s; }
a.resource-item:hover { border-color: var(--accent-soft); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.resource-item .ri-name { color: var(--ink); font-weight: 500; }
.resource-item .ri-go { color: var(--accent); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.resource-item.is-empty { background: var(--paper-alt); }
.resource-item.is-empty .ri-name { color: var(--ink-soft); }
.resource-item.is-empty .ri-go { color: var(--ink-soft); font-weight: 400; }
.res-upload { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.res-upmsg { font-size: .9rem; display: inline-block; margin-top: 8px; }

/* 자료실 카테고리 아코디언 */
.res-cats { display: grid; gap: 12px; max-width: 680px; }
.res-cat { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.res-cat-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.res-cat-head:hover { background: var(--paper-alt); }
.res-cat .rc-label { font-size: 1.05rem; font-weight: 600; color: var(--accent); }
.res-cat .rc-right { display: flex; align-items: center; gap: 12px; }
.res-cat .rc-count { background: var(--paper-alt); color: var(--ink-soft); font-size: .8rem; font-weight: 600; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.res-cat .rc-chevron { transition: transform .2s; color: var(--ink-soft); }
.res-cat.open .rc-chevron { transform: rotate(180deg); }
.res-cat-body { padding: 4px 20px 20px; display: grid; gap: 14px; }
.res-drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--ink-soft); font-size: .92rem; transition: .15s; }
.res-drop.drag { border-color: var(--accent); background: var(--paper-alt); }
.res-drop p { margin: 0 0 4px; }
.comments { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.comment-item { background: var(--paper-alt); border-radius: 10px; padding: 14px 16px; position: relative; }
.ci-head { display: flex; gap: 10px; margin-bottom: 4px; }
.ci-name { font-weight: 700; font-size: .88rem; }
.ci-date { font-size: .78rem; color: var(--muted); }
.comment-item p { font-size: .92rem; color: var(--ink-soft); }
.ci-del { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); font-size: .78rem; cursor: pointer; }
.comment-empty { color: var(--muted); font-size: .9rem; }
.comment-form { display: flex; gap: 10px; }
.comment-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; }
.comment-login { color: var(--muted); font-size: .88rem; }

@media (max-width: 760px) {
  /* 로그인 영역(이름·로그아웃)을 햄버거(선3개) 메뉴 패널 안 아래쪽으로 이동 */
  .auth-slot {
    position: fixed; right: -100%; bottom: 0;
    width: 80%; max-width: 330px; margin: 0; padding: 18px 32px calc(18px + env(safe-area-inset-bottom)); box-sizing: border-box;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06);
    z-index: 107; transition: right .4s ease;
  }
  #header.menu-open .auth-slot { right: 0; }
  .auth-slot .auth-wrap { width: 100%; display: block; }
  .auth-slot a.auth-name {
    display: block; width: 100%; box-sizing: border-box; text-align: center;
    color: var(--accent) !important; background: var(--paper-alt) !important;
    border: 1px solid var(--line) !important; text-shadow: none !important;
    padding: 13px; border-radius: 12px; font-size: 1rem;
  }
  .auth-slot .auth-card { display: none !important; }
  .auth-slot .auth-btn {
    width: 100%; padding: 13px; border-radius: 24px; font-size: 1rem;
    color: #fff !important; background: var(--accent); border: 1px solid var(--accent);
  }
  .modal-box-auth { padding: 34px 24px; }
}

/* 회원 관리 표 */
.member-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.member-table { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
.member-table th, .member-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.member-table th { background: var(--paper-alt); color: var(--accent); font-weight: 700; font-size: .85rem; }
.member-table tr:last-child td { border-bottom: 0; }
.prov-tag { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.prov-kakao { background: #FEE500; color: #3A1D1D; }
.prov-email { background: var(--paper-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.member-role-note { color: var(--accent-soft); font-size: .9rem; margin-bottom: 14px; }
.profile-msg { font-size: .9rem; }
.role-input { width: 110px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; background: var(--paper-alt); }
.role-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.role-select { width: 130px; font-family: inherit; }

/* 도로명 주소 검색 모달 */
.postcode-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.postcode-box { background: #fff; width: 100%; max-width: 480px; height: 540px; max-height: 88vh; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.postcode-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: .95rem; }
.postcode-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.postcode-embed { flex: 1; min-height: 0; }

/* 회원가입 채널 동의 체크 */
.auth-check { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: var(--ink-soft); margin: -4px 0 4px; cursor: pointer; line-height: 1.4; }
.auth-check input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }

/* 회원탈퇴 안내 박스 */
.withdraw-box { max-width: 560px; margin: 0 auto; }
.withdraw-warn { background: #fff4f3; border: 1px solid #f3c7c2; color: #a13b30; border-radius: 12px; padding: 16px 18px; font-size: .92rem; line-height: 1.6; margin-bottom: 22px; }
.btn-danger { background: #c0392b; color: #fff; border: 0; }
.btn-danger:hover { background: #a5301f; }

/* 주민번호 뒤 첫자리 입력 + 별표 마스크 */
.rrn-wrap { display: flex; align-items: center; gap: 10px; }
.rrn-wrap input { width: 64px; text-align: center; }
.rrn-mask { letter-spacing: 4px; color: var(--ink-soft); font-size: 1.2rem; user-select: none; }

/* 헤더: 로그인 이름 + 호버 카드 */
.auth-wrap { position: relative; display: inline-block; }
a.auth-name {
  display: inline-block; cursor: pointer; text-decoration: none;
  color: #fff !important; font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 20px;
  background: rgba(0,0,0,.18); /* 어두운 배경에서도 흰 글자가 또렷이 보이도록 */
  border: 1px solid rgba(255,255,255,.18);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
a.auth-name:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: var(--gold) !important; }
#header.scrolled a.auth-name { color: var(--accent) !important; background: var(--paper-alt); border-color: var(--line); text-shadow: none; }
#header.scrolled a.auth-name:hover { background: var(--accent); color: #fff !important; border-color: var(--accent); }

/* 호버 카드 (마우스를 갔다 대면 회원정보 표시) */
.auth-card {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 280px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
  padding: 18px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 120;
}
.auth-wrap:hover .auth-card,
.auth-wrap:focus-within .auth-card { opacity: 1; visibility: visible; transform: translateY(0); }
.ac-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ac-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper-alt); flex-shrink: 0; }
.ac-avatar-default { display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--muted); }
.ac-meta { min-width: 0; }
.ac-name { font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 1rem; color: var(--ink); }
.ac-email { font-size: .8rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-rows { padding: 10px 0; }
.ac-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: .85rem; color: var(--ink-soft); }
.ac-row strong { color: var(--ink); }
.ac-go { display: block; text-align: center; margin-top: 6px; padding: 9px 18px; font-size: .85rem; }
@media (max-width: 760px) {
  .auth-card { right: -10px; width: 250px; }
}

/* 카카오톡 채널 추가 버튼 (푸터) */
.kakao-channel-btn { display: inline-flex; align-items: center; gap: 7px; background: #FEE500; color: #3A1D1D; font-size: .9rem; font-weight: 700; padding: 11px 20px; border-radius: 24px; transition: filter .2s ease; }
.kakao-channel-btn:hover { filter: brightness(.95); color: #3A1D1D; }

/* 푸터 버튼 그룹 + 온라인 헌금 버튼 */
.footer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.give-btn { display: inline-flex; align-items: center; gap: 7px; background: #1e874b; color: #fff; font-size: .9rem; font-weight: 700; padding: 11px 20px; border-radius: 24px; cursor: pointer; transition: filter .2s ease; }
.give-btn:hover { filter: brightness(1.06); color: #fff; }

/* 온라인 헌금 모달 */
.modal-box-give { max-width: 380px; text-align: center; }
.give-head .give-emoji { font-size: 2rem; display: block; margin-bottom: 6px; }
.give-head h3 { margin: 0 0 6px; font-size: 1.25rem; }
.give-head p { margin: 0 0 18px; font-size: .85rem; color: var(--ink-soft, #7b8794); line-height: 1.55; }
.give-acct { background: #f4f8f5; border: 1px solid #dcebe1; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.give-acct .give-bank { display: inline-block; background: #1e874b; color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.give-acct .give-no { display: block; font-size: 1.4rem; font-weight: 700; letter-spacing: .5px; color: #11261a; font-variant-numeric: tabular-nums; }
.give-acct .give-holder { display: block; margin-top: 6px; font-size: .82rem; color: var(--ink-soft, #7b8794); }
.give-actions { display: flex; flex-direction: column; gap: 9px; }
.give-toss { display: block; background: #0064ff; color: #fff; font-weight: 700; font-size: .95rem; padding: 13px; border-radius: 12px; text-align: center; transition: filter .2s ease; }
.give-toss:hover { filter: brightness(1.08); color: #fff; }
.give-copy { display: block; background: #fff; color: #1a1a1a; border: 1.5px solid #d6dde6; font-weight: 700; font-size: .95rem; padding: 13px; border-radius: 12px; cursor: pointer; font-family: inherit; transition: background .2s ease; }
.give-copy:hover { background: #f5f8fc; }
.give-copy.copied { background: #e8f6ee; color: #1e874b; border-color: #bfe4cd; }
.give-note { margin: 14px 0 0; font-size: .76rem; color: var(--ink-soft, #98a2af); line-height: 1.5; }

/* ============================================================
   교회 정관 (bylaws.html)
   ============================================================ */
.bylaws { max-width: 880px; }
.by-revised { text-align: center; font-size: .86rem; color: var(--muted); letter-spacing: .02em; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.by-preamble { margin-bottom: 30px; }
.by-chapter { margin-bottom: 14px; }
.by-ch {
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: 1.32rem; color: var(--accent);
  margin: 38px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: flex; align-items: baseline; gap: 12px;
}
.by-ch span { font-weight: 600; color: var(--ink); font-size: 1.12rem; }
.by-art { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.by-art:last-child { border-bottom: 0; }
.by-art-h {
  font-family: "Noto Serif KR", serif; font-size: 1.02rem; font-weight: 700;
  color: var(--accent-soft); margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 10px;
}
.by-art-h span { color: var(--ink); font-weight: 600; }
.by-p { font-size: .95rem; line-height: 1.85; color: var(--ink-soft); margin: 3px 0; word-break: keep-all; }
@media (max-width: 760px) {
  .by-ch { font-size: 1.18rem; }
  .by-ch span { font-size: 1rem; }
  .by-p { font-size: .92rem; }
}

/* ============================================================
   설교 카드 클릭 → 요약 보기
   ============================================================ */
.sermon-more {
  display: inline-block; margin-top: 22px;
  font-size: .92rem; font-weight: 500; color: var(--gold);
  letter-spacing: .02em; cursor: pointer;
}
.sermon-feature.is-active { cursor: pointer; }
.sermon-feature:not(.is-active) .sermon-more { display: none; }

/* 요약 모달 본문 */
.sm-points { display: flex; flex-direction: column; gap: 16px; margin: 4px 0 8px; }
.sm-point { padding-left: 16px; border-left: 3px solid var(--accent-soft); }
.sm-point strong { display: block; font-family: "Noto Serif KR", serif; font-size: 1.02rem; color: var(--accent); margin-bottom: 5px; }
.sm-point p { font-size: .95rem; line-height: 1.85; color: var(--ink-soft); word-break: keep-all; }
.sm-apply {
  margin-top: 26px; background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px;
}
.sm-apply-tag { display: inline-block; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.sm-apply p { font-size: .96rem; line-height: 1.9; color: var(--ink); word-break: keep-all; }
.sm-apply-ref { display: block; margin-top: 12px; text-align: right; font-size: .88rem; color: var(--accent-soft); font-weight: 600; }

/* ============================================================
   하이델베르크 요리문답 (카드 클릭 → 문답 탐색 모달)
   ============================================================ */
.info-card-link { cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.info-card-link:hover { border-color: var(--accent-soft); box-shadow: 0 12px 30px rgba(0,0,0,.07); transform: translateY(-3px); }
.info-card-go { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--accent); }

.modal-box-hc { max-width: 760px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 88vh; }
.hc-head { padding: 34px 36px 12px; }
.hc-head .hc-sub { color: var(--ink-soft); font-size: .92rem; margin-top: 8px; }
.hc-search { padding: 8px 36px 14px; border-bottom: 1px solid var(--line); }
.hc-search input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: .95rem; }
.hc-search input:focus { outline: none; border-color: var(--accent-soft); }
.hc-body { padding: 18px 36px 30px; overflow-y: auto; }

.hc-section-t { font-size: .82rem; font-weight: 700; color: var(--accent-soft); letter-spacing: .04em; margin-bottom: 12px; }
.hc-curated { margin-bottom: 24px; }
.hc-chips { display: flex; flex-direction: column; gap: 8px; }
.hc-chip {
  text-align: left; background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; font-family: inherit; font-size: .94rem;
  color: var(--ink); cursor: pointer; transition: .2s; line-height: 1.5;
}
.hc-chip:hover { border-color: var(--accent-soft); background: #fff; color: var(--accent); }

.hc-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.hc-tab { font-family: inherit; font-size: .86rem; font-weight: 600; padding: 7px 16px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: .2s; }
.hc-tab:hover { border-color: var(--accent-soft); }
.hc-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.hc-count { margin-left: auto; font-size: .8rem; color: var(--muted); }

.hc-list { display: flex; flex-direction: column; gap: 8px; }
.hc-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num q" "num ld";
  column-gap: 12px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; font-family: inherit; cursor: pointer; transition: .2s;
}
.hc-item:hover { border-color: var(--accent-soft); box-shadow: 0 8px 20px rgba(0,0,0,.05); }
.hc-num { grid-area: num; align-self: start; font-size: .78rem; font-weight: 700; color: #fff; background: var(--accent-soft); padding: 3px 9px; border-radius: 14px; white-space: nowrap; }
.hc-q { grid-area: q; font-size: .96rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.hc-ld { grid-area: ld; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.hc-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.hc-back { background: none; border: 0; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--accent-soft); cursor: pointer; padding: 0; margin-bottom: 16px; }
.hc-back:hover { color: var(--accent); }
.hc-detail .hc-d-meta { display: inline-block; font-size: .82rem; font-weight: 600; color: #fff; background: var(--accent); padding: 5px 14px; border-radius: 20px; }
.hc-d-q { font-family: "Noto Serif KR", serif; font-size: 1.3rem; color: var(--ink); margin: 16px 0 18px; line-height: 1.5; word-break: keep-all; }
.hc-d-a { background: var(--paper-alt); border-radius: 14px; padding: 22px 24px; }
.hc-d-a p { font-size: .98rem; line-height: 1.95; color: var(--ink); word-break: keep-all; }
.hc-d-a p + p { margin-top: 12px; }
.hc-d-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.hc-navbtn { font-family: inherit; font-size: .88rem; font-weight: 600; padding: 9px 16px; border-radius: 22px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: .2s; }
.hc-navbtn:hover { border-color: var(--accent-soft); color: var(--accent); }

@media (max-width: 760px) {
  .hc-head { padding: 28px 22px 10px; }
  .hc-search { padding: 8px 22px 12px; }
  .hc-body { padding: 16px 22px 26px; }
  .hc-d-q { font-size: 1.14rem; }
}

/* ============================================================
   목사님의 글 (칼럼) — 카드 + 전문 모달
   ============================================================ */
.column-card.is-open { cursor: pointer; }
.column-card.is-coming { opacity: .85; }
.column-go { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--accent); }

.modal-box-column { max-width: 720px; }
.column-body .m-eyebrow { display: block; }
.column-title { font-family: "Noto Serif KR", serif; font-size: clamp(1.6rem, 3.6vw, 2.1rem); color: var(--ink); margin: 10px 0 6px; line-height: 1.4; word-break: keep-all; }
.column-author { font-size: .9rem; color: var(--accent-soft); font-weight: 600; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.column-text p { font-family: "Noto Serif KR", serif; font-size: 1.04rem; line-height: 2.05; color: var(--ink); word-break: keep-all; }
.column-text p + p { margin-top: 18px; }

@media (max-width: 760px) {
  .column-text p { font-size: .98rem; line-height: 1.95; }
}

/* ============================================================
   함께 드리는 기도 (prayer.html)
   ============================================================ */
.prayer-week { max-width: 880px; }
.pr-meet { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.pr-news { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent-soft); border-radius: 12px; padding: 18px 20px; }
.pr-item h4 { font-family: "Noto Serif KR", serif; font-size: 1.02rem; color: var(--accent); margin-bottom: 6px; }
.pr-item p { font-size: .92rem; color: var(--ink-soft); line-height: 1.7; word-break: keep-all; }
.pr-source { margin-top: 16px; font-size: .82rem; color: var(--muted); text-align: right; }

.prayer-request { max-width: 720px; margin: 0 auto; text-align: center; }
.prayer-request .eyebrow2 { font-family: "Cormorant Garamond", serif; letter-spacing: .25em; font-size: .8rem; color: var(--accent-soft); }
.prayer-request h2 { font-family: "Noto Serif KR", serif; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 8px 0 14px; }
.prayer-request > p { color: var(--ink-soft); font-weight: 300; line-height: 1.9; margin-bottom: 26px; word-break: keep-all; }
.prayer-request .cta-btns { justify-content: center; }
.prayer-note { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.prayer-note a { color: var(--accent); font-weight: 600; }

@media (max-width: 760px) {
  .pr-meet, .pr-news { grid-template-columns: 1fr; }
}

/* ===== 책 미리보기 (김동석 목사 저서) ===== */
.book-cover-clickable { cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease; outline: none; }
.book-cover-clickable img { transition: box-shadow .35s ease; }
.book-cover-clickable:hover, .book-cover-clickable:focus-visible { transform: translateY(-10px) rotate(-1deg) scale(1.02); }
.book-cover-clickable:hover img, .book-cover-clickable:focus-visible img { box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.book-peek {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(8px);
  background: rgba(61,90,76,.94); color: #fff; font-size: .82rem; font-weight: 600;
  padding: 7px 16px; border-radius: 22px; white-space: nowrap; letter-spacing: .02em;
  opacity: 0; transition: opacity .35s ease, transform .35s ease; pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.book-cover-clickable:hover .book-peek, .book-cover-clickable:focus-visible .book-peek { opacity: 1; transform: translateX(-50%) translateY(0); }
.book-preview-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; text-decoration: none; max-width: 100%; box-sizing: border-box;
  margin-top: 18px; font-family: inherit; font-size: .92rem; font-weight: 600;
  background: var(--accent); color: #fff; border: 0; border-radius: 26px;
  padding: 12px 22px; cursor: pointer; transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
  box-shadow: 0 8px 22px rgba(61,90,76,.28);
}
.book-preview-btn:hover { background: #32493e; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(61,90,76,.34); }
/* 구매 버튼 (부크크 판매 페이지) */
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.book-actions .book-preview-btn, .book-actions .book-buy-btn { margin-top: 0; }
.book-buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; text-decoration: none; max-width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: .92rem; font-weight: 700;
  background: var(--gold); color: #1f1f1f; border: 0; border-radius: 26px;
  padding: 12px 22px; cursor: pointer; transition: filter .25s ease, transform .2s ease, box-shadow .25s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.book-buy-btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
@media (max-width: 680px) {
  .book-info { text-align: center; }
  .book-peek { opacity: 1; transform: translateX(-50%); }
  /* 모바일: 출간 안내와 버튼을 겹치지 않게 세로로 정렬(가운데) */
  .book-info .book-note { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .book-info .book-actions { justify-content: center; margin-top: 14px; }
}

/* 모달 박스 (읽기 뷰) */
.modal-box-book { max-width: 720px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.modal-box-book .modal-close { z-index: 3; color: var(--accent); background: rgba(255,255,255,.7); border-radius: 50%; width: 40px; height: 40px; }
.book-read {
  overflow-y: auto; padding: 56px 52px 44px; background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.book-read::-webkit-scrollbar { width: 10px; }
.book-read::-webkit-scrollbar-thumb { background: #d8d3c8; border-radius: 6px; }

/* 표지 */
.br-cover { text-align: center; padding: 12px 0 30px; border-bottom: 1px solid var(--line); }
.br-cover-eyebrow { font-family: "Cormorant Garamond", serif; letter-spacing: .26em; font-size: .82rem; color: var(--gold); margin-bottom: 16px; }
.br-cover-title { font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1.35; margin-bottom: 12px; }
.br-cover-sub { color: var(--ink-soft); font-size: .98rem; margin-bottom: 18px; }
.br-cover-author { font-family: "Noto Serif KR", serif; color: var(--ink); font-size: 1.02rem; }

/* 헌정 */
.br-dedication { text-align: center; font-family: "Noto Serif KR", serif; color: var(--accent-soft); font-style: italic; line-height: 2; padding: 30px 0; border-bottom: 1px solid var(--line); }
.br-dedication p { margin: 0; font-size: .96rem; }

/* 섹션 공통 */
.br-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.br-section:last-of-type { border-bottom: 0; }
.br-h { font-family: "Noto Serif KR", serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 22px; text-align: center; }
.br-p { font-size: 1.02rem; line-height: 1.95; color: var(--ink); margin-bottom: 17px; text-align: justify; word-break: keep-all; }
.br-sign { text-align: right; font-family: "Noto Serif KR", serif; color: var(--ink-soft); margin-top: 22px; }

/* 목차 */
.br-toc { list-style: none; max-width: 460px; margin: 0 auto; }
.br-toc-part { font-family: "Noto Serif KR", serif; font-weight: 700; color: var(--accent); margin: 18px 0 8px; font-size: 1.02rem; }
.br-toc-part:first-child { margin-top: 0; }
.br-toc-item { color: var(--ink-soft); padding: 5px 0 5px 16px; font-size: .95rem; border-bottom: 1px dotted var(--line); }

/* 부 표지 */
.br-part { text-align: center; }
.br-part-no { font-family: "Cormorant Garamond", serif; letter-spacing: .2em; color: var(--gold); font-size: 1rem; margin-bottom: 10px; }
.br-part-title { font-family: "Noto Serif KR", serif; font-size: 1.7rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.br-part-range { color: var(--muted); font-size: .9rem; letter-spacing: .04em; margin-bottom: 26px; }
.br-part .br-p { text-align: left; }

/* 장 */
.br-chapter { padding-top: 40px; }
.br-ch-no { font-family: "Cormorant Garamond", serif; letter-spacing: .2em; color: var(--gold); font-size: 1rem; text-align: center; }
.br-ch-title { font-family: "Noto Serif KR", serif; font-size: 1.85rem; font-weight: 700; color: var(--accent); text-align: center; margin: 6px 0 6px; }
.br-ch-theme { text-align: center; color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 8px; }
.br-ch-text { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 2px solid var(--accent); width: fit-content; margin-left: auto; margin-right: auto; }
.br-subh { font-family: "Noto Serif KR", serif; font-size: 1.22rem; font-weight: 700; color: var(--accent); margin: 32px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }
.br-lead { font-weight: 700; color: var(--accent); font-size: 1.04rem; line-height: 1.8; margin: 18px 0 8px; }
.br-label { text-align: center; font-size: .85rem; letter-spacing: .1em; color: var(--gold); margin-bottom: 12px; }
.br-quote {
  font-family: "Noto Serif KR", serif; font-size: 1.04rem; line-height: 1.95; color: var(--accent);
  background: var(--paper-alt); border-left: 4px solid var(--accent-soft);
  padding: 20px 26px; margin: 8px 0 22px; border-radius: 0 8px 8px 0; word-break: keep-all;
}
.br-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .88rem; color: var(--muted); text-align: right; }
.br-end { text-align: center; color: var(--muted); font-size: .92rem; padding: 30px 0 6px; }

@media (max-width: 680px) {
  .book-read { padding: 48px 24px 36px; }
  .br-cover-title { font-size: 1.6rem; }
  .br-ch-title { font-size: 1.5rem; }
  .br-h { font-size: 1.3rem; }
  .br-p, .br-quote { font-size: .98rem; }
}

/* ===== 말씀 듣기 (QT 하단) ===== */
.qt-listen-wrap { text-align: center; margin-top: 26px; }
.qt-listen-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  background: var(--accent); color: #fff; border-radius: 28px;
  padding: 14px 30px; box-shadow: 0 10px 26px rgba(61,90,76,.28);
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.qt-listen-btn:hover { background: #32493e; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(61,90,76,.34); }
.qt-listen-note { margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* 모달 안 '이 본문 듣기' 링크 */
.qt-d-listen {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: .9rem; font-weight: 600; color: var(--accent);
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 22px;
  padding: 8px 16px; transition: background .2s ease, border-color .2s ease;
}
.qt-d-listen:hover { background: #fff; border-color: var(--accent-soft); }

/* ===== 헤더 드롭다운 (메가 메뉴) ===== */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret { font-size: .68em; margin-left: 5px; opacity: .6; transition: transform .25s ease, opacity .25s ease; display: inline-block; }
.nav-item.has-sub:hover .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  padding-top: 16px; min-width: 190px; z-index: 130;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.nav-item.has-sub:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-inner {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,.16); padding: 10px; display: flex; flex-direction: column; gap: 2px;
}
.nav-dropdown-inner a {
  white-space: nowrap; color: var(--ink-soft) !important; font-weight: 500; font-size: .9rem;
  padding: 10px 18px; border-radius: 9px; transition: background .18s ease, color .18s ease;
}
.nav-dropdown-inner a::after { display: none !important; }
.nav-dropdown-inner a:hover { background: var(--paper-alt); color: var(--accent) !important; }

@media (max-width: 760px) {
  .nav-item { display: block; width: 100%; }
  .nav-item > a { display: block; position: relative; }
  .nav-caret { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 6px 10px; font-size: 1.05em; opacity: .8; }
  .nav-item.open .nav-caret { transform: translateY(-50%) rotate(180deg); }
  /* 데스크톱 절대배치(absolute/left/transform)가 실기기에서 새지 않도록 강제 리셋 */
  .nav-dropdown {
    position: static !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important; width: 100% !important; min-width: 0 !important; max-width: none !important;
    margin: 0 !important; padding-top: 0; overflow: hidden; transition: none;
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
    display: none;
  }
  .nav-item.open > .nav-dropdown { display: block !important; max-height: none !important; }
  .nav-dropdown-inner {
    position: static !important; transform: none !important; width: 100% !important; min-width: 0 !important;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 14px; gap: 0;
  }
  .nav-dropdown-inner a {
    display: block !important; white-space: normal !important; text-align: left !important;
    color: var(--muted) !important; font-size: .95rem !important; font-weight: 400 !important;
    padding: 12px 0 !important; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav-dropdown-inner a:hover { background: transparent; color: var(--accent) !important; }
}

/* ===== iOS 앱 설치 안내 모달 ===== */
.modal-box-ios { max-width: 420px; text-align: left; }
.ios-guide { text-align: center; }
.ios-guide-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 12px; }
.ios-guide h3 { font-family: "Noto Serif KR", serif; font-size: 1.35rem; color: var(--accent); margin-bottom: 6px; }
.ios-guide-sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }
.ios-steps { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.ios-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: .95rem; line-height: 1.6; }
.ios-step-no { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ios-share { display: inline-flex; vertical-align: middle; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; align-items: center; justify-content: center; background: var(--paper-alt); }
.ios-note { font-size: .85rem; color: var(--muted); line-height: 1.6; background: var(--paper-alt); border-radius: 10px; padding: 12px 14px; }

/* ===== 운평 말씀지기 (내장 AI 질문창) ===== */
.askai .askai-box { max-width: 760px; margin: 0 auto; }
.askai-form { display: flex; gap: 10px; align-items: stretch; }
.askai-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 30px;
  padding: 16px 22px; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.askai-form input:focus { border-color: var(--accent-soft); box-shadow: 0 0 0 4px rgba(61,90,76,.1); }
.askai-form button {
  flex-shrink: 0; background: var(--accent); color: #fff; border: 0; border-radius: 30px;
  padding: 0 26px; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.askai-form button:hover { background: #32493e; transform: translateY(-1px); }
.askai-form button:disabled { opacity: .55; cursor: default; transform: none; }

/* 추천 질문 칩 (그룹형: 주일 말씀 / 오늘 큐티 / 신앙과 신학 교리) */
.askai-suggest { margin-top: 22px; }
.askai-suggest-head { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 14px; }
.askai-suggest-group { margin-bottom: 16px; }
.askai-suggest-group:last-child { margin-bottom: 0; }
.askai-suggest-label { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--accent); margin-bottom: 9px; }
.askai-grp-no { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; }
.askai-chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.askai-chip {
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 22px;
  padding: 9px 16px; font-family: inherit; font-size: .88rem; color: var(--ink-soft); cursor: pointer;
  text-align: left; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.askai-chip:hover { background: #fff; border-color: var(--accent-soft); color: var(--accent); }

/* 대화 thread */
.askai-thread { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 460px; overflow-y: auto; padding: 4px; }
.askai-thread[hidden] { display: none; }
.askai-msg { display: flex; }
.askai-msg.me { justify-content: flex-end; }
.askai-bubble { max-width: 86%; padding: 13px 17px; border-radius: 16px; font-size: .96rem; line-height: 1.7; word-break: break-word; }
.askai-msg.ai .askai-bubble { background: #fff; border: 1px solid var(--line); color: var(--ink); border-top-left-radius: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.askai-msg.me .askai-bubble { background: var(--accent); color: #fff; border-top-right-radius: 5px; }
.askai-typing { display: inline-flex; gap: 5px; align-items: center; }
.askai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); animation: askaiBlink 1.2s infinite both; }
.askai-typing span:nth-child(2) { animation-delay: .2s; }
.askai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes askaiBlink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.askai-note { margin-top: 18px; font-size: .82rem; color: var(--muted); line-height: 1.6; text-align: center; }

@media (max-width: 560px) {
  .askai-br { display: none; }
  .askai-form button { padding: 0 18px; }
  .askai-bubble { max-width: 90%; }
}

/* 상담 답변 내 서식(마크다운 변환 결과) */
.askai-bubble strong { font-weight: 700; }
.askai-bubble .askai-h { display: block; margin: 12px 0 4px; color: var(--accent); font-size: 1.0rem; }
.askai-msg.me .askai-bubble .askai-h { color: #fff; }
.askai-bubble .askai-q {
  border-left: 3px solid var(--accent-soft); padding: 6px 12px; margin: 8px 0;
  background: rgba(0,0,0,.04); color: var(--ink-soft); border-radius: 0 6px 6px 0; font-style: normal;
}
.askai-bubble .askai-ul { margin: 6px 0 6px 4px; padding-left: 18px; }
.askai-bubble .askai-ul li { margin: 3px 0; list-style: disc; }

/* 자료실 — 앱 설치/업데이트 */
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.app-hint { margin-top: 16px; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.6; }
