@charset "utf-8";
/* 글자 굵기 2단계 통일(2026-09-15, KRDS 표준형: regular 400 · bold 700): 이 파일의 font-weight 선언 중 600·800·900→700, 100~500→400 으로 일괄 치환(bold·normal 은 700·400 과 같은 값이라 유지). 원값은 git 이력(치환 커밋 직전) 참조. @font-face 매핑 접기(common.css·style_common.css)는 안전망으로 유지 */
/* ============================================================
   style_csi.css — 지역사회보장지표(/kor/csi/*) 스타일 (구 style_community.css — 2026-08-28 리네임)
   · 토큰·헤더푸터·본문 래퍼(main.wrap) 규격은 style_common.css가 단일 소스
   · 파랑 계열 변수는 KRDS 기본파랑(--dp-primary 계열) 참조 — 하단 '공통 디자인 시스템 정렬' 블록
   ============================================================ */

:root {
  --ci-bg: #EEF1F7;
  --coral-dark: #D9564D;
  --radius: 10px;
  --radius-sm: 6px;
  --s2: #00786A;
  --s3: #9A3412;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  font-size: 16px;
}


body {
  /* font-family: 'Paperlogy','Pretendard GOV',sans-serif;  — 2026-09-08 style_common.css body(var(--dp-font))로 이관, 굵기·행간은 csi 퍼블 원안 유지 */
  font-weight: 400;
  line-height: 1.6;
}


h1,h2,h3 {
  font-weight: 700;
  line-height: 1.35;
}


button,input,select {
  font-family: inherit;
  letter-spacing: -0.05em;
  color: inherit;
  font-size: var(--fs-xs);
}


a {
  color: var(--ci);
}


/* (구 `is(...)` 포커스 규칙 제거 — `:is()`의 오타로 처음부터 매치되지 않던 죽은 규칙.
   실제 포커스 링은 하단 KRDS 보강부의 `:focus-visible { outline: 3px solid var(--blue) }`가 담당 — 2026-08-28 정리) */


/* .wrap 컨테이너 규격은 style_common.css 단일 소스로 이관(2026-08-28 구조 통일)
   — 이 파일의 규격 선언(기본·미디어별 패딩)은 제거됨. 1870행대 퍼블 원본 .wrap은 공통 규칙(뒤 로드)이 덮는다 */


/* (구판 전역 main 패딩 제거 — 2026-08-28 main.wrap 통일 이후 .wrap 패딩에 덮여 무력화돼 있다가,
   2026-09-01 .wrap이 안쪽 .dp-container로 이동하며 되살아나 csi만 +24/+48px 내려앉던 규칙.
   본문 상하 패딩은 .dp-container.wrap(--nt-pad-y)이 단일 담당) */


section.screen[hidden] {
  display: none;
}


/* ── 공통 ── */
.panel+.panel {
  margin-top: 1.2rem;
}


.panel-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}


.panel-head h2,.panel-head h3 {
  font-size: var(--fs-body);
}


.panel-head .meta {
  font-size: var(--fs-xs);
  color: var(--foot);
}


.panel-head .actions {
  margin-left: auto;
  display: flex;
  gap: .4rem;
}


fieldset {
  border: none;
}


.cond {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.05rem 1.3rem;
  margin-bottom: 1.2rem;
}


.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}


.field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 150px;
  flex: 1;
}


.field label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sub);
}


.field select,.field input[type="search"] {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 .75rem;
  background: #fff;
}


.btn {
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  justify-content: center;
}


.btn-line {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}


.btn-sm {
  height: 34px;
}


.note {
  font-size: var(--fs-xs);
  color: var(--foot);
}


/* 적용 조건 칩 */
.applied {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: -.4rem 0 1rem;
}


.applied .cap {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sub);
}


.cchip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #EAF2FB;
  color: var(--ci-dark);
  border: 1px solid var(--ci-soft);
  border-radius: 999px;
  padding: .22rem .85rem;
  font-size: var(--fs-xs);
  font-weight: 700;
}


.cchip small {
  font-weight: 400;
  color: var(--sub);
  font-size: var(--fs-xs);
}


table {
  width: 100%;
  border-collapse: collapse;
}


thead th.rowh {
  text-align: left;
}


tbody td {
  text-align: right;
  vertical-align: middle;
}


tbody td.rowh {
  text-align: left;
}


tbody tr:hover td {
  background: var(--bg-soft);
}


tr.area-row td {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-weight: 700;
  text-align: left;
  color: var(--ci-dark);
}


tr.area-row .cnt {
  font-weight: 400;
  color: var(--sub);
  margin-left: .5rem;
}


tr.area-row .cnt-hl {
  font-size: var(--fs-xs);
  padding: .02rem .5rem;
}


td.val {
  font-weight: 700;
  color: var(--ci-dark);
}


td.diff {
  white-space: nowrap;
  font-weight: 700;
}


td.diff.up {
  color: var(--ci);
}


td.diff.down {
  color: var(--coral);
}


td.rank {
  white-space: nowrap;
  color: var(--sub);
}


.tbl-note {
  font-size: var(--fs-xs);
  color: var(--foot);
  padding: .8rem 1.25rem;
  border-top: 1px solid var(--line-soft);
}


td.dist {
  width: 250px;
  min-width: 220px;
}


.rng {
  position: relative;
  height: 22px;
}


.rng .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: var(--line-soft);
  border-radius: 3px;
}


.rng .iqr {
  position: absolute;
  top: 50%;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 4px;
}


.rng .avg {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;    /* 삼각형 14×14 — 선택지역 원(14px)과 같은 크기로 (2026-09-14, 구 10×10) */
  border-right: 7px solid transparent;
  border-bottom: 14px solid var(--sub);
}


.rng .me {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1.5px var(--coral);
  transform: translate(-50%,-50%);
}


.rng .cap {
  position: absolute;
  top: 50%;
  width: 1.5px;
  height: 14px;
  background: var(--line);
  transform: translateY(-50%);
}


.rng .cap.l {
  left: 0;
}


.rng .cap.r {
  right: 0;
}


.mm {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--foot);
  line-height: 1.1;
  margin-top: 1px;
}


.legend {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}


.legend span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}


.lg-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--coral);
  flex: none;
}


.lg-band {
  width: 18px;
  height: 9px;
  border-radius: 4px;
  flex: none;
}


.lg-avg {
  width: 0;
  height: 0;
  border-left: 6.5px solid transparent;    /* 범례 삼각형 13×13 — 범례 원(13px)과 맞춤 (2026-09-14, 구 12×11) */
  border-right: 6.5px solid transparent;
  border-bottom: 13px solid var(--sub);
  flex: none;
}


/* 소개 */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width:1024px) {


  .intro-grid {
    grid-template-columns: 1fr;
  }
}


.intro-grid .panel {
  margin-top: 0;
}


.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .4rem 1rem;
  /* font-size: var(--fs-xs); */
}


.kv dt {
  font-weight: 700;
}


.cmp-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}


.cmp-card {
  padding: 1.1rem 1.2rem;
  background: #fff;
}


.cmp-card h3 {
  margin-bottom: .4rem;
}


.cmp-card p {
  font-size: var(--fs-xs);
  color: var(--sub);
}


.cmp-card .ex {
  margin-top: .6rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: .6rem .8rem;
  font-size: var(--fs-xs);
}


details.fold {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-top: 1.2rem;
  background: #fff;
}


