/* 코리아팩트 전용 화면. kit.css 는 고치지 않고 여기서 덮어쓴다. 색은 kit.css 토큰만 쓴다.
 * 배치: 왼쪽 메뉴 없이 위쪽 탭(국민용 소비자 사이트처럼 흰 바탕, 가운데 정렬) — 2026-11-22 본부장 교정 */

/* ── 배치: 왼쪽 메뉴·아래 탭 숨김, 흰 바탕 ── */
/* 흰 바탕은 밝은 화면일 때만(시스템 어둡게 + 테마 미지정에서 글자만 밝아져 안 보이던 문제, 2026-11-25) */
:root[data-theme="light"] { --bg: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #fff; } }
.side, #btab, #sheet { display: none !important; }
.shell { grid-template-columns: minmax(0, 1fr) !important; min-height: 0; }
.main { padding: 20px 16px 48px !important; }
.wrap { max-width: 1200px; margin: 0 auto; }
@media (min-width: 761px) { .main { padding: 28px 32px 64px !important; } }
.card { box-shadow: none; border: 1px solid var(--line); }

/* 위쪽 메뉴 */
.gnb { position: sticky; top: 0; z-index: 30; background: var(--panel); border-bottom: 1px solid var(--line); }
.gin { max-width: 1264px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . src" "tabs tabs tabs"; align-items: center; column-gap: 20px; }
@media (min-width: 761px) { .gin { padding: 0 32px; } }
@media (min-width: 1100px) { .gin { grid-template-areas: "brand tabs src"; min-height: 68px; } }
.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; padding: 12px 0; color: var(--ink); text-decoration: none !important; }
.brand .mk { width: 32px; height: 32px; border-radius: 9px; background: #1747a6; display: grid; place-items: center; }
.brand .mk svg { width: 24px; height: 24px; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.gsrc { grid-area: src; font-size: 15px; color: var(--sub); padding: 8px 4px; text-decoration: none !important; }
.gsrc.on, .gsrc:hover { color: var(--ink); }
.gtabs { grid-area: tabs; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
.gtabs::-webkit-scrollbar { display: none; }
.gtabs a { flex: none; position: relative; padding: 12px 12px 13px; font-size: 16px; font-weight: 600; color: var(--sub); white-space: nowrap; text-decoration: none !important; }
.gtabs a:hover { color: var(--ink); }
.gtabs a.on { color: var(--ink); }
.gtabs a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--ink); }
@media (min-width: 1100px) { .gtabs { justify-content: center; } .gtabs a { padding: 23px 12px 22px; } }

/* 머리 */
.khero { padding: 12px 0 8px; }
.khero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.khero p { margin: 8px 0 0; font-size: 16px; color: var(--sub); }
.khead { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.khead h1 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.khead .cnt { font-size: 15px; color: var(--sub); }

/* 기간 버튼 */
.pbar { display: inline-flex; margin: 14px 0 18px; padding: 3px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.pbtn { padding: 8px 16px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: none !important; white-space: nowrap; }
.pbtn:hover { color: var(--ink); }
.pbtn.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* 중분류 칩 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: none !important; background: var(--panel); }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }

/* 분야 묶음 */
.tsec { margin: 26px 0 0; }
.tsh { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.tsh h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.tsh .more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--sub); text-decoration: none !important; }
.tsh .more:hover { color: var(--ink); }
.tsh .more .ic { width: 15px; height: 15px; }

/* 지표 카드 */
.igrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .igrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.icard { display: flex; flex-direction: column; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.icard:hover { border-color: var(--ink); }
.icard .nm { font-size: 16px; font-weight: 700; line-height: 1.4; }
.icard .v { margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.icard .v small { font-size: 15px; font-weight: 600; color: var(--sub); }
.icard .yr { margin-top: 2px; font-size: 14px; color: var(--sub); }
.icard .sp { position: relative; display: block; height: 56px; margin: 12px 0 10px; }
.spark { display: block; width: 100%; height: 100%; overflow: visible; }
.spark path { fill: none; stroke: var(--brand2); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.icard .dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--brand2); }
.icard .was { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* 지표 상세 */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--sub); margin: 0 0 10px; }
.crumb a { color: var(--sub); }
.crumb .ic { width: 14px; height: 14px; }
.dhead h1 { margin: 0; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.dhead .desc { margin: 6px 0 0; font-size: 17px; color: var(--sub); }
.dnum { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.dnum .v { font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dnum .v small { font-size: 22px; font-weight: 600; color: var(--sub); margin-left: 2px; }
.dnum .yr { font-size: 17px; color: var(--sub); }
.chartbox.tall { height: 380px; }
@media (max-width: 760px) { .chartbox.tall { height: 280px; } }
.dfacts { margin: 0 0 14px; padding: 0 0 0 1.2em; display: grid; gap: 10px; font-size: 17px; line-height: 1.6; }

/* 깊이 보기(주제 5개) */
.keybox { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (min-width: 761px) { .keybox { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.keybox > .card { margin-bottom: 0; }
.bignum { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.bignum .yr { font-size: 15px; color: var(--sub); }
.bignum .v { display: block; margin: 6px 0 4px; font-size: clamp(44px, 5vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bignum .v small { font-size: 22px; font-weight: 600; color: var(--sub); margin-left: 4px; }
.bignum .lb { font-size: 18px; font-weight: 600; }
.bignum .sub { margin-top: 10px; font-size: 15px; color: var(--sub); }
.facts3 { margin: 0; padding: 0 0 0 1.3em; display: grid; gap: 12px; font-size: 17px; line-height: 1.6; }
.facts3 li::marker { color: var(--brand); }
.cnote { margin: 10px 0 0; font-size: 13.5px; color: var(--sub); }

/* 아래 */
.kfoot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.kfoot a { color: var(--sub); }
.srcl { white-space: nowrap; }

/* 좁은 화면에서 마지막 줄에 한 글자만 남지 않게 */
.src, .note, dd, .facts3 li, .cnote, .dfacts li, .desc { text-wrap: pretty; word-break: keep-all; }

/* 휴대폰: 첫 화면·관련 지표는 옆으로 넘겨 보기, 카드는 작게 */
@media (max-width: 559px) {
  .igrid.hrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .igrid.hrow::-webkit-scrollbar { display: none; }
  .igrid.hrow > .icard { flex: 0 0 72%; scroll-snap-align: start; }
  .icard { padding: 14px 14px 12px; }
  .icard .v { font-size: 26px; margin-top: 6px; }
  .icard .sp { height: 44px; margin: 8px 0 6px; }
  .tsec { margin-top: 22px; }
}
/* 의견 버튼: 위쪽 메뉴의 '출처'를 가리지 않게 휴대폰에서도 오른쪽 아래 */
@media (max-width: 760px) { #fbBtn { position: fixed !important; top: auto !important; bottom: 16px !important; right: 16px !important; box-shadow: var(--shadow) !important; } }
td code.no { font: inherit; background: none; padding: 0; }
td { text-wrap: pretty; word-break: keep-all; }

/* 찾기 */
.kfind { position: relative; max-width: 560px; margin: 16px 0 0; }
.kfind .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--sub); }
.kfind input { width: 100%; padding: 14px 16px 14px 46px; font-size: 17px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); color: var(--ink); }
.kfind input:focus { outline: none; border-color: var(--ink); }
.tsh .cnt { font-size: 15px; color: var(--sub); }

/* 한 줄 목록: 분야의 나머지 지표 전부 */
.ilist { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; margin-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .ilist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ilist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.irow { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.2em; align-items: baseline; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-size: 15.5px; }
.irow .nm { line-height: 1.45; word-break: keep-all; text-wrap: balance; }
.irow .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.irow .v small { font-size: 13px; font-weight: 500; color: var(--sub); }
.irow .yr { font-size: 13px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.irow[hidden], .icard[hidden], .tsec[hidden] { display: none !important; }

/* 추세선: 시작점(빈 원)·끝점(채운 원), 마우스 올리면 그해 값 */
.icard .dot.d0 { background: var(--panel); border: 2px solid var(--brand2); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.icard .hv { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--panel); pointer-events: none; }
.icard .tip { position: absolute; bottom: calc(100% + 4px); transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--panel); font-size: 13.5px; font-weight: 600; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; z-index: 2; }
.icard .sp { cursor: crosshair; }
.icard .sp.hov .dot { opacity: .35; }
.icard .hv[hidden], .icard .tip[hidden] { display: none; }
/* 시작 시점: 연도 이름표 + 굵은 값 */
.icard .was { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-size: 15px; }
.icard .was .k { padding: 2px 8px; border-radius: 6px; background: var(--panel2); color: var(--sub); font-size: 13.5px; font-weight: 600; }
.icard .was b { font-weight: 700; }
.knone[hidden] { display: none !important; }
.icard .nm { text-wrap: pretty; word-break: keep-all; }
.icard .was .k { white-space: nowrap; }

/* ══ 0.4 첫 화면 다시 그리기(2026-11-23 본부장: '첫 화면이 안 예쁘다') ══ */
:root { --hero: #f2f5fb; --tile: #eef3fd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero: #131b2e; --tile: rgba(111, 155, 245, .14); } }
:root[data-theme="dark"] { --hero: #131b2e; --tile: rgba(111, 155, 245, .14); }

.gend { grid-area: src; display: flex; gap: 6px; }

/* 머리 띠 */
.khero { margin: 4px 0 0; padding: 44px 40px 36px; border-radius: 24px; background: var(--hero); }
.kh-in { max-width: 760px; }
.khero .eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--brand2); letter-spacing: .01em; }
.khero h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.2; letter-spacing: -.04em; }
.kstat { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0 !important; font-size: 16px; color: var(--sub); }
.kstat b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 1px; }
.kfind.big { max-width: 640px; margin-top: 26px; }
.kfind.big input { padding: 18px 20px 18px 52px; font-size: 18px; border-radius: 16px; border-color: transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07); }
.kfind.big .ic { left: 19px; width: 22px; height: 22px; }
.qchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.qchips .ql { font-size: 14px; color: var(--sub); margin-right: 2px; }
.qchip { padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none !important; }
.qchip:hover { border-color: var(--ink); }

/* 찾기 결과 */
.kfind { z-index: 5; }
.kres { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: 460px; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow2); }
.kres a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none !important; font-size: 15.5px; }
.kres a:hover, .kres a:focus { background: var(--hover); }
.kres .tg { font-size: 13px; color: var(--sub); white-space: nowrap; }
.kres .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kres .all { display: block; color: var(--brand2); font-weight: 600; font-size: 14.5px; }
.kres .none { margin: 0; padding: 12px 14px; color: var(--sub); }
.kres[hidden] { display: none; }

/* 첫 화면 묶음 */
.hsec { margin-top: 44px; }
.hsec > .tsh { flex-wrap: wrap; row-gap: 8px; margin-bottom: 16px; }
.hsec > .tsh h2 { font-size: 23px; }
.tsh .pbar { margin: 0 0 0 auto; }

/* 분야 타일 */
.tgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "ic tb" "ic ex"; column-gap: 14px; row-gap: 3px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); }
.tile .ti { grid-area: ic; width: 46px; height: 46px; border-radius: 13px; background: var(--tile); color: var(--brand2); display: grid; place-items: center; }
.tile .ti .ic { width: 24px; height: 24px; }
.tile .tb { grid-area: tb; display: flex; align-items: baseline; gap: 8px; }
.tile .tb b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.tile .tb .n { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.tile .ex { grid-area: ex; font-size: 13.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-globe { background: var(--brand2); color: #fff; }

/* 세계 카드 */
.spark path.avg { stroke: var(--s4); stroke-dasharray: 4 3; stroke-width: 1.8; }
.icard .yr b { color: var(--ink); font-weight: 700; }
.icard .lgd { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }
.icard .lgd i { display: inline-block; width: 16px; height: 0; border-top: 2.4px solid var(--brand2); }
.icard .lgd i.la { margin-left: 10px; border-top: 2px dashed var(--s4); }
.dnum .rk { padding: 5px 12px; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: 15px; }
.dnum .rk b { font-weight: 800; }
.chips.sm { gap: 6px; margin: 4px 0 12px; }
.chips.sm .chip { padding: 5px 11px; font-size: 13.5px; }
.csub { margin: 0 0 4px; font-size: 14px; color: var(--sub); }
.card .pbar { margin-top: 0; }
.wline { margin: 0 0 6px; font-size: 17px; }
.wline b { font-weight: 800; }

@media (max-width: 760px) {
  .khero { padding: 30px 20px 26px; border-radius: 20px; margin: 0 -4px; }
  .kfind.big input { font-size: 16.5px; padding: 15px 16px 15px 46px; }
  .hsec { margin-top: 34px; }
  .tsh .pbar { margin: 4px 0 0; }
  .tile { padding: 14px; grid-template-columns: 40px minmax(0, 1fr); column-gap: 11px; }
  .tile .ti { width: 40px; height: 40px; border-radius: 11px; }
  .tile .tb { flex-direction: column; gap: 0; }
  .tile .ex { display: none; }
}
/* 위쪽 메뉴: 분야가 12개라 넓은 화면에서도 두 줄(위: 이름·전체 지표·출처, 아래: 분야) */
@media (min-width: 1100px) {
  .gin { grid-template-areas: "brand . src" "tabs tabs tabs"; min-height: 0; }
  .gtabs { justify-content: flex-start; }
  .gtabs a { padding: 12px 12px 14px; }
  .brand { padding: 16px 0 6px; }
}
.gtabs a:first-child { padding-left: 4px; }
.gtabs a:first-child.on::after { left: 4px; }
.cpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 12px; }
.cpick .csub { margin: 0 4px 0 0; }
.csel { padding: 8px 34px 8px 12px; font-size: 15px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel); color: var(--ink); }
/* 0.4 점검 보정: 타일 예시는 줄바꿈, 짧은 꼬리줄 막기 */
.tile .ex { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; }
.tile .tb b, .kfoot span { text-wrap: balance; word-break: keep-all; }
@media (max-width: 760px) { .tile .tb b { font-size: 15.5px; letter-spacing: -.03em; white-space: nowrap; } .tile { column-gap: 10px; padding: 14px 12px; } }
.khead { flex-wrap: wrap; row-gap: 4px; } .khead h1 { white-space: nowrap; } .khead .cnt { text-wrap: balance; }

/* ── 0.5 디자인: 많이 찾는 한 줄 · 전체 지표 · 분야 · 지표 상세 ── */
.qchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.qchips::-webkit-scrollbar { display: none; }
.qchip { white-space: nowrap; flex: none; }

/* 전체 지표 머리 띠 */
.ahead { margin: 6px 0 8px; padding: 30px 32px 22px; border-radius: 24px; background: var(--hero); }
.ahead h1 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.ahead .kstat { margin: 8px 0 16px; }
.ahead .kfind { max-width: 640px; margin: 0; }
.ahead .kfind input { background: var(--panel); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jbtn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.jbtn:hover { border-color: var(--ink); }
.jbtn .ti { width: 28px; height: 28px; border-radius: 999px; background: var(--tile); color: var(--brand2); display: grid; place-items: center; }
.jbtn .ti .ic { width: 16px; height: 16px; }
.jbtn .ti.t-globe { background: var(--brand2); color: #fff; }
.jbtn .n { font-size: 13px; font-weight: 500; color: var(--sub); font-variant-numeric: tabular-nums; }

/* 분야 묶음 */
.asec { scroll-margin-top: 130px; margin-top: 40px; }
.asec > .tsh, .khead { align-items: center; }
.asec > .tsh .ti, .khead .ti { width: 38px; height: 38px; border-radius: 11px; background: var(--tile); color: var(--brand2); display: grid; place-items: center; flex: none; }
.asec > .tsh .ti .ic, .khead .ti .ic { width: 21px; height: 21px; }
.asec > .tsh .ti.t-globe { background: var(--brand2); color: #fff; }
.asec > .tsh h2 { font-size: 22px; }

/* 지표 작은 카드 */
.ilist { gap: 10px; border-top: 0; margin-top: 14px; }
.ilist .irow { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .15s; }
.ilist .irow:hover { border-color: var(--ink); }
.ilist .irow:hover .nm { text-decoration: none; }
.ilist .irow .nm { font-size: 15.5px; font-weight: 600; line-height: 1.42; }
.ilist .irow .bt { display: flex; align-items: flex-end; gap: 8px; }
.ilist .irow .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-align: left; }
.ilist .irow .v small { margin-left: 2px; }
.ilist .irow .yr { align-self: flex-end; padding-bottom: 2px; text-align: left; white-space: nowrap; }
.msp { width: 84px; height: 28px; margin-left: auto; flex: none; overflow: visible; }
.msp path { fill: none; stroke: var(--brand2); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.msp circle { fill: var(--brand2); }
@media (min-width: 1100px) { .ilist { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 분야 화면: 칩과 기간 한 줄 */
.tbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 6px; }
.tbar .chips { margin: 0; flex: 1 1 520px; }
.tbar .pbar { margin: 0 0 0 auto; }
.tsec > .tsh .cnt { font-size: 15px; color: var(--sub); }

/* 지표 상세 머리 띠 */
.dband { padding: 28px 32px 26px; border-radius: 24px; background: var(--hero); }
.dstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; max-width: 720px; }
.dstats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--panel); }
.dstats .k { font-size: 14px; color: var(--sub); }
.dstats b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dstats b small { margin-left: 2px; font-size: 13.5px; font-weight: 500; color: var(--sub); }
.dstats .y { font-size: 13.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.dbar { margin: 18px 0 2px; }

@media (max-width: 760px) {
  .ahead { padding: 24px 18px 18px; border-radius: 20px; margin: 0 -4px 8px; }
  .jump { flex-wrap: nowrap; overflow-x: auto; margin: 16px -18px 0; padding: 0 18px 2px; scrollbar-width: none; }
  .jbtn { flex: none; }
  .ilist .irow { min-height: 0; }
  .dband { padding: 22px 18px; border-radius: 20px; margin: 0 -4px; }
  .dstats { gap: 6px; }
  .dstats > div { padding: 10px 11px; }
  .dstats b { font-size: 17px; }
  .tbar .pbar { margin: 0; }
}
/* 순위 위치 막대 */
.rkbar { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; font-size: 12.5px; color: var(--sub); }
.rkbar .tr { position: relative; flex: 1; height: 6px; border-radius: 999px; background: var(--tile); }
.rkbar .tr i { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--brand2); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--brand2); }
.dhead .rkbar { max-width: 420px; margin-top: 14px; font-size: 14px; }
.icard .rkbar { margin-bottom: 4px; }
.khead .ti.t-globe { background: var(--brand2); color: #fff; }
.ahead .kstat { margin-bottom: 20px; }
.rkbar { font-size: 14px; }
.qchips .ql { white-space: nowrap; flex: none; }
/* 작은 카드 줄 맞춤: 왼쪽 값·연도, 오른쪽 고정 폭 추세선(2026-11-23) */
.ilist .irow .bt { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: end; gap: 10px; }
.ilist .irow .vy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ilist .irow .v { white-space: normal; line-height: 1.2; }
.ilist .irow .v small { display: inline-block; white-space: nowrap; }
.ilist .irow .yr { padding: 0; }
.ilist .irow .msp { margin: 0; align-self: center; }
.ilist .irow .nm { min-height: 2.84em; }
.ilist .irow { align-items: stretch; }
.gthm { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-size: 14.5px; cursor: pointer; }
.gthm:hover { border-color: var(--ink); }
.gthm .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .gthm span { display: none; } .gthm { padding: 6px 8px; } }
/* 나라별 작은 막대(위치 막대 대신) */
.rkbar { display: block; margin: 10px 0 4px; font-size: 13.5px; color: var(--sub); }
.rkbar .rkc { position: relative; display: block; height: 40px; padding-top: 18px; }
.rkbar svg { display: block; width: 100%; height: 40px; }
.rkbar rect { fill: var(--line); }
.rkbar rect.kr { fill: var(--brand2); }
.rkbar .kl { position: absolute; top: 0; transform: translateX(-50%); font-size: 14px; font-weight: 700; color: var(--brand2); white-space: nowrap; }
.rkbar .ax { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; }
.rkbar .tr { display: none; }
.dhead .rkbar { max-width: 460px; }
.ilist .irow .yr { text-align: left; }
.rkbar .rkc { height: auto; }
.icard .rkbar svg { height: 30px; }
.icard .rkbar { margin: 8px 0 0; }
.icard .rkbar .ax { margin-top: 2px; font-size: 14px; }

/* ── 0.6 해설 ── */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rcard { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); text-decoration: none; }
.rcard:hover { border-color: var(--ink); }
.rcard .rk { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--hero); font-size: 14px; font-weight: 700; color: var(--brand2); }
.rcard b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.rcard .rs { font-size: 16px; color: var(--sub); }
.rcard .rl { margin-top: 4px; font-size: 16px; line-height: 1.6; }
.rcard .ra { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--sub); }
.rcard .ra .ic { width: 16px; height: 16px; }
.rnote { margin: 0 0 18px; font-size: 17px; color: var(--sub); }
.rhead .eyebrow { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--brand2); }
.rhead .rmeta { margin: 10px 0 0; font-size: 15px; color: var(--sub); }
.rhead .jump { margin-top: 16px; }
.rj { padding: 6px 14px; }
.rch { margin: 18px 0 6px; }
.rsec { max-width: 920px; margin: 34px auto 0; scroll-margin-top: 130px; }
.rsec h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.rsec h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.rsec p { margin: 0 0 12px; font-size: 18px; line-height: 1.75; }
.rul { margin: 0 0 14px; padding-left: 1.2em; }
.rul li { margin: 0 0 8px; padding-left: .2em; font-size: 18px; line-height: 1.75; }
.rul ul { margin: 6px 0 0; padding-left: 1.2em; }
.rul ul li { font-size: 17px; margin-bottom: 4px; }
.rul b { font-weight: 800; }
.rsum { padding: 22px 26px 10px; border-radius: 20px; background: var(--hero); }
.rsum h2 { border: 0; padding: 0; }
.ropt { margin: 0 0 14px; padding: 20px 24px 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.rtw { margin: 4px 0 16px; overflow-x: auto; }
.rtbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.rtbl th, .rtbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rtbl thead th { font-size: 15px; color: var(--sub); font-weight: 700; }
.rtbl th:first-child, .rtbl td.tx, .rtbl th.tx { text-align: left; }
.rtbl tbody th { font-weight: 700; }
.rtbl td.tx { white-space: normal; min-width: 220px; }
.rsrc .rul li { font-size: 16px; color: var(--sub); }
@media (max-width: 700px) {
  .rsec { margin-top: 26px; }
  .rsec p, .rul li { font-size: 17px; }
  .rsum, .ropt { padding: 18px 18px 6px; }
  .rtbl { font-size: 15px; }
}
.igrid.rch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .igrid.rch { grid-template-columns: 1fr; } }
.rsec p, .rul li, .rcard .rl { text-wrap: pretty; }
@media (max-width: 700px) {
  .rhead .jump { flex-wrap: wrap; overflow: visible; }
  .rtbl th, .rtbl td { padding: 9px 7px; }
  .rtbl td.tx { min-width: 150px; }
}
.igrid.rch { padding: 0; }
@media (max-width: 700px) {
  .rtbl tbody th { white-space: normal; min-width: 92px; }
  .rtbl { font-size: 14.5px; }
  .rtbl th, .rtbl td { padding: 9px 5px; }
  .rtbl td.tx { min-width: 108px; }
  .igrid.rch { grid-template-columns: 1fr; margin-left: 0; margin-right: 0; }
}
.rtbl th, .rtbl td { word-break: keep-all; }
@media (max-width: 700px) { .rtbl td.tx { min-width: 118px; } .rtbl tbody th { min-width: 84px; } }

