:root {
  --church-ink: #11110f;
  --church-paper: #f3f1eb;
  --church-surface: #fbfaf6;
  --church-white: #ffffff;
  --church-muted: #686961;
  --church-line: rgba(17, 17, 15, .16);
  --church-accent: #d4ff37;
  --church-danger: #b52f2f;
  --church-serif: Georgia, 'Times New Roman', serif;
  --church-sans: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
  --church-content: 1120px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body.church-page {
  min-width: 320px;
  background: var(--church-paper);
  color: var(--church-ink);
  font-family: var(--church-sans);
  font-size: 16px;
  line-height: 1.6;
}
body.church-page *, body.church-page *::before, body.church-page *::after { box-sizing: border-box; }
body.church-page a { color: inherit; }
body.church-page :focus-visible { outline: 3px solid var(--church-accent); outline-offset: 3px; }
body.church-page :where(h1, h2, h3, p, li, dt, dd, label, summary, .title, .card-title, .section-title, .item-title) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.church-page :where(.card, .row, .info, .card-body, .item, .item-main, .room-left, .room-meta, .user-info, .member-left) > * { min-width: 0; }
body.church-page img, body.church-page video, body.church-page iframe { max-width: 100%; }

body.church-page .app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  min-height: 76px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(17, 17, 15, .68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
body.church-page .header-left { min-width: 0; display: flex; align-items: center; cursor: pointer; }
body.church-page .app-logo { width: 176px; max-width: 44vw; height: auto; object-fit: contain; filter: none; }
body.church-page .header-right { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: rgba(255,255,255,.76); font-size: .84rem; }
body.church-page .auth-row, body.church-page .bgm-row { display: flex; align-items: center; gap: 8px; }
body.church-page #bgmToggleBtn {
  min-width: 36px; min-height: 36px; padding: 0;
  border: 1px solid rgba(255,255,255,.42); border-radius: 50%;
  background: transparent; color: var(--church-white); cursor: pointer;
}
body.church-page .app-header .auth-row a { color: var(--church-white) !important; }
body.church-page .app-header .auth-row button { color: var(--church-white) !important; border-color: rgba(255,255,255,.42) !important; }
body.church-page .main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
body.church-page .main-nav a { color: var(--church-white); text-decoration: none; font-size: .88rem; font-weight: 750; white-space: nowrap; }
body.church-page .main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

body.church-page .page-title-wrap,
body.church-page .page-title-bar {
  width: min(100% - 40px, var(--church-content));
  margin: 58px auto 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--church-line);
  text-align: left;
}
body.church-page .page-title,
body.church-page .page-title-bar h2,
body.church-page main > h2,
body.church-page .container > h2,
body.church-page .page > h2 {
  margin: 0;
  color: var(--church-ink);
  font-family: var(--church-serif);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.06em;
}
body.church-page .page-desc,
body.church-page .desc,
body.church-page .muted,
body.church-page .hint { color: var(--church-muted); }

body.church-page .wrap,
body.church-page .container,
body.church-page .page,
body.church-page main {
  width: min(100% - 40px, var(--church-content));
  max-width: var(--church-content);
  margin-left: auto;
  margin-right: auto;
}
body.church-page .card,
body.church-page .section,
body.church-page .box,
body.church-page form {
  border: 1px solid var(--church-line);
  border-radius: 0;
  background: var(--church-surface);
  box-shadow: none;
}
body.church-page button,
body.church-page input,
body.church-page textarea,
body.church-page select { font: inherit; }
body.church-page input,
body.church-page textarea,
body.church-page select {
  min-height: 46px;
  border: 1px solid var(--church-line);
  border-radius: 0;
  background: var(--church-white);
  color: var(--church-ink);
}
body.church-page textarea { min-height: 112px; }
body.church-page button {
  min-height: 44px;
  border-radius: 0;
  font-weight: 750;
}
body.church-page table { border-collapse: collapse; background: var(--church-surface); color: var(--church-ink); }
body.church-page th { background: var(--church-ink); color: var(--church-white); }
body.church-page th, body.church-page td { border-color: var(--church-line); padding: 14px; }
body.church-page .back,
body.church-page .back-link,
body.church-page .footer-links { color: var(--church-muted); }

