/* Editorial pages, archives, search, statuses, pagination and comments. */
.bl-site-main > .bl-container--reading,
.bl-site-main .bl-container--reading {
	width: min(100%, var(--bl-container-reading));
	margin-inline: auto;
}

.bl-site-main > .bl-container--default,
.bl-site-main .bl-container--default {
	width: min(100%, var(--bl-container-default));
	margin-inline: auto;
}

.bl-site-main > .bl-container--wide,
.bl-site-main .bl-container--wide {
	width: min(100%, var(--bl-container-wide));
	margin-inline: auto;
}

.bl-page__content--full-width {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin-inline: 0;
}

.bl-page-header {
	margin-bottom: clamp(var(--bl-space-7), 6vw, var(--bl-space-9));
}

.bl-page-header--archive,
.bl-page-header--search {
	max-width: var(--bl-container-wide);
}

.bl-page-header__eyebrow,
.bl-entry-category {
	display: inline-flex;
	margin: 0 0 var(--bl-space-3);
	color: var(--bl-color-accent);
	font-size: var(--bl-font-size-xs);
	font-weight: var(--bl-font-weight-bold);
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

.bl-page-title,
.bl-entry-title,
.bl-comments-title,
.bl-status :where(h1, h2) {
	margin: 0;
	color: var(--bl-color-text);
	font-family: var(--bl-font-family-heading);
	font-weight: var(--bl-font-weight-bold);
	letter-spacing: -0.035em;
	line-height: var(--bl-line-height-heading);
}

.bl-page-title,
.bl-entry--single .bl-entry-title,
.bl-entry--page .bl-entry-title,
.bl-status h1 {
	font-size: var(--bl-font-size-4xl);
}

.bl-status h2,
.bl-comments-title {
	font-size: var(--bl-font-size-2xl);
}

.bl-archive-description {
	max-width: var(--bl-container-reading);
	margin-top: var(--bl-space-4);
	color: var(--bl-color-text-secondary);
}

.bl-search-results__count {
	margin: var(--bl-space-3) 0 var(--bl-space-5);
	color: var(--bl-color-text-muted);
	font-size: var(--bl-font-size-sm);
}

.bl-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(var(--bl-space-5), 3vw, var(--bl-space-7));
}

.bl-post-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border: 1px solid var(--bl-color-border);
	border-radius: var(--bl-radius-lg);
	background: var(--bl-color-surface);
	box-shadow: var(--bl-shadow-sm);
	transition: border-color var(--bl-transition-base) var(--bl-ease-out), background-color var(--bl-transition-base) var(--bl-ease-out);
}

.bl-post-card:hover {
	border-color: var(--bl-color-border-strong);
	background: var(--bl-color-surface-raised);
}

.bl-post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: clip;
	border-radius: calc(var(--bl-radius-lg) - 1px) calc(var(--bl-radius-lg) - 1px) 0 0;
	background: var(--bl-color-bg-subtle);
}

.bl-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bl-post-card__content {
	display: flex;
	min-height: 15rem;
	flex: 1 1 auto;
	flex-direction: column;
	padding: clamp(var(--bl-space-4), 3vw, var(--bl-space-6));
}

.bl-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bl-space-2) var(--bl-space-3);
	margin-bottom: var(--bl-space-3);
	color: var(--bl-color-text-muted);
	font-size: var(--bl-font-size-xs);
}

.bl-post-card__category {
	color: var(--bl-color-accent);
	font-weight: var(--bl-font-weight-semibold);
	text-decoration: none;
}

.bl-post-card__date::before {
	margin-right: var(--bl-space-2);
	color: var(--bl-color-border-strong);
	content: "•";
}

.bl-post-card__title {
	margin: 0;
	font-family: var(--bl-font-family-heading);
	font-size: var(--bl-font-size-xl);
	font-weight: var(--bl-font-weight-bold);
	letter-spacing: -0.025em;
	line-height: var(--bl-line-height-heading);
}

.bl-post-card__title a {
	color: var(--bl-color-text);
	text-decoration: none;
}

.bl-post-card__title a:hover {
	color: var(--bl-color-text-secondary);
}

.bl-post-card__excerpt {
	margin-top: var(--bl-space-4);
	color: var(--bl-color-text-secondary);
	font-size: var(--bl-font-size-sm);
}

