/* ===== 법률 페이지 전용 스타일 ===== */

body {
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    color: #333;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.03125rem;
    line-height: 1.5;
}

.legal-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* 섹션 제목 */
.legal-section {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 18px;
    border-bottom: 4px solid #000;
    text-align: start;
}

.legal-section--with-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.post-sort-wrap {
    position: relative;
    display: inline-block;
}

.post-sort-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    margin-top: 6px;
    border: 0;
    border-radius: 0;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
    transition: background-color 0.15s;
}
.post-sort-trigger:hover {
    background: #f3f4f6;
}
.post-sort-trigger svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.post-sort-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 8rem;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: none;
    padding: 4px;
    z-index: 50;
}
.post-sort-menu.open {
    display: block;
}
.post-sort-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    text-align: right;
}
.post-sort-menu-item:hover {
    background: #f3f4f6;
}
.post-sort-menu-item.active {
    font-weight: 700;
}

.post-sort-wrap .more-dropdown {
    min-width: 80px;
    width: 80px;
    left: auto;
    right: 0;
    transform: none;
}

.post-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.post-list--grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1200px;
    margin: 16px auto 0;
}
.post-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    padding: 8px;
}
.post-card:hover {
    background-color: #fafafa;
}
.post-card-thumb {
    flex: 0 0 400px;
    width: 400px;
    aspect-ratio: 200 / 113;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-card-thumb--empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.post-card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-card-title {
    font-family: "Times New Roman", "Times", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.post-card-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #979797;
    padding: 0;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
    margin-top: 4px;
}
.post-card-meta > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.post-card-author {
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #09090b;
    letter-spacing: 0.3px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}
.post-card-author:hover {
    color: #000;
}
.post-card-sep {
    color: #71717a;
}
.post-card-date {
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    color: #71717a;
    letter-spacing: -0.3px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}
.post-card-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}
.post-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #09090b;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}
.post-card-stat svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
}
.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.post-card-tag {
    display: inline-flex;
    align-items: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #495057;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 2px;
}
.post-card--pinned .post-card-title::before {
    content: '[공지] ';
    color: #000;
}
.post-prefix-badge {
    display: inline-block;
    margin-right: 4px;
    color: #495057;
    font-weight: 700;
}

.attachment-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.attachment-list-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.6;
    letter-spacing: -0.02px;
    -webkit-font-smoothing: antialiased;
}
.attachment-item .attachment-name {
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attachment-item a.attachment-name:hover {
    text-decoration: underline;
}
.attachment-item .attachment-size {
    color: #868e96;
    font-size: 12px;
    flex: 0 0 auto;
}
.attachment-item .attachment-remove {
    background: none;
    border: 0;
    color: #adb5bd;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.attachment-item .attachment-remove:hover {
    color: #000;
}
.attachment-pending {
    background: #f8f9fa;
}
.btn-attachment-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-attachment-add:hover {
    background: #f3f4f6;
    color: #000;
}

@media (max-width: 700px) {
    .post-list--grid .post-card {
        flex-direction: column;
        gap: 8px;
        padding: 0;
    }
    .post-list--grid .post-card-thumb {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .post-list--grid .post-card-body {
        padding: 4px 0;
    }
}

.legal-section--spaced {
    padding-top: 72px;
}

.legal-heading {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: normal;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

/* 아코디언 그룹 */
.accordion-group {
    margin-top: 27px;
    margin-bottom: 27px;
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: normal;
    color: #333;
    text-align: left;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.accordion-btn:hover {
    color: #000;
}

.accordion-text {
    flex: 1;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 0 0 16px;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.03125rem;
    color: #333;
}

/* 게시글 헤더 */
.post-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.post-meta {
    font-size: 0.75rem;
    font-weight: 300;
    color: #999;
    letter-spacing: 0.03125rem;
}

/* 게시글 본문 */
.post-body {
    padding: 0 0 16px;
    font-family: "Courier New", "Courier", monospace;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: #333333;
    white-space: pre-wrap;
}

/* 게시글 태그 */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 12px;
}

.post-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #666;
    background: #f5f5f5;
    padding: 3px 8px;
    letter-spacing: 0.02rem;
    -webkit-font-smoothing: antialiased;
}

/* 게시글 하단 액션 */
.post-actions {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

/* 댓글 섹션 */
.comment-section {
    padding-top: 0;
}

.comment-section-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    -webkit-font-smoothing: antialiased;
}

/* 글쓰기 폼 */
.write-form {
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #e5e5e5;
    padding: 24px 0 32px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}

.form-input {
    display: block;
    width: 100%;
    height: 3.125rem;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    background: #fff;
    outline: none;
    -webkit-font-smoothing: antialiased;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #000;
}
#postTitle, #editTitle {
    font-family: 'Times New Roman', 'Noto Serif KR', 'KoPub Batang', 'Nanum Myeongjo', serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #111111 !important;
    letter-spacing: -0.01em !important;
    word-break: keep-all;
    text-transform: none !important;
}

.form-textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #000;
    background: #fff;
    outline: none;
    resize: vertical;
    -webkit-font-smoothing: antialiased;
    transition: border-color 0.2s ease;
}

.form-textarea::placeholder {
    color: #000;
    opacity: 1;
}

.form-textarea:focus {
    border-color: #000;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ===== 태그 선택 버튼 ===== */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-group-label {
    flex-basis: 100%;
    font-family: "Futura", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 10px 0 2px;
}
.tag-group-label:first-child {
    margin-top: 0;
}

#tagSelector .tag-btn,
#editTagSelector .tag-btn {
    height: 26px;
    padding: 0 10px;
    font-size: 0.75rem;
}

