/* edu-page-09-tier-tree.css — 온톨로지 생태계 계층 트리 (page-09 인라인) */
#p-tier-tree {
  --tt-bg: #f6f7fb;
  --tt-paper: #ffffff;
  --tt-ink: #161c2e;
  --tt-dim: #49526b;
  --tt-muted: #7b849c;
  --tt-line: #e2e7f0;
  --tt-line-soft: #eef1f7;
  --tt-rdf: #0e8a82;
  --tt-rdf-soft: rgba(14, 138, 130, 0.10);
  --tt-lpg: #4561d6;
  --tt-lpg-soft: rgba(69, 97, 214, 0.10);
  --tt-rdb: #586079;
  --tt-rdb-soft: rgba(88, 96, 121, 0.10);
  --tt-vec: #b46b00;
  --tt-vec-soft: rgba(180, 107, 0, 0.10);
  --tt-con: #2b3350;
  --tt-con-soft: rgba(43, 51, 80, 0.07);
  --tt-shadow: 0 1px 2px rgba(20, 30, 60, 0.06), 0 8px 22px rgba(20, 30, 60, 0.07);
  --tt-mono: "JetBrains Mono", "SF Mono", Consolas, Menlo, monospace;
  --tt-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

#p-tier-tree .tier-tree-card {
  padding: 10px;
  overflow: hidden;
  background: var(--tt-bg);
  margin-top: 24px;
}

#p-tier-tree .tier-tree-wrap {
  margin: 0 auto;
  font-family: var(--tt-sans);
  color: var(--tt-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  background-image: radial-gradient(circle at 1px 1px, rgba(22, 28, 46, 0.04) 1px, transparent 0);
  background-size: 22px 22px;
  padding: 28px 16px 32px;
}

#p-tier-tree .tier-tree-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#p-tier-tree header {
  margin-bottom: 20px;
}

#p-tier-tree .kicker {
  font-family: var(--tt-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-muted);
  margin-bottom: 9px;
}

#p-tier-tree h1 {
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
}

#p-tier-tree h1 .g {
  color: var(--tt-rdf);
}

#p-tier-tree .sub {
  margin-top: 11px;
  color: var(--tt-dim);
  font-size: 14.5px;
}

#p-tier-tree .sub b {
  color: var(--tt-ink);
  font-weight: 700;
}

#p-tier-tree .scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

#p-tier-tree .tree {
  position: relative;
  min-width: 1060px;
  display: grid;
  grid-template-columns: 138px repeat(4, minmax(0, 1fr));
  column-gap: 14px;
}

#p-tier-tree .links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

#p-tier-tree .links path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity 0.18s ease, stroke-width 0.18s ease;
}

#p-tier-tree .links path.rdf { stroke: var(--tt-rdf); }
#p-tier-tree .links path.lpg { stroke: var(--tt-lpg); }
#p-tier-tree .links path.rdb { stroke: var(--tt-rdb); }
#p-tier-tree .links path.vec { stroke: var(--tt-vec); }
#p-tier-tree .links path.con { stroke: var(--tt-con); }
#p-tier-tree .links path.dash { stroke-dasharray: 5 6; opacity: 0.72; }

#p-tier-tree .tree.focusing .links path { opacity: 0.12; }
#p-tier-tree .tree.focusing .links path.hot { opacity: 1; stroke-width: 3; }

#p-tier-tree .row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  column-gap: 14px;
  position: relative;
  z-index: 1;
  padding: 14px 0;
  align-items: start;
}

#p-tier-tree .row.bridge { align-items: center; }

#p-tier-tree .bridge-slot {
  display: flex;
  align-items: center;
  min-height: 52px;
}

#p-tier-tree .row.sub {
  padding-top: 0;
  margin-top: -6px;
}

#p-tier-tree .tno {
  font-family: var(--tt-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--tt-muted);
}

#p-tier-tree .tname {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.01em;
}

#p-tier-tree .tq {
  font-size: 11.5px;
  color: var(--tt-muted);
  margin-top: 3px;
}

#p-tier-tree .node {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--tt-paper);
  border: 1px solid var(--tt-line);
  box-shadow: var(--tt-shadow);
  cursor: help;
  justify-self: start;
  transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.18s ease;
  outline: none;
}

#p-tier-tree .node:hover,
#p-tier-tree .node:focus-visible {
  transform: translateY(-3px);
}

#p-tier-tree .node .nm {
  font-weight: 750;
  font-size: 14px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

#p-tier-tree .node .nm::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

