/* Real call transcripts. Uses the tokens declared in site.css.

   Deliberately plain next to the storyboard cards above it. Those are
   marketing; this is evidence, and evidence that has been art-directed
   stops reading as evidence. */

.real-calls {
  padding: 88px 0 24px;
}

.rc-grid {
  display: grid;
  /* min(300px, 100%) rather than a bare 300px: a plain minmax floor is a
     hard minimum, so any container narrower than 300px gets a 300px column
     and the card overflows it. The media query below already handles phone
     viewports, but this keeps the rule correct on its own. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-top: 36px;
  /* Each card sizes to its own content. Without this, opening one
     transcript stretches every closed card in the same row to match it,
     leaving them with a large empty middle. */
  align-items: start;
}

.rc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rc-dir {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}

/* The dot carries the direction, so it needs a non-colour cue too:
   an arrow glyph that survives greyscale and colour-blind vision. */
.rc-dir::before {
  content: "↙";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--white);
  background: var(--blue);
}

.rc-dir--outbound::before {
  content: "↗";
  background: var(--aqua);
  color: var(--navy);
}

.rc-len {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--control);
}

.rc-reading {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--navy);
}

/* ── the recording ─────────────────────────────────────────────────────── */

.rc-audio { margin: 2px 0 0; }

/* Native controls on purpose. This is a real recording of a real call, and
   a custom skin would invite the suspicion that something else was done to
   it too. The browser's own player is the one control a visitor already
   trusts, and it comes with keyboard access and a download menu for free. */
.rc-audio audio {
  width: 100%;
  height: 36px;
  display: block;
}

.rc-audio-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--control);
}

.rc-audio-note--none {
  margin: 2px 0 0;
  font-style: italic;
}

.rc-details {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.rc-details > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  list-style: none;
}

.rc-details > summary::-webkit-details-marker { display: none; }

.rc-details > summary::after {
  content: " ↓";
  font-weight: 400;
}

.rc-details[open] > summary::after { content: " ↑"; }

.rc-details > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.rc-transcript {
  margin-top: 14px;
  /* Long calls stay inside the card instead of stretching the grid row. */
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.rc-turn {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}

.rc-who {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--control);
  margin-bottom: 2px;
}

.rc-turn--agent .rc-who { color: var(--blue); }

.rc-said {
  display: block;
  color: var(--navy);
}

.rc-turn--caller .rc-said {
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.rc-trunc,
.rc-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.rc-trunc {
  margin: 4px 0 0;
  font-style: italic;
}

.rc-note {
  max-width: 62ch;
  margin: 24px 0 0;
}

@media (max-width: 680px) {
  .real-calls { padding-top: 56px; }
  .rc-grid { grid-template-columns: 1fr; }
  .rc-transcript { max-height: 280px; }
}

@media (prefers-reduced-motion: no-preference) {
  .rc-details[open] .rc-transcript {
    animation: rc-open 240ms cubic-bezier(.22, 1, .36, 1);
  }
}

@keyframes rc-open {
  from { opacity: .3; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
