/* Scroll cue (15.2688, kit/scrollcue.js). The file has no theme of its own, so the paint of both parts is fixed
   and equal in a file made from the light or the dark program. The file does not load deos.css rules, so the icon
   and the strip's fade are carried here for these parts only. */
.scue .ic { display: inline-flex; flex: none; }
.scue .ic svg { width: 100%; height: 100%; display: block; }

/* the down cue: it floats at the window's foot (the script's place() moves it to a clear spot on a computer); on a
   tall phone's cover it stands in the cover's own room and scrolls away with the page */
.scue-down { position: fixed; left: 0; right: 0; z-index: 5; display: flex; justify-content: center;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)); pointer-events: none; transition: opacity .35s ease; }
.scue-down.gone { opacity: 0; }
/* no clear place (a phone): the page fades into its own ground under the cue (place() names the ground) */
.scue-down[data-scrim]::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0;
  bottom: calc(-84px - env(safe-area-inset-bottom, 0px));
  height: calc(var(--h-btn) + 136px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, transparent, var(--scue-ground, #fff) 52px); /* own colour: the file's paper when nothing under the cue is painted */
  animation: scue-fade .7s .9s both; }
@media (max-width: 999px) {
  .scue-down[data-scrim]::before { bottom: calc(-12px - env(safe-area-inset-bottom, 0px));
    height: calc(var(--h-btn) + 64px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 999px) { .scue-down { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 999px) and (max-aspect-ratio: 210/297) {
  .scue-down.scue-cover { position: absolute; bottom: auto;
    top: calc(100vh - 44px - env(safe-area-inset-bottom, 0px));
    top: calc(100svh - 44px - env(safe-area-inset-bottom, 0px)); }
}
/* where no script runs, the scroll itself fades the cue out */
@supports (animation-timeline: scroll()) {
  html:not(.ipf-js) .scue-down { animation: scue-out linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
}
@keyframes scue-out { to { opacity: 0; visibility: hidden; } }
/* 15.2688 (the answer A): a cue in a tall phone cover's own room rides up with the cover - it never fades in place */
@media (max-width: 999px) and (max-aspect-ratio: 210/297) {
  html .scue-down.scue-cover { animation: none; }
}
.scue-pill { display: flex; align-items: center; gap: var(--sp-050); height: var(--h-btn);
  padding: 0 var(--sp-150) 0 var(--sp-200); border-radius: var(--r-full);
  /* the cue lies on any cover, photo or plain, in a file that has no theme */
  background: rgba(20, 18, 16, .64); /* own colour: a dark glass reads on any cover */
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .94); /* own colour: white ink on the dark glass */
  font: 500 13px/16px Inter, system-ui, sans-serif; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18); /* own colour: a neutral shadow */
  animation: scue-in .7s .9s var(--ease-out) both; }
.scue-pill .ic svg { animation: scue-nod 1.6s 1.6s ease-in-out infinite; }
@keyframes scue-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scue-nod { 0%, 100% { translate: 0 -2px; opacity: .55; } 50% { translate: 0 3px; opacity: 1; } }

/* the side plate: one row, a chevron on each side; the side with nothing beyond is dim (the strip's data-edge) */
.scue-side { display: none; margin: 0 0 8px; }
@container paper (max-width: 600px) {
  .scue-side { display: flex; justify-content: flex-end; }
}
.scue-plate { display: inline-flex; align-items: center; gap: var(--sheet-3); height: 24px; box-sizing: border-box;
  padding: 0 var(--sheet-4); border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--sheet-accent, #c65221) 14%, transparent); /* own colour: the sheet's accent, its default the file's */
  color: color-mix(in srgb, var(--sheet-accent, #c65221) 78%, #000); /* own colour: black deepens the accent to 4.5:1, its hue kept */
  font: 600 12px/16px "Inter", sans-serif; letter-spacing: .02em; white-space: nowrap; }
.scue-plate .ic svg { stroke-width: 4; }
.scue-l, .scue-r { display: inline-flex; transition: opacity var(--dur-pop) var(--ease-out); }
.scue-l { opacity: .35; }
.scue-r { animation: scue-nod-r 1.4s ease-in-out infinite; }
.scue-side:has(+ [data-edge~="left"]) .scue-l { opacity: 1; animation: scue-nod-l 1.4s ease-in-out infinite; }
.scue-side:has(+ [data-edge]:not([data-edge~="right"])) .scue-r { opacity: .35; animation: none; }
/* nothing scrolls: no plate (three variants that fit); with no script it stays and shows the start */
.scue-side:has(+ .qv-hs-many[data-edge]:not([data-edge~="left"]):not([data-edge~="right"])) { display: none; }
@keyframes scue-nod-r { 0%, 100% { translate: -2px 0; } 50% { translate: 3px 0; } }
@keyframes scue-nod-l { 0%, 100% { translate: 2px 0; } 50% { translate: -3px 0; } }

/* the strip fades on the side where more lies - the kit's one fade (deos.css, 15.2987) */

@media (prefers-reduced-motion: reduce) {
  .scue-pill { animation: scue-fade var(--dur-pop) .9s both; }
  .scue-pill .ic svg { animation: scue-nod 1.6s 1.6s ease-in-out 1; }
  .scue-r { animation: scue-nod-r 1.4s ease-in-out 1; }
  .scue-side:has(+ [data-edge~="left"]) .scue-l { animation: scue-nod-l 1.4s ease-in-out 1; }
  .scue-l, .scue-r { transition: none; }
}
@keyframes scue-fade { from { opacity: 0; } to { opacity: 1; } }
@media print { .scue { display: none !important; } }
