/* The 3D film as a theatre (round 4, 2026-11-16). Loaded only by a page that places the film (src/body/markup.mjs
   adjustFigure links it), so no other page carries it. It follows src/v2.css's rules for the film and overrides them. */
.sec.film{padding:20px 0 8px;border-top:0}
.sec.film .wrap{max-width:1480px}
.adjust{margin:0}
.adj-head h2{margin:0 0 4px}
.adj-head p{margin:0 0 12px}

/* the theatre: a large stage on the left, the panel on the right, one screen high */
.adj-theatre{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:18px;align-items:start}
.adjust:not(.stepping) .adj-theatre{display:block}
.adj-screen{position:relative;min-width:0}
.adj-key{position:static;display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 8px;padding:0;background:none;font-size:14px;color:inherit;list-style:none}
.adj-stage{aspect-ratio:16/10;max-height:calc(100svh - 112px);width:100%;border-radius:16px}
.adj-stage .stage-label,.adj-stage .stage-labels .leader,.adj-stage .stage-labels .ldot{transition:opacity .45s ease}
.adj-stage .adj-pins .fade{opacity:0}

/* the caption along the stage's foot, readable over the picture (and full screen) */
.adj-cap{position:absolute;left:0;right:0;bottom:0;margin:0;padding:34px 22px 16px;border-radius:0 0 16px 16px;background:linear-gradient(to top,rgba(4,9,14,.92),rgba(4,9,14,.7) 55%,rgba(4,9,14,0));color:#F1F4F6;font-size:19px;line-height:1.38;text-align:center;pointer-events:none;transition:opacity .4s ease;z-index:4}
.adj-cap.out{opacity:0}
.adj-cap span{display:block;max-width:46em;margin:0 auto}

/* a part's title card */
.adj-card{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;z-index:5;pointer-events:none;font-family:var(--display);font-weight:800;font-size:clamp(26px,3.6vw,52px);letter-spacing:-.01em;color:#F1F4F6;background:radial-gradient(ellipse at center,rgba(4,9,14,.72),rgba(4,9,14,.15) 70%,rgba(4,9,14,0));text-shadow:0 2px 24px rgba(0,0,0,.6);opacity:0;transition:opacity .6s ease}
.adj-card.on{opacity:1}
.adj-card small{display:block;font-size:.36em;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--nerve);margin-bottom:10px;text-align:center}
.adj-card b{display:block;text-align:center}

/* the panel */
.adj-panel{display:flex;flex-direction:column;gap:12px;max-height:calc(100svh - 110px);overflow:auto;padding-right:4px}
.adjust:not(.stepping) .adj-panel{max-height:none;overflow:visible}
.adj-bar{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0}
.adj-bar[hidden]{display:none}
.adj-parts{display:flex;gap:4px}
.adj-pt{flex:1;min-height:44px;padding:4px 6px;border:0;border-bottom:3px solid rgba(127,127,127,.35);background:transparent;color:inherit;font-family:var(--display);font-size:13px;line-height:1.15;text-align:left;cursor:pointer;opacity:.7}
.adj-pt.p1{flex:2.4}
.adj-pt[aria-pressed="true"]{border-bottom-color:var(--nerve);opacity:1;font-weight:700}
.adj-bar .adj-scrub{width:100%;flex:none}
.adj-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.adj-ctl .adj-of{flex:1;text-align:center;font-family:var(--display);font-size:15px;min-width:5.5em}
.adj-ctl .adj-go{min-width:44px;padding:0 12px;color:inherit;background:transparent;border-color:rgba(127,127,127,.4)}
.adj-ctl .adj-mode:not([aria-pressed="true"]){background:transparent;color:inherit;border-color:rgba(127,127,127,.4)}
.adj-fs{min-height:44px;padding:0 14px;border-radius:12px;border:1px solid rgba(127,127,127,.4);background:transparent;color:inherit;font-family:var(--display);font-size:15px;cursor:pointer}
.adj-choices{margin:0}
.adj-ways{gap:6px}
.adj-way{min-height:40px;padding:0 13px;font-size:14px}
.adj-why p{font-size:16px;margin:8px 0 0}
.adj-held{margin:8px 0 0}
.adj-replay-row{margin:0;display:flex;flex-wrap:wrap;gap:8px}
.adj-replay-row .adj-replay{color:inherit;background:transparent;border-color:rgba(127,127,127,.4)}
.adjust.stepping .adj-step{margin:0}
.adjust.stepping .adj-step .adj-part{display:none}
.adjust.stepping .adj-step h3{margin:2px 0 6px;font-size:20px}
.adjust.stepping .adj-step .adj-text p{font-size:16px;line-height:1.45;margin:0 0 8px}
.adjust.stepping .adj-step .adj-kind{font-size:12px;margin:0 0 4px}

/* full screen: the stage fills the screen, the panel sits beside it */
.adj-theatre:fullscreen{background:#08111A;color:#EDF1F3;padding:14px;grid-template-columns:minmax(0,1fr) 340px;align-items:stretch}
.adj-theatre:fullscreen .adj-stage{aspect-ratio:auto;height:calc(100vh - 70px);max-height:none}
.adj-theatre:fullscreen .adj-panel{max-height:calc(100vh - 28px)}

/* on a phone, a portrait stage, the caption and the controls under it, the key a strip above */
@media (max-width:760px){
  .sec.film{padding-top:12px}
  .adj-theatre{display:flex;flex-direction:column;gap:10px;align-items:stretch}
  .adj-stage{aspect-ratio:4/5;max-height:calc(100svh - 190px);border-radius:14px}
  .adj-key{font-size:13px;gap:4px 12px;margin-bottom:6px}
  .adj-key .k-quiet{display:block;width:100%}
  .adj-cap{position:static;background:none;padding:8px 2px 0;font-size:16px;text-align:left;color:inherit}
  .adj-cap span{margin:0}
  .adj-panel{max-height:none;overflow:visible;padding:0}
  .adj-ways{flex-wrap:nowrap;overflow-x:auto}
  .adj-way{white-space:nowrap;flex:none}
  .adj-pt{font-size:12px}
  .adj-fs{display:none}
  .adjust.stepping .adj-step .adj-text p{font-size:15px}
}
/* the lens sits at the stage's top right, clear of the caption */
@media (min-width:761px){.adj-stage .adj-lens{top:14px;bottom:auto;width:min(30%,270px)}}

/* round 5: leaders thin, short and low in contrast, so no line reads as a scratch over the model */
.adj-stage .stage-labels .leader{background:rgba(237,241,243,.34);height:1px}
.adj-stage .stage-labels .ldot{opacity:.8}
/* round 6: the key shows what a signal looks like on the stage, a soft moving dot of light, never a line sample */
.adjust .adj-key i{width:10px;height:10px;border-radius:50%;margin-right:7px;vertical-align:-1px}
.adjust .adj-key .k-move i{background:radial-gradient(circle,#E6FBFF 0,#7FE3FF 45%,rgba(127,227,255,0) 75%)}
.adjust .adj-key .k-strain i{background:radial-gradient(circle,#FFE2CC 0,#FF7A3D 45%,rgba(255,122,61,0) 75%)}
/* names: a small dot on the structure, the name close beside it */
.adj-stage .stage-labels .leader{background:rgba(237,241,243,.28)}

/* round 6b: a name is shown whole or not at all (no fading in or out) */
.adj-stage .stage-label,.adj-stage .stage-labels .leader,.adj-stage .stage-labels .ldot{transition:none}

/* round 7: the cord lens, large, upper right; on a phone the lower part of the stage, its caption kept */
@media (min-width:761px){.adj-stage .adj-lens.cord{width:auto;height:46%;top:14px;bottom:auto}.adj-stage .adj-lens.cord svg{height:100%;width:auto;margin:0 auto}}
@media (max-width:760px){.adj-stage .adj-lens.cord{width:42%;right:6px;left:auto;bottom:8px;top:auto}.adj-stage .adj-lens.cord p{display:block;font-size:12px}}
