/* ==========================================================================
   자기사랑 선교회 (mission358.org) 디자인 시스템  v2026-10-05
   - 바닐라 CSS. 빌드 없음. 클래스와 마크업 규칙은 DESIGN.md 참고.
   - 강조색은 브랜드 청록 하나. 중립색은 청록 쪽으로 기운 차분한 회청색.
   - 모서리: 사진/카드/패널 16px, 버튼/입력/알림 10px, 작은 태그 6px.
   - 왼쪽 색선 금지(조직 규칙): 왼쪽 테두리나 왼쪽 안쪽 그림자로 색 띠를 만들지 않는다.
   ========================================================================== */


/* ==========================================================================
   1. 디자인 토큰 (라이트)
   ========================================================================== */
:root {
  color-scheme: light dark;

  /* 표면 */
  --bg: #F4F7F8;
  --surface: #FCFDFD;
  --surface-2: #EDF2F4;
  --surface-3: #E3EBEE;
  --line: #DAE3E6;
  --line-strong: #C3D1D6;

  /* 글자 */
  --text: #1F2C34;
  --text-strong: #16232B;
  --text-2: #43535C;
  --text-muted: #5D6D75;

  /* 브랜드 (강조색은 이것 하나) */
  --accent: #3D7A8C;
  --accent-strong: #2F6D7F;
  --accent-deep: #2E5566;
  --navy: #213645;
  --accent-soft: #E2EEF1;
  --accent-soft-2: #CFE2E8;

  --link: #2F6D7F;
  --link-hover: #2E5566;
  --focus: #3D7A8C;

  --btn-primary-bg: #2F6D7F;
  --btn-primary-bg-hover: #2E5566;
  --btn-primary-fg: #F5F9FA;

  /* 상태 */
  --success: #2E7550;
  --success-soft: #E3F1E9;
  --danger: #B03A33;
  --danger-soft: #FAE9E7;
  --warning: #8A5B12;
  --warning-soft: #FAF0DD;

  /* 머리글/바닥글/짙은 띠 */
  --header-bg: rgba(244, 247, 248, 0.9);
  --band-bg: #2E5566;
  --band-text: #E4EDF0;
  --band-muted: #BFD0D6;
  --footer-bg: #213645;
  --footer-text: #D3E0E4;
  --footer-heading: #F1F6F7;
  --footer-muted: #9FB3BA;
  --footer-line: rgba(211, 224, 228, 0.18);
  --on-dark: #F1F6F7;
  --on-dark-hover: #D3E4E9;

  /* 그림자 (남색 기운, 순검정 금지) */
  --shadow-sm: 0 1px 2px rgba(33, 54, 69, 0.06), 0 2px 8px rgba(33, 54, 69, 0.05);
  --shadow-md: 0 2px 6px rgba(33, 54, 69, 0.06), 0 12px 28px rgba(33, 54, 69, 0.09);
  --shadow-lg: 0 6px 16px rgba(33, 54, 69, 0.08), 0 24px 48px rgba(33, 54, 69, 0.14);

  /* 모서리 */
  --r-card: 16px;   /* 사진, 카드, 패널 */
  --r-ctl: 10px;    /* 버튼, 입력칸, 알림, 칩 */
  --r-tag: 6px;     /* 작은 태그 */

  /* 간격 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section-y: clamp(56px, 8vw, 104px);

  /* 레이아웃 */
  --container: 1180px;
  --container-mid: 960px;
  --container-narrow: 760px;
  --gutter: 20px;
  --header-h: 64px;

  /* 글꼴 */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --fs-xs: 0.8125rem;                                      /* 13px */
  --fs-sm: 0.9375rem;                                      /* 15px */
  --fs-base: 1.0625rem;                                    /* 17px */
  --fs-lg: 1.1875rem;                                      /* 19px */
  --fs-xl: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);       /* 20~24px */
  --fs-2xl: clamp(1.5rem, 1.28rem + 1vw, 2rem);            /* 24~32px */
  --fs-3xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);        /* 28~40px */
  --fs-display: clamp(2rem, 1.45rem + 2.5vw, 3.25rem);     /* 32~52px */

  /* 움직임 */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

@media (min-width: 1024px) {
  :root { --header-h: 68px; }
}

@media (max-width: 479.98px) {
  :root { --gutter: 16px; }
}


