/* ============================================================================
   MUSE — Model Agency demo
   This page is styled with Tailwind via CDN. This file carries ONLY the
   accessibility widget + skip-link (IS 5568), self-contained with literal
   values so it has no dependency on the Tailwind build or CSS variables.
   ========================================================================== */

/* The mobile menu toggles via the `hidden` attribute, but it also carries the
   Tailwind `flex` class — and an author `.flex { display:flex }` rule outranks
   the browser's UA `[hidden]{display:none}`, so the menu showed open by
   default. Force `hidden` to win so it starts (and toggles) closed. */
#mobile-menu[hidden] { display: none !important; }

/* ── Animated gradient background ──
   The UnicornStudio WebGL shader renders into .aura-background-component. This
   pink→purple gradient is the static fallback shown if the shader/CDN is blocked,
   so the page still reads the same. ── */
.aura-background-component {
  background: linear-gradient(135deg, #f9a8d4 0%, #d8b4fe 45%, #a78bfa 100%);
}
/* High-contrast a11y mode: drop the gradient for maximum legibility. */
body.a11y-contrast .aura-background-component { background: #fff !important; }

/* ── Skip to main content ── */
.sr-skip {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 200;
  background: #171717;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  transition: inset-block-start .25s ease;
}
.sr-skip:focus { inset-block-start: 16px; color: #fff; }

/* ── Accessibility widget (IS 5568) ── */
.a11y-toggle {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  background: #171717; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  cursor: pointer;
}
.a11y-toggle svg { width: 26px; height: 26px; }
.a11y-panel {
  position: fixed; inset-block-end: 84px; inset-inline-end: 20px; z-index: 60;
  width: min(320px, calc(100vw - 32px));
  background: #fff; border: 1px solid rgba(0,0,0,.10);
  border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.20);
  padding: 20px;
}
.a11y-panel h2 { font-weight: 600; font-size: 18px; margin: 0 0 16px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-btns { display: flex; gap: 6px; }
.a11y-btns button { width: 36px; height: 36px; border-radius: 12px; background: #f5f5f5; font-weight: 700; cursor: pointer; }
.a11y-btns button:hover { background: #e9e9e9; }
.a11y-tog {
  display: block; width: 100%; text-align: start;
  padding: 11px 14px; margin-bottom: 8px;
  border-radius: 12px; background: #f5f5f5; font-weight: 500; cursor: pointer;
}
.a11y-tog[aria-pressed="true"] { background: #171717; color: #fff; }
.a11y-reset { display: block; width: 100%; text-align: center; padding: 11px; margin-top: 8px; border-radius: 12px; border: 1px solid rgba(0,0,0,.18); font-weight: 600; cursor: pointer; }
.a11y-reset:hover { background: #f5f5f5; }
.a11y-foot { font-size: 12px; color: #737373; margin: 16px 0 0; }

/* ── A11y body overrides ── */
body.a11y-contrast { background: #fff !important; color: #000 !important; }
body.a11y-contrast .bg-neutral-100,
body.a11y-contrast .bg-neutral-50 { background: #fff !important; }
body.a11y-contrast .text-neutral-600,
body.a11y-contrast .text-neutral-500,
body.a11y-contrast .text-neutral-400,
body.a11y-contrast .text-neutral-700 { color: #1a1a1a !important; }
body.a11y-contrast .ring-1 { --tw-ring-color: rgba(0,0,0,.6) !important; }

body.a11y-links a { text-decoration: underline; text-underline-offset: 3px; }

body.a11y-readable, body.a11y-readable * { font-family: Arial, "Heebo", sans-serif !important; letter-spacing: .01em; }

body.a11y-motion *, body.a11y-motion *::before, body.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
