/**
 * Members — the /members/ directory (templates/archive-partner.html)
 * and each member's own About page (templates/single-partner.html,
 * linked from every directory card). The directory hero reuses the
 * sitewide .page-hero component; this file styles the directory grid
 * (nashon/members-archive pattern), the closing "Become a Member"
 * registration form, and the single About page (.partner-single*,
 * modelled on team.css's .team-single* for the same two-column
 * media+content layout, just with a contained logo instead of a
 * cropped portrait). Card look is deliberately close to the homepage
 * partners-strip (partners.css) — bordered, white, soft-shadow — but
 * roomier, since each card here also carries a description and a link,
 * not just a logo.
 */

/* ===== Directory grid ===== */
.members-grid-section {
	padding: clamp(48px, 6vw, 80px) 8.75vw;
	background: var(--wp--preset--color--base);
}
.members-grid-section__inner {
	max-width: 1320px;
	margin: 0 auto;
}
/* ===== Search — a real GET form (works with no JS: submitting
   reloads /members/?members_search=...); members-directory.js
   intercepts both typing and submit to filter in place instead once
   it's available. ===== */
.members-search {
	position: relative;
	max-width: 420px;
	margin: 0 auto 20px;
}
.members-search__icon {
	position: absolute;
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
	color: var(--wp--preset--color--muted);
	pointer-events: none;
}
.members-search input[type="search"] {
	width: 100%;
	padding: 13px 16px 13px 44px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
}
.members-search input[type="search"]:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.members-search input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}
.members-grid-section__count {
	margin: 0 0 28px;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	text-align: center;
}
.members-grid-section__empty {
	color: var(--wp--preset--color--muted);
	text-align: center;
}
.members-grid-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}
/* ===== "Load More" — a real link to the next page
   (?members_page=...) so it works with no JS; members-directory.js
   intercepts clicks (and auto-triggers it once it scrolls into view,
   via IntersectionObserver) to append the next batch in place instead
   of navigating. ===== */
.members-grid-section__load-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 40px;
}
.members-load-more__loading {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}
.member-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(28px, 3vw, 34px) 24px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: var(--wp--preset--color--paper);
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* The card's own body (logo/name/description) is one link straight to
   that member's About page — clicking anywhere on the card, not just
   a labelled button, gets you there. "Visit Website" stays a separate,
   explicit external link below (can't nest an <a> inside another), so
   the two destinations — About vs. the member's own site — are always
   unambiguous. */
.member-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	color: inherit;
	text-decoration: none;
}
.member-card:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 18px 36px rgba(40, 40, 40, 0.1);
}
.member-card__logo {
	/* position:relative + the img absolutely filling it (below) is
	   deliberate, not just display:grid/flex + width:100%;height:100%
	   on the img — a percentage height on a grid/flex child doesn't
	   reliably resolve against this box (confirmed: the img was
	   computing its height from its own native aspect ratio instead of
	   this 84px box, which either spilled into the text below it
	   with overflow:visible, or got clipped/cropped with
	   overflow:hidden — same root cause, two different-looking
	   symptoms). Absolute positioning's containing block is this box
	   itself regardless of display type, so it isn't subject to that
	   grid/flex percentage-resolution quirk — the img is guaranteed to
	   exactly fill it, and object-fit:contain then guarantees the logo
	   itself is never cropped inside that. */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 84px;
	margin-bottom: 18px;
	overflow: hidden;
}
.member-card__logo img {
	position: absolute;
	inset: 0;
	object-fit: contain;
}
.member-card__logo-fallback {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(49, 161, 255, 0.12);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.4rem;
	font-weight: 800;
	text-transform: uppercase;
}
.member-card__name {
	margin: 0 0 8px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
}
.member-card__desc {
	margin: 0 0 14px;
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
	line-height: 1.6;
}
.member-card__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--wp--preset--color--border);
	width: 100%;
}
.member-card__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.member-card__action:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
.member-card__action--external {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.member-card__action--external:hover {
	background: #1a8de6;
	color: var(--wp--preset--color--base);
}

/* ===== "Become a Member" registration ===== */
.member-registration-section {
	/* Last section before the footer — same bottom clearance every
	   pre-footer section needs for .site-footer::before's torn-paper
	   edge (see partners.css / get-involved-page.css for the same
	   comment). */
	padding: clamp(14px, 1.8vw, 24px) 8.75vw clamp(88px, 10vw, 150px);
	background: rgba(49, 161, 255, 0.06);
}
.member-registration-card {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(32px, 4vw, 48px);
	border-radius: 24px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 20px 44px rgba(40, 40, 40, 0.1);
	text-align: center;
}
.member-registration-card h2 {
	margin: 0 0 16px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 3.6vw, 2.9rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-transform: uppercase;
	text-wrap: balance;
}
.member-registration-card h2 span {
	color: transparent;
	-webkit-text-stroke: 1.5px #000;
}
.member-registration-card__head .section-eyebrow {
	margin-left: auto;
	margin-right: auto;
}
.member-registration-card__intro {
	max-width: 34rem;
	margin: 0 auto 28px;
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
	line-height: 1.7;
}
.member-registration-card__status {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	text-align: left;
}
.member-registration-card__status--success {
	background: rgba(49, 161, 255, 0.1);
	color: var(--wp--preset--color--primary);
}
.member-registration-card__status--error {
	background: rgba(192, 57, 43, 0.1);
	color: #c0392b;
}
.member-registration-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: left;
}
.member-registration-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.member-registration-form input,
.member-registration-form textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.92rem;
}
.member-registration-form textarea {
	resize: vertical;
}
.member-registration-form input:focus,
.member-registration-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.member-registration-form__note {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
	line-height: 1.6;
}
.member-registration-form__note a {
	color: var(--wp--preset--color--primary);
}
.member-registration-form .btn {
	align-self: center;
	margin-top: 4px;
}
@media (max-width: 560px) {
	.member-registration-form__row {
		grid-template-columns: 1fr;
	}
}

