/**
 * MEMOT theme styles — news.
 *
 * Newsroom index and single article template.
 * Split out of theme.css so it loads only on the template(s) that need it —
 * see memot_enqueue_assets() in functions.php. Reuses the same
 * theme.json custom properties and memot-* class hooks as theme.css.
 */

/* -------------------------------------------------------------------------- *
 * Newsroom and article pages
 * -------------------------------------------------------------------------- */

.memot-news-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--wp--preset--color--brand-bright) 20%, transparent) 0 12rem, transparent 12.1rem),
		radial-gradient(circle at 5% 92%, color-mix(in srgb, var(--wp--preset--color--harvest) 16%, transparent) 0 9rem, transparent 9.1rem),
		var(--wp--preset--color--sand);
}

.memot-news-hero::before,
.memot-news-hero::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
}

.memot-news-hero::before {
	width: 24rem;
	height: 24rem;
	right: -8rem;
	top: -10rem;
	background: color-mix(in srgb, var(--wp--preset--color--brand-bright) 18%, transparent);
}

.memot-news-hero::after {
	width: 18rem;
	height: 18rem;
	left: -7rem;
	bottom: -9rem;
	background: color-mix(in srgb, var(--wp--preset--color--harvest) 18%, transparent);
}

.memot-news-hero__inner {
	position: relative;
	z-index: 1;
}

.memot-news-hero__panel {
	position: relative;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 76%, var(--wp--preset--color--paper));
	border-radius: clamp(1.5rem, 4vw, 2.5rem);
	background: color-mix(in srgb, var(--wp--preset--color--paper) 92%, transparent);
	box-shadow: var(--memot-shadow-lg);
	padding: clamp(var(--wp--preset--spacing--50), 5vw, var(--wp--preset--spacing--80));
}

.memot-news-hero__topline {
	margin-bottom: var(--wp--preset--spacing--70);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.memot-news-hero__topline p {
	margin: 0;
}

.memot-news-hero__brand {
	color: var(--wp--preset--color--brand);
}

.memot-news-hero__copy {
	position: relative;
	z-index: 2;
}

.memot-news-hero__eyebrow {
	margin-bottom: var(--wp--preset--spacing--40);
}

.memot-news-hero h1 {
	max-width: 11ch;
}

.memot-news-hero__lead {
	max-width: 35rem;
	color: var(--wp--preset--color--slate);
}

.memot-news-hero__actions {
	margin-top: var(--wp--preset--spacing--50);
}

.memot-news-hero__actions :where(.wp-block-button__link) {
	min-width: 9rem;
}

.memot-news-hero__stage {
	position: relative;
	min-height: clamp(24rem, 42vw, 35rem);
	border-radius: clamp(1.75rem, 5vw, 4rem);
	background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--brand) 88%, var(--wp--preset--color--ink)) 0%, color-mix(in srgb, var(--wp--preset--color--brand-bright) 76%, var(--wp--preset--color--paper)) 100%);
	box-shadow: var(--memot-shadow-md);
	isolation: isolate;
	overflow: hidden;
}

.memot-news-hero__stage::before {
	content: "";
	position: absolute;
	inset: 12% -18% auto 14%;
	height: 36%;
	border-radius: 999px;
	background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--paper) 70%, transparent) 0 0.45rem, transparent 0.45rem 1rem);
	opacity: 0.45;
	transform: rotate(-12deg);
}

.memot-news-hero__stage::after {
	content: "";
	position: absolute;
	inset: auto 8% 10% auto;
	width: 42%;
	aspect-ratio: 1;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 70%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--paper) 16%, transparent);
	box-shadow: inset 0 0 2.5rem color-mix(in srgb, var(--wp--preset--color--paper) 26%, transparent);
}

.memot-news-hero__orb {
	position: absolute;
	border-radius: 999px;
	z-index: 1;
}

.memot-news-hero__orb--one {
	width: 9rem;
	height: 9rem;
	left: 9%;
	bottom: 15%;
	background: color-mix(in srgb, var(--wp--preset--color--harvest) 72%, var(--wp--preset--color--paper));
	box-shadow: 0 1.5rem 3rem color-mix(in srgb, var(--wp--preset--color--ink) 18%, transparent);
}

.memot-news-hero__orb--two {
	width: 5rem;
	height: 5rem;
	right: 18%;
	top: 14%;
	background: color-mix(in srgb, var(--wp--preset--color--paper) 82%, var(--wp--preset--color--brand-bright));
}