.bl-post-card__excerpt p {
	margin: 0;
}

.bl-post-card__link {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	align-self: flex-start;
	gap: var(--bl-space-2);
	margin-top: auto;
	padding-top: var(--bl-space-5);
	color: var(--bl-color-accent);
	font-size: var(--bl-font-size-sm);
	font-weight: var(--bl-font-weight-semibold);
	text-decoration: none;
}

.bl-entry--page {
	margin-inline: auto;
}

.bl-entry-header {
	margin-bottom: var(--bl-space-7);
}

.bl-entry--single .bl-entry-header {
	padding-top: clamp(var(--bl-space-3), 3vw, var(--bl-space-6));
	text-align: center;
}

.bl-entry--single .bl-entry-category {
	justify-content: center;
}

.bl-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--bl-space-2) var(--bl-space-4);
	margin-top: var(--bl-space-4);
	color: var(--bl-color-text-muted);
	font-size: var(--bl-font-size-sm);
}

.bl-entry-meta a {
	color: inherit;
	text-decoration: none;
}

.bl-entry-meta a:hover {
	color: var(--bl-color-text);
}

.bl-entry-excerpt {
	max-width: 42rem;
	margin: var(--bl-space-5) auto 0;
	color: var(--bl-color-text-secondary);
	font-size: var(--bl-font-size-body);
	line-height: var(--bl-line-height-body);
}

.bl-entry-thumbnail {
	display: block;
	overflow: clip;
	border-radius: var(--bl-radius-lg);
	background: var(--bl-color-bg-subtle);
}

.bl-entry-thumbnail--page {
	margin: 0 0 var(--bl-space-7);
}

.bl-entry-thumbnail--hero {
	margin-bottom: clamp(var(--bl-space-7), 6vw, var(--bl-space-9));
}

.bl-entry-thumbnail img {
	width: 100%;
}

.bl-entry-content > .alignwide,
.bl-entry-content > .wp-block-group.alignwide {
	width: min(var(--bl-container-wide), calc(100vw - (2 * var(--bl-gutter))));
	max-width: none;
	margin-inline: calc((min(100vw - (2 * var(--bl-gutter)), var(--bl-container-wide)) - 100%) / -2);
}

.bl-entry-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.bl-page--full-width .bl-entry-content > .alignfull {
	width: 100%;
	margin-inline: 0;
}

.bl-entry-footer {
	margin-top: var(--bl-section-space-small);
	padding-top: var(--bl-space-6);
	border-top: 1px solid var(--bl-color-border);
}

.bl-entry-footer__terms {
	display: grid;
	gap: var(--bl-space-2);
}

.bl-entry-taxonomy {
	color: var(--bl-color-text-muted);
	font-size: var(--bl-font-size-sm);
}

.bl-entry-taxonomy__label {
	margin-right: var(--bl-space-2);
	color: var(--bl-color-text-secondary);
	font-weight: var(--bl-font-weight-semibold);
}

.bl-entry-taxonomy a {
	color: inherit;
	text-decoration: none;
}

.bl-entry-taxonomy a:hover {
	color: var(--bl-color-text);
}

.bl-status {
	padding: clamp(var(--bl-space-5), 5vw, var(--bl-space-8));
	border: 1px solid var(--bl-color-border);
	border-radius: var(--bl-radius-lg);
	background: var(--bl-color-surface);
}

.bl-status--not-found {
	text-align: center;
}

.bl-status__code {
	margin: 0 0 var(--bl-space-2);
	color: var(--bl-color-text-muted);
	font-family: var(--bl-font-family-heading);
	font-size: var(--bl-font-size-display);
	font-weight: var(--bl-font-weight-bold);
	letter-spacing: -0.055em;
	line-height: var(--bl-line-height-tight);
}

.bl-status > p:not(.bl-status__code) {
	max-width: 40rem;
	margin: var(--bl-space-4) auto 0;
	color: var(--bl-color-text-secondary);
}

.bl-status__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bl-space-3);
	margin-top: var(--bl-space-6);
}

.bl-status__search {
	max-width: 36rem;
	margin: var(--bl-space-7) auto 0;
	padding-top: var(--bl-space-6);
	border-top: 1px solid var(--bl-color-border);
	text-align: left;
}

.bl-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	max-width: 38rem;
	align-items: end;
	gap: var(--bl-space-3);
}

