/* K-Energy Insight 공통 스타일. 색은 모두 이 변수에서 가져다 쓴다. */
:root {
  --primary: #006956; --primary-dark: #00513f; --primary-bg: #e8f1ed; --primary-line: #c4ddd3;
  --text: #182d30; --text-sub: #506365; --text-body: #2c4144;
  --line: #d4dfd9; --line-in: #e3eae6; --bar-bg: #eef3f0;
  --page: #f7f8f3; --card: #ffffff; --card-soft: #fbfcf9;
  --warn: #835018; --warn-bg: #f6ecdf; --warn-text: #6b3f10;
  --select: #e8590c;
  --seq1: #e8f1ed; --seq2: #c4ddd3; --seq3: #8fbfae; --seq4: #1f7a63; --seq5: #00513f;
  --div1: #835018; --div2: #d9b48a; --div3: #f1e6d6; --div4: #8fbfae; --div5: #1f7a63;
  --obs-bg: #e8f1ed; --obs-fg: #00513f;
  --gov-bg: #eeedfe; --gov-fg: #3c3489;
  --model-bg: #f6ecdf; --model-fg: #6b3f10;
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--primary); }
a:hover { color: #004a3c; }
button, select { font: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #1f7a63; outline-offset: 2px; }

/* 헤더 */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.logo-mark { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.logo-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; text-decoration: none; color: var(--text-sub); font-size: 14px; }
.nav a:hover { background: var(--bar-bg); color: var(--text); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-bg); font-weight: 700; }
.nav a.soon { color: #6f8082; }
/* 분석툴: 아래로 펼치는 메뉴 (2026-11-11). 마우스를 올리거나, 누르거나, Tab으로 들어가면 열림 */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-btn { padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-sub); font: inherit; font-size: 14px; cursor: pointer; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { background: var(--bar-bg); color: var(--text); }
.nav-dd-btn.on { color: var(--primary); background: var(--primary-bg); font-weight: 700; }
.nav-dd-btn svg { transition: transform 0.15s; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu { display: none; position: absolute; top: 100%; right: 0; z-index: 60; min-width: 200px; flex-direction: column; gap: 2px; padding: 6px;
  margin-top: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(24, 45, 48, 0.12); }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: flex; }
.nav-dd-menu a { width: 100%; white-space: nowrap; }

/* 본문 틀 */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 56px; display: flex; flex-direction: column; gap: 24px; }
.page--home { padding-top: 36px; gap: 28px; }
.title-block { display: flex; flex-direction: column; gap: 8px; }
.title-block h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; }
.title-block .lead { font-size: 15px; color: var(--text-body); max-width: 780px; }
.crumb { font-size: 13px; color: var(--text-sub); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.f { min-width: 0; }
.f-full { flex: 1 1 100%; } .f-360 { flex: 1 1 360px; } .f-380 { flex: 1 1 380px; } .f-420 { flex: 1 1 420px; } .f-460 { flex: 1 1 460px; }
.f-480 { flex: 1 1 480px; }
.map-col { flex: 5 1 440px; } .side-col { flex: 7 1 520px; } .f-520 { flex: 1 1 520px; } .f-560 { flex: 1 1 560px; } .f-main { flex: 999 1 560px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card--soft { background: var(--card-soft); }
.card-top { display: flex; flex-direction: column; gap: 4px; }
.card-k { font-size: 14px; color: var(--text-sub); font-weight: 600; }
.card-head { font-size: 18px; font-weight: 700; }
h3.card-k + .card-head, .card-head--sm { font-size: 17px; }
.note { font-size: 13px; color: var(--text-body); }
.note-sm { font-size: 12px; color: var(--text-sub); }
.section-title { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.section-title h2 { font-size: 22px; letter-spacing: -0.01em; }
.section-title p { font-size: 14px; color: var(--text-sub); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 10px; }

/* 배지 */
.badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge--obs { background: var(--obs-bg); color: var(--obs-fg); }
.badge--gov { background: var(--gov-bg); color: var(--gov-fg); }
.badge--model { background: var(--model-bg); color: var(--model-fg); }
.badge--lg { font-size: 12px; padding: 3px 10px; }
.badge--outline { border: 1px solid var(--primary-line); color: var(--primary); background: var(--primary-bg); font-size: 12px; padding: 3px 10px; }

/* 지표 카드 */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line-in); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--card); color: var(--text); text-decoration: none; }
.kpi-k { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.kpi-v { display: flex; align-items: baseline; gap: 4px; }
.kpi-v b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-v span { font-size: 14px; color: var(--text-sub); }
.kpi-sub { font-size: 12px; color: var(--text-sub); }
.kpi-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.fact .kpi-v b { font-size: 30px; }
.fact .kpi-sub { font-size: 12.5px; color: var(--text-body); }

/* 범례 */
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-body); }
.legend > span { display: flex; align-items: center; gap: 5px; }
.sw { width: 10px; height: 10px; border-radius: 2px; border: 1px solid #c9d3cf; flex: none; display: inline-block; }
.sw--wide { width: 14px; }
.sw--line { width: 16px; height: 3px; border: 0; border-radius: 0; }
.sw--dash { width: 16px; height: 0; border: 0; border-top: 2px dashed #c98e4e; border-radius: 0; }

/* 세로 막대 (HTML) */
.bars { display: flex; align-items: flex-end; gap: 6px; }
.bar-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.bar-v { font-size: 11px; color: var(--text-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-v.hi { color: var(--text); font-weight: 800; }
.bar { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.bar-x { font-size: 11px; color: var(--text-sub); white-space: nowrap; min-height: 1.35em; line-height: 1.35; }   /* 빈 이름 칸도 같은 높이 → 막대 바닥이 한 줄로 (2026-11-11) */
.stack-bar { width: 100%; display: flex; flex-direction: column-reverse; }
.stack-bar > span { display: flex; align-items: center; justify-content: center; font-size: 11px; font-variant-numeric: tabular-nums; overflow: hidden; border-top: 1px solid #fff; }
.stack-bar--flat > span { border-top: 0; }
.xaxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-sub); }

/* 가로 막대 줄 */
.hrows { display: flex; flex-direction: column; gap: 7px; }
.hrow { display: grid; grid-template-columns: 78px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 13px; }
.track { height: 14px; background: var(--bar-bg); border-radius: 3px; overflow: hidden; display: block; }
.track > span { display: block; height: 100%; border-radius: 3px; }
.track--thin { height: 12px; }
.hrow .v { text-align: right; font-variant-numeric: tabular-nums; }

/* 비율 띠 */
.band { display: flex; height: 36px; border-radius: 6px; overflow: hidden; }
.band--sm { height: 34px; }
.band > span { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; }

/* 표 */
.table-box { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; font-size: 13px; font-weight: 600; color: var(--text-sub); padding-bottom: 6px; }
table.data th, table.data td { padding: 8px 4px; text-align: right; }
table.data thead tr { border-bottom: 1px solid var(--line); color: var(--text-sub); font-size: 12px; }
table.data thead th { font-weight: 600; padding: 6px 4px; }
table.data tbody tr { border-bottom: 1px solid var(--bar-bg); }
table.data th[scope="row"], table.data .l { text-align: left; }
table.data .rowk { display: inline-flex; align-items: center; gap: 6px; }
.up { color: var(--primary); } .down { color: var(--warn); } .flat { color: var(--text-sub); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.spark > span { width: 12px; border-radius: 1px; }

/* 버튼 */
.btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 44px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: #9fb5ad; }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); font-size: 15px; font-weight: 700; padding: 12px 20px; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { color: var(--primary); border-color: var(--primary-line); font-size: 15px; font-weight: 700; padding: 12px 20px; }
.btn--solid { background: var(--primary); color: #fff; border: 0; font-size: 14px; font-weight: 700; }
.pill { cursor: pointer; padding: 7px 12px; min-height: 44px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--text-body); }
.pill[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
/* 본문 바로가기: 키보드 Tab을 처음 누르면 나타난다 */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--primary-dark); font-weight: 700; padding: 8px 14px; border: 2px solid var(--primary); border-radius: 8px; }
.skip:focus { left: 16px; }
/* 쉽게 보기 */
.easy-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 20px; margin: 0; }
.easy-list > div { border-top: 3px solid var(--primary-line); padding-top: 10px; }
.easy-list dt { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.easy-list dd { margin: 0; font-size: 15px; color: var(--text-body); line-height: 1.65; }
.easy-list dd a { font-weight: 700; white-space: nowrap; }
/* 긴 화면의 바로가기 줄: 스크롤해도 위에 붙어 있고, 좁은 화면에서는 옆으로 밀어 본다 (사용성 점검 2026-11-08) */
.jump { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; background: var(--page); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--text-body); text-decoration: none; }
.jump a:hover { border-color: var(--primary); color: var(--primary); }
.page [id] { scroll-margin-top: 64px; }
.arrow-link { font-size: 15px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; align-self: flex-start; }
select.sel { font-size: 14px; color: var(--text); padding: 6px 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* 지도 */
.map-svg { width: 100%; height: auto; display: block; }
.map-svg path.rg { cursor: pointer; }
.map-svg path.rg:hover { opacity: .85; }

/* 하단 */
.notes { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-sub); }
.notes .t { font-weight: 700; color: var(--text-body); }
.site-footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--text-sub); }
.site-footer .about { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.site-footer .brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 14px; }
.site-footer .brand .logo-mark { width: 22px; height: 22px; border-radius: 4px; font-size: 13px; }
.site-footer nav { display: flex; flex-direction: column; gap: 2px; }
.site-footer nav a { color: var(--text-body); min-height: 32px; display: inline-flex; align-items: center; }
.loading { color: var(--text-sub); font-size: 13px; }
.err { background: var(--warn-bg); color: var(--warn-text); border-radius: 8px; padding: 12px 14px; font-size: 14px; }

/* 홈 */
.hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hero-eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); }
.hero h1 { font-size: 38px; line-height: 1.25; letter-spacing: -0.03em; }
.hero-lead { font-size: 16px; line-height: 1.7; color: var(--text-body); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.now-box { flex: 1 1 480px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.now-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.now-grid .kpi { background: var(--card-soft); padding: 14px; }
.now-grid .kpi-v b { font-size: 28px; }
.status { display: flex; align-items: center; gap: 10px; background: var(--primary-bg); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: var(--primary-dark); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: none; }
.status.warn { background: var(--warn-bg); color: var(--warn-text); }
.status.warn .dot { background: var(--warn); }
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.path { text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.path:hover { border-color: #9fb5ad; color: var(--text); }
.path .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.path .who { font-size: 13px; font-weight: 700; color: var(--primary); }
.path .q { font-size: 17px; font-weight: 700; line-height: 1.4; }
.path .d { font-size: 13.5px; color: var(--text-sub); line-height: 1.55; }
.path .cta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.map-feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.map-feature .map-link { flex: 1 1 280px; min-width: 0; max-width: 360px; display: block; }
.map-feature .txt { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.map-feature h2 { font-size: 24px; line-height: 1.35; letter-spacing: -0.02em; }
.map-feature p { font-size: 15px; line-height: 1.7; color: var(--text-body); }
.list-card { flex: 1 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.list-card h2 { font-size: 18px; }
.list-card .more { font-size: 13px; font-weight: 700; }
.issue { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--bar-bg); }
.issue .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-sub); }
.issue .tt { font-size: 16px; font-weight: 700; line-height: 1.45; }
.issue .sb { font-size: 13.5px; color: var(--text-sub); line-height: 1.55; }
.tag { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.tag--gov { background: var(--gov-bg); color: var(--gov-fg); } .tag--warn { background: var(--warn-bg); color: var(--warn-text); } .tag--obs { background: var(--obs-bg); color: var(--obs-fg); }
.upd { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--bar-bg); }
.upd .dt { font-size: 12.5px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.upd .tt { font-size: 14px; font-weight: 600; display: block; }
.upd .sr { font-size: 12px; color: var(--text-sub); display: block; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.principles > div { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--card-soft); }
.principles .tt { font-size: 15px; font-weight: 700; }
.principles .sb { font-size: 13.5px; color: var(--text-body); line-height: 1.6; }

/* 전력수급 */
.goal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--bar-bg); }
.goal .k { font-size: 14px; color: var(--text-body); }
.goal .v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.goal .s { font-size: 12px; color: var(--text-sub); grid-column: 1 / -1; }
.world { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.world > div { border: 1px solid var(--line-in); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.world .k { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.world .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.world .s { font-size: 12.5px; color: var(--text-body); }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.timeline li { border: 1px solid var(--line); border-top: 3px solid #8fbfae; border-radius: 0 0 8px 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--card-soft); }
.timeline li.on { border-top-color: var(--primary); } .timeline li.prog { border-top-color: #c98e4e; }
.timeline .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.timeline .dt { font-size: 13px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.timeline .st { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bar-bg); color: var(--text-body); }
.timeline li.on .st { background: var(--obs-bg); color: var(--obs-fg); } .timeline li.prog .st { background: var(--warn-bg); color: var(--warn-text); }
.timeline .tt { font-size: 14px; font-weight: 700; line-height: 1.4; }
.timeline .sb { font-size: 12.5px; color: var(--text-sub); line-height: 1.45; }
.link-card { text-decoration: none; color: var(--text); background: var(--primary-bg); border: 1px solid var(--primary-line); border-radius: 12px; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.link-card:hover { color: var(--text); border-color: #8fbfae; }
.link-card .a { display: flex; flex-direction: column; gap: 4px; }
.link-card .k { font-size: 13px; font-weight: 700; color: var(--primary); }
.link-card .tt { font-size: 17px; font-weight: 700; }
.link-card .sb { font-size: 14px; color: var(--text-body); }
.link-card .go { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--primary); }
.plan-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; }
.plan-row .y { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-row .y small { display: block; font-size: 12px; font-weight: 400; color: var(--text-sub); }
.plan-row .band { height: 30px; border-radius: 4px; }
.plan-row .band > span { font-size: 11px; }

/* 지역 전력 */
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 40px; }
.rank-row { cursor: pointer; display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) 76px; align-items: center; gap: 10px; padding: 5px 8px; min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 14px; text-align: left; }
.rank-row:hover { background: var(--bar-bg); }
.rank-row.on { background: #fdeee4; }
.rank-row .rk { font-size: 12px; color: var(--text-sub); text-align: right; font-variant-numeric: tabular-nums; }
.rank-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.rkpi { cursor: pointer; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.rkpi[aria-pressed="true"] { border: 2px solid var(--primary); padding: 15px; }
.rkpi .kpi-v b { font-size: 28px; }
.rkpi .rank { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-bg); padding: 2px 8px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.summary1 { font-size: 18px; line-height: 1.6; font-weight: 600; letter-spacing: -0.01em; }
.summary2 { font-size: 15px; line-height: 1.7; color: var(--text-body); }
.gen-chart { position: relative; }
.gen-chart .bars { height: 210px; padding-top: 18px; gap: 10px; }
.gen-chart .xrow { display: flex; gap: 10px; margin-top: 4px; }
.gen-chart .xrow span { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--text-sub); }
.sales-line { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--select); pointer-events: none; }
.sales-line span { position: absolute; right: 0; top: -20px; font-size: 12px; font-weight: 700; color: #b8440a; background: #fff; padding: 0 4px; }
.mix-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: 13.5px; }
.mix-row .v { font-variant-numeric: tabular-nums; font-weight: 700; }
.mix-row .p { font-variant-numeric: tabular-nums; color: var(--text-sub); min-width: 44px; text-align: right; }
.maps2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.maps2 figure { display: flex; flex-direction: column; gap: 6px; }
.maps2 figcaption { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.prep { background: #fff; border: 1px dashed #b9c9c1; border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.prep h2 { font-size: 18px; }
.prep p { font-size: 14px; color: var(--text-body); }

/* 시뮬레이터 */
.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.q-btn { cursor: pointer; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; gap: 4px; min-height: 44px; }
.q-btn[aria-pressed="true"] { background: var(--primary-bg); border: 2px solid var(--primary); padding: 13px 15px; }
.q-btn .q { font-size: 15px; font-weight: 700; line-height: 1.4; }
.q-btn .c { font-size: 12px; color: var(--text-sub); }
.sim-controls { flex: 1 1 300px; max-width: 100%; padding: 20px; gap: 18px; }
.ctl-k { font-size: 13px; font-weight: 700; color: var(--text-body); }
.opt3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.opt { cursor: pointer; padding: 8px 6px; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text-body); font-size: 13px; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.opt small { font-size: 12px; font-weight: 400; }
.opt[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.dc-out { float: right; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.range { width: 100%; min-height: 44px; accent-color: var(--primary); margin: 0; }
.assume { border-top: 1px solid var(--bar-bg); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.assume-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 13px; }
.assume-grid .k { color: var(--text-sub); }
.assume-grid .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.adv { border-top: 1px solid var(--bar-bg); padding-top: 12px; }
.adv summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--primary); min-height: 32px; display: flex; align-items: center; }
.adv[open] { display: flex; flex-direction: column; gap: 10px; }
.adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.adv-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-sub); }
.adv-grid input { font: inherit; font-size: 14px; padding: 6px 8px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; width: 100%; font-variant-numeric: tabular-nums; }
.sim-result { border: 2px solid #8fbfae; }
.st-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.st-badge .dot { width: 10px; height: 10px; border-radius: 50%; }
.sim-head { font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.sim-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.sim-metrics > div { border: 1px solid var(--line-in); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sim-metrics .k { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.sim-metrics .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sim-metrics .u { font-size: 13px; color: var(--text-sub); margin-left: 3px; }
.sim-metrics .s { font-size: 12px; color: var(--text-sub); }
.sim-chart { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; }
.yaxis { position: relative; height: 240px; font-size: 11px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.yaxis span { position: absolute; right: 0; transform: translateY(-50%); }
.plot { position: relative; height: 240px; border-bottom: 1px solid #9aaba6; background: repeating-linear-gradient(to bottom, #eef3f0 0, #eef3f0 1px, transparent 1px, transparent 60px); }
.plot .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.plot .cols > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column-reverse; }
.plot .cols span { display: block; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.strip { display: flex; gap: 2px; }
.strip span { flex: 1 1 0; min-width: 0; height: 12px; border-radius: 2px; }
.zone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zone { border: 1px solid var(--line-in); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--card-soft); }
.zone.short { border-color: #a32d2d; background: #fcebeb; }
.zone .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.zone .n { font-size: 15px; font-weight: 800; }
.zone .r { font-size: 12px; color: var(--text-sub); }
.zone .q { display: flex; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.zone .net { font-size: 12.5px; font-weight: 700; }
.zone .flag { font-size: 12px; font-weight: 700; color: #a32d2d; }
.link-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 44px; align-items: center; gap: 8px; font-size: 12.5px; }
.link-row small { display: block; font-size: 12px; color: var(--text-sub); }
.link-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.howto { border: 1px solid #ecd6b8; background: #fbf6ee; border-radius: 12px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #4a3518; }
.howto .t { font-weight: 800; font-size: 14px; }

/* 정책·산업 */
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pol-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.pol-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pol-card .cat { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.pol-card h3 { font-size: 17px; line-height: 1.4; }
.pol-card .num { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pol-card .num b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); font-variant-numeric: tabular-nums; }
.pol-card .num span { font-size: 13px; color: var(--text-body); }
.pol-card p { font-size: 14px; color: var(--text-body); line-height: 1.6; }
.pol-card .foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--bar-bg); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--text-sub); }
.pol-card .rg { display: flex; flex-wrap: wrap; gap: 4px; }
.pol-card .rg span { background: var(--bar-bg); color: var(--text-body); padding: 1px 7px; border-radius: 4px; }
.st { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.issue-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.issue-title { font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; }
.issue-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.issue-nums > div { border: 1px solid var(--line-in); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.issue-nums .t { font-size: 12px; font-weight: 700; }
.issue-nums .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.issue-nums .k { font-size: 12px; color: var(--text-sub); }
.side { flex: 1 1 360px; border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.side--up { border: 1px solid var(--primary-line); background: #f6faf8; }
.side--down { border: 1px solid #ecd6b8; background: #fcf8f1; }
.side h3 { font-size: 16px; }
.side ul { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-body); line-height: 1.6; }
.div-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 50px 58px; align-items: center; gap: 10px; font-size: 13.5px; }
.div-bar { position: relative; height: 14px; display: block; }
.div-bar .axis { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #9aaba6; }
.div-bar .b { position: absolute; top: 0; height: 100%; border-radius: 2px; }
.div-row .d { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.div-row .v { text-align: right; color: var(--text-sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.reg-row { text-decoration: none; color: var(--text); display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; }
.reg-row:hover { color: var(--text); background: var(--bar-bg); border-radius: 6px; }
.reg-row .v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ach { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: 8px; }
.ach .bar { position: relative; height: 12px; background: var(--bar-bg); border-radius: 3px; display: block; overflow: hidden; }
.ach .bar span { position: absolute; left: 0; top: 0; height: 100%; border-radius: 3px; }
.ach .bar i { position: absolute; left: 66.6%; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .5; }
.ach .p { text-align: right; font-weight: 800; }
.goal-box { flex: 1 1 200px; border: 1px solid var(--line-in); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.goal-box .t { font-size: 12px; font-weight: 700; color: var(--gov-fg); }
.goal-box .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.goal-box .k { font-size: 12px; color: var(--text-sub); }

@media (max-width: 720px) {
  .issue-box { padding: 18px 16px; }
  .issue-title { font-size: 19px; }
  .div-row { grid-template-columns: 84px minmax(0, 1fr) 44px 44px; gap: 6px; font-size: 13px; }
  .pol-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  /* 촘촘한 막대(15~16개)는 휴대폰에서 합계 숫자가 붙으므로 하나 건너 하나와 마지막만 보인다 */
  .bars--dense .bar-col:nth-child(even):not(:last-child) > .bar-v { visibility: hidden; }
  .map-col { padding: 14px 10px !important; }
  .zone-grid { grid-template-columns: minmax(0, 1fr); }
  .zone-grid .zone { grid-column: auto !important; }
  .sim-head { font-size: 19px; }
  .sim-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header .in { padding: 10px 16px; gap: 6px 16px; }
  .nav a { padding: 8px 9px; }
  .nav-dd-btn { padding: 8px 9px; }
  .nav-dd-menu { right: auto; left: 0; }
  .page { padding: 22px 16px 44px; gap: 20px; }
  .card, .list-card { padding: 18px 16px; }
  .map-feature, .now-box { padding: 18px 16px; }
  .hero h1 { font-size: 30px; }
  .title-block h1 { font-size: 26px; }
  .rank-grid, .maps2, .two { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .kpi, .fact, .rkpi { padding: 12px; }
  .kpi-v b, .fact .kpi-v b, .rkpi .kpi-v b { font-size: 24px; }
  .bars--dense .bar-v { font-size: 9px; }
  .bars--dense .bar-x { font-size: 9.5px; }
  .bars--dense { gap: 2px !important; }
  .now-grid .kpi-v b { font-size: 24px; }
}

/* 자료실 */
.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 24px; }
.glossary > div { border-top: 1px solid var(--bar-bg); padding-top: 10px; }
.glossary dt { font-weight: 700; font-size: 14.5px; }
.glossary dd { margin: 4px 0 0; font-size: 13.5px; color: var(--text-body); line-height: 1.6; }

/* 지역에너지 화면 */
.hbar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 118px; align-items: center; gap: 10px; font-size: 14px; }
.hbar .track { height: 12px; }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.hbar small { color: var(--text-sub); font-weight: 400; }
.re-years { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 14px; border-top: 1px solid var(--line-in); padding-top: 10px; color: var(--text-sub); }
.re-years b { color: var(--text); font-variant-numeric: tabular-nums; }
.type-box { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.type-box .t { font-weight: 800; }
.type-box .t small { font-weight: 400; color: var(--text-sub); margin-left: 6px; font-size: 13px; }
.type-box .list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { cursor: pointer; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--text); }
.chip-btn small { color: var(--text-sub); font-weight: 400; }
.chip-btn.on { border-color: var(--select); background: #fdeee4; }
.donut { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.donut-svg { width: 200px; max-width: 100%; height: auto; flex: none; }
.donut-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1 1 150px; font-size: 13.5px; }
.donut-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 52px; align-items: center; gap: 8px; }
.donut-list .v { font-variant-numeric: tabular-nums; color: var(--text-body); }
.donut-list .p { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }

/* ---------- 슬라이드 틀 (body.deck): 스크롤은 평소대로, 장면 하나가 발표자료 한 장처럼 보이게 (사용자 공유 발표자료 형식, 2026-11-08)
   왼쪽 위 장 제목 알약(번호+제목)·오른쪽 위 쪽 번호 / 핵심 메시지 / 전체 폭 제목 띠 / 둥근 테두리 패널(가운데 위 알약 소제목, 왼쪽 아래 자료 출처) ---------- */
.deck main.page { gap: 34px; }
.deck .row:has(> .slide) { flex-direction: column; }
.deck .slide { position: relative; background: #ffffff; border: 1px solid #c9d6cf; border-radius: 4px; box-shadow: 6px 6px 0 #e3e8e4;
  padding: 0 30px 18px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 70px; }
.deck .slide.row { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
.deck .slide.row > .slide-head, .deck .slide.row > .slide-src { flex: 1 1 100%; }
.deck .slide.row > .card { border-color: var(--line-in); box-shadow: none; }
/* 장 제목 알약과 쪽 번호 */
.deck .slide-head { display: flex; justify-content: space-between; align-items: flex-start; margin: 0 -30px 2px; }
.deck .slide-head .ch { display: inline-flex; align-items: baseline; gap: 10px; background: var(--primary); color: #ffffff; font-size: 19px; font-weight: 800;
  padding: 10px 28px 11px 30px; border-radius: 0 0 28px 0; letter-spacing: -0.01em; }
.deck .slide-head .ch b { font-size: 22px; font-weight: 900; color: #bfe3d4; }
.deck .slide-head .no { padding: 8px 14px 0 0; font-size: 13px; color: #8a9a96; font-variant-numeric: tabular-nums; }
/* 핵심 메시지 → 제목 띠 순서 (카드 머리글 안에서 순서만 바꾼다) */
.deck .slide .head-row { position: relative; display: block; }
.deck .slide .head-row > .csv-btn { position: absolute; right: 0; top: 0; }
.deck .slide .card-top > .badge { order: 0; }
.deck .slide .card-top > .card-head { order: 1; font-size: 19px; font-weight: 700; padding: 2px 96px 0 30px; position: relative; color: var(--text); }
.deck .slide .card-top > .card-head::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 4px;
  background: var(--primary-bg); border: 2px solid var(--primary); }
.deck .slide .card-top > .card-k { order: 2; display: block; margin-top: 10px; background: var(--primary-dark); color: #ffffff; font-size: 16px; font-weight: 700;
  text-align: center; padding: 9px 12px; border-radius: 12px 12px 0 0; }
.deck .slide .card-top > .badge + .card-k { margin-top: 10px; }
/* 패널: 둥근 테두리, 가운데 위 알약 소제목, 왼쪽 아래 자료 출처 */
.deck .slide .panel { border: 2px solid #8fbfae; border-radius: 12px; padding: 30px 16px 12px; position: relative; margin-top: 18px; background: #ffffff; }
.deck .slide .panel > .ctl-k:first-child { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--primary);
  color: #fff7cc; font-size: 15px; font-weight: 800; padding: 6px 22px; border-radius: 999px; box-shadow: 2px 3px 0 rgba(0, 81, 63, 0.25); }
.deck .slide .panel-src, .deck .slide-src { font-size: 12px; color: var(--text-sub); margin: 6px 0 0; }
.deck .slide-src { margin-top: auto; padding-top: 6px; }
/* 패널이 없는 장의 그래프는 얇은 테두리 상자 */
.deck .slide [id$="-chart"]:not(.panel *), .deck .slide #map, .deck .slide #cx-map, .deck .slide [id$="-rows"], .deck .slide #rank, .deck .slide #type-groups {
  border: 1px solid var(--line-in); border-radius: 8px; padding: 12px 14px; }
.deck .slide--cover { min-height: 280px; gap: 16px; }
.deck .slide--cover h1 { font-size: 34px; margin-top: 18px; }
.deck .slide--cover .lead { font-size: 16px; max-width: 860px; }
.deck .section-title { padding: 6px 4px 0; }
@media (max-width: 720px) {
  .deck .slide { padding: 0 14px 14px; box-shadow: 3px 3px 0 #e3e8e4; }
  .deck .slide-head { margin: 0 -14px 2px; }
  .deck .slide-head .ch { font-size: 15px; padding: 8px 16px 9px 14px; }
  .deck .slide-head .ch b { font-size: 17px; }
  .deck .slide.row { display: flex; flex-direction: column; }
  .deck .slide .card-top > .card-head { font-size: 17px; padding-right: 0; }
  .deck .slide .head-row > .csv-btn { position: static; margin-top: 8px; }
  .deck .slide .panel { padding: 26px 8px 10px; }
}
.donut-list .k { white-space: nowrap; }
.donut { justify-content: center; }
.donut-svg { width: 100%; max-width: 440px; height: auto; flex: 1 1 auto; overflow: visible; }
/* 장 크기: 넓은 화면에서 A4 가로 비율(297:210)로 일정하게. 내용이 더 길면 그만큼만 늘어난다 (사용자 요청 2026-11-08) */
@media (min-width: 721px) {
  .deck .slide { aspect-ratio: 297 / 210; }
  .deck .slide #map { max-width: 300px !important; }
  .deck .slide.row > .card { padding: 16px 18px !important; gap: 10px; }
  .deck .slide #metric-pills .pill { min-height: 36px; padding: 5px 11px; }
}
/* 장 제목 알약: 지역 이름은 밝은 작은 알약으로 따로, 장 제목은 흰 글씨 (사용자 요청 2026-11-10: 둘이 구분되게) */
.deck .slide-head .ch .sep { display: none; }
.deck .slide-head .ch .rname { align-self: center; background: #e3f1ea; color: var(--primary-dark); font-size: 15px; font-weight: 800; line-height: 1.2;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0; white-space: nowrap; }
.deck .slide-head .ch .rname:empty { display: none; }
@media (max-width: 720px) { .deck .slide-head .ch .rname { font-size: 12.5px; padding: 3px 9px; } }
.deck .slide-desc { font-size: 13.5px; color: var(--text-sub); margin: -6px 0 0; }
/* 다른 화면 슬라이드 틀 (2026-11-09) */
.deck .section-title { display: none; }                         /* 장 제목 알약이 대신한다 */
.deck .slide.row > .card { flex: 1 1 420px; }
.deck .slide.issue-box, .deck .slide.howto, .deck .slide.stack { border-radius: 4px; }
.deck .slide.stack > h2:first-of-type, .deck .slide.stack > .head-row:first-of-type h2 { font-size: 20px; }
.deck .sim-controls { align-self: flex-start; }
.deck .row:has(> .slide) > .slide { flex: 0 0 auto; width: 100%; }   /* 세로로 쌓인 장이 flex 기준 크기 때문에 높이가 바뀌지 않게 */
@media (max-width: 720px) {   /* 휴대폰: 한 장 안에 두 카드가 있는 장은 위아래로, 가로로 넘치지 않게 */
  .deck .slide.row > .card, .deck .slide.row > .f { flex: none !important; width: 100%; min-width: 0; }
  .deck .slide.row > .slide-head, .deck .slide.row > .slide-src { flex: none; }
}
.badge--outline { white-space: normal; max-width: 100%; }   /* 긴 설명 배지는 좁은 화면에서 줄바꿈 */
/* 자료 성격 배지는 장 오른쪽 위 (2026-11-09) */
.deck .slide-head { gap: 12px; }
.deck .slide-head .tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 12px 18px 0 0; }
.deck .slide .fact .kpi-top .badge { display: none; }            /* 한눈에 보기 칸마다 붙던 '실적'은 장 배지 하나로 */
@media (max-width: 720px) {
  .deck .slide-head { flex-wrap: wrap; }
  .deck .slide-head .tags { padding: 8px 10px 0 0; }
}
/* 헤드메시지 (사용자 요청 2026-11-09): 발표자료 16pt 정도 = 장 폭의 약 2.05% (A4 가로 슬라이드 폭 약 780pt 기준).
   장 폭 1152px이면 약 24px. 좁은 화면에서도 17px 아래로는 줄이지 않는다 */
.deck .slide { container-type: inline-size; }
.deck .slide .card-top > .card-head, .deck .slide-msg { font-size: 22px; font-size: clamp(17px, 2.15cqi, 26px); line-height: 1.4; font-weight: 800; letter-spacing: -0.015em; }
.deck .slide .card-top > .card-head::before, .deck .slide-msg::before { top: calc(0.7em - 8px); }
.deck .slide-msg { position: relative; margin: 0; padding: 2px 0 0 30px; color: var(--text); }
.deck .slide-msg::before { content: ""; position: absolute; left: 4px; width: 16px; height: 16px; border-radius: 4px; background: var(--primary-bg); border: 2px solid var(--primary); }
.deck .slide.row > .slide-msg, .deck .slide.row > .slide-desc { flex: 1 1 100%; }
/* 개조식 목록 */
.bul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.bul > li { position: relative; padding-left: 14px; }
.bul > li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.bul .bul { margin-top: 3px; }
ul.slide-desc { margin: -6px 0 0; }
.sum-k { font-size: 15px; font-weight: 800; color: var(--primary-dark); margin: 0; }
#sum2 .bul { font-size: 15.5px; line-height: 1.55; color: var(--text-body); gap: 8px; }
.notes .bul { gap: 6px; }
@media (max-width: 720px) {
  .deck .slide-msg { padding-left: 26px; }
}
@media (min-width: 721px) {   /* 장 아래 주석 목록은 두 단으로 (A4 높이 안에 들도록) */
  .deck .slide .note-sm > .bul { display: block; columns: 2; column-gap: 32px; }
  .deck .slide .note-sm > .bul > li { break-inside: avoid; margin-bottom: 3px; }
}
.deck .slide .card-top > .slide-desc.in-top { order: 1; margin: 6px 0 0 30px; }   /* 헤드메시지(order 1) 다음, 제목 띠(order 2) 앞 */
@media (max-width: 720px) { .deck .slide .card-top > .slide-desc.in-top { margin-left: 0; } }

/* 지역에너지 추가 장 (2026-11-09): 부문 안의 에너지원, 용도별 비교, 유형 변화(점-선) */
.ss-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; }
.ss-row .k { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ss-row .k small { font-size: 12.5px; color: var(--text-sub); }
.ss-row .band { height: 56px; }
.ss-row .band > span { font-size: 13px; }
.deck .slide #ss-rows { gap: 26px !important; margin: 8px 0 6px; }
.cmp-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) 118px; gap: 10px; align-items: center; font-size: 14px; }
.cmp-row .bars2 { display: flex; flex-direction: column; gap: 3px; }
.cmp-row .bars2 .track { height: 10px; }
.cmp-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-row .v small { color: var(--text-sub); }
.deck .slide #eu-rank .rank-row { min-height: 34px; padding: 3px 8px; }
.db-wrap { display: flex; flex-direction: column; gap: 2px; }
.db-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 190px; gap: 12px; align-items: center; padding: 2px 8px; min-height: 27px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.db-row:hover { background: var(--bar-bg); }
.db-row.on { background: #fdeee4; }
.db-row.on .nm { font-weight: 800; }
.db-row.nat { border-top: 1px solid var(--line-in); border-radius: 0; margin-top: 4px; padding-top: 6px; }
.db-row .db { position: relative; height: 16px; border-radius: 3px;
  background: linear-gradient(to right, #f7efe5 0 30%, #e9f3ef 30% 60%, #d4e6de 60% 100%); }
.db-row .db .ln { position: absolute; top: 7px; height: 2px; background: #7d908a; }
.db-row .db .d0, .db-row .db .d1 { position: absolute; top: 3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; }
.db-row .db .d0 { background: #ffffff; border: 2px solid #7d908a; box-sizing: border-box; }
.db-row .db .d1 { background: #00513f; }
.db-row.on .db .d1 { background: #e8590c; }
.db-row .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-row .v small { color: var(--text-sub); }
.db-axis { cursor: default; min-height: 18px; }
.db-axis:hover { background: transparent; }
.db--axis { background: none !important; height: 14px !important; }
.db--axis i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--text-sub); }
.db--axis i:last-child { transform: translateX(-100%); }
@media (max-width: 720px) {
  .ss-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cmp-row { grid-template-columns: 58px minmax(0, 1fr) 104px; font-size: 13px; }
  .db-row, .deck .slide .db-row { grid-template-columns: 32px minmax(0, 1fr) 82px; gap: 6px; font-size: 12px; padding: 2px 2px; min-height: 30px; }
  .db-row .v small { display: block; font-size: 10.5px; white-space: normal; line-height: 1.2; }
  .db-row .v { white-space: normal; }
}
/* A4 높이 맞춤 (2026-11-09 추가 장) */
.deck .slide #eu-rank .rank-row { min-height: 30px; padding: 2px 8px; }
.deck .slide .db-row { min-height: 20px; padding: 0 8px; font-size: 13px; }
.deck .slide .db-wrap { gap: 1px; }
.deck .slide #metric-pills .pill { padding: 5px 10px; font-size: 13px; }

/* 지역 목록 (지역에너지, 2026-11-09 사용자 요청): 슬라이드 바깥에 전국+17개 시도를 모두 늘어놓고 화면을 따라다니게 한다 */
.region-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rr-k { font-size: 12px; font-weight: 700; color: var(--text-sub); margin-right: 2px; }
.rr-btn { cursor: pointer; min-height: 30px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-body);
  font-size: 13px; font-weight: 600; text-align: center; }
.rr-btn:hover { border-color: var(--primary); color: var(--primary); }
.rr-btn.on { background: #e8590c; border-color: #e8590c; color: #fff; }
@media (min-width: 1100px) {
  .region-rail { position: fixed; z-index: 25; top: 86px; left: max(10px, calc(50vw - 600px - 108px)); width: 96px; max-height: calc(100vh - 98px); overflow-y: auto;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; padding: 10px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 2px 10px rgba(24, 45, 48, 0.08); scrollbar-width: thin; }
  .rr-k { text-align: center; margin: 0 0 2px; }
  .rr-btn { min-height: 28px; padding: 0 6px; }
  /* 화면 폭이 1,460px보다 좁으면 목록 자리만큼 본문을 오른쪽으로 민다 */
  body.has-rail .page { padding-left: max(24px, calc(130px - max(0px, (100vw - 1200px) / 2))); }
  body.has-rail .site-footer { padding-left: calc(max(10px, 50vw - 708px) + 112px); }   /* 바닥글은 화면 전체 폭이라 목록 오른쪽부터 */
}
@media (max-width: 1099px) {
  body.has-rail .region-rail { position: sticky; top: 0; z-index: 25; padding: 8px 0; background: var(--page); border-bottom: 1px solid var(--line); }
  body.has-rail .jump { position: static; }
}
@media (max-width: 720px) {
  .rr-btn { min-height: 30px; padding: 0 7px; font-size: 12.5px; }
}

.cmp-wrap { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.cmp-map { flex: 0 1 470px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmp-map #map { width: 100%; }
.cmp-rank { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rank-1col { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
.rank-1col .rank-row { min-height: 24px; padding: 0 8px; font-size: 14px; }
@media (min-width: 721px) {
  .deck .slide .cmp-map #map, .deck .slide .cmp-map #cx-map { max-width: min(388px, 35.5cqi) !important; }   /* 슬라이드 폭에 맞춰 함께 줄어듦 (지역 여건 #cx-map 2026-11-16) */
}
@media (max-width: 720px) {
  .rank-1col .rank-row { min-height: 36px; }
}

/* 6번 장: 부문 및 에너지원별 (고양시 발표자료 27쪽 형식, 2단 면적 그림) */
.tm { position: relative; width: 100%; }
/* 바깥(부문) 상자: 굵은 회색 점선으로 묶는다 (사용자 요청 2026-11-09). 상자끼리는 점선 사이 4px 틈 */
.tm-box { position: absolute; box-sizing: border-box; background: #ffffff; display: flex; flex-direction: column; padding: 0 8px 8px; overflow: hidden; }
.tm-box::before { content: ""; position: absolute; inset: 2px; border: 3px dashed #7a8783; border-radius: 6px; pointer-events: none; z-index: 1; }
.tm-k { flex: 0 0 31px; display: block; line-height: 32px; padding: 0 4px; font-size: 13.5px; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-k b { color: var(--text); font-weight: 800; font-size: 15.5px; margin-right: 2px; }
.tm-in { position: relative; flex: 1 1 auto; background: #ffffff; border-radius: 3px; overflow: hidden; }
.tm-c { position: absolute; box-sizing: border-box; border: 1px solid #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 14px; font-weight: 700; line-height: 1.15; overflow: hidden; text-align: center; padding: 1px; white-space: nowrap; }
.tm-c b { font-size: 15px; font-weight: 800; }
.tm-c--row b { font-size: inherit; }
.tm-c em { font-style: normal; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.tm-c--row { flex-direction: row; gap: 0.3em; }
.tm--list { display: flex; flex-direction: column; gap: 8px; }
.tm--list .tm-box { position: relative; height: 200px; }
.deck .slide #ss-rows { border: 0 !important; padding: 0 !important; }

/* 1번 장: 한눈에 보는 현황판 (2026-11-09) — 위 큰 카드 4개, 아래 비중 띠 2개 */
.hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero { cursor: pointer; text-align: left; font: inherit; color: var(--text); background: #ffffff; border: 1px solid var(--line); border-top: 6px solid var(--hc);
  border-radius: 14px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero:hover { border-color: var(--hc); box-shadow: 0 4px 14px rgba(24, 45, 48, 0.10); }
.hero[aria-pressed] { padding: 16px 18px 14px; }
.hero .h-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hero .h-k { font-size: 16px; font-weight: 800; }
.hero .h-y { font-size: 12.5px; font-weight: 600; color: var(--text-sub); white-space: nowrap; }
.hero .h-v { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hero .h-v b { font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--hc); font-variant-numeric: tabular-nums; }
.hero .h-v span { font-size: 15px; font-weight: 600; color: var(--text-sub); }
.hero .h-pill { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--hc); background: color-mix(in srgb, var(--hc) 10%, #ffffff); padding: 3px 10px; border-radius: 999px; }
.hero .h-viz { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 70px; color: var(--hc); }
.hero .h-foot { font-size: 14.5px; font-weight: 700; color: var(--text-body); border-top: 1px solid var(--line-in); padding-top: 8px; }
.hspark { flex: 1 1 auto; display: flex; flex-direction: column; width: 100%; }
.hspark-plot { position: relative; flex: 1 1 auto; min-height: 56px; }
.hspark-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hspark-plot i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; }
.hspark-plot i.o { background: #ffffff; border: 2px solid currentColor; box-sizing: border-box; }
.hspark-x { position: relative; height: 18px; font-size: 12px; color: var(--text-sub); }
.hspark-x span { position: absolute; top: 3px; transform: translateX(-50%); white-space: nowrap; }
.hspark-x span:first-child { transform: none; left: 0 !important; }
.hspark-x span:last-child { transform: none; left: auto !important; right: 0; }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; width: 100%; flex: 1 1 auto; min-height: 70px; }
.mini-bars > span { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.mini-bars i { display: block; width: 70%; max-width: 46px; background: currentColor; border-radius: 4px 4px 0 0; opacity: 0.55; }
.mini-bars > span:last-child i { opacity: 1; }
.mini-bars small { font-size: 12px; color: var(--text-sub); }
.mini-bars b { font-size: 13px; font-weight: 800; color: var(--hc); }
.mix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mix { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mix-k { font-size: 16px; font-weight: 800; }
.mix-k small { font-size: 12.5px; font-weight: 600; color: var(--text-sub); margin-left: 4px; }
.mix .band { height: 56px; border-radius: 8px; }
.mix .band > span { font-size: 14.5px; }
.mix-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-body); }
.mix-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
@media (min-width: 721px) {
  .deck .slide.sum-slide { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 16px; }
  .deck .slide.sum-slide > * { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-grid > .hero:nth-child(3) { grid-column: 1 / -1; }
  .hero { padding: 12px 12px 10px; }
  .hero .h-v b { font-size: 30px; }
  .mix-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 두 패널이 나란한 장(2·4·5·9번): 왼쪽·오른쪽 상자 위아래를 맞춘다 (사용자 요청 2026-11-09). 그림은 상자 가운데, 자료 줄은 맨 아래 */
.panels-eq { align-items: stretch; }
.panels-eq > .panel > .panel-src { margin-top: auto; }
.panels-eq > .panel > [id$="-pie"] { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.panels-eq > .panel > [id$="-pie"] > .donut { width: 100%; }

/* 1번 장 카드 순위: 지역 이름 + 17칸 위치 띠 (2026-11-09) */
.hero .h-rank { display: flex; flex-direction: column; gap: 5px; }
.hero .h-rank .t { display: flex; flex-direction: column; gap: 1px; font-size: 14px; color: var(--text-body); line-height: 1.3; }
.hero .h-rank .t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .h-rank .t b { font-weight: 800; color: var(--text); }
.hero .h-rank .t em { font-style: normal; font-weight: 800; font-size: 17px; color: var(--hc); }
.hero .h-rank .strip { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 2px; height: 10px; }
.hero .h-rank .strip i { background: color-mix(in srgb, var(--hc) 14%, #ffffff); border-radius: 2px; }
.hero .h-rank .strip i.on { background: var(--hc); transform: scaleY(1.6); }
.hero .h-rank .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-sub); margin-top: -2px; }

/* 1번 장 순위 띠: 칸마다 시도 이름 (세로 두 글자) — 2026-11-10 */
.hero .h-rank .strip--names { height: auto; gap: 2px; align-items: stretch; }
/* 칸 높이 = 줄 수(--n) × 글자 높이(em) + 위아래 여백: 글자가 커져도 칸이 같이 커지고 글자는 가운데 (사용자 요청 2026-11-11) */
.hero .h-rank .strip--names i { display: flex; align-items: center; justify-content: center; padding: 5px 0; box-sizing: border-box; font-size: 11px; min-height: calc(var(--n, 2) * 1.12em + 10px); color: #4d5c58; overflow: hidden; }
.hero .h-rank .strip--names i span { display: block; height: auto; flex: none; text-align: center; font-size: 1em; font-weight: 600; line-height: 1.12; letter-spacing: 0; font-style: normal; white-space: nowrap; }
.hero .h-rank .strip--names i.on { transform: none; color: #ffffff; box-shadow: 0 0 0 2px var(--hc); }
.hero .h-rank .strip--names i.on span { font-weight: 800; }
.hero .h-rank .strip--full i { font-size: 11.5px; }   /* 시군구 9곳 이하: 이름 전체 한 줄 */
.hero .h-rank .strip--full i span { letter-spacing: -0.3px; }
.hero .h-rank .strip--vert i { font-size: 10.5px; }   /* 시군구 10곳 이상: 한 글자씩 세로로 */
.stack-bar > span { white-space: nowrap; line-height: 1; }
@media (max-width: 720px) {
  .hero .h-rank .strip--names i { min-height: 10px; padding: 0; }
  .hero .h-rank .strip--names i span { display: none; }
}

/* 장 크기 맞추기 (2026-11-10): body.deck-zoom이면 장을 설계 폭 1152px로 그리고 --deck-z 비율로 줄인다 (common.js K.deckZoom) */
/* 본문 전체 폭 장만 줄인다. 시뮬레이터처럼 옆 칸 안에 든 장은 그대로 */
body.deck.deck-zoom main.page > .slide, body.deck.deck-zoom main.page > .row > .slide { width: 1152px !important; max-width: none; zoom: var(--deck-z, 1); }
body.deck.deck-zoom .row:has(> .slide) { align-items: flex-start; }

/* 장 제목 '큰 갈래|작은 갈래': 작은 갈래는 세로줄 뒤 연한 초록 글씨 (2026-11-10) */
.deck .slide-head .ch .t2 { color: #bfe3d4; font-weight: 700; padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, 0.45); line-height: 1.1; }

/* 6번 장 신재생 막대: 칸 안에 '에너지원 비중%' (2026-11-10) */
.deck .slide #re-chart .stack-bar > span { font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; padding: 0 4px; }

/* 2번 장 '지역 유형': 그래프 위 전기 설명, 유형 눈금 줄, 30%·60% 점선 (사용자 요청 2026-11-10)
   줄 칸: 상자 안쪽 여백 14 + 줄 여백 8 + 순위 24 + 10 + 이름 40 + 10 = 106px, 오른쪽 10 + 값 76 + 8 + 14 = 108px */
.rank-top { margin: 0; font-size: 15px; color: var(--text); line-height: 1.4; background: #eef5f1; border-left: 4px solid var(--primary); padding: 4px 10px; border-radius: 4px; }
.rank-top b { font-weight: 800; color: var(--primary-dark); }
.rank--type { position: relative; }
.rank--type .rank-scale { cursor: default; min-height: 26px !important; }
.rank-1col.rank--type button.rank-row { min-height: 22px; }
.rank--type .rank-scale:hover { background: transparent; }
.rank--type .rank-scale .sc { position: relative; height: 26px; }
.rank--type .rank-scale .z { position: absolute; top: -1px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-body); white-space: nowrap; }
.rank--type .rank-scale .tk { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 11.5px; font-weight: 800; color: #4d5c58; background: #ffffff; padding: 0 3px; }
.rank--type .rk-guide { position: absolute; top: 36px; bottom: 12px; left: calc(106px + (100% - 214px) * var(--p)); border-left: 2px dashed rgba(43, 52, 54, 0.5); pointer-events: none; z-index: 1; }

/* 3·4번 장 하위 장: 소비가 없는 지역 안내 (2026-11-10) */
.sub-empty { margin: 40px 0; text-align: center; color: var(--text-sub); font-size: 15px; }

/* 하위 장 제목 세 번째 단계: 세로줄 뒤 흰 굵은 글씨 (예: 최종에너지 소비 | 부문별 | 산업 부문, 2026-11-10) */
.deck .slide-head .ch .t3 { color: #ffffff; font-weight: 800; padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, 0.45); line-height: 1.1; }
.deck .slide-head .ch .t4 { color: #ffd9a8; font-weight: 800; padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, 0.45); line-height: 1.1; }   /* 네 번째 단계 (예: 업종별 | 제조업) */
@media (max-width: 720px) { .deck .slide-head .ch { flex-wrap: wrap; row-gap: 4px; max-width: 100%; box-sizing: border-box; } }   /* 휴대폰: 긴 장 제목은 알약 안에서 줄바꿈 */

/* 쪽 번호: 장 오른쪽 맨 아래, 회색 조금 굵게 (사용자 요청 2026-11-10) */
.deck .slide > .slide-no { position: absolute; right: 16px; bottom: 6px; font-size: 13px; font-weight: 700; color: #8a9a96; font-variant-numeric: tabular-nums; pointer-events: none; }
.deck .slide { position: relative; }

/* 지역 유형 장: 지역마다 산업용 비중 막대 줄 (2026-11-10) */
.type-box .list { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
.type-row { cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) 42px; gap: 8px; align-items: center; min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px;
  background: transparent; font: inherit; font-size: 14px; color: var(--text); text-align: left; }
.type-row:hover { background: var(--bar-bg); }
.type-row.on { background: #fdeee4; }
.type-row .nm { font-weight: 600; }
.type-row.on .nm { font-weight: 800; }
.type-row .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.deck .slide #type-groups { align-items: stretch; }

/* 03 에너지 생산: 전력자립도 막대의 100% 기준선 (2026-11-10) */
.ref-wrap { position: relative; }
.ref-wrap .ref100 { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(43, 52, 54, 0.55); pointer-events: none; }
.ref-wrap .ref100 i { position: absolute; right: 0; top: -17px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #4d5c58; background: #ffffff; padding: 0 3px; }

/* 참고 장(data-ref): 바탕을 연한 베이지로 구분 (사용자 요청 2026-11-10). 안의 판·목록은 흰 바탕 그대로 */
.deck .slide[data-ref] { background: #f7f4ec; border-color: #d9d1bd; box-shadow: 6px 6px 0 #ebe5d6; }
.deck .slide[data-ref] #eu-rank, .deck .slide[data-ref] #type-groups, .deck .slide[data-ref] #tc-chart { background: #ffffff; }

/* 용도별 비중: 겹친 막대 (전국 굵게·연하게, 지역 가늘게·진하게), 판 높이를 채우도록 줄 간격을 고르게 (2026-11-10) */
#eu-cmp { flex: 1 1 auto; display: flex; flex-direction: column; }
.cmp-ov { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.cmp-row--ov { grid-template-columns: 70px minmax(0, 1fr) 124px; font-size: 15px; }
.cmp-row--ov .k { font-weight: 700; }
.cmp-row--ov .ov { position: relative; height: 30px; background: var(--bar-bg); border-radius: 4px; }
.cmp-row--ov .ov .n { position: absolute; left: 0; top: 0; bottom: 0; background: #b9d8cc; border-radius: 4px; }
.cmp-row--ov .ov .r { position: absolute; left: 0; top: 50%; height: 12px; margin-top: -6px; background: #e8590c; border-radius: 3px; }
.cmp-row--ov .v b { font-size: 16px; }
.sw.sw--thick { height: 14px; width: 18px; }
.sw.sw--thin { height: 6px; width: 18px; }
@media (max-width: 720px) { .cmp-row--ov { grid-template-columns: 58px minmax(0, 1fr) 104px; font-size: 13px; } .cmp-row--ov .ov { height: 24px; } }

/* 지역 유형 변화: 시작점(빈 원) → 화살표 (사용자 요청 2026-11-10) */
.db-row .db .ln { top: 6.5px; height: 3px; border-radius: 2px; }
.db-row .db .ln.dn { background: #3d6c9e; }
.db-row .db .ln.up { background: #c98e4e; }
.db-row .db .ln::after { content: ""; position: absolute; top: -4.5px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.db-row .db .ln.dn::after { left: -6px; border-right: 9px solid #3d6c9e; }
.db-row .db .ln.up::after { right: -6px; border-left: 9px solid #c98e4e; }
.db-row.on .db .ln.dn, .db-row.on .db .ln.up { background: #e8590c; }
.db-row.on .db .ln.dn::after { border-right-color: #e8590c; }
.db-row.on .db .ln.up::after { border-left-color: #e8590c; }
.db-row .db .d0 { z-index: 1; width: 12px; height: 12px; margin-left: -6px; top: 2px; border: 2.5px solid #4d5c58; }
.db-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-body); padding: 0 8px 6px 70px; }
.db-legend .lg0 { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #4d5c58; background: #fff; box-sizing: border-box; }
.db-legend .lgdn, .db-legend .lgup { width: 26px; height: 3px; margin-left: 10px; position: relative; }
.db-legend .lgdn { background: #3d6c9e; } .db-legend .lgup { background: #c98e4e; }
.db-legend .lgdn::before { content: ""; position: absolute; left: -6px; top: -4.5px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 9px solid #3d6c9e; }
.db-legend .lgup::after { content: ""; position: absolute; right: -6px; top: -4.5px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #c98e4e; }
@media (max-width: 720px) { .db-legend { padding-left: 4px; } }
/* 지역 유형 변화: 범례 줄이 생겨 줄 높이를 조금 줄임 (fillRows가 남는 공간을 다시 채운다) */
.db-row { min-height: 24px; }
.db-legend { padding-bottom: 2px; }

/* 목차 (지역에너지 화면): 장 번호 알약 + 그 장의 소제목 링크를 한 묶음으로 (2026-11-10) */
.jump.toc { gap: 8px; align-items: center; }
.jump.toc .toc-g { flex: 0 0 auto; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #ffffff; padding: 3px 6px 3px 3px; }
.jump.toc a { min-height: 30px; border: 0; background: transparent; border-radius: 999px; }
.jump.toc a.toc-ch { background: var(--primary); color: #ffffff; font-size: 13.5px; font-weight: 800; padding: 0 12px 0 10px; gap: 6px; }
.jump.toc a.toc-ch b { color: #bfe3d4; font-weight: 900; }
.jump.toc a.toc-ch:hover { background: var(--primary-dark); color: #ffffff; }
.jump.toc a.toc-s { font-size: 13px; font-weight: 600; color: var(--text-body); padding: 0 9px; }
.jump.toc a.toc-s + a.toc-s { border-left: 1px solid var(--line); border-radius: 0; }
.jump.toc a.toc-s:hover { color: var(--primary); }
.jump.toc { gap: 6px; flex-wrap: wrap; overflow: visible; row-gap: 6px; }
.jump.toc a.toc-s { padding: 0 7px; }
.jump.toc a.toc-ch { padding: 0 10px 0 9px; }
@media (max-width: 720px) { .jump.toc { flex-wrap: nowrap; overflow-x: auto; } }

/* 시군구 보기 (2026-11-10): 지역 목록 ▸ / 펼친 시군구 목록, 시도 비교 장은 지도 없이 순위만 */
.region-rail .rr-row { display: flex; align-items: center; gap: 2px; width: 100%; }
.region-rail .rr-row .rr-btn { flex: 1 1 auto; min-width: 0; }
.region-rail .rr-x { flex: 0 0 20px; height: 26px; border: 0; background: transparent; color: var(--text-sub); font-size: 13px; cursor: pointer; border-radius: 4px; padding: 0; }
.region-rail .rr-x:hover, .region-rail .rr-x[aria-expanded="true"] { color: var(--primary); background: var(--bar-bg); }
.region-rail .rr-sub { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 2px 0 6px 8px; border-left: 2px solid var(--line); margin: 0 0 4px 6px; box-sizing: border-box; }
.region-rail .rr-g { border: 0; background: transparent; text-align: left; font: inherit; font-size: 12.5px; color: var(--text-body); padding: 3px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.region-rail .rr-g:hover { background: var(--bar-bg); color: var(--primary); }
.region-rail .rr-g.on { background: #e8590c; color: #ffffff; font-weight: 800; }
.region-rail .rr-btn.on--parent { background: #fdeee4; color: #b4440a; border-color: #e8590c; }
/* 시군구 보기에서도 왼쪽에 지도(그 시도의 시군구 경계, 사용자 요청 2026-11-10) */
body.sgg-mode #metric-pills [data-metric="perCapita"], body.sgg-mode #metric-pills [data-metric="perGrdp"], body.sgg-mode #metric-pills [data-metric="type"] { display: none; }
@media (max-width: 1099px) { .region-rail .rr-row { width: auto; } .region-rail .rr-sub { flex-direction: row; flex-wrap: wrap; border-left: 0; margin: 0; padding: 4px 0; } }
body.sgg-mode .rank-1col .rank-row { grid-template-columns: 24px 64px minmax(0, 1fr) 84px; }
.rank-1col.rank-2col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; grid-auto-flow: column; gap: 0 18px !important; }
@media (max-width: 720px) { .rank-1col.rank-2col { grid-template-columns: minmax(0, 1fr) !important; grid-auto-flow: row; } }

/* 목차: 지금 보는 장의 묶음은 둘레가 은은하게 빛나고, 소제목은 진하게 (사용자 요청 2026-11-10). 넓은 화면에서도 목차를 위에 붙여 둔다 */
body.has-rail .jump.toc { position: sticky; top: 0; z-index: 20; }
.jump.toc .toc-g { transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.jump.toc .toc-g.on { border-color: #7fb8a2; background: #f1f8f4; box-shadow: 0 0 0 3px rgba(0, 81, 63, 0.14), 0 0 14px 2px rgba(0, 81, 63, 0.22); }
.jump.toc a.toc-s.on { background: #dcefe6; color: var(--primary-dark); font-weight: 800; border-radius: 999px; }
.jump.toc a.toc-s.on + a.toc-s, .jump.toc a.toc-s + a.toc-s.on { border-left-color: transparent; }

/* 지역 유형 변화 산포도 (사용자 요청 2026-11-11: 가로 주거용 × 세로 산업용, 고양시 발표자료 31쪽 형식) */
#tc-chart { display: flex; flex-direction: column; gap: 6px; border-radius: 12px; padding: 10px 12px 6px; }
#tc-chart .tc-svg { width: 100%; height: auto; display: block; }
#tc-chart .tc-pt:hover line { stroke-width: 4; }
#tc-chart .tc-legend { padding-left: 74px; }
.tc-legend .lgon { display: inline-block; width: 22px; height: 3px; background: #e8590c; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: middle; }

/* 전력수급 새 장 (2026-11-11): 시간 패턴 색 지도·계절 곡선, 이용률 줄, 지역 간 수급 막대 */
.hp-svg { width: 100%; height: auto; display: block; }
.cu-rows, .rb-rows { display: flex; flex-direction: column; gap: 4px; }
.cu-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 96px; gap: 10px; align-items: center; min-height: 30px; font-size: 14px; }
.cu-row .track, .rb-row .track { position: relative; height: 14px; background: #eef3f0; border-radius: 3px; }
.cu-row .track .b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.cu-row .track .o { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid #33423e; border-radius: 50%; background: #ffffff; box-sizing: border-box; }
.cu-row .v { text-align: right; } .cu-row .v small, .rb-row .s { color: var(--text-sub); font-size: 12px; }
.cu-axis, .rb-axis { min-height: 18px; } .cu-axis .track, .rb-axis .track { background: none; height: 14px; }
.cu-axis i, .rb-axis i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 11.5px; color: var(--text-sub); white-space: nowrap; }
.cu-axis i:first-child, .rb-axis i:first-child { transform: none; } .cu-axis i:last-child, .rb-axis i:last-child { transform: translateX(-100%); }
.rb-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 58px 88px; gap: 10px; align-items: center; font-size: 13px; line-height: 16px; }
.rb-row .track { height: 12px; }
.rb-row .track { background: linear-gradient(90deg, transparent calc(50% - 1px), #9fb3ac calc(50% - 1px), #9fb3ac calc(50% + 1px), transparent calc(50% + 1px)), #f4f7f5; }
.rb-row .track .b { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.rb-row .v { text-align: right; font-weight: 800; } .rb-row .v.p { color: #00513f; } .rb-row .v.m { color: #b4440a; }
.rb-row .s { text-align: right; }
.deck .slide #rb-map .map-svg { max-width: 262px; margin: 0 auto; display: block; }
.rb-rows { gap: 2px; }

/* 전력 화면 (2026-11-11 합침): 지역 간 수급 막대에서 고른 시도, 누르면 그 시도로 */
.rb-row { cursor: pointer; border-radius: 4px; }
.rb-row:hover { background: var(--bar-bg); }
.rb-row.on { background: #fdeee4; box-shadow: inset 0 0 0 2px #e8590c; }
.rb-row.on .k { font-weight: 800; }

/* 전력 시도 비교: 지표 뜻·'누르면 바뀜' 안내는 그래프 아래 작은 글씨 (2026-11-11) */
.rank-hint { font-size: 12px; color: var(--text-sub); margin: 0; }

/* 목차로 이동할 때 위에 붙은 목차·지역 목록 높이만큼 비움 (common.js tocOffset, 2026-11-11) */
.deck main .slide { scroll-margin-top: calc(var(--stick-h, 56px) + 14px); }

/* 전력수급 시도 요약: 전력자립도 10년 추이는 두 칸을 다 씀 (2026-11-11) */
.mix-grid > .self-trend { grid-column: 1 / -1; }
.self-trend .bars--dense .bar-v, .self-trend .bar-v { font-size: 11px; }
.self-trend { padding: 10px 18px; gap: 6px; }

/* 전력수급 전국 요약: 그림 카드 4장 (2026-11-11) */
.hero-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-grid.g4 .hero { cursor: default; }
.hero-grid.g4 .hero .h-v b { font-size: 42px; }
.mini-bars > span.on i { opacity: 1; }
.hero-grid.g4 .mini-bars { gap: 4px; }
.hero-grid.g4 .mini-bars b { font-size: 12px; white-space: nowrap; }
.hero-grid.g4 .mini-bars small { font-size: 11px; }
@media (max-width: 720px) { .hero-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-grid.g4 > .hero:nth-child(3) { grid-column: auto; } }
.hero-grid.g4 .mini-bars > span:last-child:not(.on) i { opacity: 0.55; }

/* 오늘 발전원별 그래프 (2026-11-11) */
.mix-svg { width: 100%; height: auto; display: block; }

/* 전력량 흐름 생키 (2026-11-12) */
.sankey-svg { display: block; overflow: visible; font-weight: 600; }

/* 송배전: 2025년 전기가 지나는 길 (2026-11-12) */
.gl-flow { display: flex; flex-direction: column; gap: 6px; }
.gl-step { display: grid; grid-template-columns: 5.2em 1fr; align-items: baseline; gap: 2px 10px; padding: 6px 10px; border-radius: 6px; background: #f3f6f4; }
.gl-step b { font-size: 1.05em; text-align: right; color: #b4440a; }
.gl-step span { font-size: .92em; }
.gl-step em { grid-column: 2; font-style: normal; font-size: .82em; color: #5d6d69; }
.gl-step--main { background: #e6f1ec; }
.gl-step--main b { color: #00513f; }

/* 정책 글 (블로그) — 2026-11-12 */
.pol-card--post { position: relative; border-color: #b9d6ca; }
.pol-card--post:hover { box-shadow: 0 4px 14px rgba(0, 81, 63, .12); }
.pol-link { color: inherit; text-decoration: none; }
.pol-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pol-link:focus-visible { outline: none; }
.pol-card--post:focus-within { outline: 3px solid #1f7a63; outline-offset: 2px; }
.pol-read { font-size: 14px; font-weight: 700; color: #00513f; }
.post { max-width: 820px; gap: 22px; }
.post-crumb { display: flex; gap: 8px; font-size: 14px; color: var(--text-sub); }
.post-crumb a { color: var(--text-sub); }
.post-head { display: flex; flex-direction: column; gap: 10px; }
.post-head h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.02em; }
.post-badges { display: flex; gap: 6px; align-items: center; }
.st-chip { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e8f1ed; color: #00513f; }
.post-meta { font-size: 14px; color: var(--text-sub); }
.post-lead { font-size: 17px; line-height: 1.75; color: var(--text-body); }
.post-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.post-nums > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; background: #f3f6f4; }
.post-nums .k { font-size: 13px; color: var(--text-sub); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post-nums .v { font-size: 26px; font-weight: 800; color: #00513f; letter-spacing: -0.02em; }
.post-nums .s { font-size: 13px; color: var(--text-body); }
.post-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid #e3eae6; }
.post-sec h2 { font-size: 21px; }
.post-sec p, .post-steps li, .post-links li { font-size: 16px; line-height: 1.8; color: var(--text-body); }
.post-fig { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #dfe8e3; border-radius: 10px; }
.post-fig-k { font-size: 14px; font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post-sec p.post-fig-note, .post-fig-note { font-size: 13.5px; line-height: 1.6; color: var(--text-sub); }
.post-tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.post-tbl th, .post-tbl td { padding: 7px 10px; border-bottom: 1px solid #e3eae6; text-align: right; }
.post-tbl th[scope="row"], .post-tbl thead th:first-child { text-align: left; }
.post-tbl thead th { font-size: 13px; color: var(--text-sub); font-weight: 700; }
.post-steps, .post-links { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.post-sec p.post-src, .post-src { font-size: 13px; color: var(--text-sub); }
.post-ref { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 10px; background: #f6f7f5; font-size: 14px; }
.post-ref h2 { font-size: 16px; }
.post-ref ul { padding-left: 1.2em; }
.post-foot { padding-top: 8px; }

/* 정책 타임라인 (2026-11-12) */
.ptl-wrap { display: flex; flex-direction: column; gap: 18px; }
.ptl-year { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; }
.ptl-y { font-size: 20px; font-weight: 800; color: var(--primary); padding-top: 10px; }
.ptl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #cfe0d8; display: flex; flex-direction: column; gap: 10px; }
.ptl-item { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.ptl-item::before { content: ""; position: absolute; left: -26px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #1f7a63; border: 2px solid #fff; box-shadow: 0 0 0 1px #1f7a63; }
.ptl-item--next { border-style: dashed; background: transparent; }
.ptl-item--next::before { background: #fff; box-shadow: 0 0 0 2px #c98e4e; }
.ptl-item--post:hover { box-shadow: 0 4px 14px rgba(0, 81, 63, .12); }
.ptl-when { font-size: 14px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ptl-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ptl-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.ptl-top .st { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(0,0,0,.06); }
.ptl-top .cat { color: var(--text-sub); font-weight: 700; }
.ptl-top .rg { color: var(--text-sub); }
.ptl-body h3 { font-size: 16.5px; line-height: 1.4; }
.ptl-link { color: inherit; text-decoration: none; }
.ptl-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.ptl-item--post:focus-within { outline: 3px solid #1f7a63; outline-offset: 2px; }
.ptl-body p { font-size: 14.5px; line-height: 1.65; color: var(--text-body); }
.ptl-foot { display: flex; gap: 14px; align-items: center; }
.ptl-src { position: relative; z-index: 1; font-size: 13px; color: var(--text-sub); }
@media (max-width: 640px) {
  .ptl-year { grid-template-columns: 1fr; }
  .ptl-item { grid-template-columns: 1fr; }
}

.post-src-inline { font-size: 13px; color: var(--text-sub); }

/* 정책 쟁점: 최대전력 실적·계획 그림 (2026-11-12) */
.ic-fig { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 16px; border: 1px solid var(--line-in); border-radius: 10px; }
.ic-svg { display: block; }

/* 홈: 전국 전력 흐름 입체 그림 (2026-11-12) */
.hf-hero { display: flex; flex-direction: column; gap: 10px; }
.hf-hero h1 { font-size: 36px; line-height: 1.25; letter-spacing: -0.03em; }
.hf-lead { font-size: 17px; line-height: 1.7; color: var(--text-body); max-width: 860px; }
.hf-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(120% 90% at 50% 35%, #ffffff 0%, #f4f8f6 70%, #eaf1ed 100%); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 16px; }
.hf-scroll { overflow-x: auto; }
#hf { min-width: 940px; }
.hf-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.hf-name { font-size: 20px; font-weight: 800; fill: #182d30; }
.hf-sub { font-size: 15.5px; fill: #51615d; }
.hf-val { font-size: 16px; font-weight: 600; fill: #51615d; }
.hf-big .hf-name { font-size: 21px; fill: #00513f; }
.hf-mut .hf-name { font-size: 16.5px; font-weight: 700; fill: #51615d; }
.hf-lab text { paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round; }
.hf-a { cursor: pointer; }
.hf-a:hover, .hf-a:focus-visible { filter: brightness(1.08) drop-shadow(0 3px 5px rgba(0, 81, 63, .35)); outline: none; }
.hf-flow { stroke-dasharray: 1 15; opacity: .95; animation: hf-dash 1.4s linear infinite; }
.hf-loss .hf-flow { opacity: .5; }
@keyframes hf-dash { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
.hf-rot { animation: hf-spin 5s linear infinite; }
@keyframes hf-spin { to { transform: rotate(360deg); } }
.hf-smoke { animation: hf-puff 4s ease-in-out infinite alternate; }
@keyframes hf-puff { from { transform: translate(0, 0); opacity: .9; } to { transform: translate(5px, -6px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .hf-flow, .hf-rot, .hf-smoke { animation: none; } }
.hf-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.hf-nums > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.hf-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.hf-tbl th, .hf-tbl td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--line-in); font-weight: 400; }
.hf-tbl .l { text-align: left; }
.hf-tbl thead th { font-size: 13px; color: var(--text-sub); font-weight: 700; }
.hf-tbl tbody th { font-weight: 600; }
.hf-tbl .sum th, .hf-tbl .sum td { font-weight: 800; }
.hf-tbl tr:last-child th, .hf-tbl tr:last-child td { border-bottom: 0; }
.hf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
@media (max-width: 640px) { .hf-hero h1 { font-size: 28px; } .hf-lead { font-size: 15.5px; } }

.hf-swipe { display: none; }
@media (max-width: 960px) { .hf-swipe { display: block; text-align: center; } }

/* 홈: 시도 고르기 펼침 목록 (2026-11-12) — 위 메뉴의 펼침(.nav-dd)과 같은 동작, 모양만 버튼·3칸 목록 */
.hf-dd .nav-dd-btn { gap: 6px; border: 1px solid var(--primary-line); border-radius: 8px; background: var(--card); color: var(--primary); font-size: 15px; font-weight: 700; padding: 12px 20px; }
.hf-dd .nav-dd-btn:hover, .hf-dd.open .nav-dd-btn { background: var(--bar-bg); }
.hf-dd .nav-dd-menu { left: 0; right: auto; margin-top: 4px; min-width: 372px; }
.hf-dd:hover .nav-dd-menu, .hf-dd:focus-within .nav-dd-menu, .hf-dd.open .nav-dd-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hf-dd .nav-dd-menu a { display: block; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--text); text-decoration: none; }
.hf-dd .nav-dd-menu a:hover, .hf-dd .nav-dd-menu a:focus-visible { background: var(--primary-bg); color: var(--primary); }
@media (max-width: 420px) { .hf-dd .nav-dd-menu { min-width: 280px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* 홈: 오늘 전력수급 (2026-11-12) */
.hf-today { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.hf-today-row { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: stretch; }
.hf-kpis { flex: 1 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.hf-today-fig { flex: 2 1 460px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* 전력수급 01 종합 첫 장: 입체 그림 (2026-11-12) — 장(A4) 안에 들어가게 높이를 묶고 가운데로 */
/* 높이 한도는 JS(장 높이 맞춤)가 정한다 — 예전 515px 고정 한도는 그림을 작게 만들었음 (사용자 지적 2026-11-13) */
.f3-slide #f3, .f3-slide #ef { display: flex; justify-content: center; }
.f3-slide .hf-svg { width: 100%; max-width: 100%; }
@media (max-width: 720px) { .f3-slide #f3, .f3-slide #ef { display: block; min-width: 900px; } .f3-slide .hf-svg { width: 100%; max-height: none !important; } }

/* 작업 중 표시 (사용자 요청 2026-11-12: 전력수급 시뮬레이터는 장마다 빨간 테두리 + '작업 중') — <body class="deck wip"> */
.deck.wip .slide { border: 2px solid #d92d20 !important; }
.deck.wip .slide::after { content: "작업 중"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 3px 14px; border-radius: 999px;
  background: #d92d20; color: #ffffff; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; box-shadow: 0 2px 6px rgba(217, 45, 32, .3); }

/* ===== 디자인 고도화 시안 (사용자 요청 2026-11-12): 홈 입체 그림과 같은 분위기 — 부드러운 배경, 둥근 장, 은은한 그림자, 초록 그라데이션.
   <body class="… t2">에만 적용. 크기·여백·테두리 두께는 건드리지 않는다(장의 A4 맞춤 계산이 그대로 유지되게 색·모서리·그림자만). ===== */
body.t2 { background: radial-gradient(1400px 700px at 50% -120px, #ffffff 0%, #f4f8f6 55%, #ecf2ee 100%) fixed; }
/* 머리 흐림 효과가 따로 층을 만들어 펼친 메뉴가 바로가기 줄(z 20)·지역 칸(z 25) 아래로 깔리던 것 → 머리를 그 위로 (2026-11-13) */
.t2 .site-header { position: relative; z-index: 40; background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom-color: #e4ece8; box-shadow: 0 6px 20px rgba(11, 42, 37, 0.04); }
.t2 .logo-mark { background: linear-gradient(135deg, #1f8a70, #00513f); border-radius: 9px; box-shadow: 0 2px 6px rgba(0, 81, 63, 0.3); }
.t2 .nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px #c4ddd3; }
.t2 .title-block h1 { letter-spacing: -0.03em; }
/* 장 */
.t2.deck .slide { border-color: #dde7e2; border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.05), 0 14px 34px rgba(11, 42, 37, 0.08); }
.t2.deck .slide-head .ch { background: linear-gradient(135deg, #0f7a64 0%, #00513f 100%); border-radius: 17px 0 28px 0; box-shadow: 0 4px 12px rgba(0, 81, 63, 0.22); }
.t2.deck .slide .card-top > .card-k { background: linear-gradient(180deg, #0d6654, #00513f); border-radius: 12px; box-shadow: 0 3px 10px rgba(0, 81, 63, 0.16); }
.t2.deck .slide .card-top > .card-head::before { border-radius: 6px; background: linear-gradient(135deg, #e8f1ed, #c9e3d8); }
/* 패널과 소제목 알약 */
.t2.deck .slide .panel { border-color: #d3e3da; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f9fcfa); box-shadow: 0 1px 2px rgba(11, 42, 37, 0.04), 0 6px 16px rgba(11, 42, 37, 0.04); }
.t2.deck .slide .panel > .ctl-k:first-child { background: #ffffff; color: #00513f; box-shadow: 0 0 0 1.5px #a9cfc0, 0 4px 10px rgba(0, 81, 63, 0.14); }
.t2.deck .slide [id$="-chart"]:not(.panel *), .t2.deck .slide #map, .t2.deck .slide #cx-map, .t2.deck .slide [id$="-rows"], .t2.deck .slide #rank, .t2.deck .slide #type-groups { border-color: #e1ebe6; border-radius: 12px; background: #fcfdfc; }
/* 숫자 카드 */
.t2 .hero, .t2 .mix, .t2 .kpi { border-color: #dfe9e4; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.04), 0 8px 20px rgba(11, 42, 37, 0.05); }
.t2 .hero { border-top-color: var(--hc); background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 5%, #ffffff), #ffffff 46%); }
.t2 .hero:hover { box-shadow: 0 2px 4px rgba(11, 42, 37, 0.06), 0 12px 26px rgba(11, 42, 37, 0.1); }
.t2 .kpi { border-radius: 12px; }
/* 위쪽 장 바로가기와 지역 목록 */
.t2 .jump, .t2.has-rail .jump.toc { background: rgba(244, 248, 246, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: transparent; }
.t2 .jump.toc .toc-g { border-color: #dde7e2; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.05), 0 4px 10px rgba(11, 42, 37, 0.04); }
.t2 .jump.toc a.toc-ch { background: linear-gradient(135deg, #0f7a64, #00513f); }
.t2 .region-rail { border-color: #dde7e2; border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.05), 0 12px 28px rgba(11, 42, 37, 0.08); }
.t2 .rr-btn.on { background: linear-gradient(135deg, #f0702a, #e8590c); box-shadow: 0 3px 8px rgba(232, 89, 12, 0.3); }
/* 버튼·배지·표 */
.t2 .btn { border-radius: 10px; }
.t2 .btn--primary { background: linear-gradient(135deg, #0f7a64, #00513f); box-shadow: 0 3px 10px rgba(0, 81, 63, 0.22); }
.t2 .csv-btn { background: #ffffff; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.06); }
.t2 table.data thead tr { border-bottom-color: #cfe0d8; }
.t2 table.data tbody tr:hover { background: #f4f9f6; }
.t2 .notes { border-radius: 18px; }
/* 모든 화면 적용 (2026-11-12): 홈 그림·오늘 수급 상자, 정책 타임라인, 글 화면도 같은 모서리·그림자로. 글 화면은 A4 장이 아니라서 본문을 흰 종이 한 장에 올린다 */
.t2 .hf-fig, .t2 .hf-today { border-color: #dde7e2; border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.05), 0 14px 34px rgba(11, 42, 37, 0.08); }
.t2 .ptl-item { border-color: #dfe9e4; border-radius: 12px; }
.t2 .ptl-item:not(.ptl-item--next) { box-shadow: 0 1px 2px rgba(11, 42, 37, 0.04); }
.t2 .ptl-item--post:hover { box-shadow: 0 2px 4px rgba(11, 42, 37, 0.06), 0 10px 22px rgba(11, 42, 37, 0.1); }
.t2 .ptl-link::after { border-radius: 12px; }
.t2 .ic-fig { border-color: #e1ebe6; border-radius: 14px; background: #fcfdfc; }
.t2 .post > article { background: #ffffff; border: 1px solid #dde7e2; border-radius: 18px; padding: 32px 36px; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.05), 0 14px 34px rgba(11, 42, 37, 0.08); }
.t2 .post-nums > div { border: 1px solid #dfe9e4; border-radius: 12px; background: linear-gradient(180deg, #f1f7f4, #ffffff 60%); box-shadow: 0 1px 2px rgba(11, 42, 37, 0.04), 0 6px 14px rgba(11, 42, 37, 0.04); }
.t2 .post-fig { border-color: #e1ebe6; border-radius: 14px; background: #fcfdfc; }
.t2 .post-ref { border-radius: 14px; background: #f4f8f6; }
@media (max-width: 720px) { .t2 .post > article { padding: 20px 16px; border-radius: 14px; } }
.t2 .post-nums { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }   /* 흰 종이 안쪽 여백만큼 좁아져도 숫자 4칸이 한 줄에 */

/* ===== 그래프 모양 통일 (사용자 요청 2026-11-12): 색은 js/common.js K.pal 한 벌, 선 굵기는 주 2.6 · 보조 2.
   막대 끝·칸 사이·범례 네모를 화면마다 같게. 크기는 건드리지 않는다(장 높이 불변) */
.bar { border-radius: 4px 4px 0 0; }
.stack-bar > span:last-child { border-radius: 4px 4px 0 0; }
.band > span + span { box-shadow: inset 2px 0 0 #ffffff; }
.track, .track > span { border-radius: 4px; }
.sw:not(.sw--line):not(.sw--dash), .mix-leg i { border-radius: 3px; }

/* 01 종합 '시군 비교' (사용자 요청 2026-11-12): 전국 시군구 지도 + 상위 15곳 */
.rank-sgg .rank-row { grid-template-columns: 24px 112px minmax(0, 1fr) 70px; }
.rank-sgg .rank-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sgg .rank-row .nm small { color: var(--text-sub); font-size: 12px; }
.sn-svg path.sg { cursor: pointer; }
.sn-svg path.sg:hover { opacity: .8; }
.deck .slide #sn-map { border: 1px solid var(--line-in); border-radius: 8px; padding: 12px 14px; }
.t2.deck .slide #sn-map { border-color: #e1ebe6; border-radius: 12px; background: #fcfdfc; }
.cmp-map #sn-map { width: 100%; }
@media (min-width: 721px) {
  .deck .slide .cmp-map #sn-map { max-width: min(388px, 35.5cqi); }   /* 시도 비교 지도와 같은 크기 → 장(A4) 안에 */
}
@media (min-width: 721px) { .deck .slide #sn-pills .pill { min-height: 36px; padding: 5px 11px; } }
#sn-hint { display: flex; flex-direction: column; gap: 3px; }

/* 비교 장이 여럿(시도·시군 × 판매량·신재생, 2026-11-12): id 대신 class로 같은 모양 */
.deck .slide .sn-mapbox { border: 1px solid var(--line-in); border-radius: 8px; padding: 12px 14px; }
.t2.deck .slide .sn-mapbox { border-color: #e1ebe6; border-radius: 12px; background: #fcfdfc; }
.cmp-map .sn-mapbox { width: 100%; }
@media (min-width: 721px) {
  .deck .slide .cmp-map .sn-mapbox { max-width: min(388px, 35.5cqi); }
  .deck .slide .sn-pills .pill { min-height: 36px; padding: 5px 11px; }
}
.sn-hint { display: flex; flex-direction: column; gap: 3px; }

/* 홈: 시군구 신재생에너지 3D 기둥 지도 (2026-11-12) */
.hf-re { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.t2 .hf-re { border-color: #dde7e2; border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 42, 37, 0.05), 0 14px 34px rgba(11, 42, 37, 0.08); }
.hf-re-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-start; }
.hf-re-fig { flex: 3 1 600px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(120% 90% at 50% 40%, #ffffff 0%, #f4f8f6 75%, #eaf1ed 100%); border-radius: 14px; padding: 8px; }
.hr-svg { display: block; width: 100%; height: auto; }
.hr-svg .hr-p:hover { filter: brightness(1.12); }
.hr-svg .hr-p:focus-visible { outline: none; }
.hf-re-side { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hf-re-k { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.hf-re-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hf-re-list a { display: grid; grid-template-columns: 26px 128px minmax(0, 1fr) 76px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.hf-re-list a:hover { background: var(--bar-bg); }
.hf-re-list .rk { width: 22px; height: 22px; border-radius: 50%; background: #33423e; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.hf-re-list .rk.top { background: #e8590c; }
.hf-re-list .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-re-list .nm small { color: var(--text-sub); font-size: 12px; }
.hf-re-list .bar { height: 10px; background: var(--bar-bg); border-radius: 4px; overflow: hidden; }
.hf-re-list .bar i { display: block; height: 100%; border-radius: 4px; }
.hf-re-list b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .hf-re { padding: 16px 14px; } .hf-re-list a { grid-template-columns: 22px 96px minmax(0, 1fr) 84px; gap: 6px; font-size: 13px; } }
.hf-re-list b { white-space: nowrap; }
.hr-sep { width: 1px; height: 22px; background: var(--border, #dde7e2); margin: 0 4px; }
#hr-list-leg:empty { display: none; }
#hr-map { cursor: grab; touch-action: pan-y; user-select: none; }
#hr-map.dragging { cursor: grabbing; }
.hr-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--text-sub); padding: 0 6px; }
.hr-ctl label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.hr-ctl input[type="range"] { width: 120px; accent-color: #1f7a63; }
.hr-ctl .btn { min-height: 30px; padding: 2px 10px; font-size: 12.5px; }
@media (hover: none) { .hr-tip { display: none; } }

/* 업데이트 내역 (2026-11-13) */
.up-card { gap: 14px; }
.up-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.up-pills .pill:disabled { opacity: .45; cursor: default; }
.up-day { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; color: var(--text); }
#up-list > .up-day:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.up-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 4px; }
.up-top { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }
.up-item .bul { margin: 0; }
.up-links { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }

/* ===== 디자인 나: 장표 다듬기 (2026-11-13) — 높이·여백 불변, 색·모양만 ===== */
/* 핵심 문장 앞 네모(체크 상자처럼 보임) → 가는 세로 막대 */
.t2.deck .slide .card-top > .card-head::before, .t2.deck .slide-msg::before { left: 8px; width: 6px; height: 1.05em; top: 0.18em; border: 0; border-radius: 3px;
  background: linear-gradient(180deg, #1f8a70, #00513f); }
/* 제목 띠: 짙은 초록 덩어리 → 옅은 초록 바탕 + 짙은 글씨 + 아래 선 (그림·표와 이어지게) */
.t2.deck .slide .card-top > .card-k { background: linear-gradient(90deg, #e3f1ea, #f2f8f5 60%, #e9f4ef); color: #0b4f40; border-radius: 12px 12px 4px 4px;
  box-shadow: inset 0 -2px 0 #1f8a70; }
/* 장 제목 탭의 작은 갈래 글씨 */
.t2.deck .slide-head .ch .t2 { color: #d5efe4; }
/* 출처 줄: 위에 가는 선 */
.t2.deck .slide-src { background: linear-gradient(#e3ebe7, #e3ebe7) left top / 100% 1px no-repeat; }
/* 쪽 번호: 작은 알약 */
.t2.deck .slide > .slide-no { background: #eef4f1; color: #4d635c; border-radius: 999px; padding: 1px 9px; font-size: 12px; }

/* ===== 디자인 다: 위쪽 메뉴·머리 (2026-11-13) ===== */
.t2 .nav a, .t2 .nav-dd-btn { color: #33423e; font-weight: 600; }
.t2 .nav a:hover, .t2 .nav-dd-btn:hover { background: #eef5f1; color: #00513f; }
.t2 .nav a[aria-current="page"] { background: linear-gradient(135deg, #0f7a64, #00513f); color: #ffffff; box-shadow: 0 3px 8px rgba(0, 81, 63, 0.22); }
.t2 .nav-dd-menu a[aria-current="page"] { box-shadow: none; }
/* 화면 머리: 흰 카드 띠 + 숫자 줄 */
.t2 main.page > .title-block { background: linear-gradient(135deg, #ffffff 0%, #f3f9f6 70%, #e8f3ee 100%); border: 1px solid #dde7e2; border-radius: 18px; padding: 22px 26px;
  box-shadow: 0 1px 2px rgba(11, 42, 37, 0.05), 0 10px 26px rgba(11, 42, 37, 0.06); }
.t2 .title-block h1 { color: #0b2a25; }
@media (max-width: 720px) { .t2 main.page > .title-block { padding: 16px; border-radius: 14px; } }

/* 3D 발전소 지도 (분석툴, 개발지시서_3D발전소지도 2026-11-13 · 시안 B 평평한 판) */
.m3-card { gap: 12px; }
.m3-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.m3-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.m3-ctl .m3-layers { flex: 1 1 auto; }
#m3-map { border: 1px solid #c9d9d6; border-radius: 16px; overflow: hidden; background: #d3e4ea; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 30px rgba(13, 42, 51, .08); cursor: grab; touch-action: pan-y; user-select: none; }
#m3-map:active { cursor: grabbing; }
.m3-svg { display: block; width: 100%; height: auto; }
.m3-plate { cursor: pointer; }
.m3-plate:hover { fill: #fbfdf7; }
.m3-ic:hover { filter: brightness(1.08) drop-shadow(0 2px 3px rgba(13, 42, 51, .25)); }
.m3-ic { cursor: pointer; }
.m3-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.m3-sdname text { font-weight: 800; fill: #4b655d; letter-spacing: .06em; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; opacity: .8; }
.m3-lab { pointer-events: none; }
.m3-lab rect, .m3-lab .tail { fill: rgba(255, 255, 255, .96); }
.m3-lab rect { stroke: #d6e2dc; stroke-width: .8; }
.m3-lab text { text-anchor: middle; fill: #13292c; }
.m3-lab text.v { fill: #47605a; font-weight: 600; }
.m3-hi { fill: none; stroke: #e8590c; pointer-events: none; animation: m3pulse 1.4s ease-in-out infinite; }
@keyframes m3pulse { 50% { opacity: .35; } }
.m3-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.m3-box { background: #ffffff; border: 1px solid #d4dfd9; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.m3-box-k { margin: 0; font-size: 15px; font-weight: 800; color: #182d30; }
.m3-capbar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: #eef3f0; gap: 2px; }
.m3-capbar span { display: block; height: 100%; }
.m3-capleg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; font-size: 13px; }
.m3-capleg span { display: flex; align-items: center; gap: 6px; min-width: 0; color: #2c4144; }
.m3-capleg i { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }
.m3-capleg b { margin-left: auto; font-variant-numeric: tabular-nums; }
.m3-layers, .m3-chips, .m3-kf { display: flex; flex-wrap: wrap; gap: 6px; }
.m3-ly, .m3-chip, .m3-kfb { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 11px; border-radius: 999px; border: 1px solid #d4dfd9; background: #fff; color: #2c4144; font: inherit; font-size: 13px; font-weight: 600; }
.m3-chip { border-radius: 7px; min-width: 40px; min-height: 32px; justify-content: center; padding: 0 7px; }
.m3-kfb { min-height: 32px; padding: 0 9px; font-size: 12.5px; }
.m3-kfb i { width: 9px; height: 9px; border-radius: 2px; }
.m3-ly[aria-pressed="false"] { background: #f2f4f3; color: #8a9995; border-style: dashed; }
.m3-ly[aria-pressed="false"] svg { opacity: .35; filter: grayscale(1); }
.m3-chip[aria-pressed="true"], .m3-kfb[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.m3-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m3-csv { cursor: pointer; border: 1px solid #d4dfd9; background: #fff; border-radius: 8px; min-height: 32px; padding: 0 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: #006956; }
.m3-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; max-height: 420px; overflow-y: auto; }
.m3-pi { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 6px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 14px; color: #182d30; text-align: left; }
button.m3-pi { cursor: pointer; }
button.m3-pi:hover { background: #f1f6f3; }
.m3-pi[aria-pressed="true"] { background: #fdf0e6; box-shadow: inset 0 0 0 1px #f0b48a; }
.m3-pi > i { width: 10px; height: 10px; border-radius: 2px; }
.m3-pi .nm { min-width: 0; font-weight: 700; }
.m3-pi .nm em { font-style: normal; color: #6d807a; margin-right: 6px; font-variant-numeric: tabular-nums; }
.m3-pi small { display: block; font-size: 12px; font-weight: 500; color: #506365; }
.m3-pi b { font-variant-numeric: tabular-nums; }
.m3-sup { margin-left: 6px; font-size: 11px; font-weight: 700; color: #6b3f10; background: #f6ecdf; border-radius: 999px; padding: 0 6px; vertical-align: 1px; }
.m3-relist { max-height: none; }


/* 새 전력수급 시뮬레이터 (2026-11-13, 설계안_새시뮬레이터): 지도 + 카드 + 24시간 그래프 */
.sx-card { gap: 12px; }
.sx-ctl { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 16px; }
.sx-opt { display: flex; gap: 6px; }
.sx-opt .opt { min-width: 74px; }
.sx-ctl #sx-reset { margin-left: auto; align-self: center; }
.sx-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.sx-fig { flex: 999 1 620px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sx-map { border: 1px solid #c9d9d6; border-radius: 16px; overflow: hidden; background: #d3e4ea; cursor: grab; touch-action: pan-y; user-select: none; }
.sx-map:active { cursor: grabbing; }
.m3-plate.hot { fill: #fff4d6; }
.pm-dim { opacity: .28; filter: grayscale(1); }
.pm-ghost { fill: rgba(232, 89, 12, .12); stroke: #e8590c; stroke-width: 1.6; stroke-dasharray: 5 3; pointer-events: none; }
.sx-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; max-height: 920px; }
.sx-cards { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.sx-card-i { border: 1px solid #d4dfd9; border-radius: 12px; background: #fff; padding: 9px 11px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(11, 42, 37, .05); }
.sx-ci-top { display: flex; align-items: center; gap: 8px; }
.sx-ci-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sx-ci-t b { font-size: 14px; color: #182d30; }
.sx-ci-t span { font-size: 12.5px; color: #47605a; font-variant-numeric: tabular-nums; }
.sx-tag { font-size: 11px; font-weight: 700; color: #3f5457; background: #eef4f1; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.sx-ci-w { margin: 0; font-size: 12.5px; color: #506365; }
.sx-src summary { cursor: pointer; font-size: 12px; color: #006956; font-weight: 600; }
.sx-src p { margin: 4px 0 0; font-size: 12px; color: #3f5457; }
.sx-result { gap: 12px; }
.sx-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sx-k { border: 1px solid #dfe9e4; border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 1px; background: #fbfdfc; }
.sx-k .k { font-size: 12.5px; color: #47605a; font-weight: 600; }
.sx-k b { font-size: 22px; font-weight: 800; color: #0b2a25; font-variant-numeric: tabular-nums; }
.sx-k b i { font-style: normal; font-size: 13px; color: #47605a; margin-left: 3px; }
.sx-k small { font-size: 12px; color: #506365; }
.sx-svg { display: block; width: 100%; height: auto; }
.sx-zt { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sx-zt th, .sx-zt td { padding: 6px 8px; border-bottom: 1px solid #e6eeea; text-align: right; }
.sx-zt th:first-child, .sx-zt thead th:first-child { text-align: left; }
.sx-zt thead th { font-size: 12.5px; color: #47605a; font-weight: 700; }
@media (max-width: 720px) { .sx-opt .opt { min-width: 0; flex: 1; } .sx-ctl #sx-reset { margin-left: 0; } .sx-side { max-height: none; } }
/* 시뮬레이터 3단계: 호기 끄기, 카드 놓기, 바꾼 것 */
.sx-changes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; }
.sx-ch-k { font-size: 13px; font-weight: 800; color: #182d30; margin-right: 2px; }
.sx-chip { cursor: pointer; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.sx-chip.add { background: #fff4ea; border-color: #f0b48a; color: #8a3b0a; }
.sx-chip.off { background: #eef1f3; border-color: #c9d1d6; color: #3d4b52; }
.sx-chip span { margin-left: 4px; font-weight: 800; }
.sx-mini { cursor: pointer; border: 1px solid #c9d9d2; background: #fff; color: #006956; border-radius: 8px; min-height: 30px; padding: 0 9px; font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sx-mini.on, .sx-mini[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.sx-in { font-size: 11.5px; font-weight: 700; color: #6d807a; background: #eef2f0; border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.sx-card-i { cursor: grab; }
.sx-card-i.on { border-color: #f0b48a; background: #fffaf5; cursor: default; }
.sx-card-i.inbase { opacity: .62; cursor: default; }
.sx-optrow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12.5px; color: #3f5457; }
.sx-num input { width: 64px; min-height: 30px; border: 1px solid #c9d9d2; border-radius: 8px; padding: 0 6px; font: inherit; }
.sx-drag { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; background: #182d30; color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.sx-drag[data-sd]:not([data-sd=""])::after { content: attr(data-sd); display: block; font-size: 11.5px; font-weight: 600; color: #ffd8b8; }
body.sx-dragging { cursor: grabbing; user-select: none; }
.sx-pick { border: 1px solid #f0b48a; background: #fffaf5; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.sx-pick-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sx-x { cursor: pointer; border: 0; background: transparent; color: #006956; font: inherit; font-size: 12.5px; font-weight: 700; }
.sx-plant { display: flex; flex-direction: column; gap: 5px; }
.sx-plant-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.sx-plant-h small { font-weight: 500; color: #506365; font-size: 12px; flex: 1; }
.sx-units { display: flex; flex-wrap: wrap; gap: 5px; }
.sx-unit { cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 4px 6px; border-radius: 8px; border: 1px solid #b9d3c7; background: #eaf6f0; color: #0b4f40; font: inherit; font-size: 12.5px; font-weight: 700; }
.sx-unit small { font-size: 11px; font-weight: 500; }
.sx-unit i { font-style: normal; font-size: 10.5px; color: #8a3b0a; }
.sx-unit.off { background: #f2f3f4; border-color: #cfd5d9; color: #8a959a; text-decoration: line-through; }
.sx-unit:disabled { cursor: not-allowed; opacity: .7; }
.sx-k em, .sx-zt em { font-style: normal; font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.sx-k em.up, .sx-zt em.up { color: #b4541a; }
.sx-k em.dn, .sx-zt em.dn { color: #1f6f8b; }
/* 시뮬레이터 휴대폰: 카드는 옆으로 넘기는 한 줄, 바꾸면 아래 결과 띠 */
.sx-minibar { display: none; }
@media (max-width: 720px) {
  .sx-cards { flex-direction: row; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; padding: 2px 2px 8px; }
  .sx-card-i { flex: 0 0 84%; scroll-snap-align: start; }
  .sx-minibar:not([hidden]) { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; align-items: center; justify-content: space-between; gap: 10px;
    background: #182d30; color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .sx-minibar b { color: #ffd8b8; }
}
/* 시뮬레이터 배치 (사용자 의견 2026-11-13: 카드는 위 한 줄 = 바꾼 것, 지도 넓게, 결과는 지도 오른쪽에 붙여 따라오게) */
.page.sx-page { max-width: 1480px; }
.sx-scen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-scen-k { font-size: 13px; font-weight: 800; color: #182d30; margin-right: 4px; }
.sx-strip { display: flex; flex-direction: column; gap: 6px; }
.sx-strip-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sx-strip-top p { margin: 0; }
.sx-strip .sx-cards { flex-direction: row; overflow-x: auto; overflow-y: visible; padding: 2px 2px 8px; gap: 8px; scroll-snap-type: x proximity; max-height: none; }
.sx-strip .sx-card-i { flex: 0 0 248px; scroll-snap-align: start; }
.sx-offchip { flex: 0 0 auto; display: flex; align-items: center; }
.sx-ci-t b { font-size: 13.5px; line-height: 1.3; }
.sx-ci-b { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.sx-card-i { min-height: 128px; }
.sx-card-i.demand { cursor: default; }
.sx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.sx-grid .sx-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-map { cursor: default; }
.sx-find-ctl { display: flex; gap: 6px; }
.sx-find-ctl select, .sx-find-ctl input { min-height: 36px; border: 1px solid #c9d9d2; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13.5px; background: #fff; }
.sx-find-ctl input { flex: 1; min-width: 0; }
.sx-find { list-style: none; margin: 6px 0 0; padding: 0; max-height: 240px; overflow-y: auto; border: 1px solid #e1ebe6; border-radius: 10px; background: #fff; }
.sx-find-i { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 9px; border: 0; border-bottom: 1px solid #f0f4f2; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; text-align: left; color: #182d30; }
.sx-find-i:hover, .sx-find-i:focus-visible { background: #f1f6f3; }
.sx-find-i i { width: 10px; height: 10px; border-radius: 2px; }
.sx-find-i small { display: block; font-size: 12px; color: #506365; }
.sx-live { border: 1px solid #d4dfd9; border-radius: 14px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.sx-live-k { margin: 0; font-size: 13px; font-weight: 700; color: #47605a; }
.sx-live-kpi .sx-k { padding: 6px 9px; }
.sx-live-kpi .sx-k b { font-size: 19px; }
.sx-why { margin: 0; font-size: 13px; font-weight: 600; color: #182d30; background: #f4f8f6; border-radius: 8px; padding: 7px 9px; }
@media (max-width: 1000px) {
  .sx-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1001px) { .sx-minibar:not([hidden]) { display: none; } }
@media (max-width: 1000px) and (min-width: 721px) {
  .sx-minibar:not([hidden]) { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; align-items: center; justify-content: space-between; gap: 10px;
    background: #182d30; color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .sx-minibar b { color: #ffd8b8; }
}
@media (max-width: 720px) { .sx-strip .sx-card-i { flex: 0 0 82%; } .sx-scen .sx-mini { white-space: normal; } }
/* 시뮬레이터 다듬기 (사용자 요청 2026-11-13): 지도 좁게 + 결과 그래프 크게, 카드는 작게 두 줄(원문 단추는 이름 옆, 누르면 작은 창) */
.sx-strip .sx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 6px; overflow: visible; padding: 0; }
.sx-strip .sx-card-i { min-height: 0; padding: 7px 9px; gap: 3px; position: relative; }
.sx-strip .sx-ci-top { gap: 6px; align-items: flex-start; }
.sx-strip .sx-ci-top b { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; color: #182d30; }
.sx-ci-s { margin: 0; font-size: 12px; color: #47605a; font-variant-numeric: tabular-nums; line-height: 1.35; }
.sx-ci-d { margin: 0; font-size: 11.5px; color: #a8470e; font-weight: 600; }
.sx-strip .sx-ci-b { justify-content: space-between; margin-top: 2px; }
.sx-strip .sx-tag { font-size: 10.5px; }
.sx-strip .sx-mini { min-height: 26px; padding: 0 8px; font-size: 12px; }
.sx-strip .sx-src { position: static; flex: 0 0 auto; }
.sx-strip .sx-src summary { list-style: none; cursor: pointer; font-size: 11px; font-weight: 700; color: #006956; border: 1px solid #c9d9d2; border-radius: 999px; padding: 0 7px; line-height: 18px; background: #fff; }
.sx-strip .sx-src summary::-webkit-details-marker { display: none; }
.sx-strip .sx-src[open] summary { background: var(--primary); color: #fff; border-color: var(--primary); }
.sx-pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 4px); width: min(340px, 86vw); background: #fff; border: 1px solid #c9d9d2; border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(13, 42, 51, .18); }
.sx-pop p { margin: 0 0 6px; font-size: 12.5px; color: #2c4144; line-height: 1.5; }
.sx-pop .sx-pop-k { font-weight: 800; color: #182d30; }
.sx-strip .sx-optrow { gap: 4px; }
@media (max-width: 1000px) { .sx-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sx-strip .sx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-strip .sx-card-i { flex: none; } }
@media (max-width: 720px) { .sx-pop { position: fixed; left: 12px !important; right: 12px !important; top: auto; bottom: 76px; width: auto; max-height: 60vh; overflow-y: auto; } }
.pm-plan { fill: rgba(47, 111, 168, .1); stroke: #2f6fa8; stroke-width: 1.6; stroke-dasharray: 4 3; pointer-events: none; }
.pm-plan.off { stroke: #9aa7ae; fill: none; }
.sx-chip.plan { background: #eaf2fa; border-color: #9fc0e0; color: #1f4f7a; }
.sx-chip.keep { background: #f1f1ee; border-color: #b9b9b0; color: #3d3d36; }
.sx-plandiff { margin: 0; font-size: 12.5px; color: #1f4f7a; background: #eef5fb; border: 1px solid #cfe0ef; border-radius: 8px; padding: 6px 9px; line-height: 1.5; }
.sx-plandiff b { display: block; color: #163d60; }

/* 시뮬레이터 배치: 왼쪽 카드, 오른쪽 지도와 바로 아래 결과, 그래프 (2026-11-13) */
.sx-grid { grid-template-columns: 336px minmax(0, 1fr); gap: 16px; }
.sx-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sx-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sx-main .sx-fig { flex: none; }
.sx-live-kpi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sx-live-kpi .sx-k small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-chartbox { display: flex; flex-direction: column; gap: 6px; }
.sx-chart-k { margin: 0; font-size: 13.5px; color: #47605a; }
.sx-chart-k b { color: #182d30; margin-right: 6px; }
@media (min-width: 1001px) and (min-height: 1000px) { .sx-left { position: sticky; top: 12px; } }
@media (max-width: 1000px) {
  .sx-grid { grid-template-columns: 1fr; }
  .sx-live-kpi { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .sx-pick:not([hidden]) { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; max-height: 55vh; overflow-y: auto; box-shadow: 0 10px 28px rgba(13, 42, 51, .25); }
}

/* 시뮬레이터 권역 판 (2026-11-13: 지도 대신 권역별 발전소 아이콘) */
.sb-nat { background: #fff; border: 1px solid #d4dfd9; border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; gap: 5px; }
.sb-nat-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #182d30; }
.sb-nat-h span { font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-bar { display: flex; gap: 2px; height: 16px; border-radius: 5px; overflow: hidden; }
.sb-bar i { display: block; height: 100%; min-width: 2px; }
.sb-leg { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: #47605a; font-variant-numeric: tabular-nums; }
.sb-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.sb-leg b { color: #182d30; }
.sb-nat em, .sb-zh em { font-style: normal; font-weight: 700; font-size: 12px; }
.sb-nat em.up, .sb-zh em.up { color: #b4541a; }
.sb-nat em.dn, .sb-zh em.dn { color: #1f6f8b; }
.sb-board { position: relative; background: #e3eef3; border: 1px solid #c9d9d6; border-radius: 16px; overflow: hidden; }
.sb-map { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.sb-arrows { position: absolute; left: 0; top: 0; pointer-events: none; }
.sb-board.flat .sb-arrows { display: none; }
.sb-board:not(.flat) .sb-z { position: absolute; width: 36%; }
.sb-board:not(.flat) .sb-z.w { left: 8px; }
.sb-board:not(.flat) .sb-z.e { right: 8px; }
.sb-board.flat { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.sb-board.flat .sb-map { display: none; }
.sb-z { background: rgba(255, 255, 255, .86); border: 1px solid #d4dfd9; border-top: 3px solid var(--zc, #d4dfd9); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-z.arm { border: 2px dashed #e8590c; background: #fffaf5; cursor: copy; }
.sb-zh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.sb-zh b { font-size: 15px; color: #182d30; display: flex; align-items: center; gap: 6px; }
.sb-zh b i { width: 10px; height: 10px; border-radius: 3px; background: var(--zc); }
.sb-zh span { font-size: 12.5px; color: #47605a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 2px; }
.sb-p { display: flex; flex-direction: column; align-items: center; gap: 0; border: 1.5px solid transparent; border-radius: 9px; background: transparent; padding: 1px 2px; cursor: pointer; font: inherit; color: inherit; }
.sb-p:hover, .sb-p:focus-visible { background: #eef4f1; }
.sb-p small { font-size: 10px; color: #2c4144; line-height: 1.15; text-align: center; white-space: nowrap; max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
.sb-p small i { font-style: normal; display: block; color: #6d807a; font-variant-numeric: tabular-nums; }
.sb-p.off svg { opacity: .28; filter: grayscale(1); }
.sb-p.off small { color: #8a959a; }
.sb-p.part small i { color: #1f6f8b; font-weight: 700; }
.sb-p.plan { border: 1.5px dashed #5b8fc4; background: #f2f7fc; }
.sb-p.add { border: 2px solid #e8590c; background: #fff4ea; }
.sb-p.add small i { color: #8a3b0a; font-weight: 700; }
.sb-p.hi { box-shadow: 0 0 0 2px #182d30; }
.sb-etc { align-self: flex-start; margin-top: 3px; cursor: pointer; border: 1px solid #c9d9d2; border-radius: 999px; background: #f6f9f7; color: #3f5457; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 10px; }
.sb-etc.hi { background: #182d30; color: #fff; border-color: #182d30; }
.sb-link { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: #3d6c9e; }
.sx-cgrp { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; padding-bottom: 3px; border-bottom: 2px solid #182d30; }
.sx-cgrp:first-child { margin-top: 0; }
.sx-cgrp b { font-size: 14px; color: #182d30; }
.sx-cgrp small { font-size: 12px; color: #47605a; }
/* 지금 이야기되는 것: 좁은 왼쪽 칸에 한 줄 카드(이름 줄, 크기와 단추 줄) */
.sx-strip .sx-cards { grid-template-columns: 1fr; gap: 5px; }
.sx-strip .sx-card-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; align-items: center; }
.sx-strip .sx-card-i > * { grid-column: 1 / -1; }
.sx-strip .sx-card-i > .sx-ci-s { grid-column: 1; grid-row: 2; }
.sx-strip .sx-card-i > .sx-ci-b { grid-column: 2; grid-row: 2; margin-top: 0; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
/* 권역 판 아이콘 보기 */
.sb-kleg { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 4px 10px; background: #fff; border: 1px solid #d4dfd9; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: #2c4144; }
.sb-k { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sb-k.mk i { display: inline-block; width: 18px; height: 14px; border-radius: 5px; }
.sb-k.mk i.plan { border: 1.5px dashed #5b8fc4; background: #f2f7fc; }
.sb-k.mk i.add { border: 2px solid #e8590c; background: #fff4ea; }
.sb-k.mk i.off { background: #e3e7e6; border: 1px solid #c9d1d6; }
.sb-map path { transition: fill-opacity .15s; }
.sb-map path.on { fill-opacity: .5; }
.sb-link2 path { transition: stroke-width .15s, stroke-opacity .15s; }
.sb-link2.on path { stroke-width: 4.5; stroke-opacity: .9; }
/* 24시간 그래프 (고급스럽게) */
.sx-chart { position: relative; background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%); border: 1px solid #e1ebe6; border-radius: 16px; padding: 10px 12px 4px; box-shadow: 0 1px 2px rgba(11, 42, 37, .04), 0 8px 24px rgba(11, 42, 37, .05); }
.sx-chart .sx-hit { cursor: crosshair; }
.sx-tip { position: absolute; top: 12px; z-index: 5; min-width: 188px; padding: 9px 11px; border-radius: 12px; background: rgba(24, 45, 48, .95); color: #fff; font-size: 12.5px; line-height: 1.5; pointer-events: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font-variant-numeric: tabular-nums; }
.sx-tip > b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.sx-tip-r { display: flex; justify-content: space-between; gap: 14px; }
.sx-tip-r span { display: inline-flex; align-items: center; gap: 6px; color: #d5e2de; }
.sx-tip-r i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.sx-tip-r.dim span, .sx-tip-r.dim b { color: #a9bbb6; font-weight: 500; }
.sx-tip hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .15); margin: 5px 0; }
.sx-tip small { display: block; margin-top: 3px; color: #a9bbb6; font-size: 11px; }
.sx-chartbox .legend { padding: 0 4px; }
/* 발전소 지도: 옮기기와 확대 */
#m3-map.pm-dragging { cursor: grabbing; }
.m3-ic.pm-other { opacity: .45; }
.m3-zoom { display: inline-flex; gap: 4px; margin-left: auto; }
.m3-zoom .btn { min-width: 40px; font-size: 18px; font-weight: 700; padding: 0 10px; }
.m3-zoom + #m3-reset { margin-left: 0; }
/* 전체 수요 늘리기 */
.sx-strip .sx-card-i.sx-dg { cursor: default; display: flex; flex-direction: column; gap: 4px; }
.sx-dg .sx-ci-s { line-height: 1.4; }
.sx-dg .sx-optrow { gap: 4px; }
.sx-dg .sx-num input { width: 58px; }
.sx-dg-gw { color: #8a3b0a; }
.sx-dg-gw:empty { display: none; }

/* 지역 여건 요약 장: 10년 변화와 전국 비중 줄 (사용자 요청 2026-11-16: 장 아래 빈 공간 줄이기) */
.cx-cmp { display: flex; flex-direction: column; }
.cx-cmp-row { display: grid; grid-template-columns: minmax(70px, 110px) minmax(0, 1.2fr) minmax(0, 1fr); gap: 4px 22px; align-items: center; min-height: 34px; border-bottom: 1px solid var(--bar-bg); font-size: 14px; }
.cx-cmp-row.hd { min-height: 26px; color: var(--text-sub); font-size: 12px; font-weight: 600; border-bottom-color: var(--line); }
.cx-cmp-row .nm { font-weight: 700; }
.cx-cmp-row .nm small { display: block; font-weight: 500; color: var(--text-sub); font-size: 12px; }
.cx-cmp-cell { display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 8px; }
.cx-cmp-cell .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.cx-dtrack { position: relative; height: 12px; border-radius: 4px; background: var(--bar-bg); }
.cx-dtrack::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #9fb0aa; }
.cx-dtrack > span { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
@media (max-width: 720px) {
  .cx-cmp-row { grid-template-columns: 1fr; padding: 6px 0; }
  .cx-cmp-row.hd { display: none; }
}
/* 변화 칸: 위에 앞 해 → 뒤 해 값, 아래에 막대 (2026-11-16) */
.cx-chg { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cx-per { font-size: 12.5px; color: var(--text-sub); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-per b { color: var(--text); font-weight: 700; }
/* 비중 칸: 17개 시도를 점으로 (고른 시도 주황, 전국일 때 수도권 초록) */
.cx-sh { grid-template-columns: minmax(0, 1fr) 104px; }
.cx-dots { position: relative; height: 18px; margin: 0 7px; }
.cx-dots::before { content: ''; position: absolute; left: -7px; right: -7px; top: 50%; height: 2px; margin-top: -1px; background: var(--bar-bg); border-radius: 2px; }
.cx-dots .d { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #b9c9c1; box-shadow: 0 0 0 1.5px #ffffff; }
.cx-dots .d.cap { background: #1f7a63; }
.cx-dots .d.on { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; background: #e8590c; box-shadow: 0 0 0 2px #ffffff; }
/* 건물 장 연면적 비중 원그래프: 표 칸 높이에 맞게 조금 작게 (2026-11-17, 장이 넘치지 않게) */
.deck .slide #cx-bld-band .donut-svg { max-width: 330px; }
/* 지역 여건 시군구 보기: 1인당 GRDP 세 줄 비교 (2026-11-17) */
.cx-pc { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.cx-pc-row { display: grid; grid-template-columns: minmax(80px, 130px) minmax(0, 1fr) 96px; gap: 10px; align-items: center; min-height: 40px; font-size: 14px; }
.cx-pc-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-pc-row.on .nm { color: #e8590c; font-weight: 800; }
/* 트리맵 (인사이트 '시군구 전력 판매', 홈 두 번째 칸, 2026-11-17 어두운 판) — js/treemap.js */
.tm2-wrap { position: relative; }
.tm2 { position: relative; width: 100%; background: #142224; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(20, 34, 36, .18); }
.tm2-g { position: absolute; box-sizing: border-box; border: 2px solid #142224; }
.tm2-gl { position: absolute; left: 6px; top: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #c9d6d3; white-space: nowrap; overflow: hidden; max-width: calc(100% - 10px); }
.tm2-c { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #ffffff;
  text-align: center; overflow: hidden; text-decoration: none; line-height: 1.1; padding: 1px; border-radius: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: filter .15s, box-shadow .15s; }
.tm2-c b { font-weight: 800; white-space: nowrap; letter-spacing: -.01em; }
.tm2-c small { font-weight: 600; white-space: nowrap; opacity: .92; font-variant-numeric: tabular-nums; }
.tm2-c:hover, .tm2-c:focus-visible { filter: brightness(1.22); box-shadow: inset 0 0 0 2px #ffffff; z-index: 2; outline: none; }
.tm2-in { animation: tm2in .5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes tm2in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tm2-in { animation: none; } .tm2-c { transition: none; } }
.tm2-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 190px; padding: 10px 12px; border-radius: 10px;
  background: #ffffff; color: var(--text); box-shadow: 0 8px 24px rgba(20, 34, 36, .28); font-size: 13px; }
.tm2-tip p { margin: 0; display: flex; justify-content: space-between; gap: 14px; line-height: 1.6; }
.tm2-tip p span { color: var(--text-sub); }
.tm2-tip b { font-variant-numeric: tabular-nums; }
.tm2-tip .tm2-tip-h { justify-content: flex-start; gap: 7px; align-items: center; font-weight: 800; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.tm2-tip-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tm2-cap { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.tm2-scale { display: flex; flex: 0 1 520px; min-width: 0; gap: 2px; }
.tm2-scale > span { flex: 1 1 0; min-width: 0; padding: 4px 2px; text-align: center; color: #ffffff; font-size: 11px; font-weight: 700; border-radius: 3px;
  white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.tm-lists { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.tm-lists > div { flex: 1 1 300px; min-width: 0; }
.tm-list { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tm-list span { color: var(--text-sub); font-variant-numeric: tabular-nums; }
/* 위쪽 장 바로가기: 화면 맨 왼쪽이 아니라 본문(1200px)과 같은 줄에서 시작 (사용자 요청 2026-11-17, 시도 레일이 없는 화면) */
body:not(.has-rail) .jump { padding-left: max(24px, calc((100% - 1200px) / 2 + 24px)); padding-right: max(24px, calc((100% - 1200px) / 2 + 24px)); }
@media (max-width: 720px) { body:not(.has-rail) .jump { padding-left: 16px; padding-right: 16px; } }
