/* =========================================================
 * 파일명: pblc-discussion-view.css
 * 용도  : 사용자 숙의/공론화 상세 보기 화면 전용 스타일
 * 특징  : 국민의견플랫폼 톤에 맞춘 카드형 / 버튼형 / 타임라인형 UI
 * 주의  :
 *   1) 대댓글 인덴트는 JSP/JS에서 아래 클래스를 붙여줘야 동작함
 *      - .pdv-comment-root
 *      - .pdv-reply-node
 *      - .pdv-reply-depth-1 / 2 / 3 / 4 / deep
 *   2) 기존 중복 선언된 .pdv-reply-wrap / .pdv-reply-level-* 제거 통합본
 * ========================================================= */

/* =========================================================
 * 공통 레이아웃
 * ========================================================= */
.pdv-wrap {
    /* max-width: 1280px; */
    width:100%;
    margin: 0 auto;
    padding: 24px 20px 60px;
    background: #f7f8fb;
    color: #222;
    /* font-family: "Malgun Gothic", "맑은 고딕", sans-serif; */
    box-sizing: border-box;
}

.pdv-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 34, 58, 0.04);
    padding: 24px;
    margin-bottom: 20px;
}

.pdv-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 800;
    color: #111;
}

.pdv-desc {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

.pdv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 15px;
    color: #2d3748;
}

.pdv-meta strong {
    color: #111;
}

/* =========================================================
 * 상단 주제 탭
 * ========================================================= */
.pdv-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pdv-chip-btn {
    min-width: 120px;
    padding: 10px 16px;
    border: 1px solid #cfd7e6;
    border-radius: 999px;
    background: #fff;
    color: #355070;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pdv-chip-btn:hover {
    border-color: #2f6fed;
    color: #2f6fed;
}

.pdv-chip-btn.is-active {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
    box-shadow: 0 6px 14px rgba(47, 111, 237, 0.18);
}

/* =========================================================
 * 보기 모드 버튼
 * ========================================================= */
.pdv-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.pdv-mode-btn {
    min-width: 140px;
    padding: 11px 18px;
    border: 1px solid #b9c7e4;
    border-radius: 12px;
    background: #fff;
    color: #2f5aa7;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pdv-mode-btn:hover {
    border-color: #2f6fed;
    color: #2f6fed;
}

.pdv-mode-btn.is-active {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

/* =========================================================
 * 토픽 카드
 * ========================================================= */
.pdv-topic-card {
    background: #fff;
    border: 1px solid #e4e9f2;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 3px 10px rgba(21, 34, 50, 0.03);
}

.pdv-topic-head {
    margin-bottom: 14px;
}

.pdv-topic-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.pdv-topic-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
}

.pdv-link-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2f6fed;
    font-weight: 700;
    text-decoration: none;
}

.pdv-link-badge:hover {
    background: #dfeaff;
}

/* =========================================================
 * 본문 viewer 영역
 * ========================================================= */
.pdv-viewer-wrap {
    border-top: 1px solid #edf1f7;
    margin-top: 16px;
    padding-top: 18px;
}

.pdv-viewer-wrap .toastui-editor-contents {
    font-size: 15px;
    line-height: 1.8;
    color: #1f2937;
}

/* =========================================================
 * 댓글 입력 영역
 * ========================================================= */
.pdv-comment-write {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: #f8faff;
    border: 1px solid #e3ebfb;
}

.pdv-textarea {
    width: 100%;
    min-height: 96px;
    padding: 14px 16px;
    border: 1px solid #d6deed;
    border-radius: 12px;
    box-sizing: border-box;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

.pdv-textarea:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.10);
}

/* =========================================================
 * 공통 버튼
 * ========================================================= */
.pdv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 10px 16px;
    border: 1px solid #c9d5ec;
    border-radius: 10px;
    background: #fff;
    color: #355070;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pdv-btn:hover {
    border-color: #2f6fed;
    color: #2f6fed;
}

