/* Fixes on top of the designer's export, linked into every page by tools/import_archive.py
 * (after the export's own styles). Keep each fix scoped and say why it exists, so it can be
 * dropped once the export itself is fixed. */

/* Laboratory card in the header / mobile menu (2026-11-16).
 * Every page gives the card a light lavender background (#e3daf5), but the product, role and
 * blog pages also carry a dark-theme rule
 *   #su-site:has(.ca-page) .su-lab-card :is(h3,p,span,a){color:#fff!important}
 * that paints its text white — invisible on that background. Black text, as on the home page.
 * The doubled id outranks that rule's specificity (1,2,1) without depending on order. */
#su-site#su-site .su-lab-card :is(h3, p, span) {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

/* Clickable product demos (2026-11-16): site-runtime.js renames [data-product-preview] to
 * [data-su-interactive] on product-page demos that have controls, which switches off
 * site-review.css's "no pointer events" block. Keep the rest of that block's intent: vertical
 * page scrolling over the demo on touch screens, and no second scroll area inside it. */
#su-site [data-su-interactive],
#su-site [data-su-interactive] * {
  touch-action: pan-y pinch-zoom;
}
#su-site [data-su-interactive] .dp-kanban-scroll,
#su-site [data-su-interactive] .dp-tour-content {
  overflow: hidden !important;
  overscroll-behavior: auto;
  scrollbar-width: none;
}

/* /products/ai-deal-analysis/ hero card rotator (2026-11-16): no pause button and no
 * "Особисті дані приховано" note; the cards keep rotating on their own. */
#su-site .dp-hero-rotator .dp-play-control,
#su-site .dp-hero-rotator .dp-private-note {
  display: none !important;
}

/* Home overview: autoplay artwork, with page scrolling above every iframe.
 * Do not add wheel/touch handlers: the browser owns native page scrolling. */
#su-site #su-story .su-preview-playback {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#su-site #su-story .su-preview-playback::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1000;
  pointer-events: auto !important;
  touch-action: pan-y pinch-zoom !important;
  cursor: default;
}

/* Shared contact footer, inserted at build time on all exported marketing pages. */
#su-site .su-footer { flex-wrap: wrap; }
#su-site .su-footer-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-left: auto;
}
#su-site .su-footer-email {
  color: #111 !important;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#su-site .su-social-links { display: flex; align-items: center; gap: 8px; }
#su-site .su-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d5c6eb;
  border-radius: 14px;
  background: #eee5fa;
  color: #111 !important;
  transition: background .15s ease, border-color .15s ease;
}
#su-site .su-social-link svg { width: 20px; height: 20px; display: block; }
#su-site .su-social-link:hover { background: #d9c5f6; border-color: #b698d8; }
#su-site .su-social-link:focus-visible,
#su-site .su-footer-email:focus-visible { outline: 2px solid #7442d5; outline-offset: 4px; }
@media (max-width: 760px) {
  #su-site .su-footer-contacts { width: 100%; margin-left: 0; justify-content: space-between; }
}
@media (max-width: 420px) {
  #su-site .su-footer-contacts { align-items: flex-start; flex-direction: column; gap: 14px; }
}
