/* SRA Facilitator Bio, Profile Form, and Facilitator Index */

/* ── Shared layout ────────────────────────────────────────── */
.sra-facilitator-bio,
.sra-facilitator-profile,
.sra-facilitator-index {
	font-family: 'Jost', sans-serif;
	color: var(--charcoal);
	max-width: 800px;
	margin: 0 auto;
	padding: 1rem 0 3rem;
}

/* /facilitator/{slug}/ is rewrite-intercepted by FacilitatorBio::
   maybe_render() and skips page.php's standard
   <div style="padding-top: 100px;"> wrapper. Without this override,
   the bio header clips under the fixed .site-nav. 100px matches the
   inline value in page.php (sra-theme); update both if either moves.
   /facilitators/ index doesn't need this — it goes through page.php
   and inherits the wrapper. Same for the profile (.dashboard-layout
   handles its own 65px top offset). */
.sra-facilitator-bio {
	padding-top: 100px;
}

/* ── Bio Header ───────────────────────────────────────────── */
.sra-bio-header {
	display: flex;
	gap: 1.75rem;
	align-items: flex-start;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--fog);
}

.sra-bio-photo-wrap {
	flex-shrink: 0;
}

.sra-bio-photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--fog);
}

.sra-bio-identity {
	flex: 1;
}

.sra-bio-name {
	font-family: 'Cormorant Garamond', serif;
	font-size: 2rem;
	font-weight: 700;
	color: var(--forest-deep);
	margin: 0 0 0.4rem;
	line-height: 1.2;
}

.sra-bio-pronouns {
	font-family: 'Jost', sans-serif;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--warm-stone);
	margin-left: 0.5rem;
}

/* Tagline sits directly under the name. Italic Cormorant Garamond,
   moss color — distinguishes voice/tone from the rest of the
   metadata. Replaces the older .sra-facilitator-card-tagline class
   that bled in from the index-card pattern. */
.sra-bio-tagline {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 400;
	font-size: 1.15rem;
	color: var(--moss);
	margin: 0.4rem 0 0.85rem;
	line-height: 1.4;
}

/* Compact metadata row: location · languages on a single line with
   dot separators. Replaces the previous stack of three plain <p>
   tags so the header reads as a single block rather than scattered
   loose lines. */
.sra-bio-meta {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	font-size: 0.9rem;
	color: var(--bark);
}

.sra-bio-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.sra-bio-meta__item + .sra-bio-meta__item {
	position: relative;
	padding-left: 1rem;
}
.sra-bio-meta__item + .sra-bio-meta__item::before {
	/* CSS unicode escape (U+00B7 MIDDLE DOT) — survives any file
	   encoding / Content-Type charset misconfiguration. The literal
	   '·' rendered as 'Â·' under a Latin-1 fallback. */
	content: '\00B7';
	position: absolute;
	left: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--warm-stone);
	font-weight: 700;
}

.sra-bio-meta__icon {
	width: 14px;
	height: 14px;
	color: var(--moss);
	flex-shrink: 0;
}

.sra-bio-meta__label {
	color: var(--warm-stone);
	font-weight: 500;
}

/* ── Bio Body ─────────────────────────────────────────────── */
.sra-bio-body {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--charcoal);
	margin-bottom: 2.5rem;
}

.sra-bio-body p {
	margin: 0 0 1em;
}

/* ── Credentials ──────────────────────────────────────────── */
.sra-bio-credentials {
	margin-bottom: 2.5rem;
}

.sra-bio-credentials h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--forest-mid);
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--fog);
}

.sra-bio-credentials div {
	font-size: 0.9rem;
	color: var(--charcoal);
	line-height: 1.65;
}

/* ── Offerings ────────────────────────────────────────────── */
.sra-bio-offerings {
	margin-bottom: 2.5rem;
}

.sra-bio-offerings > h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--forest-mid);
	margin: 0 0 1.25rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--fog);
}

.sra-bio-offerings h3 {
	font-family: 'Jost', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--warm-stone);
	margin: 1.5rem 0 0.5rem;
}

.sra-bio-offerings h3:first-of-type {
	margin-top: 0;
}

.sra-bio-no-offerings {
	font-size: 0.9rem;
	color: var(--warm-stone);
	font-style: italic;
}

/* ── Discovery CTA ────────────────────────────────────────── */
.sra-bio-discovery-cta {
	background: var(--mist);
	border: 1px solid var(--sage);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

.sra-discovery-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.sra-discovery-item p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--charcoal);
}

