/* This stylesheet is loaded only by the Playground page: use the full width. */
.bd-main .bd-content .bd-article-container {
  max-width: 100%;
}

.playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .playground {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
    align-items: start;
  }
  .pg-controls {
    position: sticky;
    top: calc(var(--pst-header-height, 4rem) + 1rem);
  }
}

.pg-controls label,
.pg-controls legend {
  font-weight: 600;
}

.pg-controls select,
.pg-controls input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--pst-color-border);
  border-radius: 0.25rem;
  background: var(--pst-color-surface);
  color: var(--pst-color-text-base);
  font: inherit;
  font-size: 0.9rem;
}

.pg-description {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--pst-color-text-muted);
}

.pg-param {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 5.5rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.pg-param label {
  font-weight: 400;
  font-size: 0.95rem;
  cursor: help;
}

.pg-param label code {
  font-size: 0.75rem;
}

.pg-param input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--pst-color-primary);
}

.pg-controls fieldset {
  margin: 1rem 0;
  padding: 0;
  border: 0;
}

.pg-controls legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: inherit;
}

.pg-range {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.pg-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pg-buttons button {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--pst-color-border);
  border-radius: 0.25rem;
  background: var(--pst-color-surface);
  color: var(--pst-color-text-base);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.pg-buttons button:hover {
  border-color: var(--pst-color-primary);
}

.pg-plot {
  width: 100%;
  height: 360px;
}

.pg-plots h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.pg-species-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pg-species-head label {
  font-size: 0.9rem;
}

.pg-note,
.pg-error {
  font-size: 0.9rem;
  color: var(--pst-color-text-muted);
}

.pg-error {
  color: var(--pst-color-danger);
}