details.fold summary {
  padding: .8rem 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}


details.fold summary::before {
  content: "▸ ";
  color: var(--coral);
}


details.fold[open] summary::before {
  content: "▾ ";
}


details.fold .fold-body {
  padding: 0 1rem 1rem;
  font-size: var(--fs-xs);
  color: var(--sub);
}


/* 맞춤형 분석 */
.builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}


.builder-2 {
  grid-template-columns: 330px 1fr;
}
@media (max-width:1024px) {


  .builder {
    grid-template-columns: 1fr;
  }
}


.builder .panel {
  margin-top: 0;
}


details.area-acc {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  background: #fff;
}


details.area-acc summary {
  padding: .65rem .9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  justify-content: space-between;
}


details.area-acc summary::after {
  content: "+";
  color: var(--foot);
  font-weight: 700;
}


details.area-acc[open] summary::after {
  content: "−";
}


.acc-list {
  padding: .2rem .9rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}


.acc-list label {
  cursor: pointer;
  min-width: 0;
}


.acc-list .lbl {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.acc-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: var(--ci);
  flex: none;
}


.tray-head {
  background: #EAF2FB;
}


.tray-count {
  margin-left: auto;
  font-size: var(--fs-xs);
}


ul.tray-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 90px;
}


ul.tray-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: .42rem .65rem;
  font-size: var(--fs-xs);
  background: #FDFDFD;
  min-width: 0;
}


ul.tray-list li span:first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


ul.tray-list li .rm {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--coral);
  font-weight: 700;
  cursor: pointer;
  font-size: var(--fs-sm);
  line-height: 1;
}


/* 추이 분석 */
.chart-box {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem;
  background: #FDFDFD;
}


.chart-box svg {
  display: block;
  width: 100%;
}


/* 데이터표와 동일 전폭. 전폭(약 1190px) 배율 기준 9단위 폰트 → 실측 약 14px */
.legend-center {
  justify-content: center;
  margin-top: .7rem;
}


.tbl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.4rem 0 .4rem;
}


.tbl-head h3 {
  font-size: var(--fs-sm);
}


.panel-head .actions {
  align-items: center;
}


.tbl-head+div { position:relative}


.lg {
  width: 26px;
  height: 0;
  border-top-width: 3px;
  flex: none;
}


.lg.s1 {
  border-top: 3px solid var(--s1);
}


.lg.s2 {
  border-top: 3px dashed var(--s2);
}


.lg.s3 {
  border-top: 3px dotted var(--s3);
}


.lg.s4 {
  border-top: 3px solid #6B4FA0;
  border-top-style: dashed;
}


/* 지표산식·자료출처 통합 영역 */
.meta-box {
  margin-top: 1.3rem;
  border: 1px solid var(--line);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}


.meta-sec h3 {
  border-left: 4px solid var(--coral-bright);
  padding-left: .6rem;
  margin-bottom: .35rem;
}


.meta-sec p {
  padding-left: .85rem;
}


.mean-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem 2rem;
}
@media (max-width:1024px) {


  .mean-list {
    grid-template-columns: 1fr;
  }
}


.mean-list li {
  font-size: var(--fs-xs);
  color: var(--sub);
  padding-left: 1rem;
  position: relative;
}


.mean-list li::before {
  content: "·";
  position: absolute;
  left: .2rem;
  color: var(--coral);
  font-weight: 700;
}


.mean-list li b {
  color: var(--text);
}


/* 지도 */
.gis-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.2rem;
  align-items: stretch;
}


.gis-grid .panel {
  display: flex;
  flex-direction: column;
}


.gis-grid .panel .panel-body {
  flex: 1;
}
@media (max-width:1024px) {


  .gis-grid {
    grid-template-columns: 1fr;
  }
}


.gis-grid .panel {
  margin-top: 0;
}


ol.rank-list {
  list-style: none;
  counter-reset: rk;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}


ol.rank-list li {
  counter-increment: rk;
  display: flex;
  gap: .6rem;
  align-items: baseline;
  font-size: var(--fs-xs);
  padding: .35rem .2rem;
  border-bottom: 1px solid var(--line-soft);
}


ol.rank-list li::before {
  content: counter(rk);
  font-weight: 700;
  color: var(--ci);
  min-width: 1.2rem;
}


ol.rank-list li b {
  margin-left: auto;
  font-weight: 700;
  color: var(--ci-dark);
}


.gis-maps {
  align-items: start;
}


.gis-map-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem;
}


.gis-map-img img {
  max-width: 100%;
  height: auto;
  display: block;
}


.map-ph {
  height: 440px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg,var(--bg-soft) 25%,#fff 25%,#fff 50%,var(--bg-soft) 50%,var(--bg-soft) 75%,#fff 75%);
  background-size: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sub);
  font-size: var(--fs-xs);
  padding: 1rem;
}


/* ── 추이 분석(신규): 지표 카드 그리드 + 확대 보기 ── */
.ci-txt {
  text-decoration: none;
  color: var(--navy);
  font-size: var(--fs-h3);
  letter-spacing: -0.05em;
}


.ci-txt b {
  color: var(--ci);
}


.seg {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
}


#c3mode .seg-btn {
  font-size: var(--fs-xs);
}


#p3 .form-row {
  gap: .7rem;
}


#p3 .form-row .field {
  min-width: 80px;
  flex: 1;
}


#p3 .form-row .field:has(#c3y1),#p3 .form-row .field:has(#c3y2) {
  flex: 0 0 84px;
  max-width: 84px;
}


#p3 .form-row .field:has(#c3sido) {
  flex: 1.4;
}


#p3 .form-row .field:has(#c3sgg) {
  flex: .9;
}


#p3 .form-row .field:has(#c3cmp) {
  flex: 1.4;
}


#p3 .form-row .field:has(#c3area) {
  flex: 1;
}


#p3 .form-row .field select {
  width: 100%;
}


#p3 .form-row .btn-primary {
  padding: 0 1.1rem;
}


#p3 [hidden] {
  display: none!important;
}


#c3mode .seg-btn {
  padding: 0 .7rem;
  white-space: nowrap;
}


.tool-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
}


.mode-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  padding-bottom: .85rem;
  margin-bottom: .85rem;
}


.mode-row .note {
  color: var(--foot);
}


.trend-legend-row {
  padding: .6rem 1.25rem 0;
  display: flex;
  justify-content: flex-end;
}


#c3add {
  padding: 0 .9rem;
  white-space: nowrap;
}


.seg-btn {
  border: none;
  background: #fff;
  padding: 0 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}


.seg-btn:last-child {
  /* border-right: none; */
}


.seg-sm .seg-btn {
  /* padding:0 .8rem; */
  font-size: var(--fs-xs);
  min-width: 71px;
}


.field-lab {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sub);
}


.trend-tools {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  border-radius: var(--radius) var(--radius) 0 0;
}


.trend-tools .legend {
  margin-left: .4rem;
}


.trend-tools .actions {
  margin-left: auto;
  display: flex;
  gap: .4rem;
}


.tool-group {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}


.tool-lab {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sub);
}


.tool-check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-xs);
  color: var(--sub);
  cursor: pointer;
}


/* 버튼형 토글 (체크박스 대체) */
.tool-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .3rem .75rem .3rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sub);
  cursor: pointer;
  transition: border-color .15s,color .15s,background-color .15s;
}


