/* 우림교회 홈페이지 초안 — 2026-10-23 (색: 목사님 피드백, 짙은 자주 로고 기준) */

@font-face {
  font-family: "SUIT";
  src: url("../fonts/SUIT-Variable.woff2") format("woff2-variations"), url("../fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  /* 표어·제목용 부분 글꼴(Noto Serif KR, OFL). 사용 글자만 담았으므로 문구를 바꾸면 tools/subset-serif.mjs 로 다시 만든다. */
  font-family: "Urim Serif";
  src: url("../fonts/NotoSerifKR-Bold-subset.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  /* 말씀·문구용 보통 굵기 명조(같은 방식의 부분 글꼴) */
  font-family: "Urim Serif M";
  src: url("../fonts/NotoSerifKR-Medium-subset.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* 색 역할 (7차, 2026-11-10 목사님 피드백 ‘전체적으로 너무 어둡다’): 로고 자주를 팬톤 249 C 계열(화면용 근사값 #80276c)로
     한 단계 밝히고, 짙은 면(첫 화면 무대·말씀 모음 띠)도 같은 비율로 밝혔다. 이전 값(6차): 자주 #5b285c, 짙은 자주 #3d1c40.
     글자는 검정 대신 자주빛 먹색, 바탕은 아주 옅은 따뜻한 흰색, 금빛은 형광펜·작은 장식에만. */
  --paper: #fbf8f7;      /* 기본 바탕: 옅은 장밋빛이 살짝 도는 흰색 */
  --paper-2: #f6eef2;    /* 구역 구분 */
  --card: #ffffff;
  --ink: #2a2230;        /* 본문·제목: 자주빛 먹색(검정 대신) */
  --muted: #5c5163;
  --line: rgba(110, 40, 100, .12);
  --brand: #80276c;      /* 로고 자주(팬톤 249 C 계열): 제목 강조·주 버튼 */
  --brand-deep: #5e2052; /* 버튼 hover, 메뉴 시트 */
  --teal: #a85a9b;       /* 밝은 자주: 선·점·그림(이름은 예전 그대로) */
  --teal-text: #8a3c7d;  /* 작은 브랜드 글자(머리표) */
  --mint: #f0d2e8;       /* 어두운 면 위의 자주 강조 */
  --lime: #ecd6a6;       /* 금빛: 형광펜(표어·다음 예배 행)에만 */
  --gold: #b48d58;       /* 금빛 선(교회목표 막대·말씀 모음 머리표) */
  --charcoal: #52264f;   /* 짙은 자주 면(영상 연결 줄 등) — 6차 #2b1d2e 에서 밝힘 */
  --charcoal-2: #632f5f; /* 그 위 카드 */
  --gray: #585656;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
  --sans: "SUIT", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Urim Serif", "Noto Serif KR", "Nanum Myeongjo", serif;
  --serif-m: "Urim Serif M", "Noto Serif KR", "Nanum Myeongjo", serif;
}
@media (min-width: 960px) { :root { --header-h: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
/* 쪽 안 이동만 부드럽게: 다른 쪽에서 #구역 으로 들어올 때는 바로 그 자리에 도착(중간 구역을 훑지 않게) */
html.is-ready { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19.2px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 960px) { body { font-size: 20.4px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 공통 요소 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16.8px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--teal); transform-origin: left; transition: transform 1s var(--ease-out) .2s; }
.js .eyebrow[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
.eyebrow-light { color: var(--mint); }

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.section-title {
  margin-top: 14px;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.22; font-weight: 800; letter-spacing: -.035em;
}
.section-lead { margin-top: 18px; max-width: 32em; color: var(--muted); font-size: 1.06em; }
.note { color: var(--muted); font-size: 16.8px; line-height: 1.6; }
.serif { font-family: var(--serif); }
.serif-m { font-family: var(--serif-m); font-weight: 500; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid currentColor; border-radius: 999px;
  font-weight: 700; font-size: 18px; text-decoration: none;
  color: var(--brand-deep); background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.pill:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.pill:active { transform: scale(.97); }
.pill-solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-solid:hover { background: var(--brand-deep); }
.pill-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.pill-light:hover { background: #fff; border-color: #fff; color: var(--brand-deep); }
.pill .arrow { display: inline-block; transition: transform .35s var(--ease); }
.pill:hover .arrow { transform: translateX(4px); }
.yt { width: 20px; height: 20px; fill: currentColor; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(251, 248, 247, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; margin-right: auto; border-radius: 8px; }
/* 로고(2026-10-23 피드백으로 키움) */
.brand img { height: 48px; width: auto; transition: height .4s var(--ease); }
@media (min-width: 960px) { .brand img { height: 64px; } .is-scrolled .brand img { height: 54px; } }

.nav { position: relative; display: none; }
.nav > ul { display: flex; gap: 2px; }
.nav li { position: relative; }
.nav-top { display: block; padding: 10px 14px; font-weight: 600; font-size: 18px; text-decoration: none; color: var(--gray); border-radius: 10px; transition: color .25s; }
.nav-top:hover, .nav-top[aria-current="page"] { color: var(--brand-deep); }
.nav-top[aria-current="page"] { font-weight: 800; }
.nav-ink { position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; border-radius: 2px; background: var(--teal); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; }
/* 하위 메뉴: 아래로 8px 내려오며 나타남 (마우스·키보드 모두) */
.nav-sub {
  position: absolute; left: 50%; top: calc(100% + 6px); z-index: 5; min-width: 168px;
  padding: 8px; border-radius: 16px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 24px 44px -24px rgba(42, 30, 44, .45);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px);
  transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility 0s .25s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.has-sub.is-closed .nav-sub { opacity: 0; visibility: hidden; }
.nav-sub a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 16.8px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .25s var(--ease-out); }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--paper); color: var(--brand); transform: translateX(3px); }
.header-call { display: none; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--brand); padding: 8px 4px; }
.header-call svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (min-width: 960px) { .nav { display: block; } .header-call { display: inline-flex; } .menu-btn { display: none !important; } }
@media (min-width: 960px) and (max-width: 1180px) { .header-call { display: none; } .nav-top { padding: 10px 11px; } }

.menu-btn {
  position: relative; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px 0 14px;
  border: 0; border-radius: 999px; background: var(--brand-deep); color: #fff;
  font-weight: 700; font-size: 16.8px; cursor: pointer;
}
.menu-btn-lines { position: relative; width: 18px; height: 12px; }
.menu-btn-lines i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-btn-lines i:first-child { top: 2px; }
.menu-btn-lines i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] { background: var(--paper); color: var(--brand-deep); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { top: 5px; transform: rotate(-45deg); }

.menu-sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--brand-deep); color: #fff;
  clip-path: circle(0 at var(--mx, calc(100% - 50px)) var(--my, 32px));
  transition: clip-path .6s var(--ease-out);
  overflow-y: auto;
}
.menu-sheet[hidden] { display: none; }
.menu-sheet.is-open { clip-path: circle(150% at var(--mx, calc(100% - 50px)) var(--my, 32px)); }
/* 전체 메뉴: 분류를 누르면 하위 항목이 펼쳐진다. 현재 쪽 분류는 처음부터 펼침 */
.m-cats { display: grid; gap: 2px; }
.m-cat { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.menu-sheet.is-open .m-cat { opacity: 1; transform: none; }
.menu-sheet.is-open .m-cat:nth-child(2) { transition-delay: .06s; } .menu-sheet.is-open .m-cat:nth-child(3) { transition-delay: .1s; }
.menu-sheet.is-open .m-cat:nth-child(4) { transition-delay: .14s; } .menu-sheet.is-open .m-cat:nth-child(5) { transition-delay: .18s; }
.menu-sheet.is-open .m-cat:nth-child(6) { transition-delay: .22s; } .menu-sheet.is-open .m-cat:nth-child(7) { transition-delay: .26s; }
.m-cat-btn, .m-cat-link {
  display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 13px 0;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: none; color: #fff; text-align: left; text-decoration: none; cursor: pointer;
  font-size: clamp(26.4px, 7.7vw, 33.6px); font-weight: 800; letter-spacing: -.03em;
}
.m-cat-btn em, .m-cat-link em { font-style: normal; font-size: 14.4px; font-weight: 600; letter-spacing: .06em; color: var(--mint); opacity: .8; }
.m-cat-link[aria-current="page"] span:first-child, .m-cat-btn[aria-expanded="true"] span:first-child { color: var(--mint); }
.m-chev, .m-arrow { margin-left: auto; align-self: center; }
.m-arrow { font-size: 21.6px; color: rgba(255,255,255,.6); }
.m-chev { width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease-out); opacity: .7; }
.m-cat-btn[aria-expanded="true"] .m-chev { transform: translateY(2px) rotate(225deg); }
.m-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease-out), visibility 0s .4s; }
.m-sub.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.m-sub > ul { overflow: hidden; display: grid; padding-left: 4px; }
.m-sub a { display: block; padding: 10px 0 10px 14px; border-left: 2px solid rgba(240, 210, 232,.25); color: rgba(255,255,255,.86); font-size: 19.2px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, transform .3s var(--ease-out); }
.m-sub a:active, .m-sub a:hover { border-color: var(--mint); color: #fff; transform: translateX(4px); }
.menu-sheet-foot { margin-top: 36px; display: grid; gap: 6px; color: rgba(255,255,255,.78); font-size: 18px; opacity: 0; transition: opacity .5s .38s; }
.menu-sheet.is-open .menu-sheet-foot { opacity: 1; }
.menu-sheet-foot strong { color: #fff; }
.menu-sheet-foot .pill { margin-top: 14px; background: var(--paper); border-color: var(--paper); color: var(--brand-deep); }
body.menu-open { overflow: hidden; }
/* 헤더가 시트 위에 있어야 닫기 버튼을 누를 수 있다 */
body.menu-open .site-header { z-index: 60; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .brand { position: relative; z-index: 60; filter: brightness(0) invert(1); }

/* ---------- 첫 화면 ----------
   흰 무대 위에 실제 사진을 띄운다. 무대의 빛은 같은 사진을 흐리게 번진 것을 옅게 깔고,
   그 위를 쿨톤 그린 빛으로 덮어 사진 색이 바탕을 따뜻하게 물들이지 않게 한다. */
.hero { padding: 0 clamp(10px, 1.6vw, 24px) clamp(56px, 7vw, 88px); }
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1560px; margin: 0 auto;
  border-radius: clamp(26px, 3vw, 40px);
  background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.hero-stage::before {
  /* 로고의 원형을 따른 장식 링: 로고 청록 선 한 줄 */
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  width: clamp(320px, 46vw, 680px); aspect-ratio: 1; right: -12%; top: -34%;
  border: 1.5px solid rgba(168, 90, 155, .38); border-radius: 50%;
  transform: translate3d(0, var(--ring-y, 0), 0);
}
.stage-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.stage-bg img {
  position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none;
  object-fit: cover; filter: blur(56px) brightness(1.4) saturate(.9); opacity: .32;
  transform: scale(var(--bg-scale, 1.08));
}
.stage-bg::after {
  /* 글자가 놓이는 위쪽은 크림으로 충분히 덮어 읽기 좋게, 아래로 갈수록 사진 빛이 드러난다 */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(168, 90, 155, .10), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(240, 210, 232, .28), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .84) 34%, rgba(251, 248, 247, .62) 70%, rgba(246, 239, 241, .8) 100%);
}
.stage-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(26px, 4vw, 48px) clamp(16px, 3.4vw, 56px) clamp(18px, 3vw, 40px);
}
.stage-top { display: grid; gap: 16px; }
.hero-title {
  margin-top: 14px;
  white-space: nowrap;
  font-size: clamp(48px, 13.4vw, 104px);
  line-height: 1.12; font-weight: 700; letter-spacing: -.045em;
  color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--brand); }
