/* Member Cards — card and verification styles.
 * The card keeps the ID-1 (credit card) ratio, 85.6 × 54 mm, and scales
 * with its container using container query units. */

.mcard-wrap {
	container-type: inline-size;
	max-width: 440px;
	margin: 0 auto 1.5em;
}

.mcard {
	--mcard-bg: #1e3a5f;
	--mcard-text: #ffffff;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	aspect-ratio: 85.6 / 54;
	padding: 5cqw 5.5cqw;
	border-radius: 4.5cqw;
	background:
		radial-gradient(circle at 110% -20%, rgba(255, 255, 255, .18) 0 38%, transparent 38.5%),
		radial-gradient(circle at -10% 130%, rgba(0, 0, 0, .18) 0 40%, transparent 40.5%),
		var(--mcard-bg);
	color: var(--mcard-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 3.4cqw;
	line-height: 1.25;
	box-shadow: 0 1.5cqw 5cqw rgba(0, 0, 0, .25);
	display: flex;
	flex-direction: column;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.mcard * {
	box-sizing: border-box;
}

.mcard-header {
	display: flex;
	align-items: center;
	gap: .7em;
	margin-bottom: auto;
}

.mcard-logo {
	height: 2.6em;
	width: auto;
	max-width: 7em;
	object-fit: contain;
}

.mcard-org-name {
	font-weight: 700;
	font-size: 1.15em;
	letter-spacing: .01em;
}

.mcard-title {
	font-size: .72em;
	text-transform: uppercase;
	letter-spacing: .14em;
	opacity: .8;
}

.mcard-body {
	display: grid;
	grid-template-columns: 22% 1fr 29%;
	align-items: end;
	gap: 4cqw;
}

.mcard-photo {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 1.5cqw;
	border: .5cqw solid rgba(255, 255, 255, .85);
	background: rgba(255, 255, 255, .15);
	display: block;
}

.mcard-info {
	min-width: 0;
}

.mcard-name {
	font-weight: 700;
	font-size: 1.3em;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.mcard-level {
	display: inline-block;
	margin: .3em 0 .5em;
	padding: .1em .55em;
	border-radius: 1em;
	background: rgba(255, 255, 255, .2);
	font-size: .75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.mcard-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .1em .6em;
	margin: 0;
	font-size: .78em;
}

.mcard-meta dt {
	opacity: .7;
	margin: 0;
}

.mcard-meta dd {
	margin: 0;
	font-weight: 600;
}

.mcard-number {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	letter-spacing: .04em;
}

.mcard-qr-box {
	background: #fff;
	border-radius: 2cqw;
	padding: .6cqw;
	line-height: 0;
}

.mcard-qr-box svg {
	width: 100%;
	height: auto;
	display: block;
}

.mcard-stamp {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-14deg);
	padding: .15em .6em;
	border: .5cqw solid #ff4d4f;
	border-radius: 1.5cqw;
	color: #ff4d4f;
	background: rgba(255, 255, 255, .85);
	font-size: 2.2em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	pointer-events: none;
}

.mcard-actions {
	text-align: center;
	margin-top: 1em;
}

.mcard-print {
	cursor: pointer;
}

/* Organization cards show the company logo on white. */
.mcard--org .mcard-photo {
	object-fit: contain;
	background: #fff;
	padding: 1cqw;
}

.mcard-photo--initials {
	display: grid;
	place-items: center;
	font-size: 2.6em;
	font-weight: 700;
	color: var(--mcard-text);
	background: rgba(255, 255, 255, .18);
}

.mcard-sub {
	font-size: .8em;
	opacity: .8;
	margin: .25em 0 .55em;
}

/* Golden: metallic gold. */
.mcard--cat-golden {
	background:
		linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .45) 45%, rgba(255, 255, 255, 0) 60%),
		radial-gradient(circle at 110% -20%, rgba(255, 255, 255, .25) 0 38%, transparent 38.5%),
		linear-gradient(135deg, #f1d98a 0%, #d4ae4c 35%, #b8892b 70%, #e6c76d 100%);
	border: .4cqw solid rgba(120, 85, 10, .45);
}

.mcard--cat-golden .mcard-photo {
	border-color: rgba(80, 55, 5, .6);
}

/* Green: deep green with a leaf-light highlight. */
.mcard--cat-green {
	background:
		radial-gradient(circle at 110% -20%, rgba(170, 230, 160, .25) 0 38%, transparent 38.5%),
		radial-gradient(circle at -10% 130%, rgba(0, 0, 0, .2) 0 40%, transparent 40.5%),
		linear-gradient(135deg, #2a8a55, var(--mcard-bg) 60%, #14502f);
}

/* ---------- Buttons ---------- */

.mcard-button {
	display: inline-block;
	margin: 0 .3em .4em;
	padding: .55em 1.1em;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.mcard-button--primary {
	background: #1d2b4f;
	border-color: #1d2b4f;
	color: #fff;
}

/* ---------- Certificate (A4 / Letter landscape) ---------- */

.mcard-cert-wrap {
	max-width: 960px;
}

.mcard-cert {
	--mcard-gold: #b8892b;
	position: relative;
	box-sizing: border-box;
	aspect-ratio: 297 / 210;
	padding: 2.2cqw;
	background: var(--mcard-bg);
	font-family: Georgia, "Times New Roman", serif;
	color: #1f2430;
	box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, .2);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.mcard-cert * {
	box-sizing: border-box;
}

.mcard-cert-frame {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 3cqw 6cqw 2.6cqw;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(184, 137, 43, .08), transparent 60%),
		#fffdf7;
	border: .35cqw solid var(--mcard-gold);
	outline: .12cqw solid var(--mcard-gold);
	outline-offset: -1.1cqw;
}

.mcard-cert-top {
	display: flex;
	align-items: center;
	gap: 1.4cqw;
}

.mcard-cert-logo {
	height: 5cqw;
	width: auto;
	max-width: 14cqw;
	object-fit: contain;
}

.mcard-cert-org {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1.55cqw;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mcard-bg);
}

.mcard-cert-title {
	margin-top: auto;
	padding-top: 1cqw;
	font-size: 4.1cqw;
	line-height: 1.1;
	color: var(--mcard-bg);
	letter-spacing: .02em;
}

.mcard-cert-intro {
	margin-top: 2.2cqw;
	font-size: 1.7cqw;
	font-style: italic;
	color: #555;
}

.mcard-cert-name {
	margin-top: .8cqw;
	padding: 0 3cqw .6cqw;
	font-size: 4.6cqw;
	line-height: 1.15;
	font-weight: 700;
	border-bottom: .15cqw solid var(--mcard-gold);
	overflow-wrap: anywhere;
}

.mcard-cert-text {
	margin-top: 1.4cqw;
	font-size: 1.75cqw;
	max-width: 70cqw;
}

.mcard-cert-details {
	display: flex;
	gap: 5cqw;
	margin-top: 2.8cqw;
	margin-bottom: 1cqw;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mcard-cert-details div {
	display: flex;
	flex-direction: column;
	gap: .3cqw;
}

.mcard-cert-details span {
	font-size: 1.1cqw;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: #6b6f7a;
}

.mcard-cert-details strong {
	font-size: 1.65cqw;
}

.mcard-cert-bottom {
	margin-top: auto;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
}

.mcard-cert-sign {
	justify-self: start;
	text-align: center;
	min-width: 24cqw;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mcard-cert-sign img {
	height: 4.5cqw;
	width: auto;
	display: block;
	margin: 0 auto -.6cqw;
}

.mcard-cert-line {
	border-top: .12cqw solid #333;
	margin-bottom: .5cqw;
}

.mcard-cert-signer {
	font-size: 1.35cqw;
	font-weight: 600;
}

.mcard-cert-signer-title {
	font-size: 1.1cqw;
	color: #6b6f7a;
}

.mcard-cert-seal {
	width: 11cqw;
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle, #f3dc8f 0 52%, #c99a35 53% 56%, #f3dc8f 57% 62%, #b8892b 63%);
	box-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .2);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1.15cqw;
	font-weight: 800;
	letter-spacing: .12em;
	color: #5a3f05;
	text-align: center;
	padding: 2cqw;
	line-height: 1.2;
}

.mcard-cert-verify {
	justify-self: end;
	text-align: center;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mcard-cert-verify .mcard-qr-box {
	width: 14cqw;
	padding: .3cqw;
	border: .1cqw solid #ddd;
	border-radius: .6cqw;
}

.mcard-cert-verify small {
	display: block;
	margin-top: .4cqw;
	font-size: 1cqw;
	color: #6b6f7a;
}

.mcard-cert .mcard-stamp {
	font-size: 5cqw;
	border-width: .4cqw;
}

/* ---------- Directory ---------- */

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

.mcard-directory-search {
	display: flex;
	gap: .5em;
	margin-bottom: 1.2em;
}

.mcard-directory-search input {
	flex: 1;
	padding: .55em .7em;
	font-size: 1rem;
}

.mcard-directory-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1em;
}

.mcard-directory-item {
	display: flex;
	gap: .9em;
	align-items: center;
	padding: .9em 1em;
	border: 1px solid #e2e2e2;
	border-left: 5px solid var(--mcard-cat, #1e3a5f);
	border-radius: 8px;
	background: #fff;
}

.mcard-directory-img {
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}

.mcard-directory-img.is-logo {
	border-radius: 8px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #eee;
}

.mcard-directory-initial {
	display: grid;
	place-items: center;
	background: var(--mcard-cat, #1e3a5f);
	color: #fff;
	font-weight: 700;
	font-size: 1.4em;
}

.mcard-directory-name {
	font-weight: 700;
	line-height: 1.25;
}

.mcard-directory-cat {
	display: inline-block;
	margin-top: .25em;
	padding: .05em .55em;
	border-radius: 1em;
	background: var(--mcard-cat, #1e3a5f);
	color: var(--mcard-cat-text, #fff);
	font-size: .75em;
	font-weight: 600;
}

.mcard-directory-country {
	font-size: .85em;
	color: #666;
	margin-top: .2em;
}

/* ---------- Verification page ---------- */

.mcard-verify {
	max-width: 480px;
	margin: 0 auto 1.5em;
	padding: 1.25em 1.5em;
	border-radius: 12px;
	border: 2px solid #ccc;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mcard-verify--valid {
	border-color: #1a7f37;
	background: #eefbf1;
}

.mcard-verify--invalid {
	border-color: #cf222e;
	background: #fff0f0;
}

.mcard-verify-badge {
	font-size: 1.6em;
	font-weight: 800;
	margin-bottom: .6em;
}

.mcard-verify--valid .mcard-verify-badge {
	color: #1a7f37;
}

.mcard-verify--invalid .mcard-verify-badge {
	color: #cf222e;
}

.mcard-verify-person {
	display: flex;
	gap: 1em;
	align-items: flex-start;
}

.mcard-verify-photo {
	width: 96px;
	height: 128px;
	object-fit: cover;
	border-radius: 8px;
	flex: none;
}

.mcard-verify-photo.is-logo {
	object-fit: contain;
	background: #fff;
	height: 96px;
}

.mcard-verify-name {
	font-size: 1.3em;
	font-weight: 700;
	margin-bottom: .4em;
}

.mcard-verify-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .2em .8em;
	margin: 0;
}

.mcard-verify-meta dt {
	color: #555;
	margin: 0;
}

.mcard-verify-meta dd {
	margin: 0;
	font-weight: 600;
}

.mcard-verify-time {
	margin: 1em 0 0;
	font-size: .85em;
	color: #555;
}

/* ---------- Print: just the card, at real size ---------- */

@media print {
	@page {
		margin: 12mm;
	}

	html,
	body {
		background: #fff !important;
	}

	body * {
		visibility: hidden;
	}

	.mcard-wrap,
	.mcard-wrap * {
		visibility: visible;
	}

	.mcard-wrap {
		position: absolute;
		top: 0;
		left: 0;
		width: 85.6mm;
		max-width: none;
		margin: 0;
	}

	.mcard {
		box-shadow: none;
		border-radius: 3.2mm;
	}

	.mcard-actions {
		display: none;
	}

	.mcard-cert-wrap {
		width: 257mm;
	}

	.mcard-cert {
		box-shadow: none;
	}
}

/* ---------- Application form ---------- */

.mcard-apply {
	max-width: 560px;
	margin: 0 auto 1.5em;
}

.mcard-apply label {
	display: block;
	font-weight: 600;
	margin-bottom: .3em;
}

.mcard-apply input[type="text"],
.mcard-apply input:not([type]),
.mcard-apply input[type="email"],
.mcard-apply input[type="url"],
.mcard-apply input[type="tel"],
.mcard-apply textarea {
	width: 100%;
	font-family: inherit;
	box-sizing: border-box;
	padding: .55em .7em;
	font-size: 1rem;
}

.mcard-apply-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1em;
}

.mcard-apply fieldset {
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: .8em 1em;
	margin: 0 0 1em;
}

.mcard-apply legend {
	font-weight: 600;
	padding: 0 .3em;
}

.mcard-apply .mcard-apply-inline {
	display: inline-block;
	font-weight: 400;
	margin-right: 1.2em;
}

.mcard-apply .mcard-apply-check {
	font-weight: 400;
	margin-top: .6em;
}

.mcard-apply small {
	display: block;
	color: #666;
	margin-top: .3em;
}

.mcard-apply-errors {
	border-left: 4px solid #cf222e;
	background: #fff0f0;
	padding: .6em 1em;
	margin-bottom: 1em;
}

.mcard-apply-errors ul {
	margin: 0;
	padding-left: 1.2em;
}

.mcard-apply-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.mcard-apply-done {
	max-width: 560px;
	margin: 0 auto 1.5em;
	padding: 1em 1.25em;
	border-left: 4px solid #1a7f37;
	background: #eefbf1;
}

@media (max-width: 520px) {
	.mcard-apply-row {
		grid-template-columns: 1fr;
	}
}

.mcard-apply-cats {
	display: grid;
	gap: .6em;
}

.mcard-apply .mcard-cat-option {
	display: flex;
	gap: .8em;
	align-items: flex-start;
	padding: .8em 1em;
	border: 1px solid #d0d0d0;
	border-left: 6px solid var(--mcard-cat, #1e3a5f);
	border-radius: 8px;
	font-weight: 400;
	cursor: pointer;
	margin: 0;
}

.mcard-apply .mcard-cat-option:has(input:checked) {
	border-color: var(--mcard-cat, #1e3a5f);
	box-shadow: 0 0 0 2px var(--mcard-cat, #1e3a5f) inset;
	background: #fafbfc;
}

.mcard-cat-option input {
	margin-top: .3em;
}

.mcard-cat-body {
	display: flex;
	flex-direction: column;
	gap: .15em;
	flex: 1;
}

.mcard-cat-head {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
}

.mcard-cat-fee {
	font-weight: 700;
	white-space: nowrap;
}

.mcard-cat-summary {
	color: #444;
	font-size: .92em;
}

.mcard-cat-doc {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #777;
}

.mcard-contact {
	margin: 0 0 1em;
}

.mcard-contact-label {
	display: block;
	font-weight: 600;
	margin-bottom: .3em;
}

.mcard-apply-next {
	padding: .7em 1em;
	background: #f3f6fb;
	border-radius: 8px;
	font-size: .92em;
}

/* Show organization fields only for organization categories (when JS runs). */
.mcard-apply.js:not(.is-org) .mcard-org-only {
	display: none;
}

.mcard-apply:not(.is-org) .mcard-org-only-inline,
.mcard-apply.is-org .mcard-person-only-inline {
	display: none;
}

.mcard-apply .mcard-question[hidden] {
	display: none;
}

/* ---------- Pricing cards / table: [mcard_levels layout="cards|table"] ---------- */

.mcard-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.2em;
	margin: 0 0 1.5em;
}

.mcard-tier {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.mcard-tier.is-current {
	box-shadow: 0 0 0 3px var(--mcard-cat);
}

.mcard-tier-head {
	padding: 1.1em 1.2em;
	background: var(--mcard-cat);
	color: var(--mcard-cat-text, #fff);
}

.mcard-tier-name {
	font-weight: 700;
	font-size: 1.15em;
	line-height: 1.2;
}

.mcard-tier-fee {
	margin-top: .35em;
	font-size: 1.6em;
	font-weight: 800;
	letter-spacing: -.01em;
}

.mcard-tier-body {
	padding: 1em 1.2em .4em;
	flex: 1;
}

.mcard-tier-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .25em .8em;
	margin: 0 0 .8em;
	font-size: .92em;
}

.mcard-tier-facts dt {
	color: #6b6f7a;
	margin: 0;
}

.mcard-tier-facts dd {
	margin: 0;
	font-weight: 600;
}

.mcard-tier-summary {
	margin: 0 0 .7em;
	color: #444;
	font-size: .95em;
}

.mcard-tier-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .92em;
}

.mcard-tier-benefits li {
	position: relative;
	padding: .25em 0 .25em 1.5em;
	border-top: 1px solid #f0f0f0;
}

.mcard-tier-benefits li::before {
	content: "✓";
	position: absolute;
	left: .1em;
	color: var(--mcard-cat);
	font-weight: 800;
}

.mcard-tier-foot {
	padding: .8em 1.2em 1.2em;
}

.mcard-tier-button {
	display: block;
	text-align: center;
	padding: .65em 1em;
	border-radius: 8px;
	background: var(--mcard-cat);
	color: var(--mcard-cat-text, #fff) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.mcard-tier-button:hover,
.mcard-tier-button:focus {
	filter: brightness(1.08);
}

.mcard-tier-current {
	display: block;
	text-align: center;
	padding: .65em 1em;
	border-radius: 8px;
	border: 2px solid var(--mcard-cat);
	font-weight: 700;
}

/* Table layout */
.mcard-tiers-table-wrap {
	overflow-x: auto;
	margin: 0 0 1.5em;
}

.mcard-tiers-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: .97em;
}

.mcard-tiers-table th,
.mcard-tiers-table td {
	padding: .75em .9em;
	text-align: left;
	border-bottom: 1px solid #e6e6e6;
	vertical-align: middle;
}

.mcard-tiers-table thead th {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #6b6f7a;
	border-bottom: 2px solid #ddd;
}

.mcard-tiers-table tbody th {
	font-weight: 700;
	white-space: nowrap;
}

.mcard-tiers-dot {
	display: inline-block;
	width: .8em;
	height: .8em;
	border-radius: 50%;
	margin-right: .55em;
	background: var(--mcard-cat);
	vertical-align: -.05em;
}

.mcard-tiers-table .mcard-tier-button,
.mcard-tiers-table .mcard-tier-current {
	display: inline-block;
	padding: .45em 1.1em;
	white-space: nowrap;
}

.mcard-tiers-table-wrap .screen-reader-text,
.mcard-tiers .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

@media (max-width: 640px) {
	.mcard-tiers-table thead {
		display: none;
	}

	.mcard-tiers-table,
	.mcard-tiers-table tbody,
	.mcard-tiers-table tr,
	.mcard-tiers-table th,
	.mcard-tiers-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.mcard-tiers-table tr {
		border: 1px solid #e2e2e2;
		border-left: 5px solid var(--mcard-cat);
		border-radius: 8px;
		margin-bottom: .8em;
	}

	.mcard-tiers-table td,
	.mcard-tiers-table tbody th {
		border: 0;
		padding: .3em .9em;
	}

	.mcard-tiers-table td[data-label]::before {
		content: attr(data-label) ": ";
		color: #6b6f7a;
	}
}

/* ---------- Members-only content ---------- */

.mcard-locked {
	display: flex;
	gap: 1em;
	align-items: flex-start;
	margin: 1.5em 0;
	padding: 1.3em 1.5em;
	border: 1px solid #d9dde7;
	border-radius: 12px;
	background: linear-gradient(180deg, #f7f9fc, #eef2f8);
}

.mcard-locked--compact {
	padding: .9em 1.1em;
	margin: 1em 0;
}

.mcard-locked-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #1d2b4f;
	color: #fff;
}

.mcard-locked-text p {
	margin: 0 0 .6em;
}

.mcard-locked-title {
	font-weight: 700;
	font-size: 1.1em;
}

.mcard-locked .mcard-button {
	margin: 0 .5em .3em 0;
}

/* ---------- Account page [mcard_account] ---------- */

.mcard-account {
	max-width: 720px;
	margin: 0 auto 1.5em;
}

.mcard-account .mcard-apply {
	max-width: none;
}

.mcard-account-box,
.mcard-account-summary {
	margin: 0 0 1.2em;
	padding: 1.2em 1.4em;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	background: #fff;
}

.mcard-account-box h3 {
	margin: 0 0 .8em;
}

.mcard-account-summary {
	padding: 0;
	overflow: hidden;
}

.mcard-account-band {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	padding: 1.1em 1.4em;
	background: var(--mcard-cat);
	color: var(--mcard-cat-text, #fff);
}

.mcard-account-cat {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .1em;
	opacity: .85;
}

.mcard-account-name {
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1.2;
}

.mcard-badge {
	flex: none;
	padding: .25em .8em;
	border-radius: 1em;
	font-size: .85em;
	font-weight: 700;
	background: #fff;
	color: #1a7f37;
}

.mcard-badge--expired,
.mcard-badge--suspended,
.mcard-badge--cancelled {
	color: #cf222e;
}

.mcard-account-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: .8em 1.2em;
	margin: 0;
	padding: 1.1em 1.4em .4em;
}

.mcard-account-facts dt {
	font-size: .78em;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #6b6f7a;
	margin: 0;
}

.mcard-account-facts dd {
	margin: .15em 0 0;
	font-weight: 700;
}

.mcard-account-actions {
	padding: .6em 1.1em .4em;
	margin: 0;
}

.mcard-account-note {
	color: #666;
	font-size: .9em;
	margin: 0 1.4em 1em;
}

.mcard-account-box .mcard-account-note {
	margin: .5em 0 1em;
}

.mcard-account-photo {
	display: flex;
	gap: 1em;
	align-items: flex-start;
}

.mcard-account-photo img {
	width: 84px;
	height: 108px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #eee;
	flex: none;
}

.mcard-account-photo img.is-logo {
	height: 84px;
	object-fit: contain;
	background: #fff;
}

.mcard-account-payments {
	width: 100%;
	border-collapse: collapse;
	font-size: .95em;
}

.mcard-account-payments th,
.mcard-account-payments td {
	padding: .55em .5em;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.mcard-account-payments thead th {
	font-size: .78em;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #6b6f7a;
}

@media (max-width: 560px) {
	.mcard-account-payments thead {
		display: none;
	}

	.mcard-account-payments tr,
	.mcard-account-payments td {
		display: block;
	}

	.mcard-account-payments tr {
		padding: .5em 0;
		border-bottom: 1px solid #eee;
	}

	.mcard-account-payments td {
		border: 0;
		padding: .1em 0;
	}

	.mcard-account-payments td::before {
		content: attr(data-label) ": ";
		color: #6b6f7a;
	}
}

/* ---------- Log In / Create Account / Lost Password ---------- */

.mcard-auth {
	display: flex;
	justify-content: center;
	padding: 1em 0 2em;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mcard-auth-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	padding: 2em 2em 1.6em;
	border: 1px solid #e3e5ea;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(20, 30, 60, .08);
}

.mcard-auth-card--wide {
	max-width: 520px;
}

.mcard-auth-logo {
	display: block;
	max-height: 56px;
	max-width: 200px;
	margin: 0 auto 1em;
	object-fit: contain;
}

.mcard-auth-title {
	margin: 0 0 .35em !important;
	font-size: 1.55em !important;
	line-height: 1.2 !important;
	text-align: center;
	color: #1d2327;
}

.mcard-auth-sub {
	margin: 0 0 1.3em;
	text-align: center;
	color: #5b6170;
	font-size: .95em;
}

.mcard-auth-errors,
.mcard-auth-notice {
	margin: 0 0 1.2em;
	padding: .75em 1em;
	border-radius: 8px;
	font-size: .93em;
}

.mcard-auth-errors {
	background: #fff0f0;
	border: 1px solid #f3c2c2;
	color: #8a1f1f;
}

.mcard-auth-errors p {
	margin: 0;
}

.mcard-auth-errors p + p {
	margin-top: .4em;
}

.mcard-auth-notice {
	background: #eefbf1;
	border: 1px solid #b7e3c3;
	color: #155724;
}

.mcard-social {
	display: grid;
	gap: .6em;
	margin: 0 0 1.1em;
}

.mcard-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 46px;
	padding: .6em 1em;
	border-radius: 10px;
	font-weight: 600;
	font-size: .98em;
	text-decoration: none !important;
	transition: filter .15s, background .15s;
}

.mcard-social-btn--google {
	background: #fff;
	color: #1f1f1f !important;
	border: 1px solid #c7cbd3;
}

.mcard-social-btn--google:hover,
.mcard-social-btn--google:focus {
	background: #f6f7f9;
}

.mcard-social-btn--apple {
	background: #000;
	color: #fff !important;
	border: 1px solid #000;
}

.mcard-social-btn--apple:hover,
.mcard-social-btn--apple:focus {
	filter: brightness(1.25);
}

/* Empty by default: add the official logo images per Google/Apple brand guidelines, e.g.
   .mcard-social-btn--google .mcard-social-icon { background-image: url(...); width: 18px; height: 18px; } */
.mcard-social-icon:empty {
	display: none;
}

.mcard-auth-or {
	display: flex;
	align-items: center;
	gap: .8em;
	margin: 0 0 1.1em;
	color: #8a8f99;
	font-size: .85em;
}

.mcard-auth-or::before,
.mcard-auth-or::after {
	content: "";
	flex: 1;
	border-top: 1px solid #e3e5ea;
}

.mcard-auth-form p {
	margin: 0 0 1em;
}

.mcard-auth-form label {
	display: block;
	margin-bottom: .3em;
	font-weight: 600;
	font-size: .92em;
	color: #2b2f36;
}

.mcard-auth-form input[type="text"],
.mcard-auth-form input[type="email"],
.mcard-auth-form input[type="password"],
.mcard-auth-form input:not([type]) {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: .6em .8em;
	border: 1px solid #c7cbd3;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
}

.mcard-auth-form input:focus {
	outline: none;
	border-color: #1d2b4f;
	box-shadow: 0 0 0 3px rgba(29, 43, 79, .15);
}

.mcard-auth-form small {
	display: block;
	margin-top: .3em;
	color: #6b6f7a;
	font-size: .82em;
}

.mcard-auth-label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.mcard-auth-label-row a {
	font-size: .85em;
}

.mcard-auth-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 .8em;
}

.mcard-auth-check label {
	display: flex;
	gap: .5em;
	align-items: flex-start;
	font-weight: 400;
	font-size: .92em;
}

.mcard-auth-check input {
	margin-top: .2em;
}

.mcard-auth-submit,
.mcard-auth-secondary {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 48px;
	padding: .7em 1em;
	border: 0;
	border-radius: 10px;
	background: #1d2b4f;
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}

.mcard-auth-submit:hover,
.mcard-auth-submit:focus {
	filter: brightness(1.15);
}

.mcard-auth-secondary {
	margin-top: .6em;
	background: #fff;
	color: #1d2b4f !important;
	border: 1px solid #1d2b4f;
}

.mcard-auth-switch {
	margin: 1.2em 0 0;
	text-align: center;
	font-size: .93em;
	color: #5b6170;
}

.mcard-auth-note {
	margin: 1.2em 0 0;
	font-size: .85em;
	color: #6b6f7a;
	text-align: center;
}

.mcard-auth-chosen {
	margin: 0 auto 1em;
	padding: .45em .9em;
	width: fit-content;
	border-radius: 2em;
	border: 2px solid var(--mcard-cat, #1d2b4f);
	font-size: .95em;
	text-align: center;
}

.mcard-steps {
	display: flex;
	justify-content: center;
	gap: 1.2em;
	margin: 0 0 1.3em;
	padding: 0;
	list-style: none;
	font-size: .8em;
	color: #8a8f99;
}

.mcard-steps li {
	display: flex;
	align-items: center;
	gap: .4em;
}

.mcard-steps span {
	display: inline-grid;
	place-items: center;
	width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	border: 1px solid #c7cbd3;
	font-weight: 700;
}

.mcard-steps .is-current {
	color: #1d2b4f;
	font-weight: 700;
}

.mcard-steps .is-current span {
	background: #1d2b4f;
	border-color: #1d2b4f;
	color: #fff;
}

@media (max-width: 480px) {
	.mcard-auth-card {
		padding: 1.5em 1.2em 1.2em;
		border-radius: 12px;
	}

	.mcard-auth-row {
		grid-template-columns: 1fr;
	}

	.mcard-steps {
		gap: .7em;
	}
}

/* Account page: ways to log in */
.mcard-signin-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcard-signin-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	padding: .55em 0;
	border-bottom: 1px solid #eee;
}

.mcard-signin-list .mcard-button {
	margin: 0;
}

.mcard-signin-on {
	color: #1a7f37;
	font-weight: 600;
}

/* ---------- Plan chooser (default [mcard_levels]) ---------- */

.mcard-plans {
	margin: 0 0 2em;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #1d2327;
}

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

.mcard-plans-intro {
	margin: 0 0 1.6em;
}

.mcard-plans-intro > h2,
.mcard-plans-intro > p,
.mcard-plans-intro > ul {
	max-width: 640px;
}

.mcard-plans-step {
	margin: 0 0 .3em;
	font-size: .8em;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #6b6f7a;
}

.mcard-plans-title {
	margin: 0 0 .5em !important;
	font-size: 1.9em !important;
	line-height: 1.15 !important;
}

.mcard-plans-sub {
	margin: 0;
	color: #4a4f5a;
}

.mcard-plans-points {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcard-plans-points li {
	position: relative;
	padding: .2em 0 .2em 1.8em;
	font-size: 1.02em;
}

.mcard-plans-points li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #c9a13b;
	font-weight: 900;
	font-size: 1.15em;
	line-height: 1.2;
}

.mcard-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1em;
	align-items: stretch;
}

.mcard-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: .5em;
	border: 1px solid #d9dce3;
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	transition: box-shadow .15s, transform .15s, border-color .15s;
}

.mcard-plan-card:hover {
	box-shadow: 0 8px 24px rgba(20, 30, 60, .1);
}

.mcard-plan-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mcard-plan-card:has(.mcard-plan-radio:checked),
.mcard-plan-card.is-selected {
	border-color: var(--mcard-cat);
	box-shadow: 0 0 0 3px var(--mcard-cat), 0 12px 30px rgba(20, 30, 60, .16);
	transform: translateY(-2px);
}

.mcard-plan-card:has(.mcard-plan-radio:focus-visible) {
	outline: 3px solid #2b55c7;
	outline-offset: 3px;
}

.mcard-plan-card.is-current {
	cursor: default;
	opacity: .9;
}

.mcard-plan-top {
	position: relative;
	display: block;
	padding: 1em 1em 1.1em;
	border-radius: 11px;
	background: var(--mcard-cat); /* Fallback for older browsers. */
	background:
		radial-gradient(circle at 120% -20%, rgba(255, 255, 255, .28) 0 45%, transparent 46%),
		linear-gradient(140deg, var(--mcard-cat), color-mix(in srgb, var(--mcard-cat) 70%, #000));
	color: var(--mcard-cat-text, #fff);
}

.mcard-plan-name {
	display: block;
	font-size: 1.35em;
	font-weight: 800;
	line-height: 1.1;
}

.mcard-plan-for {
	display: block;
	margin-top: .25em;
	font-size: .9em;
	opacity: .9;
}

.mcard-plan-doc {
	display: inline-block;
	margin-top: .7em;
	padding: .12em .65em;
	border-radius: 1em;
	background: rgba(255, 255, 255, .22);
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mcard-plan-check {
	position: absolute;
	top: .7em;
	right: .7em;
	display: grid;
	place-items: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: #fff;
	color: var(--mcard-cat);
	font-weight: 900;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .15s, transform .15s;
}

.mcard-plan-card:has(.mcard-plan-radio:checked) .mcard-plan-check,
.mcard-plan-card.is-selected .mcard-plan-check {
	opacity: 1;
	transform: scale(1);
}

.mcard-plan-current {
	display: block;
	margin: .6em .4em 0;
	padding: .3em .6em;
	border-radius: 6px;
	background: #f0f2f6;
	font-size: .82em;
	font-weight: 700;
	text-align: center;
}

.mcard-plan-rows {
	display: block;
	padding: .3em .5em 0;
}

.mcard-plan-row {
	display: block;
	padding: .55em 0;
	border-bottom: 1px solid #eceef2;
}

.mcard-plan-k {
	display: block;
	font-size: .75em;
	font-weight: 600;
	color: #6b6f7a;
}

.mcard-plan-v {
	display: block;
	font-weight: 700;
	font-size: .97em;
}

.mcard-plan-feats {
	display: block;
	padding: .6em .5em .5em;
}

.mcard-plan-feat {
	position: relative;
	display: block;
	padding: .22em 0 .22em 1.5em;
	font-size: .88em;
	line-height: 1.35;
}

.mcard-plan-icon {
	position: absolute;
	left: 0;
	top: .22em;
	font-weight: 900;
}

.mcard-plan-feat.is-yes .mcard-plan-icon,
.mcard-plan-feat.is-optional .mcard-plan-icon {
	color: var(--mcard-cat);
	color: color-mix(in srgb, var(--mcard-cat) 85%, #000);
}

.mcard-plan-feat.is-optional em {
	color: #6b6f7a;
	font-style: normal;
	font-size: .9em;
}

.mcard-plan-feat.is-no {
	color: #a3a8b3;
}

/* Compare table */
.mcard-plans-compare {
	margin: 1.4em 0 0;
	border: 1px solid #e3e5ea;
	border-radius: 12px;
	background: #fff;
}

/* always open (1.9.3): a heading, no hide / show */
.mcard-plans-compare .mcard-plans-compare-title {
	margin: 0;
	padding: .9em 1.2em .5em;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.mcard-plans-compare-scroll {
	overflow-x: auto;
	padding: 0 1em 1em;
}

.mcard-plans-compare table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92em;
}

.mcard-plans-compare th,
.mcard-plans-compare td {
	padding: .6em .7em;
	border-bottom: 1px solid #eceef2;
	text-align: center;
	white-space: nowrap;
}

.mcard-plans-compare tbody th {
	text-align: left;
	font-weight: 600;
	white-space: normal;
	min-width: 180px;
}

.mcard-plans-compare td.is-yes {
	color: #1a7f37;
	font-weight: 900;
}

.mcard-plans-compare td.is-no {
	color: #b0b4bd;
}

.mcard-plans-dot {
	display: inline-block;
	width: .7em;
	height: .7em;
	margin-right: .4em;
	border-radius: 50%;
	background: var(--mcard-cat);
}

/* Next bar */
.mcard-plans-next {
	margin-top: 1.6em;
	text-align: center;
}

.mcard-plans-submit {
	width: 100%;
	max-width: 460px;
	min-height: 54px;
	padding: .8em 1.2em;
	border: 0;
	border-radius: 12px;
	background: #1d2b4f;
	color: #fff;
	font: inherit;
	font-size: 1.1em;
	font-weight: 800;
	cursor: pointer;
}

.mcard-plans-submit:disabled {
	background: #b9bec9;
	cursor: not-allowed;
}

.mcard-plans-submit:not(:disabled):hover {
	filter: brightness(1.15);
}

.mcard-plans-note {
	margin: .6em auto 0;
	max-width: 520px;
	font-size: .85em;
	color: #6b6f7a;
}

/* Phones: swipe through plans */
@media (max-width: 760px) {
	.mcard-plans-grid {
		display: flex;
		gap: .8em;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: .4em .2em 1em;
		margin: 0 -.2em;
	}

	.mcard-plan-card {
		flex: 0 0 78%;
		scroll-snap-align: center;
	}

	.mcard-plans-title {
		font-size: 1.5em !important;
	}
}

/* Compact plan summary on the application form */
.mcard-apply-plan {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	margin: 0 0 1.2em;
	padding: .9em 1.1em;
	border-radius: 12px;
	border-left: 6px solid var(--mcard-cat, #1d2b4f);
	background: #f6f7f9;
}

.mcard-apply-plan strong {
	display: block;
	font-size: 1.1em;
}

.mcard-apply-plan span {
	color: #5b6170;
	font-size: .92em;
}

.mcard-apply-plan a {
	white-space: nowrap;
	font-weight: 600;
}

.mcard-apply-change-note {
	margin: 0 0 1.2em;
	padding: .8em 1em;
	border-radius: 10px;
	background: #fff8e6;
	border: 1px solid #f0d58c;
	font-size: .93em;
}

.mcard-apply .mcard-steps {
	margin-bottom: 1.2em;
}

.mcard-steps .is-done span {
	background: #1a7f37;
	border-color: #1a7f37;
	color: #fff;
}

/* ---------- Membership steps: Account → Plan → Application → Verify → Payment → Approval ---------- */

.mcard-flow {
	flex-wrap: wrap;
	row-gap: .5em;
}

.mcard-flow em {
	font-style: normal;
}

/* (1.9: the step bar's lines and phone layout are in the "Step bar" section at the end.) */

/* Email code */
.mcard-auth-form .mcard-code-input {
	text-align: center;
	font-size: 1.8em !important;
	font-weight: 700;
	letter-spacing: .35em;
	font-variant-numeric: tabular-nums;
	min-height: 64px;
}

.mcard-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: #2b55c7;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* Approval after checkout */
.mcard-thankyou {
	margin: 0 0 2em;
	padding: 1.4em 1.6em;
	border: 1px solid #b7e3c3;
	border-radius: 14px;
	background: #f2fbf4;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mcard-thankyou .mcard-flow {
	justify-content: flex-start;
	margin-bottom: 1em;
}

.mcard-thankyou h2 {
	margin: 0 0 .4em;
	color: #155724;
	font-size: 1.4em;
}

.mcard-thankyou p {
	margin: 0 0 .8em;
}

/* "Please wait…" on buttons while a form is sending */
.is-busy {
	position: relative;
	cursor: progress !important;
	opacity: .85;
}

.is-busy::before {
	content: "";
	display: inline-block;
	width: .9em;
	height: .9em;
	margin-right: .55em;
	vertical-align: -.1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: mcard-spin .7s linear infinite;
}

@keyframes mcard-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-busy::before {
		animation-duration: 2s;
	}
}

/* Step bar links: finished steps go back */
.mcard-flow .mcard-step-link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	color: inherit !important;
	text-decoration: none !important;
	border-radius: 2em;
	padding: .1em .45em .1em .1em;
	margin: -.1em -.45em -.1em -.1em;
	transition: background .15s;
}

.mcard-flow .mcard-step-link:hover,
.mcard-flow .mcard-step-link:focus-visible {
	background: #eef1f6;
}

.mcard-flow .mcard-step-link:hover em,
.mcard-flow .mcard-step-link:focus-visible em {
	text-decoration: underline;
}

.mcard-flow .mcard-step-link:focus-visible {
	outline: 2px solid #2b55c7;
	outline-offset: 2px;
}

.mcard-flow .is-next {
	opacity: .75;
	cursor: default;
}

.mcard-checkout-steps {
	margin: 0 0 1.5em;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mcard-checkout-steps .mcard-flow {
	justify-content: flex-start;
}

.mcard-reuse-note {
	display: block;
	margin-top: .4em;
	padding: .4em .6em;
	border-radius: 6px;
	background: #eefbf1;
	color: #155724 !important;
}

.mcard-flow .mcard-step-link em {
	color: #2b55c7;
	text-decoration: underline;
	text-decoration-color: rgba(43, 85, 199, .35);
	text-underline-offset: 3px;
}

/* ---------- 1.7: plan questions, rules and Deaf / Hearing self-ID ---------- */

.mcard-apply .mcard-plan-fields {
	border: 1px solid #d0d7de;
	border-left: 5px solid var(--mcard-cat, #2b55c7);
	border-radius: 10px;
	padding: 1em 1.1em .4em;
	background: #fbfcfe;
}

.mcard-apply .mcard-plan-fields > legend {
	font-size: 1.05em;
	padding: .15em .6em;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #d0d7de;
}

.mcard-apply .mcard-plan-fields[hidden],
.mcard-apply [data-mcard-flow][hidden] {
	display: none !important;
}

.mcard-apply .mcard-plan-fields p {
	margin: 0 0 1em;
}

.mcard-apply select,
.mcard-apply input[type="number"] {
	font-family: inherit;
	font-size: 1rem;
	padding: .5em .6em;
	max-width: 100%;
	box-sizing: border-box;
}

.mcard-apply input[type="number"] {
	width: 10em;
}

.mcard-apply .mcard-choice {
	border: 0;
	padding: 0;
	margin: 0 0 1em;
	min-width: 0;
}

.mcard-apply .mcard-choice > legend {
	padding: 0;
	margin-bottom: .4em;
	font-weight: 600;
}

.mcard-apply .mcard-choice-list {
	display: flex;
	flex-wrap: wrap;
	gap: .4em;
}

.mcard-apply .mcard-choice-item {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin: 0;
	padding: .45em .75em;
	border: 1px solid #c9d1d9;
	border-radius: 999px;
	background: #fff;
	font-weight: 400;
	cursor: pointer;
	line-height: 1.3;
}

.mcard-apply .mcard-choice-item:has(input:checked) {
	border-color: var(--mcard-cat, #2b55c7);
	box-shadow: 0 0 0 1px var(--mcard-cat, #2b55c7);
	background: #f3f6ff;
}

.mcard-apply .mcard-choice-item input {
	margin: 0;
}

.mcard-apply .mcard-plan-rules {
	background: #fffdf5;
}

.mcard-apply .mcard-rule {
	margin: 0 0 .7em;
}

.mcard-apply .mcard-rule .mcard-apply-check {
	display: flex;
	gap: .55em;
	align-items: flex-start;
	margin: 0;
	line-height: 1.45;
}

.mcard-apply .mcard-rule input {
	margin-top: .25em;
	flex: 0 0 auto;
}

.mcard-apply .mcard-plan-fields input[type="file"] {
	display: block;
	max-width: 100%;
}

/* 1.8: questions shown only for some applicants (professionals, Hearing…) */
.mcard-apply .mcard-cond[hidden] {
	display: none !important;
}

.mcard-apply .mcard-cond {
	margin: 0 0 1em;
	padding: .75em .9em .1em;
	border-left: 3px solid var(--mcard-cat, #2b55c7);
	border-radius: 0 8px 8px 0;
	background: rgba(43, 85, 199, .05);
	animation: mcard-cond-in .2s ease-out;
}

.mcard-apply .mcard-plan-rules .mcard-cond {
	padding-bottom: .05em;
}

@keyframes mcard-cond-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mcard-apply .mcard-cond { animation: none; }
}

/* 1.8.1: information text inside a plan's questions */
.mcard-apply .mcard-note-text {
	margin: 0 0 1em;
	padding: .75em .95em;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e3e7ee;
	border-left: 4px solid var(--mcard-cat, #2b55c7);
	line-height: 1.5;
}

.mcard-apply .mcard-note-text p {
	margin: 0;
}

.mcard-apply .mcard-cond .mcard-note-text {
	padding: 0;
	border: 0;
	background: transparent;
	font-weight: 600;
}

/* =====================================================================
   1.9 — Responsive for every screen (desktop, laptop, tablet, phone)
   Account → Plan → Application → Verify → Review → Payment → Approval
   Layout follows the space the plugin gets (container queries), so it
   also fits narrow theme columns and boxes, not only small screens.
   ===================================================================== */

:where(.mcard-apply, .mcard-auth-card, .mcard-plans, .mcard-account-box, .mcard-thankyou, .mcard-apply-done, .mcard-checkout-steps) {
	--mcard-ink: #1f2328;
	--mcard-muted: #5b6170;
	--mcard-line: #d0d7de;
	--mcard-navy: #1d2b4f;
	--mcard-green: #1a7f37;
	--mcard-focus: #2b55c7;
	--mcard-tap: 44px;
}

/* ---------- Step bar ---------- */

.mcard-flow-nav {
	container: mcard-flow / inline-size;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 1.5rem;
}

.mcard-flow-nav .mcard-steps {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .8125rem;
	line-height: 1.25;
	color: #6b7280;
}

.mcard-flow-nav .mcard-steps li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	min-width: 0;
	padding: .375rem .125rem;
	text-align: center;
}

/* the line between two circles */
.mcard-flow-nav .mcard-steps li + li::before {
	content: "";
	position: absolute;
	top: calc(.375rem + 13px);
	left: calc(-50% + 19px);
	right: calc(50% + 19px);
	height: 2px;
	border-radius: 2px;
	background: #d6dae1;
}

.mcard-flow-nav .mcard-steps li.is-done + li::before {
	background: var(--mcard-green, #1a7f37);
}

.mcard-flow-nav .mcard-steps span {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	flex: none;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1.5px solid #c3c8d1;
	background: #fff;
	color: #6b7280;
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1;
}

.mcard-flow-nav .mcard-steps .is-done span {
	background: var(--mcard-green, #1a7f37);
	border-color: var(--mcard-green, #1a7f37);
	color: #fff;
}

.mcard-flow-nav .mcard-steps .is-current span {
	background: var(--mcard-navy, #1d2b4f);
	border-color: var(--mcard-navy, #1d2b4f);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(29, 43, 79, .14);
}

.mcard-flow-nav .mcard-steps em {
	display: block;
	max-width: 100%;
	margin-top: .4rem;
	overflow: hidden;
	font-style: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mcard-flow-nav .mcard-steps .is-current em {
	color: var(--mcard-navy, #1d2b4f);
	font-weight: 700;
}

.mcard-flow-nav .mcard-steps .is-next {
	opacity: 1;
}

/* a finished step is a link back: the whole cell is the target */
.mcard-flow-nav .mcard-flow .mcard-step-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	min-height: var(--mcard-tap, 44px);
	margin: -.375rem -.125rem;
	padding: .375rem .125rem;
	border-radius: 10px;
	gap: 0;
}

.mcard-flow-nav .mcard-flow .mcard-step-link em {
	color: var(--mcard-focus, #2b55c7);
}


.mcard-flow-caption {
	display: none;
	margin: .5rem 0 0;
	text-align: center;
	font-size: .875rem;
	line-height: 1.4;
	color: var(--mcard-muted, #5b6170);
}

.mcard-flow-caption strong {
	color: var(--mcard-navy, #1d2b4f);
}

.mcard-flow-caption span {
	white-space: nowrap;
}

.mcard-flow-caption span::before {
	content: "· ";
}

/* not enough room for the names: circles only, the caption tells where you are */
@container mcard-flow (max-width: 599px) {
	.mcard-flow-nav .mcard-steps em {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.mcard-flow-caption {
		display: block;
	}
}

@container mcard-flow (max-width: 300px) {
	.mcard-flow-nav .mcard-steps span {
		width: 24px;
		height: 24px;
		font-size: .75rem;
	}

	.mcard-flow-nav .mcard-steps li + li::before {
		top: calc(.375rem + 11px);
		left: calc(-50% + 15px);
		right: calc(50% + 15px);
	}
}

.mcard-thankyou .mcard-flow-nav,
.mcard-checkout-steps .mcard-flow-nav {
	margin-bottom: 1.25rem;
}

.mcard-plans .mcard-flow-nav {
	max-width: 820px;
	margin-inline: auto;
}

/* ---------- Buttons ---------- */

.mcard-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	box-sizing: border-box;
	min-height: var(--mcard-tap, 44px);
	padding: .6em 1.25em;
	border-radius: 10px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	vertical-align: middle;
	transition: background-color .15s, border-color .15s, box-shadow .15s;
}


.mcard-button:focus-visible,
.mcard-apply .mcard-apply-submit:focus-visible {
	outline: 3px solid var(--mcard-focus, #2b55c7);
	outline-offset: 2px;
}

.mcard-apply .mcard-apply-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	box-sizing: border-box;
	min-height: 52px;
	min-width: 220px;
	margin: 0;
	padding: .8em 1.8em;
	border: 0;
	border-radius: 12px;
	background: var(--mcard-navy, #1d2b4f);
	color: #fff;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .1);
	transition: background-color .15s, transform .05s;
}


.mcard-apply .mcard-apply-submit:active {
	transform: translateY(1px);
}

/* links that act as buttons get a finger-sized target */
.mcard-link-button {
	display: inline-flex;
	align-items: center;
	min-height: var(--mcard-tap, 44px);
	padding: 0 .2em;
	vertical-align: middle;
}

.mcard-apply-plan a {
	display: inline-flex;
	align-items: center;
	min-height: var(--mcard-tap, 44px);
	padding: 0 .25em;
}

/* ---------- Application form ---------- */

.mcard-apply,
.mcard-apply-done {
	max-width: 760px;
}

.mcard-apply fieldset {
	min-width: 0;
	padding: 1.1em 1.3em .5em;
	border-color: var(--mcard-line, #d0d7de);
	border-radius: 12px;
}

.mcard-apply legend {
	max-width: 100%;
	white-space: normal;
}

.mcard-apply input[type="text"],
.mcard-apply input:not([type]),
.mcard-apply input[type="email"],
.mcard-apply input[type="url"],
.mcard-apply input[type="tel"],
.mcard-apply input[type="number"],
.mcard-apply input[type="password"],
.mcard-apply select,
.mcard-apply textarea {
	box-sizing: border-box;
	max-width: 100%;
	min-height: var(--mcard-tap, 44px);
	border: 1px solid #c3c8d1;
	border-radius: 8px;
	background-color: #fff;
	font-size: 1rem;
}

.mcard-apply input:focus-visible,
.mcard-apply select:focus-visible,
.mcard-apply textarea:focus-visible {
	outline: 3px solid rgba(43, 85, 199, .35);
	outline-offset: 1px;
	border-color: var(--mcard-focus, #2b55c7);
}

.mcard-apply input[type="checkbox"],
.mcard-apply input[type="radio"] {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	flex: none;
	accent-color: var(--mcard-navy, #1d2b4f);
}

/* upload fields: a clear drop area with a real button */
.mcard-apply input[type="file"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	padding: .5em;
	border: 1.5px dashed #b8bfca;
	border-radius: 10px;
	background: #fafbfc;
	color: var(--mcard-muted, #5b6170);
	font: inherit;
	font-size: .9375rem;
	cursor: pointer;
}


.mcard-apply input[type="file"]::file-selector-button {
	min-height: 40px;
	margin-right: .85em;
	padding: .45em 1em;
	border: 1px solid #c3c8d1;
	border-radius: 8px;
	background: #fff;
	color: var(--mcard-navy, #1d2b4f);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* tick boxes with text that may wrap (directory, consent, rules) */
.mcard-apply .mcard-apply-check {
	position: relative;
	display: block;
	padding-left: 1.9em;
	line-height: 1.5;
}

.mcard-apply .mcard-apply-check > input {
	position: absolute;
	left: 0;
	top: .2em;
}

.mcard-apply .mcard-rule .mcard-apply-check {
	display: flex;
	padding-left: 0;
}

.mcard-apply .mcard-rule .mcard-apply-check > input {
	position: static;
	margin-top: .2em;
}

/* "How should we contact you?" as pills, like the plan questions */
.mcard-contact .mcard-apply-inline {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	box-sizing: border-box;
	min-height: var(--mcard-tap, 44px);
	margin: 0 .4em .5em 0;
	padding: .45em .9em;
	border: 1px solid #c9d1d9;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.mcard-contact .mcard-apply-inline:has(input:checked) {
	border-color: var(--mcard-navy, #1d2b4f);
	box-shadow: 0 0 0 1px var(--mcard-navy, #1d2b4f);
	background: #f3f6ff;
}

.mcard-apply .mcard-choice-item {
	min-height: var(--mcard-tap, 44px);
	box-sizing: border-box;
}

.mcard-apply-next {
	margin: 1.25em 0;
}

/* ---------- Plan page ---------- */

.mcard-plan-doc {
	font-size: .75rem;
}

.mcard-plans-compare {
	container: mcard-compare / inline-size;
}

.mcard-plans-compare .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.mcard-plans-compare table {
	table-layout: fixed;
}

.mcard-plans-compare th,
.mcard-plans-compare td {
	white-space: normal;
	overflow-wrap: anywhere;
	hyphens: auto;
	vertical-align: middle;
}

.mcard-plans-compare thead th:first-child,
.mcard-plans-compare tbody th {
	width: 22%;
	min-width: 0;
}

.mcard-plans-compare-hint {
	display: none;
	margin: 0 1.2em .6em;
	font-size: .875rem;
	color: var(--mcard-muted, #5b6170);
}

.mcard-plans-compare-scroll:focus-visible {
	outline: 3px solid var(--mcard-focus, #2b55c7);
	outline-offset: -3px;
}

/* narrow: swipe the plans, the rule names stay on the left */
@container mcard-compare (max-width: 759px) {
	.mcard-plans-compare-hint {
		display: block;
	}

	.mcard-plans-compare-scroll {
		scroll-snap-type: x proximity;
		overscroll-behavior-x: contain;
		padding: 0 0 1em;
	}

	.mcard-plans-compare table {
		width: 830px;
		font-size: .875rem;
	}

	.mcard-plans-compare thead th {
		font-size: .8125rem;
		white-space: nowrap;
	}

	.mcard-plans-compare tbody th {
		hyphens: manual;
	}

	.mcard-plans-compare thead th:first-child,
	.mcard-plans-compare tbody th {
		position: sticky;
		left: 0;
		z-index: 1;
		width: 130px;
		background: #fff;
		box-shadow: 1px 0 0 #e3e5ea;
	}

	.mcard-plans-compare td,
	.mcard-plans-compare thead th {
		scroll-snap-align: start;
		scroll-margin-left: 130px;
	}
}

/* plan cards: 5 in a row when they fit, else 3 + 2 centered (never one alone); phones swipe */
.mcard-plans {
	container: mcard-plans / inline-size;
}

@container mcard-plans (min-width: 600px) {
	.mcard-plans-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		overflow: visible;
		margin: 0;
		padding: 0;
	}

	.mcard-plans-grid > .mcard-plan-card {
		box-sizing: border-box;
		flex: 0 0 calc((100% - 2em) / 3);
		min-width: 0;
	}
}

@container mcard-plans (min-width: 1060px) {
	.mcard-plans-grid > .mcard-plan-card {
		flex-basis: calc((100% - 4em) / 5);
	}
}

/* ---------- Membership card: readable on phones ---------- */

.mcard-wrap {
	max-width: 480px;
}

@media screen {
	@container (max-width: 420px) {
		.mcard {
			font-size: 3.9cqw;
			padding: 4.5cqw 5cqw;
		}

		.mcard-title,
		.mcard-sub,
		.mcard-meta {
			font-size: max(.78em, 11px);
		}

		/* more room for the ID and dates: smaller photo and QR, values on one line */
		.mcard-body {
			grid-template-columns: 18% 1fr 26%;
			gap: 3cqw;
		}

		.mcard-meta {
			gap: .05em .45em;
		}

		.mcard-meta dd {
			white-space: nowrap;
		}

		.mcard-number {
			letter-spacing: 0;
		}
	}
}

/* ---------- Review, payment, approval boxes ---------- */

.mcard-account-box,
.mcard-apply-done,
.mcard-thankyou {
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

/* ---------- Phones ---------- */

@media (max-width: 600px) {
	.mcard-plans-step--flow {
		display: none;
	}

	.mcard-apply fieldset {
		padding: .9em .9em .35em;
	}

	.mcard-apply .mcard-plan-fields {
		padding: .9em .85em .3em;
	}

	.mcard-apply .mcard-apply-submit,
	.mcard-account-box .mcard-button,
	.mcard-thankyou .mcard-button,
	.mcard-actions .mcard-button,
	.mcard-auth-card .mcard-button {
		display: flex;
		width: 100%;
		margin: 0 0 .6em;
	}

	.mcard-thankyou {
		padding: 1.1em 1em;
	}

	.mcard-apply-plan {
		flex-wrap: wrap;
	}
}

@media (pointer: coarse) {
	.mcard-apply .mcard-choice-item,
	.mcard-contact .mcard-apply-inline {
		padding-block: .55em;
	}
}

/* =====================================================================
   1.9.1 — Apple devices: iPhone, iPad, MacBook, iMac, Mac mini / Mac Studio
   ===================================================================== */

/* hover effects only with a mouse or trackpad (no "stuck" colour after a tap on iPhone / iPad) */
@media (hover: hover) and (pointer: fine) {
	.mcard-flow-nav .mcard-flow .mcard-step-link:hover {
		background: #eef2f8;
	}
	.mcard-button:hover {
		border-color: #57606a;
	}

	.mcard-button--primary:hover {
		background: #2a3d6b;
		border-color: #2a3d6b;
	}
	.mcard-apply .mcard-apply-submit:hover {
		background: #2a3d6b;
	}
	.mcard-apply input[type="file"]:hover {
		border-color: #8b93a1;
		background: #f3f5f8;
	}
}

.mcard-apply input[type="file"]:focus-visible {
	border-color: #8b93a1;
	background: #f3f5f8;
}

/* Safari on iPhone / iPad */
:where(.mcard-apply, .mcard-auth-card, .mcard-plans, .mcard-account, .mcard-flow-box, .mcard-thankyou, .mcard-wrap, .mcard-checkout-steps) {
	-webkit-text-size-adjust: 100%; /* no text blow-up when the iPhone turns sideways */
	text-size-adjust: 100%;
}

:where(.mcard-apply, .mcard-auth-card, .mcard-plans, .mcard-account, .mcard-flow-box, .mcard-thankyou, .mcard-flow-nav) :is(a, button, label, summary) {
	-webkit-tap-highlight-color: rgba(29, 43, 79, .12);
}

/* plain, flat fields on iOS (no inner shadow); 16 px or more so Safari never zooms in */
.mcard-apply input[type="text"],
.mcard-apply input:not([type]),
.mcard-apply input[type="email"],
.mcard-apply input[type="url"],
.mcard-apply input[type="tel"],
.mcard-apply input[type="number"],
.mcard-apply input[type="password"],
.mcard-apply textarea,
.mcard-auth-form input[type="text"],
.mcard-auth-form input[type="email"],
.mcard-auth-form input[type="password"] {
	-webkit-appearance: none;
	appearance: none;
	font-size: max(16px, 1rem);
}

.mcard-apply select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 2.4em;
	font-size: max(16px, 1rem);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6170' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .85em center;
	background-size: 12px 8px;
}

/* big screens (iMac, Studio Display, Pro Display XDR, ultrawide): keep every step a comfortable width */
.mcard-flow-nav {
	max-width: 860px;
	margin-inline: auto;
}

.mcard-flow-box {
	box-sizing: border-box;
	max-width: 760px;
	margin-inline: auto;
}

.mcard-thankyou {
	max-width: 820px;
}

.mcard-plans {
	max-width: 1320px;
	margin-inline: auto;
}

/* =====================================================================
   1.9.2 — Readable on any theme, light or dark (IDFA's Avada theme is dark)
   Text on the page background follows the theme's own text colour;
   white boxes always use dark text, whatever the theme gives text and fields.
   ===================================================================== */

/* -- text on the page background: the theme's colour -- */
.mcard-plans {
	color: inherit;
}

.mcard-plans-points li,
.mcard-plans-sub {
	color: inherit;
}

.mcard-plans-step,
.mcard-plans-note {
	color: inherit;
	opacity: .78;
}

.mcard-flow-nav .mcard-steps,
.mcard-flow-caption,
.mcard-flow-caption strong,
.mcard-flow-nav .mcard-steps .is-current em,
.mcard-flow-nav .mcard-flow .mcard-step-link,
.mcard-flow-nav .mcard-flow .mcard-step-link em {
	color: inherit !important;
}

.mcard-flow-nav .mcard-steps em,
.mcard-flow-caption {
	opacity: .8;
}

.mcard-flow-nav .mcard-steps .is-current em,
.mcard-flow-nav .mcard-flow .mcard-step-link em {
	opacity: 1;
}

.mcard-flow-nav .mcard-flow .mcard-step-link em {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* current step: a white edge and a ring in the text colour, so it shows on navy too */
.mcard-flow-nav .mcard-steps .is-current span {
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px rgba(29, 43, 79, .35);
	box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 45%, transparent);
}

/* -- white boxes: always dark text -- */
.mcard-auth-card,
.mcard-account-box,
.mcard-account-summary,
.mcard-apply-done,
.mcard-thankyou,
.mcard-plan-card,
.mcard-plans-compare,
.mcard-verify,
.mcard-locked,
.mcard-directory-item,
.mcard-apply-errors,
.mcard-surface {
	color: #1f2328;
}

:is(.mcard-auth-card, .mcard-account-box, .mcard-account-summary, .mcard-apply-done, .mcard-plans-compare, .mcard-verify, .mcard-locked, .mcard-surface, .mcard-x.mcard-x) :is(h1, h2, h3, h4, h5, h6, legend, summary) {
	color: inherit;
}

.mcard-thankyou.mcard-thankyou h2 {
	color: #155724;
}

/* links inside white boxes: readable blue (the theme's orange is too light on white) */
:is(.mcard-auth-card, .mcard-account-box, .mcard-account-summary, .mcard-apply-done, .mcard-thankyou, .mcard-verify, .mcard-locked, .mcard-surface, .mcard-x.mcard-x) a:not([class]),
.mcard-apply-plan a {
	color: #1f4fbf;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* fields: dark text on white — themes such as Avada give fields their own (here white) text colour */
:is(.mcard-auth-form, .mcard-apply, .mcard-directory, .mcard-x.mcard-x) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]), select, textarea) {
	color: #1f2328;
	-webkit-text-fill-color: #1f2328;
	caret-color: #1f2328;
	background-color: #fff;
}

:is(.mcard-auth-form, .mcard-apply, .mcard-directory) :is(input, textarea)::placeholder {
	color: #8a8f99;
	-webkit-text-fill-color: #8a8f99;
	opacity: 1;
}

.mcard-apply select option {
	color: #1f2328;
	background: #fff;
}

/* "I agree to the terms and the privacy policy." stays one sentence */
.mcard-auth-check label {
	display: block;
	position: relative;
	padding-left: 1.75em;
	line-height: 1.5;
}

.mcard-auth-check input {
	position: absolute;
	left: 0;
	top: .2em;
	margin: 0;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: #1d2b4f;
}

/* -- the application form is a white card, like the sign-in and sign-up cards -- */
.mcard-apply:not(.mcard-account .mcard-apply) {
	box-sizing: border-box;
	padding: clamp(1rem, 3.5vw, 2.25rem);
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 18px;
	background: #fff;
	color: #1f2328;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 36px rgba(15, 23, 42, .10);
}

.mcard-apply:not(.mcard-account .mcard-apply) :is(h1, h2, h3, h4, legend, label, summary) {
	color: inherit;
}

.mcard-apply :is(.mcard-plan-fields, .mcard-apply-plan, .mcard-apply-next, .mcard-choice-item, .mcard-note-text, .mcard-cat-option) {
	color: #1f2328;
}

.mcard-apply small {
	color: #5b6170;
}

/* public QR check: an official white box (valid / not valid keep their green / red tint) */
:where(.mcard-verify) {
	background: #fff;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .10);
}

@media (max-width: 600px) {
	.mcard-apply:not(.mcard-account .mcard-apply) {
		margin-inline: -4px;
		padding: 1rem .9rem 1.1rem;
		border-radius: 14px;
	}
}

/* 1.9.2 — the last low-contrast bits */
.mcard-flow-nav .mcard-steps li {
	color: inherit !important;
}

.mcard-plan-feat.is-no {
	color: #6e7480;
}

.mcard-auth-or {
	color: #6b7280;
}

.mcard-directory-initial {
	color: var(--mcard-cat-text, #fff);
}

.mcard-directory-item a:not([class]) {
	color: #1f2328;
	text-decoration: underline;
	text-decoration-color: rgba(31, 35, 40, .3);
	text-underline-offset: 3px;
}

.mcard-plan-check {
	color: color-mix(in srgb, var(--mcard-cat) 65%, #000);
}

.mcard-plans-compare td.is-no {
	color: #858b96;
}

/* "Ways to log in": the name keeps its room, the button goes below on narrow screens */
.mcard-signin-list li {
	flex-wrap: wrap;
	row-gap: .5em;
}

.mcard-signin-list li > :first-child {
	flex: 1 1 9em;
	min-width: 0;
}

/* finger-sized links: "Forgot password?", "Create an account" / "Log in", order numbers */
.mcard-auth-label-row a,
.mcard-auth-switch a,
.mcard-account-payments td a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-block: -11px;
	padding-inline: 2px;
	vertical-align: middle;
}

/* plan names fit their card at any text size (IDFA's theme uses 18 px text): "Organizational" never cut */
.mcard-plan-top {
	container-type: inline-size;
}

.mcard-plan-name {
	font-size: clamp(1rem, 13.5cqi, 1.35em);
	overflow-wrap: anywhere;
}

.mcard-plan-for {
	font-size: clamp(.8125rem, 9.5cqi, 1em);
}

/* =====================================================================
   1.9.4 — Buttons: pill shape like the site's "Buy Tickets" button;
   the plan page's Next button takes the chosen plan's colour.
   ===================================================================== */

.mcard-button,
.mcard-auth-submit,
.mcard-social-btn,
.mcard-tier-button,
.mcard-apply .mcard-apply-submit,
.mcard-plans .mcard-plans-next .mcard-plans-submit {
	border-radius: 999px;
}

.mcard-plans .mcard-plans-next .mcard-plans-submit {
	--mcard-btn-bg: #1d2b4f;
	--mcard-btn-text: #fff;
	min-height: 56px;
	padding: .85em 2em;
	border: 2px solid rgba(255, 255, 255, .28); /* edge that shows on dark themes, invisible on white */
	background: var(--mcard-btn-bg);
	color: var(--mcard-btn-text);
	box-shadow: 0 6px 20px rgba(15, 23, 42, .22);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--mcard-btn-bg) 40%, transparent);
	transition: background-color .2s, color .2s, box-shadow .2s, filter .15s, transform .05s;
}

.mcard-plans .mcard-plans-next .mcard-plans-submit:disabled {
	background: #b9bec9;
	color: #fff;
	box-shadow: none;
}

.mcard-plans .mcard-plans-next .mcard-plans-submit:not(:disabled):active {
	transform: translateY(1px);
}

.mcard-plans .mcard-plans-next .mcard-plans-submit:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--mcard-btn-bg);
}

/* the note sits centred under the button (themes give paragraphs their own margins) */
.mcard-plans .mcard-plans-next .mcard-plans-note {
	margin: .75em auto 0;
	max-width: 520px;
	text-align: center;
}

/* 1.9.5 — "Submit application" / "Continue" wears the chosen plan's colour, like the Next button */
.mcard-apply .mcard-apply-submit.mcard-apply-submit {
	--mcard-btn-bg: #1d2b4f;
	--mcard-btn-text: #fff;
	background: var(--mcard-btn-bg);
	color: var(--mcard-btn-text);
	box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--mcard-btn-bg) 35%, transparent);
	transition: background-color .2s, color .2s, box-shadow .2s, filter .15s, transform .05s;
}

@media (hover: hover) and (pointer: fine) {
	.mcard-apply .mcard-apply-submit.mcard-apply-submit:hover {
		background: var(--mcard-btn-bg);
		filter: brightness(1.1);
	}
}

.mcard-apply .mcard-apply-submit.mcard-apply-submit:focus-visible {
	outline: 3px solid var(--mcard-btn-bg);
	outline-offset: 3px;
}

.mcard-apply .mcard-cat-doc {
	color: #5b6170;
}

/* =====================================================================
   2.0 — Face photo and ID / Passport steps (checked by staff)
   ===================================================================== */

/* 8 or 9 steps: names under the circles only when there is room for them */
@container mcard-flow (max-width: 819px) {
	.mcard-flow-nav--long .mcard-steps em {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.mcard-flow-nav--long .mcard-flow-caption {
		display: block;
	}
}

@container mcard-flow (max-width: 380px) {
	.mcard-flow-nav--long .mcard-steps span {
		width: 24px;
		height: 24px;
		font-size: .75rem;
	}

	.mcard-flow-nav--long .mcard-steps li + li::before {
		top: calc(.375rem + 11px);
		left: calc(-50% + 14px);
		right: calc(50% + 14px);
	}
}

.mcard-idv .mcard-idv-card {
	max-width: 560px;
}

.mcard-idv .mcard-required {
	color: #b32d2e;
}

/* -- picture instructions -- */
.mcard-idv-tips {
	container-type: inline-size;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .5rem;
	margin: 0 0 .75rem !important;
	padding: 0 !important;
	list-style: none !important;
}

.mcard-idv-tips li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4rem;
	margin: 0 !important;
	padding: .65rem .35rem;
	border-radius: 12px;
	background: #f3f5fa;
	color: #1f2328;
	font-size: .8125rem;
	line-height: 1.3;
	text-align: center;
}

.mcard-idv-tips li::before,
.mcard-idv-tips li::marker {
	content: none;
}

.mcard-idv-tips .mcard-idv-icon {
	width: 32px;
	height: 32px;
	color: #1d2b4f;
}

@media (max-width: 479px) {
	.mcard-idv-tips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mcard-idv-note {
	margin: 0 0 1.1rem !important;
	color: #5b6170;
	font-size: .85rem;
	line-height: 1.45;
	text-align: center;
}

/* -- live camera -- */
.mcard-cam {
	margin: 0 0 1rem;
}

.mcard-cam[hidden],
.mcard-idv [hidden] {
	display: none !important;
}

.mcard-cam-stage {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	background: radial-gradient(circle at 50% 40%, #2c3d66, #141c33);
	isolation: isolate;
}

.mcard-cam-video,
.mcard-cam-shot {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.mcard-cam.is-mirrored .mcard-cam-video {
	transform: scaleX(-1); /* like a mirror; the photo itself is not flipped */
}

.mcard-cam-guide {
	display: none;
	position: absolute;
	top: 9%;
	bottom: 9%;
	left: 50%;
	aspect-ratio: 3 / 4;
	transform: translateX(-50%);
	border: 3px dashed rgba(255, 255, 255, .9);
	border-radius: 50%;
	box-shadow: 0 0 0 100vmax rgba(10, 15, 30, .38);
	pointer-events: none;
}

.mcard-cam.is-live .mcard-cam-guide {
	display: block;
}

.mcard-cam-count {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: clamp(4rem, 22cqi, 7rem);
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
	pointer-events: none;
}

.mcard-cam-stage {
	container-type: inline-size;
}

.mcard-cam.is-flash .mcard-cam-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	animation: mcard-flash .35s ease-out forwards;
}

@keyframes mcard-flash {
	from { opacity: .9; }
	to { opacity: 0; }
}

.mcard-cam-idle {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	color: #dfe5f2;
	font-size: .95rem;
}

.mcard-cam-idle .mcard-idv-icon {
	width: 56px;
	height: 56px;
	opacity: .85;
}

.mcard-cam-msg {
	min-height: 1.45em;
	margin: .6rem 0 .5rem !important;
	color: #3d4451;
	font-size: .9rem;
	line-height: 1.45;
	text-align: center;
}

.mcard-cam-msg.is-bad {
	color: #8a1f1f;
	font-weight: 600;
}

.mcard-cam-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
}

.mcard-idv .mcard-cam-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0;
	padding: .6em 1.5em;
	border: 2px solid #1d2b4f;
	border-radius: 999px;
	background: #fff;
	color: #1d2b4f;
	box-shadow: none;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.mcard-idv .mcard-cam-btn--main {
	background: #1d2b4f;
	color: #fff;
}

.mcard-idv .mcard-cam-btn .mcard-idv-icon {
	width: 22px;
	height: 22px;
}

.mcard-idv .mcard-cam-btn:disabled {
	opacity: .6;
	cursor: wait;
}

.mcard-idv .mcard-cam-btn:focus-visible {
	outline: 3px solid #2b55c7;
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.mcard-idv .mcard-cam-btn:hover {
		filter: brightness(1.12);
	}

	.mcard-idv .mcard-cam-btn:not(.mcard-cam-btn--main):hover {
		background: #f3f5fa;
		filter: none;
	}
}

.mcard-idv .mcard-idv-or {
	margin: .25rem 0 1rem !important;
}

/* -- file boxes (tap to take a photo or choose a file) -- */
.mcard-idv-form label.mcard-idv-drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: .85rem;
	box-sizing: border-box;
	min-height: 76px;
	margin: 0 0 1rem;
	padding: .9rem 1rem;
	border: 2px dashed #b4bccb;
	border-radius: 14px;
	background: #f8f9fb;
	color: #1f2328;
	font-size: 1rem;
	font-weight: 400;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.mcard-idv-drop input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}

.mcard-idv-form label.mcard-idv-drop:focus-within {
	outline: 3px solid #2b55c7;
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.mcard-idv-form label.mcard-idv-drop:hover {
		border-color: #1d2b4f;
		background: #f3f5fa;
	}
}

.mcard-idv-form label.mcard-idv-drop.has-file {
	border-style: solid;
	border-color: #1a7f37;
	background: #f0faf3;
}

.mcard-idv-drop-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	color: #1d2b4f;
	box-shadow: 0 0 0 1px #dfe3ea;
	pointer-events: none;
}

.mcard-idv-drop-icon .mcard-idv-icon {
	width: 26px;
	height: 26px;
}

.mcard-idv-drop.has-file .mcard-idv-drop-icon {
	color: #1a7f37;
}

.mcard-idv-drop-text {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
	pointer-events: none;
}

.mcard-idv-drop-text strong {
	font-size: .98rem;
	line-height: 1.3;
}

.mcard-idv-form .mcard-idv-drop-text small {
	margin: 0;
	color: #5b6170;
	font-size: .8125rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.mcard-idv-drop-preview {
	flex: none;
	width: 64px;
	height: 64px;
	margin-left: auto;
	border-radius: 10px;
	object-fit: cover;
	box-shadow: 0 0 0 1px #dfe3ea;
	pointer-events: none;
}

.mcard-idv-sides {
	container-type: inline-size;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 .75rem;
}

.mcard-idv-sides.is-single {
	grid-template-columns: minmax(0, 1fr);
}

@container (max-width: 420px) {
	.mcard-idv-sides > .mcard-idv-drop {
		grid-column: 1 / -1;
	}
}

@media (max-width: 479px) {
	.mcard-idv-sides {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mcard-idv-form label.mcard-idv-drop--doc {
	flex-direction: column;
	justify-content: center;
	min-height: 148px;
	text-align: center;
}

.mcard-idv-drop--doc .mcard-idv-drop-text {
	align-items: center;
}

.mcard-idv-drop--doc .mcard-idv-drop-preview {
	width: 100%;
	max-width: 220px;
	height: 120px;
	margin: .25rem auto 0;
	object-fit: contain;
	background: #fff;
}

/* -- document type chips -- */
.mcard-idv-form fieldset {
	min-width: 0;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.mcard-idv-form legend {
	margin: 0 0 .5rem;
	padding: 0;
	color: #2b2f36;
	font-size: .92em;
	font-weight: 600;
}

.mcard-idv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.mcard-idv-form label.mcard-idv-chip {
	position: relative;
	display: inline-flex;
	margin: 0;
	font-weight: 400;
}

.mcard-idv-chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.mcard-idv-chip span {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: .45em 1.05em;
	border: 1.5px solid #c3c9d4;
	border-radius: 999px;
	background: #fff;
	color: #1f2328;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
}

.mcard-idv-chip input:checked + span {
	border-color: #1d2b4f;
	background: #1d2b4f;
	color: #fff;
}

.mcard-idv-chip input:checked + span::before {
	content: "✓";
	margin-right: .4em;
}

.mcard-idv-chip input:focus-visible + span {
	outline: 3px solid #2b55c7;
	outline-offset: 2px;
}

/* -- staff check reasons -- */
.mcard-idv-form label.mcard-idv-reason {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0 0 .5rem;
	padding: .75rem .9rem;
	border: 1.5px solid #dfe3ea;
	border-radius: 12px;
	background: #fff;
	color: #1f2328;
	font-size: .95rem;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.mcard-idv-reason input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: .05rem 0 0;
	accent-color: #1d2b4f;
}

.mcard-idv-form label.mcard-idv-reason:has(input:checked) {
	border-color: #1d2b4f;
	background: #f3f5fb;
}

.mcard-idv-form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 92px;
	padding: .65em .8em;
	border: 1px solid #c7cbd3;
	border-radius: 10px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.45;
	resize: vertical;
}

.mcard-idv-form textarea:focus {
	outline: none;
	border-color: #1d2b4f;
	box-shadow: 0 0 0 3px rgba(29, 43, 79, .15);
}

/* -- privacy line, consent, buttons -- */
.mcard-idv-privacy {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0 0 1rem !important;
	padding: .7rem .9rem;
	border-radius: 12px;
	background: #eef7f1;
	color: #1f3d2a;
	font-size: .875rem;
	line-height: 1.45;
}

.mcard-idv-privacy .mcard-idv-icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: #1a7f37;
}

.mcard-idv .mcard-idv-consent {
	margin-bottom: 1.1rem;
}

.mcard-idv .mcard-auth-submit.mcard-idv-submit {
	--mcard-btn-bg: #1d2b4f;
	--mcard-btn-text: #fff;
	min-height: 52px;
	background: var(--mcard-btn-bg);
	color: var(--mcard-btn-text) !important;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--mcard-btn-bg) 35%, transparent);
}

.mcard-idv .mcard-auth-submit.mcard-idv-submit:focus-visible {
	outline: 3px solid var(--mcard-btn-bg);
	outline-offset: 3px;
}

.mcard-idv .mcard-auth-switch a {
	display: block;
	width: fit-content;
	margin: 0 auto;
	padding: .4em 0;
}

.mcard-idv-js-error {
	margin: 0 0 1rem;
}

.mcard-idv-redo strong {
	display: block;
	margin-bottom: .2em;
}

@media (prefers-reduced-motion: reduce) {
	.mcard-cam.is-flash .mcard-cam-stage::after {
		animation: none;
		opacity: 0;
	}
}
