/*
 * Partner Marketplace — scoped stylesheet.
 * Every selector lives under .mkt-scope so nothing here can leak onto (or be
 * overridden by) any other page's styles. Tokens mirror the theme's existing
 * best-practice scoped pattern (css/eor-single-v2.css) and reuse the site's
 * vetted brand palette.
 */

.mkt-scope {
	--mkt-brand: #007AA4;
	--mkt-brand-dark: #002F3F;
	--mkt-teal: #28B7B7;
	--mkt-teal-mid: #1497BA;
	--mkt-accent: #FF5C00;
	--mkt-accent-2: #FF9900;
	--mkt-accent-gradient: linear-gradient(79.07deg, #FF5C00 2.07%, #FF9900 97.77%);
	--mkt-heading: #0e1e28;
	--mkt-text: #3d4f58;
	--mkt-light-text: #616C72;
	--mkt-line: #e6edf0;
	--mkt-bg: #f7f9fa;
	--mkt-bg-alt: #EEF3F5;
	--mkt-white: #fff;
	--mkt-radius: 14px;
	--mkt-radius-sm: 10px;
	--mkt-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	--mkt-shadow-hover: 5px 10px 25px rgba(0, 0, 0, 0.25);
	--mkt-font: 'Open Sans', system-ui, sans-serif;
	--mkt-font-display: 'Raleway', 'Open Sans', sans-serif;

	font-family: var(--mkt-font);
	color: var(--mkt-text);
	background: var(--mkt-white);
}

.mkt-scope h1,
.mkt-scope h2,
.mkt-scope h3 {
	font-family: var(--mkt-font-display);
	color: var(--mkt-heading);
	font-weight: 600;
}

/* Buttons */

.mkt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	padding: 14px 28px;
	border-radius: var(--mkt-radius-sm);
	border: 2px solid transparent;
	font: 700 15px/1 var(--mkt-font);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s ease;
}

.mkt-btn--primary {
	background: var(--mkt-accent-gradient);
	color: var(--mkt-white);
	border-color: transparent;
}

.mkt-btn--primary:hover {
	filter: brightness(0.95);
	color: var(--mkt-white);
}

.mkt-btn--ghost {
	background: transparent;
	color: var(--mkt-brand);
	border-color: var(--mkt-brand);
}

.mkt-btn--ghost:hover {
	background: var(--mkt-bg-alt);
}

.mkt-btn:focus-visible {
	outline: 3px solid var(--mkt-teal);
	outline-offset: 2px;
}

/* Hero */

.mkt-hero {
	background: var(--mkt-bg-alt);
	padding: 56px 0;
}

.mkt-hero__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}

.mkt-single .mkt-hero__inner,
.mkt-become-partner .mkt-hero__inner {
	text-align: left;
}

.mkt-hero__heading {
	font-size: 40px;
	line-height: 1.15;
	margin: 0 0 16px;
}

.mkt-hero__intro {
	font-size: 18px;
	color: var(--mkt-light-text);
	margin: 0 0 24px;
}

.mkt-hero__logo-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	height: 96px;
	padding: 20px 32px;
	margin-bottom: 24px;
	border-radius: var(--mkt-radius-sm);
	border: 1px solid var(--mkt-line);
	background: var(--mkt-white);
	box-shadow: var(--mkt-shadow);
}

.logosection {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mkt-single .mkt-hero__logo-wrap,
.mkt-become-partner .mkt-hero__logo-wrap {
	justify-content: flex-start;
}

.mkt-hero__logo-wrap--dark {
	background: var(--mkt-brand-dark);
	border-color: var(--mkt-brand-dark);
}

.mkt-hero__logo {
	/* Explicit width/height (not max-width/max-height alone) — some SVG logos
	   report no intrinsic size to the layout engine and collapse to 0x0
	   inside a flex container without a definite box to size against. */
	width: auto;
	height: 56px;
	max-width: 220px;
	object-fit: contain;
}

.mkt-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(14, 30, 40, 0.1);
}

.mkt-archive .mkt-hero__stats,
.mkt-become-partner .mkt-hero__stats {
	justify-content: center;
}

.mkt-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mkt-stat__value {
	font-family: var(--mkt-font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--mkt-brand);
}

.mkt-stat__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mkt-light-text);
}

.mkt-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.mkt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mkt-single .mkt-hero__actions {
	justify-content: flex-start;
}

