/* ─────────────────── (G) single-report template — MRI-inspired ─────────────────── */
/*
 * 'single-report' 템플릿 (post 전용 커스텀 템플릿) 전용 스타일.
 * 참고: theme/foodandclimate/templates/single-report.html
 *
 * 구조 (paper 의 직접 자식 = WP 가 max-width:880px·margin:auto 자동 부여):
 *   .fnc-report-paper (alignwide, contentSize 880px, 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).
 *
 * 폭 처리 원칙:
 *  - paper 직접 자식 = 모두 동일 폭 (880 - 카드 padding)
 *  - 본문 paragraph 는 .fnc-report-body 안에서 flow → 100% 폭 = paper 직접 자식과 동일
 *  - !important 없음(CTA 블록 예외). 명시적 셀렉터 specificity 로 cascade 관리.
 */

/* ====== Stage / 페이지 외피 ====== */
.fnc-report {
    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 .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 {
    background: #ffffff;
    margin-top: clamp(1.5rem, 4vw, 3.25rem);
    margin-bottom: 4rem;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
    box-shadow: 0 6px 28px rgba(23, 70, 63, 0.08);
    border-radius: 4px;
    position: relative;
    z-index: 2;
}
@media (max-width: 640px) {
    .fnc-report .fnc-report-paper {
        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; }

/* 농지 이용 전환 리포트: 큰 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: 1rem;
    line-height: 1.85;
    color: #171b19;
}
.fnc-report .fnc-report-body p {
    margin: 0 0 1.25em;
    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 > 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 {
        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: 0.975rem;
        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; }
/* ─────── (/G) single-report template ─────── */
