﻿/* ==============================
   싱글 페이지 공통 레이아웃
============================== */
body {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* 기사본문 소제목을 일반문단과 글씨크기 통일 */
.td-post-content h2,
.td-post-content h3 {
    font-weight: 600;
    font-size: 15px;
}

.custom-single-layout .sidebar-sticky-wrap {
    position: relative;
    height: 100%;
}

/* 우측 사이드바 sticky */
.custom-single-layout .custom-single-sticky {
    position: sticky;
    top: 80px;
    z-index: 10;
}

.tdi_77 .td-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    column-count: initial;
}


.reporter-card {
    margin: 24px 0;
    padding: 16px 18px;
    border: 1px solid #ccc;
    border-radius: 14px;
    background: #fff;
}

.reporter-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.reporter-card__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.reporter-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
}

.reporter-card__meta {
    min-width: 0;
}

.reporter-card__name {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    line-height: 1.2;
    font-size: 16px;
    flex-wrap: wrap;
}

.reporter-card__name:hover {
    text-decoration: underline;
}



.reporter-card__suffix {
    font-weight: 700;
    font-size: 13px;
    opacity: 0.75;
}

.reporter-card__email {
    color: #333;
    font-size: .8rem;
}


.reporter-card__actions {
    flex: 0 0 auto;
}

.reporter-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    background: #e63946;
    color: #fff;
    white-space: nowrap;
}

.reporter-card__btn:hover {
    filter: brightness(0.95);
}

.reporter-card .reporter-card__list {
    margin: 12px 0 0;
    padding: 0 0 0 18px;
}

.reporter-card__item {
    margin: 6px 0;
}

.reporter-card__link {
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.reporter-card__link:hover {
    text-decoration: underline;
}


.tdi_66 a {
    min-width: initial;
}

.tdb-tags li a {
    border: 1px solid #333;
    padding: 4px;
    border-radius: 6px;
    color: #666;
    font-weight: 500 !important;
    display: block;
}

.tdb-tags li a:hover {
    border: 1px solid #000;

}


.single-action-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.action-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 15px;
    border: 1px solid #111;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.action-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* 글씨 크기 조절 버튼 */

.tdi_50 {
    align-items: center;
    flex-wrap: wrap;
}

.meta-tools {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.meta-tools.meta-tools-mobile-hidden {
    display: none !important;
}

.font-size-tool {
    position: relative;
}

.font-size-trigger,
.share-trigger {
    width: 42px;
    height: 42px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #111;
    background: var(--neon-card, #141824);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    border-radius: 999px;
}

.font-size-trigger i {
    font-size: 15px;
}

.font-size-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat url("../assets/images/font-size-icon-wh.svg");
}

.font-size-toggle {
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    transition: opacity 0.15s ease;
    padding: 5px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.font-size-toggle button {
    width: 34px;
    height: 34px;
    border: 1px solid #111;
    background: #fff;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: all 0.15s ease;
    border-radius: 999px;
}

.font-size-toggle button[data-size="small"] {
    font-size: 14px;
    font-weight: 400;
}

.font-size-toggle button[data-size="large"] {
    font-size: 16px;
    font-weight: 700;
}

.meta-tools[data-font-size-open="true"] .font-size-toggle {
    opacity: 1;
    pointer-events: auto;
}

.meta-tools.is-open .font-size-toggle {
    opacity: 1;
    pointer-events: auto;
}

.meta-tools[data-font-size-open="true"] .font-size-trigger {
    background: #111;
    color: #fff;
}

.meta-tools.is-open .font-size-trigger {
    background: #111;
    color: #fff;
}

.meta-tools[data-font-size-open="true"] .font-size-icon,
.meta-tools.is-open .font-size-icon {
    background-image: url("../assets/images/font-size-icon-wh.svg");
}

.font-size-toggle button:hover {
    background: #ebeff5;
    border-color: #697589;
}

.font-size-toggle button.active {
    background: #111;
    color: #fff;
}

.floating-share-tool {
    position: relative;
}

.share-trigger {
    font-size: 16px;
}

.floating-share-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: max-content;
    min-width: 148px;
    padding: 10px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.floating-share-links:empty {
    display: none;
    margin-bottom: 0;
}

.floating-share-links .td-social-sharing-button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.floating-share-links .td-social-sharing-button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.floating-share-links .td-social-sharing-button i {
    font-size: 16px;
}

.floating-share-copy {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.floating-share-copy:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.floating-share-tool.is-open .share-trigger {
    background: #111;
    color: #fff;
}

.floating-share-tool.is-open .floating-share-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.share-trigger:hover {
    background: rgba(76, 201, 255, 0.12);
    border-color: var(--neon-blue, #4CC9FF);
    color: var(--neon-white, #EAF6FF);
    box-shadow: 0 0 12px rgba(76, 201, 255, 0.15);
}


.article-copyright {
    text-align: right;
    margin-top: 35px;
    padding: 18px 0;
    font-size: 12.5px;
    color: #777;
    border-top: 1px solid #ececec;
    letter-spacing: -0.2px;
}


/* Related Post Thumbnails 플러그인 css*/
/* ===== Related Post Thumbnails ===== */

.relpost-thumb-container {
    margin: 40px 0 28px;
    padding-top: 24px;
    border-top: 1px solid #e9e9e9;
}

.relpost-thumb-container h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: #111;
    letter-spacing: -0.02em;
}

/* 리스트 기본 초기화 */
#related_posts_thumbnails {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 한 줄씩 */
#related_posts_thumbnails li {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(76, 201, 255, 0.12);
    border-right: none !important;
    background: transparent !important;
}

/* 마지막 줄 밑줄 제거 */
#related_posts_thumbnails li:last-child {
    border-bottom: none;
}

/* 이미지 링크 */
#related_posts_thumbnails li>a:first-child {
    flex: 0 0 112px;
    width: 112px;
}

/* 이미지 */
#related_posts_thumbnails .relpost-post-image {
    display: block;
    width: 112px;
    height: 72px;
    margin: 0 !important;
    object-fit: cover;
    border: 1px solid rgba(76, 201, 255, 0.16);
    border-radius: 10px;
    background: #0f1115;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* 제목 링크 영역 */
#related_posts_thumbnails .relpost_content {
    display: block;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--neon-text, #e9eef5) !important;
    font-size: inherit !important;
}

/* span 불필요 여백 방지 */
#related_posts_thumbnails .rpth_list_content {
    display: block;
}

