/* Scattering open questions (scopen.js): the questions stay on the left, one
   expansion at a time on the right. Same pattern as mc-open (open.css). */

#sc-open { --so-in: #3A6EA5; --so-out: var(--accent); }
:root[data-theme="dark"] #sc-open { --so-in: #8CA3D0; }

/* the questions */
.so-list { position: absolute; left: 130px; top: 220px; width: 560px; margin: 0; padding: 0; list-style: none; counter-reset: so; }
.so-q { counter-increment: so; font-size: 38px; line-height: 1.2; margin-bottom: 44px; padding-left: 62px; position: relative;
        opacity: 0; transform: translateY(10px); transition: opacity 0.6s, transform 0.6s, color 0.6s; color: var(--muted); }
.so-q::before { content: counter(so, lower-roman) "."; position: absolute; left: 0; color: var(--accent); }
#sc-open .so-q1, #sc-open.so-q2on .so-q2, #sc-open.so-q3on .so-q3, #sc-open.so-q4on .so-q4, #sc-open.so-q5on .so-q5 { opacity: 1; transform: none; }
#sc-open.so-cur1 .so-q1, #sc-open.so-cur2 .so-q2, #sc-open.so-cur3 .so-q3, #sc-open.so-cur4 .so-q4, #sc-open.so-cur5 .so-q5 { color: var(--ink); }

/* the expansions */
.so-x { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.6s; }
#sc-open.so-x1on .so-x1, #sc-open.so-x2on .so-x2, #sc-open.so-x3on .so-x3, #sc-open.so-x4on .so-x4, #sc-open.so-x5on .so-x5 { opacity: 1; pointer-events: auto; }
.so-x svg { position: absolute; inset: 0; width: 1920px; height: 1080px; }
.so-cite { position: absolute; left: 780px; top: 930px; width: 1060px; font-size: 21px; }

.so-fig { position: absolute; left: 780px; top: 200px; width: 1060px; margin: 0; text-align: center; }
#sc-open .so-fig img { display: inline-block; height: 540px; width: auto; max-width: 100%; max-height: none; padding: 10px; object-fit: contain; }
.so-note { position: absolute; left: 780px; top: 790px; width: 1060px; text-align: center; font-size: 32px; }
.so-note.so-muted { top: 850px; font-size: 27px; color: var(--muted); }

.so-eq { position: absolute; left: 780px; width: 1060px; text-align: center; font-size: 36px; }
.so-pn { position: absolute; left: 780px; width: 1060px; text-align: center; font-size: 30px; color: var(--muted); }
.so-pn b { color: var(--accent); font-weight: 600; }
.so-eq3 { top: 760px; } .so-pn3 { top: 850px; }
.so-eq4 { top: 745px; font-size: 34px; } .so-pn4 { top: 815px; font-size: 30px; }
.so-pn5 { top: 760px; font-size: 30px; color: var(--ink); }
.so-k1 { top: 770px; font-size: 28px; color: var(--muted); }
.so-k2 { top: 830px; font-size: 30px; }
#sc-open .so-fig2 img { height: 520px; }
.so-lab { position: absolute; top: 680px; width: 420px; text-align: center; font-size: 28px; font-style: italic; color: var(--muted); }
.so-l3a { left: 900px; } .so-l3b { left: 1430px; }

/* iii: BH perturbation theory <-> EFT */
.so-box { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.so-boxlab { fill: var(--ink); font: 30px ETbb, Georgia, serif; text-anchor: middle; }
.so-boxsub { fill: var(--muted); font: italic 24px ETbb, Georgia, serif; text-anchor: middle; }
.so-arrow { stroke: var(--accent); stroke-width: 3; fill: none; }
.so-arrowhead { fill: var(--accent); }
.so-match { fill: var(--accent); font: italic 28px ETbb, Georgia, serif; text-anchor: middle; }

/* iv: the secular plot */
.so-frame { fill: none; stroke: var(--ink); stroke-width: 2; }
.so-axlab { fill: var(--ink); font: italic 28px ETbb, Georgia, serif; text-anchor: middle; }
.so-zero { stroke: var(--hair); stroke-width: 1.5; }
.so-lin { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 8 7; }
.so-pert { fill: none; stroke: var(--so-in); stroke-width: 3.5; }
.so-exact { fill: none; stroke: var(--so-out); stroke-width: 3.5; }
.so-env { fill: none; stroke: var(--so-in); stroke-width: 1.8; stroke-dasharray: 3 6; opacity: 0.8; }
.so-cursor { stroke: var(--muted); stroke-width: 1.5; }
.so-key text { font: 25px ETbb, Georgia, serif; fill: var(--ink); }

/* v: the sketch */
.so-hole { fill: var(--ink); }
.so-spin { fill: none; stroke: var(--muted); stroke-width: 2.5; }
.so-spinhead { fill: var(--muted); }
.so-wave { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.so-w1 { stroke: var(--so-in); } .so-w2 { stroke: var(--so-in); } .so-w3 { stroke: var(--so-out); }
.so-wlab { font: 28px ETbb, Georgia, serif; fill: var(--ink); }
.so-wlab.so-o { fill: var(--so-out); }

/* iii: worldtube and worldline */
.so-tube { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 2.5; }
.so-wl { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.so-vertex { fill: var(--accent); }
.so-taxis { stroke: var(--muted); stroke-width: 2; }
.so-tahead { fill: var(--muted); }

/* iv: packet and energy */
.so-lbar { stroke: var(--muted); stroke-width: 2; fill: none; }
.so-flat { font: italic 30px ETbb, Georgia, serif; fill: var(--so-out); }
.so-end { text-anchor: end; }

/* v: stability panels */
.so-plab { font: italic 26px ETbb, Georgia, serif; fill: var(--ink); }
.so-tag { font: 26px ETbb, Georgia, serif; fill: var(--muted); }
.so-tag.so-o { fill: var(--so-out); }
.so-qnm { fill: var(--so-out); }
.so-dash { stroke-dasharray: 9 8; }
.so-band { fill: color-mix(in srgb, var(--so-out) 22%, transparent); stroke: none; }

/* iv: the Penrose diagram */
.so-pd { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.so-pd.so-hz { stroke-width: 3.5; }
.so-pdlab { font: italic 28px ETbb, Georgia, serif; fill: var(--ink); text-anchor: middle; }
.so-pack { stroke: var(--so-in); stroke-width: 2.5; fill: none; }
.so-packedge { stroke: var(--so-in); stroke-width: 8; stroke-linecap: round; fill: none; }
.so-scat { stroke: var(--so-out); stroke-width: 2.5; fill: none; }
.so-status { font: 30px ETbb, Georgia, serif; text-anchor: start; }
.so-status.so-ok { fill: var(--ink); } .so-status.so-bad { fill: var(--so-out); }
.so-src { fill: none; stroke: var(--so-out); stroke-width: 2.5; stroke-dasharray: 7 6; }
