/* Head-on (#ex-gamma), critical impact parameter (#ex-crit); ultra.js. */
#ex-gamma, #ex-crit { --ur-in: #3A6EA5; --ur-out: var(--accent); --ur-c: #D9822B; --ur-m: #7A5BA6; }
:root[data-theme="dark"] #ex-gamma, :root[data-theme="dark"] #ex-crit { --ur-in: #8CA3D0; --ur-c: #E8A25E; --ur-m: #B49AD6; }

.ur-svg, .cr-svg { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }

/* left: the pictures (one per press) */
.ur-k { opacity: 0; transition: opacity 0.5s; }
#ex-gamma[data-s="0"] .ur-k0, #ex-gamma:not([data-s]) .ur-k0, #ex-gamma[data-s="1"] .ur-k1, #ex-gamma[data-s="2"] .ur-k2 { opacity: 1; pointer-events: auto; }
.ur-cap { position: absolute; left: 60px; top: 800px; width: 800px; text-align: center; font-size: 30px; opacity: 0; transition: opacity 0.5s;  pointer-events: none;}
.ur-ck { position: absolute; left: 60px; top: 850px; width: 800px; text-align: center; font-size: 20px; opacity: 0; transition: opacity 0.5s;  pointer-events: none;}
.ur-eq { position: absolute; opacity: 0; transition: opacity 0.5s; pointer-events: none; display: flex; flex-direction: column; }
.ur-eq1 { left: 490px; top: 530px; width: 380px; font-size: 28px; gap: 30px; }
.ur-eq2 { left: 60px; top: 615px; width: 800px; font-size: 28px; gap: 14px; align-items: center; }
.ur-tx.ur-sm { font-size: 22px; }
.ur-spec { fill: none; stroke: var(--ur-in); stroke-width: 3; }
.ur-wq { stroke: var(--ur-in); stroke-width: 1.5; stroke-dasharray: 3 5; }
.ur-cite { position: absolute; left: 900px; top: 905px; width: 940px; text-align: center; font-size: 20px; }
.ur-hole { fill: var(--ink); }
.ur-shock { stroke: var(--ur-in); stroke-linecap: round; fill: none; }
.ur-ax { stroke: var(--hair); stroke-width: 1.5; stroke-dasharray: 6 8; }
.ur-shell { fill: none; stroke: var(--ur-out); stroke-width: 3; }
.ur-curved { fill: color-mix(in srgb, var(--ur-out) 16%, transparent); stroke: none; }
.ur-lab { font: italic 30px ETbb, Georgia, serif; fill: var(--ink); text-anchor: middle; }
.ur-lab.ur-mut { fill: var(--muted); font-size: 26px; }
.ur-gam { font: 32px ETbb, Georgia, serif; fill: var(--ink); font-variant-numeric: lining-nums; }

/* the plot */
.ur-frame { fill: none; stroke: var(--ink); stroke-width: 2; }
.ur-grid { stroke: var(--hair); stroke-width: 1; }
.ur-tk { stroke: var(--ink); stroke-width: 1.5; }
.ur-tx { font: 26px ETbb, Georgia, serif; fill: var(--ink); font-variant-numeric: lining-nums; }
.ur-tx.ur-it { font-style: italic; }
.ur-tx.ur-mut { fill: var(--muted); }
.ur-tx.ur-acc { fill: var(--ur-out); }
.ur-tx.ur-in { fill: var(--ur-in); }
.ur-tx.ur-c { fill: var(--ur-c); }
.ur-tx.ur-m { fill: var(--ur-m); }
.ur-fit { fill: none; stroke: var(--ur-in); stroke-width: 4; }
.ur-fit.ur-ext { stroke-dasharray: 10 8; stroke-width: 3; }
.ur-band { fill: color-mix(in srgb, var(--ur-in) 15%, transparent); stroke: none; }
.ur-pen { stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 9 8; }
.ur-err { stroke: var(--ur-in); stroke-width: 3; fill: none; }
.ur-mk { fill: var(--ur-in); }
.ur-mk.ur-pt { fill: var(--ur-out); }
.ur-mk.ur-open { fill: none; stroke: var(--ur-out); stroke-width: 3; }
.ur-arr { stroke: var(--ur-out); stroke-width: 2.5; fill: none; }
.ur-g { opacity: 0; transition: opacity 0.6s; }
#ex-gamma.ur-on1 .ur-g1, #ex-gamma.ur-on2 .ur-g2 { opacity: 1; }

