/*
 * Get Business Credit V4.10.0
 * Marketplace containment, internal review routing, wide comparison grids,
 * and production bureau-brand presentation.
 */

/* ---------- Corporate canvas and edge safety ---------- */
.gbc-marketplace-archive-shell,
.page-template-page-marketplace .gbc-container--wide,
.page-template-page-compare-business-products .gbc-rp-content,
.page-template-page-business-credit-tradelines .gbc-container--wide {
	width: 100%;
	max-width: 1480px;
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 2vw, 2.4rem);
}

.gbc-marketplace-archive-shell,
.gbc-marketplace-archive-shell #gbc-results,
.gbc-marketplace-archive-shell .gbc-results,
.page-template-page-marketplace #gbc-featured-offers,
.page-template-page-marketplace #gbc-featured-offers .gbc-results {
	min-width: 0;
	overflow: visible;
}

/* ---------- Marketplace category archives ---------- */
.tax-gbc_marketplace_cat .gbc-mkt-hero {
	width: 100%;
	margin-inline: 0;
}

.tax-gbc_marketplace_cat .gbc-disclosure-link {
	margin: 1rem 0 1.1rem;
	text-align: right;
}

.tax-gbc_marketplace_cat .gbc-mkt-layout {
	width: 100%;
	grid-template-columns: minmax(250px, 285px) minmax(0, 1fr);
	gap: clamp(1.35rem, 2vw, 2.25rem);
	align-items: start;
}

.tax-gbc_marketplace_cat #gbc-results,
.tax-gbc_marketplace_cat .gbc-results {
	width: 100%;
	max-width: none;
}

.tax-gbc_marketplace_cat .gbc-filter-form,
.tax-gbc_marketplace_cat .gbc-filter-rail {
	width: 100%;
	min-width: 0;
}

.tax-gbc_marketplace_cat .gbc-offer-card,
.page-template-page-marketplace .gbc-offer-card,
.page-template-page-compare-business-products .gbc-offer-card,
.page-template-page-business-credit-tradelines .gbc-offer-card {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* The product-card CTA is now an internal review link. Make that intent clear. */
.gbc-offer-card__actions .gbc-btn--primary {
	min-height: 46px;
	white-space: normal;
	line-height: 1.2;
	text-align: center;
}

.gbc-offer-card__top {
	grid-template-columns: minmax(150px, 178px) minmax(0, 1fr);
	gap: clamp(1.1rem, 2vw, 1.8rem);
}

.gbc-offer-card__media,
.gbc-offer-card__body {
	min-width: 0;
}

.gbc-offer-card__logo {
	width: 100%;
	min-height: 64px;
	justify-content: flex-start;
	overflow: visible;
}

.gbc-offer-card__logo img {
	max-width: 155px;
	max-height: 64px;
	object-fit: contain;
	object-position: left center;
}

.gbc-offer-card__title {
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.gbc-offer-card__eyebrow {
	line-height: 1.35;
}

.gbc-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	width: 100%;
}

.gbc-metric {
	min-width: 0;
}

.gbc-metric__value {
	overflow-wrap: anywhere;
}

.gbc-offer-card__foot {
	width: 100%;
}

/* Featured marketplace cards use the same full corporate measure. */
.page-template-page-marketplace #gbc-featured-offers .gbc-container--wide,
.page-template-page-marketplace #gbc-categories .gbc-container--wide {
	max-width: 1480px;
}

.page-template-page-marketplace #gbc-featured-offers .gbc-results {
	display: grid;
	grid-template-columns: 1fr;
}

/* ---------- Compare-products page: defeat Gutenberg's narrow constrained layout ---------- */
.page-template-page-compare-business-products .gbc-rp-content {
	max-width: 1480px;
}

.page-template-page-compare-business-products .gbc-rp-content > .gbc-rp-section,
.page-template-page-compare-business-products .gbc-rp-section {
	width: 100%;
	max-width: 1320px !important;
	margin-inline: auto;
}

.page-template-page-compare-business-products .gbc-rp-section.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.page-template-page-compare-business-products .gbc-rp-section .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.page-template-page-compare-business-products .gbc-rp-section > p,
.page-template-page-compare-business-products .gbc-rp-section > ul,
.page-template-page-compare-business-products .gbc-rp-section > ol,
.page-template-page-compare-business-products .gbc-rp-section > .gbc-rp-lede,
.page-template-page-compare-business-products .gbc-rp-section > .gbc-rp-note,
.page-template-page-compare-business-products .gbc-rp-section > .gbc-rp-toc {
	max-width: 980px;
}

.page-template-page-compare-business-products .gbc-rp-section > h2,
.page-template-page-compare-business-products .gbc-rp-section > h3 {
	max-width: 1080px;
}

.page-template-page-compare-business-products .gbc-cat-grid {
	width: 100%;
	max-width: none !important;
	grid-template-columns: repeat(4, minmax(230px, 1fr));
	gap: 1.15rem;
	margin-top: 1.7rem;
}

.page-template-page-compare-business-products .gbc-cat-card {
	min-width: 0;
	min-height: 255px;
	padding: 1.5rem;
	border-radius: 12px;
}

