/* THE example strip and its player (Alex: one component for the site, the app and the worker's pages): build.py
   strip_html makes the markup, static/strip.js the behaviour. Where a page shows it is its own business (style.css on
   the site: phones under the hero, computers the Examples section); .strip-any shows it plainly, edge to edge of its box. */
.strip-play, .strip-it .sq { display: none; }
.strip-any .strip-wrap { display: block; margin: 0; }
.strip-any .strip { padding: 6px 2px 12px; }
.strip-h { margin: -8px 0 10px; font-weight: 600; color: var(--muted); font-size: 15px; }
.strip-wrap { position: relative; margin: 0 calc(-1 * var(--gutter, 24px)); }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px var(--gutter, 24px) 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip::-webkit-scrollbar { display: none; }
.strip-it { position: relative; flex: 0 0 136px; display: grid; gap: 8px; text-align: left; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; scroll-snap-align: start; scroll-margin-left: var(--gutter, 24px); }
.strip-it .drw { width: 136px; height: 172px; object-fit: cover; border-radius: 14px; background: var(--white);
  box-shadow: 0 4px 14px rgba(53,43,62,.10); }
.strip-it .cart { position: absolute; right: -4px; top: 66px; width: 54px; height: 96px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--paper); box-shadow: 0 4px 12px rgba(53,43,62,.22); background: var(--paper); }
.strip-it .cart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-it .cart::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; transform: translateX(2px);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.strip-it b { font-size: 14px; font-weight: 600; line-height: 1.25; padding-right: 6px; }
.strip-it template { display: none; }
.strip-wrap::before, .strip-wrap::after { content: ""; position: absolute; top: 0; bottom: 12px; width: 44px; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity .2s; }
.strip-wrap::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.strip-wrap::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
.strip-wrap.l::before, .strip-wrap.r::after { opacity: 1; }
/* scoped to the strip, so a page's own .prev/.next (the app has a lilac .next card) can't restyle the arrows */
.strip-wrap .strip-arr { position: absolute; top: 68px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: none;
  place-items: center; padding: 0; border: 0; background: var(--white); color: var(--plum); cursor: pointer;
  box-shadow: 0 4px 14px rgba(53,43,62,.22); }
.strip-wrap .strip-arr svg { display: block; }
.strip-wrap .strip-arr.prev { left: 8px; } .strip-wrap .strip-arr.next { right: 8px; }
.strip-wrap.l .strip-arr.prev, .strip-wrap.r .strip-arr.next { display: grid; }
.strip-play[open] { display: block; }
/* a bottom sheet like the app's examples (Alex): the cartoon in a rounded frame, the drawing it came from, one coral button */
.strip-play { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 520px; max-height: 100dvh; overflow: auto;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0;
  background: var(--paper); color: var(--plum); animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }
.strip-play::backdrop { background: rgba(53,43,62,.45); }
/* the cartoon edge to edge and up to the top, no frame in a frame (Alex); below it the drawing row and the button */
.strip-play .grab { position: absolute; top: 4px; left: 0; right: 0; z-index: 4; display: block; width: 64px; height: 22px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }
.strip-play .grab::after { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 99px; background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.strip-play .vid { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer; background: var(--line); }
.strip-play video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.strip-play .from, .strip-play .own { margin-left: 20px; margin-right: 20px; }
.strip-play .go { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(53,43,62,.55);
  opacity: 0; transition: opacity .15s; pointer-events: none; }
.strip-play .go::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; transform: translateX(3px);
  border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.strip-play .vid.paused .go { opacity: 1; }
.strip-play .vid.loading .go { opacity: 0; }
.strip-play .spin { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; pointer-events: none;
  border: 4px solid rgba(255,255,255,.55); border-top-color: var(--coral); animation: spin .8s linear infinite; opacity: 0; transition: opacity .15s; }
.strip-play .vid.loading .spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.strip-play .nav { position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: rgba(255,255,255,.82); color: var(--plum); cursor: pointer;
  box-shadow: 0 2px 8px rgba(53,43,62,.2); }
.strip-play .nav svg { display: block; }
.strip-play .nav.prev { left: 8px; } .strip-play .nav.next { right: 8px; }
.strip-play .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.35); }
.strip-play .bar i { display: block; height: 100%; width: 0; background: var(--coral); }
.strip-play .from { display: flex; gap: 12px; align-items: center; margin: 14px 20px; }
.strip-play .from img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--white); }
.strip-play .from div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.strip-play .from b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.strip-play .from span { font-size: 14px; line-height: 1.35; opacity: .72; }
.strip-play .said-btn { flex: 0 0 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--lilac); color: var(--plum); cursor: pointer; }
.strip-play .said-btn[aria-expanded="true"] { background: var(--plum); color: var(--white); }
.strip-play .said-btn[hidden] { display: none; }
.strip-play .own { display: block; text-align: center; padding: 15px 18px; font-size: 17px; border-radius: 99px; background: var(--coral); color: var(--white); }
.strip-play .own:hover { background: #E86A53; color: var(--white); }
.strip-play .said { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-height: 70%; overflow: auto; padding: 14px 16px 16px;
  background: rgba(255,248,237,.95); box-shadow: 0 -6px 18px rgba(53,43,62,.15); cursor: default; }
.strip-play .said[hidden] { display: none; }
.strip-play figcaption.story { margin: 0; font-size: 14px; line-height: 1.4; }
.strip-play figcaption.story .who { margin-bottom: 3px; }

@media (min-width: 861px) {     /* a computer: the cartoon plays in a window in the middle, ✕ in its corner */
  .strip-play { inset: 0; margin: auto; max-width: 440px; height: fit-content; border-radius: 26px; padding: 0 0 22px; animation: pop .18s ease-out; }
  @keyframes pop { from { transform: scale(.96); opacity: 0; } }
  .strip-play .grab { position: absolute; top: 10px; right: 10px; left: auto; z-index: 4; width: 34px; height: 34px; margin: 0; border-radius: 50%; background: rgba(255,255,255,.85); }
  .strip-play .grab:hover { background: var(--white); }
  .strip-play .grab::after { content: "\00D7"; width: auto; height: auto; background: none; font: 400 26px/34px var(--body, sans-serif); color: var(--plum); }
}
/* under a mouse a tile lifts a little, wherever the strip is (it lived in the site's style.css alone: Alex) */
.strip-it .drw, .strip-it .cart { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) and (pointer: fine) {
  .strip-it:hover .drw { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(53,43,62,.18); }
  .strip-it:hover .cart { transform: translateY(-6px); }
}
