/* member/css/about.css - 선교회소개 (교회 안내 + 전도인 소개). home.css 다음에 불러온다 */

/* 제목 띠 - 홈의 큰 히어로를 낮게 */
.hero.hero-compact { min-height: 0; }
.hero-compact .hero-inner { padding: 80px 16px 40px; }
.about-title {
    margin: 56px 0 0;
    font-family: 'Gowun Batang', 'Nanum Myeongjo', serif;
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 16px rgba(22, 56, 41, 0.4);
}
.about-lead { margin: 12px 0 0; max-width: 640px; text-align: center; font-size: 15px; opacity: 0.95; line-height: 1.6; }
.about-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.about-jump a {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.about-jump a:hover { background: #fff; color: var(--brand-700); }
.main-nav a.active::after { transform: scaleX(1); }

/* 본문 */
/* 칸 폭 = 화면 폭까지만 (minmax(0, 1fr)) - 예전에는 나라 탭 줄 길이만큼 칸이 넓어져 휴대폰에서 페이지 전체가 옆으로 넘쳤다 (2026-10-31) */
.about-main { max-width: var(--content-width); margin: 0 auto; padding: 40px 16px 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.about-section { scroll-margin-top: 80px; }
.about-section-head { margin-bottom: 16px; }
.about-section-head h2 { margin: 0; font-size: 24px; font-weight: 900; color: var(--brand-900); }
.about-section-head p { margin: 6px 0 0; font-size: 14px; color: var(--ink-muted); }
.about-empty { padding: 30px; text-align: center; color: var(--ink-muted); }

/* 지도 + 목록 */
.about-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 4px 16px -8px rgba(22, 56, 41, 0.12);
}
.about-map-layout[hidden] { display: none; }
.about-map-wrap { position: relative; width: 100%; max-width: 78vh; justify-self: center; }
.about-map { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #f8f5ee; z-index: 0; }
.about-map-reset {
    position: absolute; right: 10px; top: 10px; z-index: 500;
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
    color: var(--brand-700); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 2px 8px rgba(22, 56, 41, 0.15);
}
.about-church-list h3 { display: flex; align-items: center; gap: 6px; margin: 2px 2px 8px; font-size: 15px; color: var(--brand-900); }
.about-church-list h3 b { padding: 0 8px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: 12px; }
.about-church-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 72vh; overflow-y: auto; position: relative; }
.about-church-list li {
    display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid transparent; border-radius: 10px; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.about-church-list li:hover, .about-church-list li.is-active { background: var(--brand-50); border-color: var(--brand-200); }
.about-church-list li.no-pin { opacity: 0.6; }
.about-church-list .no {
    flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
    background: var(--brand-100); color: var(--brand-700); font-size: 12px; font-weight: 800;
}
.about-church-list li.is-active .no { background: var(--brand-gradient); color: #fff; }
.about-church-list .text { min-width: 0; display: grid; line-height: 1.35; }
.about-church-list .text b { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about-church-list .text small { font-size: 12.5px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 로고 핀 (신학원 교회 탭과 같은 모양) */
.church-pin-wrap { background: none; border: none; }
.church-pin {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 2px solid var(--brand-600); box-shadow: 0 3px 8px rgba(22, 56, 41, 0.35);
    transition: transform 0.18s, box-shadow 0.18s;
}
.church-pin img { width: 24px; height: 24px; object-fit: contain; }
.church-pin-wrap.is-active .church-pin {
    transform: scale(1.4); border-color: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(22, 56, 41, 0.4);
}
.church-pin-tip { font-family: inherit; font-weight: 700; font-size: 12.5px; }

/* 교회 카드 */
.about-church-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.about-church {
    padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(22, 56, 41, 0.12); scroll-margin-top: 90px;
}
.about-church h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--brand-900); }
.about-church .addr { margin: 0 0 10px; font-size: 13px; color: var(--ink-muted); }
.about-church dl { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.about-church dl div { display: flex; gap: 8px; }
.about-church dt { flex-shrink: 0; min-width: 84px; color: var(--ink-muted); }
.about-church dd { margin: 0; color: var(--ink); font-weight: 600; }
.about-church-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.about-church-actions button {
    padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
    color: var(--brand-700); font: inherit; font-weight: 700; cursor: pointer;
}
.about-church-actions button:hover { background: var(--brand-50); }
.about-church-actions a { color: var(--brand-600); font-weight: 700; }
.about-church-actions .muted { color: var(--ink-muted); }

/* 전도인 소개 */
.about-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.about-person {
    padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    text-align: center; box-shadow: 0 4px 16px -8px rgba(22, 56, 41, 0.12);
}
.about-person .photo {
    width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; background: var(--brand-gradient); color: #fff; font-size: 34px; font-weight: 900;
}
.about-person .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-person h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--brand-900); }
.about-person p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-muted); }

/* 탭 (전체 / 소개 / 교회 / 전도인) - 내려가도 위에 붙어 있다 */
.about-tabs {
    position: sticky; top: 64px; z-index: 20;
    display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
    margin: -12px auto 0; padding: 6px; width: fit-content; max-width: 100%;
    border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px -10px rgba(22, 56, 41, 0.35);
}
.about-tabs button {
    padding: 9px 20px; border: none; border-radius: 999px; background: none;
    font: inherit; font-size: 15px; font-weight: 800; color: var(--ink-muted); cursor: pointer;
}
.about-tabs button:hover { color: var(--brand-700); background: var(--brand-50); }
.about-tabs button.is-active { background: var(--brand-gradient); color: #fff; }
.about-main [hidden] { display: none !important; }

/* 선교회 소개 글 + 영상 + 사명 3가지 (about-intro.js) */
.about-intro { display: grid; gap: 36px; }
.intro-section {
    padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(22, 56, 41, 0.12);
}
.intro-head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.intro-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-400); }
.intro-head h2 { margin: 6px 0 14px; font-family: 'Gowun Batang', 'Nanum Myeongjo', serif; font-size: 30px; color: var(--brand-900); }
.intro-lead { margin: 0; font-size: 17px; line-height: 1.8; font-weight: 700; font-style: italic; color: var(--ink); }
.intro-video { position: relative; max-width: 860px; margin: 0 auto 28px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 10px 30px -12px rgba(22, 56, 41, 0.45); }
.intro-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intro-missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.intro-mission { padding: 20px; border-radius: var(--radius-md); background: var(--brand-50); border: 1px solid var(--line); }
.intro-no { display: inline-block; font-size: 26px; font-weight: 900; color: var(--brand-400); line-height: 1; }
.intro-mission h3 { margin: 8px 0 8px; font-size: 17px; font-weight: 900; color: var(--brand-900); }
.intro-mission p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink); }

