@charset "UTF-8";

/* ==========================================================================
   Korean Church 5-Template Agency Suite — Shell & Global Foundations
   Templates: editorial (A) | megachurch (B) | minimal (C) | arch (D) | heritage (E)
   ========================================================================== */

:root {
  --ch-primary: #1e3a6d;
  --ch-primary-dark: #12264a;
  --ch-primary-soft: #eef3fb;
  --ch-accent: #2d6cdf;
  --ch-cta: #c98a2c;

  --chx-bg: #ffffff;
  --chx-surface: #ffffff;
  --chx-surface-alt: #f8fafc;
  --chx-border: #e2e8f0;
  --chx-text: #111827;
  --chx-muted: #52525b;
  --chx-font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --chx-font-display: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --chx-radius: 10px;
  --chx-container: 1320px;
}

/* Override legacy default.css 62.5% & layout.css 55% !important root sizing */
html {
  font-size: 16px !important;
  scroll-padding-top: 118px;
}

body.ch-tpl {
  margin: 0;
  padding: 0;
  font-family: var(--chx-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--chx-text);
  background: var(--chx-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Safely neutralize layout.css `* { font-size: 18px }` with 0-specificity :where()
   so component/class rules always win without colliding with legacy skins. */
:where(body.ch-tpl *),
:where(body.ch-tpl *::before),
:where(body.ch-tpl *::after) {
  font-size: inherit;
  box-sizing: border-box;
}

/* Allow position:sticky inside .all_wrap while preventing horizontal overflow */
body.ch-tpl .all_wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
  contain: none !important;
  position: relative;
}

/* Template-Specific Design Tokens */
body.ch-tpl--editorial {
  --chx-bg: #FAF8F5;
  --chx-surface: #FFFFFF;
  --chx-surface-alt: #F3EFE7;
  --chx-border: #E6DFD3;
  --chx-text: #1C1917;
  --chx-muted: #57534E;
  --chx-font-display: 'Noto Serif KR', Georgia, serif;
  --chx-radius: 8px;
}

body.ch-tpl--megachurch {
  --chx-bg: #F6F8FB;
  --chx-surface: #FFFFFF;
  --chx-surface-alt: #EDF2F8;
  --chx-border: #DCE3EE;
  --chx-text: #0F172A;
  --chx-muted: #475569;
  --chx-font-display: 'Paperlogy-7Bold', 'Pretendard', sans-serif;
  --chx-radius: 8px;
}

body.ch-tpl--minimal {
  --chx-bg: #FFFFFF;
  --chx-surface: #FFFFFF;
  --chx-surface-alt: #FAFAFA;
  --chx-border: #E4E4E7;
  --chx-text: #111111;
  --chx-muted: #52525B;
  --chx-font-display: 'Pretendard', sans-serif;
  --chx-radius: 2px;
}

body.ch-tpl--arch {
  --chx-bg: #F2F4F7;
  --chx-surface: #FFFFFF;
  --chx-surface-alt: #E9EEF5;
  --chx-border: rgba(15, 23, 42, 0.09);
  --chx-text: #0F172A;
  --chx-muted: #475569;
  --chx-font-display: 'Pretendard', sans-serif;
  --chx-radius: 18px;
}

body.ch-tpl--heritage {
  --chx-bg: #FBF9F4;
  --chx-surface: #FFFFFF;
  --chx-surface-alt: #F5F0E6;
  --chx-border: #E0D7C5;
  --chx-text: #1C1917;
  --chx-muted: #57534E;
  --chx-font-display: 'Noto Serif KR', Georgia, serif;
  --chx-radius: 4px;
}

/* ==========================================================================
   Preserve Crisp Typography on Subpages, Boards, Member Skins & Admin
   (Normalize legacy rem values that previously assumed 1rem = 10px)
   ========================================================================== */

body.ch-tpl:not(.ch-home) .common {
  padding: 52px 0 84px;
}
@media (max-width: 1024px) {
  body.ch-tpl:not(.ch-home) .common {
    padding: 32px 0 60px;
  }
  body.ch-tpl main > .gdch-live-banner:first-child {
    margin-top: 0 !important;
  }
  body.ch-tpl .write-wrap {
    padding-top: 24px !important;
  }
}

body.ch-tpl .ch-sub-wrap,
body.ch-tpl .subpage-section,
body.ch-tpl #bo_list,
body.ch-tpl #bo_gall,
body.ch-tpl #bo_v,
body.ch-tpl #bo_w,
body.ch-tpl .mbskin {
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
}

body.ch-tpl .adm-wrap {
  font-size: 15.5px;
  line-height: 1.6;
}
body.ch-tpl .jbs-shell {
  font-size: 14.5px;
  line-height: 1.5;
}

body.ch-tpl .title h2 { font-size: 36px; line-height: 1.25; }
body.ch-tpl .title p { font-size: 17px; line-height: 1.6; }
body.ch-tpl .titleM { font-size: 32px; line-height: 1.3; }
body.ch-tpl .titleL { font-size: 26px; line-height: 1.35; }
body.ch-tpl .titleS { font-size: 17px; line-height: 1.6; }
body.ch-tpl .bo_title { font-size: 26px; }
body.ch-tpl .stitle { margin-bottom: 44px; }

/* Board skins rem -> px normalization */
body.ch-tpl .tbl_head01 thead th,
body.ch-tpl .tbl_head01 thead th a {
  font-size: 15px;
}
body.ch-tpl .tbl_head01 td {
  font-size: 15.5px;
}
body.ch-tpl #bo_list .bo_tit a {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
body.ch-tpl #bo_v_title .bo_v_tit {
  font-size: 26px;
  line-height: 1.38;
  padding-top: 20px;
  padding-bottom: 22px;
  border-top: 2px solid var(--ch-primary, #1e3a6d);
}
body.ch-tpl .bo_v_topcon .bo_v_cate {
  font-size: 14px;
}
body.ch-tpl .view_btn {
  font-size: 14px;
}
body.ch-tpl #bo_v_con {
  font-size: 16.5px;
  line-height: 1.85;
  color: #1f2937;
}
body.ch-tpl #bo_w .bo_w_name {
  font-size: 24px;
}
body.ch-tpl .mbskin #login_fs h2 {
  font-size: 24px;
}
body.ch-tpl #fregister p {
  font-size: 16px;
}
body.ch-tpl .ch-sub-wrap .c_content,
body.ch-tpl .ch-sub-wrap .c_content p,
body.ch-tpl .ch-sub-wrap .c_content li {
  font-size: 16.5px;
  line-height: 1.85;
}
body.ch-tpl .greeting_info li p,
body.ch-tpl .greeting_info li span,
body.ch-tpl .mission_info li p,
body.ch-tpl .mission_info li span {
  font-size: 16px;
}
body.ch-tpl .churchedu_page .churchedu_box h3 { font-size: 24px; }
body.ch-tpl .churchedu_page .churchedu_box p { font-size: 17px; }
body.ch-tpl #bo_list.width,
body.ch-tpl #bo_gall.width,
body.ch-tpl #bo_v.width {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  body.ch-tpl .titleM { font-size: 25px; }
  body.ch-tpl .titleL { font-size: 21px; }
  body.ch-tpl #bo_v_title .bo_v_tit { font-size: 21px; }
  body.ch-tpl #bo_list.width,
  body.ch-tpl #bo_gall.width,
  body.ch-tpl #bo_v.width {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Senior Large-Text Mode Enhancements */
