/* Shared visual treatment for the public demo pages. Existing page layouts stay in place. */
:root:has(.db-demo-title) { scroll-padding-top: 78px; }
body:has(.db-demo-title) {
  overflow-wrap: break-word;
  --demo-ink: #172536;
}
body:has(.db-demo-title) :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #c88d41;
  outline-offset: 4px;
}
body:has(.db-demo-title) img { max-width: 100%; }
body:has(.db-demo-title) :is(main, section, article) { min-inline-size: 0; }
body:has(.db-demo-title) .db-demo-title {
  font-size: clamp(34px, 5.2vw, 72px);
  letter-spacing: -.059em;
  line-height: 1.04;
  text-wrap: balance;
}
body:has(.db-demo-title) :is(.section-title, .section-top h2, main h2) { text-wrap: balance; letter-spacing: -.033em; }
body:has(.db-demo-title) :is(.card, .panel, .price-card, .menu-card) { border-radius: 10px; }

body .db-demo-edition {
  position: relative;
  isolation: isolate;
  min-height: clamp(310px, 37vw, 525px);
  box-sizing: border-box;
  padding: clamp(27px, 5vw, 75px) clamp(17px, 4vw, 60px);
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--demo-accent) 32%, transparent);
  color: #fcf8ed;
  background: radial-gradient(ellipse at 80% 22%, color-mix(in srgb,var(--demo-night) 65%,#7c9aa1), var(--demo-night) 68%);
  box-shadow: 0 24px 55px #10192532;
}
body .db-demo-edition[data-demo-photo] {
  background: linear-gradient(95deg, var(--demo-night) 3%, color-mix(in srgb,var(--demo-night) 92%,transparent) 44%, #09142418 100%), var(--demo-photo) center / cover;
}
.db-demo-edition > :is(div, header, article) { min-width: 0; }
body .db-demo-edition .db-demo-title { color: #fff8eb; max-width: 19ch; text-shadow: 0 3px 22px #09101bd4; }
body .db-demo-edition .db-demo-title > :is(span, em, strong) { color: var(--demo-accent); font-style: normal; }
body .db-demo-edition :is(.hero-subtitle, .hero-sub, .hero-lead, .hero-desc, .hero-copy > p, .hero-content > p, .hero-left > p, .heroLeft > p, .intro > p) { color: #f2f3f6; }
body .db-demo-edition :is(.hero-actions, .hero-cta, .heroActions) {
  flex-wrap: wrap;
  gap: 10px;
}
body .db-demo-edition :is(.hero-actions, .hero-cta, .heroActions) a:first-child {
  background: var(--demo-accent);
  color: #172334;
  border-color: var(--demo-accent);
  box-shadow: 0 8px 24px #08142144;
}
body .db-demo-edition :is(.hero-actions, .hero-cta, .heroActions) a:first-child:hover { filter: brightness(1.08); }
body .db-demo-edition .db-demo-hero-note { color: #ffffff; }
@media (max-width: 640px) {
  body .db-demo-edition { min-height: 0; padding: 26px 15px; }
  body .db-demo-edition[data-demo-photo] {
    background: linear-gradient(110deg, color-mix(in srgb,var(--demo-night) 92%,transparent), color-mix(in srgb,var(--demo-night) 75%,transparent)), var(--demo-photo) center / cover;
  }
  body:has(.db-demo-title) .db-demo-title { font-size: clamp(30px, 9vw, 47px); }
  body:has(.db-demo-title) :is(.hero-grid, .heroGrid, .hero-inner, .hero-layout) { grid-template-columns: minmax(0, 1fr); }
  body:has(.db-demo-title) :is(.hero-actions, .heroActions, .hero-cta) { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.db-demo-title) { scroll-behavior: auto; }
  body:has(.db-demo-title) .db-demo-edition { animation: none; }
}
