/*
 * Blog (archive + single) — alignment with the DFDC design system.
 * Loaded on blog/, single posts, and search results.
 *
 * Goals:
 *  - Use the same brand mint, dark surface and dashed-border accents
 *    as the page-product template.
 *  - Inter Tight font for headings (matches /barefabric/, /the-hague/).
 *  - Trim the giant -125px hack and the 200px banner top padding now
 *    that the sticky DFDC nav handles its own offset.
 */

/* ============================================================
 * Bespoke blog templates (index.php + single.php).
 *
 * Reuses .dfdc-th tokens / patterns where possible; adds a few
 * blog-specific classes for the hero, feature card, grid card,
 * single-post share rail and pagination.
 * ============================================================ */

/* Blog hero — same shape as the flagship .dfdc-th-hero (dark surface,
 * mint bracket eyebrow, large title, breadcrumbs underneath). */
.dfdc-blog .dfdc-blog-hero {
	background: var(--dfdc-bg);
	color: var(--dfdc-text);
	padding-block: clamp(96px, 13vh, 144px) clamp(40px, 6vh, 64px);
	border-bottom: 1px solid var(--dfdc-line);
}
.dfdc-blog .dfdc-blog-hero--single {
	padding-block: clamp(96px, 13vh, 144px) clamp(40px, 6vh, 64px);
}
.dfdc-blog .dfdc-blog-hero__inner {
	display: grid;
	gap: 14px;
	max-width: 880px;
}
.dfdc-blog .dfdc-blog-hero__title {
	margin: 0;
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.022em;
	line-height: 1.05;
	font-size: clamp(36px, 4.4vw, 64px);
	color: var(--dfdc-text);
	max-width: 24ch;
}
.dfdc-blog .dfdc-blog-hero__sub {
	margin: 0;
	max-width: 60ch;
	color: rgba(233, 244, 240, 0.82);
	line-height: 1.5;
	font-size: clamp(16px, 1vw + 0.4rem, 18px);
}
.dfdc-blog .dfdc-blog-hero__meta {
	font-family: var(--dfdc-font-sans);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(233, 244, 240, 0.6);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.dfdc-blog .dfdc-blog-hero__crumbs {
	font-family: var(--dfdc-font-sans);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(233, 244, 240, 0.6);
}
.dfdc-blog .dfdc-blog-hero__crumbs a {
	color: rgba(233, 244, 240, 0.85);
	text-decoration: none;
}
.dfdc-blog .dfdc-blog-hero__crumbs a:hover { color: var(--dfdc-mint); }

/* Featured ----------------------------------------------------------- */
.dfdc-blog-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px dashed rgba(15, 21, 19, 0.18);
	padding-bottom: 28px;
}
.dfdc-blog-feature__media { margin: 0; overflow: hidden; }
.dfdc-blog-feature__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	max-height: 480px;
	object-fit: cover;
	display: block;
	transition: transform 240ms ease;
}
.dfdc-blog-feature:hover .dfdc-blog-feature__media img { transform: scale(1.02); }
.dfdc-blog-feature__copy { display: flex; flex-direction: column; gap: 14px; }
.dfdc-blog-feature__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--dfdc-text-dark-muted);
}
.dfdc-blog-feature__title {
	margin: 0;
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.014em;
	line-height: 1.15;
	font-size: clamp(24px, 2.4vw + 0.2rem, 36px);
	color: var(--dfdc-text-dark);
	transition: color 160ms ease;
}
.dfdc-blog-feature:hover .dfdc-blog-feature__title { color: var(--dfdc-mint-700); }
.dfdc-blog-feature__excerpt {
	margin: 0;
	color: var(--dfdc-text-dark-muted);
	line-height: 1.55;
	font-size: 16px;
	max-width: 60ch;
}
@media (max-width: 880px) {
	.dfdc-blog-feature { grid-template-columns: 1fr; }
}

/* Grid --------------------------------------------------------------- */
.dfdc-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 980px) { .dfdc-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dfdc-blog-grid { grid-template-columns: 1fr; } }

