/* GoE People Directory
 * Fonts come from the theme (card names use the theme's h3 style).
 * Tweak layout with the variables below in Appearance > Customize > Additional CSS. */

.goep {
	--goep-gold: #a3946c;          /* name / credentials / links */
	--goep-border: rgba(0, 0, 0, .12);
	--goep-muted: #6b665e;
	--goep-radius: 10px;           /* photo corners */
	--goep-sidebar: 260px;         /* filter column width */
	--goep-grid-max: 760px;        /* widest the card grid gets (2 columns max) */
	--goep-gap: 2rem;              /* space between cards */
}

/* ---------- Layout ---------- */
.goep-layout {
	display: grid;
	grid-template-columns: var(--goep-sidebar) 1fr;
	gap: 3rem;
	align-items: start;
}
.goep-layout.is-collapsed { grid-template-columns: auto 1fr; }

/* ---------- Sidebar ---------- */
.goep-sidebar {
	position: sticky;
	top: 1.5rem;
	border: 1px solid var(--goep-border);
	border-radius: 6px;
}
.goep-sidebar-toggle {
	display: flex;
	align-items: center;
	gap: .4rem;
	width: 100%;
	margin: 0;
	padding: .8rem 1rem;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.goep-active-count { font-weight: 400; color: var(--goep-muted); }
.goep-chevron { margin-left: auto; }
.goep-chevron::before { content: "\2212"; }                       /* minus when open */
.is-collapsed .goep-chevron::before { content: "+"; }

/* the scrollbox */
.goep-filters {
	max-height: calc(100vh - 7rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: .25rem 1rem 1rem;
	border-top: 1px solid var(--goep-border);
}
.goep-filters[hidden] { display: none; }

/* accepting switch */
.goep-switch {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .75rem 0;
	cursor: pointer;
	font-size: .95rem;
}
.goep-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.goep-switch-track {
	position: relative;
	flex: 0 0 auto;
	width: 2.4rem;
	height: 1.35rem;
	border-radius: 999px;
	background: #cfcac0;
	transition: background .15s;
}
.goep-switch-track::after {
	content: "";
	position: absolute;
	top: .15rem;
	left: .15rem;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s;
}
.goep-switch input:checked + .goep-switch-track { background: #7d6a3c; }
.goep-switch input:checked + .goep-switch-track::after { transform: translateX(1.05rem); }
.goep-switch input:focus-visible + .goep-switch-track { outline: 2px solid #7d6a3c; outline-offset: 2px; }

/* collapsible groups */
.goep-filter-group { border-top: 1px solid var(--goep-border); }
.goep-filter-group summary {
	display: flex;
	align-items: center;
	padding: .75rem 0;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.goep-filter-group summary::-webkit-details-marker { display: none; }
.goep-filter-group summary::after { content: "+"; margin-left: auto; font-weight: 400; }
.goep-filter-group[open] summary::after { content: "\2212"; }
.goep-filter-group fieldset { border: 0; margin: 0 0 .75rem; padding: 0; min-width: 0; }
.goep-filter-group label {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	margin: 0 0 .4rem;
	font-size: .92rem;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}
.goep-filter-group input[type="checkbox"] { flex: 0 0 auto; margin: .2rem 0 0; }
.goep-filter-group label span { flex: 1 1 auto; }

.goep-reset {
	margin-top: .5rem;
	background: none;
	border: 1px solid var(--goep-border);
	border-radius: 999px;
	padding: .4rem 1rem;
	color: inherit;
	font: inherit;
	font-size: .9rem;
	cursor: pointer;
}
.goep-reset[hidden] { display: none; }
.goep-reset:hover,
.goep-reset:focus-visible { border-color: var(--goep-gold); color: var(--goep-gold); }

/* ---------- Results ---------- */
.goep-count { margin: 0 0 1.5rem; color: var(--goep-muted); font-size: .92rem; }

.goep-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--goep-gap);
	max-width: var(--goep-grid-max);
}
@media (max-width: 560px) {
	.goep-grid { grid-template-columns: 1fr; max-width: 380px; }
}

.goep-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--goep-border);
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: border-color .15s;
}
.goep-card[hidden] { display: none; }
.goep-card:hover { border-color: var(--goep-gold); }
.goep-card:focus-visible { outline: 2px solid var(--goep-gold); outline-offset: 3px; }

.goep-card-text { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-width: 0; }
.goep-card-name { margin: 0; color: var(--goep-gold); }
.goep-card-sub { color: var(--goep-gold); font-style: italic; line-height: 1.35; }
.goep-card-status { display: block; margin-top: .25rem; }

.goep-card-media { display: block; margin-top: auto; } /* photos line up at the bottom */
.goep-card-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--goep-radius);
}

.goep-empty {
	padding: 2.5rem 1rem;
	text-align: center;
	color: var(--goep-muted);
	border: 1px dashed var(--goep-border);
	border-radius: 6px;
}
.goep-empty[hidden] { display: none; }

@media (max-width: 800px) {
	.goep-layout,
	.goep-layout.is-collapsed { grid-template-columns: 1fr; gap: 1.5rem; }
	.goep-sidebar { position: static; }
	.goep-filters { max-height: 60vh; }
}


/* ---------- Accepting pill (cards + profile) ----------
 * Filled = accepting, outlined = not. Gold is a darker shade of the
 * theme's button color so the text stays readable. */
.goep-pill {
	--goep-pill: #7d6a3c;
	display: inline-block;
	padding: .25em .9em;
	border: 1px solid var(--goep-pill);
	border-radius: 999px;
	font-size: .85em;
	font-weight: 600;
	line-height: 1.4;
}
.goep-pill.is-yes { background: var(--goep-pill); color: #fff; }
.goep-pill.is-no  { background: transparent; color: var(--goep-pill); }
.goep-info-status { margin-bottom: .75em !important; }

/* ---------- Profile pages ----------
 * Everything else on profile pages uses the theme's own styles. */

/* Hide the theme's post date badge on profile pages. */
.single-therapist .custom-date,
.single-staff .custom-date,
.single-therapist .entry-meta,
.single-staff .entry-meta,
.single-therapist .entry-footer,
.single-staff .entry-footer {
	display: none;
}

.single-therapist .entry-content::after,
.single-staff .entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.goep-signature { clear: both; }

.goep-info {
	display: flow-root; /* sits beside a floated headshot instead of under it */
	margin: 1.5em 0 2em;
	padding: 1.25em 1.5em;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 4px;
}
.goep-info p { margin: 0 0 .5em; }
.goep-info p:last-child { margin-bottom: 0; }
