/* ══════════════════════════════════════════════════════════════════
   Tips & Trends — post index, category archives and search results.

   Loaded on is_home() / is_archive() / is_search() only.

   The markup this styles (.dbt-post-list / .dbt-post-card) has existed
   in index.php and search.php since 1.0.0 with NO matching rules in
   theme.css — the archive rendered as an unstyled stack. This file is
   that missing design, built to the same language as single.php's
   article hero (Cinzel display, Petrona body, #406E8C accent).
   ══════════════════════════════════════════════════════════════════ */

#dbt-blog {
	--a: #406E8C;
	--t: #406E8C;
	--ink: #222220;
	--sub: #f7f5f1;
	--line: rgba(34, 34, 32, .12);
	--pad: clamp(24px, 4vw, 56px);
	width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	background: #fff;
	color: var(--ink);
	overflow-x: clip;                       /* clip, not hidden — hidden kills sticky */
}

#dbt-blog *   { box-sizing: border-box; }
#dbt-blog .B-w { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

/* ═══ HERO ═══════════════════════════════════════════════════════ */

#dbt-blog .B-hero {
	position: relative;
	min-height: clamp(300px, 40vh, 420px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
#dbt-blog .B-hero-bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	transform: scale(1.02);
	transition: transform 12s ease;
}
#dbt-blog .B-hero:hover .B-hero-bg { transform: scale(1.06); }
#dbt-blog .B-hero--plain { background: linear-gradient(135deg, #2a2824 0%, #3d3a34 100%); }
#dbt-blog .B-hero-ov {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(34,34,32,.88) 0%, rgba(34,34,32,.42) 55%, rgba(34,34,32,.28) 100%);
}
#dbt-blog .B-hero-bar {
	position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 2;
	background: linear-gradient(90deg, var(--a) 0%, transparent 45%);
}
#dbt-blog .B-hero-body {
	position: relative; z-index: 2; width: 100%;
	max-width: 1180px; margin: 0 auto;
	padding: 0 var(--pad) clamp(32px, 5vw, 56px);
}
#dbt-blog .B-hero h1 {
	margin: 0 0 14px;
	font-family: "Cinzel", Georgia, serif;
	font-weight: 400;
	font-size: clamp(30px, 4.4vw, 54px);
	line-height: 1.06;
	letter-spacing: .02em;
	color: #fff;
}
#dbt-blog .B-kick {
	margin: 0 0 12px;
	font: 500 11px/1 "Sora", system-ui, sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--a);
}
#dbt-blog .B-hero-lead {
	margin: 0;
	max-width: 56ch;
	font-family: "Petrona", Georgia, serif;
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
}
#dbt-blog .B-hero-count {
	display: inline-block;
	margin-top: 16px;
	font: 500 11px/1 "Sora", system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
}

/* ═══ FEATURED (latest article, reads left-to-right) ══════════════ */

#dbt-blog .B-feat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(24px, 3.5vw, 52px);
	margin: clamp(48px, 6vw, 84px) auto clamp(40px, 5vw, 64px);
}
#dbt-blog .B-feat__media { flex: 1 1 min(100%, 520px); min-width: 0; }
#dbt-blog .B-feat__copy  { flex: 1 1 min(100%, 400px); min-width: 0; }
#dbt-blog .B-feat__media a { display: block; overflow: hidden; }
#dbt-blog .B-feat__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
#dbt-blog .B-feat__media a:hover img { transform: scale(1.04); }
#dbt-blog .B-feat__copy h2 {
	margin: 0 0 14px;
	font-family: "Cinzel", Georgia, serif;
	font-weight: 400;
	font-size: clamp(24px, 2.6vw, 36px);
	line-height: 1.14;
	letter-spacing: .01em;
}
#dbt-blog .B-feat__copy h2 a { color: var(--ink); text-decoration: none; }
#dbt-blog .B-feat__copy h2 a:hover { color: var(--t); }
#dbt-blog .B-feat__copy p {
	margin: 0 0 20px;
	font-family: "Petrona", Georgia, serif;
	font-size: 16px;
	line-height: 1.7;
	color: #55524c;
}

