/* Picture animations (scripts/actsite-animations/README.md): the player's buttons, the box that holds the picture and
   its scene, the playhead, and the scenes' own elements. Loaded only on pages with an animated picture. */
.svgbox, .as-anim-ctrls { --navy:#1B2540; --blue:#2A4FD0; --blue-soft:#EEF1FC; --blue-light:#8FA8FF; --rule:#E3E6EE; --text:#1d2733; --muted:#475467; --grey:#667085;
  --serif: "Source Serif 4", Georgia, serif; }
/* the buttons: on a line of their own right above the picture; the page renders the line empty (data-anim-line), so
   it keeps its height and nothing moves when they appear */
.as-anim-line { display: flex; align-items: center; justify-content: flex-end; gap: .4rem .75rem; flex-wrap: wrap; min-height: 34px; margin: 0 0 .5rem; }
.as-anim-own { max-width: 40rem; }
.as-graphic-large .as-anim-own { max-width: none; }
/* at a glance: the picture is a link to its page; its box fills the link, the note is left out (two pictures a line) */
.as-picture-image > .svgbox { width: 100%; }
.as-picture .as-anim-note { display: none; }
.as-anim-ctrls { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 34px; }
.as-anim-ctrls .play, .as-anim-ctrls .stop { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--navy);
  background: var(--blue-soft); border: 1px solid #cdd6f6; border-radius: 16px; padding: 8px 14px; cursor: pointer; }
.as-anim-ctrls .play:hover, .as-anim-ctrls .stop:hover { border-color: var(--blue); }
/* at a glance (owner 2026-11-21): on the title's line next to the article chips, icons only; the buttons keep their
   names for screen readers (aria-label) and show them on hover (title) */
