/* Board Profiles for OJS 3.5 */

.bp-root {
	--bp-accent: #0b6e4f;
	--bp-ink: #1c2430;
	--bp-muted: #5b6675;
	--bp-line: #e4e8ee;
	--bp-card: #ffffff;
	--bp-soft: color-mix(in srgb, var(--bp-accent) 8%, #ffffff);
	--bp-radius: 16px;
	font-size: 1rem;
	color: var(--bp-ink);
	margin: 1.5rem 0 2.5rem;
}

.bp-original { display: none !important; }

/* ---------- Group headings ---------- */
.bp-group + .bp-group { margin-top: 3rem; }

.bp-group-title {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0 0 1.5rem;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bp-accent);
}
.bp-group-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, var(--bp-line), transparent);
}

/* ---------- Grid ---------- */
.bp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
}

/* ---------- Card ---------- */
.bp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 1.25rem 1.5rem;
	background: var(--bp-card);
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	animation: bp-rise .5s ease both;
	animation-delay: var(--bp-delay, 0ms);
}
.bp-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 72px;
	background: var(--bp-soft);
	z-index: 0;
}
.bp-card > * { position: relative; z-index: 1; }

.bp-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--bp-accent) 35%, var(--bp-line));
	box-shadow: 0 14px 30px -12px rgba(16, 24, 40, .22);
}

/* ---------- Photo ---------- */
.bp-photo {
	position: relative;
	width: 124px;
	height: 124px;
	flex: none;
	border-radius: 50%;
	background: color-mix(in srgb, var(--bp-accent) 15%, #fff);
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px color-mix(in srgb, var(--bp-accent) 40%, transparent);
	overflow: hidden;
	margin-bottom: 1.1rem;
}
.bp-photo-rounded .bp-photo { border-radius: 22px; }
.bp-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	margin: 0;
	max-width: none;
}
.bp-initials {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--bp-accent);
}

/* ---------- Text ---------- */
.bp-body { display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1; }

.bp-name {
	margin: 0 0 .45rem;
	font-size: 1.08rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--bp-ink);
}
.bp-role {
	display: inline-block;
	margin: 0 0 .6rem;
	padding: .22rem .7rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--bp-accent);
	background: var(--bp-soft);
	border-radius: 999px;
}
.bp-affiliation {
	margin: 0 0 .15rem;
	font-size: .88rem;
	line-height: 1.45;
	color: var(--bp-muted);
}

/* ---------- Actions ---------- */
.bp-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-top: auto;
	padding-top: 1rem;
	width: 100%;
}
.bp-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	max-width: 100%;
	padding: .45rem .8rem;
	font-size: .8rem;
	line-height: 1.2;
	color: var(--bp-accent) !important;
	text-decoration: none !important;
	border: 1px solid color-mix(in srgb, var(--bp-accent) 30%, transparent);
	border-radius: 999px;
	transition: background .2s ease, color .2s ease;
}
.bp-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-btn svg { width: 16px; height: 16px; flex: none; }
.bp-btn:hover, .bp-btn:focus-visible {
	background: var(--bp-accent);
	color: #fff !important;
}

/* ---------- Featured (e.g. Chair) ---------- */
.bp-featured { margin-bottom: 1.25rem; }
.bp-card--featured {
	flex-direction: row;
	text-align: left;
	gap: 2rem;
	padding: 2rem 2.25rem;
	background: linear-gradient(135deg, var(--bp-soft), #fff 70%);
	border-color: color-mix(in srgb, var(--bp-accent) 25%, var(--bp-line));
}
.bp-card--featured::before { display: none; }
.bp-card--featured .bp-photo { width: 150px; height: 150px; margin: 0; }
.bp-card--featured .bp-body { align-items: flex-start; }
.bp-card--featured .bp-name { font-size: 1.35rem; }
.bp-card--featured .bp-actions { justify-content: flex-start; margin-top: .5rem; }

/* ---------- Compact list layout ---------- */
.bp-layout-list .bp-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; }
.bp-layout-list .bp-card {
	flex-direction: row;
	align-items: center;
	text-align: left;
	gap: 1.1rem;
	padding: 1rem 1.2rem;
}
.bp-layout-list .bp-card::before { display: none; }
.bp-layout-list .bp-photo { width: 76px; height: 76px; margin: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bp-accent) 30%, transparent); }
.bp-layout-list .bp-initials { font-size: 1.4rem; }
.bp-layout-list .bp-body { align-items: flex-start; }
.bp-layout-list .bp-actions { justify-content: flex-start; padding-top: .6rem; }

/* ---------- Search ---------- */
.bp-search { margin-bottom: 1.75rem; }
.bp-search input {
	width: 100%;
	max-width: 440px;
	padding: .75rem 1rem .75rem 2.6rem;
	font: inherit;
	font-size: .95rem;
	color: var(--bp-ink);
	border: 1px solid var(--bp-line);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%235b6675' stroke-width='2'/%3E%3Cpath d='m20 20-3.5-3.5' stroke='%235b6675' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat .95rem center / 18px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.bp-search input:focus {
	border-color: var(--bp-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bp-accent) 15%, transparent);
}
.bp-empty { color: var(--bp-muted); font-style: italic; }
.bp-root [hidden] { display: none !important; }

/* ---------- Motion ---------- */
@keyframes bp-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bp-card { animation: none; transition: none; }
	.bp-card:hover { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	.bp-grid, .bp-layout-list .bp-grid { grid-template-columns: 1fr; }
	.bp-card--featured { flex-direction: column; text-align: center; padding: 2rem 1.25rem 1.5rem; gap: 1.1rem; }
	.bp-card--featured .bp-body { align-items: center; }
	.bp-card--featured .bp-actions { justify-content: center; }
}

/* ---------- Print ---------- */
@media print {
	.bp-search { display: none; }
	.bp-card { box-shadow: none; break-inside: avoid; animation: none; }
}