.tool-toggle:hover {
  border-color: var(--ci);
  color: var(--ci);
}


.tool-toggle__track {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #C4CCDA;
  transition: background-color .2s;
}


.tool-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8,48,104,.35);
  transition: transform .2s;
}


.tool-toggle__label {
  white-space: nowrap;
}


.tool-toggle__state {
  min-width: 1.4em;
  font-size: var(--fs-xxs);
  font-weight: 700;
  color: var(--foot);
}


.tool-toggle[aria-pressed="true"] {
  border-color: var(--ci);
  color: var(--ci);
  background: var(--ci-bg,#EDF3FE);
}


.tool-toggle[aria-pressed="true"] .tool-toggle__track {
  background: var(--ci);
}


.tool-toggle[aria-pressed="true"] .tool-toggle__knob {
  transform: translateX(16px);
}


.tool-toggle[aria-pressed="true"] .tool-toggle__state {
  color: var(--ci);
}
@media (prefers-reduced-motion:reduce) {


  .tool-toggle,.tool-toggle__track,.tool-toggle__knob {
    transition: none;
  }
}


.tool-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--ci);
}


.lg-line {
  width: 24px;
  height: 0;
  border-top: 3px solid var(--coral);
  flex: none;
}


.lg-dash {
  width: 24px;
  height: 0;
  border-top: 3px dotted var(--ci);
  flex: none;
}


.trend-sum {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.25rem 0;
  flex-wrap: wrap;
}


.trend-sum h2 {
  font-size: var(--fs-body);
}


.trend-sum .note {
  margin-left: auto;
}


.t-area {
  margin-bottom: 1.4rem;
}


.t-area h3 {
  border-left: 4px solid var(--ci);
  margin-bottom: .7rem;
}


.t-area h3 .cnt {
  font-weight: 700;
  color: var(--sub);
  font-size: var(--fs-xs);
  display: inline-flex;
  gap: .3rem;
  align-items: center;
}


.t-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .8rem;
}
@media (max-width:1024px) {


  .builder-2 {
    grid-template-columns: 1fr;
  }


  .t-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:768px) {


  .t-grid {
    grid-template-columns: 1fr;
  }
}


.t-card {
  text-align: left;
  background: #fff;
  cursor: pointer;
  font: inherit;
  letter-spacing: -0.05em;
  color: inherit;
  width: 100%;
  min-width: 0;
}


.t-card .tc-head {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .2rem;
}


.t-card .tc-name {
  line-height: 1.35;
  min-width: 0;
}


.t-card .tc-unit {
  font-size: var(--fs-xxs);
  color: var(--foot);
  white-space: nowrap;
  flex: none;
  margin-top: .1rem;
}


.t-card svg {
  display: block;
  width: 100%;
  height: auto;
}


.t-card .tc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xxs);
  color: var(--foot);
  margin-top: .15rem;
}


.t-card .tc-delta {
  font-weight: 700;
}


.t-card .tc-delta.up {
  color: var(--ci);
}


.t-card .tc-delta.down {
  color: var(--coral-dark);
}


.t-card .tc-more {
  color: var(--foot);
}


/* 확대 보기(dialog) */
dialog.tmodal {
  border: none;
  padding: 0;
  max-height: 92vh;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  font-family: inherit;
  letter-spacing: -0.05em;
  color: var(--text);
}


dialog.tmodal::backdrop {
  background: rgba(17,24,39,.45);
}


.tm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  height: 92px;
}


.tm-sub {
  margin-top: .15rem;
}


.tm-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--sub);
  cursor: pointer;
  padding: 0 .3rem;
}


.tm-close:hover {
  color: var(--text);
}


.tm-body {
  padding: 1rem 1.4rem 1.4rem;
}


.tm-ctrl {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}


.tm-ctrl .actions {
  margin-left: auto;
  display: flex;
  gap: .4rem;
}


.tm-chart {
  position: relative;
}


.tm-chart .unit {
  position: absolute;
  right: 1rem;
  top: .6rem;
  font-size: 14px;
  color: var(--sub);
}


.tm-chart svg {
  display: block;
  width: 100%;
  height: auto;
}


tbody tr:hover th[scope="row"] {
  background: var(--bg-soft);
}


.tm-table th[scope="row"] {
  background: #fff;
  color: var(--text);
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
  padding: .55rem .75rem;
}


.tm-table td.val {
  font-weight: 700;
  color: var(--ci-dark);
}


.tm-table .sw {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 3px solid;
  vertical-align: middle;
  margin-right: .5rem;
}


/* 재구성 섹션 보조 */
.gis-wrap {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: start;
}
@media (max-width:1024px) {


  .gis-maps {
    grid-template-columns: 1fr;
  }


  .gis-wrap {
    grid-template-columns: 1fr;
  }

  /* 지도 상하 여백 축소: 좁은 폭에선 지도가 가로 기준으로 그려져 640px 고정 높이의 위아래가 비어 보임
     — 홀더 폭에 비례(11:10)하도록 변경, rMate가 resize 시 재계산 (2026-09-04 실측: 549px 폭 기준 500px 적정) */
  .map-wrap .map-holder {
    height: auto;
    aspect-ratio: 11 / 10;
    max-height: 640px;
    min-height: 300px;
  }
}


.gis-leg {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: 14px;
  color: var(--sub);
}


.gis-leg span {
  display: flex;
  align-items: center;
  gap: .5rem;
}


.gis-leg i {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.08);
}


.gis-t {
  font-size: var(--fs-xs);
  color: var(--ci-dark);
  margin-bottom: .5rem;
}


ol.gis-rank {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem .8rem;
  font-size: 14px;
  max-height: 520px;
  overflow: auto;
  padding-right: .3rem;
}


ol.gis-rank li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .28rem .4rem;
  border-bottom: 1px solid var(--line-soft);
}


ol.gis-rank li i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: none;
  border: 1px solid rgba(0,0,0,.08);
}


ol.gis-rank li span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


ol.gis-rank li b {
  color: var(--ci-dark);
}


.gis-leg {
  padding-top: 2.2rem;
}


.acc-tools {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}


.acc-tools .c2clear {
  color: var(--coral-dark);
  border-color: #F6C9C5;
  margin-left: auto;
}


.acc-tools .c2clear:hover {
  background: var(--coral-bg);
}


details.area-acc summary {
  gap: .5rem;
}


details.area-acc summary .area-sel {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: var(--fs-xs);
  color: var(--sub);
  cursor: pointer;
  font-weight: 400;
  font-family: inherit;
  letter-spacing: -0.05em;
}


details.area-acc summary .area-sel:hover {
  border-color: var(--ci);
  color: var(--ci);
}


details.area-acc summary::after {
  margin-left: .5rem;
}


.tray-clear {
  margin-left: .6rem;
  color: var(--coral-dark);   /* 실제로는 뒤의 .btn{color:var(--ink)} 에 덮여 잉크색으로 보임(대비 12.8) — 가시성 문제 없음 (2026-09-14 확인) */
  border-color: #F6C9C5;
}


.region-tray {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
}


.region-tray .cap {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sub);
}


.rchip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .22rem .5rem .22rem .8rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  background: #fff;
}


.rchip i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}


.rchip button {
  background: none;
  border: none;
  color: var(--sub);
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
}


.rchip button:hover {
  color: var(--coral);
}


.lg-multi {
  width: 24px;
  height: 0;
  border-top: 3px solid;
  flex: none;
}