/* 관리자가 큰 제목을 길게 바꾸면(가장 긴 줄 7자 이상 · 9자 이상) 한 화면 폭 안에 들도록 글자를 줄인다 */
.hero-title.fit-m { font-size: clamp(40px, 10.6vw, 88px); }
.hero-title.fit-l { font-size: clamp(34px, 8.6vw, 76px); }
/* 명조 부분 글꼴에 없는 글자가 들어간 제목은 제목 전체를 시스템 명조로(한 줄 안에서 글꼴이 섞이지 않게) */
.serif-alt, .serif-alt * { font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif; }
/* 사진 초점(관리자): 틀에 맞춰 잘릴 때 남길 부분 */
[data-pos="top"] > img { object-position: 50% 15%; }
[data-pos="bottom"] > img { object-position: 50% 85%; }
.hero-lead { font-size: clamp(19.2px, 1.8vw, 22.8px); color: var(--muted); line-height: 1.7; }

.hero-photo { position: relative; margin: 0 -6px; perspective: 1400px; }
.hero-photo-frame {
  position: relative;
  aspect-ratio: 1600 / 829; /* 원본 비율: 어떤 화면에서도 인물이 잘리지 않게 */
  border-radius: clamp(16px, 2vw, 26px); overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px rgba(42, 30, 44, .08), 0 34px 70px -34px rgba(52, 22, 50, .45), 0 10px 24px -14px rgba(42, 30, 44, .3);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .9s var(--ease-out);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--hero-scale, 1)); }
/* 휴대폰: 사진 위를 가리지 않도록 사진 아래 한 줄에 */
.hero-photo { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 10px; }
.hero-photo-frame { grid-column: 1 / -1; }
.hero-photo figcaption { padding-left: 6px; font-size: 15.6px; color: #3b2f40; } /* 무대 아래쪽 사진 빛 위라 본문 회색보다 진하게 */
.photo-zoom {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 15.6px; font-weight: 600; cursor: zoom-in;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.photo-zoom:hover { border-color: var(--brand); }
html:not(.js) .photo-zoom { display: none; } /* 크게 보기는 스크립트가 있어야 동작 */
.photo-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.hero-dock { display: grid; gap: 10px; }
.dock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dock-actions .pill { padding: 0 14px; }

.next-service {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px;
  padding: 12px 18px; border-radius: 18px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -20px rgba(42, 30, 44, .35);
  color: var(--ink); text-decoration: none; transition: box-shadow .35s var(--ease);
}
.next-service:hover { box-shadow: 0 0 0 1px rgba(128, 39, 108, .35), 0 16px 32px -20px rgba(42, 30, 44, .4); }
.next-service[hidden] { display: none; }
.next-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(168, 90, 155, .5); animation: pulse 2.4s infinite; }
.next-label { font-size: 15.6px; font-weight: 700; color: var(--teal-text); }
.next-name { font-weight: 800; }
.next-time { color: var(--muted); font-size: 18px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(168, 90, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 90, 155, 0); } }

@media (min-width: 960px) {
  .hero-stage { min-height: min(calc(100svh - var(--header-h) - 12px), 980px); display: flex; }
  .stage-inner { flex: 1; gap: 28px; }
  .stage-top { grid-template-columns: auto 1fr; align-items: end; gap: 48px; }
  .hero-title { font-size: clamp(56px, min(6.2vw, 11svh), 96px); }
  .hero-title.fit-m { font-size: clamp(46px, min(4.6vw, 9svh), 78px); }
  .hero-title.fit-l { font-size: clamp(40px, min(3.8vw, 8svh), 64px); white-space: normal; }
  .hero-title .line { display: inline-block; margin-right: .26em; }
  .hero-lead { justify-self: end; text-align: right; padding-bottom: .5em; }
  /* 첫 화면 안에 사진 전체와 안내가 함께 보이도록 높이 기준으로 폭을 정한다 */
  .hero-photo { margin: auto; width: min(100%, calc((100svh - var(--header-h) - 320px) * 1.93)); min-width: min(100%, 680px); }
  .hero-dock {
    position: relative; z-index: 3;
    margin: -48px auto 0; padding: 8px;
    display: flex; align-items: center; gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .7);
    backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 0 0 1px var(--line), 0 22px 44px -22px rgba(42, 30, 44, .45);
  }
  .hero-dock .next-service { background: none; box-shadow: none; padding: 8px 18px 8px 16px; border-radius: 999px; }
  .hero-dock .next-service:hover { background: var(--paper); }
  .dock-actions { display: flex; }
  .dock-actions .pill { padding: 0 22px; }
  /* 넓은 화면: 사진 위쪽 천장 부분에 작은 칩으로 */
  .hero-photo { display: block; }
  .hero-photo figcaption, .photo-zoom {
    position: absolute; top: 16px; z-index: 2;
    min-height: 0; padding: 6px 13px; border-radius: 999px; border: 0;
    background: rgba(30, 20, 30, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: #fff; font-size: 15.6px; font-weight: 600; line-height: 1.5;
  }
  .photo-zoom:hover { background: rgba(30, 20, 30, .75); }
  .hero-photo figcaption { left: 16px; }
  .photo-zoom { right: 16px; }
}

/* 사진 크게 보기 */
.photo-view {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #1d1220; color: #fff;
}
.photo-view[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.photo-view::backdrop { background: rgba(28, 14, 28, .7); }
.photo-view-scroll { width: 100%; overflow-x: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.photo-view-scroll img { height: min(64svh, 640px); width: auto; max-width: none; margin: 0 auto; }
.photo-view-hint { padding: 0 0 calc(56px + env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .7); font-size: 16.8px; }
.photo-view-close {
  position: fixed; right: 16px; top: 16px; z-index: 2;
  height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 800; cursor: pointer;
}
@media (min-width: 960px) {
  .photo-view-scroll img { height: auto; width: auto; max-width: min(92vw, 1600px); max-height: 86svh; } /* 어떤 비율의 사진도 화면 안에 */
  .photo-view-hint { display: none; }
}
body.photo-open { overflow: hidden; }

/* 첫 등장: 로고의 원형에서 사진이 펼쳐지고, 배경 빛이 천천히 숨쉰다 */
.js .hero-photo-frame { clip-path: circle(14% at 50% 52%); transition: clip-path 1.5s var(--ease-out) .25s, transform .9s var(--ease-out); }
.js .hero-photo-frame img { --hero-scale: 1.18; transition: transform 2.2s var(--ease-out) .25s; }
.js .is-loaded .hero-photo-frame { clip-path: circle(75% at 50% 52%); }
.js .is-loaded .hero-photo-frame img { --hero-scale: 1; }
.js .stage-bg img { opacity: 0; transition: opacity 1.6s var(--ease-out); }
.js .is-loaded .stage-bg img { opacity: .32; animation: breathe 22s ease-in-out 1.6s infinite alternate; }
@keyframes breathe { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-2%, 1.5%, 0); } }

/* 줄 단위 마스크 등장 */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.js .line[data-reveal] > span { transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease-out) var(--d, 0s); }
.js .line[data-reveal].is-in > span { transform: none; }

/* ---------- 표어 ----------
   어두운 첫 화면 바로 뒤라 밝은 종이 위 선포로 리듬을 바꾼다. 라임은 형광펜처럼 글자 뒤에만. */
