/* PATCH: Complete Variable Definition & WP Absorption */
:root {
  --c-navy: #0F172A;
  --c-blue: #005EB8;
  --c-gold: #C29B40;
  --c-red: #991b1b;
  --c-green: #166534;
  --c-teal: #0d9488;
  --c-muted: #64748b;

  /* PATCH HARDENING: chart orange var */
  --chart-orange: #c2410c;

  /* Layout Heights */
  --bmt-banner: 0px; /* WP 환경: preview-banner 없음. 미리보기 HTML에서만 36px로 오버라이드 */
  --bmt-progress-h: 3px;
  --bmt-adminbar: 0px; /* Default */

  /* Unified Calculation */
  --bmt-topbar: calc(var(--bmt-banner) + var(--bmt-progress-h) + var(--bmt-adminbar));
}

/* WP Admin Bar Logic */
body.admin-bar { --bmt-adminbar: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 782px) { body.admin-bar { --bmt-adminbar: var(--wp-admin--admin-bar--height, 46px); } }

/* WordPress Compatibility */
body { margin: 0; padding: 0; background: #fff; }

/* Scoped Reset */
.bmt-report-page *, .bmt-report-page *::before, .bmt-report-page *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { -webkit-font-smoothing: antialiased; }

/* Dynamic Top Positions */
.preview-banner { position: fixed; top: var(--bmt-adminbar); left: 0; right: 0; height: 36px; background: #1e293b; color: #94a3b8; font-family: 'Roboto Mono', monospace; font-size: .72rem; display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 10000; letter-spacing: .5px; }
.preview-banner strong { color: #C29B40; }
.preview-banner .sep { color: #475569; }

#bmt-progress { position: fixed; top: calc(var(--bmt-adminbar) + var(--bmt-banner)); left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--c-navy) 0%, var(--c-blue) 100%); z-index: 9999; transition: width .1s linear; will-change: width; }

.bmt-report-page {
  --c-navy: #0F172A; --c-blue: #005EB8; --c-gold: #C29B40; --c-red: #991b1b; --c-green: #166534; --c-teal: #0d9488;
  --c-bg: #FFFFFF; --c-muted: #64748b; --c-text: #1e293b; --c-subtle: #334155; --c-light: #f8fafc; --c-border: #CBD5E1;
  --f-head: 'Oswald', sans-serif; --f-body: 'Libre Baskerville', serif; --f-mono: 'Roboto Mono', monospace;
  --radius: 4px; --shadow-sm: 0 2px 8px rgba(0,0,0,.04); --shadow-md: 0 4px 16px rgba(0,0,0,.06);

  --chart-navy: #0F172A; --chart-blue: #005EB8; --chart-gold: #C29B40; --chart-red: #991b1b; --chart-green: #166534; --chart-teal: #0d9488;
  --chart-orange: #c2410c; --chart-muted: #94a3b8;

  /* PATCH HARDENING: screen readability (PC 100% 보정) */
  font-family: var(--f-body);
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--c-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;

  /* PATCH HARDENING: missing var used later */
  --c-text-sub: var(--c-subtle);
}

/* Content Overlap Protection */
.bmt-report-page .bmt-wrap { max-width: 1380px; margin: 0 auto; padding-top: calc(var(--bmt-topbar) + 48px); padding-bottom: 48px; padding-left: 40px; padding-right: 40px; }

.bmt-report-page .bmt-breadcrumb { font-family: var(--f-mono); font-size: .73rem; color: var(--c-muted); margin-bottom: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bmt-report-page .bmt-breadcrumb a { color: var(--c-blue); text-decoration: none; }
.bmt-report-page .bmt-breadcrumb a:hover { text-decoration: underline; }
.bmt-report-page .bmt-breadcrumb span { color: #cbd5e1; }
.bmt-report-page .bmt-header { border-bottom: 3px solid #000; padding-bottom: 28px; margin-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.bmt-report-page .bmt-eyebrow { font-family: var(--f-mono); font-size: .78rem; color: var(--c-blue); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.bmt-report-page .bmt-eyebrow::after { content: ''; display: inline-block; width: 36px; height: 2px; background: var(--c-blue); }
.bmt-report-page .bmt-header h1 { font-family: var(--f-head); font-size: clamp(2.1rem, 3.8vw, 3.3rem); line-height: 1.05; color: #000; margin: 0; text-transform: uppercase; letter-spacing: -.5px; max-width: 820px; }
.bmt-report-page .bmt-header-meta { text-align: right; font-family: var(--f-mono); font-size: .78rem; color: #555; line-height: 1.8; border-left: 3px solid var(--c-gold); padding-left: 16px; flex-shrink: 0; min-width: 180px; }
.bmt-report-page .bmt-badge { display: inline-block; padding: 3px 10px; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; margin-top: 4px; }
.bmt-report-page .bmt-badge-tier { background: #e0f2fe; color: #0369a1; }
.bmt-report-page .bmt-badge-level { background: #fef3c7; color: #92400e; }
.bmt-report-page .bmt-badge-plan { background: #f1f5f9; color: #475569; }
.bmt-report-page .bmt-kpi { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--c-light); border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; margin-bottom: 52px; }
.bmt-report-page .bmt-kpi-item { padding: 20px 24px; border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.bmt-report-page .bmt-kpi-item:last-child { border-right: none; }
.bmt-report-page .bmt-kpi-label { font-family: var(--f-mono); font-size: .71rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .8px; }
.bmt-report-page .bmt-kpi-value { font-family: var(--f-head); font-size: 1.6rem; color: var(--c-navy); font-weight: 700; line-height: 1; }
.bmt-report-page .bmt-kpi-sub { font-family: var(--f-mono); font-size: .7rem; color: var(--c-muted); }
.bmt-report-page .bmt-chg { font-size: .8rem; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.bmt-report-page .bmt-pos { color: var(--c-green); }
.bmt-report-page .bmt-neg { color: var(--c-red); }
.bmt-report-page .bmt-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }

/* Sidebar Sticky using Unified Var */
.bmt-report-page .bmt-sidebar { position: sticky; top: calc(var(--bmt-topbar) + 45px); height: fit-content; border-right: 1px solid #eef2f7; padding-right: 22px; }

.bmt-report-page .bmt-toc-title { font-family: var(--f-mono); font-size: .71rem; color: #aaa; margin-bottom: 16px; display: block; letter-spacing: 1.2px; text-transform: uppercase; }
.bmt-report-page .bmt-toc { list-style: none; padding: 0; margin: 0; font-family: var(--f-head); }
.bmt-report-page .bmt-toc li { margin-bottom: 5px; }
.bmt-report-page .bmt-toc a { text-decoration: none; color: #64748b; font-size: .88rem; display: block; border-left: 3px solid transparent; padding: 5px 0 5px 12px; transition: color .18s, border-color .18s, padding-left .18s; line-height: 1.3; }
.bmt-report-page .bmt-toc a:hover, .bmt-report-page .bmt-toc a.active { color: var(--c-navy); border-left-color: var(--c-gold); font-weight: 600; padding-left: 15px; }
.bmt-report-page .bmt-divider { border: none; border-top: 1px solid #eef2f7; margin: 14px 0; }
.bmt-report-page .bmt-qa { padding: 13px; background: #f1f5f9; border-radius: var(--radius); font-family: var(--f-mono); font-size: .69rem; color: var(--c-muted); line-height: 1.9; }
.bmt-report-page .bmt-qa strong { color: var(--c-navy); display: block; margin-bottom: 6px; font-size: .71rem; }
.bmt-report-page .bmt-qa-ok { color: var(--c-green); margin-right: 3px; }

/* =========================================================
   PATCH: About This Report (bmt-qa) list font unification
   ========================================================= */
.bmt-report-page .bmt-qa ul,
.bmt-report-page .bmt-qa ol {
  margin: 8px 0 0;
  padding-left: 18px;
  font-family: inherit !important;
}
.bmt-report-page .bmt-qa li,
.bmt-report-page .bmt-qa li * {
  font-family: inherit !important;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.bmt-report-page .bmt-qa li::marker {
  color: inherit;
  font-family: inherit !important;
}
.bmt-report-page .bmt-qa ul { list-style: disc; }
.bmt-report-page .bmt-qa ol { list-style: decimal; }
/* ========================================================= */

.bmt-report-page .bmt-sb-block { margin-top: 14px; }
.bmt-report-page .bmt-sb-block-title { font-family: var(--f-mono); font-size: .71rem; color: #aaa; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; display: block; }
.bmt-report-page .bmt-sb-link { display: block; text-decoration: none; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: var(--radius); margin-bottom: 7px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.bmt-report-page .bmt-sb-link:hover { border-color: var(--c-blue); box-shadow: 0 2px 8px rgba(0, 94, 184, .1); }
.bmt-report-page .bmt-sb-link__label { font-family: var(--f-mono); font-size: .65rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px; }
.bmt-report-page .bmt-sb-link__title { font-family: var(--f-head); font-size: .82rem; color: var(--c-navy); line-height: 1.25; font-weight: 600; }
.bmt-report-page .bmt-sb-source { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-left: 3px solid var(--c-border); margin-bottom: 7px; text-decoration: none; transition: border-color .18s; }
.bmt-report-page .bmt-sb-source:hover { border-left-color: var(--c-blue); }
.bmt-report-page .bmt-sb-source__icon { font-size: .75rem; flex-shrink: 0; margin-top: 2px; }
.bmt-report-page .bmt-sb-source__name { font-family: var(--f-head); font-size: .8rem; color: var(--c-navy); line-height: 1.2; font-weight: 600; }
.bmt-report-page .bmt-sb-source__desc { font-family: var(--f-mono); font-size: .65rem; color: var(--c-muted); line-height: 1.4; margin-top: 2px; }
.bmt-report-page .bmt-content { min-width: 0; }

/* Scroll Margin using Unified Var */
.bmt-report-page section { margin-bottom: 64px; scroll-margin-top: calc(var(--bmt-topbar) + 24px); border-bottom: 1px solid #f1f5f9; padding-bottom: 56px; }
.bmt-report-page section:last-child { border: none; padding-bottom: 0; }
.bmt-report-page .bmt-sec-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--c-navy); padding-bottom: 10px; }
.bmt-report-page .bmt-sec-num { font-family: var(--f-mono); font-size: .74rem; color: var(--c-gold); font-weight: 700; letter-spacing: 1px; flex-shrink: 0; }
.bmt-report-page h2 { font-family: var(--f-head); font-size: 1.8rem; color: var(--c-navy); margin: 0; line-height: 1.15; scroll-margin-top: calc(var(--bmt-topbar) + 24px); }
.bmt-report-page h3 { font-family: var(--f-head); font-size: 1.18rem; color: var(--c-navy); margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--c-gold); line-height: 1.2; scroll-margin-top: calc(var(--bmt-topbar) + 24px); }

.bmt-report-page .bmt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.bmt-report-page .bmt-cols p { break-inside: avoid; }

/* Paragraph rhythm + line length control */
.bmt-report-page p { margin: 0 0 24px; color: var(--c-subtle); hyphens: auto; max-width: 72ch; }
.bmt-report-page p strong { color: var(--c-text); }
.bmt-report-page .bmt-lead { font-size: 1.07rem; font-weight: 700; color: #000!important; line-height: 1.7; border-left: 4px solid var(--c-navy); padding-left: 18px; margin-bottom: 28px!important; max-width: none; }
.bmt-report-page .bmt-stat { display: inline-block; background: #fffbeb; border: 1px solid #fde68a; border-radius: 3px; padding: 1px 8px; font-family: var(--f-mono); font-size: .84rem; font-weight: 700; color: #92400e; white-space: nowrap; }
.bmt-report-page .bmt-term { border-bottom: 1px dashed var(--c-blue); cursor: help; color: var(--c-blue); }
.bmt-report-page .bmt-cite { font-family: var(--f-mono); font-size: .72rem; color: var(--c-muted); vertical-align: super; margin-left: 2px; }
.bmt-report-page .bmt-cite a { color: var(--c-blue); text-decoration: none; }
.bmt-report-page .bmt-cite a:hover { text-decoration: underline; }
.bmt-report-page .bmt-callout { border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; font-size: .92rem; line-height: 1.7; max-width: none; }
.bmt-report-page .bmt-callout strong { display: block; margin-bottom: 6px; font-family: var(--f-head); font-size: 1rem; }
.bmt-report-page .bmt-info { background: #eff6ff; border-left: 4px solid var(--c-blue); color: #1e3a5f; }
.bmt-report-page .bmt-warn { background: #fff7ed; border-left: 4px solid #f97316; color: #7c2d12; }
.bmt-report-page .bmt-danger { background: #fef2f2; border-left: 4px solid var(--c-red); color: #7f1d1d; }
.bmt-report-page .bmt-success { background: #f0fdf4; border-left: 4px solid #16a34a; color: #14532d; }

.bmt-report-page .bmt-chart-full { width: 100%; background: #fff; border: 1px solid #e2e8f0; padding: 28px; box-shadow: var(--shadow-md); margin: 48px 0; border-radius: var(--radius); max-width: none; }
.bmt-report-page .bmt-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 40px 0; max-width: none; }
.bmt-report-page .bmt-chart-box { border: 1px solid #e2e8f0; padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.bmt-report-page .bmt-chart-hdr { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 16px; }
.bmt-report-page .bmt-chart-hdr h4 { font-family: var(--f-head); font-size: 1.05rem; color: var(--c-navy); margin: 0; line-height: 1.2; }
.bmt-report-page .bmt-chart-src { font-family: var(--f-mono); font-size: .67rem; color: #bbb; text-align: right; flex-shrink: 0; line-height: 1.5; }
.bmt-report-page .bmt-chart-lbl { display: block; text-align: center; font-family: var(--f-mono); font-size: .74rem; font-weight: 700; color: var(--c-navy); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.bmt-report-page .bmt-canvas-wrap { position: relative; width: 100%; }
.bmt-report-page .bmt-chart-full .bmt-canvas-wrap { height: auto; }
.bmt-report-page .bmt-chart-box .bmt-canvas-wrap { height: auto; }
.bmt-report-page .bmt-canvas-wrap.is-pending::before { content: ''; display: block; position: absolute; inset: 0; background: linear-gradient(90deg, #f1f5f9 0%, #e8edf2 50%, #f1f5f9 100%); background-size: 300px 100%; animation: bmt-shimmer 1.5s infinite linear; border-radius: var(--radius); }
@keyframes bmt-shimmer { 0% { background-position: -300px 0 } 100% { background-position: calc(300px + 100%) 0 } }
.bmt-report-page .bmt-canvas-wrap.is-loaded::before { display: none; }
.bmt-report-page .bmt-chart-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.97); color: #94a3b8; font-family: monospace; font-size: 11px; pointer-events: none; z-index: 10; border: 1px dashed #e2e8f0; border-radius: var(--radius); }
.bmt-report-page .bmt-chart-note { margin-top: 16px; padding: 13px 17px; background: #f8fafc; border-left: 3px solid var(--c-blue); font-size: .87rem; color: var(--c-subtle); line-height: 1.65; max-width: none; }
.bmt-report-page .bmt-chart-note strong { color: var(--c-navy); }

/* Tables */
.bmt-report-page .bmt-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .87rem; }
.bmt-report-page .bmt-table th { font-family: var(--f-head); font-size: .88rem; font-weight: 600; padding: 12px 15px; text-align: left; }
.bmt-report-page .bmt-table th.col-n { background: #f8fafc; color: var(--c-muted); width: 30%; }
.bmt-report-page .bmt-table th.col-l { background: #eff6ff; color: #1d4ed8; }
.bmt-report-page .bmt-table th.col-b { background: #fef9c3; color: #713f12; }
.bmt-report-page .bmt-table th.col-c { background: #f0fdf4; color: #166534; }
.bmt-report-page .bmt-table td { padding: 10px 15px; border-top: 1px solid #f1f5f9; color: var(--c-subtle); vertical-align: top; line-height: 1.5; }
.bmt-report-page .bmt-table td:first-child { font-weight: 600; color: var(--c-text); white-space: nowrap; }
.bmt-report-page .bmt-table tr:hover td { background: #fafafa; }
.bmt-report-page .win { color: var(--c-green); font-weight: 700; }
.bmt-report-page .lose { color: var(--c-red); }
.bmt-report-page .mid { color: #c2410c; font-weight: 600; }

.bmt-report-page .bmt-risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; max-width: none; }
.bmt-report-page .bmt-risk-card { border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.bmt-report-page .bmt-risk-card.wildcard { border-color: #fde68a; background: #fffbeb; }
.bmt-report-page .bmt-risk-lvl { font-family: var(--f-mono); font-size: .67rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; display: inline-block; margin-bottom: 10px; }
.bmt-report-page .lvl-high { background: #fef2f2; color: var(--c-red); }
.bmt-report-page .lvl-med { background: #fff7ed; color: #c2410c; }
.bmt-report-page .lvl-wild { background: #fffbeb; color: #92400e; }
.bmt-report-page .bmt-risk-title { font-family: var(--f-head); font-size: 1.02rem; color: var(--c-navy); margin-bottom: 10px; line-height: 1.2; }
.bmt-report-page .bmt-risk-body { font-size: .87rem; color: var(--c-subtle); line-height: 1.65; margin: 0; max-width: none; }
.bmt-report-page .bmt-risk-impact { font-family: var(--f-mono); font-size: .7rem; color: var(--c-muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.bmt-report-page .bmt-risk-impact span { font-weight: 700; color: var(--c-text); }

.bmt-report-page .bmt-play { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; max-width: none; }
.bmt-report-page .bmt-play-item { display: grid; grid-template-columns: 44px 1fr; border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; }
.bmt-report-page .bmt-play-if { background: var(--c-navy); color: #e2e8f0; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; writing-mode: vertical-rl; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; }
.bmt-report-page .bmt-play-body { padding: 15px 19px; }
.bmt-report-page .bmt-play-cond { font-family: var(--f-head); font-size: .93rem; color: var(--c-blue); font-weight: 600; margin-bottom: 6px; line-height: 1.25; }
.bmt-report-page .bmt-play-act { font-size: .87rem; color: var(--c-subtle); line-height: 1.62; margin: 0; max-width: none; }

.bmt-report-page .bmt-tag { font-family: var(--f-mono); font-size: .67rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; margin-right: 7px; display: inline-block; vertical-align: middle; }
.bmt-report-page .t-short { background: #dbeafe; color: #1d4ed8; }
.bmt-report-page .t-mid { background: #d1fae5; color: #065f46; }
.bmt-report-page .t-long { background: #ede9fe; color: #5b21b6; }
.bmt-report-page .t-cash { background: #fef9c3; color: #713f12; }
.bmt-report-page .bmt-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; max-width: none; }
.bmt-report-page .bmt-sc { border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; }
.bmt-report-page .bmt-sc-head { padding: 12px 16px; font-family: var(--f-head); font-size: .98rem; font-weight: 600; letter-spacing: .5px; }
.bmt-report-page .bmt-sc-base .bmt-sc-head { background: var(--c-navy); color: #fff; }
.bmt-report-page .bmt-sc-bull .bmt-sc-head { background: var(--c-green); color: #fff; }
.bmt-report-page .bmt-sc-bear .bmt-sc-head { background: var(--c-red); color: #fff; }
.bmt-report-page .bmt-sc-body { padding: 14px 16px; font-size: .87rem; color: var(--c-subtle); line-height: 1.65; max-width: none; }
.bmt-report-page .bmt-sc-body strong { color: var(--c-text); display: block; margin-bottom: 4px; }

.bmt-report-page .bmt-faq-item { border: 1px solid #e2e8f0; border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.bmt-report-page .bmt-faq-q { width: 100%; background: var(--c-light); border: none; padding: 16px 20px; font-family: var(--f-head); font-size: 1rem; color: var(--c-navy); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; line-height: 1.3; }
.bmt-report-page .bmt-faq-q:hover { background: #f1f5f9; }
.bmt-report-page .bmt-faq-icon { flex-shrink: 0; width: 22px; height: 22px; background: var(--c-navy); border-radius: 50%; color: #fff; font-size: 1rem; line-height: 22px; text-align: center; transition: transform .22s ease; font-family: var(--f-mono); font-weight: 700; user-select: none; }
.bmt-report-page .bmt-faq-item.is-open .bmt-faq-icon { transform: rotate(45deg); }
.bmt-report-page .bmt-faq-a { display: none; padding: 14px 20px 18px; font-size: .92rem; color: var(--c-subtle); line-height: 1.75; border-top: 1px solid #f1f5f9; max-width: none; }
.bmt-report-page .bmt-faq-a p { margin: 0 0 12px; max-width: none; }
.bmt-report-page .bmt-faq-a p:last-child { margin: 0; }
.bmt-report-page .bmt-faq-item.is-open .bmt-faq-a { display: block; }

.bmt-report-page .bmt-img { width: 100%; height: auto; display: block; border-radius: var(--radius); margin: 28px 0; object-fit: cover; background: #f1f5f9; min-height: 160px; max-width: none; }
.bmt-report-page .bmt-img-cap { font-family: var(--f-mono); font-size: .71rem; color: #aaa; margin: -18px 0 28px; padding-left: 8px; border-left: 2px solid #e2e8f0; max-width: none; }

/* === SOURCES (Footer) === */
.bmt-report-page .bmt-sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid #f1f5f9; }
.bmt-report-page .bmt-sources h4 { font-family: var(--f-mono); font-size: .72rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }

.bmt-report-page .bmt-sources { max-width: 80ch; }
.bmt-report-page .bmt-sources ol { list-style: none; padding-left: 0; margin: 0; display: grid; gap: 10px; }
.bmt-report-page .bmt-sources li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: .78rem;
  line-height: 1.65;
  color: var(--c-muted);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.bmt-report-page .bmt-sources li:hover {
  background: #f1f5f9;
  border-color: rgba(0, 94, 184, .35);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.bmt-report-page .bmt-sources a { color: var(--c-navy); text-decoration: none; font-weight: 700; }
.bmt-report-page .bmt-sources a:hover { text-decoration: underline; }
.bmt-report-page .bmt-sources li { word-break: break-word; }

/* Responsive */
@media(max-width: 1100px) {
  .bmt-report-page .bmt-layout { grid-template-columns: 1fr; }
  .bmt-report-page .bmt-sidebar { display: none; }
  .bmt-report-page .bmt-cols { grid-template-columns: 1fr; }
  .bmt-report-page .bmt-chart-row, .bmt-report-page .bmt-risk-grid, .bmt-report-page .bmt-scenarios { grid-template-columns: 1fr; }
  .bmt-report-page .bmt-kpi { grid-template-columns: 1fr 1fr; }
  .bmt-report-page .bmt-header { flex-direction: column; align-items: flex-start; }
  .bmt-report-page .bmt-header-meta { text-align: left; border-left: none; border-top: 2px solid var(--c-gold); padding: 12px 0 0; }
}

/* KPI on very small screens */
@media(max-width: 520px) {
  .bmt-report-page .bmt-kpi { grid-template-columns: 1fr; }
  .bmt-report-page .bmt-kpi-item { border-right: none; border-top: 1px solid #e2e8f0; }
  .bmt-report-page .bmt-kpi-item:first-child { border-top: none; }
}

@media(max-width: 640px) {
  .bmt-report-page .bmt-wrap { padding: calc(var(--bmt-topbar) + 24px) 18px 24px 18px; }
  .bmt-report-page h2 { font-size: 1.42rem; }
  .bmt-report-page .bmt-play-item { grid-template-columns: 1fr; }
  .bmt-report-page .bmt-play-if { writing-mode: horizontal-tb; padding: 8px 14px; font-size: .68rem; }
  .bmt-report-page .bmt-table { font-size: .78rem; }
  .bmt-report-page .bmt-table th, .bmt-report-page .bmt-table td { padding: 8px 9px; }

  .bmt-report-page { font-size: 0.97rem; line-height: 1.9; }
  .bmt-report-page p { letter-spacing: 0.015em; }

  .bmt-report-page .bmt-sources li { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bmt-report-page * { animation: none!important; transition: none!important; }
}

/* ========================================
   Policy Footer
   ======================================== */
.bmt-policy-footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 40px;
  text-align: center;
  border-top: 1px solid var(--c-border);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-text-sub);
}
.bmt-policy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bmt-policy-nav a {
  color: var(--c-text-sub);
  text-decoration: none;
  transition: color 0.2s;
}
.bmt-policy-nav a:hover { color: var(--c-gold); }
.bmt-policy-sep { color: var(--c-border); user-select: none; }
.bmt-policy-copy { font-size: 0.7rem; color: var(--c-muted); }

@media (max-width: 640px) {
  .bmt-policy-footer { padding: 24px 18px; }
  .bmt-policy-nav { font-size: 0.7rem; }
}

/* =========================================================
   TABLE WRAP: 모바일에서 "섹션 폭은 100%", 표는 "좌우 스와이프"
   ========================================================= */
.bmt-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
}
.bmt-table-wrap .bmt-table { margin: 0; }

/* 모바일에서 테이블만 살짝 삐져나가게(=스와이프 대상) */
@media (max-width: 768px) {
  /* wrap은 다른 섹션과 동일 폭으로 */
  .bmt-table-wrap {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  /* 테이블은 최소 폭을 확보해서 글자 찢어짐을 방지 */
  .bmt-table-wrap .bmt-table {
    min-width: 760px;
    width: max-content;
  }

  /* 스와이프 모델에서는 nowrap이 가독성 최상 */
  .bmt-report-page .bmt-table th,
  .bmt-report-page .bmt-table td {
    white-space: nowrap;
  }

  /* 모바일에서 fixed layout이면 글자 찢어짐이 심해져서 auto로 고정 */
  .bmt-report-page .bmt-table { table-layout: auto !important; }
}

/* =========================================================
   MOBILE TABLE HARD RESET
   - 테마가 table을 block/float로 바꾸는 경우 강제 복구
   ========================================================= */
.bmt-report-page table,
.bmt-report-page .bmt-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  table-layout: auto !important;
}

/* table 구조가 깨지는 테마 대응 */
.bmt-report-page table thead { display: table-header-group !important; }
.bmt-report-page table tbody { display: table-row-group !important; }
.bmt-report-page table tr    { display: table-row !important; }
.bmt-report-page table th,
.bmt-report-page table td {
  display: table-cell !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
}

/* =========================================================
   20/4/10 Calculator: 모바일에서는 2열 고집 X → 위/아래 스택
   ========================================================= */
@media (max-width: 768px){
  .bmt-report-page .wp-block-columns,
  .bmt-report-page .is-layout-flex{
    flex-direction: column !important;
  }

  .bmt-report-page .wp-block-columns > .wp-block-column,
  .bmt-report-page .is-layout-flex > *{
    width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   WP Columns normalize (PC/태블릿에서 50:50 안정)
   ========================================================= */
.bmt-report-page .wp-block-columns{
  display: flex !important;
  gap: 18px;
}
.bmt-report-page .wp-block-columns > .wp-block-column{
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* =========================================================
   20/4/10 Solvency Calculator
   - Mobile: force vertical stacking (no uneven ratio)
   ========================================================= */
@media (max-width: 768px){

  /* 섹션 자체는 다른 섹션과 동일 폭 */
  .bmt-report-page section.bmt-solvency{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 섹션 내부: flex 2열이면 세로로 */
  .bmt-report-page section.bmt-solvency .is-layout-flex,
  .bmt-report-page section.bmt-solvency .wp-block-columns{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* 섹션 내부: grid 2열이면 1열로 */
  .bmt-report-page section.bmt-solvency .is-layout-grid{
    grid-template-columns: 1fr !important;
  }

  /* 섹션 내부: 어떤 “카드/박스”든 100% 폭으로 */
  .bmt-report-page section.bmt-solvency .wp-block-column,
  .bmt-report-page section.bmt-solvency .wp-block-group,
  .bmt-report-page section.bmt-solvency .wp-block-cover,
  .bmt-report-page section.bmt-solvency .wp-block-media-text,
  .bmt-report-page section.bmt-solvency > *{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   MOBILE SCROLL JANK FIX (CSS-only)
   - only on mobile
   ========================================================= */
@media (max-width: 768px){

  /* 1) 차트 로딩 shimmer 애니메이션이 스크롤 페인트를 유발할 수 있음 */
  .bmt-report-page .bmt-canvas-wrap.is-pending::before{
    animation: none !important;
  }

  /* 2) box-shadow는 모바일에서 스크롤 중 페인트 비용이 큼 */
  .bmt-report-page .bmt-chart-full,
  .bmt-report-page .bmt-chart-box{
    box-shadow: none !important;
  }

  /* 3) 긴 문서에서 렌더링 비용 감소 (효과 큼) */
  .bmt-report-page section{
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }
}

/* =========================================================
   FINAL: 20/4/10 Solvency Calculator
   - Mobile: force vertical stacking (1 column)
   ========================================================= */
@media (max-width: 768px){
  .bmt-report-page section.bmt-solvency{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* flex based layouts */
  .bmt-report-page section.bmt-solvency .wp-block-columns,
  .bmt-report-page section.bmt-solvency .is-layout-flex{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* grid based layouts */
  .bmt-report-page section.bmt-solvency .is-layout-grid{
    grid-template-columns: 1fr !important;
  }

  /* children width hardening */
  .bmt-report-page section.bmt-solvency .wp-block-column,
  .bmt-report-page section.bmt-solvency .wp-block-group,
  .bmt-report-page section.bmt-solvency > *{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   FINAL FIX: Solvency Calculator mobile stack (force 1-column)
   ========================================================= */
@media (max-width: 768px){

  /* Solvency section full width */
  .bmt-report-page .bmt-solvency{
    width: 100% !important;
    max-width: 100% !important;
  }
  /* 우리가 JS로 태깅한 레이아웃 컨테이너를 1열로 강제 */
  .bmt-report-page .bmt-solvency-cols{
    width: 100% !important;
    max-width: 100% !important;
  }

  .bmt-report-page .bmt-solvency-cols.wp-block-columns,
  .bmt-report-page .bmt-solvency-cols.is-layout-flex{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .bmt-report-page .bmt-solvency-cols.is-layout-grid{
    grid-template-columns: 1fr !important;
  }

  /* 내부 카드들이 줄폭 못늘리는 문제 방지 */
  .bmt-report-page .bmt-solvency-cols > *{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px){
  .bmt-report-page .bmt-solvency{
    width: 100% !important;
    max-width: 100% !important;
  }

  .bmt-report-page .bmt-solvency-cols{
    width: 100% !important;
    max-width: 100% !important;
  }

  .bmt-report-page .bmt-solvency-cols.wp-block-columns,
  .bmt-report-page .bmt-solvency-cols.is-layout-flex{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .bmt-report-page .bmt-solvency-cols.is-layout-grid{
    grid-template-columns: 1fr !important;
  }

  .bmt-report-page .bmt-solvency-cols > *{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   Solvency Calculator - Mobile Fix
   ========================================================= */

/* 1) Prevent long token overflow */
.bmt-report-page .bmt-solvency-cols,
.bmt-report-page .bmt-solvency-cols *{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 2) Force vertical stack on mobile */
@media (max-width: 768px){

  .bmt-report-page .bmt-solvency-cols{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .bmt-report-page .bmt-solvency-cols > *{
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
}
/* =========================================================
   Solvency Calculator — FINAL (No Duplicates)
   - Mobile: force 1-column stack
   - Prevent long token overflow
   ========================================================= */

/* 1) Prevent long token overflow (all screens) */
.bmt-report-page .bmt-solvency-cols,
.bmt-report-page .bmt-solvency-cols *{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 2) Mobile stack (<=768px) */
@media (max-width: 768px){

  /* section/container width */
  .bmt-report-page .bmt-solvency,
  .bmt-report-page .bmt-solvency-cols{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Force vertical stack (works regardless of wp-columns/flex/grid) */
  .bmt-report-page .bmt-solvency-cols{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  /* each card full width */
  .bmt-report-page .bmt-solvency-cols > *{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
}

/* =========================================
   FIGURE SYSTEM (BMT Standard)
   ========================================= */

/* 0) 모든 figure 기본 간격/리셋 */
.bmt-figure,
.bmt-canvas-wrap{
  margin: 24px 0;
}

/* 1) 이미지 figure */
.bmt-figure-img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 2) 차트 figure: 본문 폭에서 중앙 정렬 + 최대 폭 */
.bmt-canvas-wrap{
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* 3) 캔버스: 부모 폭 100% 강제 (핵심) */
.bmt-canvas-wrap canvas{
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* 4) 캡션: 폰트/줄간격/색 통일 */
.bmt-chart-note{
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--c-text-sub);
}

/* 5) 캡션 안 링크도 톤 통일 (선택) */
.bmt-chart-note a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