/* ==========================================================================
   2. 디자인 토큰 (다크)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12191E;
    --surface: #19232A;
    --surface-2: #1F2B33;
    --surface-3: #26343D;
    --line: #2B3A43;
    --line-strong: #3B4D57;

    --text: #E2EAED;
    --text-strong: #F0F5F6;
    --text-2: #B5C3C9;
    --text-muted: #93A3AA;

    --accent: #6FB0C2;
    --accent-strong: #86C0D0;
    --accent-deep: #A6D3DF;
    --navy: #0F1A20;
    --accent-soft: #1B3540;
    --accent-soft-2: #22434F;

    --link: #8CC4D3;
    --link-hover: #B0DAE5;
    --focus: #8CC7D6;

    --btn-primary-bg: #6AAFC1;
    --btn-primary-bg-hover: #86C0D0;
    --btn-primary-fg: #0E1A20;

    --success: #7FCBA0;
    --success-soft: #16302A;
    --danger: #F2958C;
    --danger-soft: #3A201E;
    --warning: #E6BE72;
    --warning-soft: #33291A;

    --header-bg: rgba(18, 25, 30, 0.9);
    --band-bg: #1B3540;
    --band-text: #DCE7EA;
    --band-muted: #9AAEB5;
    --footer-bg: #0C1317;
    --footer-text: #C3D2D7;
    --footer-heading: #EAF1F3;
    --footer-muted: #8C9FA6;
    --footer-line: rgba(195, 210, 215, 0.14);
    --on-dark: #EAF1F3;
    --on-dark-hover: #C9DCE2;

    --shadow-sm: 0 1px 2px rgba(4, 10, 14, 0.4), 0 2px 8px rgba(4, 10, 14, 0.28);
    --shadow-md: 0 2px 6px rgba(4, 10, 14, 0.4), 0 12px 28px rgba(4, 10, 14, 0.36);
    --shadow-lg: 0 6px 16px rgba(4, 10, 14, 0.45), 0 24px 48px rgba(4, 10, 14, 0.5);
  }
}


/* ==========================================================================
   3. 기본값 / 리셋
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

main:focus {
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

dl, dd, figure, blockquote {
  margin: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

svg {
  vertical-align: middle;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--link-hover);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

strong, b {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--text-strong);
}

/* Phosphor 아이콘 기본 정렬 */
.ph {
  line-height: 1;
  vertical-align: -0.125em;
}


/* ==========================================================================
   4. 글자 크기 단계
   ========================================================================== */
.display { font-size: var(--fs-display); line-height: 1.22; letter-spacing: -0.03em; }
.h1, .page-title { font-size: var(--fs-3xl); line-height: 1.28; letter-spacing: -0.028em; }
.h2, .section-title { font-size: var(--fs-2xl); line-height: 1.32; letter-spacing: -0.025em; }
.h3 { font-size: var(--fs-xl); line-height: 1.4; letter-spacing: -0.02em; }
.h4 { font-size: var(--fs-lg); line-height: 1.45; letter-spacing: -0.015em; }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--text-2);
}

.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }

/* 작은 머리말. 세 섹션에 하나 이하로만 쓴다 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-strong);
}


/* ==========================================================================
   5. 레이아웃: 컨테이너, 섹션, 그리드
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--mid { max-width: calc(var(--container-mid) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section--flush-top { padding-top: 0; }

.section--tint {
  background: var(--surface-2);
  --photo-ring: var(--surface-2);
}

.section--line {
  border-top: 1px solid var(--line);
}

/* 섹션 머리: 제목 + 설명 + (오른쪽) 더 보기 링크 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head > div {
  max-width: 44rem;
}

.section-head--center {
  justify-content: center;
  text-align: center;
}

.section-head--center > div {
  margin-inline: auto;
}

.section-lead {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  color: var(--text-2);
}

/* 쌓기 / 나란히 */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--s-4));
}

.stack-sm { --stack-gap: var(--s-2); }
.stack-lg { --stack-gap: var(--s-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--s-3));
}

/* 2단 그리드: 768px 미만에서는 1단 */
.grid-2 {
  display: grid;
  gap: var(--grid-gap, clamp(24px, 4vw, 48px));
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .grid-2--trail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .grid-2--center { align-items: center; }
}


/* ==========================================================================
   6. 유틸리티
   ========================================================================== */
.visually-hidden {
  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;
}

.text-muted { color: var(--text-muted); }
.text-2 { color: var(--text-2); }
.text-accent { color: var(--accent-strong); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-s { margin-top: var(--s-3); }
.mt-m { margin-top: var(--s-5); }
.mt-l { margin-top: var(--s-7); }

@media (max-width: 767.98px) {
  .hide-sm { display: none !important; }
}

@media (min-width: 768px) {
  .show-sm { display: none !important; }
}

/* 아이콘 배지: 연한 청록 바탕 위 아이콘 */
.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 24px;
}

.icon-badge--sm {
  width: 36px;
  height: 36px;
  font-size: 19px;
}


/* ==========================================================================
   7. 버튼
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
}

.btn .ph {
  font-size: 1.15em;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 1px 2px rgba(33, 54, 69, 0.12);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  border-color: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
  box-shadow: 0 4px 14px rgba(33, 54, 69, 0.16);
}

.btn-primary:disabled:hover,
.btn-primary[aria-disabled="true"]:hover {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text-strong);
}

/* 글자 버튼: 배경 없이 링크처럼, 화살표 아이콘과 함께 */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--link);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.btn-text .ph {
  font-size: 1.1em;
  transition: transform var(--dur) var(--ease);
}

.btn-text:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.btn-text:hover .ph-arrow-right { transform: translateX(3px); }
.btn-text:hover .ph-arrow-left { transform: translateX(-3px); }

.btn-text:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 40px;
  padding: 6px 16px;
  font-size: var(--fs-sm);
}

.btn-lg {
  min-height: 56px;
  padding: 12px 28px;
  font-size: var(--fs-base);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* 짙은 바탕 위 버튼 (.cta-band, .section--brand 안에서 자동 적용) */
.on-dark .btn-primary,
.cta-band .btn-primary {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--navy);
}

