@charset "UTF-8";
/* ==========================================================================
   고신교회 공통 스타일  (색상·글꼴 값은 tokens.css 에서 관리)
   목차: 1 기본 / 2 레이아웃 / 3 버튼 / 4 헤더·메뉴 / 5 히어로 / 6 카드·목록
         7 도서 / 8 서브페이지 / 9 표·타임라인·FAQ / 10 폼 / 11 푸터·하단바 / 12 검색
   ========================================================================== */
/* "서문 중에서" 글귀용 붓글씨 느낌 글꼴 (윈도우 '궁서'가 없는 기기를 위한 대체 글꼴) */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&display=swap');

/* ---------- 1. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; font-family: var(--f-sans); font-size: var(--fs-base); line-height: var(--lh-base);
  color: var(--c-ink); background: var(--c-bg); word-break: keep-all; overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; color: var(--c-primary-deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--c-primary-deep); padding: .75rem 1rem; z-index: 400; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
.is-hidden { display: none !important; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--fill { fill: currentColor; stroke: none; }
.noscript-note { padding: 16px 20px; background: var(--c-beige); text-align: center; }

/* ---------- 2. 레이아웃 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--beige { background: var(--c-beige); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--f-serif); font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0; }
.eyebrow { display: block; color: var(--c-gold-text); font-weight: 700; font-size: .9rem; letter-spacing: .08em; margin-bottom: 6px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: 44px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.stack > * + * { margin-top: 1.25rem; }
.empty { padding: 32px 20px; border: 2px dashed var(--c-line); border-radius: var(--radius); text-align: center; color: var(--c-muted); background: #fff; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--c-primary-soft); color: var(--c-primary-dark); white-space: nowrap; }
.badge--gold { background: var(--c-beige); color: var(--c-gold-text); }
.badge--sample { background: #fdebc8; color: #7a4b00; }
.badge--pin { background: var(--c-primary); color: #fff; }

/* ---------- 3. 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 26px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--light { background: #fff; color: var(--c-primary-deep); }
.btn--light:hover { background: var(--c-beige); }
.btn--ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: #fff; }
.btn--outline:hover { background: var(--c-primary-soft); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 4. 헤더 · 메뉴 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header.is-scrolled { box-shadow: var(--shadow-1); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-primary-deep); text-decoration: none !important; flex: none; }
.brand-logo { display: block; height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; white-space: nowrap; height: var(--header-h); padding: 0 16px; font-weight: 700; color: var(--c-ink); text-decoration: none; position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 3px; background: var(--c-primary); transform: scaleX(0); transition: transform .2s; }
.main-nav > ul > li:hover > a, .main-nav > ul > li.is-current > a { color: var(--c-primary); }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.is-current > a::after, .main-nav > ul > li:focus-within > a::after { transform: scaleX(1); }
.sub { position: absolute; left: 50%; top: calc(100% - 8px); transform: translateX(-50%); min-width: 200px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 8px; list-style: none; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; }
.sub a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--c-ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.sub a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink); }
.icon-btn:hover { background: var(--c-bg-soft); }
.icon-btn .ico { width: 24px; height: 24px; }
.menu-toggle { display: none; }
.mobile-menu { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; overflow: auto; padding: 8px 20px 100px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu details { border-bottom: 1px solid var(--c-line); }
.mobile-menu summary, .mobile-menu .m-link { display: flex; justify-content: space-between; align-items: center; min-height: 58px; font-weight: 700; font-size: 1.1rem; color: var(--c-ink); list-style: none; cursor: pointer; text-decoration: none; border-bottom: 0; }
.mobile-menu > .m-link { border-bottom: 1px solid var(--c-line); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] summary .ico { transform: rotate(180deg); }
.m-sub { padding: 0 0 12px 8px; }
.m-sub a { display: block; padding: 12px 8px; color: var(--c-ink-soft); text-decoration: none; }
.m-sub a:hover { color: var(--c-primary); }
.mobile-menu .m-contact { margin-top: 24px; display: grid; gap: 10px; }
body.menu-open { overflow: hidden; }
@media (max-width: 1023px) { .main-nav { display: none; } .menu-toggle { display: grid; } .header-tools { margin-left: auto; } }

/* ---------- 5. 히어로 · 메인 ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  /* 배경은 영상(.hero__media)이 채웁니다. 아래는 영상이 뜨기 전·재생이 막힌 기기에서 보이는 바탕색입니다 */
  background:
    radial-gradient(900px 480px at 75% 10%, #b03a62 0%, rgba(176,58,98,0) 65%),
    linear-gradient(160deg, #6a0f2e, #3d0d1f);
  min-height: clamp(480px, 78vh, 700px); display: flex; align-items: center; padding: 72px 0 130px;
}
/* 대문 배경 영상: 맨 아래에 정지 화면(첫 장면)을 깔고, 영상이 재생되기 시작하면 부드럽게 겹쳐 보입니다 */
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: #3d0d1f url('../img/hero-video-poster.jpg') center 42% / cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: 0; transition: opacity .9s ease; }
.hero__video.is-on { opacity: 1; }
/* 영상 재생/일시정지 버튼 (움직임 줄이기 설정을 켠 분은 이 버튼으로 직접 재생합니다) */
.hero__toggle { position: absolute; z-index: 3; right: 22px; bottom: 100px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  color: #fff; background: rgba(42, 8, 20, .38); border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.hero__toggle[hidden] { display: none; }
.hero__toggle:hover { background: rgba(42, 8, 20, .62); transform: scale(1.06); }
.hero__toggle:focus-visible { outline: 3px solid var(--c-gold-light); outline-offset: 2px; }
.hero__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* 글자가 잘 읽히도록 왼쪽·아래쪽을 버건디로 덮는 막 (영상 위, 글자 아래) */
.hero__shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(42,8,20,.80) 0%, rgba(42,8,20,.52) 48%, rgba(42,8,20,.14) 100%),
    linear-gradient(180deg, rgba(42,8,20,.10) 0%, rgba(42,8,20,.42) 100%); }
/* (예전 사진 위의 희미한 십자가 장식은 영상에서는 쓰지 않습니다. 되살리려면 아래 한 줄을 지우세요) */
.hero::before, .hero::after { display: none; }
.hero::before { content: ""; position: absolute; right: calc(9% - 120px); top: 44%; width: min(46vw, 640px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 220, 171, .20), rgba(243, 220, 171, .07) 55%, rgba(243, 220, 171, 0) 100%); }
.hero::after { content: ""; position: absolute; right: 9%; top: 44%; height: min(70%, 500px); aspect-ratio: 3 / 5; transform: translateY(-50%); pointer-events: none;
  /* 가로 막대 + 세로 막대(위에서 아래로 옅어지는 그라데이션)를 겹친 뒤 흐리게 처리해서, 가장자리가 진하지 않고 번지듯 보이게 합니다 */
  background:
    linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .34)) 50% 29.5% / 87% 12% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .46) 0%, rgba(243, 220, 171, .26) 55%, rgba(243, 220, 171, .04) 100%) 50% 50% / 20% 96% no-repeat;
  filter: blur(3px); opacity: .6; }
