/* ─────────────────── (G) single-report template — MRI-inspired ─────────────────── */
/*
 * 'single-report' 템플릿 (post 전용 커스텀 템플릿) 전용 스타일.
 * 참고: theme/foodandclimate/templates/single-report.html
 *
 * 구조 (paper 최대 1160px, 요소 역할에 따라 서로 다른 max-width 적용):
 *   .fnc-report-paper (alignwide, contentSize 1160px, padding clamp)
 *     ├─ nav.fnc-report-breadcrumbs
 *     ├─ header.fnc-report-header (eyebrow=post-terms · title · pubinfo · divider)
 *     │    ├─ .fnc-report-eyebrow (wp-block-post-terms, 서버 렌더 카테고리)
 *     │    ├─ h1.fnc-report-title (wp-block-post-title)
 *     │    └─ .fnc-report-pubinfo (저자 고정 + post-date 서버 렌더; JS 가 버전 배지만 덧붙임)
 *     ├─ div.fnc-report-body (wp-block-post-content, is-layout-flow)
 *     │    ├─ nav.fnc-report-toc (JS 가 H2 ≥ 2개일 때 맨 앞에 주입)
 *     │    └─ p, h2, h3, figure, ul, blockquote …  (본문)
 *     └─ footer.fnc-report-refs (JS 가 본문 참고문헌 이동시킴)
 *
 * v1.1 (2026-06): 카테고리·날짜·히어로 이미지를 JS 주입 → 서버 블록 렌더로 전환.
 *   히어로는 wp:post-featured-image(서버, LCP), 카테고리는 wp:post-terms, 날짜는 wp:post-date.
 *   JS 는 보강 전용(버전 배지·breadcrumb 링크·TOC·참고문헌 이동·이미지 없을 때 og fallback).
 *
 * 폭 처리 원칙:
 *  - 제목·메타·기본 차트·기본 표 880px / 산문·참고문헌 760px / 리드 800px
 *  - 복잡한 표는 .fnc-data-table--wide로 1040px, 1024px 미만에서는 산문 폭으로 복귀
 *  - !important 없음(CTA 블록 예외). 명시적 셀렉터 specificity 로 cascade 관리.
 */

/* ====== Stage / 페이지 외피 ====== */
.fnc-report {
    --fnc-report-paper-width: 1160px;
    --fnc-report-header-width: 880px;
    --fnc-report-prose-width: 760px;
    --fnc-report-lede-width: 800px;
    --fnc-report-chart-width: 880px;
    --fnc-report-table-width: 880px;
    --fnc-report-table-wide-width: 1040px;
    background: #f8f7f3;
    color: #171b19;
}

/* ====== Hero ====== */
.fnc-report .fnc-report-hero {
    position: relative;
    height: clamp(220px, 32vw, 380px);
    overflow: hidden;
    background: linear-gradient(135deg, #2f6f62 0%, #17463f 100%);
}
.fnc-report .fnc-report-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55) saturate(0.85);
    z-index: 0;
}
/* 서버 렌더 대표 이미지(wp:post-featured-image) — LCP 친화 <img>, hero 를 가득 채움 */
.fnc-report .fnc-report-hero-img {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
}
.fnc-report .fnc-report-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.55) saturate(0.85);
}
/* postid 2275 (kr-jp-direct-payment) — 히어로 크롭을 위로 올려(=사진을 아래로) 트랙터가 온전히 보이도록 */
body.postid-2275 .fnc-report-hero-img img { object-position: center 22%; }
body.postid-2275 .fnc-report-hero-bg { background-position: center 22%; }
/* fnc_report_variant=hero-low — 피사체가 사진 아래쪽에 있는 히어로. 크롭 창을 내려 피사체를 노출한다.
   postid 하드코딩 대신 post meta 기반 body class 를 쓴다 (functions.php: foodandclimate_presentation_body_class). */
