/* getincore.com 3판 — InCore Insights 기업 찾기 · ETF 찾기 · 산업 지도 · 《로봇 투자 7일 완성》 온라인 자료실
   색: 책 v15.13 원 포인트 체계. 85% 무채색(잉크·회색) + 포인트 하나(청록).
   파랑·에메랄드는 쓰지 않는다. #0D9488은 그래픽·테두리·큰 글씨에만,
   청록 글자와 흰 글자 버튼 바탕은 #0F766E(흰 바탕 대비 5.5:1). */

/* 3판 시각 체계(설계 4절): 애플의 위계 × 토스의 행동. 잉크·회색 + 청록 하나, 4·8 격자, 카드 반지름 16 · 입력·칩 12. */
:root {
  --ink: #1E293B;          /* 본문·제목 */
  --ink-2: #475569;        /* 보조 글자(3판: 설계 4절의 보조색) */
  --grey: #64748B;         /* 3차 글자 — 흰 바탕 위 작은 보조 글자 */
  --grey-2: #94A3B8;       /* 장식 선·점선 */
  --line: #CBD5E1;         /* 입력·칩 테두리 */
  --line-2: #E2E8F0;       /* 구분선·카드 테두리·막대 '나머지' */
  --surface: #F1F5F9;      /* 면 — 표 머리·상자·눌린 행 */
  --surface-2: #F8FAFC;    /* 바탕 — 카드·바닥글 */
  --bg: #FFFFFF;
  --point: #0D9488;        /* 포인트(그래픽·테두리·초점선) */
  --point-strong: #0F766E; /* 포인트 글자·주 버튼 바탕 */
  --point-bg: #F0FDFA;     /* 포인트 옅은 바탕 */
  --radius: 12px;          /* 입력·칩·작은 상자 */
  --radius-card: 16px;     /* 카드·패널 */
  --shadow-1: 0 1px 2px rgba(30, 41, 59, 0.06);
  --shadow-2: 0 8px 24px rgba(30, 41, 59, 0.06);
  --hdr: 56px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.625;      /* 본문 16/26 */
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--point-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--point); outline-offset: 2px; border-radius: 4px; }
mark { background: var(--point-bg); color: var(--ink); box-shadow: inset 0 -2px 0 var(--point); padding: 0 2px; }
strong { font-weight: 700; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.doc { max-width: 768px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 720px; }

/* ── 머리(3판): 높이 56, 스크롤하면 반투명 흰 바탕 + 흐림 ── */
.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid transparent; transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out; }
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line-2); }
.hdr { display: flex; align-items: center; gap: 8px 24px; min-height: var(--hdr); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--point); margin-right: 8px; vertical-align: 1px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--point); border-radius: 10px 10px 0 0; }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.search-btn:hover { color: var(--ink); border-color: var(--grey-2); background: #FFFFFF; }
.search-btn .ico { flex: 0 0 auto; }
.search-kbd { font: inherit; font-size: 12px; font-weight: 700; color: var(--grey); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; line-height: 18px; background: #FFFFFF; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-layer { display: none; }
@media (max-width: 959px) {
  .search-btn { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .search-btn-text, .search-kbd { display: none; }
  .has-drawer .nav-toggle { display: inline-flex; }
  .has-drawer .nav-toggle-text { display: none; }
  .has-drawer .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .has-drawer .nav { display: none; }
  /* body 아래 한 층(85): ETF 시트(80) 위, 검색(90) 아래. 배경과 대화상자는 형제다. */
  .nav-layer { display: block; position: fixed; inset: 0; z-index: 85; overflow: hidden; pointer-events: none; }
  .nav-dialog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; max-height: 86vh; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
    background: #FFFFFF; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(30, 41, 59, 0.12); padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden; transition: transform 0.2s var(--ease), visibility 0s linear 0.2s; }
  .nav-open .nav-dialog { transform: translateY(0); visibility: visible; transition: transform 0.2s var(--ease), visibility 0s; }
  .nav-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
  .nav-sheet-title { font-size: 13px; font-weight: 700; color: var(--grey); margin: 4px; }
  .nav-sheet-head .nav-close { width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .nav-sheet-links { display: flex; flex-direction: column; }
  .nav-sheet-links a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; border-radius: 12px; font-size: 17px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .nav-sheet-links a:hover { color: var(--ink); background: var(--surface); }
  .nav-sheet-links a[aria-current="page"] { color: var(--ink); font-weight: 800; background: var(--surface); }
  .nav-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: auto; background: rgba(30, 41, 59, 0.32); opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity 0.2s var(--ease), visibility 0s; }
}

/* ── 본문·글자(3판): 표시 40/48(모바일 30/38) · 제목 28/36 · 소제목 20/28 · 본문 16/26 · 보조 14/22 · 캡션 13/20 ── */
main { padding-top: 24px; padding-bottom: 32px; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: 28px; line-height: 36px; margin: 0 0 12px; font-weight: 800; }
h2 { font-size: 20px; line-height: 28px; margin: 40px 0 12px; font-weight: 800; }
h3 { font-size: 17px; line-height: 26px; margin: 28px 0 8px; font-weight: 700; }
h4 { font-size: 16px; line-height: 24px; margin: 20px 0 6px; font-weight: 700; }
.display { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; }
@media (min-width: 768px) { .display { font-size: 40px; line-height: 48px; } }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: 0.2em 0; }
.lead { font-size: 17px; line-height: 28px; color: var(--ink-2); }
.eyebrow { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--point-strong); margin: 0 0 4px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 22px; }
.sec-no { color: var(--point-strong); font-weight: 800; margin-right: 6px; }
hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: 36px 0; }