.bl-search-form__label {
	display: grid;
	gap: var(--bl-space-2);
}

.bl-search-form__label-text {
	color: var(--bl-color-text);
	font-size: var(--bl-font-size-sm);
	font-weight: var(--bl-font-weight-semibold);
}

:where(.bl-search-form, .bl-comments-area .comment-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--bl-control-height);
	padding: 0.625rem var(--bl-space-3);
	border: 1px solid var(--bl-color-border-strong);
	border-radius: var(--bl-radius-md);
	background: var(--bl-color-bg-soft);
	box-shadow: none;
	color: var(--bl-color-text);
	font: inherit;
	line-height: 1.4;
}

:where(.bl-search-form, .bl-comments-area .comment-form) :where(input, textarea)::placeholder {
	color: var(--bl-color-text-muted);
	opacity: 1;
}

:where(.bl-search-form, .bl-comments-area .comment-form) :where(input:not([type="hidden"]), textarea):focus-visible {
	border-color: var(--bl-color-accent);
	outline: var(--bl-focus-width) solid var(--bl-color-accent);
	outline-offset: 1px;
}

.navigation.pagination .nav-links,
.post-navigation .nav-links,
.comment-navigation .nav-links,
.bl-page-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bl-space-2);
	margin: var(--bl-space-7) auto 0;
}

.navigation.pagination .page-numbers,
.post-navigation a,
.comment-navigation a,
.bl-page-links > :where(a, span) {
	display: inline-flex;
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: var(--bl-space-2) var(--bl-space-3);
	border: 1px solid var(--bl-color-border);
	border-radius: var(--bl-radius-md);
	background: transparent;
	color: var(--bl-color-text-secondary);
	font-size: var(--bl-font-size-sm);
	font-weight: var(--bl-font-weight-medium);
	text-decoration: none;
}

.navigation.pagination a.page-numbers:hover,
.post-navigation a:hover,
.comment-navigation a:hover,
.bl-page-links > a:hover {
	border-color: var(--bl-color-border-strong);
	background: var(--bl-color-surface-hover);
	color: var(--bl-color-text);
}

.navigation.pagination .page-numbers.current,
.bl-page-links > .current {
	border-color: var(--bl-color-accent);
	background: var(--bl-color-accent-soft);
	color: var(--bl-color-text);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	width: min(100%, 20rem);
}

.post-navigation .nav-next {
	margin-left: auto;
	text-align: right;
}

.post-navigation a {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
}

.post-navigation .nav-next a {
	align-items: flex-end;
}

.bl-post-navigation__label {
	color: var(--bl-color-text-muted);
	font-size: var(--bl-font-size-xs);
}

.bl-post-navigation__title {
	color: var(--bl-color-text);
	font-weight: var(--bl-font-weight-semibold);
}

/* Individual articles share the wide editorial shell used by Latest Articles. */
.bl-single-post__shell {
	width: min(100%, var(--bl-container-wide));
	box-sizing: border-box;
	margin-inline: auto;
	padding-inline: var(--bl-gutter);
}

.bl-single-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18.75rem, 22.5rem);
	gap: clamp(3rem, 5vw, 4.5rem);
	align-items: start;
}

.bl-single-post__layout--sidebar-left {
	grid-template-columns: minmax(18.75rem, 22.5rem) minmax(0, 1fr);
}

.bl-single-post__layout--sidebar-left .bl-single-post__content {
	grid-column: 2;
}

.bl-single-post__layout--sidebar-left .bl-single-post__sidebar {
	grid-column: 1;
	grid-row: 1;
}

.bl-single-post__layout--sidebar-disabled {
	display: block;
}

.bl-single-post__layout--sidebar-disabled .bl-single-post__content {
	width: min(100%, var(--bl-container-reading));
	margin-inline: auto;
}

.bl-single-post__content {
	min-width: 0;
}

.bl-single-post__sidebar {
	min-width: 0;
}

.bl-single-post__layout--sticky .bl-article-sidebar__inner {
	position: sticky;
	top: calc(var(--bl-header-height, 0px) + var(--bl-space-5));
}

.bl-article-sidebar__module + .bl-article-sidebar__module,
.bl-article-sidebar__inner > * + * {
	margin-top: var(--bl-space-6);
	padding-top: var(--bl-space-6);
	border-top: 1px solid var(--bl-color-border);
}

