/**
 * Window Smart Home - single post template
 * Featured photo, article column, tags, author box, post navigation,
 * comments.
 * (The shared page banner and its .wsh-single__meta row live in
 * assets/css/page-banner.css. .wsh-section--tight and .wsh-single__col
 * live in base.css. Related articles reuse .wsh-grid and .wsh-entry from
 * base.css.)
 */

/* ==========================================================================
   2. Featured photo + article column
   ========================================================================== */

.wsh-single__photo img {
	width: 100%;
	border-radius: var(--wsh-radius-xl);
	max-height: 28rem;
	object-fit: cover;
}

/* ==========================================================================
   3. Tags + author box
   ========================================================================== */

.wsh-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wsh-space-2);
	margin-top: var(--wsh-space-8);
}

.wsh-single__tags a {
	border-radius: var(--wsh-radius-pill);
	background: var(--wsh-grey-50);
	padding: var(--wsh-space-1) var(--wsh-space-4);
	color: var(--wsh-grey-500);
	font-size: var(--wsh-fs-sm);
	text-decoration: none;
	transition: background-color var(--wsh-transition), color var(--wsh-transition);
}

.wsh-single__tags a:hover {
	background: var(--wsh-blue);
	color: var(--wsh-white);
}

.wsh-author-box {
	display: flex;
	align-items: flex-start;
	gap: var(--wsh-space-4);
	margin-top: var(--wsh-space-10);
	border-radius: var(--wsh-radius-lg);
	background: var(--wsh-grey-50);
	padding: var(--wsh-space-6);
}

.wsh-author-box__avatar {
	flex: 0 0 auto;
	border-radius: var(--wsh-radius-circle);
}

.wsh-author-box__name {
	display: block;
	margin-bottom: var(--wsh-space-2);
	color: var(--wsh-ink);
	font-weight: var(--wsh-fw-semibold);
}

.wsh-author-box__bio {
	margin: 0;
	color: var(--wsh-grey-500);
	font-size: var(--wsh-fs-sm);
}

/* ==========================================================================
   4. Prev / next post navigation
   ========================================================================== */

.post-navigation {
	margin-top: var(--wsh-space-10);
	padding-top: var(--wsh-space-8);
	border-top: var(--wsh-border);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wsh-space-6);
}

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

.post-navigation a {
	display: block;
	text-decoration: none;
}

.wsh-post-nav__label {
	display: block;
	margin-bottom: var(--wsh-space-1);
	color: var(--wsh-blue);
	font-size: var(--wsh-fs-xs);
	font-weight: var(--wsh-fw-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wsh-post-nav__title {
	display: block;
	color: var(--wsh-ink);
	font-weight: var(--wsh-fw-semibold);
}

.post-navigation a:hover .wsh-post-nav__title {
	color: var(--wsh-blue);
}

@media (max-width: 560px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

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

/* ==========================================================================
   5. Related articles
   ========================================================================== */

.wsh-related-section {
	background: var(--wsh-grey-50);
}

/* ==========================================================================
   6. Comments
   ========================================================================== */

.wsh-comments-wrap {
	max-width: 46rem;
	margin: var(--wsh-space-16) auto 0;
}

.wsh-comments__title {
	margin-bottom: var(--wsh-space-6);
	font-size: var(--wsh-fs-h4);
}

.wsh-comments__closed {
	color: var(--wsh-grey-500);
}

.wsh-comment-list,
.wsh-comment-list ul.children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wsh-comment-list ul.children {
	margin-top: var(--wsh-space-5);
	padding-left: var(--wsh-space-8);
}

.wsh-comment-list > li + li,
.wsh-comment-list li li + li {
	margin-top: var(--wsh-space-5);
}

.comment-body {
	border-radius: var(--wsh-radius-lg);
	background: var(--wsh-grey-50);
	padding: var(--wsh-space-5);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: var(--wsh-space-3);
	margin-bottom: var(--wsh-space-2);
}

.comment-author .avatar {
	border-radius: var(--wsh-radius-circle);
}

.comment-author .fn {
	font-style: normal;
	font-weight: var(--wsh-fw-semibold);
	color: var(--wsh-ink);
}

.comment-metadata {
	margin-bottom: var(--wsh-space-3);
	color: var(--wsh-grey-500);
	font-size: var(--wsh-fs-xs);
}

.comment-metadata a {
	color: inherit;
}

.comment-content p {
	margin-bottom: var(--wsh-space-3);
	color: var(--wsh-grey-500);
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-reply-link {
	display: inline-block;
	margin-top: var(--wsh-space-3);
	color: var(--wsh-blue);
	font-size: var(--wsh-fs-sm);
	font-weight: var(--wsh-fw-semibold);
}

.wsh-comment-form {
	margin-top: var(--wsh-space-10);
}

.wsh-comment-form .comment-reply-title {
	margin-bottom: var(--wsh-space-5);
	font-size: var(--wsh-fs-h5);
}

.wsh-comment-form p {
	margin-bottom: var(--wsh-space-4);
}

.wsh-comment-form .comment-notes,
.wsh-comment-form .comment-form-cookies-consent {
	color: var(--wsh-grey-500);
	font-size: var(--wsh-fs-sm);
}

.wsh-comment-form label {
	display: block;
	margin-bottom: var(--wsh-space-2);
	font-size: var(--wsh-fs-sm);
	font-weight: var(--wsh-fw-medium);
}

.wsh-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: var(--wsh-space-2);
}

.wsh-comment-form .comment-form-cookies-consent label {
	margin: 0;
}
