/**
 * News likes & comments - Anstey Horne Connect.
 * Purple #672e6b, grey #898a8d (as used by the existing custom CSS).
 */

/* ---- Like button + comment count ---------------------------------------- */

.ah-engage {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #672e6b;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1;
}

.ah-engage .ah-like,
.ah-engage .ah-comments {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: 400;
	text-decoration: none;
	cursor: pointer;
	transform: none;
}

.ah-engage .ah-like:hover,
.ah-engage .ah-comments:hover {
	background: none;
	box-shadow: none;
	color: #672e6b;
	transform: none;
}

.ah-engage .ah-like:focus-visible,
.ah-engage .ah-comments:focus-visible {
	outline: 2px solid #672e6b;
	outline-offset: 3px;
	border-radius: 3px;
}

.ah-icon {
	width: 1.2em;
	height: 1.2em;
	flex: none;
}

/* Icons are full purple as in the design; a liked article gets a soft pill
   behind it (negative margin keeps the layout from shifting). */
.ah-engage .ah-like {
	margin: -4px -8px;
	padding: 4px 8px;
	border-radius: 50px;
	transition: background-color 0.2s ease;
}

.ah-engage .ah-like.is-liked {
	background: rgba(103, 46, 107, 0.12);
}

.ah-engage .ah-like:hover {
	background: rgba(103, 46, 107, 0.08);
}

.ah-engage .ah-like.is-liked:hover {
	background: rgba(103, 46, 107, 0.18);
}

.ah-like.is-busy {
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.ah-like.is-liked .ah-icon {
		animation: ah-pop 0.25s ease-out;
	}
}

@keyframes ah-pop {
	50% {
		transform: scale(1.25);
	}
}

/* ---- News cards (listing) ------------------------------------------------ */

/* Sits on the "Read more" row, right-aligned, as per the design. */
.ah-engage--card {
	position: absolute;
	right: 0;
	bottom: 0;
	min-height: 25px; /* same height as the READ MORE pill so they centre together */
}

/* ---- Single post ---------------------------------------------------------- */

.single main#content .ah-engage--single {
	margin: 2em 0 0;
	padding: 1.2em 0;
	border-top: 1px solid rgba(103, 46, 107, 0.2);
	font-size: 16px;
}

.ah-engage--single .ah-like .ah-count {
	min-width: 1.4em;
	padding: 2px 7px;
	border-radius: 50px;
	background: rgba(103, 46, 107, 0.1);
	text-align: center;
}

/* ---- Comments ------------------------------------------------------------- */

.single main#content .commentwrap {
	margin: 1em 0 3em;
	padding-top: 1.5em;
	font-size: 16px;
	line-height: 1.5;
}

.commentwrap .comment-title,
.commentwrap .comment-reply-title {
	margin: 0 0 1em;
	color: #672e6b;
	font-family: inherit;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.commentwrap .commentlist {
	margin: 0 0 2.5em;
	padding: 0;
	list-style: none;
}

.commentwrap .commentlist li {
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
}

.commentwrap .commentlist .children {
	margin: 1em 0 0 2.5em;
	padding: 0;
	list-style: none;
}

.commentwrap .commentlist .comment-avatar,
.commentwrap .commentlist .avatar {
	border-radius: 50%;
}

.commentwrap .commentlist .commententry,
.commentwrap .commentlist .comment-body {
	min-height: 0;
	padding: 1.1em 1.4em;
	border-radius: 12px;
	background: #f3eef4;
	color: #000;
}

.commentwrap .commentlist a {
	color: #672e6b;
}

.commentwrap .commentlist .comment-author,
.commentwrap .commentlist .comment-author cite {
	color: #672e6b;
	font-style: normal;
	font-weight: 700;
}

.commentwrap .commentlist .comment-author {
	margin: 0 0 0.4em;
	line-height: 1.3;
}

.commentwrap .commentlist .comment-author .tf_fa {
	display: none; /* Themify's bookmark icon */
}

.commentwrap .commentlist .comment-time {
	color: #898a8d;
	font-size: 0.8em;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.commentwrap .commentlist .commententry p:last-child {
	margin-bottom: 0;
}

.commentwrap .commentlist p.reply {
	margin: 0.4em 0 0;
}

.commentwrap .commentlist p.reply:empty {
	display: none;
}

.commentwrap .commentlist .comment-reply-link,
.commentwrap .commentlist .comment-edit-link {
	font-size: 0.85em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Form */

.commentwrap .comment-respond {
	margin: 0;
}

.commentwrap .comment-form p {
	margin: 0 0 1em;
}

.commentwrap .comment-form label {
	display: block;
	margin: 0 0 0.3em;
	color: #672e6b;
	font-size: 0.85em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.commentwrap .comment-form input[type="text"],
.commentwrap .comment-form input[type="email"],
.commentwrap .comment-form textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.75em 1em;
	border: 1px solid rgba(103, 46, 107, 0.35);
	border-radius: 10px;
	background: #fff;
	color: #000;
	font: inherit;
}

.commentwrap .comment-form textarea {
	min-height: 9em;
}

.commentwrap .comment-form input[type="text"]:focus,
.commentwrap .comment-form input[type="email"]:focus,
.commentwrap .comment-form textarea:focus {
	border-color: #672e6b;
	outline: 2px solid rgba(103, 46, 107, 0.25);
	outline-offset: 0;
}

.commentwrap .comment-form .comment-form-comment {
	clear: both;
}

@media (min-width: 761px) {
	.commentwrap .comment-form .comment-form-author,
	.commentwrap .comment-form .comment-form-email {
		float: left;
		width: calc(50% - 8px);
	}

	.commentwrap .comment-form .comment-form-email {
		margin-left: 16px;
	}
}

.commentwrap .comment-form .form-submit {
	clear: both;
	padding-top: 1em;
}

/* Grey pill buttons, purple on hover - same as the site's READ MORE buttons. */
.commentwrap .comment-form .submit,
.commentwrap .comment-form input[type="submit"] {
	padding: 9px 24px;
	border: 0;
	border-radius: 50px;
	background-color: #898a8d;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.commentwrap .comment-form .submit:hover,
.commentwrap .comment-form input[type="submit"]:hover,
.commentwrap .comment-form .submit:focus-visible {
	background-color: #672e6b;
	box-shadow: none;
	color: #fff;
	transform: none;
}

.commentwrap .logged-in-as,
.commentwrap .must-log-in,
.commentwrap .comment-notes {
	color: #898a8d;
	font-size: 0.9em;
}
