/* wp-content/plugins/ceca-widgets/widgets/members-listing/members-listing.css */

/* Card geometry mirrors Figma 219:3573: 2-up 636×297 cards, 24px gaps, white
   logo panel (52% width, 1px #F1F1F1 outline) beside a rgba(227,227,227,.5)
   content panel, 22/40 bold name (plum on hover), 18/28 body, 40px outline
   pill Overview button (no fill) with an 11px circle-arrow icon. */

.ceca-members-listing {
	--ceca-ml-cols: 2;
	--ceca-ml-gap: 24px;
	--ceca-ml-card-bg: rgba(227, 227, 227, 0.5);
	--ceca-ml-logo-bg: #ffffff;
	--ceca-ml-name: #000000;
	--ceca-ml-name-hover: #411024;
	--ceca-ml-text: #000000;
	--ceca-ml-outline: #f1f1f1;
	--ceca-ml-btn-bg: transparent;
	--ceca-ml-btn-color: #000000;
	--ceca-ml-btn-border: #000000;
	--ceca-ml-btn-bg-hover: #1a1a1a;
	--ceca-ml-btn-color-hover: #ffffff;
	--ceca-ml-filter-bg: #ffffff;
	--ceca-ml-filter-color: #1a1a1a;
	--ceca-ml-filter-border: #c9c9c9;
	--ceca-ml-filter-subhead: #411024;
	--ceca-ml-accent: #c65a93;
}

/* Figma 219:3573 header: page title, intro, then a "Members" sub-heading
   row carrying the filter pill, then the cards. Spacing measured off the
   frame: ~65px intro → sub-heading, ~31px sub-heading → cards. */
.ceca-ml__head {
	margin-bottom: 65px;
}

/* Figma 221:4693: 40/50 Bold. Scoped so kit h2 globals can't outrank it. */
.ceca-members-listing .ceca-ml__heading {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 50px;
}

/* Figma 221:4694: 22/32 over a 738px measure. */
.ceca-members-listing .ceca-ml__intro {
	margin: 20px 0 0;
	max-width: 738px;
	font-size: 22px;
	font-weight: 400;
	line-height: 32px;
}

.ceca-ml__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 31px;
}

/* Figma 221:4695: 30/40 Bold, plum. */
.ceca-members-listing .ceca-ml__subheading {
	margin: 0;
	color: #411024;
	font-size: 30px;
	font-weight: 700;
	line-height: 40px;
}

/* --- Search + filter ------------------------------------------------------- */

.ceca-ml__tools {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-left: auto;
}

/* <search> is newer than some browsers' UA sheets — make it a block. */
.ceca-ml__search {
	display: block;
}

.ceca-ml__search-form {
	position: relative;
	margin: 0;
}

/* Visually hidden but still the input's real label (placeholder alone isn't one). */
.ceca-ml__search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Same pill as the filter toggle beside it; 16px text so iOS doesn't zoom. */
.ceca-members-listing .ceca-ml__search-input {
	width: 260px;
	max-width: 100%;
	min-height: 41px;
	padding: 8px 44px 8px 20px;
	border: 1px solid var(--ceca-ml-filter-border);
	border-radius: 300px;
	background: var(--ceca-ml-filter-bg);
	color: var(--ceca-ml-filter-color);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.2s ease;
}

.ceca-members-listing .ceca-ml__search-input:hover,
.ceca-members-listing .ceca-ml__search-input:focus {
	border-color: var(--ceca-ml-accent);
}

.ceca-members-listing .ceca-ml__search-input:focus-visible {
	outline: 2px solid var(--ceca-ml-accent);
	outline-offset: 2px;
}

.ceca-members-listing .ceca-ml__search-submit {
	position: absolute;
	top: 50%;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ceca-ml-filter-color);
	transform: translateY(-50%);
	cursor: pointer;
}

.ceca-members-listing .ceca-ml__search-submit:hover,
.ceca-members-listing .ceca-ml__search-submit:focus {
	background: transparent;
	color: var(--ceca-ml-accent);
}

.ceca-ml__search-submit svg {
	width: 16px;
	height: 16px;
}

.ceca-ml__filter {
	position: relative;
}

