.disclosure-demo {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
}

.disclosure-demo > * {
  min-width: 0;
}

.demo-brief,
.demo-instructions,
.demo-stage,
.demo-notes {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--demo-rule);
  border-radius: 0.75rem;
  background: var(--demo-surface);
}

.demo-brief h2,
.demo-instructions h2,
.demo-stage h2,
.demo-notes h2 {
  margin-block: 0 0.5rem;
}

.demo-brief p:last-child,
.demo-notes p:last-child {
  margin-block-end: 0;
}

.demo-instructions ul,
.demo-notes ul {
  padding-inline-start: 1.25rem;
  margin-block-end: 0;
}

.demo-stage > h2 {
  margin-block-start: 0;
}

.demo-stage audio {
  display: block;
  width: 100%;
  margin-block-end: 1rem;
}

.demo-disclosure {
  border: 1px solid currentColor;
  border-radius: 0.5rem;
}

.demo-disclosure summary {
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-disclosure[open] summary {
  border-block-end: 1px solid currentColor;
}

.demo-disclosure .a11y-transcript {
  border: 0;
  border-radius: 0;
}

.demo-notes pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--demo-rule);
  border-radius: 0.5rem;
  color: #f4f1e7;
  background: #171910;
}

.demo-notes code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.demo-disclosure summary:focus-visible {
  outline: 3px solid var(--demo-focus);
  outline-offset: 4px;
}

@media (forced-colors: active) {
  .demo-brief,
  .demo-instructions,
  .demo-stage,
  .demo-notes,
  .demo-disclosure,
  .demo-notes pre {
    border-color: CanvasText;
  }
}