.bl-article-sidebar__title,
.bl-article-sidebar__inner :where(h2, h3, .wp-block-heading) {
	margin: 0 0 var(--bl-space-3);
	color: var(--bl-color-text);
	font-family: var(--bl-font-family-heading);
	font-size: var(--bl-font-size-lg);
	line-height: var(--bl-line-height-heading);
}

.bl-single-post__sidebar .wp-block-latest-posts,
.bl-single-post__sidebar .wp-block-categories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bl-single-post__sidebar :where(.wp-block-latest-posts, .wp-block-categories) li + li {
	margin-top: var(--bl-space-3);
}

.bl-single-post__sidebar :where(.wp-block-latest-posts, .wp-block-categories) a {
	color: var(--bl-color-text-secondary);
	text-decoration: none;
}

.bl-single-post__sidebar :where(.wp-block-latest-posts, .wp-block-categories) a:hover {
	color: var(--bl-color-text);
}

.bl-single-post__sidebar .wp-block-latest-posts__featured-image img,
.bl-single-post__sidebar .wp-block-image img,
.bl-single-post__sidebar .wp-block-video video {
	width: 100%;
	height: auto;
}

.bl-single-post__sidebar .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.bl-single-post__sidebar .wp-block-embed__wrapper :where(iframe, object, embed) {
	width: 100%;
	height: 100%;
}

.bl-single-post__recommended {
	width: 100%;
	margin-top: clamp(3.5rem, 8vw, 6rem);
	padding: 0;
}

.bl-single-post__shell > .bl-comments-area {
	margin-top: clamp(3.5rem, 8vw, 6rem);
	padding-bottom: var(--bl-section-space-small);
}

.post-navigation a {
	border-color: var(--bl-color-border-strong);
	background: var(--bl-color-bg-soft);
}

.post-navigation a:hover {
	border-color: var(--bl-color-accent);
	background: var(--bl-color-accent-soft);
}

.bl-comments-area {
	margin-top: var(--bl-section-space-small);
	padding-top: var(--bl-space-7);
	border-top: 1px solid var(--bl-color-border);
}

.bl-comments-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bl-space-3);
}

.bl-comments-title {
	display: flex;
	align-items: center;
	gap: var(--bl-space-3);
	margin: 0;
}

.bl-comments-count {
	display: inline-flex;
	min-width: 1.75rem;
	height: 1.75rem;
	align-items: center;
	justify-content: center;
	padding-inline: var(--bl-space-2);
	border: 1px solid var(--bl-color-border);
	border-radius: var(--bl-radius-pill);
	background: var(--bl-color-bg-subtle);
	color: var(--bl-color-text-secondary);
	font-family: var(--bl-font-family-base);
	font-size: var(--bl-font-size-xs);
}

.bl-comment-composer {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: var(--bl-space-4);
	align-items: start;
	margin-top: var(--bl-space-5);
}

.bl-comment-composer > .avatar,
.bl-comment-composer__placeholder {
	width: 48px;
	height: 48px;
	border-radius: var(--bl-radius-pill);
	background: var(--bl-color-bg-subtle);
}

.bl-comment-composer__form {
	min-width: 0;
}

.bl-comment-list,
.bl-comment-list .children {
	margin: var(--bl-space-6) 0 0;
	padding: 0;
	list-style: none;
}

.bl-comment-list .children {
	padding-left: var(--bl-space-5);
}

.bl-comment-list .comment-body {
	padding-block: var(--bl-space-5);
	border-bottom: 1px solid var(--bl-color-border);
}

.bl-comment-list .comment-meta {
	margin-bottom: var(--bl-space-3);
	color: var(--bl-color-text-muted);
	font-size: var(--bl-font-size-sm);
}

.bl-comment-list :where(.comment-metadata a, .comment-content a, .reply a),
.bl-comments-area :where(.logged-in-as a, #cancel-comment-reply-link) {
	text-decoration: none;
}

.bl-comment-list .comment-metadata a,
.bl-comments-area .logged-in-as a {
	color: inherit;
}

.bl-comment-list :where(.comment-metadata a, .comment-content a, .reply a):hover,
.bl-comments-area :where(.logged-in-as a, #cancel-comment-reply-link):hover {
	color: var(--bl-color-accent-hover);
}

