/* Entity X-ray — shared by the homepage hero and the section every other page
   mounts above its footer. Colours fall back to the site palette so the panel
   renders the same on pages whose own stylesheet defines fewer variables. */
.xray,.xr-sec{
  --xr-surface:var(--surface,#111826);--xr-panel:var(--panel,#06080c);--xr-void:var(--void,#000);
  --xr-line:var(--line,#36414f);--xr-line-b:var(--line-bright,#465365);
  --xr-text:var(--text,#f9fbfe);--xr-muted:var(--muted,#ccd6e2);--xr-dim:var(--muted-dim,#aab6c4);
  --xr-cyan:var(--cyan,#2dd4ff);
  --xr-mono:var(--mono,'JetBrains Mono',ui-monospace,monospace);
  --xr-body:var(--body,'Inter',system-ui,sans-serif);
  --xr-display:var(--display,'Space Grotesk',system-ui,sans-serif);
}
.xray{margin:0;background:linear-gradient(180deg,var(--xr-surface) 0%,var(--xr-panel) 100%);border:1px solid var(--xr-line);border-radius:16px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(45,212,255,.05);position:relative;color:var(--xr-text);font-family:var(--xr-body)}
.xray .console-bar{display:flex;align-items:center;gap:8px;padding:13px 16px;border-bottom:1px solid var(--xr-line);background:var(--xr-void)}
.xray .console-bar .d{width:11px;height:11px;border-radius:50%;flex:none}
.xray .console-bar .d.r{background:#ff5f57}.xray .console-bar .d.y{background:#febc2e}.xray .console-bar .d.g{background:#28c840}
.xray .console-bar .title{font-family:var(--xr-mono);font-size:12.5px;color:var(--xr-muted);margin-left:8px}
.xray .console-bar .badge{margin-left:auto;font-family:var(--xr-mono);font-size:12px;color:var(--xr-cyan);border:1px solid rgba(45,212,255,.3);padding:3px 9px;border-radius:5px;text-transform:none;letter-spacing:0}
.xr-stage{position:relative;background:radial-gradient(60% 55% at 50% 52%,rgba(160,107,255,.10),transparent 70%)}
.xr-graph{display:block;width:100%;height:auto;aspect-ratio:560/420;padding:14px 10px 6px;box-sizing:border-box;font-family:var(--xr-mono);overflow:visible}
.xr-graph .e{stroke-width:1;fill:none;transition:opacity .5s ease}
.xr-graph .e1{stroke:rgba(45,212,255,.55)}
.xr-graph .e2{stroke:rgba(204,214,226,.16)}
.xr-graph .eref{stroke:rgba(160,107,255,.55);stroke-dasharray:3 4}
.xr-graph .lf{cursor:pointer;transition:opacity .45s ease}
.xr-graph .lf .hit{fill:transparent}
.xr-graph .lf.on circle:first-child{r:6}
.xr-graph .en{cursor:pointer;transition:opacity .45s ease}
.xr-graph .en rect{fill:#0c121c;stroke:var(--xr-line-b);stroke-width:1}
.xr-graph .en text{font-size:10.5px;fill:var(--xr-text);font-family:var(--xr-body);font-weight:600}
.xr-graph .en text.ty{font-size:8.5px;fill:var(--xr-dim);font-family:var(--xr-mono);font-weight:400}
.xr-graph .en.core rect{fill:#0e1624;stroke:var(--xr-cyan);stroke-width:1.5}
.xr-graph .en.core text{font-size:12px}
.xr-graph .en:hover rect,.xr-graph .en:focus rect,.xr-graph .en.on rect{stroke:var(--xr-cyan);fill:#10203a}
.xr-graph g:focus{outline:none}
.xr-graph g:focus-visible circle:first-child,.xr-graph g:focus-visible rect{stroke:#fff;stroke-width:2}
.xr-graph .pre{opacity:0}
.xr-detail{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:2px;min-height:62px;font-size:12.5px;line-height:1.45;color:var(--xr-muted);border-top:1px solid var(--xr-line);padding:10px 18px 12px}
.xr-detail span:not(.xr-kind){flex-basis:100%}
.xr-detail strong{color:var(--xr-text);font-family:var(--xr-display);font-size:14px;font-weight:600}
.xr-detail .xr-kind{font-family:var(--xr-mono);font-size:10.5px;color:var(--xr-cyan)}
.xr-detail a{color:var(--xr-cyan);font-size:12px}
.xr-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px;font-size:11.5px;color:var(--xr-dim)}
.xr-legend i{font-style:normal;display:inline-flex;align-items:center;gap:6px}
.xr-legend i::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--c)}
.xr-stat{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--xr-line);border-bottom:1px solid var(--xr-line)}
.xr-stat div{padding:12px 14px;border-right:1px solid var(--xr-line);display:flex;flex-direction:column;gap:2px}
.xr-stat div:last-child{border-right:0}
.xr-stat b{font-family:var(--xr-display);font-size:24px;font-weight:700;color:var(--xr-text);line-height:1}
.xr-stat span{font-size:11.5px;color:var(--xr-muted)}
.xr-answer{padding:16px 20px 6px;font-family:var(--xr-mono);font-size:13px;line-height:1.75;min-height:118px}
.xray .c-meta{display:flex;justify-content:space-between;gap:14px;align-items:baseline;padding:10px 20px 16px;font-family:var(--xr-body);font-size:12px;color:var(--xr-dim)}
.xray .c-meta a{color:var(--xr-cyan);white-space:nowrap;font-family:var(--xr-mono);font-size:12.5px}

/* ---- the section mounted on every other page ---- */
.xr-sec{padding:72px 0 80px;border-top:1px solid var(--xr-line);color:var(--xr-text)}
.xr-sec .xr-in{max-width:1180px;margin:0 auto;padding:0 24px}
.xr-sec .xr-h{font-family:var(--xr-display);font-size:clamp(26px,3.4vw,38px);font-weight:700;line-height:1.12;letter-spacing:-.01em;margin:0 0 12px;color:var(--xr-text)}
.xr-sec .xr-lead{max-width:62ch;font-size:16.5px;line-height:1.65;color:var(--xr-muted);margin:0 0 30px}
.xray.wide{display:grid;grid-template-columns:1.35fr 1fr}
.xray.wide .console-bar{grid-column:1/-1}
.xray.wide .xr-stage{border-right:1px solid var(--xr-line)}
.xray.wide .xr-side{display:flex;flex-direction:column}
.xray.wide .xr-detail{border-top:0;flex:1;align-content:flex-start;padding:18px 20px}
.xray.wide .xr-stat{grid-template-columns:1fr 1fr;border-bottom:0}
.xray.wide .xr-stat div:nth-child(2){border-right:0}
.xray.wide .xr-stat div:nth-child(-n+2){border-bottom:1px solid var(--xr-line)}
.xray.wide .c-meta{border-top:1px solid var(--xr-line);padding-top:14px}
[dir="rtl"] .xray .console-bar .badge{margin-left:0;margin-right:auto}
[dir="rtl"] .xray.wide .xr-stage{border-right:0;border-left:1px solid var(--xr-line)}

@media(max-width:960px){
  .xr-stat{grid-template-columns:repeat(2,1fr)}
  .xr-stat div:nth-child(2){border-right:0}
  .xr-stat div:nth-child(-n+2){border-bottom:1px solid var(--xr-line)}
  .xray .c-meta{flex-direction:column;gap:6px}
  .xray.wide{display:block}
  .xray.wide .xr-stage{border-right:0}
  .xray.wide .xr-detail{border-top:1px solid var(--xr-line)}
  .xr-sec{padding:52px 0 60px}
}
@media(prefers-reduced-motion:reduce){.xr-graph .e,.xr-graph .lf,.xr-graph .en{transition:none}}
