@charset "utf-8";

/* ===== 영상·음향Q&A (720px viewport / 375 Figma = 1.92×) ===== */
/* 헤더(검색바+브레드크럼+탭스크롤) 구조는 질문·답변(qna.css)과 동일 패턴을 따름 */

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

/* ── 헤더 ── */
.avq-head {position:sticky; top:0; z-index:20; background:var(--card);}

/* 검색 바 */
.avq-bar {display:flex; align-items:center; gap:14px; padding:17px 22px; border-bottom:1.92px solid var(--line);}
.avq-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.avq-back img {width:32px; height:32px;}
.avq-search {flex:1; display:flex; align-items:center; gap:16px; height:74px; padding:0 28px; background:var(--snow); border:1.92px solid var(--line); border-radius:42px;}
.avq-search img {width:31px; height:31px;}
.avq-search input {flex:1; min-width:0; border:0; background:transparent; font-size:25px; color:var(--ink);}
.avq-search input::placeholder {color:#6B7280;}

/* 브레드크럼 */
.avq-crumb {display:flex; align-items:center; gap:11px; padding:15px 27px 13px; border-bottom:1.92px solid var(--line); font-size:23px; font-weight:700; color:#6B7280;}
.avq-crumb img {width:25px; height:25px;}

/* 탭 (스크롤 + 좌우 화살표) */
.avq-tabswrap {position:relative;}
.avq-tabs {display:flex; gap:0; padding:0 22px; overflow-x:auto; scrollbar-width:none; border-bottom:3.84px solid var(--line);}
.avq-tabs::-webkit-scrollbar {display:none;}
.avq-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;}
.avq-tab.on {color:var(--teal); font-weight:700;}
.avq-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);}
.avq-tabarrow {position:absolute; top:0; bottom:3.84px; width:46px; z-index:5; display:flex; align-items:center; justify-content:center; border:0; cursor:pointer; padding:0;}
.avq-tabarrow img {width:16px; height:16px;}
.avq-tabarrow.prev {left:0; background:linear-gradient(to right, var(--card) 55%, transparent);}
.avq-tabarrow.next {right:0; background:linear-gradient(to left, var(--card) 55%, transparent);}

