/* =====================================================================
   sub-f.css — 내지(서브 페이지) F 조판 디자인 (Vol.79~)
   인쇄본 F 스타일(포토 리드)을 웹으로 옮긴 것. sub-common.css 다음에 읽혀 덮어쓴다.
   대상: <body class="sub f-style"> (make_article.py 가 붙임)
   섹션 색은 인쇄본 G안 — 바꾸려면 아래 [data-nav] 블록의 --f-c 만 고친다.
   ===================================================================== */

body.f-style {
  --f-ink: #15181b;
  --f-text: #2b2f33;
  --f-sub: #6b7177;
  --f-line: #e4e1de;
  --f-soft: #f4f2f0;
  --f-c: #4A5560;
  background: #fff;
  color: var(--f-text);
}
body.f-style[data-nav=issue]      { --f-c: #8E1418; }
body.f-style[data-nav=game]       { --f-c: #2A2220; }
body.f-style[data-nav=news]       { --f-c: #4A5560; }
body.f-style[data-nav=market]     { --f-c: #5E6B5A; }
body.f-style[data-nav=calendar]   { --f-c: #7A5A48; }
body.f-style[data-nav=supplement] { --f-c: #6E625A; }

/* ── 히어로: 대표 사진 배경 + 왼쪽 아래 제목 ─────────────────────── */
body.f-style .page_title_box.f-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 58vh, 640px);
  padding: 0;
  margin: 0;
  background: var(--f-c);
  color: #fff;
  text-align: left;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
body.f-style .page_title_box.f-hero::before { content: none; display: none; animation: none; }
body.f-style .page_title_box.f-hero.no-img { min-height: clamp(260px, 34vh, 360px); }
body.f-style .f-hero-bg { position: absolute; inset: 0; z-index: 0; }
body.f-style .f-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
body.f-style .f-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,13,15,.92) 0%, rgba(12,13,15,.70) 32%, rgba(12,13,15,.28) 68%, rgba(12,13,15,.10) 100%);
}
body.f-style .f-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 820px;   /* 본문 왼쪽 끝과 맞춘다 */
  margin: 0 auto;
  padding: 0 28px 52px;
  text-align: left;
}
body.f-style .f-hero .page_title_kind { display: none; }
body.f-style .f-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: rgba(255,255,255,.88);
}
body.f-style .f-eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; opacity: .9; }
body.f-style .f-hero.has-img .f-eyebrow::before { background: #fff; }
body.f-style .f-tag { font-weight: 800; color: #fff; }
body.f-style .f-flag {
  display: inline-block; padding: 3px 9px; font-size: 12px; font-weight: 700;
  background: #fff; color: var(--f-ink); border-radius: 2px;
}
body.f-style .f-hero .page_title_text {
  max-width: 900px; margin: 0 0 12px; padding: 0;
  font-size: clamp(28px, 4.2vw, 48px); font-weight: 800; line-height: 1.26; letter-spacing: -.025em;
  color: #fff; word-break: keep-all; text-wrap: balance;
}
body.f-style .f-hero .page_title_sub {
  max-width: 820px; margin: 0; padding: 0;
  font-size: clamp(16px, 1.9vw, 21px); font-weight: 500; line-height: 1.5; opacity: .92;
  word-break: keep-all;
}
body.f-style .f-hero .writing {
  margin: 20px 0 0; font-size: 13.5px; opacity: .78; letter-spacing: .01em;
}

/* ── 본문 판형 ─────────────────────────────────────────────────── */
body.f-style .sub_contents.f-body {
  max-width: 820px;
  margin: 0 auto 7rem;
  padding: 56px 28px 0;
  background: transparent;
  border: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.f-style .sub_contents.f-body p {
  font-size: 17px; line-height: 1.9; color: var(--f-text);
  word-break: keep-all; overflow-wrap: anywhere;
}
body.f-style .f-body .sub_cont01 { margin-top: 0; }
body.f-style .f-body .sub_cont01 > p { margin: 0 0 1.15em; }

/* 중제목: 큰 숫자 + 제목 */
body.f-style .sub_contents.f-body h3 {
  display: flex; align-items: baseline; gap: 18px;
  margin: 76px 0 26px; padding: 20px 0 0;
  border-top: 1px solid var(--f-ink);
  background: none; box-shadow: none; border-radius: 0; border-left: 0;
  font-size: 24px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--f-ink);
}
body.f-style .sub_contents.f-body h3::before, body.f-style .sub_contents.f-body h3::after { content: none; display: none; }
body.f-style .sub_contents.f-body h3 .h3-no {
  flex: 0 0 auto; font-size: 46px; font-weight: 200; line-height: .9; color: var(--f-c); letter-spacing: -.04em;
}
body.f-style .sub_contents.f-body h3 .h3-t { flex: 1 1 auto; word-break: keep-all; }

/* 소제목: 작은 사각 + 굵은 글 */
body.f-style .sub_contents.f-body h4 {
  position: relative;
  margin: 44px 0 14px; padding: 0 0 0 16px;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  font-size: 18px; font-weight: 800; line-height: 1.5; color: var(--f-ink); word-break: keep-all;
}
body.f-style .sub_contents.f-body h4::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--f-c);
  border-radius: 0; opacity: 1;
}
body.f-style .sub_contents.f-body h4::after { content: none; display: none; }
body.f-style .sub_contents.f-body h3 + .sub_cont01 h4:first-child,
body.f-style .sub_contents.f-body h3 + h4 { margin-top: 8px; }
body.f-style .f-body strong.speaker { color: var(--f-c); font-weight: 800; margin-right: .35em; }