.pdv-btn-primary {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

.pdv-btn-primary:hover {
    background: #1f5de0;
    border-color: #1f5de0;
    color: #fff;
}

.pdv-btn-soft {
    background: #f6f9ff;
    border-color: #d8e4fb;
    color: #2f6fed;
}

/* =========================================================
 * 댓글 목록
 * ========================================================= */
.pdv-comment-list {
    margin-top: 24px;
}

.pdv-comment-item {
    padding: 18px 0;
    border-top: 1px solid #edf1f7;
}

.pdv-comment-item:first-child {
    border-top: 0;
}

.pdv-comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 10px;
}

.pdv-comment-author {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.pdv-comment-date {
    font-size: 14px;
    color: #6b7280;
}

.pdv-comment-body {
    font-size: 15px;
    line-height: 1.8;
    color: #1f2937;
    word-break: break-word;
}

.pdv-comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pdv-comment-form-box {
    margin-top: 14px;
    padding: 14px;
    background: #f9fbff;
    border: 1px solid #e4ecfa;
    border-radius: 12px;
}

/* =========================================================
 * 상태 안내 / 수정 안내
 * ========================================================= */
.pdv-state-text {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f7fa;
    color: #5b6473;
    font-size: 14px;
    line-height: 1.7;
}

.pdv-edit-info {
    margin-top: 6px;
    font-size: 12px;
    color: #768398;
}

/* =========================================================
 * [핵심] 대댓글 계층 구조
 * - 무한 depth 대응용
 * - JSP/JS가 class를 붙여줘야 적용됨
 * ========================================================= */

/* 부모 댓글 */
.pdv-comment-root {
    position: relative;
}

/* 모든 대댓글 공통 */
.pdv-reply-wrap {
    position: relative;
    margin-top: 14px;
    padding: 14px 0 0 18px;
    border-left: 3px solid #dce6f7;
}

/* depth 1 */
.pdv-reply-depth-1 {
    margin-left: 32px;
}

/* depth 2 */
.pdv-reply-depth-2 {
    margin-left: 64px;
}

/* depth 3 */
.pdv-reply-depth-3 {
    margin-left: 96px;
}

/* depth 4 */
.pdv-reply-depth-4 {
    margin-left: 128px;
}

/* depth 5 이상 */
.pdv-reply-depth-deep {
    margin-left: 160px;
}

/* depth별 라인색 변화 */
.pdv-reply-wrap.pdv-reply-depth-2 {
    border-left-color: #c8d9f6;
}

.pdv-reply-wrap.pdv-reply-depth-3 {
    border-left-color: #b5cbf3;
}

.pdv-reply-wrap.pdv-reply-depth-4 {
    border-left-color: #a3bdf0;
}

.pdv-reply-wrap.pdv-reply-depth-deep {
    border-left-color: #91b0ec;
    background: linear-gradient(to right, rgba(240,246,255,0.45), transparent 60%);
}

/* 대댓글 안의 내용 박스 간격 */
.pdv-reply-wrap .pdv-comment-body,
.pdv-reply-wrap .pdv-state-text {
    margin-right: 8px;
}

/* 대댓글 내부 액션 버튼 여백 */
.pdv-reply-wrap .pdv-comment-actions {
    margin-top: 10px;
}

/* 대댓글 내부 폼 */
.pdv-reply-wrap .pdv-comment-form-box {
    margin-top: 12px;
    padding: 14px;
    background: #f9fbff;
    border: 1px solid #e4ecfa;
    border-radius: 12px;
}

/* 대댓글 textarea */
.pdv-reply-wrap .pdv-textarea {
    min-height: 84px;
}

/* 부모 댓글 아래 열리는 답글 입력창 */
.pdv-reply-editor-box {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 3px solid #dce6f7;
}

/* 부모 댓글 바로 아래 폼 */
.pdv-comment-item > .pdv-comment-form-box {
    margin-top: 14px;
}

/* 자식 댓글 컨테이너 */
.pdv-children-wrap {
    display: block;
}

/* =========================================================
 * 더보기 버튼 영역
 * ========================================================= */
.pdv-more-wrap {
    margin-top: 16px;
    text-align: center;
}

/* =========================================================
 * 타임라인 상단 필터
 * ========================================================= */
.pdv-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pdv-filter-btn {
    padding: 9px 14px;
    border: 1px solid #cfdbf0;
    border-radius: 999px;
    background: #fff;
    color: #486280;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pdv-filter-btn.is-active {
    background: #eaf1ff;
    border-color: #2f6fed;
    color: #2f6fed;
}

/* =========================================================
 * 타임라인 레이아웃
 * ========================================================= */
.pdv-timeline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
}

