/* =============================================================
   MortgageWire — resources.css
   Resources landing, guide pages, glossary
============================================================= */


/* --- PAGE WRAPPER --- */
.res-wrap {
	padding: 24px 24px 48px;
	max-width: 1200px;
	margin: 0 auto;
}


/* --- PAGE HEADER --- */
.res-page-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 28px;
	gap: 20px;
}

.res-page-hed {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.3px;
	margin-bottom: 6px;
}

.res-page-sub {
	font-size: 14px;
	color: #666660;
}


/* --- SECTIONS --- */
.res-section {
	margin-bottom: 44px;
}

.res-section-head {
	margin-bottom: 18px;
}

.res-section-head--row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.res-section-hed {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.2px;
	margin-bottom: 5px;
}

.res-section-sub {
	font-size: 13px;
	color: #666660;
}

.res-section-link {
	font-size: 13px;
	color: #2176C7;
	white-space: nowrap;
	flex-shrink: 0;
}

.res-section-link:hover {
	text-decoration: underline;
}


/* =============================================================
   GUIDE GRID — LANDING PAGE
============================================================= */
.guide-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.guide-card {
	background: #ffffff;
	border-radius: 10px;
	border: 0.5px solid #E0DDD6;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s;
}

.guide-card:hover {
	border-color: #2176C7;
}

.guide-card--featured {
	border-color: #2176C7;
	grid-column: span 1;
}

.gc-eyebrow {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #999490;
}

.gc-hed {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 17px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.1px;
	line-height: 1.3;
}

.gc-desc {
	font-size: 13px;
	color: #666660;
	line-height: 1.6;
	flex: 1;
}

.gc-meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px;
	margin-top: 4px;
}

.gc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.gc-tag {
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 20px;
	border: 0.5px solid #D0CCC4;
	color: #888880;
	background: #F7F5F0;
	white-space: nowrap;
}

.gc-cta {
	font-size: 12px;
	font-weight: 500;
	color: #2176C7;
	white-space: nowrap;
	flex-shrink: 0;
}


/* =============================================================
   FIRST-TIME HOMEBUYER SECTION
============================================================= */
.res-section--ftb {
	background: #EAF2FC;
	border-radius: 12px;
	padding: 24px;
	margin-left: -2px;
	margin-right: -2px;
}

.ftb-banner {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 24px;
}

.ftb-banner-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: #2176C7;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ftb-banner-icon svg {
	width: 22px;
	height: 22px;
	color: #ffffff;
}

.ftb-banner-text {
	flex: 1;
}

.ftb-banner-eyebrow {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #1A5FA0;
	margin-bottom: 4px;
}

.ftb-banner-hed {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	color: #0C2340;
	margin-bottom: 6px;
	letter-spacing: -0.2px;
}

.ftb-banner-sub {
	font-size: 13px;
	color: #2A4A70;
	line-height: 1.6;
}

.ftb-banner-cta {
	flex-shrink: 0;
	display: inline-block;
	padding: 9px 18px;
	background: #2176C7;
	color: #ffffff;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
	align-self: center;
}

.ftb-banner-cta:hover {
	background: #1A5FA0;
}

.ftb-checklist-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.ftb-check {
	display: flex;
	gap: 10px;
}

.ftb-check-num {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	background: #2176C7;
	color: #ffffff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.ftb-check-hed {
	font-size: 13px;
	font-weight: 500;
	color: #0C2340;
	margin-bottom: 4px;
}

.ftb-check-text {
	font-size: 12px;
	color: #2A4A70;
	line-height: 1.55;
}


/* =============================================================
   GLOSSARY PREVIEW — LANDING PAGE
============================================================= */
.gloss-preview-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.gloss-pill {
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 8px;
	padding: 14px 16px;
}

.gp-term {
	font-size: 13px;
	font-weight: 500;
	color: #1A1A1A;
	margin-bottom: 5px;
}

.gp-def {
	font-size: 12px;
	color: #666660;
	line-height: 1.55;
}

.gloss-preview-foot {
	margin-top: 14px;
	text-align: center;
}

.btn-gloss {
	display: inline-block;
	padding: 9px 22px;
	border: 0.5px solid #2176C7;
	border-radius: 6px;
	font-size: 13px;
	color: #2176C7;
	text-decoration: none;
	transition: background 0.15s;
}

