/* css.slopped.site exhibit: Entrances and exits. From css/exhibits/arrive.mjs. */
.x-arrive .arrive { display: grid; justify-items: start; gap: 10px; min-height: 160px; }
.x-arrive .hint { margin: 0; color: var(--muted); }
.x-arrive .notice { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.x-arrive .notice .kicker { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.x-arrive .notice h3 { margin: 6px 0 0; font-size: 30px; letter-spacing: -1px; }
.x-arrive .notice p:not(.kicker) { margin: 10px 0 18px; }
.x-arrive [popover] { margin: auto; inset: 0; height: max-content; }
/* key */
/* open: where it sits. Closed: where it goes. The transition runs between them */
.x-arrive .notice { opacity: 1; translate: 0 0; }
.x-arrive .notice:not(:popover-open) { opacity: 0; translate: 0 40px; }
.x-arrive .notice::backdrop { background: rgb(23 24 21 / .5); }

@media (prefers-reduced-motion: no-preference) {
  .x-arrive .notice, .x-arrive .notice::backdrop {
    transition: opacity .3s, translate .3s, display .3s allow-discrete, overlay .3s allow-discrete;
  }
  /* the frame it opens on: without this it would appear already in place, because it was display: none */
  @starting-style {
    .x-arrive .notice:popover-open { opacity: 0; translate: 0 -40px; }
    .x-arrive .notice:popover-open::backdrop { opacity: 0; }
  }
}
/* /key */

/* live support notes (built from css/exhibits.js) */
.sup-popover .sup-no { display: none; }
@supports not selector(:popover-open) { .sup-popover .sup-yes { display: none; } .sup-popover .sup-no { display: inline; } .sup-popover { --sup: var(--no); } }