/* ── 0.7 핵심 이슈 그림 블록 ── */
.viz { margin: 6px 0 22px; padding: 20px 22px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.viz .vh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.viz .vh b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.viz .vh span { font-size: 14px; color: var(--sub); }
.viz .vh .tot { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--ink); }
.viz .vn { margin: 12px 0 0; font-size: 15px !important; line-height: 1.6 !important; color: var(--sub); }
.viz .vs { margin: 6px 0 0; font-size: 14px !important; line-height: 1.5 !important; color: var(--sub); }
.viz .chartbox { height: 300px; }
.vbars { display: grid; gap: 9px; }
.vb { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.vb .l { font-size: 15px; font-weight: 600; word-break: keep-all; }
.vb .t { display: flex; height: 18px; border-radius: 6px; background: var(--panel2); overflow: hidden; }
.vb .f { display: block; height: 100%; background: var(--c3); }
.vb.on .f { background: var(--brand2); }
.vb.on .l, .vb.on .n { color: var(--brand2); font-weight: 800; }
.vb .n { min-width: 52px; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vb .n small { margin-left: 3px; font-size: 13px; font-weight: 500; color: var(--sub); }
.vb.stk .f { border-right: 1px solid var(--panel); }
.vb.stk .f.c0, .vsplit .c0, .vleg .c0 { background: var(--s1); }
.vb.stk .f.c1, .vsplit .c1, .vleg .c1 { background: var(--s2); }
.vb.stk .f.c2, .vsplit .c2, .vleg .c2 { background: var(--s3); }
.vb.stk .f.c3, .vsplit .c3, .vleg .c3 { background: var(--s4); }
.vsplit { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; }
.vsplit .sg { display: block; min-width: 4px; }
.vleg { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 18px; margin-top: 14px; }
.vleg.row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; }
.vleg > div { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.vleg .sw { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.vleg .l { color: var(--ink); }
.vleg b { margin-left: auto; font-variant-numeric: tabular-nums; }
.vleg.row b { margin-left: 0; }
.vleg .p { font-size: 14px; color: var(--sub); }
.vstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 4px 0 22px; }
.vst { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.vst .k { font-size: 15px; color: var(--sub); font-weight: 600; }
.vst b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.vst b small { margin-left: 4px; font-size: 16px; font-weight: 600; color: var(--sub); }
.vst .s { font-size: 14.5px; color: var(--sub); line-height: 1.5; }
.vheat { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 15.5px; }
.vheat th { font-size: 14.5px; color: var(--sub); font-weight: 700; text-align: center; padding: 6px; word-break: keep-all; }
.vheat tbody th { text-align: left; color: var(--ink); white-space: nowrap; }
.vheat td { text-align: center; padding: 10px 6px; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--s1) var(--a), transparent); }
.vheat td.neg { background: color-mix(in srgb, var(--s3) var(--a), transparent); }
.vheat td.tx { background: none; text-align: left; font-weight: 500; font-size: 15px; color: var(--sub); }
.vheat th.tx { text-align: left; }
.vtl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.vtl li { position: relative; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; font-size: 16px; line-height: 1.6; }
.vtl li::before { content: ''; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--brand2); }
.vtl .y { font-weight: 800; color: var(--brand2); font-variant-numeric: tabular-nums; }
.rkp { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 4px 0 20px; }
.kp { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.kp b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 800; }
.kp p { margin: 0 !important; font-size: 16px !important; line-height: 1.65 !important; }
.ropts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ropts .ropt { margin: 0; padding-bottom: 16px; }
.rkv { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.rkv dt { font-size: 14px; font-weight: 800; color: var(--brand2); padding-top: 3px; }
.rkv dd { margin: 0; font-size: 15.5px; line-height: 1.65; }
@media (max-width: 760px) {
  .ropts { grid-template-columns: 1fr; }
  .vb { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; }
  .vb .l, .vb .n { font-size: 14px; }
  .viz { padding: 16px 14px 12px; }
  .vst b { font-size: 28px; }
  .vheat { font-size: 14px; border-spacing: 3px; }
  .viz .chartbox { height: 260px; }
}

/* 0.7 카드 4개·2개는 두 줄로 고르게(한 장만 남는 줄 없게) */
@media (min-width: 761px) { .rkp.n4, .rkp.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 0.7 핵심 이슈: 메뉴 강조 탭·첫 화면 띠·대표 숫자 ── */
.gtabs a[data-hot] { color: var(--brand2); }
.gtabs a[data-hot]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--brand2); vertical-align: 2px; }
.gtabs a[data-hot].on::after { background: var(--brand2); }
.hsec.issues { padding: 26px 26px 28px; border-radius: 22px; background: var(--hero); }
.hsec.issues .rcard { border-color: transparent; }
.hsec.issues .rcard:hover { border-color: var(--brand2); }
.rcard .rn { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 2px; }
.rcard .rn em { font-style: normal; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--brand2); font-variant-numeric: tabular-nums; }
.rcard .rn em small { margin-left: 4px; font-size: 18px; font-weight: 700; }
.rcard .rn > span { font-size: 15px; color: var(--sub); }
@media (max-width: 760px) { .hsec.issues { padding: 18px 16px 20px; border-radius: 16px; } .rcard .rn em { font-size: 34px; } }

