/* 기술 지도 — 밀도 높은 정보 화면. 색은 app.css · theme.css 토큰만(라이트 · 다크 함께). 갈래 색: --t-tech · --t-company · --t-researcher · --t-report · --t-paper · --t-policy */
.onto { max-width: 1680px; margin: 0 auto; padding: 18px 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.onto .card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.onto-wait { padding: 40px 0; }
.onto-h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.onto-h3 { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.onto-note { margin-bottom: 10px; }
.num { font-variant-numeric: tabular-nums; }

/* 칩 */
.onto .chip { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.onto .chip:hover { border-color: var(--accent); color: var(--accent); }
.onto .chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.onto .chip--s { min-height: 24px; padding: 0 9px; font-size: 12px; }
.btn-s--accent { border-color: var(--accent); color: var(--accent); }

/* ── 홈 ── */
.onto-hero { padding: 26px 28px 20px; display: grid; gap: 12px; background: radial-gradient(900px 260px at 0% 0%, var(--hero-glow), transparent 70%), var(--panel); }
.onto-eyebrow { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.onto-hero__t { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.onto-hero__d { color: var(--ink-2); max-width: 760px; }
.onto-q { display: flex; align-items: center; height: 44px; max-width: 760px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); overflow: hidden; }
.onto-q--big { height: 54px; border-width: 2px; border-color: var(--accent); }
.onto-q:focus-within { box-shadow: 0 0 0 3px var(--focus-ring); }
.onto-q__ic { width: 20px; height: 20px; color: var(--ink-3); margin: 0 8px 0 14px; flex: none; }
.onto-q__i { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.onto-q__i::placeholder { color: var(--ink-3); }
.onto-q__k { margin-right: 8px; flex: none; }
.onto-q__go { flex: none; height: 100%; border: 0; padding: 0 20px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; }
.onto-q__go:hover { background: var(--accent-2); }
.onto-ex { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.onto-ex__l { font-size: 12px; color: var(--ink-3); font-weight: 700; margin-right: 2px; }
.onto-stats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 4px; }
.onto-stat { display: flex; flex-direction: column-reverse; }
.onto-stat dt { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.onto-stat dd { margin: 0; font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.onto-src { max-width: 900px; }

.onto-res { padding: 16px 20px; display: grid; gap: 12px; }
.onto-res__g { display: grid; gap: 6px; }
.onto-res__h { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.onto-res__l { display: grid; gap: 4px; }
.onto-res__l > li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.onto-res__a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--ink); text-decoration: none; width: 100%; }
.onto-res__a:hover b { color: var(--accent); }
.onto-res__why { font-size: 11.5px; color: var(--accent); }
.onto-res__n { margin-left: auto; font-size: 12px; color: var(--ink-2); }
.onto-res__chips { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--ink-3); font-size: 12px; }
.onto-res__co { margin-left: auto; }

.onto-grid-card { padding: 16px 20px 20px; }
.onto-grid__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.onto-doms { display: flex; flex-wrap: wrap; gap: 6px; }
.onto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.onto-tc { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--ink); text-decoration: none; height: 100%; transition: border-color .12s, transform .12s; }
.onto-tc:hover { border-color: var(--accent); transform: translateY(-1px); }
.onto-tc:hover .onto-tc__n { color: var(--accent); }
.onto-tc--none { opacity: .72; }
.onto-tc__d { font-size: 11px; font-weight: 800; color: var(--ink-3); }
.onto-tc__n { font-size: 15px; font-weight: 800; line-height: 1.3; }
.onto-tc__en { font-size: 12px; color: var(--ink-3); }
.onto-tc__m { display: flex; gap: 10px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.onto-tc__m b { color: var(--blue); }

.onto-queue { padding: 14px 20px; }
.onto-queue__h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.onto-queue__l { display: grid; gap: 6px; }
.onto-qi { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.onto-qi__t { grid-column: 1; white-space: pre-wrap; }
.onto-qi > .btn-x { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* ── 상세 머리 ── */
.onto-top { padding: 4px 0; }
.onto-head { padding: 16px 22px 18px; display: grid; gap: 12px; }
.onto-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.onto-back { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.onto-back:hover { color: var(--accent); }
.onto-crumb { border: 0; background: none; padding: 0; color: var(--ink-2); font-weight: 700; cursor: pointer; }
.onto-crumb:hover { color: var(--accent); }
.onto-head__row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; }
.onto-head__t { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.onto-head__en { color: var(--ink-2); margin-top: 2px; }
.onto-head__cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.onto-ask-btn { background: var(--accent); border-color: var(--accent); }
.onto-ask-btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.onto-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.onto-kpi { display: grid; gap: 0; text-align: left; padding: 10px 14px; border: 0; border-right: 1px solid var(--line); background: var(--panel-2); color: var(--ink); cursor: pointer; }
.onto-kpi:last-child { border-right: 0; }
.onto-kpi:hover { background: var(--accent-soft); }
.onto-kpi__n { font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1.15; }
.onto-kpi__l { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.onto-def { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; display: grid; gap: 4px; }
.onto-def__q { margin: 0; font-size: 15px; line-height: 1.6; }
.onto-def__c { font-size: 12px; color: var(--ink-2); }
.onto-def--none { border-left-color: var(--line-2); background: var(--panel-2); }

/* 이름 강조 */
.omark { background: transparent; color: inherit; border-bottom: 1.5px solid var(--line-2); padding: 0 1px; }
.omark--on { background: var(--mark-bg); border-bottom-color: var(--accent); font-weight: 700; }

/* ── 그래프 ── */
.onto-gwrap { padding: 12px 16px 16px; }
.onto-gwrap__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.onto-gwrap__hint { margin-left: auto; }
.onto-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.onto-lg { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-3); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.onto-lg.is-on { color: var(--ink); }
.onto-lg__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.onto-lg--tech.is-on .onto-lg__dot { background: var(--t-tech); }
.onto-lg--company.is-on .onto-lg__dot { background: var(--t-company); }
.onto-lg--researcher.is-on .onto-lg__dot { background: var(--t-researcher); }
.onto-lg--report.is-on .onto-lg__dot { background: var(--t-report); }
.onto-lg--paper.is-on .onto-lg__dot { background: var(--t-paper); }
.onto-lg--policy.is-on .onto-lg__dot { background: var(--t-policy); }
.onto-gbody { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.onto-gstage { border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(520px 340px at 50% 50%, var(--hero-glow), transparent 75%), var(--bg-2); min-width: 0; }
.onto-svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.onto-e { fill: none; stroke: var(--edge); }
.onto-e--dev { stroke: var(--t-company); stroke-opacity: .55; }
.onto-e--policy_tech { stroke: var(--t-policy); stroke-opacity: .6; }
.onto-e--aux { stroke-dasharray: 3 4; stroke-opacity: .55; }
.onto-e--paper_tech, .onto-e--paper_company { stroke: var(--t-paper); stroke-opacity: .5; }
.onto-e.is-sel { stroke: var(--accent); stroke-opacity: 1; }
.onto-n { cursor: pointer; outline: none; }
.onto-n circle { stroke: var(--panel); stroke-width: 2.5; transition: r .12s; }
.onto-n--tech circle { fill: var(--t-tech); }
.onto-n--company circle { fill: var(--t-company); }
.onto-n--researcher circle { fill: var(--t-researcher); }
.onto-n--report circle { fill: var(--t-report); }
.onto-n--paper circle { fill: var(--t-paper); }
.onto-n--policy circle { fill: var(--t-policy); }
.onto-n--center circle { fill: var(--t-tech); stroke: var(--accent-soft); stroke-width: 8; }
.onto-svg--sm .onto-n__l { font-size: 15px; }
.onto-svg--sm .onto-n__c { font-size: 16px; }
.onto-n__l { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--sans); paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.onto-n--center .onto-n__l { font-size: 12.5px; fill: var(--ink-2); }
.onto-n__c { fill: #fff; font-size: 14px; font-weight: 900; font-family: var(--sans); pointer-events: none; }
.onto-n:hover circle, .onto-n:focus-visible circle { stroke: var(--accent); }
.onto-n:focus-visible .onto-n__l { text-decoration: underline; }
.onto-n.is-sel circle { stroke: var(--accent); stroke-width: 4; }
.onto-n.is-sel .onto-n__l { font-weight: 800; fill: var(--accent); }

.onto-ev { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 12px 14px; max-height: 72vh; overflow-y: auto; display: grid; gap: 12px; align-content: start; min-width: 0; }
.onto-ev__intro { display: grid; gap: 8px; }
.onto-ev__t { font-weight: 800; font-size: 15px; }
.onto-ev__rules { padding-left: 16px; list-style: disc; color: var(--ink-2); display: grid; gap: 2px; }
.onto-ev__h { position: relative; display: grid; gap: 2px; padding-right: 30px; }
.onto-ev__x { position: absolute; right: 0; top: 0; }
.onto-ev__a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.onto-ev__b { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.onto-ev__rel { font-size: 13px; }
.onto-badge { justify-self: start; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--ink-3); }
.onto-badge--tech { background: var(--t-tech); }
.onto-badge--company { background: var(--t-company); }
.onto-badge--researcher { background: var(--t-researcher); }
.onto-badge--report { background: var(--t-report); }
.onto-badge--paper { background: var(--t-paper); }
.onto-badge--policy { background: var(--t-policy); }

.onto-evl { display: grid; gap: 8px; }
.onto-evl--tight { gap: 6px; }
.onto-evi { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.onto-evi__q { quotes: "“" "”"; line-height: 1.55; }
.onto-evi__src { color: var(--ink-3); }
.onto-kind { justify-self: start; font-size: 10.5px; font-weight: 800; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--panel); }
.onto-kind--claim { color: var(--k-claim); border-color: var(--k-claim); }
.onto-kind--evidence { color: var(--k-evidence); border-color: var(--k-evidence); }
.onto-kind--policy { color: var(--t-policy); border-color: var(--t-policy); }
.onto-kind--paper { color: var(--t-paper); border-color: var(--t-paper); }

/* ── 탭 ── */
.onto-tabcard { padding: 0 0 6px; }
.onto-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.onto-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-2); font-weight: 800; cursor: pointer; white-space: nowrap; }
.onto-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.onto-tab__n { font-size: 11.5px; padding: 0 6px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); }
.onto-tabpanel { padding: 14px 16px; min-width: 0; }
.onto-empty-tab { padding: 10px 0; }
.onto-tbl-wrap { overflow-x: auto; }
.onto-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.onto-tbl th { text-align: left; font-size: 12px; font-weight: 800; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
.onto-tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.onto-tbl td:first-child { min-width: 140px; }
.onto-tbl td:last-child { min-width: 320px; }
.onto-rel { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink-2); }
.onto-rel--develops { border-color: var(--t-company); color: var(--t-company); }
.onto-people { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); gap: 18px; }
.onto-rlist, .onto-replist, .onto-relist, .onto-pl, .onto-plist, .onto-claims { display: grid; gap: 8px; }
.onto-rc { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.onto-rc__av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--t-researcher); color: #fff; font-weight: 800; }
.onto-rc__b { display: grid; gap: 1px; min-width: 0; }
.onto-rc__a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.onto-rep { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.onto-rep__h { font-weight: 700; }
.onto-claims { list-style: decimal; padding-left: 20px; }
.onto-claim { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.onto-claim__c { display: grid; gap: 4px; padding: 10px 12px; border-left: 3px solid var(--k-claim); background: var(--panel-2); border-radius: 0 6px 6px 0; }
.onto-claim__e { padding-left: 18px; border-left: 2px dashed var(--line-2); margin-left: 6px; }
.onto-pi { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); justify-items: start; }
.onto-pi__t { border: 0; background: none; padding: 0; color: var(--sky); font-weight: 700; text-align: left; cursor: pointer; }
.onto-pi__t:hover { text-decoration: underline; }
.onto-pi__q { color: var(--ink-2); font-size: 13px; }
.onto-pol__dom { margin-top: 14px; }
.onto-pol__dom > summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.onto-ri { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.onto-ri__t { font-weight: 800; }
.onto-pp { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.onto-pp__t { font-weight: 700; }
.onto-pp__why { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-2); }
.onto-pp__co { display: inline-flex; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--t-company); color: var(--t-company); font-size: 11.5px; }

.onto-state { padding: 28px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.onto-state__t { font-size: 16px; font-weight: 800; }
.onto-state__a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.onto-state--error { border: 1px solid var(--red); border-radius: 8px; background: var(--panel); }

/* ── 질문 대화상자 ── */
.onto-ask-ov { position: fixed; inset: 0; z-index: 90; background: rgba(9, 14, 24, .55); display: grid; place-items: center; padding: 16px; }
.onto-ask { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.onto-ask__hd { display: flex; justify-content: space-between; align-items: center; }
.onto-ask__lead { color: var(--ink-2); }
.onto-ask .cf { display: grid; gap: 4px; }
.onto-ask .cf__l { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.onto-ask .cf__s, .onto-ask__ta { width: 100%; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); padding: 8px 10px; }
.onto-ask .cf__s { height: 40px; padding: 0 8px; }
.onto-ask__ta { resize: vertical; min-height: 110px; line-height: 1.5; }
.onto-ask__note { padding: 8px 10px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.onto-ask__msg:empty { display: none; }
.onto-ask__msg { color: var(--accent); font-weight: 700; }
.onto-ask__ft { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

@media (max-width: 1099.98px) {
  .onto { padding: 12px 12px 40px; gap: 12px; }
  .onto-hero { padding: 18px 16px 16px; }
  .onto-gbody { grid-template-columns: 1fr; }
  .onto-ev { max-height: none; }
  .onto-people { grid-template-columns: 1fr; }
  .onto-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onto-kpi { border-bottom: 1px solid var(--line); }
  .onto-gwrap__hint { margin-left: 0; width: 100%; }
  .onto-tbl td:last-child { min-width: 240px; }
}
@media (max-width: 720px) {
  .onto-tbl thead { display: none; }
  .onto-tbl, .onto-tbl tbody, .onto-tbl tr, .onto-tbl td { display: block; width: 100%; }
  .onto-tbl tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .onto-tbl td { border: 0; padding: 3px 0; min-width: 0 !important; }
  .onto-tbl td.num::before { content: "근거 "; color: var(--ink-3); font-size: 12px; }
}
@media (max-width: 560px) {
  .onto-q__k { display: none; }
  .onto-q--big { height: 48px; }
  .onto-q__go { padding: 0 14px; }
  .onto-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onto-kpi__n { font-size: 19px; }
  .onto-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .onto-tc { padding: 10px; }
  .onto-tc__m { flex-wrap: wrap; gap: 2px 8px; }
  .onto-head__cta { width: 100%; }
  .onto-head__cta .btn { flex: 1 1 100%; }
  .onto-stats { gap: 6px 16px; }
  .onto-stat dd { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .onto-tc, .onto-n circle { transition: none; }
}
