/* Workbench of the Unisson Playground model (.bench): the grid of the four panes, its 1285, 1099 and 899 px tiers.
   The slots are display: contents, so each slotted pane is a grid item and takes its area here. No colour, no motion:
   the panes draw themselves. */
:host {
  display: block;
  min-inline-size: 0;
}
:host([hidden]) {
  display: none;
}
.bench {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 340px;
  grid-template-areas:
    "pick prev ctl"
    "pick code ctl";
  grid-template-rows: auto 1fr;
  gap: 20px;
  margin-block-start: 32px;
  align-items: start;
}
[part="heading"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
::slotted([slot="examples"]) {
  grid-area: pick;
}
::slotted([slot="preview"]) {
  grid-area: prev;
}
/* The code panel sits in the grid: no documentation gap above it, a code block kept 180 px high. */
::slotted([slot="code"]) {
  grid-area: code;
  --pack-code-offset: 0;
  --pack-code-min-block-size: 180px;
}
::slotted([slot="controls"]) {
  grid-area: ctl;
}
@media (max-width: 1285px) {
  .bench {
    grid-template-columns: 236px minmax(0, 1fr) 310px;
    gap: 16px;
  }
}
@media (max-width: 1099px) {
  .bench {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "pick pick"
      "prev ctl"
      "code ctl";
    grid-template-rows: auto auto 1fr;
  }
}
@media (max-width: 899px) {
  .bench {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pick" "prev" "ctl" "code";
    grid-template-rows: none;
  }
}