/* 제목 */
#related_posts_thumbnails .relpost_card_title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--neon-text, #e9eef5);
    letter-spacing: -0.02em;
    transition: color 0.18s ease, text-shadow 0.18s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 링크 hover */
#related_posts_thumbnails .relpost_content:hover .relpost_card_title {
    color: var(--neon-blue, #4CC9FF);
    text-shadow: 0 0 6px rgba(76, 201, 255, 0.28);
}

/* 이미지 hover */
#related_posts_thumbnails li>a:first-child:hover img {
    opacity: 0.94;
    transform: scale(1.02);
    border-color: rgba(76, 201, 255, 0.28);
    box-shadow: 0 0 14px rgba(76, 201, 255, 0.12);
}

#related_posts_thumbnails li:hover,
#related_posts_thumbnails .relpost-block-single:hover {
    background: transparent !important;
}

#related_posts_thumbnails .relpost-block-single {
    margin-right: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
}

/* 모바일 */
@media (max-width: 768px) {

    .aeo-faq-box,
    .relpost-thumb-container {
        margin: 28px 0 16px;
    }

    .faq-item {
        padding: 15px 0;
    }

    .faq-question {
        font-size: 16px !important;
    }

    .faq-question::before {
        font-size: 13px;
    }

    .faq-item .faq-answer {
        font-size: 14px;
        line-height: 1.75;
    }

    .relpost-thumb-container {
        padding-top: 20px;
    }

    .relpost-thumb-container h3 {
        font-size: 17px;
        margin-bottom: 14px;
    }

    #related_posts_thumbnails li {
        gap: 12px;
        padding: 14px 0;
    }

    #related_posts_thumbnails li>a:first-child {
        flex: 0 0 92px;
        width: 92px;
    }

    #related_posts_thumbnails .relpost-post-image {
        width: 92px;
        height: 60px;
        border-radius: 8px;
    }

    #related_posts_thumbnails .relpost_card_title {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {

    .faq-item {
        padding: 14px 0;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-item .faq-answer {
        font-size: 13.5px;
    }

    .relpost-thumb-container {
        padding: 18px 16px 8px;
    }

    #related_posts_thumbnails li>a:first-child {
        flex: 0 0 84px;
        width: 84px;
    }

    #related_posts_thumbnails .relpost-post-image {
        width: 84px;
        height: 56px;
    }

    #related_posts_thumbnails .relpost_card_title {
        font-size: 13.5px;
    }
}



