/* The AI Hub supplies typography and spacing; these rules only affect lending pages. */
.lending-page .lending-hero { position: relative; overflow: hidden; background: #444446; color: #fff; padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(7rem, 11vw, 10rem); }
.lending-page .lending-hero::after { content: ""; position: absolute; bottom: -1px; left: -10%; width: 120%; height: clamp(35px, 6vw, 85px); background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.lending-page .lending-hero h1 { color: #fff; line-height: 1.06; margin: .4em 0 .55em; }
.lending-page .lending-hero .eyebrow { color: #ffac7f; }
.lending-page .lending-hero .wysiwyg { color: #f0f0f1; }
.lending-page .lending-lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; }
.lending-page .lending-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.lending-page .lending-split--text-only { display: block; max-width: 900px; margin-left: 0; }
.lending-page .lending-section-intro { max-width: 920px; margin: 0 auto; text-align: center; }
.lending-page .lending-section h2 { margin-bottom: .55em; }
.lending-page .lending-kicker { font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); color: #444446; }
.lending-page .lending-section--process, .lending-page .lending-section--resources { background: #ebebeb; }
.lending-page .lending-section--closing { background: #444446; color: #f6f6f6; scroll-margin-top: 110px; }
.lending-page .lending-section--closing h2, .lending-page .lending-section--closing .lending-kicker { color: #fff; }
.lending-page .lending-button { display: inline-flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 1.4rem; padding: 1rem 1.65rem; border: 2px solid transparent; border-radius: 6px; background: #e57436; color: #fff; font-family: inherit; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 800; font-style: normal; line-height: 1.35; text-decoration: none; transition: background .2s; }
.lending-page .lending-button:hover { background: #b44816; color: #fff; }
.lending-page .lending-button:focus-visible { outline: 3px solid #2271b1; outline-offset: 5px; }
.lending-page .lending-button span { font-size: 1.6em; line-height: 1; }
.lending-page .lending-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2rem, 5vw, 4rem); }
.lending-page .lending-card { border: 1px solid #d7d7d8; border-top: 4px solid #e57436; border-radius: 0 0 16px 16px; padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; color: #29292b; box-shadow: 0 10px 30px rgba(68,68,70,.05); }
.lending-page .lending-card h3 { color: #29292b; margin: 0 0 .85em; }
.lending-page .lending-card p { line-height: 1.65; }
.lending-page .lending-cards--tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lending-page .lending-cards--tools h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.lending-page .lending-image { display: block; width: 100%; height: auto; object-fit: contain; }
.lending-page .lending-card__media { margin-bottom: 1.5rem; }
.lending-page .lending-card__media img { max-height: 200px; }
.lending-page .lending-section-media img { max-height: 660px; }
.lending-page .lending-section-media--wide { margin: 3rem auto 0; max-width: 1100px; }
.lending-page--consumer .lending-section--resources .lending-section-media { grid-column: 1; grid-row: 1; }
.lending-page--consumer .lending-section--resources .lending-split > div:first-child { grid-column: 2; }
.lending-page .lending-split--demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; text-align: left; }
.lending-page .lending-split--demo > div { min-width: 0; }
.lending-page .lending-scheduler { width: 100%; margin: 0; overflow: hidden; border-radius: 1.25rem; background: #fff; box-shadow: 0 18px 45px rgba(0, 0, 0, .08); }
.lending-page .lending-scheduler h3 { margin: 0; padding: 1.5rem; color: var(--ai-charcoal); }
.lending-page .lending-scheduler iframe { display: block; width: 100%; max-width: 100%; border: 0; }
/* Support the original deployed template, where copy and scheduler are siblings
   of the outer column, as well as the newer nested .lending-split--demo markup. */
.lending-page .lending-section--closing > .gs-module-container > .gs-module-column:has(> .lending-scheduler) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(2rem, 6vw, 5rem);
}
.lending-page .lending-section--closing > .gs-module-container > .gs-module-column:has(> .lending-scheduler) > :first-child {
	display: block;
	min-width: 0;
	max-width: none;
	margin: 0;
	text-align: left;
}
.lending-page .lending-section--closing > .gs-module-container > .gs-module-column > .lending-scheduler {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

/* Match the AI Hub decision cards in these two sections only. No placeholder art. */
:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) {
	background: var(--ai-gray);
}
.lending-page--commercial .lending-hero::after { background: var(--ai-gray); }
:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) .lending-section-intro {
	max-width: 810px;
	text-align: center;
}
:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) .lending-cards {
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	margin-top: clamp(2.75rem, 5vw, 4.5rem);
}
:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) .lending-card {
	min-height: 300px;
	padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
	border: 1px solid #d7d7d8;
	border-radius: 1.25rem;
	background: var(--ai-white);
	box-shadow: 0 18px 45px rgba(68, 68, 70, .08);
	text-align: center;
}
:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) .lending-card h3 {
	color: var(--ai-charcoal);
	margin-bottom: .85em;
}
/* Keep longer descriptions in dark body type, rather than orange display text. */
:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) .lending-card p {
	color: var(--ai-ink);
}
:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) .lending-card__media {
	max-width: 154px;
	margin: 0 auto 1.35rem;
}
@media (max-width: 1000px) { .lending-page .lending-cards--tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .lending-page .lending-split--demo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) {
	.lending-page .lending-section--closing > .gs-module-container > .gs-module-column:has(> .lending-scheduler) { grid-template-columns: minmax(0, 1fr); }
	.lending-page .lending-section--closing > .gs-module-container > .gs-module-column > .lending-scheduler { grid-column: 1; grid-row: auto; }
}
@media (max-width: 767px) {
	.lending-page .lending-split, .lending-page .lending-cards { grid-template-columns: minmax(0, 1fr); }
	.lending-page .lending-section-intro { text-align: left; }
	.lending-page--consumer .lending-section--resources .lending-split > div { grid-column: auto; grid-row: auto; }
	.lending-page .lending-button { max-width: 100%; }
	:is(.lending-page--consumer .lending-section--impact, .lending-page--commercial .lending-section--overview) .lending-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .lending-page .lending-button { transition: none; } }