.lg-ref {
  width: 24px;
  height: 0;
  border-top: 3px dotted var(--navy); /* 전국 평균 기준선 — 단일 모드 평균선(lg-dash)과 동일 양식 (2026-08-26) */
  flex: none;
}


/* 메뉴 전환 시 세로 스크롤바 유무로 가로폭이 달라지는 현상 방지 */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}


/* ── 4개 메뉴 공통 결과 패널 규칙 ── */
.panel-head h2 {
  display: flex;
  align-items: center;
  gap: .35rem;
}


.panel-head .note {
  margin-left: .2rem;
}


.panel-head .actions .legend {
  margin-right: .6rem;
}


.panel-head .actions .tool-group {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-right: .4rem;
}


.panel-head .actions .tool-lab {
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
}


.panel-tools {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}


.panel-tools .tool-lab {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--sub);
}


.panel-tools .tool-check {
  font-size: var(--fs-xs);
}


.seg-btn:hover {
  color: var(--ci);
}


input[type="checkbox"] {
  accent-color: var(--ci);
}


/* ── KRDS · 반응형 · 접근성 보강 ── */
*,*::before,*::after {
  box-sizing: border-box;
}


/* (구 `:focus-visible { box-shadow:none }` 제거 — 위쪽의 죽은 is( 규칙을 끄기 위한 잔재였음 — 2026-08-28 정리) */

.btn, select, input[type="search"] {
  min-height: 44px;
}


.seg {
  min-height: 44px;
}


.seg-sm {
  min-height: 40px;
}


.seg-btn {
  min-height: 100%;
  height: 100%;
}


.tool-check {
  min-height: 44px;
  padding: .2rem 0;
}


.tool-check input,.acc-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
}


.acc-list label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .5rem;
}


details.area-acc summary {
  min-height: 48px;
  display: flex;
  align-items: center;
}


.t-card {
  min-height: 44px;
}


.tm-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width:1024px) {

  /* 퍼블 원본 .wrap{padding:0 16px} 잔재 삭제 (2026-09-04) — 공통 .wrap 규격(style_common.css --nt-pad-*)과
     동점 경합이라 common 로드 순서를 올리면 이 규칙이 이겨 통일 패딩을 깨뜨리므로 제거 */

  .panel-head {
    gap: .5rem;
  }


  .panel-head .actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
  }


  .map-row {
    grid-template-columns: 200px 1fr;
  }


  .gis-leg.side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-left: none !important;
    border-top: 1px solid var(--line-soft);
    padding: .7rem 1rem;
  }


  .index-holder {
    height: 240px;
  }
}
@media (max-width:768px) {




  .form-row .field,#p3 .form-row .field,#p3 .form-row .field:has(#c3sido),#p3 .form-row .field:has(#c3sgg),#p3 .form-row .field:has(#c3cmp),#p3 .form-row .field:has(#c3area) {
    max-width: none;
    min-width: 0;
    flex: 1 1 100%;
    width: 100%;
  }


  #p3 .form-row .field:has(#c3y1),#p3 .form-row .field:has(#c3y2) {
    flex: 1 1 calc(50% - .35rem);
    max-width: none;
    min-width: 0;
    width: auto;
  }


  table {
    min-width: 620px;
  }


  .tm-table {
    min-width: 520px;
  }


  #tmTable,.panel [style*="overflow-x"] {
    -webkit-overflow-scrolling: touch;
  }


  .form-row .btn-primary {
    width: 100%;
    margin-top: .2rem;
  }


  .mode-row {
    flex-direction: column;
    align-items: stretch;
  }


  .mode-row .seg {
    width: 100%;
  }


  .mode-row .seg-btn {
    flex: 1;
    padding: 0 .4rem;
  }


  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }


  /* ② 선택한 지표 헤드만 예외 (2026-09-14): 위 column 규칙 때문에 제목/카운트/전체해제가 3줄로 쌓이던 것을
     데스크톱과 같은 한 줄(제목 … 카운트 · 전체 해제)로. 모바일에선 제목 폰트도 같이 줄어 375px에서도 여유 있음 */
  .tray-head {
    flex-direction: row;
    align-items: center;
  }


  .panel-head .actions {
    justify-content: flex-start;
  }


  .panel-head .actions .legend {
    width: 100%;
    margin: 0 0 .4rem;
  }


  .map-row {
    grid-template-columns: 1fr !important;
  }


  .index-map {
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }


  .index-holder {
    width: 100%;
    height: 220px;
    /* 전국 시·도 미니 지도 가운데 정렬: rMate가 데스크톱 폭(240px) 기준으로 그린 렌더 div가
       전폭 컨테이너에서 좌측에 붙어 보이던 문제 (2026-08-31) */
    margin-left: auto;
    margin-right: auto;
  }
  .index-holder > div {
    margin-left: auto;
    margin-right: auto;
  }


  /* (구 .map-holder{height:380px} 고정은 1024 이하 공통의 비율 기반 높이(aspect-ratio 11/10)로 대체 — 2026-09-04) */


  .gis-leg.in-map,.gis-leg.side {
    grid-template-columns: repeat(2,1fr);
    display: grid;
  }


  dialog.tmodal {
    width: calc(100% - 16px);
    max-height: 96vh;
  }


  .tm-head,.tm-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }


  table {
    font-size: 14px;
  }
}


/* ══════════════════════════════════════════════════════════
   보건복지데이터포털 공통 디자인 시스템 정렬 (기준: 인구통계)
   ══════════════════════════════════════════════════════════ */
:root {
  /* 파랑 계열: KRDS 기본파랑 토큰(style_common.css --dp-primary 계열) 참조로 통일 (2026-08-28)
     — 구 csi 퍼블 값(#1653C4/#0B3B8C/#EDF3FE)에서 인구통계와 같은 색으로 변경 */
  --blue: var(--dp-primary);
  --blue-deep: var(--dp-primary-active);
  --blue-bg: var(--dp-primary-bg);
  --navy: #1E2B45;
  --navy-deep: #192240;
  --coral: #f0705f;
  --coral-text: #C13A0F;
  --coral-bright: #E9502E;
  --coral-bg: #FEF1EE;
  --ink: #25324B;
  --ink-sub: #55617A;
  --line: #DDE3EE;
  --line-soft: #E9EDF5;
  --bg-soft: #F4F6FA;
  --card-r: 16px;
  --ci: var(--dp-secondary); /* KRDS Secondary(#003675) — 2026-08-28 사용자 지정(dp-primary에서 변경) */
  --ci-dark: var(--dp-primary-active);
  --ci-soft: var(--dp-primary-light);
  --sub: #55617A;
  --text: #25324B;
  /* --foot: #8892A8; */  --foot: #6B7790;   /* 보조 문구 회색: 흰 배경 대비 3.1 → 4.6 (2026-09-14 가시성, 원복 시 위 주석값) */
  --focus: 0 0 0 3px rgba(37,110,244,.35); /* --dp-primary(#256EF4)의 rgb */
  --s1: var(--dp-primary);
}


body {
  font-size: var(--fs-sm);
  letter-spacing: -0.02em;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}


/* 본문 폭·제목 (.wrap 규격은 style_common.css 공통) */


.xls-btn {
  margin-right: .5rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-sub);
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  vertical-align: .05rem;
}


.xls-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-bg);
}