.mkt-archive .mkt-hero__actions,
.mkt-become-partner .mkt-hero__actions {
	justify-content: center;
}

/* Search */

.mkt-search {
	display: flex;
	gap: 8px;
	max-width: 560px;
	margin: 0 auto;
}

.mkt-search input[type="search"] {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--mkt-line);
	border-radius: var(--mkt-radius-sm);
	font-size: 16px;
}

.mkt-search input[type="search"]:focus-visible {
	outline: 3px solid var(--mkt-teal);
	outline-offset: 1px;
}

/* Badges / tags */

.mkt-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 30px;
	background: var(--mkt-white);
	border: 1px solid var(--mkt-line);
	font-size: 13px;
	color: var(--mkt-text);
}

.mkt-badge--cert {
	background: var(--mkt-bg-alt);
	color: var(--mkt-brand-dark);
	font-weight: 600;
}

.mkt-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 8px;
	background: var(--mkt-teal);
	color: var(--mkt-white);
	font-size: 12px;
}

/* Archive layout */

.mkt-archive__layout {
	max-width: 1330px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 32px;
}

.mkt-filters-toggle {
	display: none;
	width: 100%;
	padding: 12px;
	border-radius: var(--mkt-radius-sm);
	border: 1px solid var(--mkt-line);
	background: var(--mkt-white);
	font-weight: 600;
	cursor: pointer;
}

.mkt-filters-panel {
	align-self: start;
}

.mkt-filters__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.mkt-filters__heading {
	font-size: 18px;
	font-weight: 700;
	font-family: var(--mkt-font-display);
	color: var(--mkt-heading);
}

.mkt-filters__clear-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--mkt-brand);
	text-decoration: none;
	white-space: nowrap;
}

.mkt-filters__clear-link:hover {
	text-decoration: underline;
}

.mkt-filters__clear-link:focus-visible {
	outline: 3px solid var(--mkt-teal);
	outline-offset: 2px;
}

.mkt-filter-group {
	border: none;
	padding: 0 0 24px;
	margin: 0 0 24px;
	border-bottom: 1px solid var(--mkt-line);
}

.mkt-filter-group__legend {
	font-size: 14px;
	font-weight: 700;
	font-family: var(--mkt-font-display);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mkt-heading);
	margin-bottom: 14px;
	padding: 0;
}

.mkt-filter-option {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 12px;
	margin: 0 -12px;
	border-radius: var(--mkt-radius-sm);
	cursor: pointer;
	font-size: 16px;
	line-height: 1.3;
	transition: background-color 0.15s ease;
	margin-bottom: 5px;
}

.mkt-filter-option:hover {
	background: var(--mkt-bg-alt);
}

.mkt-filter-option:has(input:checked) {
	background: var(--mkt-bg-alt);
	font-weight: 600;
}

.mkt-filter-option input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 2px solid var(--mkt-line);
	border-radius: 7px;
	background: var(--mkt-white);
	cursor: pointer;
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mkt-filter-option input[type="checkbox"]:hover {
	border-color: var(--mkt-brand);
}

.mkt-filter-option input[type="checkbox"]:checked {
	background: var(--mkt-brand);
	border-color: var(--mkt-brand);
}

.mkt-filter-option input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	height: 12px;
	border: solid var(--mkt-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mkt-filter-option input:focus-visible {
	outline: 3px solid var(--mkt-teal);
	outline-offset: 2px;
}

.mkt-filters__submit {
	width: 100%;
	margin-top: 8px;
}

.mkt-result-count {
	font-weight: 600;
	color: var(--mkt-light-text);
	margin-bottom: 16px;
}

/* Card grid */

.mkt-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mkt-card {
	display: flex;
	flex-direction: column;
	background: var(--mkt-white);
	border: 1px solid var(--mkt-line);
	border-radius: var(--mkt-radius);
	box-shadow: var(--mkt-shadow);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.mkt-card:hover,
.mkt-card:focus-visible {
	box-shadow: var(--mkt-shadow-hover);
	transform: translateY(-4px);
	border-color: var(--mkt-teal);
}

.mkt-card:focus-visible {
	outline: 3px solid var(--mkt-teal);
	outline-offset: 2px;
}

.mkt-card__logo-wrap {
	height: 146px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 28px;
	background: var(--mkt-bg-alt);
	border-bottom: 1px solid var(--mkt-line);
}

.mkt-card__logo-wrap--dark {
	background: var(--mkt-brand-dark);
	border-bottom-color: var(--mkt-brand-dark);
}

.mkt-card__logo {
	max-width: 100%;
	max-height: 48px;
	object-fit: contain;
}

.mkt-card__logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mkt-brand);
	color: var(--mkt-white);
	font-family: var(--mkt-font-display);
	font-weight: 700;
	font-size: 18px;
}

