/* 사역원 소개 (가정교회란? · 비전과 목표 · 조직과 지역 가사원 · 오시는 길·문의)
   공통 접두어 ab-, 화면별 hc-, vis-, org-, ct- */

/* ---------- 페이지 소개 + 분야별 메뉴 ---------- */
.page-intro.ab-intro { padding-bottom: 28px; }
.ab-tabs { padding-bottom: 32px; }
.ab-tabs__list {
	display: flex; gap: 36px; border-bottom: 1px solid var(--c-line);
	overflow-x: auto; scrollbar-width: none;
}
.ab-tabs__list::-webkit-scrollbar { display: none; }
.ab-tabs__link {
	display: flex; align-items: center; min-height: 54px; padding-block: 16px 13px;
	border-bottom: 3px solid transparent; white-space: nowrap;
	color: var(--c-muted); font-size: 1.125rem; line-height: 1.2;
}
.ab-tabs__link:hover { color: var(--c-primary); text-decoration: none; }
.ab-tabs__link.is-current { color: var(--c-primary); font-weight: 700; border-bottom-color: var(--c-primary); }

.ab-tabs__select { display: none; }
.ab-tabs__select summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 16px; list-style: none; cursor: pointer;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
}
.ab-tabs__select summary::-webkit-details-marker { display: none; }
.ab-tabs__select-current { color: var(--c-primary); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.ab-tabs__select-action { display: inline-flex; align-items: center; gap: 4px; color: var(--c-muted); font-size: 0.9375rem; line-height: 1.3; white-space: nowrap; }
.ab-tabs__select[open] .ab-tabs__select-action .icon { transform: rotate(180deg); }
.ab-tabs__select ul {
	margin-top: 8px; padding: 8px 0; background: var(--c-white);
	border: 1px solid var(--c-line); border-radius: var(--radius-sm);
}
.ab-tabs__select a { display: flex; align-items: center; min-height: 48px; padding: 8px 16px; font-size: 1.0625rem; }
.ab-tabs__select a[aria-current] { color: var(--c-primary); font-weight: 700; }

@media (max-width: 640px) {
	.page-intro.ab-intro { padding-bottom: 28px; }
	.ab-tabs__list { display: none; }
	.ab-tabs__select { display: block; }
}

/* ---------- 본문 공통 ---------- */
.ab-body { padding-top: 8px; }
.ab-stack { display: flex; flex-direction: column; gap: 80px; }
.ab-section { display: flex; flex-direction: column; gap: 24px; }
.ab-h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.55; color: var(--c-ink); }   /* 28 */
.ab-lead { font-size: 1.125rem; line-height: 1.8; color: var(--c-muted); }
.ab-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }

/* 강조 안내 (연초록·모래색 면) */
.ab-callout {
	display: flex; flex-direction: column; gap: 16px; align-items: stretch;
	padding: 28px; border-radius: var(--radius); background: var(--c-sage);
}
.ab-callout--sand { background: var(--c-sand); }
.ab-callout__label { color: var(--c-primary); font-weight: 700; font-size: 1rem; line-height: 1.8; }
.ab-callout .ab-links { margin-block: -6px; }

/* 가로 묶음 → 모바일 세로 */
.ab-grid { display: flex; gap: 32px; align-items: flex-start; }
.ab-grid > * { flex: 1 1 0; min-width: 0; }

/* 번호 카드 (흰 면) */
.ab-card {
	display: flex; flex-direction: column; gap: 12px; padding: 20px;
	background: var(--c-white); border-radius: var(--radius-sm); line-height: 1.8;
}
.ab-card__num { color: var(--c-primary); font-weight: 700; font-size: 1rem; }
.ab-card__title { font-size: 1.25rem; line-height: 1.8; }
.ab-card__desc { color: var(--c-muted); font-size: 1.125rem; }

/* 세 축의 공통 바탕 */
.ab-foundation { display: flex; flex-direction: column; gap: 8px; padding-block: 24px; border-top: 3px solid var(--c-primary); line-height: 1.8; }
.ab-foundation__title { color: var(--c-primary); font-weight: 700; font-size: 1.3125rem; } /* 21 */
.ab-foundation__desc { color: var(--c-muted); font-size: 1.125rem; }