.xls-btn::before {
  content: "↓";
  margin-right: .15rem;
  font-weight: 700;
}


.core-badge {
  display: inline-block;
  background: var(--coral-bg);
  color: var(--coral-text);
  border-radius: 5px;
  font-size: var(--fs-xxs);
  font-weight: 700;
  padding: .05rem .4rem;
  margin-left: .25rem;
  vertical-align: .05rem;
}


/* (.page-h 페이지 타이틀 규칙은 style_common.css로 이관 — 레이아웃 공통 출력, 2026-08-31) */


/* 조회조건 : 카드형 */
form.cond {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,43,69,.04);
  padding: 22px 24px;
}


.field label,.field-lab,.tool-lab {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-sub);
}


.field select,.field input,select.sel,input[type="search"] {
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
}


.field select:focus-visible,.field input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}


.mode-row {
  border-bottom: 1px solid var(--line-soft);
}


/* 버튼 */
.btn {
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}


.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}


.btn-primary:hover {
  background: #16204a;
  border-color: #16204a;
}


.btn-line:hover {
  border-color: var(--blue);
  color: var(--blue);
}


.btn-sm {
  font-size: var(--fs-xs);
  padding: 8px 14px;
}


.seg {
  border-radius: 8px;
  height: 42px;
}


.seg-btn {
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-left: -1px;
}


.seg-btn:first-child { margin-left:0; border-radius:8px 0 0 8px;}


.seg-btn:last-child { margin-left:0; border-radius: 0 8px 8px 0;}


.seg-btn[aria-checked="true"] {
  background: var(--navy); border-color:var(--navy);
  color: #fff;
}


.seg-btn[aria-checked="true"]:hover {
  background: #16204a;
  color: #fff;
}


:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}


/* 결과 패널 */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,43,69,.04);
  overflow: hidden;
}


.panel-head {
  min-height: 66px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line-soft);
}


.panel-head h2 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}


.panel-tools {
  padding: 14px 26px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}


.panel-body {
  padding: 22px 26px 26px;
}


.cnt-total {
  color: var(--ink);
  font-weight: 700;
}


.cnt-hl {
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  padding: .05rem .55rem;
}


.note,.src,.unit {
  color: var(--ink-sub);
  font-size: var(--fs-xs);
}


/* 표 : 라이트 헤더 + 네이비 상단선 */
table {
  font-size: 15.5px;
}


thead th {
  background: #F1F5FB;
  color: var(--ink);
  font-weight: 700;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: center;
  white-space: nowrap;
}


thead th.rowh,thead th:first-child {
  text-align: left;
  padding-left: 16px;
  
}


/*tbody th[scope="row"],.tm-table th[scope="row"], thead th.rowh,thead th:first-child  {position:sticky; left:0;}

*/
tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}


tbody th[scope="row"],.tm-table th[scope="row"] {
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}


td.val,.tm-table td.val {
  color: var(--coral-text);
  font-weight: 700;
}


.area-row td {
  background: var(--bg-soft);
  color: var(--blue-deep);
  border-top: 1px solid var(--line);
}


/* 분포 막대·범례 */
.rng .iqr {
  background: #C4D4F0;   /* Q1~Q3 밴드: --ci-soft(#DCE6F8)가 트랙(#E9EDF5)과 거의 구분되지 않아 한 단계 진하게 (2026-09-14) */
}


.rng .avg {
  border-bottom-color: var(--navy);
}


.rng .me,.lg-dot {
  background: var(--coral-bright);
  box-shadow: 0 0 0 1.5px var(--coral-bright);
}


.lg-band {
  background: #C4D4F0;   /* 범례도 밴드와 동일 (2026-09-14) */
}


.lg-avg {
  border-bottom-color: var(--navy);
}


.lg-line {
  border-top-color: var(--coral-bright);
}


.lg-dash {
  border-top-color: var(--navy);
}


.legend {
  font-size: var(--fs-xs);
  color: var(--ink-sub);
  font-weight: 700;
}


/* 추이 카드 */
.t-area h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: none;
  border-radius: 0;
  padding: .1rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}


/* 카드 우상단 확대 아이콘 */
.t-card .tc-head {
  align-items: center;
}


.t-card .tc-name {
  padding-right: .4rem;
}


.t-card .tc-name .tc-unit {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-sub);
}


.t-card .go-detail {
  flex: none;
  border-radius: 6px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  padding: .2rem .55rem;
  line-height: 1.4;
  transition: .18s;
}


.t-card:hover .go-detail,.t-card:focus-visible .go-detail {
  background: var(--blue);
  color: #fff;
}


.t-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,43,69,.05);
  padding: 18px 18px 12px;
  transition: box-shadow .18s,transform .18s,border-color .18s;
}


.t-card:hover,.t-card:focus-visible {
  border-color: #3D7BE8;
  box-shadow: 0 12px 26px rgba(61,123,232,.20);
  transform: translateY(-3px);
}


.t-card .tc-name {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
}


.t-card:hover .tc-name {
  color: var(--ink);
}


.t-card .tc-unit,.t-card .tc-more {
  font-size: 14px;
  color: var(--ink-sub);
}


.t-card:hover .tc-more {
  color: var(--blue);
}


/* 확대 보기 */
dialog.tmodal {
  border-radius: 18px;
}


.tm-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-deep);
}


.tm-sub {
  font-size: var(--fs-xs);
  color: var(--ink-sub);
}


/* 소개·지도 */
.intro-grid .panel .panel-head h2,.cmp-card h3 {
  font-weight: 700;
}


.cmp-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,43,69,.04);
}


.cmp-card h3 {
  color: var(--navy);
  font-size: var(--fs-lg);
}


.kv dt {
  color: var(--ink-sub);
}


.gis-map-box .gis-t {
  font-weight: 700;
}


.gis-map-box .gis-t small {
  font-size: var(--fs-xs);
}


.gis-leg span {
  font-size: 14px;
  color: var(--ink-sub);
  font-weight: 700;
}


.gis-sel b {
  font-weight: 700;
}


.meta-box {
  background: var(--bg-soft);
  border-radius: 14px;
}


.meta-sec h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}


.meta-sec h3::before {
  /* content:""; */
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral-bright);
  flex: none;
}


.meta-sec p {
  font-size: 15.5px;
  color: var(--ink-sub);
  line-height: 1.75;
}


/* 맞춤형 지표 선택 */
.area-acc summary {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}


.area-acc summary .area-sel {
  border-radius: 8px;
  font-weight: 700;
}


.acc-list label {
  font-size: var(--fs-xs);
}


.tray-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: var(--fs-xs);
}


.tray-count {
  /* color: var(--blue); */  color: #1A5AD7;   /* 헤드 배경(#EAF2FB) 대비 4.0 → 5.3 (2026-09-14 가시성, 원복 시 위 주석값) */
  font-weight: 700;
}


/* p4 지역별 현황 지도 — 지도 2분할
   (구 '푸터 (인구통계와 동일)' 주석은 잔재라 정정 — 푸터 규칙은 2026-08-25 공통화 때 style_common.css로 전부 이관됨) */
.gis-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}


.gis-map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}


.gis-map-box .gis-t {
  padding: .6rem .9rem;
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--ci-dark);
}


.gis-map-box .gis-t small {
  font-weight: 400;
  color: var(--sub);
}


.map-holder {
  width: 100%;
  height: 640px;
}


.index-map {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
}


