/**
 * Single post (Resources article) styles.
 * Matches Post - Standalone.html; Gutenberg blocks styled inside .entry-content.
 * Featured image is intentionally not shown in the article body.
 */

/* ---- Layout shell ---- */
.site-main--post {
	display: block;
}

.post-article {
	display: block;
}

.post-breadcrumb {
	background: #F5F7F9;
	border-bottom: 1px solid #D8E0E7;
}

.post-breadcrumb__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px 32px;
}

.post-breadcrumb__nav {
	font-size: 14px;
	color: #667085;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.post-breadcrumb__nav a {
	color: #667085;
}

.post-breadcrumb__nav a:hover,
.post-breadcrumb__nav a:focus-visible {
	color: #123B5D;
}

.post-breadcrumb__sep {
	color: #B0BEC5;
}

.post-breadcrumb__current {
	color: #1F2937;
	font-weight: 500;
}

/* ---- Article header (no featured image) ---- */
.post-header {
	max-width: 904px;
	margin: 0 auto;
	padding: 48px 32px 32px;
}

.post-header__taxes {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.post-header__cat {
	font-size: 12px;
	font-weight: 600;
	color: #123B5D;
	background: #EDF3F7;
	padding: 4px 10px;
	border-radius: 4px;
	text-decoration: none;
}

.post-header__cat:hover,
.post-header__cat:focus-visible {
	color: #0B2F4A;
}

.post-header__tag {
	font-size: 12px;
	font-weight: 600;
	color: #9A4A00;
	background: #FDF4E3;
	padding: 4px 10px;
	border-radius: 4px;
}

.post-header__title {
	font-size: 40px;
	font-weight: 700;
	color: #0B253A;
	line-height: 1.2;
	margin-bottom: 16px;
	text-wrap: balance;
}

.post-header__excerpt {
	font-size: 18px;
	color: #667085;
	line-height: 1.6;
	margin-bottom: 24px;
	max-width: 840px;
}

.post-header__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #667085;
}

.post-header__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #D8E0E7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: #123B5D;
	overflow: hidden;
}

.post-header__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-header__author {
	color: #1F2937;
	font-weight: 600;
}

/* ---- Gutenberg content ---- */
.post-content-wrap {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px 64px;
}

.post-article .entry-content {
	max-width: 840px;
	margin-left: auto;
	margin-right: auto;
	color: #1F2937;
	font-size: 17px;
	line-height: 1.75;
}

.post-article .entry-content > *:first-child {
	margin-top: 0;
}

.post-article .entry-content > *:last-child {
	margin-bottom: 0;
}

.post-article .entry-content h2 {
	font-size: 26px;
	font-weight: 700;
	color: #0B253A;
	line-height: 1.3;
	margin: 40px 0 14px;
	scroll-margin-top: 100px;
}

.post-article .entry-content h3 {
	font-size: 19px;
	font-weight: 600;
	color: #0B253A;
	margin: 28px 0 10px;
}

.post-article .entry-content h4 {
	font-size: 17px;
	font-weight: 600;
	color: #0B253A;
	margin: 24px 0 8px;
}

.post-article .entry-content p {
	font-size: 17px;
	line-height: 1.75;
	margin-bottom: 18px;
	text-wrap: pretty;
}

.post-article .entry-content ul,
.post-article .entry-content ol {
	font-size: 17px;
	line-height: 1.75;
	padding-left: 22px;
	margin-bottom: 18px;
}

.post-article .entry-content li {
	margin-bottom: 6px;
}

.post-article .entry-content a {
	color: #123B5D;
	border-bottom: 1px solid #B0C4D8;
	text-decoration: none;
}

.post-article .entry-content a:hover,
.post-article .entry-content a:focus-visible {
	color: #0B2F4A;
}

.post-article .entry-content strong {
	font-weight: 600;
}

.post-article .entry-content .wp-block-image,
.post-article .entry-content figure {
	margin: 28px 0;
}