html.gdch-large-text body.ch-tpl .ch-sub-wrap p,
html.gdch-large-text body.ch-tpl .ch-sub-wrap td,
html.gdch-large-text body.ch-tpl .ch-sub-wrap th,
html.gdch-large-text body.ch-tpl .ch-sub-wrap li {
  font-size: 20px !important;
  line-height: 1.85 !important;
}
html.gdch-large-text body.ch-tpl #bo_list .bo_tit a {
  font-size: 20px !important;
}

/* ==========================================================================
   Shared Shell Layout Helpers & Icons
   ========================================================================== */

.chx-container {
  width: 100%;
  max-width: var(--chx-container, 1320px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 640px) {
  .chx-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.chx-svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.chx-sr-only,
.sound_only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Auto Logo Variants */
.chx-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.chx-logo-img {
  display: block;
  width: auto;
  max-height: 48px;
  height: auto;
  object-fit: contain;
}
.chx-logo-img--footer {
  max-height: 54px;
}

.chx-auto-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  line-height: 1.15;
  text-align: left;
}
.chx-auto-logo__mark {
  display: block;
  flex-shrink: 0;
}
.chx-auto-logo__text {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.chx-auto-logo__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ch-primary-dark, #12264a);
  white-space: nowrap;
}
.chx-auto-logo__sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--chx-muted, #57534E);
  line-height: 1.1;
  white-space: nowrap;
}
.chx-auto-logo__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--ch-primary-soft, #eef3fb);
  color: var(--ch-primary, #1e3a6d);
}

/* Template-specific logo typography */
.chx-auto-logo--editorial .chx-auto-logo__name {
  font-family: 'Noto Serif KR', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #1C1917;
}
.chx-auto-logo--editorial .chx-auto-logo__sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #78716C;
}