/* Home */
body.home-page { margin: 0; width: 100%; max-width: none; overflow-x: clip; background: var(--church-paper); }
body.home-page .hero {
  position: relative; width: 100vw; max-width: none; align-self: stretch;
  min-height: 720px; height: min(100svh, 920px); margin: 0;
  display: flex; align-items: flex-end; overflow: hidden;
  background: #242620; color: var(--church-white);
}
body.home-page .hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/static/hero-sanctuary-edited.png') center 42% / cover no-repeat;
  transform: scale(1.01);
}
body.home-page .hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,8,.02) 0 36%, rgba(10,10,8,.16) 56%, rgba(10,10,8,.4) 100%),
    linear-gradient(180deg, rgba(10,10,8,.18), rgba(10,10,8,.01) 38%, rgba(10,10,8,.5));
}
body.home-page .hero-content {
  position: relative; z-index: 1; width: min(100%, 1440px); margin: 0 auto;
  padding: 160px clamp(20px, 5vw, 76px) clamp(48px, 8vh, 84px) clamp(20px, 40vw, 590px);
}
body.home-page .eyebrow { display: none; }
body.home-page .hero h1 {
  margin: 0; max-width: 760px; font-family: var(--church-serif);
  font-size: clamp(3.7rem, 7.8vw, 7.6rem); line-height: .84; letter-spacing: -.065em; font-weight: 500;
}
body.home-page .hero-message { max-width: 560px; margin: 24px 0 0; font-size: clamp(1.12rem, 1.7vw, 1.55rem); font-weight: 650; letter-spacing: -.04em; }
body.home-page .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
body.home-page .button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid rgba(255,255,255,.72); color: var(--church-white);
  text-decoration: none; font-weight: 800; font-size: .92rem;
}
body.home-page .button.primary { background: var(--church-accent); border-color: var(--church-accent); color: var(--church-ink); }
body.home-page .button.secondary { background: rgba(12,12,10,.28); border-color: rgba(255,255,255,.46); backdrop-filter: blur(8px); }
body.home-page .button:hover { transform: translateY(-2px); }
body.home-page .page-wrap { width: 100%; max-width: none; margin: 0; align-self: stretch; overflow: hidden; }
body.home-page .intro-strip {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 76px); max-width: 1440px; margin: 0 auto;
}
body.home-page .section-label { margin: 0; font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
body.home-page .intro-copy {
  margin: 0; font-family: var(--church-serif); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 4.7rem); line-height: 1.05; letter-spacing: -.055em;
}
body.home-page .service-countdown { border-top: 1px solid var(--church-line); padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 76px); }
body.home-page .service-countdown-inner { width: min(100%, 1290px); margin: 0 auto; }
body.home-page .service-countdown-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); gap: clamp(48px, 6vw, 96px); margin-top: 42px; }
body.home-page .service-countdown h2 {
  margin: 0; font-family: var(--church-serif); font-size: clamp(3.5rem, 6.6vw, 6rem);
  line-height: .84; letter-spacing: -.07em; font-weight: 500; white-space: nowrap;
}
body.home-page .service-countdown-info { align-self: end; }
body.home-page .next-service-label { margin: 0 0 6px; color: var(--church-muted); font-size: .9rem; font-weight: 750; }
body.home-page .next-service-time { margin: 0 0 44px; font-family: var(--church-serif); font-size: clamp(2.5rem, 3.6vw, 4rem); line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
body.home-page .service-time-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid var(--church-ink); border-bottom: 1px solid var(--church-line); font-weight: 750; }
body.home-page .service-time-row strong { font-family: var(--church-serif); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -.04em; }
body.home-page .visit-flow {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  background: var(--church-ink);
  color: var(--church-white);
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 76px);
  box-shadow: 0 0 0 100vmax var(--church-ink);
  clip-path: inset(0 -100vmax);
}
body.home-page .visit-inner { max-width: 1290px; margin: 0 auto; }
body.home-page .visit-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
body.home-page .visit-heading h2 {
  margin: 0; font-family: var(--church-serif); font-size: clamp(3rem, 7vw, 7rem);
  line-height: .88; letter-spacing: -.065em; font-weight: 500;
}
body.home-page .visit-heading p { max-width: 380px; margin: 0; color: #b7b7af; line-height: 1.7; }
body.home-page .tiles { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: none; padding: 0; margin: 0; gap: 0; border-top: 1px solid rgba(255,255,255,.24); }
body.home-page .tile {
  min-height: 280px; height: auto; padding: 28px; display: flex; flex-direction: column;
  align-items: stretch; justify-content: space-between; border: 0; border-radius: 0;
  border-right: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24);
  background: transparent !important; color: var(--church-white); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
body.home-page .tile:nth-child(3n) { border-right: 0; }
body.home-page .tile:hover { transform: none; box-shadow: none; background: var(--church-accent) !important; color: var(--church-ink); }
body.home-page .tile-index { font-family: var(--church-serif); font-size: 1rem; }
body.home-page .tile-title { font-size: clamp(1.8rem, 2.8vw, 3rem); font-weight: 800; letter-spacing: -.055em; }
body.home-page .tile-link { font-size: .88rem; font-weight: 800; }
body.home-page .tile-admin-strip {
  display: none; grid-column: 1 / -1; min-height: 72px; padding: 18px 28px;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.24); border-radius: 0;
  background: transparent; color: var(--church-white); box-shadow: none; cursor: pointer;
  flex-direction: row; justify-content: space-between; align-items: center;
}
body.home-page .admin-main { font-weight: 800; }
body.home-page .admin-sub { color: #aaa; font-size: .86rem; }
body.home-page .daily {
  max-width: 1440px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 76px);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px;
}
body.home-page #todayVerse, body.home-page #oneNotice {
  margin: 0; width: 100%; max-width: none; min-height: 220px; padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--church-line); border-radius: 0; background: transparent;
  color: var(--church-ink); box-shadow: none; font-size: 1rem; line-height: 1.75;
}
body.home-page #todayVerse-title, body.home-page #oneNotice-title {
  display: block; margin: 0 0 26px; color: var(--church-ink);
  font-size: .78rem; font-weight: 900; letter-spacing: .13em;
}
body.home-page #todayVerse-ref { margin-top: 18px; color: var(--church-muted); font-size: .9rem; }
body.home-page #oneNotice { color: var(--church-muted); }
body.home-page .site-footer {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 32px clamp(20px, 5vw, 76px); border-top: 1px solid var(--church-line);
  font-size: .85rem; color: var(--church-muted);
}

