/* This layer intentionally leaves the existing page geometry and styling intact. */
html.demo-scroll-lock { overflow: hidden; }
#demo-curtain { will-change: opacity; }
[data-demo-link] { cursor: pointer; }
.demo-scroll-target:focus { outline: none; }
.demo-dialog {
  width: min(650px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 39px 44px 40px;
  border: 0;
  border-top: 3px solid var(--blue);
  border-radius: 2px;
  color: var(--ink);
  background: var(--white);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.demo-dialog[open] { animation: none; }
.demo-welcome::backdrop { background: transparent; backdrop-filter: none; }
.demo-notice::backdrop { background: #10283bcc; backdrop-filter: blur(3px); }
.demo-brand { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 31px; }
.demo-brand img { width: 155px; height: auto; }
.demo-brand > span { font-size: 8px; color: var(--muted); letter-spacing: .12em; }
.demo-dialog .eyebrow { font-size: 10px; letter-spacing: .075em; }
.demo-dialog h2 { font-size: 41px; line-height: 1.1; letter-spacing: -.045em; margin: 20px 0; }
.demo-dialog h2:focus { outline: none; }
.demo-copy, .demo-copy p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.demo-copy p + p { margin-top: 15px; }
.demo-callout { margin: 23px 0; padding: 16px 18px; border-left: 2px solid var(--blue); background: var(--mist); color: #445568; font-size: 12px; line-height: 1.75; }
.demo-dialog .button { min-height: 53px; font-size: 12px; min-width: 191px; }
.demo-dialog .button:disabled { cursor: default; }
.demo-notice { width: min(570px, calc(100% - 40px)); padding-top: 42px; }
.demo-notice .button { margin-top: 27px; }
@media (max-width: 600px) {
  .demo-dialog, .demo-notice { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 26px 23px 25px; }
  .demo-brand { margin-bottom: 25px; gap: 15px; }
  .demo-brand img { width: 144px; }
  .demo-brand > span { font-size: 7px; }
  .demo-dialog .eyebrow { font-size: 9px; letter-spacing: .035em; }
  .demo-dialog h2 { font-size: 34px; margin: 18px 0; }
  .demo-copy, .demo-copy p { font-size: 13px; line-height: 1.8; }
  .demo-callout { padding: 13px 14px; font-size: 11px; margin-block: 20px; }
  .demo-dialog .button { width: 100%; min-height: 52px; }
  .demo-notice { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { #demo-curtain { will-change: auto; } }