.page-template-page-compare-business-products .gbc-rp-category-guides,
.page-template-page-compare-business-products .gbc-rp-option-grid,
.page-template-page-compare-business-products .gbc-rp-step-grid,
.page-template-page-compare-business-products .gbc-rp-link-grid,
.page-template-page-compare-business-products .gbc-rp-checklist,
.page-template-page-compare-business-products .gbc-rp-compare-table,
.page-template-page-compare-business-products .gbc-rp-marketplace-section .gbc-results {
	width: 100%;
	max-width: none !important;
}

/* Number markers receive a dedicated column and can never overlap headings. */
.gbc-rp-step-grid article {
	min-width: 0;
}

.gbc-rp-step-grid article > span {
	flex: none;
	z-index: 1;
}

.gbc-rp-step-grid article > h3,
.gbc-rp-step-grid article > p {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* ---------- Tradelines hero: supplied bureau logos and readable cards ---------- */
.page-template-page-business-credit-tradelines .gbc-tradelines-suite .gbc-suite-hero__grid {
	grid-template-columns: minmax(430px, .82fr) minmax(650px, 1.18fr);
	gap: clamp(2rem, 3vw, 3.6rem);
}

.page-template-page-business-credit-tradelines .gbc-tradeline-map {
	grid-template-columns: minmax(255px, .9fr) 76px minmax(225px, .72fr);
	gap: .8rem;
}

.gbc-tradeline-item {
	color: #0d2a4c;
	border: 1px solid rgba(10, 77, 139, .1);
}

.gbc-tradeline-item b {
	color: #0b294c !important;
	font-weight: 800;
}

.gbc-tradeline-item small {
	color: #0875d9 !important;
	font-weight: 650;
}

.gbc-tradeline-status {
	color: #10784e !important;
	background: #e5f7ed;
}

.gbc-bureau-card {
	min-height: 76px;
	padding: .65rem 1rem;
	background: #fff;
	border: 1px solid rgba(11, 83, 148, .14);
	box-shadow: 0 10px 24px rgba(0, 24, 60, .14);
}

.gbc-bureau-card img {
	width: auto;
	height: auto;
	max-width: 190px;
	max-height: 52px;
	object-fit: contain;
	object-position: center;
}

.gbc-bureau-card:nth-child(1) img {
	max-width: 185px;
	max-height: 38px;
}

.gbc-bureau-card:nth-child(2) img {
	max-width: 165px;
	max-height: 52px;
}

.gbc-bureau-card:nth-child(3) img {
	max-width: 180px;
	max-height: 42px;
}

.gbc-tradeline-profile {
	color: #dcecff;
}

.gbc-tradeline-profile p span,
.gbc-tradeline-metric span {
	color: #b4cee5;
}

/* Tradeline offer rows use the full width of the branded hero/strip. */
.gbc-tradeline-offers .gbc-container--wide,
.gbc-tradeline-offers .gbc-results {
	width: 100%;
	max-width: 1480px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.page-template-page-business-credit-tradelines .gbc-tradelines-suite .gbc-suite-hero__grid {
		grid-template-columns: 1fr;
	}

	.page-template-page-business-credit-tradelines .gbc-suite-hero__copy {
		max-width: 760px;
	}

	.page-template-page-business-credit-tradelines .gbc-suite-hero__visual {
		max-width: 900px;
		justify-self: stretch;
	}

	.page-template-page-compare-business-products .gbc-cat-grid {
		grid-template-columns: repeat(3, minmax(220px, 1fr));
	}
}

@media (max-width: 980px) {
	.tax-gbc_marketplace_cat .gbc-mkt-layout {
		grid-template-columns: 1fr;
	}

	.gbc-offer-card__top {
		grid-template-columns: 1fr;
	}

	.gbc-offer-card__media {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
		align-items: center;
	}

	.gbc-offer-card__actions {
		justify-content: end;
	}

	.page-template-page-compare-business-products .gbc-cat-grid {
		grid-template-columns: repeat(2, minmax(210px, 1fr));
	}

	.page-template-page-business-credit-tradelines .gbc-tradeline-map {
		grid-template-columns: minmax(0, 1fr);
	}

	.gbc-tradeline-flow {
		grid-template-columns: 1fr auto 1fr;
	}

	.gbc-tradeline-bureaus {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.gbc-marketplace-archive-shell,
	.page-template-page-marketplace .gbc-container--wide,
	.page-template-page-compare-business-products .gbc-rp-content,
	.page-template-page-business-credit-tradelines .gbc-container--wide {
		padding-inline: 1rem;
	}

	.gbc-offer-card__media {
		grid-template-columns: 1fr;
	}

	.gbc-offer-card__actions,
	.gbc-offer-card__actions .gbc-btn {
		width: 100%;
	}

	.gbc-offer-card__foot {
		align-items: stretch;
	}

	.gbc-offer-card__foot .gbc-btn,
	.gbc-offer-card__foot .gbc-expand {
		justify-content: center;
	}

	.gbc-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.page-template-page-compare-business-products .gbc-cat-grid {
		grid-template-columns: 1fr;
	}

	.page-template-page-compare-business-products .gbc-cat-card {
		min-height: 0;
	}

	.gbc-tradeline-bureaus {
		grid-template-columns: 1fr;
	}

	.gbc-bureau-card img {
		max-width: 190px;
	}
}
