/**
 * Single article: share, post nav, author box, comments.
 */

.faro-article-share,
.faro-article-post-nav,
.faro-article-author,
.faro-comments {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid #eaecf0;
}

/* —— Share —— */
.faro-article-share__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #101828;
}

.faro-article-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.faro-article-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.faro-article-share__btn:hover,
.faro-article-share__btn:focus-visible {
	opacity: 0.92;
	transform: translateY(-1px);
}

.faro-article-share__btn.is-facebook { background: #1877f2; }
.faro-article-share__btn.is-x { background: #101828; }
.faro-article-share__btn.is-whatsapp { background: #25d366; }
.faro-article-share__btn.is-telegram { background: #26a5e4; }
.faro-article-share__btn.is-linkedin { background: #0a66c2; }
.faro-article-share__btn.is-email,
.faro-article-share__btn.is-copy { background: #667085; }

.faro-article-share__btn i {
	font-size: 18px;
	line-height: 1;
}

.faro-article-share__copy-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.faro-article-share__copy-toast {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	background: #ecfdf3;
	border: 1px solid #abefc6;
	color: #067647;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.faro-article-share__copy-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.faro-article-share__copy-toast.is-error {
	background: #fef3f2;
	border-color: #fecdca;
	color: #b42318;
}

.faro-article-share__btn.is-copy.is-copied {
	background: #079455;
}

.faro-article-share__btn.is-copy.has-copy-error {
	background: #d92d20;
}

/* —— Post navigation —— */
.faro-article-post-nav__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.faro-article-post-nav__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.faro-article-post-nav__label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #344054;
}

.faro-article-post-nav__col--next .faro-article-post-nav__label {
	justify-content: flex-end;
}

.faro-article-post-nav__title {
	display: block;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 500;
	color: #125099;
}

.faro-article-post-nav__col--next .faro-article-post-nav__title {
	text-align: right;
}

/* —— Author box —— */
.faro-article-author {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 20px 22px;
	border: 1px solid #eaecf0;
	border-radius: 8px;
	background: #fff;
}

.faro-article-author__photo-link {
	display: block;
	flex-shrink: 0;
}

.faro-article-author__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.faro-article-author__photo--placeholder {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: linear-gradient(135deg, #d0d5dd, #98a2b3);
}

.faro-article-author__name {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.faro-article-author__name a {
	color: #101828;
	text-decoration: none;
}

.faro-article-author__name a:hover {
	color: #125099;
}

.faro-article-author__byline {
	margin: 0 0 10px;
	font-size: 14px;
	color: #667085;
}

.faro-article-author__bio {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #344054;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* —— Comments —— */
.faro-comments__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 20px;
}

.faro-comments__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #101828;
}

.faro-comments__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.faro-comments__sort-label {
	font-size: 14px;
	color: #475467;
}

.faro-comments__sort select {
	min-width: 150px;
	padding: 8px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	color: #101828;
}

.faro-comments__form-wrap {
	margin-bottom: 28px;
}

.faro-comment-form {
	margin: 0;
}

.faro-comments-login-required {
	font-size: 15px;
	line-height: 1.5;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #f9fafb;
	margin-bottom: 20px;
}

.faro-comments-login-required__text {
	margin: 0;
}

.faro-comments-login-required__text a {
	color: #125099;
	text-decoration: underline;
	font-weight: 600;
}

.faro-comments-login-required__text a:hover {
	color: #0d3d7a;
}

.faro-comment-form__composer {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.faro-comment-form__avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: #eaecf0;
}

.faro-comment-form__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.faro-comment-form__avatar--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #d0d5dd, #98a2b3);
}

.faro-comment-form__main {
	flex: 1;
	min-width: 0;
}

.faro-comment-form__editor {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.faro-comment-form .comment-form-comment {
	margin: 0;
}

.faro-comment-form textarea {
	width: 100%;
	min-height: 110px;
	padding: 14px 16px;
	border: 0;
	resize: vertical;
	font-size: 15px;
	line-height: 1.5;
	font-family: inherit;
	color: #101828;
	background: transparent;
	box-shadow: none;
}

.faro-comment-form textarea:focus {
	outline: none;
}

.faro-comment-form__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px 10px;
	border-top: 1px solid #eaecf0;
}

.faro-comment-form__tools {
	display: flex;
	gap: 8px;
}

.faro-comment-form__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #667085;
	font-size: 18px;
	cursor: default;
}

.faro-comment-form__meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.faro-comment-form__counter {
	font-size: 13px;
	color: #667085;
}

.faro-comment-form__turnstile {
	margin-top: 12px;
}

.faro-comment-form__policy {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #667085;
}

.faro-comment-form .form-submit {
	margin: 12px 0 0;
	text-align: right;
}

.faro-comment-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 20px;
	border: 0;
	border-radius: 6px;
	background: #125099;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.faro-comment-form__submit:hover,
.faro-comment-form__submit:focus-visible {
	background: #0f4280;
}

.faro-comments__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.faro-comments__list .children {
	margin: 16px 0 0 56px;
	padding: 0;
	list-style: none;
}

.faro-comment {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.faro-comment__inner {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.faro-comment__avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.faro-comment__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.faro-comment__author {
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	color: #101828;
}

.faro-comment__time {
	font-size: 13px;
	color: #667085;
}

.faro-comment__content {
	font-size: 15px;
	line-height: 1.55;
	color: #344054;
}

.faro-comment__moderation {
	margin: 0 0 8px;
	font-size: 13px;
	color: #b54708;
}

.faro-comment__reply a {
	font-size: 13px;
	font-weight: 600;
	color: #125099;
	text-decoration: none;
}

.faro-comments__empty {
	padding: 36px 16px;
	text-align: center;
	color: #475467;
}

.faro-comments__empty-icon {
	margin-bottom: 12px;
	color: #98a2b3;
}

.faro-comments__empty-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #101828;
}

.faro-comments__empty-text {
	margin: 0;
	font-size: 15px;
}

@media (max-width: 768px) {
	.faro-article-post-nav__grid {
		grid-template-columns: 1fr;
	}

	.faro-article-post-nav__col--next .faro-article-post-nav__label,
	.faro-article-post-nav__col--next .faro-article-post-nav__title {
		text-align: left;
		justify-content: flex-start;
	}

	.faro-article-author {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.faro-comments__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.faro-comments__list .children {
		margin-left: 28px;
	}
}
