#plaque {
  max-width: var(--plaque-w);
  padding: 26px 24px 18px;
  margin: 0 auto;
  text-align: center;
}

#plaqueTitle {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Padded to a tappable height rather than sized by its line — it is a control
   on a phone, where the line alone would come to seventeen pixels. */
#plaqueLabel > summary {
  display: inline-block;
  margin-top: 3px;
  padding: 5px 6px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#plaqueLabel > summary::-webkit-details-marker {
  display: none;
}

/* The control goes only where it has nothing left to offer: open, on a screen
   with room for it. Keyed on the state rather than the width alone, because
   hiding it whenever the screen is wide would strand the words behind a folded
   label the visitor has no way to unfold. */
@media (width > 860px) {
  #plaqueLabel[open] > summary {
    display: none;
  }
}

#plaqueBlurb {
  margin-top: 6px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.55;
}

#plaqueMeta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--faint);
}

.pips {
  display: inline-flex;
  gap: 3px;
}

.pip {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.pip.on {
  border-color: var(--warn);
  background: var(--warn);
}

/* The frame an exhibit builds itself inside: a plinth under a spotlight. */
.plinth {
  position: relative;
  /* a grid item won't shrink under its content's min-width on its own, and an
     exhibit that overflows would take the whole page sideways with it */
  min-width: 0;
  max-width: 100%;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb), 0.06), transparent 65%),
    var(--surface);
  box-shadow: 0 22px 60px -30px #000;
}

/* Every exhibit ends the same way: a row carrying whatever commits a value and
   a count of what is left, then a note. Tabular figures because a count that
   changes under the visitor shouldn't shift while it does. */
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tally {
  color: var(--dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hint {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

.stage-error {
  max-width: 44ch;
  padding: 22px 24px;
  border: 1px solid rgba(var(--warn-rgb), 0.4);
  border-radius: 10px;
  background: var(--surface);
  color: var(--dim);
  font-size: 14px;
}

.stage-error h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

@media (max-width: 560px) {
  .plinth {
    padding: 20px 16px;
  }

  #plaque {
    padding: 18px 4px 14px;
  }

  #plaqueTitle {
    font-size: 22px;
  }

  #plaqueBlurb {
    font-size: 13px;
  }
}
