/* Visit page: opening, the two-venue ledger, seating notes, the lawn. */

/* Opening: this sentence is long, so it is set below the site's say size. */
.page-visit .opening__say { font-size: 2rem; line-height: 1.18; }
.page-visit .opening__tape { height: var(--tape); margin-bottom: var(--gap); }
@media (max-width: 55.99rem) {
  .page-visit .opening__say { font-size: 1.5rem; line-height: 1.2; }
  .page-visit .opening__tape { margin-bottom: 0.75rem; }
}

/* Guide head: the tape bar starts the block. */
.guide-tape { height: var(--tape); margin-bottom: var(--gap); }
.guide-head { max-width: 100%; }

/* Venue switch on phones. */
.switch { display: flex; margin-bottom: 0.25rem; padding-block: 0.15rem; gap: 0 1.5rem; }
.switch .pick { padding: 0.75rem 0; font-size: 1.125rem; min-height: 2.75rem; }

/* Ledger: a numbered index of fields, one line per field. */
.ledger { background: var(--panel); padding: var(--pad); }
.ledger__rows { list-style: none; margin: 0; padding: 0; }
.ledger__head { display: none; }
.cell { min-width: 0; max-width: none; width: auto; }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; padding: 0.75rem 0; }
.lrow:nth-child(odd) { background: var(--stripe); }
.lrow > * { margin: 0; min-width: 0; padding: 0 0.5rem; }
.lrow__label { font-size: var(--fs-h3); order: -1; cursor: default; line-height: 1.2; }
.lrow__label .spike { margin-right: 0.35rem; }
.lrow__no {
  display: inline-block;
  margin-right: 0.4rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.cell p { margin: 0; position: relative; padding-bottom: 0.4rem; max-width: none; }
.cell p::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--tape);
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s ease-out;
}
.lrow:has(.lrow__label:hover) .cell p::after,
.lrow:has(.lrow__label:focus-visible) .cell p::after { transform: scaleX(1); }
.lrow__label:focus-visible { outline-offset: 0.1rem; }
.cell a { word-break: break-word; }
.ledger[data-show="sev"] .col-blo { display: none; }
.ledger[data-show="blo"] .col-sev { display: none; }

/* Seating notes: two panels stretched to one shared height. */
.notes-grid { align-items: stretch; }
.notes-grid > .panel { align-self: stretch; height: auto; }
.sev-facts h3 { margin-bottom: 0.6rem; }
.sev-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.sev-facts li { margin: 0; }
.sev-facts li .spike { margin-right: 0.4rem; }

/* Lawn block: the distance scale, a heavy line with square end marks and a labelled yellow marker standing on it. */
.lawn-text .distance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: auto;
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 100% / 0.75rem 0.75rem no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / 0.75rem 0.75rem no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 0.25rem) / 100% 0.25rem no-repeat;
}
.lawn-text .distance__mark {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-right: calc(100% - var(--at, 50%));
  padding: 0.2rem 0.6rem;
  border-right: 0.25rem solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
}
.lawn-text .distance__ends { margin-top: 0.4rem; font-size: 1rem; line-height: 1.35; }
.lawn-text .distance__ends span:last-child { text-align: right; }
.page-visit .opening__media img { aspect-ratio: 4 / 3; }
.page-visit .fig--wide img { height: 100%; }

@media (min-width: 56rem) {
  .switch { display: none; }
  .ledger[data-show] .col-blo, .ledger[data-show] .col-sev { display: block; }
  .ledger__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 11rem) minmax(0, 1fr);
    gap: 2rem;
    padding: 0 0 0.75rem;
  }
  .ledger__head > * { padding: 0 0.5rem; }
  .lrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 11rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .lrow > .cell { padding: 0 0.5rem; }
  .lrow__label { order: 0; text-align: center; font-size: 1.5rem; line-height: 1.2; margin: 0; padding: 0; }
  .lrow__no { display: block; margin: 0 0 0.2rem; font-size: 1.75rem; }
  .lrow__label .spike { margin-right: 0.25rem; }
  .page-visit .opening__media img { aspect-ratio: auto; height: 100%; min-height: 20rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cell p::after { transition: none; }
}