/* ── 버튼 ─────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s ease-out, border-color 0.15s ease-out; }
.btn-primary { background: var(--point-strong); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; background: var(--point-strong); text-decoration: underline; }
.btn-secondary { background: #FFFFFF; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { color: var(--ink); background: var(--surface-2); border-color: var(--grey-2); }
.btn-small { min-height: 44px; padding: 6px 14px; font-size: 14px; }
.btn-ghost { background: #FFFFFF; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost[aria-pressed="true"] { border-color: var(--point); box-shadow: inset 0 0 0 1px var(--point); }
.btn-text { font: inherit; font-size: 14px; font-weight: 700; color: var(--point-strong); background: none; border: 0; min-height: 44px; padding: 0 8px; cursor: pointer; border-radius: 8px; }
.btn-text:hover { color: var(--ink); background: var(--surface); }
.btn.is-disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: auto; cursor: not-allowed; text-decoration: none; }

/* ── 배지(공개 범위·상태: 테두리만 있는 중립 모양) ── */
.badge { display: inline-block; padding: 1px 10px; border: 1px solid var(--grey-2); border-radius: 999px; font-size: 13px; line-height: 1.7; color: var(--ink-2); background: #FFFFFF; font-weight: 700; white-space: nowrap; }
.badge-q { font-weight: 500; color: var(--ink-2); font-size: 14px; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1.8; margin: 0 4px 4px 0; }

/* ── 상자 ─────────────────────────────── */
.box { border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; background: var(--surface-2); border: 1px solid var(--line-2); }
.box > :last-child { margin-bottom: 0; }
.box-label { font-weight: 800; margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.box-point { background: #FFFFFF; border: 0; border-left: 4px solid var(--point); border-radius: 0 var(--radius) var(--radius) 0; }
.box-field { background: #FFFFFF; border: 1px solid var(--line); }
.box-caution { background: #FFFFFF; border: 1px dashed var(--grey-2); }
.box-band { background: var(--point-bg); border: 0; border-left: 4px solid var(--point); border-radius: 0 var(--radius) var(--radius) 0; }
.box-band p { margin: 0 0 4px; }
.box-plain { background: #FFFFFF; }
.pending { display: inline-block; font-weight: 700; color: var(--ink-2); border: 1px dashed var(--grey-2); border-radius: 999px; padding: 1px 10px; font-size: 13px; background: #FFFFFF; }
.key-q { font-size: 18px; font-weight: 800; color: var(--ink); }

/* ── 출처 목록 ────────────────────────── */
.src { font-size: 14px; color: var(--ink-2); margin: 10px 0 18px; padding: 10px 14px; border-top: 1px solid var(--line-2); }
.src-title { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 13px; }
.src ul { list-style: none; padding: 0; margin: 0; }
.src li { margin: 2px 0; }
.src .note { font-weight: 700; white-space: nowrap; }
.ext::after { content: " ↗"; }

/* ── 표 ───────────────────────────────── */
.table-wrap { margin: 16px 0 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: #FFFFFF; }
table.data caption { caption-side: top; text-align: left; font-size: 14px; color: var(--ink-2); padding: 0 0 8px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.data thead th { background: var(--surface); color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data tbody th { font-weight: 700; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.group-row td { background: var(--surface-2); font-weight: 800; }
.note-line { font-size: 14px; color: var(--ink-2); margin: 8px 0 16px; }
@media (max-width: 719px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; width: 100%; }
  table.stack caption { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack tr { border: 1px solid var(--line-2); border-radius: var(--radius); margin: 0 0 12px; padding: 8px 12px; }
  table.stack td, table.stack tbody th { border: 0; padding: 5px 0; display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; }
  table.stack td::before, table.stack tbody th::before { content: attr(data-label); font-weight: 700; color: var(--ink-2); font-size: 13px; }
  table.stack td.num { text-align: left; white-space: normal; }
  table.stack tr.group-row td { display: block; background: transparent; padding: 0; }
  table.stack tr.group-row td::before { content: none; }
  table.stack tr.group-row { border: 0; padding: 0; margin: 18px 0 8px; }
}

/* ── 격자·카드 ────────────────────────── */
.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #FFFFFF; color: inherit; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--point); color: inherit; }
.card h3 { margin-top: 0; }

/* 자료실 카드 */
.arch-card { display: flex; flex-direction: column; gap: 8px; }
.arch-label { font-size: 17px; font-weight: 500; margin: 0; line-height: 1.5; color: var(--ink); }
.arch-sym { color: var(--point); font-weight: 800; font-size: 20px; }
.arch-name { font-weight: 800; }
.arch-meta { font-size: 14px; color: var(--ink-2); margin: 0; }
.arch-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: auto; }
.fmt { font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; font-size: 30px; line-height: 1; font-weight: 600; color: var(--point-strong); text-decoration: none; background: #FFFFFF; }
.chips a:hover { border-color: var(--point); }

/* 홈 */
.hero { padding: 12px 0 8px; }
.hero h1 { font-size: 30px; max-width: 18em; }
@media (min-width: 768px) { .hero h1 { font-size: 42px; } }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); margin: 6px 0 0; padding: 0; list-style: none; }
.facts li { margin: 0; }
.facts strong { color: var(--ink); }
.book-band { margin: 32px 0; padding: 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); }
.book-title { font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.habits { counter-reset: h; list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .habits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.habits li { counter-increment: h; background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-weight: 700; margin: 0; }
.habits li::before { content: counter(h); display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--point); color: #FFFFFF; font-size: 13px; text-align: center; line-height: 22px; margin-right: 8px; font-weight: 800; }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); background: #FFFFFF; }

/* 자료실 상세 */
.item-title { font-size: 24px; font-weight: 500; line-height: 1.4; margin: 0 0 8px; }
.item-title .arch-sym { font-size: 28px; }
.item-title .arch-name { font-weight: 800; }
@media (min-width: 768px) { .item-title { font-size: 30px; } .item-title .arch-sym { font-size: 34px; } }
.mentions { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; }
.pager a { text-decoration: none; color: var(--ink-2); max-width: 48%; }
.pager a:hover { color: var(--ink); }
.pager .next { text-align: right; margin-left: auto; }
.excerpt-where { font-size: 13px; color: var(--ink-2); font-weight: 700; margin: -2px 0 8px; }
.field-card { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; background: #FFFFFF; }
.field-card > h3 { margin-top: 0; }
.field-card .card-no { color: var(--point-strong); font-weight: 800; margin-right: 6px; }

/* ① 출처 목록 */
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.toc a:hover { border-color: var(--point); color: var(--ink); }
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; }
.search input { flex: 1 1 260px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; }
.search-count { font-size: 14px; color: var(--ink-2); }
.src-list { list-style: none; padding: 0; margin: 0; }
.src-item { padding: 10px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 4px 8px; }
.src-item:target { background: var(--point-bg); box-shadow: -8px 0 0 var(--point-bg), 8px 0 0 var(--point-bg); }
.src-n { font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.src-text { margin: 0; }
.src-urls { grid-column: 2; font-size: 14px; margin: 0; padding: 0; list-style: none; }
.src-urls a { word-break: break-all; }

/* ── 로봇 지도 ────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line-2); margin: 14px 0 24px; }
.tabs a { padding: 10px 10px 8px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
@media (min-width: 640px) { .tabs a { padding: 10px 14px 8px; font-size: 16px; } }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--point); }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); margin: 16px 0 8px; }
.filters .f-wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .filters .f-wide { grid-column: auto; } }
.filters label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.filters input, .filters select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 16px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 8px 0 4px; }
.count { font-weight: 700; font-size: 15px; }
.cc-region { margin: 32px 0 4px; font-size: 22px; }
.cc-group h3 { font-size: 17px; margin: 22px 0 10px; color: var(--ink-2); }
.cc { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #FFFFFF; scroll-margin-top: 16px; }
.cc:target { border-color: var(--point); box-shadow: 0 0 0 2px var(--point-bg), 0 0 0 3px var(--point); }
.cc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 8px; }
.cc-name { font-size: 18px; font-weight: 800; margin: 0; }
.cc-code { font-size: 14px; color: var(--ink-2); margin: 0; font-variant-numeric: tabular-nums; }
.cc dl { margin: 0; display: grid; gap: 6px; }
.cc dl > div { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 8px; }
.cc dt { font-size: 13px; font-weight: 700; color: var(--ink-2); padding-top: 2px; }
.cc dd { margin: 0; font-size: 15px; }
.cc dd ul { margin: 0; padding-left: 1.1em; }
.practice { border-style: dashed; border-color: var(--grey-2); }
.blank { display: inline-block; min-width: 9em; border-bottom: 1px solid var(--ink-2); height: 1.2em; vertical-align: -2px; }

/* 지도 표(⑧) */
.map-table td { min-width: 0; }
.map-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.map-list li { margin: 0; }
.map-list a { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; text-decoration: none; color: var(--ink); background: #FFFFFF; }
.map-list a:hover { border-color: var(--point); }
.map-list .mnote { color: var(--ink-2); font-size: 13px; }

/* 막대(집중도·계산기) */
.bars { display: grid; gap: 14px; margin: 14px 0; }
.bar-row { display: grid; gap: 4px; }
.bar-label { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bar-track { display: flex; height: 22px; border-radius: 5px; overflow: hidden; background: var(--surface); }
.bar-seg { height: 100%; }
.seg-point { background: var(--point); }
.seg-ink { background: var(--ink-2); }
.seg-grey { background: var(--grey-2); }
.seg-rest { background: var(--line-2); }
.seg-hatch { background-color: var(--point-bg); background-image: repeating-linear-gradient(135deg, var(--point) 0 3px, transparent 3px 8px); box-shadow: inset 0 0 0 1.5px var(--point); }
.seg-gap { border-left: 2px solid #FFFFFF; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); list-style: none; padding: 0; margin: 4px 0 0; }
.legend li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ── 계산기 ───────────────────────────── */
.calc { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 16px; margin: 24px 0 32px; background: #FFFFFF; scroll-margin-top: 16px; }
@media (min-width: 768px) { .calc { padding: 22px 24px; } }
.calc h2 { margin-top: 0; }
.formula { font-weight: 800; background: var(--surface); border-radius: 8px; padding: 8px 12px; display: inline-block; margin: 0 0 10px; }
.calc fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.calc legend { font-weight: 800; font-size: 15px; padding: 0; margin: 0 0 8px; }
.calc-grid { display: grid; gap: 12px 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label { display: block; font-weight: 700; font-size: 15px; }
.field .hint { display: block; font-size: 13px; color: var(--grey); line-height: 1.5; margin: 1px 0 4px; }
.field input, .field select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; font-variant-numeric: tabular-nums; }
.field .unit { font-size: 13px; color: var(--ink-2); }
.calc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.example-note { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.result { margin: 18px 0 0; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); }
.result-main { font-size: 26px; font-weight: 800; color: var(--point-strong); line-height: 1.3; margin: 0 0 6px; }
.result-main small { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.result dl { margin: 8px 0 0; display: grid; gap: 4px; }
.result dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.result dt { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.result dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.not-in-book { font-size: 12px; font-weight: 700; color: var(--ink-2); border: 1px dashed var(--grey-2); border-radius: 999px; padding: 0 6px; margin-left: 6px; }
.book-display { font-size: 14px; margin: 10px 0 0; color: var(--ink); }
.warn { color: var(--ink); font-weight: 700; }
.disclaimer { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.holdings-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; margin: 0 0 8px; }
.calc details { margin: 14px 0 0; }
.calc summary { cursor: pointer; font-weight: 700; }
.checks { margin: 10px 0 0; }

/* ── 칼럼 ─────────────────────────────── */
.cat-list { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-list li { margin: 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #FFFFFF; }
.cat-name { font-weight: 800; display: block; }
.cat-en { font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 4px; }
.post-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.post-meta { font-size: 14px; color: var(--ink-2); }
.tl { border-radius: var(--radius); background: var(--surface); padding: 12px 14px; margin: 14px 0 20px; }
.tl-head { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
.tl-row { display: grid; grid-template-columns: 7.5em 1.4em minmax(0, 1fr); gap: 6px; align-items: baseline; padding: 4px 6px; border-radius: 6px; }
.tl-row.tl-loop-on { background: var(--point-bg); }
.tl-sym { font-size: 18px; line-height: 1; }
.sym-confirmed { color: var(--point); }
.sym-partial { color: var(--ink-2); }
.sym-none { color: var(--grey); }
.legend-3l { font-size: 14px; color: var(--ink-2); }

/* ── 소개 ─────────────────────────────── */
.career { font-weight: 700; color: var(--ink-2); }
.about-short { font-size: 18px; }
#coi { scroll-margin-top: 16px; }

/* ── 바닥글 ───────────────────────────── */
.site-footer { margin-top: 56px; background: var(--surface-2); border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 32px; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 14px; padding: 0; list-style: none; font-weight: 700; }
.foot-nav li { margin: 0; }
.foot-dates { font-variant-numeric: tabular-nums; }

/* ── 인쇄(③ 양식) ─────────────────────── */
.print-sheet { max-width: 190mm; margin: 0 auto; padding: 16px; }
.print-sheet .sheet { page-break-after: always; break-after: page; }
.print-sheet .sheet:last-child { page-break-after: auto; break-after: auto; }
.print-sheet .sheet-head { font-size: 12px; color: var(--ink-2); margin: 0 0 4px; }
.print-sheet h1 { font-size: 22px; margin: 0 0 6px; }
.print-sheet .intro { font-size: 13px; color: var(--ink); }
.form-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
.form-table th, .form-table td { border: 1px solid var(--ink-2); padding: 8px 9px; vertical-align: top; text-align: left; }
.form-table th { background: var(--surface); width: 26%; font-weight: 700; }
.form-table td { height: 56px; }
.form-table.log th { width: auto; text-align: center; }
.form-table.log td { height: 64px; }
.form-table p { margin: 0 0 4px; white-space: pre-wrap; }
.form-table .gap { height: 1.9em; margin: 0; }
.print-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
@page { size: A4; margin: 16mm 18mm 14mm; }
@media print {
  .site-header, .site-footer, .print-bar, .skip { display: none !important; }
  body { font-size: 12px; }
  .print-sheet { padding: 0; max-width: none; }
  a { color: var(--ink); text-decoration: none; }
}


/* ════════════════════════════════════════════════════════════════
   2판 — 대시보드 화면 부품
   색: 잉크·회색 + 청록 농도 단계(진함 #115E59 · 기본 #0D9488 · 중간 #2DD4BF · 옅음 #99F6E4).
   파랑·초록은 쓰지 않는다. 글자는 언제나 잉크/회색(대비 4.5:1 이상), 색 면은 장식·막대에만.
   ════════════════════════════════════════════════════════════════ */
figure { margin: 0; }
.js .js-hide { display: none; }
.crumbs { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--grey); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.page-head { margin: 4px 0 20px; }
.page-head h1 { margin-bottom: 6px; }
.page-sub { font-size: 16px; color: var(--ink-2); margin: 0 0 8px; }
.chips-row { margin: 6px 0 0; }
.meta-line { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; }
.cell-sub { display: block; font-size: 13px; font-weight: 500; color: var(--grey); line-height: 1.5; }
.tag-card { display: inline-block; font-size: 12px; font-weight: 700; color: var(--point-strong); border: 1px solid var(--point); border-radius: 999px; padding: 0 7px; line-height: 1.6; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.chip-auto { background: #FFFFFF; border: 1px dashed var(--grey-2); }
.plain-list { list-style: none; padding: 0; margin: 0 0 10px; }
.plain-list li { padding: 3px 0; border-bottom: 1px dashed var(--line-2); }

/* 영웅 띠·숫자 타일 */
.hero2 { padding: 8px 0 4px; }
.hero2 h1 { font-size: 28px; line-height: 1.25; max-width: 22em; margin: 0 0 6px; letter-spacing: -0.02em; }
@media (min-width: 768px) { .hero2 h1 { font-size: 40px; } }
.hero-ko { font-size: 18px; font-weight: 800; color: var(--point-strong); margin: 0 0 10px; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 8px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; background: #FFFFFF; min-width: 0; }
.kpi-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 2px; }
.kpi-value { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.kpi-value small { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.kpi-sub { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.5; }

/* 패널(구역 카드) */
.panel { border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 16px; margin: 20px 0; background: #FFFFFF; scroll-margin-top: 64px; }
@media (min-width: 768px) { .panel { padding: 22px 24px; } }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.panel-head h2 { margin: 0; font-size: 21px; }
.panel-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.panel-sub { font-size: 15px; color: var(--ink-2); margin: 4px 0 12px; }
.panel > h3:first-of-type { margin-top: 14px; }

/* 카드 격자·ETF 카드 */
.grid-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 12px 0; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ecard { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ecard-head h3 { margin: 0; font-size: 17px; }
.ecard-head h3 a { color: var(--ink); text-decoration: none; }
.ecard-head h3 a:hover { text-decoration: underline; }
.ecard-sub { font-size: 13px; color: var(--ink-2); margin: 0; }
.ecard-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 0; }
.ecard-kpis div { min-width: 0; }
.ecard-kpis dt { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ecard-kpis dd { margin: 0; font-size: 16px; font-weight: 800; }
.ecard-label { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 4px 0 0; }
.ecard-foot { font-size: 12px; color: var(--ink-2); margin: 0; }

/* 막대(빌드 때 그린 SVG) */
svg.sbar, svg.hbar, svg.mcol { display: block; width: 100%; border-radius: 4px; overflow: hidden; }
svg.h6 { height: 6px; } svg.h8 { height: 8px; } svg.h10 { height: 10px; } svg.h12 { height: 12px; } svg.h14 { height: 14px; }
svg.h16 { height: 16px; } svg.h18 { height: 18px; } svg.h20 { height: 20px; } svg.h22 { height: 22px; } svg.h24 { height: 24px; }
svg.h28 { height: 28px; } svg.h36 { height: 36px; }
svg.hbar { margin: 3px 0; }
.xray-big svg.sbar { border-radius: 6px; }
.legend .sw, .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -1px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(30, 41, 59, 0.18); flex: 0 0 auto; }
.sw-finished, .sw-d0 { background: #115E59; }
.sw-parts, .sw-d1, .sw-c0 { background: #0D9488; }
.sw-ai { background: #2DD4BF; }
.sw-si, .sw-d2 { background: #99F6E4; }
.sw-user, .sw-c1 { background: #64748B; }
.sw-indirect { background: #94A3B8; }
.sw-unclassified, .sw-d3 { background: #CBD5E1; }
.sw-outside, .sw-d4, .sw-c2 { background: #E2E8F0; }
.legend { margin: 8px 0 4px; }

/* 탭 */
.tabs2 { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-2); margin: 10px 0 0; }
.tab { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-2); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px 8px; margin-bottom: -1px; cursor: pointer; min-height: 44px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--point); }
.tabpanel-h { font-size: 16px; margin: 16px 0 0; }
.js .tabpanel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 칩 필터·검색 */
.chipbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); margin: 12px 0; }
.chipgroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.chipgroup-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.fchip { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; min-height: 36px; cursor: pointer; }
.fchip:hover { border-color: var(--ink-2); color: var(--ink); }
.fchip[aria-pressed="true"] { color: #FFFFFF; background: var(--point-strong); border-color: var(--point-strong); }
.searchbox { flex: 1 1 220px; min-width: 0; }
.searchbox label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 4px; }
.searchbox input { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; }
.chipbar .count { flex: 1 0 100%; margin: 0; font-size: 14px; }

/* 데이터 표(정렬·고정 머리) */
.table-scroll { margin: 12px 0 8px; border: 1px solid var(--line-2); border-radius: var(--radius); }
@media (min-width: 720px) {
  .table-scroll { max-height: 76vh; overflow: auto; }
  table.dtable { border-collapse: separate; border-spacing: 0; }
  table.dtable thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
  table.dtable caption { position: static; padding: 10px 12px 8px; background: #FFFFFF; }
}
@media (max-width: 719px) { .table-scroll { border: 0; } }
.sort-btn { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-align: left; }
.sort-btn:hover { text-decoration: underline; }
.sort-ind::after { content: "↕"; color: var(--grey); font-size: 12px; }
th[aria-sort="ascending"] .sort-ind::after { content: "↑"; color: var(--point-strong); }
th[aria-sort="descending"] .sort-ind::after { content: "↓"; color: var(--point-strong); }
table.hold th[scope="row"] a, table.dtable th[scope="row"] a { font-weight: 800; }
@media (min-width: 720px) { table.data td.nw { white-space: nowrap; } }

/* 상세 페이지 안 목차(고정) */
.subnav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line-2); margin: 0 -16px 8px; padding: 0 16px; }
@media (min-width: 768px) { .subnav { margin: 0 -24px 8px; padding: 0 24px; } }
.subnav ul { list-style: none; display: flex; gap: 2px 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: thin; }
.subnav li { margin: 0; flex: 0 0 auto; }
.subnav a { display: inline-block; padding: 10px 10px 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--point); }

/* TradingView 위젯 자리 */
.tv { margin: 6px 0 4px; }
.tv-box { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.tv-mini .tv-box { height: 220px; }
.tv-overview .tv-box { height: 440px; }
@media (max-width: 719px) { .tv-overview .tv-box { height: 380px; } }
.tv-tape .tv-box { min-height: 48px; }
.tv-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0; padding: 8px 14px; font-size: 13px; color: var(--ink-2); }
.tv-tape .tv-wait { position: static; min-height: 46px; }
.tv-ready .tv-wait { display: none; }
.tradingview-widget-container { position: relative; z-index: 1; height: 100%; width: 100%; }
.tradingview-widget-container__widget { height: 100%; }
.tv-attr { font-size: 12px; color: var(--ink-2); margin: 4px 0 0; }
.tv-attr a { color: var(--ink-2); }
.tape-wrap { margin: 18px 0 0; }

/* 위젯을 끈 종목의 작은 카드 */
.qcard { border: 1px dashed var(--grey-2); border-radius: var(--radius); padding: 14px 16px; background: #FFFFFF; max-width: 560px; }
.qcard-title { font-weight: 800; font-size: 17px; margin: 0 0 6px; }
.qcard dl { margin: 0; display: grid; gap: 4px; }
.qcard dl > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px; }
.qcard dt { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.qcard dd { margin: 0; font-variant-numeric: tabular-nums; }
.qcard-link { margin: 10px 0 0; font-weight: 700; }
.qcard-note { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }

/* 사건 장부 */
.evlist { list-style: none; padding: 0; margin: 10px 0 0; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; padding: 12px 0; border-top: 1px solid var(--line-2); }
@media (min-width: 720px) { .ev { grid-template-columns: 9.5em minmax(0, 1fr); } }
.evlist.collapsed .ev.extra { display: none; }
.ev-date { margin: 0; font-weight: 800; font-size: 14px; color: var(--ink); }
.ev-body p { margin: 0 0 4px; }
.ev-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; }
.ev-kind { font-size: 12px; font-weight: 800; color: var(--point-strong); border: 1px solid var(--point); border-radius: 999px; padding: 0 8px; line-height: 1.7; }
.ev-head .chip { margin: 0; font-size: 12px; }
.ev-who { font-weight: 800; }
.ev-who a { color: var(--ink); }
.ev-text { font-size: 15px; }
.ev-title { margin-right: 4px; }
.ev-detail { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ev-src { font-size: 13px; color: var(--ink-2); }
.ev-src .note { font-weight: 700; }
.more-row { margin: 12px 0 0; }

/* 산업지도(가치사슬) */
.vchain { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); counter-reset: st; }
@media (min-width: 720px) { .vchain { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vchain { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stage { margin: 0; padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); position: relative; min-width: 0; }
@media (min-width: 1100px) { .stage:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 12px; color: var(--grey); font-weight: 800; z-index: 1; } }
.stage-name { font-weight: 800; font-size: 15px; margin: 0 0 8px; }
.cells { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cells li { margin: 0; }
.cell { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; color: var(--ink); text-decoration: none; }
.cell:hover { border-color: var(--point); color: var(--ink); }
.cell[aria-current="true"] { border-color: var(--point); box-shadow: inset 0 0 0 1px var(--point); background: var(--point-bg); }
.cell-name { display: block; font-weight: 800; }
.cell-does { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cell-count { display: block; font-size: 12px; color: var(--ink-2); margin-top: 4px; font-weight: 700; }
.cellpanel { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; margin: 14px 0; background: #FFFFFF; scroll-margin-top: 16px; }
.cellpanel h3 { margin-top: 0; }
.cellpanel h4 { margin: 12px 0 6px; font-size: 15px; }
.cell-book { font-size: 15px; }
.cellpanel-grid, .theme-grid, .diff-grid { display: grid; gap: 8px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .cellpanel-grid, .theme-grid, .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rank-list { padding-left: 1.4em; margin: 0; }
.rank-list li { margin: 0 0 8px; }
.etf-mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.etf-mini-list li { margin: 0; }

/* 기업 페이지 5+1 */
.rows51 { margin: 8px 0 0; display: grid; gap: 0; }
.r51 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line-2); scroll-margin-top: 64px; }
@media (min-width: 760px) { .r51 { grid-template-columns: 12em minmax(0, 1fr); } }
.r51 dt { margin: 0; }
.r51-name { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.r51-q { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.r51 dd { margin: 0; }
.r51 dd > :last-child { margin-bottom: 0; }
.r51 details { margin-top: 6px; }
.r51 summary { cursor: pointer; font-weight: 700; }

/* 책 문장 인용 */
.bookq { margin: 10px 0 14px; padding: 10px 14px; border-left: 4px solid var(--point); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.bookq p { margin: 0 0 6px; }
.bookq footer { font-size: 13px; color: var(--ink-2); }

/* 시점 비교 */
.diff { border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 8px; }
.diff:first-child { border-top: 0; }
.diff h3 { margin-top: 8px; }

/* 겹침 비교 입력 */
.cmp-form { margin: 8px 0 0; }
.cmp-grid { display: grid; gap: 12px 16px; grid-template-columns: minmax(0, 1fr); max-width: 720px; }
@media (min-width: 640px) { .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 책 소개 */
.book-hero { display: grid; gap: 20px 32px; grid-template-columns: minmax(0, 1fr); align-items: start; margin: 4px 0 8px; }
@media (min-width: 820px) { .book-hero { grid-template-columns: 260px minmax(0, 1fr); } }
.cover { aspect-ratio: 3 / 4.2; max-width: 260px; border-radius: 6px; background: var(--ink); color: #FFFFFF; padding: 22px 20px; display: flex; flex-direction: column; box-shadow: 0 10px 24px rgba(30, 41, 59, 0.18); position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--point); }
.cover-title { font-size: 26px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.cover-sub { font-size: 14px; color: #E2E8F0; margin: 0; }
.cover-author { margin: auto 0 0; font-weight: 700; }
.cover-note { font-size: 12px; color: #CBD5E1; margin: 6px 0 0; }
.status-line { margin: 10px 0; }
.daycards { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .daycards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .daycards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.daycard { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.day-no { margin: 0; font-size: 13px; font-weight: 800; color: var(--point-strong); }
.day-title { margin: 0; font-weight: 800; line-height: 1.45; }
.day-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* 대시보드의 책 띠·데이터 층 */
.book-band2 { display: grid; gap: 16px 28px; grid-template-columns: minmax(0, 1fr); margin: 20px 0; padding: 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
@media (min-width: 900px) { .book-band2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.book-band2 h2 { margin: 0 0 4px; }
.layers { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 12px 0 0; }
@media (min-width: 820px) { .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.layer { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2); }
.layer-name { font-weight: 800; margin: 0 0 4px; }
.layer p:last-child { margin-bottom: 0; }

/* 바닥글(2판) */
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin: 0 0 14px; }
.foot-brand { font-weight: 800; color: var(--ink); margin: 0; }
.foot-line { margin: 0; font-size: 13px; }
.foot-layer { color: var(--ink-2); }

@media print {
  .subnav, .nav-toggle, .tv, .chipbar, .tabs2 { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   3판 — 찾아 들어가는 첫 화면 · 검색 · 기업 찾기 · ETF 찾기 · 비교 바
   한 구역에 한 목적. 고른 칩은 잉크로 채우고(흰 글자), 고르지 않은 칩은 회색 선.
   누르는 것은 모두 44px 이상, 초점은 2px 청록 윤곽선(지우지 않는다).
   ════════════════════════════════════════════════════════════════ */

/* 자바스크립트가 꺼진 모바일에서도 메뉴가 넘치지 않게(줄바꿈) */
@media (max-width: 959px) {
  .hdr { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; padding-bottom: 6px; }
}
html.nav-open, html.sheet-lock, html.search-open { overflow: hidden; }

/* 상세 페이지 안 목차·앵커 — 고정 머리글(56px) 아래로 */
.subnav { top: var(--hdr); }
.subnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; }
.panel, .cellpanel, .r51, #coi, .calc, .cc, .src-item { scroll-margin-top: calc(var(--hdr) + 56px); }
:target { scroll-margin-top: calc(var(--hdr) + 56px); }

/* 면: 카드 반지름 16 · 그림자 아주 옅게 */
.panel { border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
.card, .ecard, .kpi, .cellpanel, .qcard, .daycard, .layer, .field-card, .cc { border-radius: var(--radius-card); }
.kpi { box-shadow: var(--shadow-1); }
.page-head { margin: 8px 0 24px; }
.page-head h1 { margin-bottom: 8px; }
.h-sm { font-size: 17px; line-height: 26px; margin: 28px 0 8px; }
.h-sec { font-size: 20px; margin: 40px 0 8px; }
.empty-line { color: var(--ink-2); margin: 4px 0 8px; }
.empty { border-radius: var(--radius-card); text-align: left; }
.empty p:last-child { margin-bottom: 0; }

/* 칩·필터(3판) */
.fchip { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out; }
.fchip[aria-pressed="true"] { color: #FFFFFF; background: var(--ink); border-color: var(--ink); }
.fchip-n { font-size: 12px; font-weight: 700; color: var(--grey); }
.fchip[aria-pressed="true"] .fchip-n { color: #E2E8F0; }
.chip { border-radius: 8px; font-weight: 600; }
.chip-country { background: #FFFFFF; border: 1px solid var(--line-2); }
.badge-card { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; line-height: 20px; color: var(--point-strong); background: var(--point-bg); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.badge-plain { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 20px; color: var(--ink-2); background: var(--surface); border-radius: 999px; padding: 0 8px; white-space: nowrap; }

/* ── 검색 상자(콤보박스) ─────────────────── */
.combo { position: relative; }
.combo-box { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; box-shadow: var(--shadow-1); color: var(--grey); }
.combo-box:focus-within { border-color: var(--point); box-shadow: 0 0 0 3px var(--point-bg), var(--shadow-1); }
.combo-box .ico { flex: 0 0 auto; }
.combo-input { flex: 1 1 auto; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.combo-input::placeholder { color: var(--grey); }
.combo-input::-webkit-search-cancel-button { cursor: pointer; }
.combo-input:focus-visible { outline: 0; }
.combo-box-lg { min-height: 56px; }
.combo-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: min(64vh, 560px); overflow-y: auto; background: #FFFFFF;
  border: 1px solid var(--line-2); border-radius: var(--radius-card); box-shadow: var(--shadow-2), var(--shadow-1); padding: 6px; animation: pop-in 0.16s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.opt-grp + .opt-grp { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 4px; }
.opt-head { font-size: 12px; font-weight: 700; color: var(--grey); padding: 8px 10px 4px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.opt:hover { background: var(--surface-2); }
.opt[aria-selected="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--point); }
.opt-title { font-weight: 700; }
.opt-meta { flex: 1 0 100%; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.opt-badge { font-size: 11px; font-weight: 700; color: var(--point-strong); background: var(--point-bg); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.opt-why { font-size: 11px; font-weight: 600; color: var(--ink-2); border: 1px dashed var(--grey-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.opt-etfs { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--point-strong); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; background: #FFFFFF; }
.opt-etfs:hover { border-color: var(--point); }
.opt-all { justify-content: center; font-weight: 700; color: var(--point-strong); border-top: 1px solid var(--line-2); border-radius: 0 0 10px 10px; margin-top: 4px; }
.opt-all .opt-title { font-weight: 700; }
.combo-empty { margin-top: 8px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.combo-empty p { margin: 0 0 8px; }
.combo .combo-empty { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: #FFFFFF; box-shadow: var(--shadow-2); }
.combo-empty-page { position: static; }

.qchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 0; }
.qchips-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.qchip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.qchip-list li { margin: 0; }
.qchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.qchip:hover { color: var(--ink); border-color: var(--ink-2); background: var(--surface-2); }

/* 머리글 검색 덮개 — 데스크톱은 위쪽 패널, 모바일은 전체 화면 */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(30, 41, 59, 0.36); display: flex; justify-content: center; align-items: flex-start; padding: 72px 16px 16px; animation: fade-in 0.16s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.search-overlay-in { width: 100%; max-width: 720px; background: #FFFFFF; border-radius: var(--radius-card); box-shadow: var(--shadow-2); padding: 12px; }
.search-overlay .combo-pop, .search-overlay .combo-empty { position: static; box-shadow: none; border: 0; margin-top: 8px; padding: 0; max-height: 60vh; animation: none; }
.search-overlay .combo-box { box-shadow: none; }
.search-close { flex: 0 0 auto; }
.overlay-hint { margin: 10px 4px 2px; font-size: 12px; color: var(--grey); }
@media (max-width: 767px) {
  .search-overlay { padding: 0; background: #FFFFFF; }
  .search-overlay-in { max-width: none; height: 100%; border-radius: 0; box-shadow: none; padding: 10px 12px; overflow-y: auto; }
  .search-overlay .combo-pop { max-height: none; }
  .overlay-hint { display: none; }
}

/* /search/ 전체 결과 */
.search-page .count { margin: 14px 0 4px; font-weight: 700; }
.search-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 12px; }
.search-query { overflow-wrap: anywhere; }
.sr-group > h2 { scroll-margin-top: calc(var(--hdr) + 12px); }
.sr-group { margin: 8px 0 20px; }
.sr-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.sr-item { display: flex; align-items: center; gap: 8px; margin: 0; border-bottom: 1px solid var(--line-2); }
.sr-row { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 56px; padding: 10px 4px; text-decoration: none; color: var(--ink); }
.sr-row:hover { background: var(--surface-2); color: var(--ink); }
.sr-title { font-weight: 700; }
.sr-meta { flex: 1 0 100%; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.sr-etfs { flex: 0 0 auto; font-size: 13px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; text-decoration: none; }
.browse { padding-left: 1.2em; }
.browse li { margin: 6px 0; }

/* ── 홈 ─────────────────────────────────── */
main.home { padding-top: 40px; }
.home-hero { max-width: 760px; padding: 16px 0 8px; }
.home-sub { font-size: 17px; line-height: 28px; color: var(--ink-2); margin: 0 0 20px; }
.home-hero .combo-box { min-height: 60px; border-radius: 16px; padding-left: 18px; }
.home-hero .combo-input { font-size: 17px; }
.home-sec { margin-top: 48px; }
@media (min-width: 768px) { .home-sec { margin-top: 80px; } main.home { padding-top: 56px; } }
.home-sec > h2, .sec-head h2 { margin: 0 0 4px; font-size: 22px; line-height: 30px; }
.sec-sub { color: var(--ink-2); font-size: 15px; line-height: 24px; margin: 0 0 16px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sec-link { font-size: 15px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 479px) { .tiles-5 { grid-template-columns: minmax(0, 1fr); } }
.tile { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius-card); background: #FFFFFF; box-shadow: var(--shadow-1); overflow: hidden;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out; }
.tile:hover { border-color: var(--grey-2); box-shadow: var(--shadow-2); }
.tile-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 16px; color: var(--ink); text-decoration: none; }
.tile-main:hover { color: var(--ink); }
.tile-name { display: flex; align-items: center; font-size: 18px; line-height: 26px; font-weight: 800; letter-spacing: -0.02em; }
.tile-line { font-size: 14px; line-height: 21px; color: var(--ink-2); }
.tile-n { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--grey); }
.tile-role .tile-n { margin-top: auto; }
.tile-sub { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-top: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.tile-sub:hover { background: var(--surface); }
.tile-role .tile-main { min-height: 128px; }

.picks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick { margin: 0; }
.pick-link { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius-card); background: #FFFFFF; box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); }
.pick-link:hover { color: var(--ink); border-color: var(--grey-2); box-shadow: var(--shadow-2); }
.pick-day { margin: 0; font-size: 12px; font-weight: 700; color: var(--point-strong); }
.pick-name { margin: 0; font-size: 18px; line-height: 26px; font-weight: 800; letter-spacing: -0.02em; }
.pick-meta { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.pick-line { margin: 0 0 4px; font-size: 14px; line-height: 21px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-sub { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pick-link .badge-card { align-self: flex-start; margin-top: auto; }
.pick-link svg.sbar { margin: 4px 0 6px; }

.home .evlist { margin-top: 0; }
.home-book { display: grid; gap: 20px 32px; grid-template-columns: minmax(0, 1fr); align-items: start; padding: 24px; border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--line-2); }
@media (min-width: 820px) { .home-book { grid-template-columns: 180px minmax(0, 1fr); } }
.home-book h2 { margin: 0 0 6px; }
.cover-sm { max-width: 180px; padding: 16px 14px; }
.cover-sm .cover-title { font-size: 19px; }
.cover-sm .cover-sub { font-size: 12px; }
.arch-names { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.arch-names li { margin: 0; }
.arch-names a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.arch-names a:hover { border-color: var(--grey-2); color: var(--ink); }
.arch-no { color: var(--point-strong); font-weight: 700; }
.arch-names-wide { flex-direction: column; flex-wrap: nowrap; }
.arch-names-wide li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.arch-desc { font-size: 13px; color: var(--ink-2); }
.data-line { margin: 48px 0 0; font-size: 14px; }
.data-line a { color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.data-line a:hover { color: var(--ink); text-decoration: underline; }

/* ── 거르기(기업 찾기·ETF 찾기·사건 전체) ─── */
.help { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); max-width: 760px; }
.help summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--point-strong); }
.help summary::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; margin-right: 8px; }
.help ul { margin: 4px 0 8px; padding-left: 1.2em; }
.facets { border: 1px solid var(--line-2); border-radius: var(--radius-card); background: #FFFFFF; box-shadow: var(--shadow-1); padding: 12px 16px; margin: 8px 0 12px; }
.facets-body { display: grid; gap: 12px; }
.facet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.facet-label { margin: 0; flex: 0 0 6.5em; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.facet .chipgroup { flex: 1 1 auto; }
.facet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.facet-select select, .facet-q input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; color: var(--ink); font: inherit; font-size: 15px; }
.facet-select .facet-label, .facet-q .facet-label { flex: 0 0 auto; }
.facet-q { flex: 1 1 260px; }
.facet-q input { flex: 1 1 auto; min-width: 0; width: 100%; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line); transition: background-color 0.15s ease-out; flex: 0 0 auto; }
.switch-dot { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-1); transition: transform 0.15s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--ink); }
.switch[aria-checked="true"] .switch-dot { transform: translateX(18px); }
.sheet-head, .sheet-foot { display: none; }
.result-bar { position: sticky; top: var(--hdr); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 -16px; padding: 6px 16px; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line-2); }
@media (min-width: 768px) { .result-bar { margin: 0 -24px; padding: 6px 24px; } }
.result-bar .count { margin: 0; font-size: 15px; font-weight: 700; flex: 1 1 auto; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.sort select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; font: inherit; font-size: 14px; color: var(--ink); }
.filter-open { display: none; }
.filter-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 12px; margin-left: 6px; }
.sheet-backdrop { display: none; }
@media (max-width: 767px) {
  .filter-open { display: inline-flex; }
  .facets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; margin: 0; max-height: 86vh; overflow-y: auto; border-radius: 16px 16px 0 0; border: 0;
    box-shadow: 0 -8px 24px rgba(30, 41, 59, 0.14); padding: 0 16px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden; transition: transform 0.2s var(--ease), visibility 0.2s; }
  .sheet-open .facets { transform: translateY(0); visibility: visible; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #FFFFFF; padding: 8px 0; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; z-index: 1; }
  .sheet-title { margin: 0; font-size: 17px; font-weight: 800; }
  .sheet-foot { display: flex; gap: 8px; position: sticky; bottom: 0; background: #FFFFFF; padding: 10px 0 0; margin-top: 12px; border-top: 1px solid var(--line-2); }
  .sheet-foot .btn { flex: 1 1 0; }
  .facet { flex-direction: column; align-items: flex-start; }
  .facet-label { flex: 0 0 auto; }
  .facet-select, .facet-q { width: 100%; }
  .facet-select select { width: 100%; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(30, 41, 59, 0.32); }
}

/* 회사 목록 행 — 카드가 아니라 행(스캔이 빠르다) */
.co-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.co-list > li { margin: 0; border-bottom: 1px solid var(--line-2); }
.co-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-height: 64px; padding: 12px 36px 12px 4px; color: var(--ink); text-decoration: none; }
.co-row:hover { background: var(--surface-2); color: var(--ink); }
.co-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.co-title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.co-name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.co-en { font-size: 13px; color: var(--ink-2); }
.co-head .badge-card { align-self: center; }
.co-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--ink-2); }
.co-meta .chip { margin: 0; }
.co-tk { font-weight: 600; margin-right: 4px; }
.co-line { font-size: 14px; line-height: 21px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-go { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--grey-2); }
@media (min-width: 900px) {
  .co-row { grid-template-columns: minmax(0, 15em) minmax(0, 15em) minmax(0, 1fr); align-items: center; gap: 4px 20px; }
  .co-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* 회사 페이지 */
.quick { font-size: 14px; color: var(--ink-2); margin: -12px 0 12px; }
.quick a { font-weight: 700; }
.facts-dl { margin: 4px 0 0; display: grid; gap: 0; }
.facts-dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.facts-dl > div:first-child { border-top: 0; }
@media (min-width: 640px) { .facts-dl > div { grid-template-columns: 8em minmax(0, 1fr); } }
.facts-dl dt { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.facts-dl dd { margin: 0; }
.basic-note { margin: 24px 0 8px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface-2); border: 1px dashed var(--grey-2); color: var(--ink-2); font-size: 14px; }
.src-list2 { padding-left: 1.2em; font-size: 14px; color: var(--ink-2); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.cmp-toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); }

/* ── ETF 찾기 목록 ───────────────────────── */
.etf-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.etf-list > li { margin: 0; border-bottom: 1px solid var(--line-2); }
.etf-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 4px; }
.etf-id { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.etf-name { font-size: 16px; font-weight: 800; text-decoration: none; color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.etf-name:hover { text-decoration: underline; color: var(--ink); }
.etf-sub { font-size: 13px; line-height: 20px; color: var(--ink-2); }
.etf-line { font-size: 13px; line-height: 20px; color: var(--grey); }
.etf-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.etf-cells > div { min-width: 0; }
.etf-cells dt { font-size: 12px; font-weight: 700; color: var(--grey); }
.etf-cells dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.etf-conc svg.hbar { max-width: 140px; }
.etf-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; font-size: 14px; font-weight: 700; cursor: pointer; }
.cmp-check input { width: 18px; height: 18px; accent-color: #0F766E; margin: 0; }
.cmp-check:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.cmp-check.is-disabled { opacity: 0.5; cursor: not-allowed; }
.cmp-na { font-size: 12px; color: var(--ink-2); }
html:not(.js) .cmp-check, html:not(.js) .cmp-na { display: none; }   /* 자바스크립트가 없으면 비교 담기는 숨긴다(목록·상세는 그대로) */
@media (min-width: 1000px) {
  .etf-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 4.6fr) minmax(0, 1.6fr); align-items: center; gap: 12px; }
  .etf-cells { grid-template-columns: 0.9fr 0.9fr 0.9fr 1.3fr 1.3fr; }
  .etf-act { justify-content: flex-end; }
}

/* 가격 흐름 — 접힌 칸(열었을 때만 불러온다) */
.tv-fold { margin: 24px 0; border: 1px solid var(--line-2); border-radius: var(--radius-card); background: #FFFFFF; box-shadow: var(--shadow-1); }
.tv-fold > summary { display: flex; flex-direction: column; gap: 2px; justify-content: center; min-height: 64px; padding: 10px 16px; cursor: pointer; list-style: none; }
.tv-fold > summary::-webkit-details-marker { display: none; }
.tv-fold > summary::after { content: "열기 ▾"; position: absolute; right: 16px; top: 22px; font-size: 13px; font-weight: 700; color: var(--point-strong); }
.tv-fold { position: relative; }
.tv-fold[open] > summary::after { content: "접기 ▴"; }
.tv-fold-title { font-weight: 800; padding-right: 64px; }
.tv-fold-sub { font-size: 13px; color: var(--ink-2); padding-right: 64px; }
.tv-fold-body { padding: 0 16px 12px; }

/* ── 비교 바(하단 고정) ──────────────────── */
.cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; animation: tray-in 0.2s var(--ease); }
@keyframes tray-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cmp-tray-in { pointer-events: auto; max-width: 1072px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px 10px 16px;
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: var(--radius-card); box-shadow: 0 8px 24px rgba(30, 41, 59, 0.16); }
.cmp-tray-count { margin: 0; font-size: 14px; font-weight: 800; }
.cmp-tray-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; flex: 1 1 auto; }
.cmp-tray-list li { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 0 2px 0 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; }
.cmp-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 18px; color: var(--ink-2); cursor: pointer; }
.cmp-x:hover { background: var(--line-2); color: var(--ink); }
.cmp-tray-act { display: flex; align-items: center; gap: 4px; margin-left: auto; }
html.has-tray body { padding-bottom: 104px; }
@media (max-width: 559px) { .cmp-tray-list { flex: 1 0 100%; order: 3; } }

/* ── ETF 비교(2~3열) ─────────────────────── */
.cmp-grid-3 { max-width: none; }
@media (min-width: 900px) { .cmp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-cols { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 16px 0 8px; }
@media (min-width: 720px) { .cmp-cols.cmp-n2, .cmp-cols.cmp-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cmp-cols.cmp-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-col { border: 1px solid var(--line-2); border-radius: var(--radius-card); background: #FFFFFF; box-shadow: var(--shadow-1); padding: 16px; min-width: 0; }
.cmp-col-h { margin: 0; font-size: 20px; line-height: 28px; }
.cmp-col-h a { color: var(--ink); text-decoration: none; }
.cmp-col-h a:hover { text-decoration: underline; }
.cmp-sub { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.cmp-dl { margin: 8px 0 12px; display: grid; gap: 0; }
.cmp-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.cmp-dl dt { color: var(--ink-2); font-weight: 600; }
.cmp-dl dd { margin: 0; text-align: right; font-weight: 700; }
.cmp-label { margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: var(--grey); }
.cmp-top { margin: 0; padding-left: 1.4em; font-size: 14px; }
.cmp-top li { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0; }
.cmp-top-name { min-width: 0; }
.cmp-pair { border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 8px; }
.cmp-pair:first-child { border-top: 0; }
.cmp-pair h3 { margin: 8px 0; }

/* 8판 W2 — 비교 바로 보기 · 공개 범위 · 지표 먼저 회사 비교 */
.compare-presets { display: flex; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; padding: 4px 4px 10px; margin: 4px 0 8px; }
.compare-presets .qchip { flex: 0 0 auto; white-space: nowrap; font-size: 13px; min-height: 44px; }
.compare-presets .qchip[aria-current="true"] { border-color: var(--point); color: var(--point-strong); background: var(--point-bg); }
.cmp-scope { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); font-size: 14px; font-weight: 700; }
.cmp-page-head { margin-bottom: 8px; }
.cmp-page-head .lead { margin-bottom: 0; }
.cmp-result { margin: 0 0 12px; }
.cmp-result-pair + .cmp-result-pair { border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 12px; }
.cmp-result-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0; font-size: 14px; font-weight: 600; }
.cmp-result .kpi-sub { overflow-wrap: anywhere; }
.cmp-result-link { min-height: 44px; margin-top: 4px; }
.pc-page-head { margin-bottom: 8px; }
.pc-choices { margin: 0 0 4px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pc-choices > summary { min-height: 44px; padding: 10px 4px; cursor: pointer; font-size: 14px; font-weight: 600; }
.pc-choices .cmp-form { padding: 0 4px 12px; }
.pc-matrix { min-width: 0; }
.pc-table { display: block; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.pc-table thead { display: block; position: sticky; top: var(--hdr); z-index: 25; overflow: hidden; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.pc-table tbody { display: block; max-width: 100%; overflow-x: auto; }
.pc-table tr { display: grid; grid-template-columns: 88px repeat(2, minmax(0, 1fr)); }
.pc-table.pc-n1 tr { grid-template-columns: 88px minmax(0, 1fr); }
.pc-table.pc-n3 tr { grid-template-columns: 88px repeat(3, minmax(132px, 1fr)); min-width: 484px; }
.pc-table th, .pc-table td { min-width: 0; padding: 10px 8px; border-bottom: 1px solid var(--line-2); text-align: left; overflow-wrap: anywhere; }
.pc-table thead th { background: var(--surface); font-weight: 700; }
.pc-table thead th .mono { display: flex; margin: 0 0 2px; }
.pc-table .pc-name { display: flex; align-items: center; min-height: 44px; color: var(--ink); line-height: 20px; text-decoration: none; }
.pc-table .pc-name:hover { text-decoration: underline; }
.pc-table .ptype { margin-top: 4px; max-width: 100%; white-space: normal; }
.pc-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.pc-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
.pc-table td { font-variant-numeric: tabular-nums; background: #FFFFFF; }
.pc-table td .srcv { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; line-height: 20px; }
.pc-table .cell-sub { font-size: 12px; line-height: 18px; }
.pc-note { display: flex; align-items: center; gap: 8px; margin: 12px 0; max-width: none; }
.pc-note > p { margin: 0; }
@media (min-width: 720px) {
  .pc-table tr { grid-template-columns: 160px repeat(2, minmax(0, 1fr)); }
  .pc-table.pc-n1 tr { grid-template-columns: 160px minmax(0, 1fr); }
  .pc-table.pc-n3 tr { grid-template-columns: 160px repeat(3, minmax(132px, 1fr)); min-width: 556px; }
}
/* 599px 이하: 지표는 전체 폭 한 줄, 회사 값은 이름 머리 줄과 같은 균등 칸. */
@media (max-width: 599px) {
  .pc-table tbody { overflow: visible; }
  .pc-table tr { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .pc-table.pc-n1 tr { grid-template-columns: minmax(0, 1fr); }
  .pc-table.pc-n3 tr { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .pc-table thead th:first-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .pc-table tbody th { grid-column: 1 / -1; position: static; padding: 6px 8px; }
}

/* ════════════════════════════════════════════════════════════════════
   4판 — 모노그램 · 피어 비교 · 숫자로 보기 · 이정표 · 리서치 · 사진
   색은 3판과 같은 원 포인트(잉크·회색 + 청록 하나). 새 색을 들이지 않는다.
   ════════════════════════════════════════════════════════════════════ */

/* 모노그램(글자 원) — 실제 로고 대신. 주소 글자 코드의 합으로 네 벌 가운데 하나(빌드·브라우저 같은 규칙) */
.mono { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1; vertical-align: middle; user-select: none; }
.mono-xs { width: 20px; height: 20px; font-size: 11px; margin-right: 6px; }
.mono-sm { width: 24px; height: 24px; font-size: 12px; margin-right: 8px; }
.mono-md { width: 32px; height: 32px; font-size: 14px; margin-right: 10px; }
.mono-lg { width: 48px; height: 48px; font-size: 20px; margin-right: 14px; }
.mono-v0 { background: #F1F5F9; color: #1E293B; }
.mono-v1 { background: #E2E8F0; color: #334155; }
.mono-v2 { background: #F0FDFA; color: #0F766E; box-shadow: inset 0 0 0 1px #99F6E4; }
.mono-v3 { background: #FFFFFF; color: #475569; box-shadow: inset 0 0 0 1px #CBD5E1; }
.co-title .mono { margin-right: 4px; }

/* 피어 비교 — 위쪽 안내 · 그룹 카드 · 비교 유형 */
.peer-note { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 14px; line-height: 22px; color: var(--ink-2); max-width: 880px; }
.ptype { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; line-height: 20px; border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.ptype-direct { color: #0F766E; background: #F0FDFA; }
.ptype-adjacent { color: #475569; background: #FFFFFF; box-shadow: inset 0 0 0 1px #CBD5E1; }
.ptype-conglomerate { color: #334155; background: #F1F5F9; }
.ptype-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.ptype-list li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.pg-cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-card { margin: 0; }
.pg-link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius-card);
  background: #FFFFFF; box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.pg-link:hover { color: var(--ink); border-color: var(--grey-2); box-shadow: var(--shadow-2); }
.pg-name { margin: 0; font-size: 19px; line-height: 26px; font-weight: 800; letter-spacing: -0.02em; }
.pg-line { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.pg-meta { margin: 0; font-size: 13px; color: var(--grey); font-weight: 700; }
.pg-members { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.pg-members li { margin: 0; display: flex; align-items: center; font-size: 14px; min-height: 28px; }
.pg-members .ptype { margin-left: auto; }
.pg-go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--point-strong); }
.group-nav { margin: 4px 0 4px; }
.group-nav .qchip[aria-current="page"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.group-nav .qchip[aria-current="page"] .fchip-n { color: #E2E8F0; }
.group-nav .fchip-n { margin-left: 6px; }

/* 피어 표 */
.pt-tools { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.pt-tools select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; font: inherit; font-size: 14px; color: var(--ink); }
.peer-table { font-size: 14px; }
.peer-table th, .peer-table td { padding: 10px 8px; }
.peer-table thead th { vertical-align: bottom; }
.peer-table tbody th { min-width: 13em; font-weight: 500; }
.peer-table td.pv { min-width: 7.2em; }
.peer-table td.pv[data-col="robot"] { min-width: 10em; }
.peer-table td.num .cell-sub { white-space: normal; max-width: 12em; margin-left: auto; }
.cv { display: block; min-width: 0; }
.pt-co { display: flex; align-items: center; }
.pt-co-id { display: flex; flex-direction: column; min-width: 0; }
.pt-name { font-weight: 800; color: var(--ink); text-decoration: none; }
.pt-name:hover { text-decoration: underline; color: var(--ink); }
.pt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0 42px; }
.pt-note { flex: 1 0 100%; font-size: 12px; line-height: 18px; color: var(--grey); }
.fn-ref { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; min-height: 24px; }
.cmp-check-sm { font-size: 13px; padding: 0 12px; }
.srcv { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--grey-2); text-underline-offset: 3px; }
.srcv:hover { color: var(--point-strong); text-decoration-color: currentColor; }
.srcv-na { font-weight: 600; color: var(--ink-2); }
.pending { font-size: 13px; color: var(--grey); font-weight: 600; }
@media (max-width: 719px) {
  .peer-table tbody th { min-width: 0; }
  .peer-table td.num .cell-sub { max-width: none; margin-left: 0; }
  .pt-meta { margin-left: 0; }
  .peer-table td.pv, .peer-table td.pv[data-col="robot"] { min-width: 0; }
}

/* 가로 막대(시가총액·매출) — 한 색, 바닥 쪽은 각지고 끝만 둥글게, 값은 막대 끝에 */
.mb-list { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 6px; }
.mb-list > li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; align-items: center; min-height: 36px; }
@media (min-width: 640px) { .mb-list > li { grid-template-columns: minmax(9em, 13em) minmax(0, 1fr); } }
.mb-name { display: flex; align-items: center; min-width: 0; font-size: 14px; font-weight: 700; }
.mb-name a { color: var(--ink); text-decoration: none; }
.mb-name a:hover { text-decoration: underline; color: var(--ink); }
.mb-track { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }   /* 값이 막대 끝에 안 들어가면 아래 줄로(잘리지 않게) */
.mb-bar { display: block; flex: 0 0 auto; height: 12px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--point); }
.mb-val { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bw-0 { width: 2px; }
.bw-1 { width: 1%; } .bw-2 { width: 2%; } .bw-3 { width: 3%; } .bw-4 { width: 4%; } .bw-5 { width: 5%; } .bw-6 { width: 6%; } .bw-7 { width: 7%; } .bw-8 { width: 8%; } .bw-9 { width: 9%; } .bw-10 { width: 10%; }
.bw-11 { width: 11%; } .bw-12 { width: 12%; } .bw-13 { width: 13%; } .bw-14 { width: 14%; } .bw-15 { width: 15%; } .bw-16 { width: 16%; } .bw-17 { width: 17%; } .bw-18 { width: 18%; } .bw-19 { width: 19%; } .bw-20 { width: 20%; }
.bw-21 { width: 21%; } .bw-22 { width: 22%; } .bw-23 { width: 23%; } .bw-24 { width: 24%; } .bw-25 { width: 25%; } .bw-26 { width: 26%; } .bw-27 { width: 27%; } .bw-28 { width: 28%; } .bw-29 { width: 29%; } .bw-30 { width: 30%; }
.bw-31 { width: 31%; } .bw-32 { width: 32%; } .bw-33 { width: 33%; } .bw-34 { width: 34%; } .bw-35 { width: 35%; } .bw-36 { width: 36%; } .bw-37 { width: 37%; } .bw-38 { width: 38%; } .bw-39 { width: 39%; } .bw-40 { width: 40%; }
.bw-41 { width: 41%; } .bw-42 { width: 42%; } .bw-43 { width: 43%; } .bw-44 { width: 44%; } .bw-45 { width: 45%; } .bw-46 { width: 46%; } .bw-47 { width: 47%; } .bw-48 { width: 48%; } .bw-49 { width: 49%; } .bw-50 { width: 50%; }
.bw-51 { width: 51%; } .bw-52 { width: 52%; } .bw-53 { width: 53%; } .bw-54 { width: 54%; } .bw-55 { width: 55%; } .bw-56 { width: 56%; } .bw-57 { width: 57%; } .bw-58 { width: 58%; } .bw-59 { width: 59%; } .bw-60 { width: 60%; }
.bw-61 { width: 61%; } .bw-62 { width: 62%; } .bw-63 { width: 63%; } .bw-64 { width: 64%; } .bw-65 { width: 65%; } .bw-66 { width: 66%; } .bw-67 { width: 67%; } .bw-68 { width: 68%; } .bw-69 { width: 69%; } .bw-70 { width: 70%; }
.bw-71 { width: 71%; } .bw-72 { width: 72%; } .bw-73 { width: 73%; } .bw-74 { width: 74%; } .bw-75 { width: 75%; } .bw-76 { width: 76%; } .bw-77 { width: 77%; } .bw-78 { width: 78%; } .bw-79 { width: 79%; } .bw-80 { width: 80%; }
.bw-81 { width: 81%; } .bw-82 { width: 82%; } .bw-83 { width: 83%; } .bw-84 { width: 84%; } .bw-85 { width: 85%; } .bw-86 { width: 86%; } .bw-87 { width: 87%; } .bw-88 { width: 88%; } .bw-89 { width: 89%; } .bw-90 { width: 90%; }
.bw-91 { width: 91%; } .bw-92 { width: 92%; } .bw-93 { width: 93%; } .bw-94 { width: 94%; } .bw-95 { width: 95%; } .bw-96 { width: 96%; } .bw-97 { width: 97%; } .bw-98 { width: 98%; } .bw-99 { width: 99%; } .bw-100 { width: 100%; }

/* 성장률 × 영업이익률 점 지도 — 넓은 화면은 큰 그림, 좁은 화면은 작은 그림(글자 크기를 지키려고 둘을 그린다) */
.dm-wrap { position: relative; max-width: 640px; margin: 8px 0 4px; }
svg.dm { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
svg.dm-sm { display: none; }
@media (max-width: 639px) { svg.dm-lg { display: none; } svg.dm-sm { display: block; } }
.dm-pt { cursor: pointer; }
.dm-pt:focus { outline: none; }
.dm-pt:focus-visible .dm-hit { fill-opacity: 1; fill: #F0FDFA; stroke: #0D9488; stroke-width: 2; }
.dm-pt:hover text { text-decoration: underline; }
.dm-tip { position: absolute; z-index: 5; min-width: 9em; max-width: 16em; padding: 8px 10px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2), var(--shadow-1); pointer-events: none; font-size: 13px; line-height: 19px; }
.dm-tip p { margin: 0; }
.dm-tip-row strong { font-size: 15px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.dm-tip-name { color: var(--ink-2); margin-top: 2px !important; }
.dm-legend .dm-key { width: 14px; height: 14px; flex: 0 0 auto; }

/* 주가 흐름(고급 차트) · 시세 링크 */
.tv-adv .tv-box { height: 480px; }
@media (max-width: 719px) { .tv-adv .tv-box { height: 380px; } }
.quote-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .quote-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote-list li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 44px; font-size: 14px; }
.quote-list li > a:first-of-type { font-weight: 700; color: var(--ink); }

/* 출처 각주(회사마다 한 줄 묶음) */
.ps-fx { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.ps-list { list-style: none; padding: 0; margin: 0; }
.ps-item { margin: 0; padding: 12px 0; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--hdr) + 56px); }
.ps-item:target { background: var(--point-bg); box-shadow: inset 3px 0 0 var(--point); padding-left: 10px; }
.ps-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0 0 4px; font-weight: 800; }
.ps-name a { color: var(--ink); }
.ps-lines { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 21px; color: var(--ink-2); }
.ps-lines li { margin: 2px 0; }
.ps-meta { font-size: 12px; color: var(--grey); margin: 4px 0 0; }
.ps-note { font-size: 13px; line-height: 20px; color: var(--ink-2); margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.ps-note strong { color: var(--ink); margin-right: 4px; }

/* 회사 페이지 ‘숫자로 보기’ */
.nb-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.nb-groups a { font-weight: 700; }
.nb-kpis .kpi-value { font-size: 20px; }
.nb-kpis .kpi-value .srcv { font-weight: 800; }
.nb-src { margin: 16px 0 0; }
.nb-src-h { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.pc-col .cmp-col-h { display: flex; align-items: center; }

/* 이정표 — 세로 시간선: 사건(찬 점) → 책의 판정(네모) → 다음 확인(빈 점) */
.l3-legend { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-card); background: var(--surface-2); border: 1px solid var(--line-2); max-width: 880px; font-size: 14px; }
.l3-legend p { margin: 0 0 4px; }
.ms-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.ms-item { margin: 0; scroll-margin-top: calc(var(--hdr) + 56px); }
.ms-card { border: 1px solid var(--line-2); border-radius: var(--radius-card); background: #FFFFFF; box-shadow: var(--shadow-1); padding: 16px; }
@media (min-width: 768px) { .ms-card { padding: 20px 24px; } }
.ms-head { display: flex; align-items: center; gap: 0; margin: 0 0 8px; }
.ms-name { margin: 0; font-size: 19px; line-height: 26px; }
.ms-name a { color: var(--ink); text-decoration: none; }
.ms-name a:hover { text-decoration: underline; }
.ms-meta { margin: 0; font-size: 13px; color: var(--ink-2); }
.mtl { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; position: relative; }
.mtl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.mtl-item { position: relative; margin: 0; padding: 0 0 16px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; }
@media (min-width: 720px) { .mtl-item { grid-template-columns: 8.5em minmax(0, 1fr); } }
.mtl-item::before { content: ""; position: absolute; left: -18px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--point); box-shadow: 0 0 0 3px #FFFFFF; }
.mtl-3l::before { border-radius: 3px; background: var(--ink); }
.mtl-next::before { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--point), 0 0 0 3px #FFFFFF; }
.mtl-when { margin: 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.mtl-what { min-width: 0; }
.mtl-kind { margin: 0 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mtl-with { font-size: 13px; color: var(--ink-2); }
.mtl-text { margin: 0; }
.mtl-list { margin: 4px 0 0; padding-left: 1.2em; font-size: 14px; }
.mtl-list li { margin: 2px 0; }
.l3-line { margin: 4px 0; font-size: 15px; font-weight: 700; }
.l3-step { white-space: nowrap; }
.l3-line .tl-sym { font-size: 17px; }
.tl.tl-in { margin: 8px 0 0; }

/* 리서치 — 작성 당시 기준일 띠 · 관련 주소 칩 · 글의 틀 */
.asof-banner { margin: 12px 0 20px; padding: 12px 16px; border-radius: var(--radius-card); background: var(--point-bg); border: 1px solid #99F6E4; color: var(--ink); }
.asof-banner p { margin: 0 0 6px; font-size: 15px; }
.ref-chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-chips li { margin: 0; }
.ref-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF;
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.ref-chips a:hover { border-color: var(--ink-2); }
.skel-list { padding-left: 1.4em; }
.skel-list li { margin: 2px 0; font-weight: 700; }

/* 사진(Wikimedia Commons, 라이선스 확인분) — 설명·저자·라이선스·원본을 사진 아래에 */
.photo { margin: 8px 0 20px; max-width: 720px; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); background: var(--surface); }
.photo figcaption { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.photo-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; line-height: 20px; border-radius: 999px; padding: 0 8px; margin-right: 6px;
  color: #334155; background: #F1F5F9; }
.photo-tag-field { color: #0F766E; background: #F0FDFA; }
.cellpanel .photo { max-width: 480px; }

@media print {
  .pt-tools, .cmp-check, .dm-tip, .tv-adv { display: none !important; }
}

/* 회사 머리(모노그램 + 대표 사진) */
.co-title-row { display: flex; align-items: center; gap: 0; }
.co-title-row h1 { margin: 0; }
.co-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; align-items: start; }
@media (min-width: 900px) { .co-hero { grid-template-columns: minmax(0, 1fr) 360px; } }
.co-hero .photo { margin: 0 0 20px; }
.co-hero-text .quick { margin: -8px 0 16px; }
.opt .mono, .sr-row .mono { margin-right: 2px; }

.head-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.head-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.head-links a:hover { text-decoration: underline; }

/* 움직임을 줄이는 설정이면 끈다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .nav-dialog, .nav-backdrop { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .nav-layer, .result-bar, .facets, .cmp-tray, .tv-fold, .search-btn { display: none !important; }
}

/* v4 메인 다듬기: 표 안의 ‘비교에 담기’는 테두리 없는 작은 체크로(누르는 높이 44px는 유지) */
.cmp-check-sm { border-color: transparent; background: transparent; padding: 0 6px; font-weight: 600; color: var(--ink-2); }
.cmp-check-sm:has(input:checked) { border-color: var(--line); background: var(--surface); color: var(--ink); }
details.nb-src > summary.nb-src-h { cursor: pointer; list-style: revert; }

/* ═══ 5판 — 덜어내기(설명은 ⓘ 안으로, 테두리 대신 여백·옅은 바탕) ═══ */

/* ⓘ: 보이는 원은 22px, 누르는 자리는 44px. 펼친 설명은 데스크톱에서 말풍선, 휴대폰에서 아래 시트 */
.info { display: inline-block; position: relative; vertical-align: middle; margin-left: 2px; font-weight: 400; }
.info > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -11px -10px; cursor: pointer; border-radius: 50%; }
.info > summary::-webkit-details-marker { display: none; }
.info > summary > span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--grey); color: var(--grey); font-size: 12px; font-weight: 800; font-style: italic; font-family: Georgia, "Times New Roman", serif; line-height: 1; }
.info > summary:hover > span, .info[open] > summary > span { border-color: var(--point-strong); color: var(--point-strong); background: var(--point-bg); }
.info-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: -8px; width: 320px; max-width: calc(100vw - 24px); padding: 12px 14px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line-2); box-shadow: var(--shadow-2); color: var(--ink-2); font-size: 14px; line-height: 1.6; font-weight: 400; text-align: left; letter-spacing: 0; white-space: normal; }
.info-pop strong { color: var(--ink); }
@media (max-width: 639px) {
  .info-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-width: none; box-shadow: 0 12px 40px rgba(30, 41, 59, 0.18); }
}

/* 홈 */
.home-hero { max-width: 720px; margin: 0 auto; padding: 24px 0 8px; text-align: center; }
.home-hero .display { font-size: 34px; line-height: 42px; }
@media (min-width: 768px) { .home-hero .display { font-size: 44px; line-height: 54px; letter-spacing: -0.03em; } }
.home-hero .home-sub { margin: 0 0 24px; font-size: 15px; color: var(--grey); }
.home-hero .combo { text-align: left; }
.home-chips { justify-content: center; margin-top: 16px; }
.home-chips .qchip { background: var(--surface); border-color: transparent; font-size: 14px; min-height: 40px; padding: 0 14px; }
.home-chips .qchip:hover { background: var(--line-2); border-color: transparent; }
.sec-title { display: inline-flex; align-items: center; gap: 2px; }
.sec-title h2 { margin: 0; }
.home-sec .sec-head { margin-bottom: 12px; }
.home-sec { margin-top: 40px; }
@media (min-width: 768px) { .home-sec { margin-top: 56px; } }
.cchips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cchips li { margin: 0; }
.cchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.cchip:hover { background: var(--line-2); color: var(--ink); }
.cchip-n { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--grey); }
.rtiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .rtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rtiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rtiles li { margin: 0; }
.rtile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; min-height: 96px; padding: 16px; border-radius: var(--radius-card); background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background 0.15s ease-out; }
.rtile:hover { background: var(--surface); color: var(--ink); }
.rtile .sw { margin: 0; }
.rtile-name { font-size: 17px; line-height: 24px; font-weight: 800; letter-spacing: -0.02em; }
.rtile-n { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--grey); }
.minis { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .minis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.minis li { margin: 0; }
.mini, .bookcard { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px 12px 16px; border-radius: var(--radius-card); background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background 0.15s ease-out; }
.mini:hover, .bookcard:hover { background: var(--surface); color: var(--ink); }
.mini-text, .bookcard-text { display: flex; flex-direction: column; min-width: 0; }
.mini-name, .bookcard-title { font-size: 16px; line-height: 22px; font-weight: 800; letter-spacing: -0.01em; }
.mini-meta, .bookcard-line { font-size: 13px; line-height: 20px; color: var(--grey); }
.mini-go { margin-left: auto; padding-left: 8px; font-size: 22px; line-height: 1; color: var(--grey-2); }
.bookcard { padding: 16px; }
.bookcard-cover { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 60px; border-radius: 6px; background: var(--point-strong); color: #FFFFFF; font-size: 22px; font-weight: 800; }
.evlines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.evlines li { margin: 0; border-bottom: 1px solid var(--line-2); }
.evl { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 56px; padding: 10px 4px; color: var(--ink); text-decoration: none; }
.evl:hover { background: var(--surface-2); color: var(--ink); }
.evl-date { font-size: 14px; font-weight: 700; color: var(--grey); }
.evl-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.evl-who { font-size: 15px; font-weight: 800; }
.evl-text { font-size: 15px; color: var(--ink-2); }
.evl .mini-go { padding-left: 0; }

/* 패널·숫자 타일 — 테두리 상자 대신 위 선과 여백으로 나눈다 */
.panel { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: transparent; padding: 24px 0 8px; margin: 8px 0; }
.kpi { border: 0; box-shadow: none; background: var(--surface-2); border-radius: var(--radius); }
.kpis-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi-label { display: flex; align-items: center; gap: 2px; }
.nb-when { display: flex; align-items: center; gap: 2px; margin: 4px 0 12px; font-size: 13px; color: var(--grey); }
.nb-more { margin: 8px 0 4px; }
.nb-more > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--point-strong); }
.nb-more .kpis { margin-top: 4px; }
.facet-label { display: flex; align-items: center; gap: 2px; }

/* 기업 찾기 — 숫자가 있는 회사 줄 끝의 선택 칸 */
.co-list > li.has-check { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.co-list > li.has-check .co-row { padding-right: 28px; }
.co-list > li.has-check .co-go { right: 4px; }
.co-list > li.has-check .cmp-check { margin: 0 4px 0 0; }

/* ═══ 6판 — 마스터(InCore, /)와 로봇(/robot/) · 관계 탭 · 같은 일 비교 ═══ */

/* 머리글: 로봇 쪽에서는 브랜드 옆에 산업 꼬리표 */
.sect { display: inline-flex; align-items: center; min-height: 32px; margin-left: 10px; padding: 0 12px; border-radius: 999px; background: var(--point-bg); color: var(--point-strong); font-size: 14px; font-weight: 800; text-decoration: none; }
.sect:hover, .sect[aria-current="page"] { background: var(--point-strong); color: #FFFFFF; }
.home-hero .eyebrow a { color: inherit; }

/* 8판 W3 — 검색 아래 바로 시작 · 조건을 밝힌 이동 칩 · 회사 첫 한 문장 */
.home-start { margin-top: 24px; }
.home-start > h2 { margin: 0 0 12px; }
.home-launches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.home-launches > li { display: flex; min-width: 0; margin: 0; }
.home-launch { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 96px; padding: 12px; overflow-wrap: anywhere; }
.home-launch-title { font-size: 17px; line-height: 1.35; font-weight: 800; }
.home-launch-line { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.home-quick { align-items: flex-start; }
.home-quick .qchips-label { padding-top: 10px; }
.home-quick .qchip-list { flex: 1 1 260px; min-width: 0; }
.home-quick .qchip, .same-work .qchip { max-width: 100%; padding: 10px 14px; line-height: 1.5; overflow-wrap: anywhere; }
.home-quick li, .same-work li { max-width: 100%; }
.co-intro { margin: 12px 0; color: var(--ink); font-size: 17px; line-height: 1.65; }
.same-work { flex-wrap: nowrap; min-width: 0; max-width: 100%; margin: 12px 0; }
.same-work .qchips-label { flex: 0 0 auto; }
.same-work .qchip-list { flex: 1 1 0; flex-wrap: nowrap; min-width: 0; overflow-x: auto; padding: 4px; }
.same-work li { flex: 0 0 auto; max-width: none; }
.same-work .qchip { min-height: 44px; padding: 0 14px; white-space: nowrap; overflow-wrap: normal; font-size: 13px; }
@media (min-width: 960px) { .home-launches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 탭(관계·비교 그룹) — 자바스크립트가 없으면 패널이 모두 보인다 */
.tablist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin: 0 0 4px; -webkit-overflow-scrolling: touch; }
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.tablist [role="tab"]:hover { background: var(--line-2); color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.tabpanel + .tabpanel { margin-top: 16px; }
.tabs.js-on .tabpanel + .tabpanel { margin-top: 0; }
.tab-lead { margin: 4px 0 12px; font-size: 15px; color: var(--ink-2); }
.tab-more { margin: 8px 0 0; font-size: 14px; font-weight: 700; }

/* 관계 카드 — 사진(라이선스 확인분)은 무엇을 만드는지, 흐름은 돈·지분이 어디로 가는지 */
.relcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .relcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.relcard { margin: 0; display: flex; flex-direction: column; border-radius: var(--radius-card); background: var(--surface-2); overflow: hidden; }
.relcard .photo-card { margin: 0; }
.relcard .photo-card img { display: block; width: 100%; height: 180px; object-fit: cover; }
.relcard .photo-card figcaption { padding: 6px 14px 0; font-size: 12px; line-height: 1.5; color: var(--grey); }
.relcard .photo-card .photo-tag { display: none; }
.relcard-mono { display: flex; align-items: center; justify-content: center; height: 180px; background: var(--surface); }
.relcard-body { padding: 12px 16px 16px; }
.relcard-name { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.relcard-name a { font-size: 18px; font-weight: 800; color: var(--ink); text-decoration: none; }
.relcard-name a:hover { text-decoration: underline; }
.relcard-meta { font-size: 13px; color: var(--grey); }
.relcard-line { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.flow-node { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line-2); font-weight: 700; color: var(--ink); }
.flow-node-me { border-color: var(--point); color: var(--point-strong); }
.flow-arrow { display: inline-flex; flex-direction: column; align-items: center; color: var(--grey); font-weight: 700; line-height: 1.1; }
.flow-lab { font-size: 11px; font-weight: 600; color: var(--grey); white-space: nowrap; }
.rel-extra { color: var(--ink-2); }

/* 마스터 */
.master-hero { max-width: 760px; margin: 0 auto; padding: 32px 0 8px; text-align: center; }
.master-hero .eyebrow { margin: 0 0 8px; }
.master-hero .display { font-size: 32px; line-height: 42px; }
@media (min-width: 768px) { .master-hero .display { font-size: 44px; line-height: 56px; letter-spacing: -0.03em; } }
.master-hero .home-sub { margin: 0 auto 24px; max-width: 560px; font-size: 16px; color: var(--ink-2); }
.master-hero .combo { text-align: left; }
.inds { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .inds { grid-template-columns: 2fr 1fr; } }
.ind { margin: 0; border-radius: var(--radius-card); background: var(--surface-2); overflow: hidden; display: flex; flex-direction: column; }
.ind-live { display: grid; grid-template-columns: minmax(0, 1fr); }
/* 7판: 그림을 카드 위쪽 전체 폭으로(여러 로봇이 작아지지 않게) */
.ind .photo-ind { margin: 0; }
.ind .photo-ind img { display: block; width: 100%; height: 100%; min-height: 200px; max-height: 300px; object-fit: cover; }
.ind .photo-ind figcaption { padding: 6px 14px; font-size: 12px; color: var(--grey); }
.ind .photo-ind .photo-tag { display: none; }
.ind-body { padding: 20px; }
.ind-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--point-strong); }
.ind-name { margin: 0 0 8px; font-size: 24px; line-height: 32px; font-weight: 800; }
.ind-name a { color: var(--ink); text-decoration: none; }
.ind-line { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.ind-stats { margin: 0 0 16px; font-size: 13px; color: var(--grey); }
.ind-go { margin: 0; }
.ind-soon { background: transparent; border: 1px dashed var(--line); }
.ind-soon .ind-name { color: var(--grey); }
.ways { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ways li { margin: 0; padding: 16px; border-radius: var(--radius-card); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.ways strong { font-size: 16px; }
.ways span { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.evl-tag { display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--point-bg); color: var(--point-strong); font-size: 12px; font-weight: 800; }

/* ═══ 7판 — 국가 꼬리표 · 관계 셋째 탭 소제목 · 같은 사업 먼저(바꿔 보기) ═══ */
.cty { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }
.mb-name .cty { margin-left: 4px; }
.evl-main .cty { margin-left: 0; }
.fchip-sep { display: inline-flex; align-items: center; margin: 0 2px 0 6px; padding-left: 10px; border-left: 1px solid var(--line); font-size: 12px; color: var(--grey); }
.rel-sub { margin: 20px 0 8px; font-size: 17px; }
.rel-sub-line { font-weight: 600; font-size: 14px; color: var(--grey); }
.swap-row { margin: 8px 0 0; }
.ind .ind-art { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; background: #FFFFFF; padding: 12px 12px 0; }
.ind-fig { margin: 0; display: flex; flex-direction: column; background: #FFFFFF; }
.ind-cap { padding: 4px 14px 8px; font-size: 12px; color: var(--grey); }
/* 8판 W4: 최근 공시·발표와 회사 공식 자료 — 기존 메뉴·비교 스타일과 분리 */
.update-list { list-style: none; padding: 0; margin: 0; }
.update { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line-2); min-width: 0; overflow-wrap: anywhere; }
.update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }
.update-meta time { color: var(--grey); }
.update-company { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-weight: 800; }
.update-text { margin: 6px 0; }
.update-source { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.update-source .ext { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.update-note { margin-top: 12px; }
.official-links { list-style: none; padding: 0; margin: 8px 0; }
.official-links .ext { display: inline-block; min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }

/* 9판 S2 — 네 구역 입구·책 번호·몸의 지도. 색과 초점은 공통 변수를 따른다. */
.section-tabs { display: flex; gap: 4px; overflow-x: auto; min-width: 0; max-width: 100%; padding: 4px 2px 10px; margin: 0 0 16px; }
.section-tabs a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font-weight: 700; white-space: nowrap; }
.section-tabs a:hover { background: var(--surface-2); }
.section-tabs a[aria-current="page"] { color: var(--point-strong); background: var(--point-bg); box-shadow: inset 0 -2px var(--point); }
.date-band { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 8px 0 12px; padding: 10px 12px; border-left: 2px solid var(--point); background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 21px; }
main.home { padding-top: 16px; }
.home #home-zone-1 { max-width: 800px; margin: 0 auto; }
.home #home-zone-1 .home-hero { padding: 8px 0 12px; }
.home #home-zone-1 .display { font-size: 28px; line-height: 36px; }
.home #home-zone-1 .home-sub { font-size: 14px; line-height: 22px; margin: 0 0 12px; }
.home #home-zone-1 .combo-box { min-height: 52px; }
.archive-quick { padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-card); background: var(--surface-2); }
.archive-quick-head { margin-bottom: 8px; }
.archive-quick-head h2 { margin: 0; font-size: 18px; line-height: 26px; }
.archive-quick-head p { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.archive-quick-group + .archive-quick-group { margin-top: 8px; }
.archive-quick-group h3 { margin: 0 0 4px; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.archive-quick-group ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.archive-quick-group li { flex: 1 1 0; min-width: 0; margin: 0; }
.archive-quick .archive-number { width: 100%; min-height: 44px; min-width: 44px; gap: 4px; padding: 4px; font-size: 13px; white-space: nowrap; }
.archive-number .arch-sym { font-size: 18px; }
.first-starts, .home-tools, .body-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; margin: 12px 0 0; list-style: none; }
.first-starts > li, .home-tools > li, .body-cards > li { min-width: 0; margin: 0; }
.first-start { display: flex; flex-direction: column; height: 100%; padding: 16px; }
.first-start h3, .home-tool h3 { margin: 0 0 8px; font-size: 17px; line-height: 26px; }
.first-start p, .home-tool p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.home-first > h2 { margin-bottom: 4px; }
.home-first > p { margin: 0; }
.home-tool { padding: 16px; }
.home-tool h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.body-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.body-card { display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 12px; min-height: 44px; }
.body-card-copy { min-width: 0; }
.body-card-copy > .small, .body-does { display: block; }
.body-does { margin-top: 6px; font-size: 14px; line-height: 22px; color: var(--ink-2); }
.home-book-strip { border-top: 1px solid var(--line-2); margin: 32px 0 0; padding-top: 12px; font-size: 14px; }
.home-book-strip a { display: inline-flex; align-items: center; min-height: 44px; }
.next-filing { background: var(--surface-2); border-radius: var(--radius); padding: 12px; margin-top: 16px; }
.next-filing p { margin: 0; }
.archive-card-list { list-style: none; margin: 12px 0 24px; padding: 0; }
.archive-card-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.archive-card-list li > a { display: inline-flex; align-items: center; min-height: 44px; }
.archive-body-filter { margin: 12px 0; }
@media (min-width: 768px) {
  main.home { padding-top: 32px; }
  .home #home-zone-1 .display { font-size: 40px; line-height: 48px; }
  .archive-quick { padding: 16px 20px; }
  .archive-quick-head { display: flex; align-items: baseline; gap: 16px; }
  .archive-quick-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: center; }
  .first-starts, .home-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) { .body-cards { grid-template-columns: minmax(0, 1fr); } }
/* S3 — 책의 일곱 역과 B-2 웹 메모. 노선도 안에서만 가로로 넘긴다. */
.day-route { max-width: 100%; overflow-x: auto; padding: 12px 3px 20px; margin: 12px 0 28px; }
.day-route ol { display: grid; grid-template-columns: repeat(7, minmax(142px, 1fr)); min-width: 1010px; list-style: none; padding: 0; margin: 0; }
.day-route li { position: relative; padding: 0 8px; text-align: center; }
.day-route li::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; border-top: 3px solid var(--point); z-index: 0; }
.day-route li:first-child::before { left: 50%; }
.day-route li:last-child::before { right: 50%; }
.day-route a { display: flex; position: relative; flex-direction: column; align-items: center; gap: 7px; min-height: 132px; padding: 0 4px 10px; font-size: .9rem; line-height: 1.5; text-decoration: none; color: var(--ink); }
.route-dot { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--point); border-radius: 50%; background: #FFFFFF; color: var(--point-strong); font-weight: 700; font-size: 1.15rem; }
.day-route a[aria-current="page"] .route-dot { background: var(--point-strong); color: #FFFFFF; }
.route-day { font-weight: 700; color: var(--point-strong); }
.day-resources, .day-company-list { list-style: none; padding: 0; }
.day-company-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.day-company-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.day-resources a, .day-company-list a { white-space: normal; text-align: left; }
.day-tools, .day-neighbors, .memo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.day-neighbors { justify-content: space-between; }
.memo-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.memo-field label, .memo-question label { font-weight: 650; }
.memo-meta, .memo-log-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.memo-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0; }
[data-memo-form] input, [data-memo-form] textarea, [data-memo-form] select, #memo-copy-text { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); background: #FFFFFF; font: inherit; }
[data-memo-form] textarea, #memo-copy-text { resize: vertical; line-height: 1.6; }
.memo-question, .memo-log-row { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 18px 0; }
.memo-question h2 { font-size: 1.05rem; margin: 0 0 12px; }
.memo-question h2 label { display: block; }
.memo-log { margin-top: 36px; }
.memo-log-row h3 { margin-top: 0; }
.memo-log-grid .memo-field:nth-last-child(-n+2) { grid-column: 1 / -1; }
.memo-guidance { padding-left: 22px; }
.memo-guidance li { margin: 12px 0; }
.memo-copy-fallback { margin: 20px 0; }
.memo-print { display: none; }
.memo-print-page { width: 184mm; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.memo-print-page p { white-space: pre-wrap; margin: .5em 0; font-size: 1em; line-height: inherit; }
.memo-print-page .memo-print-title { font-size: 1.45em; font-weight: 700; margin: 0 0 .6em; }
.memo-print-block { border: 1px solid var(--line); border-radius: 6px; padding: .6em; margin: .7em 0; }
.memo-print-label { font-weight: 700; }
.memo-print.memo-measuring { display: block; position: fixed; left: -10000px; top: 0; visibility: hidden; }
@media (max-width: 640px) {
  .memo-meta, .memo-log-grid, .day-company-list { grid-template-columns: minmax(0, 1fr); }
  .memo-question, .memo-log-row { padding: 14px; }
  .memo-actions .btn { flex: 1 1 140px; }
}
@media print {
  @page memo { size: A4; margin: 12mm 13mm; }
  .memo-ready { page: memo; }
  .memo-ready .site-header, .memo-ready .site-footer, .memo-ready .section-tabs, .memo-ready .crumbs,
  .memo-ready .skip, .memo-ready .memo-screen { display: none !important; }
  .memo-ready main.wrap.doc { width: auto; max-width: none; padding: 0; margin: 0; }
  .memo-ready .memo-print { display: block; }
  .memo-print-page { break-after: page; page-break-after: always; }
  .memo-print-page:last-child { break-after: auto; page-break-after: auto; }
  .memo-print-block { break-inside: avoid; }
}
