/* Act 07 · Bohr's model: scene styles (the kit is assets/xp/xp.css). Type is never coloured: bone and mix greys only. */

/* hero: nested orbits, faint, behind the words */
.a07-herovis svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

/* the annotated orbits (postulates 1 and 2) */
.a07-nest { max-width: 340px; margin: 0 auto; }

/* the readout under the stage head: the sums for the current state (the module sets its top under the head) */
.xp-a07-ladder .a07-read { position: absolute; z-index: 3; left: var(--xp-g); right: var(--xp-g); top: calc(var(--xp-bar) + 120px); margin: 0; font-size: 13px; line-height: 18px; color: var(--mix-3); pointer-events: none; }
.xp-a07-ladder .a07-read p { margin: 0; }
.xp-a07-ladder .a07-read b { color: var(--bone); font-weight: 500; }
.xp-a07-ladder .a07-read .a07-n { font-size: clamp(1.25rem, 5.4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--bone); font-weight: 500; margin-bottom: 2px; }
@media (min-width: 900px) { .xp-a07-ladder .a07-read { right: auto; max-width: 30%; font-size: 16px; line-height: 24px; } }
html.xp-reduced .xp-a07-ladder .a07-read, html:not(.xp-js) .xp-a07-ladder .a07-read { position: relative; left: auto; right: auto; top: auto; margin: 16px var(--xp-g) 0; }

/* the derivation on paper (a pinned sketch in the back room) */
.a07-deriv .a07-eq { font-size: 17px; fill: var(--bone); font-weight: 500; letter-spacing: 0; }
.a07-deriv .a07-n { font-size: 13px; fill: var(--mix-4); letter-spacing: .1em; }
.a07-deriv .a07-sym { font-size: 17px; font-style: italic; fill: var(--bone); }
.a07-deriv .a07-dp { fill: var(--xp-plus); }
.a07-deriv .a07-de { fill: var(--xp-minus); }
.a07-deriv .ink.box { stroke-width: 1.2; stroke: var(--mix-3); }

/* the four constants: four cards, two by two on tablets */
@media (min-width: 720px) { .a07-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.a07-specs .xs-spec dl > div { grid-template-columns: 4rem 1fr; }
.a07-herovis { overflow: hidden; }

/* a lite "side" portrait inside a spread: one column, the photo at full height (the lite layout puts it in a 240px column) */
.xs-spread .fig.side { grid-template-columns: 1fr !important; }
@media (min-width: 900px) { .xs-spread .fig.side img { max-height: 72svh; width: auto; max-width: 100%; } }
/* the Nobel citation is long: set it a size down from the kit's quote */
.a07-cite { font-size: clamp(1.4rem, 5.2vw, 2.6rem) !important; max-width: 24ch; }
/* on the narrow paper column the two photos need the full width: stack the spread */
.a07-nobel { grid-template-columns: 1fr !important; }

/* reduced motion / no JS: the stage is in normal flow, so the head and the sketch stage join the flow too (head first) */
html.xp-reduced .xp-a07-ladder .xs-stagehead, html:not(.xp-js) .xp-a07-ladder .xs-stagehead,
html.xp-reduced .a07-deriv .xs-stagehead, html:not(.xp-js) .a07-deriv .xs-stagehead { position: relative; left: auto; right: auto; top: auto; order: -1; margin: calc(var(--xp-bar) + 14px) var(--xp-g) 12px; }
html.xp-reduced .a07-deriv .xp-sk-stage, html:not(.xp-js) .a07-deriv .xp-sk-stage { position: relative; left: auto; right: auto; top: auto; height: auto; margin: 0 max(16px, var(--xp-g)); }
