.quote-placement-none {
    width: 100%;
}
.quote-placement-left {
    width: 55%;
    margin-right: auto;
}
.quote-placement-right {
    width: 55%;
    margin-left: auto;
}
.quote-placement-center {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
.quote-placement-full {
    width: 100%;
}
.quote-style-default {
    border-left: 4px solid #d1d5db;
    padding-left: 14px;
    color: #4b5563;
    font-style: italic;
}
.quote-style-box {
    border: 4px solid #d1d5db;
    padding: 18px;
    background: #fff;
    color: #4b5563;
}
.quote-style-bubble {
    position: relative;
    border: 4px solid #d1d5db;
    padding: 18px;
    background: #fff;
    color: #4b5563;
    margin-bottom: 18px;
}
.quote-style-bubble::after {
    content: '';
    position: absolute;
    left: 28%;
    bottom: -18px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-left: 4px solid #d1d5db;
    border-bottom: 4px solid #d1d5db;
    transform: rotate(-45deg);
}
.quote-style-fancy {
    text-align: center;
    color: #4b5563;
    font-style: italic;
}
.quote-style-fancy .quote-mark {
    font-size: 42px;
    line-height: 1;
    color: #9ca3af;
}
.editor-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 24px 26px;
    margin: 18px 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.editor-link-card:hover {
    background: #fafafa;
}
.editor-link-card__content {
    flex: 1;
    min-width: 0;
}
.editor-link-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}
.editor-link-card__description {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 18px;
}
.editor-link-card__site {
    font-size: 14px;
    color: #9ca3af;
}
.editor-link-card__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
}
.editor-link-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
    .community-board-page {
    position: relative;
    min-height: 100vh;
    background: #d1d1d1;
}
html {
    scroll-behavior: smooth;
}
.post-heading-anchor {
    scroll-margin-top: 120px;
}
.post-toc-card {
    max-height: 680px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 12px;
}
.post-toc-title {
    padding: 4px 6px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}
.post-toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.post-toc-link {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
    word-break: keep-all;
}
.post-toc-link:hover {
    background: #f3f4f6;
    color: #2563eb;
}
.post-toc-depth-1 {
    padding-left: 8px;
    font-weight: 700;
    color: #111827;
}
.post-toc-depth-2 {
    padding-left: 18px;
    font-weight: 600;
}
.post-toc-depth-3 {
    padding-left: 28px;
}
.post-toc-depth-4 {
    padding-left: 38px;
    font-size: 12px;
}
.post-toc-depth-5 {
    padding-left: 48px;
    font-size: 12px;
    color: #6b7280;
}
.post-toc-depth-6 {
    padding-left: 58px;
    font-size: 12px;
    color: #9ca3af;
}
.x-embed-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 24px 0;
}
.x-embed-block .twitter-tweet {
    margin-left: auto !important;
    margin-right: auto !important;
}
.x-embed-fallback {
    display: none;
    max-width: 560px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    font-size: 13px;
    word-break: break-all;
}
.x-embed-fallback a {
    color: #2563eb;
    text-decoration: underline;
}
.instagram-embed-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 24px 0;
}
.instagram-embed-block .instagram-media {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   뉴스형 게시판 - 상단 통계 / 하단 기자 정보 카드
   ========================================================================== */

.news-post-top-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.news-post-top-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    line-height: 18px;
}

.news-post-top-stat strong {
    color: #111827;
    font-weight: 700;
}

.news-post-top-stat--like {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #2563eb;
}

.news-post-top-stat--like strong {
    color: #1d4ed8;
}

.news-post-top-stat--dislike {
    border-color: #fee2e2;
    background: #fef2f2;
    color: #dc2626;
}

.news-post-top-stat--dislike strong {
    color: #b91c1c;
}

.news-post-top-stat--comment {
    border-color: #e0e7ff;
    background: #eef2ff;
    color: #4f46e5;
}

.news-post-top-stat--comment strong {
    color: #4338ca;
}

.news-reporter-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 28px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.news-reporter-card__avatar {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
}

.news-reporter-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-reporter-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.news-reporter-card__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.news-reporter-card__name {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

a.news-reporter-card__name:hover {
    color: #2563eb;
    text-decoration: underline;
}

.news-reporter-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 1px 7px;
    border: 1px solid #fecaca;
    border-radius: 9999px;
    background: #fff1f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
}

.news-reporter-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.55;
}

.news-reporter-card__sep {
    color: #cbd5e1;
}

.news-reporter-card__note {
    margin-top: 5px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .news-post-top-stats {
        gap: 5px;
    }

    .news-post-top-stat {
        min-height: 26px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .news-reporter-card {
        gap: 11px;
        margin-top: 22px;
        margin-bottom: 16px;
        padding: 14px 12px;
    }

    .news-reporter-card__avatar {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .news-reporter-card__name {
        font-size: 14px;
    }

    .news-reporter-card__meta {
        gap: 3px;
        font-size: 11px;
    }

    .news-reporter-card__note {
        font-size: 10px;
    }
}
/* AI 생성 이미지 표시 */
.post-ai-image-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 9px;
    padding: 5px 10px;

    background: #f5f3ff;
    border: 1px solid #e9d5ff;
    border-radius: 999px;

    color: #7c3aed;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;

    user-select: none;
}

.post-ai-image-label svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

@media (max-width: 640px) {
    .post-ai-image-label {
        padding: 4px 8px;
        font-size: 10px;
    }
}