@charset "UTF-8";
/**
 * Genie Theme — comments under a post or page (comments.php,
 * Genie_Comments). The same look in the theme's own layouts and in an
 * Elementor template, whose Post Comments element prints comments.php: every
 * rule is scoped to .genie-comments, not to the page around it.
 *
 * Colors, fonts, fields and buttons come from Site Styles' custom
 * properties, with the look below until a value is chosen there.
 * Flexbox only; every value is a token.
 */

.genie-comments {
	--genie-cm-ink: var(--genie-heading, var(--genie-text));
	--genie-cm-brand: var(--genie-btn1-bg, var(--genie-accent));
	--genie-cm-on-brand: var(--genie-btn1-fg, #fff);
	--genie-cm-line: var(--genie-border);
	--genie-cm-soft: color-mix(in srgb, var(--genie-cm-brand) 9%, var(--genie-surface));
	/* Site Styles › Comments sets these (Genie_Site_Styles); the values after
	   the comma are the look until one is chosen. */
	--genie-cm-radius: var(--genie-cm-r, 1rem);
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--genie-cm-max, 47.5rem);
	margin-top: 1rem;
	padding: calc(2.25rem + var(--genie-cm-pad, 0rem)) var(--genie-cm-pad, 0rem) var(--genie-cm-pad, 0rem);
	border-top: 1px solid var(--genie-cm-line);
	color: var(--genie-text);
}

/* ── Heading and count ── */
.genie-comments__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.genie-comments__title,
.genie-comments .comment-reply-title {
	margin: 0;
	color: var(--genie-cm-ink);
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	text-wrap: balance;
}

.genie-comments__count {
	color: var(--genie-muted);
	font-size: 0.875rem;
}

/* ── The form: one card ── */
.genie-comments .comment-respond {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--genie-cm-line);
	border-radius: var(--genie-cm-radius);
	background: var(--genie-surface);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
}

/* Replying to someone: the card's own title says so, with Cancel. */
.genie-comments .comment-respond .comment-reply-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 1.125rem;
}

/* Not replying: WordPress still prints the title with a hidden Cancel link,
   which would leave a gap at the top of the card. */
.genie-comments .comment-respond .comment-reply-title:has(#cancel-comment-reply-link[style*="none"]) { display: none; }

.genie-comments #cancel-comment-reply-link {
	color: var(--genie-link, var(--genie-accent));
	font-size: 0.875rem;
	font-weight: 500;
}

.genie-comments .comment-form {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
}

.genie-comments .comment-form > p,
.genie-comments .comment-form > .form-submit,
.genie-comments .comment-form > .genie-comments__who {
	display: flex;
	flex: 1 1 100%;
	flex-direction: column;
	gap: 0.375rem;
	margin: 0;
}

/* Name and email side by side while there is room. */
.genie-comments .comment-form :is(.comment-form-author, .comment-form-email) { flex: 1 1 13rem; }

.genie-comments .comment-form label {
	color: var(--genie-cm-ink);
	font-size: 0.875rem;
	font-weight: 500;
}

.genie-comments__aside {
	color: var(--genie-muted);
	font-weight: 400;
}

.genie-comments .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%;
	min-height: var(--genie-field-h, 2.875rem);
	padding: 0.75rem 0.875rem;
	border-style: solid;
	border-width: var(--genie-field-bwt, 1px) var(--genie-field-bws, 1px) var(--genie-field-bwb, 1px);
	border-color: var(--genie-field-bd, var(--genie-cm-line));
	border-radius: var(--genie-field-r, 0.75rem);
	background: var(--genie-field-bg, var(--genie-surface));
	color: var(--genie-field-fg, var(--genie-text));
	font: inherit;
	font-size: var(--genie-field-size, 1rem);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* As heavy as the field rule above, and after it. */
.genie-comments .comment-form .comment-form-comment textarea {
	min-height: 9rem;
	line-height: 1.55;
	resize: vertical;
}

.genie-comments .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea):focus {
	border-color: var(--genie-field-focus, var(--genie-accent));
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--genie-field-focus, var(--genie-accent)) 18%, transparent);
}

.genie-comments .comment-form .comment-form-cookies-consent {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.625rem;
}

