/* Public profile details: shared foundations, practitioner cards and editorial organisations. */
.profile-detail-design:is(.psy-profile-page,.org-detail) {
  --profile-blue: #2b59c3;
  --profile-blue-hover: #1f449c;
  --profile-blue-ink: #12233f;
  --profile-blue-soft: #edf3fe;
  --profile-teal-ink: #194685;
  --profile-teal-soft: #f0f5fe;
  --profile-teal-line: #dce7fa;
  --profile-turquoise: #2b59c3;
  color: #12233f;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) {
  box-sizing: border-box;
  display: block;
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 24px 48px;
  padding-block-start: 0!important;
}
.app-main-profile-detail>.explore-nav {
  padding-top: 12px;
  margin-bottom: 4px;
}
.profile-detail-design.psy-profile-page>.psy-profile-breadcrumbs {
  margin-block: 0 10px!important;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) .psy-profile-container {
  max-width: none;
  width: 100%;
  padding: 0!important;
  margin: 0;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-main,.psy-profile-panel,.org-panel) {
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(18,35,63,.04);
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-hero,.org-profile-card) {
  border: 1px solid #dce4f0;
  border-radius: 16px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18,35,63,.04);
}
.profile-detail-design:is(.psy-profile-page,.org-detail) .org-profile-card::before {
  display: none;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-name,.org-profile-intro h1) {
  font-size: clamp(1.6rem,3.2vw,2.3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: #12233f;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-eyebrow,.org-type) {
  color: #2b59c3;
  background: #edf3fe;
  border-color: #dce7fa;
  font-size: .8rem;
  letter-spacing: .03em;
  border-radius: 6px;
  padding: 5px 9px;
  box-shadow: none;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-photo-lg,.org-brand-large) {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid #dce4f0;
  background: #f0f5fe;
  box-shadow: none;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) .org-brand-large img {
  object-fit: contain;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) .psy-profile-hero>.psy-profile-intro {
  padding: 20px;
  background: #f0f5fe;
  border: 1px solid #dce7fa;
  border-inline-start: 3px solid #2b59c3;
  border-radius: 12px;
  color: #43536b;
  font-size: 1rem;
  line-height: 1.75;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-panel h2,.psy-profile-main h2,.org-panel-head h2) {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #12233f;
  font-weight: 750;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-section-icon-badge,.org-panel-icon,.psy-fact-icon) {
  background: #edf3fe;
  color: #2b59c3;
  border-radius: 10px;
  box-shadow: none;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-action-btn,.org-hero-cta) {
  border-radius: 10px;
  min-height: 44px;
  box-shadow: none;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-action-book,.org-cta-primary) {
  background: #2b59c3;
  border-color: #2b59c3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(43,89,195,.14);
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-action-book,.org-cta-primary):hover {
  background: #1f449c;
  border-color: #1f449c;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-fact-card,.org-branch-card) {
  background: #f8fafd;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  box-shadow: none;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.org-prose,.psy-rich-prose,.psy-demo-content,.org-lead-summary) {
  color: #43536b;
  line-height: 1.8;
}
.profile-detail-design:is(.psy-profile-page,.org-detail) :is(.org-section-nav,.psy-profile-anchor-nav) {
  background: #fff;
  border: 1px solid #cfd8e6;
  box-shadow: none;
  border-radius: 12px;
}

/* Practitioner detail: catalogue cards and a balanced content area. */
.profile-detail-design .psy-profile-redesign {
  --profile-blue: #2b59c3;
  --profile-blue-hover: #1f449c;
  --profile-blue-ink: #12233f;
  --profile-blue-soft: #edf3fe;
  --profile-teal-ink: #194685;
  --profile-teal-soft: #f0f5fe;
  --profile-teal-line: #dce7fa;
  --profile-turquoise: #2b59c3;
}
.profile-detail-design.psy-profile-page .psy-profile-hero {
  background: linear-gradient(135deg,#fff 65%,#f0f5fe);
}
.profile-detail-design.psy-profile-page .psy-profile-layout {
  gap: 24px;
}

/* Organisation detail: open masthead and editorial reading column. */
.profile-detail-design.org-detail .org-profile-card {
  padding: 12px 0 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfd8e6;
  border-radius: 0;
  box-shadow: none;
}
.profile-detail-design.org-detail .org-profile-intro h1 {
  font-size: clamp(1.8rem,3.5vw,2.65rem);
}
.profile-detail-design.org-detail .org-profile-grid {
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 36px;
}
.profile-detail-design.org-detail .org-profile-main>.org-panel {
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid #e1e7f0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.profile-detail-design.org-detail .org-brand-large {
  width: 96px;
  height: 96px;
}
[dir="rtl"] .profile-detail-design:is(.psy-profile-page,.org-detail) :is(h1,.psy-profile-eyebrow,.org-type) {
  letter-spacing: normal;
}

@media(max-width:900px) {
  .profile-detail-design.org-detail .org-profile-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
  }
}

@media(max-width:680px) {
  .profile-detail-design:is(.psy-profile-page,.org-detail) {
    padding: 0 12px 80px;
  }
  .profile-detail-design.psy-profile-page>.psy-profile-breadcrumbs {
    margin-inline: 0!important;
  }
  .profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-main,.psy-profile-panel,.org-panel,.psy-profile-hero,.org-profile-card) {
    padding: 20px 16px;
  }
  .profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-photo-lg,.org-brand-large) {
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }
  .profile-detail-design:is(.psy-profile-page,.org-detail) .psy-profile-hero {
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
  }
  .profile-detail-design:is(.psy-profile-page,.org-detail) .psy-profile-header-wrap {
    gap: 12px;
  }
  .profile-detail-design:is(.psy-profile-page,.org-detail) :is(.psy-profile-name,.org-profile-intro h1) {
    font-size: 1.45rem;
    line-height: 1.4;
  }
  .profile-detail-design.org-detail .org-profile-card {
    padding: 8px 0 24px;
  }
  .profile-detail-design.org-detail .org-profile-main>.org-panel {
    padding: 24px 0;
  }
}

