/* Comments. Design: white card with a 1px #EAE3DA border; brand count badge; join prompt; composer. */
.fp-comments {
	margin-top: 24px;
	padding: 24px 18px 22px;
	border: 1px solid #eae3da;
	background: var(--fp-surface);
}

.fp-comments__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fp-comments__title {
	font-size: 21px;
}

.fp-comments__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 8px;
	border-radius: 11px;
	background: var(--fp-brand-text);
	color: #fff;
	font-family: var(--fp-font-ui);
	font-size: 12px;
	font-weight: 700;
}

.fp-comments__join,
.comment-respond {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 18px;
}

.fp-comments__join-title {
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 16px;
	font-weight: 600;
}

.fp-comments__join-text,
.comment-notes,
.logged-in-as {
	margin-top: 4px;
	color: var(--fp-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.fp-comments__auth {
	display: flex;
	flex: none;
	gap: 10px;
}

.fp-comments__auth .fp-button {
	white-space: nowrap;
}

.fp-comments__composer {
	display: block;
	width: 100%;
	min-height: 120px;
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid #ddd4c9;
	border-radius: 8px;
	background: #fbf9f6;
	color: var(--fp-ink);
	font-size: 15.5px;
	line-height: 1.5;
	resize: vertical;
}

.fp-comments__composer::placeholder {
	color: var(--fp-placeholder);
	opacity: 1;
}

.fp-comments__composer:focus {
	border-color: var(--fp-ink);
	outline: none;
	background: var(--fp-surface);
}

.fp-comments__composer:focus-visible {
	outline: 2px solid var(--fp-ink);
	outline-offset: 1px;
}

.fp-comments__note {
	margin-top: 8px;
	color: var(--fp-muted);
	font-size: 13px;
	line-height: 1.5;
}

.fp-comments__note + .fp-button,
.fp-comments__composer + .fp-button,
.comment-form .form-submit {
	margin-top: 12px;
}

.comment-form p + p {
	margin-top: 12px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 13.5px;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #ddd4c9;
	border-radius: 8px;
	background: #fbf9f6;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
}

.comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.fp-comments__list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 26px;
	padding-bottom: 10px;
	border-bottom: 1px solid #efe9e2;
}

.fp-comments__tab {
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 14.5px;
	font-weight: 600;
}

.fp-comments__tab span {
	color: var(--fp-muted);
	font-weight: 400;
}

.fp-comments__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--fp-muted);
	font-size: 13.5px;
}

.fp-comments__sort select {
	height: 34px;
	padding: 0 30px 0 12px;
	border: 1px solid #ddd4c9;
	border-radius: 8px;
	background: var(--fp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' fill='none' stroke='%231a1a1a' stroke-width='1.5'%3E%3Cpath d='M.5.5l3.5 3.5L7.5.5'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--fp-ink);
	font-size: 13.5px;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
}

.fp-comments__list,
.fp-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-comments__list .children {
	padding-left: 24px;
}

.fp-comment__body {
	display: flex;
	gap: 14px;
	padding: 20px 0 18px;
	border-bottom: 1px solid #efe9e2;
}

.fp-comment__main {
	min-width: 0;
	flex: 1;
}

.fp-comment__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fp-comment__name {
	font-size: 15.5px;
}

.fp-badge {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 10px;
	background: #fcede8;
	color: var(--fp-brand-text);
	font-family: var(--fp-font-ui);
	font-size: 11px;
	font-weight: 600;
}

.fp-comment__date {
	margin-top: 4px;
	color: var(--fp-muted);
	font-size: 12.5px;
}

.fp-comment__text {
	margin-top: 10px;
	color: var(--fp-body);
	font-size: 15px;
	line-height: 1.6;
}

.fp-comment__text p + p {
	margin-top: 10px;
}

.fp-comment__reply {
	margin-top: 6px;
}

.fp-comment__reply a {
	color: var(--fp-brand-text);
	font-family: var(--fp-font-ui);
	font-size: 13px;
	font-weight: 600;
}

.fp-comments__empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 30px 0 26px;
	color: var(--fp-muted);
	font-size: 14px;
	text-align: center;
}

.fp-comments__empty-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fcede8;
	color: var(--fp-brand-text);
}

.fp-comments__empty-title {
	color: var(--fp-ink);
	font-family: var(--fp-font-ui);
	font-size: 15.5px;
	font-weight: 600;
}

