/*
 * Deluxe Plugins editorial experience
 * Loaded only for articles, editorial archives, and search results.
 */

.articles-main,
.article-main {
	background:
		radial-gradient(circle at 88% 9%, rgba(104, 70, 220, .09), transparent 26rem),
		linear-gradient(180deg, #fafaff 0, #fff 34rem);
}

.articles-shell {
	padding-block: clamp(36px, 6vw, 82px) clamp(72px, 9vw, 126px);
}

.articles-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr);
	min-height: 460px;
	padding: clamp(38px, 6vw, 76px);
	overflow: hidden;
	align-items: center;
	gap: clamp(36px, 6vw, 88px);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: clamp(24px, 4vw, 38px);
	background:
		linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px),
		linear-gradient(135deg, #080a13 0%, #10142a 58%, #201355 100%);
	background-size: 36px 36px, 36px 36px, auto;
	box-shadow: 0 34px 90px rgba(8, 10, 19, .24);
}

.articles-hero::before,
.articles-hero::after {
	position: absolute;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	content: "";
	pointer-events: none;
	filter: blur(1px);
}

.articles-hero::before {
	top: -150px;
	right: 9%;
	background: radial-gradient(circle, rgba(101, 232, 255, .22), transparent 70%);
}

.articles-hero::after {
	bottom: -170px;
	left: 28%;
	background: radial-gradient(circle, rgba(140, 114, 255, .31), transparent 70%);
}

.articles-hero__copy {
	position: relative;
	z-index: 1;
}

.articles-hero .eyebrow {
	color: var(--dp-cyan);
}

.articles-hero h1 {
	max-width: 760px;
	margin: 16px 0 0;
	color: #fff;
	font-size: clamp(42px, 6vw, 76px);
	font-weight: 790;
	line-height: 1.01;
	letter-spacing: -.06em;
}

.articles-hero__copy > p {
	max-width: 650px;
	margin: 24px 0 0;
	color: #c5cce0;
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.65;
}

.articles-hero__actions,
.articles-empty__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-top: 31px;
}

.articles-hero__text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #dfe3ef;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.articles-hero__text-link:hover {
	color: #fff;
}

.articles-hero__text-link span {
	color: var(--dp-cyan);
	font-size: 19px;
	transition: transform .18s ease;
}

.articles-hero__text-link:hover span {
	transform: translateX(3px);
}

.articles-hero__visual {
	position: relative;
	z-index: 1;
	width: min(100%, 330px);
	aspect-ratio: 1;
	justify-self: center;
}

.articles-hero__visual::before,
.articles-hero__visual::after {
	position: absolute;
	inset: 11%;
	border: 1px solid rgba(140, 114, 255, .45);
	border-radius: 32%;
	content: "";
	transform: rotate(16deg);
}

.articles-hero__visual::after {
	inset: 22%;
	border-color: rgba(101, 232, 255, .42);
	border-radius: 28%;
	transform: rotate(-13deg);
}

.articles-hero__visual > span {
	position: absolute;
	z-index: 2;
	width: 15px;
	height: 15px;
	border: 4px solid #151a31;
	border-radius: 50%;
	background: var(--dp-cyan);
	box-shadow: 0 0 0 7px rgba(101, 232, 255, .12), 0 0 28px rgba(101, 232, 255, .6);
}

.articles-hero__visual > span:nth-child(1) {
	top: 12%;
	left: 45%;
}

.articles-hero__visual > span:nth-child(2) {
	right: 8%;
	bottom: 29%;
	background: var(--dp-green);
}

.articles-hero__visual > span:nth-child(3) {
	bottom: 13%;
	left: 13%;
	background: var(--dp-purple-bright);
}

.articles-hero__visual > div {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	display: grid;
	grid-template-columns: 1fr 36px 1fr;
	width: min(95%, 280px);
	padding: 22px 18px;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 20px;
	background: rgba(11, 14, 29, .78);
	box-shadow: 0 20px 55px rgba(0, 0, 0, .32);
	backdrop-filter: blur(10px);
	transform: translate(-50%, -50%);
}

.articles-hero__visual b {
	color: #fff;
	font-size: 15px;
	text-align: center;
}

.articles-hero__visual i {
	position: relative;
	height: 1px;
	background: linear-gradient(90deg, var(--dp-purple-bright), var(--dp-cyan));
}

.articles-hero__visual i::after {
	position: absolute;
	top: -3px;
	right: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dp-cyan);
	content: "";
}

.articles-topics {
	display: flex;
	min-height: 70px;
	padding: 14px 18px;
	margin: clamp(28px, 5vw, 48px) 0 clamp(56px, 8vw, 92px);
	overflow: hidden;
	align-items: center;
	gap: 18px;
	border: 1px solid var(--dp-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, .94);
	box-shadow: var(--dp-shadow-sm);
}