.bl-comment-list .comment-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bl-space-2);
	color: var(--bl-color-text);
	font-weight: var(--bl-font-weight-semibold);
}

.bl-comment-list .avatar {
	border-radius: var(--bl-radius-pill);
}

.bl-comment-list .comment-awaiting-moderation {
	display: inline-block;
	margin-top: var(--bl-space-2);
	color: var(--bl-color-warning);
	font-size: var(--bl-font-size-sm);
}

.bl-comment-list .reply a {
	color: var(--bl-color-accent);
	font-size: var(--bl-font-size-sm);
	font-weight: var(--bl-font-weight-semibold);
}

.bl-comments-closed {
	margin: var(--bl-space-5) 0 0;
	color: var(--bl-color-text-muted);
}

.bl-comments-area .comment-respond {
	margin-top: 0;
}

.bl-comments-area .comment-reply-title {
	margin: 0;
	font-family: var(--bl-font-family-heading);
	font-size: var(--bl-font-size-2xl);
	line-height: var(--bl-line-height-heading);
}

.bl-comments-area .comment-form {
	display: grid;
	gap: var(--bl-space-4);
	margin-top: var(--bl-space-5);
}

.bl-comments-area .comment-form > p {
	display: grid;
	gap: var(--bl-space-2);
	margin: 0;
}

.bl-comments-area .comment-form label {
	color: var(--bl-color-text);
	font-size: var(--bl-font-size-sm);
	font-weight: var(--bl-font-weight-semibold);
}

.bl-comments-area .comment-form textarea {
	min-height: 7rem;
	resize: vertical;
}

.bl-comments-area .comment-form-cookies-consent {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
}

.bl-comments-area .comment-form-cookies-consent input {
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.2rem;
	accent-color: var(--bl-color-accent);
}

.bl-comment-empty {
	margin: var(--bl-space-5) 0 0;
	color: var(--bl-color-text-muted);
}

.bl-comments-area :where(.comment-notes, .logged-in-as) {
	color: var(--bl-color-text-muted);
	font-size: var(--bl-font-size-sm);
}

.bl-comments-area .required,
.bl-comments-area .required-field-message {
	color: var(--bl-color-danger);
}

@media (max-width: 48rem) {
	.bl-page-header {
		margin-bottom: var(--bl-space-7);
	}

	.bl-entry-header {
		margin-bottom: var(--bl-space-6);
	}

	.bl-search-form {
		grid-template-columns: 1fr;
	}

	.bl-search-form__submit {
		width: 100%;
	}

	.post-navigation .nav-previous,
	.post-navigation .nav-next {
		width: 100%;
		margin-left: 0;
		text-align: left;
	}

	.post-navigation .nav-next a {
		align-items: flex-start;
	}

	.bl-comment-list .children {
		padding-left: var(--bl-space-3);
	}

	.bl-comment-composer {
		grid-template-columns: minmax(0, 1fr);
	}

	.bl-comment-composer > .avatar,
	.bl-comment-composer__placeholder {
		display: none;
	}

	.bl-single-post__layout,
	.bl-single-post__layout--sidebar-left {
		display: block;
	}

	.bl-single-post__layout--sidebar-left .bl-single-post__content,
	.bl-single-post__layout--sidebar-left .bl-single-post__sidebar {
		grid-column: auto;
		grid-row: auto;
	}

	.bl-single-post__sidebar {
		margin-top: var(--bl-section-space-small);
	}

	.bl-single-post__layout--sticky .bl-article-sidebar__inner {
		position: static;
	}
}

@media (max-width: 64rem) {
	.bl-single-post__layout,
	.bl-single-post__layout--sidebar-left {
		display: block;
	}

	.bl-single-post__layout--sidebar-left .bl-single-post__content,
	.bl-single-post__layout--sidebar-left .bl-single-post__sidebar {
		grid-column: auto;
		grid-row: auto;
	}

	.bl-single-post__sidebar {
		margin-top: var(--bl-section-space-small);
	}

	.bl-single-post__layout--sticky .bl-article-sidebar__inner {
		position: static;
	}
}

@media (max-width: 75rem) {
	.bl-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	.bl-post-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 30rem) {
	.bl-status__actions .bl-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bl-post-card {
		transition-duration: 0.01ms;
	}
}
