/* The Graphs force graph (graph.js) and its hover card. Shared by /graphs (inline in the page) and /playground (full screen, which overrides the layout). */
.pg { margin-top: 1.5rem; }
.pg-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.pg-lens { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pg-lens button { padding: 0.5rem 0.9rem; background: transparent; color: var(--muted); border: 0; font: 500 0.9rem var(--font); cursor: pointer; }
.pg-lens button.on { background: var(--surface); color: var(--text); }
.pg-search { flex: 1; min-width: 12rem; max-width: 22rem; padding: 0.5rem 0.8rem; background: #0c0e15; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: 500 0.95rem var(--font); }
.pg-status { color: var(--muted); font: 400 0.8rem var(--font-mono); }
.pg-blurb { margin-top: 0.75rem; max-width: 46rem; }
.pg-canvas { margin-top: 0.75rem; height: clamp(420px, 70vh, 720px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #0c0e15; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.pg-chip { padding: 0.2rem 0.65rem; background: rgba(18,20,29,.88); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font: 400 0.78rem var(--font-mono); cursor: pointer; }
.pg-chip.on { color: var(--text); border-color: var(--c); }
.pg-reset { color: var(--text); border-color: var(--muted); padding: 0.2rem 0.6rem; visibility: hidden; }
.pg-panel { margin-top: 1rem; min-height: 6rem; }
.pg-panel h3 { font-size: 1.25rem; } .pg-panel p { margin-top: 0.35rem; } .pg-panel .btn { margin-top: 0.75rem; }
.pg-names { font-size: 0.9rem; line-height: 1.6; } .pg-hint { color: var(--muted); }
/* hover card: drawn from the entity's JSON twin (graph.js); stays open while the cursor is on it so its links work */
.hc-tip { position: fixed; display: none; z-index: 50; width: 400px; }
.hc { width: 400px; background: #1a1a2e; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; line-height: 1.3; box-shadow: 0 12px 40px rgba(0,0,0,.55); color: #e0e0e6; }
.hc-handle { text-align: center; padding: 7px 16px 6px; color: #8a8a94; font: 11px var(--font-mono); letter-spacing: .04em; }
.hc-band { padding: 10px 16px; } .hc-title { color: #fff; font: 600 18px/1.2 var(--font); margin: 0; letter-spacing: 0; text-transform: none; }
.hc-people { background: rgba(138,197,91,.35); } .hc-media { background: rgba(103,162,214,.35); } .hc-orgs { background: rgba(186,122,200,.35); }
.hc-brands { background: rgba(230,144,80,.35); } .hc-other { background: rgba(140,140,140,.30); }
.hc-tax { padding: 9px 16px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hc-sub { color: #d4d4dc; font-size: 13px; font-weight: 500; } .hc-cat { color: #7e7e88; font-size: 12px; text-align: right; }
.hc-body { padding: 0 16px 10px; }
.hc-sec { border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; } .hc-sec + .hc-sec { margin-top: 9px; }
.hc-sh { color: #8a8a94; font: 11px var(--font-mono); letter-spacing: .02em; text-align: center; margin-bottom: 5px; text-transform: lowercase; }
.hc-line { font-size: 13px; font-weight: 500; line-height: 1.5; color: #e8e8ee; text-align: center; }
.hc-line a { color: #e8e8ee; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); } .hc-line a:hover { color: var(--orange); border-color: var(--orange); }
.hc-line .hc-dot { color: #6f7080; margin: 0 5px; } .hc-line.hc-mono { font: 400 12px var(--font-mono); }
.hc-demo { display: grid; grid-template-columns: 56px 1fr auto; gap: 5px 11px; font-size: 13px; align-items: center; }
.hc-spark { width: 56px; height: 12px; position: relative; } .hc-spark::before { content: ''; position: absolute; top: -3px; bottom: -3px; left: 50%; width: 1px; background: rgba(255,255,255,.22); }
.hc-bar { position: absolute; top: 50%; transform: translateY(-50%); height: 3px; border-radius: 1px; } .hc-bar.over { left: 50%; background: #e8e8ee; } .hc-bar.under { right: 50%; background: #8a8a94; }
.hc-n { color: #B4976A; font: 500 11px var(--font-mono); text-align: right; white-space: nowrap; } .hc-n small { color: #6f7080; font-size: 11px; }
.hc-nm { color: #e8e8ee; font-weight: 500; }
.hc-acts { border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; margin-top: 9px; display: flex; justify-content: center; gap: 18px; font: 11px var(--font-mono); }
.hc-acts b { color: #b4b4bc; font-weight: 400; margin-right: 5px; } .hc-acts span { color: #7e7e88; }
.hc-none { color: #8a8a94; font-size: 12px; text-align: center; padding: 2px 0 4px; }
/* persona card: the same card with a light band (the ring colour), the persona picture and its summary; drawn from /personas/{CODE}.json */
.hc-persona { background: rgba(169,169,180,.18); display: flex; align-items: center; gap: 12px; }
.hc-persona img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,.2); flex: none; }
.hc-pcode { color: rgba(255,255,255,.7); font: 500 11px var(--font-mono); letter-spacing: .04em; margin-bottom: 2px; }
.hc-persona .hc-title { line-height: 1.15; }
.hc-line.hc-txt { text-align: left; font-weight: 400; line-height: 1.45; color: #d4d4dc; }