.motto { position: relative; isolation: isolate; padding: clamp(72px, 10vw, 132px) 0; overflow: hidden; text-align: center; }
.motto::after {
  content: ""; position: absolute; z-index: -1; width: min(86vw, 760px); aspect-ratio: 1; left: 50%; top: 50%;
  margin: calc(min(86vw, 760px) / -2) 0 0 calc(min(86vw, 760px) / -2);
  border-radius: 50%; border: 1.5px solid rgba(168, 90, 155, .22);
  transform: translate3d(0, var(--motto-y, 0), 0);
}
.motto .eyebrow { justify-content: center; }
.motto-title { margin-top: 22px; font-size: clamp(32px, 6.6vw, 72px); line-height: 1.35; letter-spacing: -.04em; font-weight: 700; color: var(--brand-deep); }
.motto-title mark {
  color: var(--brand-deep); padding: 0 .08em;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 88% / 100% .42em;
  transition: background-size 1.2s var(--ease-out) .5s;
}
.js .motto-title .line:not(.is-in) mark { background-size: 0% .42em; }
.motto-steps { position: relative; z-index: 1; margin: clamp(40px, 5vw, 64px) auto 0; max-width: 920px; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .motto-steps { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.motto-steps li {
  display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20.4px, 2.3vw, 24px); font-weight: 700; color: var(--ink);
  transition: color .35s var(--ease), opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
@media (min-width: 760px) { .motto-steps li { border-bottom: 0; } .motto-steps li + li { border-left: 1px solid var(--line); } }
.motto-steps li:hover { color: var(--brand); }
.motto-steps small { color: var(--teal-text); font-size: 15.6px; letter-spacing: .06em; }

/* ---------- 교회소개 ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; column-gap: 72px; row-gap: 0; }
  .about-grid .section-head { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- 예배안내 ---------- */
.worship { background: var(--paper-2); }
.schedule { display: grid; gap: 16px; }
@media (min-width: 860px) { .schedule { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.day { background: var(--card); border-radius: var(--radius); padding: 26px 24px 14px; box-shadow: 0 1px 0 var(--line); }
.day h3 { font-size: 18px; font-weight: 800; color: var(--brand); padding-bottom: 14px; border-bottom: 2px solid var(--teal); }
.day li {
  position: relative; display: grid; grid-template-columns: 6.6em 1fr; gap: 12px; align-items: baseline;
  padding: 16px 10px; margin: 0 -10px; border-radius: 12px;
  transition: background-color .4s var(--ease);
}
.day li + li::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 1px; background: var(--line); }
.day li.is-next::before, .day li.is-next + li::before { opacity: 0; }
.day time { font-weight: 800; font-size: 20.4px; font-variant-numeric: tabular-nums; color: var(--brand-deep); white-space: nowrap; }
.day span { font-weight: 600; }
.day small { display: block; font-size: 15.6px; color: var(--muted); font-weight: 500; }
.day li.is-next { background: rgba(236, 214, 166, .45); }
.day li.is-next::after { content: "다음 예배"; position: absolute; right: 10px; top: -9px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13.2px; font-weight: 700; }

/* ---------- 공동체 ---------- */
.feature { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 1px 0 var(--line); }
@media (min-width: 960px) { .feature { grid-template-columns: 7fr 4fr; } }
.feature-photo { position: relative; overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; aspect-ratio: 1200 / 481; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (min-width: 960px) { .feature-photo img { aspect-ratio: auto; min-height: 340px; } }
.feature:hover .feature-photo img { transform: scale(1.04); }
.feature-photo figcaption { position: absolute; left: 14px; top: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(94, 32, 82,.72); color: #fff; font-size: 14.4px; }
.feature-copy { padding: clamp(24px, 4vw, 44px); align-self: center; }
.feature-copy h2, .groups h2 { font-size: clamp(25.2px, 2.9vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.feature-copy p { margin-top: 10px; color: var(--muted); }
.meta { margin-top: 16px !important; font-size: 16.8px; font-weight: 700; color: var(--brand) !important; }

.groups { margin-top: 20px; display: grid; gap: 16px; }
@media (min-width: 680px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .groups { grid-template-columns: repeat(3, 1fr); } .groups li:first-child { grid-column: span 2; } }
.groups li {
  position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--card);
  box-shadow: 0 1px 0 var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease-out);
}
.groups li::before { content: ""; position: absolute; left: 24px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal); transition: width .5s var(--ease-out); }
.groups li:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 22px 40px -26px rgba(94, 32, 82,.4); }
.groups li:hover::before { width: calc(100% - 48px); }
.groups p { margin-top: 10px; color: var(--muted); font-size: .96em; }

/* ---------- 말씀영상 ---------- */
.media { background: var(--charcoal); color: #fff; }
.media .section-title { color: #fff; }
.media-lead { margin-top: -28px; margin-bottom: 36px; color: rgba(255,255,255,.72); }
.videos { display: grid; gap: 14px; }
@media (min-width: 860px) { .videos { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.videos a {
  position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 24px;
  border-radius: var(--radius); text-decoration: none; overflow: hidden;
  background: linear-gradient(150deg, rgba(168, 90, 155, .16), rgba(168, 90, 155, 0) 60%), #5b2a57;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
/* 영상 종류별로 다른 선 그림과 빛 방향: 세 카드가 한눈에 구분되도록 */
.video-art { position: absolute; right: 18px; top: 18px; width: 76px; height: 76px; fill: none; stroke: rgba(240, 210, 232, .6); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease-out), stroke .4s; }
.videos a:hover .video-art { transform: translateY(-4px) rotate(-4deg); stroke: var(--mint); }
.videos li:nth-child(2) a { background: linear-gradient(200deg, rgba(236, 214, 166, .10), rgba(236, 214, 166, 0) 55%), #5b2a57; }
.videos li:nth-child(3) a { background: linear-gradient(110deg, rgba(168, 90, 155, .22), rgba(168, 90, 155, 0) 65%), #5b2a57; }
.videos a::before { content: ""; position: absolute; width: 220px; aspect-ratio: 1; right: -70px; bottom: -90px; border-radius: 50%; border: 1.5px solid rgba(240, 210, 232, .16); transition: transform .8s var(--ease-out); }
.videos a:hover { transform: translateY(-4px); border-color: rgba(240, 210, 232, .4); }
.videos a:hover::before { transform: scale(1.25); }
.video-kind { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(240, 210, 232, .12); color: var(--mint); font-size: 14.4px; font-weight: 700; }
.videos strong { margin-top: 18px; font-size: clamp(26.4px, 2.9vw, 31.2px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.video-meta { margin-top: auto; padding-top: 18px; color: rgba(255,255,255,.66); font-size: 16.8px; }
.play { position: absolute; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); transition: transform .45s var(--ease-out); }
.play::after { content: ""; position: absolute; left: 19px; top: 15px; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.videos a:hover .play { transform: scale(1.12); }

/* ---------- 오시는 길 ---------- */
.visit-grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .visit-grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } .visit-grid .section-head { margin-bottom: 0; } }
.visit-card { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 0 1px 0 var(--line), 0 24px 48px -36px rgba(94, 32, 82,.5); }
.label { display: block; font-size: 15.6px; font-weight: 700; color: var(--muted); }
.addr { margin-top: 6px; font-size: clamp(22.8px, 2.9vw, 27.6px); font-weight: 800; line-height: 1.5; letter-spacing: -.02em; }
.copy-btn { position: relative; margin-top: 14px; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 16.8px; font-weight: 700; cursor: pointer; overflow: hidden; transition: background-color .3s; }
.copy-btn:hover { background: var(--paper-2); }
.copy-btn span { display: block; transition: transform .4s var(--ease-out), opacity .3s; }
.copy-done { position: absolute; inset: 0; display: grid !important; place-items: center; transform: translateY(100%); opacity: 0; color: var(--brand); }
.copy-btn.is-done .copy-idle { transform: translateY(-100%); opacity: 0; }
.copy-btn.is-done .copy-done { transform: none; opacity: 1; }
.visit-list { margin-top: 26px; border-top: 1px solid var(--line); }
.visit-list li { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.visit-list .label { padding-top: 2px; }
.visit-list a { color: var(--brand); font-weight: 800; }
.map-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.map-links .pill { flex: 1 1 140px; }

/* ---------- 푸터 ---------- */
/* 바닥 글자: 검정 대신 로고 자주 계열(2026-10-23 피드백) */
.site-footer { background: var(--paper-2); padding: 56px 0 calc(56px + env(safe-area-inset-bottom)); font-size: 16.8px; color: var(--teal-text); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: auto 1fr auto; gap: 48px; align-items: start; } }
.footer-logo { height: 54px; width: auto; }
.footer-info { display: grid; gap: 2px; }
.footer-info strong { color: var(--brand-deep); }
.footer-info a { color: var(--brand); font-weight: 700; }
.footer-draft { align-self: start; padding: 6px 12px; border: 1px dashed var(--teal-text); border-radius: 10px; color: var(--brand); font-weight: 700; font-size: 15.6px; }

/* ---------- 모바일 빠른 메뉴 ---------- */
.quickbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px; border-radius: 20px;
  background: rgba(94, 32, 82, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.45);
  transform: translateY(calc(100% + 24px)); transition: transform .55s var(--ease-out);
}
.quickbar.is-shown { transform: none; }
body.menu-open .quickbar { transform: translateY(calc(100% + 24px)); }
.quickbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 14px; color: #fff; font-size: 14.4px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .25s; }
.quickbar a:active, .quickbar a.is-active { background: rgba(240, 210, 232, .16); color: var(--mint); }
.quickbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) { .quickbar { display: none; } }
/* 모바일: 마지막 줄(관리자 입구)이 빠른 메뉴·맨 위로 단추에 가리지 않게 */
@media (max-width: 959px) { .site-footer { padding-bottom: calc(160px + env(safe-area-inset-bottom)); } }

/* ---------- 바닥 메뉴 ---------- */
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); } .footer-draft { grid-column: 1 / -1; justify-self: start; } }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-motto { color: var(--brand); font-weight: 600; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 28px; }
.footer-nav a { color: var(--brand-deep); font-weight: 600; text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 100% / 0 1.5px; transition: background-size .35s var(--ease-out); }
.footer-nav a:hover, .footer-nav a:focus-visible { background-size: 100% 1.5px; }

/* 바닥 끝 줄: 초안 표시 + 작은 관리자 입구(눈에 띄지 않게, 찾으면 바로) */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .footer-bottom { grid-column: 1 / -1; } }
.footer-bottom .footer-draft { grid-column: auto; }
@media (max-width: 959px) { .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; } }
.footer-admin, .sheet-admin { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 4px; font-size: 15.6px; font-weight: 600; text-decoration: none; border-radius: 8px; transition: color .25s; }
.footer-admin { color: var(--muted); }
.footer-admin svg, .sheet-admin svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.footer-admin:hover, .footer-admin:focus-visible { color: var(--brand); }
.footer-admin:hover svg, .sheet-admin:hover svg { transform: translateY(-1px) rotate(-6deg); }
.sheet-admin { justify-self: center; margin-top: 10px; color: rgba(255,255,255,.62); }
.sheet-admin:hover, .sheet-admin:focus-visible { color: var(--mint); }

/* ---------- 공통: 글 링크 · 칩 · 빈 상태 ---------- */
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 18px; color: var(--brand); text-decoration: none; }
.text-link span { display: inline-block; transition: transform .35s var(--ease-out); }
.text-link:hover span, .text-link:focus-visible span { transform: translateX(5px); }
.text-link.center { display: flex; justify-content: center; margin-top: 36px; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: rgba(128, 39, 108, .08); color: var(--brand); font-size: 14.4px; font-weight: 700; line-height: 1.8; }
.chip-pin { background: var(--brand); color: #fff; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 48px 20px; border: 1.5px dashed rgba(42, 30, 44, .16); border-radius: var(--radius); text-align: center; }
.empty svg { width: 48px; height: 48px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; margin-bottom: 6px; }
.empty-title { font-weight: 800; font-size: 20.4px; }
.empty-desc { color: var(--muted); font-size: 16.8px; }
.empty .pill { margin-top: 12px; }
.media .empty { border-color: rgba(255,255,255,.18); }
.media .empty-desc { color: rgba(255,255,255,.7); }
.muted { color: var(--muted); }
.narrow { max-width: calc(880px + var(--gutter) * 2); }

/* ---------- 하위 쪽 머리 ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-head-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 92% 0%, rgba(168, 90, 155, .12), transparent 70%),
  radial-gradient(40% 60% at 0% 100%, rgba(240, 210, 232, .3), transparent 70%); }
.page-head-bg::after {
  /* 로고의 원: 쪽에 들어오면 선이 그려진다 */
  content: ""; position: absolute; right: -8%; top: -60%; width: clamp(280px, 40vw, 560px); aspect-ratio: 1;
  border: 1.5px solid rgba(168, 90, 155, .35); border-radius: 50%;
  transform: scale(var(--ring-s, 1)); transition: transform 1.6s var(--ease-out), opacity 1.2s;
}
.js .page-head-bg::after { --ring-s: .7; opacity: 0; }
.js .page-head:has(.crumbs.is-in) .page-head-bg::after { --ring-s: 1; opacity: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15.6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head .eyebrow { margin-top: 18px; }
.page-title { margin-top: 12px; font-size: clamp(36px, 7vw, 68px); line-height: 1.18; letter-spacing: -.04em; font-weight: 700; color: var(--ink); }
.page-lead { margin-top: 14px; max-width: 34em; color: var(--muted); font-size: clamp(19.2px, 1.9vw, 21.6px); }
.page-tabs { position: relative; margin-top: clamp(26px, 4vw, 40px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.page-tabs ul { display: flex; gap: 4px; }
.page-tabs a { display: block; padding: 12px 14px; white-space: nowrap; font-weight: 700; font-size: 18px; color: var(--muted); text-decoration: none; transition: color .25s; }
.page-tabs a:hover, .page-tabs a[aria-current] { color: var(--brand-deep); }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--brand); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; }
.page-plain .page-head, .page-detail .page-head { display: none; }

/* ---------- 홈: 구역 점 이동 ---------- */
.dots { display: none; }
@media (min-width: 1240px) and (hover: hover) {
  .dots { display: block; position: fixed; left: 22px; top: 50%; z-index: 20; transform: translateY(-50%); }
  .dots ol { display: grid; gap: 4px; }
  .dots a { position: relative; display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 6px; color: var(--muted); text-decoration: none; font-size: 14.4px; font-weight: 700; }
  .dots a::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; opacity: .45; transition: height .45s var(--ease-out), opacity .3s, background-color .3s; }
  .dots a span { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--ease-out); }
  .dots a:hover span, .dots a:focus-visible span, .dots a.is-active span { opacity: 1; transform: none; }
  .dots a.is-active { color: var(--brand); }
  .dots a.is-active::before { height: 20px; opacity: 1; background: var(--teal); }
  .dots.on-dark a { color: rgba(255,255,255,.7); }
  .dots.on-dark a.is-active { color: var(--mint); }
}

