/* 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, .as-anim-ctrls .full { 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, .as-anim-ctrls .full:hover { border-color: var(--blue); }
/* full screen: an icon next to Pause and Stop; its name for screen readers (aria-label) and on hover (title) */
.as-anim-ctrls .full { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }
.as-anim-ctrls .full .lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-anim-ctrls .full[hidden] { display: none; }
/* 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; }
.as-anim-icons .as-anim-ctrls .full { width: 1.75rem; height: 1.75rem; }
@media (max-width: 600px) { .as-anim-icons .as-anim-ctrls :is(.play, .stop, .full) { 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; } }
@media (max-width: 600px) and (orientation: portrait) { .as-graphic-large .as-graphic-svg.as-has-portrait .svgbox { width: auto; } }
.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; }
/* full screen (player.js "Full screen"): the box and its buttons in an overlay over the whole window, which the browser
   then shows on the full screen; where it cannot (an iPhone), the overlay alone. The picture keeps its white ground;
   around it the page's light, or dark where the reader's system is dark. Nothing in it moves in or out. */
.as-anim-full { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  box-sizing: border-box; background: #EEF1F7; color: #1d2733; overscroll-behavior: contain; }
.as-anim-full:fullscreen { width: 100%; height: 100%; }
.as-anim-full::backdrop { background: #EEF1F7; }
.as-anim-full-bar { display: flex; justify-content: flex-end; max-width: 100%; }
.as-anim-full-bar .as-anim-ctrls { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.as-anim-full-pic { display: flex; justify-content: center; max-width: 100%; }
.as-anim-full .svgbox { flex: none; border: 1px solid #E3E6EE; box-shadow: 0 6px 28px rgba(27,37,64,.12); }
.as-anim-full .svgbox > svg:not([data-shape]) { display: block; width: 100%; height: 100%; max-width: none; }
/* a picture with a portrait version (player.js "Portrait"): a full screen taller than wide shows the portrait drawing
   (the box the whole overlay, the drawing in its middle), any other the wide one, whatever the page's style shows */
.svgbox.has-portrait > svg[data-shape="portrait"] { display: none; }
.as-anim-full .svgbox:not(.has-portrait) > svg[data-shape="portrait"] { display: block; width: 100%; height: 100%; max-width: none; }
.as-anim-full.as-fs-tall .svgbox.has-portrait > svg:not([data-shape]) { display: none; }
.as-anim-full.as-fs-tall .svgbox.has-portrait > svg[data-shape="portrait"] { display: block; width: 100%; height: 100%; max-width: none; }
.as-anim-full.as-fs-wide .svgbox.has-portrait > svg:not([data-shape]) { display: block; }
.as-anim-full.as-fs-wide .svgbox.has-portrait > svg[data-shape="portrait"] { display: none; }
.as-anim-full .as-anim-note { display: inline; }
@media (max-width: 600px) { .as-anim-full .as-anim-note { display: none; } }
@media (prefers-color-scheme: dark) {
  .as-anim-full, .as-anim-full::backdrop { background: #0E1424; color: #E6E9F2; }
  .as-anim-full .svgbox { border-color: #2B3550; box-shadow: none; }
  .as-anim-full .as-anim-note { color: #B8C0D4; }
  .as-anim-full .as-anim-ctrls button:focus-visible { outline-color: #8FA8FF; }
}
/* the end card (player.js "The end card"): over the picture on the full screen when its animation has ended by itself,
   the next animated picture of the act, Play, Replay, Close and "Autoplay next" with its countdown (a number only) */
.as-anim-full-pic { position: relative; }
.as-anim-end { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: rgba(238,241,247,.72); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2733;
  animation: as-anim-end-in .25s ease-out; }
@keyframes as-anim-end-in { from { opacity: 0; } to { opacity: 1; } }
.as-anim-end-card { box-sizing: border-box; width: min(30rem, 100%); max-height: 100%; overflow: auto; background: #fff; border: 1px solid #E3E6EE;
  border-radius: 12px; box-shadow: 0 10px 34px rgba(27,37,64,.18); padding: 18px 20px; }
.as-anim-end p { margin: 0; }
.as-anim-end-next { font-weight: 650; color: #1B2540; font-size: 16px; overflow-wrap: anywhere; }
.as-anim-end-next .k { color: #475467; font-weight: 600; }
.as-anim-end-next .sep { color: #667085; }
.as-anim-end-next .as-heading-ours { font-style: italic; font-weight: 500; color: #475467; }
.as-anim-end-title { margin-top: 4px !important; color: #475467; font-family: "Source Serif 4", Georgia, serif; }
.as-anim-end-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.as-anim-end-btns button { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1B2540; background: #EEF1FC; border: 1px solid #cdd6f6; border-radius: 16px; padding: 9px 15px; cursor: pointer; }
.as-anim-end-btns button:hover { border-color: #2A4FD0; }
.as-anim-end-btns .go { background: #2A4FD0; border-color: #2A4FD0; color: #fff; }
.as-anim-end-btns .go:hover { background: #1f3fb0; }
.as-anim-end-btns .go .ic, .as-anim-end-btns .go .ic svg { display: block; width: 12px; height: 12px; }
.as-anim-end-btns .close { margin-left: auto; background: transparent; border-color: transparent; color: #475467; }
.as-anim-auto { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: #475467; }
.as-anim-auto label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.as-anim-auto input { width: 16px; height: 16px; margin: 0; accent-color: #2A4FD0; }
.as-anim-count { font-weight: 650; color: #2A4FD0; font-variant-numeric: tabular-nums; }
.as-anim-end :is(button, input):focus-visible { outline: 2px solid #2A4FD0; outline-offset: 2px; }
@media (max-width: 600px) { .as-anim-end-card { padding: 12px 14px; } .as-anim-end-next { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .as-anim-end { animation: none; } }
@media (prefers-color-scheme: dark) {
  .as-anim-end { background: rgba(14,20,36,.74); color: #E6E9F2; }
  .as-anim-end-card { background: #161E33; border-color: #2B3550; box-shadow: none; }
  .as-anim-end-next { color: #E6E9F2; } .as-anim-end-next .k, .as-anim-end-next .as-heading-ours, .as-anim-end-title, .as-anim-auto, .as-anim-end-btns .close { color: #B8C0D4; }
  .as-anim-end-btns button { background: #22305A; border-color: #3A4A7A; color: #E6E9F2; }
  .as-anim-end-btns .go { background: #8FA8FF; border-color: #8FA8FF; color: #0E1424; }
  .as-anim-end-btns .go:hover { background: #a9bcff; }
  .as-anim-end-btns .close { background: transparent; border-color: transparent; }
  .as-anim-count { color: #8FA8FF; } .as-anim-auto input { accent-color: #8FA8FF; }
  .as-anim-end :is(button, input):focus-visible { outline-color: #8FA8FF; }
}
/* 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.long { font-size: 9.5px; letter-spacing: -.02em; }
.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; }
