/* Fluid motion layer (owner, 2026-11-23: "애플 그런 인체공학적인 모든 모션이나 전환"; skill: fluid-motion). Every short UI
   transition in the site runs on one of four Apple springs (perceptual duration + bounce, WWDC23 "Animate with springs"),
   sampled into CSS linear() by ~/.claude/skills/fluid-motion/scripts/spring.mjs; tools/motion_tokens.py maps the old
   durations and easings onto them. Loaded last. */
:root {
  /* quick: 0.25 s, bounce 0 */
  --spring-quick: linear(0, 0.0229, 0.079, 0.1536, 0.2366, 0.3215, 0.4038, 0.481, 0.5518, 0.6155, 0.672, 0.7215, 0.7646, 0.8017, 0.8336, 0.8607, 0.8838, 0.9032, 0.9196, 0.9333, 0.9448, 0.9544, 0.9624, 0.969, 0.9745, 0.9791, 0.9828, 0.9859, 0.9885, 0.9906, 0.9923, 0.9937, 0.9949, 0.9958, 0.9966, 0.9972, 0.9977, 0.9982, 0.9985, 0.9988, 1);
  --spring-quick-dur: 368ms;
  /* snappy: 0.3 s, bounce 0.15 */
  --spring-snappy: linear(0, 0.0212, 0.075, 0.1491, 0.2342, 0.3234, 0.4119, 0.4964, 0.5747, 0.6457, 0.7088, 0.7638, 0.8112, 0.8514, 0.885, 0.9128, 0.9354, 0.9535, 0.9679, 0.9791, 0.9876, 0.994, 0.9986, 1.0019, 1.004, 1.0053, 1.006, 1.0063, 1.0062, 1.0059, 1.0054, 1.0049, 1.0044, 1.0038, 1.0033, 1.0028, 1.0023, 1.0019, 1.0015, 1.0012, 1);
  --spring-snappy-dur: 419ms;
  /* smooth: 0.35 s, bounce 0 */
  --spring-smooth: linear(0, 0.0229, 0.079, 0.1535, 0.2365, 0.3213, 0.4036, 0.4808, 0.5516, 0.6153, 0.6717, 0.7213, 0.7644, 0.8016, 0.8334, 0.8606, 0.8836, 0.9031, 0.9195, 0.9332, 0.9447, 0.9543, 0.9623, 0.969, 0.9745, 0.979, 0.9828, 0.9859, 0.9884, 0.9905, 0.9923, 0.9937, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9982, 0.9985, 0.9988, 1);
  --spring-smooth-dur: 515ms;
  /* sheet: 0.5 s, bounce 0.08 */
  --spring-sheet: linear(0, 0.0122, 0.0442, 0.09, 0.1451, 0.2057, 0.2689, 0.3326, 0.3952, 0.4555, 0.5128, 0.5664, 0.6162, 0.6618, 0.7034, 0.7411, 0.7749, 0.8052, 0.8321, 0.8558, 0.8768, 0.8951, 0.9111, 0.925, 0.937, 0.9473, 0.9562, 0.9637, 0.9702, 0.9756, 0.9802, 0.9841, 0.9873, 0.99, 0.9922, 0.994, 0.9955, 0.9967, 0.9976, 0.9984, 1);
  --spring-sheet-dur: 523ms;
}

/* ---------- page to page (owner 2026-11-25 "화면 전환 … 렉도 걸리고"): no cross-page view transition. It froze the old
   page until the new one could paint, then played a slow fade, which read as lag on phones and heavy pages. Now the new
   page paints at once and only its content fades in (opacity, 180 ms, compositor only); header and tab bar never move. */
@view-transition { navigation: none; }
main { animation: page-in 180ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes page-in { from { opacity: 0; } }

/* ---------- tab bar: one pill that glides to the new tab across the page change ---------- */
@media (max-width: 760px) {
  .tab { position: relative; isolation: isolate; }
  .tab[aria-current], .tab[data-current] { background: none !important; }
  .tab[aria-current]::before, .tab[data-current]::before { content: ""; position: absolute; inset: 0; z-index: var(--z-backdrop); border-radius: inherit;
    background: rgba(11, 36, 71, .08); view-transition-name: tab-pill; }
  .tab:active { transform: scale(.94); transition: transform var(--spring-quick-dur) var(--spring-quick); }
}

/* ---------- sheets: rise on the sheet spring; the backdrop follows the sheet while it is dragged ---------- */
@media (max-width: 760px) {
  .sheet-in { animation: sheet-rise var(--spring-sheet-dur) var(--spring-sheet) both !important; }
  .sheet.is-closing .sheet-in { animation: sheet-fall 220ms cubic-bezier(.4, 0, 1, 1) both !important; }
  .sheet.is-dragging .sheet-in { transition: none !important; }
  .sheet.is-settling .sheet-in { transition: transform var(--spring-sheet-dur) var(--spring-sheet) !important; }
  .sheet::backdrop { opacity: var(--sheet-dim, 1); }
  @keyframes sheet-rise { from { transform: translateY(100%); } }
  @keyframes sheet-fall { to { transform: translateY(100%); } }
}

/* ---------- press: in fast, out on a spring ---------- */
.btn, .btn-go, .ft-contact, .qtc-v2 .qtc-btn, .quick a, .next-line, .sheet-list a, .cover-play, .ft-icon {
  transition-property: transform, background-color, color, box-shadow, opacity; }

/* ---------- Reduce Motion: fades only, all states still shown ---------- */
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  @keyframes vt-fade { from { opacity: 0; } }
  .sheet-in, .sheet.is-closing .sheet-in { animation: vt-fade 150ms ease-out both !important; }
}

/* chips sit 4px apart (on the spacing scale) */
.album-bar { gap: 4px !important; }

/* 오시는 길 walk section: the fallback link shows only if the 3D cannot open */
.walk-sec .walk-fallback { display: none; margin-top: var(--s2); }
.walk-sec.is-failed .walk-fallback { display: block; }
.walk-sec .walk-root { min-height: 320px; }

/* walk: keep its small labels on the site spacing scale (its own stylesheet is re-packaged from walk3d) */
.walk-sec .walk .pane-tag { padding-top: 4px !important; padding-bottom: 4px !important; }
.walk-sec .walk .cap span { row-gap: 0 !important; }

/* walk steps: a clear numbered route list, not a pile of boxes — numbers fixed-width and never wrapped, labels in one line */
.walk-sec .walk .keys { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 0 24px !important; margin-top: var(--s3) !important; }
.walk-sec .walk .keys button { display: grid !important; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; min-height: 44px; padding: 8px 0 !important;
  border: 0 !important; border-top: 1px solid var(--rule) !important; border-radius: 0 !important; background: none !important; text-align: left;
  font: 500 15px/1.4 var(--sans) !important; color: var(--ink) !important; transition: color var(--spring-quick-dur) var(--spring-quick); }
