/* Article (single post) — Figma: Renault’s IIoT Revolution Desktop (114:4733) */

/* Hero — Figma: Hero (114:4627). Photo under a Basic/Dark 80% overlay */
.article-hero {
	background:
		linear-gradient(rgb(0 49 69 / 0.8), rgb(0 49 69 / 0.8)),
		var(--article-hero-bg) center / cover no-repeat var(--color-dark);
	color: var(--color-light);
}

.article-hero__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 5.56vw, 80px);
	min-height: clamp(440px, 38.3vw, 552px);
	padding-top: 30px;
	padding-bottom: clamp(48px, 5.56vw, 80px);
}

.article-hero__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
}

.article-hero__heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.article-hero__tag {
	color: var(--color-primary);
}

.article-hero__author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.article-hero__avatar {
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	object-fit: cover;
}

.article-hero__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	line-height: 1.4;
	letter-spacing: var(--ls-body);
}

.article-hero__date {
	font-size: 0.75rem;
	color: var(--color-neutral-3);
}

/* Layout — Figma: Article Layout (114:4732): 300 box, 88 gap, 852 text column */
.article {
	padding: var(--section-y-sm) 0 80px;
	background: var(--color-light);
}

.article__inner {
	display: grid;
	gap: 40px;
}

@media (min-width: 1024px) {
	.article__inner {
		grid-template-columns: 300px minmax(0, 1fr);
		column-gap: clamp(40px, 6.11vw, 88px);
		align-items: start;
	}

	.article-toc {
		position: sticky;
		top: 102px; /* header 78 + 24 */
	}

	.admin-bar .article-toc {
		top: calc(102px + var(--wp-admin--admin-bar--height, 0px));
	}
}

/* "In this article" — Figma: Navigation Fix (114:4714) */
.article-toc {
	display: flex;
	flex-direction: column;
	gap: 25px;
	padding: 18px 18px 24px;
	border-top: 2px solid var(--color-secondary);
	border-radius: 10px;
	background: var(--color-card);
}

.article-toc__title {
	color: var(--color-secondary);
}

.article-toc__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.article-toc__list li {
	padding-top: 14px;
	border-top: 1px solid var(--color-neutral-4);
}

.article-toc__list a {
	display: block;
	font-size: var(--fs-body-small);
	font-weight: var(--fw-medium);
	line-height: 1.4;
	letter-spacing: var(--ls-label);
	color: var(--color-neutral-2);
	transition: color var(--duration) var(--ease);
}

.article-toc__list a:hover {
	color: var(--color-secondary);
}

/* Post content — Figma: part containers (114:4734 …). Blocks 33 apart,
   paragraphs and lists inside one text 21 apart (one empty line), parts 90 apart. */
.article__content {
	color: var(--color-neutral-1);
	font-size: var(--fs-body-secondary);
	line-height: 1.4;
	letter-spacing: var(--ls-body);
}

.article__content > * + * {
	margin-top: 33px;
}

.article__content > :is(p, ul, ol) + :is(p, ul, ol) {
	margin-top: 1.4em;
}

.article__content > h3 + * {
	margin-top: 15px;
}

.article__content > h2:not(:first-child),
.article-more {
	margin-top: clamp(56px, 6.25vw, 90px);
}

.article__content h2 {
	font-size: var(--fs-h4);
	font-weight: var(--fw-semibold);
	line-height: 1.3;
	letter-spacing: var(--ls-heading);
	color: var(--color-dark);
	scroll-margin-top: 102px;
}

.article__content h3 {
	font-size: var(--fs-body-secondary);
	font-weight: var(--fw-semibold);
	line-height: 1.4;
	color: var(--color-dark);
}

.article__content strong {
	font-weight: var(--fw-semibold);
}

.article__content a:not(.btn) {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	transition: color var(--duration) var(--ease);
}

.article__content a:not(.btn):hover {
	color: var(--color-secondary);
}

.article__content ul,
.article__content ol {
	padding-left: 22.5px;
}

.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }

.article__content .is-spaced > li + li {
	margin-top: 12px;
}

.article__content figure img {
	width: 100%;
	height: auto;
	border-radius: 21px;
}

/* Heading + list pairs packed 15 apart — Figma: Metrics Content (115:4801).
   Not "> * + *": WP wraps group blocks in __inner-container on classic themes. */
.article__content .article-group :where(h3, p, ul, ol) + :where(h3, p, ul, ol) {
	margin-top: 15px;
}

/* Footnote — Figma: Expert Note (115:4835) */
.article__content > .article-note {
	margin-top: 33px;
	color: var(--color-dark);
}

.article-note mark {
	background: none;
	color: var(--color-secondary);
}

/* Figma Button M Secondary here is 285 wide */
.article-more__btn {
	min-width: min(100%, 285px);
}
