/*
Theme Name: 창도교회 · blanding.kr
Theme URI: https://blanding.kr/
Author: Blanding
Author URI: https://blanding.kr/
Description: 대한예수교장로회 창도교회를 위한 반응형 교회 소개·소식·주보·자료실 테마입니다.
Version: 1.0.23
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: changdo-church
*/

:root {
  --cd-ink: #17324a;
  --cd-navy: #123d5b;
  --cd-blue: #1da9e0;
  --cd-green: #3f8f70;
  --cd-sky: #dff3ff;
  --cd-mint: #e4f5f0;
  --cd-paper: #fbfdff;
  --cd-line: rgba(23,73,108,.15);
  --cd-content-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cd-ink);
  background: var(--cd-paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #f2ad32; outline-offset: 3px; }

.site-frame {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--cd-paper);
}
.content-container {
  width: min(calc(100% - 48px), var(--cd-content-width));
  margin-inline: auto;
}
.skip-link { position: fixed; z-index: 999; top: 12px; left: 16px; padding: 12px 18px; color: #fff; background: var(--cd-navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--cd-line); }
.header-inner { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 42px; height: 48px; object-fit: contain; }
.brand > span { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; text-align: center; }
.brand strong { display: block; font: 700 22px/1.08 Georgia, "Noto Serif KR", serif; }
.brand small { display: block; margin-top: 3px; color: #5f7789; font-size: 10px; line-height: 1.05; letter-spacing: .08em; white-space: nowrap; }
.site-nav ul { margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(18px,2.2vw,34px); list-style: none; }
.site-nav a { min-height: 48px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; }
.offcanvas-head, .offcanvas-actions, .menu-overlay { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-join, .header-call { min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 900; white-space: nowrap; }
.header-join { color: var(--cd-blue); background: #edf8fd; border: 1px solid rgba(29,169,224,.28); }
.header-call { color: #fff; background: var(--cd-blue); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; color: var(--cd-navy); background: #eef7fb; border: 1px solid var(--cd-line); border-radius: 10px; }

.hero { min-height: 650px; position: relative; background: #edf8fd; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .75s ease, visibility .75s ease; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide-media, .hero-slide-overlay { position: absolute; inset: 0; }
.hero-slide-media img, .hero-slide-media video { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.025); transition: transform 7s ease; }
.hero-slide.is-active .hero-slide-media img, .hero-slide.is-active .hero-slide-media video { transform: scale(1); }
.hero-slide-overlay { opacity: var(--hero-overlay,.75); }
.hero-slide.tone-dark .hero-slide-overlay { background: linear-gradient(90deg,#fbfdff 0%,#f7fcff 43%,rgba(245,251,255,.32) 75%,rgba(240,249,253,.05)); }
.hero-slide.tone-light .hero-slide-overlay { background: linear-gradient(90deg,#0c2638 0%,rgba(11,43,62,.9) 44%,rgba(9,38,56,.38) 78%,rgba(7,27,41,.16)); }
.hero-content { min-height: 650px; position: relative; z-index: 2; padding-block: 90px 118px; display: flex; flex-direction: column; justify-content: center; }
.hero-slide.align-center .hero-content { align-items: center; text-align: center; }
.hero-slide.align-center .hero-copy { margin-inline: auto; }
.hero-slide.align-center .button-row { justify-content: center; }
.hero-slide.tone-light { color: #fff; }
.hero-slide.tone-light .eyebrow { color: #aee6ff; }
.hero-slide.tone-light .hero-copy { color: rgba(255,255,255,.82); }
.hero-slide.tone-light .hero-secondary-button { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.eyebrow { margin: 0 0 18px; color: #1685bc; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 0; font: 500 clamp(48px,7vw,86px)/1.08 Georgia,"Noto Serif KR",serif; letter-spacing: -.055em; }
.hero h1 em { color: #1685bc; font-style: normal; }
.hero-copy { max-width: 570px; margin: 30px 0; color: #4f6e82; font-size: 18px; line-height: 1.9; word-break: keep-all; }
.hero-controls { position: absolute; z-index: 5; right: 0; bottom: 28px; left: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; pointer-events: none; }
.hero-controls button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #fff; background: rgba(10,46,67,.78); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; cursor: pointer; pointer-events: auto; backdrop-filter: blur(8px); }
.hero-controls button:hover { background: #1685bc; }
.hero-dots { padding: 8px 10px; display: flex; gap: 7px; background: rgba(10,46,67,.68); border-radius: 999px; pointer-events: auto; backdrop-filter: blur(8px); }
.hero-dots .hero-dot { width: 10px; height: 10px; min-width: 10px; padding: 0; background: rgba(255,255,255,.45); border: 0; }
.hero-dots .hero-dot.is-active { width: 28px; border-radius: 999px; background: #fff; }
.hero-pause { font-size: 13px; font-weight: 900; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--cd-line); border-radius: 6px; font-weight: 900; }
.button-primary { color: #fff; background: linear-gradient(135deg,var(--cd-blue),#397fd0); border-color: transparent; }

.quick-links { padding-block: 30px; border-bottom: 1px solid var(--cd-line); }
.quick-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.quick-grid a { min-height: 100px; padding: 18px; display: grid; align-content: center; background: #f2f9fd; border: 1px solid var(--cd-line); border-radius: 14px; }
.quick-grid strong { font-size: 18px; }
.quick-grid small { color: #526f83; }

.latest-bulletin-section { padding-block: 38px; background: linear-gradient(110deg,#102f45,#155e81); }
.latest-bulletin-card { min-height: 178px; padding: clamp(24px,4vw,42px); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: clamp(22px,4vw,50px); color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; box-shadow: 0 18px 45px rgba(8,34,51,.18); }
.latest-bulletin-badge { width: 106px; height: 106px; display: grid; place-content: center; text-align: center; color: var(--cd-navy); background: #fff; border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.latest-bulletin-badge span { font-size: 13px; font-weight: 800; }
.latest-bulletin-badge strong { display: block; color: var(--cd-blue); font: 700 29px/1.2 Georgia,"Noto Serif KR",serif; }
.latest-bulletin-copy .eyebrow { margin-bottom: 8px; color: #aee6ff; }
.latest-bulletin-copy h2 { margin: 0; font: 600 clamp(27px,3vw,42px)/1.25 Georgia,"Noto Serif KR",serif; }
.latest-bulletin-copy p:not(.eyebrow) { margin: 10px 0 0; color: rgba(255,255,255,.76); }
.latest-bulletin-copy p strong { color: #fff; }
.latest-bulletin-actions { display: grid; gap: 9px; }
.latest-bulletin-actions .button:not(.button-primary) { color: #fff; border-color: rgba(255,255,255,.35); }

.church-calendar-section { padding-block: 82px; background: linear-gradient(135deg,#f7fcff,#e8f6f2); border-bottom: 1px solid var(--cd-line); }
.church-calendar-section .section-heading { margin-bottom: 28px; }
.church-calendar-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.58fr); gap: 18px; align-items: stretch; }
.church-calendar-panel, .upcoming-events { background: #fff; border: 1px solid var(--cd-line); border-radius: 18px; box-shadow: 0 14px 38px rgba(20,74,108,.07); }
.church-calendar-panel { min-width: 0; overflow: hidden; }
.church-calendar-heading { min-height: 70px; padding: 12px 18px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; text-align: center; border-bottom: 1px solid var(--cd-line); }
.church-calendar-heading strong { color: var(--cd-navy); font: 700 24px Georgia,"Noto Serif KR",serif; }
.church-calendar-heading a { width: 44px; height: 44px; display: grid; place-items: center; color: #1685bc; background: #edf8fd; border-radius: 50%; font-size: 20px; font-weight: 900; }
.church-calendar-scroll { overflow-x: auto; }
.church-calendar-grid { min-width: 720px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekday { min-height: 42px; display: grid; place-items: center; color: #5b7487; background: #f5fafc; border-right: 1px solid var(--cd-line); border-bottom: 1px solid var(--cd-line); font-size: 13px; font-weight: 900; }
.calendar-day { min-height: 108px; padding: 9px; display: flex; flex-direction: column; gap: 5px; background: #fff; border-right: 1px solid var(--cd-line); border-bottom: 1px solid var(--cd-line); }
.calendar-day:nth-child(7n), .calendar-weekday:nth-child(7) { border-right: 0; }
.calendar-day-empty { background: #f9fbfc; }
.calendar-day-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.calendar-day.is-today .calendar-day-number { color: #fff; background: var(--cd-blue); }
.calendar-day.has-events { background: #fbfeff; }
.calendar-event-chip { padding: 4px 6px; overflow: hidden; color: #155b42; background: #e5f5ee; border-radius: 5px; font-size: 11px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-chip:hover { color: #fff; background: var(--cd-green); }
.calendar-event-more { color: #1685bc; font-size: 11px; font-weight: 900; }
.upcoming-events { padding: 22px; }
.upcoming-events-head { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--cd-line); }
.upcoming-events-head strong { color: var(--cd-navy); font-size: 20px; }
.upcoming-events-head span { color: #6b8292; font-size: 12px; }
.upcoming-event-list { padding-top: 10px; display: grid; gap: 6px; }
.upcoming-event-card { padding: 12px 5px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid rgba(23,73,108,.09); }
.upcoming-event-card:hover { color: #1685bc; }
.upcoming-event-card time { display: grid; justify-items: center; color: #1685bc; line-height: 1.15; }
.upcoming-event-card time strong { font: 700 21px Georgia,serif; }
.upcoming-event-card time span { margin-top: 3px; color: #718796; font-size: 11px; text-transform: uppercase; }
.upcoming-event-card > div { min-width: 0; display: grid; }
.upcoming-event-card > div strong { overflow: hidden; color: var(--cd-navy); text-overflow: ellipsis; white-space: nowrap; }
.upcoming-event-card > div span { overflow: hidden; color: #6a8191; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-event-card b { color: #1685bc; }
.upcoming-event-empty { padding: 32px 12px; text-align: center; }
.upcoming-event-empty strong { color: var(--cd-navy); }
.upcoming-event-empty p { margin: 7px 0 0; color: #667f91; font-size: 13px; }

.service-directory { border-top: 1px solid var(--cd-line); }
.service-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.service-directory-card { min-height: 116px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid var(--cd-line); border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.service-directory-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20,74,108,.08); }
.service-directory-card strong { display: block; font-size: 19px; }
.service-directory-card small { display: block; margin-top: 3px; color: #60798b; }
.service-directory-card span { color: var(--cd-blue); font-size: 24px; font-weight: 900; }
.service-directory .section-heading > p { max-width: 620px; font-size: clamp(18px,1.35vw,20px); line-height: 1.75; word-break: keep-all; }

.section { padding-block: 90px; }
.section-tint { background: linear-gradient(135deg,#f7fcff,var(--cd-sky)); }
.section-heading { margin-bottom: 38px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .page-hero h1 { margin: 0; font: 500 clamp(36px,4vw,56px)/1.2 Georgia,"Noto Serif KR",serif; letter-spacing: -.04em; }
.section-heading > p { max-width: 520px; margin: 0; color: #5f788b; }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.worship-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { min-height: 190px; padding: 28px; background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; }
.card h3 { margin: 0 0 12px; font: 600 24px Georgia,"Noto Serif KR",serif; }
.card p { margin: 0; color: #60798b; }
.service-time { display: block; margin-top: 30px; color: var(--cd-blue); font: 700 25px Georgia,serif; }

.history-box { padding: clamp(34px,5vw,64px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px,7vw,90px); background: linear-gradient(135deg,#f5fbff,var(--cd-mint)); border: 1px solid var(--cd-line); border-radius: 24px; }
.history-box h2 { margin: 0; font: 500 clamp(34px,4vw,52px)/1.2 Georgia,"Noto Serif KR",serif; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 28px; display: grid; grid-template-columns: 135px 1fr; gap: 24px; background: #fff; border-left: 4px solid var(--cd-green); box-shadow: 0 14px 38px rgba(20,74,108,.08); }
.timeline time { color: var(--cd-blue); font: 700 17px Georgia,serif; }
.timeline strong { font: 600 23px Georgia,"Noto Serif KR",serif; }

.page-hero { padding-block: 74px; color: #fff; background: linear-gradient(115deg,var(--cd-navy),#1687bb); }
.page-hero .eyebrow { color: #c5edff; }
.single-event-location { margin: 14px 0 0; color: rgba(255,255,255,.78); font-weight: 800; }
.content-layout { padding-block: 70px 100px; }
.board-list-summary { margin-bottom: 16px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #60798b; background: #f3f9fc; border: 1px solid var(--cd-line); border-radius: 10px; }
.board-list-summary strong { color: var(--cd-navy); }
.post-list { display: grid; gap: 12px; }
.post-card { padding: 24px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.post-card:hover { border-color: rgba(29,169,224,.48); box-shadow: 0 12px 30px rgba(20,74,108,.08); transform: translateY(-1px); }
.post-card time, .post-card p { color: #61798b; }
.post-card h2 { margin: 0; font-size: 20px; }
.post-card-more { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; color: #1685bc; background: #edf8fd; border-radius: 8px; font-weight: 900; white-space: nowrap; }
.board-pagination { margin-top: 34px; }
.board-pagination ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; list-style: none; }
.board-pagination .page-numbers { min-width: 46px; min-height: 46px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--cd-navy); background: #fff; border: 1px solid var(--cd-line); border-radius: 9px; font-weight: 900; }
.board-pagination .page-numbers.current { color: #fff; background: var(--cd-blue); border-color: var(--cd-blue); }
.board-pagination a.page-numbers:hover { color: #1685bc; border-color: #65bfe4; background: #f1faff; }
.board-single-navigation { margin-top: 64px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; gap: 12px; }
.board-single-edge > a, .board-single-disabled { min-height: 94px; height: 100%; padding: 17px 19px; display: grid; align-content: center; gap: 3px; background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; }
.board-single-edge > a:hover { border-color: rgba(29,169,224,.5); background: #f5fbff; }
.board-single-edge span { color: #1685bc; font-size: 13px; font-weight: 900; }
.board-single-edge strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.board-single-next { text-align: right; }
.board-single-disabled { opacity: .54; }
.board-list-button { min-width: 132px; min-height: 94px; padding: 14px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: linear-gradient(135deg,var(--cd-navy),#1687bb); border-radius: 12px; font-weight: 900; }
.entry-content { max-width: 820px; margin-inline: auto; font-size: 17px; }
.entry-content > * { max-width: 100%; }
.wp-block-image img { border-radius: 14px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-card { overflow: hidden; background: #fff; border: 1px solid var(--cd-line); border-radius: 16px; box-shadow: 0 10px 32px rgba(20,74,108,.07); }
.gallery-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #e8f3f8; }
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #1685bc; background: linear-gradient(135deg,#e6f6fd,#e8f6f0); font-size: 20px; font-weight: 900; }
.gallery-card:hover .gallery-card-media img { transform: scale(1.025); }
.gallery-card-copy { padding: 20px; }
.gallery-card-meta { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #667f91; font-size: 13px; }
.gallery-card-meta span { padding: 3px 9px; color: #1685bc; background: #edf8fd; border-radius: 999px; font-weight: 900; }
.gallery-card-copy h2 { margin: 0 0 8px; font: 600 22px/1.4 Georgia,"Noto Serif KR",serif; }
.gallery-card-copy p { margin: 0; color: #60798b; }

.bible-panel { padding: clamp(28px,5vw,58px); background: linear-gradient(135deg,#f4fbff,var(--cd-mint)); border: 1px solid var(--cd-line); border-radius: 22px; }
.bible-panel h2 { margin: 0 0 12px; font: 600 clamp(30px,4vw,46px)/1.25 Georgia,"Noto Serif KR",serif; }
.bible-panel > p { max-width: 720px; color: #526f83; }
.bible-picker { margin-top: 30px; display: grid; grid-template-columns: minmax(240px,1fr) minmax(150px,.45fr) auto; gap: 12px; align-items: end; }
.bible-field label { display: block; margin-bottom: 7px; color: var(--cd-navy); font-weight: 900; }
.bible-field select { width: 100%; min-height: 56px; padding: 0 16px; color: var(--cd-ink); background: #fff; border: 1px solid rgba(23,73,108,.24); border-radius: 10px; }
.bible-open { min-height: 56px; white-space: nowrap; }
.bible-shortcuts { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--cd-line); }
.bible-shortcuts strong { display: block; margin-bottom: 12px; }
.bible-shortcut-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.bible-shortcut-grid a { min-height: 46px; padding: 0 15px; display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--cd-line); border-radius: 999px; font-weight: 800; }
.profile-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 30px 0; }
.profile-grid div { padding: 20px; background: #f2f9fd; border: 1px solid var(--cd-line); border-radius: 12px; }
.profile-grid dt { color: #526f83; font-weight: 800; }
.profile-grid dd { margin: 4px 0 0; font: 600 21px Georgia,"Noto Serif KR",serif; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.staff-card { min-height: 150px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg,#fff,#f3faff); border: 1px solid var(--cd-line); border-radius: 18px; box-shadow: 0 14px 34px rgba(17,67,96,.07); }
.staff-card span { color: var(--cd-blue); font-weight: 800; letter-spacing: .06em; }
.staff-card h3 { margin: 12px 0 0; font: 600 clamp(24px,3vw,31px)/1.3 Georgia,"Noto Serif KR",serif; color: var(--cd-navy); }

.directions-map { margin-top: 30px; overflow: hidden; background: #e8f3f8; border: 1px solid var(--cd-line); border-radius: 18px; box-shadow: 0 14px 38px rgba(20,74,108,.08); }
.directions-map iframe { width: 100%; height: clamp(360px,48vw,560px); display: block; border: 0; }
.map-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.map-button { min-height: 54px; padding-inline: 20px; }
.map-button-naver { color: #fff; background: #03c75a; border-color: #03c75a; }
.map-button-kakao { color: #332a00; background: #fee500; border-color: #f1d900; }
.map-button-google { color: #fff; background: #4285f4; border-color: #4285f4; }

.bulletin-admin-callout { margin-bottom: 26px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg,#eef9ff,var(--cd-mint)); border: 1px solid var(--cd-line); border-radius: 14px; }
.bulletin-admin-callout strong { font-size: 20px; }
.bulletin-admin-callout p { margin: 3px 0 0; color: #60798b; }
.bulletin-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bulletin-year-filter { margin: 0 0 20px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; background: #f3f9fc; border: 1px solid var(--cd-line); border-radius: 12px; }
.bulletin-year-filter a { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; color: #4f6e82; background: #fff; border: 1px solid var(--cd-line); border-radius: 8px; font-weight: 900; }
.bulletin-year-filter a.is-active { color: #fff; background: var(--cd-blue); border-color: var(--cd-blue); }
.bulletin-view { padding: 34px 0 70px; background: #edf3f6; }
.bulletin-toolbar { margin-bottom: 18px; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 9px; }
.bulletin-toolbar-title { margin-right: auto; display: grid; line-height: 1.35; }
.bulletin-toolbar-title strong { color: var(--cd-navy); font-size: 20px; }
.bulletin-toolbar-title span { color: #60798b; font-size: 13px; }
.bulletin-post-navigation { margin-top: 26px; }
.bulletin-post-navigation .board-single-navigation { margin-top: 0; }
.bulletin-toolbar button { cursor: pointer; }
.bulletin-print-sheet { width: min(calc(100% - 32px),1500px); margin-inline: auto; padding: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; color: #20272c; background: #fff; box-shadow: 0 18px 55px rgba(19,53,73,.16); font-family: "Noto Serif KR","Batang",serif; line-height: 1.5; }
.bulletin-panel { min-width: 0; padding: 20px; border: 1px solid #aeb9bf; }
.bulletin-section-title { padding-bottom: 8px; display: flex; align-items: end; justify-content: space-between; gap: 12px; border-bottom: 2px solid #475861; }
.bulletin-section-title h2 { margin: 0; font-size: 24px; letter-spacing: .16em; }
.bulletin-section-title time { font-size: 12px; }
.bulletin-subsection { margin-top: 28px; }
.bulletin-scripture { margin: 9px 0; color: #4e5f68; font-size: 12px; text-align: center; }
.bulletin-order { margin: 10px 0 0; }
.bulletin-order > div { padding: 6px 0; display: grid; grid-template-columns: minmax(90px,.7fr) 1.3fr; gap: 12px; border-bottom: 1px dotted #9ba8ae; }
.bulletin-order dt { font-weight: 800; }
.bulletin-order dd { margin: 0; text-align: right; }
.bulletin-sermon { margin-top: 20px; padding: 18px; display: grid; gap: 4px; text-align: center; background: #f1f5f6; border: 1px solid #c9d2d6; }
.bulletin-sermon small { color: #60717a; }
.bulletin-sermon strong { font-size: 22px; }
.bulletin-sermon span { font-size: 13px; }
.bulletin-note, .bulletin-box { margin-top: 18px; padding: 14px; border: 1px solid #aeb9bf; border-radius: 8px; }
.bulletin-note h3, .bulletin-box h2 { margin: 0 0 8px; font-size: 17px; }
.bulletin-note p, .bulletin-box p { margin: 0; font-size: 13px; white-space: normal; }
.bulletin-cover { padding: 28px 16px; display: grid; justify-items: center; text-align: center; background: linear-gradient(160deg,#eef9ff,#fff 55%,#eaf6f0); border: 1px solid #b7c7cd; }
.bulletin-cover img { width: 58px; height: 66px; object-fit: contain; }
.bulletin-cover p { margin: 8px 0 0; font-size: 12px; }
.bulletin-cover h1 { margin: 0; color: var(--cd-navy); font: 700 38px/1.2 Georgia,"Noto Serif KR",serif; letter-spacing: .18em; }
.bulletin-cover strong { margin-top: 20px; color: var(--cd-green); font-size: 16px; }
.bulletin-cover time { margin-top: 15px; font-weight: 800; }
.bulletin-cover small { margin-top: 4px; color: #667780; }
.bulletin-contact { margin-top: 18px; padding-top: 14px; display: grid; gap: 3px; border-top: 2px solid #475861; font-size: 11px; text-align: center; }
.bulletin-empty { padding: 18px; color: #7a878d; background: #f4f6f7; text-align: center; }
.bulletin-upload-view { width: min(calc(100% - 32px),1100px); margin-inline: auto; display: grid; gap: 24px; }
.bulletin-upload-page { overflow: hidden; background: #fff; border: 1px solid #cbd6dc; border-radius: 12px; box-shadow: 0 18px 55px rgba(19,53,73,.13); }
.bulletin-upload-page > header { min-height: 54px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; background: var(--cd-navy); }
.bulletin-upload-page > header span { color: rgba(255,255,255,.7); font-size: 13px; }
.bulletin-upload-page > img { width: 100%; display: block; background: #fff; object-fit: contain; }
.bulletin-pdf-wrap { padding: 18px; display: grid; gap: 14px; justify-items: center; }
.bulletin-pdf-wrap iframe { width: 100%; height: min(78vh,1000px); display: block; background: #eef3f6; border: 1px solid var(--cd-line); border-radius: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .motion-target { opacity: 0; transform: translateY(22px); transition: opacity .62s ease var(--motion-delay,0ms), transform .62s cubic-bezier(.2,.72,.25,1) var(--motion-delay,0ms); }
  .motion-enabled .motion-target.is-visible { opacity: 1; transform: translateY(0); }
  .motion-enabled .hero-content { opacity: 0; transform: translateY(18px); transition: opacity .72s ease .08s, transform .72s cubic-bezier(.2,.72,.25,1) .08s; }
  .motion-enabled .hero-content.is-visible { opacity: 1; transform: translateY(0); }
  .button, .quick-grid a { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
  .button:hover, .quick-grid a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,74,108,.1); }
}

.join-intro { margin-bottom: 28px; padding: clamp(26px,4vw,42px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; background: linear-gradient(135deg,#f1faff,var(--cd-mint)); border: 1px solid var(--cd-line); border-radius: 20px; }
.join-intro h2 { margin: 0 0 8px; font: 600 clamp(27px,3vw,39px)/1.3 Georgia,"Noto Serif KR",serif; }
.join-intro p { margin: 0; color: #526f83; }
.join-contact { padding: 14px 18px; color: var(--cd-navy); background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; font-weight: 900; white-space: nowrap; }
.member-form { padding: clamp(26px,5vw,52px); background: #fff; border: 1px solid var(--cd-line); border-radius: 20px; box-shadow: 0 16px 44px rgba(20,74,108,.07); }
.member-form h2 { margin: 0 0 6px; font: 600 clamp(28px,3vw,40px)/1.3 Georgia,"Noto Serif KR",serif; }
.form-help { margin: 0 0 30px; color: #60798b; }
.member-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; }
.form-field-full { grid-column: 1 / -1; }
.member-form label, .member-form legend { display: block; margin-bottom: 7px; color: var(--cd-navy); font-weight: 900; }
.member-form input:not([type="checkbox"]):not([type="radio"]), .member-form select, .member-form textarea { width: 100%; min-height: 56px; padding: 13px 15px; color: var(--cd-ink); background: #fbfdff; border: 1px solid rgba(23,73,108,.25); border-radius: 9px; }
.member-form textarea { min-height: 126px; resize: vertical; }
.member-form fieldset { margin: 0; padding: 0; border: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.check-row label, .privacy-check label { margin: 0; display: inline-flex; align-items: flex-start; gap: 9px; font-weight: 700; }
.check-row input, .privacy-check input { width: 21px; height: 21px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--cd-blue); }
.privacy-check { margin-top: 24px; padding: 18px; background: #f3f9fc; border-radius: 10px; }
.privacy-note { margin: 8px 0 0 30px; color: #667f91; font-size: 13px; }
.notification-consent-box { margin-top: 14px; padding: 18px; display: grid; gap: 10px; background: #eef8fd; border: 1px solid var(--cd-line); border-radius: 10px; }
.notification-consent-box > strong { color: var(--cd-navy); font-size: 17px; }
.notification-consent-box small { color: #667f91; font-weight: 600; }
.notification-consent-box label { margin: 0; display: flex; align-items: flex-start; gap: 9px; font-weight: 700; }
.notification-consent-box input { width: 21px; height: 21px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--cd-blue); }
.notification-consent-box p { margin: 0 0 0 30px; color: #667f91; font-size: 13px; }
.form-submit { margin-top: 24px; min-width: 180px; border: 0; cursor: pointer; }
.form-notice { margin-bottom: 24px; padding: 18px 20px; border-radius: 10px; font-weight: 800; }
.form-notice-success { color: #155b42; background: #e3f6ee; border: 1px solid #9ed8c1; }
.form-notice-error { color: #87392f; background: #fff0ed; border: 1px solid #efb5aa; }
.required-mark { color: #c64035; }
.join-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }

.site-footer { padding-block: 50px; color: #fff; background: #102f45; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 40px; }
.footer-info { color: rgba(255,255,255,.65); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; color: rgba(255,255,255,.72); }

@media (max-width: 980px) {
  .content-container { width: min(calc(100% - 32px), var(--cd-content-width)); }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; z-index: 102; top: 0; right: 0; bottom: 0; width: min(88vw,390px); display: block; overflow-y: auto; color: var(--cd-ink); background: #fff; border-left: 1px solid var(--cd-line); box-shadow: -20px 0 50px rgba(9,38,58,.2); transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility .28s ease; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .offcanvas-head { min-height: 92px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; background: linear-gradient(135deg,var(--cd-navy),#1687bb); }
  .offcanvas-title { font: 700 22px/1.25 Georgia,"Noto Serif KR",serif; }
  .menu-close { width: 48px; height: 48px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 28px; cursor: pointer; }
  .site-nav ul { margin: 0; padding: 12px 22px; display: grid; grid-template-columns: 1fr; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--cd-line); }
  .site-nav a { min-height: 60px; width: 100%; padding: 0 6px; justify-content: space-between; font-size: 18px; }
  .site-nav li > a::after { content: "→"; color: var(--cd-blue); font-weight: 900; }
  .offcanvas-actions { padding: 10px 22px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .offcanvas-actions a { min-height: 52px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 900; }
  .offcanvas-join { color: #fff; background: var(--cd-blue); }
  .offcanvas-call { color: var(--cd-navy); background: #eef7fb; border: 1px solid var(--cd-line); }
  .menu-overlay { position: fixed; z-index: 101; inset: 0; width: 100%; height: 100%; padding: 0; display: block; background: rgba(8,31,47,.58); border: 0; opacity: 0; visibility: hidden; cursor: pointer; transition: opacity .28s ease, visibility .28s ease; }
  .menu-overlay.is-open { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .quick-grid, .card-grid, .worship-grid, .service-directory-grid { grid-template-columns: repeat(2,1fr); }
  .church-calendar-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bible-picker { grid-template-columns: 1fr 1fr; }
  .bible-open { grid-column: 1 / -1; }
  .history-box, .footer-grid, .join-intro { grid-template-columns: 1fr; }
  .latest-bulletin-card { grid-template-columns: auto 1fr; }
  .latest-bulletin-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .bulletin-print-sheet { grid-template-columns: 1fr; }
  .bulletin-admin-callout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .header-call { display: none; }
  .brand strong { font-size: 20px; }
  .hero { min-height: 610px; }
  .hero-content { min-height: 610px; padding-block: 74px 112px; }
  .hero-slide.tone-dark .hero-slide-overlay { background: linear-gradient(rgba(250,253,255,.78),rgba(245,251,255,.94)); }
  .hero-slide.tone-light .hero-slide-overlay { background: linear-gradient(rgba(8,35,52,.65),rgba(8,35,52,.88)); }
  .hero h1 { font-size: clamp(42px,12vw,55px); }
  .hero-copy { margin-block: 22px; font-size: 16px; }
  .hero-controls { bottom: 20px; justify-content: center; }
  .hero-arrow { display: none !important; }
  .quick-grid, .card-grid, .worship-grid, .profile-grid, .member-form-grid, .service-directory-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .latest-bulletin-card { grid-template-columns: 1fr; text-align: center; }
  .latest-bulletin-badge { margin-inline: auto; }
  .latest-bulletin-actions { grid-column: auto; grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .bible-picker { grid-template-columns: 1fr; }
  .bible-open { grid-column: auto; }
  .section { padding-block: 68px; }
  .church-calendar-section { padding-block: 58px; }
  .church-calendar-section .section-heading { gap: 16px; }
  .church-calendar-scroll { margin-bottom: -1px; }
  .section-heading { align-items: start; flex-direction: column; }
  .timeline li, .post-card { grid-template-columns: 1fr; gap: 10px; }
  .post-card-more { justify-self: start; }
  .board-single-navigation { grid-template-columns: 1fr; }
  .board-single-next { text-align: left; }
  .board-list-button { min-height: 58px; order: 3; }
  .board-single-edge strong { white-space: normal; }
  .bulletin-toolbar-title { width: 100%; margin: 0 0 8px; }
  .bulletin-admin-actions { width: 100%; }
  .bulletin-admin-actions .button { flex: 1 1 180px; }
  .bulletin-pdf-wrap { padding: 10px; }
  .site-nav ul { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-join { display: none; }
}

@media print {
  @page { size: A4 landscape; margin: 7mm; }
  body { color: #000; background: #fff; font-size: 9pt; }
  .site-header, .site-footer, .bulletin-toolbar, .bulletin-post-navigation { display: none !important; }
  .site-frame { overflow: visible; }
  .bulletin-view { padding: 0; background: #fff; }
  .bulletin-print-sheet { width: 100%; margin: 0; padding: 0; grid-template-columns: repeat(3,1fr); gap: 3mm; box-shadow: none; }
  .bulletin-panel { padding: 4mm; break-inside: avoid; }
  .bulletin-section-title h2 { font-size: 15pt; }
  .bulletin-cover h1 { font-size: 25pt; }
  .bulletin-order > div { padding: 1.3mm 0; }
  .bulletin-note, .bulletin-box { margin-top: 3mm; padding: 3mm; }
  .bulletin-upload-view { width: 100%; gap: 0; }
  .bulletin-upload-page { border: 0; border-radius: 0; box-shadow: none; break-after: page; }
  .bulletin-upload-page > header { display: none; }
}
