/* Journal listing (page-templates/template-journal.php) and Journal single
   post (single.php). Shared hero/drawer shell lives in assets/css/layout.css
   (.page-hero, .page-hero-bg, .page-hero-tint, .page-hero-inner,
   .page-hero-title, .hero-line-wrap, .page-drawer, .section-eyebrow) — this
   file only holds journal-specific rules. Ported from project/journal.dc.html
   and project/journal-post.dc.html.

   `.container-wide` is duplicated verbatim from product.css/service.css/
   industry.css — those files are never enqueued alongside this one (see
   inc/enqueue.php), so there is no cascade conflict to dedupe. */

.container-wide {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 clamp(22px, 5vw, 96px);
}

/* ===================================================================
   JOURNAL LISTING (page-templates/template-journal.php)
   =================================================================== */

.journal-hero {
	height: 100vh;
}
.journal-drawer {
	margin-top: 100vh;
	background: var(--color-cream);
}
.journal-hero-scrim {
	background: linear-gradient(0deg, rgba(20, 15, 9, .55) 0%, rgba(20, 15, 9, .12) 48%, rgba(20, 15, 9, .3) 100%);
}
.journal-hero .page-hero-bg {
	filter: saturate(.74) contrast(1.04) brightness(.74);
}
.journal-hero-title {
	font-size: clamp(2.8rem, 7vw, 7.6rem);
}

.journal-list-section {
	background: var(--color-cream);
	color: var(--color-text);
	padding: clamp(72px, 14vh, 200px) 0 clamp(60px, 11vh, 170px);
}
.journal-list-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 24px;
	padding-bottom: clamp(26px, 4vh, 44px);
	border-bottom: 1px solid rgba(55, 45, 29, .18);
	margin-bottom: clamp(40px, 6vh, 72px);
}
.product-archive-head-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.product-archive-head-col h2 {
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: .04em;
	margin: 0;
	font-size: clamp(1.5rem, 3.4vw, 3.4rem);
	line-height: 1;
	color: var(--color-text);
}
.product-archive-empty {
	font-family: var(--font-ui);
	color: rgba(55, 45, 29, .6);
}

.journal-tabs {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 32px);
	flex-wrap: wrap;
}
.journal-tab {
	background: none;
	border: none;
	text-decoration: none;
	cursor: pointer;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(55, 45, 29, .5);
	padding: 0 0 6px;
	border-bottom: 1px solid transparent;
	transition: color .35s ease, border-color .35s ease;
}
.journal-tab.is-active {
	color: var(--color-text);
	border-bottom-color: var(--color-brand-green);
}
@media (hover: hover) and (pointer: fine) {
	.journal-tab:not(.is-active):hover {
		color: var(--color-text);
	}
}

/* CARD GRID (template-parts/cards/card-journal.php) — shared by the listing
   and the single post's "More from the Journal" related grid. */
.jr-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(32px, 3vw, 56px) clamp(28px, 2.6vw, 48px);
}
.jr-card {
	text-decoration: none;
	color: var(--color-text);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.jr-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-text);
	border-radius: 2px;
}
.jr-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.85) contrast(1.04) brightness(.95);
	transition: scale .55s cubic-bezier(.22, 1, .36, 1);
}
.jr-img-tint {
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, rgba(10, 73, 31, .16) 0%, rgba(55, 45, 29, .26) 100%);
	mix-blend-mode: multiply;
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.jr-card:hover .jr-img { scale: 1.04; }
}
.jr-card-meta {
	display: flex;
	align-items: center;
	gap: 11px;
}
.jr-card-cat {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--color-brand-green);
}
.jr-card-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(55, 45, 29, .4);
	display: block;
}
.jr-card-date {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(55, 45, 29, .5);
}
.jr-card-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: .02em;
	font-size: clamp(1.4rem, 1.9vw, 2rem);
	line-height: 1.12;
	margin: 0;
}
.jr-card-excerpt {
	font-family: var(--font-ui);
	font-size: clamp(.92rem, 1vw, 1.02rem);
	line-height: 1.68;
	color: rgba(55, 45, 29, .66);
	margin: 0;
}
.jr-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: 2px;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding-bottom: 7px;
	width: fit-content;
}

/* PAGINATION — real WP paginate_links() output (.page-numbers markup),
   styled as a plain inline nav; the source's #jr-pagination div was an
   empty JS-populated placeholder with no shipped styling to port. */
.journal-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: clamp(44px, 7vh, 84px);
}
.journal-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	text-decoration: none;
	font-family: var(--font-ui);
	font-size: .86rem;
	color: rgba(55, 45, 29, .6);
	border: 1px solid rgba(55, 45, 29, .18);
	border-radius: 999px;
	transition: color .35s ease, border-color .35s ease, background-color .35s ease;
}
.journal-pagination .page-numbers.current {
	color: var(--color-cream);
	background: var(--color-brand-green);
	border-color: var(--color-brand-green);
}
.journal-pagination .page-numbers.dots {
	border: none;
}
@media (hover: hover) and (pointer: fine) {
	.journal-pagination a.page-numbers:hover {
		color: var(--color-text);
		border-color: var(--color-text);
	}
}

