[data-mono="testimonial-expand"] {
  container-type: inline-size;
  width: 100%;
  padding: clamp(.75rem, 3%, 1.5rem);
  border-radius: .9rem;
  background: #101010;
  color: #f3f3f3;
}
.mu-voice-deck {
  --voice-gap: .3rem;
  --voice-rail: clamp(2.75rem, 6.8cqi, 3rem);
  --voice-width: calc(100cqi - (var(--voice-count) - 1) * (var(--voice-rail) + var(--voice-gap)));
  display: flex;
  flex-direction: column;
  gap: var(--voice-gap);
  counter-reset: voice;
}
.mu-voice-card {
  --paper: #eaeaea;
  --ink: #171717;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 1.5rem;
  overflow: clip;
  counter-increment: voice;
}
.mu-voice-card:nth-child(6n + 2) { --paper: #4a4a4a; --ink: #fff; }
.mu-voice-card:nth-child(6n + 3) { --paper: #d2d2d2; }
.mu-voice-card:nth-child(6n + 4) { --paper: #656565; --ink: #fff; }
.mu-voice-card:nth-child(6n + 5) { --paper: #f4f4f4; }
.mu-voice-card:nth-child(6n + 6) { --paper: #373737; --ink: #fff; }
.mu-voice-card:has(:checked) { border-radius: .85rem; }
.mu-voice-card:has(:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; z-index: 1; }

.mu-voice-story { display: none; }
.mu-voice-radio:checked ~ .mu-voice-story {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.2rem 1.15rem 1.8rem;
}
.mu-voice-meta { display: flex; justify-content: space-between; align-items: start; }
.mu-voice-count { font: .69rem/1.3 ui-monospace, monospace; font-variant-numeric: tabular-nums; opacity: .75; }
.mu-voice-count::before { content: counter(voice, decimal-leading-zero); }
.mu-voice-story blockquote {
  margin: 0;
  font-size: clamp(1.45rem, 4.25cqi, 2.1rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.mu-voice-author {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.85rem;
  padding: .33rem .5rem;
  font-size: .9rem;
  cursor: pointer;
}
.mu-voice-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 600 .7rem/1 ui-monospace, monospace;
}
.mu-voice-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.mu-voice-photo:not(:has(img)):has(> span:empty) { display: none; }
.mu-voice-credit { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.mu-voice-credit strong { display: block; font-weight: 600; }
.mu-voice-role, .mu-voice-stars { display: none; }
.mu-voice-radio:checked ~ .mu-voice-author {
  margin: 0 1.15rem;
  padding: .8rem 0 .95rem;
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
}
.mu-voice-radio:checked ~ label .mu-voice-photo { width: 2.75rem; height: 2.75rem; border-radius: .5rem; }
.mu-voice-radio:checked ~ label .mu-voice-role { display: block; margin-top: .12rem; font-size: .75rem; opacity: .8; }
.mu-voice-radio:checked ~ label .mu-voice-stars {
  display: block;
  flex: none;
  margin-inline-start: auto;
  width: 3.25rem;
  height: .75rem;
  background: linear-gradient(to right, currentColor var(--rated, 100%), color-mix(in srgb, currentColor 25%, transparent) 0);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.4 2.9 6.2 6.8 1-4.9 4.8 1.2 6.8-6-3.2-6 3.2 1.2-6.8-4.9-4.8 6.8-1z'/%3E%3C/svg%3E") left center / 20% 100% repeat-x;
}
.mu-voice-stars[data-rating="1"] { --rated: 20%; }
.mu-voice-stars[data-rating="2"] { --rated: 40%; }
.mu-voice-stars[data-rating="3"] { --rated: 60%; }
.mu-voice-stars[data-rating="4"] { --rated: 80%; }
.mu-voice-empty { padding: 1rem; }

@container (min-width: 34rem) {
  .mu-voice-deck:not(.mu-voice-stack) { flex-direction: row; min-height: clamp(20rem, 55cqi, 26rem); }
  .mu-voice-deck:not(.mu-voice-stack) .mu-voice-card {
    flex: 0 0 var(--voice-rail);
    margin-block: 1.55rem;
  }
  .mu-voice-deck:not(.mu-voice-stack) .mu-voice-card:has(:checked) {
    flex-basis: var(--voice-width);
    margin-block: 0;
  }
  .mu-voice-deck:not(.mu-voice-stack) .mu-voice-story { width: var(--voice-width); }
  .mu-voice-deck:not(.mu-voice-stack) .mu-voice-radio:checked ~ label { width: calc(var(--voice-width) - 2.3rem); }
  .mu-voice-deck:not(.mu-voice-stack) .mu-voice-radio:not(:checked) ~ label {
    flex: 1;
    flex-direction: column-reverse;
    gap: .5rem;
    width: var(--voice-rail);
    padding: .4rem .15rem;
  }
  .mu-voice-deck:not(.mu-voice-stack) .mu-voice-radio:not(:checked) ~ label .mu-voice-credit {
    display: grid;
    flex: 1;
    place-items: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: .8rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mu-voice-card { transition: flex-basis 320ms cubic-bezier(.2,.8,.2,1), margin 320ms ease, border-radius 240ms ease; }
  .mu-voice-radio:checked ~ .mu-voice-story { animation: mu-voice-reveal 280ms ease-out both; }
  @keyframes mu-voice-reveal { from { opacity: 0; transform: translateY(.4rem); } }
}
@media (forced-colors: active) {
  .mu-voice-card { border: 1px solid ButtonText; }
  .mu-voice-card:has(:focus-visible) { outline-color: Highlight; }
  .mu-voice-stars { forced-color-adjust: none; color: CanvasText; }
}