body.fnc-report-variant-hero-low .fnc-report-hero-img img { object-position: center 72%; }
body.fnc-report-variant-hero-low .fnc-report-hero-bg { background-position: center 72%; }
.fnc-report .fnc-report-hero-overlay {
    position: absolute;
    left: clamp(1.5rem, 6vw, 5rem);
    bottom: clamp(2rem, 8vw, 5rem);
    z-index: 1;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.fnc-report .fnc-report-hero-kicker {
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    letter-spacing: -0.01em;
    line-height: 1;
}
.fnc-report .fnc-report-hero-sep {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1;
}
.fnc-report .fnc-report-hero-cat {
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    line-height: 1.4;
    max-width: 60vw;
}
/* post-terms 가 렌더하는 카테고리 링크: 히어로에선 흰색·밑줄 없음 */
.fnc-report .fnc-report-hero-cat a {
    color: inherit;
    text-decoration: none;
}
.fnc-report .fnc-report-hero-cat a:hover { text-decoration: underline; }

/* ====== Paper (article card) ====== */
.fnc-report .fnc-report-paper {
    box-sizing: border-box;
    width: min(var(--fnc-report-paper-width), calc(100% - 2rem));
    max-width: var(--fnc-report-paper-width);
    background: #ffffff;
    margin-top: clamp(1.5rem, 4vw, 3.25rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.75rem);
    box-shadow: 0 6px 28px rgba(23, 70, 63, 0.08);
    border-radius: 4px;
    position: relative;
    z-index: 2;
}
/* single-report 공통 읽기 폭: 제목과 산문을 분리한다. */
.fnc-report .fnc-report-breadcrumbs,
.fnc-report .fnc-report-header {
    width: min(100%, var(--fnc-report-header-width));
    max-width: var(--fnc-report-header-width);
    margin-inline: auto;
}
.fnc-report .fnc-report-body,
.fnc-report .fnc-report-refs {
    width: min(100%, var(--fnc-report-prose-width));
    max-width: var(--fnc-report-prose-width);
    margin-inline: auto;
}
@media (max-width: 640px) {
    .fnc-report .fnc-report-paper {
        width: calc(100% - 1rem);
        max-width: none;
        margin-top: 1.75rem;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
}

/* KPI 카드 그리드 다음 본문과의 표준 간격 */
.fnc-report .fnc-report-body .fnc-metric-grid { margin-bottom: 2.75rem; }

/* 본문 하단 '이어 읽을 글' — 카드 없는 제목 링크 목록 */
.fnc-report .fnc-report-body .fnc-related-link-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--wp--preset--color--outline-variant, #c7cec7);
}
.fnc-report .fnc-report-body .fnc-related-link-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--wp--preset--color--outline-variant, #c7cec7);
}
.fnc-report .fnc-report-body .fnc-related-link-list a {
    display: block;
    padding: 0.9rem 0;
    color: var(--wp--preset--color--primary, #17463f);
    font-weight: 650;
    line-height: 1.5;
    text-decoration: none;
}
.fnc-report .fnc-report-body .fnc-related-link-list a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* 수입 농산물 검역 리포트 — 품목군별 검사량 비교 */
.fnc-report .fnc-report-body .fnc-quarantine-kpi-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0 2.25rem;
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 1.25rem;
    background: var(--wp--preset--color--surface-container-low, #f3f5f2);
    border: 1px solid var(--wp--preset--color--outline-variant, #c7cec7);
    border-radius: 0.75rem;
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi--primary {
    color: #fff;
    background: linear-gradient(145deg, #17463f, #285f55);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(23, 70, 63, 0.16);
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi__label,
.fnc-report .fnc-report-body .fnc-quarantine-kpi__note {
    font-family: var(--wp--preset--font-family--label);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--wp--preset--color--on-surface-variant, #4a524d);
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi__label {
    letter-spacing: 0.02em;
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi__value {
    font-family: var(--wp--preset--font-family--headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--wp--preset--color--primary, #17463f);
    white-space: nowrap;
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi__value span {
    margin-left: 0.25rem;
    font-size: 0.36em;
    font-weight: 700;
    letter-spacing: 0;
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi--primary .fnc-quarantine-kpi__label,
.fnc-report .fnc-report-body .fnc-quarantine-kpi--primary .fnc-quarantine-kpi__value {
    color: #fff;
}
.fnc-report .fnc-report-body .fnc-quarantine-kpi--primary .fnc-quarantine-kpi__note {
    color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 680px) {
    .fnc-report .fnc-report-body .fnc-quarantine-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fnc-report .fnc-report-body .fnc-quarantine-kpi--primary {
        grid-column: 1 / -1;
    }
}

/* 농지 이용 전환 리포트: 큰 KPI 숫자 옆 단위의 판독성 보강 */
.fnc-report .fnc-report-body .fnc-metric-unit--large {
    font-size: clamp(0.95rem, 1.4vw, 1.125rem);
    font-weight: 700;
    line-height: 1.2;
    margin-left: 0.35rem;
    white-space: nowrap;
}

/* ── 청소년 기후·식탁 리포트 변형(cfy) 폭·캡션 보정 ─────────────────
   본문 컬럼을 940px 로 살짝 넓혀 1280px paper 의 좌우 여백을 줄인다.
   차트·표는 브레이크아웃하지 않고 본문 컬럼 폭 안에서 흐른다(중첩 방지).
   전용 캡션 클래스를 사용하는 교육형 보고서에만 적용한다. */
.fnc-report-variant-cfy .fnc-report .fnc-report-paper > * { max-width: 940px; }

/* 그림/표 캡션·출처 — 작은 회색 캡션으로 복원 */
/* 그림/표 캡션 — 번호(배지) → 제목 → 설명 3단 구분.
   캡션 컨테이너는 좌측 정렬 + 상단 얇은 구분선으로 본문과 분리. */
.fnc-report-variant-cfy .fnc-report-body .kifc-cfy-chart-caption {
    text-align: left;
    margin: .7rem 0 2.25rem;
    padding-top: .7rem;
    border-top: 1px solid var(--wp--preset--color--outline-variant);
}
.fnc-report-variant-cfy .fnc-report-body .kifc-cfy-source {
    font-size: .9rem;
    line-height: 1.65;
    color: var(--wp--preset--color--on-surface-variant);
    text-align: left;
    margin: .55rem 0 2rem;
}
/* (1) 번호 배지 */
.fnc-report-variant-cfy .fnc-report-body .kifc-cfy-fignum {
    display: inline-block;
    vertical-align: middle;
    margin: 0 .5rem .15rem 0;
    padding: .12rem .5rem;
    background: #17463f;
    color: #fff;
    border-radius: 4px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
    font-family: var(--wp--preset--font-family--label);
}
/* (2) 제목 — 배지 옆, 굵게 */
.fnc-report-variant-cfy .fnc-report-body .kifc-cfy-figtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #17463f;
    line-height: 1.45;
}
/* (3) 설명 — 다음 줄, 작은 회색 */
.fnc-report-variant-cfy .fnc-report-body .kifc-cfy-figdesc {
    display: block;
    margin-top: .35rem;
    font-size: .9rem;
    line-height: 1.65;
    color: var(--wp--preset--color--on-surface-variant);
}

/* ====== Breadcrumb ====== */
.fnc-report .fnc-report-breadcrumbs {
    font-size: 0.8125rem;
    color: #747c75;
    margin-bottom: 1.75rem;
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.fnc-report .fnc-report-breadcrumbs a { color: #747c75; text-decoration: none; }
.fnc-report .fnc-report-breadcrumbs .wp-block-post-terms { margin: 0; }
.fnc-report .fnc-report-breadcrumbs a:hover { color: #17463f; }
.fnc-report .fnc-report-breadcrumbs .sep { color: #c7cec7; }
.fnc-report .fnc-report-breadcrumbs .current { color: #4a524d; }

/* ====== Header (eyebrow) ====== */
.fnc-report .fnc-report-header {
    margin: 0 0 0.5rem;
}
/* eyebrow = wp:post-terms (서버 렌더 카테고리). 과거 <p> 였던 자리를 div 가 대체. */
.fnc-report .fnc-report-eyebrow {
    color: #17463f;
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.35rem;
}
.fnc-report .fnc-report-eyebrow a {
    color: inherit;
    text-decoration: none;
}
.fnc-report .fnc-report-eyebrow a:hover { text-decoration: underline; }

/* ====== Post title (wp-block-post-title with .fnc-report-title) ====== */
.fnc-report .wp-block-post-title.fnc-report-title,
.fnc-report .fnc-report-title {
    color: #17463f;
    font-family: 'Manrope', 'Pretendard', system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    padding: 0;
    text-indent: 0;
    text-align: left;
    word-break: keep-all;          /* 한국어 단어 중간에서 끊지 않음 */
    overflow-wrap: anywhere;
}

/* ====== Pubinfo (저자 · 최종 수정일 · 버전) ======
 * v1.1: dl/dt/dd → flex group + .fnc-report-pubinfo-k/-v 스팬.
 * 최종 수정일 값은 wp:post-date(div.wp-block-post-date.fnc-report-pubinfo-date)가 서버 렌더. */
.fnc-report .fnc-report-pubinfo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 0.9375rem;
    color: #4a524d;
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
}
.fnc-report .fnc-report-pubinfo-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.fnc-report .fnc-report-pubinfo-k {
    color: #747c75;
    font-weight: 500;
    margin: 0;
}
.fnc-report .fnc-report-pubinfo-k::after { content: ":"; margin-left: 0.1em; }
.fnc-report .fnc-report-pubinfo-v,
.fnc-report .fnc-report-pubinfo-date {
    color: #17463f;
    font-weight: 600;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.fnc-report .fnc-report-ver {
    color: #2f6f62;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 0.25em;
}

.fnc-report .fnc-report-divider {
    border: 0;
    border-top: 1px solid #e4e4de;
    margin: 0 0 2.5rem;
}

/* ====== Body (post-content with .fnc-report-body) ====== */
.fnc-report .fnc-report-body {
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #171b19;
}
.fnc-report .fnc-report-body p {
    margin: 0 0 1.2em;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.fnc-report .fnc-report-body h2 {
    color: #17463f;
    font-family: 'Manrope', 'Pretendard', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 3rem 0 1.25rem;
}
.fnc-report .fnc-report-body h3 {
    color: #171b19;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2.25rem 0 1rem;
}
.fnc-report .fnc-report-body hr {
    border: 0;
    border-top: 1px solid #e4e4de;
    margin: 3rem 0;
}
.fnc-report .fnc-report-body a {
    color: #2f6f62;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.fnc-report .fnc-report-body a:hover { color: #17463f; }
.fnc-report .fnc-report-body em { color: #4a524d; }
.fnc-report .fnc-report-body ul,
.fnc-report .fnc-report-body ol {
    padding-left: 1.5em;
    margin: 0 0 1.5em;
}
.fnc-report .fnc-report-body li { margin-bottom: 0.5em; }
.fnc-report .fnc-report-body blockquote {
    border-left: 3px solid #17463f;
    padding-left: 1.25rem;
    margin: 2rem 0;
    color: #4a524d;
    font-style: italic;
}

/* ====== Figures (charts) ====== */
.fnc-report .fnc-report-body figure,
.fnc-report .fnc-report-body .wp-block-image,
.fnc-report .fnc-report-body .fnc-chart-inline {
    margin: 2.5rem 0;
}
.fnc-report .fnc-report-body figure.fnc-chart-inline > svg {
    display: block;
    margin: 0 auto;
}
.fnc-report .fnc-report-body figure.fnc-chart-inline--compact > svg,
.fnc-report .fnc-report-body figure.fnc-chart-inline--compact > .fnc-chart-caption {
    width: min(100%, 660px);
    height: auto;
    margin-right: auto;
    margin-left: auto;
}
/* 단일 지표(도넛·게이지) — 작고 학술적인 통계 그림 크기로 제한 */
.fnc-report .fnc-report-body figure.fnc-chart-inline--stat > svg {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto;
}
.fnc-report .fnc-report-body figure.fnc-chart-inline--stat > .fnc-chart-caption {
    max-width: 460px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.fnc-report .fnc-report-body figure.fnc-chart-inline > iframe.fnc-chart-embed {
    display: block;
    width: min(100%, 700px);
    height: 600px;
    margin: 0 auto;
    border: 0;
}
.fnc-report .fnc-report-body figure.fnc-chart-inline--png-compact > img {
    display: block;
    width: min(100%, 760px);
    height: auto;
    margin-right: auto;
    margin-left: auto;
}
.fnc-report .fnc-report-body figure.fnc-chart-inline--png-compact > .fnc-chart-caption {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}
.fnc-report .fnc-report-body .fnc-chart-caption {
    display: block;
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4a524d;
    line-height: 1.5;
    text-align: left;
}
.fnc-report .fnc-report-body .fnc-chart-caption strong {
    display: inline;
    background: none;
    color: inherit;
    font: inherit;
    font-size: inherit;
    line-height: 1.55;
    padding: 0;
    border: 0;
    border-radius: 0;
    margin-right: 0.25rem;
    vertical-align: baseline;
    letter-spacing: inherit;
}
.fnc-report .fnc-report-body .fnc-chart-caption .fnc-chart-caption__title--long {
    line-height: 1.65;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    border-radius: 0.75rem;
}
.fnc-report .fnc-report-body .fnc-chart-caption .fnc-chart-caption__note {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.65;
}

/* 레거시 데이터 에세이를 single-report로 이관할 때 쓰는 학술형 구성요소. */
.fnc-report .fnc-report-body .stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.75rem 0 2.5rem;
}
.fnc-report .fnc-report-body .stat-strip.stat-strip--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fnc-report .fnc-report-body .stat-item {
    padding: 1rem 0.75rem;
    border: 1px solid #c7cec7;
    background: #f8f7f3;
    text-align: center;
}
.fnc-report .fnc-report-body .stat-value {
    color: #17463f;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}
.fnc-report .fnc-report-body .stat-value.danger { color: #ba1a1a; }
.fnc-report .fnc-report-body .stat-value.warm { color: #4f5f68; }
.fnc-report .fnc-report-body .stat-label {
    margin-top: 0.35rem;
    color: #4a524d;
    font-size: 0.75rem;
    line-height: 1.45;
}
.fnc-report .fnc-report-body .chart-card {
    margin: 2.5rem 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.fnc-report .fnc-report-body .chart-title {
    margin-bottom: 0.75rem;
    color: #171b19;
    font-size: 0.9rem;
    font-weight: 600;
}
.fnc-report .fnc-report-body .chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    color: #4a524d;
    font-size: 0.75rem;
}
.fnc-report .fnc-report-body .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.fnc-report .fnc-report-body .legend-line {
    display: inline-block;
    width: 1.1rem;
    height: 2px;
}
.fnc-report .fnc-report-body .legend-line.dashed {
    height: 0;
    background: none;
    border-top: 2px dashed;
}
.fnc-report .fnc-report-body .svg-chart-wrap {
    width: 100%;
    overflow-x: auto;
}
.fnc-report .fnc-report-body .svg-chart-wrap svg {
    display: block;
    width: 100%;
    height: auto;
}
.fnc-report .fnc-report-body .chart-guide,
.fnc-report .fnc-report-body .callout {
    margin: 1rem 0 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid #17463f;
    background: #f4f3ef;
    color: #4a524d;
    font-size: 0.9375rem;
    line-height: 1.7;
}
.fnc-report .fnc-report-body .callout.warning { border-left-color: #ba1a1a; }
.fnc-report .fnc-report-body .pull-quote,
.fnc-report .fnc-report-body .quote-block {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid #17463f;
    background: #f8f7f3;
    color: #4a524d;
}
.fnc-report .fnc-report-body .pull-quote cite {
    display: block;
    margin-top: 0.65rem;
    color: #747c75;
    font-size: 0.8rem;
    font-style: normal;
}
/* 구형 마크업을 포함해 report 캡션의 굵기 계약을 고정한다. */
.fnc-report .fnc-report-body figure.fnc-chart-inline figcaption.fnc-chart-caption {
    font-weight: 600;
}
.fnc-report .fnc-report-body figure.fnc-chart-inline figcaption.fnc-chart-caption .fnc-chart-caption__note {
    font-weight: 400;
}

/* ====== Tables ====== */
.fnc-report .fnc-report-body figure.wp-block-table,
.fnc-report .fnc-report-body figure.fnc-data-table {
    margin: 2rem 0 2.25rem;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.fnc-report .fnc-report-body .fnc-table-caption {
    display: block;
    color: #171b19;
    font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
    margin: 0 0 0.25rem;
    margin-block-end: 0.25rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    text-align: left;
}
.fnc-report .fnc-report-body figure.wp-block-table > figcaption.fnc-table-caption + table,
.fnc-report .fnc-report-body figure.fnc-data-table > figcaption.fnc-table-caption + table {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}
.fnc-report .fnc-report-body .fnc-table-caption__num {
    color: inherit;
    margin-right: 0.25rem;
    font: inherit;
}
/* 구형 원고가 그림 캡션 클래스로 표 제목을 쓴 경우에도 장식을 제거한다. */
.fnc-report .fnc-report-body p.fnc-chart-caption:has(+ figure.wp-block-table),
.fnc-report .fnc-report-body p.fnc-chart-caption:has(+ figure.fnc-data-table) {
    margin: 2rem 0 0.25rem;
    padding: 0;
    color: #171b19;
    background: none;
    border: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
}
.fnc-report .fnc-report-body p.fnc-chart-caption:has(+ figure.wp-block-table) strong,
.fnc-report .fnc-report-body p.fnc-chart-caption:has(+ figure.fnc-data-table) strong {
    margin: 0;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    font: inherit;
}
.fnc-report .fnc-report-body table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: 0;
    border-top: 2px solid #17463f;
    border-bottom: 1px solid #9aa49d;
    border-radius: 0;
    background: #ffffff;
    font-size: 0.9375rem;
    line-height: 1.55;
}
/* WordPress core가 table에 부여하는 하단 블록 여백을 제거한다. */
.fnc-report .fnc-report-body figure.wp-block-table > table,
.fnc-report .fnc-report-body figure.fnc-data-table > table {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}
.fnc-report .fnc-report-body thead th {
    background: #17463f;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-bottom: 1px solid #17463f;
}
.fnc-report .fnc-report-body tbody td {
    padding: 0.65rem 0.8rem;
    border: 0;
    border-bottom: 1px solid #d9ded9;
    vertical-align: top;
    background: transparent;
}
.fnc-report .fnc-report-body tbody tr:last-child td {
    border-bottom-width: 0;
}

/* ====== Source note (출처: ...) — table 바로 뒤, figure 내부 ====== */
.fnc-report .fnc-report-body aside.fnc-source-note {
    display: block;
    font-size: 0.75rem;       /* 12px */
    line-height: 1.45;
    color: #747c75;
    margin: 0.3rem 0 0;
    padding: 0;
    text-align: left;
    font-style: normal;
}
/* 표 주석은 figure 내부에서 table에 직접 이어 붙인다.
   본문 flow의 형제 요소 간 블록 간격이 끼어들지 않는 구조다. */
.fnc-report .fnc-report-body figure.wp-block-table > table + aside.fnc-source-note,
.fnc-report .fnc-report-body figure.fnc-data-table > table + aside.fnc-source-note {
    margin: 0.3rem 0 0;
    margin-block-start: 0.3rem;
    padding: 0;
}

/* ====== Responsive report reading ====== */
@media (max-width: 640px) {
    .fnc-report .fnc-report-hero {
        height: 220px;
    }
    .fnc-report .fnc-report-hero-overlay {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 1.5rem;
        gap: 0.65rem;
    }
    .fnc-report .fnc-report-paper {
        width: calc(100% + 1rem);
        max-width: none;
        margin: 1rem -0.5rem 2.5rem;
        padding: 1.5rem 1rem 2rem;
        border-radius: 0;
    }
    .fnc-report .fnc-report-breadcrumbs {
        margin-bottom: 1.25rem;
    }
    .fnc-report .fnc-report-title,
    .fnc-report .wp-block-post-title.fnc-report-title {
        font-size: 1.75rem;
        line-height: 1.32;
    }
    .fnc-report .fnc-report-body {
        font-size: 1rem;
        line-height: 1.75;
    }
    .fnc-report .fnc-report-body h2 {
        font-size: 1.3rem;
        margin-top: 2.5rem;
    }
    .fnc-report .fnc-report-body h3 {
        font-size: 1.1rem;
        margin-top: 2rem;
    }
    .fnc-report .fnc-report-body figure.wp-block-table,
    .fnc-report .fnc-report-body figure.fnc-data-table {
        margin-top: 1.5rem;
    }
    .fnc-report .fnc-report-body table {
        min-width: 38rem;
        font-size: 0.875rem;
    }
    .fnc-report .fnc-report-body thead th,
    .fnc-report .fnc-report-body tbody td {
        padding: 0.55rem 0.65rem;
    }
    .fnc-report .fnc-report-body .fnc-table-caption {
        position: sticky;
        left: 0;
        width: fit-content;
        max-width: calc(100vw - 3rem);
    }
    .fnc-report .fnc-report-body .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fnc-report .fnc-report-body aside.fnc-source-note {
        position: sticky;
        left: 0;
        width: fit-content;
        max-width: calc(100vw - 3rem);
    }
    .fnc-report .fnc-report-body .fnc-cta-block--article {
        padding: 2rem 1.25rem !important;
    }
    .fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-actions,
    .fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-btn {
        width: 100%;
    }
    .fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-btn:last-child,
    .fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-btn--donate {
        margin-left: 0;
    }
}

@media print {
    .fnc-report .fnc-report-hero,
    .fnc-report .fnc-report-breadcrumbs,
    .fnc-report .fnc-report-body .fnc-report-toc,
    .fnc-report .fnc-report-body .fnc-cta-block {
        display: none !important;
    }
    .fnc-report,
    .fnc-report .fnc-report-paper {
        background: #ffffff !important;
        box-shadow: none !important;
    }
    .fnc-report .fnc-report-paper {
        margin: 0;
        padding: 0;
    }
    .fnc-report .fnc-report-body figure,
    .fnc-report .fnc-report-body table {
        break-inside: avoid;
    }
    .fnc-report .fnc-report-body thead th {
        background: #e8ece8 !important;
        color: #171b19 !important;
        border-bottom: 1.5px solid #171b19;
    }
}

/* ====== Inline TOC (JS 가 본문 H2 ≥ 2개일 때 본문 맨 앞에 주입) ====== */
.fnc-report .fnc-report-body .fnc-report-toc {
    margin: 0 0 2.5rem;
    padding: 1.25rem 1.5rem;
    background: #f4f3ef;
    border-left: 3px solid #17463f;
    border-radius: 4px;
}
.fnc-report .fnc-report-body .fnc-report-toc-title {
    margin: 0 0 0.75rem;
    font-family: 'Manrope', 'Pretendard', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #747c75;
}
.fnc-report .fnc-report-body .fnc-report-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    counter-reset: fnc-report-toc;
}
.fnc-report .fnc-report-body .fnc-report-toc li {
    margin: 0 0 0.4rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.fnc-report .fnc-report-body .fnc-report-toc li:last-child { margin-bottom: 0; }
.fnc-report .fnc-report-body .fnc-report-toc a {
    color: #2f6f62;
    text-decoration: none;
}
.fnc-report .fnc-report-body .fnc-report-toc a:hover {
    color: #17463f;
    text-decoration: underline;
}
/* 2단계: H3 하위 목차 (들여쓰기·muted·소문자 알파벳 마커) */
.fnc-report .fnc-report-body .fnc-report-toc ol.fnc-report-toc-sub {
    counter-reset: none;
    margin: 0.4rem 0 0.5rem;
    padding-left: 1.15rem;
    list-style: lower-alpha;
}
.fnc-report .fnc-report-body .fnc-report-toc-sub li {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: #5a615b;
}
.fnc-report .fnc-report-body .fnc-report-toc-sub a { color: #5a615b; }
.fnc-report .fnc-report-body .fnc-report-toc-sub a:hover {
    color: #17463f;
    text-decoration: underline;
}

/* ====== References footer (auto-populated by JS) ====== */
.fnc-report .fnc-report-refs {
    margin: 4rem 0 0;
    padding-top: 2rem;
    border-top: 2px solid #17463f;
}
.fnc-report .fnc-report-refs h2 {
    color: #17463f;
    font-family: 'Manrope', 'Pretendard', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    letter-spacing: 0.01em;
}
.fnc-report .fnc-report-refs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fnc-report .fnc-report-refs li,
.fnc-report .fnc-report-refs p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #4a524d;
    margin: 0 0 0.5rem;
    padding-left: 1.25rem;
    text-indent: -1.25rem;
    overflow-wrap: anywhere;
}
.fnc-report .fnc-report-refs li::before {
    content: "·";
    color: #17463f;
    font-weight: 800;
    margin-right: 0.65rem;
    text-indent: 0;
}
.fnc-report .fnc-report-refs a {
    color: #2f6f62;
    text-decoration: underline;
}
.fnc-report .fnc-report-refs-empty {
    color: #c7cec7;
    font-style: italic;
}
/* 참고문헌이 markdown 각주(<div class="footnote"><ol><li><p>)로 들어올 때:
   '·' 불릿 제거 + 번호("1.") 옆에 본문을 바로 붙임(블록 <p> 줄바꿈 방지). 본문 [^1] 윗첨자와 번호 일치. */
.fnc-report .fnc-report-refs .footnote { margin: 0; }
.fnc-report .fnc-report-refs .footnote hr { display: none; }
.fnc-report .fnc-report-refs .footnote ol { margin: 0; padding-left: 1.6rem; }
.fnc-report .fnc-report-refs .footnote li { padding-left: 0; text-indent: 0; }
.fnc-report .fnc-report-refs .footnote li::before { content: none; }
.fnc-report .fnc-report-refs .footnote li p { display: inline; padding-left: 0; text-indent: 0; }

/* ====== CTA block inside report body — wider paragraph + better proportions ====== */
.fnc-report .fnc-report-body .fnc-cta-block {
    margin: 3rem 0 2rem;
}
/* Override 전역 .fnc-cta-block--article p 의 max-width: 32rem !important */
.fnc-report .fnc-report-body .fnc-cta-block--article {
    padding: 3rem 2.75rem !important;
    border-radius: 1rem !important;
    text-align: left !important;
}
.fnc-report .fnc-report-body .fnc-cta-block--article h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem) !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 0.85rem 0 !important;
    text-align: left !important;
}
.fnc-report .fnc-report-body .fnc-cta-block--article p {
    max-width: none !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin: 0 0 1.75rem 0 !important;
    text-align: left !important;
    color: rgba(255,255,255,0.92) !important;
}
.fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-actions {
    justify-content: flex-start;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-btn {
    padding: 0.7rem 1.15rem;
    font-size: 0.875rem;
}
/* 구형 CTA(후원=--donate): 후원 버튼을 최우측으로 밀어내기 */
.fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-actions .fnc-cta-btn--donate {
    margin-left: auto;
}
/* 신형 표준 CTA(--donate 없음, 후원=--ghost): 마지막 버튼(의견 보내기)을 우측으로 분리 */
.fnc-report .fnc-report-body .fnc-cta-block--article .fnc-cta-actions:not(:has(.fnc-cta-btn--donate)) .fnc-cta-btn:last-child {
    margin-left: auto;
}

/* 데이터 에세이 리드/요약을 뚜렷한 박스로 (fnc-report-lede) */
.fnc-report .fnc-report-body .fnc-essay-callout.fnc-report-lede {
    border: 1px solid var(--wp--preset--color--outline-variant);
    border-left: 4px solid var(--wp--preset--color--primary);
    border-radius: 0.75rem;
    background: var(--wp--preset--color--surface-container-low);
    padding: 1.25rem 1.5rem;
}

/* 시리즈 내비 (prose.css .fnc-series-nav 와 동일 룩 — single-report 본문용) */
.fnc-report .fnc-report-body .fnc-series-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin: 2.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--wp--preset--color--outline-variant);
    border-bottom: 1px solid var(--wp--preset--color--outline-variant);
}
.fnc-report .fnc-report-body .fnc-series-nav__back,
.fnc-report .fnc-report-body .fnc-series-nav__next {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: opacity .15s;
}
.fnc-report .fnc-report-body .fnc-series-nav__back:hover,
.fnc-report .fnc-report-body .fnc-series-nav__next:hover { opacity: .7; }

/* ====== Editorial report pilot =============================================
 * 활성화: post meta fnc_report_variant="editorial"
 * 현재 시범 글: korea-smart-ag-policy-brief
 *
 * 공통 single-report 구조를 바꾸지 않고 body class 하나로 확장한다. 검증 후 다른
 * 보고서에도 같은 의미 기반 meta를 적용하면 동일 디자인을 단계적으로 확대할 수 있다.
 * UI/UX 기준: 65–75자 읽기 폭, 4.5:1 이상 대비, 44px 모바일 터치 영역,
 * 명확한 포커스, 수평 스크롤 가능한 표, reduced-motion 존중.
 * ========================================================================== */
.fnc-report-variant-editorial .fnc-report {
    --fnc-editorial-ink: var(--wp--preset--color--on-surface, #171b19);
    --fnc-editorial-muted: var(--wp--preset--color--on-surface-variant, #4a524d);
    --fnc-editorial-line: var(--wp--preset--color--outline-variant, #c7cec7);
    --fnc-editorial-surface: var(--wp--preset--color--surface-container-low, #f3f5f2);
    background:
        radial-gradient(circle at 12% 12%, rgba(47, 111, 98, 0.08), transparent 28rem),
        var(--wp--preset--color--surface, #f8f7f3);
}

.fnc-report-variant-editorial .fnc-report .fnc-report-hero {
    height: clamp(280px, 34vw, 430px);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(9, 31, 27, 0.68) 0%, rgba(9, 31, 27, 0.18) 68%),
        linear-gradient(0deg, rgba(9, 31, 27, 0.62) 0%, transparent 58%);
    pointer-events: none;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-hero-img img,
.fnc-report-variant-editorial .fnc-report .fnc-report-hero-bg {
    filter: brightness(0.82) saturate(0.9);
}
/* 기사별 크롭은 페이지 ID가 아닌 본문 의미 마커로만 조정한다. */
body:has(.fnc-report-body [data-report-hero-position="top"]) .fnc-report-variant-editorial .fnc-report .fnc-report-hero-img img {
    object-position: center 24%;
}
body:has(.fnc-report-body [data-report-hero-position="top"]) .fnc-report-variant-editorial .fnc-report .fnc-report-hero-bg {
    background-position: center 24%;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-hero-overlay {
    left: max(1.5rem, calc((100vw - 1180px) / 2));
    bottom: clamp(4rem, 8vw, 6.5rem);
    gap: 0.75rem;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-hero-kicker {
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    letter-spacing: -0.025em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-hero-cat {
    font-size: clamp(0.875rem, 1.3vw, 1rem);
    font-weight: 700;
}

.fnc-report-variant-editorial .fnc-report .fnc-report-paper {
    box-sizing: border-box;
    width: min(var(--fnc-report-paper-width), calc(100% - 2rem));
    max-width: var(--fnc-report-paper-width);
    margin-top: clamp(-4.5rem, -5vw, -3rem);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(2.25rem, 5vw, 4.75rem) clamp(1.5rem, 5vw, 3.75rem);
    border: 1px solid rgba(23, 70, 63, 0.09);
    border-radius: 1.25rem;
    box-shadow: 0 24px 64px rgba(23, 70, 63, 0.13);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-breadcrumbs,
.fnc-report-variant-editorial .fnc-report .fnc-report-header {
    width: min(100%, var(--fnc-report-header-width));
    max-width: var(--fnc-report-header-width);
    margin-inline: auto;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-breadcrumbs {
    margin-bottom: 2.25rem;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-breadcrumbs a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 2rem;
    margin-bottom: 0.875rem;
    padding: 0.3rem 0.75rem;
    color: var(--wp--preset--color--primary, #17463f);
    background: rgba(47, 111, 98, 0.1);
    border: 1px solid rgba(47, 111, 98, 0.18);
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--label, 'Public Sans', sans-serif);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.06em;
}
.fnc-report-variant-editorial .fnc-report .wp-block-post-title.fnc-report-title,
.fnc-report-variant-editorial .fnc-report .fnc-report-title {
    max-width: 20ch;
    margin-bottom: 2rem;
    color: var(--fnc-editorial-ink);
    font-size: clamp(2.125rem, 4.6vw, 3.65rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.045em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-pubinfo {
    gap: 0.75rem 2rem;
    padding: 0.875rem 0;
    border-top: 1px solid var(--fnc-editorial-line);
    border-bottom: 1px solid var(--fnc-editorial-line);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-divider {
    border: 0;
    margin-bottom: 3rem;
}

.fnc-report-variant-editorial .fnc-report .fnc-report-body,
.fnc-report-variant-editorial .fnc-report .fnc-report-refs {
    width: min(100%, var(--fnc-report-prose-width));
    max-width: var(--fnc-report-prose-width);
    margin-inline: auto;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body {
    counter-reset: fnc-editorial-section;
    color: var(--fnc-editorial-ink);
    font-size: 1.0625rem;
    line-height: 1.75;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body p {
    margin-bottom: 1.2em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body > h2 {
    counter-increment: fnc-editorial-section;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.875rem;
    margin: 4.5rem 0 1.5rem;
    color: var(--fnc-editorial-ink);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body > h2::before {
    content: counter(fnc-editorial-section, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #ffffff;
    background: var(--wp--preset--color--primary, #17463f);
    font-family: var(--wp--preset--font-family--label, 'Public Sans', sans-serif);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body h3 {
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--fnc-editorial-line);
    color: var(--fnc-editorial-ink);
    font-size: 1.1875rem;
    line-height: 1.5;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body h4 {
    margin: 2rem 0 0.75rem;
    color: var(--fnc-editorial-muted);
    font-family: var(--wp--preset--font-family--label, 'Public Sans', sans-serif);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-essay-callout.fnc-report-lede {
    position: relative;
    margin: 0 0 2rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    overflow: hidden;
    border: 1px solid rgba(47, 111, 98, 0.2);
    border-left: 0;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(47, 111, 98, 0.12), rgba(248, 247, 243, 0.88));
    color: var(--fnc-editorial-ink);
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    font-weight: 550;
    line-height: 1.75;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-essay-callout.fnc-report-lede::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.3rem;
    background: var(--wp--preset--color--primary, #17463f);
}

.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc {
    margin: 0 0 3.25rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--fnc-editorial-line);
    border-left: 1px solid var(--fnc-editorial-line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(23, 70, 63, 0.07);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc-title {
    margin-bottom: 1rem;
    color: var(--wp--preset--color--primary, #17463f);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc > ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.75rem;
    padding: 0;
    list-style-position: inside;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc > ol > li {
    min-width: 0;
    margin: 0;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(199, 206, 199, 0.65);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--fnc-editorial-ink);
    font-weight: 650;
    text-underline-offset: 0.2em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc-sub a {
    min-height: 2.25rem;
    color: var(--fnc-editorial-muted);
    font-weight: 500;
}

.fnc-report-variant-editorial .fnc-report .fnc-report-body figure.fnc-chart-inline > svg {
    border: 1px solid rgba(23, 70, 63, 0.12);
    border-radius: 1rem;
    box-shadow: 0 14px 34px rgba(23, 70, 63, 0.08);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-data-table tbody td:first-child {
    color: var(--wp--preset--color--primary, #17463f);
    font-weight: 700;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-data-table tbody td:last-child {
    color: var(--fnc-editorial-muted);
    font-size: 0.875rem;
    font-weight: 650;
}

.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-roadmap {
    position: relative;
    margin: 1rem 0 2rem;
    padding: 0;
    list-style: none;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-roadmap::before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 1.05rem;
    width: 2px;
    background: var(--fnc-editorial-line);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-roadmap li {
    position: relative;
    margin: 0;
    padding: 0.75rem 0 1.25rem 3.25rem;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-roadmap li::before {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: 0.7rem;
    width: 0.75rem;
    height: 0.75rem;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--wp--preset--color--primary, #17463f);
    box-shadow: 0 0 0 1px var(--wp--preset--color--primary, #17463f);
}

.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-faq {
    margin: 4.5rem 0 2.5rem;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-faq > h2 {
    margin: 0 0 1.5rem;
    color: var(--fnc-editorial-ink);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-faq-item {
    margin: 0 0 0.875rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--fnc-editorial-line);
    border-radius: 0.875rem;
    background: var(--fnc-editorial-surface);
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-faq-item h3 {
    margin: 0 0 0.625rem;
    padding: 0;
    border: 0;
    color: var(--wp--preset--color--primary, #17463f);
    font-size: 1.0625rem;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-faq-item p {
    margin: 0;
    color: var(--fnc-editorial-muted);
    font-size: 0.975rem;
}

.fnc-report-variant-editorial .fnc-report .fnc-report-body > blockquote {
    margin: 3.5rem 0 2rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 0;
    border-radius: 1rem;
    background: var(--wp--preset--color--primary, #17463f);
    color: #ffffff;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: -0.015em;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-series-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 0 0 3rem;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-series-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.875rem;
    border: 1px solid var(--fnc-editorial-line);
    border-radius: 999px;
    color: var(--wp--preset--color--primary, #17463f);
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}
.fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-series-links a:hover {
    border-color: var(--wp--preset--color--primary, #17463f);
    background: var(--fnc-editorial-surface);
}
.fnc-report-variant-editorial .fnc-report a:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary-container, #2f6f62);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

@media (max-width: 720px) {
    .fnc-report-variant-editorial .fnc-report .fnc-report-hero {
        height: 260px;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-hero-overlay {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 2rem;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-paper {
        width: calc(100% + 1rem);
        max-width: none;
        margin: -1.25rem -0.5rem 2.5rem;
        padding: 2rem 1.25rem 2.5rem;
        border-radius: 1rem;
        box-shadow: 0 16px 40px rgba(23, 70, 63, 0.11);
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-breadcrumbs {
        margin-bottom: 1.25rem;
    }
    .fnc-report-variant-editorial .fnc-report .wp-block-post-title.fnc-report-title,
    .fnc-report-variant-editorial .fnc-report .fnc-report-title {
        max-width: none;
        margin-bottom: 1.5rem;
        font-size: clamp(2rem, 9vw, 2.5rem);
        line-height: 1.2;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-pubinfo {
        display: grid;
        gap: 0.5rem;
        font-size: 0.875rem;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-body {
        font-size: 1rem;
        line-height: 1.75;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-body > h2 {
        grid-template-columns: 2rem minmax(0, 1fr);
        gap: 0.75rem;
        margin-top: 3.5rem;
        font-size: 1.45rem;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-body > h2::before {
        width: 2rem;
        height: 2rem;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-body h4 {
        margin-top: 1.75rem;
        font-size: 0.9375rem;
        line-height: 1.55;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc > ol {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc a,
    .fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-toc-sub a,
    .fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-series-links a {
        min-height: 2.75rem;
    }
    .fnc-report-variant-editorial .fnc-report .fnc-report-body .fnc-report-faq-item {
        padding: 1.125rem;
    }
}

/* 데이터 에세이의 넓은 시각자료 열. 산문 flow는 760px에 남기고,
 * 충분한 화면에서만 리드·차트·표를 중앙 기준으로 확장한다. */
@media (min-width: 1024px) {
    .fnc-report .fnc-report-body .fnc-essay-callout.fnc-report-lede,
    .fnc-report .fnc-report-body figure.fnc-chart-inline:not(.fnc-chart-inline--compact):not(.fnc-chart-inline--stat):not(.fnc-chart-inline--png-compact),
    .fnc-report .fnc-report-body figure.wp-block-table,
    .fnc-report .fnc-report-body figure.fnc-data-table {
        position: relative;
        left: 50%;
        max-width: none;
        transform: translateX(-50%);
    }
    .fnc-report .fnc-report-body .fnc-essay-callout.fnc-report-lede {
        box-sizing: border-box;
        width: min(var(--fnc-report-lede-width), calc(100vw - 9.5rem));
    }
    .fnc-report .fnc-report-body figure.fnc-chart-inline:not(.fnc-chart-inline--compact):not(.fnc-chart-inline--stat):not(.fnc-chart-inline--png-compact) {
        width: min(var(--fnc-report-chart-width), calc(100vw - 9.5rem));
    }
    .fnc-report .fnc-report-body figure.wp-block-table,
    .fnc-report .fnc-report-body figure.fnc-data-table {
        width: min(var(--fnc-report-table-width), calc(100vw - 9.5rem));
    }
    .fnc-report .fnc-report-body figure.wp-block-table.fnc-data-table--wide,
    .fnc-report .fnc-report-body figure.fnc-data-table.fnc-data-table--wide {
        width: min(var(--fnc-report-table-wide-width), calc(100vw - 9.5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .fnc-report-variant-editorial .fnc-report *,
    .fnc-report-variant-editorial .fnc-report *::before,
    .fnc-report-variant-editorial .fnc-report *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
/* ─────── (/G) single-report template ─────── */
