/* ==========================================================
   CONSUMER-DRIVEN BANKING — SINGLE POST TEMPLATE
   ========================================================== */

.cdb-post,
.cdb-post * {
	box-sizing: border-box;
}

.cdb-post {
	--cdb-post-navy: #06275b;
	--cdb-post-dark-navy: #031b40;
	--cdb-post-teal: #009eaa;
	--cdb-post-bright-teal: #00b8c4;
	--cdb-post-red: #e31837;
	--cdb-post-white: #fff;
	--cdb-post-off-white: #f5f8fa;
	--cdb-post-soft-teal: #eaf8f9;
	--cdb-post-border: #d8e1e8;
	--cdb-post-text: #14253f;
	--cdb-post-muted: #627186;
	--cdb-post-wide: 1280px;
	--cdb-post-reading: 790px;

	width: 100%;
	margin: 0;
	color: var(--cdb-post-text);
	background: var(--cdb-post-white);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.75;
}

.cdb-post a {
	transition: color 170ms ease, background-color 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.cdb-post__hero {
	position: relative;
	overflow: hidden;
	color: var(--cdb-post-white);
	background:
		radial-gradient(circle at 86% 12%, rgba(0, 184, 196, 0.22), transparent 28%),
		linear-gradient(135deg, var(--cdb-post-dark-navy), var(--cdb-post-navy) 70%, #0a416c);
}

.cdb-post__hero::after {
	content: "";
	position: absolute;
	right: -140px;
	bottom: -250px;
	width: 520px;
	height: 520px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 50%;
	box-shadow:
		0 0 0 58px rgba(255, 255, 255, 0.022),
		0 0 0 116px rgba(255, 255, 255, 0.015);
}

.cdb-post__hero-inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--cdb-post-wide));
	margin-inline: auto;
	padding: clamp(55px, 8vw, 105px) clamp(22px, 6vw, 76px) clamp(52px, 7vw, 86px);
}

.cdb-post__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 21px;
}

.cdb-post__categories a {
	padding: 7px 11px;
	color: var(--cdb-post-white) !important;
	background: rgba(0, 184, 196, 0.15);
	border: 1px solid rgba(0, 184, 196, 0.5);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.cdb-post__categories a:hover {
	background: var(--cdb-post-teal);
	border-color: var(--cdb-post-teal);
}

.cdb-post__hero h1 {
	max-width: 1040px;
	margin: 0;
	padding: 0;
	color: var(--cdb-post-white);
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 780;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.cdb-post__dek {
	max-width: 890px;
	margin: 23px 0 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.79);
	font-size: clamp(18px, 2.4vw, 24px);
	font-weight: 400;
	line-height: 1.55;
}

.cdb-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 11px;
	margin-top: 29px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.cdb-post__meta a {
	color: rgba(255, 255, 255, 0.88) !important;
	text-decoration: none;
}

.cdb-post__meta a:hover {
	color: var(--cdb-post-bright-teal) !important;
}

.cdb-post__author-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.cdb-post__author-avatar {
	width: 38px;
	height: 38px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	object-fit: cover;
}

.cdb-post__meta-divider {
	width: 3px;
	height: 3px;
	background: rgba(255, 255, 255, 0.42);
	border-radius: 50%;
}

.cdb-post__updated {
	margin: 13px 0 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.58);
	font-size: 12px;
}

.cdb-post__layout {
	width: min(calc(100% - 44px), 990px);
	margin: clamp(43px, 7vw, 78px) auto 0;
	display: grid;
	grid-template-columns: 54px minmax(0, var(--cdb-post-reading));
	justify-content: center;
	gap: 32px;
}

.cdb-post__share {
	position: sticky;
	top: 110px;
	height: max-content;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 8px;
}