/* 모바일: 대문사진이 세로 화면에서 양옆이 잘리지 않도록 사진 전체를 맨 위에 보여 주고, 문구는 그 아래 버건디 바탕에 놓습니다.
   hero-m.jpg 는 원본 단체사진의 선명한 윗부분(1280x408)만 잘라 만든 것이라 아랫부분이 흐려지지 않고 경계가 또렷합니다. */
/* 모바일: 영상(16:9) 전체를 맨 위에 꽉 차게 보여 주고, 문구와 버튼은 그 아래 버건디 바탕에 놓습니다 (영상의 양옆이 잘리지 않게) */
@media (max-width: 768px) {
  .hero { --hp: calc(100vw * 9 / 16); min-height: 0; align-items: flex-start; padding-top: calc(var(--hp) + 28px); background: #4a0f26; }
  .hero__media { inset: 0 0 auto 0; height: var(--hp); }
  .hero__video, .hero__media { object-position: center; background-position: center; }
  .hero__shade { display: none; }
  .hero__toggle { top: calc(var(--hp) - 52px); bottom: auto; right: 10px; width: 40px; height: 40px; }
}
.hero .container { position: relative; z-index: 1; }
.hero__label { display: inline-block; padding: 6px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: .95rem; margin-bottom: 20px; color: var(--c-gold-light); }
.hero h1 { font-family: var(--f-serif); color: #fff; font-size: clamp(1.6rem, 5.6vw, 3.6rem); line-height: 1.3; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero h1 span { display: block; }
.hero__lead { font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 34em; opacity: .95; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.quick { margin-top: -76px; position: relative; z-index: 2; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.time-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 26px 28px; border-top: 4px solid var(--c-primary); }
.time-card__day { font-size: .9rem; font-weight: 700; color: var(--c-gold-text); }
.time-card h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.time-card__time { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; color: var(--c-primary); margin: 0; line-height: 1.3; }
.time-card__place { display: flex; align-items: center; gap: 6px; color: var(--c-ink-soft); margin: 6px 0 0; }
.quick-more { text-align: center; margin-top: 16px; }
/* 홈 "이번 주 말씀" 아래 성경 통독 바로가기 버튼 */
.home-bible { margin: 28px 0 0; text-align: center; }
@media (max-width: 768px) {
  /* 모바일: 이 부분의 위아래 간격을 줄이고, 버튼은 화면 너비로 */
  #sermon { padding-bottom: 28px; }
  #sermon + .section { padding-top: 40px; }
  .home-bible { margin-top: 18px; }
  .home-bible .btn { width: 100%; }
}
.sermon-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; background: #2a0a16; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #fff; text-align: center; padding: 16px; background: radial-gradient(500px 260px at 30% 20%, #a8325a, rgba(168,50,90,0)), linear-gradient(145deg, #6a0f2e, #3d0d1f); }
.video-ph .ico { width: 56px; height: 56px; opacity: .9; }
.sermon-info h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 8px 0; }
.sermon-meta { color: var(--c-muted); margin-bottom: 14px; }
.mini-list { margin: 22px 0; border-top: 1px solid var(--c-line); }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); }
a.mini-row:hover { background: var(--c-bg-soft); text-decoration: none; }
.mini-row time { color: var(--c-muted); font-size: .9rem; white-space: nowrap; }
.news-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.bulletin-card { background: linear-gradient(145deg, #6a0f2e, #3d0d1f); color: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-2); }
.bulletin-card h3 { color: #fff; margin: 6px 0 4px; font-size: 1.4rem; }
.bulletin-card p { opacity: .9; }
.bulletin-card .eyebrow { color: var(--c-gold-light); }
/* 메인의 이번 주 주보: 왼쪽 안내 + 오른쪽 미리보기 */
.bulletin-card--wide { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 40px; align-items: center; padding: 38px 44px; }
.bulletin-card--wide h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 8px 0 6px; line-height: 1.3; }
.bulletin-card--wide .bc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.bulletin-card--wide .bl-viewer { margin: 0; }
.bulletin-card--wide .bl-page { flex-basis: 44%; max-width: 250px; }
@media (max-width: 900px) { .bulletin-card--wide { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 22px; } .bulletin-card--wide .bl-page { flex-basis: 62%; } }
/* 주보 미리보기: 쪽을 좌우로 넘겨 봅니다 */
.bl-viewer { margin: 18px 0 20px; }
.bl-viewer[hidden] { display: none; }
.bl-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.bl-track::-webkit-scrollbar { display: none; }
.bl-page { position: relative; flex: 0 0 62%; max-width: 260px; aspect-ratio: 842 / 1190; scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); display: block; }
.bl-page canvas { display: block; width: 100%; height: 100%; }
.bl-page:hover, .bl-page:focus-visible { outline: 2px solid var(--c-gold-light); outline-offset: 2px; }
.bl-num { position: absolute; left: 8px; top: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: rgba(61,13,31,.85); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.bl-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.bl-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.bl-btn:hover { background: rgba(255,255,255,.28); }
.bl-btn .ico { width: 18px; height: 18px; }
.bl-count { min-width: 56px; text-align: center; font-size: .92rem; font-variant-numeric: tabular-nums; opacity: .9; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 14px; }
.dept-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 12px; text-align: center; color: var(--c-ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; }
.dept-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--c-primary); }
.dept-card__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--c-primary-soft); display: grid; place-items: center; color: var(--c-primary); }
.dept-card__icon .ico { width: 28px; height: 28px; }
.dept-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.dept-card p { margin: 0; font-size: .9rem; color: var(--c-muted); }
.dept-card--wide { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-items: center; padding: 22px; }
.dept-card--wide .dept-card__icon { margin: 0; grid-row: span 2; }
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mission-card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none !important; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 28px; background: linear-gradient(160deg, rgba(42,8,20,.15), rgba(42,8,20,.88)), linear-gradient(135deg, #801237, #3d0d1f); transition: transform .2s, box-shadow .2s; }
.mission-card-wrap:nth-child(2) .mission-card { background: linear-gradient(160deg, rgba(42,8,20,.15), rgba(42,8,20,.88)), linear-gradient(135deg, #8a6320, #3d0d1f); }
.mission-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.mission-card .badge { align-self: flex-start; margin-bottom: 10px; background: rgba(255,255,255,.18); color: #fff; }
.mission-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.mission-card p { margin: 0; opacity: .92; }
.mission-card time { font-size: .9rem; opacity: .8; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #f3dde4, #f3ecdc); display: grid; place-items: center; color: var(--c-primary); }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__item .ico { width: 36px; height: 36px; opacity: .55; }
/* 메인 앨범: 반으로 나눠 왼쪽 교회 앨범, 오른쪽 선교 앨범 */
.album-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.album-col .section-head { margin-bottom: 20px; }
.album-col .gallery { grid-template-columns: repeat(2, 1fr); }
.album-col .empty { min-height: 180px; display: grid; place-items: center; }
@media (max-width: 900px) { .album-split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
/* 메인 선교 소식 슬라이드 (선교지 안내 그림 8장, 그림을 누르면 관련 글로 이동) */
.msl { position: relative; }
.msl-track { position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 12px; }
.msl-track::-webkit-scrollbar { display: none; }
.msl-track:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.msl-slide { flex: 0 0 calc((100% - 20px) / 2); scroll-snap-align: start; display: block; text-decoration: none !important; color: inherit; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #eadde2; box-shadow: 0 6px 20px rgba(60, 10, 30, .08); transition: transform .25s, box-shadow .25s; }
a.msl-slide:hover, a.msl-slide:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(60, 10, 30, .16); }
.msl-img { display: block; aspect-ratio: 940 / 540; background: #f4eef0; }
.msl-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.msl-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 14px; border-top: 1px solid #f0e6ea; }
.msl-cap b { font-weight: 700; }
.msl-cap em { font-style: normal; font-weight: 700; color: var(--c-primary); font-size: .92rem; white-space: nowrap; }
.msl-btn { position: absolute; top: calc(50% - 44px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-gold); background: rgba(255, 255, 255, .96); color: var(--c-primary); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); cursor: pointer; z-index: 2; }
.msl-btn:hover { background: var(--c-primary); color: #fff; }
.msl-btn .ico { width: 20px; height: 20px; }
.msl-prev { left: -14px; } .msl-next { right: -14px; }
.msl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.msl-dot { width: 9px; height: 9px; border-radius: 6px; border: 0; background: #d9c9cf; padding: 0; cursor: pointer; transition: width .2s, background .2s; }
.msl-dot.is-on { width: 24px; background: var(--c-primary); }
.mission-more { margin-top: 22px; text-align: center; }
/* "선교 소식" 제목 옆 — 세운 교회·우물 수가 깜빡이며 켜집니다 (숫자는 data/missions.js 의 missionStats) */
.mission-headline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.mission-stats { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ms-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid var(--c-gold); background: var(--c-beige); color: var(--c-primary-deep); font-size: .95rem; font-weight: 600; white-space: nowrap; animation: ms-lit 2.4s ease-in-out infinite; }
.ms-num { font-family: var(--f-serif); font-size: 1.35rem; line-height: 1; font-weight: 700; color: var(--c-primary); }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 8px 2px rgba(201, 162, 39, .7); }
@keyframes ms-lit {
  0%, 100% { opacity: 1; box-shadow: 0 0 16px 1px rgba(201, 162, 39, .55); }
  50% { opacity: .38; box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}
/* "애니메이션 효과 끄기·동작 줄이기"를 켜 둔 컴퓨터·휴대폰에서도 점등은 보이도록, 그런 기기에서는 크게 깜빡이지 않고 더 천천히 은은하게만 오르내립니다 */
/* (파일 아래쪽의 "동작 줄이기면 모든 움직임 끄기" 전체 규칙보다 이기도록 !important 를 붙였습니다) */
@media (prefers-reduced-motion: reduce) { .ms-item { animation: ms-soft 3.6s ease-in-out infinite !important; } }
@keyframes ms-soft {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px 0 rgba(201, 162, 39, .45); }
  50% { opacity: .6; box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}
/* 선교현황 머리(짙은 버건디 배경) 안의 점등 — 연한 금색 테두리·글자로 맞춤 */
.page-hero__stats { margin-top: 18px; }
.page-hero .ms-item { background: rgba(255, 255, 255, .12); border-color: var(--c-gold-light); color: #fff; animation-name: ms-lit-dark; }
.page-hero .ms-num { color: var(--c-gold-light); }
.page-hero .ms-dot { background: var(--c-gold-light); box-shadow: 0 0 10px 3px rgba(243, 220, 171, .7); }
@keyframes ms-lit-dark {
  0%, 100% { opacity: 1; box-shadow: 0 0 18px 2px rgba(243, 220, 171, .45); }
  50% { opacity: .45; box-shadow: 0 0 0 0 rgba(243, 220, 171, 0); }
}
@keyframes ms-soft-dark {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px 0 rgba(243, 220, 171, .4); }
  50% { opacity: .65; box-shadow: 0 0 0 0 rgba(243, 220, 171, 0); }
}
@media (prefers-reduced-motion: reduce) { .page-hero .ms-item { animation: ms-soft-dark 3.6s ease-in-out infinite !important; } }
@media (max-width: 768px) {
  .ms-item { font-size: .88rem; padding: 5px 12px 5px 10px; }
  .ms-num { font-size: 1.2rem; }
}
@media (max-width: 768px) {
  .msl-slide { flex-basis: 100%; }
  .msl-btn { width: 40px; height: 40px; top: calc(50% - 40px); }
  .msl-prev { left: 6px; } .msl-next { right: 6px; }
  .msl-cap { flex-wrap: wrap; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) { .msl-track { scroll-behavior: auto; } .msl-slide { transition: none; } }
.gallery__item { text-decoration: none !important; }
.gallery__item img { transition: transform .35s; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 500; font-size: .95rem; background: linear-gradient(180deg, rgba(42,8,20,0), rgba(42,8,20,.82)); }
/* 행사 글 안의 사진·영상 */
.event-photos { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.event-videos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 16px; }
.event-video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow-1); }
.event-video img, video.event-video { width: 100%; height: 100%; object-fit: cover; display: block; }
a.event-video:hover .card__play { transform: scale(1.1); background: var(--c-primary); }
.post-body > :first-child { margin-top: 0; }
.photo-grid a[hidden] { display: none; }
/* 세로 보고서 그림(선교보고서 등): 잘라내지 않고 한 장씩 크게 */
.photo-grid.doc-photos { grid-template-columns: repeat(auto-fill, minmax(260px, 520px)); gap: 16px; }
.photo-grid.doc-photos a { aspect-ratio: auto; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; }
.photo-grid.doc-photos img { height: auto; object-fit: contain; display: block; }
@media (max-width: 640px) { .photo-grid.doc-photos { grid-template-columns: minmax(0, 1fr); } }
/* 선교 비전: 선교지 안내 그림 (2열, 모바일 1열) */
.photo-grid.vision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.photo-grid.vision-grid a { aspect-ratio: 940 / 540; border-radius: 6px; background: #eaf5fb; border: 1px solid var(--c-line); box-shadow: 0 6px 18px rgba(61, 13, 31, .08); }
.photo-grid.vision-grid img { object-fit: contain; }
.prose + .vision-grid { margin-top: 24px; }
@media (max-width: 640px) { .photo-grid.vision-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
/* "서문 중에서" 글귀 (궁서체) */
.excerpt { margin: 0; padding: 8px 8px 4px; border: 0; background: none; text-align: center; font-family: 'Gungsuh', '궁서', 'GungsuhChe', 'Nanum Myeongjo', 'Noto Serif KR', serif; color: #3a1a24; }
.excerpt p { margin: 0 0 1.4em; font-size: 1.28rem; line-height: 2; font-weight: 500; }
.excerpt p:first-child::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--c-primary); opacity: .35; margin-bottom: 10px; }
.excerpt p:last-child { margin-bottom: 0; font-weight: 700; color: var(--c-primary-dark); }
.excerpt p.ex-ref { font-size: 1rem; color: var(--c-muted); text-align: right; margin-top: -.6em; }
.excerpt p.ex-en { font-size: 1.02rem; line-height: 1.8; font-style: italic; color: #5a3a46; font-weight: 400; }
/* 긴 서문(기도문 모음집 등): 왼쪽 정렬, 조금 작게 */
.excerpt--compact { text-align: left; padding: 4px 4px 0; }
.excerpt--compact p { font-size: 1.04rem; line-height: 1.95; font-weight: 400; margin-bottom: 1.1em; word-break: keep-all; }
.excerpt--compact p:first-child { text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--c-primary-dark); margin-bottom: 1.3em; }
.excerpt--compact p:first-child::before { display: none; }
.excerpt--compact p:last-child { text-align: right; font-weight: 700; color: var(--c-primary-dark); margin-top: 1.6em; }
.excerpt-title { margin: 0 0 12px; font-family: 'Gungsuh', '궁서', 'GungsuhChe', 'Nanum Myeongjo', 'Noto Serif KR', serif; font-size: 1.35rem; color: var(--c-primary); text-align: center; }
.excerpt-title::before, .excerpt-title::after { content: "—"; margin: 0 10px; opacity: .5; }
.book-row__excerpt { background: linear-gradient(180deg, #fbf6f2, #f6efe8); border: 1px solid #ecdfd6; padding: 28px 32px 30px; }
@media (max-width: 520px) { .excerpt p { font-size: 1.12rem; } .book-row__excerpt { padding: 22px 18px; } }
/* 저서 목록: 왼쪽 표지, 오른쪽 책 속 미리보기(가로로 넘겨 보기) */
.book-rows { display: grid; gap: 48px; }
.book-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.book-row .book-card { width: 100%; }
.book-row__preview { min-width: 0; background: var(--c-bg-soft); border-radius: 18px; padding: 22px 24px 18px; }
.book-row__preview .rail__head { margin-bottom: 14px; }
.book-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; grid-template-columns: none; scrollbar-width: thin; }
.book-strip a { flex: 0 0 240px; aspect-ratio: 3 / 4; scroll-snap-align: start; background: #fff; border: 1px solid var(--c-line); border-radius: 10px; box-shadow: none; }
.book-strip img { width: 100%; height: 100%; object-fit: contain; }
.book-strip a span { position: absolute; left: 8px; top: 8px; bottom: auto; right: auto; padding: 2px 9px; border-radius: 999px; background: rgba(61, 13, 31, .85); color: #fff; font-size: .78rem; }
.book-row__hint { margin: 4px 0 0; font-size: .88rem; color: var(--c-muted); }
@media (max-width: 900px) { .book-row { grid-template-columns: minmax(0, 1fr); gap: 24px; } .book-row .book-card { max-width: 320px; } .book-strip a { flex-basis: 200px; } }
.book-previews { grid-template-columns: repeat(auto-fill, minmax(240px, 340px)); }
.book-previews a { aspect-ratio: auto; background: #fff; border: 1px solid var(--c-line); }
.book-previews img { height: auto; object-fit: contain; display: block; }
.book-previews a span { position: static; padding: 8px 12px; background: var(--c-bg-soft); color: var(--c-ink-soft); }
.event-more-wrap { margin: 18px 0 0; }
.banner { background: linear-gradient(120deg, #3d0d1f, #801237); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; }
.banner h2 { color: #fff; font-family: var(--f-serif); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.banner .eyebrow { color: var(--c-gold-light); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-gold-light); color: var(--c-primary-deep); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { font-size: .95rem; opacity: .92; }
.banner .steps { grid-template-columns: 1fr; }
.banner .steps li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; align-items: start; }
.banner .steps li::before { grid-row: span 2; margin-bottom: 0; }
.steps--light li { background: #fff; border-color: var(--c-line); color: var(--c-ink); }
.steps--light li::before { background: var(--c-primary); color: #fff; }

/* ---------- 6. 카드 · 목록 ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f3dde4, #f3ecdc); display: grid; place-items: center; color: var(--c-primary); overflow: hidden; position: relative; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb .ico { width: 40px; height: 40px; opacity: .6; }
.card__thumb > img { position: absolute; inset: 0; }
.card__play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(90, 10, 38, .88); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.28); transition: transform .2s, background .2s; }
.card__thumb .card__play .ico { width: 18px; height: 18px; opacity: 1; margin-left: 2px; }
a.card:hover .card__play { transform: scale(1.1); background: var(--c-primary); }
.card h3 .badge { vertical-align: 2px; margin-left: 4px; }
/* 메인 "이번 주 말씀" 아래: 3분 묵상 + 쇼츠 */
.word-rails { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 44px; align-items: start; }
.word-rails--one { grid-template-columns: minmax(0, 1fr); }
.rail { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 22px 24px 24px; box-shadow: var(--shadow-1); min-width: 0; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rail__head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.rail__head h3::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--c-primary); }
.rail__head .more-link { font-size: .95rem; white-space: nowrap; }
.rail__tools { display: flex; align-items: center; gap: 14px; }
.rail__list { display: grid; gap: 12px; }
.med-item { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 16px; align-items: center; color: inherit; text-decoration: none !important; padding: 6px; margin: -6px; border-radius: 12px; transition: background .2s; }
.med-item:hover { background: var(--c-bg-soft); }
.med-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #2a0814; }
.med-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.med-thumb .card__play { right: 8px; bottom: 8px; width: 30px; height: 30px; }
.med-thumb .card__play .ico { width: 13px; height: 13px; }
.med-text { display: grid; gap: 4px; min-width: 0; }
.med-text time { font-size: .88rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.med-text strong { font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shorts-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
.short-card { position: relative; flex: 0 0 168px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #2a0814; scroll-snap-align: start; color: #fff; text-decoration: none !important; box-shadow: var(--shadow-1); }
.short-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.short-card:hover img, .short-card:focus-visible img { transform: scale(1.05); }
.short-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,8,20,.35) 0%, rgba(42,8,20,0) 28%, rgba(42,8,20,0) 52%, rgba(42,8,20,.9) 100%); }
.short-card time { position: absolute; left: 10px; top: 10px; font-size: .76rem; font-weight: 500; background: rgba(0,0,0,.48); padding: 2px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.short-card .card__play { top: 8px; right: 8px; bottom: auto; width: 30px; height: 30px; }
.short-card .card__play .ico { width: 13px; height: 13px; }
.short-card__title { position: absolute; left: 11px; right: 11px; bottom: 12px; font-weight: 700; font-size: .93rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
@media (max-width: 900px) { .word-rails { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px; } }
@media (max-width: 520px) { .rail { padding: 18px 16px 18px; } .med-item { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; } .short-card { flex-basis: 140px; } .rail__tools .slider-btns { display: none; } }
.yt-note { display: flex; align-items: center; gap: 10px; margin: 32px 0 0; padding: 16px 20px; background: var(--c-bg-soft); border-radius: var(--radius); color: var(--c-ink-soft); }
.yt-note .ico { width: 22px; height: 22px; color: var(--c-primary); flex: none; }
.yt-note a { font-weight: 700; }
.card__body { padding: 18px 20px 22px; }
.card__meta { font-size: .9rem; color: var(--c-muted); margin: 0; }
.card h3 { font-size: 1.08rem; margin: 4px 0 0; }
.card p { margin: 6px 0 0; color: var(--c-ink-soft); font-size: .98rem; }
.post-list { list-style: none; border-top: 2px solid var(--c-primary-deep); }
.post-list > li { border-bottom: 1px solid var(--c-line); }
.post-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 16px 8px; color: var(--c-ink); text-decoration: none; }
a.post-row:hover, summary.post-row:hover { background: var(--c-bg-soft); text-decoration: none; }
summary.post-row { cursor: pointer; list-style: none; }
summary.post-row::-webkit-details-marker { display: none; }
.post-date { color: var(--c-muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.post-title { font-weight: 500; }
.post-body { padding: 4px 8px 22px 136px; color: var(--c-ink-soft); }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; font-weight: 700; color: var(--c-ink-soft); }
.tab[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tab small { font-weight: 500; opacity: .7; margin-left: 2px; }
.load-more { text-align: center; margin-top: 28px; }

/* ---------- 7. 도서 ---------- */
.book-slider { position: relative; }
.book-track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: thin; }
.book-card { flex: 0 0 236px; scroll-snap-align: start; color: var(--c-ink); text-decoration: none !important; display: block; }
.book-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; background: linear-gradient(135deg, #801237, #3d0d1f); box-shadow: 0 10px 24px rgba(61,13,31,.28); display: grid; place-items: center; color: #fff; text-align: center; padding: 18px; overflow: hidden; transition: transform .25s; }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.12)); }
.book-card:hover .book-cover { transform: translateY(-4px) rotate(-.6deg); }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover__ph { display: grid; justify-items: center; gap: 10px; font-size: .95rem; }
.book-cover__ph .ico { width: 36px; height: 36px; }
.book-cover .badge { position: absolute; top: 10px; right: 10px; }
.book-card h3 { font-size: 1.08rem; margin: 18px 0 4px; }
.book-card p { font-size: .95rem; color: var(--c-ink-soft); margin: 0 0 8px; }
.book-card .more { font-weight: 700; color: var(--c-primary); display: inline-flex; align-items: center; gap: 4px; }
.slider-btns { display: flex; gap: 8px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-gold); background: #fff; color: var(--c-gold-text); display: grid; place-items: center; }
.slider-btn:hover { background: var(--c-gold); color: #fff; }
.slider-btn .ico { width: 20px; height: 20px; }
/* 메인 BOOKS: 가운데 큰 제목 + 왼쪽 담임목사 저서 / 오른쪽 교회출판도서 */
.books-section { background: linear-gradient(180deg, var(--c-beige), #f3ead9); }
.books-head { text-align: center; margin-bottom: 44px; }
.books-head h2 { font-family: var(--f-serif); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: .04em; color: var(--c-primary-deep); margin: 0; line-height: 1.1; }
.books-head h2::after { content: ""; display: block; width: 64px; height: 2px; margin: 18px auto 16px; background: linear-gradient(90deg, transparent, var(--c-gold) 20%, var(--c-gold) 80%, transparent); }
.books-head p { margin: 0; color: var(--c-ink-soft); font-size: 1.02rem; }
.shelf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.shelf-panel { position: relative; display: flex; flex-direction: column; background: rgba(255, 255, 255, .78); border: 1px solid rgba(184, 137, 59, .28); border-radius: 22px; padding: 30px 34px 34px; box-shadow: 0 14px 34px rgba(61, 13, 31, .08); backdrop-filter: blur(2px); }
.shelf-panel::before { content: ""; position: absolute; left: 34px; right: 34px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-gold)); }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--c-beige-deep); }
.shelf-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--c-gold-text); margin-bottom: 4px; }
.shelf-head h3 { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--c-primary-deep); margin: 0; }
.shelf-tools { display: flex; align-items: center; gap: 14px; }
.shelf-tools .slider-btn { width: 38px; height: 38px; }
.shelf-tools .slider-btn .ico { width: 18px; height: 18px; }
.shelf-tools .more-link { font-size: .95rem; white-space: nowrap; }
.shelf-slider { flex: 1; min-width: 0; display: flex; }
.shelf-track { display: flex; flex: 1; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-item { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 28px; align-items: center; color: var(--c-ink); text-decoration: none !important; padding: 4px 4px 10px; }
.shelf-item .book-cover { width: 100%; box-shadow: 0 16px 30px rgba(61, 13, 31, .3), 0 3px 8px rgba(61, 13, 31, .18); }
.shelf-item:hover .book-cover, .shelf-item:focus-visible .book-cover { transform: translateY(-5px) rotate(-.6deg); }
.shelf-item__meta { margin: 0 0 8px; font-size: .86rem; font-weight: 700; letter-spacing: .04em; color: var(--c-gold-text); }
.shelf-item h4 { font-family: var(--f-serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--c-primary-deep); margin: 0 0 6px; word-break: keep-all; }
.shelf-item__sub { margin: 0 0 14px; font-size: .95rem; color: var(--c-muted); }
.shelf-item__quote { margin: 14px 0 18px; padding: 2px 0 2px 14px; border-left: 2px solid var(--c-gold); font-family: 'Gungsuh', '궁서', 'GungsuhChe', 'Nanum Myeongjo', 'Noto Serif KR', serif; font-size: 1.04rem; line-height: 1.75; color: #5a3a46; word-break: keep-all; }
.shelf-item .more { font-weight: 700; color: var(--c-primary); display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: gap .2s; }
.shelf-item:hover .more { gap: 10px; }
.shelf-empty { align-self: center; flex: 1; }
@media (max-width: 960px) { .shelf-split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 520px) {
  .shelf-panel { padding: 24px 20px 26px; border-radius: 18px; }
  .shelf-panel::before { left: 20px; right: 20px; }
  .shelf-item { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 16px; align-items: start; }
  .shelf-item__quote { font-size: .95rem; margin: 10px 0 12px; }
}
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.book-grid .book-card { flex: none; }
.book-detail { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.book-detail h1 { font-family: var(--f-serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 4px; }
.book-sub { font-size: 1.15rem; color: var(--c-ink-soft); margin-bottom: 18px; }
.meta-list { list-style: none; display: grid; gap: 6px; margin: 18px 0; }
.meta-list li { display: flex; gap: 12px; }
.meta-list b { flex: 0 0 76px; color: var(--c-muted); font-weight: 500; }
.detail-block { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.detail-block h2 { font-size: 1.4rem; }
.toc { padding-left: 1.4em; display: grid; gap: 4px; }
.quote { border-left: 4px solid var(--c-gold); background: var(--c-beige); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 0 0 16px; }
.quote cite { display: block; margin-top: 8px; font-style: normal; color: var(--c-gold-text); font-weight: 700; font-size: .95rem; }

/* ---------- 8. 서브 페이지 ---------- */
.page-hero { background: linear-gradient(135deg, #3d0d1f, #801237); color: #fff; padding: 48px 0 40px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: 6%; top: 50%; width: 200px; height: 200px; transform: translateY(-50%); opacity: .08; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6v88M22 34h56' stroke='white' stroke-width='6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: .9rem; opacity: .85; margin-bottom: 12px; }
.crumbs a { color: #fff; }
.page-hero h1 { font-family: var(--f-serif); color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.page-hero p { margin: 0; opacity: .92; max-width: 40em; }
.subnav { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: var(--header-h); z-index: 50; overflow-x: auto; }
.subnav ul { display: flex; gap: 4px; list-style: none; white-space: nowrap; }
.subnav a { display: block; padding: 14px 16px; color: var(--c-ink-soft); font-weight: 500; border-bottom: 3px solid transparent; text-decoration: none; }
.subnav a:hover { color: var(--c-primary); }
.subnav a[aria-current="page"] { color: var(--c-primary); border-color: var(--c-primary); font-weight: 700; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose blockquote { border-left: 4px solid var(--c-gold); background: var(--c-beige); padding: 16px 22px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.prose blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: .95rem; color: var(--c-gold-text); font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--c-ink-soft); }
.greeting { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.greeting__photo { aspect-ratio: 3 / 4; border-radius: var(--radius); background: linear-gradient(160deg, #f3dde4, #f3ecdc); display: grid; place-items: center; color: var(--c-primary); text-align: center; overflow: hidden; position: relative; box-shadow: var(--shadow-1); }
.greeting__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.greeting__photo span { display: grid; gap: 8px; justify-items: center; font-size: .95rem; color: var(--c-muted); }
.greeting__photo .ico { width: 40px; height: 40px; }
.greeting__sign { margin-top: 28px; font-weight: 700; color: var(--c-primary-deep); font-size: 1.1rem; }
.slogan-big { text-align: center; padding: 56px 24px; border-radius: 24px; background: linear-gradient(135deg, #3d0d1f, #801237); color: #fff; }
.slogan-big .eyebrow { color: var(--c-gold-light); }
.slogan-big p { font-family: var(--f-serif); font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.5; margin: 0; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.info-card h3 .ico { color: var(--c-primary); }
.info-card p:last-child { margin-bottom: 0; }
.people-group + .people-group { margin-top: 52px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 220px)); gap: 28px 24px; justify-content: start; }
.person { margin: 0; text-align: center; }
.person__photo { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #f3dde4, #f3ecdc); display: grid; place-items: center; color: var(--c-primary); font-size: 3rem; font-weight: 700; box-shadow: var(--shadow-1); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person h3 { margin: 14px 0 0; font-size: 1.15rem; }
.person p { margin: 2px 0 0; color: var(--c-muted); }
.person__bio { font-size: .92rem; }
.floor-list { list-style: none; display: grid; gap: 12px; }
.floor-list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 20px; }
.floor-list b { display: inline-grid; place-items: center; height: 40px; border-radius: 10px; background: var(--c-primary); color: #fff; }
.map-embed { border: 0; width: 100%; aspect-ratio: 16 / 9; min-height: 320px; border-radius: var(--radius); background: var(--c-bg-soft); }
.contact-lines { list-style: none; display: grid; gap: 12px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines .ico { margin-top: 4px; color: var(--c-primary); }

/* ---------- 9. 표 · 타임라인 · FAQ ---------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.data-table th, .data-table td { padding: 15px 18px; border-bottom: 1px solid var(--c-line); text-align: left; }
.data-table thead th { background: var(--c-primary-deep); color: #fff; font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .t-name { font-weight: 700; }
.data-table .t-time { font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.group-title { font-size: 1.3rem; margin: 40px 0 14px; display: flex; align-items: center; gap: 10px; }
.group-title:first-child { margin-top: 0; }
.group-title::before { content: ""; width: 6px; height: 1.1em; background: var(--c-gold); border-radius: 3px; }
.timeline { list-style: none; border-left: 3px solid var(--c-primary-soft); margin-left: 10px; }
.timeline > li { position: relative; padding: 0 0 28px 28px; scroll-margin-top: calc(var(--header-h) + 24px); }
.timeline > li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--c-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-primary); }
.timeline > li > b { display: block; font-size: 1.25rem; color: var(--c-primary); }
.tl-nav { margin-bottom: 28px; }
/* 연혁: 같은 달은 한 묶음 — 왼쪽 칸에 "월"이 한 번만(세로 가운데), 묶음 사이에는 가로선 */
.tl-lines { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.tl-g { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); border-top: 1px solid var(--c-line); }
.tl-g:first-child { border-top: 0; }
.tl-m { display: flex; align-items: center; justify-content: center; padding: 8px 4px; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; font-variant-numeric: tabular-nums; border-right: 1px solid var(--c-line); }
.tl-gi { list-style: none; margin: 0; padding: 11px 16px; display: grid; gap: 5px; line-height: 1.55; }
.tl-gi li { position: relative; padding-left: 13px; color: var(--c-ink); overflow-wrap: anywhere; }
.tl-gi li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--c-gold); }
@media (max-width: 560px) {
  .tl-g { grid-template-columns: 3.6em minmax(0, 1fr); }
  .tl-gi { padding: 10px 12px; }
}
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 58px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details[open] summary { color: var(--c-primary); }
.faq .faq__a { padding: 0 22px 20px; color: var(--c-ink-soft); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- 10. 폼 ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--c-danger); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid #b9a9af; border-radius: 10px; font: inherit; color: var(--c-ink); background: #fff; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: 3px solid rgba(128,18,55,.25); outline-offset: 0; }
.privacy-box { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: 10px; padding: 14px 16px; font-size: .92rem; color: var(--c-ink-soft); }
.privacy-box p { margin: 0 0 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status--ok { background: #e3f4e9; color: var(--c-ok); }
.form-status--err { background: #fde8e6; color: var(--c-danger); }
.hp { position: absolute; left: -9999px; }

/* ---------- 11. 푸터 · 하단 고정바 ---------- */
.site-footer { background: #2a0a16; color: #e3d2d8; padding: 56px 0 28px; }
.site-footer a { color: #f8eef1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-brand { margin-bottom: 16px; }
.footer-brand img { display: inline-block; height: 44px; width: auto; background: #fff; padding: 8px 14px; border-radius: 12px; box-sizing: content-box; max-width: calc(100% - 28px); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer address { font-style: normal; }
.site-footer address p { margin: 0 0 4px; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.bottom-bar { display: none; }
/* 찬양 듣기 (홈 왼쪽 아래) */
.mp-fab { position: fixed; left: 24px; bottom: 24px; z-index: 95; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: .98rem; box-shadow: 0 8px 22px rgba(61, 13, 31, .35); transition: transform .2s, background .2s; }
.mp-fab:hover { background: var(--c-primary-dark); transform: translateY(-2px); }
.mp-fab .ico { width: 22px; height: 22px; stroke: #fff; }
.mp-fab.is-on { background: var(--c-primary-deep); }
.mp-panel { position: fixed; left: 24px; bottom: 84px; z-index: 95; width: min(216px, calc(100vw - 24px)); background: #fff; border: 1px solid rgba(184, 137, 59, .45); border-radius: 12px; padding: 4px; box-shadow: 0 14px 34px rgba(42, 8, 20, .30); }   /* 영상 창 최소 규격(200px)에 맞춘 작은 크기 */
.mp-panel[hidden] { display: none; }
.mp-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--c-bg-soft); color: var(--c-ink-soft); font-size: 1.1rem; line-height: 1; }
.mp-close:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.mp-video { height: 200px; border-radius: 10px; overflow: hidden; background: #000; }   /* 유튜브 규정상 영상 창은 200px 아래로 줄이지 않습니다 */
.mp-more[hidden] { display: none; }
.mp-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 3px; }
.mp-toggle { padding: 4px 4px; border: 0; background: none; color: var(--c-primary); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.mp-toggle:hover { text-decoration: underline; }
.mp-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.mp-tracks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.mp-tracks button { width: 100%; text-align: left; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--c-ink); }
.mp-tracks button:hover { background: var(--c-bg-soft); }
.mp-tracks button[aria-current="true"] { background: var(--c-primary-soft); border-color: rgba(128, 18, 55, .25); }
.mp-t { display: block; font-weight: 700; font-size: .92rem; line-height: 1.35; }
.mp-tracks small { display: block; color: var(--c-muted); font-size: .8rem; margin-top: 1px; }
.mp-note { margin: 8px 4px 0; font-size: .78rem; color: var(--c-muted); }
.mp-skip { display: block; margin: 0 0 0 auto; padding: 4px 2px; border: 0; background: none; color: var(--c-muted); font-size: .72rem; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.mp-skip:hover { color: var(--c-primary); }
/* 자동으로 뜨는 팝업 모양: 재생 버튼이 있는 큰 그림 */
.mp-panel.is-popup { animation: mp-pop .45s cubic-bezier(.2, .8, .2, 1) both; box-shadow: 0 22px 54px rgba(42, 8, 20, .42); }
@keyframes mp-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.mp-poster { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.mp-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .4s, opacity .3s; }
.mp-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 8, 20, .08), rgba(42, 8, 20, .6)); }
.mp-poster:hover img { transform: scale(1.04); opacity: 1; }
.mp-play { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; }
.mp-play i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); transition: transform .2s; }
.mp-poster:hover .mp-play i { transform: scale(1.1); }
.mp-play .ico { width: 26px; height: 26px; color: #fff; fill: #fff; stroke: #fff; margin-left: 3px; }
.mp-play b { font-size: .98rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { .mp-panel.is-popup { animation: none; } }
@media (max-width: 768px) {
  .mp-fab { left: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 16px 0 12px; }
  .mp-panel { left: 12px; bottom: calc(126px + env(safe-area-inset-bottom)); }
}
@media (max-width: 768px) {
  .bottom-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(61,13,31,.12); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-weight: 700; font-size: .92rem; color: var(--c-primary-deep); text-decoration: none; }
  .bottom-bar a:first-child { background: var(--c-primary); color: #fff; }
  body { padding-bottom: 66px; }
}

/* ---------- 12. 검색 ---------- */
.search-overlay { position: fixed; inset: 0; background: rgba(42,8,20,.62); z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 72px 16px 16px; }
.search-overlay.is-open { display: flex; }
.search-box { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; padding: 20px; box-shadow: var(--shadow-2); max-height: 82vh; overflow: auto; }
.search-top { display: flex; gap: 8px; align-items: center; }
.search-top input { flex: 1; min-height: 52px; padding: 0 16px; font: inherit; font-size: 1.1rem; border: 2px solid var(--c-primary); border-radius: 12px; }
.search-results { list-style: none; margin-top: 12px; }
.search-results a { display: block; padding: 12px; border-radius: 10px; color: var(--c-ink); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--c-primary-soft); }
.search-results small { display: block; color: var(--c-muted); }
.search-hint { color: var(--c-muted); margin: 14px 4px 0; }

/* ---------- 13. 공유하기 ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 20px; background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius); margin-top: 40px; }
.share__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: 6px; color: var(--c-primary-deep); }
.btn--kakao { background: #fee500; color: #191919; }
.btn--kakao:hover { background: #f4dc00; }
.share__status { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--c-ok); }

/* ---------- 13-2. 항목별 공유 버튼 · 안내 문구(토스트) ---------- */
.post-list > li { position: relative; }
.has-share .post-row { padding-right: 150px; }
.row-share { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-soft); font-size: .88rem; font-weight: 700; transition: background .15s, border-color .15s, color .15s; }
.row-share .ico { width: 18px; height: 18px; }
.row-share:hover, .row-share:focus-visible { background: #fee500; border-color: #fee500; color: #191919; }
.mission-card-wrap { position: relative; display: flex; }
.mission-card-wrap .mission-card { flex: 1; }
.row-share--card { top: 14px; right: 14px; border-color: transparent; background: rgba(255,255,255,.95); color: #191919; box-shadow: 0 2px 8px rgba(42,8,20,.28); }
.post-list > li.is-target { background: var(--c-beige); box-shadow: inset 4px 0 0 var(--c-gold); animation: target-fade 1.4s ease 5s forwards; }
@keyframes target-fade { to { background: transparent; box-shadow: inset 4px 0 0 transparent; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 350; max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 13px 20px; border-radius: 14px; background: #2a0a16; color: #fff; font-size: .95rem; text-align: center; box-shadow: var(--shadow-2); transition: opacity .2s, transform .2s; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 768px) { .toast { bottom: 84px; } }
@media (max-width: 760px) {
  .has-share .post-row { padding-right: 60px; }
  .row-share:not(.row-share--card) { width: 40px; padding: 0; justify-content: center; }
  .row-share:not(.row-share--card) span { display: none; }
}

/* ---------- 13-3. 시설안내: 층별 사진 모음 · 사진 크게 보기 ---------- */
.fac-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fac-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-soft); font-weight: 700; text-decoration: none; }
.fac-nav a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.fac { padding: 12px 0 44px; }
.fac + .fac { border-top: 1px solid var(--c-line); padding-top: 36px; }
.fac__head { display: flex; align-items: center; gap: 16px; margin: 20px 0 12px; flex-wrap: wrap; }
.fac__floor { display: inline-grid; place-items: center; min-width: 76px; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 1.1rem; }
.fac__head h2 { margin: 0; font-size: 1.5rem; }
.fac__desc { margin: 0 0 20px; color: var(--c-ink-soft); max-width: 46em; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fac--one .photo-grid { grid-template-columns: minmax(0, 560px); }
.photo-grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--c-bg-soft); box-shadow: var(--shadow-1); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.05); }
.photo-grid a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: .95rem; font-weight: 500; background: linear-gradient(180deg, rgba(42,8,20,0), rgba(42,8,20,.78)); }
/* 영상 재생창: 설교·묵상·쇼츠·행사 영상을 유튜브로 넘어가지 않고 이 페이지에서 바로 재생 */
.vm { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; background: rgba(20, 4, 10, .9); }
.vm[hidden] { display: none; }
.vm__panel { position: relative; width: min(960px, 100%); display: grid; gap: 12px; }
.vm__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.vm__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm.is-short .vm__panel { width: min(400px, 100%, calc((100vh - 170px) * 9 / 16)); }
.vm.is-short .vm__frame { aspect-ratio: 9 / 16; }
.vm__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; }
.vm__title { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm__yt { flex: none; }
.vm__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vm__close:hover, .vm__close:focus-visible { background: rgba(255, 255, 255, .34); }
.vm__close .ico { width: 22px; height: 22px; }
html.vm-open { overflow: hidden; }
@media (max-width: 768px) { .vm { padding: 52px 10px 12px; } .vm__bar { flex-wrap: wrap; } .vm__title { white-space: normal; } }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(20,4,10,.95); display: none; align-items: center; justify-content: center; padding: 64px 70px 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1200px; max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; background: #000; }
.lightbox figcaption { color: #fff; text-align: center; font-size: 1rem; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.32); }
.lb-btn .ico { width: 26px; height: 26px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fac--one .photo-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 8px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
}

/* ---------- 13-4. 연혁 첫 장 이미지 ---------- */
.history-intro { margin: 0 0 56px; }
.history-intro img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-2); background: var(--c-bg-soft); }

/* ---------- 14. 가로형 로고 폭 보정 ---------- */
@media (max-width: 1279px) {
  .brand-logo { height: 38px; }
  .main-nav > ul > li > a { padding: 0 11px; }
  .main-nav > ul > li > a::after { left: 11px; right: 11px; }
}
@media (max-width: 480px) { .brand-logo { height: 34px; } }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .section { padding: 56px 0; }
  .sermon-feature, .news-wrap, .two-col, .banner, .greeting, .book-detail { grid-template-columns: 1fr; }
  .banner { padding: 32px 24px; }
  .greeting__photo { max-width: 260px; }
  .book-detail .book-card { max-width: 280px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .slider-btns { display: none; }
}
@media (max-width: 760px) {
  /* 예배시간 카드: 모바일에서는 작고 간단하게 (이름 + 장소 / 시간) */
  .time-grid { grid-template-columns: 1fr; gap: 8px; }
  .time-card { padding: 11px 16px; border-top-width: 3px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
  .time-card__day { display: none; }
  .time-card h3 { grid-column: 1; margin: 0; font-size: .98rem; line-height: 1.35; }
  .time-card__time { grid-column: 2; grid-row: 1 / span 2; font-size: 1.2rem; text-align: right; white-space: nowrap; }
  .time-card__place { grid-column: 1; margin-top: 1px; font-size: .85rem; gap: 4px; }
  .time-card__place svg { width: 14px; height: 14px; }
  .quick { margin-top: -40px; }
  .quick-more { margin-top: 10px; }
  .hero { padding-bottom: 100px; }
  .mission-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .post-row { grid-template-columns: 1fr; gap: 4px; }
  .post-row .badge { justify-self: start; }
  .post-body { padding-left: 8px; }
  .floor-list li { grid-template-columns: 70px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .data-table thead { position: absolute; left: -9999px; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table tr { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .data-table td { border: 0; padding: 4px 16px; }
  .data-table td::before { content: attr(data-label) "  "; color: var(--c-muted); font-size: .85rem; margin-right: 6px; }
  .data-table .t-name { font-size: 1.1rem; }
  .data-table td.t-name::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* ---------- 실시간 통역 안내 팝업 (홈) ---------- */
html.ln-open { overflow: hidden; }
.ln { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; background: rgba(42, 8, 20, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: ln-fade .25s ease both; }
.ln[hidden] { display: none; }
.ln__panel { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(20, 3, 10, .5); padding-bottom: 18px; animation: ln-pop .35s cubic-bezier(.2, .8, .2, 1) both; }
.ln__x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.5rem; line-height: 1; }
.ln__x:hover { background: rgba(255, 255, 255, .32); }
.ln__top { padding: 28px 28px 22px; color: #fff; border-radius: 22px 22px 0 0;
  background: radial-gradient(420px 200px at 100% 0%, rgba(243, 220, 171, .28), rgba(243, 220, 171, 0) 70%), linear-gradient(135deg, #3d0d1f, #801237); }
.ln__live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.ln__live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a6e; animation: ln-pulse 1.6s infinite; }
.ln__top h2 { margin: 12px 0 8px; font-family: var(--f-serif); font-size: 1.6rem; color: #fff; }
.ln__top p { margin: 0; font-size: 1rem; line-height: 1.65; opacity: .96; }
.ln__top strong { color: var(--c-gold-light); }
.ln__langs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 18px 24px 4px; }
.ln__langs li { padding: 6px 14px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 700; font-size: .95rem; }
.ln__langs .is-more { background: var(--c-bg-soft); color: var(--c-ink-soft); }
.ln__steps { margin: 14px 0 0; padding: 0 26px 0 48px; display: grid; gap: 10px; color: var(--c-ink); font-size: .98rem; line-height: 1.65; }
.ln__steps li::marker { color: var(--c-primary); font-weight: 700; }
.ln__steps b { color: var(--c-primary-deep); }
.ln__channel { display: flex; align-items: center; gap: 10px; margin: 16px 24px 0; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--c-beige); }
.ln__channel span { font-size: .82rem; font-weight: 700; color: var(--c-gold-text); }
.ln__channel b { flex: 1; min-width: 0; font-size: 1.15rem; letter-spacing: .04em; color: var(--c-primary-deep); overflow-wrap: anywhere; }
.ln__copy { min-height: 36px; padding: 0 16px; border: 1.5px solid var(--c-primary); border-radius: 999px; background: #fff; color: var(--c-primary); font-weight: 700; font-size: .9rem; }
.ln__copy:hover { background: var(--c-primary-soft); }
.ln__go { display: flex; margin: 18px 24px 0; }
.ln__go .ico { fill: currentColor; stroke: none; width: 1.05em; height: 1.05em; }
.ln__foot { display: flex; justify-content: space-between; gap: 12px; margin: 10px 24px 0; }
.ln__skip, .ln__close { padding: 8px 4px; border: 0; background: none; color: var(--c-muted); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.ln__skip:hover, .ln__close:hover { color: var(--c-primary); }
.ln__tag { margin: 12px 24px 0; font-size: .78rem; text-align: center; color: var(--c-gold-text); }
@keyframes ln-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ln-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ln-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 110, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 90, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .ln, .ln__panel, .ln__live i { animation: none; } }
@media (max-width: 480px) {
  .ln { padding: 12px; }
  .ln__top { padding: 24px 22px 18px; }
  .ln__top h2 { font-size: 1.4rem; }
  .ln__langs { padding: 16px 18px 2px; }
  .ln__steps { padding: 0 20px 0 42px; font-size: .94rem; }
  .ln__channel, .ln__go, .ln__foot, .ln__tag { margin-left: 18px; margin-right: 18px; }
}