.genie-comments .comment-form .comment-form-cookies-consent input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.2rem 0 0;
	accent-color: var(--genie-cm-brand);
}

.genie-comments .comment-form .comment-form-cookies-consent label {
	color: var(--genie-muted);
	font-weight: 400;
}

.genie-comments .required { color: var(--genie-accent); }

/* Signed in: who is commenting. */
.genie-comments .comment-form > .genie-comments__who {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.genie-comments__who-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.genie-comments__who-text strong {
	color: var(--genie-cm-ink);
	font-weight: 600;
}

.genie-comments__who-text span {
	color: var(--genie-muted);
	font-size: 0.8125rem;
}

.genie-comments__who-text a { color: var(--genie-link, var(--genie-accent)); }

/* The note and the button on one line. */
.genie-comments .comment-form .form-submit {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.genie-comments__note {
	margin: 0;
	color: var(--genie-muted);
	font-size: 0.8125rem;
}

.genie-comments .comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	margin-left: auto;
	padding: var(--genie-btn-py, 0.75rem) var(--genie-btn-px, 1.375rem);
	border: var(--genie-btn-bw, 0) solid var(--genie-btn1-bd, transparent);
	border-radius: var(--genie-btn-r, 0.625rem);
	background: var(--genie-cm-brand);
	color: var(--genie-cm-on-brand);
	font: inherit;
	font-family: var(--genie-btn-font, inherit);
	font-size: var(--genie-btn-size, 0.9375rem);
	font-weight: var(--genie-btn-w, 600);
	text-transform: var(--genie-btn-tt, none);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.genie-comments .comment-form .submit:is(:hover, :focus-visible) {
	background: var(--genie-btn1-hbg, var(--genie-cm-brand));
	color: var(--genie-btn1-hfg, var(--genie-cm-on-brand));
	filter: brightness(1.08);
}

.genie-comments .comment-form .submit:focus-visible {
	outline: 2px solid var(--genie-accent);
	outline-offset: 2px;
}

/* ── Avatars: a photo, or the person's initials ── */
.genie-comments__av {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	overflow: hidden;
	border-radius: 50%;
	background: var(--genie-cm-brand);
	color: var(--genie-cm-on-brand);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
}

.genie-comments__av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── The conversation ── */
.genie-comments__list,
.genie-comments__list .children {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.genie-comments__list .children {
	margin-top: 1rem;
	padding-left: 1.25rem;
	border-left: 2px solid var(--genie-cm-line);
}

.genie-comment__item {
	display: flex;
	gap: 0.875rem;
}

.genie-comment__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.375rem;
	min-width: 0;
}

.genie-comment__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
}

.genie-comment__name {
	color: var(--genie-cm-ink);
	font-weight: 600;
}

.genie-comment__name a { color: inherit; text-decoration: none; }

.genie-comment__tag {
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	background: var(--genie-cm-soft);
	color: var(--genie-cm-brand);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.genie-comment__date {
	color: var(--genie-muted);
	font-size: 0.8125rem;
	text-decoration: none;
}

.genie-comment__date:is(:hover, :focus-visible) { text-decoration: underline; }

.genie-comment__wait {
	margin: 0;
	color: var(--genie-muted);
	font-size: 0.8125rem;
	font-style: italic;
}

.genie-comment__text { overflow-wrap: anywhere; }
.genie-comment__text > :first-child { margin-top: 0; }
.genie-comment__text > :last-child { margin-bottom: 0; }

.genie-comment__actions {
	display: flex;
	gap: 1rem;
}

.genie-comment__actions a {
	color: var(--genie-link, var(--genie-accent));
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.genie-comment__actions a:is(:hover, :focus-visible) { text-decoration: underline; }

/* A reply form opened under a comment sits inside the conversation. */
.genie-comments__list .comment-respond { margin-top: 1rem; }

.genie-comments .comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.875rem;
}

@media (max-width: 600px) {
	.genie-comments .comment-respond { padding: 1.125rem; }
	.genie-comments__title { font-size: 1.5rem; }
	.genie-comments__list .children { padding-left: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
	.genie-comments .comment-form :is(input, textarea),
	.genie-comments .comment-form .submit { transition: none; }
}