.cdb-post__share > span {
	margin-bottom: 3px;
	color: var(--cdb-post-muted);
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.cdb-post__share a {
	width: 39px;
	height: 39px;
	display: grid;
	place-items: center;
	color: var(--cdb-post-navy) !important;
	background: var(--cdb-post-off-white);
	border: 1px solid var(--cdb-post-border);
	border-radius: 50%;
	font-family: Arial, sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.cdb-post__share a:hover {
	color: var(--cdb-post-white) !important;
	background: var(--cdb-post-teal);
	border-color: var(--cdb-post-teal);
	transform: translateY(-1px);
}

.cdb-post__article-column {
	min-width: 0;
}

.cdb-post__body {
	color: var(--cdb-post-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.82;
}

.cdb-post__body > *:first-child {
	margin-top: 0;
}

.cdb-post__body > *:last-child {
	margin-bottom: 0;
}

.cdb-post__body p {
	margin: 0 0 1.45em;
	padding: 0;
}

.cdb-post__body h2,
.cdb-post__body h3,
.cdb-post__body h4,
.cdb-post__body h5,
.cdb-post__body h6 {
	color: var(--cdb-post-navy);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-weight: 760;
	letter-spacing: -0.025em;
	line-height: 1.23;
}

.cdb-post__body h2 {
	margin: 1.65em 0 0.6em;
	font-size: clamp(29px, 4vw, 39px);
}

.cdb-post__body h3 {
	margin: 1.55em 0 0.55em;
	font-size: clamp(24px, 3vw, 30px);
}

.cdb-post__body h4 {
	margin: 1.45em 0 0.5em;
	font-size: 21px;
}

.cdb-post__body a {
	color: #087c89;
	font-weight: 650;
	text-decoration: underline;
	text-decoration-color: rgba(0, 158, 170, 0.4);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cdb-post__body a:hover {
	color: var(--cdb-post-navy);
	text-decoration-color: var(--cdb-post-navy);
}

.cdb-post__body ul,
.cdb-post__body ol {
	margin: 0 0 1.45em 1.25em;
	padding-left: 0.7em;
}

.cdb-post__body li {
	margin-bottom: 0.55em;
	padding-left: 0.2em;
}

.cdb-post__body li::marker {
	color: var(--cdb-post-teal);
	font-weight: 700;
}

.cdb-post__body blockquote,
.cdb-post__body .wp-block-quote {
	margin: 2em 0;
	padding: 23px 27px;
	color: var(--cdb-post-navy);
	background: var(--cdb-post-soft-teal);
	border: 0;
	border-left: 5px solid var(--cdb-post-teal);
	border-radius: 0 10px 10px 0;
	font-size: 21px;
	font-style: italic;
	line-height: 1.6;
}

.cdb-post__body blockquote p:last-child {
	margin-bottom: 0;
}

.cdb-post__body blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--cdb-post-muted);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 12px;
	font-style: normal;
}

.cdb-post__body figure,
.cdb-post__body .wp-block-image,
.cdb-post__body .wp-block-embed {
	margin: 2em 0;
}

.cdb-post__body img {
	max-width: 100%;
	height: auto;
	border-radius: 9px;
}

.cdb-post__body figcaption,
.cdb-post__body .wp-element-caption {
	margin-top: 7px;
	color: var(--cdb-post-muted);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 11px;
	line-height: 1.5;
}

.cdb-post__body hr,
.cdb-post__body .wp-block-separator {
	width: 100%;
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--cdb-post-border);
}

.cdb-post__body pre {
	margin: 1.7em 0;
	padding: 19px;
	overflow-x: auto;
	color: #eaf5ff;
	background: var(--cdb-post-dark-navy);
	border-radius: 9px;
	font-size: 13px;
	line-height: 1.65;
}

.cdb-post__body code {
	padding: 0.15em 0.35em;
	background: #edf2f5;
	border-radius: 4px;
	font-family: Consolas, Monaco, monospace;
	font-size: 0.86em;
}

.cdb-post__body pre code {
	padding: 0;
	color: inherit;
	background: transparent;
}

.cdb-post__body .wp-block-table,
.cdb-post__body > table {
	margin: 2em 0;
	overflow-x: auto;
}

.cdb-post__body table {
	width: 100%;
	border-collapse: collapse;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 13px;
}

.cdb-post__body th,
.cdb-post__body td {
	padding: 12px 13px;
	border: 1px solid var(--cdb-post-border);
	text-align: left;
	vertical-align: top;
}

.cdb-post__body th {
	color: var(--cdb-post-white);
	background: var(--cdb-post-navy);
}

.cdb-post__body tbody tr:nth-child(even) td {
	background: var(--cdb-post-off-white);
}

.cdb-post__body .alignwide {
	width: min(980px, calc(100vw - 44px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.cdb-post__body .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.cdb-post__tags {
	margin-top: 42px;
	padding-top: 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	border-top: 1px solid var(--cdb-post-border);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.cdb-post__tags strong {
	margin-right: 4px;
	color: var(--cdb-post-navy);
	font-size: 12px;
	text-transform: uppercase;
}

.cdb-post__tags a {
	padding: 7px 10px;
	color: var(--cdb-post-text) !important;
	background: var(--cdb-post-off-white);
	border: 1px solid var(--cdb-post-border);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
}

.cdb-post__tags a:hover {
	color: var(--cdb-post-white) !important;
	background: var(--cdb-post-teal);
	border-color: var(--cdb-post-teal);
}

.cdb-post__author-box {
	margin-top: 30px;
	padding: 25px;
	display: flex;
	align-items: center;
	gap: 19px;
	background: var(--cdb-post-off-white);
	border: 1px solid var(--cdb-post-border);
	border-radius: 11px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.cdb-post__author-box-avatar {
	display: block;
	width: 82px;
	height: 82px;
	border-radius: 50%;
	object-fit: cover;
}

.cdb-post__author-box > div > span {
	color: var(--cdb-post-teal);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.cdb-post__author-box h2 {
	margin: 2px 0 5px;
	padding: 0;
	font-size: 21px;
	line-height: 1.25;
}

.cdb-post__author-box h2 a {
	color: var(--cdb-post-navy) !important;
	text-decoration: none;
}

.cdb-post__author-box p {
	margin: 0;
	color: var(--cdb-post-muted);
	font-size: 12px;
	line-height: 1.55;
}

.cdb-post__author-box .cdb-post__source {
	margin-top: 14px;
	padding-top: 13px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px 12px;
	border-top: 1px solid var(--cdb-post-border);
}

.cdb-post__source > span {
	color: var(--cdb-post-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cdb-post__source a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--cdb-post-teal) !important;
	font-size: 12px;
	font-weight: 750;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cdb-post__source a:hover {
	color: var(--cdb-post-navy) !important;
}

.cdb-post__source a span {
	font-size: 14px;
	line-height: 1;
}

.cdb-post__navigation {
	width: min(calc(100% - 44px), var(--cdb-post-wide));
	margin: clamp(52px, 7vw, 80px) auto 0;
	padding-top: 25px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	border-top: 1px solid var(--cdb-post-border);
}

.cdb-post__navigation-link {
	min-height: 105px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--cdb-post-navy) !important;
	background: var(--cdb-post-off-white);
	border: 1px solid var(--cdb-post-border);
	border-radius: 10px;
	text-decoration: none;
}

.cdb-post__navigation-link:hover {
	background: var(--cdb-post-soft-teal);
	border-color: rgba(0, 158, 170, 0.42);
}

.cdb-post__navigation-link--next {
	justify-content: flex-end;
	text-align: right;
}

.cdb-post__navigation-link > span[aria-hidden="true"] {
	color: var(--cdb-post-teal);
	font-size: 23px;
}

.cdb-post__navigation-link small {
	display: block;
	margin-bottom: 4px;
	color: var(--cdb-post-muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cdb-post__navigation-link strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cdb-post__related {
	width: min(calc(100% - 44px), var(--cdb-post-wide));
	margin: clamp(48px, 7vw, 74px) auto 0;
	padding-bottom: clamp(55px, 8vw, 92px);
}

.cdb-post__section-heading {
	margin-bottom: 19px;
}

.cdb-post__section-heading span {
	color: var(--cdb-post-teal);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cdb-post__section-heading h2 {
	margin: 4px 0 0;
	padding: 0;
	color: var(--cdb-post-navy);
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 760;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.cdb-post__related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cdb-post-card {
	overflow: hidden;
	background: var(--cdb-post-white);
	border: 1px solid var(--cdb-post-border);
	border-radius: 11px;
	box-shadow: 0 8px 24px rgba(3, 27, 64, 0.06);
}

.cdb-post-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--cdb-post-white) !important;
	background: linear-gradient(135deg, var(--cdb-post-navy), var(--cdb-post-teal));
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.cdb-post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.cdb-post-card:hover .cdb-post-card__image img {
	transform: scale(1.035);
}

.cdb-post-card__body {
	padding: 18px;
}

.cdb-post-card__category {
	color: var(--cdb-post-teal) !important;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.cdb-post-card h3 {
	margin: 7px 0 10px;
	padding: 0;
	font-size: 17px;
	font-weight: 750;
	line-height: 1.35;
}

.cdb-post-card h3 a {
	color: var(--cdb-post-navy) !important;
	text-decoration: none;
}

.cdb-post-card h3 a:hover {
	color: var(--cdb-post-teal) !important;
}

.cdb-post-card time {
	color: var(--cdb-post-muted);
	font-size: 10px;
}

.cdb-post-builder-note {
	padding: 18px;
	color: #075c67;
	background: #eaf8f9;
	border: 1px solid rgba(0, 158, 170, 0.3);
	border-radius: 8px;
	font-size: 13px;
}

.cdb-post a:focus-visible,
.cdb-post summary:focus-visible,
.cdb-post button:focus-visible {
	outline: 3px solid var(--cdb-post-bright-teal);
	outline-offset: 3px;
}

@media (max-width: 980px) {
	.cdb-post__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cdb-post__share {
		position: static;
		align-items: center;
		flex-direction: row;
	}

	.cdb-post__share > span {
		margin: 0 4px 0 0;
		writing-mode: initial;
		transform: none;
	}
}

@media (max-width: 760px) {
	.cdb-post__related-grid {
		grid-template-columns: 1fr;
	}

	.cdb-post-card {
		display: grid;
		grid-template-columns: minmax(135px, 38%) minmax(0, 1fr);
	}

	.cdb-post-card__image {
		height: 100%;
		aspect-ratio: auto;
	}
}

@media (max-width: 620px) {
	.cdb-post {
		font-size: 16px;
	}

	.cdb-post__hero h1 {
		font-size: 39px;
	}

	.cdb-post__meta-divider {
		display: none;
	}

	.cdb-post__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.cdb-post__layout,
	.cdb-post__navigation,
	.cdb-post__related {
		width: calc(100% - 32px);
	}

	.cdb-post__body {
		font-size: 17px;
		line-height: 1.75;
	}

	.cdb-post__body blockquote,
	.cdb-post__body .wp-block-quote {
		padding: 19px 20px;
		font-size: 18px;
	}

	.cdb-post__author-box {
		align-items: flex-start;
		flex-direction: column;
	}

	.cdb-post__navigation {
		grid-template-columns: 1fr;
	}

	.cdb-post__navigation > span:empty {
		display: none;
	}

	.cdb-post-card {
		display: block;
	}

	.cdb-post-card__image {
		aspect-ratio: 16 / 9;
	}
}

@media print {
	.cdb-post__share,
	.cdb-post__navigation,
	.cdb-post__related {
		display: none !important;
	}

	.cdb-post__hero {
		color: #000;
		background: none;
	}

	.cdb-post__hero h1,
	.cdb-post__dek,
	.cdb-post__meta,
	.cdb-post__meta a {
		color: #000 !important;
	}

	.cdb-post__layout {
		display: block;
	}

	.cdb-post__body a {
		color: #000;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cdb-post *,
	.cdb-post *::before,
	.cdb-post *::after {
		transition: none !important;
	}
}
