/* ═══════════════════════════════════════════════════════════
   일본은 식량안보를 법으로 어떻게 다시 썼나 — .jfl-page (scoped)
   L3 정책 해설 · 도메인 액센트 = 딥 멀버리(자주 계열)
   일본 지표 허브(스틸 블루)·중국(딥골드)·수출(인디고)·수입(테라코타)·
   한국 식량안보(클레이)와 겹치지 않게 고름
   ═══════════════════════════════════════════════════════════ */
.jfl-page{
    --primary:#17463f; --primary-container:#2f6f62; --on-primary:#fff;
    --bg:#f8f7f3; --surface-lowest:#ffffff; --surface-low:#f4f3ef;
    --surface:#edece7; --surface-high:#e4e4de;
    --on-surface:#171b19; --on-variant:#4a524d;
    --outline:#747c75; --outline-variant:#c7cec7;
    --error:#ba1a1a; --up:#2f6f62; --down:#a13333;
    /* 도메인: 일본 식량안보 법제 = 딥 멀버리 */
    --ink:#6d3a58; --ink-deep:#46243d; --ink-tint:#f4eaf0; --ink-mid:#8a5077;
    --ink-line:#e3d1dc;
    /* 3단계 사다리 — 부족의 심도를 색으로 읽히게 한다 */
    --s1:#2563eb; --s1-tint:#e8effc; --s1-line:#c9dbf8;
    --s2:#c2700c; --s2-tint:#fbf0df; --s2-line:#f2ddb9;
    --s3:#b3261e; --s3-tint:#fbeae9; --s3-line:#f3cfcc;
    --headline:Manrope,"Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
    --body:Inter,"Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
    background:var(--bg);color:var(--on-surface);font-family:var(--body);line-height:1.6;-webkit-font-smoothing:antialiased;
}
.jfl-page *{box-sizing:border-box;margin:0;padding:0}
.jfl-page .wrap{max-width:1120px;margin:0 auto;padding:0 32px}
.jfl-page .num{font-family:var(--headline);font-variant-numeric:tabular-nums}
.jfl-page svg.i{width:1em;height:1em;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block}
.jfl-page a{color:inherit;text-decoration:none}
.jfl-page :focus-visible{outline:3px solid var(--ink-mid);outline-offset:2px;border-radius:4px}

