/* Contact: the call script. Order: layout, type, colour, motion. */

/* ============ LAYOUT ============ */
.ring__head { padding-inline: var(--sam-rest); padding-block: calc(var(--sam-bar) * 0.5) calc(var(--sam-bar) * 0.3); gap: 0.8rem; }
.ring__title { max-width: 14ch; }
.route { display: grid; gap: 1.6rem; margin: 0; padding: 0; list-style: none; counter-reset: sam-stop; }
.route__stop { position: relative; padding-left: 4.5rem; counter-increment: sam-stop; min-height: 3.5rem; }
.route__stop::before { content: counter(sam-stop); position: absolute; left: 0; top: -0.1rem; width: 3.4rem; text-align: center; }
.route__stop p { margin: 0; }
.script { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.script__row { display: grid; gap: 0.5rem; }
.script__label { margin: 0; }
.script__pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.script__pill { position: relative; isolation: isolate; min-height: 2.9rem; padding: 0.5rem 1.5rem; border: 0; background: none; cursor: pointer; --sam-pitch: 0.95rem; }
.script__pill::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-mask: var(--sam-cut-sides); mask: var(--sam-cut-sides); }
.script__sentence { margin: 0.4rem 0 0; max-width: 34rem; }
.script__send { justify-self: start; }
.facts-sheet { display: grid; gap: 0.6rem; margin: 1.2rem 0; }
.facts-sheet__row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; }
.facts-sheet dt, .facts-sheet dd { margin: 0; }
.tally .cue { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 47.49em) {
  .ring__title { max-width: none; }
  .tally { padding-block: 1.5rem; }
  .tally__figure { font-size: 7rem; }
  .route__stop { padding-left: 3.6rem; }
  .facts-sheet__row { grid-template-columns: 1fr; gap: 0; }
}

/* ============ TYPE ============ */
.ring__title { font-size: clamp(2.75rem, 1rem + 4.6vw, 5.25rem); }
@media (max-width: 47.49em) { .ring__title { font-size: clamp(1.75rem, 1rem + 3.5vw, 2.375rem); } }
.route__name { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.route__stop::before { font-family: var(--sam-stencil-face); font-size: 3.4rem; line-height: 0.9; }
.script__label { font-size: var(--sam-size-small); font-weight: 400; }
.script__pill { font-size: 1rem; line-height: 1.2; }
.script__sentence { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.25; }
.facts-sheet { font-size: var(--sam-size-body); }
.facts-sheet dt { font-size: var(--sam-size-small); }
.ring .lesson__score p { max-width: 38rem; }
.ring .lesson__score p.script__sentence { max-width: 34rem; }

/* ============ COLOUR ============ */
.route__stop::before { color: var(--sam-lacquer); }
.script__pill { color: var(--sam-lacquer); }
.script__pill::before { background: var(--sam-aluminum); }
.script__pill:hover::before { background: var(--sam-chalk); }
.script__pill[aria-pressed="true"] { color: var(--sam-aluminum); }
.script__pill[aria-pressed="true"]::before { background: var(--sam-lacquer); }
.script__sentence { color: var(--sam-chalk); }

/* ============ MOTION ============ */
.script__pill, .script__pill::before { transition: background-color var(--sam-tempo) var(--sam-attack), color var(--sam-tempo) var(--sam-attack); }
