/**
 * Single editorial article layout.
 */

/* Hero */
.au-editorial-single__hero {
	margin-bottom: 1.25rem;
}

.au-editorial-single__hero .artunited-hero-title {
	margin-bottom: 0.75rem;
}

.au-editorial-hero-meta {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
}

.au-editorial-hero-meta__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--au-gray-600, #666);
}

.au-editorial-hero-meta__sep {
	color: var(--au-color-text-faint, #8c877f);
}

.au-editorial-hero-meta__author {
	color: var(--au-gray-900, #111);
}

.au-editorial-hero-meta .artunited-hero-meta__tag {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.au-editorial-hero-meta .artunited-hero-meta__tag:hover,
.au-editorial-hero-meta .artunited-hero-meta__tag:focus {
	opacity: 0.7;
}

/* Featured image */
.au-editorial-single__media {
	margin-bottom: 1.75rem;
}

.au-editorial-single__featured-image {
	width: 100%;
	max-width: var(--au-w-content, 100%);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 2px;
	background: var(--au-bg-muted, #fafafa);
}

.au-editorial-single__featured-img {
	display: block;
	width: 100%;
	height: auto;
}

/* Content shell */
.au-editorial-single__content-wrap {
	padding: 0 0 3rem;
}

.au-editorial-single__body .artunited-profile-layout__main {
	font-family: var(--au-font-sans);
}

.au-editorial-single .entry-content {
	font-family: var(--au-font-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.85;
	color: var(--au-gray-650, #666);
}

/* Reset Authentic / Canvas block margins inside editorial body copy */
.au-editorial-single-body .au-editorial-single .entry-content > *,
.au-editorial-single-body .au-editorial-single .entry-content .wp-block-column > *,
.au-editorial-single-body .au-editorial-single .entry-content .wp-block-group__inner-container > *,
.au-editorial-single-body .au-editorial-single .entry-content .cnvs-block-section-content-inner > * {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.au-editorial-single-body .au-editorial-single .entry-content > *:last-child,
.au-editorial-single-body .au-editorial-single .entry-content .wp-block-column > *:last-child,
.au-editorial-single-body .au-editorial-single .entry-content .wp-block-group__inner-container > *:last-child,
.au-editorial-single-body .au-editorial-single .entry-content .cnvs-block-section-content-inner > *:last-child {
	margin-bottom: 0;
}

.au-editorial-single .entry-content > *:first-child {
	margin-top: 0;
}

.au-editorial-single .entry-content h2,
.au-editorial-single .entry-content h3,
.au-editorial-single .entry-content h4,
.au-editorial-single .entry-content .wp-block-heading {
	color: var(--au-gray-900, #111);
	font-weight: 400;
	line-height: 1.25;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.au-editorial-single .entry-content > h2:first-child,
.au-editorial-single .entry-content > h3:first-child,
.au-editorial-single .entry-content > h4:first-child,
.au-editorial-single .entry-content > .wp-block-heading:first-child {
	margin-top: 0;
}

.au-editorial-single .entry-content p,
.au-editorial-single .entry-content ul,
.au-editorial-single .entry-content ol,
.au-editorial-single .entry-content blockquote,
.au-editorial-single .entry-content .wp-block-list {
	margin-bottom: 1.25rem;
}

.au-editorial-single .entry-content ul,
.au-editorial-single .entry-content ol,
.au-editorial-single .entry-content .wp-block-list {
	padding-left: 1.25rem;
}

.au-editorial-single .entry-content li + li {
	margin-top: 0.35rem;
}

.au-editorial-single .entry-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.5rem auto;
}

.au-editorial-single .entry-content figure {
	margin: 1.5rem 0;
}

.au-editorial-single .entry-content figure img {
	margin: 0 auto;
}

.au-editorial-single .entry-content a {
	color: var(--au-gray-900, #111);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.au-editorial-single .entry-content a:hover,
.au-editorial-single .entry-content a:focus {
	opacity: 0.65;
}

.au-editorial-page-links {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--au-color-border-light, #eee);
	color: var(--au-gray-600, #666);
	font-size: 0.875rem;
}

/* Sidebar */
.au-editorial-sidebar-desktop {
	flex: 0 0 280px;
	width: 280px;
	max-width: 100%;
}

.au-editorial-sidebar-desktop .artunited-profile-sidebar {
	flex: none;
	width: 100%;
}

@media (max-width: 782px) {
	.au-editorial-sidebar-desktop {
		display: none;
	}

	.au-editorial-single .artunited-profile-layout {
		flex-direction: column;
	}
}

/* Related articles */
.au-editorial-related {
	padding: 0 0 4rem;
}

.au-editorial-related__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.au-editorial-related__title {
	margin: 0;
	color: var(--au-gray-900, #111);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.2;
}

.au-editorial-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 481px) {
	.au-editorial-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 769px) {
	.au-editorial-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Comments */
.au-editorial-comments {
	padding: 0 0 4rem;
}

.au-editorial-comments .post-comments {
	margin-top: 0;
	padding: 0;
	background: transparent;
	border-top: 1px solid var(--au-color-border-light, #eee);
}

.au-editorial-comments .comment-respond {
	margin: 0;
	padding-top: 2rem;
}

.au-editorial-comments .comment-reply-title {
	margin: 0 0 1rem;
	color: var(--au-gray-900, #111);
	font-family: var(--au-font-sans);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.3;
}

.au-editorial-comments .comment-form {
	display: grid;
	gap: 1rem;
}

.au-editorial-comments .comment-form-comment textarea,
.au-editorial-comments .comment-form-author input,
.au-editorial-comments .comment-form-email input,
.au-editorial-comments .comment-form-url input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	font-family: var(--au-font-sans);
	font-size: 0.9375rem;
	border: 1px solid var(--au-color-border-subtle, #e0e0e0);
	border-radius: 2px;
	background: #fff;
}

.au-editorial-comments .form-submit .submit {
	padding: 0.65rem 1.25rem;
	font-family: var(--au-font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	color: #fff;
	background: var(--au-gray-900, #111);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}

@media (max-width: 768px) {
	.au-editorial-related__header {
		flex-direction: column;
		align-items: flex-start;
	}
}
