/*
 * YADILO public-site foundation
 *
 * Loaded after page bundles so the rules below repair shared accessibility and
 * browser-consistency gaps without changing the existing visual language.
 * Page-level components continue to own their geometry, colours and motion.
 */
:root {
  --yd-focus-ring: #8b5d3f;
  --yd-focus-surface: #ffffff;
}

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

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

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

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

/* A visible keyboard focus indicator is mandatory even where legacy component
   CSS explicitly removes outline styles. It does not affect pointer use. */
:focus-visible {
  outline: 3px solid var(--yd-focus-ring) !important;
  outline-offset: 3px;
}

@supports selector(:focus-visible) {
  :focus:not(:focus-visible) {
    outline: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header,
  .selection-header,
  .glb-header {
    background-color: var(--yd-focus-surface);
  }
}

/* Preserve content for visitors who request reduced motion. The existing
   animations retain their duration for everyone else. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* Keep the public pages safely reflowable on narrow viewports. Individual
   configurator layout rules still define the actual mobile arrangement. */
@media (max-width: 760px) {
  html,
  body {
    min-width: 320px;
  }
}
