.rail-testimonials { margin-top: auto; padding-top: 20px; }
.rail-testimonials .testimonial { font-size: .875rem; line-height: 1.5; }
.rail-testimonials .testimonial + .testimonial { margin-top: 18px; padding-top: 18px; }
.rail-testimonials .testimonial[hidden] + .testimonial { margin-top: 0; padding-top: 0; border-top: 0; }
.rail-testimonials .testimonial figcaption { display: flex; align-items: center; gap: 10px; font-size: inherit; line-height: 1.4; }
.rail-testimonials .translation-note { margin: 16px 0 0; color: var(--muted); font-size: .875rem; }
.testimonial-avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar-initials { display: inline-grid; place-items: center; background: var(--accent-tint); border: 1px solid var(--line); color: var(--accent); font-weight: 700; line-height: 1; }
@media (min-width: 701px) {
  :root[data-layout="rail"] .has-testimonial-sidebar main { position: relative; grid-template-columns: 220px minmax(0, 720px); max-width: 1064px; padding-top: 32px; }
  :root[data-layout="rail"] .has-testimonial-sidebar main::before { content: ""; position: absolute; top: 32px; bottom: 40px; left: 259px; width: 1px; background: linear-gradient(var(--line), rgb(205 180 232 / .1) 28%, transparent 85%); pointer-events: none; }
  :root[data-layout="rail"] .identity-testimonials { display: flex; flex-direction: column; grid-row: 1 / span 20; top: 32px; height: calc(100dvh - 64px); overflow: hidden; border-right: 0; padding-right: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .identity-profile { flex: 0 0 auto; min-height: 44px; max-height: 60%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .rail-testimonials { flex: 0 1 auto; min-height: 44px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
@media (max-width: 700px) {
  :root[data-layout="rail"] .has-testimonial-sidebar main::before { display: none; }
  :root[data-layout="rail"] .identity-testimonials { display: contents; }
  .identity-profile { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 18px; width: 100%; order: 0; }
  .has-testimonial-sidebar .introduction { order: 1; }
  .rail-testimonials { order: 2; width: 100%; margin: 0; padding-top: 0; }
  .rail-testimonials .testimonial { font-size: .875rem; line-height: 1.6; }
}

.rail-proof-title { font-size: .875rem; line-height: 1.5; margin-bottom: 14px; }
.review-author { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.review-author strong { text-decoration: underline; text-underline-offset: 3px; }
.review-author:hover { color: var(--ink); }
.review-pagination { display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.review-pagination button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }
.review-pagination button::after { content: ''; width: 7px; height: 7px; border: 1px solid transparent; border-radius: 50%; background: var(--muted); opacity: .45; }
.review-pagination button[aria-pressed="true"]::after, .review-pagination button:hover::after { background: var(--accent-tint); border-color: var(--accent); opacity: 1; }
.review-pagination button:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; border-radius: 50%; }
.review-popover { position: fixed; inset: auto; margin: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 64px rgb(0 0 0 / .35); }
.review-popover header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.review-popover .review-person { margin: 0; font-size: 1rem; line-height: 1.5; }
.review-popover header button { min-height: 44px; border: 0; background: none; color: var(--accent); font: inherit; font-size: .875rem; cursor: pointer; }
.review-popover blockquote { margin: 0; }
.review-popover blockquote p { white-space: pre-line; }
.review-popover .review-source { margin: 18px 0 0; font-size: .875rem; color: var(--muted); }
@media (max-width: 700px) { .review-author { min-height: 44px; } }
