/* Controls keep their CSS-pixel size as the constellation camera zooms. */
#constellation { scroll-margin-top: 85px; }
#constellation label { display: block; margin: 16px 0 6px; }
#graph-search { width: 100%; padding: 10px 12px; color: var(--text); background: var(--bg);
  border: 1px solid var(--bg-elevated); border-radius: 8px; font: inherit; }
.graph-tools, #graph-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
#constellation button, #constellation a { min-height: 44px; min-width: 44px; }
#constellation button { font: inherit; color: var(--text); background: var(--bg); border: 1px solid #435377;
  border-radius: 8px; padding: 8px 12px; cursor: pointer; }
#constellation button:hover, #constellation button:focus-visible { border-color: #f4c86a; outline: 2px solid #f4c86a; }
#constellation h2 { flex-wrap: wrap; }
#constellation h2 a { display: inline-flex; align-items: center; }
.constellation-panes { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.constellation-panes > * { min-width: 0; }
#graph-viewport { position: relative; overflow: hidden; border: 1px solid #435377; border-radius: 12px;
  background: radial-gradient(ellipse at 35% 20%, #202d4d, #10182c 80%); touch-action: none; }
#graph { display: block; width: 100%; height: 460px; background: none; border: 0; }
#graph-targets { position: absolute; inset: 0; pointer-events: none; }
#graph-targets button { position: absolute; pointer-events: auto; }
#graph-targets .node-target { width: 44px; height: 44px; padding: 0; border: 1px solid transparent;
  background: transparent; border-radius: 50%; }
#graph-targets .node-target:hover, #graph-targets .node-target:focus-visible { border-color: var(--node-color); }
#graph-targets .cluster-target { white-space: nowrap; font-size: 12px; border: 0; background: #111b30e8; }
.graph-hint { font-size: 12px; margin-top: 8px; }
#graph-legend { font-size: 12px; gap: 8px 16px; }
#node-card { padding: 16px; background: #10182c; border-radius: 12px; overflow-wrap: anywhere; }
#node-card h3 { font-size: 20px; line-height: 1.3; margin: 6px 0 12px; }
#node-card p, #node-card blockquote { font-size: 14px; margin-bottom: 12px; }
#node-card .eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: 11px; color: #ac9bff; }
#node-card blockquote { padding-left: 12px; border-left: 2px solid #f4c86a; color: #bbc8dd; }
#node-card a { display: inline-flex; align-items: center; }
.node-links, #graph-results { display: grid; gap: 6px; }
.node-links { margin: 12px 0; }
.node-links button, #graph-results button { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 750px) {
  .wrap { padding: 16px 12px 40px; }
  .body { padding: 12px; }
  .constellation-panes { grid-template-columns: minmax(0, 1fr); }
  #graph { height: 360px; }
  section > h2 { flex-wrap: wrap; }
  #detail-title, #detail-iri { overflow-wrap: anywhere; }
  dl#provenance, dl#export-manifest, #pr-preview dl { grid-template-columns: 1fr; }
  .split > * { min-width: 0; }
  #facts { overflow: auto; }
  button, input, select { min-height: 44px; }
  input, textarea { font-size: 16px !important; }
}
