/* Act 05 · light comes in packets: the glow scene and the photoelectric guess (chem1102-a05-*.js). Read-outs sit in
   the pinned scrub's stagehead. Type is never coloured: the glow's colour is a swatch beside its temperature. */
.a05-glow .a05-frame { position: absolute; z-index: 0; left: 0; right: 0; top: calc(var(--xp-bar) + 210px); height: 26svh; overflow: hidden; }
.a05-glow .a05-frame video, .a05-glow .a05-frame img.xp-film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a05-glow .xp-canvas { z-index: 1; }
.a05-read { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-top: 2px; pointer-events: none; }
.a05-read p, .a05-count p { margin: 0; display: grid; gap: 4px; align-content: start; }
.a05-read b, .a05-count b { font-size: clamp(1.1rem, 5vw, 2.2rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--bone); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.a05-read small { font-size: 12px; color: var(--mix-3); font-variant-numeric: tabular-nums; }
.a05-sw { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: #a33; box-shadow: 0 0 12px rgba(255, 160, 80, .5); }
@media (min-width: 900px) {
  .a05-glow .xs-stagehead, .a05-photo .xs-stagehead { right: auto; width: min(36vw, 30rem); }
  .a05-glow .a05-frame { left: 50%; right: var(--xp-g); top: calc(var(--xp-bar) + 4svh); height: 46svh; }
  .a05-read { display: flex; flex-direction: column; gap: 22px; margin-top: 3svh; }
  .a05-read b { font-size: clamp(2rem, 3.4vw, 3.25rem); }
}
html.xp-reduced .a05-glow .a05-frame, html:not(.xp-js) .a05-glow .a05-frame { position: relative; top: auto; left: auto; right: auto; height: 40svh; }
html.xp-reduced .a05-count, html:not(.xp-js) .a05-count { position: relative; top: auto; left: auto; right: auto; margin: 20px var(--xp-g) 0; }

/* staircase */
.a05-stairs .st-r { stroke: var(--xp-ha); stroke-width: 2.4; fill: none; }
.a05-stairs .st-v { stroke: var(--xp-hd); stroke-width: 2.4; fill: none; }
.a05-stairs .xa-box { max-width: 560px; }
.a05-stairs .xp-svgt { font-size: 12px; fill: var(--mix-3); }

/* black-body box, work-function bars */
.a05-box .xa-box, .a05-wf .xa-box { max-width: 520px; }
.a05-wf .xp-svgt { font-size: 12px; fill: var(--mix-3); }

/* photoelectric: counts under the plate (phone: placed by the module), the guess buttons in the first caption */
.a05-count { position: absolute; z-index: 3; left: var(--xp-g); right: var(--xp-g); top: calc(55svh + 44px); display: flex; gap: 28px; pointer-events: none; }
@media (min-width: 900px) { .a05-count { left: var(--xp-g); right: auto; top: calc(var(--xp-bar) + 30svh); flex-direction: column; gap: 22px; } .a05-count b { font-size: clamp(2rem, 3.4vw, 3.25rem); } }
.a05-count .xs-sw { margin-right: 6px; }
.a05-guess { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.a05-guess button { min-height: 44px; padding: 0 12px; border: 1px solid var(--mix-4); border-radius: 999px; background: transparent; color: var(--bone); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.a05-guess button:hover { border-color: var(--bone); }
.a05-guess button:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.a05-guess button[aria-pressed="true"] { background: var(--bone); color: var(--void); border-color: var(--bone); }
.a05-photo .a05-verdict { color: var(--bone); }
.a05-photo .a05-verdict:empty { display: none; }
.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); } }
.xs-stat > .xs-pair { grid-column: 1 / -1; }
@media (min-width: 900px) { .xs-line.a05-six { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 899px) and (max-height: 700px) { .a05-read small { display: none; } }
