:root {
  --ink: #0F1B2D;
  --text: #334155;
  --muted: #556273;
  --line: #E3E8EF;
  --line-soft: #EEF1F5;
  --soft: #F5F7FA;
  --ph: #E1E7EF;
  --accent: #1A5FB4;
  --accent-dark: #123F78;
  --accent-soft: #EAF1FB;
  --white: #FFFFFF;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: 16px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 36px 0 60px; } /* 칸 제목 위 여백은 좁게 */
.section.alt { background: var(--soft); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.8px; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.more { font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 0; }

/* 헤더 */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.3; }
.brand b { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.brand span { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #1C2B42; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid #C9D2DE; }
.btn-line:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) {
  /* 휴대폰: 교회 이름 아래에 메뉴가 항상 한 줄로 떠 있음 (글씨만) */
  html { scroll-padding-top: 100px; }
  .menu-btn { display: none; }
  .header .btn-pray { display: none; }
  .header .wrap { flex-wrap: wrap; row-gap: 6px; padding-top: 10px; padding-bottom: 0; }
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 6px; padding: 0 0 4px; }
  .nav > a, .nav-group-btn { padding: 6px 0; font-size: clamp(11.5px, 3.4vw, 15px); white-space: nowrap; color: var(--ink); background: none; border-radius: 0; }
  .nav a:hover { color: var(--ink); }
  .nav a.is-here, .nav a.is-here:hover, .nav-group.is-here > .nav-group-btn { color: var(--accent); font-weight: 700; }
}

/* 첫 화면 */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 28px 0 56px; }
.hero-text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-tag { font-weight: 700; color: var(--accent); font-size: 15px; }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 52px); line-height: 1.2; font-weight: 800; letter-spacing: -1.5px; white-space: pre-line; }
.hero p { margin: 0; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 400px; min-width: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--ph); }
.hero-media iframe, .hero-media img { width: 100%; height: 100%; border: 0; object-fit: cover; }