/* ===== 상세 본문 하단 태그 ===== */
.detail-tags {
    margin: 18px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.detail-tag {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 12px;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: -0.02px !important;
    color: #000 !important;
    -webkit-font-smoothing: antialiased;
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    transition: all 0.15s ease;
}

.tag-btn:hover {
    border-color: #999;
    color: #333;
}

.tag-btn.active {
    background: #000;
    border-color: #000;
    color: #fff;
    font-weight: 700;
}

/* ===== 게시글 목록 행 ===== */
.post-list {
    max-width: 1200px;
    margin: 8px auto 0;
}

.post-row {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.post-row:hover {
    background-color: #fafafa;
}

.post-row:last-child {
    border-bottom: none;
}

.post-row-title {
    font-family: "Times New Roman", "Times", serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.post-row-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #979797;
    padding: 0;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
    margin-top: 4px;
}

.post-row-meta > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.meta-author {
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #09090b;
    letter-spacing: 0.3px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}

.meta-date {
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    color: #71717a;
    letter-spacing: -0.3px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}

.meta-views {
    gap: 3px;
    margin-left: 6px;
}

.meta-views svg {
    display: block;
    flex-shrink: 0;
    color: #9ca3af;
}

.meta-views-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #09090b;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.meta-likes {
    gap: 3px;
}

.meta-likes svg {
    display: block;
    flex-shrink: 0;
    color: #9ca3af;
}

.meta-likes-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #09090b;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.meta-comments {
    gap: 3px;
}

.meta-comments svg {
    display: block;
    flex-shrink: 0;
    color: #9ca3af;
}

.meta-comments-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #09090b;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/* ===== 상세 화면 ===== */
.detail-back {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
    border-bottom: none;
}

/* 브레드크럼 (Insight > AI) */
.detail-breadcrumb {
    padding-top: 20px;
    padding-bottom: 8px;
    font-size: 12px;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
}
.detail-breadcrumb .breadcrumb-link {
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
.detail-breadcrumb .breadcrumb-link:hover {
    text-decoration: underline;
    color: #000;
}
.detail-breadcrumb .breadcrumb-sep {
    margin: 0 4px;
    color: #000;
    font-weight: 600;
}
.detail-breadcrumb .breadcrumb-current {
    color: #000;
    font-weight: 700;
}

.detail-title {
    font-family: "Times New Roman", "Times", serif !important;
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.4;
    padding-top: 8px;
    -webkit-font-smoothing: antialiased;
}

/* Insight 스타일 - 7개 게시판 공용 (명조체 에디토리얼) */
.insight-title {
    font-family: 'Times New Roman', 'Noto Serif KR', 'KoPub Batang', 'Nanum Myeongjo', serif !important;
    color: #111111 !important;
    letter-spacing: -0.01em !important;
    word-break: keep-all;
    text-transform: none !important;
}
.post-row-title.insight-title,
.post-card-title.insight-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    -webkit-font-smoothing: antialiased !important;
}
.detail-title.insight-title {
    font-size: 37px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}
.detail-title:not([data-board="ask"]):not([data-board="ai-workshop"]):not([data-board="physical-ai-workshop"]) {
    text-align: center !important;
}
.detail-title-writer {
    text-align: center !important;
    margin-top: 16px !important;
}
.detail-title-writer .writer-by {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: #000 !important;
    margin-right: 0 !important;
    text-transform: uppercase !important;
}
.detail-title-writer .writer-name {
    color: #000 !important;
    font-weight: 400 !important;
}
.detail-title-writer[data-board="insights"] .writer-name,
.detail-title-writer[data-board="teardowns"] .writer-name,
.detail-title-writer[data-board="playbooks"] .writer-name,
.detail-title-writer[data-board="physical-ai"] .writer-name {
    text-transform: uppercase !important;
}
.detail-title-date {
    text-align: center !important;
    margin-top: 8px !important;
}
.detail-title-date .writer-date {
    margin: 0 !important;
    text-transform: none !important;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif !important;
    font-style: normal !important;
    letter-spacing: -0.00769231em !important;
    line-height: 1.23077em !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #000 !important;
}
.detail-breadcrumb:not([data-board="ask"]):not([data-board="ai-workshop"]):not([data-board="physical-ai-workshop"]) {
    text-align: center !important;
    font-size: 13px !important;
    padding-bottom: 5px !important;
}
.detail-breadcrumb:not([data-board="ask"]):not([data-board="ai-workshop"]):not([data-board="physical-ai-workshop"]) .breadcrumb-link {
    text-transform: uppercase !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.insight-detail-body {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    line-height: 1.8 !important;
    letter-spacing: -0.01em !important;
}

/* Ship 스타일 - Ask/Debug, Ship, Crew Match 공용 */
.ship-list-title {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.02em !important;
    line-height: 1.5 !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none !important;
    transition: color 0.2s ease-in-out;
}
.ship-list-title:hover {
    color: #000000 !important;
}
.ship-list-meta {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: #888888 !important;
    letter-spacing: 0 !important;
}
.ship-detail-title {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    word-break: keep-all;
    text-transform: none !important;
}
.ship-detail-body {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    line-height: 1.65 !important;
    letter-spacing: -0.01em !important;
}

/* WriterInfo - 네이버 카페 스타일 작성자 정보 */
.WriterInfo {
    position: relative;
    padding: 12px 0;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
    color: #000;
    border-bottom: 4px solid #000;
}
.WriterInfo:after {
    content: "";
    display: block;
    clear: both;
}
.WriterInfo .thumb_area {
    float: left;
    margin-right: 10px;
}
.WriterInfo .thumb_area .thumb {
    display: block;
}
.WriterInfo .thumb_area .thumb img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.WriterInfo .profile_area {
    overflow: hidden;
}
.WriterInfo .profile_info {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}
.WriterInfo .nick_box {
    display: inline;
}
.WriterInfo .writer-name {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
}
.WriterInfo .writer-name:hover {
    text-decoration: underline;
}
.WriterInfo .nick_level {
    font-style: normal;
    font-size: 11px;
    color: #000;
    font-weight: 400;
}
.WriterInfo .link_talk {
    font-size: 11px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
    padding-left: 9px;
    position: relative;
}
.WriterInfo .link_talk::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background: rgba(0, 0, 0, 0.15);
}
.WriterInfo .link_talk:hover {
    color: #000;
    text-decoration: underline;
}
.WriterInfo .article_info {
    margin-top: 2px;
    font-size: 12px;
    color: #000;
    font-weight: 600;
    line-height: 1.4;
}
.WriterInfo .article_info .date {
    margin-right: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
    font-size: 12px;
    line-height: 13px;
    color: #979797;
    letter-spacing: -0.3px;
}
.WriterInfo .article_info .count {
    position: relative;
    padding-left: 9px;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
    font-size: 12px;
    line-height: 13px;
    color: #979797;
    letter-spacing: -0.3px;
}
.WriterInfo .article_info .info_action_btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    margin-left: 8px;
    padding-left: 9px;
    position: relative;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.WriterInfo .article_info .info_action_btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background: rgba(0, 0, 0, 0.15);
}
.WriterInfo .article_info .info_action_btn:hover {
    color: #000;
}
.WriterInfo .article_info .count::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background: rgba(0, 0, 0, 0.15);
}
.WriterInfo .article_tool {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}
.WriterInfo .article_tool .tool_btn {
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
    font-size: 13px;
    color: #000;
    font-weight: 400;
    line-height: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.WriterInfo .article_tool .tool_btn:hover {
    color: #000;
}
.WriterInfo .article_tool .tool_btn strong {
    font-weight: 700;
    color: #000;
}
.WriterInfo .article_tool .tool_more {
    font-size: 16px;
    letter-spacing: -1px;
}

/* 인라인 WriterInfo */
.WriterInfo--inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 0;
}