@media print {

    /* 인쇄 시 도구 숨김 */
    .meta-tools {
        display: none !important;
    }


    ins.adsbygoogle,
    .adsbygoogle,
    iframe[src*="googleads"],
    iframe[src*="doubleclick"],
    iframe[src*="googlesyndication"] {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }
}

@media (max-width: 1024px) {
    .meta-tools {
        display: none;
    }

    #mobile-menu-btn-box.sticky .meta-tools {
        display: flex !important;
        position: static;
        right: auto;
        bottom: auto;
        z-index: auto;
        margin-bottom: .3rem;
    }

    #mobile-menu-btn-box.sticky .meta-tools .font-size-trigger,
    #mobile-menu-btn-box.sticky .meta-tools .share-trigger {
        width: 50px;
        height: 50px;
    }

    #mobile-menu-btn-box.sticky .meta-tools .font-size-toggle {
        right: calc(100% + 8px);
        top: 0;
        transform: none;
    }

    #mobile-menu-btn-box.sticky .meta-tools .floating-share-panel {
        right: 0;
        bottom: calc(100% + 8px);
        transform-origin: bottom right;
    }

    #mobile-menu-btn-box.sticky .meta-tools.meta-tools-slide-in .font-size-trigger,
    #mobile-menu-btn-box.sticky .meta-tools.meta-tools-slide-in .share-trigger {
        animation: slideDown .3s forwards;
    }
}




