/* ============================================================
   Teaching Staff Block
   ============================================================ */

.wp-block-cdres-teaching-staff .teaching-staff__line {
	margin: 0;
	line-height: 1.8;
}

.wp-block-cdres-teaching-staff .teaching-staff__label {
	margin-right: 0.2em;
}

/* Trigger button – looks like inline text */
.wp-block-cdres-teaching-staff .teaching-staff__trigger {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: opacity 0.15s ease;
}

.wp-block-cdres-teaching-staff .teaching-staff__trigger:hover {
	text-decoration-style: solid;
}

.wp-block-cdres-teaching-staff .teaching-staff__name {
	/* plain name without bio */
}


/* ============================================================
   Bottom Sheet – Backdrop
   ============================================================ */

.ts-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1040;
}

.ts-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}


/* ============================================================
   Bottom Sheet – Panel
   ============================================================ */

.ts-sheet {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.12);
	transform: translateY(100%);
	visibility: hidden;
	transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.4s;
	z-index: 1050;
	max-height: 78vh;
	display: flex;
	flex-direction: column;
}

.ts-sheet.is-open {
	transform: translateY(0);
	visibility: visible !important;
	transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
}

/* Drag handle */
.ts-sheet__handle {
	width: 36px;
	height: 4px;
	background: #d0d0d0;
	border-radius: 2px;
	margin: 12px auto 0;
	flex-shrink: 0;
}

/* Inner content – max-width matches theme content width, scrollable */
.ts-sheet__inner {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 860px;
	width: 100%;
	margin: 0 auto;
	padding: 4px 32px 56px;
}

@media (max-width: 767px) {
	.ts-sheet__inner {
		padding: 4px 20px 48px;
	}
}

.ts-sheet__name {
	margin: 2rem 0 1rem;
	font-size: 1.4em;
	line-height: 1.25;
}

/* Close button – absolute, top-right of sheet, outside text flow */
.ts-sheet__close {
	position: absolute;
	top: 16px;
	right: 20px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: none;
	border: 1px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	color: inherit;
	transition: background 0.15s ease, color 0.15s ease;
}

.ts-sheet__close:hover,
.ts-sheet__close:focus-visible {
	background: #000;
	color: #fff;
	outline: none;
}


/* ============================================================
   Bottom Sheet – Bio
   ============================================================ */

.ts-sheet__bio {
	font-size: 0.95em;
	line-height: 1.75;
	color: #222;
}

.ts-sheet__bio p {
	margin: 0 0 1em;
}

.ts-sheet__bio p:last-child {
	margin-bottom: 0;
}


/* ============================================================
   Body lock when sheet is open
   ============================================================ */

body.ts-no-scroll {
	overflow: hidden;
}