/* ── 0.7 링크 밑줄: 글 링크는 마우스를 올리면 밑줄이 글자에서 조금 떨어져 부드럽게 나타남, 카드·칩·탭은 밑줄 없음 ── */
a { text-decoration: none; transition: color .18s ease; }
a:hover { text-decoration: none; color: var(--brand); }
/* 2026-11-25 본부장: 마우스를 올릴 때 밑줄 대신 글자색·옅은 바탕으로 표시 */
.irow { transition: background .15s ease; border-radius: 6px; }
.irow:hover { background: var(--hover); }
.irow:hover .nm { color: var(--brand); }
.btbl tr.click:hover .t, .tbl tr.click:hover .t { text-decoration: none !important; color: var(--brand); }
.gsrc:hover, .tsh .more:hover, .crumb a:hover { color: var(--ink); }
.rcard, .tile, .qchip, .irow, a.all, .icard, .chip, .pbtn, .btn, .brand, .gtabs a, .jbtn { text-decoration: none !important; }
.rcard *, .tile *, .icard *, .irow * { text-decoration: none !important; }
@media (prefers-reduced-motion: reduce) { a { transition: none; } }

/* ── 0.7 첫 화면 그림(대한민국 지도 + 세대 아이콘) ── */
.khero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 12px 32px; align-items: center; overflow: hidden; }
.kart { width: 100%; height: auto; display: block; }
.kart .ol { fill: color-mix(in srgb, var(--brand2) 7%, transparent); stroke: color-mix(in srgb, var(--brand2) 55%, transparent); stroke-width: 1; stroke-linejoin: round; }
.kart .map circle { fill: color-mix(in srgb, var(--brand2) 38%, transparent); }
.kart .cty circle { fill: var(--brand); stroke: var(--hero); stroke-width: 2; }
.kart .gl { stroke: var(--line); stroke-width: 1.5; }
.kart .pa { fill: color-mix(in srgb, var(--ink) 72%, transparent); } .kart .pe { fill: color-mix(in srgb, var(--ink) 50%, transparent); } .kart .pc { fill: var(--brand); }
@media (max-width: 1000px) { .khero { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 760px) { .khero { grid-template-columns: minmax(0, 1fr); } .khero > * { min-width: 0; } .kart { width: min(340px, 92%); margin: 0 auto 4px; order: -1; } }

/* ── 0.7 많이 찾는 태그: 잘리지 않게 줄바꿈 ── */
.khero .qchips { flex-wrap: wrap; overflow: visible; row-gap: 8px; }

/* ── 0.7 위쪽 메뉴: 5개 + 주제별 통계 펼침 ── */
.gnb { position: sticky; }
.gin { grid-template-columns: auto 1fr auto; grid-template-areas: "brand . src" "tabs tabs tabs"; }
.gtabs { align-items: stretch; }
.gtabs a, .gdb { padding: 12px 14px 14px; font-size: 16.5px; font-weight: 650; }
.gtabs a:first-child { padding-left: 14px; }
.gdb { flex: none; position: relative; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font-family: inherit; color: var(--sub); cursor: pointer; white-space: nowrap; }
.gdb:hover, .gdb[aria-expanded="true"], .gdb.on { color: var(--ink); }
.gdb.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--ink); }
.gdb .cv { width: 16px; height: 16px; transition: transform .18s ease; }
.gdb[aria-expanded="true"] .cv { transform: rotate(180deg); }
.gdb:focus-visible, .gtabs a:focus-visible { outline: 2px solid var(--brand2); outline-offset: -4px; border-radius: 8px; }
@media (min-width: 1100px) {
  .gin { grid-template-areas: "brand tabs src"; min-height: 68px; }
  .brand { padding: 12px 0; }
  .gtabs { justify-content: center; overflow: visible; }
  .gtabs a, .gdb { padding: 23px 16px 22px; }
  .gtabs a:first-child { padding-left: 16px; }
}
.gmega { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(15, 23, 42, .10); }
.gmega[hidden] { display: none; }
.gm-in { max-width: 1264px; margin: 0 auto; padding: 24px 32px 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; }
.gmh { margin: 0 0 8px; padding: 0 10px; font-size: 13.5px; font-weight: 700; color: var(--sub); letter-spacing: .02em; }
.gml { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none !important; }
.gml:hover, .gml.on { background: var(--hover); }
.gml .ti { width: 36px; height: 36px; flex: none; }
.gml b { font-size: 16.5px; font-weight: 650; }
.gml .n { margin-left: auto; font-size: 14px; color: var(--sub); }
.gm-ft { max-width: 1264px; margin: 0 auto; padding: 8px 42px 20px; }
.gm-ft a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--sub); }
.gm-ft a:hover { color: var(--ink); }
.gm-ft .ic { width: 15px; height: 15px; }
@media (max-width: 1099px) { .gm-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .gmega { max-height: calc(100vh - 110px); overflow-y: auto; }
  .gm-in { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 4px; gap: 4px; }
  .gm-ft { padding: 4px 26px 16px; }
  .gtabs a, .gdb { padding: 11px 11px 13px; font-size: 16px; }
  .gtabs a:first-child { padding-left: 4px; }
}