.WriterInfo--inline::after {
    display: none;
}

.writer-avatar {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.writer-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.08);
}

.writer-meta {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.writer-meta:empty {
    display: none;
    font-size: 14px;
    line-height: 20px;
    gap: 0;
}

.writer-by {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-right: 6px;
}

.writer-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: #979797;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
    text-decoration: none;
}

.writer-name:hover {
    color: #000;
    text-decoration: underline;
}

.writer-sep {
    margin: 0 6px;
    color: #ccc;
    font-size: 12px;
}

.writer-date {
    color: #717179;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.7px;
}

.writer-views {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #979797;
    font-size: 15px;
    font-weight: 500;
}

.writer-views svg {
    width: 14px;
    height: 14px;
    stroke: #979797;
}

.writer-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #979797;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.writer-comments:hover {
    color: #333;
}

.writer-comments svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.writer-comments strong {
    font-weight: 500;
}

.writer-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

.writer-actions .info_action_btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    margin-left: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
    font-size: 13px;
    color: #979797;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.writer-actions .info_action_btn:hover {
    color: #333;
}

.writer-actions .info_action_btn svg {
    width: 14px;
    height: 14px;
}

.info_action_btn.is-liked {
    color: #e0245e;
}

.info_action_btn.is-liked svg {
    color: #e0245e;
}

/* 공유 드롭다운 */
.share-wrap {
    position: relative;
    display: inline-flex;
}

/* share-trigger는 이제 btn-group-item 스타일을 상속 */

.share-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 100;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 4px;
    animation: shareIn 0.15s ease;
}

@keyframes shareIn {
    from { opacity: 0; transform: scale(0.95) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.share-dropdown.open {
    display: block;
}

.share-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.1s;
}

.share-dropdown button:hover {
    background: #f5f5f5;
}

.share-dropdown button svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* 버튼 그룹 (공유 + 스크랩 + 더보기) */
.btn-group {
    display: flex;
    align-items: stretch;
    width: fit-content;
    margin-left: 0;
}

.btn-group-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 8px 16px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: hsl(240 10% 3.9%);
    background-color: #fff;
    border: 1px solid hsl(240 5.9% 90%);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms, color 150ms;
    -webkit-font-smoothing: antialiased;
}

.btn-group-item:hover {
    background-color: hsl(240 4.8% 95.9%);
    color: hsl(240 5.9% 10%);
}

.btn-group-item svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    pointer-events: none;
}

.btn-group-item.btn-group-icon {
    padding: 8px;
    width: 36px;
    transform: translateY(-7px);
    border: none;
    box-shadow: none;
}

.btn-group-label {
    display: none;
}

@media (min-width: 640px) {
    .btn-group-label,
    .share-label {
        display: inline;
    }
}

/* 그룹 내 border 연결 */
.btn-group > *:first-child > .btn-group-item,
.btn-group > .share-wrap:first-child .btn-group-item {
    border-radius: 6px 0 0 6px;
}

.btn-group > *:not(:first-child) > .btn-group-item,
.btn-group > *:not(:first-child) .btn-group-item {
    border-left: 0;
    border-radius: 0;
}

.btn-group > *:last-child > .btn-group-item,
.btn-group > .more-wrap:last-child .btn-group-item {
    border-radius: 0 6px 6px 0;
}

/* 더보기 드롭다운 */
.more-wrap {
    position: relative;
}

.more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    min-width: 8rem;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: none;
    padding: 4px;
}