.as-anim-line.as-anim-icons { min-height: 0; margin: 0; flex-wrap: nowrap; }
.as-anim-icons .as-anim-ctrls { min-height: 0; gap: .3rem; margin: 0; }
.as-anim-icons .as-anim-ctrls .play, .as-anim-icons .as-anim-ctrls .stop { width: 1.75rem; height: 1.75rem; padding: 0; justify-content: center; border-radius: 50%; }
.as-anim-icons .as-anim-ctrls .lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-anim-icons .as-anim-ctrls .ic, .as-anim-icons .as-anim-ctrls .ic svg { width: 11px; height: 11px; }
@media (max-width: 600px) { .as-anim-icons .as-anim-ctrls .play, .as-anim-icons .as-anim-ctrls .stop { width: 2.5rem; height: 2.5rem; } }
.as-anim-ctrls .stop[hidden] { display: none; }
.as-anim-ctrls button:focus-visible, .svgbox .scrub:focus-visible, .svgbox .pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.as-anim-ctrls .ic { display: inline-block; width: 12px; height: 12px; color: var(--blue); } .as-anim-ctrls .ic svg { display: block; width: 12px; height: 12px; }
/* "the screens are examples", while an animation with a phone plays; its place is kept so nothing moves; not on phones */
.as-anim-note { font: 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); visibility: hidden; }
.as-anim-note.on { visibility: visible; }
@media (max-width: 600px) { .as-anim-note { display: none; } }
/* the box: exactly the picture's size (its frame is the page's .as-graphic-svg); the scene lies over it */
.svgbox { position: relative; overflow: hidden; border-radius: 9px; background: #fff; }
.svgbox > svg { transition: opacity .35s; }
.svgbox.playing > svg { opacity: 0; }
.svgbox.playing.landing > svg { opacity: 1; transition: none; }
.svgbox.snap > svg, .svgbox.snap .stage { transition: none !important; }
@media (max-width: 600px) { .as-graphic-large .as-graphic-svg .svgbox { width: 560px; } }
.svgbox .fly { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.svgbox .fly .cap { position: absolute; left: 4%; right: 4%; text-align: center; color: var(--navy); line-height: 1.3; opacity: 0; }
.svgbox .fly .cap b { font-weight: 700; }
.notrans, .notrans * { transition: none !important; }
.svgbox .stage { position: absolute; left: 0; top: 0; width: 540px; height: 470px; transform-origin: 0 0; opacity: 0; pointer-events: none; transition: opacity .35s; }
.svgbox.playing .stage { opacity: 1; pointer-events: auto; transition-delay: .15s; }
.svgbox .scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; opacity: 0; pointer-events: none; transition: opacity .3s; cursor: pointer; touch-action: none; }
.svgbox.on .scrub { opacity: 1; pointer-events: auto; }
.svgbox .scrub .track { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 4px; border-radius: 2px; background: rgba(42,79,208,.18); }
.svgbox .scrub .fill { height: 100%; border-radius: 2px; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.svgbox .scrub .knob { position: absolute; left: 14px; bottom: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; transition: transform .15s; }
.svgbox .scrub:hover .knob, .svgbox .scrub.drag .knob, .svgbox .scrub:focus-visible .knob { transform: scale(1.35); }
/* the time at the playhead: only on a page that asks for it (the review page puts .as-anim-timecodes on its <main>) */
.svgbox .scrub .tc { display: none; }
.as-anim-timecodes .svgbox .scrub .tc { display: block; position: absolute; bottom: 20px; transform: translateX(-50%); font: 600 12px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #fff; background: #2A4FD0; border-radius: 6px; padding: 3px 6px; white-space: nowrap; pointer-events: none; }
/* the scenes (as in the video) */
.svgbox .stage, .svgbox .fly { font: 16px/normal system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); overflow-wrap: normal; text-align: left; }
.svgbox .stage *, .svgbox .fly * { line-height: normal; }
.svgbox .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.svgbox :is(.stage,.fly) .isteps { left: 272px; right: 16px; }
.svgbox :is(.stage,.fly) .istep { height: 106px; display: flex; align-items: center; gap: 18px; }
.svgbox :is(.stage,.fly) .istep .ii { flex: none; display: block; width: 78px; height: 78px; transform-origin: center; }
.svgbox :is(.stage,.fly) .istep .il { font-size: 27px; line-height: 1.15; font-weight: 700; color: var(--navy); }
.svgbox :is(.stage,.fly) .pill.big { width: 52px; height: 34px; border-radius: 17px; font-size: 16px; }
.svgbox :is(.stage,.fly) .pill.big .pill-on { border-radius: 17px; }
.svgbox :is(.stage,.fly) .a { position: absolute; } .svgbox :is(.stage,.fly) .o { transform-origin: center; }
.svgbox :is(.stage,.fly) .phone { left: 20px; top: 16px; width: 222px; height: 438px; border: 3px solid var(--navy); border-radius: 30px; background: #fff; overflow: hidden; }
.svgbox :is(.stage,.fly) .phone .notch { position: absolute; left: 50%; top: 9px; width: 54px; height: 6px; margin-left: -27px; border-radius: 3px; background: var(--rule); }
.svgbox :is(.stage,.fly) .steps { left: 272px; right: 16px; }
.svgbox :is(.stage,.fly) .step { position: relative; padding-left: 38px; min-height: 30px; margin-bottom: calc(20px * var(--ts, 1)); font-size: calc(15.5px * var(--ts, 1)); line-height: 1.3; color: var(--navy); font-weight: 600; }
.svgbox :is(.stage,.fly) .step small { display: block; font-weight: 400; color: var(--muted); font-size: calc(13px * var(--ts, 1)); margin-top: 3px; }
.svgbox :is(.stage,.fly) .step .dot { position: absolute; left: 0; top: -2px; width: 27px; height: 27px; border-radius: 50%; border: 2.5px solid var(--navy); background: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.svgbox :is(.stage,.fly) .step .dot.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.svgbox :is(.stage,.fly) .step.no .dot.on { background: var(--navy); border-color: var(--navy); }
.svgbox :is(.stage,.fly) .rip { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid var(--blue); background: rgba(42,79,208,.22); }
.svgbox :is(.stage,.fly) .btn { position: absolute; left: 16px; right: 16px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 650; text-align: center; line-height: 1.2; padding: 0 8px; }
.svgbox :is(.stage,.fly) .btn.p { background: var(--blue); color: #fff; } .svgbox :is(.stage,.fly) .btn.s { border: 2px solid var(--rule); color: var(--navy); }
.svgbox :is(.stage,.fly) .card { position: absolute; left: 12px; right: 12px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; padding: 10px 12px; font-size: 12px; line-height: 1.45; color: var(--navy); }
.svgbox :is(.stage,.fly) .bub { position: absolute; max-width: 152px; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; }
.svgbox :is(.stage,.fly) .bub.u { right: 12px; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.svgbox :is(.stage,.fly) .bub.b { left: 12px; background: var(--blue-soft); color: var(--navy); border-bottom-left-radius: 4px; }
.svgbox :is(.stage,.fly) .typing { position: absolute; left: 12px; width: 52px; height: 30px; border-radius: 14px; background: var(--blue-soft); }
.svgbox :is(.stage,.fly) .typing i { position: absolute; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--grey); }
.svgbox :is(.stage,.fly) .stamp { border: 3.5px solid var(--blue); color: var(--blue); background: rgba(255,255,255,.92); border-radius: 10px; padding: 2px 16px 5px; font-size: 32px; }
.svgbox :is(.stage,.fly) .pill { position: relative; width: 40px; height: 24px; border-radius: 12px; border: 2px solid var(--rule); background: #fff; font-size: 11px; font-weight: 700; color: var(--grey); display: grid; place-items: center; cursor: pointer; }
.svgbox :is(.stage,.fly) .pill:hover { border-color: var(--blue); }
.svgbox :is(.stage,.fly) .pill-on { inset: -2px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.svgbox :is(.stage,.fly) .scr { position: absolute; inset: 0; padding-top: 16px; }
.svgbox :is(.stage,.fly) .big-label { font-weight: 650; color: var(--navy); }
/* a role badge (anim.js role()): the act's role word on an actor, and in place of the word in a line */
.svgbox :is(.stage,.fly) .role { display: inline-block; padding: .04em .5em .1em; border-radius: 1em; background: #EEF1FC; border: 1.5px solid #8FA8FF; color: #1B2540; font-weight: 650; font-size: .85em; line-height: 1.25; white-space: nowrap; vertical-align: .06em; }