/* ---- section header component ---- */
.jfl-page .kicker{font-family:var(--headline);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);display:inline-flex;align-items:center;gap:9px}
.jfl-page .kicker::before{content:"";width:22px;height:2px;background:var(--ink)}
.jfl-page h2.sec{font-family:var(--headline);font-weight:800;font-size:31px;letter-spacing:-.025em;color:var(--on-surface);margin:14px 0 10px;line-height:1.22}
.jfl-page .dek{font-size:16.5px;color:var(--on-variant);max-width:66ch}
.jfl-page .dek + .dek{margin-top:14px}
.jfl-page .dek-sp{margin-top:30px}
.jfl-page .dek b{color:var(--on-surface);font-weight:700}
.jfl-page .dek a,.jfl-page .fnote a{color:var(--ink);font-weight:700;box-shadow:inset 0 -1px 0 var(--ink-line);transition:box-shadow .18s}
.jfl-page .dek a:hover,.jfl-page .fnote a:hover{box-shadow:inset 0 -2px 0 var(--ink)}
.jfl-page section{padding:66px 0;border-top:1px solid var(--outline-variant);scroll-margin-top:70px}
.jfl-page #overview{scroll-margin-top:0}
.jfl-page .band{background:#eeede6}

/* ---- HERO (멀버리 밴드 위 일본 농촌 마을 사진) ---- */
.jfl-page .hero{position:relative;overflow:hidden;padding:64px 0 40px;border-top:none;color:#f3ecf0;
    background:
      radial-gradient(1100px 440px at 84% -10%, rgba(196,150,180,.20), transparent 62%),
      linear-gradient(135deg, rgba(38,16,31,.93) 0%, rgba(48,22,39,.88) 55%, rgba(26,20,30,.82) 100%),
      url('/wp-content/uploads/2026/08/japanese-village-rice-paddy-signage.jpg') center 46%/cover no-repeat;}
.jfl-page .hero::before{content:"";position:absolute;inset:0;opacity:.5;pointer-events:none;
    background-image:
      repeating-linear-gradient(102deg, rgba(255,255,255,.05) 0 1px, transparent 1px 38px),
      radial-gradient(circle at 88% 24%, rgba(255,255,255,.05), transparent 44%);
    mask-image:linear-gradient(90deg,transparent,#000 28%);}
.jfl-page .hero .wrap{position:relative}
.jfl-page .hero-grid{display:grid;grid-template-columns:1fr 306px;gap:48px;align-items:start}
.jfl-page .hero .kicker{color:#d9aec8}
.jfl-page .hero .kicker::before{background:#d9aec8}
.jfl-page .hero h1{font-family:var(--headline);font-weight:800;font-size:50px;line-height:1.1;letter-spacing:-.035em;margin:18px 0 20px;color:#fff}
.jfl-page .hero .dek{font-size:17px;max-width:58ch;color:#e4d8de}
/* 히어로는 어두운 배경이다. 본문용 .dek b·.dek a 색을 그대로 두면 강조한
   대목이 배경에 묻힌다. 지금 히어로 본문에는 없지만 넣는 순간 드러난다. */
.jfl-page .hero .dek b{color:#fff}
.jfl-page .hero .dek a{color:#fff;box-shadow:inset 0 -1px 0 rgba(255,255,255,.45)}
.jfl-page .hero .dek a:hover{box-shadow:inset 0 -2px 0 #fff}
.jfl-page .hnote{position:relative;font-size:11.5px;color:#c3aeba;margin-top:16px;line-height:1.55}
.jfl-page .statuscard{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:8px 20px;backdrop-filter:blur(6px)}
.jfl-page .statuscard .row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.jfl-page .statuscard .row:last-child{border-bottom:none}
.jfl-page .statuscard .lab{font-size:13px;color:#d0b9c8;white-space:nowrap}
.jfl-page .statuscard .val{font-size:13px;font-weight:700;font-family:var(--headline);color:#fff;text-align:right}

/* ---- KPI tiles (6장 · 3열 2행) ---- */
.jfl-page .tiles{position:relative;display:grid;grid-template-columns:repeat(3,1fr);margin-top:38px;border:1px solid rgba(255,255,255,.14);border-radius:16px;overflow:hidden;background:var(--surface-lowest);box-shadow:0 18px 40px -12px rgba(30,12,24,.5)}
.jfl-page .tile{padding:22px;border-right:1px solid var(--outline-variant);border-bottom:1px solid var(--outline-variant);transition:background .18s}
.jfl-page .tile:nth-child(3n){border-right:none}
.jfl-page .tile:nth-last-child(-n+3){border-bottom:none}
.jfl-page .tile:hover{background:var(--surface-low)}
.jfl-page .tile.hi{background:var(--ink-tint)}
.jfl-page .tile.hi:hover{background:#efdfe9}
.jfl-page .tile .tl-num{font-family:var(--headline);font-variant-numeric:tabular-nums;font-size:36px;font-weight:800;letter-spacing:-.03em;line-height:1;color:var(--ink)}
.jfl-page .tile .tl-num small{font-size:15px;font-weight:700;color:var(--ink-deep);margin-left:2px}
.jfl-page .tile .tl-lab{font-size:13.5px;color:var(--on-surface);margin-top:10px;font-weight:600}
.jfl-page .tile .tl-meta{font-size:12px;color:var(--outline);margin-top:3px}
.jfl-page .chip{display:inline-flex;align-items:center;gap:5px;font-family:var(--headline);font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:999px;margin-top:13px}
.jfl-page .chip svg.i{width:12px;height:12px;stroke-width:2.4}
.jfl-page .chip.dn{background:#f7e3e3;color:var(--down)}
.jfl-page .chip.up{background:var(--ink-tint);color:var(--ink-deep)}
.jfl-page .chip.flat{background:var(--surface);color:var(--on-variant)}

/* ---- anchor rail ---- */
.jfl-page .rail{position:sticky;top:0;z-index:5;background:rgba(248,247,243,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--outline-variant)}
.jfl-page .rail .wrap{display:flex;gap:4px;height:54px;align-items:center;overflow-x:auto;scrollbar-width:none}
.jfl-page .rail .wrap::-webkit-scrollbar{display:none}
.jfl-page .rail a{font-size:13.5px;color:var(--on-variant);padding:8px 14px;border-radius:999px;white-space:nowrap;font-weight:600;cursor:pointer;transition:.18s}
.jfl-page .rail a:hover{background:var(--surface)}
.jfl-page .rail a.on{background:var(--ink-deep);color:#fff}

/* ---- 도표 카드 ----
   볼트 원본(940px 고정)은 <style> 블록과 흰 배경 rect 를 걷어내고 class 를
   jf-* 로 접두사화해 들여왔다(scripts/convert_vault_svg.py). 원본 <style> 의
   값이 아래 규칙에 그대로 옮겨져 있어야 하며, 한쪽만 고치면 도표가 깨진다.
   글자 크기가 11px 안팎이라 축소하면 읽히지 않으므로 가로 스크롤을 쓴다. */
.jfl-page .jfig{margin-top:34px;background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:16px;padding:22px 20px}
.jfl-page .jfig-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.jfl-page .jf-svg{display:block;width:100%;min-width:720px;height:auto}
.jfl-page .jf-svg text{font-family:var(--headline);fill:#111827}
.jfl-page .jf-t{font-size:19px;font-weight:700}
.jfl-page .jf-st{font-size:12.5px;fill:#4b5563}
.jfl-page .jf-p{font-size:13px;font-weight:700;fill:#111827}
.jfl-page .jf-ax{stroke:#9ca3af;stroke-width:1}
.jfl-page .jf-gr{stroke:#e5e7eb;stroke-width:1}
.jfl-page .jf-tk{font-size:11px;fill:#4b5563}
.jfl-page .jf-un{font-size:11px;fill:#4b5563}
.jfl-page .jf-lg{font-size:12px;fill:#111827}
.jfl-page .jf-v{font-size:10.5px;fill:#111827;font-weight:600}
.jfl-page .jf-an{font-size:11.5px;fill:#111827;font-weight:600}
.jfl-page .jf-nt{font-size:10.5px;fill:#6b7280}

/* ---- 주석 ---- */
.jfl-page .fnote{margin-top:28px;border-left:3px solid var(--ink-line);padding:2px 0 2px 20px;font-size:13.5px;color:var(--on-variant);line-height:1.65;max-width:82ch}
.jfl-page .fnote b{font-family:var(--headline);font-weight:800;color:var(--ink-deep)}

/* ---- 기본법 4축 카드 ---- */
.jfl-page .axes{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:30px}
.jfl-page .axis{background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:16px;padding:22px 20px;display:flex;flex-direction:column}
.jfl-page .axis.lead{background:var(--ink-tint);border-color:var(--ink-line)}
.jfl-page .axis .ax-n{font-family:var(--headline);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.jfl-page .axis h3{font-family:var(--headline);font-size:17px;font-weight:800;letter-spacing:-.015em;line-height:1.3;margin:9px 0 10px;color:var(--on-surface)}
.jfl-page .axis p{font-size:13.5px;color:var(--on-variant);flex:1;line-height:1.6}
.jfl-page .axis .ax-art{margin-top:16px;padding-top:12px;border-top:1px solid var(--outline-variant);font-size:11.5px;color:var(--outline)}
.jfl-page .axis.lead .ax-art{border-top-color:var(--ink-line)}

/* ---- 3단계 사다리 ----
   단계는 부족의 심도 순서이므로 색이 순서를 갖는다(청 → 주황 → 적).
   '요청'과 '지시'는 법적 성격이 다르므로 배지 색을 나눈다. */
.jfl-page .ladder{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:30px}
.jfl-page .rung{border-radius:16px;border:1px solid var(--outline-variant);background:var(--surface-lowest);overflow:hidden;display:flex;flex-direction:column}
.jfl-page .rung .rg-head{padding:18px 20px 16px;border-bottom:1px solid var(--outline-variant)}
.jfl-page .rung .rg-n{font-family:var(--headline);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.jfl-page .rung .rg-head h3{font-family:var(--headline);font-size:18px;font-weight:800;letter-spacing:-.018em;line-height:1.3;margin-top:8px;color:var(--on-surface)}
.jfl-page .rung .rg-body{padding:18px 20px 22px;flex:1}
.jfl-page .rung .rg-lab{font-family:var(--headline);font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--outline);margin-bottom:6px}
.jfl-page .rung .rg-lab ~ .rg-lab{margin-top:16px}
.jfl-page .rung .rg-body p{font-size:13.5px;color:var(--on-variant);line-height:1.62}
.jfl-page .rung.s1 .rg-head{background:var(--s1-tint);border-bottom-color:var(--s1-line)}
.jfl-page .rung.s1 .rg-n{color:var(--s1)}
.jfl-page .rung.s2 .rg-head{background:var(--s2-tint);border-bottom-color:var(--s2-line)}
.jfl-page .rung.s2 .rg-n{color:var(--s2)}
.jfl-page .rung.s3 .rg-head{background:var(--s3-tint);border-bottom-color:var(--s3-line)}
.jfl-page .rung.s3 .rg-n{color:var(--s3)}
/* 배지는 단계 색 팔레트를 쓰지 않는다. 단계(청→주황→적)는 부족의 심도이고
   배지(요청/지시)는 조치의 법적 성격이라 서로 다른 축이다. 배지에 적색을 쓰면
   3단계 카드가 헤더도 배지도 붉어져서 "붉은 단계 = 강제"로 묶여 읽힌다.
   그래서 지시는 페이지 액센트(멀버리) 채움으로, 요청은 테두리만으로 — 색과
   형태 두 가지로 구분한다. */
.jfl-page .badge{display:inline-block;font-family:var(--headline);font-size:11.5px;font-weight:800;padding:2px 8px;border-radius:999px;white-space:nowrap}
.jfl-page .badge.req{background:transparent;color:var(--on-variant);border:1px solid var(--outline)}
.jfl-page .badge.dir{background:var(--ink);color:#fff;border:1px solid var(--ink)}

/* ---- callout (오해를 끊는 자리) ---- */
.jfl-page .callout{margin-top:30px;background:var(--ink-tint);border:1px solid var(--ink-line);border-radius:16px;padding:24px 26px}
.jfl-page .callout .co-h{font-family:var(--headline);font-weight:800;font-size:15.5px;color:var(--ink-deep);display:flex;align-items:center;gap:9px;margin-bottom:12px;line-height:1.35}
.jfl-page .callout .co-h svg.i{width:18px;height:18px;stroke-width:2;flex-shrink:0}
.jfl-page .callout p{font-size:14px;color:var(--on-variant);line-height:1.65;max-width:84ch}
.jfl-page .callout p b{color:var(--on-surface);font-weight:700}

/* ---- 섹션 핵심 수치 박스 ---- */
.jfl-page .kco{margin-top:34px;background:var(--ink-tint);border:1px solid var(--ink-line);border-radius:16px;padding:26px}
.jfl-page .kco .kh{font-family:var(--headline);font-weight:800;font-size:13.5px;color:var(--ink-deep);margin-bottom:18px;display:flex;align-items:center;gap:8px}
.jfl-page .kco .kh svg.i{width:17px;height:17px;stroke-width:2}
.jfl-page .kstats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.jfl-page .kstat{border-left:3px solid var(--ink);padding-left:15px}
.jfl-page .kstat .kn{font-family:var(--headline);font-variant-numeric:tabular-nums;font-size:30px;font-weight:800;color:var(--ink-deep);line-height:1.05;letter-spacing:-.025em}
.jfl-page .kstat .kn .ku{font-size:15px;font-weight:700;margin-left:3px}
.jfl-page .kstat .kl{font-size:13px;color:var(--on-surface);margin-top:9px;font-weight:600}
.jfl-page .kstat .km{font-size:11.5px;color:var(--outline);margin-top:3px}
.jfl-page .kco .knote{font-size:12.5px;color:var(--on-variant);margin-top:20px;line-height:1.6;max-width:88ch;border-top:1px solid var(--ink-line);padding-top:16px}
.jfl-page .kco .knote b{color:var(--on-surface);font-weight:700}

/* ---- 2열 목록 (지킬 목록 · 말하지 않는 것) ---- */
.jfl-page .assess{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:30px}
.jfl-page .acol{background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:16px;padding:26px}
.jfl-page .acol.risk{background:#faeeee;border-color:#e4c2c2}
.jfl-page .acol h3{font-family:var(--headline);font-size:17px;font-weight:800;display:flex;align-items:center;gap:10px;margin-bottom:15px}
.jfl-page .acol h3 svg.i{width:20px;height:20px;stroke-width:2}
.jfl-page .acol.keep h3{color:var(--ink-deep)}
.jfl-page .acol.risk h3{color:var(--down)}
.jfl-page .acol li{list-style:none;font-size:14px;color:var(--on-variant);padding:10px 0 10px 22px;position:relative;border-top:1px solid var(--surface);line-height:1.6}
.jfl-page .acol li:first-child{border-top:none}
.jfl-page .acol li b{color:var(--on-surface);font-weight:700}
.jfl-page .acol li::before{content:"";position:absolute;left:2px;top:17px;width:7px;height:7px;border-radius:2px}
.jfl-page .acol.keep li::before{background:var(--ink)}
.jfl-page .acol.risk li::before{background:var(--down)}

/* ---- 개별 제도 경로 ---- */
.jfl-page .paths{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}
.jfl-page .path{background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:16px;padding:24px 22px}
.jfl-page .path .pt-n{font-family:var(--headline);font-size:19px;font-weight:800;color:var(--ink);letter-spacing:-.02em;margin-bottom:12px;padding-bottom:12px;border-bottom:2px solid var(--ink-line)}
.jfl-page .path p{font-size:13.5px;color:var(--on-variant);line-height:1.65}

/* ---- 표 ---- */
.jfl-page .jtbl{margin-top:32px;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--outline-variant);border-radius:16px;background:var(--surface-lowest)}
.jfl-page .jtbl table{border-collapse:collapse;width:100%;min-width:640px}
.jfl-page .jtbl caption{caption-side:top;text-align:left;font-family:var(--headline);font-size:13.5px;font-weight:800;color:var(--ink-deep);padding:20px 22px 14px}
.jfl-page .jtbl th,.jfl-page .jtbl td{padding:13px 18px;text-align:left;vertical-align:top;font-size:13.5px;border-top:1px solid var(--outline-variant);line-height:1.55}
.jfl-page .jtbl thead th{font-family:var(--headline);font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--on-variant);background:var(--surface-low);border-top:none}
.jfl-page .jtbl tbody th{font-family:var(--headline);font-weight:800;color:var(--ink-deep);white-space:nowrap;background:var(--ink-tint)}
.jfl-page .jtbl td{color:var(--on-variant)}
.jfl-page .jtbl td.num{font-family:var(--headline);font-variant-numeric:tabular-nums;font-size:12.5px;color:var(--outline);white-space:nowrap}
.jfl-page .src{font-size:11.5px;color:var(--outline);margin-top:11px;line-height:1.55;max-width:88ch}

/* ---- 질문 목록 ---- */
.jfl-page .qlist{margin-top:28px;counter-reset:q;list-style:none;display:grid;gap:14px;max-width:76ch}
.jfl-page .qlist li{counter-increment:q;position:relative;padding:18px 22px 18px 62px;background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:14px;font-size:15.5px;font-weight:600;color:var(--on-surface);line-height:1.55}
.jfl-page .qlist li::before{content:counter(q);position:absolute;left:20px;top:17px;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;font-family:var(--headline);font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center}

/* ---- 마무리 문장 ---- */
.jfl-page .closing{margin-top:34px;border-left:3px solid var(--ink);padding:6px 0 6px 22px}
.jfl-page .closing p{font-family:var(--headline);font-weight:800;font-size:22px;line-height:1.5;letter-spacing:-.02em;color:var(--ink-deep);max-width:52ch}

/* ---- reads ---- */
.jfl-page .reads{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:30px}
.jfl-page .readcard{background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:16px;padding:26px;cursor:pointer;transition:.18s;display:flex;flex-direction:column;color:inherit}
.jfl-page .readcard:hover{box-shadow:0 10px 28px rgba(30,12,24,.08);transform:translateY(-3px);border-color:var(--ink)}
.jfl-page .readcard .re{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}
.jfl-page .readcard .rt{font-family:var(--headline);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ink)}
.jfl-page .readcard .rdate{font-size:12px;color:var(--outline)}
.jfl-page .readcard h4{font-family:var(--headline);font-size:19px;font-weight:800;margin-bottom:10px;letter-spacing:-.015em;line-height:1.3}
.jfl-page .readcard p{font-size:13.5px;color:var(--on-variant);flex:1}
.jfl-page .readcard .more{margin-top:17px;font-family:var(--headline);font-size:13px;font-weight:800;color:var(--ink);display:inline-flex;align-items:center;gap:6px}
.jfl-page .readcard .more svg.i{width:15px;height:15px;stroke-width:2.2}

/* ---- CTA band ---- */
.jfl-page .cta-sec{border-top:1px solid var(--outline-variant)}
.jfl-page .ctaband{position:relative;overflow:hidden;background:radial-gradient(900px 300px at 80% -20%,rgba(196,150,180,.34),transparent 60%),linear-gradient(135deg,#3a1a30,#241726);color:#f3ecf0;border-radius:20px;padding:44px 40px;text-align:center}
.jfl-page .ctaband .kicker{color:#d9aec8;justify-content:center}
.jfl-page .ctaband .kicker::before{background:#d9aec8}
.jfl-page .ctaband h3{font-family:var(--headline);font-size:24px;font-weight:800;color:#fff;margin:14px 0 10px;letter-spacing:-.025em}
.jfl-page .ctaband p{font-size:15px;color:#e4d8de;max-width:64ch;margin:0 auto 24px}
.jfl-page .btnrow{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.jfl-page .btn{font-family:var(--headline);font-weight:800;font-size:14px;padding:12px 22px;border-radius:999px;cursor:pointer;border:1.5px solid transparent;transition:.18s;display:inline-flex;align-items:center;gap:8px}
.jfl-page .btn svg.i{width:16px;height:16px;stroke-width:2}
.jfl-page .btn.primary{background:#fff;color:var(--ink-deep)}
.jfl-page .btn.primary:hover{background:var(--ink-tint)}
.jfl-page .btn.ghost{background:transparent;color:#f3ecf0;border-color:rgba(255,255,255,.4)}
.jfl-page .btn.ghost:hover{background:rgba(255,255,255,.1)}

/* ---- references ---- */
.jfl-page .refs{background:#eeede6;padding:52px 0}
.jfl-page .refs h2{font-family:var(--headline);font-weight:800;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--on-variant);display:flex;align-items:center;gap:11px;margin:0 0 20px}
.jfl-page .refs h2::before{content:"";width:24px;height:2px;background:var(--ink)}
.jfl-page .refs ul{list-style:none;columns:2;column-gap:44px}
.jfl-page .refs li{font-size:12px;color:var(--on-variant);padding:7px 0;border-bottom:1px solid var(--surface);break-inside:avoid;line-height:1.5}

@media(prefers-reduced-motion:reduce){.jfl-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:980px){
    .jfl-page .axes{grid-template-columns:1fr 1fr}
    .jfl-page .ladder{grid-template-columns:1fr}
    .jfl-page .paths{grid-template-columns:1fr}
}
@media(max-width:820px){
    .jfl-page .wrap{padding:0 20px}
    .jfl-page .hero-grid{grid-template-columns:1fr}.jfl-page .hero h1{font-size:35px}
    .jfl-page .statuscard .row{flex-direction:column;align-items:flex-start;gap:3px;padding:11px 0}
    .jfl-page .statuscard .val{text-align:left}
    .jfl-page .tiles{grid-template-columns:1fr 1fr}
    .jfl-page .tile{padding:18px 16px;border-right:1px solid var(--outline-variant);border-bottom:1px solid var(--outline-variant)}
    .jfl-page .tile:nth-child(3n){border-right:1px solid var(--outline-variant)}
    .jfl-page .tile:nth-child(2n){border-right:none}
    .jfl-page .tile:nth-last-child(-n+2){border-bottom:none}
    .jfl-page .tile .tl-num{font-size:28px}
    .jfl-page .tile .tl-num small{font-size:13px}
    .jfl-page h2.sec{font-size:26px}
    .jfl-page .kstats{grid-template-columns:1fr}
    .jfl-page .assess{grid-template-columns:1fr}
    .jfl-page .axes{grid-template-columns:1fr}
    .jfl-page .reads{grid-template-columns:1fr}
    .jfl-page .closing p{font-size:19px}
    .jfl-page .qlist li{font-size:14.5px;padding:16px 18px 16px 56px}
    .jfl-page .refs ul{columns:1}.jfl-page .ctaband{padding:32px 22px}
    /* 도표는 축소하지 않고 가로 스크롤로 넘긴다 — 스크롤 가능하다는 안내를 붙인다 */
    .jfl-page .jfig{padding:16px 12px}
    .jfl-page .jfig::after{content:"도표는 가로로 밀어서 볼 수 있습니다";display:block;margin-top:10px;font-size:11px;color:var(--outline);text-align:center}
    .jfl-page .jtbl::after{content:"표는 가로로 밀어서 볼 수 있습니다";display:block;padding:0 18px 16px;font-size:11px;color:var(--outline);text-align:center}
}
/* 작은 휴대폰: KPI 카드 2열이면 '1,850kcal' 같은 긴 값이 화면을 밀어낸다 */
@media(max-width:560px){
    .jfl-page .tiles{grid-template-columns:1fr}
    .jfl-page .tile,
    .jfl-page .tile:nth-child(2n),
    .jfl-page .tile:nth-child(3n),
    .jfl-page .tile:nth-last-child(-n+2),
    .jfl-page .tile:nth-last-child(-n+3){border-right:none;border-bottom:1px solid var(--outline-variant)}
    .jfl-page .tile:last-child{border-bottom:none}
    .jfl-page .tile .tl-num{font-size:32px}
    .jfl-page .tile .tl-num small{font-size:14px}
}
