/* ==========================================================================
   선한길교회 — site.css
   Concept: every page is an open book, one road runs through it, and one
   marker (--here) shows where you are. See DESIGN.md.
   ========================================================================== */

@font-face {
  font-family: "Noto Sans Hebrew";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/noto-sans-hebrew-500-subset.woff2") format("woff2");
  unicode-range: U+0590-05FF;
}

/* ---------- tokens ---------- */
:root {
  --ink: #16213a;
  --navy: #273b63;
  --blue: #2c6cb0;
  --sky: #62b9f9;
  --tint: #eef5fc;
  --line: #cfdcec;
  --edge: #7f93b0;   /* borders of form controls (3:1) */
  --muted: #566986;
  --paper: #ffffff;
  --here: #c8401a;   /* the marker: here / now / next / today */
  --alert: #b3261e;

  --r: 4px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --fs-display: 34px; --fs-h2: 26px; --fs-h3: 20px;
  --fs-say: 21px;    /* statements: the church's own sentences, quieter than a heading */
  --fs-lead: 18px; --fs-body: 16px; --fs-small: 14px; --fs-num: 30px;

  --cols: 4; --gut: 16px; --pad: 20px;
  --sec: var(--s7);
  --header-h: 60px;

  --ease-walk: cubic-bezier(.22, 1, .36, 1);
  --ease-state: cubic-bezier(.4, 0, .2, 1);
}
@media (min-width: 720px) {
  :root {
    --fs-display: 44px; --fs-h2: 30px; --fs-h3: 22px; --fs-say: 25px;
    --fs-lead: 19px; --fs-body: 17px; --fs-num: 36px;
    --cols: 8; --gut: 20px; --pad: 32px;
    --sec: var(--s8);
    --header-h: 64px;
  }
}
@media (min-width: 1100px) {
  :root {
    --fs-display: 52px; --fs-h2: 34px; --fs-h3: 24px; --fs-say: 28px;
    --fs-lead: 20px; --fs-num: 44px;
    --cols: 12; --gut: 24px; --pad: 40px;
    --sec: var(--s9);
    --header-h: 72px;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* the footer rests on the bottom of the window even when a page is short */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--r); }
::selection { background: var(--sky); color: var(--ink); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--pad); top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--r);
}
.skip:focus { top: 10px; }