/* 사진 */
body.f-style .f-body .coment_box {
  display: block; margin: 34px 0; padding: 0;
  background: none; border: 0; box-shadow: none; border-radius: 0;
}
body.f-style .f-body .coment_box > strong { display: none; }
body.f-style .f-body .coment_box_container { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
body.f-style .f-body .coment_box_container img { display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none; }
body.f-style .f-body .coment_box_source {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 8px 0 0; padding: 0; background: none; border: 0;
  font-size: 13px; line-height: 1.55; color: var(--f-sub); text-align: left;
}
body.f-style .f-body .coment_box_source .cap { color: var(--f-text); }
body.f-style .f-body .coment_box_source .credit { margin-left: auto; text-align: right; color: var(--f-sub); font-size: 12px; }
/* 사진 2장: 자르지 않고 비율대로 너비를 나눠 높이를 맞춘다 (make_article 이 flex 값을 넣음) */
body.f-style .f-body .img-pair { display: flex; align-items: flex-start; gap: 16px; margin: 34px 0; }
body.f-style .f-body .img-pair .coment_box { margin: 0; min-width: 0; flex: 1 1 0; }

/* 그래프·표 머리 */
body.f-style .f-body .fig-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 44px 0 10px; padding: 10px 0 0; border-top: 2px solid var(--f-ink);
}
body.f-style .f-body .fig-kind { font-size: 13px; font-weight: 800; color: var(--f-c); }
body.f-style .f-body .fig-title { font-size: 15.5px; font-weight: 800; color: var(--f-ink); }
body.f-style .f-body .fig-unit { margin-left: auto; font-size: 12.5px; color: var(--f-sub); }
body.f-style .f-body .coment_box.is-chart { margin-top: 6px; }
body.f-style .sub_contents.f-body p.table-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--f-sub); }
body.f-style .sub_contents.f-body p.table-note.is-credit { text-align: right; }
body.f-style .sub_contents.f-body p.table-note + p:not(.table-note) { margin-top: 28px; }