.more-dropdown.open {
    display: block;
}

.more-dropdown > button,
.more-dropdown > .more-share-wrap > button,
.more-dropdown > .post-sort-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    user-select: none;
}

.more-dropdown > button:hover,
.more-dropdown > .more-share-wrap > button:hover,
.more-dropdown > .post-sort-menu-item:hover {
    background: #f3f4f6;
}

.more-dropdown > .post-sort-menu-item.active {
    font-weight: 700;
}

.more-dropdown > button svg,
.more-dropdown > .more-share-wrap > button svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

.more-dropdown .more-divider {
    height: 1px;
    background-color: #DEE2E6;
    margin: 4px 0;
}

.more-dropdown button.more-delete {
    color: #000;
}

.more-share-wrap {
    position: relative;
}

.more-share-dropdown {
    display: none;
    position: absolute;
    left: calc(100% + 4px);
    top: 0;
    z-index: 101;
    min-width: 8rem;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: none;
    padding: 4px;
}

.more-share-dropdown.open {
    display: block;
}

.more-share-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.more-share-dropdown button:hover {
    background: #f3f4f6;
}

.more-share-dropdown button svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

.detail-meta {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #999;
    margin-top: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e5e5;
    letter-spacing: 0.03125rem;
}

.detail-body {
    padding: 24px 0;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: -0.02px !important;
    color: #333333 !important;
    white-space: pre-wrap;
    -webkit-font-smoothing: antialiased;
}

.detail-bottom-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
}

.detail-bottom-meta .info_action_btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
    font-size: 13px;
    color: #979797;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.detail-bottom-meta .info_action_btn:hover {
    color: #333;
}

.detail-bottom-meta .info_action_btn svg {
    width: 14px;
    height: 14px;
}

.detail-body img,
.insight-detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 4px solid #000;
}

/* 에디터 섹션 */
.editor-section {
    padding-top: 24px;
}

/* 다운로드 링크 */
.legal-download {
    margin-bottom: 36px;
}

.legal-download-link {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.legal-download-link:hover {
    color: #555;
}

/* 버튼 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.125rem;
    padding: 0 1.5625rem;
    background-color: #000;
    border: 1px solid #000;
    border-radius: 0;
    color: #f9f9f9;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04375rem;
    line-height: 1.5;
    text-align: center;
    text-transform: lowercase;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

.btn-primary:active {
    background-color: #111;
}

/* 블록 버튼 (풀 와이드) */
.btn-primary.is-block {
    display: block;
    width: 100%;
}

/* 버튼 액션 영역 */
.legal-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.legal-actions .btn-primary {
    flex: 1;
}

/* 보조 버튼 */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.125rem;
    padding: 0 1.5625rem;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    color: #000;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04375rem;
    line-height: 1.5;
    text-align: center;
    text-transform: lowercase;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* 텍스트 버튼 */
.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    padding: 0;
    border-bottom: 1px solid transparent;
    -webkit-font-smoothing: antialiased;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: #000;
    border-bottom-color: currentColor;
}

/* ===== 게시판 툴바 ===== */

.board-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 0;
}

.board-count {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 0.03125rem;
}

.board-count strong {
    font-weight: 700;
}

/* 빈 상태 */
.board-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.8;
}

.board-empty p {
    margin: 0;
}

/* ===== 리치 텍스트 에디터 ===== */

.editor-wrap {
    margin-top: 27px;
    border: 1px solid #ccc;
    background: #fff;
    transition: border-color 0.2s ease;
}

.editor-wrap:focus-within {
    border-color: #000;
}

/* 툴바 */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 12px;
    height: 32px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
    flex-wrap: nowrap;
    overflow-x: visible;
    position: relative;
    z-index: 10;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 32px;
    padding: 0 7px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    color: #555;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.8125rem;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.toolbar-btn strong,
.toolbar-btn em,
.toolbar-btn u,
.toolbar-btn s {
    font-size: 18px;
    line-height: 1;
}

.toolbar-btn svg {
    width: 18px !important;
    height: 18px !important;
}

.toolbar-btn:hover {
    color: #000;
    background-color: #eee;
}

/* 드롭다운 셀렉트 (문단 서식, 폰트 크기) */
.toolbar-select {
    position: relative;
    height: 32px;
    display: inline-flex;
    align-items: center;
}

.toolbar-select-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    min-width: 52px;
    padding: 0 24px 0 8px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    position: relative;
    white-space: nowrap;
}

.toolbar-select-btn.is-activated {
    color: #000;
    font-weight: 700;
}

.toolbar-select-dropdown button.active {
    background: #f0f0f0;
    font-weight: 700;
    color: #000;
}

.toolbar-select-btn:hover {
    color: #000;
    background-color: #eee;
}

/* 폰트 크기 입력 콤보 */
.toolbar-fontsize {
    position: relative;
    height: 32px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toolbar-fontsize-input {
    width: 40px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
    padding: 0 2px;
    -moz-appearance: textfield;
    outline: none;
}

.toolbar-fontsize-input::-webkit-inner-spin-button,
.toolbar-fontsize-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.toolbar-fontsize-input:focus {
    border-color: #333;
}

.toolbar-fontsize-arrow {
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid #888;
    margin-left: 4px;
    cursor: pointer;
}

.toolbar-fontsize-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    min-width: 52px;
    max-height: 240px;
    overflow-y: auto;
}

.toolbar-fontsize-dropdown.open {
    display: block;
}