/* ---------- 홈: 지금, 우림교회 ---------- */
.now { padding-top: clamp(24px, 4vw, 48px); }
.now-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .now-grid { grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; } }
.now-card { position: relative; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.now-side { display: grid; gap: 16px; }
.now-label { font-size: 15.6px; font-weight: 800; letter-spacing: .04em; color: var(--teal-text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.now-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.feature-text { display: grid; gap: 4px; margin-top: 16px; justify-items: start; }
.feature-title { font-size: clamp(24px, 2.6vw, 28.8px); letter-spacing: -.03em; line-height: 1.35; }
.feature-title a { text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 100% / 0 2px; transition: background-size .4s var(--ease-out); }
.feature-title a:hover { background-size: 100% 2px; }
.feature-meta { color: var(--muted); font-size: 16.8px; }
.now-card .text-link { margin-top: auto; padding-top: 16px; }
.next-service-inline { box-shadow: none; padding: 0; background: none; margin-bottom: 12px; }
.mini-schedule { display: grid; border-top: 1px solid var(--line); }
.mini-schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.mini-schedule b { font-variant-numeric: tabular-nums; color: var(--brand-deep); white-space: nowrap; }
.n-list { display: grid; border-top: 1px solid var(--line); }
.n-row a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .25s, padding .35s var(--ease-out); }
.n-row a:hover, .n-row a:focus-visible { background: var(--paper); padding-left: 12px; }
.n-row time { font-size: 15.6px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.n-main { display: grid; gap: 2px; min-width: 0; }
.n-main .chip { justify-self: start; margin-bottom: 2px; }
.n-main strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.n-excerpt { font-size: 16.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-arrow { color: var(--brand); transition: transform .35s var(--ease-out); }
.n-row a:hover .n-arrow { transform: translateX(5px); }
.now-news .empty { padding: 28px 16px; }

/* ---------- 영상 카드 · 재생기 ---------- */
.v-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .v-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .v-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.v-card-link { display: grid; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.v-card-link:hover, .v-card-link:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(128, 39, 108, .25), 0 26px 44px -28px rgba(42, 30, 44, .5); }
.v-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, #6a2f66, #4b2048); }
.v-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.v-card-link:hover .v-thumb img { transform: scale(1.05); }
.v-thumb-art { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -55%); fill: none; stroke: rgba(240, 210, 232, .5); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v-play { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); transition: transform .45s var(--ease-out); }
.v-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.v-card-link:hover .v-play { transform: scale(1.12); }
.v-body { display: grid; gap: 6px; align-content: start; padding: 18px 20px 22px; }
.v-kind { justify-self: start; padding: 2px 10px; border-radius: 999px; background: rgba(128, 39, 108, .08); color: var(--brand); font-size: 14.4px; font-weight: 700; }
.v-title { font-size: clamp(21.6px, 2.2vw, 25.2px); letter-spacing: -.03em; line-height: 1.35; color: var(--ink); }
.v-meta { font-size: 16.8px; color: var(--muted); }
.v-grid-dark .v-card-link { background: var(--charcoal-2); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.v-grid-dark .v-card-link:hover { box-shadow: 0 0 0 1px rgba(240, 210, 232, .4), 0 26px 44px -28px rgba(0,0,0,.7); }
.v-grid-dark .v-kind { background: rgba(240, 210, 232, .12); color: var(--mint); }
.v-kind-tag { margin-left: 4px; padding-left: 7px; border-left: 1px solid currentColor; font-weight: 600; }
.chip-kind { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.v-grid-dark .v-title { color: #fff; }
.v-grid-dark .v-meta { color: rgba(255,255,255,.7); }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2vw, 22px); overflow: hidden; background: #1d1220; box-shadow: 0 30px 60px -36px rgba(42, 30, 44, .7); }
.player.is-short { aspect-ratio: 9 / 16; width: min(100%, 400px, 78vh * 9 / 16); margin-inline: auto; } /* 쇼츠는 세로 화면: 화면 높이 안에 들게 */
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; animation: player-in .6s var(--ease-out) .1s forwards; }
@keyframes player-in { to { opacity: 1; } }
.player-poster { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: linear-gradient(150deg, #6a2f66, #4b2048); cursor: pointer; color: #fff; transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
.player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.player-poster:hover img, .player-poster:focus-visible img { transform: scale(1.04); filter: brightness(.85); }
.player-art { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -60%); fill: none; stroke: rgba(240, 210, 232, .45); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.player-play { position: relative; width: clamp(64px, 9vw, 84px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 16px 36px -12px rgba(0,0,0,.55); transition: transform .45s var(--ease-out); }
.player-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); animation: ring-pulse 2.6s var(--ease-out) infinite; }
.player-play::after { content: ""; position: absolute; left: 40%; top: 50%; transform: translateY(-50%); border-left: 20px solid var(--brand); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
@keyframes ring-pulse { 0% { transform: scale(.9); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.player-poster:hover .player-play, .player-poster:focus-visible .player-play { transform: scale(1.08); }
.player-label { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: rgba(30, 20, 30, .6); font-size: 15.6px; font-weight: 700; }
.player.is-playing .player-poster { opacity: 0; transform: scale(1.03); pointer-events: none; }
.player-alt { margin-top: 10px; font-size: 15.6px; text-align: right; }
.player-alt a { color: var(--muted); }

/* ---------- 목록 도구 ---------- */
.sermons, .news { padding-top: clamp(28px, 4vw, 48px); }
.v-thumb img.is-broken, .player-poster img.is-broken { display: none; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 700; font-size: 16.8px; color: var(--ink); text-decoration: none; transition: background-color .25s, color .25s, box-shadow .25s, transform .3s var(--ease-out); }
.filter-chip small { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-chip:hover { box-shadow: 0 0 0 1px var(--brand); }
.filter-chip:active { transform: scale(.96); }
.filter-chip[aria-current] { background: var(--brand); color: #fff; box-shadow: none; }
.filter-chip[aria-current] small { color: rgba(255,255,255,.75); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.filter-label { min-width: 2.6em; font-size: 15.6px; font-weight: 700; color: var(--muted); }
.search { display: flex; align-items: center; min-width: min(100%, 320px); border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.search:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0 6px 0 18px; border: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); outline: none; }
.search button { height: 36px; margin-right: 4px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 16.8px; cursor: pointer; }
.pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pages a, .pages span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.pages a { color: var(--ink); box-shadow: 0 0 0 1px var(--line); transition: background-color .2s; }
.pages a:hover { background: var(--card); }
.pages span[aria-current] { background: var(--brand); color: #fff; }
.pages .pages-gap { min-width: 18px; color: var(--muted); }
.channel-link { margin-top: 36px; text-align: center; }
.channel-link a { color: var(--brand); font-weight: 700; }

/* ---------- 상세 ---------- */
.detail { padding-top: clamp(32px, 5vw, 64px); }
.detail-head { margin: 18px 0 clamp(24px, 3vw, 36px); }
.detail-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 16.8px; }
.detail-title { margin-top: 12px; font-size: clamp(30px, 5vw, 52px); line-height: 1.22; letter-spacing: -.04em; font-weight: 800; }
.detail-meta { margin-top: 10px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.pager a, .pager > span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; min-width: 0; }
.pager a { background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease-out), box-shadow .3s; }
.pager a:hover { box-shadow: 0 0 0 1px var(--brand); }
.pager-prev:hover { transform: translateX(-3px); } .pager-next:hover { transform: translateX(3px); }
.pager small { font-size: 14.4px; font-weight: 700; color: var(--teal-text); }
.pager span span, .pager a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pager .is-empty { color: var(--muted); }
.pager .is-empty span { font-weight: 500; }
.pager-next { text-align: right; }
.pager-list { display: grid !important; place-items: center; padding: 0 22px !important; font-weight: 800; color: var(--brand); }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } .pager-list { grid-column: 1 / -1; grid-row: 2; padding: 12px !important; } }
.related { margin-top: clamp(48px, 6vw, 80px); }
.sub-title { font-size: clamp(26.4px, 3.1vw, 33.6px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.prose { font-size: 20.4px; line-height: 1.85; }
.prose p + p { margin-top: 1em; }

/* ---------- 교회소개 ---------- */
.about-vision { padding-top: clamp(48px, 6vw, 80px); }
.motto-page { background: var(--paper-2); }
.pastor-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .pastor-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; } .pastor-grid .section-head { margin-bottom: 0; } }
.pastor-body { display: grid; gap: 18px; align-content: start; }
.greeting { padding: 26px 28px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.greeting-label { font-size: 15.6px; font-weight: 800; color: var(--teal-text); margin-bottom: 10px !important; }
.video-link { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--charcoal); color: #fff; text-decoration: none; transition: transform .35s var(--ease-out); }
.video-link:hover { transform: translateY(-3px); }
.video-link-icon { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); }
.video-link-icon::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video-link span { display: grid; }
.video-link small { color: rgba(255,255,255,.7); font-size: 16.8px; }
.history-sec { background: var(--paper-2); }
.timeline { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: rgba(168, 90, 155, .3); transform-origin: top; }
.js .timeline::before { transform: scaleY(0); transition: transform 1.8s var(--ease-out) .2s; }
.js .timeline:has(li.is-in)::before { transform: none; }
.timeline li { position: relative; display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--teal); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 7em 1fr 220px; align-items: center; } }
.timeline time { font-size: 24px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 22.8px; font-weight: 800; }
.timeline p { color: var(--muted); font-size: 18px; margin-top: 4px; }
.timeline img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 예배 안내 ---------- */
.worship-side { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 860px) { .worship-side { justify-items: end; text-align: right; } }
.next-service-lg { padding: 16px 22px; }
.place-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .place-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; } .place-grid .section-head { margin-bottom: 0; } }
.link-cards { display: grid; gap: 12px; }
.link-cards a { position: relative; display: grid; gap: 2px; padding: 20px 56px 20px 22px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .3s; }
.link-cards a:hover, .link-cards a:focus-visible { transform: translateX(4px); box-shadow: 0 0 0 1px var(--brand); }
.link-cards strong { font-size: 21.6px; }
.link-cards span { color: var(--muted); font-size: 16.8px; }
.link-cards i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--brand); font-weight: 700; transition: transform .35s var(--ease-out); }
.link-cards a:hover i { transform: translate(4px, -50%); }

/* 다음 예배 행: 형광펜이 왼쪽에서 그어지듯 */
.day li.is-next { background: linear-gradient(rgba(236, 214, 166, .55), rgba(236, 214, 166, .55)) no-repeat 0 0 / 100% 100%; }
.js .day[data-reveal]:not(.is-in) li.is-next { background-size: 0% 100%; }
.day li { transition: background-size 1s var(--ease-out) .5s, background-color .4s var(--ease); }

/* ---------- 홈: 공동체 · 오시는 길 ---------- */
.hc-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .hc-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; } }
.hc-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.hc-photo img { width: 100%; aspect-ratio: 1200 / 481; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.hc-photo:hover img { transform: scale(1.04); }
.hc-photo figcaption { position: absolute; left: 14px; top: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(30, 20, 30, .6); color: #fff; font-size: 14.4px; }
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-links a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 700; font-size: 16.8px; text-decoration: none; transition: box-shadow .25s, color .25s, transform .3s var(--ease-out); }
.tag-links a:hover, .tag-links a:focus-visible { box-shadow: 0 0 0 1px var(--brand); color: var(--brand); transform: translateY(-2px); }
.home-visit { padding-top: 0; }
.hv-card { display: grid; gap: 28px; padding: clamp(26px, 4vw, 48px); border-radius: clamp(24px, 3vw, 36px); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 960px) { .hv-card { grid-template-columns: 1fr 1.1fr; align-items: center; column-gap: 56px; } .hv-actions { grid-column: 1 / -1; } }
.hv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.route::before { content: ""; position: absolute; left: 12%; right: 12%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px); transform-origin: left; }
.js .route::before { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .3s; }
.js .route:has(li.is-in)::before { transform: none; }
.route li { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; padding-top: 52px; }
.route li::before { content: ""; position: absolute; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--teal); }
.route li:last-child::before { background: var(--teal); box-shadow: 0 0 0 6px rgba(168, 90, 155, .18); }
.route b { font-size: clamp(18px, 1.9vw, 21.6px); }
.route span { font-size: 15.6px; color: var(--muted); }
.route-v { grid-template-columns: 1fr; gap: 0; }
.route-v::before { left: 10px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 14px); transform-origin: top; }
.js .route-v::before { transform: scaleY(0); }
.route-v li { justify-items: start; text-align: left; padding: 6px 0 26px 44px; }
.route-v li::before { top: 8px; left: 0; }
.route-v b { font-size: clamp(24px, 2.9vw, 31.2px); }
.route-v span { font-size: 18px; }
.visit-route { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--paper-2); }
.visit { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- 처음 오신 분 ---------- */
.steps { position: relative; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } .steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px); transform-origin: left; } .js .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; } .js .steps:has(li.is-in)::before { transform: none; } }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px 24px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.step-no { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 21.6px; transform: scale(var(--pop, 1)); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0s) + .2s); }
.js .steps li[data-reveal]:not(.is-in) .step-no { --pop: .4; }
.steps h3 { font-size: 24px; font-weight: 800; margin-top: 6px; }
.steps p { color: var(--muted); }
.steps p b { color: var(--ink); }
.steps .text-link { margin-top: 6px; }
.faq-sec { background: var(--paper-2); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { position: relative; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 20.4px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { overflow: hidden; }
.faq details > div p { padding: 0 22px 20px; color: var(--muted); }
.faq a { color: var(--brand); font-weight: 700; }

/* ---------- 404 ---------- */
.nf { padding-top: clamp(56px, 8vw, 110px); }

/* ---------- 맨 위로: 스크롤 진행을 로고의 원으로 ---------- */
.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 25;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); box-shadow: 0 10px 28px -12px rgba(42, 30, 44, .45);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover .to-top-arrow { transform: translateY(-3px); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.to-top-ring circle { stroke: var(--line); }
.to-top-ring .to-top-progress { stroke: var(--teal); stroke-dasharray: 132; stroke-dashoffset: 132; stroke-linecap: round; }
.to-top-arrow { width: 20px; height: 20px; fill: none; stroke: var(--brand-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
@media (max-width: 959px) { .to-top { bottom: calc(96px + env(safe-area-inset-bottom)); right: 14px; width: 46px; height: 46px; } body.menu-open .to-top { opacity: 0; pointer-events: none; } }

/* ---------- 묶음 안의 줄도 차례로: 교회 정보 표, 홈 예배 시간 ---------- */
.js .facts > div, .js .mini-schedule li, .js .n-list .n-row { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.js .facts.is-in > div, .js .is-in .mini-schedule li, .js .n-list .n-row.is-in, .js .is-in .n-list .n-row { opacity: 1; transform: none; }
.facts > div:nth-child(2), .mini-schedule li:nth-child(2) { transition-delay: .08s !important; }
.facts > div:nth-child(3), .mini-schedule li:nth-child(3) { transition-delay: .16s !important; }
.facts > div:nth-child(4) { transition-delay: .24s !important; }
.facts > div:nth-child(5) { transition-delay: .32s !important; }

/* ---------- 쪽 사이 이동: 머리는 그대로, 본문만 살짝 올라오며 바뀐다 ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.quickbar { view-transition-name: quickbar; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.list-body { view-transition-name: list-body; }

/* ---------- 홈 보강 등장(2026-10-23 점검): 사진은 틀이 열리듯, 묶음 단추는 하나씩 ---------- */
.js .hc-photo[data-reveal] { clip-path: inset(7% 7% 7% 7% round var(--radius)); transition: clip-path 1.3s var(--ease-out), opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .hc-photo[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .hc-photo[data-reveal] img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.js .hc-photo[data-reveal].is-in img { transform: none; }
.js .tag-links[data-reveal] li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.js .tag-links[data-reveal].is-in li { opacity: 1; transform: none; }
.tag-links li:nth-child(2) { transition-delay: .05s !important; } .tag-links li:nth-child(3) { transition-delay: .1s !important; } .tag-links li:nth-child(4) { transition-delay: .15s !important; }
.tag-links li:nth-child(5) { transition-delay: .2s !important; } .tag-links li:nth-child(6) { transition-delay: .25s !important; } .tag-links li:nth-child(n+7) { transition-delay: .3s !important; }
.js .dock-actions .pill { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.js .media .section-head::after { content: ""; display: block; flex-basis: 100%; height: 1px; background: linear-gradient(90deg, rgba(240, 210, 232, .4), transparent); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out) .3s; }
.js .media .section-head:has(.is-in)::after { transform: none; }

/* 손가락(터치) 화면: 누른 뒤 hover 모양이 붙어 남지 않게 떠오름·확대를 끄고, 대신 누르는 순간 살짝 눌린다 */
@media (hover: none) {
  .v-card-link:hover, .groups li:hover, .js .groups li[data-reveal].is-in:hover, .link-cards a:hover, .tag-links a:hover, .video-link:hover, .videos a:hover, .pager a:hover { transform: none; }
  .v-card-link:hover .v-thumb img, .hc-photo:hover img, .feature:hover .feature-photo img, .player-poster:hover img { transform: none; filter: none; }
  .v-card-link:hover .v-play, .player-poster:hover .player-play { transform: none; }
  .groups li:hover::before { width: 36px; }
  .pill:hover .arrow, .text-link:hover span, .n-row a:hover .n-arrow, .link-cards a:hover i { transform: none; }
  .link-cards a:hover i { transform: translateY(-50%); }
  .v-card-link:active, .link-cards a:active, .tag-links a:active, .n-row a:active, .groups li:active, .video-link:active, .pager a:active, .next-service:active { transform: scale(.98); transition-duration: .12s; }
  .pill:active, .filter-chip:active { transform: scale(.96); }
}

/* ---------- 스크롤 등장 ---------- */
.js [data-reveal]:not(.line) { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s), background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease); }
.js [data-reveal].is-in:not(.line) { opacity: 1; transform: none; }
.js .groups li[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html, html.is-ready { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .line[data-reveal] > span { opacity: 1 !important; transform: none !important; }
  .js .hero-photo-frame { clip-path: none !important; transform: none !important; }
  .js .stage-bg img { opacity: .55 !important; }
  .js .hero-photo-frame img { --hero-scale: 1 !important; }
  .js .motto-title mark { background-size: 100% .42em !important; }
  .js .eyebrow::before { transform: none !important; }
  .js .page-head-bg::after { opacity: 1 !important; --ring-s: 1 !important; }
  .js .timeline::before, .js .route::before, .js .steps::before { transform: none !important; }
  .js .steps li .step-no { --pop: 1 !important; }
  .js .facts > div, .js .mini-schedule li, .js .n-list .n-row { opacity: 1 !important; transform: none !important; }
  .js .hc-photo[data-reveal], .js .hc-photo[data-reveal] img { clip-path: none !important; transform: none !important; }
  .js .tag-links[data-reveal] li { opacity: 1 !important; transform: none !important; }
  .js .media .section-head::after { transform: none !important; }
  .js .site-footer [data-reveal] { opacity: 1 !important; transform: none !important; }
  .player-play::before { animation: none !important; }
  @view-transition { navigation: none; }
}
/* ==========================================================================
   홈 2026-10-23 목사님 피드백
   교회주제(첫 화면) · NOW 네 칸 · 교회목표 · 말씀 모음 · Photo Story · 오시는 길 명조
   ========================================================================== */

/* ---------- 첫 화면: 교회주제와 말씀 ----------
   사진 대신 글이 주인공. 옅은 자주·금빛이 번진 흰 무대 위에 아치 창과 십자가 선이 천천히 그려진다. */
.hero-theme .hero-stage {
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(168, 90, 155, .13), transparent 70%),
    radial-gradient(50% 60% at 6% 96%, rgba(236, 214, 166, .38), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fdfafa 60%, #f8f1f3 100%);
}
.hero-theme .hero-stage::before { border-color: rgba(168, 90, 155, .22); }
.stage-deco { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.theme-art { height: 112%; width: auto; max-width: none; fill: none; stroke-linecap: round; transform: translate3d(0, calc(var(--ring-y, 0px) * -.6), 0); }
.art-arch { stroke: rgba(128, 39, 108, .10); stroke-width: 1.4; }
.art-arch-in { stroke: rgba(180, 141, 88, .26); stroke-width: 1.1; }
.art-cross { stroke: rgba(180, 141, 88, .34); stroke-width: 1.6; }
.hero-theme .stage-inner { gap: clamp(20px, 3vw, 30px); }
.hero-slogan {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(20.4px, 2.2vw, 28.8px); line-height: 1.4; letter-spacing: -.01em; color: var(--brand);
  text-align: right;
}
.hero-slogan::before { content: ""; flex: none; width: clamp(22px, 3vw, 44px); height: 1px; background: var(--gold); }
.theme { display: grid; justify-items: center; gap: clamp(16px, 2.2vw, 24px); margin: 0 auto; max-width: 1000px; text-align: center; }
.theme-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 16.8px; font-weight: 800; letter-spacing: .32em; text-indent: .32em; color: var(--teal-text);
}
.theme-label::before, .theme-label::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
/* 띄어쓰기 없이 긴 낱말도 화면 밖으로 나가지 않게(낱말 단위 줄바꿈이 우선) */
.theme-title, .now-heading, .goal-title, .arc-heading, .story-title, .hero-slogan, .hv-title { overflow-wrap: anywhere; }
.theme-title { font-size: clamp(29px, 5.6vw, 68px); line-height: 1.32; letter-spacing: -.035em; font-weight: 700; color: var(--ink); }
.theme-verse { display: grid; justify-items: center; gap: 12px; max-width: 46em; }
.theme-verse blockquote { margin: 0; font-size: clamp(18.6px, 1.9vw, 24px); line-height: 1.95; color: #43384a; letter-spacing: -.01em; }
.theme-verse .q { font-family: var(--serif); color: var(--gold); font-size: 1.3em; line-height: 0; vertical-align: -.12em; margin: 0 .08em; }
.theme-verse figcaption { font-size: clamp(16.8px, 1.6vw, 20.4px); color: var(--brand); letter-spacing: .02em; }
.theme-verse cite { font-style: normal; }
.hero-theme .hero-photo { width: min(100%, 860px); margin: 4px auto 0; }
@media (min-width: 960px) {
  .hero-theme .hero-stage { min-height: min(calc(100svh - var(--header-h) - 12px), 900px); }
  /* 낮은 화면(1280×720 등)에서도 다음 예배·단추까지 첫 화면 안에: 글 크기와 간격을 화면 높이에 맞춘다 */
  .hero-theme .stage-inner { justify-content: space-between; gap: clamp(12px, 2.4svh, 30px); padding-top: clamp(20px, 4svh, 52px); padding-bottom: clamp(14px, 3svh, 40px); }
  .hero-theme .theme { flex: 1; align-content: center; gap: clamp(10px, 2.2svh, 24px); padding: 4px 0 8px; }
  .theme-title { font-size: clamp(34px, min(5.2vw, 8.2svh), 68px); }
  .theme-verse blockquote { font-size: clamp(18px, min(1.8vw, 3.1svh), 24px); line-height: 1.85; }
  .hero-theme .hero-dock { margin: 0 auto; }
}
@media (max-width: 959px) {
  .hero-theme .stage-inner { padding-top: 28px; padding-bottom: 20px; }
  .hero-slogan { gap: 10px; }
  .theme { padding: 6px 0 4px; }
  .theme-label { font-size: 15.6px; letter-spacing: .26em; text-indent: .26em; }
  .theme-verse blockquote { text-align: left; }
  .theme-verse { justify-items: stretch; }
  .theme-verse figcaption { justify-self: end; }
  .theme-art { height: 92%; }
}
/* 첫 등장: 아치 창과 십자가 선이 그려지고 금빛 짧은 선이 펼쳐진다 */
.js .theme-art path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-out) .2s; }
.js .theme-art .art-arch-in { transition-delay: .55s; }
.js .theme-art .art-cross { transition: stroke-dashoffset 1.8s var(--ease-out) 1.1s; }
.js .is-loaded .theme-art path { stroke-dashoffset: 0; }
.js .theme-label::before, .js .theme-label::after, .js .hero-slogan::before { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .7s; }
.js .theme-label::before { transform-origin: right; } .js .theme-label::after, .js .hero-slogan::before { transform-origin: left; }
.js .is-in.theme-label::before, .js .is-in.theme-label::after, .js .is-in.hero-slogan::before { transform: none; }

/* ---------- NOW: 같은 크기 네 칸 ---------- */
.now-mast { display: grid; gap: 14px; margin-bottom: clamp(26px, 3.4vw, 40px); }
@media (min-width: 860px) { .now-mast { grid-template-columns: 1fr auto; align-items: end; } .now-mast .note { text-align: right; max-width: 24em; } }
.now-label { margin: 0 0 10px; display: block; font-size: 15px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.now-label::before { content: none; }
.now-heading { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; color: var(--ink); }
.panels { display: grid; gap: 16px; }
@media (min-width: 860px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; } }
.panel {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  padding: clamp(20px, 2.6vw, 30px); border-radius: clamp(22px, 2.4vw, 30px);
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgba(94, 32, 82, .35);
}
@media (min-width: 860px) { .panel { min-height: 440px; } }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-h h3 { position: relative; padding-left: 14px; font-size: clamp(21.6px, 2vw, 25.2px); font-weight: 800; letter-spacing: -.02em; }
.panel-h h3::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 1em; margin-top: -.5em; border-radius: 2px; background: var(--brand); }
.panel-plus {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); color: var(--brand); font-size: 26.4px; font-weight: 400; line-height: 1; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .45s var(--ease-out);
}
.panel-plus:hover, .panel-plus:focus-visible { background: var(--brand); color: #fff; }
@media (hover: hover) { .panel-plus:hover { transform: rotate(90deg); } }
.panel-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.panel > .text-link { margin-top: auto; }
.panel .empty { flex: 1; align-content: center; padding: 28px 16px; }
.panel .n-list { border-top: 0; }
.panel .n-row a { padding-top: 12px; padding-bottom: 12px; }
.panel .n-excerpt { display: none; }
.panel .feature-text { margin-top: 14px; }
.panel .feature-title { font-size: clamp(20.4px, 1.9vw, 24px); }
.panel-pic { position: relative; flex: 1; min-height: 220px; margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.panel-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.panel-bulletin .panel-pic img { object-position: 50% 0; }
@media (hover: hover) { .panel-pic:hover img { transform: scale(1.04); } }
.panel-pic figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(30, 20, 30, .62); color: #fff; font-size: 15.6px; font-weight: 600; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 12px; }
.panel-foot:empty { display: none; }
.panel-foot strong { font-size: 19.2px; }

/* ---------- 교회목표: | 교회목표 | ---------- */
.goal { position: relative; isolation: isolate; overflow: hidden; padding: clamp(84px, 11vw, 150px) 0; text-align: center; background: var(--paper-2); }
.goal::before {
  /* 아치 창 한 줄: 위로 천천히 떠오른다 */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -30%;
  width: min(84vw, 640px); height: 150%; margin-left: calc(min(84vw, 640px) / -2);
  border: 1.5px solid rgba(168, 90, 155, .2); border-bottom: 0; border-radius: 999px 999px 0 0;
  transform: translate3d(0, var(--goal-y, 0px), 0);
}
.goal-label { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(16.8px, 1.6vw, 19.2px); font-weight: 800; letter-spacing: .3em; text-indent: .3em; color: var(--brand); }
.goal-bar { width: 2px; height: 1.15em; background: var(--gold); }
.goal-title { margin-top: clamp(18px, 2.4vw, 26px); font-size: clamp(30px, 5.6vw, 70px); line-height: 1.3; letter-spacing: -.035em; font-weight: 700; color: var(--brand-deep); }
.goal .text-link { margin-top: clamp(28px, 3.4vw, 40px); }
.js .goal-bar { transform: scaleY(0); transition: transform .9s var(--ease-out) .5s; }
.js .goal-label.is-in .goal-bar { transform: none; }

/* ---------- 말씀 모음(Sermon Archive) ---------- */
.arc-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(26px, 4vw, 56px); border-radius: clamp(26px, 3vw, 40px);
  background: radial-gradient(70% 80% at 0% 0%, rgba(168, 90, 155, .42), transparent 70%), linear-gradient(160deg, #6e2f6b 0%, #582351 60%, #471b43 100%);
  color: #fff;
}
.arc-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: clamp(24px, 3.4vw, 38px); }
.arc-eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--lime); color: #5e2052; font-size: 14.4px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.arc-heading { margin-top: 14px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; color: #fff; }
.arc-cols { display: grid; gap: 14px; }
@media (min-width: 640px) { .arc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .arc-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.arc-col {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.arc-col:hover { box-shadow: inset 0 0 0 1px rgba(240, 210, 232, .38); }
.arc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.arc-head h3 { font-size: clamp(24px, 2.2vw, 27.6px); font-weight: 700; letter-spacing: -.02em; }
.arc-n { font-size: 15.6px; color: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }
.arc-lead { display: grid; gap: 8px; color: #fff; text-decoration: none; }
.arc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(150deg, #6a2f66, #4b2048); }
.arc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.arc-thumb .v-play { width: 40px; height: 40px; right: 10px; bottom: 10px; }
.arc-thumb .v-play::after { left: 15px; top: 12px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
@media (hover: hover) { .arc-lead:hover .arc-thumb img { transform: scale(1.05); } }
.arc-title { font-size: 18.6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arc-date { font-size: 15.6px; color: rgba(255, 255, 255, .84); }
.arc-rest { display: grid; min-width: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.arc-rest li { min-width: 0; }
.arc-rest a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .84); font-size: 16.8px; text-decoration: none; }
.arc-rest a:hover { color: #fff; }
.arc-rest span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-rest time { flex: none; font-size: 14.4px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.arc-empty { flex: 1; padding: 18px 0; color: rgba(255, 255, 255, .86); font-size: 16.8px; }
.arc-more { margin-top: auto; padding-top: 4px; color: var(--mint); font-size: 16.8px; font-weight: 700; text-decoration: none; }
.arc-more span { display: inline-block; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .arc-more:hover span { transform: translateX(4px); } }

/* ---------- Photo Story: 우리들의 이야기 ---------- */
.story-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(22px, 3vw, 34px); }
.story-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(19.2px, 1.8vw, 22.8px); color: var(--teal-text); }
.story-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.story-title { margin-top: 8px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }
.more-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; text-decoration: none; }
.more-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-out); }
.more-link:hover .more-arrow { background: var(--brand); color: #fff; }
@media (hover: hover) { .more-link:hover .more-arrow { transform: translateX(3px); } }
.story-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 34vw, 190px); border-radius: clamp(20px, 2.6vw, 30px); overflow: hidden; }
@media (min-width: 860px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 240px); gap: 10px; } }
.story-item { position: relative; min-width: 0; }
.story-item.is-lead { grid-column: span 2; grid-row: span 2; }
.story-item figure { position: relative; height: 100%; margin: 0; overflow: hidden; background: var(--paper-2); }
.story-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
@media (hover: hover) { .story-item:hover img { transform: scale(1.05); } }
.story-item figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 4px 11px; border-radius: 999px; background: rgba(30, 20, 30, .6); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-empty { grid-column: 1 / -1; grid-row: span 2; display: grid; }
.story-empty .empty { align-content: center; border-radius: 0; }
.js .story-item[data-reveal] { clip-path: inset(6% 6% 6% 6%); transition: clip-path 1.3s var(--ease-out) var(--d, 0s), opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js .story-item[data-reveal].is-in { clip-path: inset(0 0 0 0); }

/* ---------- 홈 오시는 길: 제목과 길 안내 아래 줄은 명조, 아래 줄을 더 크게 ---------- */
.hv-title { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.38; letter-spacing: -.025em; color: var(--ink); margin-top: 6px; }
.home-visit .route b { font-size: clamp(15.6px, 1.4vw, 18px); font-weight: 700; color: var(--muted); }
.home-visit .route span { font-size: clamp(24px, 2.6vw, 32.4px); line-height: 1.3; color: var(--ink); letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  .js .theme-art path { stroke-dashoffset: 0 !important; }
  .js .theme-label::before, .js .theme-label::after, .js .hero-slogan::before, .js .goal-bar { transform: none !important; }
  .js .story-item[data-reveal] { clip-path: none !important; }
  .theme-art, .goal::before { transform: none !important; }
}

/* ==========================================================================
   2026-10-24 독립 QA 보완: 괴정제일교회 구성과 겹치던 NOW · Photo Story · PC 구역 이동 · 맨 위로 · 빠른 메뉴
   (원문 4칸 순서·같은 크기, 문구, Photo Story / 우리들의 이야기 이름은 그대로)
   ========================================================================== */

/* ---------- NOW: 흰 둥근 카드 대신 ‘소식 지면’ — 칸마다 굵은 윗줄, 칸 사이 가는 세로줄, 장식 없는 머리 ---------- */
.now-label { text-transform: none; letter-spacing: .06em; font-size: 16.8px; color: var(--teal-text); } /* 원문 표기 그대로(대문자로 바꾸지 않음) */
.panels { gap: 0; border-bottom: 1px solid var(--line); }
.panel {
  gap: 14px; padding: 16px 0 26px; border-radius: 0;
  background: none; box-shadow: none; border-top: 2px solid var(--brand-deep);
}
@media (min-width: 860px) {
  .panels { gap: 0; }
  .panel { min-height: 360px; padding-bottom: 32px; }
  .panel:nth-child(odd) { padding-right: clamp(22px, 3vw, 40px); border-right: 1px solid var(--line); }
  .panel:nth-child(even) { padding-left: clamp(22px, 3vw, 40px); }
}
.panel-h { align-items: baseline; }
.panel-h h3 { padding-left: 0; font-size: clamp(22.8px, 2.2vw, 26.4px); }
.panel-h h3::before { content: none; }
.panel-more { flex: none; font-size: 16.8px; font-weight: 700; color: var(--brand); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .3s var(--ease-out); }
.panel-more:hover, .panel-more:focus-visible { background-size: 100% 1px; }
.panel .n-list { border-top: 1px solid var(--line); }
.panel-pic { border-radius: 4px; }
/* 빈 칸: 점선 상자·그림 대신 옅은 바탕 위 짧은 안내(지어낸 내용 없이) */
.panel .empty { flex: 1; justify-items: start; align-content: end; gap: 4px; padding: 20px; border: 0; border-radius: 4px; background: var(--paper-2); text-align: left; }
.panel .empty svg { display: none; }
.panel .empty-title { font-size: 19.2px; }
@media (max-width: 859px) { .panel .empty { min-height: 140px; } }

/* ---------- Photo Story: | Photo Story, 같은 틀에 사진 전체 + 사진 밖 이름표(번호 차례) ---------- */
.story-eyebrow { font-family: var(--sans); font-style: normal; font-size: 15.6px; font-weight: 800; letter-spacing: .2em; color: var(--brand); }
.story-eyebrow::before { width: 2px; height: 1.1em; background: var(--brand); } /* 원문 ‘| Photo Story’ 의 세로 막대 */
.more-link { gap: 6px; color: var(--brand); background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .3s var(--ease-out); }
.more-link:hover, .more-link:focus-visible { background-size: 100% 1px; }
.more-arrow, .more-link:hover .more-arrow { width: auto; height: auto; border-radius: 0; box-shadow: none; background: none; color: inherit; }
.story-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 26px; border-radius: 0; overflow: visible; counter-reset: story; }
@media (min-width: 600px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; } }
@media (min-width: 860px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 34px 28px; } }
.story-item { counter-increment: story; }
.story-item figure.story-frame { height: auto; display: grid; gap: 12px; overflow: visible; background: none; }
.story-photo {
  position: relative; display: block; aspect-ratio: 2 / 1; padding: 6px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(94, 32, 82, .45); border-radius: 3px;
}
.story-photo img, .story-item .story-photo img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-2); transform: none; } /* 자르지 않음: 단체사진 양끝 인물까지 */
.story-zoom {
  position: absolute; right: 14px; bottom: 14px; padding: 3px 10px; border-radius: 4px;
  background: rgba(30, 20, 30, .66); color: #fff; font-size: 14.4px; font-weight: 700; line-height: 1.6;
}
a.story-photo:hover .story-zoom, a.story-photo:focus-visible .story-zoom { background: var(--brand-deep); }
.story-item .story-frame figcaption {
  position: static; max-width: none; padding: 10px 0 0; border-radius: 0; border-top: 1px solid var(--line);
  background: none; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.55;
  white-space: normal; overflow: visible; text-overflow: clip;
  display: flex; gap: 10px; align-items: baseline;
}
.story-item .story-frame figcaption::before { content: counter(story, decimal-leading-zero); flex: none; font-size: 14.4px; font-weight: 800; letter-spacing: .08em; color: var(--brand); font-variant-numeric: tabular-nums; }
.story-empty { grid-row: auto; }
.js .story-item[data-reveal].is-in { clip-path: inset(-10px); } /* 다 펼친 뒤에는 포커스 표시가 잘리지 않게 */
.story-view[open] { grid-template-rows: 1fr auto auto; }
.story-view-cap { padding: 14px 20px 6px; color: rgba(255, 255, 255, .92); font-size: 18px; text-align: center; }
.story-view-cap:empty { display: none; }