/* ── 게시판 설명 바 ── */
.avq-desc {display:flex; align-items:flex-start; gap:14px; padding:20px 26px; background:#F8FAFC; border-bottom:1.92px solid var(--line);}
.avq-desc-ic {flex:0 0 auto; width:30px; height:30px; margin-top:2px;}
.avq-desc p {margin:0; font-size:22px; font-weight:400; color:#475569; line-height:1.55;}

/* ── 필터 칩 (스크롤 + 좌우 화살표) ── */
.avq-filterswrap {position:relative; border-bottom:1.92px solid var(--line);}
.avq-filters {display:flex; gap:12px; padding:18px 26px; overflow-x:auto; scrollbar-width:none;}
.avq-filters::-webkit-scrollbar {display:none;}
.avq-filter {flex:0 0 auto; display:flex; align-items:center; gap:6px; padding:11px 22px; border:1.92px solid var(--line); border-radius:38px; background:var(--card); font-size:21px; font-weight:500; color:#475569; cursor:pointer; white-space:nowrap;}
.avq-filter.on {background:var(--teal); border-color:var(--teal); color:#fff; font-weight:700;}
.avq-filterarrow {position:absolute; top:0; bottom:0; width:44px; z-index:5; display:flex; align-items:center; justify-content:center; border:0; cursor:pointer; padding:0;}
.avq-filterarrow img {width:15px; height:15px;}
.avq-filterarrow.prev {left:0; background:linear-gradient(to right, var(--snow) 55%, transparent);}
.avq-filterarrow.next {right:0; background:linear-gradient(to left, var(--snow) 55%, transparent);}

/* ── 목록 헤더 (건수 + 정렬) ── */
.avq-lhead {display:flex; align-items:center; justify-content:space-between; padding:22px 26px 14px;}
.avq-lhead-count {font-size:24px; font-weight:600; color:#475569;}
.avq-lhead-count b {font-size:28px; font-weight:800; color:var(--teal);}
.avq-sort {display:flex; align-items:center; gap:6px; padding:10px 18px; border-radius:38px; background:none; border:none; font-size:21px; font-weight:500; color:#475569; cursor:pointer;}
.avq-sort img {width:18px; height:18px;}

/* ── 질문 목록 ── */
.avq-list {display:flex; flex-direction:column; gap:0; padding:0 0 190px;}
.avq-empty {padding:64px 26px; text-align:center; font-size:22px; color:var(--sub); background:var(--card); border-top:1.92px solid var(--line);}
.avq-item {display:flex; flex-direction:column; gap:8px; padding:26px 26px 22px; background:var(--card); border-bottom:1.92px solid var(--line); cursor:pointer; text-decoration:none;}
.avq-item:first-child {border-top:1.92px solid var(--line);}

.avq-item-row1 {display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.avq-badge {display:inline-flex; align-items:center; gap:5px; padding:5px 16px; border-radius:38px; font-size:20px; font-weight:700; white-space:nowrap; background:#EFF6FF; color:#2563EB;}
.avq-badge.avq-new {background:#FEE2E2; color:#DC2626;}

.avq-item-title {font-size:26px; font-weight:600; color:var(--ink); line-height:1.4; word-break:keep-all;}
.avq-item-excerpt {font-size:22px; font-weight:400; color:var(--sub); line-height:1.5; word-break:keep-all; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.avq-item-accepted {margin:2px 0 0; padding:14px 18px; background:var(--mint); border-left:4px solid var(--teal); border-radius:8px; font-size:21px; font-weight:500; color:var(--teal); line-height:1.5; word-break:keep-all; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.avq-item-meta {display:flex; align-items:center; gap:8px; font-size:21px; font-weight:400; color:var(--sub);}
.avq-item-meta .dot {color:var(--mute);}
.avq-item-stats {display:flex; align-items:center; gap:22px;}
.avq-stat {display:flex; align-items:center; gap:7px; font-size:21px; font-weight:400; color:var(--sub);}
.avq-stat img {width:22px; height:22px; opacity:.55; color:#94A3B8;}

/* ── 페이지네이션 (번호형) ── */
.avq-page {display:flex; align-items:center; justify-content:center; gap:6px; padding:24px 20px 32px; flex-wrap:wrap;}
.avq-page .pg {display:flex; align-items:center; justify-content:center; min-width:48px; height:48px; padding:0 8px; border:0; border-radius:10px; background:none; font-size:21px; font-weight:500; color:var(--sub); cursor:pointer;}
.avq-page .pg.on {background:var(--teal); color:#fff; font-weight:700;}
.avq-page .dots {display:flex; align-items:center; justify-content:center; min-width:32px; height:48px; color:var(--mute); font-size:21px;}

/* ── FAB (질문하기 버튼, 텍스트형) ── */
.avq-fab {position:fixed; right:32px; bottom:176px; z-index:30; display:flex; align-items:center; gap:8px; padding:18px 26px; background:var(--teal); border-radius:44px; box-shadow:0 8px 24px rgba(15,118,110,.35); text-decoration:none; color:#fff; font-size:23px; font-weight:700;}
.avq-fab, .avq-fab:link, .avq-fab:visited, .avq-fab:hover, .avq-fab:active {color:#fff; text-decoration:none;}
.avq-fab img {width:24px; height:24px; filter:brightness(0) invert(1);}

/* ── 하단 탭바 고정 ── */
.avq-nav, .avd-nav, .avw-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);}
.avq-nav .tab, .avd-nav .tab, .avw-nav .tab {display:flex; flex-direction:column; align-items:center; gap:5.8px; color:var(--sub); font-size:19.2px;}
.avq-nav .tab img, .avd-nav .tab img, .avw-nav .tab img {width:42px; height:42px;}
.avq-nav .tab.on, .avd-nav .tab.on, .avw-nav .tab.on {color:var(--teal);}
.avq-nav .tab-fab, .avd-nav .tab-fab, .avw-nav .tab-fab {position:relative; align-self:stretch; width:96px;}
.avq-nav .tab-fab .fab, .avd-nav .tab-fab .fab, .avw-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);}
.avq-nav .tab-fab .fab img, .avd-nav .tab-fab .fab img, .avw-nav .tab-fab .fab img {width:48px; height:48px;}

/* =========================================================
   상세 (avd-*) — 하단 답변 입력은 fixed 바가 아니라 본문 흐름 안의 카드
   ========================================================= */
.avd-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* 헤더 */
.avd-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);}
.avd-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.avd-back img {width:32px; height:32px;}
.avd-head-title {flex:1; font-size:28px; font-weight:700; color:var(--ink); text-align:center;}
.avd-hacts {flex:0 0 auto; display:flex; align-items:center; gap:4px;}
.avd-hbtn {display:flex; align-items:center; justify-content:center; width:58px; height:58px; background:none; border:0; cursor:pointer;}
.avd-hbtn img {width:26px; height:26px;}

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

/* 본문 영역 */
.avd-body {flex:1; padding:0 26px 160px; background:var(--card);}

/* 배지 + 제목 */
.avd-badges {display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px;}
.avd-badge {display:inline-flex; align-items:center; gap:5px; padding:5px 16px; border-radius:38px; font-size:20px; font-weight:700; white-space:nowrap; background:#EFF6FF; color:#2563EB;}
.avd-badge.accepted {background:#DCFCE7; color:#15803D;}
.avd-badge.topic {background:#E0F2FE; color:#0369A1;}
.avd-title {font-size:32px; font-weight:800; color:var(--ink); line-height:1.4; margin:0 0 24px; word-break:keep-all;}

/* 작성자 */
.avd-author {display:flex; align-items:center; gap:18px; padding:20px 0; border-top:1.92px solid var(--line); border-bottom:1.92px solid var(--line); margin-bottom:24px;}
.avd-avatar {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; background:var(--teal); font-size:24px; font-weight:700; color:#fff;}
.avd-author-info {flex:1; min-width:0;}
.avd-author-name {display:block; font-size:24px; font-weight:700; color:var(--ink);}
.avd-author-date {display:block; font-size:21px; font-weight:400; color:var(--sub); margin-top:4px;}
.avd-report-btn {flex:0 0 auto; padding:10px 20px; border:1.92px solid var(--line); border-radius:38px; background:none; font-size:21px; font-weight:500; color:var(--sub); cursor:pointer;}

/* 본문 내용 */
.avd-content {font-size:24px; font-weight:400; color:var(--ink); line-height:1.75; margin-bottom:24px; white-space:pre-wrap; word-break:keep-all;}

/* 태그 */
.avd-tags {display:flex; flex-wrap:wrap; gap:12px; padding-bottom:24px; margin-bottom:0;}
.avd-tag {padding:9px 20px; border:1.92px solid var(--line); border-radius:38px; font-size:21px; font-weight:500; color:#475569; background:var(--snow); cursor:pointer;}

/* 통계 (인라인) */
.avd-stats {display:flex; align-items:center; gap:24px; padding:18px 0; border-top:1.92px solid var(--line); margin-bottom:16px;}
.avd-stat {display:flex; align-items:center; gap:7px; font-size:22px; font-weight:500; color:var(--sub);}
.avd-stat img {width:24px; height:24px; opacity:.55;}

/* 도움됐어요/공유/저장 버튼 */
.avd-acts {display:flex; align-items:center; gap:0; border:1.92px solid var(--line); border-radius:16px; overflow:hidden; margin-bottom:32px;}
.avd-act {flex:1; display:flex; align-items:center; justify-content:center; gap:10px; padding:22px 0; background:var(--card); border:0; font-size:23px; font-weight:500; color:#475569; cursor:pointer;}
.avd-act + .avd-act {border-left:1.92px solid var(--line);}
.avd-act img {width:26px; height:26px;}
.avd-act.on {color:var(--teal);}
.avd-act.heart.on {background:#FEF2F2; color:#DC2626;}
.avd-act.heart.on img {filter:none;}

/* 답변 섹션 */
.avd-anssec {padding:8px 0;}
.avd-ans-head {display:flex; align-items:center; justify-content:space-between; padding:20px 0 18px; border-top:3.84px solid var(--line);}
.avd-ans-head h2 {margin:0; font-size:27px; font-weight:700; color:var(--ink);}
.avd-ans-empty {display:flex; flex-direction:column; align-items:center; gap:10px; padding:48px 0; color:var(--sub); font-size:22px;}
.avd-ans-list {display:flex; flex-direction:column; gap:0;}

/* 채택된 답변 카드 (강조) */
.avd-ans-card {margin-bottom:8px; padding:22px 22px 6px; background:var(--mint); border:1.92px solid var(--teal); border-radius:16px;}
.avd-ans-card-head {font-size:22px; font-weight:800; color:var(--teal); margin-bottom:12px;}
.avd-ans-card .avd-ans-item {padding:0 0 20px; border-bottom:0;}

/* 답변 아이템 (공통) */
.avd-ans-item {display:flex; gap:18px; padding:22px 0; border-bottom:1.92px solid var(--line);}
.avd-ans-av {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:50%; font-size:22px; font-weight:700; color:#fff;}
.avd-ans-body {flex:1; min-width:0;}
.avd-ans-top {display:flex; align-items:center; gap:10px; margin-bottom:8px; flex-wrap:wrap;}
.avd-ans-nm {font-size:23px; font-weight:700; color:var(--ink);}
.avd-ans-role {padding:2px 12px; border-radius:30px; font-size:18px; font-weight:600; color:#475569; background:#F1F5F9;}
.avd-ans-role.top {color:var(--teal); background:#fff;}
.avd-ans-dt {font-size:20px; font-weight:400; color:var(--sub);}
.avd-ans-text {font-size:23px; font-weight:400; color:var(--ink); line-height:1.65; margin:0 0 12px; white-space:pre-wrap; word-break:keep-all;}
.avd-ans-acts {display:flex; gap:20px;}
.avd-ans-act {display:flex; align-items:center; gap:6px; font-size:20px; font-weight:500; color:var(--sub); background:none; border:0; cursor:pointer; padding:0;}
.avd-ans-act img {width:22px; height:22px;}

/* 답변 달기 (본문 흐름 카드) */
.avd-reply {margin:28px 0 0; padding:26px 24px; background:var(--snow); border:1.92px solid var(--line); border-radius:16px;}
.avd-reply-head {font-size:23px; font-weight:700; color:var(--ink); margin-bottom:14px;}
.avd-reply-textarea {width:100%; min-height:140px; padding:18px 20px; border:1.92px solid var(--line); border-radius:14px; background:var(--card); font-size:23px; color:var(--ink); line-height:1.6; resize:vertical; box-sizing:border-box;}
.avd-reply-textarea::placeholder {color:var(--sub);}
.avd-reply-foot {display:flex; align-items:center; justify-content:space-between; margin-top:12px;}
.avd-reply-count {font-size:20px; color:var(--sub);}
.avd-reply-submit {padding:16px 30px; border-radius:14px; background:var(--teal); border:0; font-size:22px; font-weight:700; color:#fff; cursor:pointer;}
.avd-reply-submit:active {background:var(--teal-2);}

/* 삭제 확인 팝업 (window.confirm 대체) */
.avd-confirm {position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:60; width:720px; max-width:100%; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:38px; background:rgba(0,0,0,.5);}
.avd-confirm-card {width:100%; max-width:538px; overflow:hidden; border-radius:28px; background:var(--card); box-shadow:0 15px 77px rgba(0,0,0,.2);}
.avd-confirm-head {display:flex; flex-direction:column; align-items:center; gap:8px; padding:35px 35px 23px;}
.avd-confirm-head h3 {margin:0; font-size:28px; font-weight:800; color:var(--ink); text-align:center;}
.avd-confirm-head p {margin:0; font-size:22px; color:var(--sub); text-align:center;}
.avd-confirm-foot {display:flex; gap:12px; padding:0 27px 30px;}
.avd-confirm-btn {flex:1; display:flex; align-items:center; justify-content:center; padding:22px 0; border-radius:14px; font-size:23px; font-weight:700; border:0; cursor:pointer;}
.avd-confirm-btn.ghost {border:1.92px solid var(--line); background:none; color:var(--body);}
.avd-confirm-btn.danger {background:#DC2626; color:#fff;}

/* =========================================================
   작성 (avw-*)
   ========================================================= */
.avw-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* 헤더 */
.avw-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);}
.avw-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.avw-back img {width:32px; height:32px;}
.avw-head-title {flex:1; font-size:28px; font-weight:700; color:var(--ink); text-align:center;}
.avw-hspacer {flex:0 0 auto; width:58px; height:58px;}

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

/* 분류 드롭다운 */
.avw-dd {position:relative;}
.avw-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;}
.avw-select .lbl {overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.avw-select img {width:20px; height:20px; flex:0 0 auto; transition:transform .2s ease;}
.avw-dd.open .avw-select img {transform:rotate(180deg);}
.avw-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;}
.avw-dd.open .avw-dd-menu {max-height:320px; overflow-y:auto; opacity:1; padding:8px; border:1.92px solid var(--line);}
.avw-dd-menu li {padding:14px 16px; border-radius:10px; font-size:22px; color:var(--ink); cursor:pointer; white-space:nowrap;}
.avw-dd-menu li.on {background:var(--mint); color:var(--teal); font-weight:700;}

/* input */
.avw-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;}
.avw-input::placeholder {color:var(--sub);}
.avw-count {text-align:right; margin-top:8px; font-size:20px; color:var(--sub);}

/* 안내 콜아웃 (파란 정보 박스) */
.avw-notice {display:flex; align-items:flex-start; gap:10px; padding:16px 18px; background:var(--mint); border:1.92px solid var(--teal); border-radius:12px; margin-bottom:16px;}
.avw-notice p {margin:0; font-size:20px; font-weight:500; color:var(--teal); line-height:1.5;}

/* textarea */
.avw-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;}
.avw-textarea::placeholder {color:var(--sub);}

/* 사진 첨부 (컴팩트 버튼) */
.avw-upload {display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; width:144px; height:144px; border:1.92px dashed var(--line); border-radius:14px; background:var(--snow); cursor:pointer;}
.avw-upload img {width:36px; height:36px; opacity:.45;}
.avw-upload span {font-size:20px; font-weight:500; color:var(--sub);}
.avw-upload-hint {margin:10px 0 0; font-size:19px; color:var(--mute);}

/* 태그 */
.avw-tag-row {display:flex; gap:14px; align-items:center;}
.avw-tag-input {flex:1; height:68px; padding:0 20px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink);}
.avw-tag-input::placeholder {color:var(--sub);}
.avw-tag-add {flex:0 0 auto; height:68px; padding:0 28px; border-radius:14px; background:var(--teal); border:0; font-size:23px; font-weight:700; color:#fff; cursor:pointer;}
.avw-tag-list {display:flex; flex-wrap:wrap; gap:12px; margin-top:16px;}
.avw-tag-chip {display:flex; align-items:center; gap:8px; padding:10px 18px; border:1.92px solid var(--line); border-radius:38px; background:var(--snow); font-size:21px; font-weight:500; color:#475569;}
.avw-tag-chip button {display:flex; align-items:center; background:none; border:0; cursor:pointer; padding:0; color:var(--sub); font-size:22px; line-height:1;}

/* 제출 버튼 */
.avw-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;}
.avw-submit:active {background:var(--teal-2);}

/* ── 다크모드 ── */
.churchro.dark-mode .avq-desc {background:#16202E;}
.churchro.dark-mode .avd-ans-card {background:#0F2A26;}
.churchro.dark-mode .avd-reply {background:#16202E;}
.churchro.dark-mode .avd-reply-textarea {background:var(--card);}
.churchro.dark-mode .avw-select,
.churchro.dark-mode .avw-input,
.churchro.dark-mode .avw-textarea,
.churchro.dark-mode .avw-tag-input {background:var(--snow); color:var(--ink);}
.churchro.dark-mode .avw-notice {background:var(--mint);}
