/* -----------------------------------------------------------------------------
 * Practitioner directory, profile pages and bio modal
 * Colours and type follow css/style.css — no new brand values introduced.
 * -------------------------------------------------------------------------- */

/* Secondary text is #6b655e, not the theme's #adadad.
 * #adadad on the beige page background measures 1.87:1, well under the
 * 4.5:1 minimum for body text. #6b655e keeps the same soft, warm feel
 * at 4.79:1 on beige and 5.76:1 on white. */

/* ---------- Grid ---------- */

.team-group + .team-group { margin-top: 72px; }

.team-group-label {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 30px;
}
.team-group-label span {
	font-family: 'Outfit', sans-serif;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 11px;
	color: #4d5a6d;
	font-weight: 400;
	white-space: nowrap;
}
.team-group-label i {
	flex: 1;
	height: 1px;
	background: #e5dddc;
	display: block;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 34px 26px;
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; } }
@media (max-width: 420px)  { .team-grid { grid-template-columns: 1fr; } }

.team-card {
	display: block;
	text-decoration: none;
	color: inherit;
}
.team-card:hover,
.team-card:focus { text-decoration: none; color: inherit; }

.team-card-shot {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #edeae4;
	aspect-ratio: 4 / 5;
}
.team-card-shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.team-card:hover .team-card-shot img,
.team-card:focus-visible .team-card-shot img { transform: scale(1.045); }

.team-card-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(22,23,23,.55), rgba(22,23,23,0) 52%);
	opacity: 0;
	transition: opacity .35s ease;
}
.team-card:hover .team-card-veil,
.team-card:focus-visible .team-card-veil { opacity: 1; }

.team-card-more {
	position: absolute;
	left: 0; right: 0; bottom: 16px;
	text-align: center;
	color: #fff;
	font-size: 10px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .35s ease, transform .35s ease;
}
.team-card:hover .team-card-more,
.team-card:focus-visible .team-card-more { opacity: 1; transform: none; }

.team-card-name {
	display: block;
	font-family: 'Libre Caslon Display', serif;
	font-weight: 400;
	font-size: 21px;
	color: #161717;
	margin: 18px 0 2px;
	line-height: 1.25;
}
.team-card-cred {
	display: block;
	font-size: 13px;
	color: #4d5a6d;
	font-weight: 300;
	line-height: 1.45;
}
.team-card-sum {
	display: block;
	font-size: 13.5px;
	color: #6b655e;
	margin-top: 7px;
	line-height: 1.6;
	font-weight: 300;
}
.team-card:focus-visible { outline: 2px solid #4d5a6d; outline-offset: 6px; }

/* Compact variant on service pages */
.team-grid-compact { grid-template-columns: repeat(5, 1fr); gap: 24px 20px; }
@media (max-width: 1000px) { .team-grid-compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .team-grid-compact { grid-template-columns: repeat(2, 1fr); } }
.team-grid-compact .team-card-name { font-size: 18px; margin-top: 14px; }
.team-grid-compact .team-card-cred { font-size: 12px; }

/* ---------- Modal ---------- */

.team-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(22,23,23,.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	z-index: 1040;
}
.team-backdrop.is-open { opacity: 1; pointer-events: auto; }

.team-sheet {
	position: fixed;
	inset: 0;
	z-index: 1041;
	display: grid;
	place-items: center;
	padding: 26px;
	pointer-events: none;
}
.team-panel {
	background: #fff;
	width: min(940px, 100%);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	opacity: 0;
	transform: translateY(14px) scale(.985);
	transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.3,1);
	pointer-events: auto;
}
.team-sheet.is-open .team-panel { opacity: 1; transform: none; }

.team-panel .practitioner-layout {
	display: grid;
	grid-template-columns: 340px 1fr;
	align-items: start;
	max-height: calc(100vh - 52px);
	overflow: auto;
}
@media (max-width: 820px) {
	.team-panel .practitioner-layout {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 36px);
	}
}