/* ---------- type ---------- */
.t-display { font-size: var(--fs-display); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.t-h2 { font-size: var(--fs-h2); line-height: 1.34; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.t-h3 { font-size: var(--fs-h3); line-height: 1.45; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.t-say { font-size: var(--fs-say); line-height: 1.55; font-weight: 600; letter-spacing: -.015em; color: var(--navy); text-wrap: pretty; }
.t-say strong { font-weight: 700; }
.t-lead { font-size: var(--fs-lead); line-height: 1.7; font-weight: 500; }
.t-small { font-size: var(--fs-small); line-height: 1.6; font-weight: 500; }
.t-num { font-size: var(--fs-num); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.muted { color: var(--muted); }
.here { color: var(--here); font-weight: 700; }
.t-display, .t-h2, .t-h3 { text-wrap: balance; }

/* emphasis = a verse marked in the book */
.mk {
  background: linear-gradient(var(--sky), var(--sky)) 0 88% / 100% .3em no-repeat;
  color: inherit; font-weight: inherit;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .72s var(--ease-walk);
}
/* the mark is drawn once, as the reader reaches it (pages.js adds .marks) */
.marks .mk:not(.is-marked) { background-size: 0 .3em; }

.link { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.link:hover { text-decoration-thickness: 2px; }

/* a link that leads on: text + arrow */
.go { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; color: var(--blue); font-weight: 600; }
.go::after { content: "→"; transition: transform .16s var(--ease-state); }
.go:hover::after { transform: translateX(4px); }
.go:hover { text-decoration: underline; text-underline-offset: .22em; }

/* ---------- layout ---------- */
.wrap { max-width: calc(1200px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.grid, .spread {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gut);
}
.spread > .margin, .spread > .reading { grid-column: 1 / -1; }
.spread > .margin + .reading { margin-top: var(--s4); }
@media (min-width: 720px) {
  .spread > .margin { grid-column: 1 / span 3; }
  .spread > .reading { grid-column: 4 / -1; }
  .spread > .margin + .reading { margin-top: 0; }
  .spread--top > .margin, .spread--top > .reading { grid-column: 1 / -1; }
  .spread--top > .margin + .reading { margin-top: var(--s5); }
  .stick { position: sticky; top: calc(var(--header-h) + var(--s6)); }
}
@media (min-width: 1100px) {
  .spread > .margin, .spread--top > .margin { grid-column: 1 / span 4; }
  .spread > .reading, .spread--top > .reading { grid-column: 5 / -1; }
  .spread--top > .margin + .reading { margin-top: 0; }
}

.sec-in { padding-block: var(--sec); border-top: 1px solid var(--line); }
.sec--plain > .wrap > .sec-in { border-top: 0; }
.sec--tint { background: var(--tint); }
.sec--tint > .wrap > .sec-in { border-top: 0; }
.sec-head { align-items: baseline; margin-bottom: var(--s7); }
.sub { margin-top: var(--s3); }
.measure { max-width: 40em; }

/* page head for information pages */
.page-head-in { padding-top: var(--s7); padding-bottom: var(--s7); align-items: end; }
@media (min-width: 1100px) { .page-head-in { padding-top: var(--s9); padding-bottom: var(--s8); } }
.page-sub { color: var(--muted); }

/* photos */
.photo { overflow: hidden; border-radius: var(--r); background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: var(--s2); font-size: var(--fs-small); color: var(--muted); }

/* a photo is uncovered from left to right as it enters (scroll-linked) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .unveil { animation: unveil linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
    @keyframes unveil { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  background: var(--navy); color: #fff; border-radius: var(--r);
  font-weight: 600; white-space: nowrap;
  transition: background-color .16s var(--ease-state), color .16s var(--ease-state);
}
.btn:hover { background: var(--ink); }
.btn[disabled] { background: var(--muted); cursor: default; }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn--line:hover { background: var(--tint); }
.btn--small { min-height: 40px; padding: 0 var(--s4); font-size: var(--fs-small); }
.btn--danger { background: var(--alert); }
.btn--danger:hover { background: #8f1e18; }
.text-btn { display: inline-flex; align-items: center; min-height: 40px; color: var(--blue); font-weight: 600; }
.text-btn:hover { text-decoration: underline; text-underline-offset: .22em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .16s var(--ease-state);
}
.site-header.is-scrolled, .menu-is-open .site-header { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; height: var(--header-h); gap: var(--s4); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 40px; flex: none; }
.brand-mark { height: 28px; width: auto; }
.brand-word { height: 17px; width: auto; }
@media (min-width: 1100px) { .brand-mark { height: 30px; } .brand-word { height: 18px; } }

.nav { display: none; margin-left: auto; }
.nav-list { display: flex; gap: var(--s1); }
.nav-item { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  font-weight: 500; color: var(--navy); border-radius: var(--r); white-space: nowrap;
  transition: background-color .16s var(--ease-state);
}
.nav-top:hover, .nav-item.is-open > .nav-top { background: var(--tint); }
.nav-top[aria-current="page"], .nav-item.is-current > .nav-top { box-shadow: inset 0 -3px 0 var(--here); border-radius: 0; }
.nav-sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 2;
  min-width: 184px; padding: var(--s2);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub, .nav-item.is-open > .nav-sub { display: block; }
.nav-sub a {
  display: flex; align-items: center; min-height: 40px; padding: 0 var(--s3);
  color: var(--navy); border-radius: var(--r); white-space: nowrap;
}
.nav-sub a:hover { background: var(--tint); }
.nav-sub a[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--here); border-radius: 0; }

.account { display: none; align-items: center; gap: var(--s2); margin-left: auto; position: relative; }
.account .nav-top { cursor: pointer; }
.account-menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 2;
  min-width: 160px; padding: var(--s2);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.account-menu button, .account-menu a {
  display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 var(--s3);
  color: var(--navy); border-radius: var(--r); white-space: nowrap;
}
.account-menu button:hover, .account-menu a:hover { background: var(--tint); }

.menu { margin-left: auto; }
.menu > summary {
  display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s4);
  list-style: none; cursor: pointer; user-select: none;
  font-weight: 600; color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy); border-radius: var(--r);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu .menu-close, .menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: inline; }
.menu-sheet {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  padding-block: var(--s6) var(--s8);
}
.toc > li { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); padding-block: var(--s4); border-top: 1px solid var(--line); }
.toc > li:first-child { border-top: 0; padding-top: 0; }
.toc-top { grid-column: 1 / -1; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.toc ul { grid-column: 1 / -1; }
.toc a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-h3); font-weight: 700; color: var(--navy); letter-spacing: -.015em; }
.toc a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--here); padding-left: var(--s3); }
.menu-account { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.menu-account .btn { flex: 1 1 140px; }
.menu-account .account-name { flex: 1 1 100%; font-weight: 700; color: var(--navy); }
.menu-account .account-admin { flex-basis: 100%; }

@media (min-width: 720px) {
  .account { display: flex; }
  .menu { margin-left: 0; }
  .menu-account { display: none; }
  .toc > li { align-items: baseline; }
  .toc-top { grid-column: 1 / span 3; }
  .toc ul { grid-column: 4 / -1; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .account { margin-left: var(--s4); }
  .menu { display: none; }
}

/* ---------- footer: the cover the pages rest on ---------- */
.site-footer { background: var(--navy); color: #dcebfa; padding-block: var(--s8) var(--s6); }
.footer-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); row-gap: var(--s7); }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; align-self: start; min-height: 40px; }
.footer-brand img:first-child { height: 34px; width: auto; }
.footer-brand img:last-child { height: 20px; width: auto; }
.footer-col { grid-column: 1 / -1; }
.footer-col h2 { font-size: var(--fs-small); font-weight: 600; color: var(--sky); margin-bottom: var(--s3); }
.footer-col dl > div { display: flex; gap: var(--s3); }
.footer-col dt { flex: none; width: 5em; color: #dcebfa; }
.footer-col dd { color: #fff; }
.footer-col a { display: inline-block; text-decoration: underline; text-decoration-color: rgba(220, 235, 250, .5); text-underline-offset: .22em; }
.footer-col a:hover { text-decoration-color: #fff; }
.footer-copy {
  display: inline-flex; align-items: center; min-height: 40px; margin-top: var(--s3); padding: 0 var(--s4);
  color: #fff; font-size: var(--fs-small); font-weight: 600;
  box-shadow: inset 0 0 0 1px #dcebfa; border-radius: var(--r);
  transition: background-color .16s var(--ease-state), color .16s var(--ease-state);
}
.footer-copy:hover { background: #fff; color: var(--navy); }
.site-footer :focus-visible { outline-color: var(--sky); }
.footer-base {
  display: flex; flex-direction: column; gap: var(--s2);
  margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid rgba(220, 235, 250, .28);
  font-size: var(--fs-small);
}
.footer-base ul { display: flex; flex-wrap: wrap; column-gap: var(--s5); }
.footer-base a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-decoration: underline; text-decoration-color: rgba(220, 235, 250, .5); text-underline-offset: .22em; }
.footer-base a:hover { text-decoration-color: #fff; }
@media (min-width: 720px) {
  .footer-col { grid-column: span 4; }
  .footer-base { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1100px) {
  .footer-brand { grid-column: 1 / span 4; }
  .footer-col { grid-column: span 4; }
}

/* ---------- the next stretch of the road (end of an information page) ---------- */
.onward-link { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline; padding-block: var(--s7); border-top: 1px solid var(--line); }
.onward-link::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .42s var(--ease-walk); }
.onward-link:hover::before, .onward-link:focus-visible::before { transform: scaleX(1); }
.onward-label { grid-column: 1 / -1; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.onward-name { grid-column: 1 / -1; }
.onward-name::after { content: "→"; display: inline-block; margin-left: .4em; transition: transform .42s var(--ease-walk); }
.onward-link:hover .onward-name::after { transform: translateX(8px); }
@media (min-width: 720px) { .onward-label { grid-column: 1 / span 3; } .onward-name { grid-column: 4 / -1; } }
@media (min-width: 1100px) { .onward-label { grid-column: 1 / span 4; } .onward-name { grid-column: 5 / -1; } .onward-link { padding-block: var(--s8); } }

/* ---------- forms and dialog ---------- */
.field { display: block; margin-top: var(--s4); }
.field > .label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.input {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--edge); border-radius: var(--r);
  font-size: 16px; line-height: 1.5;
  transition: border-color .16s var(--ease-state);
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:hover { border-color: var(--navy); }
.input:focus-visible { border-color: var(--blue); outline-offset: 0; }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.pw { position: relative; }
.pw .input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; height: 40px; padding: 0 10px; font-size: var(--fs-small); font-weight: 600; color: var(--blue); }
.check { display: flex; align-items: flex-start; gap: var(--s3); margin-top: var(--s4); min-height: 40px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--navy); }
.form-msg { margin-top: var(--s4); font-size: var(--fs-small); font-weight: 600; color: var(--navy); min-height: 1.6em; }
.form-msg.is-error { color: var(--alert); }
.form-note { margin-top: var(--s3); font-size: var(--fs-small); color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.form-actions .btn { flex: 1 1 auto; }
/* 회원가입: short fields sit in pairs so the whole form fits without scrolling inside the dialog */
@media (min-width: 720px) {
  .dlg.dlg--signup { width: min(720px, calc(100vw - 32px)); }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); align-items: start; }
  .form-grid > .field--full { grid-column: 1 / -1; }
  .form-grid > .field { margin-top: var(--s3); }
  .form-grid textarea.input { min-height: 48px; height: 48px; }
  .form-grid > .form-msg:empty { min-height: 0; margin-top: 0; }
}

.dlg {
  /* pinned to the middle of the window in every browser (Safari can otherwise leave it at the foot of the page) */
  position: fixed; inset: 0; margin: auto; z-index: 100;
  height: -webkit-fit-content; height: fit-content;
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--r);
  background: var(--paper); color: var(--ink); overflow: auto;
}
.dlg::backdrop { background: rgba(22, 33, 58, .6); }
.dlg--wide { width: min(640px, calc(100vw - 32px)); }
.dlg-in { position: relative; padding: var(--s6); }
.dlg-close { position: absolute; top: var(--s3); right: var(--s3); height: 40px; padding: 0 var(--s3); font-size: var(--fs-small); font-weight: 600; color: var(--muted); border-radius: var(--r); }
.dlg-close:hover { color: var(--navy); background: var(--tint); }
.dlg-title { padding-right: 56px; }
.dlg-text { margin-top: var(--s3); }
.dlg-text + .dlg-text { margin-top: 0; color: var(--muted); }
@media (max-width: 719px) {
  .dlg:not(.dlg--msg) { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dlg-in { padding: var(--s5) var(--pad) var(--s7); }
}
.tabs { display: flex; gap: var(--s5); margin-top: var(--s5); border-bottom: 1px solid var(--line); }
.tab { height: 44px; font-weight: 600; color: var(--muted); box-shadow: none; }
.tab[aria-selected="true"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--here); }

.toast {
  position: fixed; left: var(--pad); bottom: var(--s5); z-index: 90;
  padding: 12px var(--s4); background: var(--ink); color: #fff; border-radius: var(--r);
  font-size: var(--fs-small); font-weight: 600;
}

/* shared states for live content */
.state { padding-block: var(--s7); }
.state-title { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); line-height: 1.45; }
.state-text { margin-top: var(--s2); color: var(--muted); }
.state .btn { margin-top: var(--s5); }

/* ==========================================================================
   홈
   ========================================================================== */
.hero { padding-top: var(--s5); }
.hero-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); row-gap: var(--s5); }
/* phone and tablet: the text block dissolves into the grid, so the photo can sit
   between the next service and the address and a face is on the first screen */
.hero-text { display: contents; }
.hero-hello { grid-column: 1 / -1; order: 1; font-size: var(--fs-h2); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.next { grid-column: 1 / -1; order: 2; }
.next-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s3); }
.next-label { color: var(--muted); }
.next-time { margin-top: var(--s1); }
.next-when { margin-top: var(--s2); color: var(--muted); }
.next-when .here { margin-left: var(--s2); }
.hero-photo { grid-column: 1 / -1; order: 3; aspect-ratio: 4 / 3; }
.hero-where { grid-column: 1 / -1; order: 4; }
.hero-where .t-lead { color: var(--navy); }
.hero-where .go { margin-top: var(--s1); }
@media (min-width: 720px) {
  .hero { padding-top: var(--s6); }
  .hero-grid { row-gap: var(--s6); }
  .next { grid-column: 1 / span 4; }
  .hero-where { grid-column: 5 / -1; order: 3; align-self: end; }
  .hero-photo { order: 4; aspect-ratio: 16 / 9; }
}
@media (min-width: 1100px) {
  .hero { padding-top: var(--s7); }
  .hero-text { grid-column: 1 / span 4; display: flex; flex-direction: column; }
  .next { margin-top: var(--s6); }
  .hero-where { align-self: stretch; margin-top: auto; padding-top: var(--s6); }
  .hero-photo { grid-column: 5 / -1; aspect-ratio: auto; height: clamp(380px, calc(100vh - 420px), 528px); }
}

/* --- 예배 안내: the week as a road --- */
.worship .sec-in { border-top: 0; padding-top: var(--s8); }
.week { --rt: 64px; position: relative; padding-top: var(--rt); padding-bottom: 30px; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.day { position: relative; height: 32px; }
.day::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 7px; background: var(--navy); }
.day-name { position: absolute; left: 7px; top: 9px; font-size: var(--fs-small); line-height: 1; font-weight: 500; color: var(--muted); }
.day.is-today .day-name { color: var(--navy); font-weight: 700; }
.tick {
  position: absolute; left: calc(var(--t) * 100%); bottom: 100%;
  width: 2px; margin-left: -1px; background: var(--navy);
  transition: opacity .16s var(--ease-state);
}
.tick::after { content: ""; position: absolute; inset: -6px -10px 0; }
.tick--dawn { height: 9px; }
.tick--main { height: 22px; }
.tick-label { position: absolute; left: -1px; bottom: calc(100% + 5px); white-space: nowrap; font-size: var(--fs-small); line-height: 1.35; font-weight: 500; color: var(--muted); }
.tick-label b { display: block; font-weight: 700; color: var(--navy); }
.tick-label small { display: none; }
.tick[data-s="fri"] .tick-label { left: auto; right: -1px; text-align: right; }
.week-past { position: absolute; left: 0; top: calc(var(--rt) - 1px); height: 3px; width: calc(var(--now, 0) * 100%); background: var(--sky); transition: width .72s var(--ease-walk); }
.week-now { position: absolute; left: calc(var(--now, 0) * 100%); top: var(--rt); transition: left .72s var(--ease-walk); }
.week-now::before { content: ""; position: absolute; left: -1.5px; top: -13px; width: 3px; height: 26px; background: var(--here); }
.week-now-label { position: absolute; top: 34px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: var(--fs-small); line-height: 1; font-weight: 700; color: var(--here); }
.week-now.at-start .week-now-label { transform: none; left: -2px; }
.week-now.at-end .week-now-label { transform: translateX(-100%); left: 2px; }

.services { margin-top: var(--s5); }
.services > li { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline; padding-block: var(--s4); border-top: 1px solid var(--line); transition: opacity .16s var(--ease-state); }
.services > li:last-child { padding-bottom: 0; }
.svc-name { grid-column: 1 / span 2; }
.svc-time { grid-column: 3 / -1; text-align: right; font-size: var(--fs-h3); line-height: 1.45; font-weight: 600; color: var(--navy); }
.svc-desc { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 1099px) {
  /* the road is too narrow for the early-morning label here: the list below carries it */
  .tick-label--dawn { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
}
@media (min-width: 720px) {
  .week { --rt: 72px; }
  .services > li { padding-block: 18px; }
  .svc-name { grid-column: 1 / span 3; }
  .svc-time { grid-column: 4 / span 3; text-align: left; }
  .svc-desc { grid-column: 7 / -1; }
}
@media (min-width: 1100px) {
  /* wide: the road itself carries every service with its time and the church's description */
  .worship .sec-head { margin-bottom: var(--s5); }
  .week { --rt: 152px; padding-bottom: var(--s6); }
  .week-days { border-top-width: 2px; }
  .day { height: 44px; }
  .day::before { height: 10px; }
  .day-name { left: 10px; top: 16px; font-size: var(--fs-body); }
  .tick--main { height: 44px; }
  .tick--dawn { height: 14px; }
  .tick-label { bottom: calc(100% + 10px); font-size: var(--fs-body); line-height: 1.5; }
  .tick-label b { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -.015em; }
  .tick-time { display: block; font-weight: 600; color: var(--navy); }
  .tick-label small { display: block; font-size: var(--fs-small); line-height: 1.6; font-weight: 500; color: var(--muted); }
  .tick-label--dawn b { font-size: var(--fs-lead); }
  .week-past { height: 4px; }
  .week-now-label { top: 48px; }
  .services { display: none; }
}
/* pointing at a service lights its marks, and the other way round */
.worship:has(.services [data-s="sun"]:hover) .tick:not([data-s="sun"]),
.worship:has(.services [data-s="fri"]:hover) .tick:not([data-s="fri"]),
.worship:has(.services [data-s="dawn"]:hover) .tick:not([data-s="dawn"]),
.worship:has(.tick[data-s="sun"]:hover) .tick:not([data-s="sun"]),
.worship:has(.tick[data-s="fri"]:hover) .tick:not([data-s="fri"]),
.worship:has(.tick[data-s="dawn"]:hover) .tick:not([data-s="dawn"]) { opacity: .22; }
.worship:has(.tick[data-s="sun"]:hover) .services > li:not([data-s="sun"]),
.worship:has(.tick[data-s="fri"]:hover) .services > li:not([data-s="fri"]),
.worship:has(.tick[data-s="dawn"]:hover) .services > li:not([data-s="dawn"]) { opacity: .45; }

/* --- 교회소개 --- */
.verse { font-size: var(--fs-say); line-height: 1.6; font-weight: 600; letter-spacing: -.015em; color: var(--navy); text-wrap: pretty; }
.verse .mk { white-space: nowrap; }
.verse cite { font-style: normal; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
/* the three answers: the term is the gloss, the church's sentence is what is read */
.answers { margin-top: var(--s7); }
.answers > div { padding-block: var(--s4); border-top: 1px solid var(--line); }
.answers > div:last-child { padding-bottom: 0; }
.answers dt { font-size: var(--fs-lead); line-height: 1.45; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.answers dd { margin-top: var(--s1); font-size: var(--fs-lead); line-height: 1.6; font-weight: 500; }
@media (min-width: 720px) {
  .answers > div { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); column-gap: var(--gut); align-items: baseline; padding-block: var(--s5); }
  .answers dd { margin-top: 0; }
}
@media (min-width: 1100px) {
  .answers { margin-top: var(--s8); }
  .answers > div { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .answers dt { grid-column: 1 / span 2; }
  .answers dd { grid-column: 3 / -1; }
}

#about .sec-in { padding-bottom: var(--s8); }
.band-photo { aspect-ratio: 3 / 2; }
@media (min-width: 720px) { .band-photo { aspect-ratio: 2 / 1; } }
@media (min-width: 1100px) { .band-photo { aspect-ratio: 2.4 / 1; } }
.band-photo img { object-position: 50% 62%; }

/* --- 담임목사: he stands on the bottom edge of the band and looks toward his name --- */
.pastor { margin-top: var(--sec); }
.pastor-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); align-items: end; }
.pastor-text { grid-column: 1 / -1; padding-block: var(--s7) var(--s5); }
.pastor-label { display: block; font-size: var(--fs-small); line-height: 1.6; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pastor-bio { margin-top: var(--s4); }
.pastor-bio li { padding-block: 3px; font-size: var(--fs-lead); line-height: 1.6; font-weight: 500; }
.pastor-photo { grid-column: 1 / -1; justify-self: center; width: min(100%, 340px); }
.pastor-photo img { width: 100%; }
@media (min-width: 720px) {
  .pastor-photo { grid-column: 1 / span 4; grid-row: 1; width: 100%; margin-top: var(--s7); }
  .pastor-text { grid-column: 5 / -1; grid-row: 1; align-self: center; padding-block: var(--s7); }
}
@media (min-width: 1100px) {
  .pastor-photo { grid-column: 1 / span 5; max-width: 500px; margin-top: var(--s8); }
  .pastor-text { grid-column: 7 / -1; }
}

/* --- latest photos from the hub (live): three photos, each four columns wide --- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--gut); }
.strip a { display: block; }
.strip .photo { aspect-ratio: 3 / 2; }
.strip img { transition: transform .72s var(--ease-walk); }
.strip a:hover img { transform: scale(1.03); }
.strip-cap { margin-top: var(--s2); }
.strip-title { font-weight: 700; color: var(--navy); line-height: 1.5; }
.strip a:hover .strip-title { text-decoration: underline; text-underline-offset: .22em; }
.strip-meta { font-size: var(--fs-small); color: var(--muted); }
.strip-more { margin-top: var(--s5); }
@media (max-width: 719px) {
  .strip { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   새가족 안내
   ========================================================================== */
/* 소개: a photo of members on the margin page, the welcome on the reading page */
.nf-photo { aspect-ratio: 4 / 3; }
.nf-photo img { object-position: 40% 35%; }
.nf-intro .intro-text { margin-top: var(--s5); }
/* the certificate is a footnote to the welcome: a small thumbnail with its caption beside it */
.cert { display: flex; align-items: flex-end; gap: var(--s4); margin-top: var(--s6); }
.cert a { flex: none; display: block; width: 168px; max-width: 45%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cert figcaption { margin-top: 0; }
@media (max-width: 719px) {
  .nf-intro .spread > .reading { margin-top: var(--s5); }
}
@media (min-width: 720px) {
  .nf-photo { aspect-ratio: 1 / 1; align-self: start; }
  .nf-photo img { object-position: 33% 50%; }
}

/* 이름에 담긴 의미: three lexicon entries */
.lexicon > li { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline; padding-block: var(--s5); border-top: 1px solid var(--line); transition: background-color .16s var(--ease-state); }
/* the section's own rule is above the first entry, so it draws no second one */
.lexicon > li:first-child { border-top: 0; padding-top: var(--s4); }
.lx-he { grid-column: 1 / span 2; font-family: "Noto Sans Hebrew", "Arial Hebrew", "Noto Sans Hebrew", sans-serif; font-size: var(--fs-num); line-height: 1.3; font-weight: 500; color: var(--navy); text-align: left; direction: rtl; unicode-bidi: isolate; justify-self: start; }
.lx-word { grid-column: 3 / -1; }
.lx-mean { display: block; font-size: var(--fs-say); line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.lx-ko { display: block; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.lx-desc { grid-column: 1 / -1; margin-top: var(--s2); }
@media (min-width: 720px) {
  .lexicon > li { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lx-he { grid-column: 1 / span 2; }
  .lx-word { grid-column: 3 / -1; }
}
@media (min-width: 1100px) {
  .lexicon > li { grid-template-columns: repeat(8, minmax(0, 1fr)); padding-block: var(--s6); }
  .lx-he { grid-column: 1 / span 2; }
  .lx-word { grid-column: 3 / span 2; }
  .lx-desc { grid-column: 5 / -1; margin-top: 0; }
  /* beside the heading: the first word lines up with it (the padding stays as headroom for the hover tint) */
  .lexicon > li:first-child { margin-top: calc(var(--s4) * -1); }
}

/* 비전선언문: the sentence with its Hebrew glosses in the margin */
/* phones: the five lines read as one block; the parentheses in the sentence already carry 올람 · 토브 · 데레크 */
.vision { position: relative; }
.v-line { display: block; text-wrap: balance; font-size: var(--fs-h3); line-height: 1.5; font-weight: 600; letter-spacing: -.015em; color: var(--navy); }
.v-line + .v-line { margin-top: var(--s1); }
.v-line strong { font-weight: 700; background: linear-gradient(var(--sky), var(--sky)) 0 88% / 100% .3em no-repeat; transition: background-size .72s var(--ease-walk); }
.v-gloss { display: none; font-size: var(--fs-small); line-height: 1.2; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .16s var(--ease-state); }
.v-gloss [lang="he"] { font-family: "Noto Sans Hebrew", "Arial Hebrew", sans-serif; font-size: var(--fs-h3); font-weight: 500; color: var(--navy); margin-right: var(--s2); unicode-bidi: isolate; }
.js .vision:not(.is-read) .v-line strong { background-size: 0 .3em; }
.vision.is-read .v-line[data-w="tov"] strong { transition-delay: .5s; }
.vision.is-read .v-line[data-w="derek"] strong { transition-delay: 1s; }
@media (min-width: 720px) {
  .vision { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); row-gap: var(--s3); align-items: baseline; }
  .vision::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc((100% + var(--gut)) * 3 / 8 - var(--gut) / 2); width: 1px; background: var(--line); }
  .vision-text { display: contents; }
  .v-line { grid-column: 4 / -1; position: relative; }
  .v-line + .v-line { margin-top: 0; }
  .v-line[data-w]::before { content: ""; position: absolute; left: calc(var(--gut) / -2 - 7px); top: .72em; width: 14px; height: 2px; background: var(--navy); transition: background-color .16s var(--ease-state); }
  .v-gloss { display: block; grid-column: 1 / span 3; justify-self: end; padding-right: var(--s3); }
  .v-line:nth-child(1) { grid-row: 1; }
  .v-line:nth-child(2), .v-gloss[data-w="olam"] { grid-row: 2; }
  .v-line:nth-child(3), .v-gloss[data-w="tov"] { grid-row: 3; }
  .v-line:nth-child(4), .v-gloss[data-w="derek"] { grid-row: 4; }
  .v-line:nth-child(5) { grid-row: 5; }
}
@media (min-width: 1100px) {
  .vision::before { left: calc((100% + var(--gut)) * 4 / 12 - var(--gut) / 2); }
  .v-line { grid-column: 5 / -1; font-size: var(--fs-say); }
  .v-gloss { grid-column: 1 / span 4; }
}
/* pointing at a word lights its line, its gloss and its lexicon entry */
.nf:has([data-w="olam"]:hover) .v-line[data-w="olam"]::before,
.nf:has([data-w="tov"]:hover) .v-line[data-w="tov"]::before,
.nf:has([data-w="derek"]:hover) .v-line[data-w="derek"]::before { background: var(--here); }
.nf:has([data-w="olam"]:hover) .v-gloss[data-w="olam"],
.nf:has([data-w="tov"]:hover) .v-gloss[data-w="tov"],
.nf:has([data-w="derek"]:hover) .v-gloss[data-w="derek"] { color: var(--navy); }
.nf:has([data-w="olam"]:hover) .lexicon [data-w="olam"],
.nf:has([data-w="tov"]:hover) .lexicon [data-w="tov"],
.nf:has([data-w="derek"]:hover) .lexicon [data-w="derek"] { background: var(--tint); }
.nf:has([data-w="olam"]:hover) .v-line[data-w]:not([data-w="olam"]) strong,
.nf:has([data-w="tov"]:hover) .v-line[data-w]:not([data-w="tov"]) strong,
.nf:has([data-w="derek"]:hover) .v-line[data-w]:not([data-w="derek"]) strong { background-size: 0 .3em; transition-delay: 0s; transition-duration: .16s; }

/* 핵심가치: aligned on 보다는 */
.values > li { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -.015em; padding-block: var(--s3); }
.val-a, .val-than { font-weight: 500; color: var(--muted); }
.val-b strong { display: block; font-size: var(--fs-say); line-height: 1.4; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.values-close { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .values > li { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline; font-size: var(--fs-say); line-height: 1.4; padding-block: var(--s2); }
  .val-a { grid-column: 1 / span 3; text-align: right; }
  .val-b { grid-column: 4 / -1; }
  .val-b strong { display: inline; }
  .values-close { margin-top: var(--s7); padding-top: var(--s7); }
}
@media (min-width: 1100px) {
  .val-a { grid-column: 1 / span 4; }
  .val-b { grid-column: 5 / -1; }
}

/* 10가지 특징: the list, with a counter in the margin that follows the reading position */
.counter { margin-top: var(--s6); color: var(--muted); font-weight: 500; }

/* the reading road (also used by 세미나): a hairline beside the list, a tick at each
   item's first line, and the marker that travels to the item being read (pages.js).
   On 새가족 안내 the item being read stays dark and the others turn muted. */
.spy-marker { display: none; }
@media (min-width: 720px) {
  .is-live > .spy-marker { display: block; position: absolute; left: var(--road-x, 0px); top: 0; width: 3px; height: 26px; margin: -13px 0 0 -1px; background: var(--here); transform: translateY(var(--y, 0px)); transition: transform .42s var(--ease-walk); }
}

.spy { position: relative; counter-reset: spy; --road-x: calc(var(--gut) / -2); }
.spy > li { position: relative; counter-increment: spy; padding-block: var(--s5); }
.spy > li:first-child { padding-top: 0; }
.spy > li h3 { display: flex; gap: var(--s3); }
.spy > li h3::before { content: counter(spy); flex: none; min-width: 1.4em; font-weight: 500; color: var(--muted); transition: color .16s var(--ease-state); }
.spy > li p { padding-left: calc(1.4 * var(--fs-h3) + var(--s3)); margin-top: var(--s1); }
/* focus: the item being read (by scrolling, or by pointing at it) stays dark; the others step back */
.spy > li h3, .spy > li p { transition: color .16s var(--ease-state); }
.spy.is-live > li:not(.is-here) h3, .spy.is-live > li:not(.is-here) p { color: var(--muted); }
@media (min-width: 720px) {
  .spy::before { content: ""; position: absolute; left: var(--road-x); top: 0; bottom: 0; width: 1px; background: var(--line); }
  .spy > li::before { content: ""; position: absolute; left: calc(var(--road-x) - 5px); top: calc(var(--s5) + .72 * var(--fs-h3)); width: 11px; height: 1px; background: var(--navy); }
  .spy > li:first-child::before { top: calc(.72 * var(--fs-h3)); }
}
@media (max-width: 719px) {
  .counter { display: none; }
}

/* rows: a term in the margin, its text in the reading page */
.rows > * { padding-block: var(--s5); border-top: 1px solid var(--line); align-items: baseline; }
.rows > *:last-child { padding-bottom: 0; }
@media (min-width: 1100px) { .rows > * { padding-block: var(--s6); } }

/* ==========================================================================
   새신자 양육
   ========================================================================== */
.nb-lead { font-size: var(--fs-h3); line-height: 1.6; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }

/* the photo continues the reading column instead of crossing the whole page */
.nb-photo { margin-top: var(--s6); aspect-ratio: 3 / 2; }
.nb-photo img { object-position: 50% 60%; }
@media (min-width: 720px) { .nb-photo { aspect-ratio: 16 / 9; } }
/* the first row's rule is the one hairline between the intro and the four features */
.nb-features .sec-in { padding-top: 0; }

/* 10주 과정. Default: a plain list. With JS: one road, walked sideways (never pinned). */
.walk {
  padding-bottom: var(--sec);
  /* where the page grid starts and how wide it is; pages.js replaces both with exact pixels */
  --walk-x: max(var(--pad), calc(50% - 600px));
  --cw: min(100vw - 2 * var(--pad), 1200px);
  --step: calc(var(--cw) * .82);
}
.walk .sec-in { padding-bottom: 0; }
.walk-view { max-width: calc(1200px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.step { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline; padding-block: var(--s4); border-top: 1px solid var(--line); }
.step-n { grid-column: 1 / -1; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.step-q { grid-column: 1 / -1; font-size: var(--fs-h3); line-height: 1.45; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.walk-foot { display: flex; gap: var(--s2); margin-top: var(--s6); }
.walk-foot .btn[disabled] { background: transparent; color: var(--edge); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 720px) {
  .walk { --step: calc((var(--cw) + var(--gut)) / 2); }
  .step-n { grid-column: 1 / span 3; text-align: right; }
  .step-q { grid-column: 4 / -1; }
}
@media (min-width: 1100px) {
  .walk { --step: calc((var(--cw) + var(--gut)) / 3); }
  .step-n { grid-column: 1 / span 4; }
  .step-q { grid-column: 5 / -1; }
}
/* live: the strip bleeds to the window edge and is walked sideways (swipe, drag, 이전 / 다음).
   The look is the one road of the first design: the week you are on reads large and dark,
   the orange marker stands at the start of the road, and the road behind you fills in sky blue. */
.walk.is-live { --step: 78vw; }
@media (min-width: 720px) { .walk.is-live { --step: 46vw; } }
@media (min-width: 1100px) { .walk.is-live { --step: 540px; } }
.walk.is-live .walk-road { position: relative; }
.walk.is-live .walk-view { max-width: none; margin: 0; padding: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: var(--walk-x); overscroll-behavior-x: contain; scrollbar-width: none; }
.walk.is-live .walk-view::-webkit-scrollbar { display: none; }
.walk.is-live .walk-view:focus-visible { outline-offset: -2px; border-radius: 0; }
.walk.is-live .walk-view.is-drag, .walk.is-live .walk-view.is-settle { scroll-snap-type: none; }
/* room after the last week, so every week, the tenth too, can stand at the marker */
.walk.is-live .walk-track { display: flex; width: max-content; padding: 16px calc(var(--vw, 100vw) - var(--walk-x) - var(--step)) 0 var(--walk-x); }
.walk.is-live .step { position: relative; display: block; flex: none; width: var(--step); padding: 0 var(--s6) var(--s2) 0; border: 0; border-top: 1px solid var(--navy); scroll-snap-align: start; }
.walk.is-live .step::before { content: ""; position: absolute; left: 0; top: -5px; width: 1px; height: 9px; background: var(--navy); }
.walk.is-live .step::after { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 3px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .42s var(--ease-walk); }
.walk.is-live .step.is-past::after { transform: scaleX(1); }
.walk.is-live .step-n { display: block; margin-top: var(--s5); font-size: var(--fs-small); font-weight: 600; color: var(--muted); text-align: left; transition: color .16s var(--ease-state); }
.walk.is-live .step-q { margin-top: var(--s2); font-size: var(--fs-h2); line-height: 1.34; letter-spacing: -.02em; color: var(--edge); text-wrap: balance; transition: color .16s var(--ease-state); }
.walk.is-live .step.is-here .step-n { color: var(--here); }
.walk.is-live .step.is-here .step-q { color: var(--navy); }
.walk.is-live .walk-marker { display: block; position: absolute; left: var(--walk-x); top: 3px; width: 3px; height: 26px; margin-left: -1.5px; background: var(--here); pointer-events: none; }
.walk.is-live .walk-foot { justify-content: space-between; align-items: center; }
.walk.is-live .walk-foot .counter { display: block; margin: 0; }
.walk-marker { display: none; }
.walk-btns { display: flex; gap: var(--s2); }
@media (hover: hover) and (pointer: fine) {
  .walk.is-live .walk-view { cursor: grab; -webkit-user-select: none; user-select: none; }
  .walk.is-live .walk-view.is-drag { cursor: grabbing; }
}

/* ==========================================================================
   다음세대
   ========================================================================== */
.scripture { display: grid; row-gap: var(--s6); }
.vs { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline; }
/* verse numbers stay quiet, as in a Bible: small on phones, in the margin from tablet up */
.vs-n { grid-column: 1 / -1; font-size: var(--fs-small); line-height: 1.6; font-weight: 700; color: var(--muted); transition: color .42s var(--ease-state); }
.vs-t { grid-column: 1 / -1; font-size: var(--fs-say); line-height: 1.6; font-weight: 600; letter-spacing: -.015em; color: var(--navy); }
.ph { display: block; transition: color .42s var(--ease-state); }
.ph .mk { transition: background-size .72s var(--ease-walk); }
.scripture.is-live .ph:not(.is-lit) { color: var(--edge); }
.scripture.is-live .ph:not(.is-lit) .mk { background-size: 0 .3em; }
@media (min-width: 720px) {
  .scripture { row-gap: var(--s7); }
  .vs-n { grid-column: 1 / span 3; text-align: right; font-size: var(--fs-lead); color: var(--navy); }
  .vs-t { grid-column: 4 / -1; }
  /* until its verse is lit, the number is as faint as the unread phrases beside it */
  .scripture.is-live .vs:not(.is-lit) .vs-n { color: var(--edge); }
}
@media (min-width: 1100px) {
  .vs-n { grid-column: 1 / span 4; }
  .vs-t { grid-column: 5 / -1; }
}
.ng-key-2 { margin-top: var(--s4); }

/* the photo keeps its whole frame on phones and becomes a 2:1 band from tablet up */
.band-photo.ng-photo { aspect-ratio: 3 / 2; }
.band-photo.ng-photo img { object-position: 50% 62%; }
@media (min-width: 720px) { .band-photo.ng-photo { aspect-ratio: 2 / 1; } }

/* three practices: the title and the statement beside it share the first line; the small label sits under the title */
.pr-label { margin-top: 2px; }
.pr-lead { font-size: var(--fs-lead); line-height: 1.6; font-weight: 600; color: var(--navy); text-wrap: pretty; }
.pr-text { margin-top: var(--s2); }
.same { display: block; font-size: var(--fs-lead); line-height: 1.6; font-weight: 600; color: var(--navy); }
.same:first-of-type { margin-top: var(--s2); }
.same:last-of-type { margin-bottom: var(--s2); }

/* ==========================================================================
   세미나
   ========================================================================== */
/* 소개: the words on the margin page, the photo whole on the reading page */
.sem-photo { aspect-ratio: 3 / 2; }
@media (max-width: 719px) {
  .sem-intro .spread > .reading { margin-top: var(--s5); }
}
@media (min-width: 720px) {
  .sem-photo { align-self: start; }
}

/* 여섯 갈래: all six are open. Phones: stacked, a hairline between them.
   Wider: titles on the margin page, texts on the reading page, one road between
   them (the marker and .is-here come from the reading road in pages.js). */
.paths { position: relative; }
.path { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline; padding-block: var(--s5); border-top: 1px solid var(--line); }
.path:first-child { padding-top: 0; border-top: 0; }   /* the section's own rule is above it */
.path:last-of-type { padding-bottom: 0; }
.path-title, .path-text { grid-column: 1 / -1; }
.path-text { margin-top: var(--s2); text-wrap: pretty; }
/* the closing phrase: bold; underlined, left to right, while its row is the one being read */
.path-text strong {
  font-weight: 700; color: var(--navy);
  background: linear-gradient(var(--sky), var(--sky)) 0 88% / 0 .3em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .72s var(--ease-walk);
}
.paths.is-live .path.is-here .path-text strong { background-size: 100% .3em; }
@media (min-width: 720px) {
  .paths { --road-x: calc((100% + var(--gut)) * 3 / 8 - var(--gut) / 2); }
  .paths::before { content: ""; position: absolute; left: var(--road-x); top: 0; bottom: 0; width: 1px; background: var(--line); }
  .path { position: relative; padding-block: var(--s6) 0; border-top: 0; }
  .path::before { content: ""; position: absolute; left: calc(var(--road-x) - 5px); top: calc(var(--s6) + .72 * var(--fs-h3)); width: 11px; height: 1px; background: var(--navy); }
  .path:first-child::before { top: calc(.72 * var(--fs-h3)); }
  .path-title { grid-column: 1 / span 3; }
  .path-text { grid-column: 4 / -1; margin-top: 0; font-size: var(--fs-lead); line-height: 1.7; font-weight: 500; }
}
@media (min-width: 1100px) {
  .paths { --road-x: calc((100% + var(--gut)) * 4 / 12 - var(--gut) / 2); }
  .path-title { grid-column: 1 / span 4; }
  .path-text { grid-column: 5 / -1; }
}

/* ==========================================================================
   오시는 길
   ========================================================================== */
.loc-addr { margin-top: var(--s2); }
.loc-addr strong { font-weight: inherit; }   /* both lines of the address carry the same weight */
.loc-links { display: flex; flex-wrap: wrap; column-gap: var(--s5); margin-top: var(--s2); }
/* the two map buttons sit side by side; they stack, full width, only when the column is too narrow */
.loc-btns { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); max-width: 400px; }
.loc-btns .btn { flex: 1 1 calc(50% - var(--s2) / 2); padding-inline: var(--s3); }
/* 교통과 주차: the first row's rule is the one hairline under the map */
.loc-ways .sec-in { padding-top: 0; }
.map { position: relative; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.map-canvas { display: none; position: absolute !important; inset: 0; width: 100%; height: 100%; }
.map-fallback { padding: var(--s5); }
.map-fallback-msg { margin-bottom: var(--s2); }
.map.is-loading, .map.is-ready { aspect-ratio: 4 / 3; }
.map.is-loading .map-canvas, .map.is-ready .map-canvas { display: block; }
.map.is-ready .map-fallback { display: none; }
.map-pin { position: relative; display: flex; align-items: center; height: 40px; padding: 0 var(--s3) 0 var(--s4); background: var(--paper); border: 1px solid var(--navy); border-radius: var(--r); font-family: inherit; font-size: 14px; line-height: 1.3; color: var(--ink); white-space: nowrap; }
.map-pin::before { content: ""; position: absolute; left: -2px; top: -1px; bottom: -11px; width: 3px; background: var(--here); }
.map-pin b { margin-right: 6px; color: var(--navy); }
@media (min-width: 720px) {
  .map.is-loading, .map.is-ready { aspect-ratio: 3 / 2; }
}

/* 도보 3분: a small road inside the 대중교통 row, right under the sentence it draws */
.steps3 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s3); align-items: center; max-width: 420px; margin-top: var(--s2); }
.s3-from, .s3-to { font-size: var(--fs-small); line-height: 1.3; font-weight: 700; color: var(--navy); white-space: nowrap; }
.s3-line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; height: 26px; }
.s3-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--navy); }
.s3-line::after { content: ""; position: absolute; left: 0; top: calc(50% - 1.5px); height: 3px; width: 100%; background: var(--sky); transform-origin: left; }
.s3-line i { position: relative; height: 9px; border-left: 1px solid var(--navy); }
.s3-line i:last-of-type { border-right: 1px solid var(--navy); }
.s3-marker { position: absolute; z-index: 1; left: 100%; top: 0; width: 3px; height: 26px; margin-left: -1.5px; background: var(--here); }
.js .steps3:not(.is-in) .s3-marker { left: 0; }
.js .steps3:not(.is-in) .s3-line::after { transform: scaleX(0); }
.js .steps3.is-in .s3-marker { transition: left 2.4s cubic-bezier(.45, .05, .55, .95); }
.js .steps3.is-in .s3-line::after { transition: transform 2.4s cubic-bezier(.45, .05, .55, .95); }
.way-gap { margin-top: var(--s5); }

/* ==========================================================================
   개인정보처리방침
   ========================================================================== */
.legal { border-top: 0; padding-top: 0; }
.legal-toc a { display: flex; align-items: center; min-height: 40px; font-weight: 500; color: var(--navy); }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: .22em; }
.legal-toc { margin-bottom: var(--s6); }
.legal-body section + section { margin-top: var(--s7); }
.legal-body h2 { margin-bottom: var(--s3); }
.legal-body p + .table-wrap, .legal-body p + ul { margin-top: var(--s4); }
.table-wrap { overflow-x: auto; }
.legal-body table { width: 100%; min-width: 320px; }
.legal-body th, .legal-body td { padding: 14px var(--s4) 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body thead th { border-top: 0; padding-block: var(--s2); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.legal-body tbody th { width: 8.5em; font-weight: 700; color: var(--navy); }
.legal-body tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.legal-body code { padding: 2px 6px; background: var(--tint); border-radius: var(--r); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.bullets li { position: relative; padding-left: 1.2em; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .9em; width: 7px; height: 1px; background: var(--navy); }
.legal-date { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: var(--fs-small); }
@media (min-width: 720px) { .legal-toc { margin-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
