/* The studio pages use the same outer rails as the showroom frame. */
body[data-page] {
  position: relative;
  isolation: isolate;
}
body[data-page] > :is(main, footer) {
  inline-size: var(--circuit-width);
  max-inline-size: none;
  margin-inline: auto;
  padding-inline: 0;
}
body[data-page] > main {
  border-block-start: 1px solid var(--line);
}
body[data-page] > footer {
  padding: 1.6rem .6rem 1.1rem;
}
body[data-page] main > h1,
.cursor-lead, .cursor-price, .cursor-bespoke { padding-inline: 1rem; }

body[data-page="questions"] .questions { padding-block-end: 0; }
.question-list {
  max-width: none;
  margin-top: clamp(1.3rem, 3vw, 2.4rem);
  border-bottom: 0;
}
.question-list summary { padding-inline: max(1rem, 5%); }

.cursor-main { padding-block: clamp(1.85rem, 4vw, 3.5rem) 1.5rem; }
.cursor-station { text-align: center; }
.cursor-options { padding: 0; }
#cursor-options {
  gap: 0;
  height: 100%;
  grid-auto-rows: 1fr;
}
.cursor-choice {
  border: 0;
  justify-content: center;
  padding: .45rem 1rem;
}
.cursor-choice + .cursor-choice { border-top: 1px solid var(--line); }
.cursor-choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--green); }
.cursor-choice:has(input:checked)::after { position: absolute; right: .5rem; }
.cursor-workshop { padding: 1.25rem clamp(.9rem, 3vw, 2.7rem); }
.cursor-workshop p { margin-inline: auto; max-width: 55ch; }
.cursor-bespoke { padding-block: 1.5rem .7rem; }

/* A full catalogue shares its rows with the workbench. The pad spans the
   middle choices, keeping its drawing surface clear as more designs are added. */
@media (min-width: 651px) {
  .cursor-station:has(.cursor-choice:nth-child(3)) {
    grid-template-rows: auto repeat(var(--cursor-middle-rows, 2), 1fr) auto;
  }
  .cursor-station:has(.cursor-choice:nth-child(3)) > :is(#cursor-options, .cursor-workshop) {
    display: grid;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .cursor-workshop { padding-block: 0; }
  .cursor-title, .cursor-preview-actions { padding-block: 1rem; align-self: center; }
  .cursor-station:has(.cursor-choice:nth-child(3)) .cursor-pad {
    grid-row: 2 / -2;
    margin-block: 0;
    height: 100%;
    min-height: clamp(190px, 26vh, 265px);
  }
}
@media (max-width: 650px) {
  .cursor-options { border-bottom: 1px solid var(--line); }
  .cursor-choice { padding: .55rem .24rem; justify-content: flex-start; }
  .cursor-choice + .cursor-choice {
    border-top: 0;
    border-inline-start: 1px solid var(--line);
  }
  .cursor-choice:nth-child(n+7) { border-top: 1px solid var(--line); }
  .cursor-choice:nth-child(6n+1) { border-inline-start: 0; }
  .cursor-choice:has(input:checked)::after { right: .22rem; }
  .cursor-workshop { padding-block: 1rem; }
}
@media (max-width: 480px) {
  .cursor-choice:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cursor-choice:nth-child(3n+1) { border-inline-start: 0; }
}