.ceca-members-listing .ceca-ml__filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 20px;
	border: 1px solid var(--ceca-ml-filter-border);
	border-radius: 300px;
	background: var(--ceca-ml-filter-bg);
	color: var(--ceca-ml-filter-color);
	font-size: 16px;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.ceca-members-listing .ceca-ml__filter-toggle:hover,
.ceca-members-listing .ceca-ml__filter-toggle:focus {
	background: var(--ceca-ml-filter-bg);
	color: var(--ceca-ml-filter-color);
	border-color: var(--ceca-ml-accent);
}

.ceca-ml__filter-toggle svg {
	width: 11px;
	height: 7px;
	transition: transform 0.25s ease;
}

.ceca-ml__filter-toggle[aria-expanded='true'] svg {
	transform: rotate(180deg);
}

.ceca-ml__filter-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	width: min(420px, 90vw);
	max-height: 440px;
	overflow: auto;
	padding: 20px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(65, 16, 36, 0.2);
}

.ceca-ml__filter-group + .ceca-ml__filter-group {
	margin-top: 18px;
}

.ceca-members-listing .ceca-ml__filter-title {
	margin: 0 0 8px;
	color: var(--ceca-ml-filter-subhead);
	font-size: 16px;
	font-weight: 700;
}

.ceca-ml__filter-group--categories .ceca-ml__filter-options {
	columns: 2;
	column-gap: 16px;
}

.ceca-members-listing .ceca-ml__filter-option {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 3px 0;
	font-size: 15px;
	line-height: 1.4;
	color: #1a1a1a;
	break-inside: avoid;
	cursor: pointer;
}

.ceca-ml__filter-option input {
	accent-color: var(--ceca-ml-accent);
	flex: none;
}

/* --- Grid / cards ---------------------------------------------------------- */

.ceca-ml__grid {
	display: grid;
	grid-template-columns: repeat(var(--ceca-ml-cols), 1fr);
	gap: var(--ceca-ml-gap);
}

.ceca-member-card {
	display: flex;
	min-height: 297px;
}

/* Landing highlight for header-search deep links (#member-{slug}): a brief
   accent ring so the eye finds the company after the auto-scroll. */
.ceca-member-card.is-hash-target {
	outline: 3px solid var(--ceca-ml-accent, #c65a93);
	outline-offset: 4px;
	transition: outline-color 0.4s ease;
}

/* Every logo gets the same treatment as the Figma cards: contained, centred,
   generous whitespace, capped at ~250px wide so small source files are never
   upscaled into blur. The imported full-bleed flag is deliberately neutral
   here — cover-cropping arbitrary-ratio logos into a fixed panel is what
   made them blurry and inconsistent; the flag stays in the markup for
   contexts that can use it (e.g. a future directory circle view). */
.ceca-member-card__logo {
	flex: 0 0 52%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: var(--ceca-ml-logo-bg);
	border: 1px solid var(--ceca-ml-outline);
	overflow: hidden;
}

.ceca-member-card__logo img {
	width: auto;
	height: auto;
	max-width: min(250px, 100%);
	max-height: 150px;
	object-fit: contain;
}

.ceca-member-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px; /* equal all round (user, 2026-09-29) */
	background: var(--ceca-ml-card-bg);
}

/* Figma 221:4743: 22/40 Bold; plum is the design's hover state (221:4743 vs
   its siblings). */
.ceca-members-listing .ceca-member-card__name {
	margin: 0 0 10px;
	color: var(--ceca-ml-name);
	font-size: 22px;
	font-weight: 700;
	line-height: 28px; /* 28px + 10px gap below (user, 2026-09-29) */
	transition: color 0.2s ease;
}

.ceca-members-listing .ceca-member-card:hover .ceca-member-card__name {
	color: var(--ceca-ml-name-hover);
}