/* ── 0.7 많이 찾는 지표: 이름 옆에서 줄바꿈(내어쓰기) ── */
.khero .qchips { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 12px; overflow: visible; }
.khero .qchips .ql { flex: none; padding-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.khero .qlist { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.gml .ti { border-radius: 10px; background: var(--tile); color: var(--brand2); display: grid; place-items: center; }
.gml .ti .ic { width: 20px; height: 20px; }
@media (max-width: 760px) { .khero .qchips { gap: 10px; } .khero .qchips .ql { font-size: 14px; } .khero .qlist .qchip { padding: 6px 12px; font-size: 14px; } }

/* ── 0.7 첫 화면 그림 C: 지도 + 사람 20명 인구 구성 ── */
.kart { margin: 0; }
.kart svg { width: 100%; height: auto; display: block; }
.kart .sol { fill: color-mix(in srgb, var(--brand2) 26%, transparent); stroke: color-mix(in srgb, var(--brand2) 45%, transparent); stroke-width: 1; }
.kart .pc { fill: var(--brand); } .kleg .sw.pc { background: var(--brand); }
.kart .pa { fill: color-mix(in srgb, var(--ink) 62%, transparent); } .kleg .sw.pa { background: color-mix(in srgb, var(--ink) 62%, transparent); }
.kart .pe { fill: color-mix(in srgb, var(--ink) 36%, transparent); } .kleg .sw.pe { background: color-mix(in srgb, var(--ink) 36%, transparent); }
.kleg { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 14.5px; color: var(--sub); }
.kleg a { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); }
.kleg a:hover { color: var(--ink); }
.kleg b { color: var(--ink); font-weight: 700; }
.kleg .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.kleg .kn { flex-basis: 100%; text-align: right; font-size: 13px; }
@media (max-width: 760px) { .kart { width: 100%; max-width: 380px; margin: 0 auto 4px; } .kleg { justify-content: center; font-size: 13.5px; gap: 4px 12px; } .kleg .kn { text-align: center; } }

/* 0.7 밑줄: 글자 링크만 왼쪽에서 그어짐. 덩어리 링크는 없음 */
.rcard:hover, .tile:hover, .qchip:hover, .irow:hover, a.all:hover, .icard:hover, .chip:hover, .pbtn:hover, .btn:hover, .brand:hover, .gtabs a:hover, .jbtn:hover, .gml:hover, .kleg a:hover, .kres a:hover { text-decoration: none !important; }
/* 0.7 마지막 줄 한두 글자 막기 */
.rs, .rn, .vst .k, .vst .s, .vn, .kp p, .rkv dd, .rul li, .rcard *, .ropt p, .icard *, .tile .ex, .relrep * { text-wrap: pretty; word-break: keep-all; }

/* 0.7 줄바꿈: 숫자·날짜는 붙여 쓰고 이름은 단어 단위로 */
body { text-wrap: pretty; }
.vst b, .vleg b, .vb .n, .rn em { white-space: nowrap; }
.vb .l, .vleg .l, .vh b, .kp b, .vtl .x, .vst .k, .vst .s, .rkv dd, .rkv dt { word-break: keep-all; }
/* 0.7 모바일: 옆으로 밀어 보는 줄 대신 모두 보이게 */
@media (max-width: 760px) {
  .igrid.hrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 10px; }
  .igrid.hrow > .icard { flex: none; }
  .jump { flex-wrap: wrap; overflow: visible; margin: 16px 0 0; padding: 0; }
}
@media (max-width: 760px) {
  .vb { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "t n"; row-gap: 4px; column-gap: 10px; }
  .vb .l { grid-area: l; } .vb .t { grid-area: t; } .vb .n { grid-area: n; }
  .icard .lgd { flex-wrap: wrap; white-space: nowrap; row-gap: 4px; }
}
.vheat th, .vheat td.tx, .rtbl th, .rtbl td.tx { word-break: keep-all; }
.vheat thead th { min-width: 4.2em; }
.was { white-space: nowrap; }
.wline, .vheat td.tx { text-wrap: balance; }
@media (max-width: 760px) {
  .vheat thead th { min-width: 0; }
  .vheat th, .vheat td { font-size: 13.5px; padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 760px) { .vheat thead th { white-space: nowrap; } }
.vhn { display: none; }
@media (max-width: 760px) {
  .vheat .tx { display: none; }
  .vhn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 0; font-size: 14.5px; }
  .vhn dt { font-weight: 700; word-break: keep-all; } .vhn dd { margin: 0; color: var(--sub); word-break: keep-all; }
}