.btn-gloss:hover {
	background: #EAF2FC;
}


/* =============================================================
   GUIDE PAGE LAYOUT
============================================================= */
.guide-nav-back {
	margin-bottom: 18px;
	font-size: 13px;
}

.guide-nav-back a {
	color: #2176C7;
}

.guide-nav-back a:hover {
	text-decoration: underline;
}

.guide-layout {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 28px;
	align-items: start;
}


/* --- GUIDE ARTICLE --- */
.guide-body {
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
	overflow: hidden;
}

.guide-header {
	padding: 28px 32px 24px;
	border-bottom: 0.5px solid #E0DDD6;
}

.guide-header-eyebrow {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #999490;
	margin-bottom: 8px;
}

.guide-header-hed {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.4px;
	line-height: 1.2;
	margin-bottom: 10px;
}

.guide-header-sub {
	font-size: 14px;
	color: #666660;
	line-height: 1.6;
}

.guide-toc {
	padding: 18px 32px;
	background: #F7F5F0;
	border-bottom: 0.5px solid #E0DDD6;
}

.guide-toc-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #999490;
	margin-bottom: 10px;
}

.guide-toc-list {
	list-style: decimal;
	padding-left: 18px;
	columns: 2;
	gap: 20px;
}

.guide-toc-list li {
	font-size: 13px;
	margin-bottom: 5px;
	break-inside: avoid;
}

.guide-toc-list a {
	color: #2176C7;
}

.guide-toc-list a:hover {
	text-decoration: underline;
}

.guide-section {
	padding: 24px 32px;
	border-bottom: 0.5px solid #F0EDE8;
}

.guide-section:last-child {
	border-bottom: none;
}

.guide-section h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.2px;
	margin-bottom: 12px;
}

.guide-section p {
	font-size: 14px;
	color: #333330;
	line-height: 1.7;
	margin-bottom: 12px;
}

.guide-section p:last-child {
	margin-bottom: 0;
}

.guide-section strong {
	font-weight: 500;
	color: #1A1A1A;
}

.guide-section em {
	font-style: italic;
}

.guide-section a {
	color: #2176C7;
}

.guide-section a:hover {
	text-decoration: underline;
}

.guide-list {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 12px;
}

.guide-list li {
	font-size: 14px;
	color: #333330;
	line-height: 1.65;
	margin-bottom: 7px;
}

.guide-callout {
	background: #EAF2FC;
	border-left: 3px solid #2176C7;
	border-radius: 0 6px 6px 0;
	padding: 14px 16px;
	margin: 16px 0;
}

.guide-callout-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #1A5FA0;
	margin-bottom: 6px;
}

.guide-callout p {
	font-size: 13px;
	color: #1A3A60;
	margin-bottom: 6px;
}

.guide-callout p:last-child {
	margin-bottom: 0;
}

.guide-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 16px 0;
}

.guide-compare-col {
	background: #F7F5F0;
	border: 0.5px solid #E0DDD6;
	border-radius: 8px;
	padding: 16px;
}

.guide-compare-head {
	font-size: 13px;
	font-weight: 500;
	color: #1A1A1A;
	margin-bottom: 10px;
}

.guide-compare-list {
	list-style: disc;
	padding-left: 16px;
}

.guide-compare-list li {
	font-size: 13px;
	color: #444440;
	line-height: 1.55;
	margin-bottom: 6px;
}

.guide-table-wrap {
	overflow-x: auto;
	margin: 16px 0;
}

.guide-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.guide-table th {
	text-align: left;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #666660;
	padding: 8px 12px;
	background: #F7F5F0;
	border: 0.5px solid #E0DDD6;
}

.guide-table td {
	padding: 9px 12px;
	border: 0.5px solid #E0DDD6;
	color: #333330;
	line-height: 1.5;
	vertical-align: top;
}

.guide-table tr:nth-child(even) td {
	background: #FDFCFB;
}


/* =============================================================
   GUIDE SIDEBAR
============================================================= */
.guide-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 80px;
}

.gsb-rates-card {
	background: #0C2340;
	border-radius: 10px;
	padding: 18px;
}

.gsb-rates-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
	margin-bottom: 6px;
}

.gsb-rates-val {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 28px;
	font-weight: 400;
	color: #ffffff;
	letter-spacing: -0.5px;
	line-height: 1;
	margin-bottom: 6px;
}

