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

:root {
  /* 2026-10-01 바탕색 '깊은 숲'(3안): 크림·베이지 대신 초록 한 계열로 */
  --ink: #17251F;
  --ink-soft: #3E5148;
  --muted: #7F8F87;
  --line: #C4D5C9;
  --paper: #ffffff;
  --paper-alt: #D7E4DB;   /* 연한 숲빛(번갈아 쓰는 바탕) */
  --bg: #E8EFEA;          /* 옅은 숲빛 페이지 배경 */
  --dark: #122A22;
  --accent: #1A3A2F;      /* 딥 포레스트 그린 — 노진교회 로고 색 */
  --accent-soft: #4E6E61;
  --gold: #3F7A5E;        /* 밝은 바탕 위 포인트(이끼색). 금색은 초록 바탕에서만 */
  --maxw: 1140px;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
/* 한글 줄바꿈: 낱말 중간에서 끊지 않고(띄어쓰기 자리에서만), 제목은 두 줄일 때 길이를 고르게,
   글은 마지막 줄에 한두 글자만 남지 않게 — 휴대폰에서 '축 / 복합니다' 처럼 끊기던 것 */
html { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, h4, h5, figcaption, blockquote { text-wrap: balance; }
p, li, dd, dt { text-wrap: pretty; }
.nw { white-space: nowrap; }   /* 한 덩어리로 읽어야 하는 말(만 70세, 한 장씩 등)은 줄을 나누지 않는다 */

body {
  font-family: "IBM Plex Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  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;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: none; margin: 0; padding: 0 clamp(20px, 3.5vw, 72px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px;
}
.nav-left { display: flex; align-items: center; gap: 10px; justify-self: start; min-width: 0; }
.nav-right { display: flex; align-items: center; gap: 14px; justify-self: end; }
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-kr {
  font-family: "Gowun Batang", serif; font-weight: 600;
  font-size: 1.25rem; color: var(--accent); letter-spacing: .12em;
}
.logo-en {
  font-family: "Cormorant Garamond", serif; font-size: .72rem;
  letter-spacing: .28em; color: var(--muted);
}
.hdr-dash-btn {
  display: inline-flex; align-items: center; margin-left: 10px; white-space: nowrap;
  font-size: .8rem; font-weight: 600; color: var(--accent);
  background: rgba(26,58,47,.07); border: 1px solid rgba(26,58,47,.22);
  padding: 6px 14px; border-radius: 999px;
  transition: background .25s ease;
}
.hdr-dash-btn:hover { background: rgba(26,58,47,.14); }
@media (max-width: 480px) { .hdr-dash-btn { margin-left: 8px; padding: 5px 11px; font-size: .76rem; } }
.nav-menu { display: flex; gap: 38px; flex-wrap: nowrap; }
.nav-menu a {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 1.06rem; font-weight: 600; color: var(--ink);
  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 { padding: 14px 0; }

.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: var(--ink); 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; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 65vh; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(8,10,20,.42) 0%, rgba(8,10,20,.2) 40%, rgba(8,10,20,.55) 100%),
    url("../images/hero-bg-wilderness.jpg") center / 100% 100% no-repeat;
  color: #fff; overflow: hidden; padding: 80px 0 0;
}
.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.03'/%3E%3C/svg%3E");
}
.hero-inner-simple {
  position: relative; z-index: 2; width: 100%; max-width: 920px; margin: 0 auto;
  padding: 60px 32px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-tagline {
  font-family: "IBM Plex Sans KR", sans-serif; font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.3; margin-bottom: 40px; white-space: nowrap;
  word-break: keep-all; text-shadow: 0 2px 16px rgba(0,0,0,.7);
  animation: fadeUp 1s ease .2s both;
}
.hero-cards-row {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; width: 100%;
  animation: fadeUp 1s ease .4s both;
}
.hero-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 26px; border-radius: 14px; background: rgba(224,238,252,.88);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.7);
  text-decoration: none; color: var(--dark); transition: all .3s ease;
  cursor: pointer; flex: 1 1 150px; min-width: 130px;
}
.hero-card:hover { background: rgba(224,238,252,1); border-color: #fff; transform: translateY(-3px); }
.hero-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.card-icon { font-size: 2rem; filter: drop-shadow(0 1px 3px rgba(255,255,255,.6)); }
.hero-card h3 {
  font-family: "IBM Plex Sans KR", sans-serif; font-size: 1.2rem; font-weight: 800; margin: 0; line-height: 1.3;
  color: var(--dark); text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.hero-bottom-row {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 14px; align-items: stretch;
  width: 100%; margin-top: 20px; animation: fadeUp 1s ease .55s both;
}
.hero-song-banner {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 12px;
  background: rgba(163,200,238,.9);
  border: 1px solid rgba(255,255,255,.6);
  text-decoration: none; color: var(--dark); transition: all .3s ease;
}
.hero-song-banner:hover { background: rgba(163,200,238,1); transform: translateY(-2px); }
.hero-song-banner .hsb-icon { flex: 0 0 auto; font-size: 1.5rem; filter: drop-shadow(0 1px 3px rgba(255,255,255,.6)); }
.hero-song-banner .hsb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.hero-song-banner .hsb-label { font-size: .76rem; letter-spacing: .16em; color: var(--dark); font-weight: 800; }
.hero-song-banner .hsb-title {
  font-size: 1rem; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.hero-song-banner .hsb-sub { font-size: .82rem; color: var(--dark); font-weight: 500; }
.hero-song-banner .hsb-arrow {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #1f1f1f; font-size: .78rem;
}
.hero-bb-side { flex-direction: column; text-align: center; padding: 16px 14px; }
.hero-bb-side .hsb-text { text-align: center; align-items: center; }
.hero-bb-side .hsb-title { white-space: normal; }
/* 가운데(2칸): 설교 시리즈 배너 — 밝은 하늘색으로 꽉 채운 카드 */
.hero-sermon-banner {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 32px 34px; border-radius: 16px; text-decoration: none; color: var(--dark);
  background: rgba(199,224,248,.94); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,.85); transition: all .3s ease;
}
.hero-sermon-banner:hover { transform: translateY(-2px); border-color: #fff; background: rgba(199,224,248,1); }
.hero-sermon-banner .hsb-label {
  align-self: flex-start; font-size: .74rem; letter-spacing: .18em; font-weight: 800;
  color: #1f1f1f; background: var(--gold); padding: 5px 14px; border-radius: 999px;
}
.hero-sermon-banner .hsb-title {
  font-family: "Gowun Batang", serif; font-size: clamp(1.7rem, 2.9vw, 2.5rem); font-weight: 800; line-height: 1.3;
  word-break: keep-all; white-space: normal; color: var(--dark); text-shadow: 0 1px 0 rgba(255,255,255,.6);
  position: relative; padding-left: 4px;
}
.hero-sermon-banner .hsb-title::before { content: "“"; color: #a3702f; margin-right: 1px; }
.hero-sermon-banner .hsb-title::after { content: "”"; color: #a3702f; margin-left: 1px; }
.hero-sermon-banner .hsb-ref {
  font-size: 1rem; color: var(--dark); font-weight: 700; letter-spacing: .02em;
}
.hero-sermon-banner .hsb-arrow {
  margin-top: 4px; font-size: .86rem; font-weight: 800; color: var(--dark);
}
@media (max-width: 760px) {
  .hero-bottom-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { min-height: 58vh; }
  .hero-cards-row { gap: 10px; }
  .hero-card { flex: 1 1 100px; padding: 16px 14px; }
}

/* ===== 이번 주 말씀(주보 설교 요약) ===== */
.week-sermon {
  max-width: 760px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px;
  box-shadow: 0 8px 30px rgba(26,58,47,.06);
}
.ws-date { font-family: "Cormorant Garamond", serif; letter-spacing: .08em; color: var(--gold); font-size: 1rem; }
.ws-title { font-family: "Gowun Batang", serif; font-size: 1.6rem; line-height: 1.45; color: var(--ink); margin: 10px 0 8px; word-break: keep-all; }
.ws-ref { color: var(--accent); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.ws-preacher { color: var(--ink-soft); font-size: .92rem; }
.ws-quote {
  font-family: "Gowun Batang", serif; font-size: 1.05rem; line-height: 1.9; color: var(--accent);
  border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 22px 0; word-break: keep-all;
}
.ws-body { margin-top: 22px; }
.ws-body p { font-size: 1.02rem; line-height: 1.95; color: var(--ink); word-break: keep-all; }
.ws-body p + p { margin-top: 14px; }
.ws-more {
  display: inline-block; margin-top: 26px; padding: 9px 18px; border-radius: 999px;
  background: var(--paper-alt); border: 1px solid var(--line); color: var(--accent);
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.ws-more:hover { background: #fff; border-color: var(--accent-soft); }
@media (max-width: 680px) { .week-sermon { padding: 26px 20px; } .ws-title { font-size: 1.35rem; } }

/* ===== 이번 주 주보 카드(홈/대시보드 공용) ===== */
.hb-card { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(26,58,47,.07); }
.hb-hd { display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: #fff; padding: 14px 26px; }
.hb-hd-week { font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.hb-hd-date { font-size: .84rem; color: rgba(255,255,255,.75); }
.hb-body { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.hb-col { padding: 22px 24px; }
.hb-col:first-child { border-right: 1px solid var(--line); }
.hb-col-title { font-size: .95rem; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.hb-order { margin: 0; padding-left: 22px; font-size: 1.12rem; line-height: 2.15; color: var(--ink); word-break: keep-all; }
.hb-extra { margin: 0 0 14px; padding-left: 0; list-style: none; font-size: .83rem; line-height: 1.85; color: var(--ink-soft); word-break: keep-all; }
.hb-extra li::before { content: "▸ "; color: var(--accent); font-size: .8rem; }
/* 향기로운 예물: 명단이 길어 줄이 넘어가도 헌금 이름 앞으로 나오지 않게 — 이름 칸 뒤에 명단 칸을 따로 둔다 */
.hb-offer li { display: flex; align-items: baseline; gap: 6px; }
.hb-offer li::before { flex: none; }
.hb-offer li b { flex: none; white-space: nowrap; }
.hb-offer li span { flex: 1; min-width: 0; }
.hb-news { margin: 0; padding-left: 0; list-style: none; font-size: .82rem; line-height: 1.75; }
.hb-news li { padding: 3px 0; border-bottom: 1px dashed #eef1f5; }
.hb-news li:last-child { border-bottom: none; }
.hb-news strong { color: var(--accent); margin-right: 5px; }
.hb-ft { border-top: 1px solid var(--line); padding: 14px 24px; text-align: center; background: #fafbfd; }
@media (max-width: 640px) { .hb-body { grid-template-columns: 1fr; } .hb-col:first-child { border-right: none; border-bottom: 1px solid var(--line); } }
/* 홈 '이번 주 주보' 전체 내용을 한 화면에 바로 보여주는 섹션들(클릭 없이 스크롤만으로 다 보이도록) */
.hb-sec { padding: 22px 26px; background: #fff; }
.hb-sec + .hb-sec { border-top: 1px solid var(--line); }
.hb-sermon-title { font-family: "Gowun Batang", serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; line-height: 1.4; word-break: keep-all; }
.hb-sermon-ref { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.hb-scripture { font-family: "Gowun Batang", serif; font-size: .97rem; line-height: 1.95; color: var(--ink); border-left: 3px solid var(--gold); padding: 2px 0 2px 16px; margin: 0; white-space: pre-line; word-break: keep-all; }
.hb-summary { font-size: .95rem; line-height: 1.9; color: var(--ink); word-break: keep-all; white-space: pre-line; }
@media (max-width: 640px) { .hb-sec { padding: 18px 20px; } }

/* ===== 이달의 찬양(말씀으로 페이지) ===== */
.song-box { max-width: 760px; margin: 0 auto; }
.song-title { font-family: "Gowun Batang", serif; font-size: 1.3rem; text-align: center; margin-bottom: 18px; color: var(--accent); }
.song-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.song-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* ===== 주일설교 팟캐스트 · 핵심 요약영상 ===== */
.sermon-media { max-width: 860px; margin: 0 auto; }
.sermon-media-meta {
  margin-top: 16px; font-family: "Cormorant Garamond", serif; letter-spacing: .06em;
  color: var(--gold); font-size: 1rem; text-align: center; word-break: keep-all;
}
.sermon-media-link {
  display: block; width: fit-content; margin: 14px auto 0; padding: 9px 18px; border-radius: 999px;
  background: var(--paper-alt); border: 1px solid var(--line); color: var(--accent);
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.sermon-media-link:hover { background: #fff; border-color: var(--accent-soft); }

.song-sheets { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.song-sheet-img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.song-sheet-pdf { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 10px; }
.hero-content { position: relative; z-index: 2; padding: 0 50px 0 50px; max-width: 540px; width: 100%; }
.hero-since {
  font-family: "Cormorant Garamond", serif; letter-spacing: .5em;
  font-size: .9rem; margin-bottom: 26px; color: var(--gold);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  opacity: 0; animation: fadeUp 1s ease .2s forwards;
}
.hero-title {
  font-family: "Gowun Batang", 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;
  text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5);
  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,.92); margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  opacity: 0; animation: fadeUp 1s ease .6s forwards;
}
.hero-verse {
  font-family: "Gowun Batang", serif; font-size: 1rem;
  color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.3);
  display: inline-block; padding-top: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  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; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
/* 담임목사 저서 */
.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: "Gowun Batang", 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: 6px; justify-content: flex-start; margin-top: 32px; }
.hero-dot {
  position: relative; width: 44px; height: 32px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hero-dot::after {
  content: ""; display: block; width: 26px; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,.35); transition: background .3s, width .3s;
}
.hero-dot:hover::after { background: rgba(255,255,255,.6); }
.hero-dot.active::after { background: var(--gold); width: 44px; }
.hero-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  animation: bounce 2s infinite, scrollHint 1.8s ease-in-out infinite;
}
.hero-scroll .hs-text { font-size: 1.02rem; font-weight: 600; letter-spacing: .04em; }
.hero-scroll .hs-arrow { font-size: 1.5rem; line-height: 1; }
.hero-scroll:hover { color: var(--gold); }
@keyframes scrollHint { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; opacity: .9; transform: translateX(-50%); }
}
@media (max-width: 680px) {
  .hero-scroll { bottom: 18px; }
  .hero-scroll .hs-text { font-size: .92rem; }
}

/* 히어로 제목 회전(슬라이드) */
.hero-rotator { position: relative; min-height: 280px; margin-bottom: 20px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  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: 960px) {
  .hero-inner-simple { padding: 50px 24px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 60px; }
  .hero-inner-simple { padding: 40px 18px; }
  .hero-tagline { font-size: clamp(1.5rem, 6.6vw, 2.2rem); margin-bottom: 32px; white-space: normal; }
  .hero-card { padding: 16px 12px; gap: 6px; }
  .card-icon { font-size: 1.4rem; }
  .hero-card h3 { font-size: .9rem; }
  .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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", serif; font-size: 1.05rem; color: var(--accent-soft);
  letter-spacing: .03em;
}

/* 이 달의 봉사위원 */
.committee {
  max-width: 880px; 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: "Gowun Batang", serif; font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
.committee-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.committee-item {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 20px 22px; text-align: center;
}
.c-role { display: block; font-size: 1.05rem; color: var(--gold); margin-bottom: 10px; letter-spacing: .03em; font-weight: 700; }
.c-names { font-size: 1.28rem; font-weight: 500; line-height: 1.8; word-break: keep-all; }
.c-week-row {
  display: flex; justify-content: center; align-items: baseline; gap: 10px;
  font-size: 1.28rem; font-weight: 500; line-height: 1.9; word-break: keep-all;
}
.c-week-row .c-week { font-size: 1.05rem; color: rgba(255,255,255,.65); min-width: 52px; text-align: right; }
.c-week-row .c-week-name { font-weight: 700; }
.c-week-row.is-now { background: rgba(255,255,255,.14); border-radius: 8px; }
.c-week-row.is-now .c-week { color: var(--gold); font-weight: 700; }

/* 새로운 주차별 레이아웃 (8월부터) */
.committee-weeks {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.committee-week {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 24px 20px;
}
.committee-week.is-now {
  background: rgba(255,255,255,.16); border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.committee-week.is-now .week-label { color: var(--gold); }
.committee-week.is-now .week-label::after { content: " · 이번 주"; font-size: .78rem; font-weight: 400; opacity: .85; }
.week-label {
  font-size: 1.25rem; font-weight: 700; color: var(--gold);
  text-align: center; margin-bottom: 18px; letter-spacing: .02em;
}
.week-roles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.week-role {
  background: rgba(255,255,255,.05); border-radius: 8px; padding: 12px 10px;
  text-align: center;
}
.role-title {
  font-size: 0.95rem; color: rgba(255,255,255,.75); font-weight: 600;
  margin-bottom: 6px; line-height: 1.3; word-break: keep-all;
}
.role-name {
  font-size: 1.15rem; color: #fff; font-weight: 700;
}

@media (max-width: 680px) {
  .committee-rows { grid-template-columns: 1fr; }
  .committee-weeks { grid-template-columns: 1fr; }
  .committee { padding: 28px 24px; }
  .week-roles { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 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: "Gowun Batang", 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-card .w-link {
  display: block; margin-top: 14px; padding: 9px 14px; border-radius: 999px;
  background: var(--paper-alt); border: 1px solid var(--line); color: var(--accent);
  font-size: .88rem; font-weight: 600; text-align: center; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.worship-card .w-link:hover { background: #fff; border-color: var(--accent-soft); }
.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: "IBM Plex 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: "Gowun Batang", 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-yt-link {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px;
  font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 4px 11px; border-radius: 20px; vertical-align: middle;
  transition: background .2s ease, border-color .2s ease;
}
.sermon-yt-link:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.sermon-quote {
  font-family: "Gowun Batang", 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-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.sermon-listen-btn {
  font-family: inherit; font-size: .85rem; font-weight: 600; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 8px 16px; border-radius: 20px;
  transition: background .2s ease, border-color .2s ease;
}
.sermon-listen-btn:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.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: "Gowun Batang", 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: "IBM Plex 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: "Gowun Batang", 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-daily-link {
  display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px;
  background: var(--paper-alt); border: 1px solid var(--line); color: var(--accent);
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.qt-d-daily-link:hover { background: #fff; border-color: var(--accent-soft); }
.qt-daily-link-row { text-align: center; margin: 14px 0; }
.qt-d-head {
  font-family: "Gowun Batang", 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: "IBM Plex 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: "IBM Plex 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: "Gowun Batang", 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-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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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-grid-3 { grid-template-columns: repeat(3, 1fr); }
.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: "Gowun Batang", 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: #141c30; 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-brand .logo-kr { font-weight: 700; letter-spacing: .444em; margin-right: -.444em; white-space: nowrap; }
.footer-brand .logo-denom { margin-top: 7px; font-size: .8667rem; color: rgba(255,255,255,.8); }
.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: #1A3A2F; 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; }
/* 로고 글자: '노진교회'는 굵고 크게, 글자 사이를 넓게(0.444em) 벌리고
   아래 '대한예수교장로회'는 크기 2/3로 붙여 써서 두 줄 폭을 똑같이 맞춘다(한글 한 글자 = 1em) */
.logo-txt .logo-kr { font-weight: 700; font-size: 1.4rem; letter-spacing: .444em; margin-right: -.444em; white-space: nowrap; }
.logo-denom { display: block; margin-top: 5px; white-space: nowrap;
  font-family: "Gowun Batang", serif; font-weight: 600; font-size: .9333rem; line-height: 1;
  color: var(--accent); }

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

.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: #172942; }
.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: linear-gradient(160deg,#2C5244 0%, #10241D 100%); }
.page-hero .ph-eyebrow { font-family:"Cormorant Garamond",serif; letter-spacing:.4em; font-size:.85rem; color:var(--gold); }
.page-hero h1 { font-family:"Gowun Batang",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; }
/* 교단 소속 안내 (총회 마크 + 문구, 잘 보이게 굵고 밝게)
   welcome.html 두 곳: 첫 화면(어두운 바탕)과 '노진교회는 어떤 곳일까요' 제목 아래(밝은 바탕, .is-light) */
.ph-denom { display: inline-flex; align-items: center; gap: 20px; margin-top: 10px;
  padding: 16px 28px 16px 16px; border: 1px solid rgba(191,160,108,.6); border-radius: 18px;
  background: rgba(255,255,255,.08); text-align: left; }
.ph-denom-mark { flex: none; width: 68px; height: 68px; padding: 5px; border-radius: 14px;
  background: #fff; object-fit: contain; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ph-denom p, .page-hero .ph-denom p { margin: 0; max-width: none; color: #fff; font-size: 1.15rem; font-weight: 500;
  line-height: 1.7; word-break: keep-all; }
.ph-denom strong { color: #E3C98F; font-weight: 700; }
.ph-denom.is-light { margin-top: 22px; background: #fff; border-color: rgba(179,150,91,.55);
  box-shadow: 0 8px 24px rgba(26,58,47,.08); }
.block-head .ph-denom.is-light p { margin: 0; color: var(--accent); font-size: 1.15rem; font-weight: 500; }
.ph-denom.is-light strong { color: #8A6A2F; }
.ph-denom.is-light .ph-denom-mark { box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .ph-denom { flex-direction: column; gap: 12px; padding: 18px 18px 16px; text-align: center; }
  .ph-denom-mark { width: 60px; height: 60px; }
  .ph-denom p, .page-hero .ph-denom p, .block-head .ph-denom.is-light p { font-size: 1.02rem; }
  .ph-br { display: none; }
}

/* 페이지 내부 블록 */
.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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",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, background .3s; }
.entry-card:hover { transform: translateY(-6px); box-shadow:0 20px 44px rgba(0,0,0,.09); border-color:var(--accent-soft); }
/* 메인 화면(index.html)의 진입점 박스만 밝은 하늘색으로 */
.entry-grid-home .entry-card { background: rgba(199,224,248,.94); border-color: rgba(255,255,255,.7); }
.entry-grid-home .entry-card:hover { background: rgba(199,224,248,1); }
.entry-grid-home .entry-num { color: var(--accent); }
.entry-grid-home .entry-card p { color: var(--accent-soft); }
.entry-num { font-family:"Cormorant Garamond",serif; font-size:1.1rem; color:var(--gold); }
.entry-icon { display:inline-block; font-size:1.9rem; line-height:1; }
.entry-card h3 { font-family:"Gowun Batang",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); }

/* 5칸 한 줄 고정 (환영합니다 — 한눈에 둘러보기) */
.entry-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.entry-grid-5 .entry-card { padding: 26px 18px; }
.entry-grid-5 .entry-card h3 { font-size: 1.06rem; margin: 8px 0 8px; word-break: keep-all; }
.entry-grid-5 .entry-card p { font-size: .85rem; line-height: 1.65; word-break: keep-all; }
.entry-grid-5 .entry-card .entry-go { margin-top: 14px; font-size: .82rem; white-space: nowrap; }
@media (max-width: 1000px) { .entry-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .entry-grid-5 { grid-template-columns: repeat(2, 1fr); } }

.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:"Gowun Batang",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:"Gowun Batang",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: linear-gradient(160deg,#2C5244,#10241D); 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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",serif; color:var(--accent); margin-top:8px; }

/* 폼 */
.form-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:36px; max-width:680px; }
/* 칸 폭은 상자에 맞춘다(minmax 0) — 패드에서 글자를 크게 해 두면 입력칸이 제 폭만큼 넓어져 상자 밖으로 삐져나왔다(2026-10-04) */
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; }
.form-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.form-field[hidden] { display:none; }
.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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",serif; font-size:1.1rem; margin-bottom:8px; }
.group-card p { font-size:.9rem; color:var(--ink-soft); font-weight:300; }

/* 전도회·다음 세대 — 민트 초록 배경 */
.block-mint { background:#e3f0ea; }
.block-mint .group-card, .block-mint .ng-box { border-color:#c9ddd3; }
.block-mint .eyebrow2 { color:#3a7d63; }

/* 다음 세대 조직도 — 한 상자 안에 주일학교 → 부서 */
.ng-box { background:#fff; border:1px solid var(--line); border-radius:18px; padding:34px 30px 30px; max-width:960px; margin:0 auto; }
.ng-top { text-align:center; }
.ng-title { display:inline-block; font-family:"Gowun Batang",serif; font-size:1.35rem; font-weight:700; color:#fff; background:#2f6f57; padding:10px 34px; border-radius:40px; letter-spacing:.06em; }
.ng-meta { font-size:.85rem; color:var(--muted); margin-top:10px; }
.ng-line { width:2px; height:26px; background:#b6d2c5; margin:0 auto; }
.ng-staff { border:1px dashed #b6d2c5; border-radius:14px; padding:16px 18px 18px; position:relative; }
.ng-staff-label { position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:#fff; padding:0 12px; font-size:.8rem; font-weight:700; color:#3a7d63; letter-spacing:.08em; }
.ng-staff-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-top:6px; }
.block-mint .group-grid { grid-template-columns:repeat(4,1fr); }
@media (max-width:900px) { .block-mint .group-grid { grid-template-columns:repeat(2,1fr); } }
.ng-role { text-align:center; }
.ng-role .ng-role-name { display:block; font-size:.78rem; color:var(--muted); margin-bottom:3px; }
.ng-role b { display:block; font-size:1.05rem; color:var(--accent); }
.ng-role small { font-size:.8rem; color:var(--ink-soft); }
.ng-depts { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; position:relative; padding-top:22px; }
.ng-depts::before { content:""; position:absolute; top:0; left:12.5%; right:12.5%; height:2px; background:#b6d2c5; }
.ng-dept { position:relative; text-align:center; background:#f3f9f6; border:1px solid #cfe2d8; border-radius:14px; padding:24px 18px 20px; }
.ng-dept::before { content:""; position:absolute; top:-22px; left:50%; width:2px; height:22px; background:#b6d2c5; transform:translateX(-50%); }
.ng-dept h3 { font-family:"Gowun Batang",serif; font-size:1.15rem; color:#2f6f57; margin-bottom:6px; }
.ng-dept .ng-who { font-size:.85rem; font-weight:600; color:var(--accent); margin-bottom:8px; }
.ng-dept p { font-size:.88rem; color:var(--ink-soft); font-weight:300; line-height:1.6; }
.ng-dept .ng-who:last-child { margin-bottom:0; }
@media (max-width:720px) {
  .ng-depts { grid-template-columns:1fr 1fr; gap:12px; padding-top:0; }
  .ng-depts::before, .ng-dept::before { display:none; }
  .ng-staff-grid { grid-template-columns:repeat(3,1fr); gap:10px 6px; }
  .ng-box { padding:26px 18px 22px; }
}

/* 회원 전용 잠금 */
.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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",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:"Gowun Batang",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(26,58,47,.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: linear-gradient(135deg, var(--accent), var(--gold, #b8912f)); }
.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: "Gowun Batang", 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(26,58,47,.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: "Gowun Batang", 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; }
/* 로그인한 분께만 보이는 칸(2026-10-05): 우리들 소식 사진 · 봉사위원 · 향기로운 예물 */
.hn-locked { padding: 16px; text-align: center; }
.hn-locked p, .member-only p { font-size: .95rem; line-height: 1.7; color: var(--ink-soft); word-break: keep-all; }
.member-only { text-align: center; padding: 22px 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--paper-alt); }
.member-only-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.member-only-btns .btn { min-width: 110px; padding: 10px 22px; }
.member-only-line { font-size: .88rem; color: var(--ink-soft); word-break: keep-all; }
.member-only-line button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--accent); text-decoration: underline; cursor: pointer; }
.committee .member-only { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.committee .member-only p { color: rgba(255,255,255,.9); }
.committee .member-only .btn-solid { background: #fff; color: var(--accent); border-color: #fff; }
.committee .member-only .btn-line { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
#hnMore[hidden] { display: none; }
/* 가입·로그인 창은 어떤 팝업(SitePopup 450·사진 크게 보기 3000·사진 창 3200) 위에서 열어도 맨 위에 */
#authModal, .modal.join-guide, .modal.welcome-pop { z-index: 3300; }
.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(26,58,47,.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: #EEF3F0; }
.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: repeat(2, minmax(0, 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: minmax(0, 1fr); } }
/* 사진 올리기·고치기 한 창(2026-10-04): 그 날 이미 올린 사진(× 로 지우기) · 새로 올릴 사진 · 안내 */
.modal.up-modal { z-index: 3200; }   /* 소식 더 보기·사진 크게 보기 위에 뜬다 */
.up-sub { font-size: .9rem; color: var(--ink-soft); margin: 0 0 4px; word-break: keep-all; }
.up-old { margin-top: 12px; }
.up-old-h { font-size: .86rem; color: var(--ink-soft); margin: 14px 0 8px; word-break: keep-all; }
.up-old .up-old-h { margin-top: 0; }
.up-old-h b { color: var(--ink); }
.up-old-h[hidden] { display: none; }
.up-old .up-thumbs, .up-new-h + .up-thumbs { margin-top: 0; }
.up-th-x { width: 26px; height: 26px; top: -8px; right: -8px; font-size: 1.05rem; }   /* 패드·휴대폰에서 누르기 쉽게 */
.up-th-lock img { opacity: .55; }
.up-th-busy { opacity: .35; pointer-events: none; }
.up-th-focus img { outline: 3px solid var(--gold, #BFA06C); outline-offset: 2px; }
.up-th-new::after { content: "새"; position: absolute; left: 5px; bottom: 5px; font-size: .7rem; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 999px; }
.up-note { font-size: .82rem; color: #8a5a00; background: #fbf4e4; border-radius: 8px; padding: 7px 10px; margin: -4px 0 0; word-break: keep-all; }
.up-note[hidden] { display: none; }
/* 날짜 상자 → 크게 보기의 '사진 수정하기' */
.igv-edit { position: absolute; top: 14px; left: 16px; z-index: 2; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.igv-edit:hover { background: rgba(255,255,255,.28); }
.igv-edit[hidden] { display: none; }

/* 카테고리 관리 버튼(업로드 모달·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: "Gowun Batang", 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:"Gowun Batang",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: minmax(0, 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 var(--accent-soft); background: transparent; color: var(--ink); cursor: pointer; transition: .2s; display: inline-flex; align-items: center; justify-content: center; margin-left: 14px; flex: none; }
.notify-btn:hover { background: var(--paper-alt); }
.notify-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.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 var(--accent-soft); background: transparent; color: var(--accent); cursor: pointer; transition: .2s; white-space: nowrap; }
.auth-btn:hover { background: var(--accent); color: #fff; }
/* 로그인·가입하기를 한 덩어리로 묶는 껍데기(모바일에선 세로로 쌓임 — 아래 미디어쿼리) */
.auth-wrap-out { display: inline-flex; align-items: center; gap: 8px; }
/* 가입하기 — 처음 오신 분에게 가장 눈에 띄어야 하므로 채운 버튼으로 (로그인은 테두리만) */
.auth-btn.auth-btn-join { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.auth-btn.auth-btn-join:hover { background: var(--accent-deep, #122A22); border-color: var(--accent-deep, #122A22); }
.auth-name { font-size: .85rem; color: var(--ink); }
.auth-pending { font-size: .85rem; color: var(--muted); cursor: default; }

.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: "Gowun Batang", 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); }
/* 가입 안내(2026-10-04): 카카오 먼저, 안 되면 이메일 — 한 분은 계정 하나만 */
.jg-rec { font-size: .72rem; font-weight: 800; color: #fff; background: #3A1D1D; padding: 2px 8px; border-radius: 999px; }
.jg-note { font-size: .84rem; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.6; word-break: keep-all; }
.jg-kakao[hidden] { display: none; }
.jg-email { width: 100%; padding: 12px; font-size: .95rem; }
.jg-warn { margin-top: 18px; font-size: .84rem; line-height: 1.7; color: #8a5a00; background: #fbf4e4; border-radius: 10px; padding: 10px 12px; text-align: left; word-break: keep-all; }
.jg-warn button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--accent); text-decoration: underline; cursor: pointer; }
ul.jg-warn { list-style: disc; padding-left: 28px; }
/* 첫 화면 환영 안내(2026-10-05): 가입하지 않은 분께 '가입 후 이용' + 가입하기 */
.wp-text { font-size: .98rem; line-height: 1.75; color: var(--ink-soft); margin: 0 0 10px; word-break: keep-all; }
.wp-strong { color: var(--ink); font-weight: 700; margin-bottom: 22px; }
.wp-join { width: 100%; padding: 13px; font-size: 1.02rem; }
.wp-later { width: 100%; margin-top: 10px; padding: 12px; }
.wp-login { margin-top: 16px; font-size: .88rem; color: var(--ink-soft); }
.wp-login button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--accent); text-decoration: underline; cursor: pointer; }
.jg-warn li + li { margin-top: 6px; }
.jg-note b { color: var(--ink); }
.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; }
/* 로그인 기록 안내(개인정보처리방침 제2조 4·제4조 ③, 2026-10-03) */
.auth-privacy { margin-top: 10px; font-size: .74rem; line-height: 1.5; color: var(--ink-soft); word-break: keep-all; }
.auth-privacy a { color: inherit; text-decoration: underline; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -2px; font-size: .85rem; }
.auth-remember { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); cursor: pointer; user-select: none; }
.auth-remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.auth-forgot { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .85rem; }
.auth-forgot:hover { text-decoration: underline; }

/* ===== 홈페이지 설정 페이지 ===== */
.hs-card { max-width: 100%; margin-bottom: 26px; text-align: left; }
.hs-help { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; margin: 0 0 16px; }
.hs-sub { margin: 22px 0 10px; font-size: .95rem; color: var(--accent); font-weight: 700; }
.hs-list { display: flex; flex-direction: column; gap: 8px; }
.hs-item { display: flex; align-items: center; gap: 8px; }
.hs-in { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: .9rem; background: #fff; }
.hs-in:focus { outline: none; border-color: var(--accent); }
.hs-chk { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; cursor: pointer; }
.hs-chk input { accent-color: var(--accent); }
.hs-del { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: #c0392b; cursor: pointer; font-size: .9rem; line-height: 1; }
.hs-del:hover { background: #fbeceb; border-color: #e6b3ad; }
.hs-add { margin-top: 10px; padding: 7px 16px; font-size: .85rem; }
.hs-logo-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hs-logo-preview { width: 92px; height: 92px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-alt, #f4f1ea); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hs-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hs-logo-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hs-logo-note { font-size: .84rem; margin: 2px 0 0; min-height: 1em; }
.hs-year-row { display: flex; align-items: center; gap: 10px; }
.hs-year-row select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: .9rem; background: #fff; }
.hs-com-table th { font-size: .82rem; color: var(--ink-soft); text-align: left; padding: 6px 8px; }
.hs-com-table td { padding: 4px 8px; }
.hs-com-table .hs-in { padding: 7px 10px; font-size: .86rem; }
.hs-badge-uploaded { font-size: .72rem; font-weight: 500; color: var(--accent-soft); background: var(--paper-alt); border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; }

/* 예배 봉사 스케줄표 업로드 미리보기 */
.hs-sched-preview { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.hs-sched-warn { background: #fbeceb; border: 1px solid #e6b3ad; border-radius: 10px; padding: 12px 16px; font-size: .86rem; color: #a83226; line-height: 1.6; }
.hs-sched-warn ul { margin: 6px 0 0; padding-left: 18px; }
.hs-sched-month { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; }
.hs-sched-month h5 { font-family: "Gowun Batang", serif; font-size: 1rem; color: var(--accent); margin: 0 0 8px; }
.hs-sched-role { display: flex; gap: 8px; font-size: .86rem; padding: 3px 0; }
.hs-sched-role .role { flex: 0 0 110px; color: var(--ink-soft); }
.hs-sched-role .names { flex: 1; }
.hs-sched-actions { display: flex; gap: 10px; align-items: center; }

.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: "Gowun Batang", 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);
  }
  /* 모바일에선 둘 다 채워져 구분이 안 되므로, 로그인은 테두리만 남기고 가입하기를 강조 */
  .auth-slot .auth-btn:not(.auth-btn-join) {
    color: var(--accent) !important; background: var(--paper-alt); border-color: var(--line);
  }
  .auth-slot .auth-wrap-out { width: 100%; display: flex; flex-direction: column; gap: 8px; }
  .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;
  white-space: nowrap;
  color: var(--accent) !important; font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 20px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
a.auth-name:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* 호버 카드 (마우스를 갔다 대면 회원정보 표시) */
.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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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;
  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-actions { 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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); }
@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-preview-btn { 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:
    linear-gradient(var(--paper), 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: "Gowun Batang", 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: "Gowun Batang", serif; color: var(--ink); font-size: 1.02rem; }

/* 헌정 */
.br-dedication { text-align: center; font-family: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", serif; color: var(--ink-soft); margin-top: 22px; }

/* 목차 */
.br-toc { list-style: none; max-width: 460px; margin: 0 auto; }
.br-toc-part { font-family: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: "Gowun Batang", 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: 420px; 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: 16px;
  box-shadow: 0 20px 48px rgba(0,0,0,.16); padding: 18px;
}
.nav-dropdown-head {
  font-family: "Gowun Batang", serif; font-weight: 700; font-size: 1.02rem; color: var(--accent);
  padding: 0 10px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.nav-dropdown-links { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 2px 8px; }
.nav-dropdown-links a {
  white-space: nowrap; color: var(--ink-soft) !important; font-weight: 500; font-size: .95rem;
  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;
  }
  .nav-dropdown-head { display: none; }
  .nav-dropdown-links { display: block; }
  .nav-dropdown-links 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-links 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: "Gowun Batang", 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; }

/* ===== 사이트맵 ===== */
.sitemap-search {
  display: block; width: 100%; max-width: 420px; margin: 0 auto 36px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 1rem;
}
.sitemap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.sitemap-col h3 {
  font-family: "Gowun Batang", serif; font-size: 1.1rem; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.sitemap-col h3 a { color: var(--accent); }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sitemap-col li a { color: var(--ink-soft); font-size: .95rem; }
.sitemap-col li a:hover { color: var(--accent); text-decoration: underline; }
.sitemap-note { color: #b0b8c2; font-size: .78rem; }

/* ===== 맨 위로 버튼 ===== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top.show { opacity: .88; visibility: visible; transform: translateY(0); }
.back-to-top:hover { opacity: 1; background: var(--gold); color: var(--accent); }
@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 1.15rem; }
}

/* ===== 실시간 예배 — 스크롤과 무관하게 항상 떠 있는 버튼(홈 화면 전용) ===== */
.live-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 400;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .92rem;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.live-float:hover { background: var(--gold); color: var(--accent); transform: translateY(-2px); }
/* 점: 평소에는 회색으로 가만히, 주일 11:30~16:00 에만 빨갛게 깜빡(js/live-badge.js 가 .is-live 를 붙임) */
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #c9cfcc; flex: 0 0 auto;
}
.live-float.is-live .live-dot { background: #ff4b4b; animation: liveDotPulse 1.6s infinite; }
@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,75,75,.6); }
  70% { box-shadow: 0 0 0 9px rgba(255,75,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,75,75,0); }
}
@media (max-width: 640px) {
  .live-float { left: 16px; bottom: 16px; padding: 10px 15px; font-size: .82rem; gap: 8px; }
}

/* ============================================================
   모바일 헤더 정리 (2026-08)
   문제 ① .nav-inner 가 grid(1fr auto 1fr) 라서 좁은 화면에서 로고 칸이
          화면의 1/3 로 눌려 "노진교회" 가 글자마다 줄바꿈되어 세로로 쪼개졌다.
          → 모바일에선 grid 를 풀고 flex(양끝 정렬)로 바꿔 로고가 제 너비를 갖게 한다.
   문제 ② 헤더는 position:fixed 인데 .hero 의 padding-top 이 60px 뿐이라
          헤더(약 84px)보다 작아 큰 제목이 헤더 뒤로 파고들었다.
          → 헤더를 모바일에서 더 납작하게 만들고, hero 위 여백을 헤더보다 넉넉히 준다.
   ============================================================ */
@media (max-width: 760px) {
  #header { padding: 11px 0; }
  #header.scrolled { padding: 9px 0; }

  /* grid 해제 — 로고(왼쪽) · 햄버거(오른쪽) 양끝 배치 */
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; column-gap: 10px;
  }
  .nav-left { flex: 0 1 auto; min-width: 0; gap: 8px; }
  .nav-right { flex: 0 0 auto; gap: 10px; }

  /* 교회 이름은 어떤 경우에도 글자 단위로 쪼개지지 않게 */
  .logo { min-width: 0; }
  .logo-kr { white-space: nowrap; font-size: 1.1rem; letter-spacing: .02em; }
  .logo-txt .logo-kr { font-size: 1.15rem; }
  .logo-denom { font-size: .7667rem; margin-top: 4px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 8px; }

  /* '대시보드'는 로고를 밀어낼 만큼 크지 않게 (좁으면 아예 숨김) */
  .hdr-dash-btn { padding: 5px 10px; font-size: .76rem; white-space: nowrap; }

  /* 고정 헤더에 가리지 않도록 첫 화면 위 여백 확보
     (.page-hero 는 이미 위 여백이 128px 라 손대지 않는다) */
  .hero { padding-top: 78px; }
}
@media (max-width: 380px) {
  /* 아주 좁은 기기: 대시보드 버튼까지 있으면 로고가 눌리므로 버튼을 숨긴다
     (같은 기능을 햄버거 메뉴 안에서 쓸 수 있다) */
  .hdr-dash-btn { display: none !important; }
  .logo-kr { font-size: 1.02rem; }
  .logo-txt .logo-kr { font-size: 1.05rem; }
  .logo-denom { font-size: .7rem; }
}

/* ============================================================
   교회 소개 — 신앙고백 글 (welcome.html #about)
   어르신 성도가 많은 교회라 가독성을 최우선으로 잡았다:
   본문 1.09rem · 줄간격 2.05 · 한 줄 길이 720px 이하.
   글 자체가 "은혜가 먼저"라는 한 문장을 되풀이하는 구조라,
   맨 위 제목과 맨 아래 후렴을 같은 모양으로 감싸 수미상관이 보이게 했다.
   ============================================================ */
.confess { max-width: 760px; margin: 0 auto 56px; }

/* 글 서두의 담임목사 사진 칸 — images/pastor.jpg 를 바꾸면 교체된다.
   고백문 위에 얼굴을 먼저 두어 "누가 하는 고백인지" 보이게 했다. */
.confess .confess-portrait { margin: 0 0 30px; text-align: center; }
.confess .confess-portrait img {
  width: 172px; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; background: var(--paper-alt);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16); display: inline-block;
}
.confess .confess-portrait figcaption {
  margin-top: 12px; font-family: "Gowun Batang", serif;
  font-size: .95rem; color: var(--muted); letter-spacing: .02em;
}
.confess .confess-portrait figcaption strong { color: var(--accent); font-weight: 700; }

/* 첫 제목 · 끝 후렴 (같은 모양으로 글 전체를 감싼다) */
.confess .confess-refrain {
  font-family: "Gowun Batang", serif; font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2.05rem); line-height: 1.65;
  color: var(--accent); text-align: center; word-break: keep-all;
  padding: 26px 18px; margin: 0 0 34px;
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
}
.confess .confess-refrain.is-close { margin: 40px 0 0; }

/* 끝 후렴 아래 온 교우 단체사진 */
.confess .confess-family { margin: 36px 0 0; text-align: center; }
.confess .confess-family img {
  width: 100%; height: auto; aspect-ratio: 1600 / 975; object-fit: cover;
  border-radius: 14px; background: var(--paper-alt);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16); display: block;
}
.confess .confess-family figcaption {
  margin-top: 12px; font-family: "Gowun Batang", serif;
  font-size: .95rem; color: var(--muted); letter-spacing: .02em;
}

/* 들어가는 한 문장 */
.confess .confess-lead {
  font-family: "Gowun Batang", serif; font-size: clamp(1.1rem, 2.4vw, 1.28rem);
  line-height: 1.7; color: var(--accent); text-align: center;
  word-break: keep-all; margin: 0 0 30px;
}

/* 각 단락의 머리 문장 — 굵게만 두지 않고 소제목으로 세운다 */
.confess h3 {
  font-family: "Gowun Batang", serif; font-weight: 700;
  font-size: clamp(1.06rem, 2.2vw, 1.2rem); line-height: 1.7;
  color: var(--accent); word-break: keep-all;
  margin: 32px 0 10px; padding-left: 15px;
  border-left: 3px solid var(--gold);
}
.confess h3:first-of-type { margin-top: 0; }

.confess p {
  font-size: 1.09rem; line-height: 1.75; color: var(--ink-soft);
  word-break: keep-all; margin: 0 0 14px; letter-spacing: -.005em;
}

/* 성경 인용 */
.confess .verse {
  display: block; font-family: "Gowun Batang", serif;
  font-size: 1.04rem; line-height: 1.7; color: var(--accent);
  background: var(--paper-alt); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 13px 18px; margin: 16px 0;
  word-break: keep-all;
}
.confess .verse cite { display: block; font-style: normal; font-size: .88rem; color: var(--muted); margin-top: 7px; }

/* 마지막 초대 문단 */
.confess-invite {
  background: var(--paper-alt); border-radius: 14px;
  padding: 26px 26px 24px; margin-top: 40px;
}
.confess .confess-invite p { margin-bottom: 0; }

/* ============================================================
   노진교회 심볼 이야기 (welcome.html, 교우 단체사진 아래)
   큰 로고 → 한 줄 소개 → N·J·C·옆 획 풀이(작은 그림에서 그 부분만 금색) → 맺음 고백
   ============================================================ */
.symbol-story { max-width: 760px; margin: 0 auto 64px; }
.ss-head { text-align: center; }
.ss-head .eyebrow2 { font-family: "Cormorant Garamond", serif; letter-spacing: .25em; font-size: .8rem; color: var(--accent-soft); }
.ss-title { font-family: "Gowun Batang", serif; font-weight: 700; font-size: clamp(1.45rem, 3.4vw, 2rem);
  color: var(--accent); margin-top: 6px; }
/* 로고 조합은 로고 파일(세로형)과 같은 비율: 심볼 150 · 노진교회 42px(자간 .444em) · 교단명 2/3 크기 */
.ss-logo { display: flex; flex-direction: column; align-items: center; margin: 30px 0 30px;
  padding: 42px 20px 40px; background: #F6F4EB; border: 1px solid var(--line); border-radius: 18px; }
.ss-mark { display: block; width: 150px; height: auto; }
.ss-name { margin-top: 22px; font-family: "Gowun Batang", serif; font-weight: 700; font-size: 2.625rem; line-height: 1;
  letter-spacing: .444em; margin-right: -.444em; color: var(--accent); white-space: nowrap; }
.ss-denom { margin-top: 10px; font-family: "Gowun Batang", serif; font-weight: 600; font-size: 1.75rem; line-height: 1;
  color: var(--accent); white-space: nowrap; }
.ss-lead { font-family: "Gowun Batang", serif; font-size: clamp(1.05rem, 2.3vw, 1.2rem); line-height: 1.9;
  color: var(--accent); text-align: center; word-break: keep-all; margin: 0 0 30px; }
.ss-lead strong { color: #8A6A2F; letter-spacing: .06em; }
.ss-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ss-item { display: flex; align-items: center; gap: 24px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 26px 18px 18px; }
.ss-tile { flex: none; display: block; width: 112px; height: 112px; border-radius: 14px; background: #1A3A2F; }
.ss-text h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: "Gowun Batang", serif;
  font-weight: 700; font-size: 1.12rem; line-height: 1.5; color: var(--accent); word-break: keep-all; }
.ss-key { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: #1A3A2F; color: #BFA06C; font-family: "Cormorant Garamond", serif;
  font-weight: 600; font-size: 1.15rem; line-height: 1; }
.ss-key-line::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: #BFA06C; }
.ss-text p { margin: 0; font-size: 1rem; line-height: 1.85; color: var(--ink-soft); word-break: keep-all; }
.ss-close { margin-top: 34px; padding-top: 30px; border-top: 2px solid var(--gold); text-align: center; }
.ss-close p { margin: 0 0 10px; font-family: "Gowun Batang", serif; font-size: 1.08rem; line-height: 1.9;
  color: var(--ink-soft); word-break: keep-all; }
.ss-close .ss-close-main { margin-bottom: 22px; font-weight: 700; font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  line-height: 1.7; color: var(--accent); }
.ss-verse { display: inline-block; font-family: "Gowun Batang", serif; font-size: 1.02rem; line-height: 1.8;
  color: var(--accent); background: var(--paper-alt); border-radius: 10px; padding: 14px 24px; word-break: keep-all; }
.ss-verse cite { display: block; margin-top: 5px; font-style: normal; font-size: .86rem; color: var(--muted); }

@media (max-width: 760px) {
  .symbol-story { margin-bottom: 44px; }
  .ss-logo { padding: 32px 14px 30px; }
  .ss-mark { width: 120px; }
  .ss-name { margin-top: 18px; font-size: 2.1rem; }
  .ss-denom { margin-top: 8px; font-size: 1.4rem; }
  .ss-item { align-items: flex-start; gap: 16px; padding: 14px 16px 16px 14px; }
  .ss-tile { width: 80px; height: 80px; border-radius: 12px; }
  .ss-text h4 { font-size: 1.04rem; }
  .ss-text p { font-size: .97rem; line-height: 1.8; }
}
@media (max-width: 380px) {
  .ss-name { font-size: 1.8rem; }
  .ss-denom { font-size: 1.2rem; }
  .ss-tile { width: 68px; height: 68px; }
}

@media (max-width: 760px) {
  .confess { margin-bottom: 40px; }
  .confess .confess-portrait img { width: 142px; }
  .confess .confess-portrait { margin-bottom: 24px; }
  .confess .confess-family { margin-top: 28px; }
  .confess .confess-family img { border-radius: 10px; }
  .confess .confess-refrain { padding: 20px 12px; margin-bottom: 26px; }
  .confess p { font-size: 1.05rem; line-height: 1.72; }
  .confess h3 { margin: 28px 0 10px; padding-left: 12px; }
  .confess .verse { padding: 13px 15px; }
  .confess-invite { padding: 20px 18px; }
}

/* ============================================================
   2026-09-29 홈페이지 정리 (목사님 요청)
   ① 머리글 로고 뒤 바탕 상자  ② 바닥글: 딥그린 바탕 + 흰 교회 마크
   ③ 위 메뉴의 세부 항목: 한 줄씩 아래로, 항목마다 밑줄
   ④ 한 화면씩 넘어가기(컴퓨터에서만)  ⑤ 긴 내용은 팝업
   ⑥ 첫 화면: 그림 꽉 차게 + 붓으로 그은 흰 바탕 제목 + 이번 주 설교 상자
   ⑦ 첫 화면 다음: 바로가기 · 주보 요약
   ============================================================ */
:root { --hdr: 84px; --cream: #EEF4EF; --gold-logo: #A7D0B8; }

/* ① 머리글: 로고와 교회 이름 뒤에 크림색 바탕 상자 */
#header { padding: 12px 0; }
#header.scrolled { padding: 10px 0; }
#header .logo {
  background: var(--cream); border: 1px solid rgba(191,160,108,.6); border-radius: 14px;
  padding: 6px 18px 6px 6px; box-shadow: 0 3px 14px rgba(26,58,47,.12);
  transition: box-shadow .25s ease, transform .25s ease;
}
#header .logo:hover { box-shadow: 0 6px 20px rgba(26,58,47,.18); transform: translateY(-1px); }
#header .logo-mark { box-shadow: none; border-radius: 9px; }
@media (max-width: 760px) {
  #header { padding: 9px 0; }
  #header.scrolled { padding: 8px 0; }
  #header .logo { padding: 4px 12px 4px 4px; border-radius: 11px; }
}

/* ② 바닥글: 교회 마크를 흰색으로, 바탕은 교회 색(딥그린 #1A3A2F) */
.footer { background: var(--accent); }
.footer-brand { flex-direction: row; align-items: center; gap: 16px; text-decoration: none; }
.footer-mark { width: 64px; height: auto; flex: 0 0 auto; }
.footer-brand-txt { display: flex; flex-direction: column; }
.footer-brand .logo-denom { color: rgba(255,255,255,.85); }
.footer-meta p { color: rgba(255,255,255,.72); }
.footer-meta .copy { color: rgba(255,255,255,.45); }
.footer-nav a { color: rgba(255,255,255,.85); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px 48px; }
.footer-nav { justify-content: flex-end; }
.footer-actions:empty { display: none; }
.footer-actions { grid-column: 1 / -1; }
.footer-meta { grid-column: 1 / -1; text-align: left; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-meta { text-align: center; width: 100%; }
  .footer-brand { justify-content: center; }
  .footer-mark { width: 54px; }
}

/* ③ 위 메뉴 세부 항목 — 두 줄(2칸) 대신 한 줄씩 아래로, 줄간은 좁게, 항목마다 밑줄 (컴퓨터 화면) */
@media (min-width: 761px) {
  .nav-dropdown { min-width: 0; padding-top: 14px; }
  .nav-dropdown-inner {
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px 4px 10px 10px;
    padding: 6px 22px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); min-width: 236px;
  }
  .nav-dropdown-links { display: flex; flex-direction: column; gap: 0; }
  .nav-dropdown-links a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 4px 8px; border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink) !important; font-size: .98rem; font-weight: 500; line-height: 1.5;
    transition: padding .18s ease, color .18s ease;
  }
  .nav-dropdown-links a::before {
    content: "\203A"; color: var(--gold-logo); font-size: 1.25em; line-height: 1; font-weight: 700;
    transform: translateY(-1px);
  }
  .nav-dropdown-inner a:hover { background: transparent; color: var(--accent) !important; padding-left: 10px; font-weight: 700; }
}

/* ⑤ 팝업 (긴 글, 주보 전체, 새가족 등록서 등) — js/layout.js 의 SitePopup */
.pop-src[hidden] { display: none !important; }
html.pop-open, html.pop-open body { overflow: hidden; }
.pop-modal { position: fixed; inset: 0; z-index: 450; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pop-modal[hidden] { display: none; }
.pop-backdrop { position: absolute; inset: 0; background: rgba(10,22,17,.64); backdrop-filter: blur(3px); animation: fade .25s ease; }
.pop-box {
  position: relative; z-index: 1; width: min(920px, 100%); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; background: var(--paper); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .3s ease;
}
.pop-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px 16px 28px; background: var(--accent); color: #fff;
}
.pop-title { font-family: "Gowun Batang", serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.pop-close {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; flex: 0 0 auto;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1;
  transition: background .2s ease;
}
.pop-close:hover { background: rgba(255,255,255,.26); }
.pop-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 36px 44px 48px; }
.pop-body .reveal { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .pop-modal { padding: 0; }
  .pop-box { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .pop-head { padding: 12px 12px 12px 18px; }
  .pop-body { padding: 24px 18px 40px; }
}

/* 팝업 여는 버튼 묶음 */
.pop-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pop-link {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: transparent; color: var(--accent); font-size: .95rem; font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.pop-link::after { content: "+"; font-size: 1.1em; line-height: 1; color: var(--gold); }
.pop-link:hover { background: var(--accent); color: #fff; }
.pop-link.is-solid { background: var(--accent); color: #fff; }
.pop-link.is-solid:hover { background: #10241D; }

/* 제목 위 작은 영문(QUICK MENU 등)은 제목 위 한 줄로 */
html.snap-page .section-head .eyebrow { display: block; }

/* 각 메뉴 첫 화면(표지)의 차례 — 컴퓨터 화면에서만 */
.ph-toc { display: none; }

/* ④ 한 화면씩 넘어가기 — 마우스를 쓰는 넓은 화면(컴퓨터)에서만.
   휴대폰·태블릿은 손가락으로 자유롭게 내리는 편이 편해서 적용하지 않는다. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.snap-page { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  html.snap-page body > section {
    scroll-snap-align: start; scroll-snap-stop: always;
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--hdr) + 18px); padding-bottom: 30px;
  }
  html.snap-page body > section > .container { width: 100%; }
  html.snap-page body > section[hidden] { display: none; }   /* 내용이 없어 숨겨 둔 화면(팟캐스트 등)은 건너뛴다 */
  html.snap-page body > footer.footer { scroll-snap-align: end; }
  /* 맨 끝의 '다음 걸음' 초록 상자는 바닥글과 한 화면으로 묶는다 */
  html.snap-page body > section:has(.cta-flow) { min-height: 0; scroll-snap-align: none; padding-top: 56px; padding-bottom: 56px; }
  html.snap-page body > section .block-head { margin-bottom: 22px; }
  html.snap-page body > section .section-head { margin-bottom: 40px; }

  /* 표지: 화면 가득, 제목 아래 차례 */
  html.snap-page .page-hero { padding-left: 24px; padding-right: 24px; align-items: center; }
  html.snap-page .ph-toc {
    display: flex; flex-direction: column; width: min(380px, 100%); margin: 38px auto 0; text-align: left;
    border-top: 1px solid rgba(246,244,235,.3);
  }
  html.snap-page .ph-toc a {
    display: flex; align-items: center; gap: 12px; padding: 13px 6px 11px;
    border-bottom: 1px solid rgba(246,244,235,.3); color: var(--cream);
    font-size: 1.08rem; font-weight: 500; transition: padding .2s ease, color .2s ease;
  }
  html.snap-page .ph-toc a::before { content: "\203A"; color: var(--gold-logo); font-size: 1.3em; line-height: 1; font-weight: 700; }
  html.snap-page .ph-toc a:hover { color: #fff; padding-left: 14px; }
}

/* ⑥ 첫 화면 — 그림이 화면(휴대폰·컴퓨터 모두)을 꽉 채운다 */
.hero.hero-full {
  height: 100vh; height: 100svh; min-height: 540px; padding: 0; align-items: stretch;
  background:
    linear-gradient(180deg, rgba(8,10,20,.34) 0%, rgba(8,10,20,.06) 26%, rgba(8,10,20,0) 60%, rgba(8,10,20,.16) 100%),
    url("../images/hero-bg-wilderness.jpg") center 45% / cover no-repeat;
}
.hero-full .hero-stage {
  position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: calc(var(--hdr) + 4vh) 28px 7vh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 28px; text-align: center;
}
.hero-full .hero-headline { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding-bottom: 2vh; }
.hero-full .hero-tagline {
  margin: 0; white-space: normal; font-weight: 600; letter-spacing: .08em;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem); text-shadow: 0 2px 12px rgba(0,0,0,.75);
}
/* 붓으로 그은 흰 바탕 + 제목 */
.hero-brush {
  margin: 0; font-family: "Gowun Batang", serif; font-weight: 700; color: var(--accent);
  font-size: clamp(2.1rem, 4.7vw, 4.4rem); line-height: 1.2; letter-spacing: .03em; word-break: keep-all;
  animation: brushIn 1.1s cubic-bezier(.65,.05,.3,1) .25s both;
}
.hero-brush .hb-stroke {
  display: inline-block; padding: .4em 2.5em .48em .9em;   /* 오른쪽을 길게: 글자 끝(은혜)이 붓 끝 갈라짐에 물리지 않게 */
  margin-right: -1.6em;                                   /* 오른쪽이 긴 만큼 밀어 글자가 화면 가운데 오게 */
  background: url("../images/brush-stroke-white.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.28));
  transform: rotate(-1.6deg);
}
.hero-brush .hb-line { white-space: nowrap; display: inline-block; transform: rotate(1.2deg); }
@keyframes brushIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .hero-brush { animation: none; } }

/* 첫 화면에 남긴 '이번 주 설교' 상자 — 제목 글씨를 가리지 않게 아래쪽에 */
.hero-full .hero-sermon-banner {
  flex: 0 0 auto; width: min(600px, 100%); align-items: center; text-align: center; gap: 8px;
  padding: 22px 30px 20px; background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.95);
  box-shadow: 0 16px 40px rgba(0,0,0,.28); animation: fadeUp 1s ease .7s both;
}
.hero-full .hero-sermon-banner:hover { background: #fff; }
.hero-full .hero-sermon-banner .hsb-label { align-self: center; }
.hero-full .hero-sermon-banner .hsb-title { font-size: clamp(1.4rem, 2.3vw, 2rem); color: var(--accent); padding-left: 0; }
.hero-full .hero-sermon-banner .hsb-ref { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.hero-full .hero-sermon-banner .hsb-arrow { color: var(--accent); }
/* 첫 화면 '지난 주보 | 이번 주 주보' 단추(2026-10-03) — 이번 주는 크고 진하게, 지난 주는 작고 옅게 */
.hero-bul { display: flex; gap: 10px; width: min(600px, 100%); margin-top: -14px; animation: fadeUp 1s ease .9s both; }
.hero-bul[hidden] { display: none; }
.hero-bul button { font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; transition: background .2s, transform .2s, box-shadow .2s; }
.hero-bul button[hidden] { display: none; }
.hero-bul .hbul-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.hero-bul small { font-size: .78em; font-weight: 500; opacity: .85; }
.hero-bul .hbul-ar { font-size: 1.4em; line-height: 1; }
.hbul-prev { flex: 0 0 auto; padding: 10px 16px 10px 12px; color: #fff; font-size: .9rem;
  background: rgba(20,32,28,.38); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hbul-prev b { font-weight: 600; }
.hbul-prev:hover { background: rgba(20,32,28,.55); }
.hbul-cur { flex: 1 1 auto; padding: 14px 20px; color: #fff; font-size: 1.08rem; background: var(--accent);
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.hbul-cur b { font-weight: 800; letter-spacing: .02em; }
.hbul-cur .hbul-ic { font-size: 1.3em; }
.hbul-cur:hover { transform: translateY(-2px); background: #10241D; }
@media (max-width: 760px) {
  .hero-bul { margin-top: -6px; gap: 8px; }
  .hbul-prev { padding: 9px 12px 9px 9px; font-size: .84rem; }
  .hbul-cur { padding: 12px 14px; font-size: 1rem; }
}

@media (max-width: 760px) {
  :root { --hdr: 64px; }
  .hero.hero-full { background-position: 36% 45%, 36% 45%; }
  .hero-full .hero-stage { padding: calc(var(--hdr) + 3vh) 16px 86px; gap: 18px; }
  .hero-full .hero-headline { gap: 18px; }
  .hero-brush { font-size: clamp(1.9rem, 9.4vw, 2.6rem); line-height: 1.5; }
  /* 좁은 화면: 두 줄로 나누고 줄마다 붓 획 */
  .hero-brush .hb-stroke { background: none; filter: none; padding: 0; margin-right: 0; transform: none; }
  .hero-brush .hb-line {
    display: block; width: max-content; margin: 0 auto; padding: .28em 1.6em .36em .8em;
    background: url("../images/brush-stroke-white.svg") center / 100% 100% no-repeat;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.28)); transform: rotate(-1.5deg);
  }
  .hero-brush .hb-line + .hb-line { margin-top: .1em; transform: rotate(1deg) translateX(.4em); }
  .hero-full .hero-sermon-banner { padding: 16px 18px 14px; gap: 6px; }
  .hero-full .hero-sermon-banner .hsb-label { font-size: .7rem; padding: 4px 12px; }
  .hero-full .hero-sermon-banner .hsb-title { font-size: 1.3rem; }
  .hero-full .hero-sermon-banner .hsb-ref { font-size: .86rem; }
}

/* ⑦ 바로가기 (첫 화면에 떠 있던 상자들) */
.home-quick { background: var(--bg); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.quick-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 170px; padding: 26px 20px; border-radius: 16px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(26,58,47,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quick-card[hidden] { display: none; }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(26,58,47,.12); border-color: var(--gold); }
.qc-icon {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--cream); border: 1px solid rgba(191,160,108,.45); font-size: 1.6rem; color: var(--accent); margin-bottom: 4px;
}
.qc-title { font-family: "Gowun Batang", serif; font-size: 1.16rem; font-weight: 700; color: var(--accent); word-break: keep-all; }
.qc-sub { font-size: .9rem; color: var(--ink-soft); word-break: keep-all; }
.qc-icon.qc-yt svg { display: block; width: 26px; height: 26px; margin-left: 3px; }   /* 유튜브처럼 빨간 세모 */
.quick-card { min-height: 150px; }   /* 아래 설명 글을 빼서(2026-10-03) 조금 낮게 */
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .quick-card { min-height: 120px; padding: 18px 12px; } }

/* 이번 주 주보 요약 카드 (전체는 팝업) */
.hbb { max-width: 880px; margin: 0 auto; }
.hbb-card {
  display: grid; grid-template-columns: 1.25fr 1fr; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(26,58,47,.08);
}
.hbb-main { padding: 30px 34px; }
.hbb-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.hbb-week { font-weight: 700; color: var(--accent); letter-spacing: .03em; }
.hbb-title { font-family: "Gowun Batang", serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--accent); line-height: 1.35; word-break: keep-all; }
.hbb-ref { margin-top: 8px; font-weight: 600; color: var(--ink-soft); }
.hbb-verse {
  margin-top: 16px; padding: 14px 16px; background: var(--paper-alt); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0;
  font-family: "Gowun Batang", serif; font-size: .98rem; line-height: 1.85; color: var(--ink);
}
.hbb-verse > span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hbb-news { padding: 30px 30px; background: var(--accent); color: #fff; }
.hbb-news-title { font-family: "Gowun Batang", serif; font-weight: 700; color: var(--gold-logo); margin-bottom: 12px; }
.hbb-news li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .93rem; line-height: 1.6; color: rgba(255,255,255,.92); }
.hbb-news li:last-child { border-bottom: 0; }
.hbb-actions { grid-column: 1 / -1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 18px 20px; border-top: 1px solid var(--line); background: #fbfaf6; }
.hbb-card:not(:has(.hbb-news)) { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .hbb-card { grid-template-columns: 1fr; }
  .hbb-main, .hbb-news { padding: 22px 20px; }
}
/* 팝업 안의 주보 전체: 카드 그림자 없이 */
.pop-body .hb-card { box-shadow: none; }

/* 교회 안내(welcome.html) — 우리교회를 소개합니다 한 화면 */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-text .block-head { margin-bottom: 18px; }
.about-refrain {
  font-family: "Gowun Batang", serif; font-weight: 700; color: var(--accent);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.6; word-break: keep-all;
  padding: 14px 0; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); display: inline-block;
}
.about-lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; word-break: keep-all; }
.about-text .ph-denom.is-light { margin-top: 18px; justify-content: flex-start; text-align: left; }
.about-text .ph-denom.is-light p { margin: 0; color: var(--accent); font-size: 1.02rem; font-weight: 500; line-height: 1.6; }
.about-text .ph-denom.is-light .ph-denom-mark { width: 54px; height: 54px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.14); aspect-ratio: 1600 / 975; object-fit: cover; }
.about-photo figcaption { margin-top: 10px; text-align: center; font-family: "Gowun Batang", serif; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}
/* 팝업 속 신앙고백·심볼 이야기는 위 여백을 줄인다 */
.pop-body .confess, .pop-body .symbol-story, .pop-body .servants { margin-top: 0; margin-bottom: 0; }
.pop-body .form-card { margin: 0 auto; box-shadow: none; }

/* 새가족: 등록서 여는 버튼 */
.nf-cta { margin-top: 34px; text-align: center; }
.nf-cta .btn { font-size: 1.05rem; padding: 15px 40px; }

.text-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(26,58,47,.3); }
.text-link:hover { border-bottom-color: var(--accent); }

/* 행정(office.html) */
.office-card {
  max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 36px; box-shadow: 0 6px 22px rgba(26,58,47,.06);
}
.office-soon { text-align: center; padding: 44px 36px; }
.office-soon p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.8; margin: 14px 0 0; word-break: keep-all; }
.office-soon .btn { margin-top: 22px; }
.soon-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  background: var(--cream); color: #8A6A2F; border: 1px solid rgba(191,160,108,.6);
}
.og-acct { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 8px 0 4px; }
.og-bank { font-weight: 700; color: var(--accent-soft); }
.og-no { font-family: "Gowun Batang", serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.og-holder { color: var(--ink-soft); }
.office-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.office-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 6px 0 0; }
.office-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
.office-steps .os-num {
  display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 12px;
}
.office-steps strong { display: block; font-family: "Gowun Batang", serif; font-size: 1.08rem; color: var(--accent); margin-bottom: 6px; }
.office-steps p { color: var(--ink-soft); font-size: .93rem; line-height: 1.7; word-break: keep-all; }
.office-steps + .office-actions { justify-content: flex-start; }
@media (max-width: 900px) { .office-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .office-steps { grid-template-columns: 1fr; } .office-card { padding: 26px 20px; } }

/* 이번 주 말씀(word.html): 화면에는 요약, 설교 요약 전문은 팝업 */
.ws-quote > span { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.ws-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.ws-actions .ws-more { margin-top: 0; }
.ws-pop { max-width: 760px; margin: 0 auto; }
.ws-pop .ws-title { margin-top: 0; }

/* 한 화면씩 넘어가는 페이지(컴퓨터)에서 한 화면보다 긴 곳 줄이기 */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  /* 이번 주 말씀: 왼쪽 제목, 오른쪽 본문 말씀 */
  html.snap-page .week-sermon { max-width: 1000px; display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 44px; align-items: start; }
  html.snap-page .week-sermon > * { grid-column: 1; }
  html.snap-page .week-sermon > .ws-quote { grid-column: 2; grid-row: 1 / span 8; margin: 0; align-self: center; }
  /* 우리들 소식: 사진 넘기기 상자를 화면 높이에 맞게 */
  html.snap-page #album .hn-box { max-width: min(860px, calc((100vh - var(--hdr) - 290px) * 1.6)); }
  /* 이달의 찬양: 영상 크기를 한 화면에 맞게 */
  html.snap-page #song .song-box { max-width: 640px; }
  /* 주보 모아 보기 · 공지사항: 목록은 그 상자 안에서 스크롤 */
  html.snap-page #archive .bulletin-list,
  html.snap-page #notice .nt-wrap {
    max-height: calc(100vh - var(--hdr) - 340px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 8px 8px 4px; scrollbar-width: thin;
  }
  /* 삶의 질문: 물질 · 건강 · 관계를 세 칸으로 나란히 */
  html.snap-page #qna .qna { columns: 3; column-gap: 22px; }
  html.snap-page #qna .qna-cat { break-before: column; margin-top: 0; }
  html.snap-page #qna .qna-cat:first-child { break-before: auto; }
  html.snap-page #qna .qna-item { break-inside: avoid; }
  html.snap-page #qna .qna-q { padding: 16px 18px; font-size: .98rem; }
  /* 지역 연합사역: 세 카드를 나란히 */
  html.snap-page #local > .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
  html.snap-page #local > .container > .block-head { grid-column: 1 / -1; margin-bottom: 8px; }
  html.snap-page #local .region-card { margin-bottom: 0; padding: 28px 24px; display: flex; flex-direction: column; }
  html.snap-page #local .region-card .rc-tag { align-self: flex-start; }
  html.snap-page #local .region-card .rc-btn, html.snap-page #local .region-card .rc-go { margin-top: auto; padding-top: 14px; align-self: flex-start; }
  html.snap-page #local .region-card .rc-btn { padding-top: 13px; }
}

/* 키가 작은 노트북 화면(높이 760px 이하)에서는 여백을 조금 더 줄여 한 화면에 들어가게 */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 760px) {
  html.snap-page body > section { padding-top: calc(var(--hdr) + 10px); padding-bottom: 18px; }
  html.snap-page body > section .section-head { margin-bottom: 22px; }
  html.snap-page .section-head .eyebrow { margin-bottom: 4px; }
  html.snap-page .section-head h2::after { margin-top: 10px; }
  html.snap-page body > section .block-head { margin-bottom: 16px; }
  html.snap-page .block-head p { margin-top: 6px; }
  html.snap-page #song .song-box { max-width: 560px; }
  html.snap-page .hbb-main { padding: 22px 28px; }
  html.snap-page .hbb-news { padding: 22px 24px; }
  html.snap-page .hbb-actions { padding: 12px 16px; }
  html.snap-page #mission .mission-card { padding-top: 22px; padding-bottom: 22px; }
}

/* 중간 폭 화면(작은 노트북·태블릿 가로)에서 위 메뉴가 로고와 겹치지 않게:
   '메인화면으로'는 숨기고(로고를 누르면 처음 화면으로 감), 로고 상자를 조금 줄인다 */
@media (min-width: 761px) and (max-width: 1080px) {
  .nav-home-link { display: none !important; }
  #header .logo { padding: 5px 12px 5px 5px; }
  #header .logo-txt .logo-kr { font-size: 1.15rem; }
  #header .logo-mark { width: 34px; height: 34px; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .nav-inner { display: flex; align-items: center; justify-content: space-between; column-gap: 12px; padding: 0 14px; }
  .nav-menu { gap: 14px; }
  .nav-menu a { font-size: .86rem; }
  .nav-caret { display: none; }
  .auth-btn-join { display: none !important; }   /* 가입은 로그인 창 안의 '회원가입'으로 */
}

/* ============================================================
   2026-09-29 (2차) 목사님 요청
   ① 화면이 부드럽게 미끄러지듯 넘어가게 — 움직이는 동안 css 맞춤을 끈다(js/layout.js glideTo)
   ② '메인화면으로'에 마우스를 올리면 전체 메뉴(모든 메뉴의 세부 항목)가 한눈에
   ============================================================ */
html.snap-gliding { scroll-snap-type: none !important; scroll-behavior: auto !important; }

/* ② 전체 메뉴 — 컴퓨터 화면에서만 */
.nav-mega { display: none; }
@media (min-width: 761px) {
  /* 전체 메뉴는 위 메뉴줄 전체의 가운데 아래에 뜬다(화면 오른쪽으로 넘치지 않게) */
  .nav-menu { position: relative; }
  .nav-item.has-mega { position: static; }
  .nav-mega {
    display: block; position: absolute; top: 100%; left: 50%; padding-top: 14px; z-index: 130;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav-item.has-mega:hover .nav-mega,
  .nav-item.has-mega:focus-within .nav-mega {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
  .nav-item.has-mega:hover .mega-caret { transform: rotate(180deg); opacity: 1; }
  .nav-mega-inner {
    display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 0 30px;
    width: min(1060px, calc(100vw - 80px)); padding: 22px 30px 26px;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px 4px 12px 12px;
    box-shadow: 0 22px 50px rgba(0,0,0,.18);
  }
  .mega-head {
    display: block; font-family: "Gowun Batang", serif; font-weight: 700; font-size: 1.05rem;
    color: var(--accent) !important; padding: 4px 2px 10px; margin-bottom: 4px; border-bottom: 2px solid var(--gold);
    white-space: nowrap;
  }
  .nav-mega .mega-links { display: flex; flex-direction: column; }
  .nav-mega .mega-links a {
    display: flex; align-items: center; gap: 8px; padding: 9px 2px 7px;
    border-bottom: 1px solid var(--line); color: var(--ink) !important;
    font-size: .93rem; font-weight: 500; line-height: 1.45; white-space: normal; word-break: keep-all;
    transition: padding .18s ease, color .18s ease;
  }
  .nav-mega .mega-links a::before { content: "\203A"; color: var(--gold); font-size: 1.2em; line-height: 1; font-weight: 700; }
  .nav-mega a::after { display: none !important; }
  .nav-mega .mega-links a:hover { color: var(--accent) !important; padding-left: 8px; font-weight: 700; }
  .nav-mega .mega-head:hover { color: #10241D !important; }
}
@media (max-width: 760px) {
  .mega-caret { display: none !important; }
}

/* ============================================================
   2026-09-29 (4차)
   ============================================================ */
/* 우리교회를 소개합니다: 흰 소속 상자 아래 네 버튼을 모두 같은 크기로 */
.about-text .pop-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 520px; }
.about-text .pop-link { justify-content: center; width: 100%; padding-left: 12px; padding-right: 12px; }
@media (max-width: 420px) { .about-text .pop-links { grid-template-columns: 1fr; } }

/* 이번 주 말씀: 유튜브 설교 영상 보기 버튼 */
.ws-actions .ws-yt { background: #fff; border-color: rgba(26,58,47,.35); }
.ws-actions .ws-yt:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 선교: 카드를 딥그린 바탕 + 흰 글씨로, 아래 그림자 살짝. 왼쪽 막대 애니메이션은 그대로(색만 금색) */
#mission .mission-card {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(16,36,29,.20);
}
#mission .mission-card h4 { color: #fff; }
#mission .mission-card .m-name { color: rgba(255,255,255,.85); }
#mission .mission-card::before { background: var(--gold-logo); width: 5px; }
#mission .mission-card:hover { box-shadow: 0 16px 34px rgba(16,36,29,.30); }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.snap-page .ph-toc.is-long { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; width: min(640px, 100%); border-top: 0; }
  html.snap-page .ph-toc.is-long a:nth-child(-n+2) { border-top: 1px solid rgba(246,244,235,.3); }
}

/* ============================================================
   2026-09-29 (5차) 교회행정 — 위 메뉴줄에서 빼서 오른쪽 이름 왼편으로.
   권한을 받은 사람에게만 보이고(js/layout.js applyWorkPerms), 항목도 권한별로.
   ============================================================ */
[data-perm][hidden] { display: none !important; }
.work-menu[hidden] { display: none !important; }
@media (min-width: 761px) {
  #navAdmin { display: none !important; }            /* 컴퓨터 화면에서는 위 메뉴줄에 두지 않는다 */
  .nav-right { gap: 10px; }
  .work-menu { position: relative; display: flex; align-items: center; }
  .work-btn {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
    font-family: inherit; font-size: .85rem; font-weight: 700; color: #fff;
    background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 7px 14px 7px 12px;
    transition: background .2s ease;
  }
  .work-btn:hover, .work-menu.open .work-btn { background: #10241D; }
  .work-btn .work-ico { color: var(--gold-logo); font-size: .95em; }
  .work-btn .nav-caret { color: rgba(255,255,255,.8); margin-left: 2px; }
  .work-dropdown {
    position: absolute; top: 100%; left: 50%; padding-top: 12px; z-index: 140;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .work-menu:hover .work-dropdown, .work-menu.open .work-dropdown, .work-menu:focus-within .work-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .work-menu:hover .work-btn .nav-caret { transform: rotate(180deg); }
  .work-dropdown-inner {
    min-width: 200px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
    border-radius: 4px 4px 10px 10px; padding: 8px 18px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18);
  }
  .work-note { font-size: .74rem; color: var(--muted); padding: 4px 2px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .work-dropdown-inner a {
    display: flex; align-items: center; gap: 8px; padding: 10px 2px 8px; border-bottom: 1px solid var(--line);
    color: var(--ink); font-size: .95rem; font-weight: 500; white-space: nowrap; transition: padding .18s ease, color .18s ease;
  }
  .work-dropdown-inner a::before { content: "\203A"; color: var(--gold); font-size: 1.2em; line-height: 1; font-weight: 700; }
  .work-dropdown-inner a:hover { color: var(--accent); padding-left: 8px; font-weight: 700; }
  .auth-slot { margin-left: 0; }
}
@media (max-width: 760px) {
  .work-menu { display: none !important; }            /* 휴대폰은 햄버거 메뉴 속 '교회행정' */
}
/* 좁은 컴퓨터 화면에서는 버튼 글자를 줄인다 */
@media (min-width: 761px) and (max-width: 1180px) {
  .work-btn { font-size: .8rem; padding: 6px 11px 6px 10px; }
}

/* 주보 전체(팝업) 아래 버튼 두 개 나란히 */
.hb-ft { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 로그인하면 오른쪽에 [교회행정][이름][로그아웃]이 붙어 머리글이 붐빈다 →
   컴퓨터 화면에서는 로고 옆 '대시보드'를 빼고(이름을 누르면 나오는 칸에 대시보드가 있음), 메뉴 간격을 조금 줄인다 */
@media (min-width: 761px) {
  html.logged-in .hdr-dash-btn { display: none !important; }
  html.logged-in .nav-menu { gap: 28px; }
}
@media (min-width: 761px) and (max-width: 1380px) {
  html.logged-in .nav-inner { padding: 0 18px; column-gap: 12px; }
  html.logged-in .nav-menu { gap: 18px; }
  html.logged-in .nav-menu > .nav-item > a { font-size: .92rem; }
  html.logged-in a.auth-name { font-size: .88rem; padding: 7px 14px; white-space: nowrap; }
  html.logged-in .auth-btn { padding: 6px 13px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  html.logged-in .nav-menu { gap: 12px; }
  html.logged-in .nav-menu > .nav-item > a { font-size: .84rem; }
  html.logged-in .work-btn .work-ico { display: none; }
}
@media (min-width: 761px) and (max-width: 940px) {
  html.logged-in #header .logo-txt { display: none; }          /* 아주 좁은 화면: 로고는 마크만 */
  html.logged-in #header .logo { padding: 4px; }
  html.logged-in a.auth-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   우리 이야기 › 다음 세대 — 움직이는 그림(js/story-scene.js)
   컴퓨터: 그림이 화면 전체 배경, 왼쪽 벽 자리에 제목·주일학교 조직.
   휴대폰: 제목 → 그림(카드) → 조직 순서.
   윈도우 '애니메이션 효과'가 꺼진 컴퓨터가 많아서 prefers-reduced-motion 으로 멈추지 않는다(움직임은 느리고 잔잔함).
   ============================================================ */
.story-scene { border-radius: 18px; overflow: hidden; border: 1px solid #c9ddd3; background: #F3EFE6; line-height: 0;
  box-shadow: 0 14px 34px rgba(26,58,47,.14); }
.ng-grow { background: #fff; border: 1px solid #c9ddd3; border-radius: 18px; padding: 34px 32px; display: flex; flex-direction: column; }
.ng-grow-eyebrow { font-family: "Cormorant Garamond", serif; letter-spacing: .25em; font-size: .8rem; color: #3a7d63; }
.ng-grow h3 { font-family: "Gowun Batang", serif; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; color: #2f6f57; margin: 8px 0 18px; word-break: keep-all; }
.ng-grow p { color: var(--ink-soft); line-height: 1.85; font-weight: 400; word-break: keep-all; }
.ng-grow p + p { margin-top: 12px; }
.ng-grow .ng-grow-wait { margin: auto 0; padding: 22px; border: 1px dashed #b6d2c5; border-radius: 12px; text-align: center; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) {
  .ng-grow { padding: 26px 22px; }
}
.ng-grow[hidden] { display: none; }
.story-scene svg { display: block; width: 100%; height: auto; }
.ss-lord { font: italic 900 15px "IBM Plex Sans KR", sans-serif; text-anchor: middle; fill: url(#ssRainbow); letter-spacing: -.5px; }
.ss-letter { font: 700 25px "IBM Plex Sans KR", sans-serif; text-anchor: middle; fill: #fff; }
.ss-screen { font: 700 20px "IBM Plex Sans KR", sans-serif; text-anchor: middle; fill: #fff; }
.ss-star { font-size: 15px; text-anchor: middle; letter-spacing: 4px; }
.ss-note { font-size: 22px; fill: #3E9B4F; opacity: 0; }

@keyframes ssBreathe { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }
@keyframes ssSway { 0%,100% { transform: rotate(-2.2deg) } 50% { transform: rotate(2.2deg) } }
@keyframes ssHop { 0%,55%,100% { transform: translateY(0) } 65% { transform: translateY(-12px) } 75% { transform: translateY(0) } 82% { transform: translateY(-5px) } 90% { transform: translateY(0) } }
@keyframes ssWave { 0%,100% { transform: rotate(-16deg) } 50% { transform: rotate(18deg) } }
@keyframes ssShake { 0%,100% { transform: rotate(-6deg) } 50% { transform: rotate(8deg) } }
@keyframes ssNod { 0%,70%,100% { transform: rotate(0) } 78% { transform: rotate(6deg) } 88% { transform: rotate(-3deg) } }
@keyframes ssBlink { 0%,93%,100% { transform: scaleY(1) } 96% { transform: scaleY(.1) } }
@keyframes ssDrop { 0% { transform: translateY(-460px); opacity: 0 } 12% { opacity: 1 } 100% { transform: translateY(0); opacity: 1 } }
@keyframes ssBoxHop { 0%,88%,100% { transform: translateY(0) } 92% { transform: translateY(-10px) } 96% { transform: translateY(0) } }
@keyframes ssFall { 0% { transform: translateY(0) rotate(0) } 100% { transform: translateY(540px) rotate(540deg) } }
@keyframes ssFlag { 0%,100% { transform: rotate(-7deg) } 50% { transform: rotate(7deg) } }
@keyframes ssFan { to { transform: rotate(360deg) } }
@keyframes ssTri { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-5px) rotate(12deg) } }
@keyframes ssTwinkle { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes ssNote { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: .9 } 100% { transform: translateY(-190px); opacity: 0 } }
@keyframes ssLight { 0%,100% { opacity: .6 } 50% { opacity: 1 } }

.ss-p { transform-origin: 0 0; }
.ss-breathe { animation: ssBreathe 3.2s ease-in-out infinite; }
.ss-sway { animation: ssSway 4.4s ease-in-out infinite; }
.ss-hop { animation: ssHop 3s ease-in-out infinite; }
.ss-wave { transform-origin: 0 0; animation: ssWave .9s ease-in-out infinite; }
.ss-cheer { transform-origin: 0 0; animation: ssShake 1.2s ease-in-out infinite; }
.ss-shake { transform-origin: 0 0; animation: ssShake .7s ease-in-out infinite; }
.ss-nod { animation: ssNod 5s ease-in-out infinite; }
.ss-blink { animation: ssBlink 4.6s linear infinite; }
.ss-drop { animation: ssDrop 1s cubic-bezier(.34,1.35,.55,1) both; }
.ss-boxhop { animation: ssBoxHop 7s ease-in-out infinite; }
.ss-conf { transform-box: fill-box; transform-origin: center; animation: ssFall 8s linear infinite; }
.ss-flag { transform-origin: 0 0; animation: ssFlag 3s ease-in-out infinite; }
.ss-fan { animation: ssFan 16s linear infinite; }
.ss-tri { transform-box: fill-box; transform-origin: center; animation: ssTri 4s ease-in-out infinite; }
.ss-tri.t2 { animation-delay: -1.3s; } .ss-tri.t3 { animation-delay: -2.6s; }
.ss-stars { animation: ssTwinkle 1.6s ease-in-out infinite; }
.ss-note { animation: ssNote 8s ease-out infinite; }
.ss-lights { animation: ssLight 3s ease-in-out infinite; }
.story-scene.is-paused * { animation-play-state: paused !important; }

.ng-stage .story-scene { margin-bottom: 18px; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.snap-page .ng-stage { position: relative; overflow: hidden; background: #F2EEE4; }
  html.snap-page .ng-stage > .container { max-width: none; padding-left: 5vw; padding-right: 5vw; }
  html.snap-page .ng-stage .ng-side { width: clamp(350px, 27vw, 400px); }
  html.snap-page .ng-stage .ng-side > .block-head,
  html.snap-page .ng-stage .ng-side > .ng-box { position: relative; z-index: 1; }
  html.snap-page .ng-stage .story-scene {
    position: absolute; inset: 0; z-index: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #F2EEE4;
  }
  html.snap-page .ng-stage .story-scene svg { width: 100%; height: 100%; }
  html.snap-page .ng-stage .block-head h2 { color: #1A3A2F; }
  /* 좁은 왼쪽 자리에 맞춘 작은 조직도 */
  html.snap-page .ng-stage .ng-box { max-width: none; padding: 20px 18px 18px; background: rgba(255,255,255,.95);
    border-color: #E1D6C2; box-shadow: 0 14px 34px rgba(90,70,30,.14); }
  html.snap-page .ng-stage .ng-title { font-size: 1.02rem; padding: 7px 24px; }
  html.snap-page .ng-stage .ng-line { height: 14px; }
  html.snap-page .ng-stage .ng-staff { padding: 14px 10px 10px; }
  html.snap-page .ng-stage .ng-staff-grid { grid-template-columns: repeat(3, 1fr); gap: 8px 4px; }
  html.snap-page .ng-stage .ng-role .ng-role-name { font-size: .72rem; margin-bottom: 1px; }
  html.snap-page .ng-stage .ng-role b { font-size: .96rem; }
  html.snap-page .ng-stage .ng-role small { font-size: .74rem; }
  html.snap-page .ng-stage .ng-depts { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 0; }
  html.snap-page .ng-stage .ng-depts::before, html.snap-page .ng-stage .ng-dept::before { display: none; }
  html.snap-page .ng-stage .ng-dept { padding: 10px 8px; }
  html.snap-page .ng-stage .ng-dept h3 { font-size: 1rem; margin-bottom: 2px; }
  html.snap-page .ng-stage .ng-dept .ng-who { font-size: .8rem; }
}
/* 세로가 짧은 노트북 화면: 조직도를 더 촘촘하게(한 화면 안에) */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 800px) {
  html.snap-page .ng-stage .ng-side > .block-head { margin-bottom: 12px; }
  html.snap-page .ng-stage .ng-side > .block-head h2 { margin-top: 2px; }
  html.snap-page .ng-stage .ng-box { padding: 14px 14px 12px; }
  html.snap-page .ng-stage .ng-title { padding: 5px 22px; font-size: .96rem; }
  html.snap-page .ng-stage .ng-line { height: 8px; }
  html.snap-page .ng-stage .ng-staff { padding: 11px 8px 7px; }
  html.snap-page .ng-stage .ng-staff-grid { gap: 5px 4px; }
  html.snap-page .ng-stage .ng-role { line-height: 1.3; }
  html.snap-page .ng-stage .ng-role b { font-size: .92rem; }
  html.snap-page .ng-stage .ng-dept { padding: 7px 8px; }
  html.snap-page .ng-stage .ng-dept h3 { font-size: .95rem; }
}

/* ============================================================
   첫 화면 움직이는 그림(js/hero-walk.js) — 별 반짝임 + 아브라함이 재단까지 걸어가며 발자국
   컴퓨터 화면에서는 설교 상자를 제목 바로 아래로 올려, 화면 아래 땅을 걸어갈 길로 비워 둔다.
   ============================================================ */
.hero-sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-sky svg { display: block; width: 100%; height: 100%; }
.hero-sky.no-walker .hw-walker, .hero-sky.no-walker .hw-prints { display: none; }
.hw-walker { opacity: 0; transition: opacity .6s ease; }
@keyframes hwTwinkle { 0%,100% { opacity: .15; transform: scale(.55) } 45% { opacity: 1; transform: scale(1.12) } 60% { opacity: .8; transform: scale(.95) } }
.hw-star { animation: hwTwinkle 3s ease-in-out infinite; }
@keyframes hwPrint { from { opacity: 0 } to { opacity: .85 } }
.hw-print { fill: #1f150e; animation: hwPrint .45s ease-out both; }
@keyframes hwLegA { 0%,100% { transform: rotate(20deg) } 50% { transform: rotate(-20deg) } }
@keyframes hwLegB { 0%,100% { transform: rotate(-20deg) } 50% { transform: rotate(20deg) } }
@keyframes hwBob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-1.3px) } }
@keyframes hwStaff { 0%,100% { transform: rotate(7deg) } 50% { transform: rotate(-4deg) } }
@keyframes hwRobe { 0%,100% { transform: skewX(1.6deg) } 50% { transform: skewX(-1.6deg) } }
.hw-body.is-walking .hw-leg-a > g { animation: hwLegA 1s linear infinite; }
.hw-body.is-walking .hw-leg-b > g { animation: hwLegB 1s linear infinite; }
.hw-body.is-walking .hw-bob { animation: hwBob .5s ease-in-out infinite; }
.hw-body.is-walking .hw-staff { animation: hwStaff 1s ease-in-out infinite; }
.hw-body.is-walking .hw-robe { animation: hwRobe 1s ease-in-out infinite; }
.hw-headturn { transition: transform 1.6s ease-in-out; }
.hw-body.is-looking .hw-headturn { transform: rotate(16deg); }
.hero-sky.is-paused * { animation-play-state: paused !important; }
@media (min-width: 761px) {
  .hero-full .hero-stage { justify-content: center; padding-bottom: clamp(130px, 22vh, 260px); }
  .hero-full .hero-headline { flex: 0 0 auto; padding-bottom: 0; }
}

/* ============================================================
   글씨 키우기(2026-10) — 어르신들도 편히 읽도록 교인·방문자용 화면 전체를 12.5% 크게.
   <html class="big-text"> 가 붙은 공개 페이지에만 적용(관리용 화면은 그대로).
   거의 모든 크기가 rem 이라 기준 글씨(16px → 18px)만 바꾸면 함께 커진다.
   ============================================================ */
html.big-text { font-size: 112.5%; --hdr: 89px; }
@media (max-width: 760px) { html.big-text { --hdr: 70px; } }
/* 각 메뉴 첫 화면(초록 표지): 예전보다 약 40% 크게 */
html.big-text .page-hero .ph-eyebrow { font-size: 1.05rem; }
html.big-text .page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); }
html.big-text .page-hero > p { font-size: 1.25rem; max-width: 820px; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.big-text.snap-page .ph-toc { width: min(460px, 100%); }
  html.big-text.snap-page .ph-toc a { font-size: 1.34rem; padding: 12px 6px 10px; }
  html.big-text.snap-page .ph-toc.is-long { width: min(760px, 100%); }
}
/* 교회 안내의 교단 소속 상자는 지금 크기 그대로(목사님 말씀) */
html.big-text .ph-denom p, html.big-text .page-hero .ph-denom p { font-size: 18.4px; }
html.big-text .block-head .ph-denom.is-light p { font-size: 18.4px; }
@media (max-width: 640px) {
  html.big-text .ph-denom p, html.big-text .page-hero .ph-denom p, html.big-text .block-head .ph-denom.is-light p { font-size: 16.3px; }
}
/* 글씨가 커진 만큼 메뉴줄이 붐비는 폭에서만 메뉴 사이 간격을 줄인다(로고·오른쪽 단추와 겹치지 않게) */
@media (min-width: 1025px) and (max-width: 1340px) {
  html.big-text:not(.logged-in) .nav-menu { gap: 20px; }
}
@media (min-width: 1025px) and (max-width: 1230px) {
  html.big-text:not(.logged-in) .nav-menu { gap: 13px; }
}
@media (min-width: 1001px) and (max-width: 1210px) {
  html.big-text.logged-in .nav-menu { gap: 8px; }
}
@media (min-width: 761px) and (max-width: 990px) {
  html.big-text.logged-in #header .logo-txt { display: none; }
}
@media (min-width: 1381px) and (max-width: 1440px) {
  html.big-text.logged-in .nav-menu { gap: 22px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  html.big-text.logged-in .nav-menu { gap: 8px; }
}

/* ============================================================
   예배와 말씀 첫 화면 오른쪽 — 그 주 설교 영상 창(js/sermon-video.js)
   컴퓨터: 왼쪽 제목·차례 / 오른쪽 영상.  휴대폰·태블릿: 제목 아래 영상.
   ============================================================ */
.ph-video { width: min(620px, 100%); margin: 30px auto 0; text-align: left; }
.pv-card { background: rgba(246,244,235,.07); border: 1px solid rgba(246,244,235,.22); border-radius: 18px; padding: 16px 16px 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pv-label { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700; color: var(--cream, #F6F4EB);
  letter-spacing: .04em; }
.pv-label::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--gold-logo, #BFA06C); }
.pv-label.is-live::before { display: none; }
.pv-label.is-live i { width: 10px; height: 10px; border-radius: 50%; background: #ff4b4b; animation: liveDotPulse 1.6s infinite; }
.pv-channel { font-size: .85rem; color: rgba(246,244,235,.75); white-space: nowrap; }
.pv-channel:hover { color: #fff; }
.pv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0d1a15; }
.pv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pv-screen { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0d1a15; display: block; }
.pv-screen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s ease; }
.pv-screen:hover img { transform: scale(1.03); filter: brightness(1.05); }
.pv-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: #ff0033;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s ease; }
.pv-play::after { content: ""; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.pv-screen:hover .pv-play { transform: scale(1.08); }
.pv-screen-live { background: radial-gradient(circle at 30% 30%, #2C5244, #0d1a15 70%); }
.pv-live-txt { position: absolute; left: 7%; top: 12%; text-align: left; color: #fff; font-family: "Gowun Batang", serif; font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.35; }
.pv-info { padding: 12px 4px 0; }
.page-hero .pv-title { margin: 0; max-width: none; color: #fff; font-family: "Gowun Batang", serif; font-weight: 700; font-size: 1.3rem; line-height: 1.4; word-break: keep-all; }
.page-hero .pv-meta, .page-hero .pv-sub { margin: 4px 0 0; max-width: none; color: rgba(246,244,235,.78); font-size: .95rem; font-weight: 400; }
.pv-link { background: none; border: 0; padding: 0; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pv-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pv-chip { display: inline-flex; gap: 6px; align-items: center; max-width: 100%; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(246,244,235,.1); border: 1px solid rgba(246,244,235,.25); color: rgba(246,244,235,.92); font: inherit; font-size: .85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-chip b { color: var(--gold-logo, #BFA06C); font-weight: 700; }
.pv-chip:hover { background: rgba(246,244,235,.2); color: #fff; }
.page-hero .ph-video p { max-width: none; }

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.snap-page .page-hero.has-side {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); column-gap: 56px;
    grid-template-rows: 1fr auto auto auto auto auto 1fr; align-items: start; text-align: left;
    padding-left: max(40px, calc((100% - 1280px) / 2)); padding-right: max(40px, calc((100% - 1280px) / 2));
  }
  html.snap-page .page-hero.has-side > .ph-symbol { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 0; }
  html.snap-page .page-hero.has-side > .ph-eyebrow { grid-column: 1; grid-row: 3; }
  html.snap-page .page-hero.has-side > h1 { grid-column: 1; grid-row: 4; }
  html.snap-page .page-hero.has-side > p { grid-column: 1; grid-row: 5; margin: 0; }
  html.snap-page .page-hero.has-side > .ph-toc { grid-column: 1; grid-row: 6; margin-left: 0; }
  html.snap-page .page-hero.has-side > .ph-video { grid-column: 2; grid-row: 1 / -1; align-self: center; width: 100%; margin: 0; }
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 720px) {
  html.snap-page .page-hero.has-side .pv-card { padding: 12px 14px 14px; }
  html.snap-page .page-hero.has-side .pv-head { margin-bottom: 8px; }
  html.snap-page .page-hero.has-side .pv-chip:nth-child(n+2) { display: none; }
}
/* 세로가 짧은 컴퓨터 화면: 차례가 5~6줄인 표지는 두 칸으로(한 화면 안에) */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 800px) {
  html.big-text.snap-page .ph-toc:not(.is-long):has(> a:nth-child(5)) {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; width: min(760px, 100%); border-top: 0;
  }
  html.big-text.snap-page .ph-toc:not(.is-long):has(> a:nth-child(5)) > a:nth-child(-n+2) { border-top: 1px solid rgba(246,244,235,.3); }
  html.big-text.snap-page .page-hero h1 { margin: 6px 0 10px; }
}

/* ============================================================
   화면 옆으로 넘기기 — 위 메뉴 큰 항목 사이를 옮길 때(js/page-slide.js 가 방향을 정함)
   머리글(메뉴줄)은 제자리에 두고 아래 화면만 옆으로 지나간다.
   ============================================================ */
@view-transition { navigation: auto; }
#header { view-transition-name: site-header; }
::view-transition-group(site-header) { z-index: 10; }
@keyframes vtOutLeft  { to   { transform: translateX(-100%); } }
@keyframes vtInRight  { from { transform: translateX(100%); } }
@keyframes vtOutRight { to   { transform: translateX(100%); } }
@keyframes vtInLeft   { from { transform: translateX(-100%); } }
html:active-view-transition-type(slide-next)::view-transition-old(root) { animation: vtOutLeft .6s cubic-bezier(.65,0,.35,1) both; }
html:active-view-transition-type(slide-next)::view-transition-new(root) { animation: vtInRight .6s cubic-bezier(.65,0,.35,1) both; }
html:active-view-transition-type(slide-prev)::view-transition-old(root) { animation: vtOutRight .6s cubic-bezier(.65,0,.35,1) both; }
html:active-view-transition-type(slide-prev)::view-transition-new(root) { animation: vtInLeft .6s cubic-bezier(.65,0,.35,1) both; }
/* 휴대폰: 옆으로 밀어 다음/이전 메뉴로(js/page-slide.js) — 미는 쪽 가장자리에 갈 곳 이름 */
.swipe-pill { position: fixed; top: 50%; z-index: 1200; pointer-events: none; opacity: 0; transition: opacity .18s, background .18s, color .18s;
  padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--accent); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26,58,47,.18); font-family: "Gowun Batang", serif; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.swipe-pill.is-right { right: 12px; }
.swipe-pill.is-left { left: 12px; }
.swipe-pill.is-ready, .swipe-pill.is-go { background: var(--accent); color: #fff; border-color: var(--accent); }
.swipe-tip { position: fixed; left: 50%; bottom: 96px; z-index: 1200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .4s; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; background: rgba(26,58,47,.94); color: #fff; font-size: .92rem; line-height: 1.5;
  box-shadow: 0 10px 28px rgba(0,0,0,.22); text-align: center; word-break: keep-all; }
.swipe-tip.is-on { opacity: 1; transform: translate(-50%, 0); }
.swipe-tip-hand { display: inline-block; animation: swipeTipHand 1.4s ease-in-out infinite; }
@keyframes swipeTipHand { 0%, 100% { transform: translateX(6px); } 50% { transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { .swipe-tip-hand { animation: none; } }

/* ============================================================
   선교사님 카드(오른쪽 대표 사진) + 상세 창(js/missions.js)
   ============================================================ */
#mission .mission-card[data-mission] { cursor: pointer; padding-right: 138px; min-height: 132px; }
#mission .mission-card[data-mission]:focus-visible { outline: 3px solid var(--gold-logo); outline-offset: 3px; }
.mc-photo { position: absolute; right: 18px; top: 50%; width: 100px; height: 100px; margin-top: -50px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.mc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mission-card:hover .mc-photo img { transform: scale(1.06); }
.mc-photo svg { width: 46px; height: 46px; color: rgba(191,160,108,.55); }
.mc-more { display: inline-block; margin-top: 10px; font-size: .84rem; font-weight: 600; color: var(--gold-logo); letter-spacing: .02em; }
@media (max-width: 600px) {
  #mission .mission-card[data-mission] { padding-right: 112px; min-height: 118px; }
  .mc-photo { width: 84px; height: 84px; margin-top: -42px; right: 14px; }
}

.ms-box { max-width: 760px; padding: 34px 36px 30px; }
.ms-top { display: flex; gap: 22px; align-items: center; margin-bottom: 8px; }
.ms-hero { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 18px; overflow: hidden; background: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(16,36,29,.2); }
.ms-hero img { width: 100%; height: 100%; object-fit: cover; }
.ms-hero svg { width: 66px; height: 66px; color: rgba(191,160,108,.7); }
.ms-country { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-soft, #3a7d63); }
.ms-name { font-family: "Gowun Batang", serif; font-size: 1.8rem; color: var(--accent); margin: 2px 0 12px; }
.ms-sec { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.ms-sec h4 { font-family: "Gowun Batang", serif; font-size: 1.2rem; color: var(--accent); margin-bottom: 12px; }
.ms-intro { line-height: 1.9; color: var(--ink); word-break: keep-all; }
.ms-wait { color: var(--muted); font-size: .95rem; }
.ms-msg { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #eef6f1; color: #2f6f57; font-size: .92rem; }
.ms-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ms-gallery figure { position: relative; margin: 0; }
.ms-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.ms-gallery-sm { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 12px; }
.ms-ph-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.ms-ph-tools button { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; line-height: 1; }
.ms-ph-tools button:hover { background: var(--accent); }
.ms-report { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.ms-report summary { cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: baseline; list-style: none; }
.ms-report summary::-webkit-details-marker { display: none; }
.ms-report summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 700; }
.ms-report[open] summary::after { content: "−"; }
.ms-rdate { flex: 0 0 auto; font-size: .88rem; color: var(--accent-soft, #3a7d63); font-weight: 600; }
.ms-rtitle { font-weight: 600; color: var(--ink); }
.ms-rbody { padding: 0 16px 16px; line-height: 1.85; word-break: keep-all; color: var(--ink); }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); font: inherit; font-size: .92rem; font-weight: 600; }
.ms-btn:hover { background: #122A22; }
.ms-btn-line { background: #fff; color: var(--accent); }
.ms-btn-line:hover { background: var(--accent); color: #fff; }
.ms-btn-sm { padding: 6px 14px; font-size: .85rem; }
.ms-danger { color: #b3261e; border-color: #e3b3ae; }
.ms-edit { margin: 10px 0 12px; }
.ms-edit textarea, .ms-edit input[type="text"], .ms-edit input[type="date"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff; }
.ms-edit textarea { resize: vertical; margin-bottom: 8px; }
.ms-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ms-edit .ms-row input[type="date"] { width: 170px; flex: 0 0 auto; }
.ms-edit .ms-row input[type="text"] { flex: 1 1 200px; width: auto; }
.ms-file { display: block; margin: 4px 0; font-size: .88rem; color: var(--ink-soft); }
.ms-file input { display: block; margin-top: 4px; }
.ms-note { margin-top: 22px; font-size: .8rem; color: var(--muted); text-align: right; }
@media (max-width: 600px) {
  .ms-box { padding: 30px 20px 24px; }
  .ms-top { flex-direction: column; align-items: flex-start; }
  .ms-hero { width: 120px; height: 120px; }
}
/* 선교사 후원 문의(아직 숨김) */
.mission-support { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.mission-support[hidden] { display: none; }
.mission-support h3 { font-family: "Gowun Batang", serif; color: var(--accent); font-size: 1.25rem; }
.mission-support p { color: var(--ink-soft); margin-top: 4px; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.snap-page #mission .mission-card[data-mission] { padding: 18px 124px 18px 26px; min-height: 0; }
  html.snap-page #mission .mission-card[data-mission] h4 { margin-bottom: 4px; }
  html.snap-page #mission .mission-card[data-mission] .m-name { margin-top: 6px; }
  html.snap-page #mission .mc-more { margin-top: 6px; }
  html.snap-page #mission .mc-photo { width: 88px; height: 88px; margin-top: -44px; }
  html.snap-page #mission .mission-grid { gap: 18px; }
}

/* ============================================================
   교회 안내 다듬기(2026-10)
   ============================================================ */
/* 찾아오시는 길: 안내 단계(1·2·3)를 빼고 지도를 크게 */
.directions.dir-big { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 24px; }
.directions.dir-big .loc-map, .directions.dir-big .loc-map iframe { min-height: clamp(320px, 52vh, 520px) !important; }
.dir-tel { margin-top: 12px; font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.dir-tel a { color: inherit; }
@media (max-width: 820px) {
  .directions.dir-big { grid-template-columns: 1fr; }
  .directions.dir-big .loc-map, .directions.dir-big .loc-map iframe { min-height: 340px !important; }
}
/* 이번 주 주보: 상자를 크게, 본문 말씀을 더 많이 */
.hbb { max-width: 1180px; }
@media (min-width: 761px) { .hbb-card:has(.hbb-news) { grid-template-columns: 1.75fr 1fr; } }
.hbb-verse { font-size: 1.1rem; line-height: 1.9; padding: 16px 20px; }
.hbb-verse > span { -webkit-line-clamp: 9; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 820px) {
  .hbb-verse > span { -webkit-line-clamp: 6; }
}
@media (min-width: 1025px) {
  .hbb-card:has(.hbb-news) { grid-template-rows: 1fr auto; }
  .hbb-card:has(.hbb-news) .hbb-main { grid-row: 1 / span 2; }
  .hbb-card:has(.hbb-news) .hbb-actions { grid-column: 2; grid-row: 2; border-top: 0; background: var(--accent); padding: 4px 24px 24px; justify-content: flex-start; }
  .hbb-card:has(.hbb-news) .hbb-actions .btn-solid { background: var(--gold-logo); border-color: var(--gold-logo); color: var(--accent); }
  .hbb-card:has(.hbb-news) .hbb-actions .btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
}

/* ============================================================
   메뉴 표지의 심벌 한 획(js/ph-symbol.js) — 전체는 흐리게, 그 메뉴의 획만 금색으로 그려진다
   ============================================================ */
.ph-symbol { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 16px; padding: 5px 20px 5px 6px; border-radius: 999px;
  border: 1px solid rgba(191,160,108,.4); background: rgba(246,244,235,.05); color: var(--cream, #F6F4EB); text-decoration: none;
  transition: background .25s ease, border-color .25s ease; }
.ph-symbol:hover { background: rgba(246,244,235,.12); border-color: rgba(191,160,108,.8); }
.ph-symbol svg { width: clamp(46px, 7.5vh, 64px); height: clamp(46px, 7.5vh, 64px); flex: 0 0 auto; }
.phs-base path { stroke: rgba(246,244,235,.28); fill: none; }
.phs-base path:not(:first-child) { stroke: none; fill: rgba(246,244,235,.28); }
.phs-fill path { fill: #BFA06C; opacity: 0; animation: phsFill .9s ease 1.3s forwards; }
.phs-draw { stroke: #BFA06C; stroke-dasharray: 1; stroke-dashoffset: 1; animation: phsDraw 1.6s cubic-bezier(.45,0,.25,1) .55s forwards; }
@keyframes phsDraw { to { stroke-dashoffset: 0; } }
@keyframes phsFill { to { opacity: 1; } }
.phs-text { font-size: 1rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.phs-text b { display: inline-block; margin-right: 10px; font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 600;
  color: #BFA06C; line-height: 1; vertical-align: -2px; }
.phs-text b.is-line { width: 22px; height: 3px; border-radius: 2px; background: #BFA06C; vertical-align: middle; }
@media (max-width: 600px) {
  .ph-symbol { margin-bottom: 12px; padding-right: 16px; max-width: 100%; }
  .phs-text { font-size: .92rem; white-space: normal; text-align: left; }
}
/* 세로가 짧은 노트북 화면: 심벌이 있는 표지는 영어 작은 제목을 빼고 배지·차례를 촘촘하게(한 화면 안에) */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 720px) {
  html.snap-page .page-hero[data-symbol] > .ph-eyebrow { display: none; }
  html.snap-page .page-hero[data-symbol] > .ph-symbol { margin-bottom: 6px; }
  html.snap-page .page-hero[data-symbol] .ph-symbol svg { width: 42px; height: 42px; }
  html.big-text.snap-page .page-hero[data-symbol] .ph-toc a { padding-top: 8px; padding-bottom: 7px; }
  html.big-text.snap-page .page-hero[data-symbol] .ph-toc { margin-top: 22px; }
}

/* ============================================================
   이달의 찬양 — 오른쪽 '지나온 찬양' 목록(누르면 왼쪽에 그 달 영상·악보)
   ============================================================ */
.song-wrap.has-history { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; max-width: 1000px; margin: 0 auto; align-items: start; }
.song-wrap.has-history .song-box { width: 100%; margin: 0 auto; }
.song-history { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 12px; box-shadow: 0 6px 20px rgba(26,58,47,.06); }
.song-history h4 { font-family: "Gowun Batang", serif; font-size: 1.1rem; color: var(--accent); margin: 0 4px 10px; }
.song-history ul { list-style: none; margin: 0; padding: 0; }
.song-history li + li { border-top: 1px solid var(--line); }
.song-history button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 8px; border-radius: 10px;
  font: inherit; cursor: pointer; color: var(--ink); transition: background .2s ease; }
.song-history button:hover { background: var(--paper-alt, #f3efe6); }
.song-history button.is-on { background: #eef6f1; }
.sh-month { display: block; font-size: .82rem; color: var(--accent-soft, #3a7d63); font-weight: 600; }
.sh-month em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; }
.sh-title { display: block; margin-top: 2px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(26,58,47,.25); text-underline-offset: 3px; }
.song-history button.is-on .sh-title { text-decoration: none; color: var(--accent); }
.song-past { text-align: center; margin: 0 0 8px; font-size: .92rem; color: var(--ink-soft); }
.song-back { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 900px) {
  .song-wrap.has-history { grid-template-columns: 1fr; }
}


/* ============================================================
   2026-10-01 글꼴: 제목 Gowun Batang · 본문 IBM Plex Sans KR (둘 다 무료 SIL OFL)
   교회 이름(로고 글자)은 로고 지정 글꼴 Noto Serif KR 을 그대로 쓴다.
   ============================================================ */
.logo-kr, .logo-txt .logo-kr, .footer-brand .logo-kr, .logo-denom, .ss-name, .ss-denom { font-family: "Noto Serif KR", serif; }

/* 2026-10-01 '깊은 숲' 마무리
   - 각 화면 제목 위의 띄어 쓴 영어(ABOUT US, WORSHIP 등)는 다른 교회 사이트와 같은 틀이라 숨긴다(공개 페이지)
   - 밝은 바탕의 옛 금갈색 글자를 숲빛으로 */
html.snap-page .eyebrow2, html.snap-page .section-head .eyebrow { display: none; }
.ph-denom.is-light strong { color: var(--gold); }
@media (min-width: 1081px) and (max-width: 1180px) {
  html.logged-in .nav-menu { gap: 9px; }
  html.logged-in .nav-menu > .nav-item > a { font-size: .8rem; }
}
html.snap-page .w-en { display: none; }

/* ===== 아래에서 올라오는 말씀 창(main.js SlideSheet) — 2026-10-01 ===== */
.ss-sheet { position: fixed; inset: 0; z-index: 460; display: flex; align-items: flex-end; justify-content: center; }
.ss-sheet[hidden] { display: none; }
.ss-sheet-back { position: absolute; inset: 0; background: rgba(10,22,17,.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s ease; }
.ss-sheet-panel {
  position: relative; z-index: 1; width: min(860px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.3);
  transform: translateY(105%); transition: transform .36s cubic-bezier(.22,.8,.3,1); cursor: pointer;
}
.ss-sheet.is-open .ss-sheet-back { opacity: 1; }
.ss-sheet.is-open .ss-sheet-panel { transform: translateY(0); }
.ss-sheet-grip { width: 54px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; flex: 0 0 auto; }
.ss-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px 8px 32px; flex: 0 0 auto; }
.ss-sheet-title { font-family: "Gowun Batang", serif; font-size: 1.05rem; color: var(--gold); letter-spacing: .08em; }
.ss-sheet-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-alt); color: var(--ink-soft); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.ss-sheet-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 44px 18px; }
.ss-sheet-hint { flex: 0 0 auto; text-align: center; font-size: .82rem; color: var(--muted); padding: 10px 0 14px; border-top: 1px solid var(--line); margin: 0; }
.sv-lines { margin: 22px 0 6px; padding: 20px 24px; background: var(--paper-alt); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; }
.sv-line { font-family: "Gowun Batang", serif; font-size: 1.12rem; line-height: 1.95; color: var(--ink); word-break: keep-all; margin: 0; }
.sv-line + .sv-line { margin-top: 6px; }
.sv-line sup { font-family: "Noto Sans KR", sans-serif; font-size: .72em; font-weight: 700; color: var(--gold); margin-right: 6px; vertical-align: .35em; }
.ss-part { font-family: "Gowun Batang", serif; font-size: 1.25rem; color: var(--accent); margin: 30px 0 4px; padding-top: 22px; border-top: 1px dashed var(--line); }
.ss-sub { font-size: 1.02rem; font-weight: 700; color: var(--accent); margin: 22px 0 8px; }
.ws-body .ss-xref { font-weight: 700; color: var(--gold); margin: 14px 0 2px; font-size: .98rem; }
.ws-body .ss-xref + p { margin-top: 0; }
.ws-body .ss-q { padding: 12px 16px; background: var(--paper-alt); border-radius: 10px; margin-top: 10px; }
.ws-quote-open { cursor: pointer; transition: background .2s ease, border-color .2s ease; border-radius: 0 10px 10px 0; }
.ws-quote-open:hover, .ws-quote-open:focus-visible { background: var(--paper-alt); outline: none; }
.ws-quote-more { display: block; margin-top: 10px; font-style: normal; font-family: "Noto Sans KR", sans-serif; font-size: .85rem; font-weight: 600; color: var(--gold); }
@media (max-width: 640px) {
  .ss-sheet-panel { max-height: 92vh; border-radius: 18px 18px 0 0; }
  .ss-sheet-head { padding: 6px 12px 6px 20px; }
  .ss-sheet-body { padding: 4px 20px 16px; }
  .sv-lines { padding: 16px 16px; }
  .sv-line { font-size: 1.05rem; }
}
/* 매일 말씀 묵상: 매일성경 오늘의 본문 카드 */
.db-card .qt-card-title { margin-bottom: 6px; }
.db-hymn { margin-top: 6px; font-size: .88rem; color: var(--gold); font-weight: 600; }
.db-preview {
  margin-top: 18px; font-family: "Gowun Batang", serif; font-size: 1.02rem; line-height: 1.85; color: var(--ink-soft);
  text-align: left; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.db-preview sup { font-size: .7em; color: var(--gold); font-weight: 700; margin: 0 3px 0 2px; }
.qt-church-link {
  display: block; width: 100%; margin-top: 14px; padding: 14px 20px; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: var(--paper-alt); border: 1px solid var(--line); color: var(--accent); font-size: .95rem; font-weight: 600; text-align: center; word-break: keep-all;
}
.qt-church-link:hover { background: #fff; border-color: var(--accent-soft); }
.db-copy { margin-top: 14px; font-size: .78rem; color: var(--muted); }
.db-links { margin-top: 6px; }
/* 주보: 이번 달만 펼치고 지난 달은 글자 단추로 */
.bulletin-months { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 26px; justify-content: center; }
.bulletin-months:empty { display: none; }
.bm-label { font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.bm-link { font-family: inherit; font-size: .92rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--accent); cursor: pointer; }
.bm-link:hover { background: #fff; border-color: var(--accent-soft); }
.bm-all { color: var(--ink-soft); }
/* 우리 이야기 표지: 교회 연필 그림을 흐리게 깔기(images/church-sketch.png — 교회 사진을 연필 그림처럼 바꾼 것) */
.page-hero.ph-sketch { overflow: hidden; isolation: isolate; }
.page-hero.ph-sketch::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/church-sketch.png") no-repeat right 7% top 30% / auto 118%;
  opacity: .26;
  -webkit-mask-image: linear-gradient(to left, #000 20%, rgba(0,0,0,.55) 45%, transparent 72%);
          mask-image: linear-gradient(to left, #000 20%, rgba(0,0,0,.55) 45%, transparent 72%);
}
@media (max-width: 760px) {
  .page-hero.ph-sketch::before {
    background-position: center top 40%; background-size: auto 110%; opacity: .16;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
            mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  }
}
/* 전도회 다섯 모임 */
.block-mint .group-grid.group-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.group-grid-5 .group-card { padding: 26px 20px; }
.group-grid-5 .group-card p { font-weight: 400; word-break: keep-all; }
@media (max-width: 1100px) { .block-mint .group-grid.group-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .block-mint .group-grid.group-grid-5 { grid-template-columns: repeat(2, 1fr); } }
/* 우리들 소식: 날짜별 상자(js/home-news.js) */
#album .hn-box { max-width: 1120px; }
.hn-carousel.hn-days { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; border-radius: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hn-day { display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; font-family: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.hn-day:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(26,58,47,.12); }
.hn-day-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper-alt); }
.hn-day-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-day-count { position: absolute; right: 10px; bottom: 10px; font-style: normal; font-size: .8rem; font-weight: 700; color: #fff;
  background: rgba(16,36,29,.72); padding: 4px 10px; border-radius: 999px; }
.hn-day-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.hn-day-date { font-family: "Gowun Batang", serif; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.hn-day-date small { font-family: "Cormorant Garamond", serif; font-size: .85rem; color: var(--gold); font-weight: 600; margin-left: 4px; }
.hn-day-text b { font-size: 1rem; color: var(--ink); word-break: keep-all; }
.hn-day-cap { font-size: .88rem; color: var(--ink-soft); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-day-cat { align-self: flex-start; margin-top: 4px; font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--paper-alt); padding: 3px 10px; border-radius: 999px; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) { html.snap-page #album .hn-box { max-width: 1120px; } }
@media (max-width: 1000px) { .hn-carousel.hn-days { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hn-carousel.hn-days { gap: 12px; } .hn-day-text { padding: 12px 12px 14px; } .hn-day-date { font-size: 1.05rem; } }
/* 새가족 등록 네 단계: 글자 키우고 교회 색(깊은 초록 #1A3A2F · 금색 #BFA06C)으로 */
#newfamily .welcome-steps { gap: 18px; margin-top: 34px; }
#newfamily .welcome-step { padding: 28px 22px 26px; border: 1px solid rgba(191,160,108,.45); border-top: 4px solid #BFA06C; border-radius: 14px; background: #fff; box-shadow: 0 6px 22px rgba(26,58,47,.06); }
#newfamily .welcome-step .ws-num { display: inline-block; font-size: 1.6rem; font-weight: 600; color: #BFA06C; letter-spacing: .04em; }
#newfamily .welcome-step h4 { font-family: "Gowun Batang", serif; font-size: 1.32rem; color: #1A3A2F; margin: 8px 0 10px; }
#newfamily .welcome-step p { font-size: 1.05rem; line-height: 1.65; color: #2C5244; font-weight: 400; word-break: keep-all; }
html.big-text #newfamily .welcome-step h4 { font-size: 1.45rem; }
html.big-text #newfamily .welcome-step p { font-size: 1.12rem; }
/* 이번 주 주보 요약: 예배 순서(두 줄 칸) */
.hbb-order-title { margin: 18px 0 8px; font-family: "Gowun Batang", serif; font-weight: 700; color: var(--gold); font-size: 1rem; }
.hbb-order { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 7), auto); }
.hbb-order li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; line-height: 1.45; min-width: 0; }
.hbb-order li b { flex: 0 0 auto; min-width: 5.2em; color: var(--accent); font-weight: 700; }
.hbb-order li span { color: var(--ink-soft); word-break: keep-all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 760px) { .hbb-order { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } .hbb-order li span { white-space: normal; } }
.sv-lines .sv-line { margin: 0; }
.sv-lines .sv-line + .sv-line { margin-top: 8px; }
@media (min-width: 1025px) {
  /* 주보: 한 달(4~5주)이 한 줄에 들어오게 */
  #archive .bulletin-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  #archive .bulletin-card { padding: 22px 20px 20px; }
  #archive .bulletin-card h4 { font-size: 1.12rem; word-break: keep-all; }
  html.snap-page #archive .bulletin-list { max-height: calc(100vh - var(--hdr) - 400px); }
  html.snap-page #archive .bulletin-months { margin-top: 16px; }
}
.hn-day-img { overflow: hidden; }
.hn-day-img img { position: absolute; inset: 0; }
.hn-carousel.hn-days { align-items: start; }
.page-hero.ph-sketch::before { opacity: .2; }
@media (min-width: 1025px) {
  html.snap-page .hbb-title { font-size: clamp(1.3rem, 2vw, 1.6rem); }
  html.snap-page .hbb-order-title { margin-top: 12px; }
  html.snap-page .hbb-order li { padding: 4px 0; font-size: .92rem; }
  html.snap-page .hbb-top { margin-bottom: 12px; }
}

/* ===== 2026-10-01 오후: 표지 그림 자리 ===== */
/* 우리 이야기 표지: 연필 그림을 왼쪽으로(오른쪽에 두니 기울어 보인다는 말씀) */
.page-hero.ph-sketch::before {
  background-position: left 6% top 30%;
  -webkit-mask-image: linear-gradient(to right, #000 20%, rgba(0,0,0,.55) 45%, transparent 72%);
          mask-image: linear-gradient(to right, #000 20%, rgba(0,0,0,.55) 45%, transparent 72%);
}
@media (max-width: 760px) {
  .page-hero.ph-sketch::before {
    background-position: center top 40%;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
            mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  }
}
/* 교회 안내 표지: 종탑·십자가·'노진교회'를 연필로 스케치한 그림(js/spire-sketch.js 가 svg.ph-spire 로 그려 넣음)
   — 사진이 아니라 선으로 그려서 화면을 키워도 깨지지 않는다. 글은 왼쪽, 그림은 오른쪽. */
.page-hero.ph-spire-hero { overflow: hidden; isolation: isolate; }
.ph-spire { position: absolute; z-index: -1; pointer-events: none; right: 0; bottom: 0;
  width: 52vw; height: calc(100% - var(--hdr) - 4px); overflow: visible;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%); mask-image: linear-gradient(to right, transparent 0%, #000 18%); }
.ph-spire .sp-drift { animation: spDrift var(--d, 24s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.ph-spire .sp-glow { animation: spGlow 5s ease-in-out infinite alternate; }
.ph-spire .sp-rays { opacity: .6; transform-box: view-box; transform-origin: 450px 119px; animation: spRays 16s ease-in-out infinite alternate; }
/* 연필 스케치(js/spire-sketch.js 가 그림): 크림색 연필 선, 처음 볼 때 그려 나가는 모습 */
.ph-spire .sk { fill: none; stroke: #F6F4EB; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; }
.ph-spire.is-drawing .sk { animation: skDraw var(--u, .4s) ease-out var(--t, 0s) both; }
.ph-spire.is-drawing .sk-fade { animation: skFade .9s ease var(--t, 0s) both; }
.ph-spire .sk-crossfill { fill: #F6F4EB; opacity: .5; }
.ph-spire .sk-letter { font-family: "Gowun Batang", serif; font-weight: 700; fill: #F6F4EB; text-anchor: middle; dominant-baseline: central; }
.ph-spire .sk-letter-o { font-family: "Gowun Batang", serif; font-weight: 700; fill: none; stroke: #F6F4EB; stroke-opacity: .35; stroke-width: 1px; text-anchor: middle; dominant-baseline: central; }
.ph-spire .sk-glow { animation: spGlow 5s ease-in-out infinite alternate; }
.ph-spire.is-drawing .sk-glow { animation: skFade 1.2s ease 2.6s both, spGlow 5s ease-in-out 3.8s infinite alternate; }
.ph-spire .sk-star { animation: spTw 3.4s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes skDraw { from { stroke-dashoffset: 1.001; } to { stroke-dashoffset: 0; } }
@keyframes skFade { from { opacity: 0; } }
@keyframes spTw { from { opacity: .25; } to { opacity: .9; } }
@keyframes spDrift { from { transform: translateX(-16px); } to { transform: translateX(16px); } }
@keyframes spGlow { from { opacity: .6; } to { opacity: 1; } }
@keyframes spRays { from { transform: rotate(-3deg); opacity: .35; } to { transform: rotate(3deg); opacity: .7; } }
@media (min-width: 1025px) {
  /* 글과 그림을 화면 가운데를 사이에 두고 붙여 둔다 — 그림 크기는 화면 높이를 따르므로 거리도 높이(vh)로 잡아서
     넓은 모니터에서도 1366×768 화면과 같은 간격으로 보인다. 글 묶음 가운데 = 가운데-25vh, 종탑 = 가운데+43vh */
  html .page-hero.ph-spire-hero, html.snap-page .page-hero.ph-spire-hero {
    padding-left: 3vw; padding-right: calc(3vw + 2 * min(25vh, 22vw)); }
  .ph-spire { right: auto; left: calc(50% + min(43vh, 36vw)); width: auto; aspect-ratio: 900 / 1110; transform: translateX(-50%);
    -webkit-mask-image: none; mask-image: none; }
  html.snap-page .page-hero.ph-spire-hero .ph-toc { width: min(560px, 100%) !important; column-gap: 24px; }
}
@media (max-width: 1024px) {
  .ph-spire { right: -30vw; width: 86vw; height: calc(100% - var(--hdr) - 10px); opacity: .32; -webkit-mask-image: none; mask-image: none; }
}

/* ===== 섬기는 사람들: 원로목사 · 담임목사 · 시무장로 세 칸 (2026-10-02) ===== */
.sv-tabs { display: flex; justify-content: center; gap: 34px; margin: 0 auto 34px; border-bottom: 1px solid var(--line); }
.sv-tab { background: none; border: 0; padding: 10px 2px 14px; font: inherit; font-size: 1.05rem; color: var(--muted); cursor: pointer; position: relative; }
.sv-tab:hover { color: var(--ink); }
.sv-tab.is-on { color: var(--ink); font-weight: 700; }
.sv-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--accent); }
.sv-panel { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; align-items: start;
  background: var(--bg); border-radius: 12px; padding: 44px 46px; }
.sv-panel[hidden] { display: none; }
.sv-photo { position: relative; margin: 0; padding: 0 0 18px 18px; }
.sv-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 88%; height: 88%; background: var(--paper-alt); border-radius: 4px; }
.sv-photo img, .sv-ph { position: relative; display: block; width: 100%; height: auto; border-radius: 4px; }  /* 단체 사진이라 사진 비율 그대로 */
.sv-ph { aspect-ratio: 4 / 5; }
.sv-ph { display: flex; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px dashed var(--line);
  color: var(--muted); font-size: .9rem; line-height: 1.6; }
.sv-role { display: block; color: var(--gold); font-size: .95rem; margin-bottom: 6px; }
.sv-name { font-family: "Gowun Batang", serif; font-size: 1.5rem; font-weight: 400; color: var(--ink); margin: 0 0 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sv-name b { font-size: 2.1rem; font-weight: 700; margin-right: -6px; }
/* 원로목사 칸: 두 분 이름을 한 줄에(신동열 원로목사 · 최장자 원로사모). 사람마다 끊기지 않게 */
.sv-pp { white-space: nowrap; }
.sv-name:has(.sv-pp) { font-size: 1.22rem; gap: 6px 12px; flex-wrap: nowrap; }
.sv-pp b { margin-right: 0; font-size: 1.75rem; }
.sv-dot { color: var(--gold); font-weight: 700; }
.sv-link { font: inherit; font-family: "IBM Plex Sans KR", sans-serif; font-size: .85rem; color: var(--accent); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background .2s, color .2s; }
.sv-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sv-sub { display: inline-block; font-size: 1rem; color: var(--gold); padding-bottom: 6px; border-bottom: 2px solid var(--gold); margin: 0 0 16px; }
.sv-text p { color: var(--ink-soft); line-height: 1.9; margin: 0 0 12px; }
.sv-text .sv-wait { color: var(--muted); font-size: .92rem; }
.sv-text .sv-lead { font-family: "Gowun Batang", serif; font-size: 1.3rem; color: var(--ink); line-height: 1.6; }
.sv-text .sv-sign { margin: 26px 0 0; text-align: right; font-family: "Gowun Batang", serif; color: var(--ink); line-height: 1.8; }
@media (max-width: 760px) {
  .sv-tabs { gap: 20px; }
  .sv-tab { font-size: .98rem; }
  .sv-panel { grid-template-columns: 1fr; gap: 26px; padding: 26px 18px; }
  .sv-photo { width: 100%; max-width: 320px; margin: 0 auto; }
  .sv-name b { font-size: 1.75rem; }
  .sv-name:has(.sv-pp) { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 1.3rem; }
  .sv-pp b { font-size: 1.75rem; }  /* 폰: 두 분을 위아래 두 줄로 */
  .sv-dot { display: none; }
}
/* 넷째 칸 '함께 섬기는 분들'은 명단이라 한 단으로 */
.sv-panel.sv-panel-list { display: block; }
.sv-panel.sv-panel-list[hidden] { display: none; }
.sv-panel-list .servant-subgroup.sv-first { margin-top: 0; }
@media (max-width: 760px) { .sv-tabs { gap: 14px; } .sv-tab { font-size: .9rem; } }

/* 예배 순서의 교독문·사도신경·성경봉독 줄 — 누르면 전문이 아래에서 올라온다(js/worship-view.js).
   '보기 ›'는 눈에 띄게 주황색(목사님 요청) */
li.is-wv { cursor: pointer; }
li.is-wv:hover { color: var(--accent); }
li.is-wv .wv-more { display: inline-block; font-style: normal; font-size: .8em; font-weight: 700; color: #fff;
  background: #E8731A; border-radius: 999px; padding: 1px 8px 2px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
li.is-wv:hover .wv-more { background: #C95F0E; }
/* 성경봉독 줄: '보기'와 '인용구절 보기' 두 단추 — 휴대폰에서는 위아래로 */
li.is-wv .wv-btns { display: inline-flex; flex-wrap: wrap; gap: 5px; font-style: normal; flex: none; }
li.is-wv .wv-btns .wv-more { margin-left: 0; }
li.is-wv .wv-btns { margin-left: 6px; }
li.is-wv .wv-xref { background: var(--accent); }
li.is-wv .wv-xref:hover { background: #10241D; }
/* 찬송가 줄: 깊은 파랑 '♪ 악보' (주황 '보기'와 구분) */
li.is-wv.is-hymn .wv-more { background: #2B5C9E; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); letter-spacing: .02em; }
li.is-wv.is-hymn:hover .wv-more { background: #1F4677; }
li.is-wv.is-hymn:hover { color: #1F4677; }
@media (max-width: 760px) {
  li.is-wv .wv-btns { flex-direction: column; align-items: flex-start; }
  /* 폰: 단추는 순서 이름 아래에 두고, 내용은 오른쪽 넓은 칸에 가운데 맞춤 — 줄도 조금 넉넉하게(2026-10-03) */
  .hbb-order li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); grid-template-areas: "b s" "k s";
    column-gap: 12px; row-gap: 6px; align-items: start; padding: 11px 0; line-height: 1.55; }
  .hbb-order li b { grid-area: b; min-width: 0; }
  .hbb-order li span { grid-area: s; align-self: center; }
  .hbb-order li .wv-btns { grid-area: k; margin: 0; gap: 5px; }
  .hbb-order li .wv-more { margin: 0; }
}
.xr-item { padding: 10px 0; border-bottom: 1px dashed rgba(26,58,47,.15); }
.xr-item .vref-head { margin: 0 0 4px; font-weight: 700; color: #C95F0E; font-size: .95rem; }
.xr-item .sv-line { margin: 0; font-family: "Gowun Batang", serif; font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
/* 글 속 성경 장절(롬 8:17 등) — 누르면 그 아래에 본문이 펼쳐진다 */
button.vref { font: inherit; color: #C95F0E; font-weight: 700; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
button.vref[aria-expanded="true"] { text-decoration-style: solid; }
.vref-box { margin: 6px 0 14px; padding: 12px 14px; background: #FFF6EC; border-left: 3px solid #E8731A; border-radius: 0 8px 8px 0; }
.vref-box .vref-head { margin: 0 0 6px; font-weight: 700; color: #C95F0E; font-size: .92rem; }
.vref-box .vref-head small { font-weight: 400; color: var(--muted); margin-left: 4px; }
/* 새찬송가 악보(정회원 전용, js/worship-view.js) */
.hy-fig { margin: 0 auto 10px; max-width: 640px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.hy-img { display: block; width: 100%; height: auto; }
.hy-msg { text-align: center; color: var(--ink-soft); line-height: 1.8; margin: 18px 0 6px; word-break: keep-all; }
.hy-msg .hy-login { font: inherit; font-size: .95rem; font-weight: 700; padding: 8px 20px; cursor: pointer; border: 0; border-radius: 999px; background: #E8731A; color: #fff; }
.vref-box .sv-lines { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.vref-box .sv-line { font-size: 1.02rem; line-height: 1.7; }
.vref-box .sv-line + .sv-line { margin-top: 4px; }
.cr-body p { margin: 0 0 8px; font-family: "Gowun Batang", serif; font-size: 1.1rem; line-height: 1.75; color: var(--ink); }
.gd-body { font-family: "Gowun Batang", serif; font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.gd-line { display: flex; gap: 12px; margin: 0; padding: 7px 0; border-bottom: 1px dashed rgba(26,58,47,.12); }
.gd-role { flex: 0 0 3.2em; padding-top: .15em; font-family: "IBM Plex Sans KR", sans-serif; font-size: .78rem;
  color: var(--muted); letter-spacing: .02em; }
.gd-people { font-weight: 700; color: var(--accent); }
.gd-all { font-weight: 700; color: var(--accent); background: var(--paper-alt); border-radius: 8px; padding: 9px 10px; border-bottom: 0; margin-top: 6px; }
.gd-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }

/* 찾아오시는 길: 주소 아래 대표 전화 */
.block-head p.dir-addr { line-height: 1.75; }
.dir-addr-tel { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ============================================================
   선교와 사역 — 연필로 그린 그림(js/world-sketch.js) 2026-10-02
   ① 표지의 하트 한 획  ② 선교: 세계 지도 + 지역 가까이 놓인 카드  ③ 연합사역: 화성시 지도
   밝은 바탕에서는 깊은 초록 연필 선, 짙은 초록 표지에서는 금색 연필 선.
   ============================================================ */
.msk .sk { fill: none; stroke: #1A3A2F; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; }
.msk.is-drawing .sk { animation: skDraw var(--u, .4s) ease-out var(--t, 0s) both; }
.msk.is-drawing .sk-fade { animation: skFade .8s ease var(--t, 0s) both; }
.mm-pin .mm-dot { fill: #1A3A2F; stroke: #fff; stroke-width: .14; }
.mm-pin .mm-pulse { fill: none; stroke: #3F7A5E; stroke-width: .12; transform-box: fill-box; transform-origin: center; animation: mmPulse 2.6s ease-out infinite; }
.mm-pin.is-home .mm-dot { fill: #BFA06C; stroke: #1A3A2F; }
@keyframes mmPulse { from { transform: scale(.35); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* ① 표지: 하트 한 획 */
.page-hero.ph-heart-hero { overflow: hidden; isolation: isolate; }
.ph-heart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.ph-heart .sk { stroke: #BFA06C; }
@media (min-width: 1025px) {
  /* 교회 안내 표지와 같은 짜임: 글은 왼쪽, 그림은 오른쪽 */
  html .page-hero.ph-heart-hero, html.snap-page .page-hero.ph-heart-hero {
    padding-left: 3vw; padding-right: calc(3vw + 2 * min(25vh, 22vw)); }
}
@media (max-width: 1024px) { .ph-heart { opacity: .42; } }

/* ② 선교: 머리글(제목 · 안내 글 · 후원 안내) */
.block-head.mm-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 34px; }
.mm-head .mm-lead, .mm-head .mm-support { margin: 0; }
.mm-head .mm-support { margin-left: auto; padding: 8px 0 8px 16px; border-left: 3px solid var(--gold); color: var(--accent); font-weight: 500; word-break: keep-all; }
@media (max-width: 760px) { .mm-head .mm-support { margin-left: 0; } }
/* 세계 지도 */
.mm-stage { position: relative; }
.mm-map { display: block; width: 100%; height: auto; overflow: hidden; }
.mm-arcs .sk { stroke: #3F7A5E; }
.mm-leads { display: none; }
.mm-leads .sk { stroke: #1A3A2F; }
.mm-end { fill: #1A3A2F; }
.mm-home { font-family: "Gowun Batang", serif; font-weight: 700; font-size: 1.3px; fill: #1A3A2F; text-anchor: end; paint-order: stroke; stroke: #fff; stroke-width: .28px; stroke-linejoin: round; }
@media (max-width: 1024px) {
  .mm-stage .mm-map { margin: -6px auto 18px; max-width: 720px; }
  .mm-home { font-size: 1.7px; }
}
@media (min-width: 1025px) {
  /* 지도 크기: 화면 높이에 맞추되(한 화면에 들어오게) 가로 96% 를 넘지 않는다. --mu = 지도 가로의 1/107 */
  #mission { --mmw: min(96vw, calc((100vh - var(--hdr) - 172px) * 2.887)); --mu: calc(var(--mmw) / 107); overflow: hidden; }
  #mission > .container { max-width: none; width: var(--mmw); padding: 0; }
  html.snap-page #mission .block-head.mm-head { margin-bottom: 12px; }
  .mm-stage { width: var(--mmw); height: calc(var(--mu) * 37.06); margin: 0 auto; }
  .mm-stage .mm-map { position: absolute; inset: 0; width: 100%; height: 100%; }
  .mm-leads { display: inline; }
  .mm-stage .mission-grid { position: absolute; inset: 0; display: block; }
  #mission .mm-stage .mission-card.on-map, html.snap-page #mission .mm-stage .mission-card.on-map {
    position: absolute; left: calc(var(--x) * var(--mu)); top: calc(var(--y) * var(--mu));
    width: calc(17 * var(--mu)); height: calc(6 * var(--mu)); min-height: 0;
    padding: 0 calc(5.4 * var(--mu)) 0 calc(1.3 * var(--mu)); border-radius: calc(.75 * var(--mu));
    display: flex; flex-direction: column; justify-content: center;
  }
  #mission .mm-stage .on-map h4, html.snap-page #mission .mm-stage .on-map h4 { font-size: calc(1.5 * var(--mu)); line-height: 1.25; margin: 0; white-space: nowrap; }
  #mission .mm-stage .on-map .m-name, html.snap-page #mission .mm-stage .on-map .m-name { font-size: calc(1.14 * var(--mu)); line-height: 1.3; margin-top: calc(.12 * var(--mu)); white-space: nowrap; }
  #mission .mm-stage .on-map .mc-more, html.snap-page #mission .mm-stage .on-map .mc-more { font-size: calc(.9 * var(--mu)); line-height: 1.3; margin-top: calc(.12 * var(--mu)); }
  #mission .mm-stage .on-map .mc-photo, html.snap-page #mission .mm-stage .on-map .mc-photo {
    width: calc(4.4 * var(--mu)); height: calc(4.4 * var(--mu)); margin-top: calc(-2.2 * var(--mu)); right: calc(.8 * var(--mu)); border-radius: calc(.7 * var(--mu)); }
  #mission .mm-stage .on-map .mc-photo svg { width: 52%; height: 52%; }
}

/* ③ 연합사역: 화성시 지도 */
.local-map { max-width: 560px; margin: 0 auto 26px; }
.hs-map { display: block; width: 100%; height: auto; overflow: visible; }
.hs-map text { font-family: "Gowun Batang", serif; fill: #1A3A2F; paint-order: stroke; stroke: var(--paper-alt); stroke-width: .9px; stroke-linejoin: round; }
.hs-city { font-size: 6.4px; font-weight: 700; letter-spacing: .3em; opacity: .5; text-anchor: middle; }
.hs-emd { font-size: 3.5px; font-weight: 700; text-anchor: middle; }
.hs-church { font-size: 4.3px; font-weight: 700; }
.hs-map .mm-pin .mm-dot { stroke-width: .4; }
.hs-map .mm-pin .mm-pulse { stroke-width: .35; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html.snap-page #local > .container > .block-head { grid-column: 1 / 3; align-self: end; }
  html.snap-page #local .local-map { grid-column: 3; grid-row: 1 / span 2; align-self: center; max-width: none; width: 100%; margin: 0; }
  /* 화성시 지도를 크게(목사님 요청): 이 화면만 폭을 넓히고 지도 칸을 카드 칸의 두 배 가까이로 */
  html.snap-page #local > .container { max-width: min(96vw, 1560px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.85fr); }
}

/* 행정 표지: 종이 위에 펜으로 글씨를 써 내려가는 연필 그림(js/office-sketch.js) — 짜임은 교회 안내 표지(종탑)와 같다 */
.page-hero.ph-pen-hero { overflow: hidden; isolation: isolate; }
.ph-pen { position: absolute; z-index: -1; pointer-events: none; right: 0; bottom: 0;
  width: 52vw; height: calc(100% - var(--hdr) - 4px); overflow: visible; }
.ph-pen .sk { stroke: #F6F4EB; }
.ph-pen .pen-sheet { fill: #F6F4EB; opacity: .07; }
.ph-pen .pen-text { font-family: "Nanum Pen Script", "Gowun Batang", cursive; fill: #F6F4EB; }
.ph-pen .pen-steam { animation: spDrift 7s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@media (min-width: 1025px) {
  html .page-hero.ph-pen-hero, html.snap-page .page-hero.ph-pen-hero {
    padding-left: 3vw; padding-right: calc(3vw + 2 * min(25vh, 22vw)); }
  .ph-pen { right: auto; left: calc(50% + min(43vh, 36vw)); width: auto; aspect-ratio: 900 / 1000; transform: translateX(-50%); }
  html.snap-page .page-hero.ph-pen-hero .ph-toc { width: min(560px, 100%) !important; column-gap: 24px; }
}
@media (max-width: 1024px) {
  .ph-pen { right: -26vw; width: 90vw; height: calc(100% - var(--hdr) - 10px); opacity: .3; }
}

/* ============================================================
   글씨 크기 '가+' · 홈페이지 사용법 (2026-10-05 목사님: 어르신들이 휴대폰으로 처음 들어오셨을 때)
   ============================================================ */
html.big-text.ts-l { font-size: 125%; }
html.big-text.ts-xl { font-size: 137.5%; }
.ts-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 46px; padding: 0 10px;
  border-radius: 18px; border: 1px solid var(--accent-soft); background: #fff; color: var(--accent);
  font-family: "Gowun Batang", serif; font-weight: 700; font-size: 17px; line-height: 1; cursor: pointer; }
.ts-btn span { font-size: 14px; margin-left: 1px; }
.ts-btn:hover { background: var(--paper-alt); }
.nav-help { display: none; }
@media (max-width: 760px) {
  .nav-right { gap: 12px; }
  .nav-help { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
    padding: 16px 0; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--accent); cursor: pointer; }
}
.modal.site-guide { z-index: 3250; }
.modal-box.sg-box { max-width: 420px; text-align: center; padding: 34px 24px 24px; }
.sg-eyebrow { font-size: .85rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.sg-eyebrow span { color: var(--muted); font-weight: 600; margin-left: 6px; }
.sg-ill { height: 150px; display: flex; align-items: center; justify-content: center; margin: 12px 0 8px; }
.sg-title { font-family: "Gowun Batang", serif; font-size: 1.5rem; color: var(--accent); margin: 4px 0 10px; word-break: keep-all; }
.sg-desc { font-size: 1.08rem; line-height: 1.75; color: var(--ink); word-break: keep-all; }
.sg-sub { margin-top: 10px; font-size: .95rem; line-height: 1.7; color: var(--ink-soft); background: var(--paper-alt); border-radius: 10px; padding: 9px 12px; word-break: keep-all; }
.sg-sub:empty { display: none; }
.sg-dots { display: flex; gap: 8px; justify-content: center; margin: 18px 0 14px; }
.sg-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sg-dots i.on { background: var(--accent); }
.sg-nav { display: flex; gap: 10px; }
.sg-nav .btn { flex: 1; padding: 13px 10px; font-size: 1.02rem; }
.sg-nav .btn[hidden] { display: none; }
.sg-again { margin-top: 12px; font-size: .86rem; line-height: 1.6; color: var(--ink-soft); word-break: keep-all; }
.sg-again[hidden] { display: none; }
/* 그림: 옆으로 밀기 · 메뉴 · 뒤로 · 가+ */
.sg-swipe { position: relative; width: 120px; height: 140px; border: 3px solid var(--accent); border-radius: 18px; background: #fff; }
.sg-swipe::before, .sg-swipe::after { content: "‹"; position: absolute; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--gold); }
.sg-swipe::before { left: 8px; }
.sg-swipe::after { content: "›"; right: 8px; }
.sg-hand { position: absolute; top: 46px; left: 62px; font-size: 2.6rem; line-height: 1; animation: sgSwipe 1.8s ease-in-out infinite; }
@keyframes sgSwipe { 0% { transform: translateX(10px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(-46px); opacity: 1; } 100% { transform: translateX(-46px); opacity: 0; } }
.sg-bar { display: flex; align-items: center; gap: 10px; width: min(260px, 100%); padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(26,58,47,.12); }
.sg-bar b { flex: 1; text-align: left; font-family: "Gowun Batang", serif; color: var(--accent); letter-spacing: .2em; white-space: nowrap; }
.sg-bar i { font-style: normal; font-weight: 700; color: var(--accent); border: 1px solid var(--accent-soft); border-radius: 16px; padding: 3px 8px; }
.sg-bar em { font-style: normal; font-size: 1.7rem; line-height: 1; color: var(--ink); animation: sgPulse 1.4s ease-in-out infinite; }
.sg-back { font-size: 3.4rem; line-height: 1; color: var(--accent); animation: sgPulse 1.4s ease-in-out infinite; }
.sg-ts { font-family: "Gowun Batang", serif; font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--accent); animation: sgPulse 1.6s ease-in-out infinite; }
.sg-ts sup { font-size: .5em; }
@keyframes sgPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .sg-hand, .sg-bar em, .sg-back, .sg-ts { animation: none; } }

/* ===== 수요기도회 말씀 — 인용 구절·설교 요약 (2026-10-05, js/wed-notes.js) =====
   예배와 말씀 '이번 주 말씀' 아래 카드 + 크게 읽는 창(휴대폰에선 화면 가득). 글씨는 rem 이라 '가+'를 따른다. */
.wed-wrap { max-width: 760px; margin: 40px auto 0; scroll-margin-top: 24px; }   /* html 의 scroll-padding-top(72px)에 더해 머리글 아래로 */
.wed-head { display: flex; align-items: center; gap: 12px; font-family: "Gowun Batang", serif; font-size: 1.3rem; color: var(--accent); margin: 0 0 14px; }
.wed-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wed-card .wed-series { margin-top: 6px; color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.wed-card .ws-title { margin-top: 4px; }
.wed-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.wed-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 12px 10px; border-radius: 14px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 1.08rem; font-weight: 700; cursor: pointer; word-break: keep-all; }
.wed-btn b { background: rgba(255,255,255,.22); border-radius: 999px; padding: 0 9px; font-size: .92em; }
.wed-btn span { white-space: nowrap; }
.wed-btn-2 { background: #fff; color: var(--accent); }
.wed-btn-2 b { background: var(--paper-alt); }
.wed-btn:hover { filter: brightness(1.08); }
.wed-link { display: inline-block; margin-top: 14px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.wed-hint { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: .92rem; word-break: keep-all; }
.wed-empty { padding: 24px 16px; text-align: center; color: var(--ink-soft); line-height: 1.8; border: 1px dashed var(--line); border-radius: 14px; background: #fff; word-break: keep-all; }
.wed-locked { background: #fff; }
.wed-past { margin-top: 14px; padding: 2px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wed-past summary { padding: 13px 0; cursor: pointer; font-weight: 700; color: var(--accent); }
.wed-past summary span { margin-left: 6px; font-weight: 500; color: var(--ink-soft); font-size: .88rem; }
.wed-past ul { list-style: none; margin: 0 0 8px; padding: 0; }
.wed-past li + li { border-top: 1px solid var(--line); }
.wed-past li button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 12px 0; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.wed-past .wp-d { flex: none; min-width: 2.8em; font-weight: 700; color: var(--gold); }
.wed-past .wp-t b { display: block; font-weight: 600; word-break: keep-all; }
.wed-past .wp-t small { display: block; margin-top: 2px; font-size: .82rem; color: var(--ink-soft); }
.wed-admin { margin-bottom: 14px; padding: 14px 18px; border: 2px dashed #C9A227; border-radius: 14px; background: #FFFBEA; }
.wed-admin-tag { font-size: .8rem; font-weight: 800; color: #7A5F00; letter-spacing: .04em; }
.wed-admin-t { margin-top: 4px; font-size: 1.02rem; color: var(--ink); word-break: keep-all; }
.wed-admin-s { margin-top: 2px; font-size: .9rem; color: #7A5F00; }
.wed-admin-btns, .wr-admin-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wed-admin-btns .btn, .wr-admin-btns .btn { padding: 9px 18px; font-size: .9rem; }
/* 크게 읽는 창 */
.modal.wed-reader { z-index: 3150; padding: 16px; }
.modal-box.wed-box { display: flex; flex-direction: column; max-width: 760px; max-height: 92vh; padding: 0; overflow: hidden; }
.wed-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 22px; border-bottom: 1px solid var(--line); }
.wed-top-tx { flex: 1; min-width: 0; }
.wed-top-d { display: block; font-size: .82rem; font-weight: 700; color: var(--gold); }
.wed-top-tx b { display: block; font-family: "Gowun Batang", serif; font-size: 1.15rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wed-x { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--paper-alt); color: var(--accent); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.wed-tabs { flex: none; display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.wed-tabs:empty { display: none; }
.wed-tabs button { flex: none; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .92rem; font-weight: 700; color: var(--accent); cursor: pointer; }
.wed-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 18px 26px 34px; }
.wr-head .wr-series { font-size: .9rem; font-weight: 700; color: var(--gold); }
.wr-title { margin: 4px 0; font-family: "Gowun Batang", serif; font-size: 1.55rem; line-height: 1.45; color: var(--ink); word-break: keep-all; }
.wr-ref { font-weight: 600; color: var(--accent); }
.wr-sec { margin-top: 28px; }
.wr-h { margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--paper-alt); font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.wr-h small { margin-left: 6px; font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.wr-lines { margin: 0; padding: 14px 18px; }
.wr-verses { list-style: none; margin: 0; padding: 0; }
.wr-v + .wr-v { margin-top: 16px; }
.wr-v-ref { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 800; color: var(--accent); }
.wr-no { font-size: 1.3rem; line-height: 1; color: var(--gold); }
.wr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wr-chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .92rem; color: var(--accent); cursor: pointer; }
.wr-chip[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.wr-ment-box { margin-top: 10px; }
.wr-ment-box[hidden] { display: none; }
.wr-ment-ref { margin-bottom: 6px; font-weight: 800; color: var(--accent); }
.wr-q { padding: 14px 18px; border-radius: 12px; background: var(--paper-alt); font-family: "Gowun Batang", serif; font-size: 1.1rem; line-height: 1.8; color: var(--ink); word-break: keep-all; }
.wr-q span { display: block; margin-bottom: 2px; font-family: "IBM Plex Sans KR", sans-serif; font-size: .8rem; font-weight: 800; color: var(--gold); }
.wr-pt { margin-top: 18px; }
.wr-pt-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wr-pt-h b { font-size: 1.06rem; color: var(--ink); word-break: keep-all; }
.wr-pill { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 6px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; vertical-align: 2px; }
.wr-pt-h .wr-pill { margin-right: 0; }
.wr-pt-x { margin-top: 6px; font-size: 1.04rem; line-height: 1.9; color: var(--ink); word-break: keep-all; }
.wr-one { margin-top: 22px; padding: 14px 18px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: #F2F7F3; }
.wr-one span { font-size: .8rem; font-weight: 800; color: var(--gold); }
.wr-one p { margin-top: 4px; font-family: "Gowun Batang", serif; font-size: 1.2rem; line-height: 1.7; color: var(--accent); word-break: keep-all; }
.wr-pr { margin-top: 12px; font-size: 1.04rem; line-height: 1.85; color: var(--ink); word-break: keep-all; }
.wr-next { margin-top: 26px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .95rem; line-height: 1.8; color: var(--ink-soft); word-break: keep-all; }
.wr-next b { margin-right: 8px; color: var(--accent); }
.wr-admin { margin-bottom: 16px; padding: 12px 16px; border: 2px dashed #C9A227; border-radius: 12px; background: #FFFBEA; font-size: .92rem; color: #5C4800; word-break: keep-all; }
.wr-edit { display: grid; gap: 14px; }
.wr-edit-note { font-size: .9rem; color: var(--ink-soft); word-break: keep-all; }
.wr-edit label { display: grid; gap: 6px; font-weight: 700; color: var(--accent); font-size: .95rem; }
.wr-edit label small { font-weight: 500; color: var(--ink-soft); }
.wr-edit input, .wr-edit textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff; }
.wr-edit textarea { line-height: 1.7; resize: vertical; }
.wr-edit-pt { display: grid; gap: 8px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.wr-edit-pt legend { padding: 0 6px; font-size: .88rem; font-weight: 700; color: var(--gold); }
.wr-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.wr-edit-row input:only-child { grid-column: 1 / -1; }
.wr-edit-msg { min-height: 1.4em; font-size: .9rem; color: #A33; }
.wr-edit-btns { display: flex; gap: 8px; }
.hero-sermon-banner.is-wed .hsb-label { background: #C9A227; color: #1f1f1f; }
@media (max-width: 680px) {
  .modal.wed-reader { padding: 0; }
  .modal-box.wed-box { max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; animation: none; }
  .wed-body { padding: 14px 16px 44px; }
  .wed-btns { grid-template-columns: minmax(0, 1fr); }   /* 휴대폰: 큰 단추를 위아래로 */
  .wr-title { font-size: 1.35rem; }
}

/* 수요기도회 말씀 — 짧게(핵심 3가지) + 찬양 악보 (2026-10-05 밤 목사님 고침, js/wed-notes.js) */
.wed-points, .wr-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.wed-points li, .wr-points li { display: flex; align-items: baseline; gap: 10px; font-size: 1.06rem; line-height: 1.7; color: var(--ink); word-break: keep-all; }
.wed-points li .wr-pill, .wr-points li .wr-pill { flex: none; margin: 0; }
.wr-points { margin-top: 4px; }
.wr-points li { font-size: 1.1rem; }
.wed-btns-1 { grid-template-columns: minmax(0, 1fr); }
.wed-btns-pray { margin-top: 10px; }
/* 말씀의 흐름 — 단계를 위에서 아래로, 사이에 ↓ (2026-10-07) */
.wr-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.wr-flow li { position: relative; padding: 11px 14px; border-radius: 12px; background: var(--paper-alt); font-size: 1.08rem; font-weight: 600; line-height: 1.55; color: var(--ink); text-align: center; word-break: keep-all; }
.wr-flow li + li { margin-top: 26px; }
.wr-flow li + li::before { content: "↓"; position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 1.05rem; line-height: 22px; color: var(--accent); font-weight: 700; }
.wr-flow li:last-child { background: var(--accent); color: #fff; }
/* 기도 제목 — 위: 함께 드리는(고정) · 아래: 말씀 후 적용 (2026-10-07) */
.wr-pray-part + .wr-pray-part { margin-top: 18px; }
.wr-pray-t { margin: 0 0 8px; font-size: .98rem; font-weight: 800; color: var(--ink); }
.wr-pray-apply .wr-pray-t::before { content: "✦ "; color: var(--accent); }
.wr-pray { margin: 0; padding-left: 1.5em; display: grid; gap: 8px; }
.wr-pray li { font-size: 1.08rem; line-height: 1.7; color: var(--ink); word-break: keep-all; }
.wr-pray-apply { padding: 14px 16px 14px 14px; border-radius: 12px; background: var(--paper-alt); }
.wed-close-note { margin-top: 12px; font-size: .86rem; color: var(--ink-soft); text-align: right; }
.wr-conti { display: grid; gap: 14px; }
.wr-conti-img { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; min-height: 80px; }
.wr-conti-img img { display: block; width: 100%; height: auto; }
.wr-conti-pdf { display: inline-block; }
.wr-conti-err { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft); font-size: .92rem; }
.wca-files { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid #EADFB0; }
.wca-files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EADFB0; font-size: .92rem; color: var(--ink); word-break: break-all; }
.wca-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F3E7B8; color: #7A5F00; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.wca-up { cursor: pointer; }
.wca-msg { margin-top: 6px; min-height: 1.2em; font-size: .88rem; color: #7A5F00; }
/* 수요기도회 첫 화면 알림 창(2026-10-07 목사님: "7시 45분쯤에 팝업이 뜨거나…", js/wed-notes.js ⑤) */
.modal.wed-pop { z-index: 3150; }
.modal-box.wpop-box { max-width: 400px; padding: 34px 26px 24px; text-align: center; }
.wpop-eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: #C9A227; color: #1f1f1f; font-size: .9rem; font-weight: 800; }
.wpop-title { margin: 0 0 6px; font-family: "Gowun Batang", serif; font-size: 1.45rem; line-height: 1.45; color: var(--accent); word-break: keep-all; }
.wpop-ref { margin: 0 0 14px; font-weight: 700; color: var(--ink-soft); word-break: keep-all; }
.wpop-text { margin: 10px 0 22px; font-size: 1rem; line-height: 1.75; color: var(--ink); word-break: keep-all; }
.wpop-go { width: 100%; padding: 15px; font-size: 1.1rem; }
.wpop-later { width: 100%; margin-top: 10px; padding: 12px; }
.wpop-note { margin: 14px 0 0; font-size: .84rem; color: var(--ink-soft); }

/* ===== 방문자 수 — 최고 운영자에게만 (2026-10-07, js/visit-stats.js) ===== */
.vc-footer { margin: 0 0 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vc-chip { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; line-height: 1.5; cursor: pointer; text-align: left; word-break: keep-all; }
.vc-chip b { color: #fff; }
.vc-chip:hover { background: rgba(255,255,255,.18); }
.vc-more { margin-left: 6px; font-weight: 700; color: #D9E8DE; white-space: nowrap; }
.vc-only { font-size: .74rem; color: rgba(255,255,255,.5); }
.modal.vc-modal { z-index: 3150; padding: 16px; }
.modal-box.vc-box { display: flex; flex-direction: column; max-width: 760px; max-height: 92vh; padding: 0; overflow: hidden; }
.vc-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px 22px; border-bottom: 1px solid var(--line); }
.vc-top b { font-size: 1.15rem; color: var(--accent); }
.vc-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-alt); color: var(--accent); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.vc-tabs { flex: none; display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.vc-tabs button { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .92rem; font-weight: 700; color: var(--accent); cursor: pointer; }
.vc-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.vc-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 26px; }
.vc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vc-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--paper-alt); }
.vc-card span { font-size: .82rem; color: var(--ink-soft); }
.vc-card b { font-size: 1.35rem; color: var(--accent); }
.vc-card small { font-size: .76rem; color: var(--ink-soft); }
.vc-card-main { background: var(--accent); }
.vc-card-main span, .vc-card-main small { color: rgba(255,255,255,.8); }
.vc-card-main b { color: #fff; }
.vc-h { margin: 22px 0 8px; font-size: 1rem; font-weight: 800; color: var(--accent); }
.vc-h small { margin-left: 6px; font-size: .76rem; font-weight: 500; color: var(--ink-soft); }
.vc-chart { display: block; width: 100%; height: auto; }
.vc-chart .vc-b { fill: var(--gold); }
.vc-chart .vc-b-today { fill: var(--accent); }
.vc-chart .vc-axis { stroke: var(--line); stroke-width: 1; }
.vc-chart .vc-t { font-size: 11px; fill: #7f8f87; }
.vc-chart .vc-v { font-size: 11px; font-weight: 700; fill: var(--accent); }
.vc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.vc-row { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 0; font-size: .9rem; }
.vc-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.vc-bar { height: 10px; border-radius: 6px; background: var(--paper-alt); overflow: hidden; }
.vc-bar i { display: block; height: 100%; border-radius: 6px; background: var(--gold); }
.vc-n { font-weight: 700; color: var(--accent); white-space: nowrap; }
.vc-n small { font-weight: 500; color: var(--ink-soft); }
.vc-none, .vc-err { color: var(--ink-soft); font-size: .9rem; }
.vc-note { margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .82rem; line-height: 1.7; color: var(--ink-soft); word-break: keep-all; }
@media (max-width: 680px) {
  .vc-footer { align-items: stretch; }
  .modal.vc-modal { padding: 0; }
  .modal-box.vc-box { max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; animation: none; }
  .vc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-grid { grid-template-columns: minmax(0, 1fr); }
  .vc-body { padding: 14px 16px 40px; }
}

/* 대시보드 '악보집' 단추(js/dashboard.js) — '악보' 권한이 있는 분께만 보인다 */
.dash-scores { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 16px 20px; border-radius: 14px; text-decoration: none;
  background: var(--accent, #1A3A2F); color: #fff; box-shadow: 0 8px 22px rgba(26,58,47,.18); transition: transform .2s ease, box-shadow .2s ease; }
.dash-scores:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,58,47,.24); }
.dash-scores .ds-ic { font-size: 1.8rem; line-height: 1; }
.dash-scores .ds-t { flex: 1 1 auto; display: flex; flex-direction: column; }
.dash-scores .ds-t b { font-size: 1.15rem; font-family: "Gowun Batang", serif; }
.dash-scores .ds-t small { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 2px; }
.dash-scores .ds-go { font-size: 1.6rem; color: #BFA06C; }

/* ── 교회에 메시지 보내기 · 내 교적 · 받은 메시지 (2026-10-07) ── */
.auth-msg-m { display: none; }
@media (max-width: 760px) { .auth-slot .auth-msg-m { display: block; } }
.auth-card .ac-msg { margin-top: 8px; width: 100%; cursor: pointer; font: inherit; }

.site-msg .sm-note { color: var(--ink-soft); font-size: .88rem; line-height: 1.7; margin: 0 0 14px; }
.site-msg .sm-lab { display: block; font-size: .82rem; color: var(--ink-soft); margin: 10px 0 5px; font-weight: 600; }
.site-msg .sm-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dfe5ee; border-radius: 10px; font: inherit; background: #fff; }
.site-msg textarea.sm-input { resize: vertical; line-height: 1.7; min-height: 110px; }
.site-msg .sm-input:focus { outline: none; border-color: var(--accent); }
.site-msg .sm-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.site-msg .sm-msg { font-size: .88rem; color: var(--ink-soft); }
.site-msg .sm-msg.ok { color: #1a7f4b; }
.site-msg .sm-msg.err { color: #c0392b; }
.site-msg .sm-h4 { margin: 22px 0 8px; font-size: .92rem; color: var(--accent); border-top: 1px solid var(--line); padding-top: 16px; }
.site-msg #smList { max-height: 40vh; overflow: auto; }
.site-msg .sm-empty { color: #9aa5b1; font-size: .88rem; margin: 4px 0; }
.site-msg .sm-item { border: 1px solid #e8edf3; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; text-align: left; }
.site-msg .sm-top { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: #9aa5b1; margin-bottom: 4px; }
.site-msg .sm-kind { background: #eef2fa; color: #3a5178; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.site-msg .sm-when { margin-left: auto; }
.site-msg .sm-body { white-space: pre-wrap; word-break: break-word; line-height: 1.7; font-size: .92rem; color: var(--ink); }
.site-msg .sm-state { margin-top: 6px; font-size: .82rem; color: #9aa5b1; }
.site-msg .sm-state.done { color: #1a7f4b; font-weight: 700; }
.site-msg .sm-state small { font-weight: 400; color: #7b8794; margin-left: 4px; }

.my-gj { width: 100%; border-collapse: collapse; font-size: .92rem; }
.my-gj th, .my-gj td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; text-align: left; vertical-align: top; }
.my-gj th { width: 7.5em; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.my-gj td { word-break: keep-all; overflow-wrap: anywhere; }
.my-gj .my-gj-empty { color: #c3cad4; font-size: .85rem; }

.om-badge { display: inline-block; min-width: 1.5em; padding: 1px 7px; border-radius: 999px; background: #c0392b; color: #fff; font-size: .75rem; text-align: center; vertical-align: 2px; }
.om-item { border: 1px solid #e8edf3; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fffdf7; }
.om-item.done { background: #fafbfc; }
.om-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.om-kind { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: #eef2fa; color: #3a5178; }
.om-kind.gj { background: #fff1d6; color: #8a6512; }
.om-when { margin-left: auto; font-size: .78rem; color: #9aa5b1; }
.om-body { white-space: pre-wrap; word-break: break-word; line-height: 1.75; font-size: .93rem; margin-bottom: 10px; }
.om-ok { padding: 7px 14px; font-size: .86rem; }
.om-state { font-size: .84rem; color: #1a7f4b; font-weight: 700; }
.om-done { margin-top: 6px; }
.om-done summary { cursor: pointer; color: var(--ink-soft); font-size: .86rem; padding: 6px 0; }
