/**
 * CHURCH — church.css
 * 와인 + 골드 + 크림 · 고딕체 · 플랫(그림자 없음) · 각진 모서리
 * theme.css 뒤에 로드되어 헤더·푸터·홈·공통 부품을 덮어씁니다.
 */
:root {
  --ch-green: #5c2a33;
  --ch-dark: #4a2028;
  --ch-cream: #f7f2e9;
  --ch-earth: #9a7a3a;
  --ch-gold: #c4a35f;
  --ch-head: #4a2028;
  --ch-sub: #7a6a6c;
  --ch-tint: #f3ecdc;
  --ch-sans: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  --ch-num: 'Barlow Condensed', 'Pretendard', 'Noto Sans KR', sans-serif;
  --ch-r: 0;
  --bg-body: #f7f2e9; --bg-card: #fffdf8; --bg-header: #fffdf8; --bg-topbar: #fffdf8;
  --text-main: #2b1c1f; --text-muted: #7a6a6c; --border: #e3d8c3; --hover-row: #f3ecdc;
  --nc-coral: #9a7a3a;
}
html { scroll-behavior: smooth; }
body.ch-body { font-family: var(--ch-sans); font-size: 14px; letter-spacing: -.02em; line-height: 1.65; background: var(--bg-body); color: var(--text-main); }
body.ch-body a { text-decoration: none; }
.ch-wrap { width: min(1248px, calc(100% - 48px)); margin: 0 auto; }
.ch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ch-body *, .ch-body *::before, .ch-body *::after { box-shadow: none !important; }
body.nc-body ::selection { background: #efe3c8; color: #4a2028; }

/* ── 상단 안내 띠 ─────────────────────────────────────── */
.ch-topline { min-height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: #33141b; color: #d9c4b4; font-size: 12px; letter-spacing: .02em; text-align: center; }

/* ── 헤더 ─────────────────────────────────────────────── */
.ch-head { position: sticky; top: 0; z-index: 120; height: 78px; display: flex; align-items: center; background: var(--bg-header); border-bottom: 1px solid var(--border); }
.ch-head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.ch-brand { display: flex; align-items: center; gap: 12px; line-height: 1; color: var(--ch-head); flex-shrink: 0; }
.ch-brand-t { display: flex; flex-direction: column; }
.ch-crest { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #4a2028; color: #e9d29a; border: 1px solid #c4a35f; outline: 1px solid #4a2028; outline-offset: -4px; }
.ch-brand strong { font-size: 20px; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.ch-brand span.ch-brand-t span, .ch-brand-t span { margin-top: 5px; font-family: var(--ch-num); font-size: 10px; font-weight: 600; letter-spacing: .34em; color: var(--ch-earth); }
.ch-logo-pic { display: block; max-height: 44px; width: auto; max-width: 200px; }
.ch-brand-sm strong { font-size: 18px; }

.ch-nav { display: flex; align-items: center; justify-content: center; margin: 0 auto; gap: clamp(16px, 2.2vw, 36px); flex: 1; min-width: 0; height: 100%; }
.ch-nav-item { position: relative; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.ch-nav-link { display: inline-flex; align-items: center; gap: 6px; height: 100%; font-size: 14px; font-weight: 600; letter-spacing: -.02em; color: var(--text-main); transition: color .2s; white-space: nowrap; position: relative; }
.ch-nav-link i:not(.ch-caret) { display: none; }
.ch-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ch-gold); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.ch-nav-item:hover > .ch-nav-link, .ch-nav-item.is-open > .ch-nav-link, .ch-nav-item.is-active > .ch-nav-link { color: var(--ch-head); }
.ch-nav-item:hover > .ch-nav-link::after, .ch-nav-item.is-open > .ch-nav-link::after, .ch-nav-item.is-active > .ch-nav-link::after { transform: scaleX(1); }
.ch-caret { font-size: 9px; opacity: .5; transition: transform .2s; }
.ch-nav-item:hover .ch-caret, .ch-nav-item.is-open .ch-caret { transform: rotate(180deg); }
.ch-drop { display: none; position: absolute; top: calc(100% - 1px); left: 50%; transform: translateX(-50%); min-width: 190px; padding: 6px; background: var(--bg-card); border: 1px solid var(--border); border-top: 2px solid var(--ch-gold); z-index: 200; }
.ch-nav-item:hover > .ch-drop, .ch-nav-item:focus-within > .ch-drop, .ch-nav-item.is-open > .ch-drop { display: block; }
.ch-drop-link { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--text-main); white-space: nowrap; transition: background .15s, color .15s; }
.ch-drop-link i { font-size: 11px; opacity: .55; width: 14px; text-align: center; }
.ch-drop-link:hover { background: var(--hover-row); color: var(--ch-head); }
.ch-drop-link.is-active { background: var(--ch-tint); color: var(--ch-head); font-weight: 700; }
.ch-new, .nc-new { display: inline-flex; align-items: center; justify-content: center; margin-left: 5px; padding: 1px 4px; background: var(--ch-gold); color: #33141b; font-size: 9px; font-weight: 800; line-height: 1.25; vertical-align: middle; }

.ch-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ch-iconbtn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--text-main); font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; flex-shrink: 0; }
.ch-iconbtn:hover { border-color: var(--border); background: var(--hover-row); }
.ch-actions .nc-iconbtn { width: 38px; height: 38px; border-radius: 0; border-color: transparent; }
.ch-actions .nc-iconbtn:hover { border-color: var(--border); background: var(--hover-row); }
.ch-textbtn { padding: 0 8px; font-size: 12px; color: var(--text-main); white-space: nowrap; transition: color .15s; }
.ch-textbtn:hover { color: var(--ch-earth); }
.ch-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--border); font-size: 12px; color: var(--text-main); transition: border-color .15s; }
.ch-chip:hover { border-color: var(--ch-gold); }
.ch-cta { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; background: #4a2028; color: #e9d29a !important; border: 1px solid #c4a35f; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.ch-cta i { font-size: 10px; }
.ch-cta:hover { background: #5c2a33; }
.ch-burger { display: none; }
.ch-actions .nc-notif-badge { border-color: var(--bg-header); }
.ch-actions .nc-notif-panel { border-color: var(--border); }

/* ── 모바일 메뉴 (공용 nc-mob 구조 위에 톤만 맞춤) ────────── */
.nc-mob-panel { border-left: 1px solid var(--border); }
.nc-mob-head { min-height: 64px; }
.nc-search-mob { border-bottom: 1px solid var(--border); }
.nc-mob-link { font-family: var(--ch-sans); font-size: 14px; font-weight: 600; }
.nc-mob-ava, .nc-mob-user-info em { background: #efe3c8; color: #4a2028; border-radius: 0; }
.nc-mob-foot a { border-radius: 0; }
.ch-mob-cta { margin: 6px 18px 0; padding: 14px 16px; background: #4a2028; color: #e9d29a !important; border: 1px solid #c4a35f; justify-content: center; font-weight: 700; }
.ch-mob-cta i { color: #e9d29a; }

/* ── 본문 폭 / 공용 부품 톤 ──────────────────────────────── */
.nc-main { padding-top: 40px; padding-bottom: 72px; }
.ch-main-home { padding: 0; }
.nc-btn, .nc-chip, .nc-iconbtn { border-radius: 0; }
.nc-btn { padding: 11px 18px; font-size: 13px; font-weight: 700; }
.nc-btn-ink { background: #4a2028; border-color: #c4a35f; color: #e9d29a; }
.nc-btn-ink:hover { background: #5c2a33; border-color: #c4a35f; color: #e9d29a; }
html body.dark .nc-btn-ink { background: #c4a35f; border-color: #c4a35f; color: #33141b; }
.nc-section-head h2, .nc-error h1, .nc-error-num { font-family: var(--ch-sans); font-weight: 800; letter-spacing: -.04em; }
.nc-error { text-align: center; padding: 80px 0 60px; }
.nc-error-num { font-size: 72px; line-height: 1; margin-bottom: 18px; color: var(--ch-earth); font-family: var(--ch-num); }
.nc-error p { color: var(--text-muted); line-height: 1.9; margin: 14px 0 28px; }
.nc-side-title { font-family: var(--ch-sans); font-weight: 800; }
.nc-side-block { border-top-color: #4a2028; }
.nc-side-dot { background: var(--ch-gold); border-color: var(--ch-gold); }
.nc-flash { border-radius: 0; }

/* ── 푸터 ─────────────────────────────────────────────── */
.ch-footer { background: #2b1017; color: #cdb9b0; padding: 40px 0; margin-top: auto; border-top: 3px solid #c4a35f; }
.ch-foot-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.ch-footer .ch-brand { color: #fff; }
.ch-footer .ch-brand strong { color: #fff; }
.ch-footer .ch-brand-t span { color: #d9bf85; }
.ch-foot-desc { margin: 16px 0 0; color: #b9a29a; font-size: 12px; line-height: 1.9; max-width: 340px; }
.ch-foot-sns { display: flex; gap: 8px; margin-top: 16px; }
.ch-foot-sns a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(217,191,133,.35); color: #e9d29a; font-size: 14px; transition: background .15s; }
.ch-foot-sns a:hover { background: rgba(217,191,133,.12); }
.ch-foot-copy { color: #b9a29a; font-size: 11px; line-height: 1.95; text-align: right; }
.ch-foot-legal { display: inline-flex; gap: 14px; }
.ch-foot-legal a { color: #e9d29a; }
.ch-foot-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ═══ 홈 ═══════════════════════════════════════════════ */
.ch-eyebrow, .ch-kicker { font-family: var(--ch-num); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ch-earth); }
.ch-section-wrap { width: min(1248px, calc(100% - 48px)); margin: 0 auto; }

/* 히어로 */
.ch-hero { position: relative; display: flex; align-items: center; min-height: 520px; height: min(600px, calc(100vh - 112px)); overflow: hidden; color: #fff; background: #4a2028; border-bottom: 3px solid #c4a35f; }
.ch-hero::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(233,210,154,.45); pointer-events: none; z-index: 2; }
.ch-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #5c2a33; transform: scale(1.01); }
.ch-hero-in { position: relative; width: min(1248px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 20px; }
.ch-eyebrow { color: #e9d29a; }
.ch-hero h1 { margin: 16px 0 16px; font-weight: 800; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.3; letter-spacing: -.06em; color: #fff; max-width: 640px; }
.ch-hero h1 .l2 { color: #e9d29a; }
.ch-hero p { margin: 0; max-width: 520px; color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.9; }
.ch-hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.ch-btn-light { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; height: 42px; padding: 0 22px; background: #c4a35f; color: #33141b !important; font-size: 13px; font-weight: 700; border: 1px solid #c4a35f; transition: background .2s; }
.ch-btn-light:hover { background: #d3b673; }
.ch-text-link { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border: 1px solid #c4a35f; color: #e9d29a; font-size: 13px; font-weight: 700; transition: background .2s, color .2s; }
.ch-text-link:hover { background: #c4a35f; color: #33141b; }
.ch-hero-note { position: absolute; z-index: 3; left: max(24px, calc((100% - 1248px) / 2)); bottom: 0; background: #c4a35f; color: #33141b; padding: 10px 22px; font-family: var(--ch-num); font-weight: 700; font-size: 14px; letter-spacing: .28em; }

/* 성경 구절 띠 · 안내 4칸 */
.ch-scr { background: #c4a35f; color: #33141b; text-align: center; padding: 13px 20px; }
.ch-scr q { quotes: none; font-size: 16px; font-weight: 700; letter-spacing: -.04em; }
.ch-scr span { margin-left: 14px; font-family: var(--ch-num); font-weight: 600; font-size: 12px; letter-spacing: .24em; }
.ch-info { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.ch-info-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.ch-info a { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-left: 1px solid var(--border); color: inherit; }
.ch-info a:first-child { border-left: 0; padding-left: 0; }
.ch-info svg { flex: none; stroke: var(--ch-earth); }
.ch-info small { display: block; font-size: 12px; font-weight: 700; color: var(--ch-earth); }
.ch-info b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.04em; color: var(--ch-head); }
.ch-info a:hover { background: var(--hover-row); }

/* 섹션 */
.ch-sec { position: relative; padding: 44px 0 0; }
.ch-sec:last-of-type { padding-bottom: 8px; }
.ch-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.ch-sec h2 { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.06em; line-height: 1.35; color: var(--ch-head); }
.ch-sec-desc { max-width: 380px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.ch-more { font-size: 12px; font-weight: 700; color: var(--ch-head); border-bottom: 1px solid var(--ch-gold); white-space: nowrap; }

/* 환영 3카드 */
.ch-wl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.ch-wl-photo { min-height: 340px; background-size: cover; background-position: center; background-color: #e8dcc3; border-top: 3px solid #c4a35f; position: relative; }
.ch-wl-copy { display: flex; flex-direction: column; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid #4a2028; padding: 30px 32px; }
.ch-wl-copy h2 { margin: 8px 0 0; font-size: 22px; line-height: 1.45; }
.ch-wl-copy p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.85; color: var(--text-muted); }
.ch-small-link { margin-top: 16px; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ch-head); border-bottom: 1px solid var(--ch-gold); }
.ch-tabs-box { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid #4a2028; min-width: 0; }
.ch-tabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.ch-tabs button { padding: 14px 0 9px; font: 700 13px var(--ch-sans); color: var(--text-muted); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.ch-tabs button.is-on { color: var(--ch-head); border-bottom-color: var(--ch-gold); }
.ch-tabs a.ch-tabs-more { margin-left: auto; padding-top: 15px; font-size: 12px; color: var(--ch-earth); }
.ch-pane { display: none; flex: 1; flex-direction: column; }
.ch-pane.is-on { display: flex; }
.ch-empty { margin: auto; padding: 24px; color: var(--text-muted); font-size: 13px; text-align: center; }

/* 예배 카드 5장 */
.ch-cds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ch-cd { background: #4a2028; border-top: 2px solid #c4a35f; padding: 20px 20px 18px; color: #fff; }
.ch-cd .ch-num { display: block; font-family: var(--ch-num); font-size: 11px; font-weight: 600; letter-spacing: .26em; color: #d9bf85; text-transform: uppercase; }
.ch-cd h3 { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.04em; }
.ch-cd .ch-time { margin-top: 10px; font-family: var(--ch-num); font-weight: 600; font-size: 30px; line-height: 1; color: #e9d29a; }
.ch-cd p { margin: 8px 0 0; font-size: 12px; color: #cdb9a8; }

/* 사역 타일 */
.ch-tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ch-tile { position: relative; height: 220px; display: flex; align-items: flex-end; overflow: hidden; background-color: #5c2a33; background-size: cover; background-position: center; color: #fff; }
.ch-tile:nth-child(2) { background-color: #4a2028; }
.ch-tile:nth-child(3) { background-color: #6b4a2a; }
.ch-tile:nth-child(4) { background-color: #3b1a21; }
.ch-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,16,23,.9) 0%, rgba(43,16,23,.12) 66%); }
.ch-tile > div { position: relative; z-index: 1; padding: 16px 18px; }
.ch-tile small { font-family: var(--ch-num); font-weight: 600; font-size: 11px; letter-spacing: .26em; color: #d9bf85; text-transform: uppercase; }
.ch-tile h3 { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.04em; }
.ch-tile p { margin: 2px 0 0; font-size: 12px; color: #e3d2cb; }
.ch-tile:hover { outline: 1px solid #c4a35f; outline-offset: -6px; }

/* 말씀 + 앨범 */
.ch-sa { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; }
.ch-card { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid #4a2028; padding: 16px 18px 18px; min-width: 0; }
.ch-card.gd { border-top-color: #c4a35f; }
.ch-card-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ch-card-h h3 { margin: 0; font-size: 14px; font-weight: 800; color: var(--ch-head); }
.ch-card-h a { font-size: 12px; font-weight: 700; color: var(--ch-earth); }
.ch-album { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 100px 100px; gap: 8px; }
.ch-album a, .ch-album span { display: block; background-size: cover; background-position: center; background-color: #e8dcc3; min-height: 0; }
.ch-album > :first-child { grid-column: span 2; grid-row: span 2; }
.ch-album-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* 방문 안내 */
.ch-vis { display: grid; grid-template-columns: 1fr 420px; background: #4a2028; border: 1px solid #c4a35f; outline: 1px solid rgba(196,163,95,.4); outline-offset: -8px; margin-top: 44px; color: #fff; }
.ch-vis-l { padding: 36px 44px; }
.ch-vis h2 { margin: 8px 0 0; font-size: 24px; line-height: 1.4; font-weight: 800; letter-spacing: -.06em; color: #fff; }
.ch-vis .ch-kicker { color: #d9bf85; }
.ch-vis p { margin: 10px 0 0; max-width: 520px; color: #dcc9c3; line-height: 1.85; }
.ch-vis-btns { display: flex; gap: 10px; margin-top: 20px; }
.ch-vis-img { min-height: 210px; background-size: cover; background-position: center; background-color: #5c2a33; }
.ch-vis-img iframe { width: 100%; height: 100%; min-height: 210px; border: 0; display: block; }
.ch-home-tail { height: 48px; }

/* ═══ 다크모드 ═════════════════════════════════════════ */
html body.dark { --bg-body: #1a0f12; --bg-header: #1d1114; --bg-card: #251619; --border: #3d2a2e; --text-main: #f0e6e1; --text-muted: #b9a39c; --hover-row: #2d1b1f; --ch-head: #e9d29a; --ch-sub: #b9a39c; --ch-tint: #2d1b1f; --ch-earth: #d9bf85; }
html body.dark .ch-crest { background: #4a2028; }
html body.dark .ch-cd, html body.dark .ch-vis { background: #3b1a21; }
html body.dark .ch-footer { background: #140a0d; }
html body.dark .ch-cta, html body.dark .ch-mob-cta { background: #4a2028 !important; color: #e9d29a !important; }
html body.dark .ch-btn-light { background: #c4a35f !important; color: #33141b !important; }
html body.dark .ch-wl-photo, html body.dark .ch-album a, html body.dark .ch-album span { background-color: #3d2a2e; }
html body.dark .ch-info svg { stroke: #d9bf85; }

/* ═══ 반응형 ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ch-nav { gap: clamp(12px, 1.5vw, 22px); }
  .ch-textbtn.ch-hide-sm { display: none; }
  .ch-cds { grid-template-columns: repeat(3, 1fr); }
  .ch-wl { grid-template-columns: 1fr 1fr; }
  .ch-wl-photo { grid-column: span 2; min-height: 260px; }
}
.ch-head.ch-crowded .ch-nav { display: none; }
.ch-head.ch-crowded #dxMobBtn.ch-burger { display: inline-grid !important; }
.ch-head.ch-crowded .ch-head-in { gap: 12px; }
.ch-head.ch-crowded .ch-actions { margin-left: auto; }
@media (max-width: 960px) {
  .ch-nav { display: none; }
  #dxMobBtn.ch-burger { display: inline-grid !important; }
  .ch-head-in { gap: 12px; }
  .ch-actions { margin-left: auto; }
  .ch-hide-sm { display: none !important; }
  .ch-info-in { grid-template-columns: 1fr 1fr; }
  .ch-info a { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .ch-info a:nth-child(-n+2) { border-top: 0; }
  .ch-sa, .ch-vis { grid-template-columns: 1fr; }
  .ch-tl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .ch-wrap, .ch-hero-in, .ch-section-wrap { width: calc(100% - 32px); }
  .nc-shell { padding-left: 16px; padding-right: 16px; }
  .ch-topline { font-size: 11px; }
  .ch-head { height: 66px; }
  .ch-cta { padding: 0 12px; font-size: 12px; }
  .ch-hero { min-height: 500px; height: 72vh; }
  .ch-hero::after { inset: 10px; }
  .ch-hero h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .ch-hero p { font-size: 13px; }
  .ch-hero-note { left: 16px; font-size: 12px; padding: 8px 14px; }
  .ch-scr q { font-size: 14px; }
  .ch-scr span { display: block; margin: 4px 0 0; }
  .ch-sec { padding-top: 32px; }
  .ch-sec-head { display: block; }
  .ch-sec-desc { margin-top: 10px; }
  .ch-wl { grid-template-columns: 1fr; gap: 16px; }
  .ch-wl-photo { grid-column: auto; min-height: 220px; }
  .ch-cds { grid-template-columns: 1fr 1fr; }
  .ch-vis-l { padding: 28px 24px; }
  .ch-vis-img { min-height: 220px; }
  .ch-foot-in { align-items: flex-start; flex-direction: column; }
  .ch-foot-copy { text-align: left; }
  .nc-main { padding-top: 24px; padding-bottom: 56px; }
}
@media (max-width: 480px) {
  .ch-brand strong { font-size: 18px; }
  .ch-crest { width: 34px; height: 34px; }
  .ch-cta { display: none; }
  .ch-hero-actions { flex-wrap: wrap; }
  .ch-info-in { grid-template-columns: 1fr; }
  .ch-info a { border-top: 1px solid var(--border) !important; }
  .ch-info a:first-child { border-top: 0 !important; }
  .ch-tl { grid-template-columns: 1fr; }
  .ch-tile { height: 180px; }
  .ch-cds { grid-template-columns: 1fr; }
  .ch-album { grid-template-rows: 80px 80px; }
}

/* ── 히어로 슬라이더 ────────────────────────────────── */
.ch-hs-slides { position: absolute; inset: 0; }
.ch-hs-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.ch-hs-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.ch-hs-slide .ch-hero-bg { transform: scale(1.06); transition: transform 7s ease-out; }
.ch-hs-slide.is-on .ch-hero-bg { transform: scale(1.01); }
.ch-hero-shade { position: absolute; inset: 0; pointer-events: none; }
.ch-hs-video { position: absolute; inset: 0; overflow: hidden; background: #2b1017; opacity: 0; transition: opacity .8s ease; }
.ch-hs-video.is-live { opacity: 1; }
.ch-hs-video iframe { position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%); pointer-events: none; }
.ch-hs-slide .ch-hero-in > * { opacity: 0; transform: translateY(14px); transition: opacity .8s ease .25s, transform .8s ease .25s; }
.ch-hs-slide.is-on .ch-hero-in > * { opacity: 1; transform: none; }
.ch-hs-ctl { position: absolute; z-index: 4; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(1248px, calc(100% - 48px)); display: flex; align-items: center; justify-content: flex-end; gap: 20px; pointer-events: none; }
.ch-hs-ctl > * { pointer-events: auto; }
.ch-hs-dots { display: flex; gap: 8px; }
.ch-hs-dot { position: relative; width: 44px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ch-hs-dot::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255,255,255,.4); }
.ch-hs-dot i { position: absolute; left: 0; top: 10px; height: 2px; width: 0; background: #e9d29a; }
.ch-hs-dot.is-on i { width: 100%; animation: chhsFill var(--ch-dur, 6s) linear forwards; }
.ch-hs-dot.is-static.is-on i { animation: none; width: 100%; }
.ch-hs-dot:focus-visible, .ch-hs-btns button:focus-visible { outline: 2px solid #e9d29a; outline-offset: 2px; }
.ch-hs.is-paused .ch-hs-dot.is-on i { animation-play-state: paused; }
@keyframes chhsFill { from { width: 0; } to { width: 100%; } }
.ch-hs-btns { display: flex; align-items: center; gap: 6px; color: #fff; }
.ch-hs-count { margin-right: 12px; font-family: var(--ch-num); font-size: 14px; letter-spacing: .16em; color: rgba(255,255,255,.8); }
.ch-hs-count b { color: #fff; font-weight: 600; }
.ch-hs-btns button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(233,210,154,.7); background: rgba(43,16,23,.25); color: #e9d29a; font-size: 11px; cursor: pointer; transition: background .2s, color .2s; }
.ch-hs-btns button:hover { background: #c4a35f; color: #33141b; }
@media (max-width: 760px) {
  .ch-hs-ctl { width: calc(100% - 32px); bottom: 34px; }
  .ch-hs-dot { width: 28px; }
  .ch-hs-count { display: none; }
  .ch-hs-btns button { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-hs-slide, .ch-hs-slide.is-on { transition: none; }
  .ch-hs-slide .ch-hero-bg, .ch-hs-slide .ch-hero-in > * { transition: none; transform: none; opacity: 1; }
}
html body.dark .ch-hs-btns button { background: rgba(43,16,23,.4) !important; color: #e9d29a !important; border-color: rgba(233,210,154,.7) !important; }
html body.dark .ch-hs-btns button:hover { background: #c4a35f !important; color: #33141b !important; }

/* ── 최신글 스킨 (board_latest) ───────────────────────── */
.chl-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.chl-list li { flex: 1; display: flex; }
.chl-list a { flex: 1; display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-main); }
.chl-list li:last-child a { border-bottom: 0; }
.chl-list .c { font-size: 11px; font-weight: 700; color: var(--ch-earth); }
.chl-list b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chl-list b s { text-decoration: none; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--ch-gold); }
.chl-list .d { font-size: 12px; color: var(--text-muted); }
.chl-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.chl-new { display: inline-block; margin-left: 6px; padding: 0 4px; background: #c4a35f; color: #33141b; font-size: 9px; font-weight: 800; vertical-align: 1px; }
.chl-video { display: block; color: inherit; }
.chl-video .th { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; background: #4a2028 center/cover no-repeat; }
.chl-video .pl { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #c4a35f; }
.chl-video h4 { margin: 12px 0 0; font-size: 15px; font-weight: 700; letter-spacing: -.04em; line-height: 1.45; color: var(--ch-head); }
.chl-video p { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.chl-video + .chl-video { margin-top: 0; }
.chl-sub { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.chl-sub li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-main); }
.chl-sub .d { color: var(--text-muted); font-size: 12px; flex: none; }
.chl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chl-grid a { display: block; color: inherit; }
.chl-grid .th { aspect-ratio: 4 / 3; background: #e8dcc3 center/cover no-repeat; border-top: 3px solid #c4a35f; }
.chl-grid b { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: -.03em; }
.chl-grid small { font-size: 12px; color: var(--text-muted); }
.chl-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chl-news a { display: block; background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid #4a2028; padding: 18px 20px; color: inherit; }
.chl-news small { font-family: var(--ch-num); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--ch-earth); text-transform: uppercase; }
.chl-news b { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; letter-spacing: -.04em; line-height: 1.5; color: var(--ch-head); }
.chl-news p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--text-muted); }
.chl-news a:hover { border-top-color: #c4a35f; }
.chl-empty { margin: auto; padding: 24px; font-size: 13px; color: var(--text-muted); text-align: center; }
@media (max-width: 800px) { .chl-grid { grid-template-columns: 1fr 1fr; } .chl-news { grid-template-columns: 1fr; } }
