/* Act 04 · the doomed atom's read-outs and the spectrum's live numbers (filled by chem1102-a04-*.js). They sit in the
   pinned scrub's stagehead, under its headline. Type is never coloured: a swatch ties a number to the light. */
.a04-read { display: flex; gap: 18px; margin-top: 4px; pointer-events: none; }
.a04-read p, .a04-vals p { margin: 0; display: grid; gap: 4px; }
.a04-read b { font-size: clamp(1.15rem, 5.2vw, 2.2rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--bone); white-space: nowrap; }
.a04-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 2px; pointer-events: none; }
.a04-vals .big, .a04-vals .c { grid-column: 1 / -1; }
.a04-vals b { font-size: clamp(.95rem, 4.2vw, 1.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--bone); white-space: nowrap; }
.a04-vals .big b { font-size: clamp(1.8rem, 9vw, 4.4rem); line-height: 1; letter-spacing: -0.045em; }
.a04-vals .xp-k .g { font-style: normal; text-transform: none; letter-spacing: .02em; font-size: 13px; }
@media (min-width: 900px) {
  .a04-doom .xs-stagehead, .a04-spec .xs-stagehead { right: auto; width: min(34vw, 30rem); }
  .a04-read { flex-direction: column; gap: 22px; margin-top: 3svh; }
  .a04-read b { font-size: clamp(2rem, 3.4vw, 3.25rem); }
  .a04-vals { grid-template-columns: 1fr; gap: 14px; margin-top: 2svh; }
  .a04-vals .big b { font-size: clamp(2.6rem, 4.6vw, 4.8rem); }
}
@media (max-width: 899px) and (max-height: 700px) { .a04-vals { gap: 4px 14px; } .a04-vals .big b { font-size: 1.9rem; } }

/* hero: the spiral drawn as a still */
.a04-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the wave, annotated */
.a04-wave svg path { fill: none; }
.a04-wave .e { stroke: var(--xp-hb); stroke-width: 2.2; }
.a04-wave .b { stroke: var(--bone); stroke-opacity: .4; stroke-width: 1.4; }
.a04-wave .ax { stroke: var(--bone); stroke-opacity: .25; stroke-width: 1; }
.a04-wave .xa-box { max-width: 560px; }
.xs-pair .xs-eqsm { margin: 0; font-size: clamp(1.25rem, 4.4vw, 1.8rem); line-height: 1.3; color: var(--bone); }
.a04-kink .xa-box { max-width: 560px; }
.a04-hero { overflow: hidden; }
.xs-full:not([open]) > .xs-full-in { display: none; }
/* lite "side" figures inside sections: the picture gets the slot, not a 240 px column (desktop) */
@media (min-width: 900px) { .xs .fig.side { grid-template-columns: 1fr; } .xs .fig.side img { width: auto; max-width: 100%; max-height: 68svh; } }
/* sketches in a split keep a real size on desktop (the split's visual column shrinks to fit otherwise) */
@media (min-width: 900px) { .xs-split .xs-vis.xp-sketch .xa-box, .xs-split figure.xp-sketch .xa-box { width: min(560px, 40vw); } }
.a04-q { font-size: clamp(1.5rem, 2.8vw, 2.6rem); max-width: 28ch; }
