/* =========================================================================
   Product Update detail (v2)  —  layered on top of home-v2.css.
   Built from Figma "Product update body page" (Ilz2…, 116:20056).
   Dark header (badge + title + author/date) → teal bar → full-width banner →
   rendered article (18px body, 28px section headings w/ divider rules) →
   Share widget → related. Mirrors the blog-detail treatment.
   ========================================================================= */

:root {
	--pd-teal: #2ad9c4;
	--pd-ink: #111;
	--pd-ink-70: rgba(17, 17, 17, 0.7);
	--pd-line: rgba(17, 17, 17, 0.1);
}

/* -------------------------------------------------------------------------
   HEADER  (dark)
   ------------------------------------------------------------------------- */
.pd-hero {
	background: #0e0e0e;
	color: #fff;
}
.pd-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-block: clamp(56px, 6vw, 96px);
}
.pd-badge {
	position: relative;
	padding: 8px 12px;
	background: rgba(29, 64, 60, 0.3);
	border-radius: 1px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--pd-teal);
	white-space: nowrap;
}
.pd-badge__dot {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 1px;
	background: rgba(42, 217, 196, 0.2);
}
.pd-badge__dot--tl { top: 0; left: 0; }
.pd-badge__dot--tr { top: 0; right: 0; }
.pd-badge__dot--br { bottom: 0; right: 0; }
.pd-badge__dot--bl { bottom: 0; left: 0; }
.pd-title {
	margin: 0;
	max-width: min(1220px, 100%);
	font-weight: 500;
	font-size: 42px;
	line-height: 1.3;
	letter-spacing: -0.84px;
	color: #fff;
}
.pd-meta {
	display: flex;
	align-items: center;
	gap: 36px;
}
.pd-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 400;
	font-size: 18px;
	letter-spacing: -0.18px;
	color: rgba(255, 255, 255, 0.7);
}
.pd-meta__date {
	font-weight: 400;
	font-size: 18px;
	letter-spacing: -0.18px;
	color: rgba(255, 255, 255, 0.7);
}
.pd-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.15);
	flex: none;
}

/* -------------------------------------------------------------------------
   BODY  (light, teal divider bar over the dark header)
   ------------------------------------------------------------------------- */
.pd-body {
	background: #fff;
	border-top: 48px solid var(--pd-teal);
	padding-block: 80px 100px;
}
.pd-inner {
	max-width: min(1600px, 100%);
	margin-inline: auto;
}
.pd-banner {
	width: 100%;
	aspect-ratio: 1600 / 745;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(17, 17, 17, 0.06);
	margin-bottom: 56px;
}
.pd-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Rendered article */
.pd-prose {
	color: var(--pd-ink);
}
.pd-prose > :first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}
.pd-prose p,
.pd-prose li {
	font-weight: 400;
	font-size: 18px;
	line-height: 1.7;
	letter-spacing: -0.18px;
	color: var(--pd-ink);
}
.pd-prose p {
	margin: 0 0 20px;
}
.pd-prose h2,
.pd-prose h3 {
	margin: 48px 0 20px;
	padding-top: 32px;
	border-top: 1px solid var(--pd-line);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.4px;
	color: var(--pd-ink);
	text-transform: capitalize;
}
.pd-prose h2 { font-size: 28px; }
.pd-prose h3 { font-size: 22px; }
.pd-prose a {
	color: var(--pd-teal);
	text-decoration: underline;
}
.pd-prose ul,
.pd-prose ol {
	margin: 0 0 20px;
	padding-left: 1.2em;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pd-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.pd-prose figure {
	margin: 32px 0;
}
.pd-notfound {
	font-size: 20px;
	color: var(--pd-ink-70);
}
.pd-notfound a {
	color: var(--pd-teal);
}

/* Share */
.pd-share {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 56px;
}
.pd-share__title {
	margin: 0;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.24px;
	color: #000;
}
.pd-share__row {
	display: flex;
	align-items: center;
	gap: 24px;
}
.pd-share__link {
	display: block;
	width: 40px;
	height: 40px;
}
.pd-share__link img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Related */
.pd-related {
	margin-top: 80px;
}
.pd-related__title {
	margin: 0 0 32px;
	font-weight: 600;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: -0.56px;
	color: var(--pd-ink);
}
.pd-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	max-width: min(1200px, 100%);
}
.pd-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--pd-line);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pd-card:hover {
	border-color: rgba(17, 17, 17, 0.2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.pd-card__media {
	/* 3:2 rather than a fixed height, matching the listing cards: the column is
	   fluid, so a fixed height made the crop change with the viewport. */
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #cacaca;
}
.pd-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pd-card__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.pd-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 16px;
	letter-spacing: -0.16px;
	color: var(--pd-ink-70);
}
.pd-card__title {
	margin: 0;
	font-weight: 500;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: -0.48px;
	color: var(--pd-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pd-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	letter-spacing: -0.16px;
	color: var(--pd-ink-70);
}
.pd-card__author .pd-avatar {
	background: var(--pd-line);
}

/* -------------------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.pd-hero__inner {
		gap: 16px;
		padding-block: 32px;
	}
	.pd-badge {
		font-size: 12px;
	}
	.pd-title {
		font-size: 28px;
		letter-spacing: -0.56px;
	}
	.pd-meta {
		gap: 20px;
		padding-top: 8px;
	}
	.pd-meta__author,
	.pd-meta__date {
		font-size: 12px;
	}
	.pd-avatar {
		width: 24px;
		height: 24px;
	}

	.pd-body {
		border-top-width: 16px;
		padding-block: 40px;
	}
	.pd-banner {
		border-radius: 8px;
		margin-bottom: 32px;
	}
	.pd-prose p,
	.pd-prose li {
		font-size: 16px;
		letter-spacing: -0.16px;
	}
	.pd-prose p {
		margin: 0 0 16px;
	}
	.pd-prose h2,
	.pd-prose h3 {
		margin: 40px 0 16px;
		padding-top: 0;
		border-top: none;
	}
	.pd-prose h2 { font-size: 20px; letter-spacing: -0.4px; }
	.pd-prose h3 { font-size: 18px; }

	.pd-share {
		margin-top: 40px;
		gap: 16px;
	}
	.pd-share__title { font-size: 20px; }
	.pd-share__link { width: 40px; height: 40px; }

	.pd-related {
		margin-top: 48px;
	}
	.pd-related__title {
		font-size: 20px;
		letter-spacing: -0.4px;
		margin-bottom: 24px;
	}
	.pd-related__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.pd-card {
		padding: 0;
		gap: 0;
	}
	.pd-card__media {
		/* inherits the 3:2 ratio from the base rule */
		height: auto;
	}
	.pd-card__body {
		gap: 12px;
		padding: 16px 12px;
	}
	.pd-card__title {
		font-size: 16px;
	}
	.pd-card__meta,
	.pd-card__author {
		font-size: 12px;
	}
	.pd-card__author .pd-avatar {
		width: 28px;
		height: 28px;
	}
}
