/* Shared disclosure icon and dialog entry/exit motion. Reduced motion is immediate. */
:root {
  --disclosure-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
/* Dialogs fade in rising 8px (220ms) and fade out sinking 8px (180ms); so do their backdrops. */
@media (prefers-reduced-motion: no-preference) {
  /* Where a closing modal can stay in the top layer (overlay), CSS animates both
     ways with or without JavaScript; motion.js then only opens and closes. */
  @supports (overlay: auto) {
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog) {
      transition: opacity 180ms ease-in-out, transform 180ms ease-in-out,
        overlay 180ms ease-in-out allow-discrete, display 180ms ease-in-out allow-discrete;
    }
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)[open] {
      transition-duration: 220ms; transition-timing-function: cubic-bezier(.22, 1, .36, 1);
    }
    /* The exit's end state; a closing dialog takes no pointer input. */
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog):not([open]) {
      opacity: 0; transform: translateY(8px); pointer-events: none;
    }
    @starting-style {
      :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)[open]:not(.is-server-open) { opacity: 0; transform: translateY(8px); }
    }
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)::backdrop {
      opacity: 0;
      transition: opacity 180ms ease-in-out, overlay 180ms ease-in-out allow-discrete, display 180ms ease-in-out allow-discrete;
    }
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)[open]::backdrop {
      opacity: 1; transition-duration: 220ms; transition-timing-function: ease-out;
    }
    @starting-style {
      :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)[open]::backdrop { opacity: 0; }
    }
    /* A closed dialog leaves the page interactive while it fades, and the browser makes
       the exiting dialog and backdrop inert. This click shield stays over the page for
       the 180ms exit, so a second tap on the fading backdrop reaches nothing. */
    :root::after {
      content: ''; position: fixed; inset: 0; z-index: 2147483647;
      visibility: hidden; transition: visibility 0s 180ms;
    }
    :root:has(:is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog):modal)::after {
      visibility: visible; transition-delay: 0s;
    }
  }
  /* Elsewhere CSS animates the entry and motion.js the exit (data-closing). */
  @supports not (overlay: auto) {
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)[open] {
      animation: dialog-enter 220ms cubic-bezier(.22, 1, .36, 1);
    }
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)[open]::backdrop {
      animation: dialog-backdrop-enter 220ms ease-out;
    }
    :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog)[data-closing]::backdrop {
      animation: dialog-backdrop-exit 180ms ease-in-out forwards;
    }
  }
  /* A reload-opened dialog is open in the page's first render: it enters once with the
     page (no JavaScript, or before a script upgrades it). Steps inside it opt out. */
  :is(.review-dialog, .review-story-dialog, .booking-dialog, .gallery-dialog).is-server-open[open] {
    animation: dialog-enter 220ms cubic-bezier(.22, 1, .36, 1);
  }
}
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dialog-backdrop-enter {
  from { opacity: var(--dialog-backdrop-from, 0); }
  to { opacity: 1; }
}
@keyframes dialog-backdrop-exit {
  from { opacity: var(--dialog-backdrop-from, 1); }
  to { opacity: 0; }
}
@media (forced-colors: active) {
  .language-chevron, .blog-topic-prompt::after {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
