/* =====================================================================
   insight.css – 데이터 인사이트 목록 화면 (데모 v2 · 2026.10.12 시안)
   legacy-insight.css(이전 데모) 위에 덮어쓰며, 상세 화면은 시안 수신 전까지 이전 스타일 유지
   ===================================================================== */
.insight-scope{font-size:15px;--accent:#2f6cf6;--accent-text:#2f6cf6;--pale:#e9f0fe;--line:#e3e7ee}

/* 상단: 제목 · 설명 · 전폭 탭 */
.insight-scope .iw-head{display:block;margin-bottom:20px}
.insight-scope .iw-head h1{font-size:28px;font-weight:700;letter-spacing:-1px;line-height:1.2;color:#1c222b;margin:0 0 8px}
.insight-scope .iw-head-bottom{margin:0 0 16px}
.insight-scope .iw-head-bottom p{font-size:15px;color:#5f6773}
.insight-scope .iw-head-bottom .iw-count{display:none}
.insight-scope .iw-categories{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;background:#fff;border:1px solid #d9dee7;border-radius:5px;padding:3px;justify-content:stretch}
.insight-scope .iw-category{height:34px;border:0;border-radius:4px;background:transparent;font-size:15px;font-weight:600;color:#39414c;padding:0 12px;letter-spacing:-.2px}
.insight-scope .iw-category:hover{background:#f3f6fb;color:var(--accent)}
.insight-scope .iw-category[aria-pressed=true]{background:var(--accent);color:#fff}

/* 카드 그리드 — 2026.10.15 확정 시안(시안_인사이트/insight_new.html) 구조 */
.insight-scope .iw-dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.insight-scope .in-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px 22px 16px;display:flex;flex-direction:column;min-width:0;box-shadow:0 1px 0 #e6ebf1}
.insight-scope .in-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.insight-scope .in-badge{flex:none;font-size:13px;font-weight:600;color:var(--accent);background:#eaf1ff;border:1px solid #c9daff;border-radius:3px;padding:3px 10px;line-height:1.4;white-space:nowrap}
.insight-scope .in-title{margin:0;font-size:18px;font-weight:700;color:#1c222b;letter-spacing:-.5px;line-height:1.3;min-width:0;flex:1}
.insight-scope .in-period{flex:none;font-size:13px;color:#8a94a3;white-space:nowrap}
.insight-scope .in-chart-title{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:7px 14px 7px 8px;background:#f4f6f9;border:1px solid var(--line);border-radius:7px;font-size:16px;font-weight:700;color:#1c222b;letter-spacing:-.3px;line-height:1.3}
.insight-scope .in-chart-title .ic{flex:none;width:30px;height:30px;border-radius:50%;background:var(--accent);display:grid;place-items:center}
.insight-scope .in-chart-title .ic svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.insight-scope .in-chart-title em{margin-left:auto;font-style:normal;font-size:13px;font-weight:500;color:#4b5667;letter-spacing:0;white-space:nowrap}
.insight-scope .in-mini{width:100%;display:block;text-align:left;border:0;background:#fff;color:inherit;padding:4px 0 0;margin:0;min-height:260px;flex:1;cursor:pointer}
.insight-scope .in-mini:hover{background:#fff}
.insight-scope .in-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:13px;color:#8a94a3}
.insight-scope .in-more{display:inline-flex;align-items:center;gap:14px;height:32px;padding:0 12px 0 14px;background:#fff;border:1px solid #c6d2e4;border-radius:7px;font-size:14px;font-weight:600;color:#1c222b;white-space:nowrap;flex:none;cursor:pointer}
.insight-scope .in-more:hover{border-color:var(--accent);color:var(--accent)}
.insight-scope .in-more svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 미니 차트 (카드 안) */
.insight-scope .in-mini .chart-legend{margin:0 0 14px;font-size:15px;color:#5e6a79}
.insight-scope .in-mini .chart-legend .chart-unit{display:none}
.insight-scope .in-mini .chart-legend:has(> .chart-unit:only-child){display:none}
.insight-scope .in-mini .chart-legend i{width:9px;height:9px;border-radius:1px}
.insight-scope .in-mini .chart-unit{font-size:15px;color:#6a7380}
.insight-scope .in-mini .bar-rows{gap:14px}
.insight-scope .in-mini .bar-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:center}
.insight-scope .in-mini .bar-label{font-size:15px;line-height:1.45;color:#4b5563}
.insight-scope .in-mini .bar-mark{height:16px;border-radius:0 2px 2px 0}
.insight-scope .in-mini .bar-mark b{font-size:15px;font-weight:700;color:#1c222b;line-height:16px}
.insight-scope .in-mini .bar-axis{margin:14px 36px 0 162px;padding-top:8px;font-size:15px;color:#6a7380;border-top:1px solid #e3e8ef}
.insight-scope .in-mini .donut-wrap{min-height:236px;gap:26px}
.insight-scope .in-mini .donut-center span{font-size:15px;color:#525b68}
.insight-scope .in-mini .donut-center strong{font-size:26px}
.insight-scope .in-mini .donut-list li{font-size:15px;color:#4b5563}
.insight-scope .in-mini .donut-list b{font-size:15px;font-weight:700;color:#1c222b}
.insight-scope .in-mini .chart-svg text{font-size:15px}

/* 그리드/축선 톤 */
.insight-scope .bar-grid{background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#eef1f5 calc(25% - 1px),#eef1f5 25%)}

@media(max-width:900px){.insight-scope .iw-dash-grid{grid-template-columns:1fr}.insight-scope .iw-categories{grid-template-columns:repeat(5,minmax(0,1fr))}.insight-scope .iw-category{font-size:15px;padding:0 6px}}
@media(max-width:540px){.insight-scope .iw-categories{grid-template-columns:repeat(3,1fr)}.insight-scope .in-mini .bar-row{grid-template-columns:96px minmax(0,1fr)}.insight-scope .in-mini .bar-axis{margin-left:110px}}