/* Semantic colours; neutral verification states keep their existing palette. */
.profile-detail-design.psy-profile-page .psy-chip.psy-verification-professional_verified,
.profile-detail-design.org-detail .org-badge-verified {
  background: #eaf7ef;
  color: #216441;
  border-color: #b9dfc7;
}
.profile-detail-design.psy-profile-page .psy-chip.psy-verification-contact_verified,
.profile-detail-design.org-detail .org-badge-partial {
  background: #fff7db;
  color: #805b0c;
  border-color: #ebd58c;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-action-wa {
  background: #edf8f1;
  color: #256b45;
  border-color: #c6e4d1;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-action-wa:hover {
  background: #def1e5;
  border-color: #a8d4b9;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-action-call {
  background: #edf5fc;
  color: #285c85;
  border-color: #cbdfee;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-specialty-link {
  color: #2c696b;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-extra-specialties a {
  background: #edf6f5;
  color: #326765;
  border-color: #cce1df;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-fact-languages .psy-fact-icon {
  background: #f0edfa;
  color: #67509b;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-fact-address .psy-fact-icon {
  background: #e8f5f2;
  color: #2c7267;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-faq-icon {
  color: #8b6b23;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-group-panel .psy-section-icon-badge {
  background: #e8f5f2;
  color: #2c7267;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-program-panel .psy-section-icon-badge {
  background: #f0edfa;
  color: #67509b;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-facts-grid {
  border-top: 3px solid #badcd3;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-map-panel {
  border-top: 3px solid #b9d6eb;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-rich-bio {
  border-top: 3px solid #c7d7f0;
}
.profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-hero>.psy-profile-intro {
  background: #f0f7f7;
  border-color: #d5e6e4;
  border-inline-start-color: #6ca8a1;
}

