/* Shared accessibility and responsive layer for every standalone demo website. */
html { overflow-x: clip; }
body { min-width: 0; overflow-x: clip; }

.demo-bar,
.demo-ribbon {
  position: relative !important;
  z-index: 1000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 48px;
  padding: 9px max(16px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left)) !important;
  line-height: 1.45 !important;
  text-align: center;
  white-space: normal !important;
  overflow: visible !important;
}

.demo-portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
}

.demo-portfolio-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.demo-bottom-navigation {
  padding: clamp(28px, 6vw, 64px) 16px;
  text-align: center;
}

.demo-bottom-navigation .demo-portfolio-link {
  min-height: 48px;
  padding-inline: 20px;
}

main img:not(.icon-box img):not(.service-icon img):not(.feature-icon img) {
  max-width: 100%;
  height: auto;
}

.hero-frame img,
.hero-image-frame img,
.hero-visual img,
.technique > img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.hero-frame,
.hero-image-frame,
.hero-visual,
.technique {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 520px) {
  .demo-bar,
  .demo-ribbon {
    align-items: stretch;
    flex-direction: column;
    font-size: 13px !important;
  }

  .demo-portfolio-link { width: 100%; }
  h1 { overflow-wrap: anywhere; }
  .hero-actions .btn { min-height: 44px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