.articles-topics__label {
	flex: 0 0 auto;
	padding: 0 8px;
	color: var(--dp-muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.articles-topics ul {
	display: flex;
	padding: 0 2px 2px;
	margin: 0;
	overflow-x: auto;
	list-style: none;
	gap: 7px;
	scrollbar-width: thin;
}

.articles-topics li {
	flex: 0 0 auto;
}

.articles-topics a {
	display: inline-flex;
	min-height: 39px;
	padding: 8px 13px;
	align-items: center;
	color: #3f4658;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 720;
	text-decoration: none;
}

.articles-topics a:hover,
.articles-topics a[aria-current="page"] {
	color: var(--dp-purple-dark);
	border-color: rgba(104, 70, 220, .18);
	background: rgba(104, 70, 220, .075);
}

.articles-module-slot {
	margin: 0 0 clamp(54px, 8vw, 88px);
}

.featured-article {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
	margin-bottom: clamp(68px, 10vw, 118px);
	overflow: hidden;
	border: 1px solid var(--dp-line);
	border-radius: clamp(22px, 3vw, 30px);
	background: #fff;
	box-shadow: var(--dp-shadow);
}

.featured-article--without-media {
	grid-template-columns: minmax(0, 820px);
}

.featured-article__media {
	display: block;
	min-height: 430px;
	overflow: hidden;
	background: var(--dp-soft);
}

.featured-article__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.featured-article:hover .featured-article__media img {
	transform: scale(1.018);
}

.featured-article__body {
	display: flex;
	padding: clamp(32px, 5vw, 58px);
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.featured-article__body h2 {
	margin: 13px 0 0;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: -.05em;
}

.featured-article__body h2 a {
	color: var(--dp-ink);
	text-decoration: none;
}

.featured-article__body > p {
	margin: 19px 0 25px;
	color: var(--dp-muted);
	font-size: 16px;
	line-height: 1.7;
}

.article-meta,
.content-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
}

.article-meta {
	margin-top: 16px;
	color: var(--dp-muted);
	font-size: 11px;
	font-weight: 780;
	text-transform: uppercase;
	letter-spacing: .085em;
}

.article-meta a,
.content-card__meta a {
	color: var(--dp-purple-dark);
	text-decoration: none;
}

.articles-section-heading,
.search-results-section__header {
	display: flex;
	margin-bottom: 30px;
	align-items: end;
	justify-content: space-between;
	gap: 36px;
}

.articles-section-heading h2,
.search-results-section__header h2 {
	margin: 8px 0 0;
	font-size: clamp(30px, 4vw, 45px);
	line-height: 1.08;
	letter-spacing: -.045em;
}

.articles-section-heading > p {
	max-width: 470px;
	margin: 0;
	color: var(--dp-muted);
}

.article-card-grid {
	align-items: stretch;
}

.article-card .content-card__body {
	padding: clamp(22px, 3vw, 29px);
}

.article-card .content-card__meta {
	min-height: 18px;
	line-height: 1.45;
}

.article-card .content-card__title {
	margin-top: 13px;
}

.article-card .content-card__excerpt {
	line-height: 1.65;
}

.article-card .content-card__excerpt p {
	margin-top: 0;
}

.articles-empty {
	display: grid;
	grid-template-columns: auto minmax(0, 700px);
	max-width: 900px;
	padding: clamp(34px, 6vw, 66px);
	margin: 0 auto;
	align-items: start;
	gap: 27px;
	border: 1px solid var(--dp-line);
	border-radius: 26px;
	background: linear-gradient(145deg, #fff, #f5f3ff);
	box-shadow: var(--dp-shadow-sm);
}

.articles-empty__mark {
	display: grid;
	width: 62px;
	height: 62px;
	place-items: center;
	color: var(--dp-purple);
	border-radius: 18px;
	background: rgba(104, 70, 220, .1);
}

.articles-empty__mark svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
}

.articles-empty h2 {
	margin: 8px 0 12px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.12;
	letter-spacing: -.045em;
}

.articles-empty p {
	margin: 0;
	color: var(--dp-muted);
}

/* Topic archives */

.article-breadcrumbs {
	margin-bottom: clamp(34px, 5vw, 55px);
}

.article-breadcrumbs ol {
	display: flex;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	list-style: none;
	gap: 8px;
	color: var(--dp-muted);
	font-size: 12px;
	font-weight: 700;
}

.article-breadcrumbs li + li::before {
	margin-right: 8px;
	color: #a7adbb;
	content: "/";
}

.article-breadcrumbs a {
	color: var(--dp-purple-dark);
	text-decoration: none;
}

.articles-topic-hero {
	max-width: 920px;
	padding: clamp(20px, 4vw, 48px) 0 0;
}

.articles-topic-hero h1 {
	margin: 12px 0 0;
	font-size: clamp(43px, 7vw, 76px);
	line-height: 1.02;
	letter-spacing: -.058em;
}

.articles-topic-hero > p:not(.articles-topic-hero__count) {
	max-width: 760px;
	margin: 23px 0 0;
	color: var(--dp-muted);
	font-size: clamp(17px, 2vw, 20px);
}

.articles-topic-hero__count {
	display: inline-flex;
	padding: 7px 11px;
	margin: 24px 0 0;
	color: var(--dp-purple-dark);
	border-radius: 999px;
	background: rgba(104, 70, 220, .08);
	font-size: 12px;
	font-weight: 760;
}

.articles-feed--topic {
	margin-top: 0;
}

/* Single article */

.article-shell {
	width: min(1080px, calc(100% - 48px));
	padding-block: clamp(42px, 7vw, 88px) clamp(76px, 10vw, 128px);
}

.article-entry__header {
	max-width: 930px;
	margin-bottom: clamp(36px, 6vw, 62px);
}

.article-entry__header h1 {
	font-size: clamp(42px, 7vw, 78px);
}

.article-entry__header .single-entry__lead {
	max-width: 810px;
}

.article-dates {
	display: flex;
	margin-top: 25px;
	flex-wrap: wrap;
	gap: 9px 20px;
	color: var(--dp-muted);
	font-size: 12px;
}

.article-dates span {
	display: inline-flex;
	gap: 5px;
}

.article-dates time {
	color: #343a4b;
	font-weight: 720;
}

.article-entry__media {
	position: relative;
	margin-bottom: clamp(42px, 7vw, 74px);
}

.article-entry__media figcaption {
	padding: 12px 16px 4px;
	color: var(--dp-muted);
	font-size: 12px;
	text-align: center;
}

.article-content-column {
	max-width: var(--dp-content);
	margin-inline: auto;
}

.article-entry .entry-content {
	max-width: none;
	font-size: clamp(17px, 1.8vw, 18px);
	line-height: 1.82;
}

.article-entry .entry-content > :where(h2, h3, h4) {
	scroll-margin-top: calc(var(--dp-header-height) + 28px);
}

.article-entry .entry-content a {
	font-weight: 620;
}

.article-entry .entry-content :where(img, .wp-block-image) {
	border-radius: 14px;
}

.article-entry .entry-content .wp-block-separator {
	margin-block: 3em;
}

.article-author {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	padding: clamp(24px, 4vw, 36px);
	margin-top: clamp(48px, 7vw, 76px);
	align-items: start;
	gap: 20px;
	border: 1px solid var(--dp-line);
	border-radius: 20px;
	background: linear-gradient(145deg, #fff, #f7f5ff);
}

.article-author__mark {
	display: grid;
	width: 60px;
	height: 60px;
	place-items: center;
	color: #fff;
	border-radius: 17px;
	background: linear-gradient(145deg, var(--dp-purple), #4424ae);
	box-shadow: 0 12px 24px rgba(104, 70, 220, .22);
	font-size: 22px;
	font-weight: 800;
}

.article-author h2 {
	margin: 5px 0 7px;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -.03em;
}

.article-author p {
	margin: 0;
	color: var(--dp-muted);
	font-size: 14px;
}

.article-related-sections {
	padding: clamp(30px, 5vw, 52px);
	margin-top: clamp(58px, 8vw, 92px);
	border: 1px solid var(--dp-line);
	border-radius: 25px;
	background: #fff;
	box-shadow: var(--dp-shadow-sm);
}

.article-related-sections > header {
	margin-bottom: 27px;
}

.article-related-sections > header h2 {
	margin: 8px 0 0;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
	letter-spacing: -.045em;
}

.article-related-sections :where(ul, .articles-related-grid, .products) {
	margin-bottom: 0;
}

.article-main .post-navigation {
	max-width: 1080px;
	margin-inline: auto;
}

/* Mixed product/article search */

.search-results-section + .search-results-section {
	padding-top: clamp(52px, 8vw, 88px);
	margin-top: clamp(52px, 8vw, 88px);
	border-top: 1px solid var(--dp-line);
}

.search-results-section__header {
	justify-content: flex-start;
}

.woocommerce.search-results-section ul.products {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.articles-hero {
		grid-template-columns: minmax(0, 1fr) minmax(210px, .5fr);
		min-height: 420px;
	}

	.articles-hero__visual {
		width: 240px;
	}

	.featured-article {
		grid-template-columns: 1fr;
	}

	.featured-article__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 720px) {
	.articles-shell,
	.article-shell {
		width: min(100% - 32px, var(--dp-shell));
	}

	.articles-hero {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 38px 27px 32px;
	}

	.articles-hero h1 {
		font-size: clamp(38px, 12vw, 56px);
	}

	.articles-hero__visual {
		display: none;
	}

	.articles-topics {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
	}

	.articles-section-heading,
	.search-results-section__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 13px;
	}

	.articles-empty {
		grid-template-columns: 1fr;
	}

	.article-entry__header h1 {
		font-size: clamp(38px, 11.5vw, 58px);
	}

	.article-author {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.articles-hero__actions,
	.articles-empty__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.articles-hero__actions .button,
	.articles-empty__actions .button {
		width: 100%;
	}

	.featured-article__body {
		padding: 27px 22px 31px;
	}

	.article-related-sections {
		padding: 26px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.featured-article__media img,
	.articles-hero__text-link span {
		transition: none;
	}

	.featured-article:hover .featured-article__media img,
	.articles-hero__text-link:hover span {
		transform: none;
	}
}
