/* English fonts (Karla, Newsreader) load from CHURCH_HEAD_HTML in <head>, not @import: an @import waits for this file first, which made KR→EN look slow */
/* 샘플교회 — Six Stone Jars look over the app's default theme (loaded after style.css).
   Paper ground + grain, Pretendard light, 18px tiles, pill buttons, one muted blue accent. */
:root {
  --ink: #262B2E;
  --ink-soft: #525A5F;
  --pine: #25343B;
  --pine-deep: #1B262B;
  --paper: #EEECE5;
  --paper-raised: #F7F6F2;
  --line: rgba(38,43,46,.14);
  --cream: #E3E1D9;
  --pine-tint-1: #E4E9EB;
  --pine-tint-2: #C9D3D8;
  --pine-tint-3: #6B8494;
  --pine-tint-4: #33454D;
  --mist: #6B8494;
  --radius: 18px;
  --sb-r: 18px;
}
html { background: var(--paper); }
body { background: var(--paper); font-weight: 300; }
/* paper grain over everything, like sixstonejars.com */
body::after { content: ""; position: fixed; inset: 0; background: url('/church/assets/img/grain.png'); opacity: .25; mix-blend-mode: multiply; pointer-events: none; z-index: 95; }

/* type: all Pretendard, light headings */
body, body h1, body h2, body h3, body h4, body button, body input, body select, body textarea,
.hero-slide__title, .album-card__title, .sermon-preview__date, #giving h2, #giving h3 {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif !important;
}
body h1, body h2 { font-weight: 300; letter-spacing: -0.01em; }
body h3 { font-weight: 400; }