.pdv-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdv-timeline-item {
    border: 1px solid #e2e8f2;
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pdv-timeline-item:hover {
    border-color: #2f6fed;
    box-shadow: 0 6px 18px rgba(47, 111, 237, 0.08);
}

.pdv-timeline-item.is-active {
    border-color: #2f6fed;
    box-shadow: 0 6px 18px rgba(47, 111, 237, 0.10);
}

.pdv-timeline-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.pdv-timeline-type.topic {
    background: #eaf2ff;
    color: #2f6fed;
}

.pdv-timeline-type.comment {
    background: #eefaf0;
    color: #1d8f4d;
}

.pdv-timeline-date {
    margin-left: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.pdv-timeline-title {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
    color: #1f2937;
}

.pdv-timeline-summary {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
}

/* =========================================================
 * 타임라인 상세 패널
 * ========================================================= */
.pdv-detail-panel {
    position: sticky;
    top: 24px;
    align-self: start;
    min-height: 280px;
    border: 1px solid #dfe7f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.pdv-detail-head {
    padding: 18px 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
    border-bottom: 1px solid #e6edf8;
}

.pdv-detail-body {
    padding: 20px;
}

.pdv-detail-empty {
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}

.pdv-detail-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.pdv-detail-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.pdv-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #1f2937;
    word-break: break-word;
}

.pdv-detail-content .toastui-editor-contents {
    font-size: 15px;
    line-height: 1.8;
}

.pdv-detail-comment {
    white-space: pre-wrap;
}

/* =========================================================
 * 반응형
 * ========================================================= */
@media (max-width: 1024px) {
    .pdv-timeline-grid {
        grid-template-columns: 1fr;
    }

    .pdv-detail-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .pdv-wrap {
        padding: 16px 12px 40px;
    }

    .pdv-card,
    .pdv-topic-card {
        padding: 18px;
    }

    .pdv-title {
        font-size: 28px;
    }

    .pdv-chip-btn,
    .pdv-mode-btn {
        width: 100%;
    }

    .pdv-reply-depth-1 {
        margin-left: 20px;
    }

    .pdv-reply-depth-2 {
        margin-left: 36px;
    }

    .pdv-reply-depth-3 {
        margin-left: 52px;
    }

    .pdv-reply-depth-4,
    .pdv-reply-depth-deep {
        margin-left: 68px;
    }
}

.pdv-children-wrap {
    margin-top: 12px;
    margin-left: 28px;
    padding-left: 16px;
    border-left: 2px solid #d9e2f2;
}

.pdv-comment-item.is-child-comment {
    margin-top: 12px;
    background: #fafcff;
}

.pdv-comment-item.is-child-comment .pdv-comment-header {
    position: relative;
}

.pdv-comment-item.is-child-comment .pdv-comment-header::before {
    content: "↳";
    display: inline-block;
    margin-right: 6px;
    color: #4a6fdc;
    font-weight: 700;
}


.pdv-mini-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    margin-top: 18px;
}

.pdv-mini-list-panel,
.pdv-mini-detail-panel {
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.pdv-mini-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.pdv-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdv-mini-item {
    width: 100%;
    text-align: left;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pdv-mini-item:hover {
    border-color: #2f6fed;
    background: #eef4ff;
}

.pdv-mini-item.is-active {
    border-color: #2f6fed;
    background: #edf4ff;
    box-shadow: 0 4px 12px rgba(47, 111, 237, 0.08);
}

.pdv-mini-item-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.5;
}

.pdv-mini-preview-body {
    min-height: 120px;
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
}

.pdv-mini-preview-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.pdv-mini-preview-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

.pdv-mini-preview-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5eaf3;
}