.chx-auto-logo--megachurch .chx-auto-logo__name {
  font-family: 'Paperlogy-7Bold', 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: #0F2240;
}

.chx-auto-logo--minimal .chx-auto-logo__name {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #111111;
}
.chx-auto-logo--minimal .chx-auto-logo__sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #52525B;
}

.chx-auto-logo--arch .chx-auto-logo__name {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: #0F172A;
}
.chx-auto-logo--arch .chx-auto-logo__tag {
  border-radius: 999px;
  padding: 2px 7px;
}

.chx-auto-logo--heritage .chx-auto-logo__name {
  font-family: 'Noto Serif KR', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #161922;
}
.chx-auto-logo--heritage .chx-auto-logo__sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #7C6A4E;
}

/* Footer logo color inversion */
.chx-auto-logo--footer .chx-auto-logo__name {
  color: #FFFFFF !important;
}
.chx-auto-logo--footer .chx-auto-logo__sub {
  color: rgba(255, 255, 255, 0.72) !important;
}
.chx-auto-logo--footer .chx-auto-logo__tag {
  background: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Header Action Buttons & Auth Pills */
.chx-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--chx-text);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.chx-icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ch-primary);
}
.chx-icon-btn.font-on {
  background: var(--ch-primary);
  color: #ffffff;
  border-color: var(--ch-primary);
}

.chx-auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chx-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--chx-border);
  background: var(--chx-surface);
  color: var(--chx-text);
  transition: all 0.16s ease;
}
.chx-auth-pill.is-admin {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #ffffff;
}
.chx-auth-pill:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Desktop Header Visibility vs Mobile Bar Visibility
   ========================================================================== */

.chx-mob-bar {
  display: none;
}

@media (max-width: 1024px) {
  .chx-hd {
    display: none !important;
  }
  .chx-mob-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 950;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 62px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--chx-border);
  }
  body.ch-tpl--editorial .chx-mob-bar {
    background: rgba(250, 248, 245, 0.96);
  }
  body.ch-tpl--heritage .chx-mob-bar {
    background: #FBF9F4;
    border-bottom: 1px solid #DDD2BE;
  }
  body.ch-tpl--minimal .chx-mob-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #E4E4E7;
  }
  .chx-mob-bar .chx-auto-logo__name {
    font-size: 17px;
  }
  .chx-mob-bar .chx-auto-logo__sub {
    display: none;
  }
  .chx-mob-bar .chx-logo-img {
    max-height: 36px;
  }
  .chx-mob-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .chx-mob-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--chx-border);
    background: var(--chx-surface);
    color: var(--chx-text);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .chx-mob-chip.is-primary {
    background: var(--ch-primary);
    border-color: var(--ch-primary);
    color: #ffffff;
  }
  body.ch-tpl--minimal .chx-mob-chip {
    border-radius: 2px;
  }
  .chx-mob-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--chx-border);
    border-radius: 8px;
    background: var(--chx-surface);
    color: var(--chx-text);
    cursor: pointer;
  }
  body.ch-tpl--minimal .chx-mob-toggle {
    border-radius: 2px;
  }
}

/* ==========================================================================
   Shared Desktop Dropdown & GNB Foundations
   ========================================================================== */

.chx-gnb {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chx-nav-item {
  position: relative;
}
.chx-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.chx-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 196px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--chx-border);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 960;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.chx-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.chx-nav-item:hover > .chx-dropdown,
.chx-nav-item:focus-within > .chx-dropdown,
.chx-nav-item.is-open > .chx-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.chx-dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.chx-dropdown li a:hover,
.chx-dropdown li a:focus-visible {
  background: var(--ch-primary-soft);
  color: var(--ch-primary);
  font-weight: 600;
}

/* ==========================================================================
   TEMPLATE A — Editorial Sanctuary (`chx-hd--editorial`)
   ========================================================================== */

.chx-hd--editorial {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 25, 23, 0.09);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.chx-hd--editorial.is-scrolled {
  background: rgba(250, 248, 245, 0.97);
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.06);
}
.chx-hd--editorial .chx-ed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.chx-hd--editorial .chx-gnb {
  gap: 28px;
}
.chx-hd--editorial .chx-nav-link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #292524;
  padding: 8px 2px;
  border-bottom: 1.5px solid transparent;
}
.chx-hd--editorial .chx-nav-item:hover > .chx-nav-link,
.chx-hd--editorial .chx-nav-link.is-active {
  color: var(--ch-primary);
  border-bottom-color: var(--ch-cta);
}
.chx-hd--editorial .chx-ed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chx-hd--editorial .chx-ed-jubo {
  font-size: 14px;
  font-weight: 600;
  color: #44403C;
  text-decoration: none;
  padding: 6px 8px;
  letter-spacing: 0.02em;
  transition: color 0.16s ease;
}
.chx-hd--editorial .chx-ed-jubo:hover {
  color: var(--ch-primary);
}
.chx-hd--editorial .chx-ed-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ch-primary);
  background: transparent;
  color: var(--ch-primary);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.chx-hd--editorial .chx-ed-cta:hover {
  background: var(--ch-primary);
  color: #ffffff;
}
.chx-hd--editorial .chx-dropdown {
  background: #FAF8F5;
  border-color: #E2D9C8;
}

