/*
Theme Name: Seo Incheon Church
Description: 서인천교회 홈페이지용 직접 제작 블록 테마. 색상·글꼴은 theme.json, 세부 모양은 이 파일에서 고칩니다.
Version: 1.0
Requires at least: 6.6
Text Domain: church-theme
*/

/* ---------- 공통 ---------- */
body { -webkit-font-smoothing: antialiased; word-break: keep-all; }
input, textarea, select, button { box-sizing: border-box; max-width: 100%; }
img { max-width: 100%; height: auto; }

.eyebrow {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--accent);
}

.section {
	padding-top: clamp(56px, 8vw, 96px);
	padding-bottom: clamp(56px, 8vw, 96px);
}
.section-soft { background: var(--wp--preset--color--surface); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: 0.4rem; }
.section-head .lead { color: var(--wp--preset--color--muted); margin-top: 0.5rem; }

/* ---------- 첫 화면 큰 배너 ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(96px, 14vw, 170px);
	padding-bottom: clamp(96px, 14vw, 170px);
	text-align: center;
	color: #fff;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(184, 137, 58, 0.28), transparent 55%),
		radial-gradient(ellipse at 90% 100%, rgba(255, 255, 255, 0.08), transparent 50%),
		linear-gradient(160deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
}
.hero h1 { color: #fff; margin: 0.6rem 0 0; }
.hero .hero-lead {
	max-width: 560px;
	margin: 1.2rem auto 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.1rem;
}
.hero .eyebrow { color: #E2C48A; }
.hero .wp-block-buttons { justify-content: center; margin-top: 2.2rem; }
.hero .wp-block-button__link { background: var(--wp--preset--color--accent); color: #fff; }
.hero .wp-block-button__link:hover { background: #A07530; }
.hero .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.hero .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- 카드 ---------- */
.cards { gap: 20px !important; }
.card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	padding: 28px 26px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(44, 55, 135, 0.08); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--wp--preset--color--muted); }
.card .time {
	margin-top: 0.6rem;
	font-family: var(--wp--preset--font-family--sans);
	letter-spacing: -0.02em;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.card .more { margin-top: 1rem; font-weight: 700; font-size: 0.95rem; }
.card .more a { text-decoration: none; }

/* ---------- 새가족 안내 띠 ---------- */
.cta {
	text-align: center;
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding-top: clamp(56px, 8vw, 88px);
	padding-bottom: clamp(56px, 8vw, 88px);
}
.cta h2 { color: #fff; margin: 0.4rem 0 0; }
.cta p { color: rgba(255, 255, 255, 0.8); }
.cta .wp-block-buttons { justify-content: center; }
.cta .wp-block-button__link { background: #fff; color: var(--wp--preset--color--primary); }
.cta .wp-block-button__link:hover { background: var(--wp--preset--color--surface); }

/* ---------- 일반 페이지 ---------- */
.page-hero {
	background: var(--wp--preset--color--surface);
	text-align: center;
	padding-top: clamp(56px, 8vw, 88px);
	padding-bottom: clamp(56px, 8vw, 88px);
	margin-bottom: clamp(40px, 6vw, 64px);
}
.page-hero h1 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.page-body { padding-bottom: clamp(56px, 8vw, 96px); }
.page-body h2 { margin-top: 2.5rem; font-size: 1.4rem; }

.info-table { border-top: 2px solid var(--wp--preset--color--primary); }
.info-table table { border-collapse: collapse; width: 100%; }
.info-table td, .info-table th {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 14px 12px;
	text-align: left;
}
.info-table th { background: var(--wp--preset--color--surface); font-weight: 700; }

/* ---------- 글 목록 ---------- */
.post-list .wp-block-post { padding: 28px 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.post-list .wp-block-post-title { margin: 0; font-size: 1.3rem; }
.post-list .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.post-list .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: 0.9rem; }

/* ---------- 성도 공간 ---------- */
.post-grid .wp-block-post-template { gap: 28px; }
.post-grid .wp-block-post {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	overflow: hidden;
	padding-bottom: 20px;
}
.post-grid .wp-block-post-featured-image { margin: 0 0 16px; background: var(--wp--preset--color--surface); }
.post-grid .wp-block-post > :not(.wp-block-post-featured-image) { margin-left: 20px; margin-right: 20px; }
.post-grid .wp-block-post:not(:has(img)) { padding-top: 20px; }
.post-grid .wp-block-post-title { margin: 0; font-size: 1.1rem; }
.post-grid .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.post-grid .wp-block-post-date { margin-top: 6px; color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.card.is-soon { opacity: 0.6; }
.card.is-soon:hover { transform: none; box-shadow: none; }

/* 한글 단어 중간에서 줄바꿈되지 않게 (워드프레스 기본값 덮어쓰기) */
.wp-block-column, .card, .card * { word-break: keep-all; overflow-wrap: break-word; }

/* 카드 전체를 눌러도 이동 */
.card { position: relative; }
.card .more a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- 버튼 (글쓰기 등) ---------- */
.church-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}
.church-btn:hover { background: var(--wp--preset--color--primary-dark); }
.church-write { display: flex; justify-content: center; margin-top: 1.5rem; }
.members-head-write .church-write { margin-top: 0; }

/* ---------- 교회 일정 ---------- */
.church-cal .cal-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.church-cal .cal-title { margin: 0; font-size: 1.5rem; min-width: 150px; text-align: center; }
.church-cal .cal-nav {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	font-size: 1.4rem;
	line-height: 1;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.church-cal .cal-nav:hover { background: var(--wp--preset--color--surface); }
.church-cal .cal-add { padding: 8px 18px; font-size: 0.88rem; }

.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 2px solid var(--wp--preset--color--primary);
	border-left: 1px solid var(--wp--preset--color--border);
}
.cal-wd, .cal-day {
	border-right: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.cal-wd {
	padding: 8px 0;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 700;
	background: var(--wp--preset--color--surface);
}
.cal-day { min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.cal-day.is-empty { background: #F8F9FC; }
.cal-num { font-size: 0.85rem; font-weight: 500; }
.is-sun, .is-sun .cal-num { color: #C0392B; }
.is-sat, .is-sat .cal-num { color: #2E6DA4; }
.cal-day.is-today { background: #EEF1FB; }
.cal-day.is-today .cal-num {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: #fff;
}
.cal-ev {
	display: block;
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cal-list { margin-top: 32px; }
.cal-item {
	display: flex;
	gap: 20px;
	padding: 18px 4px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.cal-item-date {
	flex: 0 0 170px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.cal-item-meta { color: var(--wp--preset--color--muted); font-size: 0.92rem; }
.cal-item-desc { margin-top: 6px; font-size: 0.95rem; }
.cal-edit { margin-left: 8px; font-size: 0.8rem; }
.cal-empty { text-align: center; color: var(--wp--preset--color--muted); }

/* ---------- 기도 제목 ---------- */
.prayer-notice {
	padding: 12px 16px;
	border-radius: 10px;
	background: #EEF4F0;
	color: var(--wp--preset--color--primary);
}
.prayer-notice.is-error { background: #FBEDEC; color: #A93226; }
.prayer-write { margin-bottom: 28px; text-align: center; }
.prayer-write summary { list-style: none; }
.prayer-write summary::-webkit-details-marker { display: none; }
.prayer-write[open] summary { background: var(--wp--preset--color--muted); }
.prayer-form {
	margin-top: 16px;
	padding: 20px;
	text-align: left;
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
}
.prayer-form textarea {
	width: 100%;
	padding: 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	font: inherit;
	resize: vertical;
	background: #fff;
}
.prayer-form textarea:focus { outline: 2px solid var(--wp--preset--color--accent); border-color: transparent; }
.prayer-form-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
	font-size: 0.92rem;
}
.prayer-item {
	padding: 22px 24px;
	margin-bottom: 14px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 12px;
}
.prayer-meta { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--wp--preset--color--muted); }
.prayer-meta strong { color: var(--wp--preset--color--contrast); }
.prayer-del { margin-left: auto; }
.prayer-del button {
	border: 0;
	background: none;
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: 0.82rem;
	cursor: pointer;
	text-decoration: underline;
}
.prayer-text { margin-top: 8px; word-break: keep-all; overflow-wrap: break-word; }
.prayer-empty { text-align: center; color: var(--wp--preset--color--muted); }
.prayer-pages { display: flex; justify-content: space-between; margin-top: 20px; }

/* ---------- 유튜브 영상 ---------- */
.yt-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 16px 0;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-preview { margin-top: 12px; padding: 14px; border: 1px dashed var(--wp--preset--color--border); border-radius: 12px; }
.yt-preview-label { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--wp--preset--color--muted); }
.yt-preview .yt-embed { margin: 10px 0 0; max-width: 480px; }

/* ---------- 자유게시판 ---------- */
.board-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.board-search { display: flex; gap: 6px; flex: 1 1 240px; max-width: 360px; }
.board-search input {
	flex: 1;
	min-width: 0;
	padding: 9px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	font: inherit;
	font-size: 0.92rem;
}
.board-search button, .board-btn-line {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.9rem;
	text-decoration: none;
	cursor: pointer;
}
.board-search button:hover, .board-btn-line:hover { background: var(--wp--preset--color--surface); }
.board-btn-line.is-danger { color: #A93226; }
.board-result { font-size: 0.92rem; color: var(--wp--preset--color--muted); }
.board-empty { padding: 48px 0; text-align: center; color: var(--wp--preset--color--muted); }

.board-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--wp--preset--color--primary); }
.board-row {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 200px 90px;
	align-items: center;
	gap: 12px;
	padding: 14px 8px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 0.95rem;
}
.board-head { background: var(--wp--preset--color--surface); font-weight: 700; font-size: 0.85rem; padding: 10px 8px; }
.board-head .b-title { text-align: center; }
.b-no, .b-date { text-align: center; color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.b-author { text-align: center; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row a.b-title {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.board-row a.b-title:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.b-cmt { margin-left: 4px; color: var(--wp--preset--color--accent); font-weight: 700; font-size: 0.85rem; }
.b-video {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-right: 6px;
	border-radius: 5px;
	background: #E62117;
	color: #fff;
	font-size: 0.6rem;
	vertical-align: 2px;
}
.board-pages { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.board-pages a {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.board-pages a.is-current { background: var(--wp--preset--color--primary); color: #fff; }

.board-article-head { padding-bottom: 16px; border-bottom: 2px solid var(--wp--preset--color--primary); }
.board-article-title { margin: 0; font-size: 1.5rem; }
.board-article-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 0.88rem; color: var(--wp--preset--color--muted); }
.board-article-meta strong { color: var(--wp--preset--color--contrast); }
.board-article-body { padding: 28px 0; min-height: 120px; overflow-wrap: break-word; word-break: keep-all; }
.board-actions {
	display: flex;
	gap: 8px;
	padding: 16px 0;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.board-actions form { margin: 0; }
.post-actions-wrap { margin-top: 48px; margin-bottom: clamp(56px, 8vw, 96px); }
.board-actions > a:first-child { margin-right: auto; }

.board-comments { margin-top: 32px; }
.board-comments h3 { font-size: 1.05rem; margin: 0 0 12px; }
.board-comment { padding: 16px 4px; border-bottom: 1px solid var(--wp--preset--color--border); }
.board-comment .prayer-text { margin-top: 4px; }
.board-comment-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 20px; }
.board-comment-form textarea, .board-form input[type="text"], .board-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	font: inherit;
	background: #fff;
	resize: vertical;
}
.board-comment-form textarea:focus, .board-form input:focus, .board-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	border-color: transparent;
}
.board-comment-form .church-btn { flex: none; }
.board-form { display: flex; flex-direction: column; gap: 12px; }
.board-form input[type="text"] { font-size: 1.1rem; font-weight: 500; }
.board-hint { margin: 0; font-size: 0.88rem; color: var(--wp--preset--color--muted); }
.board-form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

@media (max-width: 700px) {
	.board-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
	.board-head, .b-no { display: none; }
	.board-row a.b-title { grid-column: 1 / -1; }
	.b-author { text-align: left; color: var(--wp--preset--color--muted); font-size: 0.82rem; }
	.board-comment-form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 700px) {
	.cal-grid { display: none; } /* 휴대폰에서는 목록으로만 */
	.cal-list { margin-top: 0; }
	.cal-item { flex-direction: column; gap: 4px; }
	.cal-item-date { flex: none; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 600px) {
	.hero .hero-lead { font-size: 1rem; }
	.card { padding: 22px 20px; }
}

/* =====================================================================
 * 포털형 디자인 (v2) — 머리글 · 첫 화면 · 바닥글
 * ===================================================================== */

/* ---------- 머리글 ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 2px 10px rgba(29, 33, 48, 0.05);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.topbar { background: #F5F7FA; border-bottom: 1px solid var(--wp--preset--color--border); }
.topbar-inner { padding-top: 10px; padding-bottom: 10px; gap: 16px; }
.brand { gap: 14px; align-items: center; }
.brand-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	white-space: nowrap;
}
.brand-title a {
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.pill-link { margin: 0; }
.pill-link a {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.pill-link a:hover { background: var(--wp--preset--color--accent); }
.util { gap: 18px; align-items: center; font-size: 0.86rem; }
.util p, .util .util-yt, .util .wp-block-loginout { margin: 0; }
.util a { color: var(--wp--preset--color--muted); text-decoration: none; white-space: nowrap; }
.util a:hover { color: var(--wp--preset--color--primary); }
.util-yt a { display: inline-flex; align-items: center; gap: 4px; }
.util-yt .ic { width: 18px; height: 18px; color: #E62117; }
.util .util-members a { color: var(--wp--preset--color--accent); font-weight: 800; font-size: 1rem; }
.util-login a {
	padding: 4px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	font-weight: 700;
}

.mainbar-inner { padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.main-nav { font-size: 1.08rem; font-weight: 700; gap: 2.2rem; }
.main-nav a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.main-nav a:hover { color: var(--wp--preset--color--primary); }
.main-nav .nav-members a { color: var(--wp--preset--color--accent); }

.header-search { flex: 0 1 380px; margin: 0; }
.header-search .wp-block-search__inside-wrapper,
.page-search .wp-block-search__inside-wrapper {
	padding: 4px;
	border: 2px solid #C7CEEE;
	border-radius: 999px;
	background: #fff;
}
.header-search .wp-block-search__input,
.page-search .wp-block-search__input {
	border: 0;
	padding: 6px 16px;
	font: inherit;
	font-size: 0.92rem;
	background: transparent;
}
.header-search .wp-block-search__input:focus,
.page-search .wp-block-search__input:focus { outline: none; }
.header-search .wp-block-search__button,
.page-search .wp-block-search__button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.header-search .wp-block-search__button svg,
.page-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.page-search { max-width: 480px; margin: 20px auto 0; }

/* ---------- 첫 화면: 배너 + 교회 소식 ---------- */
.home-top { padding: 28px 0; background: #fff; }
.home-top-inner, .home-portal-inner, .home-quick ul {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 1240px) + 40px);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}
.home-sec { margin-top: 0 !important; }
.home-top-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }

.home-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-height: 360px;
	padding: 48px clamp(28px, 5vw, 56px);
	border-radius: 18px;
	color: #fff;
	text-decoration: none;
	background:
		radial-gradient(circle at 85% 20%, rgba(208, 74, 138, 0.55), transparent 45%),
		radial-gradient(circle at 10% 110%, rgba(255, 255, 255, 0.18), transparent 40%),
		linear-gradient(120deg, #2C3787 0%, #3E4BAA 55%, #6740A8 100%);
}
.home-banner::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: 320px;
	height: 320px;
	border: 40px solid rgba(255, 255, 255, 0.07);
	border-radius: 50%;
	pointer-events: none;
}
.home-banner.is-sermon {
	background:
		linear-gradient(90deg, rgba(18, 22, 58, 0.9) 0%, rgba(18, 22, 58, 0.55) 55%, rgba(18, 22, 58, 0.15) 100%),
		var(--banner-img, linear-gradient(120deg, #2C3787, #6740A8)) center / cover no-repeat;
}
.home-banner.is-sermon::after { display: none; }
.hb-chip {
	position: relative;
	z-index: 1;
	padding: 4px 14px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}
.hb-title {
	position: relative;
	z-index: 1;
	margin: 18px 0 12px;
	font-size: clamp(1.8rem, 3.4vw, 2.7rem);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.03em;
}
.hb-text { position: relative; z-index: 1; max-width: 480px; opacity: 0.85; }
.hb-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hb-btn, .hb-play {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.hb-btn:hover { filter: brightness(1.08); }
.hb-btn.is-line { background: transparent; border-color: rgba(255, 255, 255, 0.6); }
.hb-btn.is-line:hover { background: rgba(255, 255, 255, 0.12); }
.hb-play { position: relative; z-index: 1; margin-top: 26px; }
.hb-play .ic { width: 22px; height: 22px; }

.home-news {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	background: #fff;
}
.hn-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	font-size: 1.15rem;
	font-weight: 800;
	text-decoration: none;
}
.hn-head:hover { background: var(--wp--preset--color--primary-dark); }
.hn-head .ic { width: 22px; height: 22px; }
.hn-list { list-style: none; margin: 0; padding: 6px 0; }
.hn-list a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 22px;
	border-bottom: 1px solid #EEF0F5;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.hn-list li:last-child a { border-bottom: 0; }
.hn-list a:hover span { color: var(--wp--preset--color--primary); text-decoration: underline; }
.hn-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-list time { flex: none; color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.hn-empty { margin: 0; padding: 32px 22px; color: var(--wp--preset--color--muted); text-align: center; }
.hn-locked {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 32px 22px;
	text-align: center;
	color: var(--wp--preset--color--muted);
}
.hn-locked .ic { width: 40px; height: 40px; color: var(--wp--preset--color--primary); }
.hn-locked p { margin: 0; }

/* ---------- 첫 화면: 파란 영역 ---------- */
.home-portal { padding: 40px 0; background: var(--wp--preset--color--surface); }
.home-portal-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.6fr);
	gap: 20px;
}
.hp-sermon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 320px;
	padding: 26px;
	border-radius: 18px;
	color: #fff;
	text-decoration: none;
	background:
		linear-gradient(180deg, rgba(18, 22, 58, 0.15) 0%, rgba(18, 22, 58, 0.85) 100%),
		var(--banner-img, linear-gradient(150deg, #6740A8, #2C3787)) center / cover no-repeat;
}
.hp-sermon-body { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.hp-sermon-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; opacity: 0.8; }
.hp-sermon strong { font-size: 1.45rem; font-weight: 800; line-height: 1.3; }
.hp-sermon-text { font-size: 0.9rem; opacity: 0.8; }
.hp-sermon-btn {
	padding: 14px 18px;
	border-radius: 10px;
	background: var(--wp--preset--color--accent);
	font-weight: 700;
	text-align: center;
}
.hp-sermon:hover .hp-sermon-btn { filter: brightness(1.08); }

.hp-stack { display: grid; gap: 20px; }
.hp-tile {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px;
	padding: 24px;
	border-radius: 18px;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	text-decoration: none;
	transition: transform 0.2s ease;
}
.hp-tile.is-dark { background: var(--wp--preset--color--primary-dark); }
.hp-tile:hover { transform: translateY(-3px); }
.hp-tile strong { font-size: 1.15rem; font-weight: 800; line-height: 1.4; }
.hp-tile .ic { flex: none; width: 36px; height: 36px; opacity: 0.9; }

.hp-icons {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* 바로가기 5개: 윗줄 3개, 아랫줄 2개 */
.hp-icons li { grid-column: span 2; }
.hp-icons li:nth-child(n+4) { grid-column: span 3; }
.hp-icons a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex: 1;
	min-height: 140px;
	text-align: center;
	word-break: keep-all;
	padding: 18px 10px;
	border: 1px solid #E1E6F2;
	border-radius: 16px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-icons li { display: flex; }
.hp-icons a:hover {
	transform: translateY(-3px);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 12px 24px rgba(44, 55, 135, 0.12);
}
.hp-ic {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #E9ECFA;
	color: var(--wp--preset--color--primary);
}
.hp-ic .ic { width: 28px; height: 28px; }

/* ---------- 첫 화면: 예배 시간 ---------- */
.home-worship { padding-top: 56px; padding-bottom: 32px; }
.home-worship .section-head { margin-bottom: 1.8rem; }

/* ---------- 첫 화면: 바로가기 줄 ---------- */
.home-quick { padding: 24px 0 64px; }
.home-quick ul {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0;
	margin-bottom: 0;
	list-style: none;
}
.home-quick a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
}
.home-quick a:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.home-quick .ic { flex: none; width: 24px; height: 24px; color: var(--wp--preset--color--accent); }

/* ---------- 바닥글 ---------- */
.site-footer {
	background: #15171D;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	padding-bottom: 32px;
}
.footer-links {
	gap: 28px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links p { margin: 0; }
.footer-links a { color: #fff; font-weight: 500; text-decoration: none; }
.footer-links a[href="/members/"] { font-weight: 800; }
.footer-links a:hover { color: #C7CEEE; }
.footer-cols { margin-top: 36px; }
.site-footer h3 { margin: 0 0 0.8rem; color: #fff; font-size: 1rem; }
.site-footer .wp-block-site-title { margin: 0 0 0.6rem; font-size: 1.3rem; font-weight: 800; }
.site-footer .wp-block-site-title a { color: #fff; text-decoration: none; }
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer .copyright {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.45);
}

/* ---------- 화면 크기별 ---------- */
@media (max-width: 1000px) {
	.home-top-inner { grid-template-columns: 1fr; }
	.home-portal-inner { grid-template-columns: 1fr 1fr; }
	.hp-icons { grid-column: 1 / -1; }
	.home-quick ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mainbar-inner { flex-wrap: wrap !important; }
	.header-search { flex: 1 1 100%; }
}
@media (max-width: 600px) {
	.pill-link, .util-yt { display: none; }
	.hp-icons { gap: 10px; }
	.hp-icons a { min-height: 104px; gap: 8px; font-size: 0.9rem; padding: 14px 6px; }
	.hp-ic { width: 46px; height: 46px; }
	.home-worship .cards { flex-wrap: wrap !important; gap: 12px !important; }
	.home-worship .wp-block-columns.cards > .wp-block-column.card { flex: 1 1 calc(50% - 6px) !important; flex-basis: calc(50% - 6px) !important; box-sizing: border-box; min-width: 0; padding: 18px 16px; }
	.home-worship .card .time { font-size: 1.3rem; }
	.brand-title { font-size: 1.15rem; }
	.mainbar-inner { flex-wrap: nowrap !important; gap: 12px; }
	.header-search { flex: 1 1 auto; }
	.home-top { padding: 16px 0; }
	.home-banner { min-height: 300px; padding: 32px 24px; }
	.home-portal { padding: 24px 0; }
	.home-portal-inner { grid-template-columns: 1fr; }
	.hp-tile { padding: 20px; min-height: 96px; align-items: center; }
	.hp-tile .ic { width: 28px; height: 28px; }
	.home-quick ul { grid-template-columns: 1fr 1fr; }
	.footer-links { gap: 16px; }
}

/* ---------- 페이지 위쪽 [홈으로] 버튼 ---------- */
.page-hero { position: relative; }
.home-back {
	position: absolute;
	top: 20px;
	left: max(20px, calc((100% - var(--wp--style--global--wide-size, 1240px)) / 2));
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 7px 16px 7px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--primary) !important;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(44, 55, 135, 0.08);
	transition: background 0.2s ease, color 0.2s ease;
}
.home-back:hover { background: var(--wp--preset--color--primary); color: #fff !important; }
.home-back .ic { width: 18px; height: 18px; }
@media (max-width: 600px) {
	.home-back { top: 12px; padding: 6px 12px 6px 10px; font-size: 0.82rem; }
	.page-hero { padding-top: 64px !important; }
}

/* ---------- 자유게시판 동영상 ---------- */
.board-video {
	display: block;
	width: 100%;
	max-height: 70vh;
	margin: 0 0 20px;
	border-radius: 12px;
	background: #000;
}
.board-video.is-preview { max-width: 480px; margin-top: 12px; }
.board-video-field {
	padding: 16px;
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: 12px;
	background: #FAFBFD;
}
.board-video-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.board-video-pick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.board-video-pick input[type="file"]:focus-visible + .church-btn { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.church-btn.is-line {
	background: #fff;
	color: var(--wp--preset--color--primary) !important;
	border: 1.5px solid var(--wp--preset--color--primary);
}
.church-btn.is-line:hover { background: var(--wp--preset--color--primary); color: #fff !important; }
.board-video-name { font-size: 0.88rem; color: var(--wp--preset--color--muted); word-break: break-all; }
.board-video-name.is-error { color: #A93226; font-weight: 700; }
.board-video-current { margin-top: 14px; }
.board-video-current .board-video { max-width: 480px; margin-bottom: 8px; }
.board-video-current label { font-size: 0.9rem; color: #A93226; }
.board-upload-progress .bar {
	height: 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	overflow: hidden;
}
.board-upload-progress .bar span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	transition: width 0.2s ease;
}
.board-upload-progress p { margin: 8px 0 0; font-size: 0.9rem; color: var(--wp--preset--color--muted); }

/* ---------- 기도 제목 (보내기 → 관리자 정리) ---------- */
.prayer-section { margin-bottom: 40px; }
.prayer-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; font-size: 1.3rem; }
.prayer-h small { font-size: 0.82rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.prayer-summary {
	padding: 24px 26px;
	margin-bottom: 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: #fff;
}
.prayer-summary.is-latest {
	border: 0;
	background: linear-gradient(135deg, #F3F0FB 0%, #EEF1F7 100%);
	box-shadow: inset 4px 0 0 var(--wp--preset--color--accent);
}
.prayer-summary header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.prayer-summary h3 { margin: 0; font-size: 1.15rem; }
.prayer-summary time { font-size: 0.85rem; color: var(--wp--preset--color--muted); }
.ps-badge, .pi-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}
.ps-badge { background: var(--wp--preset--color--accent); }
.pi-badge { background: #E9ECFA; color: var(--wp--preset--color--primary); }
.pi-badge.is-done { background: #E3F4EA; color: #1E7A47; }
.pi-badge.is-private { background: #FBEDEC; color: #A93226; }
.ps-body { line-height: 1.9; }
.ps-admin { display: flex; gap: 8px; margin-top: 16px; }
.ps-admin form { margin: 0; }
.prayer-older summary { cursor: pointer; margin: 6px 0 14px; font-weight: 700; color: var(--wp--preset--color--primary); }
.prayer-write { text-align: left; }
.prayer-form-note { margin: 0 0 12px; font-size: 0.9rem; color: var(--wp--preset--color--muted); }
.prayer-share { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; border: 0; font-size: 0.92rem; }
.prayer-share legend { margin-bottom: 6px; font-weight: 700; }
.prayer-admin {
	padding: 24px;
	border: 2px dashed #C7CEEE;
	border-radius: 16px;
	background: #FAFBFE;
}
.prayer-admin-note { font-size: 0.88rem; color: var(--wp--preset--color--muted); }
.prayer-item.is-pick { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.prayer-item.is-pick input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.prayer-item.is-pick .pick-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.prayer-item.is-pick:has(input:checked) { border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 2px #E9ECFA; }

/* ---------- 게시판 권한 ---------- */
.perm-denied { padding: 48px 20px; text-align: center; }
.perm-denied-ic { font-size: 2.4rem; margin: 0; }
.card.is-locked { opacity: 0.55; }
.card.is-locked:hover { transform: none; box-shadow: none; }
.card.is-locked .more a { pointer-events: none; color: var(--wp--preset--color--muted); }

/* ---------- 첫 화면 단순화 (배너 한 장 + 바로가기 4개) ---------- */
.home-top-inner { grid-template-columns: 1fr; }
.home-banner { min-height: 380px; }
.home-portal-inner { grid-template-columns: 1fr; }
.hp-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-icons li, .hp-icons li:nth-child(n+4) { grid-column: auto; }
@media (max-width: 600px) {
	.hp-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
 * 기관별 게시판
 * ========================================================= */
.org-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.org-tabs a {
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--muted);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.org-tabs a:hover { color: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.org-tabs a.is-current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.b-org {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 8px;
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	font-size: 0.78rem;
	font-weight: 700;
	vertical-align: 1px;
}
.board-article-org { margin: 0 0 6px; }
.board-org-pick { display: flex; align-items: center; gap: 12px; }
.board-org-pick span { font-weight: 700; }
.board-org-pick select {
	min-width: 200px;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
}
.board-org-pick select:focus { outline: none; border-color: var(--wp--preset--color--primary); }
@media (max-width: 600px) {
	.org-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.board-org-pick select { flex: 1; min-width: 0; }
}

/* =========================================================
 * 성도 공간: 작은 바로가기 네모 + 게시판 안내
 * ========================================================= */
.mini-cards-row + .mini-cards-row { margin-top: -8px; }
.mini-cards-row .wp-block-columns { gap: 12px !important; margin-bottom: 12px; }
.card.card-mini { padding: 0; }
.card-mini .mini-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 70px;
	padding: 12px;
	color: var(--wp--preset--color--contrast);
	font-weight: 800;
	font-size: 1.15rem;
	text-align: center;
	text-decoration: none;
	border-radius: inherit;
}
.card-mini a.mini-link:hover { color: var(--wp--preset--color--primary); }
.mini-lock { font-size: 0.85rem; }

@media (max-width: 781px) {
	.mini-cards-row .wp-block-columns { flex-wrap: wrap !important; }
	.mini-cards-row .wp-block-column.card-mini { flex: 1 1 calc(50% - 6px) !important; flex-basis: calc(50% - 6px) !important; min-width: 0; }
}

/* =========================================================
 * 성도 공간: 게시판 안내 카드
 * ========================================================= */
.board-guide { max-width: 1080px !important; width: 100%; margin: 32px auto 40px !important; }
.bg-head { text-align: center; margin-bottom: 28px; }
.bg-head .eyebrow { margin: 0; }
.bg-head h2 { margin: 6px 0 0; font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
.bg-head .bg-lead { margin: 8px 0 0; color: var(--wp--preset--color--muted); }
.bg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.bg-card {
	--hue: #3E4BAA; --tint: #ECEEFA;
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 150px;
	padding: 30px 60px 30px 30px;
	border: 1px solid #E4E8F1;
	border-radius: 24px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(29, 33, 48, 0.04);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bg-card::after {
	content: "→";
	position: absolute; right: 22px; top: 50%;
	transform: translate(-4px, -50%);
	color: var(--hue); font-weight: 800; font-size: 1.2rem;
	opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
a.bg-card:hover { transform: translateY(-3px); border-color: var(--hue); box-shadow: 0 14px 32px rgba(29, 33, 48, 0.09); }
a.bg-card:hover::after { opacity: 1; transform: translate(0, -50%); }
.bg-ic {
	flex: none;
	display: grid; place-items: center;
	width: 76px; height: 76px;
	border-radius: 22px;
	background: var(--tint);
	color: var(--hue);
}
.bg-ic svg { width: 36px; height: 36px; stroke-width: 1.8; }
.bg-text { word-break: keep-all; overflow-wrap: break-word; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bg-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: var(--wp--preset--color--contrast); }
.bg-desc { font-size: 1.02rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.bg-card.is-locked { opacity: 0.5; }
.bg-sermon   { --hue: #E5484D; --tint: #FDECEC; }
.bg-bulletin { --hue: #2F6FED; --tint: #E8F0FE; }
.bg-news     { --hue: #0E9384; --tint: #E1F5F2; }
.bg-album    { --hue: #E8830C; --tint: #FFF1DD; }
.bg-calendar { --hue: #2B9348; --tint: #E4F5E8; }
.bg-prayer   { --hue: #D04A8A; --tint: #FBE9F2; }
.bg-board    { --hue: #3E4BAA; --tint: #ECEEFA; }
.bg-org      { --hue: #7A4FD6; --tint: #F0EAFD; }
@media (max-width: 781px) {
	.bg-grid { grid-template-columns: 1fr; gap: 12px; }
	.bg-card { min-height: 0; padding: 22px; gap: 16px; }
	.bg-card::after { display: none; }
	.bg-ic { width: 60px; height: 60px; border-radius: 18px; }
	.bg-ic svg { width: 30px; height: 30px; }
	.bg-title { font-size: 1.3rem; }
}

.page-hero .page-lead { margin: 12px auto 0; max-width: 640px; text-align: center; font-size: 1.05rem; color: var(--wp--preset--color--muted); word-break: keep-all; }

/* =========================================================
 * 읽음 표시: 안 읽은 글 검정 / 읽은 글 파랑
 * ========================================================= */
.board-row a.b-title { color: var(--wp--preset--color--contrast); font-weight: 600; }
.board-row.is-read a.b-title { color: #2F5BD3; font-weight: 400; }
.post-list .wp-block-post-title.is-read a, .post-grid .wp-block-post-title.is-read a { color: #2F5BD3; }
.bg-title.is-read { color: #2F5BD3; }
.bg-directory { --hue: #0B7285; --tint: #E2F3F6; }

/* =========================================================
 * 주보 바로 보기 (PDF)
 * ========================================================= */
.pdf-viewer { max-width: 760px; margin: 1.5rem auto 0.5rem; outline: none; }
.pv-stage {
	position: relative;
	min-height: 240px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: #F6F7FA;
	box-shadow: 0 8px 24px rgba(29, 33, 48, 0.06);
}
.pv-stage canvas { display: block; }
.pv-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: var(--wp--preset--color--muted); }
.pv-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.pv-bar button {
	padding: 9px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}
.pv-bar button:hover:not(:disabled) { background: var(--wp--preset--color--surface); }
.pv-bar button:disabled { opacity: 0.35; cursor: default; }
.pv-page { min-width: 64px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-download { max-width: 760px; margin: 0 auto; font-size: 0.92rem; }

/* =========================================================
 * 교인 주소록
 * ========================================================= */
.dir-me { margin: 0 0 24px; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; background: #fff; }
.dir-me summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 800; cursor: pointer; }
.dir-state { padding: 2px 10px; border-radius: 999px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); font-size: 0.8rem; font-weight: 700; }
.dir-state.is-on { background: #E4F5E8; color: #2B9348; }
.dir-form { padding: 0 20px 20px; }
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dir-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 700; }
.dir-grid .is-wide { grid-column: 1 / -1; }
.dir-grid input, .dir-grid select, .dir-top input {
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-weight: 400;
}
.dir-check { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: 0.93rem; line-height: 1.55; word-break: keep-all; }
.dir-check input { margin-top: 5px; flex: none; }
.dir-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dir-top input { flex: 1; max-width: 360px; }
.dir-count { color: var(--wp--preset--color--muted); font-size: 0.9rem; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dir-card { padding: 16px 18px; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; background: #fff; }
.dir-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dir-name strong { font-size: 1.1rem; }
.dir-title { color: var(--wp--preset--color--muted); font-size: 0.92rem; }
.dir-phone { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--wp--preset--color--primary); text-decoration: none; }
.dir-addr { margin: 4px 0 0; font-size: 0.9rem; color: var(--wp--preset--color--muted); word-break: keep-all; }
.dir-note { margin-top: 20px; font-size: 0.85rem; color: var(--wp--preset--color--muted); }
@media (max-width: 781px) {
	.dir-grid, .dir-list { grid-template-columns: 1fr; }
	.dir-top input { max-width: none; }
}

/* =========================================================
 * 내 정보 (비밀번호·이메일 바꾸기)
 * ========================================================= */
.util-account a { font-weight: 700; }
.church-account { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.acc-card { padding: 26px 28px; border: 1px solid var(--wp--preset--color--border); border-radius: 18px; background: #fff; }
.acc-card h2 { margin: 0 0 14px; font-size: 1.3rem; }
.acc-info { margin: 0; }
.acc-info div { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.acc-info div:last-child { border-bottom: 0; }
.acc-info dt { width: 4.5em; flex: none; color: var(--wp--preset--color--muted); }
.acc-info dd { margin: 0; font-weight: 700; word-break: break-all; }
.acc-muted { color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.acc-form label small { font-weight: 400; color: var(--wp--preset--color--muted); }
.acc-form input[type="password"], .acc-form input[type="text"], .acc-form input[type="email"] {
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	font: inherit;
	font-size: 1.1rem;
	font-weight: 400;
}
.acc-form input:focus { outline: none; border-color: var(--wp--preset--color--primary); }
.acc-form .acc-show { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 0.95rem; }
.acc-form .church-btn { align-self: flex-start; }
@media (max-width: 600px) { .acc-card { padding: 20px; } }

/* 말씀 영상: 집회별 게시판 탭 (주일말씀 강조) */
.sermon-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 8px; padding: 0 16px; }
.sermon-tabs a {
	padding: 10px 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.sermon-tabs a:hover { color: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.sermon-tabs a.is-current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.sermon-tabs a.st-sunday { border-color: #E5484D; color: #E5484D; background: #FDECEC; }
.sermon-tabs a.st-sunday:hover { background: #E5484D; color: #fff; }
.sermon-tabs a.st-sunday.is-current { background: #E5484D; border-color: #E5484D; color: #fff; box-shadow: 0 4px 12px rgba(229, 72, 77, .3); }
@media (max-width: 700px) {
	.sermon-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
}

/* 말씀 영상 목록: 어느 집회 글인지 */
.st-badge { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: #EEF1F7; color: #3E4BAA; font-size: 0.8rem; font-weight: 700; }
.st-badge-sunday { background: #FDECEC; color: #E5484D; }

/* 오시는 길: 지도·길찾기 버튼 */
.dir-map { margin: 28px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid #DDE2EC; aspect-ratio: 16 / 9; background: #EEF1F7; }
.dir-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.dir-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.dir-btn { flex: 1 1 200px; padding: 16px 20px; border-radius: 12px; text-align: center; font-weight: 700; text-decoration: none; }
.dir-naver { background: #03C75A; color: #fff; }
.dir-kakao { background: #FEE500; color: #191919; }
.dir-btn:hover { filter: brightness(0.95); }
.info-table td a { color: inherit; }
@media (max-width: 600px) { .dir-map { aspect-ratio: 4 / 3; } }

/* 예배 안내: 주일예배 강조 */
.worship-table tr.is-main td { background: #FDECEC; color: #C8323A; font-weight: 800; font-size: 1.08em; }
.worship-table tr.is-main td:first-child { box-shadow: inset 4px 0 0 #E5484D; }
.worship-main strong { font-weight: 800; }

/* 첫 화면 예배 카드: 강조 */
.home-worship .card.wc-blue { background: #EEF4FF; border-color: #BFD3FB; }
.home-worship .card.wc-blue h3, .home-worship .card.wc-blue .time { color: #2F6FED; font-weight: 800; }
.home-worship .card.wc-red { background: #FDECEC; border-color: #F6C4C6; }
.home-worship .card.wc-red h3, .home-worship .card.wc-red .time { color: #E5484D; font-weight: 800; }
.worship-table tr.is-blue td { background: #EEF4FF; color: #2F6FED; font-weight: 800; }
.worship-table tr.is-blue td:first-child { box-shadow: inset 4px 0 0 #2F6FED; }

/* 교회 일정: 페이지에서 바로 추가·수정 */
.cal-form-wrap { max-width: 720px; margin: 0 auto; }
.cal-form-title { margin: 0 0 18px; font-size: 1.5rem; }
.cal-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.cal-form label small { font-weight: 400; color: var(--wp--preset--color--muted); }
.cal-form input[type="date"], .cal-form input[type="time"] { padding: 12px 14px; border: 1px solid #DDE2EC; border-radius: 10px; font: inherit; font-weight: 400; }
.cal-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cal-form-err { padding: 12px 16px; border-radius: 10px; background: #FDECEC; color: #A93226; }
.cal-del { margin-top: 28px; padding-top: 18px; border-top: 1px solid #E4E8F0; text-align: right; }
@media (max-width: 640px) { .cal-form-row { grid-template-columns: 1fr; } }

/* 메뉴의 성도 공간: 위쪽 '성도 공간' 링크와 같은 색으로 강조 */
.main-nav .nav-members > a, .main-nav .nav-members .wp-block-navigation-item__content { color: var(--wp--preset--color--accent); font-weight: 800; }

/* 말씀 영상: 특별말씀 탭·표시 (보라) */
.sermon-tabs a.st-special { border-color: #7A4FD6; color: #7A4FD6; background: #F3EEFC; }
.sermon-tabs a.st-special:hover, .sermon-tabs a.st-special.is-current { background: #7A4FD6; border-color: #7A4FD6; color: #fff; }
.st-badge-special { background: #F3EEFC; color: #7A4FD6; }

/* 서인천교회 갤러리 (첫 화면 + /gallery/) */
.home-gallery { max-width: var(--wp--style--global--wide-size, 1240px); margin: 64px auto 72px; padding: 0 24px; box-sizing: border-box; }
.gal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.gal-head h2 { margin: 0; font-size: 1.9rem; font-weight: 800; }
.gal-more { font-weight: 700; color: var(--wp--preset--color--primary); text-decoration: none; white-space: nowrap; }
.gal-more:hover { text-decoration: underline; }
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.gal-card { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.gal-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #EEF1F7; }
.gal-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gal-card:hover .gal-img img { transform: scale(1.04); }
.gal-title { font-size: 1.02rem; line-height: 1.45; word-break: keep-all; }
.gal-card:hover .gal-title { color: var(--wp--preset--color--primary); }
.gal-empty { color: var(--wp--preset--color--muted); }
.gal-pages { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.gal-pages .page-numbers { padding: 8px 14px; border: 1px solid #DDE2EC; border-radius: 999px; text-decoration: none; color: inherit; }
.gal-pages .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.gallery-page { padding-top: 48px; padding-bottom: 64px; }
.gal-hero-img img { border-radius: 10px; }
@media (max-width: 1024px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gal-grid { gap: 20px 12px; } .gal-head h2 { font-size: 1.5rem; } .gal-title { font-size: 0.92rem; } }

/* 첫 화면 배너: 배경 사진 + 관리자 버튼 */
.home-banner.has-photo {
	background:
		linear-gradient(90deg, rgba(18, 22, 58, 0.82) 0%, rgba(18, 22, 58, 0.5) 55%, rgba(18, 22, 58, 0.2) 100%),
		var(--banner-img) center / cover no-repeat;
}
.home-banner.has-photo::after { display: none; }
.hb-admin { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 8px; }
.hb-admin-btn { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; background: rgba(0, 0, 0, 0.35); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); }
.hb-admin-btn:hover { background: rgba(0, 0, 0, 0.55); }

/* 첫 화면 배너: 화면 끝까지 꽉 차게 (좌우 여백·둥근 모서리 없음) */
body { overflow-x: clip; }
.home-top {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 0;
}
.home-top .home-top-inner { max-width: none; padding: 0; }
.home-top .home-banner {
	border-radius: 0;
	min-height: 480px;
	padding-left: max(24px, calc((100vw - var(--wp--style--global--wide-size, 1240px)) / 2));
	padding-right: max(24px, calc((100vw - var(--wp--style--global--wide-size, 1240px)) / 2));
}
@media (max-width: 600px) {
	.home-top .home-banner { min-height: 360px; padding-top: 40px; padding-bottom: 40px; }
}

/* 첫 화면 배너: 글자 가운데 정렬 */
.home-top .home-banner { align-items: center; text-align: center; }
.home-top .home-banner .hb-title, .home-top .home-banner .hb-text { margin-left: auto; margin-right: auto; }
.home-top .home-banner .hb-actions { justify-content: center; }
.home-top .home-banner.has-photo {
	background:
		linear-gradient(rgba(18, 22, 58, 0.55), rgba(18, 22, 58, 0.55)),
		var(--banner-img) center / cover no-repeat;
}

/* 첫 화면 배너 버튼: 알약 모양으로 둥글게 */
.home-top .home-banner .hb-btn { border-radius: 999px; padding-left: 30px; padding-right: 30px; }

/* ---------- 주보 입력틀 ---------- */
.bulletin-form { max-width: 820px; margin: 0 auto; }
.bf-note { padding: 12px 16px; border-radius: 10px; background: #EEF4FF; color: #2F5BD3; }
.bf-sec { padding: 20px 0; border-bottom: 1px solid #E4E8F0; display: flex; flex-direction: column; gap: 10px; }
.bf-sec h2 { margin: 0; font-size: 1.15rem; }
.bf-sec h2 small, .bulletin-form label small { font-weight: 400; color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.bulletin-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.bulletin-form input[type="date"] { max-width: 220px; padding: 10px 12px; border: 1px solid #DDE2EC; border-radius: 10px; font: inherit; }
.bulletin-form input[type="text"] { font-size: 1rem !important; font-weight: 400 !important; }
.bf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-order { display: flex; flex-direction: column; gap: 6px; }
.bf-order-head, .bf-order-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; }
.bf-order-head span { font-size: 0.8rem; color: var(--wp--preset--color--muted); font-weight: 700; }
.bf-order-row input { padding: 8px 10px !important; }
@media (max-width: 600px) { .bf-two { grid-template-columns: 1fr; } .bf-order-head, .bf-order-row { grid-template-columns: 1fr 1.4fr 1fr; } }

/* ---------- 주보 화면 (A4 모양) ---------- */
.bulletin-tools { max-width: 794px; margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bulletin-tip { width: 100%; margin: 0; font-size: 0.85rem; color: var(--wp--preset--color--muted); }
.bulletin-sheet { max-width: 794px; margin: 0 auto; padding: 44px 48px 32px; background: #fff; border: 1px solid #E4E8F0; border-radius: 6px; box-shadow: 0 8px 28px rgba(44, 55, 135, 0.08); color: #1E2233; box-sizing: border-box; }
.bs-head { text-align: center; padding-bottom: 18px; border-bottom: 3px double #3E4BAA; margin-bottom: 22px; }
.bs-church { margin: 0; font-size: 2rem; font-weight: 800; color: #2C3787; letter-spacing: 0.08em; }
.bs-date { margin: 6px 0 0; font-weight: 700; }
.bs-motto { margin: 6px 0 0; color: #D04A8A; font-weight: 700; }
.bs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bs-sec { margin-bottom: 20px; break-inside: avoid; }
.bs-sec h3 { margin: 0 0 8px; padding-bottom: 4px; border-bottom: 2px solid #3E4BAA; font-size: 1rem; color: #2C3787; }
.bs-order { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.bs-order th { width: 5.5em; text-align: left; padding: 4px 0; font-weight: 700; }
.bs-order td { padding: 4px 0; }
.bs-order .bs-who { text-align: right; color: #555B70; }
.bs-order tr + tr { border-top: 1px dotted #D5DAE6; }
.bs-st { margin: 0; font-size: 1.15rem; font-weight: 800; }
.bs-sm { margin: 2px 0 0; color: #555B70; font-size: 0.9rem; }
.bs-sum { margin: 8px 0 0; font-size: 0.9rem; line-height: 1.6; }
.bs-verse p { margin: 0; padding: 10px 12px; background: #F4F6FB; border-left: 3px solid #3E4BAA; font-size: 0.92rem; line-height: 1.6; }
.bs-list { margin: 0; padding-left: 1.1em; font-size: 0.9rem; line-height: 1.6; }
.bs-sec > p { margin: 0; font-size: 0.9rem; line-height: 1.6; }
.bs-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #D5DAE6; text-align: center; font-size: 0.8rem; color: #555B70; }
@media (max-width: 700px) { .bulletin-sheet { padding: 24px 18px; } .bs-cols { grid-template-columns: 1fr; gap: 0; } }

/* 인쇄·PDF: 주보만 A4로 */
@media print {
	@page { size: A4; margin: 12mm; }
	body.single-post * { visibility: hidden; }
	body.single-post .bulletin-sheet, body.single-post .bulletin-sheet * { visibility: visible; }
	body.single-post .bulletin-sheet { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
	.bs-cols { grid-template-columns: 1fr 1fr !important; gap: 22px !important; }
	.bulletin-sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print {
	body.single-post .site-header, body.single-post .site-footer, body.single-post .page-hero, body.single-post .post-actions-wrap, body.single-post .bulletin-tools { display: none !important; }
}

/* 예배 안내 페이지: 카드 모양 */
.worship-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.wg-card { padding: 30px 20px; border: 1px solid #E4E8F0; border-radius: 14px; background: #F6F7F9; text-align: center; }
.wg-card p { margin: 0; }
.wg-day { font-size: 0.85rem; font-weight: 700; color: #2F6FED; }
.wg-name { margin-top: 6px !important; font-size: 1.15rem; font-weight: 800; }
.wg-time { margin-top: 10px !important; font-size: 1.6rem; font-weight: 800; color: #2F6FED; }
.wg-place { margin-top: 8px !important; font-size: 0.9rem; color: var(--wp--preset--color--muted); }
@media (max-width: 900px) { .worship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .worship-grid { grid-template-columns: 1fr; } }
/* 예배 카드: 묶음 카드 + 주일예배 강조 */
.wg-multi .wg-name { margin-top: 0 !important; }
.wg-multi .wg-when { margin-top: 4px !important; font-size: 1.15rem; font-weight: 800; color: #2F6FED; }
.wg-multi .wg-when + .wg-name { margin-top: 16px !important; }
.wg-name.wg-red { color: #F0707A; }
/* 주일 묶음 카드: 줄마다 이름(왼쪽, 작게) · 시간(오른쪽) */
.wg-multi .wg-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.wg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 8px; }
.wg-rname { font-size: 0.98rem; font-weight: 700; text-align: left; }
.wg-rname.wg-red { color: #F0707A; }
.wg-rtime { font-size: 1.2rem; font-weight: 800; color: #2F6FED; white-space: nowrap; }
/* 주일 카드: '주일' 글자 연한 빨강 */
.wg-multi .wg-day { color: #E5606A; }
/* 주일 카드: 가로로 2칸 차지, 안쪽 줄은 2열 */
.worship-grid .wg-multi { grid-column: span 2; }
.wg-multi .wg-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; padding: 0 12px; }
@media (max-width: 900px) { .worship-grid .wg-multi { grid-column: 1 / -1; } }
@media (max-width: 520px) { .wg-multi .wg-rows { grid-template-columns: 1fr; } }
/* 주일 카드: 한 줄 전체(카드 3개 너비), 나머지 카드는 그 아래 */
.worship-grid .wg-multi { grid-column: 1 / -1; }
.wg-multi .wg-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .wg-multi .wg-rows { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .wg-multi .wg-rows { grid-template-columns: 1fr; } }
/* 주일 카드: 주일학교·학생회·소그룹모임은 한 단계 작게, 시간도 검정 */
.wg-row.wg-small .wg-rname { font-size: 0.9rem; }
.wg-row.wg-small .wg-rtime { font-size: 1.08rem; color: #1E2233; }
/* 주일 카드: 주요 예배(위, 크게·색 띠) / 나머지 모임(아래, 작게) */
.wg-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 16px auto 0; }
.wg-row.wg-hl { padding: 16px 22px; border-radius: 14px; }
.wg-row.wg-hl .wg-rname { font-size: 1.12rem; font-weight: 800; }
.wg-row.wg-hl .wg-rtime { font-size: 1.45rem; }
.wg-hl-red { background: #FDECEC; box-shadow: inset 0 0 0 1px #F6C4C6; }
.wg-hl-red .wg-rname, .wg-hl-red .wg-rtime { color: #E5484D !important; }
.wg-hl-blue { background: #EEF4FF; box-shadow: inset 0 0 0 1px #BFD3FB; }
.wg-hl-blue .wg-rname { color: #1E2233; }
.wg-hl-blue .wg-rtime { color: #2F6FED; }
.wg-multi .wg-rows.wg-sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid #E1E5EE; }
@media (max-width: 600px) { .wg-main { grid-template-columns: 1fr; } }
/* 주일말씀집회: 배경색 없이 */
.wg-hl-blue { background: transparent; box-shadow: none; }
/* 주일 카드: 시간표형 */
.wg-timeline .wg-tl { max-width: 440px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 12px; }
.wg-timeline .tl-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; align-items: baseline; text-align: left; }
.wg-timeline dt { margin: 0; text-align: right; font-weight: 700; color: #2F6FED; font-size: 1.05rem; white-space: nowrap; }
.wg-timeline dd { margin: 0; font-size: 1.05rem; color: #1E2233; }
.wg-timeline .tl-bold { font-weight: 800; }
.wg-timeline .tl-main { font-weight: 800; color: #E5484D; }
@media (max-width: 520px) { .wg-timeline .tl-row { grid-template-columns: 6.5em 1fr; gap: 12px; } }
/* 주일 시간표 카드: 아래 카드들처럼 큼직하게 */
.wg-timeline { padding-top: 34px; padding-bottom: 34px; }
.wg-timeline .wg-tl { max-width: 620px; margin-top: 22px; gap: 18px; }
.wg-timeline .tl-row { grid-template-columns: 10em 1fr; gap: 28px; align-items: center; }
.wg-timeline dt { font-size: 1.6rem; font-weight: 800; }
.wg-timeline dd { font-size: 1.2rem; font-weight: 800; }
.wg-timeline dd span { font-weight: 800; }
.wg-timeline .tl-main { color: #E5484D; }
@media (max-width: 600px) {
	.wg-timeline .tl-row { grid-template-columns: 7.2em 1fr; gap: 14px; }
	.wg-timeline dt { font-size: 1.2rem; }
	.wg-timeline dd { font-size: 1rem; }
}

/* ===== 예배 안내: 주일 대표 카드 (디자인) ===== */
.wg-feature {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	border-radius: 18px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 92% 10%, rgba(208, 74, 138, 0.45), transparent 45%),
		linear-gradient(125deg, #2C3787 0%, #3E4BAA 60%, #5A45A8 100%);
	box-shadow: 0 16px 36px rgba(44, 55, 135, 0.18);
}
.wf-main { padding: 44px 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.wf-main p { margin: 0; }
.wf-label { font-size: 1rem; font-weight: 800; color: #FFB4CE; letter-spacing: 0.04em; }
.wf-label span { margin-left: 6px; font-size: 0.75rem; opacity: 0.8; letter-spacing: 0.2em; }
.wf-name { margin-top: 10px !important; font-size: 1.5rem; font-weight: 800; }
.wf-time { margin-top: 6px !important; font-size: 3rem; font-weight: 800; line-height: 1.15; }
.wf-place { margin-top: 10px !important; font-size: 0.95rem; opacity: 0.75; }
.wf-list { list-style: none; margin: 0; padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: rgba(255, 255, 255, 0.07); border-left: 1px solid rgba(255, 255, 255, 0.18); }
.wf-item { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.wf-item:last-child { border-bottom: 0; }
.wf-itime { font-size: 1.15rem; font-weight: 800; color: #C9D6FF; white-space: nowrap; }
.wf-iname { font-size: 1.05rem; font-weight: 600; opacity: 0.92; }
.wf-item.is-major .wf-itime { color: #fff; }
.wf-item.is-major .wf-iname { font-weight: 800; opacity: 1; }
@media (max-width: 760px) {
	.wg-feature { grid-template-columns: 1fr; }
	.wf-main { padding: 34px 24px 26px; }
	.wf-time { font-size: 2.4rem; }
	.wf-list { padding: 18px 24px 24px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
	.wf-item { grid-template-columns: 7.5em 1fr; }
}
/* 아래 요일 카드도 조금 더 또렷하게 */
.wg-card { background: #fff; box-shadow: 0 6px 18px rgba(44, 55, 135, 0.06); transition: transform .2s ease, box-shadow .2s ease; }
.wg-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(44, 55, 135, 0.1); }
.wg-time { font-size: 1.9rem; }

/* ===== 예배 안내: 전체 디자인 2차 ===== */
/* 화면 폭을 더 넓게 (본문 폭보다 넓게 펼침) */
.worship-grid {
	width: min(1240px, calc(100vw - 48px));
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	gap: 24px;
	margin: 36px 0;
}
/* 주일 카드: 오른쪽 시간표 줄바꿈 방지 */
.wg-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.wf-main { padding: 52px 40px; }
.wf-time { font-size: 3.4rem; }
.wf-list { padding: 40px 56px; }
.wf-item { grid-template-columns: 9em 1fr; }
.wf-iname { white-space: nowrap; }

/* 요일 카드 */
.wg-card {
	position: relative;
	overflow: hidden;
	padding: 36px 24px 28px;
	border: 1px solid #E6E9F2;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(44, 55, 135, 0.07);
	--wd: #3E4BAA; --wd-soft: #EEF0FA;
}
.wg-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--wd); }
.wg-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--wd-soft); z-index: 0; }
.wg-card > * { position: relative; z-index: 1; }
.wd-wed { --wd: #0E9384; --wd-soft: #E3F5F2; }
.wd-fri { --wd: #7A4FD6; --wd-soft: #F0EAFC; }
.wd-sat { --wd: #2F6FED; --wd-soft: #E8F0FE; }
.wg-card .wg-day { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--wd-soft); color: var(--wd); font-size: 0.9rem; }
.wg-card .wd-en { font-size: 0.68rem; letter-spacing: 0.18em; opacity: 0.75; }
.wg-card .wg-name { margin-top: 16px !important; font-size: 1.25rem; color: #1E2233; }
.wg-card .wg-time { margin-top: 8px !important; font-size: 2.3rem; color: var(--wd); line-height: 1.2; }
.wg-card .wg-place { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px !important; padding-top: 14px; border-top: 1px dashed #DDE2EC; font-size: 0.92rem; color: #5B6275; }
.wg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(44, 55, 135, 0.12); }
@media (max-width: 900px) { .worship-grid { width: calc(100vw - 32px); } }
@media (max-width: 760px) { .wf-list { padding: 18px 24px 24px; } .wf-iname { white-space: normal; } }
@media (max-width: 760px) {
	.wg-feature { grid-template-columns: 1fr; }
	.wf-main { padding: 34px 24px 26px; }
	.wf-time { font-size: 2.6rem; }
	.wf-list { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
	.wf-item { grid-template-columns: 7.5em 1fr; }
}

/* ===== 주일 카드: 요일 카드와 같은 톤 (흰 카드 + 주일 색 = 로즈) ===== */
.wg-feature {
	position: relative;
	--wd: #E5484D; --wd-soft: #FDECEC;
	color: #1E2233;
	background: #fff;
	border: 1px solid #E6E9F2;
	box-shadow: 0 10px 26px rgba(44, 55, 135, 0.07);
}
.wg-feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--wd); z-index: 2; }
.wg-feature::after { content: ""; position: absolute; left: -50px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--wd-soft); z-index: 0; }
.wg-feature > * { position: relative; z-index: 1; }
.wf-label { display: inline-flex; align-self: center; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--wd-soft); color: var(--wd); font-size: 0.95rem; }
.wf-label .wd-en { font-size: 0.7rem; letter-spacing: 0.18em; opacity: 0.75; }
.wf-name { margin-top: 16px !important; font-size: 1.45rem; color: #1E2233; }
.wf-time { color: var(--wd); }
.wf-place { display: inline-flex; align-self: center; align-items: center; gap: 5px; margin-top: 14px !important; padding-top: 14px; border-top: 1px dashed #DDE2EC; font-size: 0.92rem; color: #5B6275; opacity: 1; }
.wf-list { background: #FAFBFD; border-left: 1px solid #E6E9F2; }
.wf-item { border-bottom: 1px solid #E6E9F2; }
.wf-itime { color: #5B6275; }
.wf-iname { color: #1E2233; opacity: 1; font-weight: 600; }
.wf-item.is-major .wf-itime { color: var(--wd); }
.wf-item.is-major .wf-iname { color: #1E2233; font-weight: 800; }
@media (max-width: 760px) { .wf-list { border-left: 0; border-top: 1px solid #E6E9F2; } }
/* 박스 높이 키우기 */
.worship-grid .wg-card { min-height: 300px; padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wg-feature { min-height: 340px; }
.wf-main { padding-top: 60px; padding-bottom: 56px; }
.wf-list { padding-top: 48px; padding-bottom: 48px; }
.wf-item { padding: 18px 0; }
@media (max-width: 760px) { .worship-grid .wg-card { min-height: 0; } .wg-feature { min-height: 0; } }
.wf-label { letter-spacing: 0; font-size: 0.9rem; } .wf-label .wd-ko { font-weight: 800; }

/* ===== 예배 안내: 사이트 톤으로 통일 (남색 + 분홍 포인트, 성도 공간 카드와 같은 모양) ===== */
.wg-card, .wg-feature {
	--wd: var(--wp--preset--color--primary, #3E4BAA);
	--wd-soft: #ECEEFA;
	border: 1px solid #E4E8F1;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(29, 33, 48, 0.04);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wd-wed, .wd-fri, .wd-sat, .wd-mon, .wd-tue, .wd-thu, .wd-etc { --wd: var(--wp--preset--color--primary, #3E4BAA); --wd-soft: #ECEEFA; }
.wg-feature { --wd-accent: var(--wp--preset--color--accent, #D04A8A); }
.wg-card::before, .wg-card::after, .wg-feature::before, .wg-feature::after { content: none; display: none; }
.wg-card:hover, .wg-feature:hover { transform: translateY(-3px); border-color: #C9CFEA; box-shadow: 0 14px 30px rgba(44, 55, 135, 0.08); }
.wg-card .wg-time, .wf-time { color: var(--wd); }
.wg-card .wg-day { background: var(--wd-soft); color: var(--wd); }
/* 주일만 분홍 배지로 포인트 */
.wf-label { background: #FBEAF2; color: var(--wd-accent); }
.wf-list { background: #F7F8FC; border-left: 1px solid #E4E8F1; border-radius: 0 24px 24px 0; }
.wf-item { border-bottom: 1px solid #E4E8F1; }
.wf-itime { color: #5B6275; }
.wf-item.is-major .wf-itime { color: var(--wd); }
.wg-card .wg-place, .wf-place { border-top-color: #E4E8F1; }
@media (max-width: 760px) { .wf-list { border-left: 0; border-top: 1px solid #E4E8F1; border-radius: 0 0 24px 24px; } }
.wf-label .wd-ko { margin-left: 0; letter-spacing: 0; font-size: 0.95rem; opacity: 1; }
.wf-label .wd-en { margin-left: 0; }
.worship-grid .wg-card { min-height: 250px; padding-top: 36px; padding-bottom: 32px; }
.wg-feature { min-height: 300px; }
.wf-main { padding-top: 48px; padding-bottom: 44px; }
/* 예배 안내 카드: 장소(3층 예배당) 숨김 */
.worship-grid .wg-place, .worship-grid .wf-place { display: none !important; }

/* 게시판 첨부 파일 */
.board-files-field { display: flex; flex-direction: column; gap: 8px; }
.board-files-current { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board-files-current li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid #E4E8F1; border-radius: 10px; font-size: 0.92rem; }
.board-files { margin-top: 24px; padding: 16px 18px; border: 1px solid #E4E8F1; border-radius: 14px; background: #F7F8FC; }
.board-files-title { margin: 0 0 8px; font-weight: 700; font-size: 0.95rem; }
.board-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.board-files a { font-weight: 600; color: var(--wp--preset--color--primary); word-break: break-all; }
.board-files span { color: var(--wp--preset--color--muted); font-size: 0.85rem; }
