.brand {
	min-width: 0;
}

/* Keep both header edges aligned with the shared page-content gutter. */
.topbar {
	padding-inline: max( 9vw, 40px );
}

.topbar .brand-logo {
	display: block;
	width: auto;
	height: 52px;
	max-width: min(230px, 26vw);
	object-fit: contain;
}

.footer-brand-logo {
	display: block;
	width: auto;
	height: 48px;
	max-width: 220px;
	object-fit: contain;
}

/* Homepage layout corrections, loaded after the base theme stylesheet. */
body .trust-strip {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	justify-content: stretch;
	padding-inline: max( 9vw, 40px );
}

body .trust-strip div {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	min-width: 0;
	padding: 23px clamp( 14px, 3vw, 42px );
}

body .trust-strip strong,
body .trust-strip span {
	min-width: 0;
	overflow-wrap: anywhere;
}

body .trust-strip span,
body .section-heading > p span {
	margin-right: 0;
	direction: rtl;
	font-family: Vazirmatn, Manrope, sans-serif;
}

body .aipak-voucher-access--home + .accounts {
	padding-top: 58px;
}

.topbar nav a,
.back,
.card-link,
.footer-links a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
}

.topbar nav a {
	min-height: 44px;
}

.faq details {
	padding-block: 10px;
}

.faq summary {
	min-height: 44px;
	align-items: center;
}

body.lang-fa [data-usd] {
	display: inline-flex;
	flex-direction: row;
	align-items: baseline;
	gap: .25em;
	direction: ltr;
	unicode-bidi: isolate;
	white-space: nowrap;
}

body.lang-fa [data-usd] .aipak-price-value,
body.lang-fa [data-usd] .aipak-price-currency {
	display: inline;
	font: inherit;
	color: inherit;
}

@media (max-width: 780px) {
	.topbar {
		padding-inline: 24px;
	}

	body .trust-strip {
		grid-template-columns: 1fr;
		padding: 8px 24px;
	}

	body .trust-strip div {
		padding: 9px 0;
		border: 0;
	}

	body .aipak-voucher-access--home + .accounts {
		padding-top: 48px;
	}

	.topbar .brand-logo {
		height: 40px;
		max-width: 150px;
	}
}