.on-dark .btn-primary:hover,
.cta-band .btn-primary:hover {
  background: var(--on-dark-hover);
  border-color: var(--on-dark-hover);
  color: var(--navy);
}

.on-dark .btn-secondary,
.cta-band .btn-secondary {
  background: transparent;
  border-color: rgba(228, 237, 240, 0.45);
  color: var(--on-dark);
}

.on-dark .btn-secondary:hover,
.cta-band .btn-secondary:hover {
  background: rgba(228, 237, 240, 0.1);
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.on-dark .btn-text,
.cta-band .btn-text {
  color: var(--on-dark);
}


/* ==========================================================================
   8. 본문 바로가기
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--r-ctl);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: var(--btn-primary-fg);
}


/* ==========================================================================
   9. 사이트 머리글 (sticky, 1200px 이상 한 줄 메뉴, 그 아래는 햄버거 패널)
   2026-10-05 2단계: 메뉴에 "선교사 상담"이 더해져 7개가 되었다. 1024px 폭에서는
   로고 + 메뉴 7개 + 신청 버튼이 한 줄에 들어가지 않아(글자 15.5px 유지) 한 줄 메뉴 기준을
   1024px 에서 1200px 로 올렸다. site.js 의 matchMedia('(min-width: 1200px)') 와 같은 값이어야 한다.
   2026-10-05 2단계 검토: 햄버거 쪽은 max-width: 1199px 가 아니라 1199.98px 로 쓴다. Windows 화면 배율 125% 처럼
   devicePixelRatio 가 정수가 아니면 화면 폭이 1199.2px 같은 소수가 되어, 1199px 와 1200px 어느 쪽에도 걸리지 않고
   메뉴가 접히지도 한 줄로 펴지지도 않는 상태가 생긴다(미리보기에서 DPR 1.25, 1199px 폭으로 확인).
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--header-h);
}

/* 로고 + 이름 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--text-strong);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text-strong);
}

.brand__mark {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* 햄버거 버튼 */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  order: 3;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 22px;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease);
}

.nav-toggle:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.nav-toggle:active {
  transform: scale(0.96);
}

/* 머리글 신청 버튼: 480px 이상에서 보인다 */
.site-header__cta {
  display: none;
  order: 2;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .site-header__cta { display: inline-flex; }
}

/* 모바일 메뉴 패널 */
.site-nav {
  order: 4;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--accent-strong);
}

.site-nav__link[aria-current="page"] {
  color: var(--accent-strong);
}

.site-nav__cta {
  margin-top: var(--s-4);
}

@media (min-width: 480px) {
  .site-nav__cta { display: none; }
}

/* JS 가 있을 때만 패널을 접는다. JS 가 없으면 메뉴가 머리글 아래에 펼쳐져 보인다
   (1199.98px: 아래 min-width: 1200px 과 틈 없이 맞물리게. 이 절 맨 위 설명 참고) */
@media (max-width: 1199.98px) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 4px var(--gutter) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  .js .site-header.is-open {
    background: var(--surface);
  }

  .js .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav__link[aria-current="page"] {
    background: var(--accent-soft);
    margin-inline: -8px;
    padding-inline: 12px;
    border-radius: var(--r-ctl);
    border-bottom-color: transparent;
  }

  /* JS 없음: 정적 메뉴. sticky 를 풀어 화면을 덜 가린다 */
  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-nav {
    flex-basis: 100%;
    padding-bottom: var(--s-4);
  }

  html:not(.js) .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  html:not(.js) .site-nav__link {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-ctl);
    background: var(--surface);
    font-size: var(--fs-sm);
    margin-inline: 0;
  }
}

/* 데스크톱 한 줄 메뉴 (1200px 이상. 위 max-width: 1199.98px 와 짝) */
@media (min-width: 1200px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    order: 1;
    margin-left: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }

  .site-nav__link {
    position: relative;
    min-height: 44px;
    padding: 8px 12px;
    border-bottom: 0;
    border-radius: var(--r-ctl);
    color: var(--text-2);
    font-size: 0.96875rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .site-nav__link:hover {
    color: var(--text-strong);
    background: var(--surface-2);
  }

  /* 현재 위치: 글자 아래 짧은 밑줄 (왼쪽 색선 아님) */
  .site-nav__link[aria-current="page"] {
    color: var(--accent-strong);
  }

  .site-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
  }

  .site-nav__cta {
    display: none;
  }

  .site-header__cta {
    display: inline-flex;
    order: 2;
    margin-left: var(--s-3);
  }
}

/* 넓은 화면에서 메뉴 사이를 조금 더 띄운다. 한 줄 메뉴 기준(1200px)보다 넓은 폭에서만 적용해
   1200px 미만의 햄버거 패널 링크에는 영향이 없게 한다 (2026-10-05 2단계, 전에는 1180px). */
@media (min-width: 1280px) {
  .site-nav__link { padding-inline: 14px; }
  .site-nav__link[aria-current="page"]::after { left: 14px; right: 14px; }
}


/* ==========================================================================
   10. 사이트 바닥글
   ========================================================================== */