/* 표 */
body.f-style .f-body .table-wrap { margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow-x: auto; }
body.f-style .f-body .fig-head + .table-wrap { margin-top: 0; }
body.f-style .f-body .sub-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--f-ink); border-radius: 0; box-shadow: none; }
body.f-style .f-body .sub-table th {
  background: var(--f-soft) !important; color: var(--f-ink) !important;
  font-size: 14px; font-weight: 700; padding: 11px 12px; border: 0; border-bottom: 1px solid #cfcac5;
}
body.f-style .f-body .sub-table td {
  background: #fff !important; color: var(--f-text);
  font-size: 14px; line-height: 1.6; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--f-line);
}
body.f-style .f-body .sub-table td.first-col { font-weight: 700; color: var(--f-ink); }
body.f-style .f-body .sub-table tr:hover td { background: #faf9f8 !important; }

/* 요약 */
body.f-style .f-body .summary-box {
  margin: 0 0 56px; padding: 14px 0 0;
  background: none; border: 0; border-top: 2px solid var(--f-ink); border-radius: 0;
}
body.f-style .f-body .summary-label {
  display: block; margin: 0 0 12px; padding: 0; background: none; border-radius: 0;
  font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--f-c);
}
body.f-style .f-body .summary-box > p { font-size: 16px; line-height: 1.85; color: var(--f-text); margin: 0 0 .9em; }
@media (min-width: 900px) {
  body.f-style .f-body .summary-box { column-count: 2; column-gap: 44px; }
  body.f-style .f-body .summary-box > .summary-label { column-span: all; }
  body.f-style .f-body .summary-box > p { break-inside: avoid-column; }
}

/* 필자·인터뷰이 소개 */
body.f-style .f-body .author-bio { border-top: 1px solid var(--f-ink); border-bottom: 1px solid var(--f-line); padding: 18px 0 20px; margin: 0 0 48px; }
body.f-style .f-body .author-bio-label { color: var(--f-c); opacity: 1; font-weight: 800; }
body.f-style .f-body .author-bio-text { font-size: 14.5px; }

/* 시사점·전문가 코멘트 */
body.f-style .f-body .expert-comment { margin: 22px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--f-line); background: none; }
body.f-style .f-body .expert-comment-label { color: var(--f-c); opacity: 1; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: none; }
body.f-style .f-body .expert-comment blockquote { font-size: 15.5px; line-height: 1.75; color: var(--f-ink); font-weight: 600; }

/* 주차별 이슈 */
body.f-style .f-body .week-header {
  display: flex; align-items: baseline; gap: 16px;
  margin: 72px 0 24px; padding: 0 0 12px;
  background: none; border: 0; border-bottom: 2px solid var(--f-ink); border-radius: 0; box-shadow: none;
}
body.f-style .sub_contents.f-body > .week-header:first-child { margin-top: 0; }
body.f-style .f-body .week-title { font-size: 30px; font-weight: 800; color: var(--f-ink); letter-spacing: -.02em; }
body.f-style .f-body .week-period { font-size: 15px; color: var(--f-sub); font-weight: 500; }
body.f-style .f-body .week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
body.f-style .f-body .week-grid .sub_cont01,
body.f-style .f-body .sub_cont01:has(.article-label) { margin: 0; padding: 0; background: none; border-radius: 0; }
body.f-style .f-body .article-label {
  display: inline-flex; gap: 6px; margin: 0 0 10px; padding: 0; background: none; border: 0;
  font-size: 13px; font-weight: 800; color: var(--f-c);
}
body.f-style .f-body .article-label::before { content: none; display: none; }
body.f-style .f-body .week-grid h4 { margin: 0 0 14px; padding: 0; font-size: 20px; line-height: 1.45; }
body.f-style .f-body .week-grid h4::before { content: none; }
body.f-style .f-body .week-grid .coment_box { margin: 0 0 16px; }
body.f-style .f-body .week-grid p { font-size: 15.5px; line-height: 1.85; }