/* ==========================================================================
   TEMPLATE B — Grand Portal Hub (`chx-hd--megachurch`)
   ========================================================================== */

.chx-hd--megachurch {
  position: sticky;
  top: 0;
  z-index: 950;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(15, 34, 64, 0.05);
}
.chx-hd--megachurch.is-scrolled {
  box-shadow: 0 10px 28px rgba(15, 34, 64, 0.10);
}
.chx-mega-util {
  background: #0F2240;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
}
.chx-mega-util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
}
.chx-mega-util-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  white-space: nowrap;
}
.chx-mega-util-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chx-mega-util-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 3px 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.chx-mega-util-btn:hover {
  color: #ffffff;
}
.chx-mega-util-btn.font-on {
  color: #FDE047;
}
.chx-hd--megachurch .chx-auth-pill {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.chx-hd--megachurch .chx-auth-pill.is-admin {
  background: var(--ch-cta);
  border-color: var(--ch-cta);
  color: #ffffff;
}

.chx-mega-bar {
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid #DCE3EE;
}
.chx-mega-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}
.chx-mega-wrap {
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
}
.chx-hd--megachurch .chx-gnb {
  gap: 6px;
  height: 100%;
}
.chx-hd--megachurch .chx-nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}
.chx-hd--megachurch .chx-nav-link {
  padding: 0 16px;
  height: 100%;
  font-size: 15.5px;
  font-weight: 700;
  color: #0F2240;
  border-bottom: 3px solid transparent;
}
.chx-hd--megachurch .chx-nav-item:hover > .chx-nav-link,
.chx-hd--megachurch .chx-nav-link.is-active {
  color: var(--ch-primary);
  border-bottom-color: var(--ch-primary);
}
.chx-mega-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chx-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--ch-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}
.chx-mega-cta:hover {
  background: var(--ch-primary-dark);
}
.chx-mega-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F2240;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Full-width Mega-Menu Panel */
.chx-megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 2px solid #0F2240;
  box-shadow: 0 24px 48px rgba(15, 34, 64, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 960;
}
.chx-mega-wrap:hover .chx-megamenu,
.chx-mega-wrap:focus-within .chx-megamenu,
.chx-mega-wrap.is-mega-open .chx-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.chx-megamenu-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  padding-top: 26px;
  padding-bottom: 28px;
}
.chx-megamenu-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 20px;
}
.chx-megamenu-col-title {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #0F2240;
  font-size: 15px;
  font-weight: 800;
  color: #0F2240;
  text-decoration: none;
}
.chx-megamenu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.chx-megamenu-list li + li {
  margin-top: 4px;
}
.chx-megamenu-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color 0.14s ease, transform 0.14s ease;
}
.chx-megamenu-list a:hover {
  color: var(--ch-primary);
  font-weight: 700;
  transform: translateX(3px);
}
.chx-megamenu-card {
  background: #0F2240;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.chx-megamenu-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E2B86B;
  margin-bottom: 4px;
}
.chx-megamenu-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}
.chx-megamenu-times {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chx-megamenu-times li {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.chx-megamenu-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--ch-cta);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   TEMPLATE C — Minimal Word Cinema (`chx-hd--minimal`)
   ========================================================================== */

.chx-hd--minimal {
  position: sticky;
  top: 0;
  z-index: 950;
  background: #FFFFFF;
  border-bottom: 1px solid #E4E4E7;
}
.chx-hd--minimal .chx-min-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.chx-hd--minimal .chx-gnb {
  gap: 28px;
}
.chx-hd--minimal .chx-nav-link {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #27272A;
  padding: 23px 0;
  border-bottom: 2px solid transparent;
}
.chx-hd--minimal .chx-nav-item:hover > .chx-nav-link,
.chx-hd--minimal .chx-nav-link.is-active {
  color: #111111;
  border-bottom-color: #111111;
}
.chx-hd--minimal .chx-dropdown {
  top: 100%;
  border-radius: 2px;
  border-color: #E4E4E7;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  padding: 6px;
}
.chx-hd--minimal .chx-dropdown li a {
  border-radius: 2px;
  color: #27272A;
}
.chx-hd--minimal .chx-dropdown li a:hover {
  background: #F4F4F5;
  color: #111111;
}
.chx-hd--minimal .chx-min-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chx-hd--minimal .chx-icon-btn,
.chx-hd--minimal .chx-auth-pill {
  border-radius: 2px;
}
.chx-hd--minimal .chx-min-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 2px;
  background: #111111;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background-color 0.16s ease;
}
.chx-hd--minimal .chx-min-cta:hover {
  background: var(--ch-primary);
}