.toolbar-fontsize-dropdown button {
    display: block;
    width: 100%;
    padding: 6px 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

.toolbar-fontsize-dropdown button:hover {
    background: #f5f5f5;
}

.toolbar-fontsize-dropdown button.active {
    background: #f0f0f0;
    font-weight: 700;
    color: #000;
}

.toolbar-select-arrow {
    position: absolute;
    top: 13px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid #888;
}

.toolbar-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    min-width: 100%;
    max-height: 240px;
    overflow-y: auto;
}

.toolbar-select-dropdown.open {
    display: block;
}

.toolbar-select-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    text-align: left;
    white-space: nowrap;
}

.toolbar-select-dropdown button:hover {
    background: #f5f5f5;
}

.toolbar-divider {
    width: 1px;
    height: 16px;
    background: #ddd;
    margin: 0 9px;
}

/* 에디터 영역 */
.editor-area {
    min-height: 120px;
    max-height: 320px;
    overflow-y: auto;
    padding: 16px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.6;
    letter-spacing: -0.02px;
    -webkit-font-smoothing: antialiased;
    outline: none;
    -webkit-font-smoothing: antialiased;
}

.editor-area:empty::before {
    content: attr(data-placeholder);
    color: #bbb;
    pointer-events: none;
}

.editor-area blockquote {
    margin: 8px 0;
    padding: 8px 16px;
    border-left: 3px solid #000;
    color: #666;
    font-style: italic;
}

.editor-area code {
    background: #f5f5f5;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.8125rem;
    color: #333;
}

.editor-area a {
    color: #000;
    text-decoration: underline;
}

.editor-area img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
}

/* YouTube 미리보기 */
.yt-preview {
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    width: 800px;
    max-width: 100%;
}

.yt-preview-thumb {
    position: relative;
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.yt-preview-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    object-fit: cover;
}

.yt-preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.yt-preview:hover .yt-preview-play {
    opacity: 1;
}

/* 상세 본문 내 YouTube 미리보기 */
.detail-body .yt-preview,
.insight-detail-body .yt-preview {
    width: 800px;
    max-width: 100%;
}

/* Vimeo / Loom 미리보기 */
.vm-preview,
.loom-preview {
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    width: 800px;
    max-width: 100%;
}

.vm-preview-frame,
.loom-preview-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.vm-preview-frame iframe,
.loom-preview-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-body .vm-preview,
.detail-body .loom-preview,
.insight-detail-body .vm-preview,
.insight-detail-body .loom-preview {
    width: 800px;
    max-width: 100%;
}

/* 에디터 안에서 임베드 상호작용 제어 */
.editor-area .yt-preview a {
    pointer-events: none;
    cursor: default;
}
.editor-area .vm-preview,
.editor-area .loom-preview {
    position: relative;
}
.editor-area .vm-preview iframe,
.editor-area .loom-preview iframe {
    pointer-events: none;
}
.editor-area .yt-preview,
.editor-area .vm-preview,
.editor-area .loom-preview {
    cursor: pointer;
}
.editor-area .yt-preview.embed-selected,
.editor-area .vm-preview.embed-selected,
.editor-area .loom-preview.embed-selected {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* 본문/에디터 영역 HR — Bootstrap의 opacity:.25 무력화하고 inline 색상 그대로 노출 */
.editor-area hr,
.detail-body hr,
.insight-detail-body hr,
.comment-content hr {
    opacity: 1 !important;
    background-color: transparent;
}

/* 플로팅 툴바 (텍스트 선택 시) */
.floating-toolbar {
    display: none;
    position: absolute;
    z-index: 1000;
    pointer-events: auto;
}

.floating-toolbar.active {
    display: block;
}

.floating-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 34px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.floating-toolbar-inner::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 14px;
}

.floating-btn:hover {
    color: #000;
    background: #f0f0f0;
    border-radius: 3px;
}

.floating-btn strong,
.floating-btn em,
.floating-btn u,
.floating-btn s {
    font-size: 15px;
}

.floating-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.floating-divider {
    width: 1px;
    height: 16px;
    background: #ddd;
    margin: 0 6px;
}

/* 플로팅 폰트 크기 */
.floating-fontsize {
    position: relative;
    height: 28px;
    display: inline-flex;
    align-items: center;
}

.floating-fontsize-input {
    width: 32px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    background: #fff;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.floating-fontsize-arrow {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3.5px solid #888;
    margin-left: 3px;
    cursor: pointer;
}

.floating-fontsize-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 4px;
    min-width: 44px;
    max-height: 200px;
    overflow-y: auto;
}

.floating-fontsize-dropdown.open {
    display: block;
}

.floating-fontsize-dropdown button {
    display: block;
    width: 100%;
    padding: 5px 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    text-align: center;
}

.floating-fontsize-dropdown button:hover {
    background: #f5f5f5;
}

.floating-fontsize-dropdown button.active {
    background: #f0f0f0;
    font-weight: 700;
}

/* 에디터 푸터 */
.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.char-counter {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.02rem;
    -webkit-font-smoothing: antialiased;
}

/* 등록 버튼 */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    background-color: #000;
    border: 1px solid #000;
    border-radius: 0;
    color: #f9f9f9;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04375rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #333;
}

.btn-submit:active {
    background-color: #111;
}

.btn-submit--sm {
    height: 30px;
    padding: 0 14px;
    font-size: 0.6875rem;
}

/* ===== 댓글 목록 ===== */

.comment-list {
    margin-top: 8px;
}

.comment-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 24px 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-main {
    display: flex;
    gap: 14px;
}

/* 아바타 */
.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: cover;
    filter: grayscale(30%);
}

/* 댓글 본문 */
.comment-body {
    flex: 1;
    min-width: 0;
}

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

