/* ============================================================
   Automira Web — shared demo utilities (base.css)
   ------------------------------------------------------------
   INTENTIONALLY MINIMAL. This file must never carry visual
   identity (no brand colors, no brand fonts, no component
   styling). It only provides:
     - a CSS reset
     - accessibility baseline (focus-visible, reduced motion)
     - a couple of layout-agnostic utility classes
   Beauty 01 and Wellness 01 each define their own full visual
   identity in their own style.css. Do not add colors, fonts or
   component styles here.
   ============================================================ */

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

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
}

/* Accessible, visible focus state — every demo relies on this
   instead of re-defining its own (colors below are neutral and
   work on both light demo backgrounds). */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Utility: visually hide but keep available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link — demos include a matching anchor (#main) */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  background: #fff;
  color: #111;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 8px;
}

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

/* Generic placeholder-image block. Each demo assigns its own
   background color via a data attribute or a small override —
   this only supplies the shape/behavior so a real <img> can
   later replace the placeholder without touching layout. */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
.img-placeholder svg { width: 100%; height: 100%; }
