/**
 * Single-post engage: share, follow, comments (paper).
 */

.nazemi-engage {
	margin-top: 40px;
	padding-top: 0;
	border-top: 0;
	text-align: right;
}

/* ——— Share ——— */
.nazemi-share {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0 0 40px;
	padding: 28px 0;
	border-top: 1px solid var(--paper-rule);
	border-bottom: 1px solid var(--paper-rule);
	text-align: center;
}

.nazemi-share__label,
.nazemi-follow__label {
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--paper-faint);
}

.nazemi-share__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nazemi-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--paper-rule);
	background: transparent;
	color: var(--paper-muted);
	font: inherit;
	text-decoration: none;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nazemi-share__btn:hover,
.nazemi-share__btn:focus-visible {
	color: var(--paper-ink);
	border-color: var(--paper-ink);
	background: rgba(26, 26, 26, 0.04);
	outline: none;
}

.nazemi-share__like {
	width: auto;
	min-width: 36px;
	gap: 6px;
	padding: 0 12px;
}

.nazemi-share__like-count {
	font-size: 0.78rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.nazemi-share__like.is-on {
	color: var(--paper-ink);
	border-color: var(--paper-ink);
}

.nazemi-share__like.is-on svg path {
	fill: rgba(26, 26, 26, 0.12);
	stroke: var(--paper-ink);
}

.nazemi-share__like.is-busy {
	opacity: 0.55;
	pointer-events: none;
}

/* ——— Follow social ——— */
.nazemi-follow {
	margin: 0 0 40px;
}

.nazemi-follow__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nazemi-follow__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--paper-rule);
	border-radius: 999px;
	color: var(--paper-muted);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.nazemi-follow__link:hover,
.nazemi-follow__link:focus-visible {
	color: var(--paper-ink);
	border-color: var(--paper-ink);
	background: rgba(26, 26, 26, 0.04);
	outline: none;
}

/* ——— Comments ——— */
.nazemi-comments {
	margin: 0;
	width: 100%;
}

.nazemi-comments__title {
	margin: 0 0 20px !important;
	padding: 0 !important;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem) !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	color: var(--paper-ink) !important;
	letter-spacing: -0.02em;
}

.nazemi-comments__list {
	margin: 0 0 36px !important;
	padding: 0 !important;
	list-style: none !important;
}

.nazemi-comments__list > li,
.nazemi-comments__list ol > li {
	margin: 0 0 14px !important;
	padding: 0 !important;
	list-style: none !important;
}

.nazemi-comments__list ol {
	margin: 14px 0 0 !important;
	padding: 0 18px 0 0 !important;
	list-style: none !important;
	border-right: 2px solid var(--paper-ink);
}

.nazemi-comment__card {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--paper-rule);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.35);
	box-sizing: border-box;
}

.nazemi-comment__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
}

.nazemi-comment__avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border: 1px solid var(--paper-rule);
	border-radius: 999px;
}

.nazemi-comment__who {
	min-width: 0;
}

.nazemi-comment__author {
	margin: 0;
	font-weight: 700;
	color: var(--paper-ink);
	font-size: 0.95rem;
}

.nazemi-comment__date {
	font-size: 0.78rem;
	color: var(--paper-faint);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.nazemi-comment__date:hover {
	color: var(--paper-ink);
}

.nazemi-comment__body {
	margin: 0 0 8px;
	color: var(--paper-muted);
	line-height: 1.8;
	font-size: 0.95rem;
}

.nazemi-comment__body p {
	margin: 0 0 0.55em;
}

.nazemi-comment__body p:last-child {
	margin-bottom: 0;
}

.nazemi-comment__awaiting {
	margin: 0 0 8px;
	font-size: 0.85rem;
	color: var(--paper-faint);
	font-style: italic;
}

.nazemi-comment__reply {
	margin: 0;
	text-align: left;
}

.nazemi-comment__reply a {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--paper-rule);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--paper-muted);
	text-decoration: none;
}

.nazemi-comment__reply a:hover {
	color: var(--paper-ink);
	border-color: var(--paper-ink);
}

/* Form */
.nazemi-comments .comment-respond,
.nazemi-comments__form .comment-respond {
	margin: 0;
	padding: 0;
}