#p-tier-tree .node .tg {
  font-family: var(--tt-mono);
  font-size: 10px;
  color: var(--tt-muted);
  letter-spacing: 0.02em;
}

#p-tier-tree .node.rdf .nm::before { background: var(--tt-rdf); }
#p-tier-tree .node.lpg .nm::before { background: var(--tt-lpg); }
#p-tier-tree .node.rdb .nm::before { background: var(--tt-rdb); }
#p-tier-tree .node.vec .nm::before { background: var(--tt-vec); }
#p-tier-tree .node.con .nm::before { background: var(--tt-con); }

#p-tier-tree .node.rdf:hover { border-color: var(--tt-rdf); }
#p-tier-tree .node.lpg:hover { border-color: var(--tt-lpg); }
#p-tier-tree .node.rdb:hover { border-color: var(--tt-rdb); }
#p-tier-tree .node.vec:hover { border-color: var(--tt-vec); }
#p-tier-tree .node.con:hover { border-color: var(--tt-con); }

#p-tier-tree .node.lead {
  padding: 12px 18px;
}

#p-tier-tree .node.lead .nm {
  font-size: 17px;
  font-weight: 800;
}

#p-tier-tree .tree.focusing .node { opacity: 0.32; }
#p-tier-tree .tree.focusing .node.hot { opacity: 1; }

#p-tier-tree .group {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid var(--tt-line);
  border-radius: 14px;
  max-width: 100%;
  background: var(--tt-paper);
  box-shadow: var(--tt-shadow);
  justify-self: start;
  position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease, opacity 0.18s ease;
  outline: none;
}

#p-tier-tree .group:hover { transform: translateY(-3px); }
#p-tier-tree .group.rdf:hover { border-color: var(--tt-rdf); }
#p-tier-tree .group.lpg:hover { border-color: var(--tt-lpg); }

#p-tier-tree .ghead {
  font-family: var(--tt-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--tt-muted);
  padding-left: 1px;
}

#p-tier-tree .grow {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

#p-tier-tree .mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--tt-bg);
  border: 1px solid var(--tt-line-soft);
  cursor: help;
}

#p-tier-tree .mini::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

#p-tier-tree .mini.rdf::before { background: var(--tt-rdf); }
#p-tier-tree .mini.lpg::before { background: var(--tt-lpg); }

#p-tier-tree .tree.focusing .group { opacity: 0.32; }
#p-tier-tree .tree.focusing .group.hot { opacity: 1; }

#p-tier-tree .flat {
  align-self: center;
  font-size: 12px;
  color: var(--tt-muted);
  padding: 4px 0;
}

#p-tier-tree .merge {
  margin-top: 6px;
  border-radius: 16px;
  border: 1px dashed var(--tt-line);
  background: linear-gradient(90deg, var(--tt-rdf-soft), var(--tt-lpg-soft));
  padding: 14px 16px;
}

#p-tier-tree .merge .mh {
  font-family: var(--tt-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--tt-muted);
  margin-bottom: 9px;
}

#p-tier-tree .merge .mrow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

#p-tier-tree #tier-tree-tip {
  position: fixed;
  z-index: 999;
  max-width: 330px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  background: #10162a;
  color: #eaf0ff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 38px rgba(8, 12, 28, 0.4);
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#p-tier-tree #tier-tree-tip.on {
  opacity: 1;
  transform: translateY(0);
}

#p-tier-tree #tier-tree-tip .tn {
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

#p-tier-tree #tier-tree-tip .bd {
  font-family: var(--tt-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  color: #fff;
}

#p-tier-tree #tier-tree-tip .bd.rdf { background: var(--tt-rdf); }
#p-tier-tree #tier-tree-tip .bd.lpg { background: var(--tt-lpg); }
#p-tier-tree #tier-tree-tip .bd.rdb { background: var(--tt-rdb); }
#p-tier-tree #tier-tree-tip .bd.vec { background: var(--tt-vec); }
#p-tier-tree #tier-tree-tip .bd.con { background: #4a536f; }

#p-tier-tree #tier-tree-tip .tx {
  color: #c5cee6;
}

#p-tier-tree #tier-tree-tip::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: #10162a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  left: var(--ax, 50%);
  margin-left: -4.5px;
}

#p-tier-tree #tier-tree-tip.below::after {
  top: -5px;
  transform: rotate(225deg);
}

#p-tier-tree #tier-tree-tip.above::after {
  bottom: -5px;
  transform: rotate(45deg);
}