/* #ex-crit */
.cr-hole { fill: var(--ink); }
.cr-lr { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 7; }
.cr-path { fill: none; stroke: var(--ur-in); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.cr-p { fill: var(--ur-in); }
.cr-gw { fill: none; stroke: var(--ur-out); stroke-width: 2.5; }
.cr-q { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 5 6; }
.cr-qt { font: italic 30px ETbb, Georgia, serif; fill: var(--ink); text-anchor: middle; }
.cr-lab { font: italic 26px ETbb, Georgia, serif; fill: var(--muted); }
.cr-read { position: absolute; left: 600px; top: 230px; width: 300px; display: flex; flex-direction: column; gap: 10px; font-size: 28px; font-variant-numeric: lining-nums tabular-nums; }
.cr-n { color: var(--ur-in); }
.cr-law { position: absolute; left: 600px; top: 340px; width: 300px; font-size: 28px; }
.cr-law .cite { display: block; margin-top: 6px; font-size: 20px; white-space: nowrap; }
/* the multipole inset and its equations (perturbation theory around the light ring) */
.cr-eq { position: absolute; left: 490px; top: 640px; width: 440px; font-size: 26px; display: flex; flex-direction: column; gap: 22px; white-space: nowrap; }
.cr-eq .cite { font-size: 18px; margin-top: 4px; }
.cr-photon { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 8 6; }
.cr-mline { fill: none; stroke: var(--ur-in); stroke-width: 3.5; }
.cr-mfill { fill: color-mix(in srgb, var(--ur-in) 18%, transparent); stroke: none; }
.cr-c { position: absolute; left: 900px; width: 940px; text-align: center; font-size: 20px; opacity: 0; transition: opacity 0.6s; }
.cr-c1 { top: 880px; } .cr-c2 { top: 910px; } .cr-c3 { top: 944px; }
.cr-more { position: absolute; left: 60px; top: 930px; width: 800px; text-align: center; font-size: 28px; color: var(--accent); opacity: 0; transition: opacity 0.6s; }
.cr-g { opacity: 0; transition: opacity 0.6s; }
#ex-crit.cr-on1 .cr-g1, #ex-crit.cr-on1 .cr-c1, #ex-crit.cr-on2 .cr-g2, #ex-crit.cr-on2 .cr-c2, #ex-crit.cr-on3 .cr-more, #ex-crit.cr-on3 .cr-c3 { opacity: 1; }
.cr-zt { fill: var(--ur-c); } .cr-zm { fill: var(--ur-m); }
.cr-ze { stroke-width: 2.5; fill: none; }
.cr-ze.cr-zt { stroke: var(--ur-c); fill: none; } .cr-ze.cr-zm { stroke: var(--ur-m); fill: none; }
.cr-zl { fill: none; stroke-width: 3; }
.cr-zl.cr-zt { stroke: var(--ur-c); } .cr-zl.cr-zm { stroke: var(--ur-m); }
.cr-ke { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 3 8; stroke-linecap: round; }

/* ex-crit: Sperhake+ points (squares, open) next to Zhu+ (circles, filled) */
.cr-sq { fill: var(--bg); stroke: var(--ur-m); stroke-width: 3; }
.cr-key { fill: var(--muted); }
.cr-keysq { fill: none; stroke: var(--muted); stroke-width: 2.5; }
