
html, body { margin: 0; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* 레이아웃: 통계 연보처럼 차분한 단일 칼럼 + 절마다 표·도식이 한 장씩 들어가는 구성 */
:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #16202A;
  --muted: #56626D;
  --line: #D8DEE4;
  --accent: #1D5674;
  --accent-soft: #E2EDF3;
  --ochre: #7C530A;
  --ochre-soft: #F5ECDA;
  --cover-ink: #F2EFE7;
  --cover-1: #1C3A52;
  --cover-2: #24494D;
  --cover-3: #3B4730;
  --cover-4: #1B4A72;
  --cover-5: #2E4A63;
  --viz-a: #C07A0C;
  --viz-b: #1F6BB8;
  --viz-muted: #C3CCD4;
  --viz-grid: #E3E8ED;
  --viz-axis: #8A96A1;
  --shadow: 0 1px 2px rgba(22, 32, 42, 0.06), 0 10px 28px -14px rgba(22, 32, 42, 0.28);
  --shadow-lift: 0 2px 4px rgba(22, 32, 42, 0.08), 0 22px 44px -18px rgba(22, 32, 42, 0.38);
  --f-display: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ch-n3: #1757ac; --ch-n2: #519ced; --ch-n1: #b6d5f8; --ch-mid: #e3e7eb; --ch-p1: #f3d9a4; --ch-p2: #d9952a; --ch-p3: #9a5d05;
  --ch-s1: #b7d3f2; --ch-s2: #85b5ea; --ch-s3: #4a8fdb; --ch-s4: #2367c0; --ch-s5: #0f4a96; --ch-na: #e4e9ee;
  --g-1: #257de0; --g-2: #f47230; --g-3: #00b894; --g-4: #f2a600; --g-5: #ee7fac; --g-6: #008a17; --g-7: #6a4ce2; --g-8: #ec4647;
  --map-side: #8d99a5; --map-side-up: #6d7884; --map-shadow: rgba(22, 32, 42, 0.22);
  --nav-tray: linear-gradient(180deg, #FFFFFF 0%, #EDF1F5 100%); --nav-hl: rgba(255, 255, 255, 0.95); --nav-drop: 0 1px 1px rgba(22, 32, 42, 0.05), 0 8px 18px -10px rgba(22, 32, 42, 0.38);
  --nav-raise: 0 1px 2px rgba(22, 32, 42, 0.10), 0 3px 8px -4px rgba(22, 32, 42, 0.22); --nav-act: linear-gradient(180deg, #2B7099 0%, #1D5674 58%, #164961 100%);
  --nav-act-sh: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 5px 12px -5px rgba(29, 86, 116, 0.65); --nav-act-ink: #FFFFFF;
  --nav-gold: linear-gradient(180deg, #FCF5E6 0%, #F0E0BE 100%); --nav-gold-act: linear-gradient(180deg, #B5801C 0%, #94650F 58%, #7A520A 100%); --nav-gold-sh: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 5px 12px -5px rgba(148, 101, 15, 0.6);
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E141A; --surface: #151D25; --ink: #E5EAEF; --muted: #9AA6B1; --line: #27323C;
    --accent: #86B9D6; --accent-soft: #19293A; --ochre: #E2AE55; --ochre-soft: #2A2215;
    --cover-ink: #F2EFE7; --cover-1: #1C3A52; --cover-2: #24494D; --cover-3: #3B4730; --cover-4: #1B4A72; --cover-5: #2E4A63;
    --viz-a: #C98A1E; --viz-b: #3F8FDB; --viz-muted: #3A4652; --viz-grid: #24303B; --viz-axis: #6F7C88;
    --ch-n3: #8cc0f0; --ch-n2: #3f8fdb; --ch-n1: #1f3d5e; --ch-mid: #2b333b; --ch-p1: #5a4213; --ch-p2: #b07816; --ch-p3: #f0b95a;
    --ch-s1: #16304f; --ch-s2: #1b4f8a; --ch-s3: #2370cd; --ch-s4: #519ced; --ch-s5: #9dc8f7; --ch-na: #1c242c;
    --g-1: #338ced; --g-2: #e76624; --g-3: #00a888; --g-4: #d28e05; --g-5: #e24d8b; --g-6: #0aac23; --g-7: #9887ef; --g-8: #eb6263;
    --map-side: #05080b; --map-side-up: #000; --map-shadow: rgba(0, 0, 0, 0.55);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -14px rgba(0, 0, 0, 0.7); --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 48px -18px rgba(0, 0, 0, 0.8);
    --nav-tray: linear-gradient(180deg, #1C2631 0%, #131B23 100%); --nav-hl: rgba(255, 255, 255, 0.07); --nav-drop: 0 1px 1px rgba(0, 0, 0, 0.5), 0 10px 22px -10px rgba(0, 0, 0, 0.85);
    --nav-raise: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 10px -4px rgba(0, 0, 0, 0.7); --nav-act: linear-gradient(180deg, #A4CDE6 0%, #86B9D6 58%, #6EA2C1 100%);
    --nav-act-sh: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 6px 14px -6px rgba(134, 185, 214, 0.5); --nav-act-ink: #0E141A;
    --nav-gold: linear-gradient(180deg, #352A18 0%, #261E11 100%); --nav-gold-act: linear-gradient(180deg, #F0C474 0%, #E2AE55 58%, #C8933B 100%); --nav-gold-sh: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -6px rgba(226, 174, 85, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E141A; --surface: #151D25; --ink: #E5EAEF; --muted: #9AA6B1; --line: #27323C;
  --accent: #86B9D6; --accent-soft: #19293A; --ochre: #E2AE55; --ochre-soft: #2A2215;
  --cover-ink: #F2EFE7; --cover-1: #1C3A52; --cover-2: #24494D; --cover-3: #3B4730; --cover-4: #1B4A72; --cover-5: #2E4A63;
    --viz-a: #C98A1E; --viz-b: #3F8FDB; --viz-muted: #3A4652; --viz-grid: #24303B; --viz-axis: #6F7C88;
    --ch-n3: #8cc0f0; --ch-n2: #3f8fdb; --ch-n1: #1f3d5e; --ch-mid: #2b333b; --ch-p1: #5a4213; --ch-p2: #b07816; --ch-p3: #f0b95a;
    --ch-s1: #16304f; --ch-s2: #1b4f8a; --ch-s3: #2370cd; --ch-s4: #519ced; --ch-s5: #9dc8f7; --ch-na: #1c242c;
    --g-1: #338ced; --g-2: #e76624; --g-3: #00a888; --g-4: #d28e05; --g-5: #e24d8b; --g-6: #0aac23; --g-7: #9887ef; --g-8: #eb6263;
    --map-side: #05080b; --map-side-up: #000; --map-shadow: rgba(0, 0, 0, 0.55);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -14px rgba(0, 0, 0, 0.7); --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 48px -18px rgba(0, 0, 0, 0.8);
    --nav-tray: linear-gradient(180deg, #1C2631 0%, #131B23 100%); --nav-hl: rgba(255, 255, 255, 0.07); --nav-drop: 0 1px 1px rgba(0, 0, 0, 0.5), 0 10px 22px -10px rgba(0, 0, 0, 0.85);
    --nav-raise: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 10px -4px rgba(0, 0, 0, 0.7); --nav-act: linear-gradient(180deg, #A4CDE6 0%, #86B9D6 58%, #6EA2C1 100%);
    --nav-act-sh: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 6px 14px -6px rgba(134, 185, 214, 0.5); --nav-act-ink: #0E141A;
    --nav-gold: linear-gradient(180deg, #352A18 0%, #261E11 100%); --nav-gold-act: linear-gradient(180deg, #F0C474 0%, #E2AE55 58%, #C8933B 100%); --nav-gold-sh: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -6px rgba(226, 174, 85, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* 글자 크기 선택(보기 설정): rem으로 정한 글자 전체를 같은 비율로 */
html[data-fs="l"] { font-size: 112.5%; }
html[data-fs="xl"] { font-size: 125%; }
/* 아래쪽 방문자 수 */
footer .visits { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 0.86rem; }
footer .visits svg { width: 15px; height: 15px; color: var(--accent); }
footer .visits b { color: var(--ink); font-variant-numeric: tabular-nums; }
footer .visits small { font-size: 0.78rem; }
/* 보기 설정 단추와 판 */
.disp-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 4px 12px 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
.disp-btn svg { width: 17px; height: 17px; color: var(--accent); }
.disp-btn:hover, .disp-btn[aria-expanded="true"] { background: var(--accent-soft); }
.m-disp-btn { display: none; }
.disp { position: fixed; z-index: 60; padding: 14px 16px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, var(--surface)) 0, var(--surface) 64px); background-color: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lift), inset 0 1px 0 var(--nav-hl); transform-origin: top right; animation: disp-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes disp-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.disp-hd { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.disp-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--ochre))); color: var(--surface); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.disp-ic svg { width: 17px; height: 17px; }
.disp-hd b { flex: 1; font-size: 1rem; letter-spacing: -0.01em; }
.disp-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.disp-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.disp-x:hover { background: var(--accent-soft); color: var(--ink); }
.disp-t { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.disp-fsv { font-weight: 700; color: var(--accent); letter-spacing: 0; }
/* 화면 밝기: 작은 화면 미리보기 카드 */
.disp-th { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.disp-th button { display: flex; flex-direction: column; gap: 7px; padding: 6px 6px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; position: relative; }
.disp-th button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.disp-th button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.disp-th button[aria-checked="true"]::after { content: ""; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 2px var(--surface); }
:root[data-theme="dark"] .disp-th button[aria-checked="true"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E141A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .disp-th button[aria-checked="true"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E141A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); } }
.pv { --pb: #F4F6F8; --ps: #FFFFFF; --ph: #1D5674; --pl: #D8DEE4; --p1: #1D5674; --p2: #B8860B; display: grid; grid-template-rows: 9px 1fr; gap: 4px; height: 58px; padding: 5px; border-radius: 9px; background: var(--pb); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.pv-dark { --pb: #0E141A; --ps: #151D25; --ph: #1C3446; --pl: #2A3641; --p1: #86B9D6; --p2: #E2AE55; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.pv-auto { position: relative; padding: 0; }
.pv-auto > .pv { position: absolute; inset: 0; height: auto; box-shadow: none; }
.pv-auto > .pv-dark { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.pv-h { border-radius: 3px; background: var(--ph); }
.pv-c { display: flex; align-items: flex-end; gap: 3px; padding: 4px 5px 3px; border-radius: 5px; background: var(--ps); }
.pv-c i { flex: 1; border-radius: 2px 2px 0 0; background: var(--p1); }
.pv-c i:nth-child(1) { height: 45%; } .pv-c i:nth-child(2) { height: 80%; background: var(--p2); } .pv-c i:nth-child(3) { height: 60%; } .pv-c i:nth-child(4) { height: 95%; }
.pv-l { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.pv-l svg { width: 15px; height: 15px; color: var(--accent); }
/* 글자 크기: 단계 막대 + 미리보기 문장 */
.disp-fs { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 0; padding: 0 2px; }
.disp-fs .fz-a { font-size: 12px; font-weight: 700; color: var(--muted); } .disp-fs .fz-b { font-size: 20px; font-weight: 700; color: var(--muted); }
.disp-fs input[type="range"] { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.disp-fs input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0 var(--p), var(--line) var(--p) 100%); }
.disp-fs input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0 var(--p), var(--line) var(--p) 100%); }
.disp-fs input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform .15s; }
.disp-fs input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.disp-fs input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.disp-fs input[type="range"]:focus-visible { outline: none; }
.disp-fs input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.disp-ticks { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -2px; }
.disp-ticks button { padding: 2px 0; border: 0; background: none; font: inherit; font-size: 0.74rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.disp-ticks button:nth-child(1) { text-align: left; } .disp-ticks button:nth-child(2) { text-align: center; } .disp-ticks button:nth-child(3) { text-align: right; }
.disp-ticks button[aria-current="true"] { color: var(--accent); }
.disp-pv { margin: 12px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); line-height: 1.5; }
.disp-pv b { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.disp-pv span { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.disp-n { margin: 0 2px; font-size: 0.74rem; line-height: 1.5; color: var(--muted); }
/* 화면 밝기를 바꿀 때 누른 자리에서 원이 퍼지며 바뀐다(지원 브라우저), 아니면 색이 부드럽게 바뀐다 */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.th-fade, html.th-fade *, html.th-fade *::before, html.th-fade *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }
@media (prefers-reduced-motion: reduce) { .disp { animation: none; } .disp-th button { transition: none; } }
@media (max-width: 720px) {
  .disp-btn { display: none; }
  .m-disp-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); cursor: pointer; box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .m-disp-btn svg { width: 21px; height: 21px; }
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h, 92px) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* 머리글 */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 24px; row-gap: 2px; padding-block: 8px 9px; }
.site-head .nav-main { grid-column: 1 / -1; }
.site-head .nav-main .nav-row { justify-content: flex-end; }
.brand { display: grid; gap: 3px; align-items: start; line-height: 1.2; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand b { font-family: var(--f-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); white-space: nowrap; }
.brand span { font-family: var(--f-display); font-size: 1.22rem; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; white-space: nowrap; }
@media (max-width: 420px) { .brand b { font-size: 1.1rem; } .brand span { font-size: 0.92rem; } }
.nw { white-space: nowrap; }
.nav { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; min-width: 0; }
.nav-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 4px; max-width: 100%; }
.nav-row:not(.main) a { font-size: 0.92rem; font-weight: 600; padding: 4px 11px; }
.nav-row.main { gap: 2px; }
.nav-row.main a { font-weight: 700; color: var(--ink); font-size: 0.88rem; padding: 6px 9px; }
.nav-row.main a[aria-current="page"] { background: var(--accent); color: var(--bg); }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap; text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-row.main a.nav-app, .nav-row.main a.nav-man { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); border: 1px solid var(--accent); padding: 5px 11px 5px 8px; }
.nav-row.main a.nav-app svg, .nav-row.main a.nav-man svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-row.main a.nav-app:hover, .nav-row.main a.nav-man:hover { background: var(--accent-soft); }
.nav-row.main a.nav-app[aria-current="page"], .nav-row.main a.nav-man[aria-current="page"] { background: var(--accent); color: var(--bg); }
.nav-pair { display: inline-flex; gap: 4px; margin-left: 4px; }
/* 스마트 분석: 대표 기능이라 메뉴·첫 화면에서 황토색으로 따로 드러낸다 */
.nav-row.main a.nav-smart { display: inline-flex; align-items: center; gap: 4px; color: var(--ochre); background: var(--ochre-soft); padding: 6px 10px 6px 8px; }
.nav-row.main a.nav-smart svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav-row.main a.nav-smart:hover { filter: brightness(0.97); }
.nav-row.main a.nav-smart[aria-current="page"] { background: var(--ochre); color: var(--bg); }
/* 지역통계 분석: 누르거나 마우스를 올리면 아래로 지역별 분석 메뉴가 펼쳐진다 */
.nav-grp { position: relative; display: inline-flex; }
.nav-grp-btn { display: inline-flex; align-items: center; gap: 3px; font: inherit; font-weight: 700; font-size: 0.88rem; color: var(--ink); background: none; border: 0; border-radius: 999px; padding: 6px 7px 6px 9px; cursor: pointer; white-space: nowrap; }
.nav-grp-btn:hover, .nav-grp.open .nav-grp-btn { background: var(--accent-soft); }
.nav-grp-btn[aria-current="page"] { background: var(--accent); color: var(--bg); }
.nav-caret { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.18s ease; }
.nav-grp.open .nav-caret { transform: rotate(180deg); }
.nav-sub { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 20; display: none; grid-template-columns: minmax(0, 1fr); gap: 2px; width: 252px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); }
.nav-sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
@media (min-width: 721px) and (hover: hover) { .nav-grp:not(.shut):hover .nav-sub { display: grid; } }
@media (min-width: 721px) { .nav-grp.open:not(.shut) .nav-sub { display: grid; } }
.nav-row.main .nav-sub a { display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; white-space: normal; color: var(--ink); font-size: 0.9rem; }
.nav-sub a b { font-weight: 700; }
.nav-sub a span { font-size: 0.8rem; font-weight: 500; color: var(--muted); line-height: 1.45; }
/* 메뉴 단추 그림: 한눈에 구분되게 작은 그림을 앞에 둔다 */
.nav-row.main a.nav-ic { display: inline-flex; align-items: center; gap: 5px; }
.nav-row.main a.nav-ic svg, .nav-grp-btn .nav-i { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.82; }
.nav-grp-btn .nav-i { margin-right: 2px; }
.nav-row.main a.nav-ic[aria-current="page"] svg, .nav-grp-btn[aria-current="page"] .nav-i { opacity: 1; }
.nav-row.main .nav-sub a:hover { background: var(--accent-soft); }
.nav-row.main .nav-sub a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-row.main .nav-sub a[aria-current="page"] span { color: var(--accent); }
/* 두 칸 펼침 메뉴: 왼쪽 지역별 분석, 오른쪽 업종·지역 비교 */
.nav-sub.two { width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; padding: 8px; }
.nav-col { display: grid; align-content: start; gap: 2px; min-width: 0; }
.nav-col + .nav-col { border-left: 1px solid var(--line); padding-left: 6px; }
.nav-col-t { margin: 4px 12px 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
@media (max-width: 720px) {
  .site-head .nav { display: none; }
  .site-head .wrap { padding-block: 12px; }
  html { scroll-padding-top: 72px; }
}

/* 첫 화면 */
.hero { padding-block: 72px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.hero h1 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.3; margin-top: 14px; letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; color: var(--muted); font-size: 1.05rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 11px 18px; border-radius: 8px; border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.ghost { color: var(--accent); background: transparent; }
.btn:hover { filter: brightness(1.08); }
.btn.smart { display: inline-flex; align-items: center; gap: 7px; background: var(--ochre); color: var(--bg); }
.btn.smart svg { width: 17px; height: 17px; flex-shrink: 0; }
button.btn { font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* 입지계수 시편 */
.specimen { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 22px; }
.specimen .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.specimen h2 { font-family: var(--f-display); font-size: 1.15rem; margin-top: 6px; }
.formula { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--f-mono); font-size: 0.92rem; }
.formula .lq { font-weight: 500; color: var(--accent); font-size: 1.1rem; }
.frac { display: inline-grid; text-align: center; }
.frac span:first-child { border-bottom: 1.5px solid var(--ink); padding: 0 6px 3px; }
.frac span:last-child { padding: 3px 6px 0; }
.legend-f { margin-top: 16px; display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.legend-f b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.worked { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 0.9rem; }
.worked .eq { font-family: var(--f-mono); font-size: 1rem; margin-top: 6px; }
.worked .eq strong { color: var(--ochre); }
.worked small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; }

/* 절 공통 */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.sec-head h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.35; }
.sec-head p { color: var(--muted); max-width: 38em; }
@media (max-width: 820px) {
  .hero .wrap, .sec-head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { padding-block: 44px 48px; }
  section.block { padding-block: 52px; }
}

/* 저서 */
.books { display: grid; gap: 20px; }
.book {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
}
.cover {
  aspect-ratio: 148 / 210; max-width: 100%; border-radius: 3px 6px 6px 3px; color: var(--cover-ink);
  padding: 16px 14px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  box-shadow: inset 6px 0 0 rgba(0,0,0,0.18), 0 8px 18px -10px rgba(0,0,0,0.45);
}
.cover .k { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; opacity: 0.75; }
.cover .t { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.4; margin-top: 10px; }
.cover .a { margin-top: auto; padding-top: 8px; border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); font-size: 0.7rem; opacity: 0.85; }
.c1 { background: var(--cover-1); } .c2 { background: var(--cover-2); } .c3 { background: var(--cover-3); }
.c4 { background: var(--cover-4); } .c5 { background: var(--cover-5); }
.books-sub { font-family: var(--f-display); font-size: 1.25rem; margin: 44px 0 16px; }
.book-body { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.status { align-self: flex-start; font-size: 0.75rem; font-weight: 600; color: var(--ochre); background: var(--ochre-soft); padding: 3px 10px; border-radius: 999px; }
.book h3 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.45; }
.book .sub { color: var(--muted); font-size: 0.95rem; margin-top: -6px; }
.book p.desc { max-width: 40em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.facts span b { color: var(--ink); font-weight: 600; margin-right: 6px; }
@media (max-width: 600px) {
  .book { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .cover { width: 104px; padding: 10px 9px; } .cover .t { font-size: 0.74rem; } .cover .k, .cover .a { font-size: 0.55rem; }
  .book h3 { font-size: 1.1rem; }
  .book p.desc, .facts { grid-column: 1 / -1; }
}

/* 지표 해설 */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.group .q { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.group h3 { font-size: 1.1rem; font-weight: 600; }
.group p { font-size: 0.92rem; color: var(--muted); }
.group code { display: block; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink); background: var(--accent-soft); border-radius: 6px; padding: 8px 10px; margin-top: auto; overflow-x: auto; white-space: nowrap; }
.matrix-card { grid-column: span 1; }
@media (max-width: 960px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .groups { grid-template-columns: minmax(0, 1fr); } }

.matrix { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; margin-top: 4px; font-size: 0.82rem; }
.matrix .ylab { grid-row: 1 / 3; writing-mode: vertical-rl; text-orientation: mixed; color: var(--muted); font-size: 0.75rem; align-self: center; }
.matrix .cell { border-radius: 6px; padding: 10px; background: var(--bg); border: 1px solid var(--line); }
.matrix .cell b { display: block; font-weight: 600; }
.matrix .cell span { color: var(--muted); font-size: 0.75rem; }
.matrix .cell.lead { background: var(--accent-soft); border-color: transparent; }
.matrix .xlab { grid-column: 2 / 4; text-align: center; color: var(--muted); font-size: 0.75rem; }

/* 용어·지표 사전 */
.dict { margin-top: 44px; }
.dict-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.dict-head h3 { font-family: var(--f-display); font-size: 1.35rem; }
.dict-head p { color: var(--muted); font-size: 0.9rem; }
.dict-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dict-cat { display: grid; gap: 8px; min-width: 0; }
.dict-cat h4 { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.dict-cat h4:not(:first-child) { margin-top: 12px; }
details.term { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
details.term > summary { cursor: pointer; list-style: none; padding: 12px 16px; display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
details.term > summary::-webkit-details-marker { display: none; }
details.term > summary small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
details.term > summary::after { content: "+"; margin-left: auto; padding-left: 8px; color: var(--muted); font-family: var(--f-mono); }
details.term[open] > summary::after { content: "−"; }
.term-body { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 0.92rem; min-width: 0; }
.term-body .eqn { font-family: var(--f-mono); font-size: 0.82rem; background: var(--accent-soft); border-radius: 6px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; }
.term-body .ex { border-left: 3px solid var(--ochre); padding-left: 12px; color: var(--muted); }
.term-body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.mini-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.mini { min-width: 0; font-size: 0.82rem; }
table.mini th, table.mini td { padding: 7px 10px; }
table.mini td:first-child { white-space: nowrap; }
table.mini td.num, table.mini th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mini td:nth-child(2) { white-space: nowrap; }
@media (max-width: 760px) { .dict-cols { grid-template-columns: minmax(0, 1fr); } }

/* 지역산업 분석 */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dash-note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.dash-note h3 { font-size: 1.05rem; font-weight: 600; }
.dash-note ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
.dash-note .status { margin-bottom: 10px; display: inline-block; }
@media (max-width: 720px) { .dash { grid-template-columns: minmax(0, 1fr); } }

/* 소개 */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; }
.who h3 { font-family: var(--f-display); font-size: 1.6rem; }
.who .role { color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 0.82rem; border: 1px solid var(--line); background: var(--surface); padding: 4px 12px; border-radius: 999px; }
.contact { margin-top: 24px; font-size: 0.9rem; }
.contact .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.contact .addr { font-family: var(--f-mono); user-select: all; background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }
.copy { font: inherit; font-size: 0.8rem; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.cv { display: grid; gap: 0; }
.cv .row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv .row:first-child { border-top: 1px solid var(--line); }
.cv dt { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding-top: 2px; }
.cv dd { margin: 0; display: grid; gap: 4px; }
.cv dd small { color: var(--muted); font-size: 0.85rem; }
.cv dd.list { gap: 12px; }
.cv dd.list > div { display: grid; gap: 2px; }
.cv dd.cols { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); column-gap: 16px; row-gap: 6px; }
.cv dd.list > .grp { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.cv dd.list > .grp:not(:first-child) { margin-top: 6px; }
.cv .more-rec { margin-top: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cv .more-rec summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.cv .more-rec summary::-webkit-details-marker { display: none; }
.cv .more-rec summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; flex-shrink: 0; }
.cv .more-rec[open] summary::before { transform: rotate(45deg); }
.cv .more-rec summary small { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.cv .more-rec-b { display: grid; gap: 12px; padding: 4px 14px 14px; border-top: 1px dashed var(--line); }
.cv .more-rec-b > div { display: grid; gap: 2px; }
.cv .more-rec-b > .grp { margin-top: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cv .more-rec summary::before { transition: none; } }
.who-top { display: flex; align-items: flex-end; gap: 18px; }
.cv dd.cv-books { gap: 8px; }
.cv dd.cv-books > .grp { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.cv dd.cv-books > .grp:not(:first-child) { margin-top: 6px; }
.cv-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.cv-book { display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.45); transition: transform .18s, box-shadow .18s; }
.cv-book img { display: block; width: 100%; height: auto; aspect-ratio: 440 / 602; object-fit: cover; }
.cv-book:hover, .cv-book:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.5); }
.cv-txt.c1 { background: var(--cover-1); }
.cv-txt { display: flex; flex-direction: column; aspect-ratio: 440 / 602; padding: 8px 7px; color: var(--cover-ink); text-decoration: none; border-radius: 3px 4px 4px 3px; box-shadow: inset 4px 0 0 rgba(0, 0, 0, 0.18), 0 6px 14px -10px rgba(0, 0, 0, 0.45); }
.cv-txt .k { font-family: var(--f-mono); font-size: 0.5rem; letter-spacing: 0.08em; opacity: 0.75; }
.cv-txt .t { margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: 0.68rem; line-height: 1.35; word-break: keep-all; }
.cv-txt .a { margin-top: auto; padding-top: 4px; border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); font-size: 0.5rem; opacity: 0.85; }
@media (max-width: 560px) { .cv-txt { padding: 5px 4px; } .cv-txt .t { font-size: 0.5rem; } .cv-txt .k, .cv-txt .a { font-size: 0.42rem; } }
.cv-more { justify-self: start; margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.cv-more::after { content: " →"; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 0.85rem; color: var(--muted); }
.crumb a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .cv-shelf { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .cv-book { transition: none; } }
.portrait { width: 104px; height: auto; aspect-ratio: 148 / 204; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); flex-shrink: 0; }
.who .tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.who .tag + h3 { margin-top: 2px; }
@media (max-width: 820px) { .profile { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 420px) { .cv .row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* 자료 출처 */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
.src-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 0.82rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ── 앱 화면 전환 ───────────────────────────── */
.view { min-height: 60vh; }
.view.enter { animation: view-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.enter { animation: none; } }
.view > section.block:first-child { border-top: 0; }
.crumb { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 10px; }

/* 아래쪽 탭 막대(휴대폰) */
.tabbar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 0.66rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; min-width: 0; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  .tabbar a.tab-app, .tabbar a.tab-man { color: var(--accent); }
}
/* ── 메뉴 입체감: 분석 메뉴는 도드라진 받침 위에 단추를 올리고, 지금 화면은 빛을 받은 단추처럼 볼록하게 ── */
@media (min-width: 721px) {
  .site-head .nav-main .nav-row.main { width: fit-content; max-width: 100%; margin-left: auto; padding: 4px; gap: 3px; border-radius: 16px;
    background: var(--nav-tray); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-drop); }
  .site-head .nav-main .nav-row.main > a, .site-head .nav-main .nav-grp-btn { border-radius: 12px; transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease; }
  .site-head .nav-main .nav-row.main > a:hover, .site-head .nav-main .nav-grp-btn:hover, .site-head .nav-main .nav-grp.open .nav-grp-btn { background: var(--surface); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); transform: translateY(-1px); }
  .site-head .nav-main .nav-row.main > a[aria-current="page"], .site-head .nav-main .nav-grp-btn[aria-current="page"] { background: var(--nav-act); color: var(--nav-act-ink); box-shadow: var(--nav-act-sh); transform: translateY(-1px); }
  .site-head .nav-main .nav-grp.open .nav-grp-btn[aria-current="page"], .site-head .nav-main .nav-grp-btn[aria-current="page"]:hover { background: var(--nav-act); color: var(--nav-act-ink); box-shadow: var(--nav-act-sh); }
  .site-head .nav-main .nav-row.main > a:active, .site-head .nav-main .nav-grp-btn:active { transform: translateY(0); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18); }
  .site-head .nav-main .nav-row.main a.nav-smart { background: var(--nav-gold); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .site-head .nav-main .nav-row.main a.nav-smart:hover { filter: none; transform: translateY(-1px); }
  .site-head .nav-main .nav-row.main a.nav-smart[aria-current="page"] { background: var(--nav-gold-act); color: var(--nav-act-ink); box-shadow: var(--nav-gold-sh); }
  .site-head .nav-main .nav-pair { margin-left: 6px; padding-left: 7px; border-left: 1px solid var(--line); }
  .site-head .nav-main .nav-row.main a.nav-app, .site-head .nav-main .nav-row.main a.nav-man { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .site-head .nav-main .nav-row.main a.nav-app[aria-current="page"], .site-head .nav-main .nav-row.main a.nav-man[aria-current="page"] { background: var(--nav-act); color: var(--nav-act-ink); border-color: transparent; box-shadow: var(--nav-act-sh); }
  /* 펼침 메뉴: 위로 뾰족한 받침과 두 겹 그림자로 메뉴에서 떠 있는 판처럼 */
  .nav-sub { top: calc(100% + 12px); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--bg))); box-shadow: inset 0 1px 0 var(--nav-hl), var(--shadow-lift); animation: navDrop 0.16s ease-out; }
  .nav-sub::after { content: ""; position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; transform: rotate(45deg); background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-top-left-radius: 3px; }
  .nav-sub::before { inset: -14px 0 auto; height: 14px; }
  .nav-row.main .nav-sub a { position: relative; z-index: 1; transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
  .nav-row.main .nav-sub a:hover { background: var(--surface); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); transform: translateY(-1px); }
  .nav-row.main .nav-sub a[aria-current="page"] { background: var(--nav-act); color: var(--nav-act-ink); box-shadow: var(--nav-act-sh); }
  .nav-row.main .nav-sub a[aria-current="page"] span { color: var(--nav-act-ink); opacity: 0.85; }
  /* 윗줄 메뉴도 지금 화면을 살짝 올라온 단추로 */
  .nav-row:not(.main) a { transition: background-color 0.15s ease, box-shadow 0.15s ease; }
  .nav-row:not(.main) a:hover { background: var(--surface); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .nav-row:not(.main) a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
}
@keyframes navDrop { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .nav-sub { animation: none; } .site-head .nav-main .nav-row.main > a, .site-head .nav-main .nav-grp-btn { transition: none; } }
@media (max-width: 720px) {
  /* 휴대폰 한 줄 메뉴: 지금 화면 단추를 볼록하게(그림자가 잘리지 않게 위아래 여백) */
  html[data-view="analysis"] .site-head .nav-main .nav-row, html[data-view="indicators"] .site-head .nav-main .nav-row { padding-block: 3px 7px; gap: 4px; }
  .site-head .nav-main .nav-row.main a[aria-current="page"] { background: var(--nav-act); color: var(--nav-act-ink); box-shadow: var(--nav-act-sh); }
  .site-head .nav-main .nav-row.main a.nav-smart { background: var(--nav-gold); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .site-head .nav-main .nav-row.main a.nav-smart[aria-current="page"] { background: var(--nav-gold-act); color: var(--nav-act-ink); box-shadow: var(--nav-gold-sh); }
  /* 아래 탭: 받침에 위쪽 빛을 주고, 지금 탭은 볼록한 단추로 */
  .tabbar { background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: inset 0 1px 0 var(--nav-hl), 0 -6px 18px -12px rgba(0, 0, 0, 0.35); }
  .tabbar a[aria-current="page"] { color: var(--nav-act-ink); background: var(--nav-act); box-shadow: var(--nav-act-sh); }
}
@media (display-mode: standalone) { .nav-row.main a.nav-app, #install-app, .msheet .ms-app { display: none; } }

/* 사용 매뉴얼 */
.man-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .man-grid { grid-template-columns: minmax(0, 1fr); } }
.man-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.man-cover { display: block; }
.man-cover img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(16, 40, 56, 0.16); transition: transform 0.2s; }
.man-cover:hover img { transform: translateY(-2px); }
.man-kicker { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.man-info h3 { font-family: var(--f-display); font-size: 1.32rem; line-height: 1.45; margin: 6px 0 18px; text-wrap: balance; }
.man-meta { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0 0 22px; }
.man-meta dt { font-size: 0.78rem; color: var(--muted); }
.man-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.man-actions { margin-top: 0; }
.man-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.man-actions .btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.man-note { margin: 18px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.7; }
.man-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px 14px; box-shadow: var(--shadow); }
.man-toc h3 { font-size: 1.02rem; margin: 0 0 6px; }
.man-toc ol { list-style: none; margin: 0; padding: 0; }
.man-toc li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; color: var(--ink); }
.man-toc li:last-child { border-bottom: 0; }
.man-toc .n { flex: none; width: 1.7em; font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent); }
.man-toc .t { flex: 1; min-width: 0; }
.man-toc .p { flex: none; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 560px) {
  .man-card { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .man-info h3 { font-size: 1.08rem; margin-bottom: 14px; }
  .man-meta { gap: 8px 20px; margin-bottom: 16px; }
}

/* 앱 다운로드 */
.app-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.app-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: calc(var(--head-h, 92px) + 24px); }
@media (max-width: 900px) { .app-panel { position: static; } }
.app-state { font-weight: 600; color: var(--ink); line-height: 1.65; }
.app-state.ok { color: var(--accent); }
.app-actions { margin-top: 18px; }
.app-qr { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.app-qr .qr { width: 128px; height: 128px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.app-qr b { display: block; margin-bottom: 4px; }
.app-qr p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.app-qr .app-url { margin-top: 8px; font-family: var(--f-mono); font-size: 0.86rem; color: var(--ink); user-select: all; }
@media (max-width: 420px) { .app-qr { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .app-qr .qr { width: 96px; height: 96px; } }
.app-devices { display: grid; gap: 14px; }
.app-dev { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow); }
.app-dev.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.app-dev h3 { font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-dev.mine h3::after { content: "지금 쓰는 기기"; font-size: 0.72rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.app-dev-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.app-dev ol { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 0.92rem; }
.app-dev-note { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.app-ico { width: 16px; height: 16px; vertical-align: -3px; color: var(--accent); }
.app-perks { margin-top: 40px; }
.app-perks h3 { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 14px; }
.app-perks ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.app-perks li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.app-perks li b { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }

/* 입체감: 카드 그림자와 떠오름 */
.book, .group, .dash-note, .specimen, .chart-card, .tile, .stat, .calc, details.term, .table-wrap { box-shadow: var(--shadow); }
.tile, .book { transition: transform 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) {
  .tile:hover, .book:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}

/* 첫 화면 겹친 카드 */
.stack { position: relative; }
.stack::before, .stack::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); z-index: 0;
}
.stack::before { transform: translate(14px, 14px) rotate(2.2deg); opacity: 0.55; }
.stack::after { transform: translate(7px, 7px) rotate(1.1deg); opacity: 0.8; }
.stack > .specimen { position: relative; z-index: 1; }

/* 메뉴 타일 */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.tile .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile .ic svg { width: 24px; height: 24px; }
.tile b { display: block; font-size: 1.02rem; }
.tile span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* 지표 타일 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.stat .l { font-size: 0.82rem; color: var(--muted); }
.stat .v { font-size: 1.9rem; font-weight: 600; line-height: 1.25; margin-top: 6px; letter-spacing: -0.01em; min-width: 0; max-width: 100%; overflow: hidden; font-variant-numeric: tabular-nums; }
.stat { min-width: 0; }
.stat .v small { font-size: 0.9rem; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .d { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 16px; }
.case-head h3 { font-family: var(--f-display); font-size: 1.35rem; }
.case-head p { color: var(--muted); font-size: 0.9rem; }

/* 차트 카드 */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.charts .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .charts { grid-template-columns: minmax(0, 1fr); } }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 16px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.chart-card h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.chart-card .sub { color: var(--muted); font-size: 0.85rem; margin-top: -6px; }
.chart-card .note { color: var(--muted); font-size: 0.78rem; }
.chart { position: relative; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-body); font-size: 12px; fill: var(--muted); }
.chart text.ink { fill: var(--ink); }
.chart text.strong { fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.chart .grid { stroke: var(--viz-grid); stroke-width: 1; }
.chart .axis { stroke: var(--viz-axis); stroke-width: 1; }
.chart .ref { stroke: var(--ink); stroke-width: 1; opacity: 0.55; }
.chart .m-a { fill: var(--viz-a); }
.chart .m-b { fill: var(--viz-b); }
.chart .m-m { fill: var(--viz-muted); }
.chart .l-a { stroke: var(--viz-a); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .l-b { stroke: var(--viz-b); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .l-m { stroke: var(--viz-muted); stroke-width: 2; fill: none; }
.chart .ring { stroke: var(--surface); stroke-width: 2; }
.chart .bub { fill-opacity: 0.78; stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:focus { outline: none; }
.chart g.row:hover .bar, .chart g.row:focus-within .bar, .chart g.pt:hover .bub, .chart g.pt:focus .bub { filter: brightness(1.12); }
.chart .hair { stroke: var(--viz-axis); stroke-width: 1; }
.chart .quad { font-size: 12px; font-weight: 700; fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.line { height: 2px; width: 16px; border-radius: 2px; vertical-align: 4px; }
.legend .a { background: var(--viz-a); } .legend .b { background: var(--viz-b); } .legend .m { background: var(--viz-muted); }
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 140px; max-width: 240px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lift);
  padding: 8px 10px; font-size: 0.8rem; line-height: 1.5;
}
.tip b { display: block; font-size: 0.82rem; margin-bottom: 2px; }
.tip .r { display: flex; justify-content: space-between; gap: 12px; }
.tip .r span:first-child { color: var(--muted); }
.tip .r span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.tview summary { cursor: pointer; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.tview .mini-wrap { margin-top: 8px; max-height: 320px; overflow: auto; }
.src { font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.dl { font-size: 0.85rem; }

/* 직접 계산해 보기 */
.calcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
@media (max-width: 960px) { .calcs { grid-template-columns: minmax(0, 1fr); } }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.calc h4 { margin: 0; font-size: 1.05rem; }
.calc .q { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.calc label { display: grid; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.calc input { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; font-variant-numeric: tabular-nums; }
.calc input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc .out { font-size: 2rem; font-weight: 600; line-height: 1.2; }
.calc .out small { font-size: 0.9rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.calc .why { font-size: 0.85rem; color: var(--muted); }
.cmp { display: grid; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.cmp .track { height: 10px; border-radius: 999px; background: var(--viz-grid); overflow: hidden; }
.cmp .fill { height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.cmp .fill.a { background: var(--viz-a); } .cmp .fill.b { background: var(--viz-b); }
.seg { display: flex; gap: 2px; height: 28px; }
.seg span { border-radius: 4px; display: flex; align-items: center; padding-left: 6px; font-size: 0.72rem; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; min-width: 0; }

/* 경력 타임라인 */
.cv dd.timeline > div { position: relative; padding-left: 20px; }
.cv dd.timeline > div::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.cv dd.timeline > div::after { content: ""; position: absolute; left: 7px; top: calc(0.62em + 13px); bottom: -14px; width: 1px; background: var(--line); }
.cv dd.timeline > div:last-child::after { display: none; }
.cv dd.timeline > div.now::before { background: var(--accent); }

/* 책 표지 입체 */
.cover { transform: perspective(900px) rotateY(-12deg); transform-origin: left center; transition: transform 0.35s ease; }
.cover::before { content: ""; position: absolute; top: 3px; bottom: 3px; right: -5px; width: 5px; border-radius: 0 3px 3px 0; background: repeating-linear-gradient(to bottom, #f4f1ea 0 1px, #dcd6c8 1px 2px); }
@media (hover: hover) { .book:hover .cover { transform: perspective(900px) rotateY(-3deg); } }
@media (prefers-reduced-motion: reduce) { .cover, .tile, .book { transition: none; } }
.books-sub.first { margin-top: 0; }
.cover-img { display: block; width: 100%; height: auto; border-radius: 2px 5px 5px 2px; background: var(--line);
  box-shadow: inset 6px 0 0 rgba(0,0,0,0.12), 0 10px 22px -12px rgba(0,0,0,0.5);
  transform: perspective(900px) rotateY(-12deg); transform-origin: left center; transition: transform 0.35s ease; }
@media (hover: hover) { .book:hover .cover-img { transform: perspective(900px) rotateY(-3deg); } }
@media (max-width: 600px) { .cover-img { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .cover-img { transition: none; } }
.cv dd.timeline > div.duty { padding-left: 0; margin-top: 4px; }
.cv dd.timeline > div.duty::before, .cv dd.timeline > div.duty::after, .cv dd.timeline > div:has(+ .duty)::after { display: none; }
.seg .m-1, .legend .s1 { background: #1757ac; } .seg .m-2, .legend .s2 { background: #2370cd; } .seg .m-3, .legend .s3 { background: #338ced; }
.seg .m-4, .legend .s4 { background: #6aabf1; } .seg .m-5, .legend .s5 { background: #84b9f3; }
.stack { margin-right: 14px; margin-bottom: 14px; }
.stat .v { font-size: clamp(1.35rem, 5.4vw, 1.9rem); white-space: nowrap; }
.links-head { margin-top: 40px; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.link { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; min-width: 0; }
.link b { font-size: 0.95rem; font-weight: 600; }
.link span { font-size: 0.8rem; color: var(--muted); font-family: var(--f-mono); }
@media (hover: hover) { .link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
@media (max-width: 760px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .links { grid-template-columns: minmax(0, 1fr); } }

/* 지역산업 분석: 지역 고르기와 화면 */
.rx-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); position: sticky; top: calc(var(--head-h, 92px) + 6px); z-index: 5; }
.rx-pick label { display: grid; gap: 4px; font-size: 0.78rem; color: var(--muted); font-weight: 600; min-width: 0; }
.rx-pick label.grow { flex: 1 1 200px; }
.rx-pick select, .rx-pick input, .rx-tools input { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; max-width: 100%; }
.rx-pick select { min-width: 9.5em; }
.rx-pick select:disabled { opacity: 0.6; }
.rx-pick input, .rx-tools input { width: 100%; }
.rx-pick select:focus-visible, .rx-pick input:focus-visible, .rx-tools input:focus-visible, .rx-seg button:focus-visible, .lnk:focus-visible, .csv:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#rx-body { margin-top: 24px; transition: opacity 0.15s; min-width: 0; }
#rx-body.loading { opacity: 0.45; pointer-events: none; }
.rx-title { margin-bottom: 14px; }
.rx-title h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.3; margin: 2px 0 4px; }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0; }
.crumb a { color: var(--accent); }
.rx-meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 18px; align-items: center; }
.chips-l { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.chips a { font-size: 0.82rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips a.rx-smart { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ochre); background: var(--ochre-soft); border-color: transparent; }
.chips a.rx-smart svg { width: 14px; height: 14px; flex-shrink: 0; }
.chips a.rx-smart:hover { border-color: var(--ochre); color: var(--ochre); }
.rx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rx-stats .stat .v { font-size: clamp(1.3rem, 4.6vw, 1.7rem); white-space: nowrap; }
@media (max-width: 960px) { .rx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rx-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rx-mini .stat { box-shadow: none; background: var(--bg); padding: 10px 12px; }
.rx-mini .stat .v { font-size: 1.25rem; white-space: nowrap; }
@media (max-width: 640px) { .rx-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rx-jump { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 22px 0 4px; font-size: 0.88rem; font-weight: 600; }
.rx-jump a { color: var(--accent); text-decoration: none; }
.rx-jump a:hover { text-decoration: underline; }
.card-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.chart-card h5 { margin: 8px 0 0; font-size: 0.92rem; font-weight: 600; }
.rx-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; align-self: flex-start; max-width: 100%; }
.rx-seg button { font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 5px 11px; cursor: pointer; }
.rx-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 32, 42, 0.12); }
.kcrumb { line-height: 1.9; }
.kcrumb b { color: var(--ink); }
.lnk { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.rx-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.rx-tbl table.mini { min-width: 100%; }
.rx-tbl thead th { position: sticky; top: 0; z-index: 1; }
.rx-tbl table.mini td:not(.num) { white-space: normal; min-width: 8em; font-weight: 400; }
.rx-tbl table.mini td:first-child { font-weight: 600; min-width: 11em; }
.rx-tbl tr.on td { background: var(--accent-soft); }
.rx-tbl a { color: var(--accent); }
.rx-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-start; }
.rx-foot .src { flex: 1 1 260px; margin: 0; }
.csv { font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.csv:hover { border-color: var(--accent); }
.rx-tools { display: flex; gap: 8px; }
.rx-srcs { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.88rem; }
.rx-srcs.note { color: var(--muted); font-size: 0.8rem; }
.chart g.golink .hit, .chart g.golink { cursor: pointer; }
@media (max-width: 720px) {
  .rx-pick { position: static; padding: 12px; }
  .rx-pick label { flex: 1 1 40%; }
  .rx-pick select { min-width: 0; width: 100%; }
}
.chart-card > .btn { align-self: flex-start; }

/* 분석 지역 탭 */
.rx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.rx-tabs a { text-decoration: none; font-weight: 700; font-size: 0.95rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; box-shadow: var(--shadow); transition: transform 0.15s, color 0.15s; }
.rx-tabs a:hover { color: var(--accent); transform: translateY(-1px); }
.rx-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chart-card p.tcap { margin: 4px 0 -4px; }

/* 입체 지도 */
.rx-mapcard { margin-top: 18px; overflow: hidden; }
.rx-mapctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.rx-sel { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--muted); min-width: 0; flex: 1 1 260px; max-width: 26em; }
.rx-sel span { white-space: nowrap; }
.rx-sel select { flex: 1 1 auto; }
.rx-sel select { font: inherit; font-size: 0.9rem; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; max-width: min(100%, 22em); min-width: 0; }
.rx-maps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; }
.rx-maps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .rx-maps.two { grid-template-columns: minmax(0, 1fr); } }
.rx-map { min-width: 0; width: 100%; display: grid; gap: 6px; }
.map-t { margin: 0; font-weight: 700; font-size: 0.95rem; text-align: center; }
.map-box { position: relative; width: 100%; max-width: 720px; margin: 0 auto; }
.rx-maps:not(.two) .map-box { max-width: 640px; }
.map-tilt { transform: perspective(1700px) rotateX(26deg); transform-origin: 50% 55%; transition: transform 0.45s ease; margin: -5% 0 -3%; }
.map-box:hover .map-tilt, .map-box:focus-within .map-tilt { transform: perspective(1700px) rotateX(14deg); }
@media (max-width: 720px) { .map-tilt { transform: perspective(1400px) rotateX(12deg); margin: -2% 0 -1%; } }
@media (prefers-reduced-motion: reduce) { .map-tilt, .m-face.up { transition: none !important; } }
svg.map3d { display: block; width: 100%; height: auto; overflow: visible; max-height: 76vh; }
.map3d .m-shadow { fill: var(--map-shadow); filter: blur(7px); }
.map3d .m-side { fill: var(--map-side); }
.map3d .m-side.up { fill: var(--map-side-up); pointer-events: none; }
.map3d .m-face { stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; }
.map3d .m-face[role="img"] { cursor: default; }
.map3d .m-face:focus { outline: none; }
.map3d .m-face:focus-visible { stroke: var(--ink); stroke-width: 2.5; }
.map3d .m-lift, .map3d .m-labs, .map3d .m-over, .map3d .m-inset { pointer-events: none; }
.map3d .m-face.up { transition: transform 0.2s ease-out, filter 0.2s; }
.map3d .m-face.up.on { transform: translateY(-14px); filter: brightness(1.08) drop-shadow(0 3px 0 var(--map-side-up)); }
.map3d .m-face.cur { stroke: var(--ink); stroke-width: 2.2; }
.map3d .m-line { fill: none; stroke: var(--surface); stroke-width: 0.9; stroke-opacity: 0.85; vector-effect: non-scaling-stroke; }
.map3d .m-inset { fill: none; stroke: var(--muted); stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.map3d .m-lab { fill: var(--ink); font-family: var(--f-body); font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 0.3em; stroke-linejoin: round; letter-spacing: -0.02em; }
/* 글자 테두리(흰 띠)를 얇고 옅게: 굵은 흰 띠가 휴대폰에서 번져 보여 글자가 밝게 뜨던 문제 */
.map3d .m-lab.on-light { fill: #0d1620; stroke: rgba(255, 255, 255, 0.72); stroke-width: 0.16em; }
.map3d .m-lab.on-dark { fill: #ffffff; stroke: rgba(4, 12, 20, 0.7); stroke-width: 0.16em; }
/* 작은 지역의 바깥 이름표: 바탕 띠 + 가는 잇는 선(어느 색 위에서도 읽히게) */
.map3d .m-lab.on-chip { fill: var(--ink); stroke: none; }
.map3d .m-chip { fill: var(--surface); fill-opacity: 0.94; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map3d .m-lead { stroke: var(--ink); stroke-opacity: 0.55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map3d .m-dot { fill: var(--ink); fill-opacity: 0.75; }
.map3d .m-lab.cur { font-weight: 800; }
.map3d .ch-n3, .legend .ch-n3 { fill: var(--ch-n3); background: var(--ch-n3); } .map3d .ch-n2, .legend .ch-n2 { fill: var(--ch-n2); background: var(--ch-n2); }
.map3d .ch-n1, .legend .ch-n1 { fill: var(--ch-n1); background: var(--ch-n1); } .map3d .ch-mid, .legend .ch-mid { fill: var(--ch-mid); background: var(--ch-mid); }
.map3d .ch-p1, .legend .ch-p1 { fill: var(--ch-p1); background: var(--ch-p1); } .map3d .ch-p2, .legend .ch-p2 { fill: var(--ch-p2); background: var(--ch-p2); }
.map3d .ch-p3, .legend .ch-p3 { fill: var(--ch-p3); background: var(--ch-p3); }
.map3d .ch-s1, .legend .ch-s1 { fill: var(--ch-s1); background: var(--ch-s1); } .map3d .ch-s2, .legend .ch-s2 { fill: var(--ch-s2); background: var(--ch-s2); }
.map3d .ch-s3, .legend .ch-s3 { fill: var(--ch-s3); background: var(--ch-s3); } .map3d .ch-s4, .legend .ch-s4 { fill: var(--ch-s4); background: var(--ch-s4); }
.map3d .ch-s5, .legend .ch-s5 { fill: var(--ch-s5); background: var(--ch-s5); } .map3d .ch-na, .legend .ch-na { fill: var(--ch-na); background: var(--ch-na); }
.map3d .g1, .legend .g1 { fill: var(--g-1); background: var(--g-1); } .map3d .g2, .legend .g2 { fill: var(--g-2); background: var(--g-2); }
.map3d .g3, .legend .g3 { fill: var(--g-3); background: var(--g-3); } .map3d .g4, .legend .g4 { fill: var(--g-4); background: var(--g-4); }
.map3d .g5, .legend .g5 { fill: var(--g-5); background: var(--g-5); } .map3d .g6, .legend .g6 { fill: var(--g-6); background: var(--g-6); }
.map3d .g7, .legend .g7 { fill: var(--g-7); background: var(--g-7); } .map3d .g8, .legend .g8 { fill: var(--g-8); background: var(--g-8); }
.legend .ch-na { box-shadow: inset 0 0 0 1px var(--line); } .legend .ch-mid { box-shadow: inset 0 0 0 1px var(--line); }
.map-legend { justify-content: center; }
.rx-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .rx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rx-kpis .stat .d { font-size: 0.72rem; line-height: 1.4; }

/* 분류 단계·업종 찾기 */
.rx-lvl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.rx-lvl-l { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.rx-kfind { flex: 1 1 240px; min-width: 0; }
.rx-kfind input { width: 100%; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.note.warn { color: var(--ochre); font-weight: 600; }

/* 경쟁 지역 비교 */
.rx-cmp { margin-top: 18px; }
.rx-cmp-body { display: grid; gap: 12px; min-width: 0; }
.cmp-chips { align-items: center; margin: 0; }
.cchip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 10px; }
.cchip i, .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
th .dot { margin-right: 5px; vertical-align: 0; }
.cchip button { font: inherit; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 1rem; line-height: 1; }
.cchip button:hover { color: var(--ink); }
.cmp-chips input { font: inherit; font-size: 0.85rem; color: var(--ink); background: var(--bg); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 12px; min-width: 0; width: 15em; max-width: 100%; }
.c1 { --c: var(--g-1); } .c2 { --c: var(--g-2); } .c3 { --c: var(--g-3); } .c4 { --c: var(--g-4); } .c5 { --c: var(--g-5); } .c6 { --c: var(--g-7); } .nat { --c: var(--muted); }
.cchip i, .dot, .cmp-fill { background: var(--c); }
.cmp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } }
.cmp-m { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.cmp-t { margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; }
.cmp-bars { display: grid; gap: 5px; }
.cmp-bar { display: grid; grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 0.78rem; }
.cmp-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.cmp-track { height: 12px; background: var(--viz-grid); border-radius: 4px; overflow: hidden; }
.cmp-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; transition: width 0.5s ease; }
.cmp-fill.neg { background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, 0.55) 3px 5px); }
.cmp-v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rx-tbl.heat td.hc { font-weight: 600; }
.hc-n3 { background: var(--ch-n3); color: #fff; } .hc-n2 { background: var(--ch-n2); color: #fff; } .hc-n1 { background: var(--ch-n1); }
.hc-mid { background: var(--ch-mid); } .hc-p1 { background: var(--ch-p1); } .hc-p2 { background: var(--ch-p2); color: #fff; } .hc-p3 { background: var(--ch-p3); color: #fff; }
.hc-na { color: var(--muted); }
.hc-n2, .hc-p2 { color: #10161c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hc-n3, :root:not([data-theme="light"]) .hc-n2, :root:not([data-theme="light"]) .hc-p2, :root:not([data-theme="light"]) .hc-p3 { color: #0e141a; } }
:root[data-theme="dark"] .hc-n3, :root[data-theme="dark"] .hc-n2, :root[data-theme="dark"] .hc-p2, :root[data-theme="dark"] .hc-p3 { color: #0e141a; }
.chart .ml { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ml.nat { stroke-dasharray: 5 4; stroke-width: 1.6; }
.chart .mdot { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.c7 { --c: var(--g-6); } .c8 { --c: var(--g-8); }
.cmp-fill.g1 { background: var(--g-1); } .cmp-fill.g2 { background: var(--g-2); } .cmp-fill.g3 { background: var(--g-3); } .cmp-fill.g4 { background: var(--g-4); }
.cmp-fill.g5 { background: var(--g-5); } .cmp-fill.g6 { background: var(--g-6); } .cmp-fill.g7 { background: var(--g-7); } .cmp-fill.g8 { background: var(--g-8); }
.cmp-bar.go { cursor: pointer; border-radius: 6px; } .cmp-bar.go:hover { background: var(--accent-soft); }
.rx-seg button:disabled { opacity: 0.35; cursor: not-allowed; }
.rx-spanbox { margin: 16px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.rx-span { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.rx-span .rx-seg button { padding: 4px 8px; font-size: 0.8rem; }
.smart-box { display: flex; gap: 10px; margin: 6px 0 12px; }
.smart-box input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.smart-box input:focus-visible { outline: 3px solid var(--accent-soft); }
.chip-btn { font: inherit; font-size: 0.82rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.smart-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (max-width: 720px) { .smart-list { grid-template-columns: minmax(0, 1fr); } }
.smart-item { text-align: left; font: inherit; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.smart-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.smart-item b { font-size: 1rem; } .smart-item span { font-size: 0.85rem; color: var(--muted); }
.rx-sel.short { flex: 0 1 auto; max-width: 13em; }

.src-sub { margin: 34px 0 12px; font-size: 1.1rem; }
.src-table td small { color: var(--muted); font-size: 0.8rem; }
.src-table td:first-child { white-space: nowrap; }
.src-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }

/* 인사말 */
.greet { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .greet { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.greet-side { position: sticky; top: calc(var(--head-h, 92px) + 24px); }
@media (max-width: 900px) { .greet-side { position: static; } }
.greet-side h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.4; margin-top: 10px; }
.greet-keys { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.greet-keys li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; box-shadow: var(--shadow); }
.greet-keys li b { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 2px; }
.greet-letter { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lift); display: grid; gap: 16px; font-size: 1.02rem; line-height: 1.95; max-width: 44em; }
.greet-letter > p:first-child { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; }
.greet-sign { display: flex; align-items: flex-end; gap: 16px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.greet-sign .portrait { width: 72px; }
.greet-sign span { display: block; font-size: 0.82rem; color: var(--muted); }
.greet-sign b { display: block; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: 0.12em; line-height: 1.4; }
.greet-sign a { font-size: 0.85rem; }
.greet-note { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* 주요 경제지표 소개: 지표 도감 */
.ind-atlas { display: grid; gap: 34px; margin-bottom: 52px; }
.ia-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
.ia-intro p { color: var(--muted); font-size: 0.92rem; max-width: 46em; }
.ia-intro b { color: var(--ink); }
.ia-reg { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.ia-reg select, .ip-ctl select { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; max-width: 100%; }
.ia-cat-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.ia-cat-h h3 { font-family: var(--f-display); font-size: 1.3rem; }
.ia-cat-h p { color: var(--muted); font-size: 0.88rem; }
.ia-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 960px) { .ia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ia-grid { grid-template-columns: minmax(0, 1fr); } }
.ia-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "abbr more" "name name" "q q" "head head";
  gap: 4px 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px;
  box-shadow: 0 1px 0 var(--line), 0 6px 0 -1px color-mix(in srgb, var(--line) 70%, transparent), var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
@media (hover: hover) { .ia-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 10px 0 -1px color-mix(in srgb, var(--line) 70%, transparent), var(--shadow-lift); } }
.ia-card[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift); transform: translateY(-2px); }
.ia-card[aria-expanded="true"]::after { content: ""; position: absolute; left: 50%; bottom: -17px; width: 16px; height: 16px; background: var(--surface); border-left: 1px solid var(--accent); border-top: 1px solid var(--accent); transform: translateX(-50%) rotate(45deg); z-index: 2; }
.ia-abbr { grid-area: abbr; justify-self: start; font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; }
.ia-more { grid-area: more; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.ia-more::after { content: " ▾"; }
.ia-card[aria-expanded="true"] .ia-more::after { content: " ▴"; }
.ia-name { grid-area: name; font-size: 1.08rem; font-weight: 700; margin-top: 4px; }
.ia-q { grid-area: q; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.ia-head { grid-area: head; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ia-head b { font-family: var(--f-mono); font-size: 1.25rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ia-head small { font-size: 0.78rem; color: var(--muted); }
.ia-panel {
  grid-column: 1 / -1; position: relative; min-height: 50vh; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--accent); border-radius: 16px; padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 2px 0 var(--accent-soft), 0 14px 0 -6px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow-lift);
}
.ia-panel.opening { animation: ia-open 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: 50% 0; }
@keyframes ia-open { from { opacity: 0; transform: perspective(1400px) rotateX(-9deg) translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ia-panel.opening { animation: none; } }
.ip-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: start; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ip-crumb { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.ip-head h3 { grid-column: 1; font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.ip-head h3 small { font-family: var(--f-mono); font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.ip-q { grid-column: 1; color: var(--muted); }
.ip-close { grid-column: 2; grid-row: 1 / 4; align-self: start; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.ip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .ip-grid { grid-template-columns: minmax(0, 1fr); } }
.ip-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.ip-def { font-size: 1rem; line-height: 1.85; }
.ip-blk h4, .ip-vh h4 { margin: 0 0 8px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.ip-c { font-size: 0.92rem; line-height: 1.75; min-width: 0; }
.ip-c ul { margin: 0; padding-left: 1.1em; display: grid; gap: 5px; color: var(--muted); }
.ip-viz { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.ip-vh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ip-vh h4 { margin: 0; color: var(--ink); font-size: 0.95rem; letter-spacing: 0; }
.ip-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.ip-take { font-size: 0.9rem; font-weight: 600; line-height: 1.6; }
.ip-go { font-size: 0.88rem; font-weight: 600; justify-self: start; }
.fx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.92rem; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; overflow-x: auto; }
.fx > b { font-weight: 700; white-space: nowrap; }
.fx i { font-style: normal; color: var(--muted); font-weight: 600; }
.fxs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.frac { display: inline-grid; grid-template-rows: auto auto; text-align: center; vertical-align: middle; }
.frac > span { padding: 2px 6px; white-space: nowrap; }
.frac > span:first-child { border-bottom: 1px solid currentColor; }
.fx > .frac > span:first-child { border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.fx > .frac > span:last-child { padding-top: 4px; }
.frac .frac { font-size: 0.92em; }
.fxn { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.fxr { font-family: var(--f-mono); font-weight: 600; font-size: 1.15rem; color: var(--ink); background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; padding: 2px 10px; box-shadow: 0 3px 0 var(--accent-soft); }
.fxnote { margin-top: 8px; font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.sig { font-size: 1.3em; line-height: 1; }
.paren { font-size: 1.6em; font-weight: 300; line-height: 1; }
.fxt { width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.86rem; }
.fxt th, .fxt td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fxt td { overflow-wrap: anywhere; }
.fxt th { white-space: nowrap; color: var(--ink); background: var(--accent-soft); }
.kchain { display: flex; flex-wrap: wrap; gap: 6px; }
.kchain span { position: relative; display: grid; gap: 0; text-align: center; font-size: 0.78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; box-shadow: 0 3px 0 var(--line); }
.kchain b { font-family: var(--f-mono); font-size: 1rem; color: var(--accent); }
.kchain small { font-size: 0.7rem; }
.nest { display: grid; gap: 10px; }
.nest-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.nest-l { font-size: 0.82rem; font-weight: 600; }
.nest-t { height: 22px; background: var(--viz-grid); border-radius: 5px; position: relative; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.05); }
.nest-f { height: 100%; background: var(--viz-a); border-radius: 5px; box-shadow: 0 3px 0 color-mix(in srgb, var(--viz-a) 60%, #000); display: flex; align-items: center; min-width: 4px; transition: width 0.6s ease; }
.nest-f span { font-family: var(--f-mono); font-size: 0.75rem; color: #fff; padding-left: 8px; white-space: nowrap; }
.nest-t > span.out { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink); white-space: nowrap; }
.nest-s { font-size: 0.75rem; color: var(--muted); }
.iot { display: grid; gap: 8px; }
.iot-arrow { justify-self: center; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.iot-arrow::before { content: "↓ "; }
.mini td.hl, .mini .hl { background: var(--accent-soft); font-weight: 600; }
.flow { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 6px 10px; align-items: center; font-size: 0.85rem; }
.flow .fl-a { grid-row: 1 / 4; background: var(--accent); color: var(--bg); font-weight: 700; border-radius: 8px; padding: 10px 12px; box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.flow .fl-ar { grid-row: 1 / 4; color: var(--muted); font-size: 1.2rem; }
.flow .fl-b, .flow .fl-c { border-radius: 8px; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); }
.flow .fl-b { border-color: var(--accent); font-weight: 600; }
.flow small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.ahp { margin-bottom: 4px; }
.chart .f-top { fill: #fff; opacity: 0.38; }
.chart .f-side { fill: #000; opacity: 0.2; }
.chart .b3 { filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.14)); }
.chart .w-up { fill: var(--ch-p2); }
.chart .w-dn { fill: var(--ch-n2); }
.chart .w-tot { fill: var(--accent); }
.chart .b-n2 { fill: var(--ch-n2); } .chart .b-n1 { fill: var(--ch-n1); } .chart .b-p1 { fill: var(--ch-p1); } .chart .b-p2 { fill: var(--ch-p2); } .chart .b-p3 { fill: var(--ch-p3); }
.chart .g-1 { fill: var(--g-1); } .chart .g-2 { fill: var(--g-2); } .chart .g-3 { fill: var(--g-3); } .chart .g-4 { fill: var(--g-4); } .chart .g-5 { fill: var(--g-5); } .chart .g-6 { fill: var(--g-6); } .chart .g-7 { fill: var(--g-7); } .chart .g-8 { fill: var(--g-8); }
.chart text.onbar { fill: #fff; font-weight: 600; }
.chart .mk { fill: var(--ink); }
.chart .cell0 { fill: var(--viz-grid); }
.chart .brk { fill: none; stroke: var(--bg); stroke-width: 4; }
.chart .quadbg { fill: transparent; }
.chart .quadbg.q0 { fill: var(--accent-soft); opacity: 0.7; }
.calc-head { margin-top: 8px; }

/* 사용 안내 */
.g-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
@media (max-width: 760px) { .g-quick { grid-template-columns: minmax(0, 1fr); } }
.g-quick > div { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 5px 0 -1px color-mix(in srgb, var(--line) 70%, transparent), var(--shadow); }
.g-quick b { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg); font-family: var(--f-mono); font-size: 1.1rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.g-quick span { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.g-quick em { font-style: normal; font-weight: 700; color: var(--ink); }
.g-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .g-wrap { grid-template-columns: minmax(0, 1fr); } }
.g-toc { position: sticky; top: calc(var(--head-h, 92px) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .g-toc { position: static; } }
.g-toc p { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.g-toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: 0.88rem; }
.g-toc a { color: var(--ink); text-decoration: none; }
.g-toc a:hover { color: var(--accent); text-decoration: underline; }
.g-main { display: grid; gap: 40px; min-width: 0; }
.g-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; min-width: 0; }
@media (max-width: 560px) { .g-step { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.g-num { font-family: var(--f-mono); font-size: 1.3rem; font-weight: 500; color: var(--accent); width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 25%, transparent); }
.g-body { display: grid; gap: 14px; min-width: 0; }
.g-body h3 { font-family: var(--f-display); font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.g-body h3 small { font-family: var(--f-body); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.g-text { display: grid; gap: 10px; font-size: 0.96rem; line-height: 1.8; max-width: 46em; }
.g-text ul, .g-text ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.g-tip { border-left: 3px solid var(--ochre); padding: 2px 0 2px 12px; color: var(--muted); font-size: 0.9rem; }
.g-fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--line) 80%, transparent), var(--shadow); }
.g-fig img { display: block; width: 100%; height: auto; border-radius: 6px; }
.g-fig figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.g-faq { display: grid; gap: 8px; }
.g-mail { font-family: var(--f-mono); user-select: all; background: var(--surface); border: 1px solid var(--line); padding: 1px 8px; border-radius: 6px; }

/* 개인정보처리방침 */
.policy { max-width: 46em; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 10px; line-height: 1.85; }
.policy-lead { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.policy h3 { font-size: 1rem; margin-top: 12px; }
.policy p { color: var(--ink); }
footer a { color: var(--muted); }

/* 긴 표 더 보기 */
.tbl-more { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.tbl-more:hover { border-color: var(--accent); }

/* 분석 메뉴는 머리글 한 곳에만 둔다. 휴대폰에서는 분석·지표 화면일 때 머리글 아래에 한 줄로 밀어 보는 줄로 보인다 */
@media (max-width: 720px) {
  html[data-view="analysis"] .site-head .nav-main, html[data-view="indicators"] .site-head .nav-main { display: block; min-width: 0; margin: 6px 0 -2px; }
  html[data-view="analysis"] .site-head .nav-main .nav-row, html[data-view="indicators"] .site-head .nav-main .nav-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .site-head .nav-main .nav-row::-webkit-scrollbar { display: none; }
  .site-head .nav-main a { font-size: 0.85rem; padding: 5px 11px; }
  .site-head .nav-main .nav-pair { display: none; }
  /* 휴대폰: 펼침 단추 없이 지역별 분석 메뉴를 한 줄에 바로 늘어놓는다 */
  .nav-grp, .site-head .nav-sub, .site-head .nav-col { display: contents; }
  .nav-grp-btn, .nav-sub a span, .nav-col-t { display: none; }
  .nav-row.main .nav-sub a { display: inline-block; white-space: nowrap; font-size: 0.85rem; padding: 5px 11px; border-radius: 999px; }
  .nav-sub a b { font-weight: 700; }
  .nav-row.main .nav-sub a[aria-current="page"] { background: var(--accent); color: var(--bg); }
}
#analysis > section.block { padding-block: 36px 64px; }
#analysis .sec-head { grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; margin-bottom: 20px; }
#analysis .sec-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
#analysis .sec-head p { max-width: 64em; font-size: 0.92rem; }

/* 스마트 해석: 보고서 문장 */
.ip-ctl { margin: 4px 0 10px; }
.ip-und .chips { margin-top: 2px; }
.ip-card .card-top h4 { font-size: 1.05rem; }
.ip-doc { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-top: 10px; line-height: 1.75; max-width: 72em; }
.ip-doc h5 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin: 14px 0 6px; }
.ip-doc h5:first-child { margin-top: 0; }
.ip-doc ul { margin: 0; padding: 0; list-style: none; }
.ip-doc ul.ip-o > li { position: relative; padding-left: 1.3em; margin: 3px 0; }
.ip-doc ul.ip-o > li::before { content: "○"; position: absolute; left: 0; color: var(--muted); }
.ip-doc ul.ip-d > li { position: relative; padding-left: 1.1em; margin: 2px 0; color: var(--ink); font-size: 0.95em; }
.ip-doc ul.ip-d > li::before { content: "-"; position: absolute; left: 0.2em; color: var(--muted); }
.ip-doc ul.ip-d { margin: 2px 0 4px; }
.ip-doc p { margin: 0 0 8px; text-wrap: pretty; }
.ip-doc .ip-src { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.ip-doc .ip-src + .ip-src { margin-top: 2px; }
.ip-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ip-ev { margin-top: 12px; }
.ip-ev summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--accent); padding: 4px 0; }
@media (max-width: 720px) { .ip-doc { padding: 14px 14px; } }

/* 스마트 분석: 지역 → 업종 → 기간 → 경제지표 → 보고서 */
.wz { display: grid; gap: 10px; margin: 8px 0 22px; }
.wz-step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); min-width: 0; }
.wz-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wz-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 0.82rem; flex-shrink: 0; align-self: center; }
.wz-t { font-weight: 700; font-size: 1rem; color: var(--ink); }
.wz-pick { font-size: 0.86rem; color: var(--accent); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.wz-b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.wz-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.wz-sub { padding: 8px 10px; background: var(--bg); border-radius: 10px; }
.wz-l { font-size: 0.76rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.wz-c { font: inherit; font-size: 0.84rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; line-height: 1.35; text-align: left; }
.wz-c:hover { border-color: var(--accent); color: var(--accent); }
.wz-c[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.wz-c.wz-open { border-color: var(--accent); }
.wz-c.wz-k { border-radius: 8px; font-size: 0.8rem; }
.wz-crumb { font-size: 0.84rem; color: var(--muted); }
.wz-crumb .lnk { font-size: 0.84rem; }
.wz-go { justify-self: start; }
.ip-top .ip-bar .btn { font-size: 0.9rem; }
.dl-err { font-size: 0.8rem; color: #b42318; }

/* 그래프 카드: 그림 저장 */
.png-btn { font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; border-radius: 999px; padding: 3px 10px; cursor: pointer; margin-left: auto; }
.png-btn:hover { border-color: var(--accent); }
.png-btn[disabled] { opacity: 0.6; cursor: progress; }
.chart-card:not(:has(.chart svg, .map-box svg, .chart-svg)) .png-btn { display: none; }
@media print { .png-btn, .ip-bar { display: none !important; } }

/* 산업분류별 분석 */
.ks-ctl { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); margin: 6px 0 16px; }
.ks-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.ks-row label { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); min-width: 0; }
.ks-row select { font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; max-width: 100%; }
.ks-l { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ks-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .ks-two { grid-template-columns: minmax(0, 1fr); } }
.treemap .tm-g { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.treemap .tm-c rect { stroke: var(--surface); stroke-width: 1; cursor: pointer; }
.treemap .tm-c:hover rect, .treemap .tm-c:focus rect { stroke: var(--ink); stroke-width: 2; }
.treemap .tm-c rect.tm-on { stroke: var(--ink); stroke-width: 2.5; }
.treemap .ch-n3 { fill: var(--ch-n3); } .treemap .ch-n2 { fill: var(--ch-n2); } .treemap .ch-n1 { fill: var(--ch-n1); } .treemap .ch-mid { fill: var(--ch-mid); }
.treemap .ch-p1 { fill: var(--ch-p1); } .treemap .ch-p2 { fill: var(--ch-p2); } .treemap .ch-p3 { fill: var(--ch-p3); } .treemap .ch-na { fill: var(--ch-na); }
.treemap text { font-size: 12.5px; font-weight: 600; pointer-events: none; }
/* 칸 색이 진하면 흰 글자, 옅으면 검은 글자. 흰 띠(테두리)는 쓰지 않아 글자가 밝게 번지지 않게 */
.treemap .tm-lt { fill: #0d1620; }
.treemap .tm-dk { fill: #ffffff; }
.treemap .tm-v { font-size: 11.5px; font-weight: 600; }
.treemap .tm-hb { fill: var(--ink); opacity: 0.88; cursor: pointer; }
.treemap .tm-gh:hover .tm-hb, .treemap .tm-gh:focus .tm-hb { opacity: 1; fill: var(--accent); }
.treemap .tm-gh:focus { outline: none; }
.treemap .tm-h, .treemap .tm-z { font-size: 12.5px; font-weight: 700; fill: var(--surface); }
.tm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.9rem; margin: 4px 0 8px; }
.tm-crumb b { color: var(--accent); }
.tm-crumb .tm-up { font-size: 0.8rem; padding: 4px 12px; margin-left: 8px; }
.ks-sum .stat { min-width: 0; }
.ks-sum .stat .v { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 720px) { .ks-sum .stat .v { font-size: 1.15rem; } }
.wz-lv { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .wz-lv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wz-lv { grid-template-columns: minmax(0, 1fr); } }
.wz-sel { display: grid; gap: 3px; min-width: 0; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.wz-sel select { font: inherit; font-size: 0.86rem; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; width: 100%; min-width: 0; }
.wz-sel.on span { color: var(--accent); }
.wz-sel.on select { border-color: var(--accent); background: var(--accent-soft); }
.wz-find input { width: 100%; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.wz-now { font-size: 0.88rem; font-weight: 700; color: var(--accent); margin: 2px 0 0; }
.rx-links .rx-rep { font-size: 0.82rem; padding: 6px 14px; margin-left: 4px; }
.ip-fh { margin: 16px 0 4px; font-size: 0.95rem; }
.ip-figs { margin-top: 6px; }
.ip-figs .chart-card { box-shadow: none; }

/* 첫 화면: 스마트 분석 띠 */
:root { --sf-bg: #1C3A52; --sf-ink: #F2EFE7; --sf-gold: #E2AE55; --sf-deep: #13293B; }
.sf-band { padding-block: 8px 4px; }
.sf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 44px; align-items: center; background: linear-gradient(135deg, var(--sf-deep) 0%, var(--sf-bg) 60%, #24506B 100%); color: var(--sf-ink); border-radius: 18px; padding: 40px 44px; box-shadow: var(--shadow-lift); }
.sf-text { min-width: 0; }
.sf-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--sf-deep); background: var(--sf-gold); border-radius: 999px; padding: 4px 11px 4px 8px; }
.sf-badge svg { width: 15px; height: 15px; }
.sf h2 { font-family: var(--f-display); font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.2; margin: 14px 0 10px; color: #FFFFFF; text-wrap: balance; }
.sf-lead { margin: 0; color: rgba(242, 239, 231, 0.86); max-width: 36em; line-height: 1.75; }
.sf-steps { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; padding: 0; margin: 24px 0 0; }
.sf-steps li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.95rem; }
.sf-steps li + li::before { content: ""; width: 16px; height: 1px; background: rgba(242, 239, 231, 0.45); margin: 0 3px 0 8px; }
.sf-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; color: var(--sf-gold); border: 1px solid rgba(226, 174, 85, 0.7); background: rgba(226, 174, 85, 0.12); }
.sf-steps li:last-child b { background: var(--sf-gold); color: var(--sf-deep); }
.sf-out { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.sf-out li { font-size: 0.82rem; border: 1px solid rgba(242, 239, 231, 0.32); border-radius: 6px; padding: 3px 9px; color: rgba(242, 239, 231, 0.92); }
.sf .actions { margin-top: 24px; }
.sf .btn.smart { background: var(--sf-gold); color: var(--sf-deep); }
.sf-try { margin: 16px 0 0; font-size: 0.86rem; color: rgba(242, 239, 231, 0.7); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.sf-try span { font-weight: 600; }
.sf-try a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(226, 174, 85, 0.8); text-underline-offset: 4px; }
.sf-doc { background: #FFFFFF; color: #16202A; border-radius: 6px; padding: 22px 24px 18px; box-shadow: 0 26px 44px -20px rgba(0, 0, 0, 0.6); transform: rotate(1.4deg); font-size: 0.84rem; min-width: 0; }
.sf-doc p { margin: 0; }
.sf-doc-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: #94650F; margin-bottom: 10px !important; }
.sf-doc-h { font-weight: 700; color: #1C3A52; margin-top: 10px !important; }
.sf-doc-l { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; color: #3A4651; font-size: 0.8rem; }
.sf-doc-t { display: grid; grid-template-columns: 1.2fr 0.8fr 1.6fr; gap: 3px; margin-top: 7px; }
.sf-doc-t i { height: 9px; background: #E2E8EE; border-radius: 2px; }
.sf-doc-t i:nth-child(-n+3) { background: #C9D6E2; }
.sf-doc-g { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 8px; padding: 0 2px; border-bottom: 1px solid #C3CCD4; }
.sf-doc-g i { flex: 1; background: #1F6BB8; border-radius: 3px 3px 0 0; }
.sf-doc-g i:nth-child(3) { background: #C07A0C; }
.sf-doc-f { margin-top: 10px !important; font-size: 0.72rem; color: #56626D; }
.tile-smart { border-color: var(--ochre); }
.tile-smart .ic { background: var(--ochre-soft); color: var(--ochre); }
@media (max-width: 860px) {
  .sf { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 22px; border-radius: 14px; }
  .sf-doc { transform: none; }
}
@media (max-width: 520px) { .sf-steps { gap: 8px 14px; } .sf-steps li + li::before { display: none; } .sf-steps li { font-size: 0.88rem; gap: 6px; } .sf-steps b { width: 24px; height: 24px; } }

/* 스마트 분석: 업종코드표 */
.wz-ctbtn { font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; color: var(--ochre); background: var(--ochre-soft); border: 1px solid var(--ochre); border-radius: 8px; padding: 6px 14px; }
.wz-ctbtn[aria-expanded="true"] { background: var(--ochre); color: var(--bg); }
.ct { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.ct-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ct-tools input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 0.9rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.ct-cnt { font-size: 0.78rem; color: var(--muted); }
.ct-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 112px 132px; align-items: center; gap: 8px; padding: 2px 12px 2px calc(12px + var(--d, 0) * 18px); border-bottom: 1px solid var(--line); }
.ct-row:last-child { border-bottom: 0; }
.ct-head { font-size: 0.76rem; font-weight: 700; color: var(--muted); padding-block: 7px; background: var(--bg); grid-template-columns: minmax(0, 1fr) 112px 132px; }
.ct-head .ct-k { padding-left: 34px; }
.ct-head .ct-n, .ct-head .ct-r { font-family: var(--f-body); font-size: 0.74rem; white-space: normal; line-height: 1.3; }
.ct-list { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; }
.ct-tg { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: inherit; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
.ct-tg.ct-leaf { border: 0; background: none; }
.ct-pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-align: left; font: inherit; background: none; border: 0; padding: 7px 4px; cursor: pointer; color: var(--ink); min-width: 0; border-radius: 6px; }
.ct-pick:hover { background: var(--accent-soft); }
.ct-code { font-family: var(--f-mono); font-size: 0.86rem; color: var(--accent); min-width: 3.2em; }
.ct-name { font-size: 0.9rem; min-width: 0; overflow-wrap: anywhere; }
.ct-lv { font-size: 0.72rem; color: var(--muted); }
.ct-n, .ct-r { font-family: var(--f-mono); font-size: 0.82rem; text-align: right; color: var(--ink); white-space: nowrap; }
.ct-r.muted { font-family: var(--f-body); font-size: 0.74rem; color: var(--muted); white-space: normal; }
.ct-row.on { background: var(--ochre-soft); }
.ct-row.on .ct-pick { font-weight: 700; }
.ct-row.on .ct-code { color: var(--ochre); }
.ct.nor .ct-row { grid-template-columns: 26px minmax(0, 1fr) 112px; }
.ct.nor .ct-head { grid-template-columns: minmax(0, 1fr) 112px; }
@media (max-width: 640px) {
  .ct-row, .ct.nor .ct-row { grid-template-columns: 26px minmax(0, 1fr) 92px; padding-left: calc(8px + var(--d, 0) * 12px); padding-right: 8px; }
  .ct-head, .ct.nor .ct-head { grid-template-columns: minmax(0, 1fr) 92px; }
  .ct:not(.nor) .ct-n { display: none; }
}

/* 업종코드표: 여러 개 고르기와 묶음 업종 */
.ct-box { width: 15px; height: 15px; border: 1.5px solid var(--muted); border-radius: 3px; flex-shrink: 0; align-self: center; position: relative; }
.ct-row.on .ct-box { background: var(--ochre); border-color: var(--ochre); }
.ct-row.on .ct-box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ct-row.in { background: color-mix(in srgb, var(--ochre-soft) 45%, transparent); }
.ct-row.in .ct-box { border-style: dashed; border-color: var(--ochre); }
.gp { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--ochre); border-radius: 10px; background: var(--ochre-soft); }
.gp-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.86rem; font-weight: 700; color: var(--ochre); }
.gp-name input { flex: 1 1 220px; min-width: 0; max-width: 360px; font: inherit; font-weight: 600; font-size: 0.95rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.gp-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gp-l { font-size: 0.8rem; font-weight: 700; color: var(--ochre); margin-right: 2px; }
.gp-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 0.82rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 10px; color: var(--ink); }
.gp-chip { max-width: 100%; }
.gp-chip b { font-family: var(--f-mono); font-weight: 600; color: var(--accent); white-space: nowrap; margin-right: 4px; }
.gp-chip button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.95rem; cursor: pointer; padding: 0 5px; line-height: 1; }
.gp-chip button:hover { color: var(--ink); }
.gp-clr { border: 0; background: none; font: inherit; font-size: 0.8rem; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.gp-sum { margin: 10px 0 0; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.gp-est { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 0.86rem; color: var(--ink); cursor: pointer; }
.gp-est input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ochre); }
.gp-est span { min-width: 0; }
.gp .note { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.55; }
/* 자료 출처 › 원자료 내려받기 */
.raw-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 12px; }
.raw-all .src-note { margin: 0; }
.raw-dl { white-space: nowrap; padding: 6px 12px; font-size: 0.85rem; }
#src-raw td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.raw-all .btn svg { width: 18px; height: 18px; flex: none; }
.raw-all .btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { /* 휴대폰: 표 대신 파일마다 카드 한 장 */
  #src-raw { min-width: 0; }
  #src-raw thead { display: none; }
  #src-raw tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  #src-raw tbody td { display: block; padding: 0; border: 0; min-width: 0; }
  #src-raw tbody td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 700; align-self: center; }
  #src-raw tbody td:nth-child(6) { grid-column: 2; grid-row: 1; }
  #src-raw tbody td:nth-child(2) { grid-column: 1 / -1; font-weight: 600; }
  #src-raw tbody td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
  #src-raw tbody td:nth-child(4) { grid-column: 1; font-size: 0.85rem; color: var(--muted); }
  #src-raw tbody td:nth-child(5) { grid-column: 2; font-size: 0.85rem; color: var(--muted); }
  #src-raw tbody td.num::after { content: "행"; }
}
/* 20년 추이 */
.chart .brk { stroke: var(--viz-axis); stroke-width: 1; stroke-dasharray: 4 3; }
.long-fam + .long-fam { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.long-h { margin: 0 0 8px; font-size: 0.95rem; font-weight: 700; color: var(--ink); }

/* ───── 산업테마 분석 ───── */
.tm-frames { margin: 6px 0 4px; }
.tm-lead { margin: 6px 0 14px; color: var(--muted); max-width: 72ch; }
.tm-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.tm-regs { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-reg { font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; }
.tm-reg small { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.tm-reg[aria-pressed="true"] { background: var(--nav-act, var(--accent)); color: var(--nav-act-ink, var(--bg)); border-color: transparent; box-shadow: var(--nav-act-sh, none); }
.tm-reg[aria-pressed="true"] small { color: inherit; opacity: 0.85; }
.tm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tm-tiles.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tm-tile { font: inherit; text-align: left; display: grid; gap: 4px; align-content: start; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: inset 0 1px 0 var(--nav-hl, transparent), 0 1px 2px rgba(0, 0, 0, 0.06); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.tm-tile b { font-size: 0.98rem; line-height: 1.35; }
.tm-tile span { font-size: 0.78rem; color: var(--muted); }
.tm-tile.sm { padding: 9px 12px; }
.tm-tile.sm b { font-size: 0.88rem; font-weight: 600; }
.tm-tile:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--nav-hl, transparent), var(--nav-raise, 0 4px 10px rgba(0, 0, 0, 0.1)); }
.tm-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--nav-raise, 0 4px 10px rgba(0, 0, 0, 0.1)); }
.tm-tile[aria-pressed="true"] b { color: var(--accent); }
.tm-tile:focus-visible, .tm-reg:focus-visible, .tm-subs button:focus-visible, .tm-bars .cmp-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-sublab { margin: 4px 0 -2px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.tm-over { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; margin-bottom: 16px; }
.tm-kicker { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.tm-over h4 { margin: 2px 0 6px; font-size: 1.25rem; }
.tm-def { margin: 0 0 8px; max-width: 80ch; }
.tm-items { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; font-size: 0.88rem; color: var(--ink); }
.tm-items b { font-weight: 700; }
.tm-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tm-subs button { font: inherit; font-size: 0.8rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.tm-subs button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: transparent; }
.tm-stats { margin-bottom: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-rx="theme"] .rx-pick { display: none; }
.tm-x { margin: 0 0 10px; }
.tm-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .tm-two { grid-template-columns: minmax(0, 1fr); } }
.tm-map { max-width: 560px; }
.tm-bars { min-width: 0; }
.tm-bars .cmp-bar { font: inherit; font-size: 0.8rem; color: var(--ink); text-align: left; width: 100%; background: none; border: 0; padding: 3px 6px; border-radius: 8px; cursor: pointer; }
.tm-bars .cmp-bar:hover { background: var(--accent-soft); }
.tm-bars .cmp-bar.on { background: var(--accent-soft); font-weight: 700; }
.tm-fill { background: var(--accent); }
.tm-fill.cur { background: var(--ochre); }
.tm-firms { margin-top: 16px; }
.tm-h5 { margin: 0 0 8px; font-size: 0.95rem; }
.tm-star { font-size: 0.8rem; color: var(--muted); margin-left: 4px; }
.tm-next { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px; }

/* ───── 휴대폰 앱 화면: 위쪽 앱 막대 + 떠 있는 아래 탭 5개 + 전체 메뉴 판 ─────
   카카오톡 등 앱 안 브라우저의 '글자 크게' 설정이 켜져도 메뉴 글자가 겹치지 않게, 메뉴 글자만 글자 배율(--tz)로 나눠 원래 크기에 맞춘다 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.m-menu-btn { display: none; }
.msheet { display: none; }
@media (max-width: 720px) {
  .site-head .wrap { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 8px; padding-block: 9px 10px; }
  .brand { display: grid; gap: 3px; align-items: start; min-width: 0; line-height: 1.2; }
  .brand b { font-family: var(--f-body); font-size: calc(0.74rem / var(--tz, 1)); font-weight: 700; letter-spacing: 0.06em; color: var(--accent); white-space: nowrap; }
  .brand span { font-size: calc(1.06rem / var(--tz, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .m-menu-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .m-menu-btn svg { width: 20px; height: 20px; }
  .m-menu-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
  .site-head .nav-main { grid-column: 1 / -1; }
  .site-head .nav-main a, .nav-row.main .nav-sub a { font-size: calc(0.85rem / var(--tz, 1)); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: inset 0 1px 0 var(--nav-hl), 0 10px 28px -10px rgba(0, 0, 0, 0.45), 0 2px 6px -2px rgba(0, 0, 0, 0.18); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; padding: 7px 2px 6px; border: 0; border-radius: 16px; background: none; cursor: pointer;
    font: inherit; font-size: calc(0.68rem / var(--tz, 1)); font-weight: 700; line-height: 1.2; color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
  .tabbar span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a:active, .tabbar button:active { transform: scale(0.96); }
  .tabbar a[aria-current="page"] { color: var(--nav-act-ink); background: var(--nav-act); box-shadow: var(--nav-act-sh); }
  .tabbar .tab-menu[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
  /* 전체 메뉴 판 */
  .msheet { display: block; position: fixed; inset: 0; z-index: 40; }
  .msheet[hidden] { display: none; }
  .msheet-bg { position: absolute; inset: 0; background: rgba(6, 10, 16, 0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: msFade 0.2s ease-out; }
  .msheet-panel { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px));
    background: var(--bg); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -16px 40px -8px rgba(0, 0, 0, 0.45); animation: msUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .msheet-grab { width: 42px; height: 4px; border-radius: 4px; background: var(--line); margin: 9px auto 2px; flex-shrink: 0; }
  .msheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px max(18px, env(safe-area-inset-right, 0px)) 12px max(18px, env(safe-area-inset-left, 0px)); flex-shrink: 0; }
  .msheet-k { margin: 0; font-size: calc(0.72rem / var(--tz, 1)); font-weight: 700; letter-spacing: 0.04em; color: var(--accent); white-space: nowrap; }
  .msheet-head h2 { margin: 2px 0 0; font-family: var(--f-display); font-size: calc(1.3rem / var(--tz, 1)); line-height: 1.25; }
  .msheet-x { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 0; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .msheet-x svg { width: 18px; height: 18px; }
  .msheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .ms-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--ink);
    background: var(--nav-gold); border: 1px solid color-mix(in srgb, var(--ochre) 35%, var(--line)); box-shadow: inset 0 1px 0 var(--nav-hl), var(--nav-raise); }
  .ms-hero .ms-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--nav-gold-act); color: #fff; box-shadow: var(--nav-gold-sh); }
  .ms-hero .ms-ic svg { width: 22px; height: 22px; }
  .ms-tx { display: grid; gap: 2px; min-width: 0; }
  .ms-tx b { font-size: calc(1rem / var(--tz, 1)); color: var(--ochre); }
  .ms-tx span { font-size: calc(0.78rem / var(--tz, 1)); color: var(--muted); line-height: 1.45; word-break: keep-all; }
  .ms-sec { margin: 18px 2px 8px; font-size: calc(0.8rem / var(--tz, 1)); font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
  .ms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; grid-auto-flow: row dense; }
  .ms-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
  .ms-chips a { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: calc(0.82rem / var(--tz, 1)); font-weight: 600; text-decoration: none; }
  .ms-chips a:active { background: var(--accent-soft); }
  .ms-chips a[aria-current="page"] { background: var(--nav-act); color: var(--nav-act-ink); border-color: transparent; }
  .ms-grid a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; min-width: 0; padding: 11px 12px;
    border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: inset 0 1px 0 var(--nav-hl), 0 1px 2px rgba(0, 0, 0, 0.06); }
  .ms-grid a svg { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--accent); }
  .ms-grid a b { font-size: calc(0.88rem / var(--tz, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ms-grid a span { font-size: calc(0.78rem / var(--tz, 1)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ms-grid a[aria-current="page"], .ms-list a[aria-current="page"] { background: var(--nav-act); color: var(--nav-act-ink); border-color: transparent; box-shadow: var(--nav-act-sh); }
  .ms-grid a[aria-current="page"] svg, .ms-grid a[aria-current="page"] span { color: var(--nav-act-ink); }
  .ms-list { display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
  .ms-list a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: var(--ink); text-decoration: none; font-size: calc(0.9rem / var(--tz, 1)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ms-list a + a { border-top: 1px solid var(--line); }
  .ms-list a svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
  .ms-grid a:active, .ms-list a:active, .ms-hero:active { transform: scale(0.985); }
  .m-menu-btn:focus-visible, .msheet-x:focus-visible, .ms-grid a:focus-visible, .ms-list a:focus-visible, .ms-hero:focus-visible, .tabbar a:focus-visible, .tabbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  html.ms-open, html.ms-open body { overflow: hidden; }
}
@media (max-width: 340px) { .ms-grid { grid-template-columns: minmax(0, 1fr); } }
@keyframes msUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes msFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msheet-panel, .msheet-bg { animation: none; } }

/* ───── 인구·지역소멸 ───── */
.pp-crisis .m-line { stroke: var(--ochre); stroke-width: 2.6; fill: none; }
.legend i.pp-ring { background: transparent; box-shadow: inset 0 0 0 2px var(--ochre); }
.pp-cnt { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.pp-cnt b { font-size: 1.15rem; margin-right: 4px; }
.pp-scatter .grid { stroke: var(--viz-grid); }
.pp-scatter .pp-zone { fill: color-mix(in srgb, var(--ch-p2) 10%, transparent); }
.pp-scatter .quad { font-size: 11.5px; font-weight: 700; fill: var(--muted); }
.pp-dot { stroke: var(--surface); stroke-width: 1; opacity: 0.88; }
.pp-dot.crisis { stroke: var(--ochre); stroke-width: 2.4; opacity: 1; }
.pp-pt.cur .pp-dot { stroke: var(--ink); stroke-width: 2.6; opacity: 1; }
.pp-pt { cursor: pointer; }
.pp-pt:focus-visible { outline: none; }
.pp-pt:focus-visible .pp-dot, .pp-pt:hover .pp-dot { stroke: var(--ink); stroke-width: 2; opacity: 1; }
.pp-scatter .ch-n3 { fill: var(--ch-n3); } .pp-scatter .ch-n2 { fill: var(--ch-n2); } .pp-scatter .ch-n1 { fill: var(--ch-n1); }
.pp-scatter .ch-mid { fill: var(--ch-mid); } .pp-scatter .ch-p1 { fill: var(--ch-p1); } .pp-scatter .ch-p2 { fill: var(--ch-p2); } .pp-scatter .ch-p3 { fill: var(--ch-p3); } .pp-scatter .ch-na { fill: var(--ch-na); }
.pp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.pp-badge { font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pp-badge.g1 { background: var(--ch-p3); color: #fff; border-color: transparent; } .pp-badge.g2 { background: var(--ch-p2); color: #1a1206; border-color: transparent; }
.pp-badge.g3 { background: var(--ch-p1); color: #1a1206; border-color: transparent; } .pp-badge.g4 { background: var(--ch-n1); color: #0b1a2c; border-color: transparent; } .pp-badge.g5 { background: var(--ch-n3); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pp-badge.g1, :root:not([data-theme="light"]) .pp-badge.g5 { color: #0e141a; } }
:root[data-theme="dark"] .pp-badge.g1, :root[data-theme="dark"] .pp-badge.g5 { color: #0e141a; }
.pp-badge.des { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pp-badge.crisis { background: var(--ochre-soft); color: var(--ochre); border-color: color-mix(in srgb, var(--ochre) 40%, transparent); }
.pp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pp-kpi { display: grid; align-content: start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.pp-kpi span { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.pp-kpi b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pp-kpi small { font-size: 0.74rem; color: var(--muted); }
.pp-two { margin-top: 4px; }
.chart .pp-ldot { fill: var(--viz-a); stroke: var(--surface); stroke-width: 1.5; }
.chart .pp-m { fill: color-mix(in srgb, var(--viz-a) 70%, var(--surface)); }
.chart .pp-f { fill: color-mix(in srgb, var(--ch-n2) 55%, var(--surface)); }
.chart .pp-f.key { fill: var(--ch-p2); }
.chart .pp-m.old, .chart .pp-f.old { opacity: 0.55; }
.chart .pp-age { font-size: 11px; fill: var(--muted); }
.chart .pp-neg { fill: var(--ch-n2); } .chart .pp-pos { fill: var(--ch-p2); }
.pp-net { margin-top: 10px; }
.pp-firms { margin-top: 18px; }
.pp-dsec + .pp-dsec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pp-dl { margin: 6px 0; line-height: 1.9; font-size: 0.88rem; }
.pp-dl .lnk { font-size: inherit; }
.pp-fill { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.pp-fill.cur { outline: 2px solid var(--ink); outline-offset: 1px; }
@media (max-width: 560px) {
  .pp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pp-kpi { padding: 9px 10px; }
  .pp-kpi b { font-size: 1.02rem; }
  .pp-kpi small { font-size: 0.7rem; }
}
/* 식품 가치사슬 */
.fc-pick { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0 14px; }
.fc-mx { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.fc-mh, .fc-row { display: grid; grid-template-columns: minmax(150px, 1.05fr) repeat(3, minmax(0, 1fr)); gap: 14px; padding: 12px 14px; }
.fc-mh { background: var(--bg); font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.fc-mh span:nth-child(2) { color: color-mix(in srgb, var(--g-3) 55%, var(--ink)); }
.fc-mh span:nth-child(3) { color: color-mix(in srgb, var(--g-1) 70%, var(--ink)); }
.fc-mh span:nth-child(4) { color: color-mix(in srgb, var(--g-2) 60%, var(--ink)); }
.fc-row { border-top: 1px solid var(--line); color: inherit; text-decoration: none; position: relative; transition: background 0.15s; }
.fc-row:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.fc-row.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.fc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fc-nm { display: grid; gap: 3px; align-content: start; min-width: 0; }
.fc-nm b { font-size: 0.98rem; }
.fc-nm small { font-size: 0.74rem; color: var(--muted); line-height: 1.45; }
.fc-cell { display: grid; gap: 8px; align-content: start; min-width: 0; }
.fc-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; align-items: baseline; }
.fc-k { min-width: 0; font-size: 0.74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-l b { font-variant-numeric: tabular-nums; font-size: 0.9rem; text-align: right; white-space: nowrap; }
.fc-sh { grid-column: 1 / -1; font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-sh.top { color: var(--ochre); font-weight: 700; }
.fc-bar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.fc-bar i { display: block; height: 100%; border-radius: 3px; }
.fc-row .fc-cell:nth-child(2) .fc-bar i, .fc-cc.raw .fc-bar i { background: var(--g-3); }
.fc-row .fc-cell:nth-child(3) .fc-bar i, .fc-cc.proc .fc-bar i { background: var(--g-1); }
.fc-row .fc-cell:nth-child(4) .fc-bar i, .fc-cc.exp .fc-bar i { background: var(--g-2); }
.fc-g { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-g.up::before { content: '▲ '; color: var(--g-6); } .fc-g.down::before { content: '▼ '; color: var(--g-8); }
.fc-na { font-size: 0.76rem; color: var(--muted); }
.fc-etc { margin-top: 8px; }
.fc-notes { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.fc-notes ul { margin: 6px 0 6px; padding-left: 18px; display: grid; gap: 4px; font-size: 0.86rem; line-height: 1.55; }
.fc-cmpt { display: grid; gap: 2px; margin-top: 10px; }
.fc-ch, .fc-cr { display: grid; grid-template-columns: minmax(84px, 140px) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 5px 8px; border-radius: 8px; }
.fc-ch { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.fc-cr.on { background: var(--accent-soft); }
.fc-sn { all: unset; cursor: pointer; font-size: 0.84rem; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; }
.fc-sn:hover { text-decoration: underline; } .fc-sn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-cc { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.fc-cc .fc-bar { height: 8px; }
.fc-cc b { font-size: 0.8rem; font-variant-numeric: tabular-nums; text-align: right; }
.chart .fc-c0 { fill: color-mix(in srgb, var(--g-2) 55%, var(--surface)); } .chart .fc-c1 { fill: var(--g-2); }
.chart .fc-cv { font-size: 10.5px; fill: var(--muted); }
@media (max-width: 900px) {
  .fc-mh { display: none; }
  .fc-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fc-cell { display: block; position: relative; padding-left: 46px; }
  .fc-cell::before { content: attr(data-h); position: absolute; left: 0; top: 1px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
  .fc-cell > * + * { margin-top: 8px; }
  .fc-cell .fc-g { display: block; }
  .fc-ch, .fc-cr { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px 4px; }
  .fc-ch span { font-size: 0.68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fc-cc { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fc-cc b { text-align: left; font-size: 0.74rem; }
}
.fc-cc .fc-bar { grid-column: auto; }
.fc-short { display: none; }
@media (max-width: 760px) { .fc-full { display: none; } .fc-short { display: inline; } }
/* 지역주력산업 65 */
.j65-mk { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 6px; vertical-align: 0; }
.j65-mk.ge { background: var(--g-2); clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.j65-mk.auto { background: var(--g-1); border-radius: 50%; }
.legend i.j65-mk { width: 10px; height: 10px; border-radius: 0; }
.legend i.j65-mk.auto { border-radius: 50%; }
.map3d .j65-jungbu, .j65-sw.j65-jungbu { fill: color-mix(in srgb, var(--g-7) 58%, var(--surface)); background: color-mix(in srgb, var(--g-7) 58%, var(--surface)); }
.map3d .j65-seonam, .j65-sw.j65-seonam { fill: color-mix(in srgb, var(--g-2) 58%, var(--surface)); background: color-mix(in srgb, var(--g-2) 58%, var(--surface)); }
.map3d .j65-daegyeong, .j65-sw.j65-daegyeong { fill: color-mix(in srgb, var(--g-6) 55%, var(--surface)); background: color-mix(in srgb, var(--g-6) 55%, var(--surface)); }
.map3d .j65-dongnam, .j65-sw.j65-dongnam { fill: color-mix(in srgb, var(--g-5) 55%, var(--surface)); background: color-mix(in srgb, var(--g-5) 55%, var(--surface)); }
.map3d .j65-32, .j65-sw.j65-32 { fill: color-mix(in srgb, var(--g-3) 58%, var(--surface)); background: color-mix(in srgb, var(--g-3) 58%, var(--surface)); }
.map3d .j65-35, .j65-sw.j65-35 { fill: color-mix(in srgb, var(--g-4) 62%, var(--surface)); background: color-mix(in srgb, var(--g-4) 62%, var(--surface)); }
.map3d .j65-39, .j65-sw.j65-39 { fill: color-mix(in srgb, var(--g-8) 50%, var(--surface)); background: color-mix(in srgb, var(--g-8) 50%, var(--surface)); }
.j65-panel { display: grid; gap: 8px; align-content: start; min-width: 0; }
.j65-kick { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.j65-h { margin: 0; font-size: 1.12rem; }
.j65-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.j65-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 6px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.j65-tx { display: grid; gap: 1px; min-width: 0; }
.j65-tx b { font-size: 0.95rem; }
.j65-meta { font-size: 0.74rem; color: var(--muted); }
.j65-go { font-size: 0.78rem; font-weight: 700; color: var(--accent); white-space: nowrap; text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); }
.j65-go:hover { text-decoration: underline; }
.j65-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.j65-note { margin: 2px 0 0; }
.j65-bd { columns: 3 250px; column-gap: 12px; margin-top: 6px; }
.j65-rg { display: inline-block; width: 100%; margin: 0 0 12px; break-inside: avoid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.j65-rt { margin: 0; padding: 8px 14px; font-size: 0.95rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.j65-b-jungbu .j65-rt { background: color-mix(in srgb, var(--g-7) 22%, var(--surface)); }
.j65-b-seonam .j65-rt { background: color-mix(in srgb, var(--g-2) 22%, var(--surface)); }
.j65-b-daegyeong .j65-rt { background: color-mix(in srgb, var(--g-6) 22%, var(--surface)); }
.j65-b-dongnam .j65-rt { background: color-mix(in srgb, var(--g-5) 22%, var(--surface)); }
.j65-b-32 .j65-rt { background: color-mix(in srgb, var(--g-3) 22%, var(--surface)); }
.j65-b-35 .j65-rt { background: color-mix(in srgb, var(--g-4) 26%, var(--surface)); }
.j65-b-39 .j65-rt { background: color-mix(in srgb, var(--g-8) 20%, var(--surface)); }
.j65-sd { padding: 8px 14px 10px; }
.j65-sd + .j65-sd { border-top: 1px dashed var(--line); }
.j65-sd.on { background: var(--accent-soft); }
.j65-sn { all: unset; cursor: pointer; font-weight: 700; font-size: 0.9rem; border-radius: 4px; }
.j65-sn:hover { text-decoration: underline; } .j65-sn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.j65-sd ul { list-style: none; margin: 5px 0 0; padding: 0; display: grid; gap: 3px; font-size: 0.84rem; line-height: 1.45; }
.j65-sd li { display: flex; align-items: baseline; }
.rx-tbl.j65-mxw { margin-top: 6px; max-height: none; }
.j65-mx { min-width: 1320px; }
.j65-mx th, .j65-mx td { vertical-align: top; }
.j65-mx .j65-c { min-width: 92px; font-size: 0.74rem; line-height: 1.4; word-break: keep-all; }
.j65-mx thead .j65-c { text-align: left; white-space: nowrap; }
.j65-mx .j65-c.on { background: var(--accent-soft); }
.j65-mx .j65-fn { white-space: nowrap; font-size: 0.8rem; text-align: left; }
.j65-ci { display: flex; align-items: baseline; margin-bottom: 3px; }
.j65-ci .j65-mk { width: 8px; height: 8px; margin-right: 4px; }
@media (max-width: 560px) { .j65-list li { grid-template-columns: auto minmax(0, 1fr); } .j65-go { grid-column: 2; justify-self: start; } }
.j65-mx thead th:first-child, .j65-mx .j65-fn { position: sticky; left: 0; z-index: 2; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.j65-mx thead th:first-child { z-index: 3; }

/* 표 머리칸 정렬 단추: 누를 때마다 내림·오름·처음 순서 */
.th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; font-weight: inherit; border-radius: 4px; }
th.num .th-sort { flex-direction: row-reverse; }
.th-sort:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.th-sort::after { content: "↕"; font-size: 0.72em; color: var(--muted); opacity: 0.55; }
th.sorted .th-sort::after { content: none; }
.th-ar { font-size: 0.72em; color: var(--accent); min-width: 0.8em; }
th.sorted { color: var(--accent); }
table.mini tr.pin td { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); font-weight: 600; }
.chart-more { margin-top: 4px; }

/* 산업테마 머리 막대: 전국 / 경북·식품 두 줄 */
.tm-bar2 { display: grid; gap: 6px; }
.tm-brow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tm-blab { flex: none; min-width: 5.2em; font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.tm-brow .rx-seg { flex-wrap: wrap; }
.tm-back { margin: 6px 0 0; font-size: 0.88rem; } .tm-back a { color: var(--accent); font-weight: 600; text-decoration: none; } .tm-back a:hover { text-decoration: underline; }

/* 전국 정책 산업(성장엔진·비교·찾기) */
.po-mk.eng { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 6px; background: var(--g-1); border-radius: 2px; }
.po-elist .po-v { font-size: 0.74rem; font-weight: 600; }
.po-v.v1, .po-vd.v1, td.v1 { color: color-mix(in srgb, var(--g-6) 78%, var(--ink)); }
.po-v.v2, .po-vd.v2, td.v2 { color: color-mix(in srgb, var(--g-1) 80%, var(--ink)); }
.po-v.v3, .po-vd.v3, td.v3 { color: var(--muted); }
.po-v.v4, .po-vd.v4, td.v4 { color: color-mix(in srgb, var(--g-2) 62%, var(--ink)); }
.po-sort { margin: 2px 0 8px; }
.po-fit { display: grid; gap: 2px; margin-top: 4px; }
.po-fr { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 5.4em minmax(0, 13em); gap: 10px; align-items: center; padding: 5px 4px; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.po-fh { font-size: 0.74rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--ink); }
.po-fn { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--ink); text-decoration: none; }
.po-fn:hover b { text-decoration: underline; color: var(--accent); }
.po-fn .j65-sw { flex: none; width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.po-fn b { font-weight: 650; min-width: 0; overflow-wrap: anywhere; } .po-fn small { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.po-bw { position: relative; height: 18px; background: color-mix(in srgb, var(--line) 45%, transparent); border-radius: 4px; }
.po-b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px 0 0 4px; }
.po-b.v1, .po-sw.v1 { background: color-mix(in srgb, var(--g-6) 70%, var(--surface)); }
.po-b.v2, .po-sw.v2 { background: color-mix(in srgb, var(--g-1) 62%, var(--surface)); }
.po-b.v3, .po-sw.v3 { background: color-mix(in srgb, var(--viz-muted) 90%, var(--surface)); }
.po-b.v4, .po-sw.v4 { background: color-mix(in srgb, var(--g-2) 55%, var(--surface)); }
.po-one { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: 0.55; }
.po-bl { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.po-vd { font-weight: 700; font-size: 0.78rem; }
.po-rk { font-size: 0.78rem; color: var(--muted); }
.legend i.po-sw { width: 12px; height: 10px; border-radius: 2px; }
.po-mxt .po-self { color: var(--muted); }
.po-cell { all: unset; cursor: pointer; display: block; text-align: right; padding: 2px 6px; border-radius: 4px; font-family: var(--f-mono); background: color-mix(in srgb, var(--g-1) calc(var(--k, 0) * 55%), transparent); }
.po-cell:hover { outline: 1px solid var(--accent); } .po-cell:focus-visible { outline: 2px solid var(--accent); }
.po-cell.on { outline: 2px solid var(--ochre); font-weight: 700; }
.po-shout { margin-top: 10px; }
.po-h5 { margin: 12px 0 6px; font-size: 0.92rem; }
.po-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 6px; }
.po-codes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 0.82rem; }
.po-codes code { font-family: var(--f-mono); color: var(--accent); font-weight: 700; }
.po-codes span { grid-column: 2; font-size: 0.74rem; color: var(--muted); }
.po-mxw { max-height: none; }
.po-pm { min-width: 980px; }
.po-pm th, .po-pm td { text-align: center; }
.po-pm .j65-fn { text-align: left; white-space: nowrap; }
.po-pm thead th:first-child, .po-pm .j65-fn, .po-pm .po-sum th { position: sticky; left: 0; z-index: 2; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.po-ch { font-size: 0.76rem; white-space: nowrap; }
.po-pc { font-size: 0.86rem; letter-spacing: 1px; white-space: nowrap; }
.po-pc.k1, .po-sw.k1 { background: color-mix(in srgb, var(--g-1) 10%, transparent); }
.po-pc.k2, .po-sw.k2 { background: color-mix(in srgb, var(--g-1) 24%, transparent); }
.po-pc.k3, .po-sw.k3 { background: color-mix(in srgb, var(--g-1) 42%, transparent); }
.po-m { font-size: 0.8em; }
.po-pc .po-m { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin: 0 1px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); letter-spacing: 0; line-height: 1; } .po-m.o { color: color-mix(in srgb, var(--g-7) 85%, var(--ink)); } .po-m.n { color: color-mix(in srgb, var(--g-2) 78%, var(--ink)); } .po-m.g { color: var(--g-1); }
.po-sum td, .po-sum th { font-weight: 700; border-top: 1px solid var(--ink); }
.po-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.po-sel { display: grid; gap: 3px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.po-sel select { font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.po-swap { padding: 7px 12px; }
.po-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
@media (max-width: 760px) { .po-pair { grid-template-columns: minmax(0, 1fr); } }
.po-both { margin: 10px 0; padding: 9px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: 0.88rem; line-height: 1.6; word-break: keep-all; }
.po-vs td.po-win { font-weight: 700; }
.po-small { color: var(--muted); font-size: 0.72rem; }
.po-prof { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.po-ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.po-ph h5 { margin: 0; font-size: 1.06rem; }
.po-tag { font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.po-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.po-cols.one { grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (max-width: 860px) { .po-cols { grid-template-columns: minmax(0, 1fr); } }
.po-col { min-width: 0; }
.po-ct { margin: 0 0 5px; font-size: 0.76rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.po-il { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.po-il li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-size: 0.86rem; line-height: 1.45; }
.po-il li > :first-child { flex: none; }
.po-il small { color: var(--muted); font-size: 0.72rem; }
.po-elink { font-size: 0.72rem; font-weight: 700; color: var(--accent); text-decoration: none; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); }
.po-chips { display: grid; gap: 6px; margin: 4px 0 12px; }
.po-cg { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.po-cgl { min-width: 5.6em; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.po-chip { font: inherit; font-size: 0.84rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.po-chip:hover { border-color: var(--accent); }
.po-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.po-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.po-out { display: grid; gap: 12px; }
.po-flow { min-width: 0; }
.po-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.po-fc { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.po-fc b { font-weight: 700; }
.po-fc.keep { border-color: color-mix(in srgb, var(--g-6) 60%, var(--line)); background: color-mix(in srgb, var(--g-6) 12%, var(--surface)); }
.po-fc.add { border-color: color-mix(in srgb, var(--g-1) 60%, var(--line)); background: color-mix(in srgb, var(--g-1) 12%, var(--surface)); }
.po-fc.drop { border-color: color-mix(in srgb, var(--g-2) 55%, var(--line)); background: color-mix(in srgb, var(--g-2) 10%, var(--surface)); }
.po-fc.eng { border-style: dashed; }
.po-sk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .po-sk { grid-template-columns: minmax(0, 1fr); } }
.po-skb { min-width: 0; }
.po-skb .rx-tbl, .po-res .rx-tbl { max-height: none; }
.po-cnt { margin: 6px 0; }
.j65-oldh { margin: 6px 0 0; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.j65-old { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 0.84rem; }
.j65-old li { display: flex; align-items: baseline; gap: 6px; }
@media (max-width: 640px) {
  .po-fr { grid-template-columns: minmax(0, 1fr) 4.6em; }
  .po-fr .po-bw { grid-column: 1 / -1; grid-row: 2; }
  .po-fr .po-rk { grid-column: 1 / -1; }
  .po-fh { display: none; }
}
.rx-tbl.tall { max-height: none; }
.po-cell { width: 100%; box-sizing: border-box; }
.po-pm { min-width: 860px; width: 100%; table-layout: fixed; }
.po-pm th:first-child { width: 9.6em; } .po-pm th:last-child { width: 5.6em; }
.po-pm td, .po-pm th { padding: 7px 4px; }
.po-sk { grid-template-columns: minmax(0, 1fr); }

/* ───────── 주요 경제지표 동향(한국은행) ───────── */
.sec-head h2 small { display: block; margin-top: 6px; font-family: var(--f-body); font-size: 0.95rem; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.ec-tabs { display: flex; gap: 6px; padding: 5px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.ec-tabs::-webkit-scrollbar { display: none; }
.ec-tab { flex: 1 0 auto; text-align: center; padding: 10px 16px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.ec-tab:hover { background: var(--accent-soft); }
.ec-tab[aria-current="page"] { background: var(--nav-act); color: var(--nav-act-ink); box-shadow: var(--nav-act-sh); }
.ec-body { display: grid; gap: 18px; min-width: 0; }
.ec-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 22px; padding: 24px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background:
  radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
  linear-gradient(var(--surface), var(--surface)); box-shadow: 0 1px 0 var(--nav-hl) inset, 0 18px 40px -28px color-mix(in srgb, var(--accent) 60%, transparent); }
.ec-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 55%); mask-image: linear-gradient(120deg, #000 0%, transparent 55%); }
.ec-hero > * { position: relative; min-width: 0; }
.ec-eyebrow { margin: 0 0 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.ec-hero-t h3 { margin: 0 0 12px; font-family: var(--f-display); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.35; text-wrap: balance; }
.ec-hero-p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.ec-sum { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ec-sum li { position: relative; padding-left: 16px; font-size: 0.92rem; line-height: 1.6; }
.ec-sum li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.ec-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.ec-kpis-reg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ec-kpi { display: grid; gap: 4px; padding: 12px 14px 10px; min-width: 0; border-radius: 14px; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); border: 1px solid var(--line); }
.ec-kpi-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; align-items: baseline; min-width: 0; }
.ec-kpi-l { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.ec-kpi-t { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.ec-kpi-v { margin: 2px 0 0; font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ec-kpi-v small { margin-left: 3px; font-family: var(--f-body); font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ec-kpi-d { margin: 0; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ec-arr { display: inline-block; margin-right: 4px; font-size: 0.7rem; color: var(--ink); }
.ec-kpi-s { margin: 0; font-size: 0.72rem; color: var(--muted); }
.ec-spark { display: block; width: 100%; height: 34px; overflow: visible; }
.ec-sp-a { stroke: none; }
.ec-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ec-bar-l { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.ec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; }
.ec-chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ec-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.ec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ec-grid .wide { grid-column: 1 / -1; }
.chart .ec-l { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart .ec-l-a, .ec-spark .ec-l-a { stroke: var(--viz-a); }
.chart .ec-l-b, .ec-spark .ec-l-b { stroke: var(--viz-b); }
.chart .ec-l-k { stroke: var(--muted); stroke-width: 1.8; }
.ec-spark .ec-l { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ec-area-a { fill: color-mix(in srgb, var(--viz-a) 16%, transparent); }
.ec-area-b { fill: color-mix(in srgb, var(--viz-b) 14%, transparent); }
.ec-area-k { fill: none; }
.ec-dot { stroke: var(--surface); stroke-width: 2; }
.ec-d-a { fill: var(--viz-a); } .ec-d-b { fill: var(--viz-b); } .ec-d-k { fill: var(--muted); }
.chart .ec-bar { stroke: var(--surface); stroke-width: 1; }
.chart .ec-up { fill: var(--viz-b); } .chart .ec-dn { fill: var(--viz-a); }
.chart .ec-hi { fill: var(--viz-a); } .chart .ec-mu { fill: var(--viz-muted); }
.chart g.row:hover .ec-bar, .chart g.row:focus-within .ec-bar { filter: brightness(1.1); }
.legend i.ec-lg-a { background: var(--viz-a); } .legend i.ec-lg-b { background: var(--viz-b); }
.legend i.ec-lg-k { background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 8px); }
.ec-sub-t { margin: 4px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.ec-fx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.ec-fx-i { min-width: 0; padding: 10px 12px 4px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.ec-fx-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ec-fx-h b { font-size: 0.9rem; }
.ec-fx-v { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ec-fx-d { margin: 2px 0 0; font-size: 0.76rem; color: var(--muted); }
/* 경기 날씨 지도 */
.ec-hero-wx { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.ec-hero-wx > .src, .ec-hero-wx > .ec-wx-ex { grid-column: 1 / -1; }
.ec-wx-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: 0.78rem; color: var(--muted); }
.ec-wx-lg span { display: inline-flex; align-items: center; gap: 3px; }
.ec-wx-lg .ec-wx-ic { width: 26px; height: 22px; }
.ec-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); gap: 6px; align-self: center; }
.ec-tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 84px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: center; min-width: 0; outline-offset: 2px; transition: transform .15s; }
.ec-tile:hover { transform: translateY(-2px); }
.ec-tile.sel { box-shadow: 0 0 0 2px var(--accent); }
.ec-tile.none { background: transparent; border-style: dashed; }
.ec-tile-n { font-size: 0.82rem; }
.ec-tile .ec-wx-ic { width: 40px; height: 32px; }
.ec-tile-v { font-family: var(--f-display); font-size: 1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ec-tile-d { font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ec-tile-x { font-size: 0.68rem; color: var(--muted); line-height: 1.3; padding: 0 2px; }
.ec-tile.wx-sun { background: color-mix(in srgb, var(--viz-a) 13%, var(--surface)); }
.ec-tile.wx-few { background: color-mix(in srgb, var(--viz-a) 6%, var(--surface)); }
.ec-tile.wx-over { background: color-mix(in srgb, var(--viz-b) 7%, var(--surface)); }
.ec-tile.wx-rain { background: color-mix(in srgb, var(--viz-b) 15%, var(--surface)); }
.ec-wx-ic { display: block; overflow: visible; }
.ec-wx-ic .wx-sun circle { fill: var(--viz-a); }
.ec-wx-ic .wx-sun line { stroke: var(--viz-a); stroke-width: 2.4; stroke-linecap: round; }
.ec-wx-ic .wx-cloud { fill: color-mix(in srgb, var(--muted) 35%, var(--surface)); stroke: color-mix(in srgb, var(--muted) 70%, var(--surface)); stroke-width: 1.5; }
.ec-wx-ic .wx-cloud.dark { fill: color-mix(in srgb, var(--muted) 60%, var(--surface)); stroke: var(--muted); }
.ec-wx-ic .wx-rain line { stroke: var(--viz-b); stroke-width: 2.4; stroke-linecap: round; }
.ec-wx-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ec-wx-ext { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.ec-wx-c { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ec-wx-c .ec-wx-ic { width: 26px; height: 22px; }
.ec-reg { display: flex; align-items: center; gap: 10px; }
.ec-sel { font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 30px 7px 10px; min-width: 0; }
.ec-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ec-hh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ec-hh-i { display: grid; gap: 5px; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.ec-hh-l { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.ec-hh-v { font-family: var(--f-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-hh-b { display: grid; gap: 3px; }
.ec-hh-b i { display: block; height: 8px; border-radius: 0 4px 4px 0; }
.ec-hh-b i.a { background: var(--viz-a); } .ec-hh-b i.b { background: var(--viz-b); }
.ec-hh-n { font-size: 0.74rem; color: var(--muted); }
/* 물가 계산기 */
.ec-calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; padding: 24px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--viz-a) 12%, transparent), transparent 60%), var(--surface); }
.ec-calc > * { min-width: 0; }
.ec-calc-l h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.ec-calc-f { display: grid; gap: 10px; margin: 6px 0 12px; }
.ec-f { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.ec-f input { font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.ec-f input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ec-ym { display: flex; gap: 6px; min-width: 0; }
.ec-ym .ec-sel { flex: 1; }
.ec-calc-o { display: grid; align-content: center; gap: 8px; padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); border: 1px solid var(--line); }
.ec-calc-k { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.ec-calc-v { margin: 0; font-family: var(--f-display); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ec-calc-w { margin: 0; font-size: 0.88rem; line-height: 1.65; color: var(--muted); }
.ec-coins { display: flex; align-items: flex-end; gap: 22px; min-height: 120px; padding: 8px 4px 0; }
.ec-coin-col { display: grid; justify-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.ec-stack { display: flex; flex-direction: column-reverse; align-items: center; max-height: 150px; }
.ec-coin { display: block; width: 46px; height: 9px; margin-top: -3px; border-radius: 50%; background: linear-gradient(180deg, color-mix(in srgb, var(--viz-a) 70%, #fff), var(--viz-a)); box-shadow: 0 2px 0 color-mix(in srgb, var(--viz-a) 55%, #000); animation: ec-drop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.ec-coin.then { background: linear-gradient(180deg, color-mix(in srgb, var(--viz-b) 60%, #fff), var(--viz-b)); box-shadow: 0 2px 0 color-mix(in srgb, var(--viz-b) 55%, #000); animation: none; }
.ec-coin.part { width: calc(46px * var(--pf, 0.5)); min-width: 10px; opacity: 0.75; }
@keyframes ec-drop { from { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .ec-coin { animation: none; } .ec-tile { transition: none; } }
@media (max-width: 960px) {
  .ec-hero, .ec-hero-wx, .ec-calc { grid-template-columns: minmax(0, 1fr); }
  .ec-kpis-reg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-grid { grid-template-columns: minmax(0, 1fr); }
  .ec-hh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ec-hero, .ec-calc { padding: 16px; }
  .ec-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-kpis:not(.ec-kpis-reg) > .ec-kpi:last-child:nth-child(odd) { grid-column: span 2; }
  .ec-kpi-v { font-size: 1.4rem; }
  .ec-fx { grid-template-columns: minmax(0, 1fr); }
  .ec-tile { min-height: 72px; }
  .ec-tile .ec-wx-ic { width: 32px; height: 26px; }
}
.ec-cmpbars { display: grid; gap: 10px; margin: 6px 0 4px; }
.ec-cb { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ec-cb-l { display: grid; line-height: 1.25; } .ec-cb-l b { font-size: 0.88rem; } .ec-cb-l small { font-size: 0.72rem; color: var(--muted); }
.ec-cb-t { height: 16px; border-radius: 0 6px 6px 0; background: var(--viz-grid); overflow: hidden; }
.ec-cb-f { display: block; height: 100%; border-radius: 0 6px 6px 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.ec-cb-f.a { background: var(--viz-a); } .ec-cb-f.b { background: var(--viz-b); }
.ec-cb-v { font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ec-cb-f { transition: none; } }

/* 원자료 내려받기: 분야 묶음 줄과 이용 조건 */
#src-raw tr.raw-grp th { padding: 14px 10px 6px; text-align: left; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; color: var(--accent); background: var(--bg); border-bottom: 1px solid var(--line); }
#src-raw td small.raw-lic { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--muted); }

/* 그래프 읽기(그래프에 쓰인 숫자를 정해진 규칙으로 읽은 개조식 해설) */
.gi-read { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px 12px 14px; }
.gi-read .gi-h { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--accent); letter-spacing: 0.01em; }
.gi-read .gi-h svg { width: 14px; height: 14px; flex: none; }
.gi-read ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.gi-read li { position: relative; padding-left: 15px; font-size: 0.87rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.gi-read li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.gi-read b { font-weight: 700; }
.ec-hero .gi-read { margin-top: 4px; }
.rep-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rep-bar p { margin: 0; flex: 1 1 260px; min-width: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.rep-bar .btn { flex: none; }

/* 자료 출처 스마트 검색 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sfind { margin: 4px 0 28px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)), var(--surface) 160px); }
.sfind-top { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.sfind-q { flex: 1 1 340px; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.sfind-q:focus-within { border-color: var(--accent); }
.sfind-q svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.sfind-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.02rem; }
.sfind-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sfind-all .src-note { margin: 0; }
.sfind-all .btn svg { width: 18px; height: 18px; flex: none; }
.sfind-sub { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.sfind-f { min-width: 0; }
.sfind-f .sfind-l { flex-basis: auto; }
.sfind-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.sfind-f2 { gap: 10px 22px; margin-top: 10px; }
.sfind-f2 > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sfind-l { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.sf-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.86rem; cursor: pointer; }
.sf-chip small { color: var(--muted); font-size: 0.74rem; }
.sf-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sf-chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.sf-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.sf-chip[aria-pressed="true"] small { color: inherit; opacity: 0.8; }
.sfind-f2 .sf-chip { height: 30px; font-size: 0.8rem; padding: 0 11px; }
.sfind-n { margin: 16px 0 10px; font-size: 0.86rem; color: var(--muted); }
.sfind-n b { color: var(--ink); }
.sfind-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sf-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sf-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.sf-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.sf-tag i { width: 8px; height: 8px; border-radius: 50%; }
.sf-card h4 { margin: 0; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.sf-org { margin: 0; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.sf-meta { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.sf-meta b { color: var(--ink); font-weight: 600; }
.sf-lic { margin: 0; font-size: 0.74rem; color: var(--muted); }
.sf-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.sf-act .btn, .sf-act a { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 9px; font-size: 0.8rem; text-decoration: none; }
.sf-act svg { width: 15px; height: 15px; }
.sf-act a { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.sf-act a:hover { border-color: var(--accent); color: var(--accent); }
.sf-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
mark.sf-hl { background: color-mix(in srgb, var(--ochre) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 560px) {
  .sfind { padding: 16px; }
  .sfind-list { grid-template-columns: minmax(0, 1fr); }
}