.dfdc-blog-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px dashed rgba(15, 21, 19, 0.18);
	padding-bottom: 18px;
	transition: border-color 160ms ease;
}
.dfdc-blog-card:hover { border-bottom-color: var(--dfdc-mint); }
.dfdc-blog-card__media { margin: 0; overflow: hidden; }
.dfdc-blog-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 240px;
	object-fit: cover;
	display: block;
	transition: transform 220ms ease;
}
.dfdc-blog-card:hover .dfdc-blog-card__media img { transform: scale(1.02); }
.dfdc-blog-card__copy { display: flex; flex-direction: column; gap: 8px; }
.dfdc-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dfdc-text-dark-muted);
}
.dfdc-blog-card__title {
	margin: 0;
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.005em;
	line-height: 1.25;
	font-size: clamp(17px, 1.2vw + 0.2rem, 21px);
	color: var(--dfdc-text-dark);
	transition: color 160ms ease;
}
.dfdc-blog-card:hover .dfdc-blog-card__title { color: var(--dfdc-mint-700); }
.dfdc-blog-card__excerpt {
	margin: 0;
	color: var(--dfdc-text-dark-muted);
	line-height: 1.5;
	font-size: 14px;
}
.dfdc-blog-card__cta {
	margin-top: auto;
	font-family: var(--dfdc-font-sans);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dfdc-mint-700);
}

/* Pagination --------------------------------------------------------- */
.dfdc-blog-pagination,
.dfdc-th-section .navigation.pagination,
.dfdc-th-section nav.pagination {
	margin-top: clamp(28px, 3vw, 44px);
	font-family: var(--dfdc-font-sans);
}
.dfdc-th-section .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.dfdc-th-section .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px dashed rgba(15, 21, 19, 0.18);
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--dfdc-text-dark);
	text-decoration: none;
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.dfdc-th-section .page-numbers.current,
.dfdc-th-section .page-numbers:hover {
	border-color: var(--dfdc-mint);
	color: var(--dfdc-mint-700);
}
.dfdc-th-section .page-numbers.dots { border-color: transparent; }

/* Single-post article + share rail ----------------------------------- */
.dfdc-blog-article {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (max-width: 720px) {
	.dfdc-blog-article { grid-template-columns: 1fr; gap: 16px; }
	.dfdc-blog-share { position: static !important; flex-direction: row !important; }
	.dfdc-blog-share ul { flex-direction: row !important; }
}
.dfdc-blog-share {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.dfdc-blog-share__label {
	font-family: var(--dfdc-font-sans);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dfdc-text-dark-muted);
	font-weight: 500;
}
.dfdc-blog-share ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.dfdc-blog-share__link {
	display: inline-flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border: 1px dashed rgba(15, 21, 19, 0.18);
	color: var(--dfdc-text-dark);
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.dfdc-blog-share__link:hover {
	border-color: var(--dfdc-mint);
	color: var(--dfdc-mint-700);
	background: rgba(45, 212, 163, 0.06);
}

.dfdc-blog-article__hero { margin: 0 0 24px; }
.dfdc-blog-article__hero img {
	width: 100%;
	max-height: 540px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.dfdc-blog-article__content {
	font-family: var(--dfdc-font-sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--dfdc-text-dark);
	max-width: 70ch;
}
.dfdc-blog-article__content > * + * { margin-top: 18px; }
.dfdc-blog-article__content h1,
.dfdc-blog-article__content h2,
.dfdc-blog-article__content h3,
.dfdc-blog-article__content h4 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.014em;
	line-height: 1.2;
	color: var(--dfdc-text-dark);
	margin-top: 36px;
	margin-bottom: 8px;
}
.dfdc-blog-article__content h1 { font-size: clamp(28px, 2.6vw + 0.3rem, 40px); }
.dfdc-blog-article__content h2 { font-size: clamp(24px, 1.8vw + 0.3rem, 30px); }
.dfdc-blog-article__content h3 { font-size: clamp(20px, 1.2vw + 0.3rem, 24px); }
.dfdc-blog-article__content a {
	color: var(--dfdc-mint-700);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.dfdc-blog-article__content a:hover { color: var(--dfdc-text-dark); }
.dfdc-blog-article__content blockquote {
	border-left: 3px solid var(--dfdc-mint);
	padding: 4px 18px;
	margin: 24px 0;
	color: var(--dfdc-text-dark);
	background: var(--dfdc-surface-2);
	font-style: normal;
	max-width: 70ch;
}
.dfdc-blog-article__content code,
.dfdc-blog-article__content pre {
	font-family: var(--dfdc-font-mono);
	font-size: 0.9em;
}
.dfdc-blog-article__content pre {
	background: var(--dfdc-bg);
	color: var(--dfdc-text);
	padding: 16px 18px;
	overflow-x: auto;
	border-left: 3px solid var(--dfdc-mint);
}
.dfdc-blog-article__content code {
	background: var(--dfdc-surface-2);
	padding: 1px 6px;
	border: 1px solid rgba(15, 21, 19, 0.08);
}
.dfdc-blog-article__content img,
.dfdc-blog-article__content figure {
	margin: 28px 0;
	max-width: 100%;
}
.dfdc-blog-article__content ul,
.dfdc-blog-article__content ol {
	padding-left: 22px;
	margin: 18px 0;
	max-width: 70ch;
}
.dfdc-blog-article__content li { margin-bottom: 6px; }

.dfdc-blog-article__terms {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px dashed rgba(15, 21, 19, 0.18);
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 70ch;
}
.dfdc-blog-article__terms-row {
	display: flex;
	gap: 12px;
	align-items: baseline;
	flex-wrap: wrap;
}
.dfdc-blog-article__terms-label {
	font-family: var(--dfdc-font-sans);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dfdc-text-dark-muted);
	min-width: 90px;
}
.dfdc-blog-article__terms ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dfdc-blog-article__terms li a {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dfdc-text-dark);
	border: 1px dashed rgba(15, 21, 19, 0.18);
	text-decoration: none;
	transition: border-color 160ms ease, color 160ms ease;
}
.dfdc-blog-article__terms li a:hover {
	border-color: var(--dfdc-mint);
	color: var(--dfdc-mint-700);
}

/* Body type override on blog pages — main.css ships
 *   body { font-family: "Poppins", sans-serif }
 * which leaks into post copy. Push the dfdc tokens here so paragraph
 * text, list items, links etc. all match the rest of the site. */
body.blog,
body.single-post,
body.archive,
body.search,
body.home {
	font-family: var(--dfdc-font-sans) !important;
}
body.blog p,
body.blog a,
body.blog li,
body.blog span,
body.single-post p,
body.single-post a,
body.single-post li,
body.single-post span,
body.archive p,
body.archive a,
body.archive li,
body.archive span,
body.search p,
body.search a,
body.search li,
body.search span {
	font-family: var(--dfdc-font-sans);
}

/* ---------- Hero banner (h1 + breadcrumb) ---------- */

.inner-banner {
	margin-top: 0 !important;            /* drop the legacy -125px hack */
	background: var(--dfdc-mint);        /* canonical mint, not #2ed2a0 */
	min-height: 360px;
	padding: 96px 0 56px;
	position: relative;
}

.inner-banner::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 1px;
	background: rgba(15, 21, 19, 0.18);
}

