/**
 * Therapist profile pages — magazine Q&A, hero identity, directory row.
 */

body.rt-page-therapist-profile{
  --rt-about-sage-card:color-mix(in srgb,rgb(var(--rt-sage-rgb,157,181,165)) 24%,#f5f8f7 76%);
  --profile-content-rail:min(40rem,100%);
  --profile-layout-sidebar:clamp(16rem,24vw,21.5rem);
  --rt-about-gutter-x:5rem;
  --rt-about-gutter-x-end:5rem;
  --rt-sage-paper-section-eyebrow:var(--profile-body-label,#1a7370);
  --profile-body-label:color-mix(in srgb,var(--teal-deep,#154d4c) 55%,var(--teal-vivid,#1b9baf) 45%);
  --profile-name-ink:color-mix(in srgb,rgb(var(--rt-sage-rgb,157,181,165)) 34%,#243028 66%);
  --profile-hero-seafoam:color-mix(in srgb,var(--brand-footer-brand,#8ec4be) 72%,var(--brand-nav-sky-mid,#4a8884) 28%);
  --profile-identity-hero-bg:color-mix(in srgb,rgb(var(--rt-sage-rgb,157,181,165)) 16%,#eef2f1 84%);
  font-family:'DM Sans',sans-serif;
  color:var(--intro-text,#1f2724);
  overflow-x:hidden;
  background:var(--rt-about-sage-card);
  line-height:1.6;
  min-height:100vh;
  /* Slightly larger DM Sans scale than default marketing pages */
  --rt-about-pt:0.125rem;
  --rt-type-label:clamp(calc(0.875rem + var(--rt-about-pt)),1.15vw,calc(0.9375rem + var(--rt-about-pt)));
  --rt-type-eyebrow:var(--rt-type-label);
  --rt-type-sans-body:clamp(calc(1.0625rem + var(--rt-about-pt)),1.2vw,calc(1.125rem + var(--rt-about-pt)));
  --rt-type-sans-meta:calc(0.875rem + var(--rt-about-pt));
  --rt-type-btn-label:calc(0.875rem + var(--rt-about-pt));
  --rt-type-sans-lead:clamp(calc(1.125rem + var(--rt-about-pt)),1.35vw,calc(1.1875rem + var(--rt-about-pt)));
  --rt-type-page-intro-dark:clamp(calc(1.125rem + var(--rt-about-pt)),1.45vw,calc(1.1875rem + var(--rt-about-pt)));
  --therapist-caps-label-size:clamp(calc(0.78rem + var(--rt-about-pt)),calc(0.76rem + 0.15vw + var(--rt-about-pt)),calc(0.84rem + var(--rt-about-pt)));
}

.profile-identity-hero{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(0.35rem,0.8vw,0.5rem);
  margin:0 0 clamp(0.85rem,1.65vw,1.1rem);
  padding:clamp(0.85rem,1.75vw,1.15rem) clamp(1rem,2.5vw,1.75rem) clamp(0.5rem,1vw,0.7rem);
  background:var(--profile-identity-hero-bg,#eef2f1);
  border-bottom:none;
  text-align:center;
  position:relative;
}

.profile-identity-hero::after{
  content:'';
  position:absolute;
  left:clamp(1.5rem,8vw,4rem);
  right:clamp(1.5rem,8vw,4rem);
  bottom:0;
  height:1px;
  background:linear-gradient(
    90deg,
    transparent 0%,
    rgba(31,39,36,0.07) 22%,
    rgba(31,39,36,0.07) 78%,
    transparent 100%
  );
  pointer-events:none;
}

.profile-identity-hero__identity{
  display:flex;
  justify-content:center;
  max-width:100%;
}

.profile-identity-hero__name-block{
  display:inline-block;
  max-width:100%;
  text-align:center;
}

.profile-identity-hero__identity .profile-identity-hero__name{
  width:auto;
}

.profile-identity-hero__name{
  margin:0;
  padding:0;
  font:inherit;
  font-weight:400;
  line-height:1.2;
  max-width:100%;
  width:100%;
  text-align:center;
}

.profile-identity-hero__name-script{
  font-family:var(--rt-font-brittany,'BrittanySignature',cursive);
  font-size:clamp(1.9rem,4.2vw,2.85rem);
  font-weight:400;
  font-style:normal;
  letter-spacing:0.05em;
  line-height:var(--rt-brittany-line-height,1.5);
  color:var(--profile-name-ink,#3f5249);
  display:inline-block;
  max-width:100%;
  padding-bottom:var(--rt-brittany-descender-pad,0.35em);
  text-wrap:balance;
  text-align:center;
}

.therapist-profile__portrait-col{
  width:100%;
  max-width:100%;
}

.therapist-profile-entry .therapist-profile__name-block{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:clamp(0.2rem,0.45vw,0.3rem);
  max-width:100%;
}

.therapist-profile-entry .therapist-profile__name{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.9rem,3vw,2.55rem);
  font-weight:600;
  font-style:normal;
  letter-spacing:-0.008em;
  color:var(--profile-name-ink,#3f5249);
  line-height:1.15;
  margin:0;
  overflow:visible;
  padding-bottom:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
}

.therapist-profile-entry .therapist-profile__name-script{
  font-family:var(--rt-font-brittany,'BrittanySignature',cursive);
  font-size:calc(1.14em + 1.5pt);
  font-weight:400;
  letter-spacing:0.05em;
  display:block;
  line-height:var(--rt-brittany-line-height,1.5);
  padding-bottom:calc(var(--rt-brittany-descender-pad,0.35em) + 0.06em);
  margin:0 0 -0.18em;
  transform:translate(-0.42em,-0.14em);
  overflow:visible;
}

.therapist-profile-entry .therapist-profile__name-main{
  display:block;
  line-height:1.12;
}

.therapist-profile-entry .therapist-profile__credential{
  font-family:'DM Sans',sans-serif;
  font-size:clamp(1.12rem,1.4vw,1.22rem);
  font-weight:500;
  letter-spacing:0.06em;
  color:rgba(31,39,36,0.72);
  margin:0;
  line-height:1.45;
  text-align:left;
  box-sizing:border-box;
}

.therapist-profile-entry .therapist-profile--summary{
  width:100%;
  max-width:var(--profile-content-rail);
  margin:0 auto;
  text-align:left;
}

.therapist-profile-entry .therapist-profile--summary .therapist-profile__identity{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  margin:0 0 clamp(0.25rem,0.5vw,0.35rem);
  max-width:100%;
}

.therapist-profile-entry .therapist-profile--summary .therapist-profile__identity-core{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:clamp(0.75rem,1.4vw,1.05rem);
  width:100%;
  max-width:100%;
}

.therapist-profile-entry .therapist-profile--summary .therapist-profile__figure{
  width:100%;
  max-width:min(100%,21rem);
  min-width:0;
  margin:0;
  padding:0;
  box-sizing:border-box;
  overflow:hidden;
  aspect-ratio:1 / 1;
  background:transparent;
  border:none;
  box-shadow:
    0 18px 44px rgba(6,28,32,0.22),
    0 6px 18px rgba(21,77,76,0.16);
}

.therapist-profile-entry .therapist-profile--summary .therapist-profile__photo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  box-shadow:none;
}

.therapist-profile-entry .therapist-profile--summary .therapist-profile__name-block{
  width:max-content;
  max-width:100%;
}

.therapist-profile-entry .therapist-profile--summary .therapist-profile__name{
  width:max-content;
  max-width:100%;
  margin:0;
  text-align:left;
}

.therapist-profile-entry .therapist-profile--summary .therapist-profile__credential{
  margin:0;
  text-align:left;
  align-self:flex-start;
}

.profile-content-section{
  padding:clamp(3rem,6vw,4.5rem) var(--rt-about-gutter-x-end) clamp(4rem,8vw,5.5rem) var(--rt-about-gutter-x);
}

.profile-content-inner{
  max-width:min(72rem,100%);
  margin:0 auto;
}

.therapist-profile-entry{
  scroll-margin-top:6rem;
}

.therapist-profile-entry .therapists-panel{
  margin-bottom:clamp(2rem,4vw,3rem);
}

.therapist-profile-entry .therapists-panel.rt-about-scrim,
.therapist-profile-entry .therapists-panel:has(.therapist-profile--summary){
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
}

.therapist-profile-entry .therapist-profile-accordion__shell{
  margin-bottom:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
}

.therapist-profile-accordion{
  width:100%;
  max-width:min(72rem,100%);
}

.therapist-profile-entry .therapist-profile-accordion__trigger{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0.45rem;
  width:100%;
  max-width:var(--profile-content-rail);
  margin:clamp(1.35rem,2.75vw,1.85rem) auto clamp(0.85rem,1.75vw,1.15rem);
  padding:0 0 clamp(0.85rem,1.75vw,1.15rem);
  border:none;
  border-radius:0;
  background:transparent;
  cursor:pointer;
  text-align:left;
  transition:color 0.2s ease,margin 0.25s ease,padding 0.25s ease;
}

.therapist-profile-entry .therapist-profile-accordion__trigger::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:clamp(4rem,12vw,5.5rem);
  height:1px;
  transform:none;
  background:var(--rt-gold-teal-rule-symmetric,linear-gradient(90deg,transparent 0%,rgba(31,39,36,0.14) 18%,rgba(31,39,36,0.2) 50%,rgba(31,39,36,0.14) 82%,transparent 100%));
  box-shadow:var(--rt-gold-teal-rule-symmetric-shadow,none);
  pointer-events:none;
}

.therapist-profile-accordion__label{
  font-family:var(--rt-font-brittany,'BrittanySignature',cursive);
  font-size:clamp(1.45rem,2.35vw,1.85rem);
  font-weight:400;
  font-style:normal;
  letter-spacing:0.12em;
  word-spacing:0.24em;
  color:color-mix(in srgb,var(--teal-vivid,#1B9BAF) 88%,var(--teal-deep,#154d4c) 12%);
  line-height:var(--rt-brittany-line-height,1.5);
  padding-bottom:0.28em;
  overflow:visible;
  text-decoration:none;
  transition:transform 0.2s ease,font-size 0.25s ease,letter-spacing 0.25s ease,word-spacing 0.25s ease,color 0.2s ease;
}

.therapist-profile-accordion:not(.open) .therapist-profile-accordion__icon{
  width:1.4rem;
  height:1.4rem;
}

.therapist-profile-accordion__icon{
  position:relative;
  width:1.65rem;
  height:1.65rem;
  flex-shrink:0;
  border:1px solid rgba(21,77,76,0.16);
  border-radius:50%;
  background:transparent;
  transition:border-color 0.2s ease,transform 0.2s ease;
}

.therapist-profile-accordion__icon::before{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:0.45rem;
  height:0.45rem;
  border:solid var(--teal-vivid,#1B9BAF);
  border-width:0 2px 2px 0;
  transform:translate(-50%,-65%) rotate(45deg);
  transition:transform 0.3s ease,border-color 0.2s ease;
}

.therapist-profile-accordion.open .therapist-profile-accordion__icon::before{
  transform:translate(-50%,-35%) rotate(-135deg);
}

.therapist-profile-accordion__trigger:hover,
.therapist-profile-accordion__trigger:focus-visible{
  outline:none;
}

.therapist-profile-accordion__trigger:hover .therapist-profile-accordion__label,
.therapist-profile-accordion__trigger:focus-visible .therapist-profile-accordion__label{
  transform:scale(1.02) translateY(-1px);
}

.therapist-profile-accordion__trigger:hover .therapist-profile-accordion__icon,
.therapist-profile-accordion__trigger:focus-visible .therapist-profile-accordion__icon{
  transform:translateY(-2px);
  border-color:rgba(27,155,175,0.45);
}

.therapist-profile-accordion__trigger:focus-visible{
  outline:2px solid var(--teal-vivid,#1B9BAF);
  outline-offset:2px;
  border-radius:2px;
}

.therapist-profile-accordion.open .therapist-profile-accordion__trigger{
  margin-top:clamp(1.5rem,3vw,2rem);
  margin-bottom:0;
  padding-bottom:clamp(0.45rem,0.9vw,0.6rem);
  gap:0.35rem;
}

.therapist-profile-accordion.open .therapist-profile-accordion__trigger::after{
  width:clamp(3rem,9vw,4.25rem);
  opacity:0.72;
}

.therapist-profile-accordion.open .therapist-profile-accordion__label{
  font-size:clamp(1.65rem,2.6vw,2.1rem);
  letter-spacing:0.12em;
  word-spacing:0.24em;
  color:color-mix(in srgb,var(--teal-vivid,#1B9BAF) 92%,var(--teal-deep,#154d4c) 8%);
  padding-bottom:0.28em;
}

.therapist-profile-accordion.open .therapist-profile-accordion__icon{
  width:1.5rem;
  height:1.5rem;
  border-color:rgba(21,77,76,0.14);
}

.therapist-profile-accordion.open .therapist-profile-accordion__trigger:hover .therapist-profile-accordion__label,
.therapist-profile-accordion.open .therapist-profile-accordion__trigger:focus-visible .therapist-profile-accordion__label{
  transform:scale(1.02) translateY(-1px);
  color:var(--teal-vivid,#1B9BAF);
}

.therapist-profile-accordion.open .therapist-profile-accordion__trigger:hover .therapist-profile-accordion__icon,
.therapist-profile-accordion.open .therapist-profile-accordion__trigger:focus-visible .therapist-profile-accordion__icon{
  transform:translateY(-1px);
  border-color:rgba(27,155,175,0.4);
}

.therapist-profile-entry .therapist-profile-accordion__panel{
  width:100%;
  max-width:var(--profile-content-rail);
  max-height:none;
  overflow:visible;
}

.therapist-profile-entry .therapist-profile-accordion__panel-inner{
  padding:clamp(0.85rem,1.75vw,1.15rem) 0 clamp(1.5rem,3vw,2rem);
}

.therapist-profile-accordion.open .therapist-profile-accordion__shell{
  background:transparent;
}

/* Sticky portrait + scrolling story — desktop */
@media(min-width:900px){
  .therapist-profile-entry .therapist-profile-accordion__shell{
    display:grid;
    grid-template-columns:var(--profile-layout-sidebar) minmax(0,1fr);
    grid-template-areas:
      "hero hero"
      "portrait content";
    align-items:start;
    row-gap:clamp(0.85rem,1.5vw,1.2rem);
    column-gap:clamp(2rem,3.5vw,3.25rem);
    width:100%;
    max-width:100%;
  }

  .profile-identity-hero{
    grid-area:hero;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:clamp(0.35rem,0.8vw,0.5rem);
    margin-bottom:0;
    padding:clamp(1rem,2vw,1.35rem) clamp(1.25rem,3vw,2rem) clamp(0.55rem,1vw,0.75rem);
  }

  .profile-identity-hero__name{
    flex:none;
    min-width:0;
  }

  .therapist-profile__portrait-col{
    grid-area:portrait;
  }

  .therapist-profile-entry .therapist-profile--summary{
    position:sticky;
    top:calc(var(--rt-site-nav-clear, calc(2.2rem + 44px)) + clamp(0.65rem, 1.25vw, 0.85rem));
    max-width:none;
    width:100%;
    margin:0;
    align-self:start;
  }

  .therapist-profile-entry .therapist-profile--summary .therapist-profile__figure{
    max-width:none;
  }

  .therapist-profile-entry .therapist-profile-accordion__panel{
    grid-area:content;
    max-width:none;
    width:100%;
    min-width:0;
  }

  .therapist-profile-entry .therapist-profile-accordion__panel-inner{
    padding:0 0 clamp(1.5rem,3vw,2rem);
  }

  .profile-qa{
    max-width:none;
    margin:0;
  }
}

@media(max-width:899px){
  .profile-identity-hero__name-script{
    font-size:clamp(1.75rem,6.5vw,2.35rem);
  }
}

.therapist-profile-entry + .therapist-profile-entry{
  margin-top:clamp(3.5rem,7vw,5rem);
  padding-top:clamp(3rem,6vw,4rem);
  border-top:1px solid rgba(31,39,36,0.14);
}

.profile-hero-panel{
  margin:0 auto clamp(2.5rem,5vw,3.5rem);
  padding:clamp(2rem,4.5vw,3rem) clamp(1.5rem,3.5vw,2.75rem);
  border-radius:2px;
  background:rgba(255,255,255,0.52);
  border:1px solid rgba(255,255,255,0.55);
  box-shadow:0 12px 28px rgba(21,77,76,0.06);
}

.profile-meet-heading{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.75rem,3.2vw,2.35rem);
  font-weight:500;
  font-style:italic;
  color:var(--teal-deep,#154d4c);
  line-height:1.15;
  margin:0 0 clamp(1rem,2vw,1.35rem);
  letter-spacing:-0.01em;
}

.profile-hero-panel .therapist-profile__identity{
  margin-top:0;
}

.profile-hero-panel .therapist-profile__header{
  margin-bottom:0.35rem;
}

.profile-qa{
  display:flex;
  flex-direction:column;
  gap:clamp(1.1rem,2.25vw,1.6rem);
  width:100%;
  max-width:var(--profile-content-rail);
  margin:0 auto;
}

.profile-qa-item{
  padding:0;
  border:none;
}

.profile-qa-item .profile-qa-question{
  font-family:'DM Sans',sans-serif;
  font-size:clamp(1.02rem,1.2vw,1.1rem);
  font-weight:600;
  font-style:normal;
  letter-spacing:0.13em;
  text-transform:uppercase;
  color:var(--teal-deep,#154d4c);
  margin:0 0 clamp(0.35rem,0.75vw,0.5rem);
  line-height:1.5;
}

.profile-qa-question{
  font-family:'DM Sans',sans-serif;
  font-size:var(--rt-type-eyebrow,0.75rem);
  font-weight:600;
  letter-spacing:0.13em;
  text-transform:uppercase;
  color:var(--profile-body-label,#1a7370);
  margin:0 0 clamp(0.35rem,0.75vw,0.5rem);
  line-height:1.45;
}

.profile-qa-answer{
  font-family:'DM Sans',sans-serif;
  font-size:var(--rt-type-sans-body,1rem);
  font-weight:400;
  line-height:1.78;
  letter-spacing:0.02em;
  color:rgba(31,39,36,0.88);
  margin:0;
  max-width:none;
}

.profile-qa-answer p{
  margin:0 0 0.6rem;
}

.profile-qa-answer p:last-child{
  margin-bottom:0;
}

.profile-qa-answer ol{
  margin:0;
  padding:0 0 0 1.35rem;
  display:flex;
  flex-direction:column;
  gap:0.55rem;
}

.profile-qa-answer li{
  padding-left:0.15rem;
}

.profile-modalities{
  margin-top:clamp(2rem,4vw,2.75rem);
  padding-top:0;
  border-top:none;
  width:100%;
}

.profile-modalities .therapist-modalities{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem 0.55rem;
  margin:0;
  line-height:1.55;
}

.profile-directories{
  margin-top:clamp(2rem,4vw,2.75rem);
  padding-top:0;
  border-top:none;
  width:100%;
}

.profile-socials{
  margin-top:clamp(2rem,4vw,2.75rem);
  padding-top:0;
  border-top:none;
  width:100%;
  text-align:left;
}

.profile-socials .therapist-links{
  margin:0;
  justify-content:flex-start;
  gap:0.65rem 0.85rem;
}

.profile-socials .therapist-links--inline > li:not(:last-child)::after{
  color:rgba(31,39,36,0.32);
}

.profile-directory-row{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(1rem,2vw,1.5rem);
  align-items:center;
  justify-items:center;
}

.profile-directory-row > li{
  margin:0;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-width:0;
}

.profile-directory-badge{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:clamp(3.25rem,5vw,3.85rem);
  padding:0.35rem 0.25rem;
  text-decoration:none;
  background:transparent;
  border:none;
  border-radius:4px;
  line-height:0;
  transition:transform 0.2s ease;
}

.profile-directory-logo{
  display:block;
  height:clamp(2.15rem,3.45vw,2.7rem);
  width:auto;
  max-width:100%;
  object-fit:contain;
  object-position:center;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.6))
    drop-shadow(0 2px 8px rgba(21,77,76,0.16));
  transition:filter 0.2s ease,transform 0.2s ease;
}

.profile-directory-logo--therapyden{
  height:clamp(2.85rem,4.35vw,3.45rem);
}

.profile-directory-logo--psychology-today{
  height:clamp(1.75rem,2.85vw,2.2rem);
}

.profile-directory-logo--mental-health-match{
  height:auto;
  width:min(100%,10.5rem);
  max-height:clamp(2.85rem,4.35vw,3.4rem);
}

.profile-directory-logo--counseling-california{
  height:clamp(2.75rem,4.2vw,3.35rem);
  filter:
    brightness(0.8)
    contrast(1.3)
    saturate(1.15)
    drop-shadow(0 1px 0 rgba(255,255,255,0.55))
    drop-shadow(0 2px 8px rgba(21,77,76,0.18));
}

.profile-directory-logo--open-path{
  height:clamp(2.35rem,3.75vw,2.95rem);
}

.profile-directory-badge:hover,
.profile-directory-badge:focus-visible{
  outline:none;
  transform:translateY(-1px);
}

.profile-directory-badge:hover .profile-directory-logo,
.profile-directory-badge:focus-visible .profile-directory-logo{
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,0.85))
    drop-shadow(0 4px 14px rgba(21,77,76,0.24));
  transform:scale(1.03);
}

.profile-directory-badge:hover .profile-directory-logo--counseling-california,
.profile-directory-badge:focus-visible .profile-directory-logo--counseling-california{
  filter:
    brightness(0.86)
    contrast(1.3)
    saturate(1.15)
    drop-shadow(0 1px 1px rgba(255,255,255,0.85))
    drop-shadow(0 4px 14px rgba(21,77,76,0.24));
}

.profile-directory-badge:focus-visible{
  outline:2px solid var(--teal-vivid,#1B9BAF);
  outline-offset:4px;
  border-radius:4px;
}

@media(max-width:768px){
  body.rt-page-therapist-profile{
    --rt-about-gutter-x:1.5rem;
    --rt-about-gutter-x-end:1.5rem;
  }

  .profile-hero-panel .therapist-profile__identity{
    grid-template-columns:1fr;
  }

  .profile-hero-panel .therapist-profile__figure{
    max-width:min(100%,18rem);
  }

  .profile-directory-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:980px) and (min-width:769px){
  .profile-directory-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