.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 32px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--footer-heading);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--accent-soft-2);
}

.site-footer__grid {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--s-7);
  }
}

.brand--footer {
  margin-right: 0;
  margin-bottom: var(--s-3);
}

.brand--footer,
.brand--footer:hover {
  color: var(--footer-heading);
  text-decoration: none !important;
}

.brand--footer .brand__mark {
  width: 32px;
  height: 32px;
}

.site-footer__text {
  max-width: 30rem;
}

.site-footer__small {
  margin-top: var(--s-2);
  color: var(--footer-muted);
  font-size: var(--fs-xs);
}

.site-footer__title {
  margin-bottom: var(--s-3);
  color: var(--footer-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.site-footer__list .ph {
  flex: none;
  margin-top: 0.3em;
  color: var(--footer-muted);
  font-size: 1.05em;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: var(--fs-xs);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-variant-numeric: tabular-nums;
}

.site-footer a.site-footer__admin {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--footer-muted);
}


/* ==========================================================================
   11. 히어로 (첫 화면): 글 + 사진 겹침 (큰 사진 하나 + 작은 사진 하나)
   ========================================================================== */
.hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px);
  overflow-x: clip; /* 겹친 사진이 화면 밖으로 나가 가로 스크롤이 생기지 않게 */
}

.hero--tint {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.22;
  letter-spacing: -0.032em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--s-5);
  font-size: var(--fs-lg);
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero__note {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* 사진 겹침: figure.photo-stack > div.photo-stack__frame > img 2장, 그 다음 figcaption(선택) */
.photo-stack {
  margin: 0;
}

.photo-stack__frame {
  position: relative;
  margin-bottom: 13%;
}

.photo-stack__main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.photo-stack__sub {
  position: absolute;
  right: 12px;
  bottom: -14%;
  display: block;
  width: 44%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid var(--photo-ring, var(--bg));
  border-radius: var(--r-card);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

.photo-stack__caption {
  margin-top: -4px;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .photo-stack__frame {
    margin-bottom: 10%;
  }

  .photo-stack__sub {
    right: auto;
    left: -7%;
    bottom: -12%;
    width: 46%;
  }

  .photo-stack__caption {
    text-align: right;
  }
}


/* ==========================================================================
   12. 안쪽 페이지 머리 (compact page header) + 현재 위치
   ========================================================================== */
.page-header {
  padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  --photo-ring: var(--surface-2);
}

.page-header__title {
  font-size: var(--fs-3xl);
  line-height: 1.28;
  letter-spacing: -0.028em;
}

.page-header__lead {
  max-width: 42rem;
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  color: var(--text-2);
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* 오른쪽에 사진이 있는 변형 */
.page-header--split .page-header__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

@media (min-width: 768px) {
  .page-header--split .page-header__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--s-7);
  }
}

.page-header__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--surface-3);
  box-shadow: var(--shadow-md);
}

.breadcrumb {
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-muted);
}


/* ==========================================================================
   13. 태그 / 칩
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 9px;
  border-radius: var(--r-tag);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
}

.tag--neutral {
  background: var(--surface-3);
  color: var(--text-2);
}

.tag--solid {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.tag--success {
  background: var(--success-soft);
  color: var(--success);
}

.tag--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.tag--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

a.tag:hover {
  background: var(--accent-soft-2);
  color: var(--accent-deep);
}

/* 필터 칩 (나라별 보기 등). 사진 위에는 절대 올리지 않는다 */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 120ms var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text-strong);
}

.chip:active {
  transform: translateY(1px);
}

.chip[aria-current="page"],
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}


/* ==========================================================================
   14. 선교소식 카드 / 목록
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.news-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.news-card:active {
  transform: translateY(1px);
}

.news-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.news-card__link:hover {
  color: inherit;
}

.news-card__link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.news-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

/* 영상 썸네일 가운데 재생 아이콘 (글자 라벨 아님) */
.news-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: auto;
  border-radius: 50%;
  background: rgba(15, 26, 32, 0.62);
  color: #F2F7F8;
  font-size: 26px;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.news-card__play .ph {
  margin-left: 3px;
  vertical-align: 0;
}

.news-card:hover .news-card__play {
  transform: scale(1.06);
  background: rgba(15, 26, 32, 0.75);
}

/* 사진도 영상도 없는 글 */
.news-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 44px;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 20px;
}

.news-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.018em;
  color: var(--text-strong);
}

.news-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.news-card__excerpt--3 {
  -webkit-line-clamp: 3;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.news-card__meta span,
.news-card__meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 크게 보여 주는 첫 글 */
.news-card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .news-card--featured .news-card__link {
    flex-direction: row;
  }

  .news-card--featured .news-card__media {
    flex: 0 0 56%;
    aspect-ratio: auto;
    min-height: 340px;
  }

  .news-card--featured .news-card__body {
    justify-content: center;
    gap: 14px;
    padding: clamp(28px, 3.5vw, 44px);
  }

  .news-card--featured .news-card__title {
    -webkit-line-clamp: 3;
    font-size: var(--fs-2xl);
    line-height: 1.35;
  }

  .news-card--featured .news-card__excerpt {
    -webkit-line-clamp: 3;
    font-size: var(--fs-base);
  }

  .news-card--featured .news-card__meta {
    margin-top: var(--s-3);
  }
}