.comment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.comment-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 댓글 ⋯ 더보기 버튼 */
.comment-more-wrap {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.comment-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid hsl(240 5.9% 90%);
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    cursor: pointer;
    color: hsl(240 10% 3.9%);
    transition: background 150ms, color 150ms;
}

.comment-more-btn:hover {
    background: hsl(240 4.8% 95.9%);
    color: hsl(240 5.9% 10%);
}

.comment-more-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.comment-more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 100;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 4px;
    animation: shareIn 0.15s ease;
}

.comment-more-dropdown.open {
    display: block;
}

.comment-more-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.comment-more-dropdown button:hover {
    background: #f5f5f5;
}

.comment-more-dropdown button svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.comment-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-reply-link {
    font-size: 13px;
    font-weight: 500;
    color: #717179;
    text-decoration: none;
}

.comment-reply-link:hover {
    color: #333;
    text-decoration: underline;
}

.comment-author-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #0284c7;
    background: rgba(14, 165, 233, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.comment-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 520;
    color: #000;
    letter-spacing: 0.1px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}

.comment-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: #979797;
    letter-spacing: -0.3px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}

.reply-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: #979797;
    letter-spacing: 0.1px;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}

.comment-content {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02px;
    color: #333333;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    margin-left: 47px;
}

.comment-content strong {
    font-weight: 700;
    color: #000;
}

.comment-content blockquote {
    margin: 8px 0;
    padding: 8px 16px;
    border-left: 3px solid #000;
    color: #666;
    font-style: italic;
}

.comment-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.8125rem;
}

.comment-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
}

/* 댓글 액션 버튼 */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    margin-left: 47px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: #979797;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: color 0.15s ease;
}

.action-btn:hover {
    color: #000;
}

.action-btn svg {
    display: block;
}

/* ===== 답글 (대댓글) ===== */

.replies-wrap {
    margin-left: 54px;
    padding-left: 20px;
    border-left: none;
    margin-top: 4px;
}

.reply-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.reply-item:last-child {
    border-bottom: none;
}

/* 대댓글도 댓글과 동일한 크기 */

.reply-item .comment-content {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02px;
    color: #333333;
    -webkit-font-smoothing: antialiased;
}

.reply-item .comment-actions {
    margin-top: 8px;
}

/* 답글 멘션 (대상 이름) 색상 */
.comment-content .comment-author { color: #8b919c; }

/* 답글 작성 폼 */
.reply-form {
    padding: 16px 0 8px;
}

.reply-form .editor-wrap {
    width: calc(100% - 48px);
    margin-left: auto;
}

.reply-input {
    min-height: 60px;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    line-height: 1.6;
    letter-spacing: -0.02px;
    -webkit-font-smoothing: antialiased;
    outline: none;
    -webkit-font-smoothing: antialiased;
    transition: border-color 0.2s ease;
}

.reply-input:focus {
    border-color: #000;
}

.reply-input:empty::before {
    content: attr(data-placeholder);
    color: #bbb;
    pointer-events: none;
}

.reply-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.reply-form-actions .btn-comment-submit {
    width: 46px;
    height: 34px;
}

.reply-submit-inner {
    width: 46px;
    height: 34px;
}

.reply-cancel-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.reply-cancel-btn:hover {
    background-color: #f5f5f5;
}

/* ===== 3-Step Editorial Feedback ===== */

.feedback-section {
    padding: 32px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 4px solid #000;
}

.feedback-header {
    margin-bottom: 24px;
}

.feedback-title {
    font-family: 'Times New Roman', 'Noto Serif KR', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.feedback-subtitle {
    font-size: 0.75rem;
    font-weight: 300;
    color: #000;
    margin: 0;
    letter-spacing: 0.03125rem;
}

/* Horizontal 3-column layout */
.feedback-steps-row {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feedback-steps-row .feedback-step {
    flex: initial;
    min-width: 0;
}

.feedback-step {
    margin-bottom: 24px;
}

.feedback-step-label {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #000;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}

.step-desc {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.03125rem;
}

/* ===== Naver-style Star Rating ===== */
.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.nv-rating {
    text-align: center;
    padding: 8px 0;
}

.nv-rating-stars {
    display: inline-flex;
    gap: 2px;
}

.nv-star {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.15s ease;
}

.nv-star::before {
    content: '\2605';
    font-size: 32px;
    line-height: 36px;
    color: #ddd;
    transition: color 0.15s ease;
}

.nv-star[aria-checked="true"]::before {
    color: #000;
}

.nv-star--animated {
    animation: nvStarBounce 0.3s ease;
}

@keyframes nvStarBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Hover: fill stars up to hovered one */
.nv-rating-stars:hover .nv-star::before {
    color: #ddd;
}
.nv-rating-stars .nv-star:hover::before,
.nv-rating-stars .nv-star:hover ~ .nv-star::before {
    color: #ddd;
}
.nv-rating-stars:hover .nv-star:hover::before {
    color: #000;
}
/* Fill all stars before the hovered one (using flex-direction trick) */
.nv-rating-stars {
    display: inline-flex;
    flex-direction: row;
}
.nv-rating-stars:hover .nv-star::before {
    color: #000;
}
.nv-rating-stars:hover .nv-star:hover ~ .nv-star::before {
    color: #ddd;
}

.nv-rating-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #000;
    margin-top: 8px;
    transition: color 0.15s ease;
}

.nv-rating-label.nv-label--active {
    color: #000;
    font-weight: 700;
}

/* ===== Naver-style Evaluation (3-option) ===== */
.nv-eval {
    text-align: center;
    padding: 8px 0;
}

.nv-eval-options {
    display: inline-flex;
    gap: 10px;
}

.nv-eval-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.nv-eval-btn-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin-top: 2px;
}

.nv-eval-btn-desc {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    max-width: 80px;
    word-break: keep-all;
}

.nv-eval-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.nv-eval-btn::before {
    font-size: 20px;
    color: #000;
    transition: color 0.15s ease;
}

/* Icons removed — editorial text-only style */

.nv-eval-btn:hover {
    border-color: #999;
}

.nv-eval-btn[aria-checked="true"] {
    border-color: #000;
    background: #000;
}

.nv-eval-btn[aria-checked="true"]::before {
    color: #fff;
}

.nv-eval--animated {
    animation: nvEvalBounce 0.3s ease;
}

@keyframes nvEvalBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.nv-eval-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #000;
    margin-top: 10px;
    transition: color 0.15s ease;
}

.nv-eval-label.nv-label--active {
    color: #000;
    font-weight: 700;
}

/* Multi-select: wrap if needed */
.nv-eval--multi .nv-eval-options {
    flex-wrap: wrap;
    justify-content: center;
}

/* Hide the "선택하세요" guide labels — editorial minimalism */
.nv-rating-label,
.nv-eval-label {
    display: none !important;
}

/* ===== Segmented control (Step 2: Difficulty) ===== */
#difficultyChips .nv-eval,
#difficultyChips {
    text-align: center;
    padding: 0;
}