.team-panel-close {
	position: absolute;
	top: 14px; right: 14px;
	width: 38px; height: 38px;
	border: 0;
	background: rgba(255,255,255,.92);
	color: #161717;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	border-radius: 100px;
	z-index: 6;
	box-shadow: 0 1px 6px rgba(22,23,23,.12);
}
.team-panel-close:hover { background: #edeae4; }
.team-panel-close:focus-visible { outline: 2px solid #4d5a6d; outline-offset: 2px; }

.team-panel-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid #e5dddc;
}
.team-panel-nav button {
	background: none;
	border: 0;
	cursor: pointer;
	font-family: 'Outfit', sans-serif;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #6b655e;
	font-weight: 300;
	padding: 4px;
}
.team-panel-nav button:hover { color: #4d5a6d; }

body.team-modal-open { overflow: hidden; }

.team-panel-loading {
	padding: 60px;
	text-align: center;
	color: #6b655e;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* ---------- Profile layout (shared by page and modal) ---------- */

.practitioner-back { margin-bottom: 28px; }
.practitioner-back a {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #6b655e;
	text-decoration: none;
	font-weight: 300;
}
.practitioner-back a:hover { color: #4d5a6d; }

.practitioner-layout {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 0;
	align-items: start;
	background: #fff;
}
@media (max-width: 820px) { .practitioner-layout { grid-template-columns: 1fr; } }

.practitioner-photo { background: #edeae4; align-self: stretch; }
.practitioner-photo img {
	position: sticky;
	top: 0;
	width: 100%;
	display: block;
	object-fit: cover;
	object-position: center 20%;
	height: min(560px, calc(100vh - 52px));
}
@media (max-width: 820px) {
	.practitioner-photo img {
		position: static;
		height: auto;
		aspect-ratio: 3 / 2;
		object-position: center 22%;
	}
}

.practitioner-body { padding: 46px 48px 44px; }
@media (max-width: 560px) { .practitioner-body { padding: 32px 24px 34px; } }

.practitioner-eyebrow {
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #4d5a6d;
	margin-bottom: 10px;
}
.practitioner-name {
	font-family: 'Libre Caslon Display', serif;
	font-weight: 400;
	font-size: 38px;
	color: #161717;
	line-height: 1.15;
	margin: 0 0 4px;
}
@media (max-width: 560px) { .practitioner-name { font-size: 30px; } }
.practitioner-role { font-size: 14.5px; color: #4d5a6d; margin-bottom: 22px; }

.practitioner-bio p {
	font-size: 15px;
	line-height: 1.85;
	margin-bottom: 15px;
	color: #3b3b3b;
}
.practitioner-bio p:last-child { margin-bottom: 0; }

.practitioner-rule { height: 1px; background: #e5dddc; margin: 22px 0; }

.practitioner-minilabel {
	font-size: 10.5px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #6b655e;
	margin-bottom: 11px;
}

.practitioner-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.practitioner-chip {
	border: 1px solid #e5dddc;
	color: #4d5a6d;
	padding: 5px 13px;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	white-space: nowrap;
}

.practitioner-services { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.practitioner-services a {
	color: #4d5a6d;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 1px solid #e5dddc;
	padding-bottom: 3px;
	transition: border-color .2s;
}
.practitioner-services a:hover { border-color: #4d5a6d; }

.practitioner-book {
	display: inline-block;
	margin-top: 28px;
	background: #4d5a6d;
	color: #fff;
	text-decoration: none;
	padding: 15px 34px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 300;
	transition: background .25s;
}
.practitioner-book:hover { background: #3d4858; color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.team-card-shot img,
	.team-card-veil,
	.team-card-more,
	.team-backdrop,
	.team-panel { transition: none !important; }
}

/* ---------- Preview bar (about-demo only, hidden once live) ---------- */

.tofl-preview-bar {
	background: #4d5a6d;
	color: #fff;
	padding: 14px 0;
	font-family: 'Outfit', sans-serif;
	font-weight: 300;
	font-size: 14px;
}
.tofl-preview-bar strong {
	display: inline-block;
	background: #e4a853;
	color: #161717;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 10px;
	padding: 3px 9px;
	margin-right: 12px;
	vertical-align: middle;
}
.tofl-preview-bar span { vertical-align: middle; }
@media (max-width: 620px) {
	.tofl-preview-bar { font-size: 13px; }
	.tofl-preview-bar strong { display: block; width: fit-content; margin: 0 0 8px; }
}