/* ==========================================================================
   TEMPLATE D — Architectural Bento (`chx-hd--arch`)
   ========================================================================== */

.chx-hd--arch {
  position: sticky;
  top: 0;
  z-index: 950;
  padding: 14px 20px 6px;
  background: transparent;
  pointer-events: none;
}
body.ch-tpl--arch.ch-inner .chx-hd--arch {
  background: linear-gradient(180deg, var(--chx-bg, #F2F4F7) 0%, var(--chx-bg, #F2F4F7) 78%, rgba(242, 244, 247, 0) 100%);
  pointer-events: auto;
}
.chx-arch-capsule {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  padding: 0 14px 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.chx-hd--arch.is-scrolled .chx-arch-capsule {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  border-color: rgba(15, 23, 42, 0.13);
}
.chx-hd--arch .chx-gnb {
  gap: 4px;
}
.chx-hd--arch .chx-nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
}
.chx-hd--arch .chx-nav-item:hover > .chx-nav-link,
.chx-hd--arch .chx-nav-link.is-active {
  background: var(--ch-primary-soft);
  color: var(--ch-primary);
}
.chx-hd--arch .chx-dropdown {
  border-radius: 16px;
}
.chx-hd--arch .chx-arch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chx-hd--arch .chx-arch-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ch-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.chx-hd--arch .chx-arch-cta:hover {
  background: var(--ch-primary-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   TEMPLATE E — Classic Heritage (`chx-hd--heritage`)
   ========================================================================== */

.chx-hd--heritage {
  position: sticky;
  top: 0;
  z-index: 950;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(22, 25, 34, 0.04);
}
.chx-hd--heritage.is-scrolled {
  box-shadow: 0 10px 26px rgba(22, 25, 34, 0.09);
}
.chx-her-top {
  background: #FFFFFF;
  border-bottom: 1px solid #EAE2D3;
}
.chx-her-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.chx-her-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #6B5D4A;
}
.chx-her-since {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #D6C7AE;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8A6529;
  background: #FAF6EE;
}
.chx-her-center {
  display: flex;
  justify-content: center;
}
.chx-her-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.chx-her-font-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #D6C7AE;
  border-radius: 3px;
  background: #FAF7F0;
  color: #3D3529;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.chx-her-font-btn.font-on {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #ffffff;
}
.chx-her-jubo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border-radius: 3px;
  background: var(--ch-primary);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.chx-her-nav-strip {
  background: #F5F0E6;
  border-bottom: 1px solid #DDD2BE;
}
.chx-her-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.chx-hd--heritage .chx-gnb {
  gap: 32px;
  justify-content: center;
}
.chx-hd--heritage .chx-nav-link {
  padding: 11px 4px;
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #292524;
  border-bottom: 2px solid transparent;
}
.chx-hd--heritage .chx-nav-item:hover > .chx-nav-link,
.chx-hd--heritage .chx-nav-link.is-active {
  color: var(--ch-primary);
  border-bottom-color: #A67C37;
}
.chx-hd--heritage .chx-dropdown {
  top: 100%;
  border-radius: 4px;
  border-color: #D9CEB8;
  background: #FFFDF9;
}

@media (max-width: 1180px) {
  .chx-hd--editorial .chx-gnb { gap: 18px; }
  .chx-hd--minimal .chx-gnb { gap: 18px; }
  .chx-hd--heritage .chx-gnb { gap: 20px; }
  .chx-her-addr { display: none; }
}

/* ==========================================================================
   Unified Mobile Slide-Over Drawer (`#chx-drawer`)
   ========================================================================== */

.chx-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100030;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.chx-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chx-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: #FFFFFF;
  z-index: 100035;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.18);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s ease;
}
.chx-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.chx-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--chx-border);
  background: var(--chx-surface);
}
.chx-drawer-head .chx-auto-logo__sub {
  display: none;
}
.chx-drawer-head .chx-logo-img {
  max-height: 36px;
}
.chx-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--chx-border);
  border-radius: 8px;
  background: var(--chx-surface);
  color: var(--chx-text);
  cursor: pointer;
}
.chx-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 28px;
}
.chx-drawer-search {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.chx-drawer-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #F8FAFC;
  font-size: 14.5px;
  color: #111827;
}
.chx-drawer-search button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ch-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.chx-drawer-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.chx-drawer-qbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #1E293B;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.chx-drawer-qbtn.is-primary {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #FFFFFF;
}
.chx-drawer-qbtn.font-on {
  background: #D9480F;
  border-color: #D9480F;
  color: #FFFFFF;
}
.chx-drawer-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0;
  list-style: none;
}
.chx-drawer-auth:empty {
  display: none;
}
.chx-drawer-auth a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.chx-drawer-auth a.is-admin {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #FFFFFF;
}
.chx-drawer-nav {
  border-top: 1px solid #E2E8F0;
}
.chx-drawer-group {
  border-bottom: 1px solid #E2E8F0;
}
.chx-drawer-acc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border: 0;
  background: transparent;
  color: #0F172A;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.chx-drawer-acc .chx-acc-chev {
  transition: transform 0.2s ease;
}
.chx-drawer-acc[aria-expanded="true"] .chx-acc-chev {
  transform: rotate(180deg);
}
.chx-drawer-sub {
  display: none;
  margin: 0;
  padding: 0 0 12px 10px;
  list-style: none;
}
.chx-drawer-sub.is-open {
  display: block;
}
.chx-drawer-sub li a {
  display: block;
  padding: 8px 8px;
  border-radius: 6px;
  font-size: 14.5px;
  color: #475569;
  text-decoration: none;
}
.chx-drawer-sub li a:hover {
  background: var(--ch-primary-soft);
  color: var(--ch-primary);
}