/* 작은 목록형 (썸네일 + 제목). 홈의 최근 소식 등 */
.news-rows {
  display: flex;
  flex-direction: column;
}

.news-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.news-rows > li:first-child .news-row,
.news-rows > .news-row:first-child {
  border-top: 1px solid var(--line);
}

.news-row:hover {
  color: inherit;
}

.news-row:hover .news-row__title {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.news-row:active {
  transform: translateY(1px);
}

.news-row__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--accent);
}

.news-row__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-row__thumb .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.news-row__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.news-row__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-strong);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.5;
}

.news-row__meta {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 479.98px) {
  .news-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
}


/* ==========================================================================
   15. 검색/필터 막대
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 36px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-bar__field {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
}

.filter-bar__search > .ph {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

.filter-bar__search .input {
  padding-left: 46px;
}

.filter-bar .btn {
  flex: 1 1 auto;
}

.filter-bar__reset {
  flex: 0 0 auto;
}

.filter-bar__summary {
  flex-basis: 100%;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .filter-bar__field { flex: 0 1 200px; }
  .filter-bar__search { flex: 1 1 260px; }
  .filter-bar .btn { flex: 0 0 auto; }
}


/* ==========================================================================
   16. 페이지네이션 (inc/site.php 의 render_pagination() 이 만든다)
   ========================================================================== */
.pagination {
  margin-top: clamp(32px, 5vw, 48px);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 120ms var(--ease);
}

a.pagination__link:hover {
  border-color: var(--accent);
  color: var(--text-strong);
}

a.pagination__link:active {
  transform: translateY(1px);
}

.pagination__link.is-current {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.pagination__step {
  padding-inline: 14px;
}

.pagination__gap {
  min-width: 24px;
  color: var(--text-muted);
  text-align: center;
}


/* ==========================================================================
   17. 글 보기 (view.php, notice_view.php, inquiry_public_view.php)
   ========================================================================== */
.article {
  padding-block: clamp(32px, 5vw, 64px) var(--section-y);
}

.article-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: clamp(24px, 4vw, 36px);
}

.article-title {
  font-size: var(--fs-3xl);
  line-height: 1.3;
  letter-spacing: -0.028em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  width: 100%;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.article-meta > span,
.article-meta > time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-figure {
  margin: 0 0 clamp(24px, 4vw, 40px);
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--surface-2);
}

.article-figure figcaption {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.article-section {
  margin-top: clamp(36px, 5vw, 56px);
}

.article-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-4);
  font-size: var(--fs-xl);
}

.article-section__title .ph {
  color: var(--accent);
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

/* 이전 글 / 다음 글 */
.post-nav {
  display: grid;
  gap: 12px;
  margin-top: var(--s-6);
}

@media (min-width: 768px) {
  .post-nav { grid-template-columns: 1fr 1fr; }
}

.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text-strong);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform 120ms var(--ease);
}

.post-nav__link:hover {
  border-color: var(--accent);
  color: var(--text-strong);
}

.post-nav__link:active {
  transform: translateY(1px);
}

.post-nav__link--next {
  text-align: right;
  align-items: flex-end;
}

.post-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.post-nav__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-weight: 600;
}


/* ==========================================================================
   18. 본문 글꼴 (prose): 관리자 편집기 HTML(3_mission3.content 등)
   ========================================================================== */
.prose {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--text);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose p:empty {
  display: none;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.9em;
  margin-bottom: -0.3em;
}

.prose h2 { font-size: var(--fs-2xl); }
.prose h3 { font-size: var(--fs-xl); }
.prose h4 { font-size: var(--fs-lg); }

.prose a {
  color: var(--link);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-ctl);
}

.prose figure img {
  display: block;
  margin-inline: auto;
}

.prose figcaption {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}

/* 인용: 왼쪽 선 대신 연한 바탕 + 둥근 모서리 */
.prose blockquote {
  padding: 18px 22px;
  border-radius: var(--r-card);
  background: var(--surface-2);
  color: var(--text-2);
}

.prose blockquote > * + * {
  margin-top: 0.6em;
}

/* 편집기에서 넣은 영상 iframe: 가로 꽉 차고 16:9 */
.prose iframe,
.prose video,
.prose embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface-2);
}

/* 표: 좁은 화면에서 가로로 밀어 본다 */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  font-size: var(--fs-sm);
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 7em;
}

.prose th {
  background: var(--surface-2);
  font-weight: 600;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.prose code {
  font-size: 0.92em;
}

.prose hr {
  margin: 2em 0;
}

/* 일반 텍스트 본문(줄바꿈 유지)용 */
.prose--plain {
  white-space: pre-line;
}


/* ==========================================================================
   19. 영상 / 사진 모음
   ========================================================================== */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface-3);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 썸네일 먼저 보여 주고 누르면 페이지 스크립트가 iframe 으로 바꾸는 방식(선택) */
.video-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface-3);
  cursor: pointer;
}

.video-lite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease), opacity var(--dur) var(--ease);
}