.walk-sec .walk .keys button i { font: 600 13px/1.4 var(--sans) !important; color: #9C5200 !important; white-space: nowrap; }
.walk-sec .walk .keys button:hover { color: var(--blue) !important; }
.walk-sec .walk .keys button[aria-current="true"] { color: var(--night) !important; font-weight: 700 !important; box-shadow: inset 0 2px 0 var(--night) !important; }

/* landing fills the screen exactly (owner, 2026-11-23: "사진이랑 랜딩페이지 꽉 차게 딱 맞게"): the cover photo plus the service
   times end at the bottom edge of the first screen, edge to edge */
@media (min-width: 761px) {
  .hm-hero { height: calc(100svh - var(--land-top, 72px)) !important; min-height: 520px !important; max-height: none !important; }
  .hm-cover img { object-fit: cover; object-position: 50% 40%; }
}

/* 토요 산상기도 on paper (owner: "배경이 흰색이 나으려나 … 슬롭 같은 느낌"): the page is light like the rest of the site; the
   photos sit as a clean gallery row with plain captions — no film sprockets, frame numbers or orange monospace */
#mountain { background: var(--sand) !important; color: var(--ink) !important; }
#mountain .sh { border-top-color: var(--ink) !important; }
#mountain .sh h2, #mountain .dawn-num b { color: var(--night) !important; }
#mountain .sh p, #mountain .dawn-head .lead, #mountain .dawn-num span, #mountain .strip-note { color: var(--ink-2) !important; }
#mountain .link { color: var(--blue) !important; }
/* the film strip itself stays a dark band of film on the light page (owner: the film look was good) */
html body #mountain .sh h2, html body #mountain h2, html body #mountain h1 { color: var(--night) !important; }

/* 헌금 안내 */
.offering .of-main { margin: 0; border-top: 1px solid var(--ink); }
.offering .of-main > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); align-items: center; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.offering .of-main dt { font: 600 15px/1.4 var(--sans); color: var(--ink-2); }
.offering .of-main dd { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; font: 500 21px/1.4 var(--sans); color: var(--night); }
.offering #of-acc { font: 600 36px/1.2 var(--sans); letter-spacing: .02em; }
.offering .of-bank { font: 600 15px/1.4 var(--sans); color: #9C5200; }
.offering .of-copy { min-height: 44px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 20px; background: rgba(11, 36, 71, .06); color: var(--night);
  font: 600 13px/1.4 var(--sans); cursor: pointer; transition: background-color var(--spring-quick-dur) var(--spring-quick), transform 90ms ease-out; }
.offering .of-copy:hover { background: rgba(11, 36, 71, .1); } .offering .of-copy:active { transform: scale(.96); }
.offering .of-copy:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.offering .of-note { margin: var(--s3) 0 0; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }
.offering .of-wire { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s5); }
.offering .of-wire h3 { margin: 0 0 var(--s2); padding-bottom: var(--s1); border-bottom: 1px solid var(--ink); font: 600 17px/1.4 var(--sans); color: var(--night); }
.offering .of-wire dl { margin: 0; }
.offering .of-wire dl > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.offering .of-wire dt { font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.offering .of-wire dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 400 15px/1.4 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.offering .of-source { margin: var(--s4) 0 0; font: 400 13px/1.6 var(--sans); color: var(--ink-2); }
@media (max-width: 760px) {
  .offering .of-main > div { grid-template-columns: 1fr; gap: 4px; }
  .offering #of-acc { font-size: 26px; }
  .offering .of-wire { grid-template-columns: 1fr; gap: var(--s3); }
  .offering .of-wire dl > div { grid-template-columns: 7em minmax(0, 1fr); }
}
/* the times rise into place as they come up under the photo */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hm-times { opacity: 0; transform: translateY(16px); transition: opacity var(--spring-smooth-dur) var(--spring-smooth), transform var(--spring-smooth-dur) var(--spring-smooth); }
  .hm-times.is-in { opacity: 1; transform: none; }
}

/* the walk on the site: no numbered step list (owner: not needed); the walk session is moving to a 3D-first layout */
.walk-sec .walk .keys { display: none !important; }

/* 3D walk: 크게 보기 (owner, 2026-11-23). Closed: an icon button beside the title. Open: the section fills the screen on
   navy, the walk takes all the room above its controls; turned sideways on a phone the walk fills the screen too. */
.walk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.walk-expand { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(11, 36, 71, .06); color: var(--night); cursor: pointer;
  transition: background-color var(--spring-quick-dur) var(--spring-quick), transform var(--spring-quick-dur) var(--spring-quick); }
