/**
 * Standard WordPress page, archive and content styling.
 */

.tw-content-shell > :where(.tw-entry--page, .tw-comments) {
	max-width: var(--tw-content);
	margin-inline: auto;
}

.tw-page-header {
	max-width: 920px;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.tw-page-header h1 {
	margin-bottom: 0;
}

.tw-archive-description {
	max-width: 70ch;
	color: var(--tw-color-muted);
	font-size: 1.1rem;
}

.tw-breadcrumbs {
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
	color: var(--tw-color-muted);
	font-size: 0.85rem;
}

.tw-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.tw-breadcrumbs li:not(:last-child)::after {
	margin-left: 0.4rem;
	color: var(--tw-color-border);
	content: "/";
}

.tw-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.tw-breadcrumbs a:hover {
	color: var(--tw-color-red);
}

.tw-entry {
	min-width: 0;
}

.tw-entry + .tw-entry,
.tw-post-list .tw-entry {
	padding: clamp(1.5rem, 3vw, 2.4rem);
	border: 1px solid var(--tw-color-border);
	border-radius: var(--tw-radius-lg);
	background: var(--tw-color-white);
	box-shadow: var(--tw-shadow-sm);
}

.tw-post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.tw-entry-title {
	overflow-wrap: normal;
	word-break: normal;
}

.tw-entry-title a {
	color: inherit;
	text-decoration: none;
}

.tw-entry-title a:hover {
	color: var(--tw-color-red);
}

.tw-entry-meta,
.tw-entry-kicker {
	margin-bottom: 0.7rem;
	color: var(--tw-color-muted);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tw-entry-image {
	margin: 1.5rem 0;
	overflow: hidden;
	border-radius: var(--tw-radius-md);
}

.tw-entry-image img {
	width: 100%;
}

.tw-entry-content {
	min-width: 0;
}

.tw-entry-content > :first-child {
	margin-top: 0;
}

.tw-entry-content > :last-child {
	margin-bottom: 0;
}

.tw-entry-content :where(img, iframe) {
	border-radius: var(--tw-radius-md);
}

.tw-entry-content .alignwide {
	width: min(var(--tw-container), calc(100vw - 2 * var(--tw-gutter)));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.tw-entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.tw-empty-state {
	display: grid;
	min-height: 46vh;
	align-content: center;
	justify-items: start;
	padding: clamp(2rem, 6vw, 5rem);
	border-radius: var(--tw-radius-lg);
	background: var(--tw-color-surface);
}

.tw-empty-state-code {
	margin: 0;
	color: var(--tw-color-red);
	font-size: clamp(4rem, 12vw, 9rem);
	font-weight: 900;
	line-height: 0.9;
}

.tw-empty-state p:not(.tw-empty-state-code) {
	max-width: 62ch;
	color: var(--tw-color-muted);
}

.tw-empty-state-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.tw-comments {
	padding-top: 3rem;
	margin-top: 4rem;
	border-top: 1px solid var(--tw-color-border);
}

.tw-comment-list {
	padding-left: 1.2rem;
}

.navigation.pagination {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	min-height: 42px;
	place-items: center;
	padding: 0.4rem;
	border: 1px solid var(--tw-color-border);
	border-radius: var(--tw-radius-sm);
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--tw-color-graphite);
	background: var(--tw-color-graphite);
	color: var(--tw-color-white);
}