.vtl .y { word-break: keep-all; }
@media (max-width: 760px) { .vtl li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (min-width: 1100px) { .gmega[data-m="globe"] .gm-in { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gmk b { font-weight: 600; font-size: 15.5px; }
.gmk { padding: 12px 10px; } .gmk .ic { width: 16px; height: 16px; margin-left: auto; color: var(--sub); }

/* ── 0.7.18 위쪽 메뉴 펼침: 가운데 떠 있는 카드, 뒤 화면 흐리게 ── */
.gmega { left: 50%; right: auto; top: calc(100% + 8px); transform: translateX(-50%); width: min(800px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06), 0 0 0 100vmax rgba(15, 23, 42, .28); clip-path: inset(-8px -100vmax -100vmax -100vmax); animation: gmin .16s ease-out; }
.gmega[data-m="globe"] { width: min(1000px, calc(100vw - 32px)); }
@keyframes gmin { from { opacity: 0; margin-top: -6px; } to { opacity: 1; margin-top: 0; } }
.gm-in { max-width: none; padding: 22px 20px 14px; gap: 0; }
.gmc { padding: 0 10px; min-width: 0; }
.gmc + .gmc { border-left: 1px solid var(--line); }
.gmh { margin: 0 0 8px; padding: 0 10px 10px; font-size: 13px; font-weight: 700; color: var(--brand2); letter-spacing: .03em; border-bottom: 1px solid var(--line); }
.gml { padding: 9px 10px; gap: 12px; border-radius: 10px; }
.gml .ti { width: 32px; height: 32px; border-radius: 9px; }
.gml .ti .ic { width: 18px; height: 18px; }
.gml b { font-size: 16px; font-weight: 600; }
.gml .n { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--mute); }
.gml:hover b { color: var(--brand2); }
.gmk { padding: 11px 10px; } .gmk b { font-size: 15.5px; font-weight: 600; line-height: 1.35; } .gmk .ic { flex: none; }
.gm-ft { max-width: none; margin: 0; padding: 13px 30px; background: var(--panel2); border-top: 1px solid var(--line); }
.gm-ft a { font-weight: 600; color: var(--brand2); }
.gm-ft a:hover { color: var(--ink); }
@media (min-width: 1100px) { .gmega[data-m="globe"] .gm-in { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); } }
@media (max-width: 1099px) { .gmega, .gmega[data-m="globe"] { width: min(720px, calc(100vw - 32px)); } .gmc:nth-child(odd) { border-left: 0; } .gmc:nth-child(n+3) { margin-top: 14px; } }
@media (max-width: 760px) {
  .gmega, .gmega[data-m="globe"] { left: 8px; right: 8px; width: auto; transform: none; top: calc(100% + 4px); max-height: calc(100vh - 120px); overflow-y: auto; border-radius: 14px; clip-path: inset(-4px -100vmax -100vmax -100vmax); }
  .gm-in { padding: 12px 8px 6px; }
  .gmc { padding: 0 4px; border-left: 0 !important; margin-top: 0 !important; }
  .gmc + .gmc { margin-top: 12px !important; }
  .gm-ft { padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) { .gmega { animation: none; } }

/* ── 0.7.19 첫 화면 그림: 지표 띠 ── */
.kstripe { min-width: 0; }
.kstage { display: grid; }
.ksl { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.ksl.on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.kbar { position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none !important; }
.kbar svg { display: block; width: 100%; height: auto; }
.kbar:focus-visible { outline: 3px solid var(--brand2); outline-offset: 3px; }
.kov { position: absolute; left: 24px; bottom: 20px; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .28); }
.kov b { display: block; font-size: clamp(44px, 5.2vw, 68px); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kov b small { font-size: .36em; margin-left: 4px; font-weight: 700; }
.kov > span { display: block; margin-top: 6px; font-size: 18px; font-weight: 650; }
.kdk .kov { color: #0f172a; text-shadow: 0 0 12px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .9); }
.ksl figcaption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.ksrc { margin: 4px 0 0; font-size: 13.5px; color: var(--mute); }
.kctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.kpick { border: 1px solid var(--line2); background: var(--panel); color: var(--sub); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 600; line-height: 1.2; font-family: inherit; cursor: pointer; }
.kpick:hover { color: var(--ink); border-color: var(--sub); }
.kpick.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.kpz { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--panel); color: var(--sub); border-radius: 999px; font-size: 12px; cursor: pointer; font-family: inherit; }
.kpz:hover { color: var(--ink); }
.kpick:focus-visible, .kpz:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; }
@media (max-width: 760px) { .kstripe { order: 0; margin-top: 8px; } .kov { left: 16px; bottom: 14px; } .kov > span { font-size: 15.5px; } .kpick { padding: 6px 11px; font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .ksl, .ksl.on { transition: none; } }

/* ── 0.7.20 핵심 이슈 끝 편집 견해 상자 ── */
.rsec.rview { background: var(--tile); border: 1px solid color-mix(in srgb, var(--brand2) 28%, transparent); border-radius: 18px; padding: 26px 28px 20px; }
.rsec.rview > h2 { display: flex; align-items: center; gap: 10px; }
.rsec.rview > h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--brand2); }
.rsec.rview > p:first-of-type { color: var(--sub); font-size: 15.5px; }
@media (max-width: 760px) { .rsec.rview { padding: 20px 16px 14px; border-radius: 14px; } }

/* ── 0.7.20 지표 띠 → 막대: 높이 = 값 ── */
.kbar { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 14px; box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.kbar:hover { border-color: var(--line2); }
.kbar svg { margin-top: 6px; overflow: visible; }
.kov { position: static; color: var(--ink); text-shadow: none; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.kov .kn { flex-basis: 100%; font-size: 16px; font-weight: 650; color: var(--sub); margin: 0 0 4px; }
.kov b { font-size: clamp(40px, 4.4vw, 58px); color: var(--ink); }
.kov .kch { font-size: 15px; color: var(--sub); font-variant-numeric: tabular-nums; }
.kvl { font-size: 17px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.kyl { font-size: 15px; fill: var(--sub); font-variant-numeric: tabular-nums; }
.kbl { stroke: var(--line2); stroke-width: 1.5; }
.kbar rect { transition: opacity .15s; }
.kbar svg:hover rect { opacity: .55; } .kbar svg rect:hover { opacity: 1; }
@media (max-width: 760px) { .kbar { padding: 16px 14px 10px; } .kvl { font-size: 22px; } .kyl { font-size: 21px; } .kov .kn { font-size: 14.5px; } }

/* 편집 견해: 항목 이름을 위에, 설명을 아래에 */
.rview .rkv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.rview .rkv dt { font-size: 15px; padding-top: 10px; }
.rview .rkv dt:first-child { padding-top: 0; }

/* 0.7.23 편집 견해 디자인 */
.rsec.rview { padding: 30px 32px 24px; }
.rview .rkv { gap: 0; }
.rview .rkv dt { font-size: 16px; font-weight: 700; color: var(--ink); padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.rview .rkv dt:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.rview .rkv dd { font-size: 15.5px; color: var(--sub); line-height: 1.7; margin-top: 4px; }
@media (max-width: 760px) { .rsec.rview { padding: 20px 16px 14px; } }

/* 0.7.25 해석과 제언: 요지 한 문장을 맨 위에 크게, 근거 안내는 맨 아래 작게 */
.rsec.rview > p:first-of-type { font-size: 19px; line-height: 1.65; font-weight: 650; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--brand2); border-radius: 12px; padding: 18px 22px; margin: 6px 0 8px; }
.rsec.rview > p:last-child { font-size: 14px; color: var(--mute); margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.rsec.rview > h3 { font-size: 17.5px; color: var(--brand2); margin: 26px 0 10px; letter-spacing: -.01em; }
@media (max-width: 760px) { .rsec.rview > p:first-of-type { font-size: 17px; padding: 14px 16px; } }

/* ── 0.7.25 찾기 결과 화면 ── */
.gsch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-right: 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14.5px; text-decoration: none !important; background: var(--panel); }
.gsch .ic { width: 16px; height: 16px; }
.gsch:hover, .gsch.on { color: var(--ink); border-color: var(--ink); }
.gend { display: inline-flex; align-items: center; }
.shead { max-width: 920px; margin: 34px auto 8px; padding: 0 4px; }
.shead h1 { font-size: 30px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; }
.ssub { color: var(--sub); font-size: 16px; margin: -6px 0 16px; }
.sbox { display: flex; align-items: center; gap: 0; background: var(--panel); border: 1.5px solid var(--line2); border-radius: 16px; padding: 6px 6px 6px 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.sbox:focus-within { border-color: var(--brand2); }
.sbox .sic { display: grid; color: var(--sub); } .sbox .sic .ic { width: 22px; height: 22px; }
.sbox input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 19px; padding: 12px 12px; font-family: inherit; }
.sbox button { border: 0; background: var(--brand2); color: #fff; font-size: 16px; font-weight: 700; padding: 12px 22px; border-radius: 11px; cursor: pointer; font-family: inherit; }
.sbox button:hover { filter: brightness(1.08); }
.scount { margin: 18px 0 10px; font-size: 17px; color: var(--sub); } .scount b { color: var(--ink); }
.schips { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.schip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--line2); border-radius: 999px; color: var(--sub); font-size: 15px; font-weight: 600; text-decoration: none !important; background: var(--panel); }
.schip span { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.schip:hover { color: var(--ink); border-color: var(--sub); }
.schip.on { background: var(--ink); border-color: var(--ink); color: var(--panel); } .schip.on span { color: var(--panel); opacity: .75; }
.spop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.spop > span { font-size: 14.5px; color: var(--mute); margin-right: 4px; }
.spop a { padding: 7px 13px; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: 14.5px; text-decoration: none !important; }
.spop a:hover { background: var(--line); }
.snone { max-width: 920px; margin: 10px auto 40px; padding: 26px 28px; background: var(--tile); border-radius: 16px; color: var(--sub); font-size: 16px; }
.snone p { margin: 0; }
.sbody { max-width: 920px; margin: 0 auto 30px; padding: 0 4px; }
.sgrp { margin-top: 26px; }
.sgrp h2 { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.sgrp h2 span { font-size: 15px; color: var(--mute); font-weight: 600; }
.sbody mark, .shl { background: color-mix(in srgb, #facc15 38%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.srep { display: grid; gap: 12px; }
.srcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.srt { display: block; padding: 18px 22px 14px; text-decoration: none !important; color: var(--ink); }
.srt:hover b { color: var(--brand2); }
.srk { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand2); background: color-mix(in srgb, var(--brand2) 10%, transparent); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.srt b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.srs { display: block; margin-top: 3px; color: var(--sub); font-size: 15px; }
.srh { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.srh li + li { border-top: 1px solid var(--line); }
.srh a { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 13px 22px; color: var(--ink); text-decoration: none !important; }
.srh a:hover { background: var(--tile); }
.srh-h { font-size: 14px; font-weight: 700; color: var(--sub); padding-top: 2px; }
.srh-t { font-size: 15.5px; line-height: 1.65; }
.srx { margin: 0; padding: 10px 22px 14px; font-size: 14px; color: var(--mute); border-top: 1px solid var(--line); }
.slist { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; gap: 18px; align-items: center; padding: 15px 22px; color: var(--ink); text-decoration: none !important; }
.srow + .srow { border-top: 1px solid var(--line); }
.srow:hover { background: var(--tile); }
.srm { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.srm b { font-size: 17px; font-weight: 700; }
.srg { font-size: 13.5px; color: var(--mute); }
.srw { font-size: 14.5px; color: var(--sub); line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.srw:empty { display: none; }
.srv { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.srv .v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv .v small { font-size: 13px; font-weight: 600; color: var(--sub); margin-left: 3px; }
.srv .yr { font-size: 13px; color: var(--mute); }
.srow .msp { width: 96px; height: 32px; }
.smore { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; font-weight: 650; color: var(--brand2); text-decoration: none !important; }
.smore .ic { width: 16px; height: 16px; }
.kres a.all { font-weight: 700; color: var(--brand2); }
/* 찾기 결과 카드(2026-11-25): 주제 칩 · 이름 · 최근 값과 추세선 · 설명 · 출처 */
.sres { max-width: 920px; margin: 0 auto; padding: 0 4px; }
.sres > .ssub { margin: 14px 0 0; color: var(--sub); font-size: 16px; }
.sfix { margin: -4px 0 12px; font-size: 14.5px; color: var(--sub); }
.sgridc { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.scard { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none !important; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.scard:hover, .scard:focus-visible { border-color: var(--brand2); box-shadow: 0 6px 18px rgba(15, 23, 42, .07); outline: none; }
.scard.part { opacity: .82; }
.sct { display: flex; flex-wrap: wrap; gap: 6px; }
.stp, .spt { font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--tile); color: var(--sub); }
.spt { background: transparent; border: 1px solid var(--line); color: var(--mute); }
.srn { font-size: 17px; font-weight: 750; line-height: 1.4; word-break: keep-all; }
.scv { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 30px; }
.scv .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.scv .v small { font-size: 13px; font-weight: 600; color: var(--sub); margin-left: 3px; }
.scv .yr { font-size: 13px; color: var(--mute); margin-left: 8px; margin-right: auto; align-self: center; white-space: nowrap; }
.scv .msp { width: 92px; height: 30px; flex: none; }
.sw { font-size: 14px; color: var(--sub); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sw:empty { display: none; }
.sorg { margin-top: auto; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt:focus-visible, .kres a:focus-visible { outline: 2px solid var(--brand2); outline-offset: -2px; }
@media (max-width: 760px) { .sgridc { grid-template-columns: minmax(0, 1fr); gap: 10px; } .scard { padding: 14px 16px 12px; } .scv .v { font-size: 20px; } }
@media (max-width: 760px) {
  .gsch span { display: none; } .gsch { padding: 7px 9px; }
  .shead { margin-top: 22px; } .shead h1 { font-size: 25px; }
  .sbox { padding: 4px 4px 4px 12px; } .sbox input { font-size: 17px; padding: 10px 8px; } .sbox button { padding: 10px 14px; font-size: 15px; }
  .srh a { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; }
  .srt { padding: 16px 16px 12px; } .srt b { font-size: 19px; }
  .srow { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 16px; gap: 12px; } .srow .msp { display: none; }
}
/* 첫 화면 찾기 목록이 그림 상자 밖으로 나와도 잘리지 않게 */
.khero:has(.kres:not([hidden])) { overflow: visible; z-index: 6; }
.kres mark { background: color-mix(in srgb, #facc15 38%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ── 0.7.29 오류 신고·질문 줄 ── */
.fbline { margin: 28px 0 8px; padding-top: 16px; border-top: 1px dashed var(--line2); color: var(--sub); font-size: 16px; }
.fbq { margin-left: 6px; padding: 6px 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: var(--brand); font: inherit; font-weight: 650; cursor: pointer; }
.fbq:hover { border-color: var(--brand2); background: var(--brandsoft); }

/* 지자체 섹션 */
.dstats.cbst { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .dstats.cbst { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cbfrom { margin-top: 14px; font-size: 15px; color: var(--sub); font-variant-numeric: tabular-nums; }
.lgchips { flex-wrap: wrap; }
@media (max-width: 760px) { .lgchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* 지자체 그림(lg.js): 위·아래 두 옅은 색, 충북 진한 선, 전국 회색 선 */
:root { --lgup: #9fbbea; --lgdn: #e8c79c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lgup: #4d6fa8; --lgdn: #8f6d40; } }
:root[data-theme="dark"] { --lgup: #4d6fa8; --lgdn: #8f6d40; }
.lgsvg { width: 100%; height: auto; display: block; overflow: visible; }
.lgsvg .lgl-me { fill: none; stroke: var(--brand2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lgsvg .lgl-nat { fill: none; stroke: var(--mute); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lgsvg .lgl-o { fill: none; stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lgsvg .lgf { fill: var(--brand2); opacity: .1; }
.lgcap { font-size: 14px; color: var(--sub); margin: 0 0 6px; }
.pb-tag { display: block; font-size: 12.5px; color: var(--sub); }
i.k-o { width: 10px !important; height: 10px !important; border: 2px solid var(--ink); border-radius: 50% !important; background: var(--panel); }
.lgpeer > summary { cursor: pointer; font-size: 15px; color: var(--sub); padding: 10px 2px; }
.lgsvg text { font-size: 15px; font-variant-numeric: tabular-nums; }
.lgsvg .lgax { fill: var(--sub); font-size: 13px; }
.lgsvg .lgt-me { fill: var(--brand2); font-weight: 700; }
.lgsvg .lgt-nat { fill: var(--sub); }
.icard .lgsp { display: block; margin: 6px 0 4px; }
.lgkey, .pb-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--sub); margin: 8px 0 4px; }
.lgkey i, .pb-key i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
i.k-me { background: var(--brand2); height: 3px; } i.k-nat { background: var(--mute); height: 3px; }
i.k-up { background: var(--lgup); } i.k-dn { background: var(--lgdn); } i.k-mv { background: var(--ink); height: 2px; }
.pb-g h3 { font-size: 16px; margin: 18px 0 6px; color: var(--sub); font-weight: 600; }
.pb-row, .sb-r { display: grid; grid-template-columns: minmax(120px, 15em) 1fr 7.5em; gap: 12px; align-items: center; min-height: 34px; padding: 3px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pb-row:hover { background: var(--hover); }
.pb-n, .sb-n { font-size: 16px; }
.pb-v { font-size: 14px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.pb-t { position: relative; height: 22px; }
.pb-c { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--mute); opacity: .6; }
.pb-b { position: absolute; top: 4px; height: 14px; border-radius: 3px; }
.pb-b.up { background: var(--lgup); } .pb-b.dn { background: var(--lgdn); }
.pb-mv { position: absolute; top: 10px; height: 2px; background: var(--ink); opacity: .7; }
.pb-o { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border: 2px solid var(--ink); border-radius: 50%; background: var(--panel); opacity: .8; }
.pb-ah { position: absolute; top: 5px; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; opacity: .8; }
.pb-ah.r { border-left: 9px solid var(--ink); margin-left: -9px; } .pb-ah.l { border-right: 9px solid var(--ink); }
.rk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rk-c { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); text-decoration: none; }
.rk-c .nm { font-size: 16px; font-weight: 600; } .rk-c .yr { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.sg-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.sg-grid { display: grid; gap: 6px; }
.sg-t { border-radius: 8px; padding: 8px; min-height: 58px; display: flex; flex-direction: column; justify-content: center; background: var(--panel2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.sg-t::before { content: ""; position: absolute; inset: 0; opacity: var(--op, .5); }
.sg-t.up::before { background: var(--lgup); } .sg-t.dn::before { background: var(--lgdn); }
.sg-t b, .sg-t span { position: relative; white-space: nowrap; } .sg-t b { font-size: 15px; } .sg-t span { font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sb-r { grid-template-columns: 5.5em 1fr 10em; }
@media (max-width: 900px) { .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pb-row, .sb-r { grid-template-columns: 1fr auto; } .pb-row .pb-t, .sb-r .pb-t { grid-column: 1 / -1; grid-row: 2; } .pb-n, .sb-n { font-size: 15px; } .rk-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .rk-c { padding: 10px; } .sg-t { padding: 6px 4px; min-height: 52px; } .sg-t b { font-size: 13px; } .sg-t span { font-size: 12px; } }
/* 설명·인사이트(2026-11-25): 설명은 제목 아래 또렷하게, 인사이트는 규칙으로 계산한 사실 문장 한두 줄 */
.dhead .desc { font-size: 18px; color: var(--ink); line-height: 1.5; }
.dhead .insight { list-style: none; margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--brand2); border-radius: 0 10px 10px 0; background: var(--panel2); }
.dhead .insight li { font-size: 16.5px; line-height: 1.55; color: var(--ink); text-wrap: pretty; word-break: keep-all; font-variant-numeric: tabular-nums; }
.dhead .insight li + li { margin-top: 2px; }
.icard .ins { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--sub); word-break: keep-all; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .dhead .desc { font-size: 16.5px; } .dhead .insight li { font-size: 15.5px; } .icard .ins { font-size: 13px; } }

/* 지자체 단순 그림(2026-11-25): 두 점 비교 · 시도 막대 · 설명 상자 */
.db-row { display: grid; grid-template-columns: minmax(10em, 15em) 1fr 10em; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.db-n { font-size: 16px; color: var(--ink); text-decoration: none; }
.db-n:hover { text-decoration: underline; }
.db-t { position: relative; height: 24px; display: block; cursor: default; }
.db-ax { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--grid); border-radius: 1px; }
.db-d { position: absolute; top: 4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; }
.db-d.me { background: var(--brand2); z-index: 2; }
.db-d.nat { background: var(--panel); border: 2px solid var(--mute); width: 14px; height: 14px; margin-left: -7px; top: 5px; }
.db-v { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.db-v b { font-size: 17px; color: var(--brand2); } .db-v small { color: var(--sub); } .db-v span { display: block; font-size: 13.5px; color: var(--sub); }
i.k-dme { width: 12px !important; height: 12px !important; border-radius: 50% !important; background: var(--brand2); }
i.k-dnat { width: 10px !important; height: 10px !important; border-radius: 50% !important; border: 2px solid var(--mute); background: var(--panel); }
.sd-wrap { display: grid; gap: 4px; }
.sd-r { display: grid; grid-template-columns: 4.5em 1fr 7em; gap: 10px; align-items: center; padding: 2px 0; cursor: default; }
.sd-n { font-size: 15px; color: var(--sub); } .sd-r.me .sd-n { color: var(--brand2); font-weight: 700; }
.sd-t { position: relative; height: 16px; }
.sd-b { position: absolute; top: 2px; height: 12px; border-radius: 3px; background: var(--grid); }
.sd-r.me .sd-b { background: var(--brand2); }
.sd-nat { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--mute); }
.sd-v { text-align: right; font-size: 14.5px; color: var(--sub); font-variant-numeric: tabular-nums; } .sd-r.me .sd-v { color: var(--brand2); font-weight: 700; }
.sd-r:hover .sd-b, .sd-r:focus .sd-b, .sb-r:hover .pb-b, .sb-r:focus .pb-b { filter: brightness(.9); }
.lgsvg .lghit { fill: transparent; cursor: crosshair; outline: none; }
.lgsvg .lgguide { stroke: var(--mute); stroke-width: 1; display: none; vector-effect: non-scaling-stroke; }
.lgsvg .lgdot1 { fill: var(--brand2); display: none; } .lgsvg .lgdot2 { fill: var(--mute); display: none; }
#lgtip { position: fixed; z-index: 60; display: none; max-width: min(92vw, 420px); padding: 8px 12px; border-radius: 8px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 15px; line-height: 1.45; pointer-events: none; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .db-row { grid-template-columns: 1fr auto; } .db-row .db-t { grid-column: 1 / -1; grid-row: 2; } .db-n { font-size: 15px; } .sd-r { grid-template-columns: 4em 1fr 5.6em; gap: 6px; } }

/* 지자체 시군 추세·시군 화면·지도(2026-11-25) */
.lgins { font-size: 17px; margin: 10px 0 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.smgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; }
.smp { border-top: 1px solid var(--line); padding-top: 6px; min-width: 0; }
.smp-h { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.smp-h a { font-weight: 700; color: var(--ink); } .smp-h span { color: var(--sub); font-size: 14px; text-align: right; }
.smp-s { margin: 2px 0 0; font-size: 13px; color: var(--sub); }
.lgsvg.mini text { font-size: 12px; }
.lgsvg.mini .lgl-me { stroke-width: 2.5; } .lgsvg.mini .lgl-nat { stroke-width: 1.5; }
i.k-lme, i.k-lnat { height: 3px !important; } i.k-lme { background: var(--brand2); } i.k-lnat { background: var(--mute); }
.sd-n a, .sb-n a { color: inherit; }
.lgmap { width: 100%; max-width: 600px; height: auto; display: block; margin: 4px auto; }
.lgmap path { stroke: var(--panel); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.lgmap .mp0, i.mk.mp0 { fill: color-mix(in srgb, var(--brand2) 18%, var(--panel)); background: color-mix(in srgb, var(--brand2) 18%, var(--panel)); }
.lgmap .mp1, i.mk.mp1 { fill: color-mix(in srgb, var(--brand2) 40%, var(--panel)); background: color-mix(in srgb, var(--brand2) 40%, var(--panel)); }
.lgmap .mp2, i.mk.mp2 { fill: color-mix(in srgb, var(--brand2) 66%, var(--panel)); background: color-mix(in srgb, var(--brand2) 66%, var(--panel)); }
.lgmap path.off { opacity: .45; } .lgmap path.on { stroke: var(--ink); stroke-width: 2.5; }
.lgmap path:hover, .lgmap path:focus { stroke: var(--ink); stroke-width: 2; outline: none; }
.lgmap text { pointer-events: none; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; fill: var(--ink); }
.lgmap .mpl { font-size: 15px; font-weight: 700; } .lgmap .mps { font-size: 12.5px; fill: var(--sub); }
@media (max-width: 560px) { .smgrid { grid-template-columns: 1fr 1fr; gap: 8px 10px; } .smp-h { flex-direction: column; gap: 0; font-size: 14px; } .smp-h span { text-align: left; font-size: 13px; } .lgins { font-size: 16px; } }
.sd-wrap.wide .sd-r { grid-template-columns: minmax(9em, 16em) 1fr 5.5em; }
@media (max-width: 560px) { .sd-wrap.wide .sd-r { grid-template-columns: 1fr 4.5em; } .sd-wrap.wide .sd-t { grid-column: 1 / -1; grid-row: 2; } }

/* 상관 격자: 칸마다 가운데 기준 막대(오른쪽 파랑=같은 방향, 왼쪽 주황=반대 방향), 숫자는 막대 옆 작게(2026-11-25) */
.vheat td.hc { background: none; padding: 8px 6px; }
.vheat .hb { position: relative; display: block; height: 14px; border-radius: 7px; background: var(--panel2, rgba(127,127,127,.08)); }
.vheat .hb::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--mute); opacity: .6; }
.vheat .hf { position: absolute; top: 0; bottom: 0; border-radius: 7px; }
.vheat td.pos .hf { left: 50%; background: var(--s1); }
.vheat td.neg .hf { right: 50%; background: var(--s3); }
.vheat .hv { display: block; margin-top: 5px; font-size: 13.5px; font-weight: 600; color: var(--sub); }
/* 숫자 표 접기 */
.numfold { margin: 0 0 16px; }
.numfold > summary { cursor: pointer; font-size: 15px; color: var(--sub); font-weight: 600; padding: 6px 0; }
.numfold[open] > summary { margin-bottom: 4px; }
/* 지자체 개요(2026-11-25 확정 시안): 머리·대표 카드·지도·순위 변화·전국과 비교·시군 인구 */
.cbh-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 32px; align-items: center; padding: 18px 0 4px; }
.cbh-head .eyebrow { font-size: 14px; color: var(--sub); font-weight: 600; margin: 0 0 6px; }
.cbh-head h1 { font-size: 52px; line-height: 1.1; margin: 0; letter-spacing: -.03em; font-weight: 800; }
.cbh-lede { font-size: 19px; color: var(--sub); margin: 14px 0 0; } .cbh-lede b { color: var(--ink); }
.cbh-loc { width: 100%; height: auto; display: block; }
.cbh-loc path { fill: var(--line2); stroke: var(--bg); stroke-width: .8; } .cbh-loc path.me { fill: var(--brand2); }
.cbh-loc line { stroke: var(--ink); stroke-width: 1; } .cbh-loc text { font-size: 13px; font-weight: 700; fill: var(--ink); }
.cbh-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 8px; }
.cbh-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 16px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.cbh-card:hover { border-color: var(--brand2); }
.cbh-card .lab { font-size: 15px; color: var(--sub); font-weight: 600; }
.cbh-card .val { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cbh-card .val small { font-size: 17px; font-weight: 600; color: var(--sub); margin-left: 3px; }
.cbh-card .nat { font-size: 14px; color: var(--sub); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cbh-card svg { display: block; width: 100%; height: auto; margin: 12px 0 8px; overflow: visible; }
.cbh-card .lme, .cbs-c .lme { fill: none; stroke: var(--brand2); stroke-width: 2.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cbh-card .lnat, .cbs-c .lnat { fill: none; stroke: var(--mute); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.cbh-card .dme { fill: var(--brand2); } .cbh-card .ax { font-size: 12px; fill: var(--sub); }
.cbh-card .rk { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--sub); margin-top: auto; }
.cbh-card .rk b { font-size: 17px; color: var(--brand2); font-weight: 800; }
.cbm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.cbm-map { width: 100%; height: auto; display: block; }
.cbm-map path.sg { stroke: var(--panel); stroke-width: 1.6; cursor: pointer; vector-effect: non-scaling-stroke; }
.cbm-map path.sg.on { stroke: var(--ink); stroke-width: 2.4; }
.cbm-map .c0, .cbm-leg i.c0 { fill: color-mix(in srgb, var(--brand2) 8%, var(--panel)); background: color-mix(in srgb, var(--brand2) 8%, var(--panel)); }
.cbm-map .c1, .cbm-leg i.c1 { fill: color-mix(in srgb, var(--brand2) 24%, var(--panel)); background: color-mix(in srgb, var(--brand2) 24%, var(--panel)); }
.cbm-map .c2, .cbm-leg i.c2 { fill: color-mix(in srgb, var(--brand2) 44%, var(--panel)); background: color-mix(in srgb, var(--brand2) 44%, var(--panel)); }
.cbm-map .c3, .cbm-leg i.c3 { fill: color-mix(in srgb, var(--brand2) 68%, var(--panel)); background: color-mix(in srgb, var(--brand2) 68%, var(--panel)); }
.cbm-map .c4, .cbm-leg i.c4 { fill: color-mix(in srgb, var(--brand2) 92%, var(--panel)); background: color-mix(in srgb, var(--brand2) 92%, var(--panel)); }
.cbm-map text { pointer-events: none; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; fill: var(--ink); }
.cbm-map .nm { font-size: 15px; font-weight: 800; } .cbm-map .id { font-size: 13px; font-weight: 600; }
.cbm-map text.dk { fill: #fff; stroke: color-mix(in srgb, var(--brand2) 75%, #000); stroke-width: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cbm-map text.dk { fill: var(--ink); stroke: var(--panel); } }
:root[data-theme="dark"] .cbm-map text.dk { fill: var(--ink); stroke: var(--panel); }
.cbm-leg { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--sub); margin-top: 10px; flex-wrap: wrap; }
.cbm-leg .sw { display: flex; border-radius: 3px; overflow: hidden; } .cbm-leg i { display: inline-block; width: 28px; height: 10px; }
.cbm-hd { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cbm-r { display: grid; grid-template-columns: 4em minmax(0, 1fr) 30% 3.2em; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cbm-r.on, .cbm-r:hover { background: var(--hover); }
.cbm-r .n { font-weight: 700; } .cbm-r .i { font-size: 14.5px; line-height: 1.35; } .cbm-r .i small { display: block; font-size: 12.5px; color: var(--mute); }
.cbm-r .b { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; } .cbm-r .b span { display: block; height: 100%; background: var(--brand2); border-radius: 4px; }
.cbm-r .v { text-align: right; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.cbr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cbr-two h3 { font-size: 17px; margin: 0 0 6px; }
.cbr-ax, .cbr-r { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 92px; gap: 14px; align-items: center; }
.cbr-ax { font-size: 12px; color: var(--mute); padding-bottom: 6px; border-bottom: 1px solid var(--line); } .cbr-ax span:nth-child(2) { display: flex; justify-content: space-between; } .cbr-ax em { font-style: normal; }
.cbr-r { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; } .cbr-r:last-child { border-bottom: 0; } .cbr-r:hover { background: var(--hover); }
.cbr-r .n { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.cbr-r svg { width: 100%; height: 26px; display: block; overflow: visible; }
.cbr-r .tk { stroke: var(--line); stroke-width: 1; } .cbr-r .mv { stroke: var(--brand2); stroke-width: 2.4; opacity: .55; }
.cbr-r .o { fill: var(--panel); stroke: var(--brand2); stroke-width: 2; } .cbr-r .f { fill: var(--brand2); }
.cbr-r .t { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; color: var(--sub); white-space: nowrap; } .cbr-r .t b { color: var(--ink); } .cbr-r .t small { display: block; font-size: 12px; color: var(--mute); }
.cbc-r { display: grid; grid-template-columns: 200px minmax(0, 1fr) 210px; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cbc-r:last-child { border-bottom: 0; }
.cbc-r .n { font-size: 15.5px; font-weight: 600; color: var(--ink); } .cbc-r .n small { display: block; font-size: 12.5px; color: var(--mute); font-weight: 500; }
.cbc-r svg { width: 100%; height: 34px; display: block; overflow: visible; }
.cbc-r .ax { stroke: var(--line); } .cbc-r .o { fill: var(--line2); } .cbc-r .nat { fill: var(--panel); stroke: var(--mute); stroke-width: 2.5; } .cbc-r .me { fill: var(--brand2); stroke: var(--panel); stroke-width: 2; }
.cbc-r .t { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; color: var(--sub); } .cbc-r .t b { color: var(--brand2); font-size: 17px; }
i.k-doth { width: 11px !important; height: 11px !important; border-radius: 50% !important; background: var(--line2); }
.cbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cbs-c { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; color: var(--ink); text-decoration: none; display: block; }
.cbs-c:hover { border-color: var(--brand2); }
.cbs-c .h { display: flex; justify-content: space-between; align-items: baseline; } .cbs-c .h b { font-size: 16px; }
.cbs-c .h span { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; } .cbs-c .h span.up { color: var(--brand2); }
.cbs-c .s { font-size: 12.5px; color: var(--mute); display: block; }
.cbs-c svg { width: 100%; height: 92px; display: block; margin-top: 6px; overflow: visible; }
.cbs-c .base { stroke: var(--line); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; } .cbs-c .area { fill: var(--brand2); opacity: .12; stroke: none; }
.cbs-c.key { background: transparent; border: 1px dashed var(--line); display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--sub); }
.cbs-c.key i { display: inline-block; width: 20px; margin-right: 6px; vertical-align: middle; }
@media (max-width: 980px) { .cbh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cbm, .cbr-two { grid-template-columns: 1fr; } .cbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cbc-r { grid-template-columns: 150px minmax(0, 1fr) 160px; } }
@media (max-width: 640px) {
  .cbh-head { grid-template-columns: 1fr; } .cbh-loc { display: none; } .cbh-head h1 { font-size: 38px; } .cbh-lede { font-size: 16.5px; }
  .cbh-cards { gap: 10px; } .cbh-card { padding: 14px; } .cbh-card .val { font-size: 28px; } .cbh-card .lab { font-size: 14px; }
  .cbm { padding: 14px; gap: 14px; } .cbm-map .id { display: none; } .cbm-map .nm { font-size: 19px; }
  .cbm-r { grid-template-columns: 3.6em minmax(0, 1fr) 3em; } .cbm-r .b { grid-column: 2 / 4; grid-row: 2; }
  .cbr-ax { display: none; } .cbr-r { grid-template-columns: 1fr 78px; gap: 6px 10px; } .cbr-r svg { grid-column: 1 / 3; grid-row: 2; }
  .cbc-r { grid-template-columns: 1fr; gap: 4px; } .cbc-r .t { text-align: left; }
  .cbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cbs-c { padding: 12px; }
}
.cbr-two > .card { padding: 16px 18px; }
@media (max-width: 640px) { .cbm-map .nm { font-size: 23px; } .cbm-map text { stroke-width: 5px; } .cbr-r { grid-template-columns: 1fr 108px; } }

/* 요약 지표는 모두 상세로 넘어감: 옅은 바탕·작은 화살표·키보드 초점 표시(2026-11-25) */
.kstat a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line2, var(--line)); }
.kstat a:hover { color: var(--ink); border-bottom-color: var(--brand2); }
.icard { position: relative; transition: border-color .15s, background-color .15s; }
.icard::after { content: "→"; position: absolute; top: 14px; right: 16px; font-size: 16px; font-weight: 700; color: var(--mute); opacity: .55; transition: opacity .15s, transform .15s, color .15s; }
.icard .nm { padding-right: 20px; }
.icard:hover, .irow:hover, .rcard:hover, .tile:hover { background: color-mix(in srgb, var(--brand2) 6%, var(--panel)); }
.icard:hover::after { opacity: 1; color: var(--brand2); transform: translateX(2px); }
.kbar:hover .kn { color: var(--brand2); }
.kbar .kn::after { content: " →"; color: var(--brand2); opacity: .7; }
.icard:focus-visible, .irow:focus-visible, .rcard:focus-visible, .tile:focus-visible, .qchip:focus-visible, .kstat a:focus-visible, .chip:focus-visible { outline: 3px solid var(--brand2); outline-offset: 2px; border-radius: 12px; }
@media (hover: none) { .icard::after { opacity: .8; } }

/* 전국과 비교 분야별 카드(2026-11-25 교정): 점과 선을 같은 y(38)에, 공용 .me와 겹치지 않는 이름 */
.cpk { margin: 0 0 12px; }
.cpg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cpc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 8px; min-width: 0; }
.cpt { display: flex; align-items: center; gap: 10px; } .cpt b { font-size: 19px; } .cpt a { margin-left: auto; font-size: 13.5px; color: var(--sub); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; } .cpt a:hover { color: var(--brand2); }
.cph { display: flex; flex-direction: column; margin: 14px 0 6px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--brand2) 7%, var(--panel)); }
.cph .l { font-size: 12.5px; color: var(--sub); font-weight: 600; } .cph .nm { font-size: 15px; font-weight: 700; margin-top: 4px; }
.cph .big { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--brand2); font-variant-numeric: tabular-nums; } .cph .big small { font-size: 17px; font-weight: 600; color: var(--sub); margin-left: 3px; }
.cph .d { font-size: 14.5px; color: var(--sub); font-variant-numeric: tabular-nums; } .cph .d b { color: var(--ink); }
.cpr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 12px 0 6px; border-bottom: 1px solid var(--line); }
.cpr:last-child { border-bottom: 0; }
.cpr .n { font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; } .cpr .n:hover { color: var(--brand2); } .cpr .n small { font-size: 12.5px; color: var(--mute); font-weight: 500; margin-left: 6px; }
.cpr .rk { font-size: 13px; color: var(--sub); white-space: nowrap; }
.cpr svg { grid-column: 1 / 3; width: 100%; height: 52px; display: block; overflow: visible; }
.cpr .t { grid-column: 1 / 3; justify-self: end; font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; margin-top: -2px; }
.cpr .cpa { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.cpr .cpo { fill: var(--line2); } .cpr .cpn { fill: var(--panel); stroke: var(--mute); stroke-width: 2.5; } .cpr .cpm { fill: var(--brand2); stroke: var(--panel); stroke-width: 2.5; }
.cpr .cpv { font-size: 15px; font-weight: 800; fill: var(--brand2); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .cpg { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cpc { padding: 14px 14px 6px; } .cph .big { font-size: 32px; } }

/* 개요 링크 표시(2026-11-25 본부장 지시: 첫 페이지 지표는 눌러서 상세로): 오른쪽 위 화살표, hover 옅은 바탕, 키보드 초점 */
.lgo { position: relative; cursor: pointer; color: var(--ink); text-decoration: none; transition: background-color .12s, border-color .12s; }
.lgo .go { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); background: transparent; transition: color .12s, background-color .12s, transform .12s; pointer-events: none; }
.lgo .go svg { width: 14px; height: 14px; }
.lgo:hover .go, .lgo:focus-visible .go { color: var(--brand2); background: color-mix(in srgb, var(--brand2) 12%, transparent); transform: translateX(2px); }
.lgo:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; }
.cbh-card.lgo:hover, .cbs-c.lgo:hover { background: color-mix(in srgb, var(--brand2) 5%, var(--panel)); border-color: var(--brand2); }
.cbh-card.lgo .lab { padding-right: 26px; } .cbs-c.lgo .h { padding-right: 24px; } .cbs-c.lgo .go { top: 10px; right: 8px; }
.cbr-r.lgo { padding-right: 30px; border-radius: 8px; } .cbr-r.lgo .go { top: 50%; right: 2px; margin-top: -11px; }
.cbr-r.lgo:hover, .cpr.lgo:hover { background: color-mix(in srgb, var(--brand2) 5%, var(--panel)); }
.cpr.lgo { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; } .cpr.lgo .go { position: static; grid-column: 3; grid-row: 1; align-self: center; }
.cpr { grid-template-columns: minmax(0, 1fr) auto 22px; } .cpr svg, .cpr .t { grid-column: 1 / 4; }
.cpr.lgo:hover .n { color: var(--brand2); }
.cph.lgo { padding-right: 44px; } .cph.lgo:hover { background: color-mix(in srgb, var(--brand2) 12%, var(--panel)); }
@media (max-width: 640px) { .cbr-r.lgo .go { top: 12px; margin-top: 0; } }
.dnote { margin: 10px 2px 0; font-size: 14.5px; color: var(--sub); line-height: 1.55; }

/* 지표 상세 여러 지역 추세(2026-11-25) */
#lgtip { white-space: pre-line; line-height: 1.55; }
.lgsvg .lgl-p { fill: none; stroke: color-mix(in srgb, var(--mute) 50%, var(--panel)); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lgsvg .lgl-natd { fill: none; stroke: var(--mute); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lgsvg .lgt-p { fill: var(--mute); font-size: 13.5px; }
.lgsvg.lgmt .lgl-me { stroke-width: 3.5; }
.lgsvg .lgdk { display: none; stroke: var(--panel); stroke-width: 2; } .lgsvg .lgdk.m { fill: var(--brand2); } .lgsvg .lgdk.n { fill: var(--mute); } .lgsvg .lgdk.p { fill: var(--line2); }
.lgmt-k { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; }
.lgmt-k i { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 3px solid var(--brand2); }
.lgmt-k i.k-lp { border-top: 2px solid color-mix(in srgb, var(--mute) 50%, var(--panel)); } .lgmt-k i.k-lnatd { border-top: 2px dashed var(--mute); }
.lgmt-k span:last-child { color: var(--mute); }
@media (max-width: 640px) { .lgsvg.lgmt text { font-size: 17px; } .lgsvg.lgmt .lgax { font-size: 15px; } .lgsvg.lgmt .lgt-p { font-size: 15px; } }

/* 점 목록·격자·시군 작은 그림 크기(2026-11-25 교정) */
.sd-wrap.dot .sd-t::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); border-radius: 1px; }
.sd-d { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: color-mix(in srgb, var(--mute) 55%, var(--panel)); border: 2px solid var(--panel); box-sizing: content-box; }
.sd-r.me .sd-d { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--brand2); }
.sd-wrap.dot .sd-t { height: 22px; }
.sd-wrap.dot .sd-nat { top: 0; bottom: 0; }
.sd-r:hover .sd-d, .sd-r:focus .sd-d { background: var(--brand2); }
.lgsvg .lggrid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lgsvg .dme { fill: var(--brand2); }
.smgrid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px 22px; }
.smp-h { font-size: 16px; } .smp-h span { font-size: 14.5px; }
@media (max-width: 560px) { .smgrid { grid-template-columns: 1fr; } .smp-h { flex-direction: row; } }