.memot-news-hero__photo-card {
	position: absolute;
	z-index: 2;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 58%, transparent);
	border-radius: var(--memot-radius-lg);
	background: color-mix(in srgb, var(--wp--preset--color--paper) 74%, transparent);
	box-shadow: var(--memot-shadow-md);
	margin: 0;
	overflow: hidden;
}

.memot-news-hero__photo-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.memot-news-hero__photo-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--wp--preset--color--ink) 20%, transparent));
	pointer-events: none;
}

.memot-news-hero__photo-card--plantation {
	right: 8%;
	bottom: 12%;
	width: min(70%, 26rem);
	height: clamp(13rem, 24vw, 19rem);
}

.memot-news-hero__photo-card--farm {
	left: 5%;
	top: 8%;
	width: min(48%, 17rem);
	height: clamp(9rem, 16vw, 13rem);
}

.memot-news-hero__photo-card--field {
	left: 12%;
	bottom: 9%;
	width: min(50%, 18rem);
	height: clamp(8rem, 14vw, 11rem);
}

.memot-news-hero__stats {
	margin-top: var(--wp--preset--spacing--70);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
}

.memot-news-hero__stat {
	min-width: 9rem;
}

.memot-news-hero__stat :where(p) {
	margin: 0;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}

.memot-news-hero__stat-number {
	color: var(--wp--preset--color--ink) !important;
	font-size: var(--wp--preset--font-size--x-large) !important;
	font-weight: 800;
}

.memot-news-featured__layout {
	align-items: stretch !important;
}

.memot-news-featured__layout.wp-block-columns > .wp-block-column {
	min-width: 0;
}

.memot-insight :where(.wp-block-post-featured-image, figure) {
	margin: 0;
	overflow: hidden;
}

.memot-insight :where(a, img) {
	display: block;
}