.post-article .entry-content .wp-block-image img,
.post-article .entry-content figure img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.post-article .entry-content figcaption {
	font-size: 13px;
	color: #667085;
	margin-top: 8px;
	text-align: center;
}

/* Tables (core/table) */
.post-article .entry-content .wp-block-table,
.post-article .entry-content .tk-table-wrap {
	overflow-x: auto;
	border: 1px solid #D8E0E7;
	border-radius: 8px;
	margin: 0 0 24px;
}

.post-article .entry-content .wp-block-table table,
.post-article .entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.post-article .entry-content .wp-block-table thead,
.post-article .entry-content thead {
	background: #EDF3F7;
	text-align: left;
}

.post-article .entry-content .wp-block-table th,
.post-article .entry-content .wp-block-table td,
.post-article .entry-content th,
.post-article .entry-content td {
	padding: 12px 16px;
	border-top: 1px solid #E5E9EE;
}

.post-article .entry-content .wp-block-table thead th,
.post-article .entry-content thead th {
	border-top: 0;
	font-weight: 600;
	color: #0B253A;
}

.post-article .entry-content .wp-block-table tbody tr:nth-child(even),
.post-article .entry-content tbody tr:nth-child(even) {
	background: #F9FAFB;
}

/* Quote / callout */
.post-article .entry-content .wp-block-quote,
.post-article .entry-content .tk-callout {
	display: flex;
	gap: 12px;
	padding: 18px 20px;
	background: #FFF8EB;
	border: 1px solid #F0DDB4;
	border-radius: 8px;
	margin: 24px 0;
	border-left: 1px solid #F0DDB4;
}

.post-article .entry-content .wp-block-quote p,
.post-article .entry-content .tk-callout p {
	font-size: 15px;
	color: #6B4A00;
	margin: 0;
}

.post-article .entry-content .wp-block-quote cite {
	font-size: 13px;
	color: #9A4A00;
}

/* Key takeaways group: add class "tk-takeaways" in block Advanced */
.post-article .entry-content .tk-takeaways,
.post-article .entry-content .wp-block-group.tk-takeaways {
	background: #F5F7F9;
	border: 1px solid #D8E0E7;
	border-radius: 8px;
	padding: 24px 28px;
	margin-bottom: 32px;
}

.post-article .entry-content .tk-takeaways > .wp-block-heading:first-child,
.post-article .entry-content .tk-takeaways > h2:first-child,
.post-article .entry-content .tk-takeaways > h3:first-child,
.post-article .entry-content .tk-takeaways > p:first-child strong {
	font-size: 13px;
	font-weight: 700;
	color: #123B5D;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 10px;
}

.post-article .entry-content .tk-takeaways ul {
	margin: 0;
	font-size: 16px;
}

/* Product links group: class "tk-product-links" */
.post-article .entry-content .tk-product-links,
.post-article .entry-content .wp-block-group.tk-product-links {
	border: 1px solid #D8E0E7;
	border-radius: 8px;
	padding: 20px 24px;
	margin-top: 32px;
}

.post-article .entry-content .tk-product-links .wp-block-heading,
.post-article .entry-content .tk-product-links > p:first-child {
	font-size: 13px;
	font-weight: 700;
	color: #123B5D;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.post-article .entry-content .tk-product-links .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.post-article .entry-content .tk-product-links .wp-block-button__link {
	font-size: 14px;
	font-weight: 600;
	padding: 8px 14px;
	border: 1px solid #D8E0E7;
	border-radius: 20px;
	background: #fff;
	color: #123B5D;
	border-bottom: 1px solid #D8E0E7;
}

.post-article .entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid #E5E9EE;
	margin: 32px 0;
}

.post-article .entry-content .alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.post-article .entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.post-article .entry-content .wp-block-embed,
.post-article .entry-content .wp-block-video {
	margin: 28px 0;
}

.post-article .entry-content .wp-block-code,
.post-article .entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
}

