/* Structured editorial and category components. */
.article-author--header {
	align-items: center;
}

.article-author__portrait {
	display: block;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
}

.article-author__portrait img,
.article-author__portrait .article-author__mark {
	display: grid;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-author--header > div > a {
	display: inline-block;
	margin-block-start: 3px;
	font-size: var(--fs-xs);
}

.article-review-note {
	margin: 10px 0 0 60px;
	color: var(--text-muted);
	font-size: var(--fs-xs);
}

.article-toc-card,
.health-disclaimer,
.article-author-box,
.product-category-advice,
.context-links {
	margin-block: 0 40px;
	padding: clamp(20px, 4vw, 32px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	background: var(--surface-card);
}

.article-toc-card h2,
.health-disclaimer h2,
.article-author-box h2,
.related-advice > h2 {
	margin-block: 0 14px;
	font-size: var(--fs-xl);
}

.article-toc-card .article-toc {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 28px;
	margin: 0;
	padding-inline-start: 22px;
}

.article-toc-card .level-3 {
	padding-inline-start: 12px;
}

.article-sources,
.article-author-box,
.article-history,
.health-disclaimer,
.related-advice,
.context-links {
	margin-block-start: 48px;
}

.article-sources li + li {
	margin-block-start: 10px;
}

.article-author-box {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: start;
	background: var(--brand-soft);
}

.article-author-box figure {
	margin: 0;
}

.article-author-box img {
	display: block;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	object-fit: cover;
}

.article-author-box p {
	margin-block: 0 12px;
}

.article-author-box__role {
	color: var(--brand-press);
	font-weight: var(--fw-semibold);
}

.article-history {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-block: 18px;
	border-block: 1px solid var(--border-subtle);
	color: var(--text-muted);
	font-size: var(--fs-xs);
}

.health-disclaimer {
	border-inline-start: 4px solid var(--brand);
	background: var(--surface-subtle);
}

.health-disclaimer p {
	margin: 0;
}

.related-advice .article-card-grid {
	margin-block-start: 22px;
}

.context-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
}

.context-links h3 {
	margin: 0 0 10px;
	font-size: var(--fs-lg);
}

.context-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.context-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 9px;
	border-block-end: 1px solid var(--border-subtle);
	text-decoration: none;
}

.context-links svg {
	flex: 0 0 auto;
}

.product-category-intro {
	max-width: 820px;
	margin-block: 0 28px;
}

.product-category-advice {
	clear: both;
	margin-block: 48px 0;
}

.product-category-advice > .prose {
	max-width: 860px;
}

.product-category-advice .context-links {
	margin-block-end: 0;
}

.author-profile__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
	gap: clamp(32px, 7vw, 88px);
	align-items: center;
}

.author-profile__portrait {
	margin: 0;
	border-radius: var(--radius-xl);
	overflow: hidden;
}

.author-profile__portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.author-profile__portrait--fallback {
	display: grid;
	min-height: 360px;
	place-items: center;
	background: var(--brand-soft);
}

.author-profile__portrait--fallback img {
	width: 115px;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
}

.author-profile__articles {
	padding-block-start: 8px;
}

.author-profile__articles .section-heading {
	margin-block-end: 30px;
}

.author-profile__articles .section-heading h2 {
	display: block;
	padding-block-end: 0;
	border-block-end: 0;
}

:is(.author-profile__articles, .related-advice) .article-card-grid {
	display: grid;
	max-width: var(--container-text);
	gap: 48px;
}

:is(.author-profile__articles, .related-advice) .article-card__media {
	display: block;
}

:is(.author-profile__articles, .related-advice) .article-card__media img {
	width: 100%;
	border-radius: var(--radius-lg);
}

:is(.author-profile__articles, .related-advice) .article-card__media + .article-card__body {
	padding-block-start: 15px;
}

:is(.author-profile__articles, .related-advice) .article-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-block-end: 8px;
	color: var(--text-muted);
	font-size: var(--fs-xs);
	line-height: 1.4;
}

:is(.author-profile__articles, .related-advice) .article-card__meta .badge {
	min-height: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
	font-weight: var(--fw-semibold);
}

:is(.author-profile__articles, .related-advice) .article-card__meta time {
	color: inherit;
	font: inherit;
}

:is(.author-profile__articles, .related-advice) .article-card h3 {
	font-size: clamp(var(--fs-xl), 2.2vw, var(--fs-2xl));
	line-height: 1.3;
}

:is(.author-profile__articles, .related-advice) .article-card h3 a {
	color: var(--brand);
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

:is(.author-profile__articles, .related-advice) .article-card h3 a:hover,
:is(.author-profile__articles, .related-advice) .article-card h3 a:focus-visible {
	color: var(--text-link-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

:is(.author-profile__articles, .related-advice) .article-card__body > p {
	max-width: 68ch;
	margin-block-start: 12px;
	line-height: var(--lh-body);
}

.legal-copy__updated {
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.withdrawal-form {
	margin-top: clamp(32px, 5vw, 56px);
	padding: clamp(20px, 4vw, 32px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	background: var(--surface-sunken);
}

.withdrawal-form__line {
	overflow: hidden;
	white-space: nowrap;
}

.checkout-legal-notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--border-subtle);
	border-inline-start: 4px solid var(--brand);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
}

.checkout-legal-notice h2 {
	margin: 0 0 7px;
	font-size: var(--fs-lg);
}

.checkout-legal-notice p {
	margin: 0 0 10px;
}

.checkout-legal-notice ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 760px) {
	.article-toc-card .article-toc,
	.author-profile__hero {
		grid-template-columns: 1fr;
	}

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

	.article-review-note {
		margin-inline-start: 0;
	}

	.author-profile__portrait {
		max-width: 360px;
	}

	.author-profile__articles {
		padding-block-start: 0;
	}

	.author-profile__articles .section-heading {
		margin-block-end: 28px;
	}

	:is(.author-profile__articles, .related-advice) .article-card-grid {
		gap: 40px;
	}

	:is(.author-profile__articles, .related-advice) .article-card__media + .article-card__body {
		padding-block-start: 14px;
	}
}

@media print {
	.site-header,
	.site-footer,
	.mobile-action-bar,
	.breadcrumb,
	.checkout-journey {
		display: none !important;
	}

	.withdrawal-form {
		break-inside: avoid;
		border-color: #777;
		background: #fff;
	}
}
