/* Contact page: the phone as the entry, call-prep plates, ruled contact row. Order: layout, type, colour, motion. */

/* ============ LAYOUT ============ */

.quote_pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--measure-space); align-items: stretch; }
.quote_call { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.quote_phone { max-width: 100%; white-space: nowrap; padding: 0.5rem 1.25rem calc(0.5rem + var(--measure-bite)); }
.quote_note { margin-top: auto; padding-top: 0.875rem; border-top: var(--measure-rule) solid; }
.quote_figure { min-width: 0; }
.quote_figure .specimen_mount { aspect-ratio: 1 / 1; }
@container entry_column (max-width: 40rem) {
  .quote_pair { grid-template-columns: minmax(0, 1fr); }
  .quote_note { margin-top: 0; }
}

.rail_note { margin-top: 0.5rem; }
.rail_title { overflow-wrap: break-word; }

.prep_box { container: prep_row / inline-size; margin-top: 1.25rem; }
.prep_set { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem 1rem; padding: 0; margin: 0; }
.prep_item { display: flex; min-width: 0; }
.prep_toggle { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; flex: 1; gap: 0.5rem;
  min-height: 7.5rem; text-align: left; padding: 0.875rem 1rem calc(0.875rem + var(--measure-bite)); }
.prep_top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; width: 100%; }
.prep_tick { flex: none; margin-top: 0.25rem; visibility: hidden; }
.prep_toggle[data-state="stamped"] .prep_tick { visibility: visible; }
.prep_foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
@container prep_row (max-width: 46rem) {
  .prep_set { display: flex; overflow-x: auto; padding: 0.375rem 0.375rem 0.75rem; margin: -0.375rem; }
  .prep_item { flex: 0 0 14rem; }
}

.answer_text { overflow-wrap: anywhere; }
.reach_hours { min-width: 0; }
.reach_live { margin-top: 0.375rem; }

@media (max-width: 40rem) {
  .rail_note { display: none; }
}

/* Chrome pinned to the window stands on its own opaque ground, so the page - and every
   line of this page's text - passes beneath it instead of sharing its pixels.
   The foundation locks the bookmark's and the consent sheet's own backgrounds to none (their
   scalloped grounds are pseudo-elements), so the solid ground is put on the elements that
   carry the letters: the scallops stay punched, the text has an opaque plate of its own. */
.call_tag { background-color: var(--tone-cyan); }
nav.bookmark_strip[data-state] .bookmark_pull { background: var(--tone-cyan) !important; }
.bookmark_strip .bookmark_links a { background-color: var(--tone-cyan); }
@media (max-width: 40rem) {
  aside#storage p.consent_text,
  aside#storage p.consent_text span,
  aside#storage p.consent_text a,
  aside#storage div.consent_choices { background: var(--tone-plum) !important; }
}

/* ============ TYPE ============ */

.quote_phone { font-family: var(--face-slab); font-weight: 900; line-height: 1.1; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 5.6cqi, 4.5rem); }
@container entry_column (max-width: 40rem) {
  .quote_phone { font-size: clamp(1.5rem, 9cqi, 3.5rem); }
}
.quote_note { font-size: var(--step-body); }
.rail_title { font-size: clamp(1.5rem, 0.8rem + 2.2vw, 2.5rem); }
@container page_column (max-width: 40rem) {
  .rail_title { font-size: 1.75rem; }
}
.rail_note { font-size: var(--step-small); font-weight: 500; line-height: 1.35; }
.prep_head { font-weight: 600; font-size: var(--step-entry); line-height: 1.2; }
.prep_prompt { font-size: 1rem; font-weight: 400; line-height: 1.4; }
.prep_status { font-size: 1rem; line-height: 1.4; }
.reach_live { font-size: 1rem; font-weight: 600; }

/* ============ COLOUR ============ */

.prep_toggle { --tone-plate: var(--tone-paper); color: var(--tone-aubergine); }
.prep_toggle[data-state="stamped"] { --tone-plate: var(--tone-aubergine); color: var(--tone-paper); }
.prep_toggle:hover .prep_head { text-decoration: underline; }
.quote_phone:hover { text-decoration: underline; }

/* ============ MOTION ============ */

/* Stamping a plate is two dead steps down; everything else updates at once. */
@keyframes plate_stamp { from { transform: translateY(-0.25rem); } to { transform: none; } }
.prep_toggle[data-state="stamped"] { animation: plate_stamp 90ms steps(2, end) both; }