/* ═══ SECTION RULE ════════════════════════════════════════════════ */

#dbt-blog .B-rule {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 clamp(28px, 3.5vw, 44px);
}
#dbt-blog .B-rule span {
	font: 500 11px/1 "Sora", system-ui, sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--t);
	white-space: nowrap;
}
#dbt-blog .B-rule::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

/* ═══ CARD GRID ═══════════════════════════════════════════════════ */

#dbt-blog .dbt-post-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 34px);
	margin: 0 0 clamp(48px, 6vw, 80px);
}
#dbt-blog .dbt-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
#dbt-blog .dbt-post-card__img {
	display: block;
	overflow: hidden;
	margin: 0 0 18px;
	background: var(--sub);
}
#dbt-blog .dbt-post-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
#dbt-blog .dbt-post-card__img:hover img { transform: scale(1.05); }
#dbt-blog .dbt-post-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
#dbt-blog .dbt-post-card__title {
	margin: 0 0 10px;
	font-family: "Cinzel", Georgia, serif;
	font-weight: 400;
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.24;
	letter-spacing: .01em;
}
#dbt-blog .dbt-post-card__title a { color: var(--ink); text-decoration: none; }
#dbt-blog .dbt-post-card__title a:hover { color: var(--t); }
#dbt-blog .dbt-post-card__meta {
	margin: 0 0 10px;
	font: 400 11px/1 "Sora", system-ui, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8c8880;
}
#dbt-blog .dbt-post-card__cat {
	margin: 0 0 8px;
	font: 500 10px/1 "Sora", system-ui, sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--a);
}
#dbt-blog .dbt-post-card__cat a { color: inherit; text-decoration: none; }
#dbt-blog .dbt-post-card__excerpt {
	margin: 0 0 18px;
	font-family: "Petrona", Georgia, serif;
	font-size: 15px;
	line-height: 1.65;
	color: #55524c;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#dbt-blog .dbt-post-card__more {
	margin-top: auto;
	align-self: flex-start;
	font: 500 11px/1 "Sora", system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--a);
	transition: color .25s ease, border-color .25s ease;
}
#dbt-blog .dbt-post-card__more:hover { color: var(--t); border-color: var(--t); }

/* ═══ EMPTY / PAGINATION ══════════════════════════════════════════ */

#dbt-blog .B-empty {
	margin: clamp(48px, 6vw, 90px) auto;
	text-align: center;
	font-family: "Petrona", Georgia, serif;
	font-size: 17px;
	color: #55524c;
}
#dbt-blog .dbt-pagination { margin: 0 0 clamp(56px, 7vw, 96px); }
#dbt-blog .dbt-pagination .screen-reader-text { position: absolute; left: -9999px; }
#dbt-blog .dbt-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
#dbt-blog .dbt-pagination .page-numbers {
	min-width: 40px;
	padding: 10px 12px;
	text-align: center;
	font: 500 12px/1 "Sora", system-ui, sans-serif;
	letter-spacing: .08em;
	color: var(--ink);
	text-decoration: none;
	border: 1px solid var(--line);
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
#dbt-blog .dbt-pagination .page-numbers:hover,
#dbt-blog .dbt-pagination .page-numbers.current {
	background: var(--a);
	border-color: var(--a);
	color: #fff;
}

/* ═══ RESPONSIVE ══════════════════════════════════════════════════ */

@media (max-width: 1000px) {
	#dbt-blog .dbt-post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	#dbt-blog .dbt-post-list { grid-template-columns: 1fr; }
	#dbt-blog .B-feat { margin-top: clamp(32px, 8vw, 48px); }
	#dbt-blog .B-hero { min-height: clamp(260px, 34vh, 320px); }
}
@media (prefers-reduced-motion: reduce) {
	#dbt-blog .B-hero-bg,
	#dbt-blog .B-feat__media img,
	#dbt-blog .dbt-post-card__img img { transition: none; transform: none; }
}