/* ---------- PC 구역 이동: 동그란 점 대신 번호(01–06)와 가는 줄 ---------- */
@media (min-width: 1240px) and (hover: hover) {
  .dots ol { counter-reset: dot; gap: 2px; }
  .dots li { counter-increment: dot; }
  .dots a { gap: 8px; padding: 0 8px; border-left: 2px solid transparent; transition: border-color .3s, color .3s; }
  .dots a::before { content: counter(dot, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none; opacity: .7; font-size: 13.2px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
  .dots a.is-active { border-left-color: var(--brand); }
  .dots a.is-active::before { height: auto; background: none; opacity: 1; }
}

/* ---------- 맨 위로: 원형 진행 고리 대신 글자 단추 + 아래 가는 진행 막대 ---------- */
.to-top {
  width: auto; height: 42px; padding: 0 14px 0 11px; gap: 4px; display: inline-flex; align-items: center; place-items: initial;
  border-radius: 6px; overflow: hidden; color: var(--brand-deep); font-size: 15.6px; font-weight: 700; text-decoration: none;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(42, 30, 44, .45);
}
.to-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0)); }
.to-top-arrow { width: 16px; height: 16px; }
@media (max-width: 959px) { .to-top { width: auto; height: 40px; bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- 모바일 빠른 메뉴: 떠 있는 둥근 막대 대신 화면 아래에 붙은 띠 ---------- */
.quickbar {
  left: 0; right: 0; bottom: 0; border-radius: 0;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -12px 30px -20px rgba(0, 0, 0, .5);
}
.quickbar a { border-radius: 8px; }


/* Claude 2026-10-26: 휴대폰에서 교회목표 끝 낱말 홀로 떨어짐 방지 */
.goal-title { word-break: keep-all; text-wrap: balance; }

/* ==========================================================================
   2026-10-26 첫 화면 다시 짓기: 우림 로고 상징이 주인공
   괴정제일교회 개편과 겹치던 요소(아치 창·십자가 선·옅은 라벤더 카드·금빛 선 머리표·가운데 정렬)를 버리고,
   로고의 한 획(십자가 → 원 → 물결)과 로고 자주를 무대로 삼는다.
   - 무대: 로고 자주(#80276c)에서 내린 자주(7차에서 한 단계 밝힘). 상징 뒤에 빛이 고인다.
   - 상징: 속이 빈 두 겹 테두리(새긴 듯) + 가는 빛 선이 한 획으로 그려지고, 작은 빛이 그 획을 따라 흐른다.
   - 둘레: 로고처럼 아래 둘레에 ‘대한예수교장로회 · 우리함께 우림교회’ 글띠. 바깥 점선 원만 아주 천천히 돈다.
   - 글: 왼쪽 정렬(넓은 화면은 왼쪽 글 · 오른쪽 상징, 휴대폰은 위 상징 · 아래 글).
   ========================================================================== */
.hero-urim .hero-stage {
  --u-ink: #fbf4fa;            /* 무대 위 제목 */
  --u-soft: rgba(251, 244, 250, .80); /* 말씀 */
  --u-lilac: #e9cfe4;          /* 로고 자주를 밝힌 빛 */
  --u-line: rgba(233, 207, 228, .22);
  --em-x: 50%; --em-y: 150px;  /* 빛이 고이는 자리(상징 중심) */
  color: var(--u-ink);
  box-shadow: 0 30px 60px -40px rgba(43, 18, 46, .55);
  background:
    radial-gradient(260px 260px at var(--em-x) var(--em-y), rgba(205, 130, 198, .42), transparent 72%),
    radial-gradient(90% 55% at 100% 100%, rgba(165, 80, 158, .38), transparent 70%),
    radial-gradient(70% 50% at 0% 0%, rgba(128, 39, 108, .55), transparent 70%),
    linear-gradient(165deg, #7a2d78 0%, #62205f 46%, #4a1748 100%);
}
.hero-urim .hero-stage::before { display: none; }
.hero-urim .hero-stage::after {
  /* 무대 테두리: 빛을 받은 얇은 안쪽 선 */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .10);
}

/* 상징 자리 */
.hero-urim .stage-deco { display: block; inset: 0 0 auto; height: 300px; overflow: visible; }
.urim-emblem {
  position: absolute; left: 50%; top: 22px; width: 232px; height: auto; max-width: none; overflow: visible;
  translate: -50% 0;
  transform: translate3d(0, calc(var(--ring-y, 0px) * -.5), 0);
}
.urim-emblem .em-echo circle { stroke: rgba(233, 207, 228, .10); stroke-width: 1; vector-effect: non-scaling-stroke; }
.urim-emblem .em-echo circle + circle { stroke-dasharray: 2 7; stroke: rgba(233, 207, 228, .14); }
.urim-emblem .em-band path { stroke: rgba(201, 140, 196, .13); stroke-width: 29.6; }
.urim-emblem .em-edge { fill: rgba(233, 207, 228, .55); }
.urim-emblem .em-line path { stroke: rgba(255, 246, 252, .92); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.urim-emblem .em-glint { stroke: #fff; stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: .045 .955; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px #f3c8ec) drop-shadow(0 0 10px rgba(233, 160, 225, .8)); }
.urim-emblem .em-echo circle + circle { transform-box: view-box; transform-origin: 250px 342px; }
.urim-emblem .em-ring text { fill: rgba(233, 207, 228, .62); font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: .42em; }

/* 글 */
.hero-urim .stage-inner { padding-top: 300px; gap: 22px; }
.hero-urim .hero-slogan { align-self: flex-start; color: var(--u-lilac); text-align: left; }
.hero-urim .hero-slogan::before { background: rgba(233, 207, 228, .5); }
.hero-urim .theme { justify-items: start; text-align: left; margin: 0; max-width: 680px; gap: 18px; padding: 0; }
.hero-urim .theme-label {
  gap: 9px; padding: 7px 15px 7px 11px; border-radius: 999px;
  border: 1px solid rgba(233, 207, 228, .30); background: rgba(255, 255, 255, .05);
  color: #f6e6f3; font-size: 15.6px; letter-spacing: .2em; text-indent: 0;
}
/* 머리표 앞 작은 원: 로고 원을 줄인 것 */
.hero-urim .theme-label::before { width: 9px; height: 9px; border-radius: 50%; background: none; border: 2px solid var(--u-lilac); box-sizing: border-box; }
.hero-urim .theme-label::after { display: none; }
.hero-urim .theme-title { color: var(--u-ink); text-wrap: balance; }
.hero-urim .theme-verse { justify-items: start; gap: 10px; padding-left: 18px; border-left: 1px solid var(--u-line); }
.hero-urim .theme-verse blockquote { color: var(--u-soft); text-align: left; }
.hero-urim .theme-verse .q { color: var(--u-lilac); }
.hero-urim .theme-verse figcaption { color: var(--u-lilac); justify-self: start; }
.hero-urim .theme-title, .hero-urim .theme-verse blockquote, .hero-urim .hero-slogan { word-break: keep-all; }

/* 다음 예배 · 단추: 짙은 무대 위 유리 */
.hero-urim .next-service { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); color: var(--u-ink); }
.hero-urim .next-service:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(233, 207, 228, .38); }
.hero-urim .next-dot { background: var(--u-lilac); }
.hero-urim .next-label { color: var(--u-lilac); }
.hero-urim .next-time { color: rgba(251, 244, 250, .72); }
.hero-urim .pill { background: transparent; border-color: rgba(251, 244, 250, .42); color: var(--u-ink); }
.hero-urim .pill:hover { background: #fff; border-color: #fff; color: var(--brand-deep); }
.hero-urim .pill-solid { background: #fbf4fa; border-color: #fbf4fa; color: var(--brand-deep); }
.hero-urim .pill-solid:hover { background: #fff; border-color: #fff; color: var(--brand); }
.hero-urim .hero-photo figcaption { color: var(--u-soft); }
.hero-urim .pill:focus-visible, .hero-urim .next-service:focus-visible { outline: 2px solid var(--u-lilac); outline-offset: 3px; }

@media (min-width: 600px) and (max-width: 959px) {
  .hero-urim .stage-deco { height: 360px; }
  .hero-urim .hero-stage { --em-y: 180px; }
  .urim-emblem { width: 280px; }
  .hero-urim .stage-inner { padding-top: 360px; }
}
@media (max-width: 959px) {
  .hero-urim .stage-inner { padding-left: clamp(20px, 5.4vw, 40px); padding-right: clamp(20px, 5.4vw, 40px); }
  .hero-urim .theme-title { font-size: clamp(28px, 7.6vw, 46px); }
  .hero-urim .theme-verse blockquote { font-size: 18.6px; line-height: 1.85; }
  .urim-emblem .em-ring text { font-size: 19.5px; letter-spacing: .32em; } /* 작게 줄어드는 휴대폰에서도 글띠가 보이게 */
}
@media (max-width: 380px) {
  .hero-urim .stage-deco { height: 262px; }
  .hero-urim .hero-stage { --em-y: 130px; }
  .urim-emblem { width: 200px; top: 18px; }
  .hero-urim .stage-inner { padding-top: 262px; }
}

/* 넓은 화면: 왼쪽 글 · 오른쪽 상징 */
@media (min-width: 960px) {
  .hero-urim .hero-stage { --em-x: 76%; --em-y: 50%; }
  .hero-urim .hero-stage {
    background:
      radial-gradient(min(34vw, 520px) min(34vw, 520px) at var(--em-x) var(--em-y), rgba(205, 130, 198, .40), transparent 72%),
      radial-gradient(70% 60% at 100% 100%, rgba(165, 80, 158, .34), transparent 70%),
      radial-gradient(60% 70% at 0% 0%, rgba(128, 39, 108, .6), transparent 70%),
      linear-gradient(120deg, #6f2a72 0%, #5a2058 50%, #6f2b76 100%); /* 7차: 이전 #3a1b40·#2f1636·#3a1b42 (PC 첫 화면, ‘너무 어둡다’ 피드백) */
  }
  .hero-urim .stage-deco { inset: 0 0 0 auto; width: 48%; height: auto; }
  .urim-emblem { left: 52%; top: 50%; width: auto; height: min(78%, 620px); translate: -50% -50%; }
  .hero-urim .stage-inner {
    padding: clamp(36px, 7svh, 84px) 50% clamp(28px, 5svh, 56px) clamp(48px, 7.4vw, 128px);
    justify-content: center; gap: clamp(16px, 3svh, 30px);
  }
  .hero-urim .theme { flex: 0 1 auto; gap: clamp(14px, 2.4svh, 24px); }
  .hero-urim .theme-title { font-size: clamp(34px, min(3.4vw, 7svh), 60px); line-height: 1.28; }
  .hero-urim .theme-verse blockquote { font-size: clamp(18px, min(1.4vw, 2.8svh), 21.6px); line-height: 1.9; }
  .hero-urim .hero-dock {
    margin: clamp(4px, 1.4svh, 16px) 0 0; width: max-content; max-width: none; flex-wrap: nowrap; /* 글 칸보다 조금 넓어도 한 줄로 */
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 48px -26px rgba(10, 2, 12, .7);
  }
  .hero-urim .hero-dock .next-service { background: none; box-shadow: none; flex-wrap: nowrap; }
  .hero-urim .hero-dock .pill, .hero-urim .hero-dock .next-service > * { white-space: nowrap; }
  .hero-urim .hero-dock .next-service:hover { background: rgba(255, 255, 255, .08); }
  .hero-urim .hero-photo { width: 100%; margin: 0; min-width: 0; }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .hero-urim .stage-inner { padding-right: 46%; }
  .hero-urim .hero-dock { border-radius: 26px; flex-wrap: wrap; width: fit-content; max-width: 100%; }
}

/* 구역 이동(넓은 화면 왼쪽): 짙은 첫 화면 위에서는 밝은 글자 */
.dots.on-dark a.is-active { border-left-color: var(--mint); }

/* 첫 등장: 빛이 고이고 → 새긴 테두리가 떠오르고 → 가는 선이 십자가부터 한 획으로 → 둘레 글귀 → 빛 한 점이 획을 따라 흐름 */
.js .hero-urim .em-halo, .js .hero-urim .em-echo, .js .hero-urim .em-band, .js .hero-urim .em-edge, .js .hero-urim .em-ring { opacity: 0; }
.js .hero-urim .em-halo { transform-box: view-box; transform-origin: 250px 342px; transform: scale(.7); transition: opacity 1.6s var(--ease-out), transform 2.2s var(--ease-out); }
.js .hero-urim .em-echo { transition: opacity 1.8s var(--ease-out) .5s; }
.js .hero-urim .em-band, .js .hero-urim .em-edge { transition: opacity 1.6s var(--ease-out) .35s; }
.js .hero-urim .em-line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-out) .25s; }
.js .hero-urim .em-line .em-line-bar { transition-duration: 1s; transition-delay: .55s; }
.js .hero-urim .em-ring { transition: opacity 1.8s var(--ease-out) 1.4s; }
.js .hero-urim.is-loaded .em-halo { opacity: 1; transform: none; }
.js .hero-urim.is-loaded .em-echo, .js .hero-urim.is-loaded .em-band, .js .hero-urim.is-loaded .em-edge, .js .hero-urim.is-loaded .em-ring { opacity: 1; }
.js .hero-urim.is-loaded .em-line path { stroke-dashoffset: 0; }
.js .hero-urim.is-loaded .em-echo circle + circle { animation: em-spin 140s linear infinite; }
.js .hero-urim.is-loaded .em-glint { animation: em-flow 7.5s cubic-bezier(.45, 0, .3, 1) 3.2s infinite; }
.js .hero-urim.is-loaded .em-halo { animation: em-breathe 9s ease-in-out 2.4s infinite alternate; }
@keyframes em-spin { to { transform: rotate(360deg); } }
@keyframes em-flow {
  0% { stroke-dashoffset: 1.045; opacity: 0; }
  6% { opacity: 1; }
  52% { opacity: 1; }
  60% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes em-breathe { from { transform: scale(1); opacity: 1; } to { transform: scale(1.06); opacity: .75; } }
/* 머리표 앞 작은 원: 선이 펼쳐지는 대신 톡 하고 맺힌다 */
.js .hero-urim .theme-label::before { transform: scale(.2); opacity: 0; transition: transform .8s var(--ease-out) .8s, opacity .6s var(--ease-out) .8s; }
.js .hero-urim .is-in.theme-label::before { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-urim .em-halo, .js .hero-urim .em-echo, .js .hero-urim .em-echo circle, .js .hero-urim .em-band, .js .hero-urim .em-edge, .js .hero-urim .em-ring, .js .hero-urim .theme-label::before { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .hero-urim .em-line path { stroke-dashoffset: 0 !important; transition: none !important; }
  .hero-urim .em-glint { display: none; }
  .urim-emblem { transform: none !important; }
}


/* ==========================================================================
   2026-10-30 목사님 피드백
   1) 휴대폰·태블릿에서 로고를 크게(글자 크기 20% 확대는 위 font-size 값에 반영)
   2) 항목 표시·강조를 가로줄 대신 세로줄로
   3) 교회소개 ‘우림교회는’ 표 → 이미지, 담임목사 사진·약력
   ========================================================================== */
:root { --header-h: 80px; }
@media (min-width: 600px) { :root { --header-h: 92px; } }
@media (min-width: 960px) { :root { --header-h: 104px; } }
.brand img { height: 60px; }
@media (min-width: 600px) { .brand img { height: 72px; } }
@media (min-width: 960px) { .brand img { height: 78px; } .is-scrolled .brand img { height: 66px; } }
.menu-btn { height: 48px; }

/* 세로줄: 머리표(eyebrow)·첫 화면 문구·예배 칸 제목·공동체 카드·NOW 칸·표어 실천·메뉴·쪽 탭 */
.eyebrow::before { width: 3px; height: 1.25em; border-radius: 2px; transform-origin: top; }
.js .eyebrow[data-reveal]:not(.is-in)::before { transform: scaleY(0); }
.hero-slogan::before { width: 3px; height: 1.3em; border-radius: 2px; }
.theme-label::before, .theme-label::after { width: 3px; height: 1.15em; border-radius: 2px; }
.js .theme-label::before, .js .theme-label::after, .js .hero-slogan::before { transform: scaleY(0); transform-origin: top; }
.js .is-in.theme-label::before, .js .is-in.theme-label::after, .js .is-in.hero-slogan::before { transform: none; }

.day h3 { position: relative; padding: 2px 0 2px 14px; margin-bottom: 12px; border-bottom: 0; }
.day h3::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--teal); }

.groups li::before { left: 0; top: 30px; width: 3px; height: 38px; border-radius: 0 3px 3px 0; transition: height .5s var(--ease-out); }
.groups li:hover::before { width: 3px; height: calc(100% - 60px); }

.panels { gap: 28px 0; border-bottom: 0; }
.panel { border-top: 0; border-left: 3px solid var(--brand-deep); padding: 4px 0 26px 20px; }
@media (min-width: 860px) {
  .panels { gap: 36px 0; }
  .panel:nth-child(odd) { border-right: 0; padding-right: clamp(22px, 3vw, 40px); }
  .panel:nth-child(even) { padding-left: clamp(22px, 3vw, 40px); }
}
.panel .n-list { border-top: 0; }

@media (max-width: 759px) {
  .motto-steps { border-top: 0; gap: 4px; }
  .motto-steps li { position: relative; justify-content: flex-start; padding: 14px 12px 14px 22px; border-bottom: 0; }
  .motto-steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 1.9em; margin-top: -.95em; border-radius: 2px; background: var(--teal); }
}

.nav-ink, .tab-ink { display: none; }
.nav-top { position: relative; padding: 10px 14px 10px 22px; }
.nav-top::before { content: ""; position: absolute; left: 11px; top: 50%; width: 3px; height: 1.15em; margin-top: -.575em; border-radius: 2px; background: var(--teal); opacity: 0; transform: scaleY(.3); transition: opacity .25s, transform .35s var(--ease-out); }
.nav-top:hover::before, .nav-top:focus-visible::before { opacity: .5; transform: none; }
.nav-top[aria-current="page"]::before { opacity: 1; transform: none; background: var(--brand); }
@media (min-width: 960px) and (max-width: 1180px) { .nav-top { padding: 10px 8px 10px 18px; } .nav-top::before { left: 8px; } }

.page-tabs { border-bottom: 0; }
.page-tabs ul { gap: 4px; }
.page-tabs a { position: relative; padding: 12px 16px 12px 24px; }
.page-tabs a::before { content: ""; position: absolute; left: 11px; top: 50%; width: 3px; height: 1.15em; margin-top: -.575em; border-radius: 2px; background: rgba(128, 39, 108, .22); transition: background-color .25s; }
.page-tabs a:hover::before { background: var(--teal); }
.page-tabs a[aria-current]::before { background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .groups li:hover::before { width: 3px; height: 38px; }
  .js .theme-label::before, .js .theme-label::after, .js .hero-slogan::before { transform: none !important; }
}

/* 교회소개 ‘우림교회는’: 표 대신 이미지 */
.vision-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.vision-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vision-photo figcaption { position: absolute; left: 14px; bottom: 12px; max-width: calc(100% - 28px); padding: 4px 12px; border-radius: 8px; background: rgba(30, 20, 30, .62); color: #fff; font-size: 14.4px; }
.vision-photo figcaption:empty { display: none; }

/* 교회소개 › 담임목사: 사진 + 인사말 + 약력(괴정제일교회 방식: 학력·사역 묶음 목록) */
.pastor-grid { display: grid; gap: 32px; }
.pastor-side .section-head { margin-bottom: 28px; }
.pastor-photo { margin: 0; width: min(100%, 340px); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.pastor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 960px) {
  .pastor-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 72px; align-items: start; }
  .pastor-grid .section-head { margin-bottom: 28px; }
  .pastor-side { position: sticky; top: calc(var(--header-h) + 24px); }
  .pastor-photo { width: 100%; }
}
.bio { padding: 26px 28px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.bio-label { font-size: 15.6px; font-weight: 800; color: var(--teal-text); margin-bottom: 16px !important; }
.bio-groups { display: grid; gap: 24px 40px; }
@media (min-width: 720px) { .bio-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bio-group h3 { position: relative; padding-left: 14px; margin-bottom: 8px; font-size: 20.4px; font-weight: 800; color: var(--brand-deep); }
.bio-group h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 2px; background: var(--teal); }
.bio-group li { position: relative; padding: 6px 0 6px 16px; line-height: 1.55; }
.bio-group li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.bio-empty { grid-column: 1 / -1; color: var(--muted); }

/* 글자를 키운 뒤에도 예배 시간표 세 칸이 좁은 화면(태블릿 가로)에서 넘치지 않게 */
.schedule { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .schedule { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day li { grid-template-columns: 6.2em minmax(0, 1fr); }
@media (min-width: 860px) and (max-width: 1180px) { .day { padding-left: 18px; padding-right: 18px; } .day li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.page-title { text-wrap: balance; }
.pastor-photo { width: min(100%, 280px); }
@media (min-width: 600px) { .pastor-photo { width: min(100%, 340px); } }
@media (min-width: 960px) { .pastor-photo { width: 100%; } }

/* 2026-10-30 목사님 요청: 같은 시각 예배는 시간 칸을 하나로 합치고 이름을 아래로 쌓는다 */
.day .svc-more { display: block; margin-top: 10px; }