.walk-expand:hover { background: rgba(11, 36, 71, .12); }
.walk-expand:active { transform: scale(.94); }
.walk-expand:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.walk-expand svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.walk-expand .i-close, .walk-expand[aria-pressed="true"] .i-open { display: none; }
.walk-expand[aria-pressed="true"] .i-close { display: inline; }
.walk-sec:not(.is-mounted) .walk-expand { visibility: hidden; }
html.walk-full, html.walk-full body { overflow: hidden; }
html.walk-full .tabbar { display: none !important; }
.walk-sec.is-full { position: fixed; inset: 0; z-index: var(--z-fullscreen); max-width: none !important; width: auto !important; opacity: 1 !important; transform: none !important; margin: 0; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex !important; flex-direction: column; gap: 8px; background: #08182F !important; color: #fff; animation: walk-full-in var(--spring-smooth-dur) var(--spring-smooth) both; }
.walk-sec.is-full .walk-head { align-items: center; margin: 0; }
.walk-sec.is-full .walk-head h2 { color: #fff; font-size: 17px; }
.walk-sec.is-full .walk-expand { background: rgba(255, 255, 255, .14); color: #fff; }
.walk-sec.is-full .walk-root { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.walk-sec.is-full .walk, .walk-sec.is-full .walk .stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.walk-sec.is-full .walk.solo .pane.model { flex: 1; min-height: 0; aspect-ratio: auto !important; width: 100% !important; max-width: none !important; height: auto !important; }
.walk-sec.is-full .walk, .walk-sec.is-full .walk-root { width: 100% !important; max-width: none !important; margin: 0 !important; }
.walk-sec.is-full .walk .controls { color: #fff; }
.walk-sec.is-full .walk .time { color: rgba(255, 255, 255, .8) !important; }
.walk-sec.is-full .walk-head h2 { color: #fff !important; }
@keyframes walk-full-in { from { opacity: 0; transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { .walk-sec.is-full { animation: none; } }
/* a phone turned sideways: the walk itself fills the screen height */
@media (orientation: landscape) and (max-height: 500px) {
  .walk-sec .walk.solo .pane.model { aspect-ratio: auto !important; height: calc(100svh - 72px); }
  .walk-sec.is-full .walk-head { position: absolute !important; top: max(16px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); z-index: var(--z-overlay); }
  .walk-sec.is-full .walk-head h2 { display: none !important; }
  .walk-sec.is-full .walk.solo .pane.model { height: auto; }
}

/* 예배 시간 strip under the cover, redrawn to be read at a glance (owner, 2026-11-23: "잘 보이게"): white band, each
   group named in navy, every service in its own column with a hairline between, times in a steady medium weight
   (the light 300 numerals were too faint), service names one step darker and larger. Desktop only; phones use 다음 예배. */
@media (min-width: 761px) {
  main .hm-times.hm-times.hm-times { display: flex !important; align-items: stretch; gap: 0; padding: 16px max(var(--margin), calc((100vw - 1200px) / 2)) 24px !important; /* scale-exception: optical or section offset 1200px */
    background: #fff !important; border-bottom: 1px solid rgba(11, 36, 71, .1); }
  main .hm-times.hm-times.hm-times .tm-group { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  main .hm-times.hm-times.hm-times .tm-group + .tm-group { margin-left: 32px !important; padding-left: 32px !important; border-left: 1px solid rgba(11, 36, 71, .12) !important; }
  main .hm-times.hm-times.hm-times .tm-k { margin: 0 !important; font: 700 15px/1.4 var(--sans) !important; letter-spacing: 0 !important; color: var(--night) !important; }
  main .hm-times.hm-times.hm-times dl { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 !important; margin: 0 !important; }
  main .hm-times.hm-times.hm-times dl > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 12px 0 0 !important; }
  main .hm-times.hm-times.hm-times dl > div + div { padding-left: 16px !important; box-shadow: inset 1px 0 0 rgba(11, 36, 71, .08); }
  main .hm-times.hm-times.hm-times dt { margin: 0; font: 500 15px/1.4 var(--sans) !important; color: var(--ink) !important; white-space: nowrap; }
  main .hm-times.hm-times.hm-times dt small { font: 400 13px/1.4 var(--sans) !important; color: var(--ink-2) !important; }
  main .hm-times.hm-times.hm-times dd { margin: 0; font: 500 32px/1.1 var(--sans) !important; letter-spacing: -.02em !important; color: var(--night) !important; font-variant-numeric: tabular-nums; }
  /* 예배 안내 (owner, 2026-11-23: "너무 촘촘해 … 편안하게"): its own column at the right end of the strip, centred on the
     times, a calm 44px outline button; the columns give it room instead of it sitting on top of 토요 산상기도 */
  main .hm-times.hm-times.hm-times { position: relative; padding-right: calc(max(var(--margin), (100vw - 1200px) / 2) + 152px) !important; }
  main .hm-times.hm-times.hm-times .btn-go { display: inline-flex !important; position: absolute; top: 50%; transform: translateY(-50%);
    right: max(var(--margin), calc((100vw - 1200px) / 2)); align-items: center; gap: 4px; height: 44px; min-height: 44px !important; margin: 0 !important;
    padding: 0 16px 0 20px !important; border: 1px solid rgba(11, 36, 71, .22) !important; border-radius: 100vmax;
    background: none !important; color: var(--night) !important; font: 600 15px/1 var(--sans) !important; white-space: nowrap; box-shadow: none !important;
    transition: background-color var(--spring-quick-dur) var(--spring-quick), border-color var(--spring-quick-dur) var(--spring-quick); }
  main .hm-times.hm-times.hm-times .btn-go:hover { background: rgba(11, 36, 71, .06) !important; border-color: rgba(11, 36, 71, .4) !important; }
  main .hm-times.hm-times.hm-times .btn-go svg { width: 16px !important; height: 16px !important; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  main .hm-times.hm-times.hm-times dd { font-size: 26px !important; }
  main .hm-times.hm-times.hm-times .tm-group + .tm-group { margin-left: 24px !important; padding-left: 24px !important; }
}

/* 큐티 has its own mark (owner, 2026-11-23): the open Bible with a ribbon, not a generic chevron; it doesn't slide like an arrow */
.qtc-v2 .qtc-btn.qtc-book svg { width: 24px; height: 24px; stroke-width: 1.6; }
.qtc-v2:hover .qtc-btn.qtc-book svg { transform: none; }

/* each button moves in its own way (owner, 2026-11-23): the 큐티 book turns a page when you reach for it. v2 (owner:
   "페이지 넘기는 애니메이션 너무 구리다"): not a flat squash but a real leaf in 3D. The right page lifts off the spine, swings
   over in perspective with a slight curl at the top of its arc, and lands on the left; the page beneath stays, so the book
   is never empty. Only transform and opacity move. */
.qtc-v2 .qtc-btn.qtc-book .qtc-bookart { position: relative; display: block; width: 24px; height: 24px; perspective: 36px; }
.qtc-v2 .qtc-btn.qtc-book .qtc-bookart svg { position: absolute; inset: 0; width: 24px; height: 24px; }
.qtc-v2 .qtc-btn.qtc-book .qtc-leaf { transform-origin: 50% 50%; backface-visibility: visible; }
.qtc-v2 .qtc-btn.qtc-book .qtc-leaf path { fill: var(--night); stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }   /* an opaque sheet: at rest it is the right page; turning, it hides what it passes */
@media (prefers-reduced-motion: no-preference) {
  .qtc-v2:hover .qtc-btn.qtc-book .qtc-leaf path, .qtc-v2:focus-visible .qtc-btn.qtc-book .qtc-leaf path, .qtc-v2:active .qtc-btn.qtc-book .qtc-leaf path {
    animation: qt-page-light .9s cubic-bezier(.45, .05, .25, 1) both; }
}
@keyframes qt-page-light { 0%, 100% { fill: var(--night); } 14%, 80% { fill: #DCE3EE; } 50% { fill: #F4F6FA; } }   /* lifted, the page is paper: a light sheet sweeps over the spine, catching most light edge-on, and goes back to ink as it lands */
@media (prefers-reduced-motion: no-preference) {
  .qtc-v2:hover .qtc-btn.qtc-book .qtc-leaf, .qtc-v2:focus-visible .qtc-btn.qtc-book .qtc-leaf, .qtc-v2:active .qtc-btn.qtc-book .qtc-leaf {
    animation: qt-page-turn .9s cubic-bezier(.45, .05, .25, 1) both; }
}
@keyframes qt-page-turn {
  0%   { transform: rotateY(0deg); opacity: 1; }
  12%  { transform: rotateY(-14deg) skewY(-2deg); }            /* the corner lifts first */
  50%  { transform: rotateY(-90deg) skewY(-6deg); opacity: .85; } /* edge-on, curled over the spine */
  88%  { transform: rotateY(-172deg) skewY(-1deg); opacity: 1; }
  100% { transform: rotateY(-180deg); opacity: 1; }             /* settles exactly on the left page */
}

/* the walk's room is held before three.js arrives, so nothing below jumps when it mounts (CLS): the same padding,
   picture shape and controls height as the mounted walk (walk.css: 32px around, 16 16 32 on phones; 72px controls) */
.walk-sec .walk-root:empty { min-height: 0; max-width: 1440px; margin: 0 auto; padding: 32px 0; }
.walk-sec .walk-root:empty::before { content: ""; display: block; aspect-ratio: 16 / 9; border-radius: 12px; background: #08182F; }
.walk-sec .walk-root:empty::after { content: ""; display: block; height: 72px; }
@media (max-width: 760px) {
  .walk-sec .walk-root:empty { padding: 16px 0 32px; }
  .walk-sec .walk-root:empty::before { aspect-ratio: 4 / 5; }
}

/* cover: a photo that has not loaded (data-src) or failed never paints its alt text over the picture (Safari did) */
.hm-cover img { color: transparent; font-size: 0; }
.hm-cover img:not([src]) { visibility: hidden; }

/* the player lines up with the page column (it sat 32px inside it) */
.walk-sec .walk.walk:not(.is-full *) { padding-inline: 0 !important; }
/* the walk's text on the site's type steps: timer 13 (caption), subtitle 17 on desktop / 15 on phones */
.walk-sec .walk .time { font-size: 13px !important; line-height: 1.5 !important; }
.walk-sec .walk.solo .cap .line { font-size: 17px !important; line-height: 1.5 !important; }
@media (max-width: 760px) { .walk-sec .walk.solo .cap .line { font-size: 15px !important; } }

/* one navy ink: links inside sentences are told apart by a hairline underline, not by a second blue */
p .link, dd .link, li .link:not(.cover), .page-line .link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(11, 36, 71, .35); }
p .link:hover, dd .link:hover, li .link:hover { text-decoration-color: currentColor; }

/* 이번 주 주보 pages: the printed sheet as it is, on a hairline; each page fades in once it has loaded */
.jubo-img .jubo-page img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.jubo-note { margin-top: 16px; }
}
.jubo-img .jubo-note { text-align: left !important; }

/* 섬기는 분들: every pastor drawn the same way as the 담임목사 — photo on the page edge, words beside it, one hairline
   between people; no white card boxes (owner: "no card-on-card") */
.staff .st-grid > li { background: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 16px 0 !important;
  border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .staff .st-grid > li:first-child { padding-top: 0 !important; } }   /* phones only: the 담임목사 block already ends on a hairline */

/* photos that arrive late: hidden until loaded, then one gentle fade (Apple: content cross-fades in, never pops) */
main img.img-wait { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { main img.img-in { animation: img-in var(--spring-smooth-dur) var(--spring-smooth) both; } }
@keyframes img-in { from { opacity: 0; } }
/* the walk's poster on the site's type steps: kicker 15, route 17, title 56 (36 on phones) */
.walk-sec .walk .wc-kicker { font-size: 15px !important; line-height: 1.5 !important; }
.walk-sec .walk .wc-route { font-size: 17px !important; line-height: 1.5 !important; }
.walk-sec .walk .wc-title { font-size: 56px !important; line-height: 1.15 !important; }
@media (max-width: 760px) { .walk-sec .walk .wc-title { font-size: 36px !important; line-height: 1.2 !important; } .walk-sec .walk .wc-route { font-size: 15px !important; } .walk-sec .walk .wc-kicker { font-size: 13px !important; } }
/* narrow desktops: the eight times need the whole width; 예배 in the header still leads to every time */
@media (min-width: 761px) and (max-width: 1180px) {
  main .hm-times.hm-times.hm-times { padding-right: max(var(--margin), calc((100vw - 1200px) / 2)) !important; }
  main .hm-times.hm-times.hm-times .btn-go { display: none !important; }
}
/* 이번 주 주보: the printed pages as they are — number and date as a caption, pages two across (one on phones),
   each on a hairline frame; a tap opens the page full size */
.jubo-img .jubo-meta { margin: 0 0 16px; font: 500 15px/1.5 var(--sans); color: var(--ink-2); }
.jubo-img .jubo-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.jubo-img .jubo-page { margin: 0; aspect-ratio: 992 / 1403; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 8px 24px rgba(11, 36, 71, .08); }
.jubo-img .jubo-page img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { .jubo-img .jubo-spread { grid-template-columns: 1fr; gap: 16px; } }

/* pill buttons answer the hand in layers (owner, 2026-11-23: "커졌다가 … 테두리가 더 커진다거나 누르면 그게 커지거나"):
   rest → a pointer arrives: the pill lifts a touch and a soft ring opens around it → pressed: the pill sinks and the
   ring swells outward → released: both settle on a spring. Uses the `scale` property, so buttons that are also moved
   with `transform` (the 예배 안내 pill) keep their place. */
.header .btn, .hm-times .btn-go, .walk-expand, .cover-play, .qtc-v2 .qtc-btn {
  --ring: 0px; box-shadow: 0 0 0 var(--ring) rgba(11, 36, 71, .10) !important;
  transition: scale var(--spring-snappy-dur) var(--spring-snappy), box-shadow var(--spring-smooth-dur) var(--spring-smooth),
    background-color var(--spring-quick-dur) var(--spring-quick), color var(--spring-quick-dur) var(--spring-quick), border-color var(--spring-quick-dur) var(--spring-quick) !important; }
@media (hover: hover) {
  .header .btn:hover, .hm-times .btn-go:hover, .walk-expand:hover, .cover-play:hover { scale: 1.04; --ring: 6px; }
}
.header .btn:active, .hm-times .btn-go:active, .walk-expand:active, .cover-play:active { scale: .96; --ring: 10px; transition-duration: 90ms, var(--spring-smooth-dur), 90ms, 90ms, 90ms !important; }
.cover-play { --ring-c: rgba(255, 255, 255, .22); box-shadow: 0 0 0 var(--ring) rgba(255, 255, 255, .22) !important; }
@property --ring { syntax: "<length>"; inherits: false; initial-value: 0px; }
@media (prefers-reduced-motion: reduce) {
  .header .btn, .hm-times .btn-go, .walk-expand, .cover-play, .qtc-v2 .qtc-btn { transition: background-color .15s, color .15s !important; scale: none !important; }
}
/* these pills used to scale with `transform` too: one mechanism only */
.qtc-v2:active .qtc-btn, .qtc-v2:hover .qtc-btn, .cover-play:active, .walk-expand:active, .header .btn:active, .header .btn:hover { transform: none !important; }

/* 크게 보기, like a YouTube full screen (owner, 2026-11-23): the walk fills the whole screen edge to edge on black, square
   corners, no title row; only a small close button floats over the corner. A phone held upright turns the player
   sideways (the browser's own landscape lock is asked for first, where it exists). */
.walk-sec.is-full { padding: 0 !important; gap: 0 !important; background: #000 !important; }
.walk-sec.is-full .walk-head { position: absolute !important; z-index: var(--z-float); top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); margin: 0 !important; }
.walk-sec.is-full .walk-head h2 { display: none !important; }
.walk-sec.is-full .walk-expand { background: rgba(0, 0, 0, .45) !important; color: #fff !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.walk-sec.is-full .walk, .walk-sec.is-full .walk .stage { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.walk-sec.is-full .walk.solo .pane.model, .walk-sec.is-full .walk .stage .pane { border-radius: 0 !important; }
@media (max-width: 760px) and (orientation: portrait) {
  .walk-sec.is-full { inset: auto !important; top: 0 !important; left: 0 !important; width: 100dvh !important; height: 100dvw !important;
    transform-origin: top left; transform: translateX(100dvw) rotate(90deg) !important; animation: walk-full-fade var(--spring-smooth-dur) var(--spring-smooth) both !important; }
}
@keyframes walk-full-fade { from { opacity: 0; } }

/* times strip as one even grid (owner, 2026-11-23: "정렬이랑 인덱싱 그리딩"): both groups get the same inner width (each
   gives up 40px beside the one divider), so all eight columns are equal; every label and time starts on its column's
   left edge (no per-column dividers or insets); 주일 / 주중 sit over their first column */
@media (min-width: 761px) {
  main .hm-times.hm-times.hm-times .tm-group { flex: 1 1 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  main .hm-times.hm-times.hm-times .tm-group:first-of-type { padding-right: 32px !important; }
  main .hm-times.hm-times.hm-times .tm-group + .tm-group { padding-left: 32px !important; border-left: 1px solid rgba(11, 36, 71, .12) !important; }
  main .hm-times.hm-times.hm-times dl > div, main .hm-times.hm-times.hm-times dl > div + div { padding: 0 8px 0 0 !important; box-shadow: none !important; }
}
/* the header's 오시는 길 keeps its hairline outline under the ring */
.header .btn { box-shadow: inset 0 0 0 1px rgba(11, 36, 71, .35), 0 0 0 var(--ring) rgba(11, 36, 71, .10) !important; }
/* 예배 안내 keeps its centring through hover and press: older `transform` press rules no longer replace it */
main .hm-times.hm-times.hm-times .btn-go, main .hm-times.hm-times.hm-times .btn-go:hover, main .hm-times.hm-times.hm-times .btn-go:active { transform: translateY(-50%) !important; }
/* one full-screen control: the player's own button; the title-row button is retired (and the walk's "turn your phone"
   hint is not needed, the site turns the player itself) */
.walk-sec .walk-expand { display: none !important; }
.walk-sec .walk .rotate-hint { display: none !important; }

/* 큐티 (owner, 2026-11-23, again: "그냥 페이지 넘기는 모션만"): the button itself never moves — no slide, lift, scale, sink
   or ring, and the old arrow "slide through" animation is gone; the only motion is the page turning over the spine */
.qtc-v2 .qtc-btn.qtc-book, .qtc-v2:hover .qtc-btn.qtc-book, .qtc-v2:focus-visible .qtc-btn.qtc-book, .qtc-v2:active .qtc-btn.qtc-book {
  transform: none !important; scale: none !important; translate: none !important; box-shadow: none !important; }
.qtc-v2 .qtc-btn.qtc-book svg:not(.qtc-leaf), .qtc-v2:hover .qtc-btn.qtc-book svg:not(.qtc-leaf), .qtc-v2:focus-visible .qtc-btn.qtc-book svg:not(.qtc-leaf) { animation: none !important; transform: none !important; translate: none !important; }
.qtc-v2:focus-visible .qtc-btn.qtc-book { outline: 2px solid var(--orange); outline-offset: 3px; }

/* 홈 화면에 추가 (owner, 2026-11-23: "눌러지는 범위가 이상하다"): one pill that exactly holds the icon and the words —
   the pressed and hover shape is the pill, nothing outside it, and no link underline running past it. On phones the
   pill's inner text keeps the footer's left edge (the pill reaches 12px into the margin). */
.footer .a2hs, .ft .a2hs { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; min-height: 44px;
  padding: 0 16px 0 12px !important; border: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 100vmax !important;
  background: none; color: #fff; text-decoration: none !important; font: 500 15px/1 var(--sans) !important;
  transition: background-color var(--spring-quick-dur) var(--spring-quick), border-color var(--spring-quick-dur) var(--spring-quick), scale var(--spring-snappy-dur) var(--spring-snappy); }
.footer .a2hs::after, .ft .a2hs::after { content: none !important; display: none !important; }
.footer .a2hs:hover, .footer .a2hs:focus-visible { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .6) !important; }
.footer .a2hs:active { scale: .97; background: rgba(255, 255, 255, .16) !important; }
.footer .a2hs:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 760px) { .footer .a2hs { margin-left: 0 !important; } }   /* the visible outline sits on the page margin like every other pill */

/* 사진 크게 보기 v2 (owner, 2026-11-23: "사진 보는거 너무 슬롭 … 디테일하게"): a full-screen room of deep navy; the whole
   photo always fits (never cropped), centred with breathing room; a quiet top line — the gathering and date on the left,
   "3 / 24" beside it, close on the right; previous / next are wide edge zones whose chevrons brighten on hover; photos
   cross-fade. Phones: the photo uses the full width, swipe turns the page, the chevrons stay small at the edges. */
.lb.lb2 { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #000; color: #fff; overflow: hidden; }   /* black, like a photo viewer (owner, 2026-11-23) */
.lb.lb2::backdrop { background: #000; }
.lb2[open] { animation: lb-in var(--spring-smooth-dur) var(--spring-smooth) both; }
@keyframes lb-in { from { opacity: 0; } }
.lb2 .lb-top { position: absolute; z-index: var(--z-overlay); inset: 0 0 auto 0; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px 0 24px; background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
.lb2 .lb-cap { margin: 0; display: flex; align-items: baseline; gap: 12px; font: 500 15px/1.4 var(--sans); color: rgba(255, 255, 255, .92); }
.lb2 .lb-n { font: 400 13px/1.4 var(--sans); color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.lb2 .lb-stage { position: absolute; inset: 64px 96px 32px; margin: 0; display: grid; grid-template: 100% / 100%; place-items: center; }   /* fixed track: a tall photo fits instead of overflowing (owner 2026-11-27 "비율이 이상하게") */
.lb2 .lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45); background: none;
  transition: opacity var(--spring-smooth-dur) var(--spring-smooth), scale var(--spring-smooth-dur) var(--spring-smooth); }
.lb2 .lb-stage img.is-out { opacity: 0; scale: .985; }
.lb2 button { position: absolute; z-index: var(--z-float); display: grid; place-items: center; border: 0; background: none; color: #fff; cursor: pointer; padding: 0; }
.lb2 button svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb2 .lb-close { position: static; width: 44px; height: 44px; border-radius: 50%; color: rgba(255, 255, 255, .85); transition: background-color var(--spring-quick-dur) var(--spring-quick); }
.lb2 .lb-close svg { width: 22px; height: 22px; }
.lb2 .lb-close:hover, .lb2 .lb-close:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.lb2 .lb-prev, .lb2 .lb-next { top: 64px; bottom: 0; height: calc(100% - 64px); width: 96px; color: rgba(255, 255, 255, .45); transition: color var(--spring-quick-dur) var(--spring-quick); }
.lb2 .lb-prev { left: 0; } .lb2 .lb-next { right: 0; }
.lb2 .lb-prev svg, .lb2 .lb-next svg { width: 32px; height: 32px; transition: translate var(--spring-snappy-dur) var(--spring-snappy); }
.lb2 .lb-prev:hover, .lb2 .lb-next:hover, .lb2 .lb-prev:focus-visible, .lb2 .lb-next:focus-visible { color: #fff; }
.lb2 .lb-prev:hover svg { translate: -3px 0; } .lb2 .lb-next:hover svg { translate: 3px 0; }
.lb2 button:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }
@media (max-width: 760px) {
  .lb2 .lb-top { padding: 0 4px 0 16px; height: 56px; }
  .lb2 .lb-stage { inset: 56px 0 24px; }
  .lb2 .lb-stage img { border-radius: 0; box-shadow: none; }
  .lb2 .lb-prev, .lb2 .lb-next { top: auto; bottom: 16px; width: 48px; height: 48px !important; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
  .lb2 .lb-prev { left: 16px; } .lb2 .lb-next { right: 16px; }
  .lb2 .lb-prev svg, .lb2 .lb-next svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lb2[open], .lb2 .lb-stage img { animation: none; transition: none; } }

/* ===== round-2 review fixes (same-family visual review, 2026-11-23), each measured on the live site ===== */
/* 1. 교회 소식: one hairline per row (an old home-page rule drew a second blue line on every title) */
.news-list a { border-top: 0 !important; padding-top: 0 !important; }
/* 2. 이번 주: the first section starts on the same step as its sibling tabs (was 56px, siblings 8px) */
@media (max-width: 760px) { main.is-inner > .page-head + section#sermon.sec { padding-top: 8px !important; } }
@media (min-width: 761px) { main.is-inner > .page-head + section#sermon.sec { padding-top: 32px !important; } }   /* same step as 예배 안내 and 헌금 안내 (review 2026-11-23) */
/* 3. 선교: the map switch keeps the 16px page margin inside the full-bleed map */
@media (max-width: 900px) { .nations-map .map-modes { margin-inline: var(--margin) !important; width: auto !important; } }
/* 4. 큐티: 본문 + six steps in one row on phones, the rule under them on the page margin */
@media (max-width: 1100px) {
  .qtp-index ol { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; }
  .qtp-index ol::-webkit-scrollbar { display: none; }
  .qtp-index ol li { flex: 1 0 44px; }
}
/* 5. 섬기는 분들 on phones: role 13 · name 17 · duties 15 (the name leads); lead pastor's name 20 */
@media (max-width: 760px) {
  .staff .st-grid .st-role { font-size: 13px !important; line-height: 1.4 !important; }
  .staff .st-grid h3 { font-size: 17px !important; line-height: 1.4 !important; }
  .staff .st-grid .st-work { font-size: 15px !important; line-height: 1.5 !important; }
  .staff .st-lead h3, .staff .st-head h3 { font-size: 20px !important; }
  .staff .st-lead .st-role, .staff .st-head .st-role { font-size: 13px !important; }
}
/* 6. 섬기는 분들 on desktop: every card hangs from one top line */
.staff .st-grid > li { align-items: start !important; }
/* 7. film edge print never breaks across lines (900번째 at 768) */
.dawnstrip .frame figcaption, .dawnstrip .frame figcaption * { white-space: nowrap !important; }
/* 9. 앨범: no empty band between the filters and the first year (the year rail is empty under 전체) */
.album-line:empty, .album-line:not(:has(li:not([hidden]))) { display: none !important; }
.al-yearbar { margin-top: 24px !important; }
/* 11. tablet 메뉴: the label sits on the pill's centre */
.menu-btn { align-items: center !important; justify-content: center !important; }
/* 12. 걸어온 길: years not yet reached are the navy ink at reduced strength (no second, warm ink); 20px on phones */
@media (max-width: 760px) {   /* phones only: on desktop the timeline darkens like a theatre and keeps its own light text */
  .tl-list li:not(.on):not(.past) b { color: rgba(11, 36, 71, .72) !important; }   /* 5.6:1 on sand */
  .tl-list li b { font-size: 20px !important; }
}

/* 산상기도 안내: the same label/value rows as the rest of the site — label left, words right, hairlines between rows;
   the four steps as a numbered run; the milestones as a quiet row of numbers (count over date) */
.mtn-guide { margin-top: 48px; }
.mtn-facts { margin: 0; border-top: 1px solid var(--ink); }
.mtn-facts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.mtn-facts dt { font: 600 15px/1.6 var(--sans); color: var(--night); }
.mtn-facts dd { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); }
.mtn-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mtn-steps li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.mtn-steps b { font: 600 15px/1.6 var(--sans); color: #9C5200; }
.mtn-miles { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.mtn-miles li { display: flex; flex-direction: column; }
.mtn-miles b { font: 300 36px/1.1 var(--sans); letter-spacing: -.02em; color: var(--night); }
.mtn-miles span { font: 400 13px/1.5 var(--sans); color: var(--ink-2); }
@media (max-width: 760px) {
  .mtn-guide { margin-top: 32px; }
  .mtn-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .mtn-facts dd { font-size: 15px; }
  .mtn-steps li { grid-template-columns: 72px minmax(0, 1fr); }
  .mtn-miles { gap: 12px 24px; }
  .mtn-miles b { font-size: 26px; }
}
/* 산상기도 안내 text keeps a reading measure */
.mtn-facts dd { max-width: 36em; }
/* 다섯 가지 훈련 (owner, 2026-11-23: "위치랑 폰트 사이즈"): the line sits directly under the title at a readable 17px,
   and the schedule note follows the five columns at the same 15px as their text */
#training .sh { display: block !important; }
#training .sh p { margin: 8px 0 0 !important; font: 400 17px/1.6 var(--sans) !important; color: var(--ink-2) !important; text-align: left !important; max-width: none; }
#training .train-note { margin: 24px 0 0 !important; font: 400 15px/1.6 var(--sans) !important; color: var(--ink-2) !important; }
/* no double dividers (owner, 2026-11-23): the board link under 교회 소식 sits under the last row's line, without its own */
.news-more a, #news .news-more a { border-top: 0 !important; }
/* one line, not two: a step's last writing line hands over to the next step's divider; the route list's first row
   sits under the map's own edge */
.qtp-ch:has(+ .qtp-ch) .qtp-write:last-child textarea, .qtp-ch:has(+ .qtp-ch) .qtp-qs li:last-child .qtp-write textarea { border-bottom-color: transparent !important; }
@media (max-width: 760px) { #route .route ol > li:first-child { border-top: 0 !important; box-shadow: none !important; } }

/* 장로 — one quiet text row under the staff grid (names only, as the 주보 prints them) */
.st-elders { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: 32px 0 0; font: 400 17px/1.5 var(--sans); color: var(--ink); }
.st-elders b { font: 700 13px/1.5 var(--sans); letter-spacing: .04em; color: var(--ink-2); }
@media (max-width: 760px) { .st-elders { margin-top: 24px; font-size: 15px; } }

/* 3D 목적지: 본당 · 패션하우스 · 미션하우스, the same segmented pill as the map modes */
.walk-to { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 var(--s2, 16px); border-radius: 100vmax; background: #EEEDE7; }
.walk-to a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 100vmax; color: var(--ink-2); font: 600 15px/1 var(--sans); text-decoration: none; transition: color .2s, background-color .2s, box-shadow .2s, scale .3s cubic-bezier(.34,1.56,.64,1); }
.walk-to a:hover { color: var(--ink); }
.walk-to a:active { scale: .96; }
.walk-to a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.walk-to a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,36,71,.14); }
.walk-sec.is-full .walk-to { display: none; }
@media (max-width: 760px) { .walk-to { display: flex; } .walk-to a { flex: 1; justify-content: center; padding: 0 8px; font-size: 15px; } }
li[data-leg][hidden] { display: none !important; }
/* five destinations on a narrow phone: three over two, so no name breaks; the tray corner is the scale step nearest the pill + gap (22 + 4) */
@media (max-width: 480px) { .walk-to { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 28px; } .walk-to a { white-space: nowrap; padding: 0 4px; grid-column: span 2; } .walk-to a:nth-child(n+4) { grid-column: span 3; } }

/* review 2026-11-23: a name sits on the same line as its row's other names even when a description wraps */
.st-grid li { grid-template-rows: auto auto 1fr; }

/* review 2026-11-23, 320px: no tab label runs past its button. The long 주중 예배 및 기도회 may take two short lines; the
   선교 switch drops a size; the 큐티 steps wrap to a second row instead of cutting 05 and hiding 06 */
@media (max-width: 359px) {
  .sc-tabs button { white-space: normal !important; line-height: 1.2 !important; padding-block: 4px !important; }
  .nations-map .map-modes button { font-size: 13px !important; padding-inline: 8px !important; }
  .qtp-index ol { flex-wrap: wrap !important; overflow-x: visible; }
}
/* a section head whose title is only for screen readers lets its line of text start at the left edge, not float alone on the right */
.sh:has(> h2.vh) > p { grid-column: 1 / -1 !important; }
/* small phones (review 2026-11-23): the cover title steps down with the walk's own ≤420px size, so the longest names
   (미션하우스까지, 델리아 강당까지) stay clear of the play button */
@media (max-width: 420px) { .walk-sec .walk .wc-title { font-size: 28px !important; } }
/* one line, not two (owner, 2026-11-23): the 큐티 card ends without its own faint rule; the next section's navy line marks the break */
.qtc.qtc-v2 { border-bottom: 0 !important; }
/* one line, not two (owner, 2026-11-23): a list's last rule is dropped where the next section's own line, or the footer,
   already marks the end — the 산상 guide's last row, the home times strip, the last 설교 in the archive */
.mtn-facts > div:last-child { border-bottom: 0; }
main .hm-times { border-bottom: 0 !important; }
#sermon .archive li:last-child { border-bottom: 0 !important; }
/* footer places (owner, 2026-11-23: "풋터 오토레이아웃… 깨지는거"): the addresses lay themselves out like auto-layout —
   two columns only where two whole addresses fit, otherwise one — so no address ever runs under 연락처 */
.footer .ft-places dl { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important; }
.footer .ft-cols > div { min-width: 0; }
/* the 홈 화면에 추가 pill and the contact lines keep one line: their columns take the width their content needs */
.footer .a2hs { white-space: nowrap; }
@media (min-width: 1101px) { .footer .ft-cols { grid-template-columns: minmax(0, 2fr) minmax(max-content, 1fr) minmax(max-content, .8fr) !important; } }
/* 오시는 길 steps on the home page (owner, 2026-11-23: "중심정렬… 아예 안되어 있다"): a true timeline. Each number sits on
   its title's first line (both 32px tall), one unbroken line runs circle-centre to circle-centre behind the numbers, and
   the dividers belong to the text column so they never cross that line */
.route-legend li, .route-legend li + li { padding: 0 !important; border-top: 0 !important; align-items: start; }
.route-legend li > div { padding: 16px 0; }
.route-legend li + li > div { border-top: 1px solid var(--rule); }
.route-legend i { position: relative; z-index: 1; margin-top: 16px; box-shadow: 0 0 0 4px var(--paper, #F7F6F2); }
.route-legend b { line-height: 32px !important; }
.route-legend span { margin-top: 0 !important; }
.route-legend li:not(:last-child)::after { left: 15px !important; top: 32px !important; bottom: -32px !important; width: 2px; opacity: .18; }
/* eye sweep 2026-11-23: the album year picker's chevron sits on the year's centre line, not up near its cap height */
.al-yearbar .yb-btn { align-items: center !important; }
/* eye sweep 2026-11-23: the last writing line already closes the steps, so the save/clear bar adds no second rule above it */
.qtp-done { border-top: 0 !important; }
/* eye sweep 2026-11-23: the play mark sits on the title's line (17px × 1.5 = 25.5px tall; the 18px mark is 4px down), not
   between the title and its byline */
.qtp-dawn { align-items: flex-start !important; }
.qtp-dawn svg { margin-top: 4px; }
/* 3D cover posters: framing now lives in the walk package (본당 and 비전하우스 stills re-rendered, 2026-11-23) */
/* times strip, room to breathe (owner, 2026-11-23: "여백 너무 없는거 아니냐"): a real 24px gutter between the eight columns,
   the times scale with the width (never wider than their column), and a long label wraps inside its own column instead of
   running into the next */
@media (min-width: 761px) {
  main .hm-times.hm-times.hm-times dl { column-gap: 24px !important; }
  main .hm-times.hm-times.hm-times dl > div, main .hm-times.hm-times.hm-times dl > div + div { padding: 0 !important; }
  main .hm-times.hm-times.hm-times dd { font-size: clamp(22px, 2.05vw, 32px) !important; }
  main .hm-times.hm-times.hm-times .tm-group dt { white-space: normal !important; }
}
/* photo viewer arrows (owner, 2026-11-23: "옆에 화살표 누를때 너무 크게"): the tall edge strip stays as an invisible place to tap,
   but what you see is one 48px circle around the arrow; site-wide pill hovers never shade or round the whole strip */
.lb2 .lb-prev, .lb2 .lb-next { background: none !important; border-radius: 0 !important; box-shadow: none !important; scale: none !important; outline-offset: -4px; }
.lb2 .lb-prev::before, .lb2 .lb-next::before { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); transition: background-color var(--spring-quick-dur) var(--spring-quick), scale var(--spring-snappy-dur) var(--spring-snappy); }
.lb2 .lb-prev svg, .lb2 .lb-next svg { position: relative; width: 24px !important; height: 24px !important; }
.lb2 .lb-prev:hover::before, .lb2 .lb-next:hover::before, .lb2 .lb-prev:focus-visible::before, .lb2 .lb-next:focus-visible::before { background: rgba(255, 255, 255, .18); }
.lb2 .lb-prev:active::before, .lb2 .lb-next:active::before { scale: .92; }
.lb2 .lb-prev:focus-visible, .lb2 .lb-next:focus-visible { outline: 0; }
.lb2 .lb-prev:focus-visible::before, .lb2 .lb-next:focus-visible::before { box-shadow: 0 0 0 2px var(--orange); }
.lb2 .lb-stage img.is-out { opacity: 1; scale: none; }   /* the old cross-fade class is retired: elim.js animates the turn */
@media (max-width: 760px) { .lb2 .lb-prev::before, .lb2 .lb-next::before { background: rgba(255, 255, 255, .14); } .lb2 .lb-prev, .lb2 .lb-next { background: none !important; } }
/* 큐티 card (owner, 2026-11-23: "쓸데없는 여백… 버튼이 머로 향하는지"): the date takes two columns and the words follow at once;
   the button leaves its lonely corner and sits under the words as a labelled pill, the book (and its page turn) at its head */
@media (min-width: 761px) {
  .qtc-v2 .qtc-day { grid-column: 1 / span 2 !important; }
  .qtc-v2 .qtc-body { grid-column: 3 / span 8 !important; }
}
.qtc-v2 .qtc-btn.qtc-book { position: static !important; display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; height: 48px !important;
  margin-top: 8px !important; padding: 0 20px 0 14px !important; border-radius: 100vmax !important; font-size: 0; }
.qtc-v2 .qtc-btn.qtc-book .qtc-btn-t { font: 600 15px/1 var(--sans); color: #fff; white-space: nowrap; letter-spacing: 0; }
@media (max-width: 760px) { .qtc-v2 .qtc-body { padding-right: 0 !important; } }
/* 산상기도 guide v2 (owner, 2026-11-23: "워딩도… 반말 같기도… 더 최선의 방법"): one polite voice throughout. A three-step flow
   (모임 → 오르는 길 → 기도) reads left to right on wide screens and top to bottom on phones, joined by one hairline; then a short
   함께하기 list. Facts only from the 주보 and the church's board. */
.mtn-guide .mtn-sub { margin: 0 0 16px; font: 700 15px/1.4 var(--sans); color: var(--night); }
.mtn-guide .mtn-sub + .mtn-facts { border-top: 1px solid var(--ink); }
.mtn-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 48px; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--ink); }
.mtn-flow li { display: grid; gap: 4px; align-content: start; }
.mtn-flow li > b { font: 500 26px/1.2 var(--sans); letter-spacing: -.01em; color: #9C5200; }
.mtn-flow li > strong { font: 700 17px/1.5 var(--sans); color: var(--night); }
.mtn-flow li > span { font: 400 15px/1.6 var(--sans); color: var(--ink-2); }
@media (max-width: 760px) {
  .mtn-flow { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; padding-top: 16px; }
  .mtn-flow li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 0; }
  .mtn-flow li > b { grid-row: 1 / span 2; font-size: 20px; }
}
/* 큐티 page end (whitespace sweep 2026-11-23): the save bar, the dawn link and the footer below already let the last step reach
   the middle of the screen, so the 40vh of blank room before the footer goes */
.qtp-text { padding-bottom: 48px !important; }
@media print { .qtp-text { padding-bottom: 0 !important; } }

/* 맨 위로: one quiet circle, bottom right (above the phone tab bar). It rises in on a spring after a screen and a half, and its
   thin ring fills with the reader's progress down the page. Navy on paper; white on the dark 걸어온 길 theatre. */
.to-top { position: fixed; z-index: var(--z-sticky); right: 24px; bottom: 24px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--night); cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 36, 71, .08), 0 8px 24px rgba(11, 36, 71, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; translate: 0 16px; scale: .9; pointer-events: none;
  transition: opacity .28s cubic-bezier(.22, 1, .36, 1), translate .44s cubic-bezier(.34, 1.4, .64, 1), scale .44s cubic-bezier(.34, 1.4, .64, 1), background-color .2s; }
.to-top.is-on { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.to-top svg { grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.to-top .tt-arrow { width: 20px; height: 20px; stroke-width: 1.75; transition: translate .3s cubic-bezier(.34, 1.4, .64, 1); }
.to-top .tt-ring { width: 48px; height: 48px; rotate: -90deg; stroke-width: 1.5; }
.to-top .tt-ring circle:first-child { stroke: rgba(11, 36, 71, .12); }
.to-top .tt-fill { stroke: var(--orange, #EF8306); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .12s linear; }
@media (hover: hover) { .to-top:hover { background: #fff; } .to-top:hover .tt-arrow { translate: 0 -2px; } }
.to-top:active { scale: .94; }
.to-top:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
html.theater .to-top { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
html.theater .to-top .tt-ring circle:first-child { stroke: rgba(255, 255, 255, .2); }
html.walk-full .to-top, html:has(.lb2[open]) .to-top, html:has(dialog[open]) .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .to-top { right: 16px; bottom: calc(12px + 52px + 12px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; translate: none; scale: none; } .to-top .tt-fill { transition: none; } }
@media print { .to-top { display: none !important; } }

/* album tiles while their photos travel: a warm paper tile with one slow light passing over it (no spinner, no blank boxes);
   the photo fades in over it when it arrives. Reduced motion keeps the tile still. */
.al-grid .ph-open { background: #ECE8E0; position: relative; }
.al-grid .ph-open::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: al-shimmer 1.6s ease-in-out infinite; transition: opacity .3s; }
.al-grid .ph-open img { position: relative; z-index: 1; opacity: 0; transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform var(--spring-smooth-dur) var(--spring-smooth); }
.al-grid .ph-open img.is-loaded { opacity: 1; }
.al-grid .ph-open:has(img.is-loaded)::before, .al-grid .ph-open:has(img.is-failed)::before { opacity: 0; animation: none; }
@keyframes al-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .al-grid .ph-open::before { animation: none; } .al-grid .ph-open img { transition: none; } }
html:not(.js) .al-grid .ph-open img { opacity: 1; }
/* 큐티 card, wide screens (owner, 2026-11-23: "여백이 너무 많다"): one band across the full width instead of a narrow column with
   an empty right half. Date | title, passage | the summary beside them | the button at the right edge, all on one middle line. */
@media (min-width: 1181px) {
  .qtc-v2 .qtc-body { grid-column: 3 / -1 !important; display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
    grid-template-areas: "k p btn" "t p btn" "ref p btn"; column-gap: 48px; row-gap: 8px; align-items: center; }
  .qtc-v2 .qtc-k { grid-area: k; } .qtc-v2 .qtc-t { grid-area: t; } .qtc-v2 .qtc-ref { grid-area: ref; }
  .qtc-v2 .qtc-p { grid-area: p; max-width: none; align-self: center; }
  .qtc-v2 .qtc-btn.qtc-book { grid-area: btn; margin-top: 0 !important; align-self: center; }
  .hm-qt .qtc.qtc-v2 { align-items: center !important; }
}
@media (min-width: 1181px) {
  .qtc-v2 .qtc-body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto !important; }
  .qtc-v2 .qtc-t { font-size: clamp(28px, 2.2vw, 36px) !important; word-break: keep-all; text-wrap: balance; }
}
/* 큐티 band on the page's 12-column grid (owner, 2026-11-23: "비율에 맞게"): date 1–2 · title and passage 3–7 · summary 8–10 ·
   button 11–12 flush right; the body's own box steps aside (display: contents) so each part sits on the same columns as the
   sections around it */
@media (min-width: 1181px) {
  .hm-qt .qtc.qtc-v2 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; column-gap: 24px !important; row-gap: 8px !important; align-items: center !important; }
  .qtc-v2 .qtc-day { grid-column: 1 / span 2 !important; grid-row: 1 / span 3; align-self: center; }
  .qtc-v2 .qtc-body { display: contents !important; }
  .qtc-v2 .qtc-k { grid-column: 3 / span 5; grid-row: 1; align-self: end; }
  .qtc-v2 .qtc-t { grid-column: 3 / span 5; grid-row: 2; }
  .qtc-v2 .qtc-ref { grid-column: 3 / span 5; grid-row: 3; align-self: start; justify-self: start; }
  .qtc-v2 .qtc-p { grid-column: 8 / span 3; grid-row: 1 / span 3; align-self: center; }
  .qtc-v2 .qtc-btn.qtc-book { grid-column: 11 / span 2; grid-row: 1 / span 3; justify-self: end; align-self: center; }
}
@media (min-width: 1181px) and (max-width: 1440px) {
  .qtc-v2 .qtc-p { grid-column: 8 / span 2 !important; }
  .qtc-v2 .qtc-btn.qtc-book { grid-column: 10 / span 3 !important; }
}
/* review 2026-11-23: a phone number is dialled, not followed, so it carries no link arrow */
.link[href^="tel:"]::after { content: none !important; display: none !important; }
/* 큐티 지우기, armed: the second press clears; the button says so in words and in warm ink */
.qtp-clear.is-armed { color: #9C5200 !important; }
/* album "N개 더 보기": one phrase on a pill, like the site's other buttons */
.al-rest { border-radius: 100vmax !important; }
/* review 2026-11-23: home 오시는 길 — the heading sits on its content like the other home sections (was 93px above the map,
   against 37–45px elsewhere); 헌금 — the copy button keeps the value on its label's line */
@media (min-width: 901px) {
  .hm-route .route-home { row-gap: 32px !important; }
  .hm-route .route-home > .hm-head { align-self: end; margin-bottom: 0 !important; }
}
.offering .of-main dd .of-copy { align-self: center; }
/* 헌금: a row with a copy button reads on one baseline (label, value), the button centred on that line */
.offering dl > div:has(.of-copy) { align-items: baseline !important; }
.offering dd:has(.of-copy) { align-items: baseline !important; }
/* 지도로 보기: the address sits under its heading, on the map's left edge (it floated at x 732, on neither the map nor the steps) */
#route > .sh > p { grid-column: 1 / -1 !important; }

/* a section head that holds only a screen-reader title collapses completely: no rule, no space (it kept its navy line above
   the next block's own line on 교회 소개) */
.sh:has(> h2.vh:only-child) { border: 0 !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; box-shadow: none !important; }
.sh:has(> h2.vh:only-child)::before, .sh:has(> h2.vh:only-child)::after { content: none !important; }

/* 보안 연결 (owner, 2026-11-23: "내적으로만 알고 디테일하게 숨겨서"): a small detail in the policy row — a keyline shield and two words
   at the links' size; the full sentence waits in a small designed tooltip on hover or keyboard focus. A true statement only. */
.ft-secure { position: relative; display: inline-flex; align-items: center; gap: 4px; color: #C9D2DE; cursor: default; outline: none; }
.ft-secure svg { width: 16px; height: 16px; fill: none; stroke: #F2C9A0; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ft-secure-t { position: absolute; left: 50%; bottom: calc(100% + 12px); width: max-content; max-width: calc(100vw - 32px); white-space: nowrap; padding: 8px 12px; border-radius: 8px;
  background: #fff; color: var(--night); font: 400 13px/1.5 var(--sans); box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  opacity: 0; translate: -50% 4px; pointer-events: none; transition: opacity .2s, translate .3s cubic-bezier(.22, 1, .36, 1); }
.ft-secure:hover .ft-secure-t, .ft-secure:focus-visible .ft-secure-t { opacity: 1; translate: -50% 0; }
.ft-secure:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 8px; }
/* 주보 viewer: the album viewer (lb2) with a reading mode. The whole page fits first (zoom-in cursor); a tap widens it to reading
   width and the page scrolls inside the stage (zoom-out cursor). The spread's pages show they open (zoom-in cursor, lift). */
.jv .lb-stage img { cursor: zoom-in; background: #fff; }
.jv.is-zoom .lb-stage { overflow: auto; place-items: start center; overscroll-behavior: contain; }
.jv.is-zoom .lb-stage img { max-height: none; width: min(100%, 1100px); cursor: zoom-out; }
.jubo-page a { display: block; cursor: zoom-in; }
@media (hover: hover) { .jubo-page a img { transition: translate .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s; } .jubo-page a:hover img { translate: 0 -2px; box-shadow: 0 12px 32px rgba(11, 36, 71, .14); } }
.jubo-page a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.jv .lb-stage img { max-height: calc(100dvh - 96px); width: auto; }
@media (max-width: 760px) { .jv .lb-stage img { max-height: calc(100dvh - 80px); } }
.jv.is-zoom .lb-stage { place-items: start; }
.jv.is-zoom .lb-stage img { max-height: none !important; max-width: none !important; width: max(100%, min(1100px, 240vw)) !important; margin-inline: auto; }
/* hero photo strip (owner, 2026-11-23: one segment per photo, and tapping one goes to it): the segments keep their 4px gaps; the
   strip carries an invisible 44px tap band, and on hover the segments thicken a little to say they can be chosen */
.hm-hero .cover-ticks { cursor: pointer; outline: none; }
.hm-hero .cover-ticks::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; bottom: -21px; }
.hm-hero .cover-ticks .cov-seg { transition: transform .25s cubic-bezier(.22, 1, .36, 1); transform-origin: center; }
@media (hover: hover) { .hm-hero .cover-ticks:hover .cov-seg { transform: scaleY(2); } }
.hm-hero .cover-ticks:focus-visible { outline: 2px solid var(--orange); outline-offset: 12px; border-radius: 8px; }
/* 예배 안내 rows (review 2026-11-23: each venue sat ~550px from its service): three aligned columns on the page — time, service,
   venue — with the venue starting right after the service column, read left to right */
@media (min-width: 761px) {
  .sc-list:not(.sc-school) li { grid-template-columns: 9.5em minmax(0, 22em) minmax(0, 1fr) !important; }
  .sc-list:not(.sc-school) .sc-p { text-align: left !important; }
}
/* the route's steps: only the chosen destination's rows show (the others carry hidden) */
#route ol li[hidden] { display: none !important; }
/* 큐티 card (owner, 2026-11-24: "이런거 굳이 필요없을듯"): no summary preview; the title and passage say what today's 큐티 is.
   Wide screens: date 1–2 · title and passage 3–9 · button 10–12, flush right */
.qtc-v2 .qtc-p { display: none !important; }
@media (min-width: 1181px) {
  .qtc-v2 .qtc-k, .qtc-v2 .qtc-t, .qtc-v2 .qtc-ref { grid-column: 3 / span 7 !important; }
  .qtc-v2 .qtc-btn.qtc-book { grid-column: 10 / span 3 !important; }
}

/* one rhythm (owner, 2026-11-24: "스페이싱… 그리딩 인덱싱 다 맞춰서"). Measured on every page, then evened out:
   - a section's last content sits 104px (phones 64px) above the next section or the footer — no extra margins at the end
   - sub-blocks inside a section (교회 소개) are 64px apart (phones 40px), the first one starts on the section's own top
   (교회 소개 was 193px, 오시는 길 154px, 소식 168px and 큐티 152px before this) */
#intro > .ab-scene:first-child, #intro > :first-child { margin-top: 0 !important; }
#intro .in-bonds { margin-top: var(--s5) !important; }
@media (max-width: 760px) { #intro .in-bonds { margin-top: var(--s5) !important; } }   /* the same token as its sibling blocks */
.news-more { margin-bottom: 0 !important; }
.qtp-text { padding-bottom: 0 !important; }
.walk-sec .walk-root { padding-bottom: 0 !important; }
#intro > .sh + .ab-scene, #intro > .sh + * { margin-top: 0 !important; }
/* album photo grid on the page's 24px gutter (desktop), so its columns land on the same lines as the headings above
   (the third column sat 6px off the half line with a 12px gutter) */
@media (min-width: 1025px) { .al-grid { column-gap: 24px !important; row-gap: 24px !important; } }
