.work-ontology { scroll-margin-top: 24px; margin-top: 42px; }
.work-ontology .section-heading h3 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 780; line-height: 1.3; letter-spacing: -.045em; }
.ontology-overview { border-block: 1px solid var(--line); }
.ontology-overview > summary { min-height: 48px; padding: 12px 0; color: var(--ink-soft); font-size: .88rem; cursor: pointer; }
.ontology-overview .hero-visual { padding-block: 20px; }
.work-ontology [hidden] { display: none !important; }
.ontology-work-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.ontology-work-picker button {
  min-height: 44px; padding: 10px 20px; border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--ink); background: var(--white); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer;
}
.ontology-work-picker button[aria-pressed="true"] { color: #fff; background: #186d62; border-color: #186d62; }
.ontology-hint { margin: 14px 0 24px; color: var(--ink-soft); font-size: .85rem; }
.ontology-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 0 0 14px; list-style: none; font-size: .78rem; }
.work-ontology [data-kind="definition"] { --concept-color: #247c72; --concept-bg: #eaf4ef; }
.work-ontology [data-kind="runtime"] { --concept-color: #81623b; --concept-bg: #faf2e7; }
.work-ontology [data-kind="language"] { --concept-color: #6663a1; --concept-bg: #f1eff9; }
.ontology-legend li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--concept-color); }
.ontology-map {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 76px 22px;
  width: min(880px, 100%); padding: 16px 0; margin-inline: auto;
}
.ontology-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ontology-edges path.relation { fill: none; stroke: #8d9690; stroke-width: 1.5; }
.ontology-edges path.relation.is-active { stroke: #304f46; stroke-width: 2; }
.ontology-edges .edge-label { fill: var(--ink-soft); font: 12px "Pretendard", sans-serif; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.ontology-node {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  min-width: 0; min-height: 122px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--concept-bg); color: var(--ink); font: inherit; line-height: 1.45; cursor: pointer;
}
.ontology-node[aria-pressed="true"] { border-color: #186d62; box-shadow: 0 0 0 1px #186d62; }
.ontology-node small { color: var(--ink-soft); font-size: .72rem; }
.ontology-node small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--concept-color); }
.ontology-node strong { margin: 7px 0; font-size: 1rem; font-weight: 730; }
.ontology-node .concept-value { font-size: .8rem; }
.ontology-node[data-concept="identity"] { grid-column: 2 / 4; grid-row: 1; }
.ontology-node[data-concept="definition"] { grid-column: 4 / 6; grid-row: 1; }
.ontology-node[data-concept="correction"] { grid-column: 1 / 3; grid-row: 2; }
.ontology-node[data-concept="records"] { grid-column: 3 / 5; grid-row: 2; }
.ontology-node[data-concept="policy"] { grid-column: 5 / 7; grid-row: 2; }
.ontology-node[data-concept="manager"] { grid-column: 1 / 3; grid-row: 3; }
.ontology-node[data-concept="email"] { grid-column: 3 / 5; grid-row: 3; }
.ontology-node[data-concept="meeting"] { grid-column: 5 / 7; grid-row: 3; }
.ontology-node[data-concept="language"] { grid-column: 4 / 6; grid-row: 4; }
.ontology-detail { min-height: 58px; margin: 24px 0 0; padding: 15px 20px; border-left: 3px solid #247c72; background: #eaf4ef; font-size: .91rem; }
.ontology-scope { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink-soft); font-size: .86rem; }
.ontology-scope summary { min-height: 44px; padding: 8px 0; color: var(--ink); font-weight: 720; cursor: pointer; }
.ontology-scope p { max-width: 850px; }
.work-ontology button:focus-visible,
.ontology-scope summary:focus-visible { outline: 3px solid #247c72; outline-offset: 4px; }
@media (max-width: 720px) {
  .ontology-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px 12px; padding: 16px 18px; }
  .ontology-node { padding: 12px; min-height: 128px; }
  .ontology-node strong { font-size: .92rem; }
  .ontology-node[data-concept="identity"] { grid-column: 1; grid-row: 1; }
  .ontology-node[data-concept="definition"] { grid-column: 2; grid-row: 1; }
  .ontology-node[data-concept="correction"] { grid-column: 1; grid-row: 2; }
  .ontology-node[data-concept="policy"] { grid-column: 2; grid-row: 2; }
  .ontology-node[data-concept="records"] { grid-column: 1 / -1; grid-row: 3; width: 88%; justify-self: center; }
  .ontology-node[data-concept="manager"] { grid-column: 1 / -1; grid-row: 4; width: 84%; justify-self: end; }
  .ontology-node[data-concept="email"] { grid-column: 1 / -1; grid-row: 5; width: 84%; justify-self: end; }
  .ontology-node[data-concept="meeting"] { grid-column: 1 / -1; grid-row: 6; width: 84%; justify-self: end; }
  .ontology-node[data-concept="language"] { grid-column: 1 / -1; grid-row: 7; width: 88%; justify-self: center; }
  .ontology-work-picker button { padding-inline: 14px; font-size: .85rem; }
}