/* Content and utility pages */
body.content-page .wrap { padding: 0 0 56px; }
body.content-page .content-hero { margin: 28px 0 0; position: relative; min-height: 480px; overflow: hidden; background: #222; color: white; }
body.content-page .content-hero img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 16%; filter: brightness(.64); }
body.content-page .content-hero-copy { position: relative; z-index: 1; min-height: 480px; padding: clamp(28px, 6vw, 68px); display: flex; flex-direction: column; justify-content: flex-end; }
body.content-page .content-hero h1 { margin: 0; font-family: var(--church-serif); font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: .88; letter-spacing: -.065em; font-weight: 500; }
body.content-page .content-hero p { margin: 20px 0 0; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 650; }
body.content-page .section { margin-top: 18px; padding: clamp(24px, 4vw, 42px); }
body.content-page .section-title { color: var(--church-ink); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
body.content-page .time-row { padding: 16px 0; border-color: var(--church-line); font-size: 1.05rem; }
body.content-page .time-label { color: var(--church-muted); }
body.content-page .map-box { border-color: var(--church-line); border-radius: 0; }
body.content-page .contact-info { color: var(--church-ink); }
body.content-page .contact-info b { color: var(--church-muted); }

/* About */
body.about-page {
  display: block;
  margin: 0;
  width: 100%;
  max-width: none;
  overflow-x: clip;
}
body.about-page .wrap { width: 100%; max-width: none; margin: 0; padding: 0 0 56px; }
body.about-page .content-hero { width: 100%; min-height: 680px; margin: 0; border-radius: 0; }
body.about-page .content-hero img { object-position: center; }
body.about-page .content-hero-copy {
  width: min(100%, 1380px); min-height: 680px; margin: 0 auto;
  padding: 180px clamp(20px, 5vw, 76px) 72px;
}
body.about-page .identity-section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 20px;
  background:
    radial-gradient(circle at 82% 8%, rgba(111, 72, 35, .2), transparent 34%),
    #0d0d0b;
  color: var(--church-white);
}
body.about-page .identity-inner { width: min(100%, 1240px); margin: 0 auto; }
body.about-page .identity-kicker {
  margin: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.about-page .identity-kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--church-accent); }