/* 정보 항목 (밑줄 목록) */
.ab-item {
	display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
	padding-block: 22px; border-bottom: 1px solid var(--c-line); line-height: 1.8;
}
.ab-item__kicker { color: var(--c-primary); font-weight: 700; font-size: 0.9375rem; }
.ab-item__title { font-size: 1.25rem; font-weight: 700; line-height: 1.8; color: var(--c-ink); }
.ab-item__desc { font-size: 1.125rem; color: var(--c-muted); margin: 0; }
.ab-item__link.link-arrow { font-size: 1rem; min-height: 29px; gap: 6px; }
.ab-item__link .icon { width: 17px; height: 17px; }

/* "＋" 펼침 */
.ab-more { width: 100%; }
.ab-links .ab-more { width: auto; }
.ab-more summary {
	display: inline-flex; align-items: center; gap: 6px; min-height: 29px; list-style: none; cursor: pointer;
	color: var(--c-primary); font-weight: 700; font-size: 1rem; line-height: 1.8;
}
.ab-more summary::-webkit-details-marker { display: none; }
.ab-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.ab-more--lg summary { font-size: 1.0625rem; min-height: 44px; }
.ab-more .icon { width: 18px; height: 18px; }
.ab-more .ab-more__minus, .ab-more[open] .ab-more__plus { display: none; }
.ab-more[open] .ab-more__minus { display: block; }
.ab-more__body {
	margin-top: 12px; padding: 20px; border-radius: var(--radius-sm); background: var(--c-white);
	color: var(--c-muted); font-size: 1rem; line-height: 1.8;
}
.ab-more__body a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }

/* 정보 항목 안 짧은 행: 터치 대상 44px 확보 */
@media (pointer: coarse) {
	.ab-more summary, .ab-item__link.link-arrow { min-height: 44px; }
}

/* ---------- 가정교회란? (hc-) ---------- */
.hc-summary { gap: 16px; font-weight: 700; line-height: 1.8; }
.hc-summary__text { font-size: 1.75rem; color: var(--c-ink); }   /* 28 */
.hc-summary__goal { font-size: 1.125rem; color: var(--c-primary); }

.hc-axis { display: flex; flex-direction: column; gap: 12px; padding-block: 24px; border-top: 1px solid var(--c-line); }
.hc-axis__num { color: var(--c-primary); font-size: 1rem; line-height: 1.8; }
.hc-axis__title { font-size: 1.75rem; line-height: 1.55; }
.hc-axis__desc { color: var(--c-muted); font-size: 1.125rem; line-height: 1.8; }

.hc-terms { margin: 0; }
.hc-terms dd { margin: 0; }

.hc-table-wrap { overflow-x: auto; }
.hc-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 1rem; line-height: 1.6; color: var(--c-ink); }
.hc-table th, .hc-table td { padding: 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.hc-table thead th { color: var(--c-primary); border-bottom: 2px solid var(--c-primary); white-space: nowrap; }
.hc-table tbody th { white-space: nowrap; }
.hc-table td { color: var(--c-muted); }

/* ---------- 비전과 목표 (vis-) ---------- */
.vis-mission { font-size: 2.375rem; font-weight: 700; line-height: 1.8; color: var(--c-ink); }   /* 38 */
.vis-vision { display: flex; flex-direction: column; gap: 18px; }
.vis-vision__text { font-size: 1.125rem; line-height: 1.8; }
.vis-vision__strong { font-size: 1.125rem; line-height: 1.8; font-weight: 700; color: var(--c-primary); }
.ab-grid.vis-pair > .vis-vision { flex-basis: 0; }
.vis-values {
	display: flex; flex-direction: column; gap: 16px; padding: 28px;
	background: var(--c-sage); border-radius: var(--radius-sm);
}
.vis-values__list { display: flex; flex-direction: column; gap: 16px; font-size: 1.125rem; line-height: 1.8; }
.ab-grid.vis-pair > .vis-values { flex-grow: 1.094; } /* 596 : 652 */

.vis-area { display: flex; flex-direction: column; gap: 12px; padding-block: 24px; border-top: 3px solid var(--c-primary); line-height: 1.8; }
.vis-area__title { font-size: 1.3125rem; line-height: 1.8; }
.vis-area__desc { color: var(--c-muted); font-size: 1.125rem; }

.vis-note__title { color: var(--c-primary); font-weight: 700; font-size: 1.125rem; line-height: 1.8; }
.vis-note__desc { color: var(--c-muted); font-size: 1.125rem; line-height: 1.8; }

.vis-partner { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--c-white); line-height: 1.8; }
.vis-partner__title { font-size: 1.375rem; line-height: 1.8; }
.vis-partner__desc { color: var(--c-muted); font-size: 1.125rem; }
.vis-partner .ab-more--lg summary { min-height: 31px; }

