/* Demo uses the shared site palette, typography and header. */
.demos-main {
  width: min(calc(100% - 40px), 1080px);
  margin: 0 auto;
  padding: 64px 0 88px;
}

.demos-main h1 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.demo-viewer { margin-top: 32px; }

.demo-media {
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px var(--line-strong);
  border-radius: 6px;
  background: var(--charcoal);
  overflow: clip;
}

.demo-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.demo-media [hidden] { display: none; }

#demo-empty {
  position: absolute;
  inset: 0;
  place-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--surface);
}
#demo-empty:not([hidden]) { display: grid; }

.demo-details {
  padding-top: 26px;
}

.demo-copy { min-width: 0; }
.demo-category {
  margin: 0 0 6px;
  color: var(--accent-mid);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
}
.demo-copy h2 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}
#demo-description {
  min-height: 3em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.demo-picker {
  width: min(100%, 420px);
  margin-bottom: 24px;
}

.demo-picker label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}
.demo-picker select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.demo-picker select:focus-visible,
.demos-page video:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 4px;
}
#demo-status { color: var(--accent-mid); font-size: 14px; }
.demo-viewer noscript a { text-decoration: underline; }
@media (max-width: 680px) {
  .demos-main { width: calc(100% - 28px); padding: 40px 0 56px; }
  .demo-viewer { margin-top: 24px; }
  .demo-details { padding-top: 22px; }
}