.mkt-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 24px 24px;
}

.mkt-card__title {
	font-size: 20px;
	margin: 0 0 8px;
}

.mkt-card__tagline {
	color: var(--mkt-light-text);
	font-size: 14px;
	margin: 0 0 12px;
}

.mkt-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
}

.mkt-card__badge {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--mkt-brand);
}

/* Empty state */

.mkt-empty-state {
	text-align: center;
	padding: 64px 24px;
	background: var(--mkt-bg);
	border-radius: var(--mkt-radius);
	border: 1px dashed var(--mkt-line);
}

.mkt-empty-state__heading {
	margin: 0 0 12px;
}

.mkt-empty-state__body {
	color: var(--mkt-light-text);
	max-width: 480px;
	margin: 0 auto 24px;
}

.mkt-empty-state__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Pagination */

.mkt-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.mkt-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid var(--mkt-line);
	text-decoration: none;
	color: var(--mkt-text);
}

.mkt-pagination__link--current {
	background: var(--mkt-brand);
	border-color: var(--mkt-brand);
	color: var(--mkt-white);
}

/* Breadcrumbs / back button */

.mkt-breadcrumb-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--mkt-white);
	border-bottom: 1px solid var(--mkt-line);
}

.mkt-breadcrumb-bar__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.mkt-breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	color: var(--mkt-light-text);
}

.mkt-breadcrumbs__item:not(:last-child)::after {
	content: '/';
	margin-left: 6px;
	color: var(--mkt-line);
}

.mkt-breadcrumbs a {
	color: var(--mkt-brand);
	text-decoration: none;
}

.mkt-back-btn {
	font-weight: 600;
	color: var(--mkt-brand);
	text-decoration: none;
}

.mkt-back-btn:focus-visible {
	outline: 3px solid var(--mkt-teal);
	outline-offset: 2px;
}

/* Single partner sections */

.mkt-section {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

/*
 * Alternating tint on selected sections for scan-ability on a long,
 * stacked single-partner page — a full-bleed background on an otherwise
 * width-constrained element, without extra wrapper markup: the oversized
 * box-shadow paints edge-to-edge and clip-path trims it back to the
 * viewport so it can't cause horizontal overflow.
 */
.mkt-section--description,
.mkt-section--data-flow,
.mkt-section--resources {
	background: var(--mkt-bg);
	box-shadow: 0 0 0 100vmax var(--mkt-bg);
	clip-path: inset(0 -100vmax);
}

.mkt-features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.mkt-feature-card {
	background: var(--mkt-bg);
	border-radius: var(--mkt-radius-sm);
	padding: 20px;
}

.mkt-feature-card h3 {
	font-size: 18px;
	margin: 0 0 8px;
}

/* How It Works — numbered steps */

.mkt-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mkt-steps__item {
	display: flex;
	gap: 18px;
	padding: 16px 0;
	position: relative;
}

.mkt-steps__item:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 19px;
	top: 56px;
	bottom: -4px;
	width: 2px;
	background: var(--mkt-line);
}

.mkt-steps__number {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mkt-brand);
	color: var(--mkt-white);
	font-family: var(--mkt-font-display);
	font-weight: 700;
	font-size: 16px;
	z-index: 1;
}

.mkt-steps__body {
	padding-top: 8px;
}

.mkt-steps__body strong {
	display: block;
	font-family: var(--mkt-font-display);
	font-size: 18px;
	color: var(--mkt-heading);
	margin-bottom: 4px;
}

.mkt-steps__body p {
	margin: 0;
	color: var(--mkt-light-text);
	font-size: 16px;
}

/* Integration Flow diagram */

.mkt-flow {
	display: grid;
	grid-template-columns: 120px 1fr 120px;
	align-items: center;
	gap: 20px;
}