/* 예배 */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.svc { display: flex; flex-direction: column; gap: 4px; }
.svc .day { color: var(--muted); font-size: 15px; font-weight: 500; }
.svc .name { font-size: 20px; font-weight: 700; }
.svc .time { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.svc .place { font-size: 14px; color: var(--muted); }

/* 설교 */
.sermons { display: flex; flex-wrap: wrap; gap: 24px; }
.sermon-main { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sermon-list { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.player iframe, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.player button svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.vdate { font-size: 14px; color: var(--muted); }
.vtitle { font-size: 20px; font-weight: 700; margin: 0; }
.vitem { display: flex; gap: 14px; align-items: center; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.vitem .thumb { width: 140px; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--ph); }
.vitem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vitem b { font-size: 15px; display: block; line-height: 1.45; }
.vitem.active b { color: var(--accent); }

/* 소식 */
.news { display: flex; flex-wrap: wrap; gap: 24px; }
.news > .bulletin { flex: 1 1 340px; min-width: 0; }
.news > .news-side { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.bulletin select { padding: 10px 12px; border: 1px solid #C9D2DE; border-radius: 10px; background: #fff; max-width: 100%; min-height: 44px; }
.bulletin-imgs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bulletin-imgs img { border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; width: 100%; }
.empty { color: var(--muted); font-size: 15px; padding: 24px 0; text-align: center; }
.notice { border-top: 1px solid var(--line-soft); }
.notice summary { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary span:first-child { font-size: 16px; }
.notice summary .pin { color: var(--accent); font-weight: 700; margin-right: 6px; }
.notice summary time { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.notice .nbody { white-space: pre-line; color: var(--text); padding: 0 0 16px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.album { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); }
.album .cover { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--ph); }
.album .cover img { width: 100%; height: 100%; object-fit: cover; }
.album b { display: block; font-size: 14px; margin-top: 6px; line-height: 1.4; }
.album small { color: var(--muted); }

/* 소개 */
.about { display: flex; flex-wrap: wrap; gap: 48px; }
.about > div { flex: 1 1 360px; min-width: 0; }
.about p { font-size: 17px; color: var(--text); white-space: pre-line; }
.pastor { display: flex; flex-direction: column; margin-top: 16px; }
.pastor span { font-size: 14px; color: var(--muted); }
.pastor b { font-size: 18px; }
.hist { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.hist b { color: var(--accent); width: 72px; flex-shrink: 0; }

/* 부서 */
.dept { display: flex; flex-direction: column; gap: 4px; }
.dept b { font-size: 20px; }
.dept .who { color: var(--muted); font-size: 15px; }
.dept .txt { color: var(--text); font-size: 15px; white-space: pre-line; }

/* 헌금·기도 */
.two { display: flex; flex-wrap: wrap; gap: 24px; }
.two > * { flex: 1 1 360px; min-width: 0; }
.offering { background: var(--ink); color: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.offering p { margin: 0; color: #C9D2DE; }
.acct { background: #1C2B42; border-radius: 12px; padding: 20px; }
.acct span { font-size: 14px; color: #C9D2DE; display: block; }
.acct b { font-size: 24px; letter-spacing: .5px; word-break: break-all; }
.offering .btn { align-self: flex-start; background: #fff; color: var(--ink); }
.prayer { border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.prayer p { margin: 0; color: var(--muted); font-size: 15px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { padding: 12px 14px; border: 1px solid #C9D2DE; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { background: var(--accent-soft); color: var(--accent-dark); border-radius: 12px; padding: 20px; font-weight: 500; }
.msg-err { color: #B42318; font-size: 14px; }

/* 오시는 길 */
.loc { display: flex; flex-wrap: wrap; gap: 32px; }
.loc-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.loc-info span { font-size: 14px; color: var(--muted); display: block; }
.loc-map { flex: 2 1 460px; min-width: 0; min-height: 320px; border-radius: 20px; overflow: hidden; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.loc-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 푸터 */
.footer { background: var(--ink); color: #C9D2DE; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 36px; padding-bottom: 36px; }
.footer b { color: #fff; font-size: 18px; display: block; }
.footer a { color: #fff; padding: 10px 0; margin-right: 18px; display: inline-block; }
.footer a.admin-link { color: #8D9AAD; }

/* 사진 보기 */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15,27,45,.92); display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; gap: 12px; }
.lb-top button, .lb-nav button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 10px; min-width: 44px; min-height: 44px; font-size: 20px; cursor: pointer; }
.lb-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px; min-height: 0; overflow: auto; }
.lb-body img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: 16px; padding: 12px; }

/* 현재 메뉴 */
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* 일정 목록 */
.events { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.event { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-date { flex: 0 0 220px; font-weight: 700; color: var(--accent); }
.event-body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.event-body b { font-size: 17px; }
.event-body span { color: var(--muted); font-size: 15px; }
.event-body p { margin: 4px 0 0; color: var(--text); font-size: 15px; white-space: pre-line; }

/* 칼럼 미리보기 */
.col-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.col-row:hover span { color: var(--accent); }
.col-row time { color: var(--muted); font-size: 14px; flex-shrink: 0; }

/* 섬기는 분들 */
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.person { display: flex; flex-direction: column; gap: 2px; }
.person-photo { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--ph); margin-bottom: 8px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-role { font-size: 14px; color: var(--muted); }
.person b { font-size: 17px; }
.person p { margin: 4px 0 0; font-size: 14px; color: var(--text); white-space: pre-line; }

/* 하위 페이지 공통 */
.page-head { padding: 48px 0 8px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -1px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-body { padding: 24px 0 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid #C9D2DE; background: #fff; color: var(--ink); cursor: pointer; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.search { display: flex; gap: 8px; flex: 1 1 220px; min-width: 0; max-width: 420px; }
.search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #C9D2DE; border-radius: 10px; min-height: 44px; }
.search button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.scard { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.scard .thumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ph); }
.scard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.scard:hover .thumb img { transform: scale(1.03); }
.scard:hover b { color: var(--accent); }
.scard b { font-size: 16px; line-height: 1.45; }
.meta { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; margin-right: 6px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pager button { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.back { display: inline-block; padding: 10px 0; font-weight: 500; text-decoration: none; }
.detail { max-width: 860px; }
.detail h1 { font-size: clamp(24px, 4vw, 32px); margin: 8px 0; letter-spacing: -0.5px; line-height: 1.35; }
.detail .player { margin: 16px 0 24px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 24px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; }
.prose { font-size: 17px; line-height: 1.85; color: var(--text); white-space: pre-line; }
.col-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.col-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; align-items: flex-start; }
.col-item:hover b { color: var(--accent); }
.col-item .cimg { width: 140px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ph); flex-shrink: 0; }
.col-item .cimg img { width: 100%; height: 100%; object-fit: cover; }
.col-item b { font-size: 19px; display: block; }
.col-item p { margin: 6px 0 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .col-item .cimg { width: 96px; } }
.col-hero { border-radius: 16px; overflow: hidden; margin: 16px 0 24px; }
.prevnext { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.prevnext a { text-decoration: none; max-width: 48%; }
.prevnext small { display: block; color: var(--muted); }

/* 달력 */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head h2 { font-size: 26px; }
.cal-head button { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dow { padding: 8px; text-align: center; font-size: 14px; font-weight: 700; background: var(--soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .dow.sun, .cal .day.sun .num { color: #B42318; }
.cal .dow.sat, .cal .day.sat .num { color: var(--accent); }
.cal .day { min-height: 96px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 3px; cursor: pointer; text-align: left; font: inherit; border-top: 0; border-left: 0; }
.cal .day.out { background: var(--soft); }
.cal .day.out .num { opacity: .45; }
.cal .day.today .num { background: var(--ink); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.cal .day[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal .num { font-size: 14px; font-weight: 700; }
.cal .ev { font-size: 12px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 4px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .cal .day { min-height: 56px; padding: 4px; }
  .cal .ev { font-size: 0; height: 6px; padding: 0; width: 6px; border-radius: 50%; background: var(--accent); }
}
.day-events { margin-top: 24px; }
.day-events h3 { margin: 0 0 8px; font-size: 20px; }

/* 로고 */
.brand-logo { flex-direction: row; align-items: center; gap: 10px; }
.brand-logo img { width: 44px; height: 44px; flex-shrink: 0; }
.brand-logo img.brand-pck { width: auto; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.side .brand-logo img { width: 40px; height: 40px; }
.brand b { font-family: 'Gowun Batang', 'Noto Serif KR', serif; font-weight: 700; font-size: 25px; letter-spacing: 1px; }
.side .brand b { font-size: 22px; }

/* 예배 안내 표 */
.svc-group + .svc-group { margin-top: 36px; }
.svc-title { position: relative; margin: 0 0 14px; padding-top: 12px; font-size: 24px; font-weight: 800; }
.svc-title::before { content: ''; position: absolute; top: 0; left: 0; width: 28px; height: 4px; background: var(--accent); border-radius: 2px; }
.svc-scroll { overflow-x: auto; }
.svc-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 17px; border: 1px solid var(--line); }
.svc-table th, .svc-table td { border: 1px solid var(--line); padding: 16px 18px; text-align: center; vertical-align: middle; }
.svc-table thead th { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 15px; text-align: center; }
.svc-table tbody th { background: var(--soft); font-weight: 700; color: var(--ink); white-space: nowrap; width: 28%; }
.svc-table td { color: var(--ink); }
.svc-table .svc-place { color: var(--text); width: 30%; }
.svc-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; white-space: pre-line; }
@media (max-width: 560px) {
  .svc-table { font-size: 15px; }
  .svc-table th, .svc-table td { padding: 12px 10px; }
  .svc-table tbody th { white-space: normal; }
}

/* 설교 카툰 */
.hero-media.hero-cartoon { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
.cartoon { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cartoon-img, .cartoon > img { display: block; border-radius: 20px; overflow: hidden; background: var(--ph); box-shadow: 0 2px 16px rgba(15,27,45,.08); }
.cartoon-img img, .cartoon > img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cartoon figcaption { display: flex; flex-direction: column; gap: 6px; }
.cartoon-tag { font-size: 14px; font-weight: 700; color: var(--accent); }
.cartoon figcaption b { font-size: 19px; line-height: 1.45; }
.cartoon-caps { margin: 0; padding: 0; list-style: none; counter-reset: cap; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-size: 14px; color: var(--muted); }
.cartoon-caps li { counter-increment: cap; }
.cartoon-caps li::before { content: counter(cap) ". "; font-weight: 700; color: var(--ink); }
.cartoon-detail { max-width: 560px; margin: 0 0 28px; }
.cartoon-quote { display: flex; flex-direction: column; justify-content: center; gap: 8px; aspect-ratio: 4 / 3; border-radius: 20px; padding: 32px; background: var(--ink); color: #fff; text-decoration: none; font-family: 'Gowun Batang', serif; font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; }
.cartoon-quote:hover { color: #fff; background: #1C2B42; }
.cartoon-quote span { font-size: 64px; line-height: .6; color: #8DB4E8; }

/* 첫 화면: 문구 없이 설교 카툰만 */
.hero { padding: 32px 0 48px; justify-content: center; }
.hero .hero-media { flex: 1 1 100%; max-width: 720px; margin: 0 auto; }

/* 1페이지 설교 요약 문서 */
.hero .hero-media.hero-cartoon { max-width: 820px; }
.sdoc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 2px 20px rgba(15,27,45,.06); display: flex; flex-direction: column; gap: 18px; text-align: left; }
.sdoc h2, .sdoc h3, .sdoc p { margin: 0; }
.sdoc-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.sdoc-kicker { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
.sdoc-title { font-family: 'Gowun Batang', serif; font-weight: 700; font-size: clamp(26px, 4.5vw, 36px); line-height: 1.3; letter-spacing: -0.5px; }
.sdoc-meta { color: var(--muted); font-size: 15px; }
.sdoc-verse { margin: 0; padding: 16px 20px; background: var(--soft); border-radius: 12px; font-family: 'Gowun Batang', serif; font-size: 17px; line-height: 1.8; color: var(--text); }
.sdoc-verse cite { display: block; margin-top: 6px; font-style: normal; font-family: 'Noto Sans KR', sans-serif; font-size: 13px; color: var(--muted); }
.sdoc-key { font-size: clamp(19px, 3vw, 22px); font-weight: 700; line-height: 1.5; color: var(--accent-dark); }
.sdoc-intro { font-size: 16px; line-height: 1.8; color: var(--text); }
.sdoc-points { margin: 0; padding: 0; list-style: none; counter-reset: pt; display: flex; flex-direction: column; gap: 14px; }
.sdoc-points li { counter-increment: pt; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.sdoc-points li::before { content: counter(pt); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.sdoc-points b { font-size: 17px; }
.sdoc-points p { font-size: 15px; line-height: 1.75; color: var(--text); margin-top: 2px; }
.sdoc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sdoc-cols:empty { display: none; }
.sdoc-cols section, .sdoc-prayer { background: var(--soft); border-radius: 12px; padding: 16px 18px; }
.sdoc h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.sdoc-cols ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.6; color: var(--text); }
.sdoc-prayer p { font-family: 'Gowun Batang', serif; font-size: 16px; line-height: 1.8; color: var(--text); }
.sdoc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sdoc-print-bar { display: flex; justify-content: flex-end; margin: -8px 0 12px; }
.detail .sdoc { margin-bottom: 28px; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .header, .footer, #siteHeader, #siteFooter, .back, .player, .info-list, .sdoc-print-bar, .sdoc-actions, .detail > h1, .detail > p, .detail > h2, .prose { display: none !important; }
  .page-body { padding: 0 !important; }
  .sdoc { border: 0; box-shadow: none; padding: 0; gap: 10px; font-size: 12px; }
  .sdoc-title { font-size: 22pt; }
  .sdoc-points p, .sdoc-intro, .sdoc-cols ul, .sdoc-prayer p, .sdoc-verse { font-size: 10.5pt; line-height: 1.6; }
  .sdoc-cols section, .sdoc-prayer, .sdoc-verse { background: #f3f5f8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sdoc-points li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 최신 설교: 링크 목록 */
.sermon-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sermon-link { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; }
.sermon-link time { flex: 0 0 auto; width: 110px; color: var(--muted); font-size: 15px; }
.sermon-link span:not(.sermon-arrow) { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; }
.sermon-arrow { color: var(--muted); }
.sermon-link:hover span { color: var(--accent); }
@media (max-width: 560px) {
  .sermon-link { flex-wrap: wrap; gap: 2px 12px; }
  .sermon-link time { width: 100%; font-size: 14px; }
  .sermon-arrow { display: none; }
}

/* 오늘 방문자 수 */
.footer .visit-count { padding-top: 0; padding-bottom: 24px; font-size: 13px; color: #8D9AAD; justify-content: center; }
.footer .visit-count:empty { display: none; }
.acct .acct-copy { margin-top: 12px; background: #fff; color: var(--ink); min-height: 44px; }

/* ===== 한 페이지 구성 ===== */
.news > .news-main { flex: 2 1 460px; min-width: 0; }
.news > .news-side-card { flex: 1 1 320px; min-width: 0; }
button.sermon-link { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.sermon-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.col-entry { border-bottom: 1px solid var(--line); }
.col-entry summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 18px 4px; cursor: pointer; list-style: none; }
.col-entry summary::-webkit-details-marker { display: none; }
.col-entry .col-title { font-size: 18px; font-weight: 700; }
.col-entry summary:hover .col-title { color: var(--accent); }
.col-entry[open] .col-title { color: var(--accent-dark); }
.notice-entry summary { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.col-body { padding: 0 4px 24px; }
.col-img { border-radius: 12px; margin-bottom: 16px; max-height: 360px; object-fit: cover; width: 100%; }

/* 설교 창 */
.sdialog { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 10px 40px rgba(15,27,45,.3); overflow: hidden; }
/* 창은 화면 안에 고정, 내용만 스크롤 → 닫기(✕)가 항상 위에 보임 */
.sdialog[open] { display: flex; flex-direction: column; }
.sdialog::backdrop { background: rgba(15,27,45,.6); }
.sdialog-top { flex: 0 0 auto; position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.sdialog-top b { font-size: 17px; line-height: 1.4; }
.sdialog-close { flex-shrink: 0; min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: var(--soft); font-size: 18px; cursor: pointer; }
.sdialog-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.sdialog-body .player { margin-bottom: 16px; }
.sdialog-body .sdoc { box-shadow: none; }
.sd-nav { display: flex; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.sd-nav-btn { flex: 1 1 0; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-align: left; }
.sd-nav-btn small { font-weight: 400; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sd-nav-next { align-items: flex-end; text-align: right; }
.sd-nav-btn:not(:disabled):hover { background: var(--soft); }
.sd-nav-btn:disabled { cursor: default; opacity: .45; }
@media print { .sd-nav { display: none; } }

/* 요약 문서만 인쇄 */
#printArea { display: none; }
@media print {
  body.print-doc > *:not(#printArea) { display: none !important; }
  body.print-doc #printArea { display: block !important; }
}

/* 비전·표어·실천사항 (개조식, 내어쓰기) */
.creed { margin: 20px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.creed[hidden] { display: none; }
.creed-row { display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; align-items: start; }
.creed dt { font-weight: 700; color: var(--accent-dark); font-size: 15px; padding-top: 2px; }
.creed dd { margin: 0; }
.creed ul, .creed ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.6; color: var(--text); }
.creed li { padding-left: 2px; }
.creed ul li::marker { color: var(--accent); }
.creed ol li::marker { font-weight: 700; color: var(--accent); }
@media (max-width: 420px) { .creed-row { grid-template-columns: 1fr; row-gap: 4px; } }

/* 요약 문서 버튼 한 줄 */
.sdoc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sdoc-actions .btn { padding: 12px 8px; font-size: 15px; white-space: nowrap; min-width: 0; }
.sdoc-share { margin: 10px 0 0; }

/* 네이버 지도 */
.btn-naver { background: #03C75A; color: #fff; }
.btn-naver:hover { background: #02A84C; color: #fff; }
.loc-map > div { width: 100%; height: 100%; min-height: 320px; }
.naver-card { width: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--ink); text-decoration: none; background: linear-gradient(0deg, #E8F7EE, #F5FBF7); }
.naver-card svg { color: #03C75A; }
.naver-card b { font-size: 17px; }
.naver-card span { color: #02803A; font-weight: 700; }
.naver-card:hover span { text-decoration: underline; }
.btn-kakao { background: #FEE500; color: #191919; }
.btn-kakao:hover { background: #F2DA00; color: #191919; }
.row-btns .btn-naver, .row-btns .btn-kakao { flex: 1 1 140px; }

/* 교회 일정 제목 옆 오늘 날짜 */
.title-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.today-date { font-size: 16px; font-weight: 700; color: var(--accent); }

/* 설교 목록: 날짜+예배 / 설교 제목 · 본문 */
.sermon-link .sermon-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sermon-link .sermon-main b { font-size: 17px; }
.sermon-link .sermon-sub { font-size: 15px; color: var(--muted); margin: 0; }
.sermon-link:hover .sermon-main b { color: var(--accent); }

/* 헌금 안내 작게 */
.offering { padding: 22px; gap: 8px; border-radius: 16px; }
.offering h2 { font-size: 21px !important; }
.offering p { font-size: 14px; }
.offering .acct { padding: 12px 14px; border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.offering .acct span { font-size: 13px; width: 100%; }
.offering .acct b { font-size: 17px; letter-spacing: .2px; flex: 1 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offering .acct .acct-copy { margin-top: 0; min-height: 40px; padding: 6px 12px; font-size: 13px; }

/* 맨 위로 버튼: 오른쪽 아래 */
.to-top { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15,27,45,.25); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.to-top.show { opacity: .92; pointer-events: auto; transform: none; }
.to-top:hover { opacity: 1; background: var(--accent-dark); }
@media print { .to-top { display: none !important; } }

/* 사진 보기 창: 위아래 줄이고, 장수는 위에, 넘기기 버튼은 사진 양옆 (브라우저 아래 가운데 버튼과 안 겹치게) */
.lightbox { align-items: center; justify-content: center; padding: 6vh 12px calc(14vh + env(safe-area-inset-bottom)); }
.lb-panel { width: 100%; max-width: 900px; max-height: 100%; display: flex; flex-direction: column; min-height: 0; }
.lb-top { padding: 8px 4px; }
.lb-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { color: #fff; font-size: 14px; background: rgba(255,255,255,.15); border-radius: 999px; padding: 4px 10px; flex-shrink: 0; }
.lb-body { position: relative; padding: 0; min-height: 0; flex: 1; }
.lb-body img { max-height: 70vh; border-radius: 8px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 10px; background: rgba(15,27,45,.55); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

/* 메뉴 아래 관리자 화면 링크 (펼친 메뉴에서만) */

/* hidden 속성은 항상 숨김 (display 지정보다 우선) */
[hidden] { display: none !important; }
.h2-sub { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.pager { margin-top: 24px; }

/* 영상 아래 버튼: 전체화면 · YouTube에서 보기 */
.player-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pbtn-full { background: #fff; color: var(--ink); border: 1px solid #C9D2DE; }
.pbtn-full:hover { border-color: var(--ink); }
.pbtn-yt { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.pbtn-yt:hover { background: #1C2B42; color: #fff; }
.pbtn-yt svg:last-child { opacity: .7; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
.player:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
.player .pexit { display: none; position: absolute; inset: auto; top: 14px; left: 50%; transform: translateX(-50%); width: auto; height: auto; z-index: 2; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; font-weight: 700; border: 1px solid rgba(255,255,255,.35); }
.player:fullscreen .pexit { display: inline-flex; opacity: 0; pointer-events: none; transition: opacity .3s; }
.player:-webkit-full-screen .pexit { display: inline-flex; opacity: 0; pointer-events: none; transition: opacity .3s; }
.player.show-exit .pexit { opacity: 1; }
.player.exit-ready .pexit { pointer-events: auto; }
/* 축소 버튼이 숨었을 때 위쪽 가운데를 누르면 다시 보이게 하는 투명한 자리 */
.player .pexit-zone { display: none; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 64px; z-index: 1; }
.player:fullscreen .pexit-zone { display: block; }
.player:-webkit-full-screen .pexit-zone { display: block; }
.player.exit-ready .pexit-zone { display: none; }

/* PDF 저장용 (화면 밖에서 A4 폭으로 그림) */
.pdf-wrap { position: absolute; left: -10000px; top: 0; width: 703px; }
.pdf-sheet { width: 100%; background: #fff; }
.pdf-sheet .sdoc { border: 0; box-shadow: none; padding: 0; margin: 0; }
.pdf-sheet .sdoc-actions, .pdf-sheet .sdoc-print-bar { display: none !important; }

/* 상단 교회 이름 아래: 좁은 화면에서는 담임목사를 다음 줄로 */
@media (max-width: 640px) {
  .brand-pastor { display: block; }
  .brand-dot { display: none; }
  /* 휴대폰: '속초교회' 오른쪽에 교단·담임목사를 두 줄로 붙여 위아래 높이를 줄임 */
  .header .brand-logo { gap: 8px; }
  .header .brand-logo img { width: 34px; height: 34px; }
  .header .brand-logo img.brand-pck { width: auto; height: 19px; }
  .header .brand-text { flex-direction: row; align-items: center; gap: 10px; }
  .header .brand-text b { font-size: 24px; line-height: 1.1; }
  .header .brand-text > span { font-size: 11.5px; line-height: 1.35; }
}

/* 예배 영상 목록: 설교자(회색) */
.sermon-link .sermon-main b .sermon-preacher { margin-left: 8px; color: var(--muted); font-size: 15px; font-weight: 400; }

/* 새 주보에서 새로 생긴 공지·일정 */
.new-badge, .event-body b .new-badge { display: inline; margin: 0 0 0 5px; color: #E5484D; font-size: 10px; font-weight: 700; letter-spacing: .4px; vertical-align: super; line-height: 0; }

/* 상단 '교회 생활' 묶음 메뉴 */
.nav-group { position: relative; }
.nav-group-btn { display: inline-flex; align-items: center; gap: 3px; font-family: inherit; font-size: inherit; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.nav-group-btn:hover { color: var(--accent); }
.nav-group-btn svg { transition: transform .2s; }
.nav-group.open .nav-group-btn svg { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 130px; display: flex; flex-direction: column; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(16, 24, 40, .12); z-index: 30; }
.nav-sub[hidden] { display: none; }
.nav-sub a { padding: 10px 14px !important; border-radius: 8px; white-space: nowrap; font-size: 15px !important; color: var(--ink); text-decoration: none; }
.nav-sub a:hover, .nav-sub a.is-here { background: var(--line-soft); color: var(--accent); }
.nav-sub .nav-sep { display: block; height: 1px; margin: 6px 8px; background: var(--line); }
.nav-sub a.nav-admin { font-size: 13px !important; color: #8D9AAD; padding-top: 8px !important; padding-bottom: 8px !important; }
.nav-sub a.nav-admin:hover { color: var(--text); }
.nav-sub a .nav-ext { margin-left: 4px; vertical-align: -1px; opacity: .55; }
@media (max-width: 860px) {
  .nav-group-btn { font-size: clamp(11.5px, 3.4vw, 15px); padding: 6px 0; }
  .nav-sub { left: auto; right: 0; transform: none; }
}

/* 오시는 길: 전화 걸기 */
.phone-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.phone-row b { font-size: 18px; }
/* (전화 버튼 사용 안 함) */ .call-btn { display: none; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #C9D2DE; border-radius: 6px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.call-btn svg { width: 13px; height: 13px; }
.call-btn:hover { border-color: var(--accent); color: var(--accent); }
.call-btn[hidden] { display: none; }
.footer .foot-tel { color: inherit; padding: 0; margin: 0; display: inline; text-decoration: underline; text-underline-offset: 3px; }

/* 상단 꾸밈: 이름 뒤 은은한 교회 선 그림 */
.header > .wrap { position: relative; z-index: 2; }
.hdeco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hdeco .wrap { position: relative; height: 100%; }
.hdeco-church { position: absolute; left: 280px; top: 12px; height: 58px; width: auto; opacity: .22; }
@media (max-width: 860px) {
  .hdeco-church { left: auto; right: 6px; top: 6px; height: 50px; }
}


@media (max-width: 640px) { .section { padding-top: 26px; } .hero { padding-top: 18px; } }

/* 이번 주 말씀: 접기/펴기 */
.sdoc-body { display: flex; flex-direction: column; gap: inherit; }
.sdoc-body[hidden] { display: none; }
.sdoc-toggle { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sdoc-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sdoc-toggle svg { transition: transform .2s; }
.sdoc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.offering .offer-ex { font-size: 13px; padding: 8px 12px; background: rgba(255,255,255,.08); border-radius: 8px; }
.offering .offer-ex b { color: #fff; font-weight: 700; }

/* 섬기는 분들: 담임목사는 한 줄 전체, 사진 오른쪽에 약력 */
.person-lead { grid-column: 1 / -1; flex-direction: row; gap: 20px; align-items: center; padding-bottom: 8px; }
.person-lead .person-photo { flex: 0 0 clamp(120px, 30%, 200px); margin: 0; }
.person-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-info b { font-size: 20px; }
.person-info h4 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.person-bio { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text); }
/* 오시는 길 전화번호: 누르면 전화 */
.tel-link { font-size: 18px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* 상단 교회 그림 꼭대기의 속초교회 로고 */
.hdeco .wrap { pointer-events: none; }
.hdeco-mark { position: absolute; left: 315px; top: 4px; width: 21px; height: 21px; opacity: .95; }
.sdoc-body { cursor: pointer; }
@media (max-width: 860px) { .hdeco-mark { left: auto; right: 19px; top: 1px; width: 16px; height: 16px; } }
@media (max-width: 640px) { .staff { grid-template-columns: repeat(3, 1fr); gap: 14px; } .person b { font-size: 15px; } .person-role { font-size: 13px; } }

/* 소개: 교단 마크 크게 */
.about-side { flex: 0 1 280px; display: flex; flex-direction: column; gap: 16px; }
.about-mark { flex: 0 1 auto; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.about-mark img { width: auto; height: 150px; }
.about-mark figcaption { display: flex; flex-direction: column; gap: 2px; }
.about-mark figcaption b { font-size: 18px; color: var(--ink); }
.about-mark figcaption span { font-size: 15px; color: var(--muted); }
.church-mark { gap: 2px; }
.church-mark img { height: 120px; margin-bottom: -6px; }
.church-mark figcaption span { line-height: 1.55; word-break: keep-all; }
@media (max-width: 640px) { .about-mark { flex-basis: 100%; flex-direction: row; justify-content: flex-start; padding: 12px 14px; gap: 12px; text-align: left; } .about-mark img { height: 96px; } }
.about-verify { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; background: #fff; }
.about-verify:hover { border-color: var(--accent); }
@media (max-width: 640px) { .about-mark { flex-wrap: wrap; } .about-verify { margin-left: auto; } }

/* 소개: 인사말 오른쪽 교회 사진 (누르면 크게) */
.about-intro { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.about-intro > p { flex: 1 1 260px; margin-top: 0; }
.about-photo { flex: 1 1 300px; max-width: 460px; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; display: flex; flex-direction: column; gap: 8px; font: inherit; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; box-shadow: 0 4px 18px rgba(15,27,45,.12); transition: transform .2s; }
.about-photo:hover img { transform: scale(1.01); }
.about-photo span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .about-photo { max-width: none; } }
.lb-count:empty { display: none; }
@media (max-width: 640px) { .about-side { flex-basis: 100%; gap: 12px; } .about-side .about-mark { flex-basis: auto; } .church-mark { flex-wrap: nowrap; } .church-mark img { height: 80px; flex: 0 0 auto; } }

/* 이번 주 말씀 아래: 다음 카페 바로가기 배너 */
.cafe-banner { flex: 1 1 100%; max-width: 820px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #1A5FB4, #2E7BD6); color: #fff; text-decoration: none; box-shadow: 0 4px 16px rgba(26, 95, 180, .18); transition: transform .15s, box-shadow .15s; }
.cafe-banner:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26, 95, 180, .26); }
.cafe-banner .cafe-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.cafe-banner .cafe-txt { min-width: 0; }
.cafe-banner b { display: block; font-size: 16px; }
.cafe-banner small { display: block; opacity: .85; font-size: 13px; word-break: keep-all; }
.cafe-banner .cafe-go { margin-left: auto; display: flex; align-items: center; font-weight: 700; font-size: 14px; white-space: nowrap; }
.hero:has(.cafe-banner) { row-gap: 16px; }

/* 첫 화면: 이번 주 말씀 카드와 카페 배너가 휴대폰 첫 화면에 다 들어오도록 촘촘하게 */
.hero { padding-top: 16px; padding-bottom: 36px; }
.hero:has(.cafe-banner) { row-gap: 12px; }
.hero .sdoc { padding: clamp(18px, 4vw, 36px); gap: 12px; }
.hero .sdoc-head { gap: 4px; padding-bottom: 10px; }
.hero .sdoc-toggle { padding: 6px 14px; font-size: 13px; }
.hero .sdoc-actions { gap: 6px; }
.hero .sdoc-actions .btn { padding: 9px 8px; font-size: 14px; min-height: 0; }
.hero .sdoc-share { margin-top: 0; gap: 6px; }
.hero .sdoc-share .pbtn { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.hero .cafe-banner { padding: 12px 16px; gap: 12px; }
.hero .cafe-banner .cafe-ic { flex-basis: 38px; height: 38px; border-radius: 10px; }
.hero .cafe-banner b { font-size: 15px; }
.hero .cafe-banner small { font-size: 12.5px; }
@media (max-width: 640px) { .hero { padding-top: 10px; padding-bottom: 28px; } }

/* 페이지 번호 버튼: 작게, 한 줄로 */
.pager { flex-wrap: nowrap; gap: 4px; }
.pager button { min-width: 36px; min-height: 36px; padding: 0 6px; border-radius: 8px; font-size: 14px; flex: 0 0 auto; }