.video-lite__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 50%;
  background: rgba(15, 26, 32, 0.66);
  color: #F2F7F8;
  font-size: 32px;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.video-lite__play .ph {
  margin-left: 4px;
  vertical-align: 0;
}

.video-lite:hover img { transform: scale(1.02); }
.video-lite:hover .video-lite__play { transform: scale(1.06); background: rgba(15, 26, 32, 0.8); }
.video-lite:active .video-lite__play { transform: scale(0.98); }

.video-lite:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

@media (max-width: 479.98px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface-2);
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease), filter var(--dur) var(--ease);
}

a.gallery__item:hover img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

a.gallery__item:active {
  transform: scale(0.99);
}

a.gallery__item:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}


/* ==========================================================================
   20. 두 기둥 / 나란히 / 기능 목록 / 안내 상자
   ========================================================================== */
/* 홈의 두 사역 소개: 2개 패널, 하나는 연한 청록 바탕으로 다르게
   (2026-10-05 2단계부터 홈은 index.php 안의 .home-ministries 로 세 사역을 보여 준다. .pillars 는 지금 쓰는 곳이 없고,
   .pillar 는 홈과 about.php 가 계속 쓴다) */
.pillars {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pillar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pillar--accent {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
}

.pillar__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}

.pillar__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: clamp(24px, 3.5vw, 36px);
}

.pillar__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.pillar__title {
  font-size: var(--fs-2xl);
  line-height: 1.32;
}

.pillar__text {
  color: var(--text-2);
}

.pillar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-3);
}

/* 글 + 사진 나란히. --reverse 는 사진을 오른쪽에 */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse .split__media { order: 2; }
}

.split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.split__media--portrait img {
  aspect-ratio: 4 / 5;
}

.split__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}

/* 아이콘 + 글 목록 (세로 목록, 카드 3개 나열 대신) */
.feature-list {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 768px) {
  .feature-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6) var(--s-7);
  }
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}

.feature-list__title {
  margin-bottom: 4px;
  font-size: var(--fs-lg);
  line-height: 1.45;
}

.feature-list__text {
  color: var(--text-2);
}

/* 체크 목록 */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li > .ph {
  flex: none;
  margin-top: 0.3em;
  color: var(--accent);
  font-size: 1.15em;
}

/* 안내 상자: 연한 바탕 + 아이콘 (왼쪽 선 없음) */
.callout {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--r-card);
  background: var(--surface-2);
  color: var(--text);
}

.callout--accent {
  background: var(--accent-soft);
}

.callout__icon {
  flex: none;
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 26px;
}

.callout__title {
  margin-bottom: 4px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-strong);
}

.callout__body > * + * {
  margin-top: 6px;
}

/* 패널: 테두리 있는 일반 상자 */
.panel {
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}


/* ==========================================================================
   21. 계좌 / 이름-값 목록
   ========================================================================== */
.kv-list {
  display: flex;
  flex-direction: column;
}

.kv-list > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.kv-list > div:first-child {
  border-top: 0;
}

.kv-list dt {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.kv-list dd {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
}

.kv-list__strong {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; /* 계좌번호가 하이픈에서 끊기지 않게 */
}

/* 좁은 칸(좁은 화면, 2단 안의 작은 상자)에서는 이름 위, 값 아래로 */
@media (max-width: 479.98px) {
  .kv-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .grid-2 .kv-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.account-card {
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.account-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-3);
  color: var(--accent-strong);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.account-card__note {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}


/* ==========================================================================
   22. 가격표 (정의 목록 행, 무료 기본은 강조)
   ========================================================================== */
.price-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
  padding: 18px 18px;
  border-top: 1px solid var(--line);
}

.price-list__row:first-child {
  border-top: 0;
}

.price-list__row--free {
  border-top-color: transparent;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
}

.price-list__row--free + .price-list__row {
  border-top-color: transparent;
}

.price-list dt {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-strong);
}

.price-list__desc {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-2);
}

.price-list dd {
  margin: 0;
  text-align: right;
}

