/* The services shelf: deep pine, six ruled rows, one note open at a time. */

/* ---- the pine ground under the ruled header ---- */
.shelf{
  background: var(--colour-of-the-ink);
  color: var(--colour-of-the-ground);
  padding-block: clamp(1rem, 3.5vh, 2rem) var(--space-between-sections);
}
.shelf-frame{ display: grid; gap: 1.25rem; }
.shelf-frame > *{ min-width: 0; }

/* ---- the opening plate: h1, the count, one sentence ---- */
.trade-place{
  display: block;
  margin-top: 0.35em;
  font-size: 0.58em;
  line-height: 1.25;
}
.opening-plate .figure-bay{
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid currentColor;
}
.opening-plate .face-note{
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid currentColor;
}

/* ---- the core-work strip: full width on a phone, a slice beside the plate on a desk ---- */
.conduit-strip{
  position: relative;
  aspect-ratio: 16 / 11;
  margin: 0;
}
.conduit-strip img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 88% 50%;
}
.conduit-strip .corner-tick{ z-index: 2; }

/* ---- the words ahead of the rows ---- */
.shelf-intro{ padding-top: clamp(1rem, 3vh, 2rem); }
.shelf-intro .working-note{ max-width: 46rem; }
.shelf a{ text-underline-offset: 0.26em; }

/* ---- the row of narrowing controls: underlined words on one ruled row ---- */
.selector-run{
  display: flex;
  gap: 0 clamp(0.85rem, 2vw, 1.6rem);
  margin-top: 1.5rem;
  padding-bottom: 0;
  overflow-x: auto;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.selector-run:empty{ display: none; }
.selector-button{
  flex: none;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  font-size: var(--size-of-the-reading);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  cursor: pointer;
}
.selector-button[aria-pressed="true"]{
  text-decoration-thickness: 3px;
}
.selector-button:hover{ text-decoration-thickness: 2px; }
@media (min-width: 48em){ .selector-run{ flex-wrap: wrap; overflow: visible; } }

/* ---- the board: six ruled rows, each led by its numeral ---- */
.breaker-panel{
  --size-of-a-numeral: 3.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid currentColor;
}
.breaker-way{
  display: grid;
  grid-template-columns: calc(var(--size-of-a-numeral) * 1.4) minmax(0, 1fr);
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  align-content: start;
  align-items: start;
  padding-block: clamp(0.95rem, 1.8vw, 1.3rem);
  border-bottom: 1px solid currentColor;
}
.breaker-way[hidden]{ display: none; }
.breaker-numeral{
  grid-row: 1 / -1;
  font-family: 'Forum', 'Times New Roman', serif;
  font-size: var(--size-of-a-numeral);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 0.85;
  padding-top: 0.12em;
  color: var(--colour-of-the-ground);
}
.gae-board-on .breaker-numeral{ cursor: pointer; }
.breaker-head{ grid-column: 2; margin: 0; font-size: 1rem; font-weight: 400; }
.breaker-switch{
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.2rem 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.breaker-way .breaker-switch .breaker-name{
  display: block;
  font-family: 'Forum', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 1.75rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: var(--tracking-of-the-sign);
  overflow-wrap: break-word;
}
.gae-open-on .breaker-name{ text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.breaker-kind{ display: block; margin-top: 0.35rem; font-size: var(--size-of-a-label); opacity: 0.82; }
.breaker-text{ grid-column: 2; margin-top: 0.45rem; }
.breaker-line, .breaker-note p{ margin: 0; max-width: 52rem; }
.breaker-note p{ margin-bottom: 0.2rem; }
.breaker-link{ display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---- without script every note is simply there; with it, one at a time ---- */
.breaker-line{ display: none; }
.gae-board-on .breaker-line{ display: block; }
.gae-board-on .breaker-way:not(.gae-open-on) .breaker-note{ display: none; }
.gae-board-on .breaker-way.gae-open-on .breaker-line{ display: none; }

/* ---- on a desk the list runs the full measure: numeral, name, then the words ---- */
@media (min-width: 60em){
  .breaker-panel{ --size-of-a-numeral: clamp(4.5rem, 7vw, 6.5rem); }
  .breaker-way{
    grid-template-columns: calc(var(--size-of-a-numeral) * 1.4) minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
  }
  .breaker-head{ grid-column: 2; }
  .breaker-way .breaker-switch .breaker-name{ font-size: 1.75rem; }
  .breaker-text{ grid-column: 3; margin-top: 0.45rem; }
  .shelf-frame{
    grid-template-columns: minmax(0, 1fr) clamp(18rem, 32%, 26rem);
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    row-gap: 1rem;
  }
  .opening-plate{ grid-column: 1; grid-row: 1; }
  .conduit-strip{
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    aspect-ratio: auto;
    height: 100%;
    min-height: 16rem;
    position: relative;
  }
  .shelf-rest{ grid-column: 1 / -1; grid-row: 2; }
  .shelf-intro .working-note{ max-width: 62rem; }
}

/* ---- the hand-off, on the pale ground, before the timetable ---- */
.terminal{ padding-block: var(--space-between-sections); }
.terminal-block{ display: grid; gap: 1.5rem; align-items: start; }
.terminal-link{ display: inline-flex; align-items: center; min-height: 2.75rem; }
.terminal-call{ font-size: 1.5rem; font-variant-numeric: tabular-nums; }
@media (min-width: 60em){
  .terminal-block{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
}
