/* Iropke Batang (http://font.iropke.com/batang/, free) — subset of the CDN IropkeBatangM, self-hosted.
   block: keep the text hidden for the moment the preloaded file takes, instead of showing a different font first.
   Rare syllables outside the subset fall back to Pretendard. */
@font-face { font-family: 'Iropke Batang'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/assets/fonts/iropke-batang-m.woff2') format('woff2'); }
:root {
  /* Trailhead / wayfinding — muted pine accent, charcoal ink, warm paper */
  --ink: #22262B;
  --ink-soft: #4A5058;
  --pine: #2B6982;
  --pine-deep: #1F4F62;
  --color-accent: var(--pine);
  --paper: #F5F5F3;
  --paper-raised: #FFFFFF;
  --line: #DBDBD7;
  --line-on-dark: rgba(255,255,255,0.18);
  --cream: #EFEEEA;

  --pine-tint-1: #EAF3F2;
  --pine-tint-2: #B9D9D7;
  --pine-tint-3: #5B85A0;
  --pine-tint-4: #1F4F62;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  font-family: 'Poppins', 'Pretendard', -apple-system, "Apple SD Gothic Neo", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: 'Poppins', 'Iropke Batang', 'Pretendard', serif;
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 var(--space-2);
}
p { margin: 0 0 var(--space-2); }
main.page { max-width: 720px; margin: 0 auto; padding: var(--space-5) var(--space-2); }
main.page h1 { font-size: 1.9rem; margin-bottom: var(--space-4); }
.muted { color: var(--ink-soft); }

::selection { background: var(--pine); color: var(--paper); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

/* Buttons — quiet by default, no saturated fills */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 22px;
  font-size: 0.95rem; font-weight: 700;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.16,1,0.3,1), background 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #14171b; }
.btn--outline-light { border-color: rgba(34,38,43,0.4); color: var(--ink); }
.btn--outline-light:hover { background: rgba(34,38,43,0.08); }
.btn--outline { border-color: var(--pine); color: var(--pine); }
.btn--outline:hover { background: var(--pine); color: #fff; }
.btn--xs { padding: 4px 10px; font-size: 0.8rem; }
.btn--xs svg { width: 14px; height: 14px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--sm { padding: 7px 16px; font-size: 0.85rem; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--muted { background: var(--line); color: var(--ink-soft); }
.btn--muted:hover { background: #cfcfca; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--space-2);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: var(--banner-h, 0px); z-index: 100;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 34px; width: auto; display: block; mix-blend-mode: multiply; }
.nav__logo-img--hero { display: none; }
.nav__toggle { background: none; border: none; padding: 4px; cursor: pointer; color: var(--ink); }
.nav__toggle-icon svg { width: 24px; height: 24px; display: block; }
.nav__menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 82%; max-width: 340px;
  background: var(--paper);
  padding: var(--space-5) var(--space-2) var(--space-3);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1);
  box-shadow: -12px 0 24px -8px rgba(34,38,43,0.18);
  z-index: 101;
  display: flex; flex-direction: column;
}
.nav__main { order: 1; }
.nav__utility { order: 2; }
.nav__menu.is-open { transform: translateX(0); }
.nav__close { position: absolute; top: 14px; right: var(--space-2); background: none; border: none; padding: 4px; cursor: pointer; color: var(--ink); }
.nav__close svg { width: 24px; height: 24px; display: block; }
.nav__item {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.nav__dropdown-row { justify-content: space-between; }
.nav__dropdown-link { color: inherit; text-decoration: none; font: inherit; flex: 1; }
.nav__dropdown-toggle {
  background: none; border: none; padding: 4px; margin-left: 4px;
  cursor: pointer; color: inherit; display: flex; align-items: center;
}
.nav__caret { width: 14px; height: 14px; opacity: 0.5; transition: transform 160ms ease; }
.nav__dropdown.is-open .nav__caret { transform: rotate(180deg); }
.nav__dropdown-panel { display: none; padding: 4px 0 4px var(--space-2); }
.nav__dropdown.is-open .nav__dropdown-panel { display: block; }
.nav__dropdown-item { display: block; padding: 10px 0; font-size: 0.98rem; color: var(--ink-soft); font-weight: 500; }
.nav__dropdown-item:hover { color: var(--pine); }

.nav__utility {
  margin: 0 calc(-1 * var(--space-2)) var(--space-2);
  padding: 8px var(--space-2) var(--space-2);
  border-bottom: 1px solid var(--line);
  background: rgba(34,38,43,0.09);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.nav__utility-item { padding: 10px 0; font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.nav__utility-item:hover { color: var(--pine); }
.nav__utility-item--highlight { color: var(--pine-deep); font-weight: 700; }
.has-hero .nav {
  position: absolute; top: var(--banner-h, 0px); left: 0; right: 0; z-index: 20;
  background: transparent; border-bottom: none;
}
.has-hero .nav__logo-img--default { display: none; }
.has-hero .nav__logo-img--hero { display: block; height: 54px; }
.has-hero .nav__toggle { color: #fff; }

@media (min-width: 900px) {
  .nav { padding: 24px var(--space-4) 16px; }
  .nav__logo-img { height: 44px; }
  .has-hero .nav__logo-img--hero { height: 70px; }
  .hero { padding-top: 140px; }
  .nav__toggle { display: none; }
  .nav__close { display: none; }
  .nav__menu {
    display: flex; flex-direction: column; align-items: flex-end;
    position: static; inset: auto; padding: 0; background: none;
    overflow: visible;
    width: auto; max-width: none; transform: none; box-shadow: none;
  }
  .nav__main { display: flex; align-items: center; gap: var(--space-1); order: 2; }
  .nav__utility { order: 1; }
  .nav__item { border-bottom: none; padding: 8px 12px; font-size: 0.95rem; position: relative; }
  .nav__item:hover { color: var(--pine); }
  .nav__dropdown { position: relative; }
  .nav__dropdown-panel {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: rgba(20,22,25,0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 24px -8px rgba(34,38,43,0.18);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: var(--space-1) var(--space-2);
    min-width: 160px;
  }
  .nav__dropdown-item { color: rgba(255,255,255,0.9); }
  .nav__dropdown-item:hover { color: var(--pine-tint-2); }
  .nav__dropdown:hover .nav__dropdown-panel {
    display: block;
  }
  .nav__dropdown:last-child .nav__dropdown-panel { left: auto; right: 12px; transform: none; }
  .nav__dropdown-item { text-align: center; }
  .nav__utility {
    margin: 0 12px 8px 0; padding: 0; border-bottom: none; background: none;
    flex-direction: row; align-items: center; gap: 10px;
  }
  .nav__utility-item {
    padding: 5px 14px; font-size: 0.8rem;
    background: rgba(34,38,43,0.09); border-radius: var(--radius);
  }
  .nav__utility-item--live { display: none; }
  .nav__utility-item--highlight { background: var(--pine); color: #fff; }
  .nav__utility-item--highlight:hover { color: #fff; opacity: 0.9; }

  .has-hero .nav__item { color: #fff; }
  .has-hero .nav__item:hover { color: var(--pine-tint-2); }
  .has-hero .nav__utility-item:not(.nav__utility-item--highlight) {
    background: rgba(255,255,255,0.15);
    color: #fff;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 83vh;
  display: flex; align-items: center;
  padding: 100px var(--space-2) var(--space-5);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.32) 10%, rgba(0,0,0,0.12) 20%, rgba(0,0,0,0) 34%),
              url('/assets/img/hero-nature.jpg?v=2') center / cover no-repeat;
  box-sizing: border-box;
}
.hero__inner { max-width: 1000px; margin: 0 auto; width: 100%; }
.hero__content { position: relative; max-width: 720px; }
.hero__title {
  font-family: 'Poppins', 'Iropke Batang', 'Pretendard', serif;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.25; margin-bottom: var(--space-2);
  text-wrap: balance; word-break: keep-all;
}
.hero__verse { font-size: 1.15rem; opacity: 0.85; margin-bottom: var(--space-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions + .hero__actions { margin-top: 12px; }

/* ---------- Section rhythm ---------- */
.section { padding: var(--space-5) var(--space-2); max-width: 1000px; margin: 0 auto; }
.service-section { background: #EEEEEC; border-radius: 12px; padding: var(--space-4) var(--space-3); }
.section--raised { background: var(--paper-raised); }
.section h2 { font-size: 1.4rem; margin-bottom: var(--space-3); }

.schedule {
  border-top: 1px solid var(--line);
}
.schedule__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}
.schedule__name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.schedule__name svg { width: 18px; height: 18px; color: var(--pine); flex-shrink: 0; }
.schedule__time { font-weight: 700; white-space: nowrap; text-align: right; }
.schedule__note { display: block; font-weight: 700; font-size: 0.85rem; opacity: 0.85; }
.schedule__place { color: var(--ink-soft); font-size: 0.88rem; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.schedule__place svg { width: 14px; height: 14px; flex-shrink: 0; }

.sermon-preview__date { font-family: 'Poppins', 'Pretendard', -apple-system, "Apple SD Gothic Neo", sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); margin-left: 8px; }
.sermon-featured {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: var(--space-4); padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.sermon-featured__thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: var(--line); display: block;
  width: 100%; max-width: 880px; margin: 0 auto;
}
.sermon-featured__thumb iframe { width: 100%; height: 100%; display: block; border: 0; }
.sermon-featured__play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.sermon-featured__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sermon-featured__play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.9; transition: opacity .2s; }
.sermon-featured__play:hover .sermon-featured__play-icon, .sermon-featured__play:focus-visible .sermon-featured__play-icon { opacity: 1; }
.sermon-featured__play:focus-visible { outline: 3px solid var(--pine); outline-offset: -3px; }
.sermon-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sermon-card__cat { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.sermon-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 700; color: var(--pine); text-decoration: none;
}
.sermon-more:hover { text-decoration: underline; }
.sermon-more svg { width: 14px; height: 14px; }

.sermon-preview__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3); margin-bottom: var(--space-3);
}
.sermon-card { display: block; }
.sermon-card__link { color: var(--ink); text-decoration: none; display: block; }
.sermon-card__thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden;
  background: var(--line); margin-bottom: 8px;
}
.sermon-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sermon-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,22,25,0.15); color: #fff;
  opacity: 0; transition: opacity 0.15s ease;
}
.sermon-card__play svg { width: 32px; height: 32px; }
.sermon-card__link:hover .sermon-card__play, .sermon-card__link:focus-visible .sermon-card__play { opacity: 1; }
.sermon-card__label { font-size: 0.78rem; font-weight: 700; color: var(--pine); margin-bottom: 2px; }
.sermon-card__title {
  font-size: 0.92rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sermon-card__title-series { font-weight: 600; color: var(--pine); }
.sermon-card__preacher { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.sermon-card__audio {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  font-size: 0.78rem; font-weight: 700; color: var(--pine); text-decoration: none;
}
.sermon-card__audio:hover { text-decoration: underline; }
.sermon-card__audio svg { width: 14px; height: 14px; }
@media (min-width: 900px) {
  .sermon-preview__grid { grid-template-columns: repeat(3, 1fr); }
}

a.section-link, label.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-2); font-weight: 700; color: var(--pine);
  text-decoration: none;
}
a.section-link:hover, label.section-link:hover { text-decoration: underline; }
a.section-link svg, label.section-link svg { width: 16px; height: 16px; }
.resource-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap;
}
.resource-head h1, .resource-head h2 { margin-bottom: 0; }
.resource-head .section-link { margin-top: 0; font-size: 0.9rem; }
.news-preview__list { display: flex; flex-direction: column; gap: var(--space-3); }
.news-preview__item { background: #fff; border-radius: 8px; padding: var(--space-3); }
.news-preview__item--has-image { display: flex; gap: var(--space-3); align-items: flex-start; }
.news-preview__photo { flex: 0 0 140px; width: 140px; height: 140px; border-radius: 6px; overflow: hidden; }
.news-preview__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-preview__text { flex: 1; min-width: 0; }
.news-preview__title { font-weight: 700; font-size: 1rem; }
.news-preview__date { font-size: 0.78rem; color: var(--ink-soft); margin: 2px 0 6px; }
.news-preview__body {
  font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 500px) {
  .news-preview__item--has-image { flex-direction: column; }
  .news-preview__photo { width: 100%; height: 160px; }
}
.event-slider__viewport { position: relative; }
.event-slider__slide {
  display: none; flex-direction: column; gap: var(--space-2);
}
.event-slider__slide.is-active { display: flex; }
.event-slider__photo {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--pine-tint-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.9rem; overflow: hidden;
}
.event-slider__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-slider__info { display: flex; flex-direction: column; gap: 6px; }
.event-slider__title { font-weight: 700; font-size: 1.15rem; }
.event-slider__desc { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
@media (min-width: 700px) {
  .event-slider__slide.is-active { flex-direction: row; align-items: center; gap: var(--space-4); }
  .event-slider__photo { flex: 0 0 40%; aspect-ratio: 16 / 10; }
  .event-slider__info { flex: 1; }
  .event-slider__title { font-size: 1.3rem; }
}
.event-slider__controls {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  margin-top: var(--space-3);
}
.event-slider__arrow {
  background: none; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft); padding: 4px 8px;
}
.event-slider__arrow:hover { color: var(--pine); }
.event-slider__dots { display: flex; gap: 8px; }
.event-slider__dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--line); cursor: pointer;
}
.event-slider__dot.is-active { background: var(--pine); }

.admin-dash-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-dash-list li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.admin-dash-list li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); }
.admin-dash-list li a { color: var(--ink); text-decoration: none; }
.admin-dash-list li a:hover { color: var(--pine); text-decoration: underline; }

label.section-link { cursor: pointer; }
.toggle-checkbox { display: none; }
.toggle-content { display: none; }
.toggle-checkbox:checked ~ .toggle-content { display: block; }
.sermon-featured__links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.sermon-featured__links .section-link { margin-top: 0; }

/* ---------- Sermons page ---------- */
.sermons-page { max-width: 1000px; margin: 0 auto; padding: var(--space-5) var(--space-2); }
.sermons-page__title { font-size: 1.6rem; }
.sermons-page__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-2); margin-bottom: var(--space-4); flex-wrap: wrap;
}
.sermons-page__head .section-link { margin-top: 0; }
.sermon-section { margin-bottom: var(--space-5); scroll-margin-top: 110px; }
.sermon-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-2); margin-bottom: var(--space-3);
}
.sermon-section__head h2 { font-size: 1.5rem; }
.sermon-section__head .section-link { margin-top: 0; font-size: 0.9rem; }
.sermon-section__head-title { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sermon-section__head-title h2 { margin-bottom: 0; }

.sermon-row {
  display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.sermon-row .sermon-card { flex: 0 0 42%; min-width: 160px; scroll-snap-align: start; }
@media (min-width: 900px) { .sermon-row .sermon-card { flex-basis: 220px; } }

.sermon-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
}
@media (min-width: 900px) { .sermon-grid { grid-template-columns: repeat(4, 1fr); } }

.view-toggle-checkbox { display: none; }
.view-toggle { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.view-toggle__btn { padding: 5px 12px; font-size: 0.8rem; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.view-toggle-checkbox:not(:checked) ~ .sermons-page__head .view-toggle__btn--grid,
.view-toggle-checkbox:not(:checked) ~ .view-toggle-row .view-toggle__btn--grid,
.view-toggle-checkbox:checked ~ .sermons-page__head .view-toggle__btn--list,
.view-toggle-checkbox:checked ~ .view-toggle-row .view-toggle__btn--list { background: var(--pine); color: #fff; }
.view-toggle__btn svg { display: block; width: 18px; height: 18px; }

.view-toggle-checkbox:checked ~ .sermon-grid { display: flex; flex-direction: column; gap: var(--space-2); }
.view-toggle-checkbox:checked ~ .sermon-section .sermon-row {
  display: flex; flex-direction: column; overflow: visible; gap: var(--space-2);
}
.view-toggle-checkbox:checked ~ .sermon-grid .sermon-card,
.view-toggle-checkbox:checked ~ .sermon-section .sermon-row .sermon-card {
  flex: unset; min-width: 0; display: flex; align-items: center; gap: var(--space-3);
  border-bottom: 1px solid var(--line); padding-bottom: var(--space-2);
}
.view-toggle-checkbox:checked ~ .sermon-grid .sermon-card__link,
.view-toggle-checkbox:checked ~ .sermon-section .sermon-row .sermon-card__link {
  display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0;
}
.view-toggle-checkbox:checked ~ .sermon-grid .sermon-card__thumb,
.view-toggle-checkbox:checked ~ .sermon-section .sermon-row .sermon-card__thumb {
  width: 120px; flex: 0 0 120px; margin-bottom: 0;
}
.view-toggle-checkbox:checked ~ .sermon-grid .sermon-card__title,
.view-toggle-checkbox:checked ~ .sermon-section .sermon-row .sermon-card__title { -webkit-line-clamp: 2; }
.view-toggle-checkbox:checked ~ .sermon-grid .sermon-card__audio,
.view-toggle-checkbox:checked ~ .sermon-section .sermon-row .sermon-card__audio { margin-top: 0; }
@media (max-width: 600px) {
  .view-toggle-checkbox:checked ~ .sermon-grid .sermon-card__link,
  .view-toggle-checkbox:checked ~ .sermon-section .sermon-row .sermon-card__link {
    align-items: flex-start;
  }
  .view-toggle-checkbox:checked ~ .sermon-grid .sermon-card__title,
  .view-toggle-checkbox:checked ~ .sermon-section .sermon-row .sermon-card__title { -webkit-line-clamp: 2; }
}

.audio-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line);
}
.audio-item__meta { display: flex; flex-direction: column; gap: 2px; }
.audio-item__date { font-size: 0.82rem; color: var(--ink-soft); }
.audio-item__title { font-weight: 700; }
.audio-item__preacher { font-size: 0.82rem; color: var(--ink-soft); }
.audio-item audio { max-width: 100%; }

.about-page { max-width: 1000px; margin: 0 auto; padding: var(--space-5) var(--space-2); }
.about-tabs {
  display: flex; gap: var(--space-2); overflow-x: auto;
  padding-bottom: var(--space-2); margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.about-tabs__item {
  white-space: nowrap; padding: 10px 16px; border-radius: 999px 999px 0 0;
  font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.about-tabs__item:hover { color: var(--pine); border-bottom-color: var(--pine); }
.about-tabs__item--muted { color: var(--ink-faint, #b0b0b0); }
.about-tabs__item--muted:hover { color: var(--ink-soft); border-bottom-color: var(--ink-soft); }
.about-section { scroll-margin-top: 110px; }
.calendar-preview { scroll-margin-top: 110px; }
.about-section + .about-section {
  margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line);
}
.about-section h1 { font-size: 1.5rem; }
.about-section ol, .about-section ul { padding-left: 1.4em; margin: 0 0 var(--space-3); }
.about-section li { line-height: 1.8; margin-bottom: var(--space-2); }
.about-section li:last-child { margin-bottom: 0; }
.about-section h2:not(:first-of-type),
.about-section .section-divider {
  margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line);
}
.about-section h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--pine-deep);
  margin-top: var(--space-3);
}
.about-section h3:first-of-type { margin-top: var(--space-2); }
#giving h2, #giving h3 { font-family: 'Poppins', 'Pretendard', -apple-system, "Apple SD Gothic Neo", sans-serif; }
#giving h3 { color: var(--ink); font-weight: 700; margin-bottom: 4px; }

.copy-email {
  font: inherit; color: var(--ink); background: var(--line);
  border: none; border-radius: 3px; padding: 1px 6px; cursor: pointer;
}
.copy-email:hover { background: #cfcfca; }
.copy-email.copied { background: var(--pine); color: #fff; }

.mission-box {
  background: rgba(34,38,43,0.03); border-radius: var(--radius);
  padding: var(--space-3); margin-top: var(--space-5);
}

.greeting-layout { display: flex; flex-direction: column; gap: var(--space-3); }
.greeting-text p { line-height: 1.8; margin-bottom: var(--space-3); }
.greeting-verse { font-size: 1.15rem; font-weight: 700; color: var(--pine-deep); }
.greeting-photo {
  flex: 0 0 260px; aspect-ratio: 3 / 4; max-width: 260px; width: 100%;
  object-fit: cover; border-radius: var(--radius); display: block;
}
@media (min-width: 700px) {
  .greeting-layout { flex-direction: row; align-items: stretch; gap: var(--space-4); }
  /* photo stretches to the text column's height */
  .greeting-photo { flex-basis: 340px; max-width: 340px; aspect-ratio: auto; height: auto; contain: size; object-position: center top; order: 2; }
}

.ministry-band { display: flex; flex-direction: column; gap: var(--space-3); }
.ministry-band__visual {
  position: relative; min-height: 200px; border-radius: var(--radius);
  background-color: var(--tint, var(--pine));
  background-image: linear-gradient(0deg, rgba(20,22,25,0.05) 0%, rgba(16,18,20,0.4) 65%, rgba(12,14,16,0.6) 100%);
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: var(--space-3); color: #fff; overflow: hidden;
}
.ministry-band__title {
  font-family: 'Poppins', 'Iropke Batang', 'Pretendard', serif;
  font-size: 1.7rem; font-weight: 400; margin-bottom: 6px; padding-top: 0; border-top: none;
}
.ministry-band__quote { font-size: 0.92rem; opacity: 0.9; margin: 0; }
.ministry-band__content { display: flex; flex-direction: column; }
.ministry-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-2); }
.ministry-item h3 { margin: 0 0 4px; padding-top: 0; border-top: none; }
.ministry-item p { margin-bottom: 4px; }
.ministry-item__duration {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--pine-deep); background: rgba(43,105,130,0.1);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 4px;
}
@media (min-width: 700px) {
  .ministry-band { flex-direction: row; align-items: stretch; gap: var(--space-4); }
  .ministry-band__visual { flex: 0 0 40%; min-height: auto; }
  .ministry-band__content { flex: 1; }
  .ministry-band--b { flex-direction: row-reverse; }
}

.staff-group { margin-top: var(--space-3); }
.staff-group:not(:first-of-type) {
  margin-top: var(--space-4); padding-top: var(--space-4);
}
.staff-group h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.staff-list { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.staff-row {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  flex: 0 0 calc((100% - 2 * var(--space-3)) / 3); min-width: 130px;
}
.staff-row__photo {
  width: 272px; margin: 0 auto; box-sizing: border-box; border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* cut-out portraits (no background): bottom of the photo sits on the line; soft shadow falls downward only */
.staff-row img { height: 200px; width: auto; max-width: 100%; display: block; margin: 12px auto 0; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.16)); }
.staff-row__info {
  width: 272px; margin: 0 auto; box-sizing: border-box; padding: var(--space-2);
  flex: 1; border-bottom: 1px solid var(--line);
}

.cal-popup-overlay {
  position: fixed; inset: 0; background: rgba(20,22,25,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3); z-index: 100;
}
.cal-popup {
  background: var(--paper); border-radius: 12px; padding: var(--space-3);
  max-width: 420px; width: 100%; max-height: 80vh; overflow-y: auto;
}
.cal-popup__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.15rem; font-weight: 700; margin-bottom: var(--space-2);
}
.cal-popup__close {
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: var(--ink-soft); padding: 0 4px;
}
.staff-row__name { font-weight: 700; font-size: 0.95rem; }
.staff-row__role { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }
.staff-row__email { display: block; font-size: 0.78rem; margin-top: 2px; color: var(--ink-soft); overflow-wrap: anywhere; }

