@charset "utf-8";

/* ===== 신앙 FAQ — Figma 원본 프레임 라벨: 신앙문답 FAQ A-①/②/③ (720px viewport / 375 Figma = 1.92×) ===== */
/* 운영팀 큐레이션 아코디언 게시판 — 다른 게시판들의 카드형 리스트와 달리 히어로+검색+카테고리그리드+아코디언 구조 */

/* =========================================================
   목록 (ffa-*)
   ========================================================= */
.ffa-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* 헤더 */
.ffa-head {position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:0; height:88px; padding:0 22px; background:var(--card); border-bottom:1.92px solid var(--line);}
.ffa-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.ffa-back img {width:32px; height:32px;}
.ffa-head-title {flex:1; font-size:28px; font-weight:700; color:var(--ink); text-align:center;}
.ffa-hspacer {flex:0 0 auto; width:58px; height:58px;}

/* 게시판 전환 탭 */
.ffa-tabs {position:sticky; top:88px; z-index:19; display:flex; gap:0; padding:0 22px; background:var(--card); border-bottom:3.84px solid var(--line);}
.ffa-tab {flex:0 0 auto; position:relative; padding:21px 20px; background:none; border:0; color:#94A3B8; font-size:25px; font-weight:500; white-space:nowrap; cursor:pointer;}
.ffa-tab.on {color:var(--teal); font-weight:700;}
.ffa-tab.on::after {content:''; position:absolute; left:0; right:0; bottom:-3.84px; height:3.84px; border-radius:3px 3px 0 0; background:var(--teal);}

/* 히어로 */
.ffa-hero {display:flex; flex-direction:column; align-items:center; gap:14px; padding:44px 32px 38px; text-align:center; background:linear-gradient(135deg, #0D9488, #1E3A5F);}
.ffa-hero-ic {font-size:44px;}
.ffa-hero-title {margin:0; font-size:32px; font-weight:800; color:#fff;}
.ffa-hero-sub {margin:0; font-size:21px; font-weight:400; color:rgba(255,255,255,.85); line-height:1.5; word-break:keep-all;}
.ffa-hero-search {display:flex; align-items:center; gap:14px; width:100%; max-width:560px; height:76px; margin-top:10px; padding:0 26px; background:#fff; border-radius:42px; box-shadow:0 10px 28px rgba(0,0,0,.18); box-sizing:border-box;}
.ffa-hero-search img {width:26px; height:26px; opacity:.6;}
.ffa-hero-search input {flex:1; min-width:0; border:0; background:transparent; font-size:23px; color:var(--ink);}
.ffa-hero-search input::placeholder {color:#94A3B8;}

/* 이번 주 많이 본 질문 */
.ffa-trending {display:flex; flex-direction:column; gap:10px; margin:24px 26px 0; padding:20px 24px; background:#FFFBEB; border:1.92px solid #FDE68A; border-radius:14px;}
.ffa-trending-label {font-size:21px; font-weight:700; color:#B45309;}
.ffa-trending-list {font-size:20px; font-weight:500; color:#92400E; line-height:1.6; word-break:keep-all;}
.ffa-trending-link {color:#92400E; text-decoration:none;}
.ffa-trending-link:hover {text-decoration:underline;}

/* 카테고리 그리드 */
.ffa-cats {display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin:24px 26px 0;}
.ffa-cat {display:flex; flex-direction:column; align-items:center; gap:8px; padding:22px 10px; border:1.92px solid var(--line); border-radius:16px; background:var(--card); cursor:pointer;}
.ffa-cat.on {background:#1E3A5F; border-color:#1E3A5F;}
.ffa-cat-ic {font-size:30px;}
.ffa-cat-label {font-size:21px; font-weight:700; color:var(--ink);}
.ffa-cat.on .ffa-cat-label {color:#fff;}
.ffa-cat-count {font-size:18px; font-weight:500; color:var(--sub);}
.ffa-cat.on .ffa-cat-count {color:rgba(255,255,255,.75);}

/* 아코디언 목록 */
.ffa-list {padding:8px 0 190px;}
.ffa-empty {padding:64px 26px; text-align:center; font-size:22px; color:var(--sub);}
.ffa-cat-group {margin:24px 26px 0;}
.ffa-cat-group-head {margin:0 0 12px; font-size:23px; font-weight:800; color:var(--ink);}

.ffa-faq-item {border:1.92px solid var(--line); border-radius:14px; background:var(--card); margin-bottom:12px; overflow:hidden;}
.ffa-faq-item.open {border-color:var(--teal);}
.ffa-faq-q {display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:22px 22px; background:none; border:0; text-align:left; cursor:pointer;}
.ffa-faq-q-text {flex:1; font-size:24px; font-weight:700; color:var(--ink); line-height:1.4; word-break:keep-all;}
.ffa-faq-q-chev {flex:0 0 auto; font-size:20px; color:var(--sub);}
.ffa-faq-item.open .ffa-faq-q-chev {color:var(--teal);}

.ffa-faq-a {padding:0 22px 24px;}
.ffa-faq-a-text {margin:0 0 16px; font-size:22px; font-weight:400; color:var(--ink); line-height:1.65; white-space:pre-wrap; word-break:keep-all;}

.ffa-verse {padding:16px 18px; margin-bottom:16px; background:#E0F2FE; border-left:4px solid #0369A1; border-radius:8px;}
.ffa-verse-ref {display:block; margin-bottom:6px; font-size:19px; font-weight:700; color:#0369A1;}
.ffa-verse-text {margin:0; font-size:20px; font-weight:500; color:#0369A1; line-height:1.55; word-break:keep-all;}

.ffa-faq-tags {display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px;}
.ffa-faq-tag {padding:7px 16px; border:1.92px solid var(--line); border-radius:38px; font-size:19px; font-weight:500; color:#475569; background:var(--snow);}

.ffa-faq-foot {display:flex; gap:14px;}
.ffa-faq-helpful, .ffa-faq-share {display:flex; align-items:center; gap:8px; padding:12px 20px; border:1.92px solid var(--line); border-radius:38px; background:var(--snow); font-size:20px; font-weight:600; color:#475569; cursor:pointer;}

/* ── 하단 탭바 고정 ── */
.ffa-nav, .ffd-nav, .ffw-nav {position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:40; width:720px; max-width:100%; display:flex; align-items:center; justify-content:space-between; padding:20px 40px; background:var(--card); border-top:1.85px solid var(--line);}
.ffd-nav {padding:20px 40px;}
.ffa-nav .tab, .ffd-nav .tab, .ffw-nav .tab {display:flex; flex-direction:column; align-items:center; gap:5.8px; color:var(--sub); font-size:19.2px;}
.ffa-nav .tab img, .ffd-nav .tab img, .ffw-nav .tab img {width:42px; height:42px;}
.ffa-nav .tab.on, .ffd-nav .tab.on, .ffw-nav .tab.on {color:var(--teal);}
.ffa-nav .tab-fab, .ffd-nav .tab-fab, .ffw-nav .tab-fab {position:relative; align-self:stretch; width:96px;}
.ffa-nav .tab-fab .fab, .ffd-nav .tab-fab .fab, .ffw-nav .tab-fab .fab {position:absolute; left:50%; top:0; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; width:96px; height:96px; border-radius:50%; background:linear-gradient(135deg, #0D9488, #1E3A5F); border:5px solid var(--card); box-shadow:0 10px 24px rgba(13,148,136,0.4);}
.ffa-nav .tab-fab .fab img, .ffd-nav .tab-fab .fab img, .ffw-nav .tab-fab .fab img {width:48px; height:48px;}

/* =========================================================
   상세 (ffd-*)
   ========================================================= */
.ffd-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* 헤더 */
.ffd-head {position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:0; height:88px; padding:0 22px; background:var(--card); border-bottom:1.92px solid var(--line);}
.ffd-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.ffd-back img {width:32px; height:32px;}
.ffd-head-title {flex:1; font-size:28px; font-weight:700; color:var(--ink); text-align:center;}
.ffd-hbtn {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px; background:none; border:0; cursor:pointer;}
.ffd-hbtn img {width:26px; height:26px;}

/* 브레드크럼 */
.ffd-crumb {display:flex; align-items:center; gap:8px; padding:18px 26px 14px; font-size:21px; font-weight:500; color:var(--sub);}
.ffd-crumb img {width:20px; height:20px; opacity:.6;}
.ffd-crumb span {color:var(--mute);}

/* 본문 영역 */
.ffd-body {flex:1; padding:0 26px 260px;}

/* 배지 */
.ffd-badges {display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px;}
.ffd-badge {display:inline-flex; align-items:center; gap:5px; padding:5px 16px; border-radius:38px; font-size:20px; font-weight:700; white-space:nowrap;}
.ffd-badge.topic {background:#CCFBF1; color:#0F766E;}
.ffd-badge.hot {background:#FFEDD5; color:#C2410C;}

/* Q 블록 */
.ffd-qbox {padding:30px 28px; margin-bottom:22px; border-radius:18px; background:linear-gradient(135deg, #0D9488, #1E3A5F);}
.ffd-qbox-label {display:block; margin-bottom:10px; font-size:19px; font-weight:800; color:rgba(255,255,255,.75); letter-spacing:1px;}
.ffd-qbox-title {margin:0; font-size:29px; font-weight:800; color:#fff; line-height:1.4; word-break:keep-all;}

/* A 블록 */
.ffd-abox {padding:0 0 20px; margin-bottom:8px; border-bottom:1.92px solid var(--line);}
.ffd-abox-label {display:block; margin-bottom:12px; font-size:20px; font-weight:800; color:var(--teal); letter-spacing:.5px;}
.ffd-abox-text {margin:0 0 18px; font-size:23px; font-weight:400; color:var(--ink); line-height:1.7; white-space:pre-wrap; word-break:keep-all;}

.ffd-verse {padding:18px 20px; background:#E0F2FE; border-left:4px solid #0369A1; border-radius:8px;}
.ffd-verse-ref {display:block; margin-bottom:8px; font-size:20px; font-weight:700; color:#0369A1;}
.ffd-verse-text {margin:0; font-size:21px; font-weight:500; color:#0369A1; line-height:1.6; word-break:keep-all;}

/* 함께 읽으면 좋은 FAQ */
.ffd-related {padding:22px 0; border-bottom:1.92px solid var(--line); margin-bottom:8px;}
.ffd-related-head {margin:0 0 14px; font-size:22px; font-weight:700; color:var(--ink);}
.ffd-related-link {display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; margin-bottom:10px; background:var(--snow); border:1.92px solid var(--line); border-radius:12px; font-size:21px; font-weight:600; color:var(--ink); text-decoration:none;}
.ffd-related-link img {opacity:.5;}

/* 도움 여부 */
.ffd-helpful-sec {display:flex; flex-direction:column; align-items:center; gap:16px; padding:28px 0; border-bottom:1.92px solid var(--line); margin-bottom:8px;}
.ffd-helpful-q {margin:0; font-size:22px; font-weight:600; color:var(--sub);}
.ffd-helpful-acts {display:flex; gap:14px;}
.ffd-helpful-btn, .ffd-share-btn {display:flex; align-items:center; gap:8px; padding:14px 26px; border:1.92px solid var(--line); border-radius:38px; background:var(--card); font-size:21px; font-weight:600; color:#475569; cursor:pointer;}
.ffd-helpful-btn.on {background:var(--mint); border-color:var(--teal); color:var(--teal);}

/* 추가 질문 */
.ffd-followup-sec {padding:8px 0;}
.ffd-followup-head {margin:0 0 16px; font-size:24px; font-weight:700; color:var(--ink);}
.ffd-followup-list {display:flex; flex-direction:column; gap:0;}
.ffd-followup-item {display:flex; gap:16px; padding:20px 0; border-bottom:1.92px solid var(--line);}
.ffd-followup-av {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:50px; height:50px; border-radius:50%; background:var(--teal); font-size:20px; font-weight:700; color:#fff;}
.ffd-followup-av.official {background:#1E3A5F;}
.ffd-followup-body {flex:1; min-width:0;}
.ffd-followup-top {display:flex; align-items:center; gap:10px; margin-bottom:6px; flex-wrap:wrap;}
.ffd-followup-nm {font-size:21px; font-weight:700; color:var(--ink);}
.ffd-followup-badge {padding:2px 12px; border-radius:30px; font-size:17px; font-weight:700; color:#fff; background:#1E3A5F;}
.ffd-followup-dt {font-size:19px; color:var(--sub);}
.ffd-followup-text {margin:0; font-size:21px; color:var(--ink); line-height:1.55; word-break:keep-all;}
.ffd-followup-item.official .ffd-followup-text {color:#1E3A5F; font-weight:500;}

/* 하단 고정 (추가 질문 입력 + 탭바) */
.ffd-bottom {position:fixed; left:50%; bottom:0; transform:translateX(-50%); width:720px; max-width:100%; z-index:30; background:var(--card); border-top:1.92px solid var(--line);}
.ffd-followup-write {display:flex; align-items:center; gap:16px; padding:18px 26px;}
.ffd-followup-input {flex:1; height:64px; padding:0 22px; border:1.92px solid var(--line); border-radius:38px; background:var(--snow); font-size:23px; color:var(--ink);}
.ffd-followup-input::placeholder {color:var(--sub);}
.ffd-send {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:50%; background:var(--teal); border:0; cursor:pointer;}
.ffd-send img {width:28px; height:28px; filter:brightness(0) invert(1);}

/* =========================================================
   작성 (ffw-*) — 운영자 전용
   ========================================================= */
.ffw-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* 헤더 */
.ffw-head {position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:0; height:88px; padding:0 22px; background:var(--card); border-bottom:1.92px solid var(--line);}
.ffw-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.ffw-back img {width:32px; height:32px;}
.ffw-head-title {flex:1; font-size:28px; font-weight:700; color:var(--ink); text-align:center;}
.ffw-draft-btn {flex:0 0 auto; padding:0 6px; height:58px; background:none; border:0; font-size:21px; font-weight:600; color:var(--teal); cursor:pointer;}

/* 운영자 전용 안내 배너 */
.ffw-banner {margin:22px 22px 0; padding:18px 24px; border-radius:14px; background:#1E3A5F; color:#fff; font-size:21px; font-weight:700; text-align:center;}

/* 폼 본문 */
.ffw-body {flex:1; padding:24px 0 200px;}
.ffw-card {margin:0 22px 18px; padding:28px 26px 24px; background:var(--card); border:1.92px solid var(--line); border-radius:19px;}
.ffw-label {display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:24px; font-weight:700; color:var(--ink);}
.ffw-label i {color:#EF4444; font-style:normal; font-size:26px;}
.ffw-label small {font-size:20px; font-weight:400; color:var(--sub);}
.ffw-sub-label {display:block; margin-bottom:10px; font-size:20px; font-weight:600; color:var(--sub);}

/* 분류 드롭다운 */
.ffw-dd {position:relative;}
.ffw-select {width:100%; height:72px; padding:0 22px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink); display:flex; align-items:center; justify-content:space-between; box-sizing:border-box; cursor:pointer;}
.ffw-select .lbl {overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.ffw-select img {width:20px; height:20px; flex:0 0 auto; transition:transform .2s ease;}
.ffw-dd.open .ffw-select img {transform:rotate(180deg);}
.ffw-dd-menu {position:absolute; top:78px; left:0; right:0; z-index:30; max-height:0; overflow:hidden; opacity:0; background:var(--card); border-radius:14px; box-shadow:0 18px 44px rgba(15,23,42,.18); transition:opacity .15s ease;}
.ffw-dd.open .ffw-dd-menu {max-height:320px; overflow-y:auto; opacity:1; padding:8px; border:1.92px solid var(--line);}
.ffw-dd-menu li {padding:14px 16px; border-radius:10px; font-size:22px; color:var(--ink); cursor:pointer; white-space:nowrap;}
.ffw-dd-menu li.on {background:var(--mint); color:var(--teal); font-weight:700;}

/* input / textarea */
.ffw-input {width:100%; height:72px; padding:0 22px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink); box-sizing:border-box;}
.ffw-input::placeholder {color:var(--sub);}
.ffw-count {text-align:right; margin-top:8px; font-size:20px; color:var(--sub);}
.ffw-textarea {width:100%; min-height:220px; padding:20px 22px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink); line-height:1.6; resize:vertical; box-sizing:border-box;}
.ffw-textarea.small {min-height:110px;}
.ffw-textarea::placeholder {color:var(--sub);}

/* 제출 버튼 */
.ffw-submit {display:block; width:calc(100% - 44px); margin:0 22px; height:88px; border-radius:16px; background:var(--teal); border:0; font-size:28px; font-weight:700; color:#fff; cursor:pointer; letter-spacing:.5px;}
.ffw-submit:active {background:var(--teal-2);}

/* ── 다크모드 ── */
.churchro.dark-mode .ffa-cat {background:var(--card);}
.churchro.dark-mode .ffa-trending {background:#2A2410;}
.churchro.dark-mode .ffa-verse, .churchro.dark-mode .ffd-verse {background:#0C2A3A;}
.churchro.dark-mode .ffd-abox-text {color:var(--ink);}
.churchro.dark-mode .ffw-select,
.churchro.dark-mode .ffw-input,
.churchro.dark-mode .ffw-textarea {background:var(--snow); color:var(--ink);}