#difficultyChips .nv-eval-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.nv-eval-btn--segment {
    display: block;
    width: 100%;
    height: auto;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: -0.1px;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.nv-eval-btn--segment:hover {
    border-color: #000;
    color: #000;
}

.nv-eval-btn--segment[aria-checked="true"] {
    background: #000;
    color: #fff;
    border-color: #000;
}

.nv-eval-btn--segment[aria-checked="true"]::before {
    content: none;
}

/* ===== Chip tags (Step 3: Actionability) ===== */
#actionabilityTags {
    text-align: center;
    padding: 0;
}

#actionabilityTags .nv-eval-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.nv-eval-btn--chip {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    padding: 7px 14px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.1px;
    text-decoration: none;
    line-height: 1.3;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.nv-eval-btn--chip:hover {
    border-color: #000;
    color: #000;
}

.nv-eval-btn--chip[aria-checked="true"] {
    border-color: #000;
    background: #fff;
    color: #000;
    font-weight: 700;
}

.nv-eval-btn--chip[aria-checked="true"]::before {
    content: none;
}

/* 피드백 제출 버튼 */
.feedback-actions {
    margin-top: 20px;
    padding-top: 16px;
}

.feedback-actions .btn-primary {
    flex: 1;
    padding: 11px 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    display: block;
    width: 100%;
    height: auto;
    letter-spacing: normal;
    text-transform: none;
}
.feedback-actions .btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
    cursor: not-allowed;
}

/* 피드백 요약 */
.feedback-summary {
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-stars {
    display: flex;
    gap: 2px;
}

.summary-avg {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    letter-spacing: normal;
}

.summary-count {
    font-size: 0.6875rem;
    font-weight: 300;
    color: #999;
}

.summary-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 60px;
}

.summary-chip {
    display: inline-block;
    padding: 3px 10px;
    background: #000;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: normal;
}

.summary-tags {
    flex-wrap: wrap;
    gap: 6px;
}

.summary-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f0f0;
    font-size: 0.6875rem;
    font-weight: 400;
    color: #333;
    letter-spacing: normal;
}

.summary-tag strong {
    font-weight: 700;
    color: #000;
}

/* comment-author 클릭 커서 */
.comment-author {
    cursor: pointer;
}
.comment-author:hover {
    text-decoration: underline;
}

/* ===== Ask / Debug Q&A 카드 ===== */

.ask-card:first-child {
    border-top: 1px solid #e5e7eb;
}

.ask-card {
    display: flex;
    gap: 16px;
    height: 117px;
    padding: 16px 8px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ask-card:hover {
    background-color: #fafafa;
}

.ask-card-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 6px;
    border: 1px solid;
    text-align: center;
    gap: 2px;
    margin-top: 4px;
}

.ask-badge--solved {
    border-color: #000;
    color: #000;
}

.ask-badge--open {
    border-color: #9ca3af;
    color: #9ca3af;
}

.ask-badge-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.ask-badge-count {
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.ask-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4px;
    gap: 0;
}

.ask-badge-wrap .ask-card-badge {
    margin-top: 0;
}

.ask-badge-check {
    width: 24px;
    height: 24px;
    color: #000;
    margin-top: -10px;
}

.ask-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.ask-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ask-card-author-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ask-card-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.ask-card-author {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

.ask-card-sep {
    color: #d1d5db;
    font-size: 12px;
}

.ask-card-date {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
}

.ask-card-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ask-stat {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ask-stat svg {
    display: block;
    color: #9ca3af;
    vertical-align: middle;
}

.ask-stat-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    line-height: 1.25;
    -webkit-font-smoothing: antialiased;
}

.ask-card-title,
.post-row-title.ask-card-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ask-card-preview {
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

/* ===== 답변채택 버튼 ===== */

.btn-accept-answer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 6px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 36px;
    padding: 0 16px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #111;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-font-smoothing: antialiased;
}

.btn-accept-answer svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
    flex-shrink: 0;
}

.btn-accept-answer:hover {
    background-color: #f5f5f5;
}

.btn-accept-answer:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-accept-answer[aria-pressed="true"] {
    border-color: #2563eb;
    color: #2563eb;
    background-color: #eff6ff;
}

/* ===== 반응형 ===== */

