/* =============================================================
 * article-enhancements.css  —  기사 본문 v2 개선 스타일
 *
 * 적용 범위: is_singular('post') 에서만 enqueue
 * 의존: _tokens.css, custom-single.css
 *
 * 포함:
 *   1. Read-progress bar (상단 스크롤 진행)
 *   2. 부제(alternativeHeadline) / 메타 뱃지 (발신지·독서시간)
 *   3. TL;DR 라벨 · AEO 박스 리디자인
 *   4. FAQ <details> 스타일
 *   5. Pullquote · Figure caption · 출처 · 정정이력
 *   6. TOC (사이드바 sticky / 모바일 접기)
 *   7. Prev/Next 네비게이션
 *   8. Floating CTA 추가 (북마크)
 *   9. Dark mode (prefers-color-scheme)
 *  10. Print 전용
 * ============================================================= */

/* ============================================================
 * 1. Read progress bar
 * ============================================================ */
.intra-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}
.intra-read-progress__bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--title-color, #111) 0%, #3a7bd5 100%);
    transition: width 120ms linear;
}

/* ============================================================
 * 2a. 시맨틱 wrapper — <header>/<footer> 블록
 * ============================================================ */
.intra-article__head {
    margin: 0 0 18px;
}
.intra-article__title {
    margin: 4px 0 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
    word-break: keep-all;
}
.intra-article__foot {
    margin: 28px 0 12px;
    padding: 16px 0 0;
    border-top: 1px solid var(--color-gray-e5, #e5e7eb);
}

/* ============================================================
 * 2. 섹션 라벨(제목 위) · 부제 · 메타바
 * ============================================================ */
.intra-section-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 6px 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.intra-section-label a {
    color: #374151;
    text-decoration: none;
    transition: color 120ms ease;
}
.intra-section-label a:hover {
    color: var(--color-primary, #e53935);
}
.intra-section-label__parent {
    color: #6b7280 !important;
    font-weight: 600;
}
.intra-section-label__current {
    color: var(--color-primary, #e53935) !important;
    position: relative;
}
.intra-section-label__current::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 12px;
    margin-right: 6px;
    background: currentColor;
    border-radius: 2px;
    vertical-align: -1px;
}
.intra-section-label__parent + .intra-section-label__sep + .intra-section-label__current::before {
    display: none;
}
.intra-section-label__sep {
    color: #d1d5db;
    font-weight: 400;
}

.intra-subtitle {
    margin: 6px 0 0;
    color: var(--color-gray-666, #666);
    font-size: var(--fs-md, 16px);
    font-weight: 500;
    line-height: 1.45;
}

.intra-article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin: 14px 0 0;
    padding: 10px 0;
    border-top: 1px solid var(--color-gray-e5, #e5e7eb);
    border-bottom: 1px solid var(--color-gray-e5, #e5e7eb);
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}
.intra-article-meta-bar__primary,
.intra-article-meta-bar__byline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
}
.intra-article-meta-bar__item,
.intra-article-meta-bar__author,
.intra-article-meta-bar__edit {
    display: inline-flex;
    align-items: center;
}
.intra-article-meta-bar__primary > .intra-article-meta-bar__item + .intra-article-meta-bar__item::before {
    content: "·";
    margin: 0 8px;
    color: #d1d5db;
}
.intra-article-meta-bar__byline > * + *::before {
    content: "";
    width: 1px;
    height: 11px;
    margin: 0 10px;
    background: #e5e7eb;
}
.intra-article-meta-bar__dateline {
    font-weight: 500;
    color: #4b5563;
}
.intra-article-meta-bar__read-time {
    color: #6b7280;
}
.intra-article-meta-bar__author .tdb-author-by {
    margin-right: 4px;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.intra-article-meta-bar__author .tdb-author-name {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}
.intra-article-meta-bar__author .tdb-author-name:hover {
    color: var(--title-color, #111);
    text-decoration: underline;
}
.intra-article-meta-bar__edit {
    gap: 4px;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
}
.intra-article-meta-bar__edit:hover {
    color: var(--title-color, #111);
}

@media (max-width: 640px) {
    .intra-article-meta-bar {
        font-size: 12.5px;
        gap: 4px 0;
    }
    .intra-article-meta-bar__primary,
    .intra-article-meta-bar__byline {
        width: 100%;
    }
    .intra-article-meta-bar__byline {
        margin-top: 2px;
        padding-top: 6px;
        border-top: 1px dashed #eef0f3;
    }
}

/* ============================================================
 * 3. TL;DR / AEO 박스 리디자인 (아이콘 · 레이블 · 본문 스타일)
 *    (기존 .aeo-box 를 래핑 스타일로 확장)
 * ============================================================ */
.aeo-box {
    position: relative;
    margin: 24px 0 28px;
    padding: 18px 20px 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fafbff 0%, #f4f6fb 100%);
}
.aeo-box__label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--title-color, #111);
    border-radius: 4px;
    text-transform: uppercase;
}
.aeo-box__core {
    margin: 0 0 8px;
    font-size: var(--fs-md, 16px);
    font-weight: 600;
    line-height: 1.55;
    color: #111827;
}
.aeo-box__oneline {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}
.aeo-box__bullets {
    margin: 8px 0 0;
    padding-left: 18px;
}
.aeo-box__bullets li {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* ============================================================
 * 4. FAQ <details> 카드 — 내부 여백·반응형 포함한 단일 소스
 * ============================================================ */
.aeo-faq-box {
    margin: 32px 0;
    padding: 4px 24px;
    border: 1px solid var(--color-gray-e5, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.03);
    overflow: hidden;
}
.aeo-faq-box__header {
    padding: 16px 0 12px;
    border-bottom: 1px solid #eef0f3;
}
.aeo-faq-box__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: #111827;
}
.aeo-faq-box details.faq-item {
    margin: 0;
    padding: 0;
    border-top: 1px solid #f1f3f5;
}
.aeo-faq-box details.faq-item:first-of-type {
    border-top: 0;
}
.aeo-faq-box details.faq-item[open] {
    background: #fafbfc;
    margin: 0 -24px;
    padding: 0 24px;
}
.aeo-faq-box summary.faq-question {
    position: relative;
    cursor: pointer;
    padding: 16px 48px 16px 0;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.55;
    color: #111827;
    list-style: none;
    word-break: keep-all;
    outline-offset: -2px;
    transition: color 140ms ease;
}
.aeo-faq-box summary.faq-question::-webkit-details-marker { display: none; }
.aeo-faq-box summary.faq-question:hover {
    color: var(--color-primary, #e53935);
}
.aeo-faq-box summary.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #6b7280;
    transition: transform 220ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.aeo-faq-box summary.faq-question:hover::after {
}
.aeo-faq-box details[open] summary.faq-question::after {
    content: '−';
    transform: rotate(180deg);
}
.aeo-faq-box .faq-answer {
    padding: 0 0 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.72;
}
.aeo-faq-box .faq-answer p { margin: 0 0 8px; }
.aeo-faq-box .faq-answer p:last-child { margin: 0; }

@media (max-width: 640px) {
    .aeo-faq-box {
        margin: 24px 0;
        padding: 2px 16px;
        border-radius: 12px;
    }
    .aeo-faq-box__header { padding: 14px 0 10px; }
    .aeo-faq-box__title { font-size: 15.5px; }
    .aeo-faq-box details.faq-item[open] {
        margin: 0 -16px;
        padding: 0 16px;
    }
    .aeo-faq-box summary.faq-question {
        padding: 14px 40px 14px 0;
        font-size: 14.5px;
    }
    .aeo-faq-box summary.faq-question::after {
        width: 22px;
        height: 22px;
        margin-top: -11px;
        font-size: 16px;
    }
    .aeo-faq-box .faq-answer {
        padding: 0 0 16px;
        font-size: 13.5px;
        line-height: 1.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aeo-faq-box summary.faq-question,
    .aeo-faq-box summary.faq-question::after {
        transition: none;
    }
}

/* ============================================================
 * 5. Pullquote · Figure caption · 출처 · 정정이력
 * ============================================================ */
.td-post-content blockquote.pullquote,
.td-post-content .wp-block-pullquote {
    margin: 28px 0;
    padding: 16px 22px;
    border-left: 6px solid var(--title-color, #111);
    background: #f9fafb;
    font-size: 18px;
    font-style: italic;
    color: #1f2937;
    line-height: 1.6;
}
.td-post-content figure figcaption,
.td-post-content .wp-caption-text {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

.intra-sources,
.intra-corrections {
    margin: 28px 0;
    padding: 14px 16px;
    border: 1px solid var(--color-gray-e5, #e5e7eb);
    border-radius: 8px;
    background: #fff;
}
.intra-sources__title,
.intra-corrections__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.intra-sources__list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
}
.intra-sources__list li { margin: 2px 0; }
.intra-sources__list a {
    color: #2563eb;
    text-decoration: underline;
    word-break: break-all;
}

.intra-corrections__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
.intra-corrections__item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-gray-e5, #e5e7eb);
}
.intra-corrections__item:last-child { border-bottom: 0; }
.intra-corrections__time {
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}
.intra-corrections__type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}
.intra-corrections__type--correction   { background: #fef2f2; color: #991b1b; }
.intra-corrections__type--clarification{ background: #fffbeb; color: #92400e; }
.intra-corrections__type--update       { background: #eff6ff; color: #1e40af; }
.intra-corrections__type--retraction   { background: #fee2e2; color: #7f1d1d; }
.intra-corrections__note {
    color: #374151;
    line-height: 1.6;
}
@media (max-width: 640px) {
    .intra-corrections__item { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
 * 6. TOC — 사이드바 sticky, 모바일 상단 접힘
 * ============================================================ */
.intra-toc {
    background: #fff;
    border: 1px solid var(--color-gray-e5, #e5e7eb);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}
.intra-toc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.intra-toc__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.intra-toc__toggle {
    background: transparent;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
}
.intra-toc__toggle:hover { background: #f3f4f6; }
.intra-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
    counter-reset: intra-toc;
}
.intra-toc__item {
    padding: 3px 0;
    counter-increment: intra-toc;
}
.intra-toc__item--l3 { padding-left: 14px; }
.intra-toc__item--l4 { padding-left: 28px; }
.intra-toc__link {
    display: block;
    color: #374151;
    text-decoration: none;
    line-height: 1.5;
    padding: 3px 6px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.intra-toc__link:hover {
    background: #f3f4f6;
    color: #111827;
}
.intra-toc__link.is-active {
    background: rgba(229, 57, 53, 0.08);
    color: var(--color-primary, #e53935);
    border-left-color: var(--color-primary, #e53935);
    font-weight: 600;
}
.intra-toc[data-collapsed="true"] .intra-toc__list { display: none; }
.intra-toc[data-collapsed="true"] .intra-toc__toggle-label::after { content: ""; }

/* 모바일: 본문 상단에 clone 해 사용할 수 있도록 기본 마진 조정 */
@media (max-width: 1024px) {
    .intra-toc { font-size: 13px; }
    .intra-toc__list { max-height: 40vh; }
}

/* ============================================================
 * 7. Prev/Next 네비게이션
 * ============================================================ */
.intra-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 12px;
}
.intra-post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--color-gray-e5, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.intra-post-nav__item:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.intra-post-nav__item--next { text-align: right; }
.intra-post-nav__dir {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.intra-post-nav__body {
    display: flex;
    gap: 10px;
    align-items: center;
}
.intra-post-nav__item--next .intra-post-nav__body {
    flex-direction: row-reverse;
}
.intra-post-nav__thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}
.intra-post-nav__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.intra-post-nav__placeholder { display: block; }
@media (max-width: 640px) {
    .intra-post-nav { grid-template-columns: 1fr; }
    .intra-post-nav__item--next { text-align: left; }
    .intra-post-nav__item--next .intra-post-nav__body { flex-direction: row; }
}

/* ============================================================
 * 8. 북마크 버튼 (single-action-buttons 내부)
 * ============================================================ */
.single-action-buttons .action-btn.is-active {
    color: var(--color-primary, #e53935);
    background: rgba(229, 57, 53, 0.08);
}
.single-action-buttons .action-btn.bookmark-btn .bookmark-on { display: none; }
.single-action-buttons .action-btn.bookmark-btn.is-active .bookmark-on { display: inline; }
.single-action-buttons .action-btn.bookmark-btn.is-active .bookmark-off { display: none; }

/* ============================================================
 * 9. Dark mode (prefers-color-scheme)
 *    - 기본적으로 intra-v2 는 라이트 톤이라 user 선택 감지시에만 적용.
 *    - html[data-intra-theme="dark"] 를 수동 토글하면 강제 다크.
 * ============================================================ */
@media (prefers-color-scheme: dark) {
    html:not([data-intra-theme="light"]).intra-dark-capable body,
    html[data-intra-theme="dark"] body {
        background: #0b0c0f;
        color: #e5e7eb;
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .td-post-content,
    html[data-intra-theme="dark"] .td-post-content {
        color: #e5e7eb;
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-box,
    html[data-intra-theme="dark"] .aeo-box {
        background: linear-gradient(180deg, #111827 0%, #0b0c0f 100%);
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-box__core,
    html[data-intra-theme="dark"] .aeo-box__core { color: #f3f4f6; }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box,
    html[data-intra-theme="dark"] .aeo-faq-box {
        background: #0f172a;
        border-color: #1f2937;
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box__header,
    html[data-intra-theme="dark"] .aeo-faq-box__header { border-bottom-color: #1f2937; }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box__title,
    html[data-intra-theme="dark"] .aeo-faq-box__title { color: #e5e7eb; }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box details.faq-item,
    html[data-intra-theme="dark"] .aeo-faq-box details.faq-item { border-top-color: #1f2937; }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box details.faq-item[open],
    html[data-intra-theme="dark"] .aeo-faq-box details.faq-item[open] { background: #111827; }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box summary.faq-question,
    html[data-intra-theme="dark"] .aeo-faq-box summary.faq-question { color: #e5e7eb; }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box summary.faq-question::after,
    html[data-intra-theme="dark"] .aeo-faq-box summary.faq-question::after {
        background: #0f172a;
        border-color: #374151;
        color: #9ca3af;
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .aeo-faq-box .faq-answer,
    html[data-intra-theme="dark"] .aeo-faq-box .faq-answer { color: #d1d5db; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-section-label__parent,
    html[data-intra-theme="dark"] .intra-section-label__parent { color: #9ca3af !important; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-section-label__current,
    html[data-intra-theme="dark"] .intra-section-label__current { color: #f87171 !important; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-section-label__sep,
    html[data-intra-theme="dark"] .intra-section-label__sep { color: #4b5563; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-article-meta-bar,
    html[data-intra-theme="dark"] .intra-article-meta-bar {
        border-color: #1f2937;
        color: #9ca3af;
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-article-meta-bar__dateline,
    html[data-intra-theme="dark"] .intra-article-meta-bar__dateline { color: #d1d5db; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-article-meta-bar__author .tdb-author-name,
    html[data-intra-theme="dark"] .intra-article-meta-bar__author .tdb-author-name { color: #e5e7eb; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-article-meta-bar__primary > .intra-article-meta-bar__item + .intra-article-meta-bar__item::before,
    html[data-intra-theme="dark"] .intra-article-meta-bar__primary > .intra-article-meta-bar__item + .intra-article-meta-bar__item::before { color: #4b5563; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-article-meta-bar__byline > * + *::before,
    html[data-intra-theme="dark"] .intra-article-meta-bar__byline > * + *::before { background: #374151; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-toc,
    html[data-intra-theme="dark"] .intra-toc {
        background: #111827; border-color: #1f2937;
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-toc__link,
    html[data-intra-theme="dark"] .intra-toc__link { color: #d1d5db; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-toc__link.is-active,
    html[data-intra-theme="dark"] .intra-toc__link.is-active {
        background: rgba(229, 57, 53, 0.18); color: #fecaca; border-left-color: var(--color-primary, #e53935);
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-post-nav__item,
    html[data-intra-theme="dark"] .intra-post-nav__item {
        background: #111827; border-color: #1f2937;
    }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-post-nav__title,
    html[data-intra-theme="dark"] .intra-post-nav__title { color: #e5e7eb; }
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-sources,
    html:not([data-intra-theme="light"]).intra-dark-capable .intra-corrections,
    html[data-intra-theme="dark"] .intra-sources,
    html[data-intra-theme="dark"] .intra-corrections {
        background: #111827; border-color: #1f2937; color: #d1d5db;
    }
}

/* ============================================================
 * 10. Print 전용
 * ============================================================ */
@media print {
    .intra-read-progress,
    .meta-tools,
    .floating-share-tool,
    .single-action-buttons,
    .td-post-sharing-visible,
    #comment-box,
    .intra-toc,
    .intra-post-nav,
    .sidebar-sticky-wrap,
    .custom-single-sidebar,
    .reporter-card__actions,
    .trendy-magazine-header,
    .intra-article__foot,
    #mobile-menu-btn-box {
        display: none !important;
    }
    .td-main-content-wrap { max-width: 100% !important; }
    .td-container, .vc_row { width: 100% !important; margin: 0 !important; padding: 0 !important; }
    .vc_column.td-pb-span8 { width: 100% !important; }
    body { background: #fff !important; color: #000 !important; font-size: 12pt; }
    a { color: #000 !important; text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
    h1, h2, h3 { page-break-after: avoid; }
    img { max-width: 100% !important; height: auto !important; page-break-inside: avoid; }
    .aeo-box { background: #fff !important; border: 1px solid #000; }
    .aeo-box__label { background: #000 !important; color: #fff !important; }
}

/* ============================================================
 * 11. figcaption 강화 — 본문 사진 캡션을 시각적으로 분리
 * ============================================================ */
.td-post-content figure {
    margin: 18px 0 22px;
}
.td-post-content figure figcaption,
.td-post-content .wp-caption-text {
    margin-top: 8px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-left: 3px solid var(--title-color, #111);
    border-radius: 2px;
    font-size: 12.5px;
    font-style: normal;
    color: #374151;
    line-height: 1.55;
    text-align: left;
}

/* ============================================================
 * 12. 해시태그 스타일 — TAGS 블록 재디자인
 * ============================================================ */
.intra-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 18px 0 0;
    padding: 12px 0 4px;
    border-top: 1px solid var(--color-gray-e5, #e5e7eb);
}
.intra-tags .intra-tags__label span {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: transparent;
    border: none;
}
.intra-tags .intra-tags__item {
    margin: 0;
    padding: 0;
}
.intra-tags .intra-tags__link {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px 5px 11px;
    font-size: 12.5px;
    line-height: 1.2;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.intra-tags .intra-tags__link::before {
    content: "#";
    margin-right: 2px;
    color: #9ca3af;
    font-weight: 700;
}
.intra-tags .intra-tags__link:hover,
.intra-tags .intra-tags__link:focus-visible {
    background: rgba(229, 57, 53, 0.06);
    color: var(--color-primary, #e53935);
    border-color: rgba(229, 57, 53, 0.35);
    text-decoration: none;
}
.intra-tags .intra-tags__link:hover::before,
.intra-tags .intra-tags__link:focus-visible::before { color: var(--color-primary, #e53935); }

/* ============================================================
 * 13. CTA 위계 재설계 — Primary(공유) · Ghost(복사) · Text(댓글)
 * ============================================================ */
.intra-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 14px 0;
    border-top: 1px solid var(--color-gray-e5, #e5e7eb);
    border-bottom: 1px solid var(--color-gray-e5, #e5e7eb);
}
.intra-cta-row .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 100ms ease;
    border: 1px solid transparent;
}
.intra-cta-row .action-btn:active { transform: translateY(1px); }

/* Primary — 공유 (브랜드 레드 · 최상위 CTA) */
.intra-cta-row .action-btn--primary {
    /* background: var(--color-primary, #e53935);
    color: #fff;
    border-color: var(--color-primary, #e53935); */
    box-shadow: 0 1px 2px rgba(229, 57, 53, 0.18);
}
.intra-cta-row .action-btn--primary:hover,
.intra-cta-row .action-btn--primary:focus-visible {
    /* background: var(--color-primary-alt, #e51c23);
    border-color: var(--color-primary-alt, #e51c23); */
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.25);
}

/* Ghost — 복사 (아웃라인) */
.intra-cta-row .action-btn--ghost {
    background: #fff;
    color: #1f2937;
    border-color: var(--color-gray-e5, #e5e7eb);
}
.intra-cta-row .action-btn--ghost:hover,
.intra-cta-row .action-btn--ghost:focus-visible {
    /* background: #fff;
    color: var(--color-primary, #e53935);
    border-color: var(--color-primary, #e53935); */
}

/* Text — 댓글 (보조 텍스트형) */
.intra-cta-row .action-btn--text {
    margin-left: auto;
    background: transparent;
    color: #4b5563;
    padding: 9px 10px;
}
.intra-cta-row .action-btn--text:hover,
.intra-cta-row .action-btn--text:focus-visible {
    color: var(--color-primary, #e53935);
    background: rgba(229, 57, 53, 0.06);
}

@media (max-width: 640px) {
    .intra-cta-row .action-btn--text { margin-left: 0; width: 100%; justify-content: center; }
    .intra-cta-row .action-btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
 * 14. 상대시간 병기 — 절대시간(primary) + " · N시간 전"(secondary, <24h)
 * ============================================================ */
.intra-date-published.is-relative::after {
    content: " · " attr(data-relative-label);
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}
.intra-date-published[data-intra-relative] {
    cursor: default;
}
