/* interaction-kit/ux-interact.css — injected by library_build_site.py into every build (see ../README.md).
   Colours come from the page (currentColor); a site can tune --ux-car-* on the track. */
.ux-car {
  display: flex;
  gap: var(--ux-car-gap, 16px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;          /* only the inline axis: the page still scrolls vertically */
  scroll-padding-inline: var(--ux-car-pad, 0px);
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  padding-block: var(--ux-car-pad-block, 6px);
}
.ux-car::-webkit-scrollbar { display: none; }
.ux-car > * { flex: 0 0 var(--ux-car-item, 86%); min-width: 0; scroll-snap-align: start; }
@media (min-width: 768px) { .ux-car > * { flex-basis: var(--ux-car-item-md, calc((100% - var(--ux-car-gap, 16px)) / 2)); } }
@media (min-width: 1200px) { .ux-car > * { flex-basis: var(--ux-car-item-lg, calc((100% - 2 * var(--ux-car-gap, 16px)) / 3)); } }
@media (prefers-reduced-motion: no-preference) { .ux-car { scroll-behavior: smooth; } }
.ux-car:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ux-car__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.ux-car__nav[hidden] { display: none; }
.ux-car__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s, color .2s, opacity .2s;
}
.ux-car__btn:disabled { opacity: .3; cursor: default; }
.ux-car__btn:focus-visible, .ux-car__dot:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ux-car__dots { display: flex; align-items: center; gap: 2px; }
.ux-car__dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; touch-action: manipulation; }
.ux-car__dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; opacity: .32; transition: width .2s, opacity .2s; }
.ux-car__dot[aria-current="true"]::before { width: 22px; opacity: 1; }   /* shape + opacity, not colour alone */
@media (prefers-reduced-motion: reduce) { .ux-car__dot::before, .ux-car__btn { transition: none; } }
.ux-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* decorative svgs never swallow clicks meant for the links under them (Anait footer word-mark, 2026-12-02) */
svg[aria-hidden="true"] { pointer-events: none; }
/* chip / category link chosen state (set by ux-interact.js) */
a[aria-current="true"] { text-decoration-thickness: 2px; }
/* reviews fallback track (set by ux-interact.js on templates whose reviews are a grid/stack/marquee): phone only */
@media (max-width: 767.98px) {
  .ux-car-auto {
    display: flex !important; flex-wrap: nowrap !important; flex-direction: row !important; gap: 14px !important;
    overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; touch-action: pan-x pan-y; animation: none !important; transform: none !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important; height: auto !important; grid-template-columns: none !important;
    padding-block: 6px; mask-image: none !important; -webkit-mask-image: none !important;
  }
  .ux-car-auto::-webkit-scrollbar { display: none; }
  /* a marquee track sits in a flex row next to its aria-hidden clone lists: the track takes the full row, clones go
     (auto showcase: reviews shrank to 44px, cards 38px wide; audit collapsed-grid-child, LOGIC 2026-12-02) */
  .ux-car-auto { flex: 0 0 100% !important; }
  .ux-car-auto ~ [aria-hidden="true"] { display: none !important; }
  /* …and its buttons/dots wrap onto the next line instead of sitting clipped beside it */
  .ux-car-auto-parent { flex-wrap: wrap !important; }   /* class set by ux-interact.js: no :has() dependency (modern-web-guidance content-based-styling fallback rule) */
  .ux-car-auto + .ux-car__nav { flex: 0 0 100% !important; }
  .ux-car-auto > [data-ux-ignore] { display: none !important; }
  [data-ux-phone-hide] { display: none !important; }
  .ux-car-auto, .ux-car-auto * { --slide: 0 !important; }
  .ux-car-auto > .ux-car-auto__item {
    flex: 0 0 86% !important; width: auto !important; max-width: none !important; min-width: 0 !important;
    scroll-snap-align: start; position: relative !important; inset: auto !important; transform: none !important;
    animation: none !important; opacity: 1 !important; visibility: visible !important; margin: 0 !important;
  }
}
@media (min-width: 768px) { .ux-car-auto + .ux-car__nav { display: none; } }

/* width/height attributes (written by the builder's size_images so lazy images reserve space) are presentational
   hints: a template that sets only width:100% would get the attribute height and a stretched photo (vet showcase,
   audit stretched-image, LOGIC 2026-12-02). Zero-specificity: any template rule for height still wins. */
:where(img[width][height]) { height: auto; }

/* Phone numbers / emails never in the browser's default link blue (owner 2026-12-02, Хінкальня on iOS Safari): zero-specificity
   base so any template rule still wins; iOS data detectors (x-apple-data-detectors) inherit the surrounding text. The builder
   also adds <meta name="format-detection" content="telephone=no, email=no, address=no"> and links phones/emails itself.
   Gate: audit "default-link-color" (no link in -webkit-link blue at 390/1440) + static "unlinked phone/email". */
:where(a[href^="tel:"], a[href^="mailto:"], a[href^="sms:"], a[href^="viber:"]) { color: inherit; text-decoration-color: currentColor; }
:where(a:not([class]):not([style])) { color: inherit; }
a[x-apple-data-detectors], a[href^="x-apple-data-detectors:"] { color: inherit !important; text-decoration: none !important;
  font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; }
/* social / messenger links: 44 px tap targets on the phone even when the template draws a small icon (owner 2026-12-02;
   audit small-tap-target). Zero-specificity :where keeps template layouts; only size and centring are added. */
@media (max-width: 767.98px) {
  :where(a[href*="instagram.com"], a[href*="facebook.com"], a[href*="tiktok.com"], a[href*="youtube.com"], a[href*="youtu.be"],
         a[href*="t.me/"], a[href^="viber:"], a[href*="wa.me"], a[href*="whatsapp.com"], a[href*="m.me/"]) {
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
/* per-item photos restored by the builder (plan item_photos, visual content parity, owner 2026-12-02) */
.ux-item-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin: 0 0 14px; }
.ux-item-photo--thumb { width: 88px; aspect-ratio: 1; border-radius: 12px; }