.price-list__price {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-list__row--free .price-list__price {
  color: var(--accent-strong);
}

.price-list__unit {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.price-note {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (max-width: 479.98px) {
  .price-list__row {
    grid-template-columns: 1fr;
    padding: 16px 14px;
  }

  .price-list dd {
    text-align: left;
  }
}


/* ==========================================================================
   23. 진행 순서 (데스크톱 가로, 휴대폰 세로. 숫자는 CSS counter, "Step" 글자 없음)
   ========================================================================== */
.process {
  display: grid;
  gap: var(--s-5);
  counter-reset: process;
}

.process__item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: var(--s-4);
  align-content: start;
  counter-increment: process;
}

.process__item::before {
  content: counter(process);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.process__item > * {
  grid-column: 2;
}

.process__title {
  margin-top: 8px;
  font-size: var(--fs-lg);
  line-height: 1.45;
}

.process__text {
  margin-top: 4px;
  color: var(--text-2);
  font-size: var(--fs-base);
}

@media (min-width: 900px) {
  .process {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }

  .process__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .process__item::before {
    grid-row: auto;
    margin-bottom: var(--s-4);
  }

  .process__item > * {
    grid-column: auto;
  }

  .process__title {
    margin-top: 0;
  }

  /* 숫자 사이를 잇는 가는 가로선 (데스크톱만) */
  .process__item::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 56px;
    right: -14px;
    height: 1px;
    background: var(--line-strong);
  }

  .process__item:last-child::after {
    display: none;
  }
}


/* ==========================================================================
   24. 자주 묻는 질문 (2단 목록, 아코디언 아님)
   ========================================================================== */
.faq {
  display: grid;
  gap: 0 var(--s-7);
}

@media (min-width: 900px) {
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.faq__item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.faq__q {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--text-strong);
}

.faq__a {
  margin-top: 8px;
  color: var(--text-2);
}

.faq__a > * + * {
  margin-top: 0.6em;
}


/* ==========================================================================
   25. 제작 사례 카드 (화면 캡처 + 가는 브라우저 상단 막대 하나)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}

.portfolio-card__shot {
  position: relative;
  display: block;
  overflow: hidden;
  padding-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-3);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* 상단 막대: 그라디언트 하나로 점 세 개 */
.portfolio-card__shot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  width: 44px;
  height: 22px;
  background: radial-gradient(circle at 5px 50%, var(--line-strong) 3.5px, transparent 4px) 0 0 / 14px 22px repeat-x;
}

.portfolio-card__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-2);
}

a.portfolio-card__shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

a.portfolio-card__shot:active {
  transform: translateY(1px);
}

a.portfolio-card__shot:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.portfolio-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.portfolio-card__name {
  font-size: var(--fs-xl);
}

.portfolio-card__summary {
  color: var(--text-2);
}

/* 사례가 적을 때: 가로 배치 */
.portfolio-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .portfolio-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s-7);
    align-items: center;
  }
}


/* ==========================================================================
   26. 폼
   ========================================================================== */
.form-card {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-section {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-section + .form-section {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

/* legend 를 float 시켜 fieldset 위 구분선 안으로 끼어들지 않게 한다 */
.form-section__title {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-strong);
}

.form-section__title + * {
  clear: both;
}

fieldset.field > legend.field__label {
  float: left;
  width: 100%;
  margin-bottom: 6px;
}

fieldset.field > legend.field__label + * {
  clear: both;
}

.form-section__desc {
  margin-bottom: var(--s-5);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.form-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 768px) {
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--2 .field--full { grid-column: 1 / -1; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field + .field {
  margin-top: var(--s-5);
}

.form-grid > .field + .field {
  margin-top: 0;
}

.field__label {
  display: block;
  padding: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-strong);
}

.req {
  margin-left: 2px;
  color: var(--danger);
  font-weight: 700;
}

.field__optional {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 400;
}

.field__help {
  margin-top: -2px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.55;
  color: var(--danger);
}

.field__error .ph {
  flex: none;
  margin-top: 0.2em;
}

.field__count {
  align-self: flex-end;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* 입력칸 (클래스가 없는 입력칸도 같은 모양) */
.input,
.select,
.textarea,
:where(.form-card, .filter-bar) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--text-strong);
  font-size: var(--fs-base);
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.textarea,
textarea.input {
  min-height: 140px;
  resize: vertical;
}

.select,
select.input,
:where(.form-card, .filter-bar) select {
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--accent);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
  outline: none;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.input:disabled,
.select:disabled,
.textarea:disabled,
.input[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}

.input[readonly] {
  cursor: default;
}

/* 라디오/체크박스 카드 묶음 */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}

.choice-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 8px;
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
}

.choice:hover {
  border-color: var(--accent);
}

.choice:active {
  transform: translateY(1px);
}

.choice input[type="radio"],
.choice input[type="checkbox"],
.check input[type="checkbox"],
.check input[type="radio"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-strong) inset;
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.choice:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.choice__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-strong);
}

.choice__title .ph {
  color: var(--accent);
  font-size: 1.2em;
}

.choice__desc {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
}

.choice-group[aria-invalid="true"] .choice,
.field.is-invalid .choice {
  border-color: var(--danger);
}

/* 단일 체크(동의 등) */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
  line-height: 1.6;
}

.check + .check {
  margin-top: 2px;
}

/* 개인정보 동의 안내 박스 */
.consent-box {
  padding: 16px 18px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.consent-box > * + * {
  margin-top: 6px;
}

.consent-box ul {
  padding-left: 1.2em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: clamp(24px, 4vw, 36px);
}

.form-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* 스팸 방지용 숨은 칸 (사람에게 안 보이고 화면낭독기도 건너뜀) */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 479.98px) {
  .form-actions .btn {
    width: 100%;
  }
}


