/* Person cards: a portrait-led introduction, distinct from editorial/test cards. */
.therapist-grid .therapist-card {
  --person-green: #0f5b55;
  --person-ink: #173c37;
  --person-muted: #526b62;
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid #d8e5de; border-radius: 20px;
  box-shadow: 0 5px 18px rgb(15 91 85 / 4%);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.therapist-grid .therapist-card:hover { border-color: #6fa98c; transform: translateY(-3px); box-shadow: 0 12px 26px rgb(15 91 85 / 9%); }
.therapist-card .therapist-card__media { height: 205px; aspect-ratio: auto; background: #edf5ef; overflow: visible; flex-shrink: 0; }
.therapist-card .therapist-card__media img { position: absolute; top: 20px; inset-inline-start: calc(50% - 66px); width: 132px; height: 132px; border: 5px solid #fff; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.therapist-card:hover .therapist-card__media img { transform: scale(1.025); }
.therapist-card__initial { position: absolute; top: 20px; inset-inline-start: calc(50% - 66px); display: grid; place-items: center; width: 132px; height: 132px; border: 5px solid #fff; border-radius: 50%; color: #0f5b55; background: #d8ebdc; font-size: 46px; font-weight: 700; }
.therapist-card .therapist-card__status { inset-inline-start: 50%; top: auto; bottom: 17px; transform: translateX(50%); white-space: nowrap; padding: 5px 10px; background: transparent; color: var(--person-green); font-size: 12px; }
.site-language-en .therapist-card .therapist-card__status { transform: translateX(-50%); }
.therapist-card .therapist-card__status .icon { width: 16px; height: 16px; color: var(--person-green); }
.therapist-card .therapist-card__body { display: flex; flex: 1; flex-direction: column; align-items: center; text-align: center; padding: 22px; }
.therapist-card h3 { color: var(--person-ink); font-size: 22px; line-height: 1.65; margin-bottom: 6px; }
.therapist-card h3 a:hover { color: var(--person-green); text-decoration: underline; text-underline-offset: 5px; }
.therapist-card .therapist-card__role { color: var(--person-muted); font-size: 14px; margin-bottom: 18px; }
.therapist-card .therapist-card__topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 0; margin: 0 0 22px; list-style: none; color: var(--person-green); font-size: 12px; }
.therapist-card__topics li { background: #fffaf5; border-radius: 7px; padding: 5px 9px; line-height: 1.8; }
.therapist-card .text-link { display: flex; justify-content: space-between; width: 100%; gap: 12px; min-height: 46px; margin-top: auto; padding: 9px 14px; background: #fff; color: var(--person-green); border: 1px solid #6fa98c; border-radius: 10px; font-size: 14px; font-weight: 600; }
.therapist-card .text-link:hover { background: #d8ebdc; text-decoration: none; }
.site-language-fa .therapist-card .text-link .icon, .site-language-fa .therapist-card .text-link:hover .icon { transform: rotate(180deg); }
.therapist-card a:focus-visible, .home-test a:focus-visible { outline: 3px solid #0f5b55; outline-offset: 3px; }
.therapist-card .therapist-card__media:focus-visible { outline-offset: -4px; border-radius: 18px 18px 0 0; }

/* The homepage's compact tests share assessment facts/actions with /test/. */
.home-tests .home-test { border: 1px solid #d8e5de; border-radius: 16px; padding: 22px; }
.home-tests .home-test h3 { font-size: 19px; color: #173c37; }
.home-tests .home-test__facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; padding-top: 8px; }
.home-test__facts > span { justify-content: center; background: #edf5ef; padding: 9px 5px; border-radius: 8px; }
.home-test__facts > span:only-child { grid-column: 1 / -1; }
.home-tests .home-test .button { background: #0f5b55; color: #fff; border-color: #0f5b55; border-radius: 10px; }
.home-tests .home-test .button:hover { background: #124c47; }
@media (prefers-reduced-motion: reduce) {
  .therapist-grid .therapist-card, .therapist-card .therapist-card__media img { transition: none; }
  .therapist-grid .therapist-card:hover, .therapist-card:hover .therapist-card__media img { transform: none; }
}
