/* The partner pages under /partners/ (Story #1399). Loaded on those pages only;
   colours, radius, shadow and spacing come from the theme. */

/* Cards: as tall as their text, one height per row, the same corners as every box. */
.four_box > [class*="col-lg-3"],
.four_box > [class*="col-lg-4"] {
	display: flex;
	flex-direction: column;
}

.four_box .card {
	flex: 1 0 auto;
	height: auto !important;
	margin-bottom: 24px !important;
	border: 0 !important;
	border-radius: var(--go-radius-box) !important;
	box-shadow: var(--go-shadow) !important;
}

.four_box .card-body {
	margin: 0 !important;
	padding: 24px 20px;
}

.four_box .card h3 {
	height: auto !important;
	margin-bottom: 8px;
}

.four_box .card p {
	margin-bottom: 0;
}

.go-card-icon {
	display: block;
	margin-bottom: 16px;
	color: var(--primary);
	font-size: 36px;
	line-height: 40px;
}

/* Title and intro above the cards. */
.four_box > .col-lg-12.text-center {
	margin-bottom: var(--go-space-title) !important;
}

/* A second block of cards has no title of its own and follows the first. */
.four_box > .col-lg-12.text-center:not(:has(*)) {
	display: none;
}

.go-band .container:has(.four-card) + .container:has(.four-card) {
	margin-top: 0 !important;
}

.four_box > .col-lg-12.text-center > :last-child {
	margin-bottom: 0;
}

.go-band .container > .mt-6.mb-5 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* The last row of cards of a section adds no space of its own. */
.go-band > .container:last-child .four_box {
	margin-bottom: -24px;
}

.five-box .go-intro {
	padding-bottom: var(--go-space-title);
}

/* A photo under the cards of a section. */
.go-partner-photo {
	padding-top: 8px;
	padding-bottom: 16px;
}

/* The opening block: the turquoise strip ends the band, its three lines of text
   wrap evenly. */
.go-band-first:has(> .white) {
	padding-bottom: 0 !important;
}

/* A page under a blue title banner starts with text: the usual room above it. */
.go-band.go-band-first:not(:has(> .white)) {
	padding-top: var(--go-space-section, 48px);
}

.go-band.go-band-first > section.bg-secondary.top-3 {
	margin-bottom: 0 !important;
}

.top_cost h4 {
	max-width: 340px;
	margin-right: auto;
	margin-left: auto;
	text-wrap: balance;
}

/* Quotes inside the page column, and the contact box. */
:is(.go-band .container, .go-article) .quote-section,
.contact-bg {
	overflow: hidden;
	border-radius: var(--go-radius-box) !important;
}

/* [go-how-it-works] step cards: the title takes the card's width so it stays on
   one line, and every text starts at the same height. */
.five-box .card-body {
	padding-right: 8px;
	padding-left: 8px;
}

.five-box .card-body p {
	padding-right: 12px;
	padding-left: 12px;
}

/* Narrower columns: titles may wrap, so each keeps room for two lines. */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.five-box .card h3 {
		min-height: 2.6em;
	}
}

/* A quote in the page column is as tall as its text, with room for the circles. */
:is(.go-band .container, .go-article) .quote-section {
	min-height: 0;
	margin: 0;
	padding: 52px 100px 24px;
}

:is(.go-band .container, .go-article) .quote-section > :last-child {
	margin-bottom: 0;
}

:is(.go-band .container, .go-article) .quote-section .top-icon-image {
	width: 7%;
}

:is(.go-band .container, .go-article) .quote-section .left-icon-image {
	bottom: 24px;
	width: 4%;
}

:is(.go-band .container, .go-article) .quote-section .right-icon-image {
	width: 9%;
}

@media (max-width: 767.98px) {
	:is(.go-band .container, .go-article) .quote-section {
		padding: 48px 44px 24px;
	}
}

/* The footer links stand apart. */
#menu-landing-partners-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 32px;
}

#menu-landing-partners-footer > li {
	margin: 0 !important;
}

@media (min-width: 768px) {
	#menu-landing-partners-footer {
		justify-content: flex-end;
		text-align: right;
	}
}

/* A long page title makes the blue banner taller instead of overflowing it. */
.inner-banner {
	height: auto !important;
	min-height: 222px;
}

/* On phones the footer links sit two by two. */
@media (max-width: 767.98px) {
	#menu-landing-partners-footer > li {
		flex: 0 0 40%;
	}
}

.go-article .quote-section { margin: 28px 0 !important; }

@media (min-width: 768px) {
	.container.go-article .quote-section {
		padding: 52px 72px 24px;
	}
}

/* Phones: the logo leads, then the footer link. */
@media (max-width: 767.98px) {
	footer.footer .bottom-tab {
		flex-direction: column;
	}

	footer.footer .bottom-tab img {
		margin-top: 0;
		margin-bottom: 12px !important;
	}
}