/* Explicit mobile rows prevent a tall portrait/intro from stretching the header. */

@media(max-width:680px) {
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-header-wrap {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr);
    grid-template-rows: auto auto;
    align-items: start;
    align-content: start;
    align-self: start;
    gap: 6px 12px;
    min-width: 0;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-header-info {
    display: contents;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-header-wrap>.psy-profile-photo-lg {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 64px;
    height: 80px;
    flex-basis: 64px;
    align-self: start;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-eyebrow {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0!important;
    padding: 4px 7px;
    font-size: .6rem!important;
    line-height: 1.4;
    letter-spacing: .04em;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-title-row {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    margin: 0;
    gap: 5px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-name {
    font-size: clamp(1.15rem,4.8vw,1.5rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-specialty-line {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    min-width: 0;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-specialty-link {
    display: inline-grid;
    grid-template-columns: 14px minmax(0,1fr) 8px;
    max-width: 100%;
    font-size: .82rem;
    line-height: 1.5;
    gap: 6px;
    white-space: normal;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-header-wrap .psy-profile-extra-specialties {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 2px 0 0;
    gap: 5px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-extra-specialties a {
    font-size: .76rem;
    padding: 4px 8px;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-meta-row {
    grid-column: 1 / -1;
    grid-row: 5;
    margin: 5px 0 0;
    gap: 6px 14px;
    font-size: .78rem;
  }
  .profile-detail-design.psy-profile-page .psy-profile-redesign .psy-profile-header-wrap .psy-card-chips-wrap {
    grid-column: 1 / -1;
    grid-row: 6;
    margin-top: 5px!important;
    gap: 6px;
  }
}

/* Compact organisation overview and actions; website belongs to the sidebar. */
.profile-detail-design.org-detail .org-hero-cta-bar {
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}
.profile-detail-design.org-detail .org-hero-cta {
  min-height: 44px;
  padding: 8px 12px;
  font-size: .82rem;
  line-height: 1.35;
  justify-content: center;
}
.profile-detail-design.org-detail .org-essentials {
  padding: 16px 18px;
  margin: 14px 0 10px;
  border-radius: 12px;
}
.profile-detail-design.org-detail .org-essentials h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  line-height: 1.4;
}
.profile-detail-design.org-detail .org-essentials-grid {
  gap: 12px 18px;
  margin: 0 0 6px;
}
.profile-detail-design.org-detail .org-essentials dt {
  font-size: .74rem;
  line-height: 1.45;
  margin-bottom: 3px;
}
.profile-detail-design.org-detail .org-essentials dd {
  font-size: .8rem;
  line-height: 1.5;
}
.profile-detail-design.org-detail .org-essentials>.org-text-link {
  font-size: .78rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media(max-width:640px) {
  .profile-detail-design.org-detail .org-hero-cta-bar {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-top: 4px;
    padding-top: 12px;
  }
  .profile-detail-design.org-detail .org-hero-cta {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    font-size: .78rem;
    white-space: normal;
  }
  .profile-detail-design.org-detail .org-cta-ghost {
    grid-column: 1 / -1;
    min-height: 40px;
    padding: 6px 8px;
  }
  .profile-detail-design.org-detail .org-essentials {
    padding: 14px;
    margin: 12px 0 10px;
  }
  .profile-detail-design.org-detail .org-essentials-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 9px;
    margin-bottom: 3px;
  }
  .profile-detail-design.org-detail .org-essentials-grid>div {
    display: grid;
    grid-template-columns: 94px minmax(0,1fr);
    gap: 8px;
    align-items: baseline;
  }
  .profile-detail-design.org-detail .org-essentials dt {
    margin: 0;
    font-size: .72rem;
  }
  .profile-detail-design.org-detail .org-essentials dd {
    font-size: .78rem;
    line-height: 1.5;
  }
  .profile-detail-design.org-detail .org-essentials>.org-text-link {
    min-height: 40px;
  }
}