/* ==========================================================================
   5 Distinct Subpage Mastheads & Sibling Tabs (`.chx-subhero`)
   ========================================================================== */

.chx-subhero {
  position: relative;
  width: 100%;
}
.chx-subhero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.chx-subhero-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  word-break: keep-all;
}
.chx-subhero-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.chx-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chx-subtab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease;
}

/* Compact mode for /admin pages */
.chx-subhero.is-admin-compact {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
  min-height: 0 !important;
}
.chx-subhero.is-admin-compact .chx-subhero-title {
  font-size: 24px !important;
}
.chx-subhero.is-admin-compact .chx-subhero-subtitle {
  display: none;
}

/* A. Editorial Subhero */
.chx-subhero--editorial {
  background: #FAF8F5;
  border-bottom: 1px solid #E5DDD0;
  padding: 44px 0 30px;
}
.chx-subhero--editorial .chx-subhero-kicker {
  color: var(--ch-cta);
}
.chx-subhero--editorial .chx-subhero-title {
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: clamp(28px, 3.4vw, 40px);
  color: #1C1917;
}
.chx-subhero--editorial .chx-subhero-rule {
  height: 1px;
  background: #E2D9C8;
  margin: 22px 0 18px;
}
.chx-subhero--editorial .chx-subtab {
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid #DED5C5;
  background: #FFFFFF;
  color: #57534E;
  font-size: 14px;
  font-weight: 600;
}
.chx-subhero--editorial .chx-subtab:hover,
.chx-subhero--editorial .chx-subtab.is-active {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #FFFFFF;
}