@media (max-width: 640px) {
    .feedback-steps-row {
        gap: 24px;
    }

    .legal-container {
        padding: 24px 16px 60px;
    }

    .editor-area {
        min-height: 100px;
    }

    .comment-main {
        gap: 10px;
    }

    .comment-avatar img {
        width: 32px;
        height: 32px;
    }

    .replies-wrap {
        margin-left: 42px;
        padding-left: 14px;
    }

    .reply-item .comment-avatar img {
        width: 26px;
        height: 26px;
    }

    .toolbar-btn {
        width: 28px;
        height: 28px;
    }

    .difficulty-chips {
        gap: 6px;
    }

    .chip {
        padding: 10px 12px;
    }

    .actionability-tags {
        gap: 6px;
    }

    .chip--tag {
        padding: 6px 10px;
    }

    .post-row-title.insight-title,
    .post-card-title.insight-title {
        font-size: 17px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
    }

    .detail-title.insight-title {
        font-size: 28px !important;
    }

    .detail-title {
        text-align: left !important;
    }

    .post-row-title.ask-card-title {
        font-size: 16px !important;
        font-weight: 500 !important;
    }

    .legal-heading {
        font-size: 20px !important;
        font-weight: 700 !important;
    }
}

/* ===== Comment Submit Button ===== */
.btn-comment-submit {
    width: 180px;
    height: 43.5px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== 열람 허용 멤버 검색 ===== */
.allowed-search-wrap {
    position: relative;
}
.allowed-search-input {
    width: 100%;
}
.allowed-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}
.allowed-search-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
}
.allowed-search-item:hover {
    background: #f8f9fa;
}
.allowed-search-name {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}
.allowed-search-sub {
    font-size: 12px;
    color: #868e96;
}
.allowed-search-empty {
    padding: 12px 14px;
    color: #adb5bd;
    font-size: 13px;
    text-align: center;
}
.allowed-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.allowed-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 16px;
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}
.allowed-tag button {
    border: none;
    background: none;
    color: #868e96;
    font-size: 15px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.allowed-tag button:hover {
    color: #e03131;
}
.post-lock-icon {
    display: inline;
    vertical-align: -2px;
    margin-right: 2px;
}
/* ===== 토글 그룹 (공지 등) ===== */
.pd-toggle-group { padding: 8px 0; }
.pd-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Futura-Medium", "AppleSDGothicNeo-Bold", "Malgun Gothic Bold", sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
}
.pd-toggle-label input[type="checkbox"],
.pd-toggle-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ===== 구분선 드롭다운 ===== */
.toolbar-hr-dropdown {
    position: relative;
    display: inline-block;
}
.toolbar-hr-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 100;
    padding: 4px;
}
.toolbar-hr-options button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
}
.toolbar-hr-options button:hover {
    background: #f8f9fa;
}
.toolbar-hr-color-input {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    box-sizing: border-box;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 4px;
    transform: translateY(-5px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    overflow: hidden;
}
.toolbar-hr-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
}
.toolbar-hr-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}
.toolbar-hr-color-input::-moz-color-swatch {
    border: none;
    border-radius: 3px;
}

.post-pin-badge {
    display: inline;
    margin-right: 4px;
}
.post-row--pinned {
}

.post-row--reorderable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.post-row--reorderable .post-row-main {
    flex: 1;
    min-width: 0;
}
.post-row-reorder {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
}
.post-reorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    border-radius: 0;
}
.post-reorder-btn svg {
    stroke: #000;
}

/* ===== 페이지네이션 ===== */
.board-pagination-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0 16px;
}
.board-pagination {
    display: flex;
    justify-content: center;
}
.pagination-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination-btn,
.pagination-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 0;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.15s;
}
.pagination-btn:hover:not(.active):not(:disabled),
.pagination-nav:hover:not(:disabled) {
    background: #f3f4f6;
}
.pagination-btn.active {
    border: 1px solid #000;
}
.pagination-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #000;
    font-size: 14px;
}

/* ===== 검색 ===== */
.board-search-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0 48px;
}
.board-search {
    display: flex;
    align-items: center;
    width: 424px;
    max-width: 100%;
    height: 43.5px;
    padding: 0 4px 0 10px;
    border: 1px solid #000;
    border-radius: 0;
    background: #fff;
    transition: border-color 0.15s;
}
.board-search:focus-within {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}
.board-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    border-radius: 50%;
}
.board-search-btn:hover {
    background: #f3f4f6;
}
.board-search-input {
    flex: 1;
    min-width: 220px;
    height: 100%;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #000;
}
.board-search-input::placeholder {
    color: #6b7280;
}

/* ===== 수정 폼 버튼 (mp-btn 스타일, 가운데 정렬) ===== */
#editForm .form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
#editForm .form-actions .btn-primary,
#editForm .form-actions .btn-secondary {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 11px 24px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}
#editForm .form-actions .btn-primary {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}
#editForm .form-actions .btn-primary:hover {
    background: #1f1f1f;
}
#editForm .form-actions .btn-secondary {
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
}
#editForm .form-actions .btn-secondary:hover {
    border-color: #111;
}
.post-reorder-btn:hover:not(:disabled) {
    background: #f3f4f6;
}
.post-reorder-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.post-row--draft {
    background: #fafafa;
    opacity: 0.6;
}
.post-row--draft:hover {
    opacity: 0.9;
    background: #f5f5f5;
}
.post-row--draft .post-row-title {
    color: #868e96;
    font-weight: 500;
}
.post-draft-badge {
    color: #adb5bd;
    font-weight: 500;
    margin-right: 4px;
}
.post-draft-delete {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    margin-left: 8px;
    padding: 0 6px;
    vertical-align: middle;
}
.post-draft-delete:hover {
    color: #e03131;
}