/* ---------- 조직과 지역 가사원 (org-) ---------- */
.org-hq {
	display: flex; flex-direction: column; gap: 8px; padding: 28px; line-height: 1.8;
	background: var(--c-sage); border: 1px solid var(--c-primary); border-radius: var(--radius-sm);
}
.org-hq__name { color: var(--c-primary); font-weight: 700; font-size: 1.5625rem; }   /* 25 */
.org-hq__desc { color: var(--c-muted); font-size: 1.125rem; }
.org-connector { color: var(--c-primary); font-size: 1rem; line-height: 1.8; }
.org-region { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--c-white); line-height: 1.8; }
.org-region__name { font-size: 1.3125rem; line-height: 1.8; }
.org-region__roles { color: var(--c-muted); font-size: 1rem; }

.org-notice__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.8; }
.org-notice__desc { color: var(--c-muted); font-size: 1rem; line-height: 1.8; }

.org-find { display: flex; flex-direction: column; gap: 24px; }
.org-find__bar { display: flex; gap: 10px; align-items: center; }
.org-find__bar .input { flex: 1; min-width: 0; min-height: 58px; padding: 14px; }
.org-find__bar .btn { min-height: 56px; white-space: nowrap; }

.org-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.org-filter {
	position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px;
	background: var(--c-white); border: 1px solid var(--c-field-line); border-radius: var(--radius-sm);
	color: var(--c-primary); font-weight: 700; font-size: 1.0625rem; line-height: 1.6;
}
.org-filter:focus-within { outline: 3px solid rgba(33, 79, 61, .25); border-color: var(--c-primary); }
.org-filter label { white-space: nowrap; }
.org-filter select {
	appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 12px 44px 12px 4px; margin-right: -22px;
	color: inherit; font: inherit; cursor: pointer; position: relative; z-index: 1;
}
.org-filter select:focus { outline: none; }
.org-filter .icon { position: absolute; right: 18px; width: 18px; height: 18px; pointer-events: none; }

.org-chips { display: flex; flex-wrap: wrap; gap: 0 28px; }
.org-chip {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
	color: var(--c-primary); font-weight: 700; font-size: 1.0625rem; line-height: 1.8; white-space: nowrap;
}
.org-chip[aria-pressed="false"] { color: var(--c-primary); }
.org-chip[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.org-chip .icon { width: 18px; height: 18px; }
.org-result-note { color: var(--c-muted); font-size: 0.9375rem; line-height: 1.8; margin-top: -12px; }

.org-officer { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--c-sage); border-radius: var(--radius-sm); line-height: 1.8; }
.org-officer__role { color: var(--c-primary); font-weight: 700; font-size: 0.9375rem; }
.org-officer__name { font-size: 1.4375rem; line-height: 1.8; }   /* 23 */
.org-officer__church { color: var(--c-muted); font-size: 1.125rem; }

.org-more-btn summary {
	min-height: 56px; padding: 12px 22px; font-size: 1.0625rem; line-height: 1.6;
	background: var(--c-white); border: 1px solid var(--c-field-line); border-radius: var(--radius-sm);
}
.org-more-btn summary:hover { text-decoration: none; background: var(--c-sage); }