/* ==========================================================================
   27. 알림 (바탕색 + 아이콘. 왼쪽 선 없음)
   ========================================================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--text-strong);
  font-size: var(--fs-base);
  line-height: 1.65;
}

.alert + * {
  margin-top: var(--s-5);
}

.alert__icon {
  flex: none;
  margin-top: 0.15em;
  font-size: 1.35em;
}

.alert__body > * + * {
  margin-top: 4px;
}

.alert__title {
  font-weight: 700;
}

.alert ul {
  margin: 4px 0 0;
  padding-left: 1.2em;
}

.alert--info {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
}

.alert--info .alert__icon { color: var(--accent-strong); }

.alert--success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 22%, transparent);
}

.alert--success .alert__icon { color: var(--success); }

.alert--error {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 22%, transparent);
}

.alert--error .alert__icon { color: var(--danger); }

.alert--warning {
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 22%, transparent);
}

.alert--warning .alert__icon { color: var(--warning); }


/* ==========================================================================
   28. 빈 상태
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: clamp(40px, 7vw, 72px) 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 30px;
}

.empty-state__title {
  font-size: var(--fs-xl);
}

.empty-state__text {
  max-width: 28rem;
  color: var(--text-2);
}

.empty-state .btn {
  margin-top: var(--s-2);
}


/* ==========================================================================
   29. 표 목록 (공지/문의). 768px 미만에서는 행이 세로로 쌓인다
   ========================================================================== */
.table-list {
  width: 100%;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-base);
}

.table-list th,
.table-list td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table-list thead th {
  padding-block: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.table-list .col-num,
.table-list .col-date,
.table-list .col-status {
  width: 1%;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.table-list .col-date {
  text-align: left;
}

.table-list thead .col-num,
.table-list thead .col-date,
.table-list thead .col-status {
  color: var(--text-2);
}

.table-list tbody tr {
  transition: background-color var(--dur) var(--ease);
}

.table-list tbody tr:hover {
  background: var(--surface);
}

.table-list tr.is-pinned {
  background: var(--accent-soft);
}

.table-list__title a {
  color: var(--text-strong);
  font-weight: 600;
  text-decoration: none;
}

.table-list__title a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.table-list__title .tag {
  margin-right: 8px;
}

.table-list__title .ph {
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .table-list thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .table-list,
  .table-list tbody {
    display: block;
  }

  .table-list tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }

  .table-list td {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
  }

  .table-list .table-list__title {
    order: -1;
    flex-basis: 100%;
    display: block;
    font-size: var(--fs-base);
  }

  .table-list .col-num,
  .table-list .col-date,
  .table-list .col-status {
    width: auto;
    text-align: left;
  }

  .table-list td[data-label]:not(.table-list__title)::before {
    content: attr(data-label);
    margin-right: 6px;
    color: var(--text-muted);
  }

  .table-list .hide-sm {
    display: none !important;
  }
}


/* ==========================================================================
   30. 짙은 띠 (CTA band)
   ========================================================================== */
.cta-band {
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--band-bg);
  color: var(--band-text);
}

.cta-band__inner {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-7);
  }
}

.cta-band__title {
  font-size: var(--fs-2xl);
  color: var(--on-dark);
}

.cta-band__text {
  max-width: 40rem;
  margin-top: var(--s-3);
  color: var(--band-muted);
  font-size: var(--fs-lg);
}

.cta-band a:not(.btn) {
  color: var(--on-dark);
}

.cta-band :focus-visible,
.on-dark :focus-visible {
  outline-color: var(--accent-soft-2);
}

.on-dark {
  background: var(--band-bg);
  color: var(--band-text);
}

.on-dark h2,
.on-dark h3 {
  color: var(--on-dark);
}


/* ==========================================================================
   31. 나타나기 효과 (.reveal)
   - 숨김은 html.js 일 때만. JS 가 없거나 늦으면(header 안전장치) 그냥 보인다.
   - 첫 화면(히어로)에는 쓰지 않는다.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ==========================================================================
   32. 움직임 줄이기
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .news-card:hover,
  .news-card:hover .news-card__media img,
  a.portfolio-card__shot:hover,
  a.gallery__item:hover img,
  .video-lite:hover img {
    transform: none;
  }
}


/* ==========================================================================
   32-1. 연간 자리 현황 (선교사 AI 상담 1년 12명, 2026-10-05)
   좌석 칸 12개: 채운 칸 = 선정, 빈 칸 = 남은 자리. 배경 트랙이 있는 진행 막대는 쓰지 않는다. 왼쪽 색선 없음.
   ========================================================================== */
.slot-box {
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.slot-box + * {
  margin-top: var(--s-5);
}

.slot-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}

.slot-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.slot-box__count {
  color: var(--text-strong);
  font-size: var(--fs-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.slot-box__count strong {
  color: var(--accent-strong);
  font-size: 1.3em;
  font-weight: 700;
}

.slot-box__count span {
  color: var(--text-muted);
  font-size: var(--fs-base);
  font-weight: 500;
}

.slot-seats {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  max-width: 26rem;
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.slot-seats li {
  aspect-ratio: 1;
  border: 1.5px solid var(--accent-soft-2);
  border-radius: 6px;
  background: transparent;
}

.slot-seats li.is-taken {
  border-color: var(--accent);
  background: var(--accent);
}

.slot-box__text {
  margin-top: var(--s-3);
  color: var(--text-2);
}

.slot-box__note {
  margin-top: var(--s-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.slot-box.is-full {
  border-color: var(--line);
  background: var(--surface-2);
}

.slot-box.is-full .slot-box__title {
  color: var(--text-2);
}

/* ==========================================================================
   33. 인쇄
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .filter-bar,
  .pagination,
  .cta-band,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #FAFAFA;
    color: #111111;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
