/**
 * NTMA Ultimate Member directory cards and profile detail.
 */

.ntma-member-directory__title {
	margin: 0 0 20px;
	font-size: 1.75rem;
	line-height: 1.25;
}

.ntma-member-directory--manufacturer {
	margin-bottom: 48px;
}

.ntma-member-directory--associate {
	margin-bottom: 0;
}

.ntma-member-directory-filters {
	margin-top: 20px;
	margin-bottom: 0;
}

.ntma-member-directory-filters .form-control {
	height: 50px !important;
	padding: 12px 8px;
	width: 100%;
	box-sizing: border-box;
}

.ntma-member-directory-filters input[type='search'] {
	width: 100%;
}

.ntma-directory-no-results {
	margin: 16px 0 0;
	color: #666;
}

.ntma-member-card.is-hidden {
	display: none !important;
}

.ntma-member-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 20px;
}

.ntma-member-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	height: 100%;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ntma-member-card:hover {
	border-color: #0b5cab;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ntma-member-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	padding: 20px;
}

.ntma-member-card__link:hover,
.ntma-member-card__link:focus {
	color: inherit;
	text-decoration: none;
}

.ntma-member-card__logo {
	text-align: center;
	margin-bottom: 16px;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ntma-member-card__logo img {
	max-width: 100%;
	height: auto;
	max-height: 135px;
	object-fit: contain;
}

.ntma-member-card__name {
	margin: 0 0 6px;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #0b5cab;
}

.ntma-member-card__category {
	margin: 0 0 12px;
	font-size: 0.85rem;
	text-transform: uppercase;
	color: #666;
	letter-spacing: 0.02em;
}

.ntma-member-card__meta {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 0.95rem;
}

.ntma-member-card__meta li {
	margin-bottom: 4px;
}

.ntma-member-card__label {
	font-weight: 600;
}

.ntma-member-card__specialties h4 {
	margin: 0 0 6px;
	font-size: 1rem;
}

.ntma-member-card__specialties p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
}

.ntma-member-card__cta {
	display: inline-block;
	margin-top: auto;
	padding-top: 12px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0b5cab;
}

.ntma-member-directory-empty {
	margin-top: 25px;
}

.ntma-member-detail__back {
	margin: 0 0 16px;
}

.ntma-member-detail__back a {
	font-weight: 600;
	color: #0b5cab;
	text-decoration: none;
}

.ntma-member-detail__back a:hover,
.ntma-member-detail__back a:focus {
	text-decoration: underline;
}

.ntma-member-detail {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	background: #f6f6f6;
	padding: 25px;
	margin-bottom: 25px;
}

.ntma-member-detail__logo {
	flex: 0 0 225px;
}

.ntma-member-detail__info {
	flex: 1 1 280px;
}

.ntma-member-detail__info h2 {
	margin-top: 0;
}

.ntma-member-detail ul {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.ntma-member-detail ul li {
	margin-bottom: 6px;
}

.ntma-member-detail__intro {
	margin: 0 0 24px;
	line-height: 1.6;
}

.ntma-member-detail__intro p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.ntma-member-directory-grid {
		grid-template-columns: 1fr;
	}
}

/* UM member profile: hide cover, header avatar, and empty-profile notice. */
body.ntma-um-member-profile .um-cover,
body.ntma-um-member-profile .um-header,
body.ntma-um-member-profile .um-profile-note,
body.ntma-um-member-profile .um-profile-navbar,
body.ntma-um-member-profile .um-profile-nav {
	display: none !important;
}

body.ntma-um-member-profile .um-profile {
	padding-top: 0;
}

body.ntma-um-member-profile .um-profile-body {
	margin-top: 0;
}

body.ntma-um-member-profile .ntma-member-profile-detail {
	margin-top: 0;
}
