/**
 * Public/front-end styles (grids, profile, accordion, block shell fallbacks).
 */


/* Grid: shortcodes use .staff-member-listing; theme archives may use .type-staff-member on posts. */
.staff-member-listing,
.type-staff-member {
	display: grid;
	gap: 2rem 4rem;
}

@supports (width: min(240px, 100%)) {

	/* Center items; cap card width so a single column does not stretch edge-to-edge on desktop. */
	.staff-member-listing {
		grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
		justify-items: center;
	}

	.staff-member-listing > .staff-member {
		width: 100%;
		max-width: min(100%, 20rem);
	}

}

/* Photo: one class from template-figure.php (listings + single). */
.staff-figure {
	display: flex;
	flex-direction: column;
}

.staff-member-listing .staff-figure {
	margin: 0 0 1em;
}

.staff-figure-media {
	aspect-ratio: 1 / 1;
	width: 100%;
	overflow: hidden;
}

.staff-figure-media > * {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.staff-meta * {
	margin: 0.375em 0;
	line-height: 1;
}

.staff-meta *:not(.staff-member-name) {
	line-height: 1.2;
	font-size: 1rem;
	font-weight: normal;
}

.staff-meta a {
	text-decoration: none;
}

.staff-profile-link {
	margin: 0.5rem 0 0;
	padding: 0;
	font-size: 0.875rem;
}

.staff-profile-link a {
	text-decoration: underline;
}

.staff-member-directory .staff-profile-link {
	display: inline;
	margin: 0;
	font-size: inherit;
}

.staff-member .degree {
	font-size: 0.9em;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership {
	display: grid;
	row-gap: var(--wp--preset--spacing--xx-large);
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile {
	--leadership-profile-gap: clamp(1.5rem, 4vw, 3.5rem);
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: var(--leadership-profile-gap);
	align-items: start;
	margin: 0;
	padding: 0;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile:first-child {
	padding-top: 0;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__image {
	width: 220px;
	max-width: 220px;
	margin: 0;
	overflow: hidden;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__content {
	min-width: 0;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile--no-image .leadership-profile__content {
	grid-column: 1 / -1;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__image-img {
	display: block;
	width: 220px;
	height: 275px;
	max-width: none;
	object-fit: cover;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__name {
	margin: 0;
	line-height: 1.15;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__title {
	margin: 0.2rem 0 0;
	line-height: 1.25;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__bio {
	margin-top: clamp(0.875rem, 1.5vw, 1.25rem);
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__bio,
.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__bio * {
	line-height: 1.55;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__bio > :first-child {
	margin-top: 0;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__bio > :last-child {
	margin-bottom: 0;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__separator {
	width: 100%;
	margin-top: clamp(1rem, 2vw, 1.5rem);
	border-top: 1px solid var(--wp--preset--color--primary, #2E94E5);
	color: var(--wp--preset--color--primary, #2E94E5);
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__separator::after {
	content: "- -";
	display: block;
	margin-top: 0.65rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more {
	display: block;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more::after {
	content: none;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more-button {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.65rem 0 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--primary, #2E94E5);
	cursor: pointer;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
	text-decoration: none;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more-button:hover,
.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more-button:focus-visible {
	color: #000;
	text-decoration: none;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more-button[aria-expanded="true"] {
	color: #000;
	text-decoration: none;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 0.25rem;
}

.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__read-more-symbol {
	min-width: 1.8em;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-align: left;
}

@media (max-width: 781px) {

	.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile {
		--leadership-profile-gap: 1.5rem;
		grid-template-columns: 1fr;
	}

	.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__image,
	.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__image-img {
		width: min(220px, 100%);
		max-width: 100%;
	}

	.wp-block-supersimple-staff-profiles.has-layout-leadership .leadership-profile__image-img {
		aspect-ratio: 4 / 5;
		height: auto;
	}

}

.wp-block-supersimple-staff-profiles.has-layout-single {
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 4vw, 2.5rem);
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding-bottom: clamp(1.5rem, 3vw, 2rem);
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__image-img {
	display: block;
	width: min(100%, 20rem);
	height: auto;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__name {
	margin: 0;
	line-height: 1.15;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__name-degree {
	font-size: 0.9em;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__title {
	margin: 0.35rem 0 0;
	line-height: 1.25;
}

.wp-block-supersimple-staff-profiles .leadership-profile__title,
.wp-block-supersimple-staff-profiles .staff-member-title {
	color: var(--wp--preset--color--primary, #2E94E5);
	font-size: 0.875rem;
	line-height: 1.2;
	font-weight: 600;
	margin-block-start: 0.2rem;
	margin-block-end: clamp(1rem, 2vw, 1.5rem);
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__content-link:empty {
	display: none;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__bio,
.wp-block-supersimple-staff-profiles .staff-profiles-card__bio {
	margin-top: 0.875rem;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__bio,
.wp-block-supersimple-staff-profiles .staff-profiles-list-item__bio *,
.wp-block-supersimple-staff-profiles .staff-profiles-card__bio,
.wp-block-supersimple-staff-profiles .staff-profiles-card__bio * {
	line-height: 1.55;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__bio > :first-child,
.wp-block-supersimple-staff-profiles .staff-profiles-card__bio > :first-child {
	margin-top: 0;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__bio > :last-child,
.wp-block-supersimple-staff-profiles .staff-profiles-card__bio > :last-child {
	margin-bottom: 0;
}

.wp-block-supersimple-staff-profiles .staff-profiles-list-item__content-link .staff-profile-link {
	margin-top: 0.5rem;
}

.wp-block-supersimple-staff-profiles .staff-profiles-read-more__full[hidden],
.wp-block-supersimple-staff-profiles .staff-profiles-read-more__preview[hidden] {
	display: none;
}

.wp-block-supersimple-staff-profiles .staff-profiles-read-more__button {
	margin-top: 0.875rem;
	cursor: pointer;
}


/* Automatic shell when theme header/footer parts are missing (block themes) */

.supersimple-staff-shell-fallback--header {
	padding-top: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.supersimple-staff-shell-fallback--footer {
	padding-top: 2rem;
	padding-bottom: 2rem;
	margin-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	opacity: 0.9;
	font-size: 0.9375rem;
}

.supersimple-staff-main {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

/* SINGLE PROFILE — .staff-profile; contact rows: table.staff-contact tr.email / tr.phone */

.staff-profile {
	--staff-profile-gap: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--staff-profile-gap);
	max-width: 56rem;
	margin-inline: auto;
}

/* Sidebar-style column: photo | text (stacks when narrow). */
.staff-profile > .staff-figure {
	flex-basis: min(18rem, 100%);
	flex-grow: 1;
	margin: 0;
	max-width: 100%;
}

.staff-profile > div {
	flex-grow: 999;
	flex-basis: 0;
	min-width: 0;
	min-inline-size: min(100%, 20rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.staff-profile header h1 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	margin: 0 0 0.25em;
}

.staff-profile header p {
	font-size: 1.125rem;
	margin: 0;
	opacity: 0.9;
}

.staff-profile p:empty {
	display: none;
}

.staff-profile .staff-contact {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.staff-profile .staff-contact th {
	width: 5rem;
	padding: 0 0.5rem 0.5em 0;
	text-align: start;
	font-weight: 600;
	vertical-align: baseline;
}

.staff-profile .staff-contact td {
	padding: 0 0 0.5em 0;
	vertical-align: baseline;
}

.staff-profile .staff-contact tr:last-child th,
.staff-profile .staff-contact tr:last-child td {
	padding-bottom: 0;
}

.staff-profile .staff-profile-link {
	margin: 0;
}

.staff-profile .entry-content {
	margin: 0;
}

.staff-profile > .staff-figure > .staff-member-edit {
	margin: 0.35rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	text-align: center;
}

/* Theme-injected icons next to meta (not plugin markup on singles). */
.single-staff-member .staff-meta svg {
	width: 18px;
	height: 18px;
	margin-right: 5px;
}


/* ACCORDION — <details> / <summary> */

.ss-staff-accordion {
	margin: 0.5rem 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.6);
}

.ss-staff-accordion__summary {
	cursor: pointer;
	list-style: none;
	padding: 0.75rem 1rem;
	font-weight: 600;
	opacity: 0.85;
}

.ss-staff-accordion__summary::-webkit-details-marker {
	display: none;
}

.ss-staff-accordion__summary::before {
	content: '+';
	display: inline-block;
	width: 1.25em;
	opacity: 0.5;
	font-weight: normal;
}

.ss-staff-accordion[open] .ss-staff-accordion__summary {
	opacity: 1;
}

.ss-staff-accordion[open] .ss-staff-accordion__summary::before {
	content: '–';
}

.ss-staff-accordion__panel {
	padding: 0 1rem 1rem;
}

.staff-member-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.staff-member-directory {
	font-size: 14px;
	max-width: none;
}

.staff-member-directory th a + a {
	font-weight: normal;
	float: right;
	opacity: 0.5;
}

.staff-member-directory th, .staff-member-directory td {
	border: none;
	border-bottom: 1px solid #ddd;
}