.inner-banner h1 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--dfdc-text-dark);
	max-width: 720px;
}

.inner-banner .heading-label {
	color: var(--dfdc-text-dark);
	opacity: 0.72;
	font-family: var(--dfdc-font-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: var(--dfdc-text-sm);
	font-weight: 500;
}

.inner-banner .breadcrumb li,
.inner-banner .breadcrumb li a {
	font-family: var(--dfdc-font-sans);
	color: var(--dfdc-text-dark);
	font-weight: 400;
}
.inner-banner .breadcrumb li {
	border-color: rgba(15, 21, 19, 0.25);
}

/* ---------- Pinned blog (top section) ---------- */

.blog-top-section {
	padding-block: clamp(48px, 6vw, 80px) 0;
}

.blog-top-section .heading-label {
	color: var(--dfdc-text-dark-muted);
	font-family: var(--dfdc-font-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: var(--dfdc-text-sm);
}

.pinned-blog {
	border-bottom-style: dashed;
	border-bottom-color: rgba(15, 21, 19, 0.18);
}

.pinned-blog h2,
.pinned-blog h3,
.pinned-blog .pinned-blogs-card h3 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--dfdc-text-dark);
}

.pinned-blog h2 {
	font-size: clamp(24px, 2vw + 0.5rem, 38px);
	line-height: 1.15;
}

.blog-date {
	font-family: var(--dfdc-font-sans);
	color: var(--dfdc-text-dark-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: var(--dfdc-text-xs);
}
.blog-date::after {
	background: var(--dfdc-text-dark-muted);
}

/* ---------- Listing cards ---------- */

.blog-card-holder {
	padding-block: clamp(48px, 6vw, 80px);
}

.blog-listing-cards img {
	border-radius: 0;
}

.blog-listing-cards h4,
.recent-list h4 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.005em;
	color: var(--dfdc-text-dark);
	line-height: 1.25;
}