/* 참고문헌 */
body.f-style .f-body .ref { margin: 80px 0 0; padding: 16px 0 0; border-top: 2px solid var(--f-ink); background: none; border-radius: 0; box-shadow: none; }
body.f-style .f-body .ref h3 { display: block; margin: 0 0 14px; padding: 0; border: 0; font-size: 18px; }
body.f-style .f-body .ref .ref_item { margin: 0; padding-left: 1.6em; }
body.f-style .f-body .ref .ref_item li { font-size: 12.5px; line-height: 1.7; color: var(--f-sub); word-break: break-all; margin: 0 0 4px; }

/* ── 좁은 화면 ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  body.f-style .f-body .week-grid { grid-template-columns: 1fr; gap: 0; }
  body.f-style .f-body .week-grid .sub_cont01 + .sub_cont01 { margin-top: 40px; }
}
@media (max-width: 640px) {
  body.f-style .page_title_box.f-hero { min-height: 72vh; }
  body.f-style .f-hero-inner { padding: 0 20px 36px; }
  body.f-style .sub_contents.f-body { padding: 40px 18px 0; }
  body.f-style .sub_contents.f-body p { font-size: 16px; line-height: 1.85; }
  body.f-style .sub_contents.f-body h3 { gap: 12px; font-size: 20px; margin-top: 56px; }
  body.f-style .sub_contents.f-body h3 .h3-no { font-size: 36px; }
  body.f-style .sub_contents.f-body h4 { font-size: 16.5px; }
  body.f-style .f-body .img-pair { flex-direction: column; }
  body.f-style .f-body .img-pair .coment_box { flex: none !important; width: 100%; }
  body.f-style .f-body .coment_box_source { flex-direction: column; gap: 2px; }
  body.f-style .f-body .coment_box_source .credit { margin-left: 0; text-align: left; }
  body.f-style .f-body .week-title { font-size: 25px; }
}

/* ── 부록 대시보드(sub06_01) — 히어로만 F 로, 본문은 se-dash 그대로 ─── */
body.f-style .sub_contents.se-dash {
  max-width: 1040px; margin: 0 auto 6rem; padding: 48px 28px 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* ── 그래프(인라인 SVG, chart_svg.py) ─────────────────────────────── */
body.f-style .f-body .f-chart { margin: 8px 0 0; padding: 0; }
body.f-style .f-body .f-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
body.f-style .f-body .f-chart .fc-narrow { display: none; }
body.f-style .f-body .f-chart .fc-grid { stroke: #e8e5e2; stroke-width: 1; }
body.f-style .f-body .f-chart .fc-base { stroke: #9a948e; stroke-width: 1; }
body.f-style .f-body .f-chart .fc-tick { fill: #8a8f8d; }
body.f-style .f-body .f-chart .fc-cat { fill: #3d4542; font-weight: 500; }
body.f-style .f-body .f-chart .fc-val { fill: var(--f-ink); font-weight: 700; }
body.f-style .f-body .f-chart .fc-leg { fill: #3d4542; font-weight: 600; }
body.f-style .f-body .f-chart .s0 { fill: var(--f-c); }
body.f-style .f-body .f-chart .s1 { fill: #a99f96; }
body.f-style .f-body .f-chart .s2 { fill: #d6cfc8; }
body.f-style .f-body .f-chart .s3 { fill: #6f7673; }
body.f-style .f-body .f-chart rect:hover { opacity: .82; }
body.f-style .f-body .f-chart .fc-data {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 640px) {
  body.f-style .f-body .f-chart .fc-wide { display: none; }
  body.f-style .f-body .f-chart .fc-narrow { display: block; }
}
body.f-style .f-body .expert-comment.is-cont { margin-top: 10px; padding-top: 0; border-top: 0; }
/* 좁은 사진(세로 사진)의 캡션: 설명과 출처가 한 줄에 안 들어가면 출처를 다음 줄 오른쪽으로 */
body.f-style .f-body .coment_box_source { flex-wrap: wrap; }
body.f-style .f-body .coment_box_source .cap { flex: 1 1 auto; }