/* ===================================================================
   JOURNAL SINGLE POST (single.php)
   =================================================================== */

.journal-post-hero {
	height: 74vh;
	min-height: 480px;
}
.journal-post-drawer {
	margin-top: 74vh;
	background: var(--color-cream);
}
.journal-post-hero-scrim {
	background: linear-gradient(0deg, rgba(20, 15, 9, .66) 0%, rgba(20, 15, 9, .18) 50%, rgba(20, 15, 9, .38) 100%);
}
.journal-post-hero .page-hero-bg {
	filter: saturate(.74) contrast(1.04) brightness(.66);
}
.journal-post-hero-inner {
	max-width: 1100px;
}
.journal-post-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: clamp(22px, 3.2vh, 38px);
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(247, 244, 239, .82);
}
.journal-post-meta-cat {
	color: var(--color-sage);
	font-weight: 600;
}
.journal-post-meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(247, 244, 239, .5);
	display: block;
}
.journal-post-hero-title {
	font-size: clamp(2.2rem, 5.2vw, 5.4rem);
	line-height: 1;
	max-width: 18ch;
}

.journal-post-article {
	background: var(--color-cream);
	color: var(--color-text);
	padding: clamp(60px, 12vh, 170px) 0 clamp(48px, 8vh, 110px);
}
.journal-post-article-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 clamp(22px, 5vw, 40px);
	display: flex;
	flex-direction: column;
	gap: clamp(22px, 3vh, 30px);
}
.journal-post-back {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: rgba(55, 45, 29, .6);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding-bottom: 7px;
	margin-bottom: clamp(6px, 1vh, 14px);
	width: fit-content;
	transition: color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.journal-post-back:hover { color: var(--color-text); }
}
.journal-post-back-arrow {
	display: inline-flex;
	align-items: center;
	transform: rotate(180deg);
}

/* Article body (the_content()) — styles core block output to match the
   source's WYSIWYG-safe typography (lede paragraph, body copy, h2
   subheadings, pull-quote, inline figure+caption). */
.journal-post-body {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 3vh, 28px);
}
.journal-post-body > p:first-of-type,
.journal-post-body > *:first-child.wp-block-paragraph {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(1.4rem, 2.4vw, 2.1rem);
	line-height: 1.35;
	letter-spacing: .01em;
	color: var(--color-text);
}
.journal-post-body p {
	font-family: var(--font-ui);
	font-size: clamp(1rem, 1.1vw, 1.15rem);
	line-height: 1.85;
	color: rgba(55, 45, 29, .82);
	margin: 0;
}
.journal-post-body h2 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: .02em;
	font-size: clamp(1.5rem, 2.6vw, 2.3rem);
	line-height: 1.1;
	margin: clamp(14px, 2.5vh, 28px) 0 0;
	color: var(--color-text);
}
.journal-post-body blockquote {
	margin: clamp(16px, 3vh, 32px) 0;
	padding: clamp(20px, 3vh, 30px) 0 clamp(20px, 3vh, 30px) clamp(22px, 3vw, 34px);
	border-left: 2px solid var(--color-brand-green);
}
.journal-post-body blockquote p {
	font-family: var(--font-display);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.5rem, 2.8vw, 2.4rem);
	line-height: 1.3;
	color: var(--color-text);
	margin: 0;
}
.journal-post-body figure {
	margin: clamp(16px, 3vh, 32px) 0;
}
.journal-post-body figure img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 2px;
	filter: saturate(.85) contrast(1.04) brightness(.95);
	display: block;
}
.journal-post-body figcaption {
	font-family: var(--font-ui);
	font-size: .82rem;
	letter-spacing: .02em;
	color: rgba(55, 45, 29, .55);
	margin-top: 12px;
	text-align: center;
}

.journal-post-share {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: clamp(20px, 3.5vh, 40px);
	padding-top: clamp(20px, 3vh, 30px);
	border-top: 1px solid rgba(55, 45, 29, .18);
}
.journal-post-share-label {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(55, 45, 29, .5);
}
.journal-post-share-links {
	display: flex;
	gap: 20px;
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.journal-post-share-links a {
	text-decoration: none;
	color: rgba(55, 45, 29, .6);
	transition: color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.journal-post-share-links a:hover { color: var(--color-brand-green); }
}

.journal-post-related {
	position: relative;
	background: var(--color-cream-2);
	color: var(--color-text);
	padding: clamp(56px, 10vh, 160px) 0;
}
.journal-post-related-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: clamp(36px, 5vh, 64px);
}
.journal-post-related-head h2 {
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: .04em;
	margin: 0;
	font-size: clamp(1.5rem, 3.2vw, 3rem);
	line-height: 1;
	color: var(--color-text);
}
.journal-post-related-all {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--color-text);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	padding-bottom: 7px;
	white-space: nowrap;
}

@media (max-width: 879px) {
	.jr-grid {
		grid-template-columns: 1fr;
	}
	.journal-list-section,
	.journal-post-article,
	.journal-post-related {
		padding: 48px 0;
	}
}

@media (max-width: 1099px) and (min-width: 880px) {
	.jr-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