@media (max-width: 1024px) {
    .pdv-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
 * 선택 소주제 토픽 목록 패널
 * ========================================================= */
.pdv-topic-mini-panel {
    margin-top: 18px;
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    background: #fff;
    padding: 18px;
}

.pdv-topic-mini-head {
    margin-bottom: 14px;
}

.pdv-topic-mini-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.pdv-topic-mini-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.pdv-topic-mini-list {
    display: grid;
    gap: 10px;
}

.pdv-topic-mini-item {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid #d8e3f2;
    border-radius: 12px;
    background: #f8fbff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pdv-topic-mini-item:hover {
    border-color: #2f6fed;
    background: #eef4ff;
    box-shadow: 0 4px 12px rgba(47, 111, 237, 0.08);
}

.pdv-topic-mini-item.is-active {
    border-color: #2f6fed;
    background: #edf4ff;
    box-shadow: 0 6px 16px rgba(47, 111, 237, 0.12);
}

.pdv-topic-mini-item-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.5;
}

.pdv-topic-mini-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}
.pdv-attach-wrap {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: #f4f8ff;
}

.pdv-attach-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbe5f3;
}

.pdv-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.pdv-attach-count {
    font-size: 13px;
    color: #64748b;
}

.pdv-attach-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdv-attach-item {
    padding: 14px 16px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pdv-attach-link {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    color: #1d4ed8;
    text-decoration: none;
    word-break: break-all;
}

.pdv-attach-link:hover {
    text-decoration: underline;
}

.pdv-attach-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: #6b7280;
}

.pdv-attach-meta-item {
    display: inline-flex;
    align-items: center;
}

.pdv-link-list-wrap {
    margin-top: 18px;
}

.pdv-link-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.pdv-link-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid #dbe6f7;
    border-radius: 14px;
    background: #f8fbff;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pdv-link-card:hover {
    border-color: #2f6fed;
    box-shadow: 0 6px 18px rgba(47, 111, 237, 0.10);
}

.pdv-link-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdv-link-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.pdv-link-title-text {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.pdv-link-url-text {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    word-break: break-all;
    line-height: 1.6;
}
/* =========================================================
 * 타임라인 인라인 상세 보기
 * - 하단 고정 패널 대신 선택 항목 바로 아래에 상세 표시
 * ========================================================= */
.pdv-timeline-grid-inline {
    display: block;
}

.pdv-timeline-inline-detail {
    margin-top: -2px;
    margin-bottom: 12px;
    border: 1px solid #dfe7f4;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.pdv-timeline-item.is-active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.pdv-inline-detail-title {
    margin-top: 12px;
}

.pdv-inline-detail-actions {
    padding: 12px 16px;
    border-top: 1px solid #e5eaf3;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pdv-timeline-empty-by-filter {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .pdv-timeline-inline-detail {
        border-radius: 0 0 14px 14px;
        margin-bottom: 10px;
    }

    .pdv-inline-detail-actions {
        padding: 12px 14px;
    }
}



.pdv-children-wrap {
    margin-top: 12px;
    margin-left: 28px;
    padding-left: 16px;
    border-left: 2px solid #d9e2f2;
}

.pdv-comment-item.is-child-comment {
    margin-top: 12px;
    background: #fafcff;
}

.pdv-comment-item.is-child-comment .pdv-comment-header::before {
    content: "↳";
    display: inline-block;
    margin-right: 6px;
    color: #4a6fdc;
    font-weight: 700;
}

.pdv-attach-wrap.is-empty {
    display: none;
}

.pdv-attach-wrap.is-loading .pdv-attach-list,
.pdv-topic-comment-wrap.is-loading .pdv-comment-list {
    opacity: .65;
}


/* =========================================================
 * 목록 이동 / 다른 대주제 이동
 * ========================================================= */
.pdv-move-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
}

