/* Single team member pages only (enqueued from enqueue_assets() in functions.php). */
.team_member h1 {
    line-height: 1;
    margin-bottom: 0;
}

/* Layout: photo / badge / check-in on the left, name and bio on the right (content-team_member.php). */
.team-member-layout {
	display: grid;
	gap: 2rem;
}
@media (min-width: 768px) {
	.team-member-layout {
		grid-template-columns: minmax(200px, 300px) 1fr;
		align-items: start;
	}
}
.team-member-side .image-wrapper {
	position: relative;
	max-width: 300px;
	margin-inline: auto;
}
.team-member-side .profile > img {
	width: 100%;
	height: auto;
	border-radius: 50%;
	border: 2px solid var(--purple);
}
.team-member-single.gold .profile > img {
	border-color: var(--gold);
}
.team-member-side .cert-badge {
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	height: 100px;
	margin: 0;
}
.team-member-side .cert-badge a {
	display: block;
}
.team-member-side .checkin {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 20px;
	margin: 1rem 0 0;
}
.team-member-side .checkin > span {
	font-size: 14px;
	line-height: 1.1;
	text-align: center;
}
.team-member-side .checkin .btn-blue {
	font-size: 14px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 4px 8px;
	background-color: var(--teal);
    border-radius: 6px;
}
.team-member-side .checkin .btn-blue:hover,
.team-member-side .checkin .btn-blue:focus {
	background-color: var(--teal-hover);
}
.team-member-main .entry-header h1 {
    font-size: clamp(1.75rem, 1.18rem + 2.84vw, 3rem);
}
.purple .team-member-main .entry-header h1 { color: var(--purple);}
.gold .team-member-main .entry-header h1 { color: var(--gold);}
.team-member-main .entry-header h1 > em {
    display: inline;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

.team-member-main .degree {
    margin-top: .75em;
	margin-bottom: .75em;
	font-size: 22px;
}
.team-member-main .degree > i {
    font-style: italic;
    font-size: 16px;
}
.team-member-main .ages,
.team-member-main .locations {margin-bottom: .75em;}
.team-member-main .ages .label {
	font-weight: 600;
}

/* Sections under the bio: Favorite Referrals, Training & Credentials, Treatment Types. */
.team-section {
	margin-top: 2rem;
}
.team-section > h2 {
	font-size: 1.4em;
	margin-bottom: .5em;
}
.team-section .team-certificate .cert-badge {
	width: 150px;
	margin: -1rem 0 0 auto;
}
.team-section .team-certificate .cert-badge a {
	display: block;
}

/* Panels (white <section>s come from theme.css; these set what goes inside them). */
.team-member-sections > .team-panel {
	margin-bottom: 0;
}
.team-member-sections > .team-panel:after {
    content: "";
    display: block;
    clear: both;
}
.team-member-main .locations .label {
	font-weight: 700;
}
.team-excerpt > :last-child {
	margin-bottom: 0;
}
.team-details {
	display: grid;
	gap: 2rem;
}
@media (min-width: 600px) {
    .treatment-types {
        columns: 2;
        column-gap: 2rem;
    }
}
@media (min-width: 768px) {
	.team-details {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
    .treatment-types {
        columns: 3;
    }
	/* A lone block (the other field is empty) spans the full width. */
	.team-details > .team-section:only-child {
		grid-column: 1 / -1;
	}
}
.team-treatment .team-section + .team-section {
	margin-top: 2rem;
}
.team-section > h2 {
	margin-top: 0;
}

/* Call to action, copied from the home page's "Getting Started" section. */
.team-cta .cta-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 30px;
	padding: 1rem 0 2rem;
}
.team-cta .cta-card {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px;
	border-radius: 12px;
	background-color: var(--purple-light);
}
.team-cta .cta-card h3 {
	margin: 0 0 .5rem;
	font-size: 2rem;
	font-weight: 700;
	color: #df952d;
}
.team-cta .cta-card p {
	margin-bottom: 1rem;
}
.team-cta .cta-card .button-gold {
	margin-top: auto;
}
.team-cta .cta-closing {
	max-width: 530px;
	margin: 0 auto 1rem;
	text-align: center;
}
.team-cta .cta-closing:first-of-type {
	font-size: 20px;
}
.team-panel .team-section {
	margin-top: 0;
}
.team-treatment .team-section + .team-section {
	margin-top: 2rem;
}


/* The "Team Member CTA" element (GP block element on generate_after_content) lands in
   .inside-article after .entry-content, so it misses the .entry-content section panel rules
   in theme.css. Same panel look, same gap above it. */
:where(.team-member-single .inside-article > section) {
	background-color: var(--ppinc-panel-bg);
	padding: var(--ppinc-panel-pad);
	border-radius: var(--ppinc-panel-radius);
	margin-top: var(--ppinc-panel-gap);
}


/*psych today badges */
.inside-article {position: relative;}
.inside-article .sx-verified-seal {
    float: none!important;
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
}
@media (min-width: 765px) {
    .inside-article .sx-verified-seal {
        right: 50px;
        transform: translateX(0px);

    }
}