.gsb-rates-chg {
	font-size: 12px;
	margin-bottom: 12px;
}

.gsb-rates-chg.up   { color: #F5A89A; }
.gsb-rates-chg.dn   { color: #7ED4B2; }
.gsb-rates-chg.flat { color: rgba(255,255,255,0.5); }

.gsb-rates-link {
	display: block;
	font-size: 12px;
	color: #7ABAEE;
	text-decoration: none;
	border-top: 0.5px solid rgba(255,255,255,0.1);
	padding-top: 10px;
}

.gsb-rates-link:hover {
	text-decoration: underline;
}

.gsb-tools-card,
.gsb-guides-card {
	background: #ffffff;
	border: 0.5px solid #E0DDD6;
	border-radius: 10px;
	padding: 16px;
}

.gsb-tools-label,
.gsb-guides-label {
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #999490;
	margin-bottom: 10px;
}

.gsb-tool-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #2176C7;
	padding: 7px 0;
	border-bottom: 0.5px solid #F0EDE8;
	text-decoration: none;
}

.gsb-tool-link:last-child {
	border-bottom: none;
}

.gsb-tool-link:hover span:first-child {
	text-decoration: underline;
}

.gsb-guide-link {
	display: block;
	font-size: 13px;
	color: #2176C7;
	padding: 6px 0;
	border-bottom: 0.5px solid #F0EDE8;
	text-decoration: none;
}

.gsb-guide-link:last-child {
	border-bottom: none;
}

.gsb-guide-link:hover {
	text-decoration: underline;
}


/* =============================================================
   GLOSSARY PAGE
============================================================= */
.gloss-page {
	max-width: 820px;
}

.gloss-page-header {
	margin-bottom: 22px;
}

.gloss-page-hed {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	color: #1A1A1A;
	letter-spacing: -0.3px;
	margin-bottom: 6px;
}

.gloss-page-sub {
	font-size: 14px;
	color: #666660;
}

.gloss-alpha-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 0.5px solid #E0DDD6;
}

.gloss-alpha-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #2176C7;
	background: #EAF2FC;
	text-decoration: none;
	transition: background 0.12s;
}

.gloss-alpha-link:hover {
	background: #2176C7;
	color: #ffffff;
}

.gloss-entries {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.gloss-letter-group {
	margin-bottom: 28px;
}

.gloss-letter-head {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	color: #2176C7;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 0.5px solid #E0DDD6;
}

.gloss-entry {
	padding: 12px 0;
	border-bottom: 0.5px solid #F0EDE8;
}

.gloss-entry:last-child {
	border-bottom: none;
}

.gloss-entry-term {
	font-size: 14px;
	font-weight: 500;
	color: #1A1A1A;
	margin-bottom: 4px;
}

.gloss-entry-def {
	font-size: 13px;
	color: #444440;
	line-height: 1.65;
}


/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
	.guide-grid {
		grid-template-columns: 1fr 1fr;
	}
	.gloss-preview-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.ftb-checklist-row {
		grid-template-columns: 1fr 1fr;
	}
	.guide-layout {
		grid-template-columns: 1fr;
	}
	.guide-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
	.guide-toc-list {
		columns: 1;
	}
}

@media (max-width: 768px) {
	.res-wrap {
		padding: 18px 16px 36px;
	}
	.guide-grid {
		grid-template-columns: 1fr;
	}
	.ftb-banner {
		flex-direction: column;
	}
	.ftb-banner-cta {
		align-self: flex-start;
	}
	.ftb-checklist-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.gloss-preview-grid {
		grid-template-columns: 1fr 1fr;
	}
	.guide-compare {
		grid-template-columns: 1fr;
	}
	.guide-sidebar {
		grid-template-columns: 1fr;
	}
	.guide-header {
		padding: 20px 20px 18px;
	}
	.guide-toc {
		padding: 14px 20px;
	}
	.guide-section {
		padding: 18px 20px;
	}
	.guide-header-hed {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.gloss-preview-grid {
		grid-template-columns: 1fr;
	}
	.res-section-head--row {
		flex-direction: column;
		align-items: flex-start;
	}
	.gc-meta {
		flex-direction: column;
		align-items: flex-start;
	}
}
