/* bw/instructor — compact "Instructors" card listing staff as modal triggers.
 * The modal + profile styling is inherited from blocks/team-modal/style.css
 * (this block's style depends on the bw-team-modal handle). */

.bw-instructor {
	position: relative;
	display: inline-block;
	min-width: 220px;
	max-width: 100%;
	margin: 0 0.5rem 1.25rem;
	padding: 0 1rem 0.5rem;
	background: rgba( 243, 244, 246, 0.6 );
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 6px;
	box-shadow: 0 4px 6px -1px rgba( 0, 0, 0, 0.12 ), 0 2px 4px -2px rgba( 0, 0, 0, 0.12 );
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.bw-instructor.alignleft  { float: left;  margin-right: 1.5rem; }
.bw-instructor.alignright { float: right; margin-left: 1.5rem; }

/* circular user-tie badge, nudged outside the top-right corner */
.bw-instructor__badge {
	position: absolute;
	top: -1rem;
	right: -1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background: #f3f4f6;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.15 );
}
.bw-instructor__badge svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: currentColor;
	color: #333;
	opacity: 0.5;
}

.bw-instructor__head {
	border-bottom: 1px solid rgba( 0, 0, 0, 0.18 );
	padding: 0.75rem 0 0.35rem;
	margin-bottom: 0.25rem;
}
.bw-instructor__title {
	font-family: "Oswald", "Open Sans", sans-serif;
	font-weight: 300;
	font-size: 1.35rem;
	line-height: 1.2;
	color: #4b5563;
}

.bw-instructor__item {
	padding: 0.3rem 0;
}
/* The trigger is a <button>; the hard resets (!important) override the theme's
   global button hover/focus styling so there is no hover effect. */
.bw-instructor__link,
.bw-instructor__link:hover,
.bw-instructor__link:focus,
.bw-instructor__link:active {
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font: inherit;
	color: #cc0000;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.bw-instructor__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.bw-instructor__name {
	color: #333;
}

/* ── inline display ────────────────────────────────────────────────────────────
 * One instructor per line: a red text link (opens the bio modal) followed by
 * optional manual text, mirroring the live summer-camps "Camp Directors" list.
 * No card chrome and no heading — the trigger stays a real <button> reset to
 * read as a link. */
.bw-instructor--inline {
	display: block;
	min-width: 0;
	margin: 0 0 1rem;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
}
.bw-instructor--inline.alignleft  { float: left;  margin-right: 1.5rem; }
.bw-instructor--inline.alignright { float: right; margin-left: 1.5rem; }

/* Each instructor sits on its own line; the link and trailing text flow inline. */
.bw-instructor-inline__row,
.bw-instructor--inline .bw-tm__cell { display: block; }
.bw-instructor-inline__row { line-height: 1.5; margin: 0 0 0.15rem; }

.bw-instructor-inline__after { color: #333; }
.bw-instructor-inline__plain { color: #333; }

.bw-instructor-inline__link,
.bw-instructor-inline__link:hover,
.bw-instructor-inline__link:focus,
.bw-instructor-inline__link:active {
	display: inline;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font: inherit;
	color: #cc0000;
	text-decoration: none;
	cursor: pointer;
	vertical-align: baseline;
	-webkit-appearance: none;
	appearance: none;
}
.bw-instructor-inline__link:hover { text-decoration: underline; }
.bw-instructor-inline__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ── grid display ──────────────────────────────────────────────────────────────
 * A column grid of names with no card chrome — same look + hover treatment as
 * the course table (blocks/table-link/style.css). Self-contained here so the
 * block keeps its single style handle. The grid responds to its CONTAINER width
 * via a container query (stacks to one column inside a narrow Kadence section). */
.bw-instructor--grid {
	display: block;
	container-type: inline-size;
	min-width: 0;
	margin: 0 0 1.25rem;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.bw-instructor--grid.alignleft  { float: left;  margin-right: 1.5rem; }
.bw-instructor--grid.alignright { float: right; margin-left: 1.5rem; }

.bw-instructor-grid {
	display: block;                 /* narrow container: stacked, full-width rows */
}

.bw-instructor-grid__cell {
	min-width: 0;                   /* allow the cell to shrink so labels wrap */
	padding: 0.25rem 0;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.15 );
	border-top-left-radius: 0.25rem;
	border-top-right-radius: 0.25rem;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
/* Hover: underline turns primary + faint white fill and small shadow (live). */
.bw-instructor-grid__cell:hover {
	border-bottom-color: #cc0000;
	background-color: rgba( 255, 255, 255, 0.5 );
	box-shadow: 0 1px 3px 0 rgba( 0, 0, 0, 0.1 ), 0 1px 2px -1px rgba( 0, 0, 0, 0.1 );
}

/* The trigger is a <button>; !important resets override the theme's global
   button styling so it reads as a plain link, like the card variant. */
.bw-instructor-grid__link,
.bw-instructor-grid__link:hover,
.bw-instructor-grid__link:focus,
.bw-instructor-grid__link:active {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.25rem 0.5rem !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font: inherit;
	color: #cc0000;
	text-align: center;
	text-decoration: none;
	overflow-wrap: break-word;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.bw-instructor-grid__link--plain {
	color: #333;
	cursor: default;
}
.bw-instructor-grid__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Wide enough container: real N-column grid, names centred (matches live). */
@container (min-width: 480px) {
	.bw-instructor-grid {
		display: grid;
		grid-template-columns: repeat( var( --bw-ig-cols, 3 ), minmax( 0, 1fr ) );
		gap: 1rem;
	}
	.bw-instructor-grid__link {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}

/* Fallback for browsers without container queries: key off the viewport. */
@supports not (container-type: inline-size) {
	@media (min-width: 768px) {
		.bw-instructor-grid {
			display: grid;
			grid-template-columns: repeat( var( --bw-ig-cols, 3 ), minmax( 0, 1fr ) );
			gap: 1rem;
		}
		.bw-instructor-grid__link {
			display: flex;
			align-items: center;
			justify-content: center;
			text-align: center;
		}
	}
}