body.about-page .identity-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  align-items: end;
  gap: clamp(36px, 7vw, 96px);
}
body.about-page .identity-heading-row h2 {
  margin: 0;
  font-family: var(--church-serif);
  font-size: clamp(4rem, 8.2vw, 8.1rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.07em;
}
body.about-page .identity-heading-row h2 em { color: var(--church-accent); font-style: normal; }
body.about-page .identity-intro { margin: 0 0 8px; color: rgba(255,255,255,.66); font-size: 1rem; line-height: 1.8; }
body.about-page .identity-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid rgba(255,255,255,.24);
  border-bottom: 1px solid rgba(255,255,255,.24);
}
body.about-page .identity-card {
  min-height: 310px;
  padding: 30px clamp(24px, 3vw, 40px) 38px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.24);
}
body.about-page .identity-card:last-child { border-right: 0; }
body.about-page .identity-number { color: rgba(255,255,255,.52); font-size: .78rem; font-weight: 750; }
body.about-page .identity-card h3 {
  margin: auto 0 18px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
body.about-page .identity-card p { margin: 0; color: rgba(255,255,255,.68); font-size: 1rem; line-height: 1.75; }
body.about-page .channels-section {
  padding: clamp(72px, 9vw, 124px) 20px;
  background: var(--church-paper);
  color: var(--church-ink);
}
body.about-page .channels-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1.1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
body.about-page .channels-kicker {
  margin: 0 0 22px;
  color: var(--church-muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.about-page .channels-heading h2 {
  margin: 0;
  font-family: var(--church-serif);
  font-size: clamp(3.6rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.065em;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body.home-page .service-countdown-grid,
  body.about-page .channels-inner { grid-template-columns: 1fr; }

  body.home-page .service-countdown-grid { gap: 48px; }
  body.about-page .channels-inner { gap: 48px; }
}
body.about-page .channel-list { border-top: 1px solid var(--church-ink); }
body.about-page .channel-link {
  min-height: 104px;
  padding: 20px 4px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--church-line);
  color: var(--church-ink);
  text-decoration: none;
  transition: color .2s ease, padding .2s ease, background .2s ease;
}
body.about-page .channel-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: -.02em;
}
body.about-page .channel-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.about-page .channel-copy strong { font-size: 1.16rem; font-weight: 800; }
body.about-page .channel-copy small {
  overflow: hidden;
  color: var(--church-muted);
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.about-page .channel-arrow { justify-self: end; font-size: 1.4rem; transition: transform .2s ease; }
body.about-page .channel-link:hover,
body.about-page .channel-link:focus-visible { padding-left: 14px; background: var(--church-white); }
body.about-page .channel-instagram:hover .channel-mark { color: #c62d69; }
body.about-page .channel-youtube:hover .channel-mark { color: #e52424; }
body.about-page .channel-naver:hover .channel-mark { color: #03a64a; }
body.about-page .channel-link:hover .channel-arrow { transform: translate(3px, -3px); }
body.about-page .section {
  width: 100%; margin: 0; padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 92px);
  padding-left: max(20px, calc((100vw - 1240px) / 2)); padding-right: max(20px, calc((100vw - 1240px) / 2));
  border-left: 0; border-right: 0; border-top: 0; border-radius: 0; background: transparent;
}
body.about-page .section + .section { background: var(--church-surface); border-top: 1px solid var(--church-line); }
body.about-page .back { margin-left: max(20px, calc((100vw - 1240px) / 2)); }

/* First visit */
body.visit-page { margin: 0; width: 100%; max-width: none; overflow-x: clip; background: var(--church-paper); }
body.visit-page main { width: 100%; max-width: none; margin: 0; }
body.visit-page .visit-hero { min-height: 680px; display: flex; align-items: flex-end; position: relative; overflow: hidden; color: white; }
body.visit-page .visit-hero::before { content: ''; position: absolute; inset: 0; background: url('/static/hero-sanctuary-edited.png') center / cover no-repeat; transform: scale(1.01); }
body.visit-page .visit-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,7,.22), rgba(8,8,7,.68)); }
body.visit-page .visit-hero-copy { position: relative; z-index: 1; width: min(100% - 40px, 1240px); margin: 0 auto; padding: 180px 0 72px; }
body.visit-page .visit-kicker { margin: 0 0 18px; font-size: .8rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
body.visit-page .visit-hero h1 { margin: 0; font-family: var(--church-serif); font-size: clamp(4rem, 9vw, 9rem); line-height: .86; letter-spacing: -.07em; font-weight: 500; }
body.visit-page .visit-hero-copy > p:last-child { margin: 26px 0 0; max-width: 680px; font-size: clamp(1.05rem, 1.7vw, 1.4rem); }
body.visit-page .visit-section { padding: clamp(72px, 9vw, 124px) 20px; border-bottom: 1px solid var(--church-line); }
body.visit-page .visit-section.dark { background: var(--church-ink); color: white; }
body.visit-page .visit-section-inner { width: min(100%, 1240px); margin: 0 auto; }
body.visit-page .visit-section-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(48px, 9vw, 120px); margin-top: 40px; }
body.visit-page .visit-section h2 { margin: 0; font-family: var(--church-serif); font-size: clamp(3.5rem, 7vw, 7rem); line-height: .88; letter-spacing: -.065em; font-weight: 500; }
body.visit-page .visit-lead { margin: 0; color: var(--church-muted); font-size: 1.08rem; line-height: 1.85; }
body.visit-page .dark .visit-lead { color: #b9b9b2; }
body.visit-page .visit-facts { margin-top: 42px; border-top: 1px solid currentColor; }
body.visit-page .visit-fact { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--church-line); }
body.visit-page .dark .visit-fact { border-color: rgba(255,255,255,.2); }
body.visit-page .visit-fact span { color: var(--church-muted); font-size: .86rem; font-weight: 800; }
body.visit-page .dark .visit-fact span { color: #9d9d96; }
body.visit-page .visit-fact strong { min-width: 0; font-family: var(--church-serif); font-size: clamp(1.35rem, 2.35vw, 2.25rem); font-weight: 500; line-height: 1.25; }
body.visit-page .visit-address strong { display: flex; flex-direction: column; gap: 5px; font-size: clamp(1.2rem, 2vw, 1.85rem); }
body.visit-page .visit-address strong span { white-space: nowrap; }
body.visit-page .visit-countdown { margin: 0 0 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
body.visit-page .visit-countdown > span { color: var(--church-muted); font-family: var(--church-sans); font-size: .9rem; font-weight: 750; letter-spacing: 0; }
body.visit-page .visit-countdown > strong { max-width: 100%; font-family: var(--church-serif); font-size: clamp(1.35rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.055em; font-weight: 500; white-space: nowrap; }
body.visit-page .visit-map { min-height: 380px; position: relative; overflow: hidden; background: #ddd; }
body.visit-page .visit-map-frame { display: block; width: 100%; height: 380px; border: 0; background: #fff; }
body.visit-page .map-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #e7e5df; color: var(--church-muted); }
body.visit-page .map-loading[hidden] { display: none; }
body.visit-page .direction-links { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.3); }
body.visit-page .direction-links a {
  min-height: 68px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--church-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
body.visit-page .direction-links a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
body.visit-page .direction-links span { color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
body.visit-page .direction-links strong { font-size: clamp(.98rem, 1.7vw, 1.16rem); text-align: right; }
body.visit-page .visit-links { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-top: 1px solid rgba(255,255,255,.26); }
body.visit-page .visit-links a { min-height: 190px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.26); border-bottom: 1px solid rgba(255,255,255,.26); color: white; text-decoration: none; }
body.visit-page .visit-links a:last-child { border-right: 0; }
body.visit-page .visit-links strong { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.04em; }
body.visit-page .visit-faq-list { border-top: 1px solid var(--church-ink); }
body.visit-page .visit-faq { border-bottom: 1px solid var(--church-line); }
body.visit-page .visit-faq summary {
  min-height: 96px; padding: 24px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center; gap: 12px; cursor: pointer; list-style: none;
}
body.visit-page .visit-faq summary::-webkit-details-marker { display: none; }
body.visit-page .faq-number { color: var(--church-muted); font-size: .78rem; font-weight: 750; }
body.visit-page .faq-question { font-size: clamp(1.12rem, 2vw, 1.45rem); font-weight: 780; letter-spacing: -.025em; }
body.visit-page .faq-icon { width: 20px; height: 20px; position: relative; justify-self: end; }
body.visit-page .faq-icon::before, body.visit-page .faq-icon::after { content: ''; position: absolute; left: 0; top: 9px; width: 20px; height: 1px; background: currentColor; transition: transform .2s ease; }
body.visit-page .faq-icon::after { transform: rotate(90deg); }
body.visit-page .visit-faq[open] .faq-icon::after { transform: rotate(0deg); }
body.visit-page .faq-answer { padding: 0 44px 30px 54px; color: var(--church-muted); line-height: 1.8; }

body.list-page .list, body.list-page .feed { width: min(100% - 40px, var(--church-content)); max-width: var(--church-content); margin-left: auto; margin-right: auto; }
body.list-page .list .card, body.list-page .feed .post-card { margin-bottom: 16px; border: 1px solid var(--church-line); border-radius: 0; background: var(--church-surface); box-shadow: none; }
body.list-page .list .card { min-width: 0; }
body.list-page .list .info, body.list-page .list .card-body { min-width: 0; }
body.list-page .list .title, body.list-page .card-title { color: var(--church-ink); font-weight: 800; }
body.list-page .meta, body.list-page .card-meta, body.list-page .card-desc { color: var(--church-muted); }
body.list-page .fab { width: 58px; height: 58px; right: 24px; bottom: 24px; border-radius: 50%; background: var(--church-accent); color: var(--church-ink); box-shadow: 0 8px 24px rgba(0,0,0,.16); }

body.form-page { padding: 48px 20px; }
body.form-page > .card, body.form-page > .container, body.form-page > form, body.form-page > h2, body.form-page > .back {
  width: min(100%, 760px); max-width: 760px; margin-left: auto; margin-right: auto;
}
body.form-page > .card, body.form-page > .container { padding: clamp(24px, 5vw, 48px); }
body.form-page .logo-box img { width: min(220px, 70%); height: auto; }
body.form-page input, body.form-page select, body.form-page textarea { width: 100%; min-width: 0; }

body.admin-page > header, body.chat-page > header {
  min-height: 84px; padding: 18px clamp(20px, 4vw, 56px); background: var(--church-ink); color: white; border: 0;
}
body.admin-page > header { position: sticky; top: 0; z-index: 50; }
body.admin-page > header .title, body.chat-page > header .title { font-size: 1rem; font-weight: 800; }
body.admin-page > header img, body.chat-page > header img { filter: brightness(0) invert(1); }
body.admin-page main, body.admin-page .wrap, body.admin-page .container { margin-top: 48px; margin-bottom: 64px; }
body.admin-page .grid { gap: 1px; background: var(--church-line); border: 1px solid var(--church-line); }
body.admin-page .grid .card { margin: 0; padding: 26px; background: var(--church-surface); border: 0; }
body.admin-page .grid .card:hover { background: var(--church-accent); transform: none; }

@media (max-width: 820px) {
  body.church-page .main-nav { display: none; }
  body.church-page .app-header { min-height: 68px; padding: 12px 16px; gap: 12px; }
  body.church-page .app-logo { width: 148px; max-width: 42vw; }
  body.church-page .header-right { font-size: .78rem; }
  body.church-page #bgmTitle { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.church-page .page-title-wrap, body.church-page .page-title-bar { margin-top: 38px; }
  body.home-page .app-header { padding-top: 18px; }
  body.home-page .main-nav { display: none; }
  body.home-page .app-logo { width: 150px; }
  body.home-page .hero { min-height: 680px; }
  body.home-page .hero::before { background-position: 34% center; }
  body.home-page .hero-content { padding-left: 20px; }
  body.home-page .hero h1 { font-size: clamp(3.6rem, 16vw, 6.6rem); }
  body.home-page .intro-strip { grid-template-columns: 1fr; gap: 24px; }
  body.home-page .service-countdown-grid { grid-template-columns: 1fr; gap: 48px; }
  body.home-page .visit-heading { align-items: flex-start; flex-direction: column; }
  body.home-page .tiles { grid-template-columns: 1fr; }
  body.home-page .tile { min-height: 190px; border-right: 0; }
  body.home-page .daily { grid-template-columns: 1fr; }
  body.home-page .site-footer { flex-direction: column; }
  body.content-page .content-hero, body.content-page .content-hero-copy { min-height: 420px; }
  body.about-page .content-hero, body.about-page .content-hero-copy { min-height: 560px; }
  body.about-page .identity-heading-row { grid-template-columns: 1fr; gap: 28px; }
  body.about-page .identity-heading-row h2 { font-size: clamp(3.4rem, 15vw, 6rem); }
  body.about-page .identity-intro { max-width: 440px; }
  body.about-page .identity-cards { grid-template-columns: 1fr; }
  body.about-page .identity-card {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
  body.about-page .identity-card:last-child { border-bottom: 0; }
  body.about-page .channels-inner { grid-template-columns: 1fr; gap: 48px; }
  body.about-page .channels-heading h2 { font-size: clamp(3.25rem, 14vw, 5.7rem); }
  body.about-page .channel-link { min-height: 88px; }
  body.visit-page .visit-section-grid { grid-template-columns: 1fr; }
  body.visit-page .visit-links { grid-template-columns: 1fr; }
  body.visit-page .visit-links a { border-right: 0; }
}

@media (max-width: 680px) {
  body.church-page .wrap, body.church-page .container, body.church-page .page, body.church-page main { width: min(100% - 28px, var(--church-content)); }
  body.visit-page main, body.about-page .wrap { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
  body.church-page .page-title-wrap, body.church-page .page-title-bar,
  body.list-page .list, body.list-page .feed { width: calc(100% - 28px); }
  body.church-page table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.church-page .row { flex-wrap: wrap; }
  body.church-page .row > * { min-width: min(100%, 220px); }
  body.form-page > .card, body.form-page > .container { padding: 24px 18px; }
  body.admin-page .grid { grid-template-columns: 1fr; }
  body.admin-page .grid .card { min-height: 0; }
  body.visit-page .visit-fact { grid-template-columns: 1fr; gap: 6px; }
  body.visit-page .visit-fact > span { font-size: .78rem; }
  body.visit-page .visit-address strong { font-size: clamp(1.08rem, 5.2vw, 1.5rem); }
  body.visit-page .visit-faq summary { grid-template-columns: 30px minmax(0, 1fr) 24px; min-height: 82px; }
  body.visit-page .faq-answer { padding: 0 24px 26px 42px; }
}

@media (max-width: 520px) {
  body.church-page .app-header { min-height: 62px; padding: 10px 12px; }
  body.church-page .app-logo { width: 128px; max-width: 40vw; }
  body.church-page .auth-row > span { display: none; }
  body.church-page #bgmTitle { display: none; }
  body.church-page #bgmToggleBtn { min-width: 34px; min-height: 34px; }
  body.church-page .page-title, body.church-page .page-title-bar h2,
  body.church-page main > h2, body.church-page .container > h2, body.church-page .page > h2 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }
  body.list-page .list .card { align-items: stretch; }
  body.worship-page .list .card, body.sermon-page .list .card { flex-direction: column; }
  body.worship-page .list .thumb, body.sermon-page .list .thumb {
    width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0 0 12px; border-radius: 0;
  }
  body.bulletin-page .list .card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  body.bulletin-page .list .thumb { width: 92px; height: 124px; }
  body.gallery-page .comment-form { align-items: stretch; }
  body.gallery-page .comment-form input { min-width: 0; }
  body.upload-page .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.talk-list-page .search-wrap { align-items: stretch; }
  body.talk-list-page .room-item, body.talk-list-page .user-item { min-width: 0; }
  body.talk-list-page .room-right { flex-shrink: 0; }
  body.admin-page .item { align-items: flex-start; gap: 12px; }
  body.admin-page .btn-row { flex-wrap: wrap; }
  body.admin-page .btn-row button { flex: 1 1 140px; }
  body.church-page .header-right { align-items: flex-end; }
  body.church-page .auth-row span { display: none; }
  body.home-page .hero-actions .button { width: 100%; }
  body.home-page .admin-sub { display: none; }
  body.form-page { padding: 24px 14px; }
}

@media (max-width: 380px) {
  body.church-page .app-logo { width: 112px; }
  body.church-page .app-header { gap: 8px; }
  body.bulletin-page .list .card { grid-template-columns: 76px minmax(0, 1fr); }
  body.bulletin-page .list .thumb { width: 76px; height: 104px; }
  body.upload-page .preview-grid { grid-template-columns: 1fr; }
}

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

/* Admin data screens: keep legacy tools readable inside the shared light system. */
body.verses-admin-page,
body.worship-admin-page,
body.bulletin-admin-page,
body.sermon-admin-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  min-height: 100vh;
  padding: 0;
  background: var(--church-paper);
  color: var(--church-ink);
}

body.worship-admin-page > header:not(.site-header) { display: none; }

body.verses-admin-page > header:not(.site-header) {
  width: min(calc(100% - 40px), 1040px);
  max-width: 1040px;
  margin-top: 34px;
  padding: 0 0 20px;
}

body.verses-admin-page > header:not(.site-header) h2,
body.worship-admin-page .admin-page-heading,
body.bulletin-admin-page > .container > h2,
body.sermon-admin-page > .container > h2 {
  color: var(--church-ink);
  font-family: var(--church-serif);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
}

body.verses-admin-page > .container,
body.worship-admin-page > main {
  width: min(calc(100% - 40px), 1040px);
  max-width: 1040px;
  margin: 28px auto 72px;
  padding: 0;
}

body.bulletin-admin-page > .container,
body.sermon-admin-page > .container {
  width: min(calc(100% - 40px), 900px);
  max-width: 900px;
  margin: 48px auto 72px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--church-surface);
  color: var(--church-ink);
  border: 1px solid var(--church-line);
  border-radius: 0;
  box-shadow: none;
}

body.worship-admin-page .admin-page-heading { margin: 0 0 28px; }
body.bulletin-admin-page > .container > h2,
body.sermon-admin-page > .container > h2 { margin: 0 0 18px; }

body.verses-admin-page .card,
body.worship-admin-page form,
body.worship-admin-page .item,
body.sermon-admin-page .box {
  background: var(--church-surface);
  color: var(--church-ink);
  border: 1px solid var(--church-line);
  border-radius: 0;
  box-shadow: none;
}

body.verses-admin-page .card,
body.worship-admin-page form { padding: clamp(22px, 3vw, 32px); }

body.verses-admin-page label,
body.worship-admin-page label,
body.bulletin-admin-page label,
body.sermon-admin-page label,
body.verses-admin-page .verse-text,
body.worship-admin-page .item-title,
body.bulletin-admin-page #admin-bulletin-list,
body.sermon-admin-page .box-title {
  color: var(--church-ink);
}

body.verses-admin-page input,
body.verses-admin-page textarea,
body.worship-admin-page input,
body.bulletin-admin-page input,
body.sermon-admin-page input,
body.sermon-admin-page select {
  min-height: 48px;
  padding: 10px 12px;
  background: var(--church-white);
  color: var(--church-ink);
  border: 1px solid var(--church-line);
  border-radius: 0;
}

body.verses-admin-page textarea { min-height: 120px; }
body.bulletin-admin-page input[type="file"] { padding: 10px; }

body.verses-admin-page .verse-item {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--church-line);
}
body.verses-admin-page .verse-item:last-child { border-bottom: 0; }
body.verses-admin-page .verse-ref { color: #24517c; font-size: 1rem; }
body.verses-admin-page .verse-text { margin-top: 6px; line-height: 1.7; }
body.verses-admin-page .verse-meta,
body.worship-admin-page .item-sub,
body.worship-admin-page form > div,
body.bulletin-admin-page > .container > p,
body.sermon-admin-page > .container > p,
body.sermon-admin-page .hint { color: var(--church-muted) !important; }

body.worship-admin-page form { margin-bottom: 36px; }
body.worship-admin-page > main > h3 { margin-bottom: 14px !important; font-size: 1.15rem !important; }
body.worship-admin-page .item {
  gap: 24px;
  margin: 0 0 10px;
  padding: 18px 20px;
}
body.worship-admin-page .item-main { gap: 4px; min-width: 0; }
body.worship-admin-page .item-title { font-size: 1rem; }
body.worship-admin-page .item-url {
  color: #315d83;
  font-size: .82rem;
  overflow-wrap: anywhere;
}

body.bulletin-admin-page #admin-bulletin-list { font-size: .9rem !important; }
body.bulletin-admin-page .bulletin-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid var(--church-line);
}
body.bulletin-admin-page .bulletin-admin-item button { flex: 0 0 auto; margin: 0 !important; }

body.sermon-admin-page .box {
  margin: 24px 0;
  padding: 20px;
  background: #f1efe8;
}
body.sermon-admin-page .muted {
  background: transparent;
  color: var(--church-ink);
  border: 1px solid rgba(17,17,15,.42);
}
body.sermon-admin-page .muted:hover { background: rgba(17,17,15,.06); }

body.verses-admin-page button,
body.worship-admin-page button,
body.bulletin-admin-page button,
body.sermon-admin-page button { min-height: 44px; border-radius: 0; }

@media (max-width: 680px) {
  body.verses-admin-page > header:not(.site-header),
  body.verses-admin-page > .container,
  body.worship-admin-page > main,
  body.bulletin-admin-page > .container,
  body.sermon-admin-page > .container { width: calc(100% - 28px); }

  body.verses-admin-page > header:not(.site-header),
  body.worship-admin-page > main,
  body.bulletin-admin-page > .container,
  body.sermon-admin-page > .container { margin-top: 28px; }

  body.worship-admin-page .item,
  body.bulletin-admin-page .bulletin-admin-item { align-items: flex-start; }
}

/* Home, Visit, About: keep the sanctuary image identical below the shared header. */
body.home-page .hero,
body.visit-page .visit-hero,
body.about-page .content-hero {
  width: 100%;
  min-height: 680px;
  height: clamp(680px, calc(100svh - 101px), 820px);
  background: #18130f;
}

body.home-page .hero::before,
body.visit-page .visit-hero::before,
body.about-page .content-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/static/hero-sanctuary-edited.png') left top / cover no-repeat;
  transform: none;
  filter: brightness(.78) saturate(.92);
}

body.about-page .content-hero img {
  opacity: 0;
  pointer-events: none;
}

body.home-page .hero::after,
body.visit-page .visit-hero::after,
body.about-page .content-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,8,.03) 0 36%, rgba(10,10,8,.15) 56%, rgba(10,10,8,.38) 100%),
    linear-gradient(180deg, rgba(10,10,8,.14), rgba(10,10,8,.01) 42%, rgba(10,10,8,.5));
}

body.home-page .hero-content,
body.visit-page .visit-hero-copy,
body.about-page .content-hero-copy {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  body.home-page .hero,
  body.visit-page .visit-hero,
  body.about-page .content-hero {
    min-height: 560px;
    height: clamp(560px, calc(100svh - 68px), 720px);
  }

  body.home-page .hero::before,
  body.visit-page .visit-hero::before,
  body.about-page .content-hero::before {
    background-position: left top;
  }

  body.about-page .content-hero-copy { min-height: 100%; }

  body.home-page .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home-page .tile {
    min-height: 160px;
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,.24);
  }
  body.home-page .tile:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.24); }
  body.home-page .tile:nth-child(even) { border-right: 0; }
  body.home-page .tile-title { font-size: clamp(1.25rem, 5.6vw, 1.65rem); }
}