/* B. Megachurch Subhero */
.chx-subhero--megachurch {
  background: #F6F8FB;
  padding-bottom: 26px;
}
.chx-subhero--megachurch .chx-mega-banner {
  position: relative;
  overflow: hidden;
  background-color: #0F2240;
  background-size: cover;
  background-position: center;
  padding: 46px 0 64px;
  color: #FFFFFF;
}
.chx-subhero--megachurch.is-admin-compact {
  padding-bottom: 0 !important;
}
.chx-subhero--megachurch.is-admin-compact .chx-mega-banner {
  padding: 22px 0;
}
.chx-subhero--megachurch .chx-mega-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 34, 64, 0.92) 0%, rgba(18, 42, 82, 0.80) 100%);
  backdrop-filter: saturate(0.75);
}
.chx-subhero--megachurch .chx-mega-banner > .chx-container {
  position: relative;
  z-index: 1;
}
.chx-subhero--megachurch .chx-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}
.chx-subhero--megachurch .chx-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.chx-subhero--megachurch .chx-subhero-title {
  font-family: 'Paperlogy-7Bold', 'Pretendard', sans-serif;
  font-size: clamp(28px, 3.3vw, 38px);
  color: #FFFFFF;
}
.chx-subhero--megachurch .chx-mega-tabbar {
  position: relative;
  z-index: 2;
  margin-top: -28px;
}
.chx-subhero--megachurch .chx-subtabs {
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(15, 34, 64, 0.08);
}
.chx-subhero--megachurch .chx-subtab {
  height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.chx-subhero--megachurch .chx-subtab:hover {
  background: #EFF4FA;
  color: #0F2240;
}
.chx-subhero--megachurch .chx-subtab.is-active {
  background: var(--ch-primary);
  color: #FFFFFF;
}

/* C. Minimal Subhero */
.chx-subhero--minimal {
  background: #FFFFFF;
  border-bottom: 1px solid #E4E4E7;
  padding-top: 44px;
}
.chx-subhero--minimal .chx-subhero-kicker {
  color: #71717A;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.chx-subhero--minimal .chx-subhero-title {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111111;
  margin-bottom: 26px;
}
.chx-subhero--minimal .chx-subtabs {
  gap: 24px;
  border-top: 1px solid #F4F4F5;
}
.chx-subhero--minimal .chx-subtab {
  padding: 14px 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: #71717A;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.chx-subhero--minimal .chx-subtab:hover {
  color: #111111;
}
.chx-subhero--minimal .chx-subtab.is-active {
  color: #111111;
  font-weight: 800;
  border-bottom-color: #111111;
}

/* D. Arch Subhero */
.chx-subhero--arch {
  background: #F2F4F7;
  padding: 18px 0 14px;
}
.chx-subhero--arch .chx-arch-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: #1D3557;
  background-size: cover;
  background-position: center;
  padding: 40px 36px;
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.chx-subhero--arch.is-admin-compact .chx-arch-card {
  padding: 20px 26px;
  border-radius: 14px;
}
.chx-subhero--arch .chx-arch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86) 0%, rgba(30, 58, 109, 0.72) 100%);
}
.chx-subhero--arch .chx-arch-card > * {
  position: relative;
  z-index: 1;
}
.chx-subhero--arch .chx-subhero-kicker {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 12px;
}
.chx-subhero--arch .chx-subhero-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #FFFFFF;
}
.chx-subhero--arch .chx-subtabs {
  margin-top: 14px;
}
.chx-subhero--arch .chx-subtab {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
}
.chx-subhero--arch .chx-subtab:hover {
  border-color: var(--ch-primary);
  color: var(--ch-primary);
}
.chx-subhero--arch .chx-subtab.is-active {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #FFFFFF;
}

/* E. Heritage Subhero */
.chx-subhero--heritage {
  background: #FBF9F4;
}
.chx-subhero--heritage .chx-her-banner {
  position: relative;
  background-color: #161922;
  background-size: cover;
  background-position: center;
  padding: 46px 0;
  text-align: center;
  color: #FFFFFF;
  border-bottom: 3px double #A67C37;
}
.chx-subhero--heritage.is-admin-compact .chx-her-banner {
  padding: 20px 0;
}
.chx-subhero--heritage .chx-her-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 25, 34, 0.88) 0%, rgba(22, 25, 34, 0.82) 100%);
}
.chx-subhero--heritage .chx-her-banner > .chx-container {
  position: relative;
  z-index: 1;
}
.chx-subhero--heritage .chx-subhero-kicker {
  justify-content: center;
  color: #D4AF6A;
  letter-spacing: 0.12em;
}
.chx-subhero--heritage .chx-subhero-title {
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: clamp(28px, 3.3vw, 38px);
  color: #FFFFFF;
}
.chx-subhero--heritage .chx-subhero-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  letter-spacing: 0.08em;
}
.chx-subhero--heritage .chx-her-tabstrip {
  background: #F5F0E6;
  border-bottom: 1px solid #DDD2BE;
  padding: 10px 0;
}
.chx-subhero--heritage .chx-subtabs {
  justify-content: center;
}
.chx-subhero--heritage .chx-subtab {
  height: 36px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid #D6C7AE;
  background: #FFFFFF;
  color: #3D3529;
  font-size: 14px;
  font-weight: 600;
}
.chx-subhero--heritage .chx-subtab:hover {
  border-color: #A67C37;
  color: #161922;
}
.chx-subhero--heritage .chx-subtab.is-active {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .chx-subhero--editorial { padding: 28px 0 22px; }
  .chx-subhero--megachurch .chx-mega-banner { padding: 30px 0 46px; }
  .chx-subhero--arch .chx-arch-card { padding: 26px 20px; border-radius: 16px; }
  .chx-subhero--heritage .chx-her-banner { padding: 30px 0; }
}