.index-map .index-holder {
  margin-top: .2rem;
}


.index-cap {
  font-size: var(--fs-xxs);
  font-weight: 700;
  color: var(--sub);
  padding: .4rem .6rem 0;
  display: flex;
  justify-content: space-between;
}


.index-cap::after {
  content: "시·도 클릭";
  font-weight: 400;
  color: var(--foot);
  font-size: 12px;
}


.index-holder {
  width: 240px;
  height: 280px;
}


.map-row {
  display: grid;
  grid-template-columns: 240px 1fr max-content;
  align-items: stretch;
}


.gis-leg.side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem 1rem 1.2rem .8rem;
  border-left: 1px solid var(--line-soft);
  font-size: var(--fs-xxs);
}


.gis-leg.side span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}


.map-wrap {
  position: relative;
}
/* 모바일 확대(layoutSgg scale="1.3") 시 rMate 내부 콘텐츠 패널(overflow:auto)이 배율만큼 커져
   지도 카드 안에 이중 스크롤바를 만듦 — 넘치는 부분은 배율 캔버스의 빈 여백뿐이라 숨김.
   데스크톱(배율 1)은 넘침 자체가 없어 무영향 (2026-09-04) */
.map-wrap .map-holder .rMateH5__ContentPane { overflow: hidden !important; }


.gis-leg.in-map {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .4rem .8rem;
  padding: .6rem .9rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  font-size: var(--fs-xxs);
}


.gis-leg.in-map span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}


.gis-leg span i {
  width: 22px;
  height: 16px;
}


.gis-leg .na i {
  background: #E9ECF1;
}


.gis-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: .7rem;
  flex-wrap: wrap;
  gap: .6rem;
}


.gis-sel {
  font-size: var(--fs-xs);
  color: var(--sub);
}


.gis-sel b {
  color: var(--ci-dark);
}
@media (max-width:768px) {


  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    flex-flow: row wrap;
  }


  .tbl-scroll-hint {
    font-size: var(--fs-xxs);
    color: var(--foot);
    padding: .4rem 1.25rem 0;
  }


  .t-grid {
    grid-template-columns: 1fr;
  }






  .page-h p {
    font-size: var(--fs-xs);
  }


  .panel-head,.panel-tools,.panel-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width:768px) {


  .gis-map-box .gis-t {
    flex-direction: column;
  }
}


@keyframes svcNavDown{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (max-width:360px) {


  .panel-head,.panel-tools,.panel-body {
    padding-left: 12px;
    padding-right: 12px;
  }


  .form-row,.mode-row,.acc-tools,.panel-head,.panel-head .actions,.panel-tools,.trend-sum {
    flex-wrap: wrap;
  }


  .seg,.seg-sm {
    width: 100%;
  }


  .seg-btn,#c3mode .seg-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 .3rem;
    /* font-size:12px; */
    white-space: normal;
    word-break: keep-all;
    line-height: 1.15;
  }


  .acc-tools {
    gap: .3rem;
  }


  .acc-tools .btn {
    flex: 0 1 auto;
    min-width: 0;
  }


  .acc-tools .c2clear {
    margin-left: 0;
  }


  /* 그리드 열이 내용 최소폭에 끌려가지 않도록 */
  .panel,.panel-head,.panel-body,.panel-tools {
    min-width: 0;
  }


  /* 인라인 min-width 로 고정된 입력 필드 해제 */
  .panel-head h2,.panel-head h3 {
    font-size: var(--fs-sm);
  }


  .note,.src,.unit,.tool-lab,.field label,.field-lab {
    /* font-size: var(--fs-xxs); */
  }


  .panel-head .actions {
    width: 100%;
    margin-left: 0;
  }


  .panel-head .actions .tool-group {
    margin-right: 0;
  }
}


/* ============================================================
   KRDS 점검 반영 (명도 대비 제외)
   · 공식 배너 / 푸터 정보 순서 / 최소 터치 영역 44px
   · 13px 이하 텍스트 상향 / 인쇄 스타일
   ============================================================ */
/* ── 공식 배너(Masthead) ──
   주의: .masthead 마크업은 현재 어떤 JSP에도 없음 — KRDS 점검 대비 준비 코드(스타일만 선반영) 상태 (2026-08-28 확인) */
.masthead {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}


.masthead .mh-in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  flex-wrap: wrap;
}


.mh-txt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink-sub);
}


.mh-mark {
  width: 18px;
  height: 18px;
  flex: none;
}


.mh-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ci-dark);
  text-decoration: underline;
}


.mh-ico {
  width: 14px;
  height: 14px;
  transition: transform .15s;
}


.mh-toggle[aria-expanded="true"] .mh-ico {
  transform: rotate(180deg);
}


.mh-panel {
  border-top: 1px solid var(--line-soft);
  background: #fff;
}


.mh-panel .mh-in {
  padding-top: 14px;
  padding-bottom: 16px;
  min-height: 0;
  display: block;
}


.mh-panel dl {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin: 0;
}


.mh-panel dt {
  font-weight: 700;
  color: var(--ink);
}


.mh-panel dd {
  margin: 2px 0 0;
  color: var(--ink-sub);
  font-size: 14px;
}


details.area-acc summary .area-sel {
  min-height: 44px;
  padding: .35rem .6rem;
}


.xls-btn {
  font-size: var(--fs-xs);
  min-height: 44px;
  padding: .3rem .6rem;
}


ul.tray-list li .rm {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}


.seg-sm {
  height: 44px;
}


/* ── 13px 이하 텍스트 상향 ── */
.index-cap,.index-cap::after {
  font-size: 14px;
}


/* 세그먼트 : 버튼 자체가 44px 이 되도록 (테두리 1.5px×2 보정) */
.seg,.seg-sm {
  min-height: 44px;
}


.seg .seg-btn,.seg-sm .seg-btn {
  height: 44px;
}
@media print {

.masthead, .page-tools, .panel-head .actions, .xls-btn, .acc-tools, .tool-toggle, .seg, form {
    display: none!important;
  }


  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }


  .panel {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #999;
  }


  section.screen[hidden] {
    display: none!important;
  }


  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
}
@media (max-width:1024px) {


  .masthead .mh-in {
    padding: 0 20px;
  }


  dialog.tmodal[open] {
    max-height: 100vh;
    width: 100vw;
    min-width: 100vw;
    border-radius: 0;
    margin: 0 !important;
  }
}
@media (max-width:768px) {


  .masthead .mh-in {
    padding: 0 16px;
  }
}


/* ============================================================
   결과표 : 좁은 화면에서 가로 스크롤 대신 카드형 목록
   (지역별 지표 현황 .mob_cardtype)
   ============================================================ */
.tbl-wrap {
  overflow-x: auto;
}