@media (max-width: 699px) {
  .staff-list { flex-direction: column; gap: var(--space-3); }
  .staff-row {
    flex-direction: row-reverse; align-items: flex-end; text-align: left;
    flex: 1 1 100%; width: 100%; min-width: 0; gap: var(--space-3);
  }
  .staff-row__photo { width: 130px; flex-shrink: 0; border-bottom: 1px solid var(--line); overflow: hidden; margin: 0; display: flex; justify-content: center; }
  .staff-row img { height: 120px; width: auto; margin: 8px auto 0; }
  .staff-row__info { width: auto; flex: 1; border-bottom: 1px solid var(--line); padding: 0 0 var(--space-2); }
}

.sermon-card__badge {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(20,22,25,0.72); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}

/* Cards used on inner content pages (about/sermons/news/etc.) */
.card { padding: var(--space-2) var(--space-3); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-2); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #E7E4DC;
  padding: var(--space-5) var(--space-2) var(--space-4);
}
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  max-width: 1000px; margin: 0 auto;
}
.footer__block h3 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; margin-bottom: var(--space-2);
}
.footer__row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; color: inherit; }
a.footer__row:hover span { text-decoration: underline; }
.footer__row-note { font-size: 0.85rem; color: inherit; opacity: 0.85; }
.footer__row svg { width: 16px; height: 16px; margin-top: 3px; color: #9AA5A0; flex-shrink: 0; }
.footer__address { padding: 10px 0; border-bottom: 1px solid var(--line-on-dark); }
.footer__address:last-child { border-bottom: none; }
.footer__address-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; margin-bottom: 4px; text-decoration: none; }
.footer__address-name:hover { text-decoration: underline; }
.footer__address-name svg { width: 16px; height: 16px; color: #9AA5A0; flex-shrink: 0; }
.footer__address-link { display: block; margin-left: 24px; color: #C9CFCA; text-decoration: none; }
.footer__address-link:hover { color: #fff; text-decoration: underline; }
.footer__address-note { margin-left: 24px; margin-top: 2px; font-size: 0.82rem; color: #9AA5A0; }
.footer__bottom {
  max-width: 1000px; margin: var(--space-4) auto 0; padding-top: var(--space-2);
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.8rem; color: #9AA5A0;
}
.footer__denomination { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer__denomination-logo { height: 22px; width: auto; opacity: 0.85; flex-shrink: 0; }
.footer__denomination p { margin: 0; }
.footer__english-link { display: inline-block; color: #C9CFCA; text-decoration: none; margin-top: 14px; }
.footer__english-link:hover { color: #fff; text-decoration: underline; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Top notice bar — slim, quiet, brunch-style */
.banner {
  background: var(--ink); color: var(--paper);
  text-align: center; padding: 9px 16px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: -0.01em;
  position: sticky; top: 0; z-index: 110; /* stays on screen while scrolling */
}
/* 긴급 공지 (예배 취소 등) — red, bigger, can't be missed */
.banner--urgent { background: #C62828; color: #fff; padding: 14px 16px; font-size: 1rem; font-weight: 700; }

/* Gallery: album cards + masonry album view */
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
@media (min-width: 900px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
.album-card { display: block; color: #fff; text-decoration: none; }
.album-card__cover { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--ink, #222); }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.album-card__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,14,0.35) 0%, rgba(10,12,14,0.55) 45%, rgba(10,12,14,0.9) 100%);
  transition: background 0.3s ease;
}
.album-card:hover .album-card__cover img { transform: scale(1.04); }
.album-card:hover .album-card__cover::after { background: linear-gradient(180deg, rgba(10,12,14,0.45) 0%, rgba(10,12,14,0.62) 45%, rgba(10,12,14,0.92) 100%); }
.album-card__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 16px; }
.album-card__title { font-family: 'Poppins', 'Iropke Batang', 'Pretendard', serif; font-size: 1.05rem; line-height: 1.35; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-card__meta { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-top: 4px; letter-spacing: 0.02em; }
.album-view__title { margin-bottom: 4px; }
.album-view__meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: var(--space-4); }
.album-view__meta a { color: var(--pine); }
.masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .masonry { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.masonry__item { display: block; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background: var(--line); }
.masonry__item img, .masonry__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
a.masonry__item img { transition: opacity 0.2s ease; }
a.masonry__item:hover img { opacity: 0.88; }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(12,14,16,0.94); }
.lightbox::backdrop { background: rgba(12,14,16,0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox__btn { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; padding: 12px 18px; cursor: pointer; opacity: 0.8; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.album-card__play { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.72rem; font-weight: 700; }
.album-card__play svg { width: 12px; height: 12px; }
.album-video { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #000; margin-bottom: var(--space-4); }
.album-video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 899px) {
  .album-grid--preview > :first-child { grid-column: span 2; }
  .album-grid--preview > :first-child .album-card__cover { aspect-ratio: 16/9; }
}
.schedule__place { flex-wrap: wrap; }
.schedule__map { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.schedule__map:hover { color: var(--pine); text-decoration-color: currentColor; }
.bulletin-text { background: #fff; border-radius: 8px; padding: var(--space-3); line-height: 1.8; white-space: normal; word-break: keep-all; margin: var(--space-3) 0; }
.bulletin-login-note { color: var(--ink-soft); font-size: 0.92rem; }
.bulletin-login-note a { color: var(--pine); font-weight: 700; }
.sermon-preview__bulletin { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; vertical-align: middle;
  font-family: 'Poppins', 'Pretendard', -apple-system, "Apple SD Gothic Neo", sans-serif; font-size: 0.85rem; font-weight: 700;
  color: var(--pine); text-decoration: none; padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; }
.sermon-preview__bulletin:hover { background: var(--pine); color: #fff; }
.sermon-preview__bulletin svg { width: 14px; height: 14px; }

/* 교적부: links must look clickable (global a is color:inherit) */
.registry a { color: var(--pine); }
.registry a:hover { text-decoration: underline; }
.registry dialog::backdrop { background: rgba(0,0,0,0.25); }
/* 교적부: no inner scroll boxes — the page itself scrolls and column titles stick under the site nav
   (--nav-h is measured in JS). Wide tables make the page scroll sideways on phones. */
.registry .tbl-wrap { border: 1px solid #eee; }
.registry .tbl-wrap th { position: sticky; top: var(--nav-h, 64px); z-index: 3; background: #f7f7f5; box-shadow: inset 0 -1px 0 #ccc; }
.registry .grade-head { position: sticky; top: var(--nav-h, 64px); z-index: 2; background: #fff; }
/* keep the photo + name columns in view while a wide table slides sideways (like the main 교적부 list)
   pin-3: # · 사진 · 이름 (아이들), pin-2: 사진 · 이름 (교사). Rows with one wide cell (학년 제목) are left alone. */
.registry table.pin-3 tr > :nth-child(1):not([colspan]) { position: sticky; left: 0; width: 28px; min-width: 28px; box-sizing: border-box; }
.registry table.pin-3 tr > :nth-child(2):not([colspan]) { position: sticky; left: 28px; width: 52px; min-width: 52px; box-sizing: border-box; }
.registry table.pin-3 tr > :nth-child(3):not([colspan]) { position: sticky; left: 80px; box-shadow: 1px 0 0 #e5e5e5; }
.registry .pin-text { position: sticky; left: 8px; }
.registry table.pin-2 tr > :nth-child(1) { position: sticky; left: 0; width: 52px; min-width: 52px; box-sizing: border-box; }
.registry table.pin-2 tr > :nth-child(2) { position: sticky; left: 52px; box-shadow: 1px 0 0 #e5e5e5; }
.registry table.pin-3 td:nth-child(-n+3), .registry table.pin-2 td:nth-child(-n+2) { background: #fff; z-index: 2; }
.registry table.pin-3 th:nth-child(-n+3), .registry table.pin-2 th:nth-child(-n+2) { z-index: 4; }
/* 수정 on/off button floats at the bottom-right so it is reachable anywhere in a long list */
.registry .edit-fab { position: fixed; left: 16px; bottom: 16px; z-index: 40; padding: 12px 18px; border-radius: 999px; border: 1px solid #2B6982; background: #fff; color: #2B6982; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,0.18); text-decoration: none !important; }
.registry .edit-fab.is-on { background: #2B6982; color: #fff; }
/* phones: keep cells on one line (table scrolls sideways) instead of squeezing text into a vertical column */
@media (max-width: 699px) {
  .registry table th, .registry table td { white-space: nowrap; }
  .registry table td.wrap { white-space: normal; }   /* 배우자·자녀 lists wrap inside their own column instead of spilling over the photo */
  /* wide tables scroll sideways inside their box so the page itself stays phone-width (no zoomed-out tiny text);
     the header row is kept on screen by nav.js because CSS sticky can't escape a sideways-scrolling box */
  .registry .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .registry .tbl-wrap th { top: 0 !important; will-change: transform; }
  .registry .tbl-wrap th:not([style*=sticky]) { position: relative; }
  .registry table td input[type=text], .registry table td select { max-width: 60vw; }
}
/* things only Kay (마스터) can see — amber tag so it's obvious others won't see them */
.master-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; color: #8a5a00; background: #fff3d6; border: 1px solid #f0c36d; border-radius: 10px; padding: 0 7px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.master-only { background: #fffaf0 !important; border-color: #f0c36d !important; }

/* ---------- Home hero slider (3 slides, slow crossfade) ---------- */
.hero--slider { background: #2f3a3e; padding: 0; display: block; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: 100px var(--space-2) var(--space-5); box-sizing: border-box;
  opacity: 0; visibility: hidden; transition: opacity 0s linear 2.4s, visibility 0s linear 2.4s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s ease, visibility 0s; }
/* each slide enters its own way: photo moves slowly on ::before, text rises in after the fade.
   The new slide sits on top; the leaving one stays shown underneath until covered (2.4s), so there is no dark gap. */
.hero-slide { isolation: isolate; overflow: hidden; }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; transition: transform 0s linear 2.4s, filter 0s linear 2.4s; }
.hero-slide .hero__content { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0s linear 2.4s; }
.hero-slide.is-active .hero__content { opacity: 1; transform: none; transition: opacity 1s ease 0.5s, transform 1.2s cubic-bezier(.2,.7,.2,1) 0.5s; }
/* 1: slow zoom-out */
.hero-slide:first-child::before { transform: scale(1.12); }
.hero-slide:first-child.is-active::before { transform: scale(1); transition: transform 8s cubic-bezier(.25,.6,.3,1); }
/* 2: slow drift sideways */
.hero-slide--sermon::before { inset: 0 -6% 0 0; transform: translateX(0); }
.hero-slide--sermon.is-active::before { transform: translateX(-5%); transition: transform 8s ease-out; }
.hero-slide--sermon .hero__content { transform: translateX(-24px); }
.hero-slide--sermon.is-active { transition: visibility 0s; animation: hero-seep 2.4s cubic-bezier(.45,0,.25,1); }
/* soft-edged sweep: a wide feathered mask slides across, so the new photo seeps in over the old one */
@keyframes hero-seep {
  from { -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 65%); mask-image: linear-gradient(90deg, #000 35%, transparent 65%);
         -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 65%); mask-image: linear-gradient(90deg, #000 35%, transparent 65%);
         -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; }
}
/* 3: soft focus clearing + gentle zoom-in */
.hero-slide--ink:not(:first-child)::before, .hero-slide--white:not(:first-child)::before { filter: blur(14px); transform: scale(1.04); }
.hero-slide--ink:not(:first-child).is-active::before, .hero-slide--white:not(:first-child).is-active::before { filter: blur(0); transform: scale(1.1); transition: filter 1.8s ease, transform 9s ease-out; }
.hero-slide:not(:first-child):not(.hero-slide--sermon) .hero__title { letter-spacing: 0.25em; transition: letter-spacing 0s linear 2.4s; }
.hero-slide:not(:first-child):not(.hero-slide--sermon).is-active .hero__title { letter-spacing: normal; transition: letter-spacing 2.2s cubic-bezier(.2,.7,.2,1) 0.4s; }
.hero--slider { min-height: 83vh; position: relative; }
/* 관리자 슬라이드: 사진은 --hero-bg (slide style attribute). ink = 밝은 사진 + 남색 글씨, white = 어두운 사진 + 흰 글씨 */
.hero-slide--ink { color: #14304a; }
.hero-slide--ink::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.12) 18%, rgba(0,0,0,0) 32%),
              linear-gradient(90deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 80%),
              var(--hero-bg, url('/assets/img/hero-sea.jpg?v=1')) center / cover no-repeat;
}
.hero-slide--ink:not(:first-child) .btn--outline-light { border-color: rgba(20,48,74,0.5); color: #14304a; }
.hero-slide--ink:not(:first-child) .btn--primary { background: #14304a; border-color: #14304a; }
.hero-slide--ink:first-child { color: var(--ink); }   /* first slide kept as before: no white veil */
.hero-slide--ink:first-child::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.32) 10%, rgba(0,0,0,0.12) 20%, rgba(0,0,0,0) 34%),
              var(--hero-bg) center / cover no-repeat;
}
.hero-slide--white { color: #fff; }
.hero-slide--white::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 22%, rgba(0,0,0,0) 40%),
              linear-gradient(90deg, rgba(20,28,18,0.55) 0%, rgba(20,28,18,0.35) 45%, rgba(20,28,18,0) 75%),
              var(--hero-bg, url('/assets/img/hero-leaves.jpg?v=1')) center / cover no-repeat;
}
/* slide 2 (주일 말씀): leaves — white text on a soft dark wash over the blurred left side */
.hero-slide--sermon {
  color: #fff;
}
.hero-slide--sermon::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 22%, rgba(0,0,0,0) 40%),
              linear-gradient(90deg, rgba(20,28,18,0.55) 0%, rgba(20,28,18,0.35) 45%, rgba(20,28,18,0) 75%),
              url('/assets/img/hero-leaves.jpg?v=1') center / cover no-repeat;
}
.hero-slide--sermon .hero-slide__eyebrow, .hero-slide--sermon .hero-slide__series { opacity: 0.9; }
.hero-slide__eyebrow { font-size: 0.95rem; letter-spacing: 0.04em; opacity: 0.85; margin: 0 0 var(--space-2); }
.hero-slide__series { font-size: 1.05rem; opacity: 0.8; margin: 0 0 6px; }
.hero-slide__text { max-width: 560px; line-height: 1.7; opacity: 0.9; margin: 0 0 var(--space-3); }
.btn--light { background: #fff; color: var(--pine-deep); border-color: #fff; }
.btn--light:hover { background: rgba(255,255,255,0.88); }
.btn--outline-white { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,0.12); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,0.55); box-shadow: 0 0 0 1px rgba(0,0,0,0.25); cursor: pointer; transition: background .3s, transform .3s; }
.hero-dots button[aria-selected="true"] { background: #fff; transform: scale(1.3); box-shadow: 0 0 0 1px rgba(0,0,0,0.35); }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 900px) { .hero-slide { padding-top: 140px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active, .hero-slide::before, .hero-slide .hero__content { transition: none !important; }
  .hero-slide::before { transform: none !important; filter: none !important; }
  .hero-slide .hero__content { opacity: 1; transform: none; }
  .hero-slide--sermon.is-active { animation: none; }
  .hero-slide:not(:first-child):not(.hero-slide--sermon) .hero__title { letter-spacing: normal; }
}
.hero--instant .hero-slide { transition: none !important; }

/* Mac-style on/off switch */
.tg { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f0ee; cursor: pointer; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px; background: #d6d6d3; transition: background .2s; }
.tg i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.tg input:checked + i { background: #34c759; }
.tg input:checked + i::after { transform: translateX(18px); }
.tg input:disabled + i { opacity: .5; }
.tg input:focus-visible + i { outline: 2px solid #2B6982; outline-offset: 2px; }

/* floating 저장 bar (assets/js/nav.js) — appears after a change on any page with a 저장 form */
.save-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 300;
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px;
  background: #1f2a30; color: #fff; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  font-size: 0.95rem; max-width: calc(100vw - 24px);
}
.save-bar[hidden] { display: none; }
.save-bar button { padding: 9px 22px; border: none; border-radius: 999px; background: #fff; color: #1f2a30; font-weight: 700; font-size: 1rem; cursor: pointer; }