/* ==========================================================================
   Architectural Multi-Column Footer (`.chx-ft`)
   ========================================================================== */

.chx-ft {
  background: #1C1917;
  color: rgba(255, 255, 255, 0.80);
  padding: 58px 0 36px;
  font-size: 14px;
  line-height: 1.65;
}
.chx-ft--editorial {
  background: #1C1917;
  border-top: 1px solid #292524;
}
.chx-ft--megachurch {
  background: #0F2240;
  border-top: 4px solid var(--ch-cta);
}
.chx-ft--minimal {
  background: #111111;
  border-top: 1px solid #27272A;
}
.chx-ft--arch {
  background: #0F172A;
  border-radius: 26px 26px 0 0;
}
.chx-ft--heritage {
  background: #161922;
  border-top: 3px double #A67C37;
}

.chx-ft-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(220px, 1.15fr) repeat(2, minmax(140px, 0.8fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.chx-ft-brand-meta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}
.chx-ft-brand-meta strong {
  color: #FFFFFF;
  font-weight: 700;
}
.chx-ft-brand-meta a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.chx-ft-brand-meta a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.chx-ft-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chx-ft-soc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s ease;
}
.chx-ft--minimal .chx-ft-soc-chip {
  border-radius: 2px;
}
.chx-ft-soc-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.chx-ft-col-title {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.chx-ft--editorial .chx-ft-col-title,
.chx-ft--heritage .chx-ft-col-title {
  font-family: 'Noto Serif KR', Georgia, serif;
  letter-spacing: 0.02em;
}
.chx-ft-worship-list,
.chx-ft-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chx-ft-worship-list li {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}
.chx-ft-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.15s ease;
}
.chx-ft-links a:hover {
  color: #FFFFFF;
}

.chx-ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.56);
}
.chx-ft-bottom-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.chx-ft-util-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chx-ft-util-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
#gdch-footer-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#gdch-footer-auth a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
#gdch-footer-auth a:hover {
  color: #FFFFFF;
}
#gdch-footer-auth a.chx-ft-admin {
  color: #93C5FD;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .chx-ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .chx-ft {
    padding: 42px 0 88px;
  }
  .chx-ft-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   Subtle Top Scroll Button (`#chx-top-btn`) & Showroom Switcher Bar
   ========================================================================== */

.chx-top-btn {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 965;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.16s ease;
}
body.ch-tpl--minimal .chx-top-btn {
  border-radius: 2px;
}
.chx-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.chx-top-btn:hover {
  background: var(--ch-primary);
  border-color: var(--ch-primary);
  color: #FFFFFF;
}
body.has-showroom-bar .chx-top-btn {
  bottom: 76px;
}

.chx-showroom-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 970;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  color: #FFFFFF;
  overflow-x: auto;
  scrollbar-width: none;
}
.chx-showroom-bar::-webkit-scrollbar {
  display: none;
}
.chx-sr-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #93C5FD;
  white-space: nowrap;
  flex-shrink: 0;
}
.chx-sr-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.chx-sr-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.chx-sr-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.chx-sr-pill.is-active {
  background: #FFFFFF;
  color: #111827;
  font-weight: 800;
}
.chx-sr-code {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
}
.chx-sr-pill.is-active .chx-sr-code {
  opacity: 1;
  color: var(--ch-primary);
}
.chx-sr-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.chx-sr-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.16s ease;
}
.chx-sr-all:hover {
  background: var(--ch-cta);
  color: #FFFFFF;
}
.chx-sr-partner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(200, 155, 84, 0.18);
  border: 1px solid rgba(226, 185, 116, 0.48);
  color: #FDE68A !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.chx-sr-partner:hover {
  background: #C89B54;
  border-color: #C89B54;
  color: #111827 !important;
}

@media (max-width: 640px) {
  .chx-showroom-bar {
    bottom: 10px;
    padding: 5px 6px 5px 10px;
  }
  .chx-sr-label {
    display: none;
  }
  .chx-sr-pill {
    padding: 0 9px;
    font-size: 12px;
  }
  .chx-sr-partner {
    padding: 0 9px;
    font-size: 11.5px;
  }
  body.has-showroom-bar .chx-top-btn {
    bottom: 62px;
    right: 14px;
  }
}

/* ==========================================================================
   Modals (`#gdch-search-modal`, `#gdch-pwa-modal`) & Toast Overrides
   ========================================================================== */

.gdch-modal-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--chx-font-sans);
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}
.gdch-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chx-pwa-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
}
.chx-pwa-box + .chx-pwa-box {
  margin-top: 10px;
}
.chx-pwa-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ch-primary-dark);
  margin-bottom: 4px;
}