.post-article .entry-content .wp-block-code {
	background: #F5F7F9;
	border: 1px solid #D8E0E7;
	border-radius: 8px;
	padding: 16px 20px;
	overflow-x: auto;
}

/* ---- Post footer: tags + share ---- */
.post-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	max-width: 840px;
	margin: 32px auto 0;
	padding-top: 24px;
	border-top: 1px solid #E5E9EE;
}

.post-footer__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
	align-items: center;
}

.post-footer__tags-label {
	color: #667085;
}

.post-footer__tag {
	color: #123B5D;
	text-decoration: none;
}

.post-footer__tag:hover,
.post-footer__tag:focus-visible {
	color: #0B2F4A;
	text-decoration: underline;
}

.post-footer__share {
	display: flex;
	gap: 8px;
}

.post-footer__share a,
.post-footer__share-copy {
	width: 40px;
	height: 40px;
	border: 1px solid #D8E0E7;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #123B5D;
	text-decoration: none;
	background: #fff;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}

.post-footer__share a:hover,
.post-footer__share a:focus-visible,
.post-footer__share-copy:hover,
.post-footer__share-copy:focus-visible {
	border-color: #123B5D;
	color: #0B2F4A;
}

/* ---- Related ---- */
.post-related {
	background: #F5F7F9;
	padding: 64px 0;
}

.post-related__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
}

.post-related__title {
	font-size: 26px;
	font-weight: 700;
	color: #0B253A;
	margin-bottom: 24px;
}

.post-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.post-related__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #D8E0E7;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.post-related__card:hover,
.post-related__card:focus-visible {
	border-color: #123B5D;
}

.post-related__thumb {
	aspect-ratio: 16 / 9;
	background: #EEF2F5;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.post-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-related__thumb-ph {
	font-size: 12px;
	color: #667085;
	font-family: monospace;
}

.post-related__body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.post-related__cat {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	color: #123B5D;
	background: #EDF3F7;
	padding: 3px 8px;
	border-radius: 3px;
}

.post-related__card-title {
	font-size: 16px;
	font-weight: 600;
	color: #0B253A;
	line-height: 1.35;
	margin: 0;
}

.post-related__meta {
	font-size: 13px;
	color: #667085;
}

/* ---- CTA ---- */
.post-cta {
	padding: 72px 0;
}

.post-cta__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
	text-align: center;
}

.post-cta__title {
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 12px;
}

.post-cta__text {
	font-size: 17px;
	color: #D8E0E7;
	max-width: 520px;
	margin: 0 auto 32px;
}

.post-cta__btns {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.post-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.post-cta__btn--primary {
	background: #fff;
	color: #0B253A;
}

.post-cta__btn--primary:hover,
.post-cta__btn--primary:focus-visible {
	background: #EDF3F7;
	color: #0B253A;
}

.post-cta__btn--wa {
	background: #25D366;
	color: #0B253A;
}

.post-cta__btn--wa:hover,
.post-cta__btn--wa:focus-visible {
	background: #1FBE5A;
	color: #0B253A;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
	.post-breadcrumb__inner,
	.post-header,
	.post-content-wrap,
	.post-related__inner,
	.post-cta__inner {
		padding-left: 24px;
		padding-right: 24px;
	}

	.post-header {
		max-width: 888px;
	}

	.post-related__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.post-breadcrumb__inner,
	.post-header,
	.post-content-wrap,
	.post-related__inner,
	.post-cta__inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.post-header {
		padding-top: 32px;
		padding-bottom: 24px;
	}

	.post-header__title {
		font-size: 28px;
	}

	.post-article .entry-content h2 {
		font-size: 22px;
	}

	.post-article .entry-content p,
	.post-article .entry-content ul,
	.post-article .entry-content ol {
		font-size: 16px;
	}

	.post-related__grid {
		grid-template-columns: 1fr;
	}

	.post-cta__title {
		font-size: 28px;
	}

	.post-cta__btns {
		flex-direction: column;
		align-items: stretch;
	}

	.post-cta__btn {
		justify-content: center;
	}
}
