/**
 * Advisory Boards Members styles.
 * Pill filters match the reference screenshot: large, fully rounded, with circular count badge.
 * The name/position/company text classes are left unstyled for the user to style later.
 */

.abm-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px 16px;
	box-sizing: border-box;
}

/* Pills */
.abm-wrapper .abm-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 40px;
}

.abm-wrapper button.abm-pill {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.abm-wrapper .abm-pill,
.abm-wrapper a.abm-pill,
.abm-wrapper button.abm-pill {
	display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid #d8dbe0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.abm-wrapper .abm-pill:hover {
	border-color: #0f172a;
	background: #ffffff;
	color: #0f172a;
}

.abm-wrapper .abm-pill:focus-visible {
	outline: 2px solid #0f172a;
	outline-offset: 2px;
}

.abm-wrapper .abm-pill.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #ffffff;
}

.abm-pill__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: #eef0f3;
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
}

.abm-pill.is-active .abm-pill__count {
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
}

.abm-empty {
	margin-top: 24px;
	color: #6b7280;
	text-align: center;
}

/* Grid */
.abm-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

@media (max-width: 1200px) {
	.abm-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
	.abm-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
	.abm-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

/* Card */
.abm-card {
	display: block;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Force-hide cards when the filter sets the [hidden] attribute.
   Without this, .abm-card { display: block } overrides the user-agent [hidden] rule. */
.abm-card[hidden] {
	display: none !important;
}

.abm-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #d1d5db;
}

.abm-card__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3f4f6;
}

.abm-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.abm-card__photo-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.abm-card__body {
	padding: 16px;
}

/* Intentionally unstyled, user will add styling later.
.abm-card__name {}
.abm-card__position {}
.abm-card__company {}
*/

/* Single member page (minimal baseline). */
.abm-single {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 16px;
}

.abm-single__back {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 14px;
	color: #4b5563;
	text-decoration: none;
}

.abm-single__back:hover { color: #0f172a; }

.abm-single__header {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 720px) {
	.abm-single__header {
		grid-template-columns: 1fr;
	}
}

.abm-single__photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f4f6;
}

.abm-single__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.abm-single__board {
	display: inline-block;
	font-size: 13px;
	color: #4b5563;
	margin-bottom: 8px;
	text-decoration: none;
}

.abm-single__linkedin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	color: #0a66c2;
	text-decoration: none;
	font-size: 14px;
}

.abm-single__linkedin:hover { text-decoration: underline; }

.abm-single__bio {
	margin-top: 40px;
	line-height: 1.7;
}

.abm-single__bio p {
	margin: 0 0 1em;
}
