/* AE Tools engagement: post/News likes and the shared comment section.
 * Colours inherit from the active theme (currentColor / transparent) so the
 * controls blend with posts and News items without hard-coded palette values.
 * Works in light and dark themes. */

/* ---- Likes (posts and News) -------------------------------------------- */

.aeqn-like-wrap {
	margin: 1.4rem 0 0;
	display: flex;
	justify-content: flex-end;
}

.aeqn-like-control {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.aeqn-like-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 2.25rem;
	margin: 0;
	padding: 0.35rem 0.7rem;
	border: 1px solid currentColor;
	border-radius: 0.35rem;
	background: transparent;
	color: inherit;
	box-shadow: none;
	font: inherit;
	font-size: 0.86em;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.aeqn-like-button:hover:not(:disabled),
.aeqn-like-button.aeqn-is-liked {
	background: rgba(127, 127, 127, 0.12);
}

.aeqn-like-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.aeqn-like-button:disabled {
	cursor: default;
	opacity: 0.65;
}

.aeqn-like-button.aeqn-is-liked:disabled {
	opacity: 1;
}

.aeqn-like-button[aria-busy="true"] {
	cursor: progress;
}

.aeqn-like-icon {
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
}

.aeqn-like-count {
	min-width: 1ch;
	font-variant-numeric: tabular-nums;
}

.aeqn-like-feedback {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.aeqn-like-noscript {
	margin-left: 0.5rem;
	font-size: 0.75em;
}

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

.ae-comments {
	margin: 2.4rem 0 0;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.ae-comments-heading {
	margin: 0 0 1rem;
	font-size: 1.15em;
}

.ae-comments-list {
	margin: 0 0 1.8rem;
	padding: 0;
	list-style: none;
}

.ae-comment {
	margin: 0 0 1.1rem;
	padding: 0 0 1.1rem;
	border-bottom: 1px solid rgba(127, 127, 127, 0.18);
}

.ae-comment:last-child {
	border-bottom: 0;
}

.ae-comment-meta {
	margin: 0 0 0.35rem;
	font-size: 0.85em;
	opacity: 0.85;
}

.ae-comment-author {
	font-weight: 700;
}

.ae-comment-sep {
	margin: 0 0.45rem;
	opacity: 0.6;
}

.ae-comment-body {
	margin: 0;
	overflow-wrap: anywhere;
}

.ae-comments-empty,
.ae-comments-capped {
	margin: 0 0 1.4rem;
	opacity: 0.8;
}

.ae-comment-form {
	max-width: 42rem;
}

.ae-comment-form-title {
	margin: 0 0 0.8rem;
	font-size: 1.05em;
}

.ae-comment-field {
	margin: 0 0 0.9rem;
}

.ae-comment-field label {
	display: block;
	margin: 0 0 0.3rem;
	font-size: 0.9em;
	font-weight: 600;
}

.ae-comment-field input,
.ae-comment-field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 1px solid rgba(127, 127, 127, 0.45);
	border-radius: 0.3rem;
	background: transparent;
	color: inherit;
	font: inherit;
}

.ae-comment-field textarea {
	min-height: 7rem;
	resize: vertical;
}

.ae-required {
	opacity: 0.7;
}

/* Honeypot: visually and from assistive tech, but present in the DOM. */
.ae-comment-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ae-comment-actions {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex-wrap: wrap;
	margin: 0;
}

.ae-comment-submit {
	display: inline-flex;
	align-items: center;
	min-height: 2.4rem;
	padding: 0.4rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 0.35rem;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ae-comment-submit:hover:not(:disabled) {
	background: rgba(127, 127, 127, 0.12);
}

.ae-comment-submit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ae-comment-submit:disabled {
	cursor: progress;
	opacity: 0.7;
}

.ae-comment-feedback {
	font-size: 0.9em;
}

.ae-comment-noscript {
	display: block;
	margin-top: 0.6rem;
	font-size: 0.85em;
	opacity: 0.85;
}