/* ── Offering List ────────────────────────────────────────── */
.sra-bio-offering-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	border: 1px solid var(--fog);
	border-radius: 6px;
	overflow: hidden;
}

.sra-bio-offering-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--fog);
	transition: background 0.15s;
}

.sra-bio-offering-item:last-child {
	border-bottom: none;
}

.sra-bio-offering-item:hover {
	background: var(--cloud);
}

.sra-bio-offering-title {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--forest-mid);
	text-decoration: none;
}

.sra-bio-offering-title:hover {
	color: var(--moss);
	text-decoration: underline;
}

.sra-bio-offering-meta {
	font-size: 0.8rem;
	color: var(--warm-stone);
}

/* ── Facilitator Index ────────────────────────────────────── */
.sra-facilitator-index {
	max-width: 960px;
}

.sra-facilitator-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

.sra-facilitator-card {
	background: var(--cloud);
	border: 1px solid var(--fog);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sra-facilitator-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(30, 45, 30, 0.10);
}

.sra-facilitator-card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.sra-facilitator-card-photo {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--fog);
}

.sra-index-card-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sra-facilitator-card-photo-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--mist) 0%, var(--fog) 100%);
}

.sra-facilitator-card-body {
	padding: 1rem;
	flex: 1;
}

.sra-facilitator-card-name {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--forest-deep);
	margin: 0 0 0.3rem;
	line-height: 1.3;
}

.sra-facilitator-card-pronouns {
	font-family: 'Jost', sans-serif;
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--warm-stone);
	display: block;
}

.sra-facilitator-card-location {
	font-size: 0.8rem;
	color: var(--warm-stone);
	margin: 0.2rem 0 0;
}

.sra-facilitator-card-tagline {
	font-size: 0.82rem;
	color: var(--charcoal);
	margin: 0.4rem 0 0;
	line-height: 1.5;
}

.sra-empty {
	color: var(--warm-stone);
	font-style: italic;
	text-align: center;
	padding: 2rem 0;
}

/* ── Facilitator Profile Form ─────────────────────────────── */
.sra-facilitator-profile {
	max-width: 680px;
}

.sra-profile-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.sra-profile-section {
	background: var(--cloud);
	border: 1px solid var(--fog);
	border-radius: 8px;
	padding: 1.5rem;
}

.sra-profile-section h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--forest-mid);
	margin: 0 0 1.25rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--fog);
}

.sra-profile-photo-row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.sra-profile-photo-current {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--fog);
	flex-shrink: 0;
}

.sra-profile-photo-placeholder {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--mist) 0%, var(--fog) 100%);
	flex-shrink: 0;
}

.sra-field-group {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-bottom: 1rem;
}

.sra-field-group:last-child {
	margin-bottom: 0;
}

.sra-field-group label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--warm-stone);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sra-field-group input[type="text"],
.sra-field-group input[type="file"],
.sra-field-group textarea {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--fog);
	border-radius: 4px;
	background: var(--white);
	font-family: 'Jost', sans-serif;
	font-size: 0.9rem;
	color: var(--charcoal);
	width: 100%;
	box-sizing: border-box;
}

.sra-field-group input[type="file"] {
	padding: 0.4rem;
	background: transparent;
	border: none;
	width: auto;
}

.sra-field-group input:focus,
.sra-field-group textarea:focus {
	outline: none;
	border-color: var(--moss);
}

.sra-field-group textarea {
	resize: vertical;
	min-height: 120px;
}

.sra-field-hint {
	font-size: 0.78rem;
	color: var(--warm-stone);
	margin: 0.2rem 0 0;
}

.sra-profile-public-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	color: var(--charcoal);
}

.sra-profile-public-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--moss);
}

.sra-profile-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

/* ── Notices ──────────────────────────────────────────────── */
.sra-notice {
	padding: 0.85rem 1.1rem;
	border-radius: 6px;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.sra-notice--success {
	background: var(--mist);
	border: 1px solid var(--sage);
	color: var(--forest-mid);
}

.sra-notice--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #b91c1c;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
	.sra-bio-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.sra-bio-name {
		font-size: 1.6rem;
	}

	.sra-discovery-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.sra-facilitator-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sra-profile-photo-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 400px) {
	.sra-facilitator-grid {
		grid-template-columns: 1fr;
	}
}