/* nav: light bar, small type, pill utility links */
.nav { background: rgba(238,236,229,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav__item, .nav__dropdown-link { font-weight: 500; font-size: .92rem; letter-spacing: .02em; }
.nav__utility-item { font-weight: 400; font-size: .85rem; border-radius: 999px; }
.nav__utility-item--highlight { color: var(--ink); }
@media (min-width: 900px) {
  .nav__utility-item { padding: 6px 14px; border: 1px solid var(--line); background: transparent; }
  .nav__utility-item--highlight { background: var(--pine); border-color: var(--pine); color: #fff; }
  .nav__dropdown-panel { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(22,23,25,.35); }
}

/* buttons */
.btn { border-radius: 999px; font-weight: 500; }
.btn--primary { background: var(--pine); color: #fff; }
.btn--muted { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; }

/* sub pages: tabs as pills, sections and cards rounded */
.about-tabs { border-bottom: none; gap: 8px; flex-wrap: wrap; }
.about-tabs__item { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; }
.about-tabs__item:hover { border-color: var(--pine); color: var(--pine); }
.mission-box { border-radius: var(--sb-r); background: rgba(255,255,255,.35); border: 1px solid var(--line); }
.ministry-band__visual { border-radius: var(--sb-r); overflow: hidden; }
.ministry-item__duration { border-radius: 999px; }
.sermon-card__thumb, .sermon-featured__thumb, .album-card { border-radius: 14px; }
.staff-row { border-radius: 14px; }

/* footer: light, quiet (SSJ avoids heavy black footers) */
.footer { background: #E3E1D9; color: var(--ink); }
.footer a, .footer__address-name, .footer__block h3 { color: var(--ink); }
.footer__row svg { color: var(--mist); }
.footer__address { border-bottom-color: var(--line); }

/* sermons without video */
.sermon-card__thumb:not(:has(img)) { background: #DCE2E3; }
.sermon-card__verse { color: #25343B; font-size: 1rem; font-weight: 400; }
.sermon-featured__thumb:not(:has(img)) { background: #DCE2E3 url('/church/assets/img/wash-mist.webp') center / cover; }
.sermon-featured__title { color: #25343B; font-weight: 300; }

/* ---------- home (church/pages/index.php) ---------- */
.sb { max-width: 1140px; margin: 0 auto; padding: 0 40px 96px; }
.sb-label { margin: 0 0 14px; font: 500 12px/1 'Pretendard Variable', Pretendard, sans-serif; letter-spacing: .1em; color: var(--ink-soft); }
.sb-hero { text-align: center; padding: 96px 0 72px; max-width: 860px; margin: 0 auto; }
.sb-hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.18; font-weight: 200; color: var(--ink); }
.sb-hero h1 span { color: var(--mist); }
.sb-lead { margin: 24px auto 0; max-width: 600px; word-break: keep-all; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-soft); }
.sb-actions { margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 999px; font: 500 14px/1 'Pretendard Variable', Pretendard, sans-serif; text-decoration: none; border: 1px solid var(--line); color: var(--ink); transition: transform .2s, background .2s; }
.sb-btn--dark { background: var(--pine); border-color: var(--pine); color: #fff; }
.sb-btn:hover { transform: translateY(-1px); }
.sb-btn:active { transform: translateY(1px); }
.sb-btn svg, .sb-link svg, .sb-more svg { width: 14px; height: 14px; }
.sb-link { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 'Pretendard Variable', Pretendard, sans-serif; letter-spacing: .04em; color: var(--ink); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; }

.sb-bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.sb-tile { border-radius: var(--sb-r); padding: 34px; position: relative; overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-height: 230px; }
.sb-tile h2 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 300; }
.sb-tile h3 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 400; }
.sb-tile p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.sb-tile--photo { grid-row: span 2; background-position: center; background-size: cover; min-height: 480px; }
.sb-tile--line { border: 1px solid var(--line); background: rgba(255,255,255,.25); }
.sb-tile--dark { background: var(--pine); color: #fff; }
.sb-tile--dark .sb-label, .sb-tile--dark p { color: #C9D3D8; }
.sb-tile--mist { background: #DCE2E3 url('/church/assets/img/wash-mist.webp') center / cover; }
.sb-tile--mist .sb-btn { margin-top: auto; align-self: flex-start; }
.sb-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #fff; }
.sb-times { list-style: none; margin: 4px 0 0; padding: 0; }
.sb-times li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.sb-times li + li { border-top: 1px solid var(--line); }
.sb-times span { color: var(--ink-soft); }
.sb-times b { font-weight: 500; white-space: nowrap; }

.sb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 96px; }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.sb-head h2, .sb-life h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 300; }
.sb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sb-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sb-list li:has(> a) { padding: 0; }
.sb-list li > a { flex: 1; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--ink); text-decoration: none; }
.sb-list time { color: var(--ink-soft); font-size: 14px; white-space: nowrap; }

.sb-life { padding-top: 96px; }
.sb-life h2 { margin-bottom: 24px; }
.sb-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.sb-cards a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.sb-cards img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--sb-r); margin-bottom: 10px; transition: transform .25s, box-shadow .25s; }
.sb-cards a:hover img { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(22,23,25,.35); }
.sb-cards b { font-weight: 500; font-size: 17px; }
.sb-cards span { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 900px) {
  .sb { padding: 0 20px 72px; }
  .sb-hero { padding: 56px 0 48px; }
  .sb-bento, .sb-two, .sb-cards { grid-template-columns: 1fr; }
  .sb-tile--photo { grid-row: auto; min-height: 260px; }
  .sb-cards img { height: 220px; }
  .sb-two, .sb-life { padding-top: 64px; }
  .sb-two { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) { .sb-btn, .sb-cards img { transition: none; } }


/* hero: centered text, shorter (Kay 2026-10-10) */
.hero--slider { min-height: 86vh; }
.hero-slide { padding-top: 110px; padding-bottom: 48px; }
.hero-slide .hero__content { margin: 0 auto; text-align: center; max-width: 820px; }
.hero-slide .hero__actions { justify-content: center; }
.hero-slide--sermon .hero__content { transform: none; }
@media (max-width: 899px) { .hero--slider { min-height: 70vh; } }
.hero-slide--white .hero__content { text-shadow: 0 1px 14px rgba(20,28,32,.45); }

/* home sermons: 주일 big on the left, 새벽 / 수요 / 금요 / 특별 as a 2x2 on the right (Kay 2026-10-10) */
@media (min-width: 900px) {
  .sermon-preview { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px 32px; align-items: start; }
  .sermon-preview > .resource-head { grid-column: 1 / -1; }
  .sermon-preview .sermon-featured { margin: 0; padding: 0; border: 0; }
  .sermon-preview .sermon-featured__thumb { max-width: none; }
  .sermon-preview .sermon-preview__grid { grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
  .sermon-preview .sermon-card__head { margin-bottom: 6px; }
}

/* menu stays at the top while scrolling, on every page incl. home (Kay 2026-10-10) */
.nav, .has-hero .nav { position: sticky; top: var(--banner-h, 0px); z-index: 90; background: rgba(238,236,229,.94); border-bottom: 1px solid var(--line); }
.has-hero .nav__logo-img--default { display: block; }
.has-hero .nav__logo-img--hero { display: none; }
.has-hero .nav__toggle { color: var(--ink); }
@media (min-width: 900px) {
  .has-hero .nav__item, .has-hero .nav__dropdown-link { color: var(--ink); }
  .has-hero .nav__utility-item:not(.nav__utility-item--highlight) { color: var(--ink); border-color: var(--line); background: transparent; }
}
.hero-slide { padding-top: 48px; }

/* 공지사항 under the hero */
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.notice-list a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.notice-list time { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }

/* 예배안내 left, 교회 일정 right */
.home-row { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: var(--page-w); margin: 0 auto; }
.home-row > .section { margin: 0; max-width: none; width: 100%; }
@media (min-width: 900px) {
  .home-row { grid-template-columns: 1fr 1.4fr; align-items: start; padding: 0 var(--space-2); }
  .home-row > .section { padding-left: 0; padding-right: 0; }
}
.service-section { background: rgba(255,255,255,.35); border: 1px solid var(--line); border-radius: var(--sb-r); }
/* 예배안내 box keeps its inner space inside the row (Kay: text too close to the frame) */
.home-row > .service-section { padding: 36px 40px; }
@media (max-width: 899px) { .home-row > .service-section { padding: 28px 24px; } }

/* 한/영: install snippets carry both languages, the page language picks one */
html[lang="en"] .i-ko, html:not([lang="en"]) .i-en { display: none !important; }
.nav__utility-item--lang { font-weight: 600 !important; }

/* 공지사항 + 예배안내 row, 달력 + 다가오는 일정 row */
.home-row > .notice-section { padding: 36px 0; }
.upcoming-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.upcoming-list li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.upcoming-list__date { color: var(--ink-soft); font-size: .85rem; }
.upcoming-list__date b { font-size: 1.35rem; font-weight: 300; color: var(--ink); margin-right: 6px; }
.upcoming-list__time { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
@media (min-width: 900px) { .home-row:has(.calendar-preview) { grid-template-columns: 1.6fr 1fr; } }
@media (min-width: 900px) { .home-row:has(.notice-section) { grid-template-columns: 1.3fr 1fr; } }

/* 샘플교회 photo for the "이번 주 설교" slide (the app default is 한소망's own photo) */
.hero-slide--sermon::before {
  background: linear-gradient(90deg, rgba(20,28,32,0.55) 0%, rgba(20,28,32,0.35) 50%, rgba(20,28,32,0.25) 100%),
              url('/church/assets/img/hero-sheep.jpg') center / cover no-repeat;
}
/* fallback hero background (app default photo) never shows 한소망's picture either */
.hero { background-image: url('/church/assets/img/hero-sheep.jpg'); }

/* breathing room: hero → first row, and between side-by-side parts (Kay: 너무 붙어있음) */
.home-row { gap: 56px; margin-top: 64px; margin-bottom: 24px; }
.hero--slider + .home-row { margin-top: 72px; }
@media (max-width: 899px) { .home-row { gap: 40px; margin-top: 40px; } }

/* ---- SSJ spacing (sixstonejars.com: 1140px content, 40px sides, ~100px between sections) ----
   The app default is 한소망's 1400px / 16px edges, which reads cramped in this style. */
:root { --page-w: 1140px; }
.section, .home-row { box-sizing: content-box; padding-left: 40px; padding-right: 40px; }
.section { padding-top: 88px; padding-bottom: 0; }
main.page, .about-page, .sermons-page { padding-left: 40px; padding-right: 40px; }
.resource-head { margin-bottom: 24px; }
.home-row { max-width: var(--page-w); margin: 88px auto 0; gap: 64px; }
.hero--slider + .home-row { margin-top: 88px; }
.home-row > .section { padding: 0; margin: 0; max-width: none; box-sizing: border-box; }
.home-row > .service-section { padding: 40px 44px; }
.sermon-preview { gap: 24px 40px !important; }
.sermon-preview .sermon-preview__grid { gap: 28px 24px !important; }
.footer { margin-top: 120px; }
@media (max-width: 899px) {
  .section, .home-row, main.page, .about-page, .sermons-page { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 64px; }
  .home-row { margin-top: 64px; gap: 56px; }
  .home-row > .service-section { padding: 28px 24px; }
  .footer { margin-top: 88px; }
}

/* hero titles appear in place, centered (no 한소망 letter-spacing sweep) */
.hero-slide .hero__title, .hero-slide.is-active .hero__title { letter-spacing: -0.01em !important; transition: none !important; }
.hero-slide .hero__content { transform: none !important; }
.hero-slide--ink .hero__verse { color: var(--ink-soft); }
/* 예배안내 left (narrower), 공지사항 right */
@media (min-width: 900px) { .home-row:has(> .service-section:first-child) { grid-template-columns: 1fr 1.3fr; } }
/* 공지사항 title on the same line as 예배안내 (box top padding 40px + 1px border) */
.home-row > .notice-section { padding-top: 41px; }
@media (max-width: 899px) { .home-row > .notice-section { padding-top: 0; } }

/* 공지 배너 under the hero */
.home-banner { max-width: var(--page-w); margin: 56px auto 0; padding: 0 40px; box-sizing: content-box; }
.home-banner .banner { position: static; border-radius: var(--sb-r); padding: 20px 28px; text-align: center; font-size: 1.02rem; line-height: 1.6;
  background: #DCE2E3 url('/church/assets/img/wash-mist.webp') center / cover; color: var(--ink); font-weight: 400; }
.home-banner .banner--urgent { background: #D7191C; color: #fff; }
.hero--slider + .home-banner + .home-row { margin-top: 56px; }
@media (max-width: 899px) { .home-banner { padding: 0 20px; margin-top: 40px; } }

/* 주일 video + caption */
.sermon-featured__caption { max-width: none; margin-top: 16px; }
.sermon-featured__caption-title { font-size: 1.25rem; font-weight: 400; }
.sermon-featured__caption-meta { margin-top: 4px; }
.sermon-featured__video { border-radius: 14px; }

/* 다가오는 일정 in the same box as 예배안내; calendar title level with the box title */
.home-row > .upcoming-section { padding: 40px 44px; background: rgba(255,255,255,.35); border: 1px solid var(--line); border-radius: var(--sb-r); }
.home-row > .calendar-preview { padding-top: 41px; }
.upcoming-list li:last-child { border-bottom: 0; }
@media (max-width: 899px) { .home-row > .upcoming-section { padding: 28px 24px; } .home-row > .calendar-preview { padding-top: 0; } }

/* ---- calmer home: SSJ-style bands instead of boxes (Kay: 하는 일 섹션처럼 색을 나눠서) ----
   paper: 배너 + 예배안내|공지사항 · wash: 주일예배 · paper: 달력|다가오는 일정 · wash: 행사 */
body { overflow-x: clip; }
.home-row > .service-section, .home-row > .upcoming-section { background: none; border: 0; border-radius: 0; padding: 0; }
.home-row > .notice-section, .home-row > .calendar-preview { padding-top: 0; }
.sermon-preview, .event-slider { position: relative; isolation: isolate; margin-top: 96px; padding-top: 88px !important; padding-bottom: 88px !important; }
.sermon-preview::before, .event-slider::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: #E3E1D9 url('/church/assets/img/wash-mist.webp') 50% 50% / cover;
}
.sermon-preview + .home-row, .sermon-preview + * { margin-top: 96px; }
.sermon-preview .sermon-card__thumb:not(:has(img)) { background: rgba(255,255,255,.55); }
.event-slider + .home-row, .footer { margin-top: 0; }
.home-row:last-of-type { margin-bottom: 96px; }
@media (max-width: 899px) {
  .sermon-preview, .event-slider { margin-top: 64px; padding-top: 56px !important; padding-bottom: 56px !important; }
  .sermon-preview + * { margin-top: 64px; }
}
.upcoming-list li:nth-child(n+7) { display: none; }   /* 6 is enough next to the calendar */
/* more air between the 주일 video and the four services */
@media (min-width: 900px) { .sermon-preview { column-gap: 72px !important; grid-template-columns: 1.35fr 1fr; } }

/* English: Six Stone Jars English type (Newsreader headings, Karla text) */
html[lang="en"] body, html[lang="en"] body button, html[lang="en"] body input, html[lang="en"] body select, html[lang="en"] body textarea,
html[lang="en"] .nav__item, html[lang="en"] .nav__dropdown-link, html[lang="en"] .nav__utility-item, html[lang="en"] .btn, html[lang="en"] .section-link {
  font-family: 'Karla', 'Pretendard Variable', Pretendard, sans-serif !important;
}
html[lang="en"] body h1, html[lang="en"] body h2, html[lang="en"] .hero__title, html[lang="en"] .hero-slide__title, html[lang="en"] .sermon-featured__title, html[lang="en"] .sermon-featured__caption-title {
  font-family: 'Newsreader', Georgia, serif !important; font-weight: 300 !important; letter-spacing: -0.01em;
}
html[lang="en"] body h3 { font-family: 'Karla', sans-serif !important; font-weight: 500; }

/* login: form left, demo accounts right on desktop */
@media (min-width: 900px) {
  main:has(> .demo-login) { max-width: 900px !important; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
  main:has(> .demo-login) > *:not(.demo-login):not(script) { grid-column: 1; }
  main:has(> .demo-login) > .demo-login { grid-column: 2; grid-row: 1 / span 8; margin-top: 0; }
}

/* English logo */

/* thin vertical line between side-by-side parts on the home page (Kay) */
@media (min-width: 900px) {
  .home-row { column-gap: 0 !important; }
  .home-row > * + * { border-left: 1px solid var(--line); padding-left: 56px !important; margin-left: 56px !important; }
  .home-row > *:first-child { padding-right: 0; }
  .sermon-preview { column-gap: 0 !important; }
  .sermon-preview .sermon-preview__grid { border-left: 1px solid rgba(38,43,46,.18); padding-left: 40px; margin-left: 40px; }
}

/* 공지 배너 at the very top (sticky), SSJ tone */
.banner { padding: 10px 16px; font-size: .9rem; font-weight: 400; background: #25343B; color: #fff; }
.banner.banner--urgent { background: #D7191C; color: #fff; padding: 14px 16px; font-size: 1.05rem; font-weight: 700; }   /* 긴급 공지: clearly red, bigger (Kay) */

/* 다가오는 일정: no title, a simple list centered against the calendar (Kay) */
@media (min-width: 900px) {
  .home-row:has(> .calendar-preview) { align-items: stretch; }
  .home-row > .upcoming-section { display: flex; flex-direction: column; justify-content: center; }
}
.upcoming-section > .resource-head { display: none; }
.upcoming-list { border-top: 0; }
.upcoming-list li { padding: 12px 4px; }
/* calendar grid in calmer greys */
.calendar-widget [style*="background:#DDDDDB"] { background: #E3E1D9 !important; }

/* English labels are longer: keep top-bar buttons on one line */
.nav__utility-item { white-space: nowrap; }
@media (min-width: 900px) { html[lang="en"] .nav__utility-item { font-size: .8rem; padding: 5px 12px; } html[lang="en"] .nav__utility { gap: 6px; } }

/* frosted menu: the page (and the home photo) shows softly blurred behind it (Kay) */
.nav, .has-hero .nav { background: rgba(238,236,229,.55) !important; -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid rgba(38,43,46,.08); }
.has-hero .hero--slider { margin-top: calc(-1 * (var(--nav-h, 90px) - var(--banner-h, 0px))); }
.has-hero .hero-slide { padding-top: calc(var(--nav-h, 90px) - var(--banner-h, 0px) + 24px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav, .has-hero .nav { background: rgba(238,236,229,.94) !important; } }

/* hero photos: no dark band at the top (it showed through the frosted menu); an even light veil for readable white text */
.hero-slide--white::before, .hero-slide--white:first-child::before {
  background: linear-gradient(0deg, rgba(20,28,32,.32), rgba(20,28,32,.32)), url('/church/assets/img/hero-sky.jpg') center / cover no-repeat !important;
}
.hero-slide--ink::before, .hero-slide--ink:first-child::before {
  background: linear-gradient(0deg, rgba(255,255,255,.18), rgba(255,255,255,.18)), var(--hero-bg) center / cover no-repeat !important;
}
.hero-slide--sermon::before {
  background: linear-gradient(0deg, rgba(20,28,32,.38), rgba(20,28,32,.38)), url('/church/assets/img/hero-sheep.jpg') center / cover no-repeat !important;
}
/* every line of the hero centered, not just the text inside a left-aligned box (Kay) */
.hero-slide .hero__content > * { margin-left: auto !important; margin-right: auto !important; text-align: center; }

/* footer bottom lines readable (Kay: 잘 보여야 해) */
.footer__bottom, .footer__bottom p, .footer__copyline, .footer__credit, .footer__credit a, .footer__address-note, .footer__row-note { color: var(--ink-soft) !important; opacity: 1 !important; font-size: .9rem; }
.footer__denomination-logo { opacity: .85; }

/* hero photos slightly blurred so the text reads better (Kay 2026-10-10); edges pushed out so the blur doesn't fade at the sides */
.hero-slide::before { inset: -16px; }
.hero-slide--sermon::before { inset: -16px -6% -16px -16px; }
.hero-slide.is-active::before { filter: blur(4px) !important; }
/* "Six Stone Jars Demo Site" in the empty band under the words "Sample Church" (right of the mark).
   Words start at 1.04 x logo height; the bottom 28% of the logo is empty beside the mark. */
html[lang="en"] .nav__logo { position: relative; text-decoration: none; }
html[lang="en"] .nav__logo::after { content: 'Six Stone Jars Demo Site'; position: absolute; left: 35px; bottom: 0; white-space: nowrap; font: 500 7.5px/1 Karla, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 900px) { html[lang="en"] .nav__logo::after { left: 45px; font-size: 9.5px; } }

/* intro curtain from the sixstonejars.com 데모 보기 button (?intro=1) */
.ssj-intro { display: none; }
html.ssj-intro-on { overflow: hidden; }
html.ssj-intro-on .ssj-intro { display: flex; position: fixed; inset: 0; z-index: 2000; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 24px; text-align: center; background: var(--paper, #EEECE5); transition: opacity .8s ease, transform .8s ease; }
html.ssj-intro-out .ssj-intro { opacity: 0; transform: scale(1.03); pointer-events: none; }
.ssj-intro svg { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
/* Six Stone Jars mark, simple line version: top jar, middle coil, then the base and the J upright, drawn one after another (Kay 2026-10-10) */
.ssj-intro .ssj-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ssj-draw .9s cubic-bezier(.5,0,.3,1) forwards; }
.ssj-intro .s2 { animation-delay: .75s; animation-duration: .8s; }
.ssj-intro .s3 { animation-delay: 1.4s; animation-duration: .8s; }
.ssj-intro__title { margin: 0; font-size: clamp(20px, 3vw, 26px); font-weight: 300; color: var(--ink); opacity: 0; animation: ssj-rise .8s ease .5s forwards; }
html[lang="en"] .ssj-intro__title { font-family: Newsreader, serif; }
.ssj-intro__sub { margin: 12px 0 0; max-width: 420px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); opacity: 0; animation: ssj-rise .8s ease .9s forwards; word-break: keep-all; }
@keyframes ssj-draw { to { stroke-dashoffset: 0; } }
@keyframes ssj-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* the intro still draws itself when the phone has "reduce motion" on (Kay saw only the last frame); it is short and moves little. Only the looping wave and the zoom-out are dropped there. */

/* welcome popup (what is fictional, demo logins) */
html.ssj-welcome-on { overflow: hidden; }
.ssj-welcome[hidden] { display: none; }
.ssj-welcome { position: fixed; inset: 0; z-index: 1900; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(38,43,46,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: ssj-fade .5s ease; }
.ssj-welcome__box { width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); overflow: auto; background: var(--paper-raised, #F7F6F2); border-radius: 18px; padding: 36px 34px 30px; box-shadow: 0 24px 60px rgba(38,43,46,.18); animation: ssj-rise .6s ease; }
.ssj-welcome h2 { margin: 0 0 10px; font-size: 24px; font-weight: 300; color: var(--ink); }
html[lang="en"] .ssj-welcome h2 { font-family: Newsreader, serif; font-size: 27px; }
.ssj-welcome__lead { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); word-break: keep-all; }
.ssj-welcome ul { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.ssj-welcome li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--ink); word-break: keep-all; }
.ssj-welcome__acct { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }
.ssj-welcome__acct b { color: var(--ink); font-weight: 600; }
.ssj-welcome__go { width: 100%; height: 50px; border: 0; border-radius: 999px; background: #25343B; color: #F5F3EC; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s; }
.ssj-welcome__go:hover { background: #33454D; }
@keyframes ssj-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .ssj-welcome__box { padding: 28px 22px 22px; } }
.ssj-welcome__go:focus { outline: none; }
.ssj-welcome__go:focus-visible { outline: 2px solid rgba(37,52,59,.3); outline-offset: 3px; }
/* then wine rises inside the loop of the "6" (the top ring of the mark) — Kay 2026-10-10: water to wine, John 2 */
.ssj-intro .ssj-wine { transform: translateY(90px); animation: ssj-fill 1.3s cubic-bezier(.3,0,.2,1) 2.1s forwards; }
.ssj-intro .ssj-wine__wave { fill: #8A3040; stroke: none; opacity: .8; animation: ssj-wave 1.2s linear infinite; }
@keyframes ssj-fill { to { transform: translateY(47px); } }
@keyframes ssj-wave { to { transform: translateX(40px); } }
@media (prefers-reduced-motion: reduce) { .ssj-intro .ssj-wine__wave { animation: none; } html.ssj-intro-out .ssj-intro { transform: none; } }
/* staff: placeholder silhouettes (light gray, no shadow) — a real church swaps in photos */
.staff-row img[src*="/staff/"] { filter: none; }
/* 교회 소개 anchors land below the sticky banner + menu (app default 110px is for 한소망's shorter menu) */
.about-section { scroll-margin-top: calc(var(--nav-h, 170px) + 24px); }
/* staff photos smaller (Kay: 너무 큼) */
.staff-row img { height: 130px; }
@media (max-width: 899px) { .staff-row img { height: 96px; } }
/* phones: the closed slide-in menu sits off-screen to the right and made the page pan sideways */
html { overflow-x: clip; }
/* iPhone bounce past the end shows the footer color, not the page color (same fix as sixstonejars.com) */
.footer { box-shadow: 0 60vh 0 60vh #E3E1D9; }
/* iPhone zooms in on tapped boxes under 16px and stays zoomed; 16px on phones prevents it */
@media (max-width: 900px) { input, select, textarea { font-size: 16px !important; } }
/* the blur sits on a layer behind the menu bar, not on the bar itself: a blur on the bar made the phone's slide-in menu
   (position:fixed inside it) only as tall as the bar (Kay: 메뉴가 위에 조금만 뜸) */
.nav, .has-hero .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent !important; isolation: isolate; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(238,236,229,.55); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); pointer-events: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav::before { background: rgba(238,236,229,.94); } }
/* phone menu like sixstonejars.com: full-width panel dropping under the menu bar; the ☰ button turns into an X (Kay 2026-10-10) */
@media (max-width: 899px) {
  .nav__menu { top: var(--nav-h, 120px); left: 0; right: 0; bottom: auto; width: 100%; max-width: none; max-height: calc(100dvh - var(--nav-h, 120px)); padding: 8px 24px 28px;
    transform: none; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; box-shadow: 0 18px 30px -18px rgba(34,38,43,.25); border-top: 1px solid var(--line); }
  .nav__menu.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
  .nav__close { display: none; }
  .nav__toggle { position: relative; width: 32px; height: 32px; }
  .nav__toggle::before, .nav__toggle::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); border-radius: 2px; opacity: 0; transition: transform .25s, opacity .15s; }
  .nav:has(.nav__menu.is-open) .nav__toggle svg { opacity: 0; }
  .nav:has(.nav__menu.is-open) .nav__toggle::before { opacity: 1; transform: rotate(45deg); }
  .nav:has(.nav__menu.is-open) .nav__toggle::after { opacity: 1; transform: rotate(-45deg); }
}
/* desktop has no slide-in menu, so the blur can sit on the bar itself again (the layer version didn't blur there) */
@media (min-width: 900px) {
  .nav, .has-hero .nav { background: rgba(238,236,229,.55) !important; -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
  .nav::before { display: none; }
}
/* menu bar: white, a little more see-through (Kay 2026-10-10) */
.nav::before { background: rgba(255,255,255,.45); }
@media (min-width: 900px) { .nav, .has-hero .nav { background: rgba(255,255,255,.45) !important; } }
/* demo login: picking an account only fills the form; the visitor presses 로그인 (Kay: auto-submit was confusing) */
.demo-login button.is-picked { border-color: var(--pine); background: #fff; box-shadow: 0 0 0 2px rgba(37,52,59,.15); }
main form .is-ready { box-shadow: 0 0 0 3px rgba(37,52,59,.25); }
/* 로그아웃: a stronger ring than the other top-bar pills, like the 라이브방송 button in the hero (Kay) */
@media (min-width: 900px) { .nav__utility-item[href="/logout.php"] { border: 2px solid rgba(20,48,74,.55) !important; padding: 5px 13px; } }
/* login: demo accounts first (left), form second (right) — pick an account, then press 로그인 (Kay 2026-10-11) */
@media (min-width: 900px) {
  main:has(> .demo-login) > *:not(.demo-login):not(script) { grid-column: 2; }
  main:has(> .demo-login) > .demo-login { grid-column: 1; }
}
@media (max-width: 899px) {
  main:has(> .demo-login) { display: flex; flex-direction: column; }
  main:has(> .demo-login) > .demo-login { order: -1; margin: 0 0 24px; }
}

/* ---- 양무리 pages ---- */
.about-verse { font-size: 1.05rem; color: var(--ink-soft, #566E7B); margin: 0 0 24px; }
.service-list, .history-list { list-style: none; padding: 0; margin: 0 0 16px; }
.service-list li { padding: 6px 0; }
.history-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line, #DAD7CE); }
.history-list__date { color: var(--ink-soft, #566E7B); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .history-list li { grid-template-columns: 1fr; gap: 2px; } }
.nurture-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.nurture-step { background: rgba(255,255,255,.6); border-radius: 8px; padding: 20px 22px; }
.nurture-step h3 { margin: 0 0 8px; }
.nurture-step ul { margin: 0; padding-left: 18px; }
.about-figure { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- 양무리 home sections (church/home/*.php) + 다음세대와 사역 / 섬기는 사람들 ---------- */
.ym-home h2 { margin-bottom: 16px; }
/* quick row: three quiet links, not tiles */
.ym-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 8px; padding-bottom: 8px; }
.ym-quick__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; text-align: center; color: var(--ink); text-decoration: none; font-size: .95rem; border-left: 1px solid var(--line); }
.ym-quick__item:first-child { border-left: 0; }
.ym-quick__item svg { width: 22px; height: 22px; color: var(--mist); }
.ym-quick__item small { font-size: .78rem; color: var(--ink-soft); }
/* photo cards: whole card is the link, text on the photo */
.ym-photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: var(--pine-tint-1) url('/church/assets/img/wash-mist.webp') center / cover; color: #fff; text-decoration: none; }
.ym-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.ym-photo:hover img { transform: scale(1.03); }
.ym-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,26,30,.72) 0%, rgba(20,26,30,.15) 55%, rgba(20,26,30,0) 100%); }
.ym-photo--plain::after { display: none; }
.ym-photo__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.ym-photo--plain { color: var(--pine); }
.ym-photo__label { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; opacity: .9; }
.ym-photo__title { font-size: 1.15rem; font-weight: 400; line-height: 1.4; word-break: keep-all; }
.ym-pair, .ym-three { display: grid; gap: 14px; }
@media (min-width: 720px) { .ym-pair { grid-template-columns: 1fr 1fr; } .ym-three { grid-template-columns: repeat(3, 1fr); } .ym-three .ym-photo { aspect-ratio: 3/4; } }
/* bands: photo with text block (새가족, 중보기도) */
.ym-band { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 360px; display: flex; align-items: flex-end; color: #fff; }
.ym-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ym-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,26,30,.8), rgba(20,26,30,.2)); }
.ym-band--dark::after { background: rgba(20,26,30,.62); }
.ym-band__text { position: relative; z-index: 1; padding: 28px 24px; max-width: 560px; }
.ym-band__text h2 { color: #fff; margin: 0 0 10px; }
.ym-band__text p { margin: 0 0 20px; line-height: 1.7; word-break: keep-all; opacity: .92; }
.ym-albums { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ym-albums li { border-bottom: 1px solid var(--line); }
.ym-albums a { display: block; padding: 14px 2px; color: var(--ink); text-decoration: none; }
.ym-note { margin-top: 12px; font-size: .88rem; color: var(--ink-soft); }
.ym-video { display: grid; gap: 6px; color: var(--ink); text-decoration: none; max-width: 640px; }
.ym-video__thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #DCE2E3; }
.ym-video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ym-video__title { font-weight: 400; }
.ym-video__meta { font-size: .88rem; color: var(--ink-soft); }

.ym-dept { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--paper-raised); border: 1px solid var(--line); }
.ym-dept h2 { margin: 0 0 12px; }
.ym-dl { display: grid; gap: 4px 20px; margin: 0; }
.ym-dl dt { font-size: 13px; font-weight: 500; color: var(--mist); margin-top: 12px; }
.ym-dl dd { margin: 0; line-height: 1.7; word-break: keep-all; }
@media (min-width: 720px) { .ym-dl { grid-template-columns: 150px 1fr; } .ym-dl dt { margin-top: 0; padding-top: 2px; } }
.ym-cards { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 720px) { .ym-cards { grid-template-columns: repeat(2, 1fr); } }
.ym-card { padding: 22px; border-radius: var(--radius); background: var(--paper-raised); border: 1px solid var(--line); }
.ym-card h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ym-card p { margin: 0; line-height: 1.7; word-break: keep-all; color: var(--ink-soft); }
.ym-card__intro { margin-bottom: 10px !important; font-size: .94rem; }
.ym-tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--pine-tint-1); color: var(--pine); }
.ym-weeks { margin: 0; padding-left: 0; list-style: none; line-height: 1.85; }
.ym-list { line-height: 1.9; padding-left: 1.1em; }
.ym-staff { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .ym-staff { grid-template-columns: repeat(2, 1fr); } }
.ym-staff li { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 14px; background: var(--paper-raised); border: 1px solid var(--line); }
.ym-staff__role { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--mist); }
.ym-staff__name { font-size: 1.08rem; }
.ym-photo--plain { aspect-ratio: auto; min-height: 150px; }
@media (min-width: 720px) { .ym-pair .ym-photo--plain { aspect-ratio: 4/3; } }
.ym-quick { padding-top: 0; padding-bottom: 0; }

/* photo bands on 교회소개 / 다음세대와 사역 (app .ministry-band); long sections: photo stays in view */
@media (min-width: 700px) {
  .about-page .ministry-band__visual { align-self: flex-start; position: sticky; top: calc(var(--nav-h, 170px) + 24px); height: 420px; flex-basis: 38%; }
}

/* keep the bottom of the hero photos in frame */
.hero-slide::before { background-position: center 80% !important; }

/* 선교 page (church/pages/mission) */
.ym-verse { margin: 0 0 28px; line-height: 1.8; word-break: keep-all; color: var(--ink-soft); }
.ym-verse__ref { color: var(--ink); }
.ym-cards--mission { display: grid; gap: 16px; }
.ym-card__img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 16px; }

/* menu dropdown = frosted glass (Kay 11-27 "프로스트 유리같이"). A blur on the bar itself stops the dropdown's own blur
   (the bar becomes its backdrop root), so on desktop too the bar's blur sits on its ::before layer. */
@media (min-width: 900px) {
  .nav, .has-hero .nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; }
  .nav::before { display: block; }
  .nav__dropdown-panel { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); border: 1px solid rgba(255,255,255,.6); }
  .nav__dropdown-item { color: var(--ink); }
  .nav__dropdown-item:hover { color: var(--pine); }
}

/* hero photos per slide (Kay 11-27: 양이 너무 많아 → 사랑으로 이웃 = flower field, 교회 비전 = sunrise field; 설교 slide keeps the sheep) */
.hero-slide--white[style*="hero-1.jpg"]::before { background: linear-gradient(0deg, rgba(20,28,32,.32), rgba(20,28,32,.32)), url('/church/assets/img/hero-love.jpg') center / cover no-repeat !important; }
.hero-slide--white[style*="hero-2.jpg"]::before { background: linear-gradient(0deg, rgba(20,28,32,.32), rgba(20,28,32,.32)), url('/church/assets/img/hero-glory.jpg') center / cover no-repeat !important; }

/* 주일예배 + 주일찬양 side by side in one row (Kay 11-27) */
.home-row:has(.ym-home) > .section { padding: 0 !important; margin: 0 !important; max-width: none; border: 0 !important; }
.home-row:has(.ym-home) .sermon-preview { display: block; }
.home-row:has(.ym-home) .sermon-featured { width: 100%; }
.home-row:has(.ym-home) .ym-video { width: 100%; }
@media (min-width: 900px) { .home-row:has(.ym-home) { grid-template-columns: 1fr 1fr; } }
.home-row:has(.ym-home) { column-gap: 48px !important; }
.home-row:has(.ym-home) .resource-head { margin: 0 0 24px !important; min-height: 32px; align-items: center; }
.home-row:has(.ym-home) .resource-head h2 { margin: 0 !important; }
/* the soft band sits behind the whole row, not just 주일예배 */
.home-row:has(.ym-home) .sermon-preview::before { content: none; }
.home-row:has(.ym-home) { position: relative; isolation: isolate; margin-top: 96px; padding-top: 88px; padding-bottom: 88px; }
.home-row:has(.ym-home)::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #E3E1D9 url('/church/assets/img/wash-mist.webp') 50% 50% / cover; }
.home-row:has(.ym-home) + * { margin-top: 96px; }
@media (max-width: 899px) { .home-row:has(.ym-home) { margin-top: 64px; padding-top: 56px; padding-bottom: 56px; } .home-row:has(.ym-home) + * { margin-top: 64px; } }


/* photo panel and the first card start on the same line (Kay 11-27: 줄이 안 맞음) */
.ministry-band__content > :first-child { margin-top: 0 !important; }

/* 선교: Bible verse under the photo, cards on the right (Kay 11-27) */
#mission .ministry-band__content { display: contents; }
#mission .ym-verse { margin: 24px 0 0 !important; }
@media (min-width: 900px) {
  #mission.ministry-band { display: grid; grid-template-columns: 403fr 617fr; column-gap: 40px; align-items: start; }
  #mission .ministry-band__visual { grid-column: 1; grid-row: 1; width: auto; }
  #mission .ym-verse { grid-column: 1; grid-row: 2; }
  #mission .ym-cards--mission { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 900px) { #mission.ministry-band { grid-template-rows: auto 1fr; } #mission .ym-cards--mission { margin-top: 0 !important; } }
#mission .ministry-band__visual { position: relative !important; top: auto !important; }
@media (min-width: 900px) { #mission.ministry-band { row-gap: 0; } }
/* video band sits right under the hero, no empty strip (Kay 11-27) */
.hero--slider + .home-row:has(.ym-home) { margin-top: 0 !important; }
/* no divider line under the two home videos (Kay 11-27) */
.home-row:has(.ym-home) .sermon-featured { border-bottom: 0 !important; padding-bottom: 0 !important; }
/* 매일성경 / 양육과 훈련: one photo + two text items (Kay 11-27) */
.ym-daily { display: grid; gap: 28px; align-items: center; }
.ym-daily__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }
.ym-daily__list { display: grid; }
.ym-daily__item { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid rgba(38,43,46,.14); color: var(--ink); text-decoration: none; }
.ym-daily__item:last-child { border-bottom: 1px solid rgba(38,43,46,.14); }
.ym-daily__label { font-size: 14px; color: var(--pine); letter-spacing: .02em; }
.ym-daily__title { font-size: 22px; font-weight: 400; line-height: 1.45; }
.ym-daily__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted, #6b7175); }
.ym-daily__more svg { width: 14px; height: 14px; }
.ym-daily__item:hover .ym-daily__title { color: var(--pine); }
@media (min-width: 900px) { .ym-daily { grid-template-columns: 1fr 1fr; gap: 56px; } }
@media (min-width: 900px) { .ym-daily--flip .ym-daily__img { order: 2; } }
/* 새가족사역 + 중보기도: small text cards (Kay 11-27) */
.ym-connect { display: grid; gap: 14px; }
@media (min-width: 720px) { .ym-connect { grid-template-columns: 1fr 1fr; } }
.ym-connect__card { padding: 28px 28px 24px; border: 1px solid rgba(38,43,46,.14); border-radius: var(--radius); background: rgba(255,255,255,.35); }
.ym-connect__card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 400; }
.ym-connect__card p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--muted, #6b7175); }
.ym-connect__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pine); text-decoration: none; }
.ym-connect__link svg { width: 14px; height: 14px; }
/* breathing room above the footer on home (Kay 11-27) */
.ym-home:has(.ym-connect) { margin-bottom: 120px !important; }
@media (max-width: 899px) { .ym-home:has(.ym-connect) { margin-bottom: 72px !important; } }
/* video band + quick links: tighter, quick links = text pills, no icons (Kay 11-27) */
.home-row:has(.ym-home) { padding-bottom: 56px !important; }
.home-row:has(.ym-home) + .ym-quick { margin-top: 48px !important; }
.ym-quick { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px; border: 0 !important; padding: 0 !important; }
.ym-quick__item { flex: 0 1 auto; display: inline-flex !important; flex-direction: row !important; align-items: baseline; gap: 10px; padding: 14px 26px !important; border: 1px solid rgba(38,43,46,.18) !important; border-radius: 999px; background: rgba(255,255,255,.4); color: var(--ink); text-decoration: none; font-size: 16px; }
.ym-quick__item::before, .ym-quick__item::after { content: none !important; }
.ym-quick__item small { font-size: 13px; color: var(--muted, #6b7175); margin: 0 !important; }
a.ym-quick__item:hover { border-color: var(--pine) !important; color: var(--pine); }
.home-row:has(.ym-home) { margin-bottom: 0 !important; padding-bottom: 48px !important; }
.home-row:has(.ym-home) .sermon-featured { margin-bottom: 0 !important; }
/* quick pills sit inside the video band, under the videos (Kay 11-27) */
.home-row:has(.ym-home) { padding-bottom: 40px !important; }
.home-row:has(.ym-home) + .ym-quick { margin-top: 0 !important; padding: 0 0 56px !important; position: relative; isolation: isolate; }
.home-row:has(.ym-home) + .ym-quick::before { content: "" !important; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #E3E1D9 url('/church/assets/img/wash-mist.webp') 50% 100% / cover; }
.home-row:has(.ym-home) + .ym-quick + * { margin-top: 96px !important; }
@media (max-width: 899px) { .home-row:has(.ym-home) + .ym-quick + * { margin-top: 64px !important; } }
/* less empty space after the video band (Kay 11-27) */
.home-row:has(.ym-home) + .ym-quick + .ym-home { margin-top: 72px !important; padding-top: 0 !important; }
@media (max-width: 899px) { .home-row:has(.ym-home) + .ym-quick + .ym-home { margin-top: 48px !important; } }
/* 예배안내 list lines up with its heading (Kay 11-27) */
.service-list { padding-left: 0 !important; }
.service-list li { margin-bottom: 8px !important; }
/* staff cards: no indent, same height in a row (Kay 11-27) */
.ym-staff { padding-left: 0 !important; }
.ym-staff li { margin: 0 !important; }
/* 교회 연혁 = timeline by year, no photo (Kay 11-27) */
.ym-timeline h2 { margin: 0 0 32px; }
.ym-timeline__year { display: grid; grid-template-columns: 88px 1fr; gap: 0 32px; }
.ym-timeline__label { font-size: 22px; font-weight: 300; color: var(--pine); padding-top: 2px; position: sticky; top: 110px; align-self: start; }
.ym-timeline__list { list-style: none; margin: 0 !important; padding: 0 0 28px 28px !important; border-left: 1px solid var(--line, #DAD7CE); }
.ym-timeline__list li { position: relative; display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; margin: 0 !important; padding: 6px 0; }
.ym-timeline__list li::before { content: ""; position: absolute; left: -32.5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper, #EEECE6); border: 1px solid var(--pine); }
.ym-timeline__date { color: var(--ink-soft, #566E7B); font-variant-numeric: tabular-nums; font-size: 15px; }
.ym-timeline__text { line-height: 1.6; }
@media (max-width: 600px) {
  .ym-timeline__year { grid-template-columns: 1fr; }
  .ym-timeline__label { position: static; margin: 8px 0 8px; }
  .ym-timeline__list { padding-left: 20px !important; }
  .ym-timeline__list li { grid-template-columns: 1fr; gap: 0; }
  .ym-timeline__list li::before { left: -24.5px; }
}
.ym-weeks { padding-left: 0 !important; }
/* 교회 비전 = full-width rows, no word breaks (Kay 11-27) */
.ym-vision { border-top: 1px solid var(--line, #DAD7CE); margin-bottom: 8px; }
.ym-vision__row { display: grid; grid-template-columns: 9em 1fr; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line, #DAD7CE); }
.ym-vision__head { font-size: 18px; font-weight: 400; }
.ym-vision__no { color: var(--pine); font-variant-numeric: tabular-nums; margin-right: 10px; }
.ym-vision__items { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 0; }
.ym-vision__items li { margin: 0 !important; word-break: keep-all; white-space: nowrap; }
.ym-vision__items li + li::before { content: "·"; margin: 0 12px; color: var(--mist, #9aa3a8); }
@media (max-width: 600px) { .ym-vision__row { grid-template-columns: 1fr; } .ym-vision__items { display: block; } .ym-vision__items li { white-space: normal; } .ym-vision__items li + li::before { content: none; } }
/* Korean text never breaks mid-word */
body { word-break: keep-all; overflow-wrap: anywhere; }
/* 교회 비전: items stacked, no stray dots on wrap (Kay 11-27) */
.ym-vision__items { display: grid !important; gap: 2px; }
.ym-vision__items li { white-space: normal !important; }
.ym-vision__items li + li::before { content: none !important; }
/* 섬기는 사람들: 4 across, photo placeholder until the church sends photos (Kay 11-27) */
.ym-staff { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
@media (min-width: 900px) { .ym-staff { grid-template-columns: repeat(4, 1fr) !important; } }
.ym-staff li { padding: 0 0 18px !important; overflow: hidden; text-align: center; align-items: center; }
.ym-staff__photo { display: block; width: 100%; aspect-ratio: 4/5; margin-bottom: 14px; background: #DCDAD3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='17' fill='%23C3C0B7'/%3E%3Cpath d='M18 92c4-20 18-30 32-30s28 10 32 30z' fill='%23C3C0B7'/%3E%3C/svg%3E") center 70% / 55% no-repeat; }
.ym-staff__role, .ym-staff__name { padding: 0 12px; }
/* 환영인사: small pastor photo beside the text (from the old site, 286px wide; Kay 11-27) */
.greeting-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .greeting-layout { grid-template-columns: 1fr 200px; gap: 48px; } }
.greeting-photo { margin: 0; max-width: 200px; }
.greeting-photo img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius); display: block; }
.greeting-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted, #6b7175); }
/* 교회 비전: the church's own graphic (old site) full width on desktop; text rows on phones where the graphic is too small (Kay 11-27) */
.ym-vision-art img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
@media (min-width: 900px) { .ym-vision-title, .ym-vision { display: none !important; } }
@media (max-width: 899px) { .ym-vision-art { display: none !important; } }
/* staging: "Draft" tag at the bottom of every page until the church approves (Kay 11-27) — remove before launch */
body::after { content: "Draft"; position: fixed; z-index: 9999; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: rgba(20,28,32,.78); color: #fff; font-size: 13px; letter-spacing: .08em; pointer-events: none; }
body::after { top: auto !important; right: auto !important; width: auto !important; height: auto !important; opacity: 1 !important; background-image: none !important; mix-blend-mode: normal !important; animation: none !important; }
/* Draft tag in the bottom-left corner, same as the OCI site (Kay 11-27) */
body::after { content: "DRAFT" !important; left: 16px !important; bottom: 16px !important; transform: none !important; padding: 6px 12px !important; font-size: 12px !important; letter-spacing: .14em !important; background: #25343B !important; z-index: 20 !important; }
/* footer 예배시간: no icons (Kay 11-27) */
.footer__block:first-child .footer__row svg { display: none !important; }
.footer__block:first-child .footer__row { padding-left: 0 !important; gap: 0 !important; }
/* footer bottom tidy: one left edge, small quiet credit (Kay 11-27) */
.footer__bottom { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid rgba(38,43,46,.12); }
.footer__denomination { gap: 0 !important; }
.footer__denomination img[src=""], .footer__denomination img:not([src]) { display: none !important; }
.footer__denomination p { margin: 0 !important; font-size: 13px; line-height: 1.6; color: var(--muted, #6b7175); }
.footer__copyline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; font-size: 13px; color: var(--muted, #6b7175); }
.footer__credit { font-size: 11px; opacity: .55; letter-spacing: .02em; }
.footer__credit a { color: inherit; text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }
.footer__credit, .footer__credit a { font-size: 11px !important; opacity: 1; color: rgba(38,43,46,.45) !important; }
.footer { padding-bottom: 64px !important; }   /* DRAFT tag never covers the credit */
/* 교회 수정요청 2026-11-27 */
/* 온라인 헌금: pill opens a small box with e-Transfer + memo codes */
.ym-give { position: relative; }
.ym-give summary { list-style: none; cursor: pointer; }
.ym-give summary::-webkit-details-marker { display: none; }
.ym-give[open] summary { background: rgba(255,255,255,.85); }
.ym-give__box { position: absolute; z-index: 5; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: min(340px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid rgba(38,43,46,.14); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.08); font-size: 14px; line-height: 1.6; text-align: left; }
.ym-give__box p { margin: 0 0 6px; } .ym-give__box p:last-child { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .ym-give { position: static; } .ym-give__box { top: auto; margin-top: 8px; left: 50%; transform: translateX(-50%); } }   /* box centred on the row: pill wraps to 2nd line on ≤360px phones (목사님 11/28 반만 보임) */
/* 청소년부: 3 cards + text */
.ym-youth-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 16px; }
.ym-youth-cards img { width: 100%; height: auto; display: block; border-radius: 10px; }
.ym-youth-text p { margin: 0 0 10px; line-height: 1.75; }
/* 팀사역: icon beside team name */
.ym-team-name { display: flex; align-items: center; gap: 10px; }
.ym-team-name svg { flex: none; color: var(--pine, #3d5a52); }
/* 교회비전: image smaller so its text ≈ body text; hidden on mobile (text rows too) */
.ym-vision-art img { max-width: 860px; margin: 0 auto; }   /* 860px: item text ≈ 16px body, title ≈ 24px h2 (measured glyphs 20px/29px at 1280) */
@media (max-width: 899px) { .ym-vision-title, .ym-vision { display: none !important; } }
/* 섬기는 사람들: real photos, 6 people = 3 across (2 even rows) */
img.ym-staff__photo { object-fit: cover; object-position: center top; background: none; }
@media (min-width: 720px) { .ym-staff { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 1100px) { .ym-staff { grid-template-columns: repeat(6, 1fr) !important; } }   /* 6 people in one row */
/* 부서 사진 앨범: swipe on phones, arrows on desktop */
.ym-album { position: relative; margin: 20px 0 8px; }
.ym-album__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.ym-album__track::-webkit-scrollbar { display: none; }
.ym-album__track img { flex: 0 0 100%; width: 100%; aspect-ratio: 16/10; object-fit: cover; scroll-snap-align: start; border-radius: 12px; display: block; }
.ym-album__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ym-album__btn--prev { left: 10px; } .ym-album__btn--next { right: 10px; }
/* church logo (tall mark): sized so header keeps its height */
.nav__logo-img { height: 48px !important; }
@media (min-width: 900px) { .nav__logo-img { height: 62px !important; } }
@media (max-width: 359px) { .nav__logo-img { height: 42px !important; } }
/* 침례교 신앙과 메시지: 18 topics, tap to open (like kbcv.ca) */
.ym-faith__intro { color: var(--ink-soft); }
.ym-faith { border-top: 1px solid var(--line, #DAD7CE); }
.ym-faith__item { border-bottom: 1px solid var(--line, #DAD7CE); }
.ym-faith__item summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.ym-faith__item summary::-webkit-details-marker { display: none; }
.ym-faith__item summary::after { content: "+"; font-size: 22px; color: var(--mist, #9aa3a8); }
.ym-faith__item[open] summary::after { content: "−"; }
.ym-faith__item p { margin: 0 0 12px; line-height: 1.8; }
.ym-faith__item p:last-child { margin-bottom: 20px; }
/* 침례교 신앙과 메시지 배너 (11/28) */
.ym-faith-banner { text-align: center; padding: 44px 20px 36px; margin: 0 0 24px; border-radius: 14px; background: var(--pine-tint-1, #E4E9EB); color: var(--pine, #25343B); }
.ym-faith-banner svg { width: min(220px, 60%); height: auto; display: block; margin: 0 auto 18px; }
.ym-faith-banner__eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .22em; color: var(--ink-soft, #5b6266); }
.ym-faith-banner__title { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 400; color: var(--pine, #25343B); }
/* footer side gutter = nav/logo gutter on desktop (Kay 11/30: 푸터가 왼쪽에서 너무 가까워) */
@media (min-width: 900px) { .footer { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; } }