/* 공개 페이지의 부분 전환 상태를 조용하게 알려 주는 상단 진행선 */
.turbo-progress-bar {
  height: 3px;
  background: var(--church-accent, #d7ff2f);
  box-shadow: 0 0 10px color-mix(in srgb, var(--church-accent, #d7ff2f) 45%, transparent);
}

/* Shared site header */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.church-page { margin: 0; }
body.church-page:is(.home-page, .visit-page, .content-page, .list-page) {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  align-items: initial;
  justify-content: initial;
}
body.church-page .app-header:not(.site-header) { display: none !important; }
body.church-page .site-header {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  flex-shrink: 0;
}
body.church-page .site-header .header-left {
  width: fit-content;
  justify-self: start;
  text-decoration: none;
}
body.church-page .site-header .main-nav { margin: 0; }
body.church-page .site-header .header-right { justify-self: end; }
body.church-page .site-header .main-nav a[aria-current="page"] {
  text-decoration: none;
}

/* 페이지별로 남아 있는 예전 헤더 CSS가 공용 헤더를 덮지 못하도록 크기와 배치를 고정한다. */
body.church-page #siteHeader {
  position: sticky;
  inset: auto;
  top: 0;
  width: 100%;
  max-width: none;
  height: 101px;
  min-height: 76px;
  box-sizing: border-box;
  margin: 0;
  padding: 18px clamp(20px, 4vw, 56px);
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  color: var(--church-white);
  background: linear-gradient(100deg, rgb(55, 34, 18), rgb(27, 21, 16) 48%, rgb(17, 15, 12));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
body.church-page #siteHeader .header-left {
  width: 176px;
  min-width: 176px;
}
body.church-page #siteHeader .app-logo {
  display: block;
  width: 176px;
  height: auto;
  max-width: none;
}
body.church-page #siteHeader .main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  justify-self: center;
  margin: 0;
}
body.church-page #siteHeader .main-nav a {
  position: relative;
  display: flex;
  min-height: 36px;
  align-items: center;
  color: var(--church-white);
  font-family: var(--church-sans);
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
body.church-page #siteHeader .main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: transparent;
}
body.church-page #siteHeader .main-nav a[aria-current="page"]::after {
  background: var(--church-accent);
}
body.church-page #siteHeader .header-right {
  width: 240px;
  min-width: 240px;
  height: 65px;
  display: grid;
  grid-template-rows: 21px 36px;
  justify-self: end;
  gap: 8px;
  color: rgba(255, 255, 255, .82);
  font-family: var(--church-sans);
  font-size: 14px;
  line-height: 1.2;
}
body.church-page #siteHeader .auth-row,
body.church-page #siteHeader .bgm-row {
  width: 100%;
  min-height: 18px;
  justify-content: flex-end;
  gap: 10px;
}
body.church-page #siteHeader .auth-row {
  height: 21px;
  min-height: 21px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