/* 우리의 믿음 - 열어 볼 필요 없이 모두 펼친 글 (2026-10-22) */
.faith-list { display: grid; gap: 14px; }
.faith-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faith-title {
    display: flex; align-items: center; gap: 12px; margin: 0; padding: 15px 18px 4px;
    font-size: 17px; font-weight: 800; color: var(--brand-900);
}
.faith-no {
    flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-gradient); color: #fff; font-size: 13px; font-weight: 800;
}
.faith-body { padding: 4px 22px 20px 58px; }
.faith-body > p { margin: 12px 0; font-size: 15.5px; line-height: 1.8; color: var(--ink); }
.faith-verse { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--brand-400); border-radius: 0 10px 10px 0; background: var(--brand-50); }
.faith-verse cite { display: block; margin-bottom: 4px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--brand-700); }
.faith-verse p { margin: 0; font-family: 'Gowun Batang', 'Nanum Myeongjo', serif; font-size: 15px; line-height: 1.8; color: var(--ink); }
.faith-more { font-size: 13.5px !important; color: var(--ink-muted) !important; }
.faith-more b { margin-right: 6px; color: var(--brand-700); }

@media (max-width: 860px) {
    .intro-missions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .about-map-layout { grid-template-columns: minmax(0, 1fr); padding: 10px; }
    .about-map-wrap { max-width: none; }
    .about-church-list ol { max-height: 240px; }
    .hero-compact .main-nav { display: none; }
}