.fp-comments__jump {
	display: flex;
	gap: 22px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #efe9e2;
}

.fp-comments__jump a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fp-body);
	font-family: var(--fp-font-ui);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
}

@media (min-width: 768px) {
	.fp-comments__join {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	.fp-comments {
		margin-top: 40px;
		padding: 30px 28px 26px;
	}

	.fp-comments__title {
		font-size: 24px;
	}
}

/* Sign in / Register dialog. Same family as the Newsletter card: ink logo bar, centred body.
   440px card on desktop; bottom sheet on phones. */
.fp-auth {
	width: 100%;
	max-width: 100%;
	margin: auto auto 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.fp-auth::backdrop {
	background: rgb(26 26 26 / 0.6);
}

.fp-auth[open] .fp-auth__card {
	animation: fp-auth-in 0.24s ease-out;
}

@keyframes fp-auth-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

.fp-auth__card {
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	background: var(--fp-surface);
	box-shadow: 0 -8px 40px rgb(0 0 0 / 0.25);
}

.fp-auth__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	background: var(--fp-ink);
}

.fp-auth__bar .fp-logo {
	--fp-logo-h: 24px;
}

.fp-auth__close {
	position: absolute;
	top: 50%;
	right: 10px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	transform: translateY(-50%);
	cursor: pointer;
}

.fp-auth__close:hover {
	background: rgb(255 255 255 / 0.12);
}

.fp-auth__close:focus-visible {
	outline-color: #fff;
}

.fp-auth__body {
	display: grid;
	gap: 0;
	padding: 28px 22px 8px;
	text-align: center;
}

.fp-auth__title {
	font-size: 26px;
	line-height: 1.2;
}

.fp-auth__lead {
	margin-top: 8px;
	color: var(--fp-body);
	font-size: 15px;
	line-height: 1.5;
}

.fp-auth[data-mode="signin"] [data-when="signup"],
.fp-auth[data-mode="signup"] [data-when="signin"] {
	display: none;
}

.fp-auth__providers {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

/* Provider buttons follow each provider's own button style (recognisable and trusted). */
.fp-auth__provider {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 52px;
	border: 1px solid transparent;
	border-radius: 26px;
	font-family: var(--fp-font-ui);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.fp-auth__mark {
	position: absolute;
	top: 50%;
	left: 18px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	transform: translateY(-50%);
}

.fp-auth__provider--facebook {
	background: #0866ff; /* Meta brand blue (2023); 4.8:1 with white text. */
	color: #fff;
}

.fp-auth__provider--facebook:hover {
	background: #0a5dc2;
}

.fp-auth__provider--google {
	border-color: #dadce0;
	background: #fff;
	color: #1f1f1f;
}

.fp-auth__provider--google:hover {
	border-color: #c4c7c5;
	box-shadow: 0 1px 3px rgb(60 64 67 / 0.2);
}

.fp-auth__provider:not(.fp-auth__provider--facebook):not(.fp-auth__provider--google) {
	border-color: var(--fp-rule);
	background: var(--fp-surface);
	color: var(--fp-ink);
}

.fp-auth__fallback {
	margin-top: 24px;
}

.fp-auth__legal {
	margin-top: 18px;
	color: var(--fp-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.fp-auth__legal a {
	color: var(--fp-body);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fp-auth__switch {
	margin: 20px 22px 0;
	padding: 16px 0 26px;
	border-top: 1px solid #efe9e2;
	color: var(--fp-muted);
	font-size: 14px;
	text-align: center;
}

.fp-auth__switch button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--fp-brand-text);
	font-family: var(--fp-font-ui);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

@media (min-width: 768px) {
	.fp-auth {
		width: 440px;
		margin: auto;
	}

	.fp-auth__card {
		border-radius: 14px;
		box-shadow: 0 24px 60px rgb(0 0 0 / 0.3);
	}

	.fp-auth__bar {
		height: 68px;
	}

	.fp-auth__bar .fp-logo {
		--fp-logo-h: 28px;
	}

	.fp-auth__body {
		padding: 34px 36px 8px;
	}

	.fp-auth__title {
		font-size: 30px;
	}

	.fp-auth__switch {
		margin-inline: 36px;
		padding-bottom: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fp-auth[open] .fp-auth__card {
		animation: none;
	}
}