body.church-page #siteHeader .auth-row > span {
  min-width: 0;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.church-page #siteHeader .auth-row a,
body.church-page #siteHeader .auth-row button {
  color: var(--church-white) !important;
  font-family: var(--church-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}
body.church-page #siteHeader .auth-row a {
  margin: 0 !important;
}
body.church-page #siteHeader :is(#logout-btn, #mobile-logout-btn) {
  width: auto;
  min-width: 62px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0 9px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--church-white) !important;
  cursor: pointer;
}
body.church-page #siteHeader #bgmTitle {
  display: block;
  min-width: 0;
  max-width: 188px;
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  font-family: var(--church-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.church-page #siteHeader #bgmToggleBtn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}
body.church-page .nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: transparent;
}
body.church-page .nav-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: white;
  transition: transform .2s ease, opacity .2s ease;
}
body.church-page .mobile-nav-meta { display: none; }

body.admin-page > header:not(.site-header),
body.chat-page > header:not(.site-header) {
  position: static;
  width: min(calc(100% - 40px), var(--church-content));
  max-width: var(--church-content);
  min-height: 64px;
  margin: 24px auto 0;
  padding: 12px 0;
  background: transparent;
  color: var(--church-ink);
  border: 0;
  border-bottom: 1px solid var(--church-line);
}
body.admin-page > header:not(.site-header) img,
body.chat-page > header:not(.site-header) img { display: none; }
body.admin-page > header:not(.site-header) button,
body.chat-page > header:not(.site-header) button {
  color: var(--church-ink) !important;
  border-color: var(--church-line) !important;
}