th.rowh-cell {
  background: #fff;
  color: var(--text);
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--line-soft);
  padding: .55rem .75rem;
  white-space: nowrap;
}
@media (max-width:1024px) {


  .cmp-cards {
    grid-template-columns: 1fr;
  }


  form.cond {
    padding: 16px;
  }


  .mob_cardtype .tbl-wrap {
    overflow: visible;
  }


  .mob_cardtype table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
  }


  .mob_cardtype thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }


  .mob_cardtype tbody {
    display: block;
    padding: 16px;
  }


  .mob_cardtype tr {
    display: block;
  }


  /* 영역 구분 머리글 */
  /* 영역 사이 구분선(2026-09-14): 카드 외곽선과 같은 1px var(--line). 첫 영역은 없음 */
  .mob_cardtype tr.area-row {
    margin: 8px 0 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }


  .mob_cardtype tr.area-row:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }


  .mob_cardtype tr.area-row td {
    display: block;
    background: transparent;
    border: 0;
    border-left: 4px solid var(--blue);
    border-radius: 0;
    padding: 2px 0 2px 10px;
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--blue-deep);
  }


  /* 카드형에서는 행 hover 배경 해제(2026-09-14): 터치 뒤 hover 상태가 남아 카드 안 값 행만 회색으로 남는 게 어색 — PC 표는 그대로 */
  .mob_cardtype tbody tr:hover td,
  .mob_cardtype tbody tr:hover th[scope="row"] {
    background: transparent;
  }


  /* 지표 1건 = 카드 1장 */
  .mob_cardtype tbody tr:not(.area-row) {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(30,43,69,.05);
  }


  /* 카드 제목 = 지표명 */
  .mob_cardtype tbody tr:not(.area-row) th.rowh-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
  }


  .mob_cardtype tbody tr:not(.area-row) th.rowh-cell .note {
    font-weight: 400;
  }


  /* 값 = 레이블 · 값 한 줄 */
  .mob_cardtype tbody tr:not(.area-row) td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    min-width: 0;
    border: 0;
    padding: 6px 0;
    text-align: right;
  }


  .mob_cardtype tbody tr:not(.area-row) td::before {
    content: attr(data-label);
    flex: none;
    text-align: left;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--ink-sub);
    white-space: nowrap;
  }


  .mob_cardtype tbody tr:not(.area-row) td.val {
    font-size: var(--fs-lg);
  }


  /* 비교집단 내 위치 = 레이블 아래 막대 */
  .mob_cardtype tbody tr:not(.area-row) td.dist {
    display: block;
    width: auto;
    min-width: 0;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px dashed var(--line-soft);
    text-align: left;
  }


  .mob_cardtype tbody tr:not(.area-row) td.dist::before {
    display: block;
    margin-bottom: 6px;
    white-space: normal;
  }


  .mob_cardtype tbody tr:not(.area-row) td.dist .rng {
    width: 100%;
  }


  /* 결과 없음 행 */
  .mob_cardtype tbody tr:not(.area-row) td[colspan] {
    display: block;
    text-align: center;
  }


  .mob_cardtype tbody tr:not(.area-row) td[colspan]::before {
    content: none;
  }
}
@media (max-width:360px) {

  .field {
    min-width: 0;
  }


  .form-row .field,.form-row .btn,.form-row .btn-primary, #p3 .form-row .field,#p3 .form-row .field:has(#c3sido),#p3 .form-row .field:has(#c3sgg), #p3 .form-row .field:has(#c3cmp),#p3 .form-row .field:has(#c3area) {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
  }


  #p3 .form-row .field:has(#c3y1),#p3 .form-row .field:has(#c3y2) {
    flex: 1 1 calc(50% - .35rem);
    min-width: 0;
    max-width: none;
  }


  .field select,.field input,select.sel,input[type="search"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
    padding: 8px 10px;
  }


  .builder,.builder-2,.intro-grid,.gis-grid,.cmp-grid {
    grid-template-columns: minmax(0,1fr)!important;
  }


  .builder>*,.builder-2>*,.intro-grid>*,.gis-grid>*,.cmp-grid>* {
    min-width: 0;
  }


  fieldset {
    min-width: 0;
  }


  .form-row .field[style] {
    flex: 1 1 100%!important;
    min-width: 0!important;
    max-width: none!important;
    width: 100%;
  }


  #p3 .form-row .field[style*="88px"] {
    flex: 1 1 calc(50% - .35rem)!important;
    width: auto;
  }


  .btn,.btn-sm {
    padding-left: .55rem;
    padding-right: .55rem;
    /* font-size: var(--fs-xxs); */
  }


  h1 {
    font-size: 22px;
    word-break: keep-all;
  }


  .masthead {
    font-size: var(--fs-xxs);
  }


  .masthead .mh-in {
    padding: 0 12px;
  }


  .mh-toggle {
    font-size: var(--fs-xxs);
  }


  /* (2026-09-14) 360px 이하에서 카드 테두리·둥근 모서리·그림자를 걷어내던 규칙은 삭제 —
     지표 경계가 사라져 한 덩어리로 보였음. 360px 이하도 위 768px 카드형(테두리·그림자·간격)을 그대로 쓴다. 폰트 축소만 유지 */
  .mob_cardtype tbody tr:not(.area-row) th.rowh-cell {
    font-size: var(--fs-xs);
  }


  .mob_cardtype tbody tr:not(.area-row) td::before {
    font-size: 14px;
  }


  .mob_cardtype tbody tr:not(.area-row) td.val {
    font-size: var(--fs-body);
  }
}


/* ============================================================
   KRDS 토글 스위치 (경로 + 핸들 + 상태 아이콘 + 레이블)
   · input 을 숨기지 않고 그대로 스위치로 사용 → 키보드 초점·역할 유지
   ============================================================ */
.form-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}


.form-switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  margin: 0;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #5A6474;
  border: 1px solid #454E5C;
  cursor: pointer;
  transition: background-color .18s ease,border-color .18s ease;
}


.form-switch input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMiAxMiI+PHBhdGggZD0iTTMgM2w2IDZNOSAzbC02IDYiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzQ2NEY1RSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=") /* 파서 안전 base64로 교체(2026-09-04, 동일 아이콘) */;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .18s ease;
}


.form-switch input[type="checkbox"]:hover {
  background: #4A5361;
}


.form-switch input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue-deep);
}


.form-switch input[type="checkbox"]:checked:hover {
  background: var(--blue-deep);
}


.form-switch input[type="checkbox"]:checked::before {
  transform: translateX(24px);
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMiAxMiI+PHBhdGggZD0iTTIuNiA2LjNsMi40IDIuNCA0LjQtNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTY1M0M0IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==");
}


.form-switch input[type="checkbox"]:disabled {
  background: var(--line);
  border-color: var(--line);
  cursor: not-allowed;
}


.form-switch input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  box-shadow: none;
}


