/*
 Theme Name:   The Digital Front Child
 Theme URI:    https://thedigitalfront.com
 Description:  Child theme for The Digital Front
 Author:       The Digital Front
 Author URI:   https://thedigitalfront.com
 Template:     twentytwentyfive
 Version:      1.0.0
 Text Domain:  the-digital-front-child
*/

/* === Base === */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast, #111);
	background: var(--wp--preset--color--base, #fff);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

/* === Layout === */

.tdf-container {
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 50px);
}

.tdf-container--narrow {
	max-width: 760px;
}

/* === Header === */

.tdf-header {
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	position: relative;
	z-index: 200;
	background: var(--wp--preset--color--base, #fff);
}

.tdf-header__inner {
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 50px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 64px;
}

.tdf-header__site-name {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: -0.5px;
}

.tdf-header__site-name:hover {
	text-decoration: underline;
}

/* Nav */

.tdf-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
	font-size: 0.9375rem;
}

.tdf-nav > li {
	position: relative;
}

.tdf-nav > li > a {
	display: flex;
	align-items: center;
	height: 64px;
	padding: 0 1.125rem;
	text-decoration: none;
	font-weight: 400;
	color: var(--wp--preset--color--contrast, #111);
	position: relative;
	transition: color 0.15s;
}

.tdf-nav > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 1.125rem;
	right: 1.125rem;
	height: 2px;
	background: var(--wp--preset--color--contrast, #111);
	transform: scaleX(0);
	transition: transform 0.2s ease;
}

.tdf-nav > li > a:hover::after,
.tdf-nav > li.current-menu-item > a::after,
.tdf-nav > li.current-page-ancestor > a::after {
	transform: scaleX(1);
}

.tdf-nav > li.current-menu-item > a,
.tdf-nav > li.current-page-ancestor > a {
	font-weight: 500;
}

/* Dropdown */

.tdf-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	border-radius: 0.5rem;
	min-width: 190px;
	z-index: 200;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tdf-nav li:hover > .sub-menu {
	display: block;
}

.tdf-nav .sub-menu a {
	display: block;
	padding: 0.5rem 1.125rem;
	white-space: nowrap;
	text-decoration: none;
	font-size: 0.875rem;
	color: var(--wp--preset--color--contrast, #111);
	transition: background 0.12s;
}

.tdf-nav .sub-menu a:hover {
	background: var(--wp--preset--color--accent-5, #FBFAF3);
}

/* Hamburger toggle */

.tdf-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 6px;
	background: none;
	border: none;
	cursor: pointer;
}

.tdf-header__toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--contrast, #111);
	border-radius: 1px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.tdf-header__toggle.is-active .tdf-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.tdf-header__toggle.is-active .tdf-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.tdf-header__toggle.is-active .tdf-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */

@media (max-width: 768px) {
	.tdf-header__toggle {
		display: flex;
	}

	.tdf-header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--wp--preset--color--base, #fff);
		border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
		padding: 0.5rem 0;
		z-index: 200;
	}

	.tdf-header__nav.is-open {
		display: block;
	}

	.tdf-nav {
		flex-direction: column;
		gap: 0;
	}

	.tdf-nav > li > a {
		height: auto;
		padding: 0.75rem clamp(20px, 5vw, 50px);
		font-size: 1rem;
	}

	.tdf-nav > li > a::after {
		display: none;
	}

	.tdf-nav .sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0;
		display: block;
		background: var(--wp--preset--color--accent-5, #FBFAF3);
	}

	.tdf-nav .sub-menu a {
		padding: 0.625rem clamp(20px, 5vw, 50px);
		padding-left: calc(clamp(20px, 5vw, 50px) + 1rem);
		font-size: 0.9375rem;
	}
}

/* === Hero: Magazine Layout === */

.tdf-hero {
	position: relative;
	padding: clamp(24px, 4vw, 48px) 0 clamp(30px, 5vw, 60px);
}

.tdf-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--wp--preset--color--accent-3, #503AA8) 6%, transparent), transparent 60%),
		radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--wp--preset--color--accent-1, #FFEE58) 8%, transparent), transparent 50%),
		var(--wp--preset--color--accent-5, #FBFAF3);
	z-index: -1;
}

.tdf-hero__layout {
	display: grid;
	grid-template-columns: 1.4fr 0.6fr;
	gap: clamp(16px, 2vw, 24px);
	min-height: 420px;
}

@media (max-width: 900px) {
	.tdf-hero__layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}
}