/* ===== Single member "About" page — templates/single-partner.html ===== */
.partner-single {
	padding: clamp(48px, 6vw, 80px) 8.75vw clamp(88px, 10vw, 150px);
}
.partner-single__grid.wp-block-columns {
	max-width: 1100px;
	margin: 0 auto;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.partner-single__media {
	flex: 0 0 300px !important;
}
/* Logos are usually far from the 3:4 aspect ratio a person's portrait
   fills — a wide word-mark logo cropped to that ratio would clip
   itself, so this is a padded, contained frame instead of a cropped
   fill. */
.partner-single__logo {
	/* Same reasoning as .member-card__logo (members-page.css, above) —
	   the img is positioned absolutely and inset by the same 32px this
	   box used to spend on padding, rather than sized via percentage
	   width/height as a grid child, since that didn't reliably resolve
	   against this box either. */
	position: relative;
	aspect-ratio: 1 / 1;
	margin: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	background: var(--wp--preset--color--paper);
	overflow: hidden;
}
.partner-single__logo img {
	position: absolute;
	inset: 32px;
	object-fit: contain;
}
.partner-single__content {
	flex: 1 1 0% !important;
	padding-top: 8px;
}
.partner-single__name.wp-block-post-title {
	margin: 4px 0 20px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.9rem, 3.6vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-transform: uppercase;
}
.partner-single__bio.wp-block-post-content p {
	margin: 0 0 18px;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
	line-height: 1.75;
}
.partner-single__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 28px;
}
.partner-single__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--contrast);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}
.partner-single__back:hover {
	color: var(--wp--preset--color--primary);
}
@media (max-width: 900px) {
	.partner-single__grid.wp-block-columns {
		flex-wrap: wrap;
	}
	.partner-single__media {
		flex: 1 1 100% !important;
		max-width: 280px;
	}
}

/* The shared .breadcrumbs component (style.css) is styled white-on-
   translucent for sitting on a photo hero — every other page that uses
   it does. This is the first spot it sits on a plain light background
   instead (single-partner.html has no hero), so it needs its own
   light-surface colors instead of inheriting the dark-photo ones. */
.partner-single__content .breadcrumbs {
	margin: 2px 0 22px !important;
}
.partner-single__content .breadcrumbs__inner {
	border-color: var(--wp--preset--color--border);
	background: var(--wp--preset--color--paper);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.partner-single__content .breadcrumbs__link {
	color: var(--wp--preset--color--muted);
}
.partner-single__content .breadcrumbs__link:hover,
.partner-single__content .breadcrumbs__link:focus-visible {
	color: var(--wp--preset--color--primary);
}
.partner-single__content .breadcrumbs__sep {
	color: var(--wp--preset--color--border);
}
.partner-single__content .breadcrumbs__current {
	color: var(--wp--preset--color--contrast);
}