/* Figma 221:4739: 18/28 in a 262px column. */
.ceca-members-listing .ceca-member-card__excerpt {
	margin: 0 0 16px;
	max-width: 262px;
	color: var(--ceca-ml-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 24px; /* was 28px (user, 2026-09-29) */
}

/* High specificity + explicit hover so Elementor kit button globals never
   restyle it. */
.ceca-members-listing .ceca-member-card__overview {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-sizing: border-box;
	height: 40px;
	margin-top: auto;
	padding: 0 21px;
	border: 1px solid var(--ceca-ml-btn-border);
	border-radius: 300px;
	background: var(--ceca-ml-btn-bg);
	color: var(--ceca-ml-btn-color);
	font-size: 18px;
	font-weight: 400;
	line-height: 30px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* 25% larger than the Figma 11.05px (user, 2026-09-29). */
.ceca-members-listing .ceca-member-card__overview svg {
	flex: none;
	width: 13.8158px;
	height: 13.8158px;
}

.ceca-members-listing .ceca-member-card__overview:hover,
.ceca-members-listing .ceca-member-card__overview:focus {
	background: var(--ceca-ml-btn-bg-hover);
	color: var(--ceca-ml-btn-color-hover);
}

/* The icon circle follows currentColor, which goes white on hover, so the
   arrow inside flips to the hover background colour to stay visible. */
.ceca-members-listing .ceca-member-card__arrow {
	transition: stroke 0.2s ease;
}

.ceca-members-listing .ceca-member-card__overview:hover .ceca-member-card__arrow,
.ceca-members-listing .ceca-member-card__overview:focus .ceca-member-card__arrow {
	stroke: var(--ceca-ml-btn-bg-hover);
}

.ceca-ml__status,
.ceca-ml__empty {
	margin: 20px 0 0;
	text-align: center;
	font-size: 16px;
	color: #6b6b6b;
}

.ceca-ml__sentinel {
	height: 1px;
}

/* --- Overview dialog ------------------------------------------------------- */

.ceca-ml__dialog {
	width: min(680px, calc(100vw - 40px));
	max-height: min(80vh, 720px);
	padding: 30px;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 30px 80px rgba(17, 5, 10, 0.35);
}

.ceca-ml__dialog::backdrop {
	background: rgba(17, 5, 10, 0.55);
}

/* Floated into the top-right corner (inside the dialog's 30px padding) so a
   long name or wide logo wraps around it rather than sliding underneath.
   Black circle / white X; hover inverts to white with a black ring. */
.ceca-members-listing .ceca-ml__dialog-close {
	float: right;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 0 12px 20px;
	padding: 0;
	border: 1px solid #000;
	border-radius: 50%;
	background: #000;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ceca-members-listing .ceca-ml__dialog-close svg {
	width: 16px;
	height: 16px;
}

.ceca-members-listing .ceca-ml__dialog-close:hover,
.ceca-members-listing .ceca-ml__dialog-close:focus-visible {
	background: #fff;
	color: #000;
}

.ceca-member-detail__logo {
	max-width: 220px;
	margin-bottom: 20px;
}

.ceca-member-detail__logo img {
	max-width: 100%;
	height: auto;
}

.ceca-member-detail__name {
	margin: 0 0 14px;
	color: #000; /* design change: titles black, not plum */
	font-size: 26px;
	font-weight: 700;
}

.ceca-member-detail__content {
	font-size: 16px;
	line-height: 1.55;
	color: #1a1a1a;
}

.ceca-members-listing .ceca-member-detail__website {
	display: inline-block;
	margin-top: 18px;
	color: #411024;
	font-weight: 700;
	text-decoration: underline;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 767px) {
	.ceca-ml__head {
		margin-bottom: 40px;
	}

	.ceca-members-listing .ceca-ml__heading {
		font-size: 30px;
		line-height: 35px;
	}

	.ceca-members-listing .ceca-ml__intro {
		font-size: 18px;
		line-height: 26px;
	}

	.ceca-members-listing .ceca-ml__subheading {
		font-size: 25px;
		line-height: 30px;
	}

	.ceca-member-card {
		flex-direction: column;
		min-height: 0;
	}

	.ceca-member-card__logo {
		flex: none;
		min-height: 150px;
		padding: 24px;
	}

	.ceca-ml__filter-panel {
		right: auto;
		left: 0;
	}

	.ceca-ml__filter-group--categories .ceca-ml__filter-options {
		columns: 1;
	}
}

/* Phones: the excerpt runs the card's full width — the desktop 262px
   column left a ~100px hole (QA, 2026-10-02). */
@media (max-width: 767px) {
	.ceca-members-listing .ceca-member-card__excerpt {
		max-width: none;
	}
}