/* Pagination — match the dfdc button look */
.blog-listing-cards .pagination ul a,
.blog-listing-cards .pagination .arrows a {
	border-radius: 0;
	font-family: var(--dfdc-font-sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.blog-listing-cards .pagination ul a:hover {
	background: var(--dfdc-mint);
	color: var(--dfdc-text-dark);
}
.blog-listing-cards .pagination .arrows a {
	background: var(--dfdc-bg);
}
.blog-listing-cards .pagination .arrows a:hover {
	background: var(--dfdc-mint);
	color: var(--dfdc-text-dark);
}

/* ---------- Sidebar (search + categories + recent) ---------- */

.search-section {
	background: var(--dfdc-surface-2);
}

.search-section .search-field input {
	font-family: var(--dfdc-font-sans);
	border-radius: 0;
	border-color: rgba(15, 21, 19, 0.18);
}
.search-section .search-field input:focus {
	border-color: var(--dfdc-mint);
}

.search-section .categery-list {
	background: var(--dfdc-bg);
	color: var(--dfdc-text);
}
.search-section .categery-list a {
	font-family: var(--dfdc-font-sans);
	color: rgba(233, 244, 240, 0.85);
}
.search-section .categery-list li .count {
	color: var(--dfdc-mint);
}

.recent-list {
	border-bottom-color: rgba(15, 21, 19, 0.18);
}

/* ---------- Single post body ---------- */

.blog-heading h1 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--dfdc-text-dark);
}

.blog-details .content-block {
	border-bottom-color: rgba(15, 21, 19, 0.18);
}

.blog-details .content-block h2 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	color: var(--dfdc-text-dark);
}
.blog-details .content-block h2::after {
	background: var(--dfdc-mint);
}

.blog-details .content-block p {
	font-family: var(--dfdc-font-sans);
	color: var(--dfdc-text-dark-muted);
	line-height: 1.6;
	font-size: var(--dfdc-text-base);
}

.blog-details .share-blog a {
	background: var(--dfdc-bg);
	border-radius: 0;
}
.blog-details .share-blog a:hover {
	background: var(--dfdc-mint);
	color: var(--dfdc-text-dark);
}

/* Post-body headings — cap so a stray content H1 doesn't render at 90px+
 * (the previous default came from a global Elementor kit rule). */
.blog-details .content-block h1,
.content-holder h1 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.018em;
	line-height: 1.1;
	font-size: clamp(28px, 2.6vw + 0.3rem, 44px);
	color: var(--dfdc-text-dark);
	margin: 32px 0 14px;
}
.blog-details .content-block h2,
.content-holder h2 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.012em;
	line-height: 1.15;
	font-size: clamp(22px, 1.8vw + 0.3rem, 32px);
	color: var(--dfdc-text-dark);
	margin: 28px 0 10px;
}
.blog-details .content-block h3,
.content-holder h3 {
	font-family: var(--dfdc-font-sans);
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1.2;
	font-size: clamp(18px, 1.2vw + 0.3rem, 24px);
	color: var(--dfdc-text-dark);
	margin: 22px 0 8px;
}
.blog-details .content-block h4,
.content-holder h4 {
	font-family: var(--dfdc-font-sans);
	font-weight: 500;
	font-size: 18px;
	color: var(--dfdc-text-dark);
	margin: 18px 0 6px;
}

/* ---------- "The latest from DFDC" home-page section ---------- */

.blog-section {
	font-family: var(--dfdc-font-sans);
}

.blog-section .blog-header h2 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.018em;
	font-size: clamp(28px, 2.6vw + 0.3rem, 44px);
	line-height: 1.1;
	color: var(--dfdc-text);
	margin: 0;
}

.blog-section .left-blog h3 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.01em;
	font-size: clamp(20px, 1.6vw + 0.2rem, 28px);
	line-height: 1.25;
	color: var(--dfdc-text);
}

.blog-section .right-blog-item .right-blog-content h4 {
	font-family: var(--dfdc-font-sans);
	font-weight: 400;
	letter-spacing: -0.005em;
	font-size: 18px;
	line-height: 1.3;
	color: var(--dfdc-text);
}

.blog-section .blog-meta,
.blog-section .blog-meta-sm {
	font-family: var(--dfdc-font-sans);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: rgba(233, 244, 240, 0.6);
}
.blog-section .blog-meta span,
.blog-section .blog-meta-sm span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.blog-section .btn-green,
.blog-section .explore-btn {
	font-family: var(--dfdc-font-sans);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 13px;
	border-radius: 0;
}

.blog-section .btn-green {
	background: var(--dfdc-mint);
	color: var(--dfdc-text-dark);
}
.blog-section .btn-green:hover { background: var(--dfdc-mint-300); }

.blog-section .explore-btn {
	background: var(--dfdc-surface);
	color: var(--dfdc-text-dark);
}
.blog-section .explore-btn:hover { background: var(--dfdc-mint); }

/* ---------- Mint primary buttons (blog-only ones) ---------- */

.msbtn-green {
	background: var(--dfdc-mint);
	color: var(--dfdc-text-dark);
	border-radius: 0;
	font-family: var(--dfdc-font-sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 500;
}
.msbtn-green:hover {
	background: var(--dfdc-text-dark);
	color: var(--dfdc-mint);
}

.msbtn-white {
	border-radius: 0;
	font-family: var(--dfdc-font-sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 500;
}