.memot-insight:not(.memot-insight--featured, .memot-insight--compact) :where(.wp-block-post-featured-image img) {
	aspect-ratio: 16 / 10;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.memot-insight :where(.wp-block-post-title, .wp-block-post-title a) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.memot-insight :where(.wp-block-post-title a:hover, .wp-block-post-title a:focus-visible) {
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.memot-insight .wp-block-post-excerpt {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

.memot-insight .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.memot-insight--featured {
	border-radius: var(--memot-radius-lg);
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(15rem, 42%) minmax(0, 1fr);
	height: 100%;
	min-height: 21rem;
}

.memot-insight--featured .wp-block-post-featured-image {
	height: 100%;
	min-height: 0;
}

.memot-insight--featured :where(.wp-block-post-featured-image a, .wp-block-post-featured-image img) {
	height: 100%;
}

.memot-insight--featured :where(.wp-block-post-featured-image img) {
	aspect-ratio: auto;
	min-height: 100%;
	object-fit: cover;
}

.memot-insight--featured .memot-insight-body {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--50);
}

.memot-insight--featured h3 {
	font-size: var(--wp--preset--font-size--x-large);
	max-width: 20ch;
}

.memot-insight--compact {
	display: grid;
	grid-template-columns: minmax(7.5rem, 34%) 1fr;
	height: 100%;
	min-height: 0;
}

.memot-insight--compact .wp-block-post-featured-image {
	height: 100%;
	min-height: 0;
}

.memot-insight--compact :where(.wp-block-post-featured-image img, .wp-block-post-featured-image a) {
	height: 100%;
}

.memot-insight--compact :where(.wp-block-post-featured-image img) {
	aspect-ratio: auto;
	min-height: 100%;
	object-fit: cover;
}

.memot-insight--compact .memot-insight-body {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--40);
}

.memot-insight--compact h3 {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.28;
}

@media (min-width: 1101px) {

	.memot-news-featured__layout.wp-block-columns {
		align-items: stretch !important;
		display: grid !important;
		flex-wrap: nowrap !important;
		gap: var(--wp--preset--spacing--40);
		grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
	}

	.memot-news-featured__layout > .wp-block-column {
		align-self: stretch;
		display: flex;
		flex-basis: auto !important;
		flex-direction: column;
		flex-grow: 0 !important;
		min-height: 0;
		width: auto !important;
	}

	.memot-news-featured__layout > .wp-block-column > .wp-block-query {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.memot-news-featured__layout .wp-block-post-template {
		flex: 1 1 auto;
		list-style: none;
		margin: 0;
		min-height: 0;
		padding: 0;
	}

	.memot-news-featured__rail > .wp-block-query > .wp-block-post-template {
		display: grid;
		gap: var(--wp--preset--spacing--40);
		grid-template-rows: repeat(2, minmax(0, 1fr));
	}

	.memot-news-featured__layout > .wp-block-column:first-child .wp-block-post-template {
		display: flex;
		flex-direction: column;
	}

	.memot-news-featured__layout .wp-block-post {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.memot-news-featured__layout .memot-insight--featured.wp-block-group,
	.memot-news-featured__layout .memot-insight--compact.wp-block-group {
		display: grid;
	}

	.memot-insight--featured {
		height: 100%;
		min-height: 0;
	}

	.memot-insight--compact {
		height: 100%;
	}

	.memot-news-featured__layout .memot-insight--featured,
	.memot-news-featured__layout .memot-insight--compact {
		flex: 1 1 auto;
		min-height: 0;
	}
}

.memot-news-list .wp-block-post-template {
	row-gap: var(--wp--preset--spacing--40);
}

.memot-news-index {
	scroll-margin-top: calc(var(--memot-header-height) + var(--wp--preset--spacing--40));
	transition: opacity 180ms ease;
}

html.memot-anim .memot-news-index :where(.memot-insight, .memot-lead) {
	opacity: 1;
}

.memot-news-index.is-loading {
	opacity: 0.58;
	pointer-events: none;
}

.memot-news-index__toolbar {
	margin-bottom: var(--wp--preset--spacing--50);
}

.memot-news-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.memot-news-filter {
	align-items: center;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--slate);
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.06em;
	min-height: 1.95rem;
	padding-inline: 0.72rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.memot-news-filter:is(:hover, :focus-visible),
.memot-news-filter.is-active {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
	box-shadow: var(--memot-shadow-sm);
}

.memot-news-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.memot-news-grid .memot-insight {
	min-width: 0;
}

.memot-news-grid .memot-insight-body {
	padding: var(--wp--preset--spacing--40);
}

.memot-news-grid .wp-block-post-featured-image {
	height: 8rem;
}

.memot-news-grid .wp-block-post-title {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.28;
}

.memot-news-grid .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.memot-news-card-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

@media (max-width: 1100px) {

	.memot-insight--featured {
		flex: none;
		grid-template-columns: 1fr;
		height: auto;
		min-height: 0;
	}

	.memot-insight--featured .wp-block-post-featured-image {
		height: 15rem;
		min-height: 0;
	}

	.memot-insight--featured :where(.wp-block-post-featured-image img) {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.memot-insight--compact {
		height: auto;
	}

	.memot-insight--compact .wp-block-post-featured-image {
		min-height: 8.5rem;
	}

	.memot-insight--compact :where(.wp-block-post-featured-image img) {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.memot-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.memot-pagination {
	align-items: center;
	border-top: 1px solid var(--wp--preset--color--line);
	display: flex;
	gap: var(--wp--preset--spacing--30);
	justify-content: space-between;
	margin-top: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--50);
}

.memot-pagination__directions {
	flex: 0 0 auto;
}

.memot-pagination__directions--prev {
	text-align: left;
}

.memot-pagination__directions--next {
	text-align: right;
}

.memot-pagination__numbers {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	justify-content: center;
	min-width: 0;
}

.memot-pagination :where(a, .page-numbers) {
	align-items: center;
	border-radius: 999px;
	color: var(--wp--preset--color--slate);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	justify-content: center;
	min-height: 2.25rem;
	min-width: 2.25rem;
	padding-inline: 0.75rem;
	text-decoration: none;
}

.memot-pagination__direction {
	height: 2.75rem;
	min-width: 2.75rem;
	padding: 0;
	width: 2.75rem;
}

.memot-pagination__icon {
	fill: none;
	height: 1.2rem;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 1.2rem;
}

.memot-pagination :where(a:hover, a:focus-visible, .current) {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--brand);
	box-shadow: var(--memot-shadow-sm);
}

.memot-pagination .is-disabled {
	background: transparent;
	color: color-mix(in srgb, var(--wp--preset--color--slate) 42%, transparent);
	cursor: default;
	box-shadow: none;
}

.memot-article-hero {
	position: relative;
	overflow: hidden;
}

.memot-article-hero .memot-lead {
	max-width: 44ch;
}

.memot-article-meta {
	color: var(--wp--preset--color--slate);
}

.memot-article-hero__image {
	margin: 0;
	border-radius: var(--memot-radius-lg);
	box-shadow: var(--memot-shadow-lg);
	overflow: hidden;
	background: var(--wp--preset--color--sand);
}

.memot-article-hero__image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.memot-article-layout {
	align-items: flex-start;
}

.memot-article-sidebar {
	position: sticky;
	top: calc(var(--memot-header-space) + var(--wp--preset--spacing--40));

	/* Core's global styles force columns to align-items: normal !important.
	   This beats .memot-article-layout and stretches the sidebar column,
	   leaving no room for sticky to engage. align-self on the child wins. */
	align-self: flex-start;
}

.memot-article-panel {
	box-shadow: var(--memot-shadow-md);
}

.memot-article-main {
	min-width: 0;
}

.memot-article-content {
	font-size: var(--wp--preset--font-size--medium);
}

.memot-article-content > * {
	max-width: var(--wp--style--global--content-size, 760px);
}

.memot-article-content :where(h2, h3, h4) {
	margin-top: var(--wp--preset--spacing--70);
}

.memot-article-content :where(p, li) {
	color: var(--wp--preset--color--slate);
}

.memot-article-content :where(blockquote, .wp-block-quote) {
	border-left: 4px solid var(--wp--preset--color--brand-bright);
	background: var(--wp--preset--color--sand);
	border-radius: 0 var(--memot-radius) var(--memot-radius) 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 650;
	margin-block: var(--wp--preset--spacing--70);
	padding: var(--wp--preset--spacing--50);
}

.memot-article-content :where(.wp-block-image img, .wp-block-gallery img) {
	border-radius: var(--memot-radius);
	box-shadow: var(--memot-shadow-sm);
}

.memot-article-footer-nav {
	border-top: 1px solid var(--wp--preset--color--line);
	max-width: var(--wp--style--global--content-size, 760px);
}

.memot-article-back :where(a) {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
	text-decoration: none;
}

.memot-article-back :where(a:hover, a:focus-visible) {
	text-decoration: underline;
}

.memot-related-posts .wp-block-post-template {
	row-gap: var(--wp--preset--spacing--60);
}

@media (max-width: 781px) {

	.memot-news-hero__panel {
		border-radius: var(--memot-radius-lg);
		padding: var(--wp--preset--spacing--50);
	}

	.memot-news-hero__topline {
		margin-bottom: var(--wp--preset--spacing--50);
	}

	.memot-news-hero h1 {
		max-width: 100%;
	}

	.memot-news-hero__actions .wp-block-button,
	.memot-news-hero__actions .wp-block-button__link {
		width: 100%;
	}

	.memot-news-hero__stage {
		min-height: 30rem;
		margin-top: var(--wp--preset--spacing--50);
	}

	.memot-news-hero__photo-card--plantation {
		right: 6%;
		bottom: 8%;
		width: 82%;
		height: 14rem;
	}

	.memot-news-hero__photo-card--farm,
	.memot-news-hero__photo-card--field {
		width: 72%;
		height: 10rem;
	}

	.memot-news-hero__photo-card--field {
		left: 8%;
		bottom: 34%;
	}

	.memot-news-hero__stats {
		align-items: stretch;
		border-radius: var(--memot-radius);
	}

	.memot-news-hero__stat {
		flex: 1 1 100%;
	}

	.memot-news-featured .memot-section-head,
	.memot-news-list .memot-section-head {
		max-width: 100%;
	}

	.memot-insight--featured {
		display: block;
	}

	.memot-insight--compact {
		grid-template-columns: minmax(7rem, 34%) 1fr;
		min-height: 0;
	}

	.memot-insight--featured .wp-block-post-featured-image {
		height: 12.5rem;
	}

	.memot-insight--featured .memot-insight-body,
	.memot-insight--compact .memot-insight-body,
	.memot-news-grid .memot-insight-body {
		padding: var(--wp--preset--spacing--40);
	}

	.memot-news-filters {
		overflow-x: auto;
		padding-bottom: 0.25rem;
		flex-wrap: nowrap;
	}

	.memot-news-filter {
		flex: 0 0 auto;
	}

	.memot-news-grid {
		grid-template-columns: 1fr;
	}

	.memot-news-grid .wp-block-post-featured-image {
		height: 8rem;
	}

	.memot-pagination {
		gap: var(--wp--preset--spacing--20);
	}

	.memot-pagination__direction {
		height: 2.5rem;
		min-width: 2.5rem;
		width: 2.5rem;
	}

	.memot-article-hero h1,
	.memot-article-hero .memot-lead {
		max-width: 100%;
	}

	.memot-article-sidebar {
		position: static;
	}
}