.pdv-back-btn,
.pdv-move-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #b9c7e4;
    border-radius: 12px;
    background: #fff;
    color: #2f5aa7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.pdv-back-btn:hover,
.pdv-move-submit-btn:hover {
    border-color: #2f6fed;
    color: #2f6fed;
    background: #f8fbff;
}

.pdv-discussion-move-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pdv-discussion-move-label {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.pdv-discussion-move-select {
    min-width: 280px;
    height: 38px;
    padding: 0 36px 0 12px;
    border: 1px solid #b9c7e4;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.pdv-discussion-move-select:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.10);
}

.pdv-move-submit-btn {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

.pdv-move-submit-btn:hover {
    background: #1f5de0;
    border-color: #1f5de0;
    color: #fff;
}

@media (max-width: 768px) {
    .pdv-move-row,
    .pdv-discussion-move-box {
        align-items: stretch;
        flex-direction: column;
    }

    .pdv-back-btn,
    .pdv-discussion-move-select,
    .pdv-move-submit-btn {
        width: 100%;
    }
}

/* =========================================================
 * 최종 보정: 보기 모드 버튼 선택/비선택 상태
 * ========================================================= */
.pdv-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.pdv-mode-btn {
    min-width: 140px;
    padding: 11px 18px;
    border: 1px solid #b9c7e4;
    border-radius: 12px;
    background: #fff;
    color: #2f5aa7;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.pdv-mode-btn:hover {
    border-color: #2f6fed;
    color: #2f6fed;
    background: #f8fbff;
    text-decoration: none;
}

.pdv-mode-btn.is-active {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
    box-shadow: 0 6px 14px rgba(47, 111, 237, 0.16);
}

.pdv-mode-btn:active {
    transform: translateY(1px);
}

.pdv-mode-row .pdv-btn-primary {
    min-width: 126px;
    border-radius: 12px;
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

/* =========================================================
 * 최종 보정: 게시글 본문 이미지/영상 overflow
 * - 이미지는 원본보다 확대하지 않고, 카드보다 클 때만 축소
 * - 영상/iframe은 반응형 가로 100%
 * ========================================================= */
.pdv-topic-card,
.pdv-viewer-wrap,
.pdv-detail-content,
.pdv-detail-content p,
.pdv-detail-content figure {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.pdv-detail-content img,
.pdv-viewer-wrap img,
.pdv-topic-card img,
.pdv-detail-content p img,
.pdv-detail-content figure img,
.pdv-detail-content .toastui-editor-contents img {
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
}

.pdv-detail-content video,
.pdv-viewer-wrap video,
.pdv-topic-card video,
.pdv-detail-content iframe,
.pdv-viewer-wrap iframe,
.pdv-topic-card iframe {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    box-sizing: border-box !important;
}

.pdv-detail-content iframe,
.pdv-viewer-wrap iframe,
.pdv-topic-card iframe {
    aspect-ratio: 16 / 9;
    min-height: 280px;
}

/* =========================================================
 * 최종 보정: 게시글 본문 - 댓글 영역 구분선
 * ========================================================= */
.pdv-topic-comment-wrap {
    margin-top: 42px !important;
    padding-top: 28px !important;
    border-top: 2px solid #e5eaf3 !important;
}

.pdv-topic-comment-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px !important;
}

.pdv-topic-comment-head .pdv-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.pdv-topic-comment-meta {
    font-size: 14px;
    color: #64748b;
}

.pdv-topic-comment-wrap .pdv-comment-write {
    margin-top: 0;
    margin-bottom: 24px;
}

.pdv-topic-comment-wrap .pdv-comment-list {
    margin-top: 22px;
}

.pdv-topic-comment-wrap .pdv-detail-empty {
    margin-top: 18px;
}

/* =========================================================
 * 최종 보정: 시간순 보기 카드
 * ========================================================= */
.pdv-timeline-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pdv-timeline-top .pdv-timeline-date {
    margin-left: 0;
}

.pdv-timeline-author {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.pdv-timeline-item .pdv-timeline-summary:empty {
    display: none;
}