/* Primary featured post — large card with overlay text */
.tdf-hero__primary {
	display: block;
	text-decoration: none;
	border-radius: 0.75rem;
	overflow: hidden;
	position: relative;
}

.tdf-hero__primary-img {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 380px;
}

.tdf-hero__primary-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tdf-hero__primary-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(20px, 3vw, 36px);
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
	color: #fff;
}

.tdf-hero__primary:hover .tdf-hero__primary-overlay {
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.tdf-hero__badge {
	display: inline-block;
	width: fit-content;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	background: var(--wp--preset--color--accent-1, #FFEE58);
	color: var(--wp--preset--color--contrast, #111);
	padding: 0.25rem 0.65rem;
	border-radius: 3px;
	margin-bottom: 0.75rem;
}

.tdf-hero__primary-title {
	font-size: clamp(1.5rem, 3vw, 2.15rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.3px;
	margin: 0 0 0.5rem;
}

.tdf-hero__primary-meta {
	font-size: 0.8125rem;
	opacity: 0.8;
	display: flex;
	gap: 0.35rem;
}

/* Placeholder — abstract pattern instead of a letter */
.tdf-hero__placeholder {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 380px;
	background:
		linear-gradient(135deg,
			var(--wp--preset--color--contrast, #111) 0%,
			color-mix(in srgb, var(--wp--preset--color--accent-3, #503AA8) 70%, #111) 50%,
			var(--wp--preset--color--contrast, #111) 100%
		);
	overflow: hidden;
}

.tdf-hero__placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 25% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
		radial-gradient(circle at 75% 70%, rgba(255,255,255,0.04) 0%, transparent 40%);
}

.tdf-hero__placeholder span {
	display: none;
}

.tdf-hero__placeholder--sm {
	min-height: 0;
	height: 100%;
	background:
		linear-gradient(135deg,
			var(--wp--preset--color--contrast, #111) 0%,
			color-mix(in srgb, var(--wp--preset--color--accent-3, #503AA8) 50%, #111) 100%
		);
}

/* Solo hero (1 article) — primary takes more space, sidebar has CTA */
.tdf-hero__layout--solo {
	grid-template-columns: 1.8fr 0.6fr;
}

.tdf-hero__layout--solo .tdf-hero__sidebar {
	justify-content: center;
}

.tdf-hero__side-cta {
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
	border-radius: 0.5rem;
	padding: clamp(16px, 2vw, 24px);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tdf-hero__side-cta-text {
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4, #686868);
	line-height: 1.5;
	margin: 0;
}

.tdf-hero__side-cta .tdf-hero__eyebrow {
	margin: 0;
}

.tdf-hero__primary-excerpt {
	font-size: 0.9375rem;
	font-weight: 300;
	margin: 0 0 0.5rem;
	opacity: 0.8;
	max-width: 500px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 900px) {
	.tdf-hero__layout--solo {
		grid-template-columns: 1fr;
	}
}

/* Eyebrow shared */
.tdf-hero__eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: var(--wp--preset--color--accent-3, #503AA8);
	margin: 0 0 0.75rem;
}

/* === Hero: Empty state === */

.tdf-hero__empty {
	text-align: center;
	padding: clamp(60px, 10vw, 120px) 0;
	max-width: 600px;
	margin: 0 auto;
}

.tdf-hero__empty-title {
	font-size: clamp(2.15rem, 5vw, 3.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.5px;
	margin: 0 0 1rem;
}

.tdf-hero__empty-sub {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0 0 2rem;
}

/* Sidebar stack */
.tdf-hero__sidebar {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 1.5vw, 16px);
}

@media (max-width: 900px) {
	.tdf-hero__sidebar {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.tdf-hero__side-card,
	.tdf-hero__side-cta {
		flex: 1 1 280px;
	}
}

/* Side cards — overlay style */
.tdf-hero__side-card {
	display: block;
	flex: 1;
	position: relative;
	text-decoration: none;
	border-radius: 0.5rem;
	overflow: hidden;
	min-height: 160px;
}

.tdf-hero__side-card:hover .tdf-hero__side-img img {
	transform: scale(1.03);
}

.tdf-hero__side-img {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.tdf-hero__side-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.tdf-hero__side-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding: 1rem;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
	color: #fff;
}

.tdf-hero__side-title {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 0.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tdf-hero__side-date {
	font-size: 0.6875rem;
	opacity: 0.7;
}

/* === Buttons === */

.tdf-btn {
	display: inline-block;
	padding: 1rem 2.25rem;
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none;
	border-radius: 0;
	transition: background 0.15s, color 0.15s;
	cursor: pointer;
}

.tdf-btn--primary {
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
}

.tdf-btn--primary:hover {
	background: color-mix(in srgb, var(--wp--preset--color--contrast, #111) 85%, transparent);
}

.tdf-btn--outline {
	background: transparent;
	color: var(--wp--preset--color--contrast, #111);
	border: 1px solid currentColor;
	padding: calc(1rem - 1px) calc(2.25rem - 1px);
}

.tdf-btn--outline:hover {
	background: color-mix(in srgb, var(--wp--preset--color--contrast, #111) 5%, transparent);
}

.tdf-btn--sm {
	padding: 0.65rem 1.5rem;
	font-size: 0.875rem;
}

/* === Sections === */

.tdf-section {
	padding: clamp(30px, 7vw, 70px) 0 clamp(50px, 7vw, 90px);
}

.tdf-section__heading {
	font-size: clamp(1.75rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.125;
	letter-spacing: -0.1px;
	margin: 0;
}

/* === Card === */

.tdf-card__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0.5rem;
}

.tdf-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background:
		linear-gradient(135deg,
			var(--wp--preset--color--accent-5, #FBFAF3) 0%,
			color-mix(in srgb, var(--wp--preset--color--accent-3, #503AA8) 8%, var(--wp--preset--color--accent-5, #FBFAF3)) 100%
		);
	border-radius: 0.5rem;
	text-decoration: none;
}

.tdf-card__image--placeholder span {
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-3, #503AA8);
	opacity: 0.25;
}

.tdf-card__body {
	padding-top: 1rem;
}

.tdf-card__date {
	display: block;
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4, #686868);
	margin-bottom: 0.5rem;
}

.tdf-card__title {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 0.5rem;
}

.tdf-card__title a {
	text-decoration: none;
}

.tdf-card__title a:hover {
	text-decoration: underline;
}

.tdf-card__excerpt {
	font-size: 1rem;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0 0 0.5rem;
}

.tdf-card__meta {
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4, #686868);
}

/* === What We Cover (Topics) === */

.tdf-topics {
	padding: clamp(40px, 7vw, 80px) 0;
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.tdf-topics__header {
	margin-bottom: clamp(24px, 4vw, 40px);
}

.tdf-topics__sub {
	font-size: 1rem;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0.5rem 0 0;
}

.tdf-topics__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 900px) {
	.tdf-topics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.tdf-topics__grid {
		grid-template-columns: 1fr;
	}
}

.tdf-topic {
	padding: clamp(20px, 2.5vw, 28px);
	border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	border-radius: 0.75rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tdf-topic:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-3, #503AA8) 25%, transparent);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tdf-topic__icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	border-radius: 12px;
	margin-bottom: 1rem;
	color: var(--wp--preset--color--accent-3, #503AA8);
}

.tdf-topic__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.375rem;
}

.tdf-topic__desc {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent-4, #686868);
	line-height: 1.5;
	margin: 0;
}

/* === From the Blog (Recent Posts list) === */

.tdf-recent {
	padding: clamp(40px, 7vw, 80px) 0;
	background: var(--wp--preset--color--accent-5, #FBFAF3);
}

.tdf-recent .tdf-section__heading {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.tdf-recent__list {
	display: flex;
	flex-direction: column;
}

.tdf-recent__item {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.125rem 0;
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	text-decoration: none;
	transition: background 0.12s;
}

.tdf-recent__item:first-child {
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.tdf-recent__item:hover {
	background: rgba(0, 0, 0, 0.015);
}

.tdf-recent__num {
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--accent-3, #503AA8);
	opacity: 0.5;
	flex-shrink: 0;
	width: 1.75rem;
}

.tdf-recent__body {
	flex: 1;
	min-width: 0;
}

.tdf-recent__title {
	font-size: 1.0625rem;
	font-weight: 500;
	margin: 0 0 0.2rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tdf-recent__date {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent-4, #686868);
}

.tdf-recent__arrow {
	flex-shrink: 0;
	font-size: 1rem;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s, transform 0.2s;
}

.tdf-recent__item:hover .tdf-recent__arrow {
	opacity: 0.5;
	transform: translateX(0);
}

/* === Newsletter CTA === */

.tdf-newsletter {
	padding: clamp(40px, 7vw, 80px) 0;
}

.tdf-newsletter__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(30px, 5vw, 60px);
	align-items: center;
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
	border-radius: 1rem;
	padding: clamp(32px, 5vw, 56px);
}

@media (max-width: 768px) {
	.tdf-newsletter__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

.tdf-newsletter__title {
	font-size: clamp(1.75rem, 3vw, 2.15rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.3px;
	margin: 0 0 0.75rem;
}

.tdf-newsletter__desc {
	font-size: 0.9375rem;
	opacity: 0.65;
	margin: 0;
	line-height: 1.55;
}

.tdf-newsletter__field {
	display: flex;
	gap: 0.5rem;
}

@media (max-width: 480px) {
	.tdf-newsletter__field {
		flex-direction: column;
	}
}

.tdf-newsletter__input {
	flex: 1;
	padding: 0.7rem 1rem;
	font-size: 0.9375rem;
	font-family: inherit;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	outline: none;
	transition: border-color 0.15s;
}

.tdf-newsletter__input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.tdf-newsletter__input:focus {
	border-color: rgba(255, 255, 255, 0.4);
}

.tdf-newsletter__form .tdf-btn--primary {
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);
	flex-shrink: 0;
}

.tdf-newsletter__form .tdf-btn--primary:hover {
	background: color-mix(in srgb, var(--wp--preset--color--base, #fff) 85%, transparent);
}

.tdf-newsletter__note {
	font-size: 0.75rem;
	opacity: 0.4;
	margin: 0.625rem 0 0;
}

/* === Stats === */

.tdf-stats {
	padding: clamp(30px, 5vw, 60px) 0;
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.tdf-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 3vw, 30px);
	text-align: center;
}

@media (max-width: 600px) {
	.tdf-stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tdf-stat {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.tdf-stat__number {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.5px;
	color: var(--wp--preset--color--contrast, #111);
}

.tdf-stat__label {
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--wp--preset--color--accent-4, #686868);
}

/* === Quick Links === */

.tdf-quicklinks {
	padding: clamp(40px, 7vw, 80px) 0;
	background: var(--wp--preset--color--accent-5, #FBFAF3);
}

.tdf-quicklinks__heading {
	margin-bottom: clamp(20px, 3vw, 32px) !important;
}

.tdf-quicklinks__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2vw, 20px);
}

@media (max-width: 700px) {
	.tdf-quicklinks__grid {
		grid-template-columns: 1fr;
	}
}

.tdf-quicklink {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 32px);
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
	border-radius: 0.75rem;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.tdf-quicklink:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tdf-quicklink__icon-wrap {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	margin-bottom: 1rem;
	font-size: 1.125rem;
}

.tdf-quicklink__icon {
	line-height: 1;
}

.tdf-quicklink__title {
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0 0 0.375rem;
}

.tdf-quicklink__desc {
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0 0 1rem;
	line-height: 1.5;
	flex: 1;
}

.tdf-quicklink__arrow {
	font-size: 1.125rem;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s, transform 0.2s;
}

.tdf-quicklink:hover .tdf-quicklink__arrow {
	opacity: 1;
	transform: translateX(0);
}

/* === Articles Section (front page) === */

.tdf-articles-section {
	padding: clamp(40px, 7vw, 80px) 0;
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.tdf-articles-section .tdf-section__heading {
	margin-bottom: clamp(20px, 3vw, 32px);
}

/* === Opinions Section (front page) === */

.tdf-opinions {
	padding: clamp(40px, 7vw, 80px) 0;
	background: var(--wp--preset--color--accent-5, #FBFAF3);
}

.tdf-opinions .tdf-section__heading {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.tdf-opinions__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

@media (max-width: 768px) {
	.tdf-opinions__grid {
		grid-template-columns: 1fr;
	}
}

.tdf-opinions__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
	transition: box-shadow 0.2s, transform 0.2s;
}

.tdf-opinions__card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.tdf-opinions__img {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.tdf-opinions__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tdf-opinions__body {
	padding: 1.25rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tdf-opinions__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.tdf-opinions__quote {
	margin: 0;
	font-size: 0.9375rem;
	font-style: italic;
	color: var(--wp--preset--color--accent-4, #686868);
	line-height: 1.5;
}

.tdf-opinions__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--accent-4, #686868);
	line-height: 1.5;
}

.tdf-opinions__meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent-4, #686868);
}

.tdf-opinions__author {
	font-weight: 500;
}

.tdf-opinions__related {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent-3, #503AA8);
	opacity: 0.75;
}

/* === Category + Date Filter === */

.tdf-filter__controls {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: clamp(20px, 3vw, 28px);
	padding-bottom: clamp(16px, 2vw, 24px);
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.tdf-filter__tabs {
	display: flex;
	gap: 0.375rem;
	flex-wrap: wrap;
}

.tdf-filter__tab {
	display: inline-block;
	padding: 0.4rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	border-radius: 100px;
	color: var(--wp--preset--color--contrast, #111);
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tdf-filter__tab:hover {
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	border-color: color-mix(in srgb, currentColor 18%, transparent);
}

.tdf-filter__tab.is-active {
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
	border-color: var(--wp--preset--color--contrast, #111);
}

.tdf-filter__dates {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.tdf-filter__date-label {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--wp--preset--color--accent-4, #686868);
}

.tdf-filter__date-input {
	padding: 0.4rem 0.5rem;
	font-size: 0.8125rem;
	font-family: inherit;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 0.25rem;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);
	width: 130px;
}

.tdf-filter__date-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-3, #503AA8);
}

.tdf-filter__dates .tdf-btn {
	padding: 0.4rem 0.875rem;
	font-size: 0.8125rem;
}

.tdf-filter__clear {
	font-size: 0.75rem;
	color: var(--wp--preset--color--accent-4, #686868);
	text-decoration: none;
	padding-bottom: 0.4rem;
}

.tdf-filter__clear:hover {
	color: var(--wp--preset--color--contrast, #111);
	text-decoration: underline;
}

@media (max-width: 640px) {
	.tdf-filter__controls {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* === Pagination (WP-PageNavi + fallback) === */

.tdf-pagination {
	margin-top: clamp(30px, 5vw, 48px);
	display: flex;
	justify-content: center;
}

.tdf-pagination .wp-pagenavi {
	display: flex;
	gap: 0.375rem;
	align-items: center;
}

.tdf-pagination .wp-pagenavi a,
.tdf-pagination .wp-pagenavi span,
.tdf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 0.375rem;
	color: var(--wp--preset--color--contrast, #111);
	background: transparent;
	transition: background 0.15s, border-color 0.15s;
}

.tdf-pagination .wp-pagenavi a:hover,
.tdf-pagination .page-numbers:hover {
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	border-color: color-mix(in srgb, currentColor 25%, transparent);
}

.tdf-pagination .wp-pagenavi .current,
.tdf-pagination .page-numbers.current {
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
	border-color: var(--wp--preset--color--contrast, #111);
}

.tdf-pagination .wp-pagenavi .pages {
	border: none;
	font-size: 0.75rem;
	color: var(--wp--preset--color--accent-4, #686868);
	min-width: auto;
}

/* === Archive === */

.tdf-archive {
	padding: clamp(30px, 5vw, 60px) 0 clamp(50px, 7vw, 90px);
}

.tdf-archive__header {
	margin-bottom: clamp(24px, 4vw, 40px);
}

.tdf-archive__title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 400;
	line-height: 1.125;
	letter-spacing: -0.4px;
	margin: 0 0 0.5rem;
}

.tdf-archive__desc {
	font-size: 1rem;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0;
}

/* === Grid (shared) === */

.tdf-grid {
	display: grid;
	gap: clamp(24px, 3vw, 30px);
}

.tdf-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
	.tdf-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.tdf-grid--3 {
		grid-template-columns: 1fr;
	}
}

/* === Empty State === */

.tdf-empty {
	text-align: center;
	padding: clamp(50px, 7vw, 90px) 0;
	color: var(--wp--preset--color--accent-4, #686868);
}

/* === Single Post / Article === */

.tdf-single {
	padding-bottom: clamp(30px, 5vw, 60px);
}

.tdf-single .tdf-breadcrumbs {
	text-align: center;
	padding-top: clamp(16px, 2vw, 24px);
	margin-bottom: 0;
}

/* Header */
.tdf-single__header {
	padding: clamp(16px, 2.5vw, 28px) 0 clamp(20px, 3vw, 32px);
	text-align: center;
}

.tdf-single__meta-top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent-4, #686868);
}

.tdf-single__type {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	background: var(--wp--preset--color--accent-1, #FFEE58);
	color: var(--wp--preset--color--contrast, #111);
	padding: 0.2rem 0.55rem;
	border-radius: 3px;
}

.tdf-single__reading-time::before {
	content: '\00B7';
	margin-right: 0.75rem;
}

.tdf-single__title {
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.5px;
	margin: 0 0 1rem;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.tdf-single__excerpt {
	font-size: 1.125rem;
	color: var(--wp--preset--color--accent-4, #686868);
	line-height: 1.55;
	margin: 0;
	font-weight: 300;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero image — breaks out of narrow container */
.tdf-single__hero {
	margin: 0 auto clamp(24px, 4vw, 36px);
	max-width: 960px;
	padding: 0 clamp(20px, 5vw, 50px);
}

.tdf-single__hero-wrap {
	border-radius: 0.75rem;
	overflow: hidden;
}

.tdf-single__hero-wrap img {
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	display: block;
}

/* Author bar */
.tdf-single__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 0;
	margin-bottom: clamp(20px, 3vw, 32px);
	border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.tdf-single__author img {
	border-radius: 50%;
	flex-shrink: 0;
}

.tdf-single__author-info {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tdf-single__author-name {
	font-size: 0.9375rem;
	font-weight: 500;
}

.tdf-single__author-role {
	font-size: 0.75rem;
	color: var(--wp--preset--color--accent-4, #686868);
}

/* Video embed */
.tdf-single__video {
	margin: clamp(24px, 4vw, 40px) 0;
	border-radius: 0.5rem;
	overflow: hidden;
}

.tdf-single__video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
	display: block;
}

/* Content */
.tdf-single__content {
	padding: clamp(24px, 4vw, 40px) 0;
	font-size: clamp(1rem, 1.5vw, 1.0625rem);
	line-height: 1.7;
}

.tdf-single__content > *:first-child {
	margin-top: 0;
}

.tdf-single__content h2 {
	font-size: 1.5rem;
	font-weight: 400;
	margin: 2.5rem 0 1rem;
}

.tdf-single__content h3 {
	font-size: 1.25rem;
	font-weight: 500;
	margin: 2rem 0 0.75rem;
}

.tdf-single__content p {
	margin: 0 0 1.25rem;
}

.tdf-single__content blockquote {
	border-left: 2px solid var(--wp--preset--color--contrast, #111);
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	font-size: 1.125rem;
	font-weight: 300;
}

.tdf-single__content img {
	border-radius: 0.5rem;
	margin: 2rem 0;
}

.tdf-single__content a {
	color: var(--wp--preset--color--accent-3, #503AA8);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tdf-single__content a:hover {
	text-decoration: none;
}

.tdf-single__content pre,
.tdf-single__content code {
	font-family: 'Fira Code', monospace;
	font-size: 0.875em;
}

.tdf-single__content pre {
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	padding: 1.25rem 1.5rem;
	border-radius: 0.5rem;
	overflow-x: auto;
	margin: 1.5rem 0;
}

/* Source link */
/* Opinions list (on article singles) */

.tdf-single__opinions {
	margin-bottom: 2rem;
}

.tdf-single__opinions-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--wp--preset--color--accent-4, #686868);
	margin-bottom: 0.75rem;
}

.tdf-single__opinions-list {
	display: flex;
	flex-direction: column;
}

.tdf-single__opinions-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
	border-radius: 0.5rem;
	text-decoration: none;
	color: inherit;
	margin-bottom: 0.625rem;
	transition: box-shadow 0.2s, transform 0.2s;
}

.tdf-single__opinions-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.tdf-single__opinions-body {
	flex: 1;
	min-width: 0;
}

.tdf-single__opinions-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.tdf-single__opinions-quote {
	font-size: 0.875rem;
	font-style: italic;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0 0 0.35rem;
	line-height: 1.5;
}

.tdf-single__opinions-meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent-4, #686868);
}

.tdf-single__opinions-arrow {
	flex-shrink: 0;
	font-size: 1rem;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s, transform 0.2s;
}

.tdf-single__opinions-item:hover .tdf-single__opinions-arrow {
	opacity: 0.5;
	transform: translateX(0);
}

/* Related Article (on opinion singles) */

.tdf-single__related {
	margin-bottom: 2rem;
}

.tdf-single__related-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--wp--preset--color--accent-4, #686868);
	margin-bottom: 0.75rem;
}

.tdf-single__related-card {
	display: flex;
	gap: 1.25rem;
	padding: 1.25rem;
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	border-radius: 0.625rem;
	text-decoration: none;
	color: inherit;
	border: 1px solid color-mix(in srgb, currentColor 6%, transparent);
	transition: box-shadow 0.2s, transform 0.2s;
}

.tdf-single__related-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.tdf-single__related-img {
	flex-shrink: 0;
	width: 120px;
	border-radius: 0.375rem;
	overflow: hidden;
}

.tdf-single__related-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tdf-single__related-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.tdf-single__related-title {
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.tdf-single__related-excerpt {
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0;
	line-height: 1.5;
}

.tdf-single__related-date {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--accent-4, #686868);
}

@media (max-width: 480px) {
	.tdf-single__related-card {
		flex-direction: column;
	}

	.tdf-single__related-img {
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}

.tdf-single__source {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.tdf-single__source-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--wp--preset--color--accent-4, #686868);
}

.tdf-single__source a {
	color: var(--wp--preset--color--accent-3, #503AA8);
	text-decoration: none;
}

.tdf-single__source a:hover {
	text-decoration: underline;
}

/* Tags */
.tdf-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-bottom: 1.5rem;
}

.tdf-single__tag {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--wp--preset--color--accent-3, #503AA8);
	text-decoration: none;
	padding: 0.25rem 0.625rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-3, #503AA8) 20%, transparent);
	border-radius: 100px;
	transition: background 0.12s;
}

.tdf-single__tag:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent-3, #503AA8) 8%, transparent);
}

/* Share buttons (in author bar) */
.tdf-single__share {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin-left: auto;
}

.tdf-single__share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 0.5rem;
	border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	border-radius: 100px;
	background: transparent;
	color: var(--wp--preset--color--contrast, #111);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
	font-size: 0.75rem;
	font-family: inherit;
	font-weight: 500;
}

.tdf-single__share-btn:hover {
	background: var(--wp--preset--color--accent-5, #FBFAF3);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
}

/* Post navigation */
.tdf-single__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 70px);
}

@media (max-width: 560px) {
	.tdf-single__nav {
		grid-template-columns: 1fr;
	}
}

.tdf-single__nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1rem 1.25rem;
	border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
	border-radius: 0.5rem;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tdf-single__nav-link:hover {
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tdf-single__nav-link--next {
	text-align: right;
}

.tdf-single__nav-label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--wp--preset--color--accent-4, #686868);
}

.tdf-single__nav-title {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* === Page Template === */

.tdf-page {
	padding: clamp(30px, 7vw, 70px) 0 clamp(50px, 7vw, 90px);
}

.tdf-page__title {
	font-size: clamp(2.15rem, 5vw, 3rem);
	font-weight: 400;
	line-height: 1.125;
	letter-spacing: -0.5px;
	margin: 0 0 clamp(30px, 5vw, 50px);
}

.tdf-page__content > *:first-child {
	margin-top: 0;
}

/* === Breadcrumbs === */

.tdf-breadcrumbs {
	margin-bottom: clamp(20px, 3vw, 30px);
}

.tdf-breadcrumbs p {
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4, #686868);
	margin: 0;
}

.tdf-breadcrumbs a {
	text-decoration: none;
}

.tdf-breadcrumbs a:hover {
	text-decoration: underline;
}

/* === Footer === */

.tdf-footer {
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	margin-top: 0;
}

.tdf-footer__inner {
	max-width: 1340px;
	margin: 0 auto;
	padding: 2rem clamp(20px, 5vw, 50px);
}

.tdf-footer p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4, #686868);
}