.nazemi-comments .comment-reply-title,
.nazemi-comments #reply-title {
	margin: 0 0 14px !important;
	font-size: 1.1rem !important;
	font-weight: 800 !important;
	color: var(--paper-ink) !important;
}

.nazemi-comments .comment-notes {
	margin: 0 0 16px;
	font-size: 0.82rem;
	color: var(--paper-faint);
	line-height: 1.6;
}

.nazemi-comments .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.nazemi-comments .comment-notes,
.nazemi-comments .logged-in-as,
.nazemi-comments .comment-form-comment,
.nazemi-comments .form-submit {
	grid-column: 1 / -1;
}

.nazemi-comments .form-submit {
	margin: 0;
	text-align: left;
}

.nazemi-comments .comment-form label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--paper-ink);
}

.nazemi-comments .comment-form .required {
	color: var(--paper-ink);
}

.nazemi-comments .comment-form textarea,
.nazemi-comments .comment-form input[type="text"],
.nazemi-comments .comment-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--paper-rule);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.45);
	color: var(--paper-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	resize: vertical;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.nazemi-comments .comment-form textarea {
	min-height: 140px;
}

.nazemi-comments .comment-form textarea:focus,
.nazemi-comments .comment-form input[type="text"]:focus,
.nazemi-comments .comment-form input[type="email"]:focus {
	outline: none;
	border-color: var(--paper-ink);
	background: #fff;
}

.nazemi-comments__submit,
.nazemi-comments .comment-form .submit,
.nazemi-comments .comment-form input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 22px;
	border: 1px solid var(--paper-ink);
	border-radius: 6px;
	background: var(--paper-ink);
	color: var(--paper-sheet);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.18s ease, background-color 0.18s ease;
}

.nazemi-comments__submit:hover,
.nazemi-comments .comment-form .submit:hover,
.nazemi-comments .comment-form input#submit:hover {
	opacity: 0.88;
}

@media (max-width: 700px) {
	.nazemi-engage {
		margin-top: 32px;
		padding-top: 22px;
	}

	.nazemi-comments .comment-form {
		grid-template-columns: 1fr;
	}

	.nazemi-comment__card {
		padding: 14px 16px;
	}
}

/* Dark / dim */
body[data-nazemi-theme="dark"] .nazemi-comment__card,
body[data-nazemi-theme="dim"] .nazemi-comment__card,
body[data-nazemi-theme="dark"] .nazemi-comments .comment-form textarea,
body[data-nazemi-theme="dark"] .nazemi-comments .comment-form input[type="text"],
body[data-nazemi-theme="dark"] .nazemi-comments .comment-form input[type="email"],
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form textarea,
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form input[type="text"],
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form input[type="email"] {
	background: rgba(255, 255, 255, 0.04);
}

body[data-nazemi-theme="dark"] .nazemi-share__btn:hover,
body[data-nazemi-theme="dim"] .nazemi-share__btn:hover,
body[data-nazemi-theme="dark"] .nazemi-follow__link:hover,
body[data-nazemi-theme="dim"] .nazemi-follow__link:hover {
	background: rgba(255, 255, 255, 0.06);
}

body[data-nazemi-theme="dark"] .nazemi-comments .comment-form textarea:focus,
body[data-nazemi-theme="dark"] .nazemi-comments .comment-form input[type="text"]:focus,
body[data-nazemi-theme="dark"] .nazemi-comments .comment-form input[type="email"]:focus,
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form textarea:focus,
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form input[type="text"]:focus,
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form input[type="email"]:focus {
	background: rgba(255, 255, 255, 0.07);
}

body[data-nazemi-theme="dark"] .nazemi-comments__submit,
body[data-nazemi-theme="dark"] .nazemi-comments .comment-form .submit,
body[data-nazemi-theme="dark"] .nazemi-comments .comment-form input#submit,
body[data-nazemi-theme="dim"] .nazemi-comments__submit,
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form .submit,
body[data-nazemi-theme="dim"] .nazemi-comments .comment-form input#submit {
	background: var(--paper-ink);
	color: var(--paper-sheet);
}