.form-switch label {
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
/* 고대비 모드: 배경색이 제거돼도 UI 경계가 보이도록 시스템 색 테두리 부여
   — popstat(style_popstat.css)의 forced-colors 대응과 동등 수준으로 양방 보강 (2026-08-28) */
@media (forced-colors: active) {
  .btn, .panel, .t-card, .seg, .xls-btn, .fchip, .tool-toggle { border: 1px solid ButtonBorder; }
}

@media (prefers-reduced-motion:reduce) {


  * {
    transition: none!important;
    animation: none!important;
  }


  .form-switch input[type="checkbox"], .form-switch input[type="checkbox"]::before {
    transition: none;
  }
}


/* ============================================================
   레이어 팝업(dialog) : 화면 중앙 배치 + 닫기 버튼 하단
   ============================================================ */
dialog.tmodal {
  margin: auto;
  display: none;
  width: min(1100px,calc(100% - 48px));
}


dialog.tmodal[open] {
  display: flex;
  flex-direction: column;
}


dialog.tmodal .tm-body {
  flex: 1;
  overflow-y: auto;
}


.tm-ctrl .tool-lab {
  white-space: nowrap;
}


.tm-foot {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.4rem 1.2rem;
  /* border-top:1px solid var(--line-soft); */
  /* background:#fff; */
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

/* 닫기(×)가 우상단 절대배치라 헤더 제목이 그 아래로 깔림 — 제목 영역을 × 폭만큼 비워두고,
   부제가 길어 2줄이 되는 좁은 화면에서는 높이가 늘어나도록 고정 높이를 해제.
   flex-shrink 0: dialog(tmodal)가 flex column이라 내용이 최대 높이(92vh)를 넘으면
   헤더가 min-height까지 압축돼 부제가 구분선 밖으로 삐져나온다 — 압축 금지(2026-08-28) */
.tm-head {
  height: auto;
  min-height: 92px;
  padding-right: 4.5rem;
  flex-shrink: 0;
}


.tm-foot .tm-close {
  min-width: 44px;
  min-height: 44px;
  font-size: 0;
  background: url(../../img/csi/close.svg) no-repeat center center;
  border-radius: 8px;
  text-indent: -1000px;
  overflow: hidden;
  border: none !important;
}


.tm-foot .tm-close:hover {
  background-color: var(--blue-bg);
}
@media (max-width:768px) {


  .mh-panel dl {
    grid-template-columns: 1fr;
  }


  .tm-foot {
    padding-left: 1rem;
    padding-right: 1rem;
  }


  .tm-foot .tm-close {
    width: 100%;
  }
}




/* 2026-08-24 구축 추가: 비교기준 변경 시 결과표 출렁임 방지
   원인은 평균 컬럼 헤더 문구 길이 변화뿐이므로, 해당 컬럼만 최장 문구(유사지역 평균)의
   실측 폭을 최소로 확보한다. 나머지 컬럼은 퍼블 원본(auto) 그대로 둔다 */
.tbl-wrap > table th[scope="col"]:nth-child(3) { width: 141px; }


.tbl-wrap > table th[scope="col"]:nth-child(2),
.tbl-wrap > table th[scope="col"]:nth-child(4),
.tbl-wrap > table th[scope="col"]:nth-child(6) { width: 102px; }



/* ════════════════════════════════════════════════════════════════
   폰트 크기 토큰화 (2026-09-04) — popstat과 같은 --fs-* 체계(정의: style_common.css), 렌더 크기는 기존과 동일(값 보존)
   · 같은 값의 토큰만 치환: 17→body / 16→sm / 15→xs / 13→xxs / 19→lg / 20→h3
   · 토큰 스케일에 없는 값은 px 유지: 16.5·15.5·14·22·24(제목·표 미세값)·28(모달 × 글리프)·12(캡션)·프린트 pt·html 16px(rem 기준)
   · 반응형 토큰 재정의는 넣지 않음(기존 크기 유지 방침). 참고: 서비스css→common 순서라 미디어쿼리 :root 재정의는
     common 기본값에 밀려 무효 — 나중에 넣게 되면 body 스코프로 넣을 것
   ════════════════════════════════════════════════════════════════ */

/* rMate 지도 벤더 css(rMateMapChartH5.css)의 "맑은 고딕" 기본 서체를 서비스 서체(Paperlogy 500 / 13px)로 통일 (2026-09-04)
   — 벤더 파일은 무수정. 벤더 css가 body 쪽에서 나중에 로드되므로 !important로 확정. 툴팁 등 HTML 텍스트는 컨테이너에서 상속.
   지도 라벨(svg text)의 크기는 속성(fontSize)이 우선이라 css로 안 먹음 — app.js layoutSgg의 MapSeries fontSize에서 지정 */
.rMateH5__MapChart, .rMateH5__MapMotion, #DataRange_Label {
  font-family: 'Paperlogy','Pretendard GOV',sans-serif !important;
  font-weight: 400 !important;
  font-size: 13px !important;
}
.rMateH5__MapChart svg text { font-weight: 400 !important; } /* 라벨(svg text)은 rMate가 자체 굵기를 심어 별도 강제 */
/* 모바일: 지도 축소(배율 단계)에 맞춰 차트 주변 글자도 축소 — 라벨(svg)은 app.js layoutSgg의 fontSize 단계가 담당 (2026-09-04) */
@media (max-width:560px) {
  .rMateH5__MapChart, .rMateH5__MapMotion, #DataRange_Label { font-size: 12px !important; }
  .gis-leg, .gis-leg span { font-size: 12px; } /* span에 14px 별도 지정(2535행대)이 있어 함께 축소 */
  .gis-leg span i { width: 16px; height: 12px; } /* 기본(.gis-leg span i, 22×16)과 동급 특이도로 비율 유지 축소 */
}
@media (max-width:380px) {
  .rMateH5__MapChart, .rMateH5__MapMotion, #DataRange_Label { font-size: 11px !important; }
  .gis-leg, .gis-leg span { font-size: 11px; }
}

/* 다운 버튼 2개(엑셀·이미지)를 한 묶음으로 — 좁은 폭에서 이미지 다운만 혼자 줄바꿈되던 것 보정 (2026-09-04) */
.dl-group { display: inline-flex; gap: .4rem; flex-wrap: nowrap; }

/* 조회 완료 토스트(2026-09-14, js/csi/app.js toast()) — 화면 하단 중앙, 2.2초 후 사라짐 */
.dp-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,12px);z-index:1000;max-width:calc(100vw - 32px);padding:11px 18px;border-radius:999px;
  background:rgba(37,50,75,.92);color:#fff;font-size:var(--fs-sm);font-weight:700;line-height:1.4;box-shadow:0 6px 20px rgba(30,43,69,.25);
  /* 줄바꿈 허용(접근성: 글자 확대 시 잘리지 않게). 문구가 짧아 일반 폭에선 한 줄 */
  opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.dp-toast.is-on{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.dp-toast{transition:none}}

/* 2026-10-13 연도별 추이 분석 '확대' 창의 데이터 표 — 모바일(768px 이하)에서 표 최소 폭 520px 때문에 오른쪽 연도 칸이 잘려 보이던 것
   (옆으로 밀면 보이지만 밀 수 있다는 표시가 없음). 확대 창 표만 화면 폭에 맞춰 칸 여백·글자를 줄인다. 위 원본 규칙(.tm-table min-width)은 그대로 둠 */
@media (max-width:768px){
  #trendModal .tm-table{min-width:0;width:100%;font-size:13px}
  #trendModal .tm-table th,#trendModal .tm-table td{padding:8px 4px;white-space:nowrap}
  #trendModal .tm-table th[scope="row"]{white-space:normal;padding-left:6px}
  #trendModal .tm-table .sw{width:14px}
}

/* 2026-10-13 연도별 추이 분석 확대 창: 아이폰 사파리에서 창 머리만 보이고 그래프·표가 잘려 안 보이던 것 보정.
   창(dialog)은 높이 지정 없이 최대 높이만 있는 세로 flex 인데, 본문(.tm-body)이 flex:1(기준 크기 0) 이라
   사파리는 본문 높이를 0 으로 계산해 창이 머리 높이에서 끝남(크롬은 내용 높이로 계산해 정상).
   기준 크기를 내용 높이(auto)로 두고, 최대 높이를 넘으면 본문만 줄어 스크롤되게 min-height:0. 위 원본 규칙은 그대로 둠 */
dialog.tmodal .tm-body{flex:1 1 auto;min-height:0}
