/* HJ system-topology visuals
   Shared by Products and all generated HJ complete-system package pages. */
.hj-topology-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--hj-header-height, 72px) + 70px);
  background:
    radial-gradient(circle at 50% 12%, rgba(0, 212, 255, .095), transparent 38%),
    linear-gradient(180deg, rgba(7, 18, 32, .98), rgba(8, 13, 24, .98));
}
.hj-topology-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(36, 191, 231, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 191, 231, .11) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 86%);
}
.hj-topology-section > * { position: relative; z-index: 1; }
.hj-topology-heading { max-width: 860px; margin-bottom: 30px; }
.hj-topology-heading h2 {
  margin: 0;
  color: var(--hj-white, #fff);
  font: 700 clamp(1.8rem, 4vw, 3rem)/1.06 'Space Grotesk', sans-serif;
  letter-spacing: -.025em;
}
.hj-topology-heading > p {
  max-width: 76ch;
  margin: 14px 0 0;
  color: var(--hj-muted, #a9b5c8);
}
.hj-topology-figure { margin: 0; }
.hj-topology-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(65, 218, 255, .32);
  border-radius: clamp(16px, 3vw, 30px);
  background: #06101e;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42), 0 0 42px rgba(0, 212, 255, .08);
}
.hj-topology-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(143, 241, 255, .05), inset 0 -50px 90px rgba(0, 0, 0, .18);
}
.hj-topology-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: contain;
}
.hj-topology-center-copy {
  display: grid;
  gap: 5px;
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(65, 218, 255, .28);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .105), rgba(255, 255, 255, .025));
}
.hj-topology-center-copy span {
  color: var(--hj-cyan, #36ddff);
  font: 700 .68rem/1.2 'JetBrains Mono', monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hj-topology-center-copy strong {
  color: var(--hj-white, #fff);
  font: 700 1.08rem/1.25 'Space Grotesk', sans-serif;
}
.hj-topology-center-copy p { margin: 0; color: var(--hj-muted, #a9b5c8); font-size: .84rem; }
.hj-topology-legend {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--hj-line, rgba(255, 255, 255, .12));
  border-radius: 13px;
  background: rgba(255, 255, 255, .018);
}
.hj-topology-legend span {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: var(--hj-muted, #a9b5c8);
  font-size: .72rem;
}
.hj-topology-legend strong { color: var(--hj-white, #fff); font-size: .72rem; }
.hj-topology-legend-line {
  width: 24px;
  border-top: 2px solid var(--hj-cyan, #36ddff);
}
.hj-topology-legend-line--conditional { border-top-style: dashed; opacity: .72; }
.hj-topology-legend-core {
  width: 22px;
  height: 16px;
  border: 1px solid var(--hj-cyan, #36ddff);
  border-radius: 5px;
  background: rgba(0, 212, 255, .12);
}
.hj-topology-instruction {
  margin: 18px 0 0;
  color: var(--hj-white, #fff);
  font-size: .84rem;
  font-weight: 700;
}
.hj-topology-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.hj-topology-nodes li {
  min-width: 0;
  scroll-margin-top: calc(var(--hj-header-height, 72px) + 26px);
}
.hj-topology-nodes li > a,
.hj-topology-nodes li > div {
  min-height: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--hj-line, rgba(255, 255, 255, .12));
  border-radius: 13px;
  color: inherit;
  background: rgba(255, 255, 255, .024);
}
.hj-topology-nodes li[data-conditional="true"] > a,
.hj-topology-nodes li[data-conditional="true"] > div { border-style: dashed; }
.hj-topology-nodes li > a:hover {
  border-color: rgba(65, 218, 255, .55);
  background: rgba(0, 212, 255, .07);
  transform: translateY(-1px);
}
.hj-topology-nodes li > a:focus-visible {
  outline: 2px solid var(--hj-cyan, #36ddff);
  outline-offset: 3px;
}
.hj-topology-nodes li:target > a,
.hj-topology-nodes li:target > div {
  border-color: rgba(65, 218, 255, .9);
  background: rgba(0, 212, 255, .12);
  box-shadow: 0 0 0 3px rgba(65, 218, 255, .16), 0 14px 35px rgba(0, 0, 0, .32);
}
.hj-topology-nodes li:target .hj-topology-node-number {
  box-shadow: 0 0 0 4px rgba(65, 218, 255, .2);
}
.hj-topology-node-number {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #06111c;
  border-radius: 10px;
  background: var(--hj-cyan, #36ddff);
  font: 800 .7rem/1 'JetBrains Mono', monospace;
}
.hj-topology-nodes strong {
  display: block;
  color: var(--hj-white, #fff);
  font: 700 .92rem/1.25 'Space Grotesk', sans-serif;
}
.hj-topology-nodes small {
  display: block;
  margin-top: 5px;
  color: var(--hj-muted, #a9b5c8);
  font-size: .76rem;
  line-height: 1.45;
}
.hj-topology-node-action {
  display: block;
  margin-top: 9px;
  color: var(--hj-cyan, #36ddff);
  font: 700 .68rem/1.3 'JetBrains Mono', monospace;
}
.hj-topology-nodes em {
  width: max-content;
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  color: var(--hj-cyan, #36ddff);
  border: 1px dashed rgba(65, 218, 255, .42);
  border-radius: 999px;
  font: normal 700 .58rem/1 'JetBrains Mono', monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hj-topology-note {
  margin: 12px 0 0;
  padding: 15px 18px;
  color: var(--hj-muted, #a9b5c8);
  border-left: 2px solid var(--hj-cyan, #36ddff);
  background: rgba(0, 212, 255, .055);
  font-size: .82rem;
}
.hj-topology-note strong { color: var(--hj-white, #fff); }
.pc-card[id],
.pc-section[id] { scroll-margin-top: calc(var(--hj-header-height, 72px) + 72px); }
.pc-card:target {
  border-color: rgba(65, 218, 255, .72);
  box-shadow: 0 0 0 2px rgba(65, 218, 255, .14), 0 20px 55px rgba(0, 0, 0, .3);
}
.pc-section:target .pc-section-head {
  padding-left: 16px;
  border-left: 3px solid var(--hj-cyan, #36ddff);
}

@media (min-width: 760px) {
  .hj-topology-nodes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hj-topology-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hj-topology-center-copy {
    grid-template-columns: minmax(190px, .55fr) minmax(0, 1fr);
    align-items: center;
  }
  .hj-topology-center-copy span { grid-column: 1; }
  .hj-topology-center-copy strong { grid-column: 1; }
  .hj-topology-center-copy p { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 520px) {
  .hj-topology-heading { margin-bottom: 22px; }
  .hj-topology-visual { border-radius: 14px; }
  .hj-topology-visual img { aspect-ratio: auto; object-fit: contain; }
  .hj-topology-nodes { grid-template-columns: 1fr; }
  .hj-topology-nodes li > a,
  .hj-topology-nodes li > div { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .hj-topology-nodes li > a { transition: none; }
}