.org-duties { gap: 12px 28px; }
.org-duties__note { color: var(--c-muted); font-size: 1rem; line-height: 1.8; }
.org-board__title { font-size: 1.3125rem; font-weight: 700; line-height: 1.8; }

/* ---------- 오시는 길·문의 (ct-) ---------- */
.ct-layout { display: flex; gap: 32px; align-items: flex-start; }
.ct-info { flex: 591 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.ct-form { flex: 657 1 0; min-width: 0; }

.ct-address { font-size: 1.625rem; font-weight: 700; line-height: 1.8; color: var(--c-ink); }   /* 26 */
.ct-copy { cursor: pointer; }
.ct-copy.is-copied::after { content: "✓"; margin-left: 2px; }

.ct-map { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-sand); }
.ct-map iframe { display: block; width: 100%; height: 320px; border: 0; }

.ct-phone { display: flex; flex-direction: column; gap: 20px; padding-block: 24px; border-block: 1px solid var(--c-line); line-height: 1.8; }
.ct-phone__number { font-size: 2.125rem; font-weight: 700; line-height: 1.8; }   /* 34 */
.ct-phone__number a:hover { color: var(--c-primary); }
.ct-phone__fax { display: flex; gap: 16px; font-size: 1.25rem; }

.ct-scope { display: flex; flex-direction: column; gap: 16px; line-height: 1.8; }
.ct-scope__text { font-size: 1.125rem; }
.ct-scope__note { color: var(--c-muted); font-size: 1rem; }

.ct-form {
	display: flex; flex-direction: column; gap: 24px; align-items: stretch; padding: 32px;
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.ct-form .field { gap: 10px; }
.ct-label { font-weight: 700; font-size: 1.0625rem; line-height: 1.8; color: var(--c-ink); }
.ct-req { font-weight: 700; }
.ct-form .input { min-height: 58px; }
.ct-method { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-method legend { padding: 0; margin-bottom: 12px; }
.ct-method__options { display: flex; flex-wrap: wrap; gap: 0 28px; }
.ct-radio {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer;
	color: var(--c-primary); font-weight: 700; font-size: 1.0625rem; line-height: 1.8;
}
.ct-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-primary); }
.ct-select { position: relative; display: flex; align-items: center; }
.ct-select .select { appearance: none; -webkit-appearance: none; min-height: 58px; padding-right: 48px; cursor: pointer; }
.ct-select .icon { position: absolute; right: 16px; width: 18px; height: 18px; color: var(--c-muted); pointer-events: none; }
.ct-consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 1rem; line-height: 1.8; }
.ct-consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-primary); }
.ct-form__note { color: var(--c-muted); font-size: 0.9375rem; line-height: 1.8; }
.ct-form > .link-arrow { align-self: flex-start; margin-block: -8px; }
.ct-form__submit { align-self: flex-start; }
.ct-form__demo { color: var(--c-muted); font-size: 0.875rem; line-height: 1.8; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
	.ab-grid { flex-wrap: wrap; }
	.ab-grid > * { flex: 1 1 calc(50% - 16px); }
	.ab-grid.vis-pair > * { flex: 1 1 100%; }
	.org-regions > * { flex-basis: calc(33.333% - 22px); }
	.ct-layout { flex-direction: column; }
	.ct-info, .ct-form { flex: none; width: 100%; }
}

@media (max-width: 640px) {
	.ab-stack { gap: 40px; }
	.ab-h2 { font-size: 1.5rem; }   /* 24 */
	.ab-grid { flex-direction: column; flex-wrap: nowrap; gap: 24px; align-items: stretch; }
	.ab-grid > *, .org-regions > * { flex: none; width: 100%; }

	.hc-summary__text { font-size: 1.375rem; }   /* 22 */
	.hc-axis__title { font-size: 1.5rem; }
	.vis-mission { font-size: 1.6875rem; }        /* 27 */

	.org-filters { gap: 12px; }
	.ct-layout { gap: 24px; }
	.ct-address { font-size: 1.375rem; }
	.ct-phone__number { font-size: 1.75rem; }
	.ct-form { padding: 24px; }
	.ct-map iframe { height: 260px; }
}