.mkt-flow__node {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
	padding: 16px;
	border-radius: var(--mkt-radius-sm);
	border: 1px solid var(--mkt-line);
	background: var(--mkt-white);
	box-shadow: var(--mkt-shadow);
	text-align: center;
}

.mkt-flow__node-logo {
	max-width: 100%;
	width: auto;
	height: 40px;
	max-height: 40px;
	object-fit: contain;
}

.mkt-flow__node--mercans {
	background: var(--mkt-brand-dark);
	border-color: var(--mkt-brand-dark);
}

.mkt-flow__node--mercans .mkt-flow__node-label {
	color: var(--mkt-white);
	font-family: var(--mkt-font-display);
	font-weight: 700;
	font-size: 16px;
}

.mkt-flow__node--partner .mkt-flow__node-label {
	font-family: var(--mkt-font-display);
	font-weight: 700;
	font-size: 16px;
	color: var(--mkt-heading);
}

.mkt-flow__node--dark {
	background: var(--mkt-brand-dark);
	border-color: var(--mkt-brand-dark);
}

.mkt-flow__stream {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mkt-flow__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: var(--mkt-radius-sm);
	background: var(--mkt-bg);
	border: 1px solid var(--mkt-line);
}

.mkt-flow__item-arrow {
	flex-shrink: 0;
	width: 28px;
	height: 20px;
	position: relative;
}

.mkt-flow__item-arrow::before {
	content: '\2192'; /* → */
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: var(--mkt-teal);
}

.mkt-flow__item--outbound .mkt-flow__item-arrow::before {
	content: '\2190'; /* ← */
	color: var(--mkt-accent);
}

.mkt-flow__item--bidirectional .mkt-flow__item-arrow::before {
	content: '\21c4'; /* ⇄ */
	color: var(--mkt-brand);
}

.mkt-flow__item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.mkt-flow__item-body strong {
	font-size: 15px;
	color: var(--mkt-heading);
}

.mkt-flow__item-freq {
	font-size: 12px;
	color: var(--mkt-light-text);
}

.mkt-flow__item-direction {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--mkt-light-text);
	text-align: right;
}

.mkt-detail-list__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mkt-line);
}

.mkt-detail-list__row dt {
	font-weight: 700;
	color: var(--mkt-heading);
}

.mkt-detail-list__row dd {
	margin: 0;
}

.mkt-resource-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mkt-resource-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--mkt-line);
}

.mkt-resource-list a {
	color: var(--mkt-brand);
	text-decoration: none;
	font-weight: 600;
}

.mkt-section--related {
	max-width: 1100px;
}

.mkt-cta-band {
	background: var(--mkt-brand-dark);
	color: var(--mkt-white);
	text-align: center;
	padding: 56px 24px;
}

.mkt-cta-band h2 {
	color: var(--mkt-white);
	margin-bottom: 20px;
}

/* Become a Partner tiers */

.mkt-tiers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.mkt-tier-card {
	background: var(--mkt-bg);
	border-radius: var(--mkt-radius-sm);
	padding: 24px;
	text-align: center;
}

/* Screen-reader only utility (mirrors WordPress core's .screen-reader-text) */

.mkt-scope .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Responsive */

@media (max-width: 1024px) {
	.mkt-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mkt-tiers-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 899px) {
	.mkt-archive__layout {
		grid-template-columns: 1fr;
	}

	.mkt-filters-toggle {
		display: block;
	}

	.mkt-filters-panel {
		display: none;
		background: var(--mkt-white);
		border: 1px solid var(--mkt-line);
		border-radius: var(--mkt-radius);
		padding: 20px;
		margin-bottom: 20px;
	}

	.mkt-filters-panel[data-mkt-open="true"] {
		display: block;
	}
}

@media (max-width: 576px) {
	.mkt-card-grid {
		grid-template-columns: 1fr;
	}

	.mkt-features-grid,
	.mkt-tiers-grid {
		grid-template-columns: 1fr;
	}

	.mkt-detail-list__row {
		grid-template-columns: 1fr;
	}

	.mkt-hero__heading {
		font-size: 28px;
	}

	.mkt-flow {
		grid-template-columns: 1fr;
	}

	.mkt-flow__node {
		height: auto;
	}

	.mkt-flow__item {
		flex-wrap: wrap;
	}

	.mkt-flow__item-direction {
		text-align: left;
		flex-basis: 100%;
		margin-left: 42px;
	}
}