/* 교회 · 전도인 카드 - 보기 방식 (머리글 오른쪽 버튼) */
.about-section-head { position: relative; }
.about-section-head .lw-view-toggle { position: absolute; right: 0; bottom: 0; }
.about-church-cards.is-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.about-church-cards.is-list .about-church { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; gap: 6px 18px; align-items: center; }
.about-church-cards.is-list .about-church h3, .about-church-cards.is-list .about-church .addr { grid-column: 1; margin: 0; }
.about-church-cards.is-list .about-church dl { grid-column: 2; grid-row: 1 / span 2; }
.about-church-cards.is-list .about-church-actions { grid-column: 3; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; }
.about-church-cards.is-small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.about-church-cards.is-small .about-church { padding: 12px 14px; }
.about-church-cards.is-small .about-church h3 { font-size: 15px; }
.about-church-cards.is-small .about-church .addr { margin-bottom: 6px; font-size: 12px; }
.about-church-cards.is-small .about-church dl { display: none; }
.about-church-cards.is-small .about-church-actions { margin-top: 6px; gap: 6px; font-size: 12px; }
.about-church-cards.is-small .about-church-actions button { padding: 3px 9px; }
.about-people.is-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.about-people.is-list .about-person { display: flex; align-items: center; gap: 14px; padding: 10px 14px; text-align: left; }
.about-people.is-list .about-person .photo { width: 56px; height: 56px; margin: 0; flex-shrink: 0; font-size: 22px; }
.about-people.is-list .about-person p { margin: 0 0 0 auto; }
.about-people.is-small { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.about-people.is-small .about-person { padding: 12px 8px; }
.about-people.is-small .about-person .photo { width: 64px; height: 64px; margin-bottom: 6px; font-size: 24px; }
.about-people.is-small .about-person h3 { font-size: 13px; }
.about-people.is-small .about-person p { font-size: 12px; }
/* 교회 카드 정렬 (2026-10-23): 이름 → 주소(2줄 자리) → 직분 표(왼쪽 이름표 칸 너비 고정) → 맨 아래 버튼 줄
   카드마다 내용 양이 달라도 같은 줄의 칸 · 버튼 높이가 맞는다 */
.about-church { display: flex; flex-direction: column; }
.about-church h3 { line-height: 1.3; }
.about-church .addr {
    min-height: calc(13px * 1.45 * 2); line-height: 1.45; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.about-church .addr.is-empty { visibility: hidden; }
.about-church dl { grid-template-columns: 9.2em minmax(0, 1fr); gap: 6px 10px; align-items: baseline; line-height: 1.4; }
.about-church dl div { display: contents; }
.about-church dt { min-width: 0; }
.about-church dd { overflow-wrap: anywhere; }
.about-church-actions { margin-top: auto; padding-top: 14px; }
.about-church dl + .about-church-actions, .about-church .addr + .about-church-actions { border-top: 1px dashed var(--line); margin-top: auto; }
.about-church > dl { margin-bottom: 14px; }
/* 목록 보기: 칸 너비 고정 (이름·주소 | 직분 | 버튼) */
.about-church-cards.is-list .about-church { grid-template-columns: 260px minmax(0, 1fr) 230px; align-items: start; }
.about-church-cards.is-list .about-church .addr { min-height: 0; margin: 2px 0 0; }
.about-church-cards.is-list .about-church > dl { margin: 0; }
.about-church-cards.is-list .about-church-actions { border-top: 0; padding-top: 0; align-self: center; }
.about-church-cards.is-small .about-church-actions { border-top: 0; padding-top: 6px; }
.about-church-cards.is-small .about-church .addr { min-height: calc(12px * 1.45 * 2); }
@media (max-width: 860px) {
    .about-church-cards.is-list .about-church { grid-template-columns: minmax(0, 1fr); }
    .about-church-cards.is-list .about-church-actions { align-self: start; padding-top: 8px; }
}

/* 메뉴 페이지 위쪽(사진 · 영상) 더 높게 (2026-10-24) - 사이트 이름은 위에, 제목 · 설명 · 탭은 아래쪽으로 */
.hero.hero-compact { min-height: 480px; }
.hero-compact .hero-inner { display: flex; flex-direction: column; padding: 84px 16px 64px; }
.hero-compact .hero-head { margin-bottom: auto; }
.hero-compact .about-title { margin-top: 56px; }
