.ptw-page-shell {
	width: 100%;
	max-width: 100%;
	margin-block: var(--ptw-space-8);
	color: var(--ptw-color-text-primary);
	font-family: var(--ptw-font-family-base);
	line-height: var(--ptw-line-height-normal);
}

.ptw-content-container {
	width: min(100% - (var(--ptw-space-4) * 2), 1160px);
	margin-inline: auto;
}

.ptw-reading-width {
	max-width: 48rem;
}

.ptw-editorial-header {
	display: grid;
	gap: var(--ptw-space-3);
	max-width: 54rem;
	padding-block: var(--ptw-space-4) var(--ptw-space-6);
	border-bottom: var(--ptw-border-width-sm) solid var(--ptw-color-border);
}

.ptw-editorial-header__eyebrow {
	color: var(--ptw-color-text-secondary);
	font-size: var(--ptw-font-size-sm);
	font-weight: var(--ptw-font-weight-bold);
	line-height: var(--ptw-line-height-tight);
	text-transform: uppercase;
}

.ptw-editorial-header__title {
	margin: 0;
	color: var(--ptw-color-text-primary);
	font-size: clamp(var(--ptw-font-size-3xl), 5vw, var(--ptw-font-size-4xl));
	font-weight: var(--ptw-font-weight-bold);
	line-height: var(--ptw-line-height-tight);
}

.ptw-editorial-header__summary {
	max-width: 44rem;
	margin: 0;
	color: var(--ptw-color-text-secondary);
	font-size: var(--ptw-font-size-lg);
	line-height: var(--ptw-line-height-relaxed);
}

.ptw-editorial-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ptw-space-2) var(--ptw-space-4);
	align-items: center;
	margin-block: var(--ptw-space-4) 0;
	color: var(--ptw-color-text-secondary);
	font-size: var(--ptw-font-size-sm);
}

.ptw-editorial-meta__item {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--ptw-space-1);
	align-items: baseline;
	min-height: 2rem;
}

.ptw-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ptw-space-8);
	margin-top: var(--ptw-space-6);
}

.ptw-content-main {
	min-width: 0;
	max-width: 48rem;
}

.ptw-content-aside {
	min-width: 0;
}

.ptw-section {
	margin-top: var(--ptw-space-8);
}

.ptw-section-heading {
	margin: 0 0 var(--ptw-space-4);
	color: var(--ptw-color-text-primary);
	font-size: var(--ptw-font-size-2xl);
	line-height: var(--ptw-line-height-tight);
}

.ptw-divider {
	border: 0;
	border-top: var(--ptw-border-width-sm) solid var(--ptw-color-border);
	margin-block: var(--ptw-space-8);
}

.ptw-empty-state {
	padding: var(--ptw-space-4);
	border: var(--ptw-border-width-sm) solid var(--ptw-color-border);
	border-radius: var(--ptw-radius-md);
	background: var(--ptw-color-surface-alt);
	color: var(--ptw-color-text-secondary);
}

.ptw-breadcrumbs {
	margin-bottom: var(--ptw-space-4);
	color: var(--ptw-color-text-secondary);
	font-size: var(--ptw-font-size-sm);
}

.ptw-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ptw-space-1) var(--ptw-space-2);
	align-items: center;
}

.ptw-breadcrumbs__link {
	color: var(--ptw-color-link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.ptw-breadcrumbs__current {
	color: var(--ptw-color-text-secondary);
	font-weight: var(--ptw-font-weight-semibold);
}

.ptw-author-block,
.ptw-related-section,
.ptw-previous-next {
	margin-top: var(--ptw-space-8);
}

.ptw-author-block {
	display: flex;
	gap: var(--ptw-space-4);
	align-items: flex-start;
	padding-block: var(--ptw-space-5);
	border-top: var(--ptw-border-width-sm) solid var(--ptw-color-border);
	border-bottom: var(--ptw-border-width-sm) solid var(--ptw-color-border);
}

.ptw-author-block__avatar {
	flex: 0 0 auto;
}

.ptw-author-block__avatar img {
	display: block;
	width: 6rem;
	height: 6rem;
	border-radius: var(--ptw-radius-pill);
	object-fit: cover;
}

.ptw-author-block__content {
	min-width: 0;
}

.ptw-related-section {
	padding-top: var(--ptw-space-6);
	border-top: var(--ptw-border-width-sm) solid var(--ptw-color-border);
}

.ptw-related-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--ptw-space-4);
}

.ptw-previous-next {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ptw-space-4);
}

.ptw-previous-next__link {
	min-height: 4.75rem;
	overflow-wrap: anywhere;
}

.ptw-previous-next__label {
	color: var(--ptw-color-text-secondary);
	font-size: var(--ptw-font-size-xs);
	font-weight: var(--ptw-font-weight-bold);
	text-transform: uppercase;
}

.ptw-previous-next__title {
	margin-top: var(--ptw-space-1);
	color: var(--ptw-color-text-primary);
	font-weight: var(--ptw-font-weight-bold);
	line-height: var(--ptw-line-height-tight);
}

.ptw-page-shell a:focus-visible {
	outline: var(--ptw-border-width-md) solid var(--ptw-color-focus);
	outline-offset: var(--ptw-space-1);
	box-shadow: var(--ptw-shadow-focus);
}

@media (min-width: 48rem) {
	.ptw-content-container {
		width: min(100% - (var(--ptw-space-8) * 2), 1160px);
	}
}

@media (min-width: 64rem) {
	.ptw-content-layout--with-aside {
		grid-template-columns: minmax(0, 48rem) minmax(14rem, 1fr);
		align-items: start;
	}
}

@media (max-width: 40rem) {
	.ptw-page-shell {
		margin-block: var(--ptw-space-4);
	}

	.ptw-editorial-header {
		padding-block: var(--ptw-space-3) var(--ptw-space-5);
	}

	.ptw-editorial-header__title {
		font-size: var(--ptw-font-size-3xl);
	}

	.ptw-author-block {
		flex-direction: column;
	}

	.ptw-previous-next {
		grid-template-columns: 1fr;
	}
}
