/* Cabin bench: the print and bench switch, the pulled ledger lines, the first-talk facts. Adds to site.css only. */

/* OPENING: print beside the bench, note under the print. */
.cabin-open { margin-top: .75rem; }
.cabin-print { --strip-h: 46vh; }
.cabin-note {
  width: auto;
  font-size: var(--fs-body);
  line-height: 1.45;
}

/* BENCH: the sheet holding the switch and the two note lists. */
.bench h2 { font-size: var(--fs-h2); }
.bench__hint { font-size: var(--fs-small); color: var(--keep); }

/* The switch: a ruled slot in two cells, a square marker that jumps to the pressed cell. */
.bench__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}
.bench__pos {
  position: relative;
  display: block;
  width: 100%;
  min-height: 3.5rem;
  padding: 0 0 .15rem;
  text-align: left;
  white-space: normal;
  font-size: var(--fs-body);
}
.bench__pos::before {
  content: "";
  display: block;
  height: 2.5rem;
  margin-bottom: .4rem;
  background: var(--back);
  border-block: var(--rule-w) solid var(--ink);
}
.bench__pos:first-child::before { border-left: var(--rule-w) solid var(--ink); }
.bench__pos:last-child::before { border-right: var(--rule-w) solid var(--ink); }
.bench__pos::after {
  content: "";
  display: none;
  position: absolute;
  top: .5rem;
  left: .5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--build);
}
.bench__pos[aria-pressed="true"]::after { display: block; }
.bench__pos:focus-visible { outline-offset: .125rem; }

/* The note lists: the hidden one stays visibility:hidden via .swap. */
.bench__notes { margin-top: .5rem; }
.bench__list { margin: 0; padding: 0; list-style: none; }
.bench__list li { padding-block: .6rem; line-height: 1.45; }
.bench__list li + li { border-top: var(--rule-w) solid var(--back); }
.bench__list b {
  display: block;
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: 1.3;
  text-transform: lowercase;
  color: var(--keep);
}
#bench-see b { color: var(--build); }

/* PULLED LINES: the one-sentence keep and build lines on their own sheets. */
.pull {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.25;
  border-top: var(--rule-w) solid var(--ink);
}
.pull--keep { border-top-color: var(--keep); }
.pull--build { border-top-color: var(--build); }
@media (min-width: 60rem) {
  .pull { font-size: 2rem; padding: calc(var(--pad) * 1.25); }
}

/* FIRST TALK: facts on their own sheet beside the passage. */
.facts.sheet { align-self: stretch; align-content: start; }
.facts.sheet dd:last-of-type { border-bottom: 0; }
.facts a { display: inline-block; padding-block: .25rem; }

/* HAND-OFF */
.cabin-next { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 2rem; }
.cabin-next > * + * { margin-top: 0; }
.cabin-next p { margin: 0; }

/* Phone: keep the bench cells comfortable. */
@media (max-width: 29.99rem) {
  .bench__pos { font-size: 1rem; }
  .cabin-print { --strip-h: 30vh; }
}
