/**
 * Therapist directory frontend styling.
 *
 * Same approach as assets/css/quiz.css: theme CSS custom properties
 * with hardcoded fallbacks, so this doesn't hard-depend on the
 * `mentaladvices` theme being active.
 *
 * Loaded only on therapist/specialty/location views.
 */

.therapist-breadcrumbs {
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	color: var( --color-ink-soft, #4b5157 );
}

.therapist-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.therapist-breadcrumbs__list li:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: var( --color-line, #ddddd5 );
}

.therapist-breadcrumbs a {
	color: var( --color-ink-soft, #4b5157 );
	text-decoration: none;
}

.therapist-breadcrumbs a:hover,
.therapist-breadcrumbs a:focus-visible {
	color: var( --color-accent, #2f5d57 );
}

/* Filters */
.therapist-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var( --color-line, #ddddd5 );
	border-radius: 8px;
	margin-bottom: 2rem;
}

.therapist-filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.875rem;
}

.therapist-filters__field select {
	padding: 0.5rem;
	border: 1px solid var( --color-line, #ddddd5 );
	border-radius: 6px;
	background-color: var( --color-surface, #fff );
	color: var( --color-ink, #23272b );
}

.therapist-filters__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.therapist-filters__submit {
	padding: 0.55rem 1.25rem;
	border-radius: 6px;
	border: none;
	background-color: var( --color-accent, #2f5d57 );
	color: #fff;
	cursor: pointer;
	font-size: 0.875rem;
}

.therapist-filters__submit:hover {
	background-color: #24473f;
}

.therapist-filters__clear {
	font-size: 0.875rem;
	color: var( --color-ink-soft, #4b5157 );
}

/* Sub-locations */
.therapist-sublocations {
	margin-bottom: 2rem;
}

.therapist-sublocations__label {
	font-size: 0.875rem;
	color: var( --color-ink-soft, #4b5157 );
	margin-bottom: 0.5rem;
}

.therapist-sublocations ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.therapist-sublocations a {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border: 1px solid var( --color-line, #ddddd5 );
	border-radius: 999px;
	font-size: 0.8125rem;
	text-decoration: none;
	color: var( --color-ink, #23272b );
}

.therapist-sublocations a:hover,
.therapist-sublocations a:focus-visible {
	border-color: var( --color-accent, #2f5d57 );
	color: var( --color-accent, #2f5d57 );
}

/* Grid + card */
.therapist-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.therapist-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var( --color-line, #ddddd5 );
	border-radius: 8px;
	overflow: hidden;
	background-color: var( --color-surface, #fff );
}

.therapist-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: var( --color-accent-soft, #e3ece9 );
}

.therapist-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.therapist-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.therapist-card__name {
	margin-bottom: 0.25rem;
}

.therapist-card__name a {
	text-decoration: none;
	color: var( --color-ink, #23272b );
}

.therapist-card__title {
	color: var( --color-accent, #2f5d57 );
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

.therapist-card__location {
	font-size: 0.8125rem;
	color: var( --color-ink-soft, #4b5157 );
	margin-bottom: 0.5rem;
}

.therapist-card__specialties {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.therapist-card__specialties li {
	font-size: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background-color: var( --color-accent-soft, #e3ece9 );
	color: var( --color-ink, #23272b );
}

.therapist-card__intro {
	font-size: 0.875rem;
	color: var( --color-ink-soft, #4b5157 );
	flex: 1;
	margin-bottom: 1rem;
}

.therapist-card__cta {
	align-self: flex-start;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	background-color: var( --color-accent, #2f5d57 );
	color: #fff;
	text-decoration: none;
	font-size: 0.875rem;
}

.therapist-card__cta:hover {
	background-color: #24473f;
}

/* Empty states */
.therapist-empty-notice {
	color: var( --color-ink-soft, #4b5157 );
	padding: 1.5rem;
	border: 1px dashed var( --color-line, #ddddd5 );
	border-radius: 8px;
	text-align: center;
}

/* Directory disclaimer (shared: archive, taxonomy, single) */
.therapist-directory-disclaimer {
	border: 1px solid var( --color-line, #ddddd5 );
	border-left: 3px solid var( --color-accent, #2f5d57 );
	border-radius: 4px;
	padding: 0.75rem 1rem;
	margin-top: 2rem;
	font-size: 0.8125rem;
	color: var( --color-ink-soft, #4b5157 );
}

.therapist-directory-disclaimer p {
	margin: 0;
}

/* Single profile */
.therapist-profile {
	padding-block: 2rem 4rem;
}

.therapist-profile__header {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.therapist-profile__photo {
	flex-shrink: 0;
	width: 120px;
	border-radius: 8px;
	overflow: hidden;
}

.therapist-profile__photo img {
	width: 100%;
	height: auto;
	display: block;
}

.therapist-profile__title {
	color: var( --color-accent, #2f5d57 );
	margin-bottom: 0.5rem;
}

.therapist-profile__location {
	font-size: 0.9375rem;
	color: var( --color-ink-soft, #4b5157 );
	margin-bottom: 0.75rem;
}

.therapist-profile__location a {
	color: inherit;
	text-decoration: underline;
}

.therapist-profile__specialties {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.therapist-profile__specialties a {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background-color: var( --color-accent-soft, #e3ece9 );
	color: var( --color-ink, #23272b );
	text-decoration: none;
	font-size: 0.8125rem;
}

.therapist-profile__intro {
	font-family: var( --font-serif, Georgia, serif );
	font-size: 1.125rem;
	color: var( --color-ink-soft, #4b5157 );
	line-height: 1.7;
	margin-bottom: 2rem;
}

.therapist-profile__section {
	margin-bottom: 2.5rem;
}

.therapist-profile__content {
	line-height: 1.7;
}

.therapist-profile__facts {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.therapist-profile__license-caption {
	font-size: 0.8125rem;
	color: var( --color-ink-soft, #4b5157 );
	font-style: italic;
}

.therapist-profile__areas {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.therapist-profile__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.therapist-profile__contact a {
	color: var( --color-accent, #2f5d57 );
}

.therapist-profile__back {
	margin-top: 1rem;
}

/* Responsive */
@media ( max-width: 39.99em ) {
	.therapist-profile__header {
		flex-direction: column;
	}

	.therapist-profile__photo {
		width: 96px;
	}
}

@media ( min-width: 48em ) {
	.therapist-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 64em ) {
	.therapist-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}
