/* ==========================================================================
   Shared base for the concept websites in /examples
   Each concept page adds its own look in its <style> block.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:has(dialog[open]) {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* Sections focused after an in-page link don't need a visible ring */
[tabindex="-1"]:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Concept notice bar
   Only shown when a concept page is opened on its own, outside the homepage frame.
   ========================================================================== */

.concept-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 10px 16px;
  background: #15171a;
  color: #e9e6df;
  font: 400 0.8125rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.is-standalone .concept-bar {
  display: flex;
}

.concept-bar p {
  margin: 0;
}

.concept-bar a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 3px;
}

.concept-bar a:focus-visible {
  outline: 2px solid #e8774f;
  outline-offset: 2px;
}

/* ==========================================================================
   Demo toast
   Confirms that a demo action did nothing real (no booking, order or message).
   ========================================================================== */

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1000;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  background: #15171a;
  color: #f6f4ef;
  border: 1px solid rgba(246, 244, 239, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  font: 400 0.875rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-toast strong {
  color: #e8774f;
  font-weight: 600;
}

/* ==========================================================================
   Dialogs
   ========================================================================== */

dialog {
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(12, 12, 12, 0.55);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