@media (max-width: 768px) {


    .custom-single-layout .custom-single-sticky {
        position: static !important;
        top: auto;
    }


    .reporter-card {
        padding: 14px 14px;
    }

    .reporter-card__top {
        gap: 10px;
    }

    .reporter-card__btn {
        height: 32px;
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .action-btn {
        font-size: 11px;
    }
}


.custom-single-layout {
    color: var(--neon-text, #e9eef5);
    --today-news-accent: var(--neon-blue, #4CC9FF);
    --today-news-dark-bg: var(--neon-white, #EAF6FF);
    --today-news-dark-gray: var(--neon-sub, #a7b0bf);
    --today-news-light-gray: var(--neon-line, #1f2633);
}

.custom-single-layout .tdi_76 {
    --today-news-light-gray: unset;
}

.custom-single-layout .tdi_76 {
    --today-news-light-gray: revert;
}

.custom-single-layout .tdi_86_rand_style {
    background-color: rgba(76, 201, 255, 0.2) !important;
}

.custom-single-layout .tdb-breadcrumbs,
.custom-single-layout .tdb-breadcrumbs a,
.custom-single-layout .tdb_single_date,
.custom-single-layout .tdb_single_author .tdb-author-by,
.custom-single-layout .tdb_single_author .tdb-author-name,
.custom-single-layout .article-copyright {
    color: var(--neon-sub, #a7b0bf) !important;
}

.custom-single-layout .tdb-breadcrumbs a:hover,
.custom-single-layout .tdb_single_author .tdb-author-name:hover {
    color: var(--neon-blue, #4CC9FF) !important;
}

/* kpop_breadcrumb() — 정식 레이아웃 */
.kpop-breadcrumb {
    font-size: 13px;
    line-height: 1.5;
}
/* 2026-10-19 간격 통일: 수평 간격은 구분자 margin(좌우 6px)만으로 정한다.
   list 의 column-gap 8px + 구분자 margin-right 8px 가 겹쳐 항목마다 간격이 달랐다.
   카테고리/태그(loadmore.css)·저자(author-page.css)와 같은 값. */
.kpop-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
}
.kpop-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    color: var(--text-sub, #a7b0bf);
    min-width: 0;
}
.kpop-breadcrumb__item + .kpop-breadcrumb__item::before {
    content: "›";
    margin: 0 6px;
    color: var(--text-weak, #7a8597);
    font-weight: 400;
}
.kpop-breadcrumb__item a,
.kpop-breadcrumb__item span {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
.kpop-breadcrumb__item a:hover {
    color: var(--primary-color, #4CC9FF);
}
/* DEPRECATED (2026-10-19): 홈 항목이 "홈" 텍스트로 바뀌어 이 아이콘은 렌더되지 않는다.
   includes/theme/breadcrumb.php 의 'icon' 플래그와 함께 별도 작업에서 제거. */
.kpop-breadcrumb__item .icon-home {
    font-size: 13px;
    line-height: 1;
}
.kpop-breadcrumb__item.is-current,
.custom-single-layout .tdb-breadcrumbs .kpop-breadcrumb__item.is-current,
.custom-single-layout .tdb-breadcrumbs .kpop-breadcrumb__item.is-current span {
    color: var(--neon-white, #EAF6FF) !important;
}
.kpop-breadcrumb__item.is-current span {
    font-weight: 600;
}
@media (max-width: 600px) {
    .kpop-breadcrumb__item a,
    .kpop-breadcrumb__item span {
        max-width: 160px;
    }
}

.custom-single-layout .tdb-single-title .tdb-title-text,
.custom-single-layout #contents-title {
    color: var(--neon-white, #EAF6FF) !important;
    text-shadow: 0 0 6px rgba(76, 201, 255, 0.22);
}

.custom-single-layout .tdi_48 .tdb-entry-category {
    color: var(--neon-bg-deep, #07080b) !important;
}

.custom-single-layout .tdi_48 .tdb-cat-bg {
    background-color: var(--neon-blue, #4CC9FF) !important;
}

.custom-single-layout .td-post-content,
.custom-single-layout .td-post-content p,
.custom-single-layout .td-post-content li,
.custom-single-layout .td-post-content h1,
.custom-single-layout .td-post-content h2,
.custom-single-layout .td-post-content h3,
.custom-single-layout .td-post-content h4,
.custom-single-layout .td-post-content h5,
.custom-single-layout .td-post-content h6 {
    color: var(--neon-text, #e9eef5);
}

.custom-single-layout .td-post-content a {
    color: var(--neon-blue, #4CC9FF);
}

.custom-single-layout .td-post-content a:hover {
    color: var(--neon-white, #EAF6FF);
}

/* Inline black text from editor can become unreadable on dark single pages */
.custom-single-layout .td-post-content strong,
.custom-single-layout .td-post-content b {
    color: var(--neon-text, #e9eef5) !important;
}

.custom-single-layout .td-post-content [style*="color:#000"],
.custom-single-layout .td-post-content [style*="color: #000"],
.custom-single-layout .td-post-content [style*="color:#000000"],
.custom-single-layout .td-post-content [style*="color: #000000"],
.custom-single-layout .td-post-content [style*="rgb(0,0,0)"],
.custom-single-layout .td-post-content [style*="rgb(0, 0, 0)"] {
    color: inherit !important;
}

.reporter-card {
    border-color: var(--neon-line, #1f2633);
    background: var(--neon-card, #141824);
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.18), 0 8px 26px rgba(0, 0, 0, 0.6);
}

.reporter-card__email,
.reporter-card__suffix,
.reporter-card__link {
    color: var(--neon-sub, #a7b0bf);
}

.reporter-card__name,
.reporter-card__link:hover {
    color: var(--neon-text, #e9eef5);
}

.reporter-card__btn {
    background: rgba(76, 201, 255, 0.14);
    border: 1px solid var(--neon-blue, #4CC9FF);
    color: var(--neon-white, #EAF6FF);
}

.reporter-card__btn:hover {
    background: rgba(76, 201, 255, 0.22);
}

.tdb-tags li a {
    border-color: var(--neon-line, #1f2633);
    color: var(--neon-sub, #a7b0bf);
    background: var(--neon-card, #141824);
}

.custom-single-layout .tdb-tags li span {
    background: var(--neon-blue, #4CC9FF);
    font-weight: 700;
    letter-spacing: 0.4px;
}

.tdb-tags li a:hover {
    border-color: var(--neon-blue, #4CC9FF);
    color: var(--neon-white, #EAF6FF);
}

.action-btn,
.font-size-trigger,
.font-size-toggle button {
    background: var(--neon-card, #141824);
    color: var(--neon-text, #e9eef5);
    border-color: var(--neon-line, #1f2633);
}

.font-size-toggle {
    background: rgba(8, 11, 18, 0.92);
    border: 1px solid rgba(76, 201, 255, 0.55);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 14px rgba(76, 201, 255, 0.2);
}

.font-size-toggle button {
    background: #1b2333;
    color: #eaf6ff;
    border-color: #3a4a64;
}

.action-btn:hover,
.font-size-trigger:hover,
.font-size-toggle button:hover {
    background: rgba(76, 201, 255, 0.12);
    border-color: var(--neon-blue, #4CC9FF);
    color: var(--neon-white, #EAF6FF);
    box-shadow: 0 0 12px rgba(76, 201, 255, 0.15);
}

.font-size-toggle button.active {
    background: var(--neon-blue, #4CC9FF);
    color: #061017;
    border-color: var(--neon-blue, #4CC9FF);
}

.meta-tools[data-font-size-open="true"] .font-size-trigger {
    border-color: var(--neon-blue, #4CC9FF);
    box-shadow: 0 0 12px rgba(76, 201, 255, 0.15);
}

.meta-tools.is-open .font-size-trigger {
    border-color: var(--neon-blue, #4CC9FF);
    box-shadow: 0 0 12px rgba(76, 201, 255, 0.15);
}

.custom-single-layout .td-post-sharing-visible {
    background: var(--neon-card, #141824);
    border: 1px solid var(--neon-line, #1f2633);
    border-radius: 10px;
    padding: 10px;
}

.custom-single-layout .td-post-sharing-visible--black-theme {
    background: #0f1115;
    border-color: #2a2f3a;
}

.custom-single-layout .td-social-sharing-button {
    background: rgba(76, 201, 255, 0.1);
    border-radius: 999px;
}

.custom-single-layout .td-post-sharing-visible--black-theme .td-social-sharing-button {
    background: #171b24;
    border: 1px solid #2a2f3a;
    color: #e9eef5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-single-layout .td-post-sharing-visible--black-theme .td-social-sharing-button:hover {
    background: #212837;
    border-color: #4CC9FF;
}

.custom-single-layout #comment-box.comment-box--black-theme {
    margin-top: 12px;
}

.custom-single-layout #comment-box .comments--black-theme {
    background: #0f1115;
    border: 1px solid #2a2f3a;
    border-radius: 10px;
    padding: 20px;
    color: #d5d9e2;
}

.custom-single-layout #comment-box .comments--black-theme a,
.custom-single-layout #comment-box .comments--black-theme .comment-reply-link {
    color: #8ddcff;
}

.custom-single-layout #comment-box .comments--black-theme a:hover,
.custom-single-layout #comment-box .comments--black-theme .comment-reply-link:hover {
    color: #c7ecff;
}

.custom-single-layout #comment-box .comments--black-theme .td-comments-title span,
.custom-single-layout #comment-box .comments--black-theme #reply-title,
.custom-single-layout #comment-box .comments--black-theme .comment-author-link,
.custom-single-layout #comment-box .comments--black-theme .comment-author {
    color: #e9eef5;
}

.custom-single-layout #comment-box .comments--black-theme .comment-list .comment {
    border-bottom: 1px solid #2a2f3a;
    padding-bottom: 12px;
}

.custom-single-layout #comment-box .comments--black-theme input,
.custom-single-layout #comment-box .comments--black-theme textarea {
    background: #171b24;
    border: 1px solid #2a2f3a;
    color: #e9eef5;
}

.custom-single-layout #comment-box .comments--black-theme input::placeholder,
.custom-single-layout #comment-box .comments--black-theme textarea::placeholder {
    color: #8d98aa;
}

.custom-single-layout #comment-box .comments--black-theme .submit {
    background: #171b24;
    border: 1px solid #2a2f3a;
    color: #e9eef5;
}

.custom-single-layout #comment-box .comments--black-theme .submit:hover {
    background: #212837;
    border-color: #4CC9FF;
}





.related-neon-widget {
    margin-top: 14px;
}

.related-neon-header {
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    overflow: visible;
    padding: 0;
    --today-news-light-gray: transparent;
}

body.single .custom-single-layout .related-neon-header .tdi_75_rand_style,
body.single .custom-single-layout .related-neon-header .td-element-style {
    background: transparent !important;
    display: none !important;
}

body.single .custom-single-layout .related-neon-header .td-block-row {
    position: relative;
    z-index: 1;
}

body.single .custom-single-layout .related-neon-header .tds-title {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
}

.related-neon-title {
    color: var(--neon-white, #EAF6FF) !important;
    letter-spacing: 0.2px;
    text-shadow: 0 0 6px rgba(76, 201, 255, 0.22);
    margin: 0 !important;
    font-style: normal !important;
}

.related-neon-list #tdi_77 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-neon-item {
    margin-bottom: 0 !important;
    padding: 10px;
    border: 1px solid var(--neon-line, #1f2633);
    border-radius: 10px;
    background: var(--neon-card, #141824);
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.related-neon-item .popular-news-thumb {
    margin-bottom: 8px;
}

.related-neon-item .popular-news-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.related-neon-item .entry-title {
    margin: 0 0 6px;
}

.related-neon-item .entry-title a {
    color: var(--neon-text, #e9eef5) !important;
    font-size: 15px;
    line-height: 1.4;
}

.related-neon-item .entry-title a:hover {
    color: var(--neon-blue, #4CC9FF) !important;
    text-shadow: 0 0 6px rgba(76, 201, 255, 0.35);
}

.related-neon-item .td-excerpt {
    color: var(--neon-sub, #a7b0bf);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.related-neon-item .td-author-date {
    color: var(--neon-weak, #7a8597);
    font-size: 12px;
}

.related-neon-empty {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed var(--neon-line, #1f2633);
    border-radius: 8px;
    color: var(--neon-sub, #a7b0bf);
    background: rgba(76, 201, 255, 0.04);
}


body.single .custom-single-layout .tdi_46,
body.single .custom-single-layout .tdi_46 a,
body.single .custom-single-layout .tdi_54,
body.single .custom-single-layout .tdi_57 .tdb-author-by,
body.single .custom-single-layout .tdi_57 .tdb-author-name,
body.single .custom-single-layout .tdi_76 .tdm-title,
body.single .custom-single-layout .tdi_77 .td-excerpt,
body.single .custom-single-layout .tdi_77 .td-post-date,
body.single .custom-single-layout .tdi_77 .td-author-date,
body.single .custom-single-layout .tdi_77 .td-post-author-name span,
body.single .custom-single-layout .tdi_77 .td-editor-date,
body.single .custom-single-layout .tdi_77 .td-editor-date .entry-date,
body.single .custom-single-layout .tdi_77 .td-editor-date .td-post-author-name a,
body.single .custom-single-layout .tdi_77 .td-module-comments a {
    color: var(--neon-sub, #a7b0bf) !important;
}

body.single .custom-single-layout .tdi_47 .tdb-title-text,
body.single .custom-single-layout .tdi_76 .tdm-title,
body.single .custom-single-layout .tdi_77 .entry-title,
body.single .custom-single-layout .tdi_77 .td-module-title a,
body.single .custom-single-layout .related-neon-item .entry-title a {
    color: var(--neon-white, #EAF6FF) !important;
}

body.single .custom-single-layout .tdi_46 a:hover,
body.single .custom-single-layout .tdi_57 .tdb-author-name:hover,
body.single .custom-single-layout .tdi_77 .td_module_wrap:hover .td-module-title a,
body.single .custom-single-layout .tdi_77 .td-module-title a:hover,
body.single .custom-single-layout .related-neon-item .entry-title a:hover {
    color: var(--neon-blue, #4CC9FF) !important;
}

body.single .custom-single-layout .tdi_48 .tdb-entry-category {
    color: #061017 !important;
}

body.single .custom-single-layout .tdi_77 .td-module-container,
body.single .custom-single-layout .tdi_77 .td-module-meta-info,
body.single .custom-single-layout .tdi_77 .td-module-container:before,
body.single .custom-single-layout .tdi_77,
body.single .custom-single-layout .tdi_79,
body.single .custom-single-layout .tdi_91 {
    border-color: var(--neon-line, #1f2633) !important;
}

body.single .custom-single-layout .tdi_77 .td-module-title a {
    box-shadow: inset 0 0 0 0 transparent !important;
}

body.single .custom-single-layout .tdi_77 .td-post-category,
body.single .custom-single-layout .tdi_92 .td-post-category {
    color: var(--neon-blue, #4CC9FF) !important;
}


/* AEO 핵심요약, 한줄요약, QNA 스타일링 */
.custom-single-layout .td-post-content .aeo-box,
.custom-single-layout .td-post-content .aeo-faq-box {
    margin: 0 0 28px;
    padding: 18px 0;
    background: transparent;
}

.custom-single-layout .td-post-content .aeo-box p,
.custom-single-layout .td-post-content .aeo-box ul,
.custom-single-layout .td-post-content .aeo-box li,
.custom-single-layout .td-post-content .aeo-faq-box p,
.custom-single-layout .td-post-content .aeo-faq-box h3 {
    margin: 0;
    color: var(--neon-text, #e9eef5);
}

.custom-single-layout .td-post-content .aeo-box p+p,
.custom-single-layout .td-post-content .aeo-box p+ul {
    margin-top: 18px;
}

.custom-single-layout .td-post-content .aeo-box strong {
    display: inline-block;
    margin: 0 0 8px;
    color: var(--neon-blue, #4CC9FF);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.custom-single-layout .td-post-content .aeo-box ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.custom-single-layout .td-post-content .aeo-box li {
    position: relative;
    padding-left: 18px;
    line-height: 1.75;
}

.custom-single-layout .td-post-content .aeo-box li+li {
    margin-top: 10px;
}

.custom-single-layout .td-post-content .aeo-box li::before {
    content: "";
    position: absolute;
    top: 0.85em;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--neon-blue, #4CC9FF);
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(76, 201, 255, 0.4);
}

.custom-single-layout .td-post-content .aeo-faq-box {
    margin: 32px 0 28px;
}

.custom-single-layout .td-post-content .aeo-faq-box h3 {
    margin-bottom: 8px;
    color: var(--neon-blue, #4CC9FF);
    /* font-size: 18px; */
    line-height: 1.45;
    margin: 0 0 8px;
}

.custom-single-layout .td-post-content .aeo-faq-box p {
    color: var(--neon-sub, #a7b0bf);
    line-height: 1.8;
    margin: 0;
}

.custom-single-layout .td-post-content .aeo-faq-box h3:not(:first-of-type) {
    margin-top: 24px;
}


@media (max-width: 768px) {

    .custom-single-layout .td-post-content .aeo-box,
    .custom-single-layout .td-post-content .aeo-faq-box {
        margin-bottom: 24px;
        padding: 16px 0;
    }

    .custom-single-layout .td-post-content .aeo-box p+p,
    .custom-single-layout .td-post-content .aeo-box p+ul {
        margin-top: 16px;
    }

    .custom-single-layout .td-post-content .aeo-box li {
        padding-left: 16px;
        font-size: 15px;
        line-height: 1.7;
    }

    .custom-single-layout .td-post-content .aeo-faq-box h3 {
        font-size: 14px;
    }
}

/* ============================================================
 * 본문 표(table) — 기본 디자인 + 모바일 가로 스크롤
 *
 * 프리즘이 넣는 본문 표는 클래스 없는 <table><caption><thead><tbody> 구조라
 * 테마 스타일이 사실상 없었다(케이팝은 tdb.css 4632 의 margin-bottom 한 줄뿐).
 * 그래서 열이 많은 표(세리에 A 순위표 10열)가 모바일에서 열 폭이 min-content
 * 까지 눌려 「나폴리」가 나/폴/리 로, 「10」이 1/0 으로 세로로 쪼개졌다.
 *   - word-break: keep-all → 한글·숫자가 글자 단위로 끊기지 않음 (근본 원인)
 *   - ≤767px 에서는 표 자체를 가로 스크롤 영역으로 전환해 넘치는 열을 밀어서 봄
 *   - caption 은 sticky 로 왼쪽에 고정 — 가로로 밀어도 표 제목이 남는다
 *
 * 위키 본문(.imw-prose)은 intrawiki-layout.css 가 정본이므로 :not() 으로 제외한다.
 *
 * ⚠ 매거진 3사 공통 (파츠 공유가 아니라 개별 이식) — 한 곳을 고치면 나머지 2사도 같이 고친다.
 *   · 인트라매거진  themes/intra-v2/custom-parts/css/article-enhancements.css (§17)
 *   · 이슈데이      themes/isunew-clear/custom-parts/css/custom-single.css (말미)
 *   · 케이팝포스트  themes/kpop-clear/custom-parts/css/custom-single.css (이 섹션)
 * ============================================================ */
.td-post-content:not(.imw-prose) table {
    width: 100%;
    margin: var(--space-5, 20px) 0 var(--space-6, 24px);
    border-collapse: collapse;
    border-spacing: 0;
    font-size: var(--fs-md, 14px);
    line-height: 1.55;
}

.td-post-content:not(.imw-prose) table caption {
    caption-side: top;
    padding: 0 0 var(--space-2, 8px);
    text-align: left;
    font-size: var(--fs-base, 13px);
    font-weight: var(--fw-medium, 500);
    color: inherit;
    opacity: 0.72;
    word-break: keep-all;
}

.td-post-content:not(.imw-prose) table th,
.td-post-content:not(.imw-prose) table td {
    padding: 9px 10px;
    border: 1px solid rgba(128, 128, 128, 0.35);
    vertical-align: middle;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* ⚠ 배경만 반투명 회색으로 얹고 글자색은 절대 건드리지 않는다.
   케이팝포스트 기사 본문은 다크(#0f1115·#141824 · 글자 흰색)라, 밝은 배경색을 깔면
   사이트의 흰 글자가 흰 배경 위에 얹혀 셀이 통째로 안 보였다 (2026-10-12 실측).
   회색 반투명은 밝은 본문에서도 어두운 본문에서도 같은 방향으로 작동한다.
   헤더 줄바꿈은 막지 않는다 — 긴 비교축 제목이 있는 표가 본문 폭을 넘겨서는 안 된다. */
.td-post-content:not(.imw-prose) table thead th {
    background: rgba(128, 128, 128, 0.14);
    font-weight: var(--fw-semibold, 600);
    text-align: center;
}

.td-post-content:not(.imw-prose) table tbody tr:nth-child(even) {
    background: rgba(128, 128, 128, 0.07);
}

/* 열이 5개 이상이면 기록·순위표로 보고 숫자 열을 가운데 정렬.
   :has 미지원 브라우저는 왼쪽 정렬로 떨어질 뿐 기능 영향은 없다. */
.td-post-content:not(.imw-prose) table:has(tr > *:nth-child(5)) th,
.td-post-content:not(.imw-prose) table:has(tr > *:nth-child(5)) td {
    text-align: center;
}

/* 모바일 — 표를 가로 스크롤 영역으로 */
@media (max-width: 767px) {
    .td-post-content:not(.imw-prose) table {
        display: block;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        font-size: var(--fs-base, 13px);
    }

    .td-post-content:not(.imw-prose) table caption {
        display: block;
        position: sticky;
        left: 0;
    }

    .td-post-content:not(.imw-prose) table th,
    .td-post-content:not(.imw-prose) table td {
        padding: 7px 8px;
    }

    /* 기록·순위표는 셀이 짧다 — 줄바꿈 대신 가로로 밀어서 본다 */
    .td-post-content:not(.imw-prose) table:has(tr > *:nth-child(5)) th,
    .td-post-content:not(.imw-prose) table:has(tr > *:nth-child(5)) td {
        white-space: nowrap;
    }

    /* 4열 이하는 블록화를 되돌린다 — display:block 은 안쪽 표를 shrink-to-fit 으로
       만들어 2열 표가 본문 폭의 1/3 만 차지했다 (2026-10-12 실측).
       :has 미지원 브라우저는 위의 전체 블록화가 그대로 남아 안전망이 된다. */
    @supports selector(:has(*)) {
        .td-post-content:not(.imw-prose) table:not(:has(tr > *:nth-child(5))) {
            display: table;
            overflow: visible;
        }

        /* 표를 display:table 로 되돌렸으면 caption 도 같이 되돌려야 한다.
           block 인 채로 두면 표 내부 요소 사이로 밀려 헤더 행과 본문 사이에
           끼어 보인다 (2026-10-12 실화면 검수에서 3사 모두 확인). */
        .td-post-content:not(.imw-prose) table:not(:has(tr > *:nth-child(5))) caption {
            display: table-caption;
            position: static;
        }
    }
}

/* 인쇄 — 표는 스크롤 없이 전부 펼친다 */
@media print {
    .td-post-content:not(.imw-prose) table {
        display: table;
        overflow: visible;
    }
    .td-post-content:not(.imw-prose) table:has(tr > *:nth-child(5)) th,
    .td-post-content:not(.imw-prose) table:has(tr > *:nth-child(5)) td {
        white-space: normal;
    }
}