body.users-admin-page table tbody tr,
body.users-admin-page table tbody tr:nth-child(odd),
body.users-admin-page table tbody tr:nth-child(even) {
  background: var(--church-surface);
}
body.users-admin-page table tbody td { color: var(--church-ink); }
body.users-admin-page table .email-cell { color: var(--church-muted); }

body.form-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
}
body.form-page > .card,
body.form-page > .container,
body.form-page > form,
body.form-page > h2 {
  margin-top: 48px;
  margin-bottom: 48px;
}
body.upload-page > h2 { margin-bottom: 18px; }
body.upload-page > form { margin-top: 0; }

body.live-chat-page {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
body.live-chat-page .app-shell {
  height: calc(var(--app-height) - 76px);
  margin: 0 auto;
}

@media (max-width: 1100px) {
  body.church-page #siteHeader {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }
  body.church-page #siteHeader .main-nav { gap: 14px; }
  body.church-page #siteHeader .header-left,
  body.church-page #siteHeader .app-logo { width: 148px; min-width: 148px; }
  body.church-page #siteHeader .header-right { width: 210px; min-width: 210px; }
  body.church-page #siteHeader #bgmTitle { max-width: 158px; font-size: 13px; }
}

@media (max-width: 820px) {
  body.church-page #siteHeader {
    grid-template-columns: minmax(0, 1fr) auto auto;
    height: 68px;
    min-height: 68px;
    padding: 12px 16px;
    gap: 10px;
  }
  body.church-page #siteHeader .header-left {
    width: auto;
    min-width: 0;
  }
  body.church-page #siteHeader .app-logo {
    width: clamp(118px, 32vw, 148px);
    min-width: 0;
    max-width: 100%;
  }
  body.church-page #siteHeader .header-right {
    width: auto;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    grid-column: 2;
    grid-row: 1;
  }
  body.church-page .site-header .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }
  body.church-page #siteHeader .header-right .auth-row,
  body.church-page #siteHeader .header-right #bgmTitle { display: none; }
  body.church-page #siteHeader .header-right .bgm-row {
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  body.church-page #siteHeader #bgmToggleBtn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  body.church-page #siteHeader .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 14px;
    gap: 0;
    align-items: stretch;
    justify-self: stretch;
    background: linear-gradient(110deg, rgba(48,30,18,.98), rgba(17,15,12,.99));
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 34px rgba(0,0,0,.22);
  }
  body.church-page #siteHeader[data-menu-open] .main-nav { display: grid; }
  body.church-page #siteHeader .main-nav > a {
    min-height: 64px;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,.16);
    font-size: 1rem;
    text-align: center;
  }
  body.church-page #siteHeader .main-nav > a:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.16);
  }
  body.church-page #siteHeader .main-nav > a[aria-current="page"] {
    background: rgba(212,255,55,.08);
    color: var(--church-accent);
    text-decoration: none;
  }
  body.church-page .site-header .mobile-nav-meta {
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 52px;
    padding: 12px 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
  }
  body.church-page .site-header .mobile-bgm-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.church-page .site-header .mobile-auth-area {
    flex: 0 0 auto;
  }
  body.church-page .site-header .mobile-auth-area a {
    min-height: auto;
    padding: 0;
    border: 0;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  body.church-page .site-header .mobile-auth-area #mobile-logout-btn {
    min-height: 24px;
  }
  body.church-page .site-header[data-menu-open] .nav-toggle > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  body.church-page .site-header[data-menu-open] .nav-toggle > span:nth-child(2) { opacity: 0; }
  body.church-page .site-header[data-menu-open] .nav-toggle > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  body.live-chat-page .app-shell { height: calc(var(--app-height) - 68px); }
}

@media (max-width: 520px) {
  body.church-page .site-header { gap: 8px; }
  body.church-page .site-header .bgm-row { gap: 0; }
  body.church-page .site-header .nav-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 8px;
  }
  body.admin-page > header:not(.site-header),
  body.chat-page > header:not(.site-header) {
    width: calc(100% - 28px);
    margin-top: 16px;
  }
  body.form-page > .card,
  body.form-page > .container,
  body.form-page > form,
  body.form-page > h2 {
    margin-top: 28px;
    margin-bottom: 28px;
  }
  body.live-chat-page .app-shell { height: calc(var(--app-height) - 62px); }
}

@media (prefers-reduced-motion: reduce) {
  body.church-page .site-header *,
  body.church-page .site-header *::before,
  body.church-page .site-header *::after { transition-duration: .01ms !important; }
}
