/* Programs: the call sheet. Builds on site.css tokens; nothing here restyles the chrome. */

/* Opening picture: the shallow .fig--pano crop from site.css; only the focal point is set here */
.fig--call img { object-position: 50% 35%; }

/* Filter row: pills from site.css at reading size; without script the toggles have nothing to do, so they stay out */
.call-filter { margin-top: 1.5rem; margin-bottom: 1rem; }
html:not(.js) .call-filter { display: none; }
.call-filter .pill {
  min-height: 3rem;
  padding: .55rem 1.4rem;
  font-size: var(--fs-body);
}
.call-count {
  margin: 0 0 2.25rem;
  padding-left: .25rem;
  font-size: var(--fs-body);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
html:not(.js) .call-count { display: none; }

/* The sheet: three credentials, each a Yellowtail sub-heading over its rows */
.call-group + .call-group { margin-top: 2.25rem; }
.call-group[hidden] { display: none; }
.call-head { margin: 0 0 .5rem; }

.call-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.call-item { margin: 0; border-top: .125rem solid var(--rose-line); }
.call-item[hidden] { display: none; }

/* A row: tape and number at the left, the program beside it */
.call-row {
  --tape-grow: .75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: .1rem;
  align-items: start;
  padding: .7rem .75rem .8rem .5rem;
  border-radius: 1.25rem;
  text-decoration: none;
  transition: background-color var(--quick) ease-out;
}
.call-row:hover,
.call-row:focus-visible { background: color-mix(in srgb, var(--rose) 11%, transparent); }

.call-row .cue {
  grid-column: 1;
  grid-row: 1;
  padding-top: .25rem;
}
.call-row .tape {
  margin-right: var(--tape-grow);
  transition: width var(--quick) ease-out, margin-right var(--quick) ease-out;
}
.call-row:hover .tape,
.call-row:focus-visible .tape {
  width: calc(var(--tape-w) + var(--tape-grow));
  margin-right: 0;
}

.call-name,
.call-cred,
.call-line { display: block; grid-column: 2; min-width: 0; }

.call-name {
  font-size: var(--fs-cue);
  line-height: 1.3;
  text-wrap: balance;
}
.call-row:hover .call-name,
.call-row:focus-visible .call-name {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}
.call-cred {
  font-size: var(--fs-small);
  line-height: 1.45;
}
.call-line { line-height: 1.5; }

/* Availability note: a pale plate, oxblood print */
.plate h2 { margin-bottom: .4em; }

/* Hand-off: the ask and the email; the layout's question list follows */
.hand { padding-block: 0 .5rem; }
.hand-ask { margin: 0 0 1rem; font-size: var(--fs-lead); line-height: 1.5; }
.hand .pill { font-size: var(--fs-body); padding-inline: 1.6rem; }

@media (max-width: 47.99rem) {
  .call-row {
    --tape-w: 1.5rem;
    --tape-grow: .5rem;
    column-gap: .75rem;
    padding: .65rem .4rem .75rem .25rem;
  }
}
