/* ==========================================================
   board-view.css : 게시판 글보기 공통 (ch_basic · mc_video)
========================================================== */
.mbv { --v-ink: #121014; --v-text: #4b4b52; --v-muted: #8b8b94; --v-line: #e9e7ee; --v-soft: #f6f5f8; --v-accent: #844ad7;
	max-width: 920px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) 20px clamp(64px, 8vw, 110px); box-sizing: border-box;
	font-family: 'Pretendard Variable', Pretendard, sans-serif; color: var(--v-ink); word-break: keep-all; }
.mbv *, .mbv *:before, .mbv *:after { box-sizing: border-box; }
.mbv a { color: inherit; text-decoration: none; }
.mbv h1, .mbv h2, .mbv p { margin: 0; }

.mbv-head { padding-bottom: 26px; border-bottom: 2px solid var(--v-ink); }
.mbv-board { display: flex; align-items: center; gap: 8px; margin-bottom: 14px !important; font-size: 14px; font-weight: 700; color: var(--v-accent); }
.mbv-board span { padding: 2px 8px; border-radius: 4px; background: #f2ecfb; font-size: 12px; }
.mbv-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.35; letter-spacing: -.03em; }
.mbv-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px !important; font-size: 14px; color: var(--v-muted); }

.mbv-body { padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--v-line); }
.mbv-img { margin: 0 0 20px; }
.mbv-img img, .mbv-content img { max-width: 100% !important; height: auto !important; }
.mbv-content { font-size: 16px; line-height: 1.9; color: #2c2b30; overflow-wrap: anywhere; }
.mbv-content p { margin: 0 0 1em; }
.mbv-content a { color: var(--v-accent); text-decoration: underline; }
.mbv-sign { margin-top: 24px !important; padding-top: 16px; border-top: 1px dashed var(--v-line); font-size: 14px; color: var(--v-muted); }

.mbv-attach { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--v-line); }
.mbv-attach__item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 6px; background: var(--v-soft); font-size: 14px; overflow: hidden; }
.mbv-attach__item small { margin-left: auto; color: var(--v-muted); }
.mbv-attach__tag { flex-shrink: 0; padding: 2px 8px; border-radius: 4px; background: #fff; border: 1px solid var(--v-line); font-size: 12px; font-weight: 700; color: var(--v-text); }

.mbv-nav { display: grid; border-bottom: 1px solid var(--v-line); }
.mbv-nav a { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; padding: 16px 4px; font-size: 15px; transition: color .15s; }
.mbv-nav a + a { border-top: 1px solid var(--v-line); }
.mbv-nav a span { font-size: 13px; color: var(--v-muted); }
.mbv-nav a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mbv-nav a:hover { color: var(--v-accent); }

.mbv-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; }
.mbv-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border: 1px solid var(--v-ink); border-radius: 4px; background: var(--v-ink); color: #fff !important; font-size: 15px; font-weight: 700; transition: background-color .15s, border-color .15s; }
.mbv-btn:hover { background: var(--v-accent); border-color: var(--v-accent); }
.mbv-btn--line { background: #fff; border-color: var(--v-line); color: var(--v-ink) !important; }
.mbv-btn--line:hover { background: #fff; border-color: var(--v-ink); }

/* 동영상 */
.mbv--video { max-width: 1040px; }
.mbv-player { position: relative; aspect-ratio: 16 / 9; margin-top: 28px; background: #000; }
.mbv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mbv-player__empty { display: grid; place-items: center; height: 100%; color: #aaa; }
.mbv-content--desc { padding: 26px 0; border-bottom: 1px solid var(--v-line); }
.mbv-more { margin-top: clamp(48px, 6vw, 72px); }
.mbv-more h2 { margin-bottom: 18px; font-size: 20px; font-weight: 800; }
.mbv-more ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mbv-more a { display: flex; flex-direction: column; gap: 6px; }
.mbv-more__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.mbv-more__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mbv-more a:hover img { transform: scale(1.04); }
.mbv-more strong { font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mbv-more small { font-size: 12px; color: var(--v-muted); }

/* 댓글 · 답변 (ch_basic view_comment.skin.php) */
.mbv #bo_vc { margin-top: clamp(48px, 6vw, 72px); }
.mbv #bo_vc > h2, .mbv .bo_vc_w h2 { font-size: 18px; font-weight: 800; padding-bottom: 12px; border-bottom: 2px solid var(--v-ink); }
.mbv #bo_vc article { padding: 18px 4px; border-bottom: 1px solid var(--v-line); }
.mbv #bo_vc_empty { padding: 40px 0; text-align: center; color: var(--v-muted); font-size: 14px; }
.mbv .cmt_contents { margin-top: 8px; font-size: 15px; line-height: 1.75; color: #2c2b30; }
.mbv .bo_vc_w { margin-top: 28px; }
.mbv #wr_content, .mbv .bo_vc_w textarea { width: 100%; min-height: 110px; padding: 14px; border: 1px solid var(--v-line); border-radius: 6px; font: inherit; font-size: 15px; resize: vertical; }
.mbv .bo_vc_w .frm_input { height: 44px; padding: 0 12px; border: 1px solid var(--v-line); border-radius: 6px; }
.mbv .btn-e-teal, .mbv #btn_submit { height: 46px; padding: 0 22px; border: 0 !important; border-radius: 4px !important; background: var(--v-ink) !important; color: #fff !important; font-weight: 700; }
.mbv .btn-e-default { border-radius: 4px !important; }

@media screen and (max-width: 767px) {
	.mbv { padding-left: 16px; padding-right: 16px; }
	.mbv-more ul { grid-template-columns: 1fr 1fr; }
	.mbv-btn { flex: 1 1 auto; }
}
.mbv-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }

/* 질문답변 : 병원 답변 상자 */
.mbv-answer { margin-top: clamp(40px, 5vw, 64px); }
.mbv-answer h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--v-ink); font-size: 18px; font-weight: 800; }
.mbv-answer__item { margin-top: 14px; padding: 22px 24px; border-radius: 8px; background: #f7f3fd; border: 1px solid #ebe2f8; }
.mbv-answer__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; font-size: 14px; color: var(--v-muted); }
.mbv-answer__meta b { padding: 3px 10px; border-radius: 4px; background: var(--v-accent); color: #fff; font-size: 13px; }
.mbv-answer__text { font-size: 16px; line-height: 1.85; color: #2c2b30; }
.mbv-answer__wait { margin: 0; padding: 24px; border-radius: 8px; background: var(--v-soft); color: var(--v-text); font-size: 15px; text-align: center; }
.mbv-answer__wait a { color: var(--v-accent); font-weight: 700; }
.mbv-answer__admin { margin-top: 12px !important; text-align: right; font-size: 14px; }
.mbv-answer__admin a { color: var(--v-accent); font-weight: 700; }
.mbv-qa-state { padding: 1px 8px; border-radius: 4px; background: #fff4e0; color: #c27a00; font-weight: 700; }
.mbv-qa-state.is-done { background: #e8f6ee; color: #1a8a4a; }
