/*
 * AbayaFemme shared discussion component.
 *
 * One surface for articles, questions, testimonials and product requests.
 * Context changes the copy and available reply kinds, never the layout.
 */

.afc-thread {
	/* Neutrals: aliases now. Each resolved within ΔE 1.6 of a token the theme
	 * already publishes, so this component was carrying a sixth copy of the
	 * same greys. The theme's tokens are global and this component only ever
	 * renders on the front end, so the fallbacks are belt-and-braces. */
	--afc-discussion-ink: var(--af-color-ink, #24231f);
	--afc-discussion-muted: var(--af-color-ink-muted, #625f58);
	--afc-discussion-line: var(--af-color-border-strong, #cfc5ba);
	--afc-discussion-paper: var(--af-color-ivory, #faf7f2);
	--afc-discussion-soft: var(--af-color-cream, #f5efe8);
	--afc-discussion-soft-strong: var(--af-color-sand, #eadfd2);
	/* Status colours stay local, and this is measured rather than conceded:
	 * they sit ΔE 4.0 to 7.9 from the palette's equivalents, far enough that
	 * aliasing them would be a visible change to an approved design rather
	 * than a de-duplication. Reconciling them is a palette decision, and it is
	 * recorded as the one residual of this pass. */
	--afc-discussion-accent: oklch(33% 0.052 78deg);
	--afc-discussion-warm: oklch(66% 0.13 48deg);
	--afc-discussion-success: oklch(39% 0.075 142deg);
	--afc-discussion-danger: oklch(43% 0.12 30deg);
	--afc-discussion-ui: var(--af-font-ui, "Jost", "Avenir Next", Arial, sans-serif);
	--afc-discussion-display: var(--af-font-display, "Cormorant Garamond", Georgia, serif);
	box-sizing: border-box;
	width: 100%;
	margin: clamp(2rem, 4vw, 3.5rem) 0 1.5rem;
	border-top: 1px solid var(--afc-discussion-line);
	color: var(--afc-discussion-ink);
	font: 400 1rem/1.55 var(--afc-discussion-ui);
}

.afc-thread *,
.afc-thread *::before,
.afc-thread *::after {
	box-sizing: border-box;
}

.afc-thread button,
.afc-thread input,
.afc-thread select,
.afc-thread textarea {
	font: inherit;
}

.afc-thread button,
.afc-thread select,
.afc-thread label,
.afc-thread input[type="checkbox"] {
	cursor: pointer;
}

.afc-thread [hidden] {
	display: none !important;
}

.afc-thread__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: clamp(1rem, 3vw, 3rem);
	padding: clamp(1.4rem, 2.7vw, 2.25rem) 0 1.25rem;
	border-bottom: 1px solid var(--afc-discussion-line);
}

.afc-thread__head > div {
	min-width: 0;
	max-width: 54rem;
}

.afc-thread__eyebrow {
	margin: 0 0 0.45rem;
	color: oklch(42% 0.07 45deg);
	font: 700 0.72rem/1.2 var(--afc-discussion-ui);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.afc-thread__title {
	margin: 0;
	color: var(--afc-discussion-ink);
	font: 500 clamp(2.25rem, 4vw, 3.55rem)/0.98 var(--afc-discussion-display);
	letter-spacing: -0.025em;
}

.afc-thread__head > div > p:last-child {
	max-width: 48rem;
	margin: 0.65rem 0 0;
	color: var(--afc-discussion-muted);
	font-size: 0.95rem;
}

.afc-thread__count {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--afc-discussion-line);
	background: var(--afc-discussion-paper);
	color: var(--afc-discussion-ink);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.afc-thread__gate {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--afc-discussion-accent);
	background: var(--afc-discussion-soft);
}

.afc-thread__gate strong,
.afc-thread__gate span {
	display: block;
}

.afc-thread__gate span {
	margin-top: 0.15rem;
	color: var(--afc-discussion-muted);
	font-size: 0.88rem;
}

.afc-thread__gate a {
	color: var(--afc-discussion-accent);
	font-size: 0.82rem;
	font-weight: 700;
	text-underline-offset: 0.2rem;
}

/* Always-visible compact composer. */
.afc-thread .afc-reply-form {
	margin: 1rem 0 0;
	padding: 0;
	border: 1px solid var(--afc-discussion-line);
	border-radius: 0;
	background: var(--afc-discussion-soft);
	box-shadow: none;
}

.afc-thread .afc-reply-form:focus-within {
	border-color: oklch(61% 0.04 72deg);
}

.afc-thread .afc-reply-form__composer {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: 0.85rem;
	padding: 1rem;
}

.afc-thread .afc-reply-form__avatar,
.afc-thread .afc-reply-form__avatar > img,
.afc-thread .afc-reply-form__avatar > .afc-avatar {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.afc-thread .afc-reply-form__body {
	min-width: 0;
}

.afc-thread .afc-reply-form__identity {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.6rem;
}

.afc-thread .afc-reply-form__identity strong,
.afc-thread .afc-reply-form__identity span {
	display: block;
}

.afc-thread .afc-reply-form__identity strong {
	font-size: 0.9rem;
	font-weight: 700;
}

.afc-thread .afc-reply-form__identity > div > span {
	margin-top: 0.05rem;
	color: var(--afc-discussion-muted);
	font-size: 0.76rem;
}

.afc-thread .afc-reply-form__counter {
	flex: none;
	color: var(--afc-discussion-muted);
	font-size: 0.73rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.afc-thread .afc-reply-form__context {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.55rem;
	padding: 0.5rem 0.65rem;
	border-left: 2px solid var(--afc-discussion-accent);
	background: var(--afc-discussion-soft-strong);
	font-size: 0.78rem;
}

.afc-thread .afc-reply-form__context button {
	border: 0;
	background: transparent;
	color: var(--afc-discussion-danger);
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15rem;
}

.afc-thread .afc-reply-form textarea {
	display: block;
	width: 100%;
	min-height: 6rem;
	max-height: 18rem;
	margin: 0;
	padding: 0.8rem 0.9rem;
	resize: vertical;
	border: 1px solid oklch(81% 0.018 70deg);
	border-radius: 0;
	outline: 0;
	background: var(--afc-discussion-paper);
	box-shadow: none;
	color: var(--afc-discussion-ink);
	font-size: 0.94rem;
	line-height: 1.55;
}

.afc-thread .afc-reply-form textarea::placeholder {
	color: oklch(57% 0.018 70deg);
	opacity: 1;
}

.afc-thread .afc-reply-form textarea:focus {
	border-color: var(--afc-discussion-accent);
	box-shadow: inset 3px 0 0 var(--afc-discussion-accent);
}

.afc-thread .afc-reply-form__preview {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	align-items: end;
	gap: 0.65rem;
	width: min(100%, 18rem);
	margin-top: 0.65rem;
}

.afc-thread .afc-reply-form__preview img {
	display: block;
	width: 5rem;
	height: 4rem;
	object-fit: cover;
	border: 1px solid var(--afc-discussion-line);
}

.afc-thread .afc-reply-form__preview button {
	justify-self: start;
	border: 0;
	background: transparent;
	color: var(--afc-discussion-danger);
	font-size: 0.74rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15rem;
}

.afc-thread .afc-reply-form__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3rem;
	border-bottom: 1px solid var(--afc-discussion-line);
}

.afc-thread .afc-reply-form__media {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	min-width: 0;
}

.afc-thread .afc-reply-form__media button,
.afc-thread .afc-reply-form__file,
.afc-thread .afc-emoji-picker > button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.35rem;
	margin: 0;
	padding: 0.45rem 0.6rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--afc-discussion-muted);
	font-size: 0.76rem;
	font-weight: 650;
	line-height: 1;
}

.afc-thread .afc-reply-form__media button:hover,
.afc-thread .afc-reply-form__media button:focus-visible,
.afc-thread .afc-reply-form__file:hover,
.afc-thread .afc-reply-form__file:focus-within {
	background: var(--afc-discussion-soft-strong);
	color: var(--afc-discussion-ink);
}

.afc-thread .afc-reply-form__media svg {
	width: 1rem;
	height: 1rem;
	color: currentColor;
}

.afc-thread .afc-reply-form__file {
	max-width: 15rem;
}

.afc-thread .afc-reply-form__file span {
	overflow: hidden;
	max-width: 10rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.afc-thread .afc-reply-form__file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.afc-thread .afc-emoji-picker {
	position: relative;
}

.afc-thread .afc-emoji-picker__menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 0.25rem);
	left: 0;
	display: grid;
	grid-template-columns: repeat(4, 2.25rem);
	gap: 0.2rem;
	padding: 0.4rem;
	border: 1px solid var(--afc-discussion-line);
	background: var(--afc-discussion-paper);
	box-shadow: 0 0.75rem 2rem oklch(20% 0.02 70deg / 12%);
}

.afc-thread .afc-emoji-picker__menu button {
	justify-content: center;
	min-width: 2.25rem;
	padding: 0;
	font-size: 1.15rem;
}

.afc-thread .afc-reply-form__kind {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex: none;
	color: var(--afc-discussion-muted);
	font-size: 0.72rem;
	font-weight: 650;
}

.afc-thread .afc-reply-form__kind select,
.afc-thread .afc-thread__sort select {
	min-height: 2.35rem;
	padding: 0.4rem 2.1rem 0.4rem 0.65rem;
	border: 1px solid var(--afc-discussion-line);
	border-radius: 0;
	background-color: var(--afc-discussion-paper);
	color: var(--afc-discussion-ink);
	font-size: 0.78rem;
}

.afc-thread .afc-reply-form__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 1rem;
	padding-top: 0.65rem;
}

.afc-thread .afc-reply-form__options {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
	color: var(--afc-discussion-muted);
	font-size: 0.72rem;
}

.afc-thread .afc-reply-form__options label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	color: var(--afc-discussion-ink);
	font-weight: 650;
}

.afc-thread .afc-reply-form__options input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--afc-discussion-accent);
}

.afc-thread .afc-reply-form__submit {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	justify-content: end;
	gap: 0.4rem;
}

.afc-thread .afc-reply-form__submit [data-afc-status] {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--afc-discussion-success);
	font-size: 0.73rem;
	text-align: right;
}

.afc-thread .afc-reply-form__submit .afc-btn {
	min-height: 2.45rem;
	margin: 0;
	padding: 0.55rem 0.8rem;
	border-radius: 0;
	box-shadow: none;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.025em;
	text-transform: none;
}

.afc-thread .afc-reply-form__submit .afc-btn--quiet {
	border: 1px solid transparent;
	background: transparent;
	color: var(--afc-discussion-muted);
}

.afc-thread .afc-reply-form__submit .afc-btn--quiet:hover,
.afc-thread .afc-reply-form__submit .afc-btn--quiet:focus-visible {
	border-color: var(--afc-discussion-line);
	background: var(--afc-discussion-paper);
	color: var(--afc-discussion-ink);
}

.afc-thread .afc-reply-form__submit .afc-btn--primary {
	border: 1px solid var(--afc-discussion-accent);
	background: var(--afc-discussion-accent);
	color: oklch(98% 0.008 78deg);
}

.afc-thread .afc-reply-form__submit .afc-btn--primary:hover,
.afc-thread .afc-reply-form__submit .afc-btn--primary:focus-visible {
	border-color: oklch(25% 0.042 78deg);
	background: oklch(25% 0.042 78deg);
	color: oklch(100% 0 0deg);
}

.afc-thread :is(button, select, textarea, input):focus-visible {
	outline: 2px solid oklch(50% 0.09 65deg);
	outline-offset: 2px;
}

/* Filters and sorting. */
.afc-thread__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
	padding: 0.65rem 0;
	border-top: 1px solid var(--afc-discussion-line);
	border-bottom: 1px solid var(--afc-discussion-line);
}

.afc-thread__filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem;
}

.afc-thread__filters button {
	min-height: 2.25rem;
	margin: 0;
	padding: 0.45rem 0.7rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--afc-discussion-muted);
	font-size: 0.76rem;
	font-weight: 700;
}

.afc-thread__filters button:hover,
.afc-thread__filters button:focus-visible {
	background: var(--afc-discussion-soft);
	color: var(--afc-discussion-ink);
}

.afc-thread__filters button.is-active {
	background: var(--afc-discussion-accent);
	color: oklch(98% 0.008 78deg);
}

.afc-thread__filters button span {
	margin-left: 0.25rem;
	font-size: 0.68rem;
	opacity: 0.78;
}

.afc-thread__sort {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex: none;
	color: var(--afc-discussion-muted);
	font-size: 0.72rem;
	font-weight: 650;
}

/* Conversation and Reddit-like nesting. */
.afc-thread__conversation {
	position: relative;
	min-height: 4rem;
	padding-top: 0.9rem;
}

.afc-thread.is-loading-conversations .afc-thread__conversation {
	opacity: 0.62;
	pointer-events: none;
}

.afc-thread .afc-replies,
.afc-thread .afc-replies ol,
.afc-thread .afc-replies .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.afc-thread .afc-reply {
	position: relative;
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	background: transparent;
}

.afc-thread .afc-reply__inner {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.9rem;
	border: 1px solid var(--afc-discussion-line);
	border-radius: 0;
	background: var(--afc-discussion-paper);
	box-shadow: none;
}

.afc-thread .afc-reply.is-accepted > .afc-reply__inner {
	border-color: oklch(66% 0.06 142deg);
	box-shadow: inset 3px 0 0 var(--afc-discussion-success);
}

.afc-thread .afc-reply.is-pending > .afc-reply__inner {
	border-style: dashed;
	background: var(--afc-discussion-soft);
}

.afc-thread .afc-vote {
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 0.05rem;
}

.afc-thread .afc-vote button {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 1.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--afc-discussion-muted);
}

.afc-thread .afc-vote button:hover,
.afc-thread .afc-vote button:focus-visible,
.afc-thread .afc-vote button.is-active {
	background: var(--afc-discussion-soft-strong);
	color: var(--afc-discussion-warm);
}

.afc-thread .afc-vote svg {
	width: 1rem;
	height: 1rem;
}

.afc-thread .afc-vote strong {
	color: var(--afc-discussion-ink);
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
}

.afc-thread .afc-reply__content {
	min-width: 0;
}

.afc-thread .afc-reply__head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.55rem;
	margin: 0 0 0.55rem;
}

.afc-thread .afc-reply__head > img,
.afc-thread .afc-reply__head > .afc-avatar {
	flex: none;
	width: 2rem;
	height: 2rem;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.afc-thread .afc-reply__head > div {
	display: grid;
	gap: 0.05rem;
	min-width: 0;
}

.afc-thread .afc-reply__identity,
.afc-thread .afc-reply__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.afc-thread .afc-reply__identity strong {
	font-size: 0.82rem;
	font-weight: 750;
}

.afc-thread .afc-reply__staff,
.afc-thread .afc-reply__pending {
	padding: 0.2rem 0.35rem;
	background: var(--afc-discussion-soft-strong);
	color: var(--afc-discussion-accent);
	font-size: 0.61rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.afc-thread .afc-reply__pending {
	margin-left: auto;
}

.afc-thread .afc-reply__meta {
	color: var(--afc-discussion-muted);
	font-size: 0.68rem;
}

.afc-thread .afc-reply__accepted {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.55rem;
	color: var(--afc-discussion-success);
	font-size: 0.74rem;
	font-weight: 700;
}

.afc-thread .afc-reply__accepted svg {
	width: 0.95rem;
	height: 0.95rem;
}

.afc-thread .afc-prose {
	color: var(--afc-discussion-ink);
	font-size: 0.94rem;
	line-height: 1.58;
}

.afc-thread .afc-prose > :first-child {
	margin-top: 0;
}

.afc-thread .afc-prose > :last-child {
	margin-bottom: 0;
}

.afc-thread .afc-prose blockquote {
	margin: 0 0 0.65rem;
	padding: 0.55rem 0.75rem;
	border-left: 2px solid var(--afc-discussion-line);
	background: var(--afc-discussion-soft);
	color: var(--afc-discussion-muted);
}

.afc-thread .afc-reply__deleted {
	color: var(--afc-discussion-muted);
	font-style: italic;
}

.afc-thread .afc-reply__image {
	margin: 0.75rem 0 0;
}

.afc-thread .afc-reply__image img {
	display: block;
	width: min(100%, 34rem);
	height: auto;
	max-height: 25rem;
	object-fit: contain;
	object-position: left center;
}

.afc-thread .afc-reply__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	margin-top: 0.7rem;
	padding-top: 0.55rem;
	border-top: 1px solid var(--afc-discussion-line);
}

.afc-thread .afc-reply__reactions,
.afc-thread .afc-reactions,
.afc-thread .afc-reply__tools {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.afc-thread .afc-reaction {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 2rem;
	margin: 0;
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--afc-discussion-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--afc-discussion-muted);
	font-size: 0.68rem;
	font-weight: 700;
}

.afc-thread .afc-reaction:hover,
.afc-thread .afc-reaction:focus-visible,
.afc-thread .afc-reaction.is-active {
	border-color: oklch(70% 0.07 48deg);
	background: oklch(95% 0.025 48deg);
	color: var(--afc-discussion-ink);
}

.afc-thread .afc-reaction__symbol {
	font-size: 1rem;
	line-height: 1;
}

.afc-thread .afc-reply__tools button {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 1.9rem;
	margin: 0;
	padding: 0.3rem 0.4rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--afc-discussion-muted);
	font-size: 0.66rem;
	font-weight: 700;
}

.afc-thread .afc-reply__tools button:hover,
.afc-thread .afc-reply__tools button:focus-visible {
	background: var(--afc-discussion-soft);
	color: var(--afc-discussion-ink);
}

.afc-thread .afc-reply__tools svg {
	width: 0.85rem;
	height: 0.85rem;
}

.afc-thread .afc-reply__accept {
	color: var(--afc-discussion-success);
}

.afc-thread .afc-reply > .children {
	position: relative;
	margin: 0.65rem 0 0 1.35rem;
	padding-left: 1.2rem;
	border-left: 1px solid var(--afc-discussion-line);
}

.afc-thread .afc-reply > .children::before {
	position: absolute;
	top: 1.7rem;
	left: 0;
	width: 0.8rem;
	height: 1px;
	background: var(--afc-discussion-line);
	content: "";
}

.afc-thread .afc-reply > .children .afc-reply__inner {
	background: var(--afc-discussion-soft);
}

.afc-thread__load-more {
	display: grid;
	justify-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0 1rem;
}

.afc-thread__load-more button {
	min-height: 2.6rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--afc-discussion-accent);
	border-radius: 0;
	background: var(--afc-discussion-paper);
	box-shadow: none;
	color: var(--afc-discussion-accent);
	font-size: 0.76rem;
	font-weight: 750;
}

.afc-thread__load-more button:hover,
.afc-thread__load-more button:focus-visible {
	background: var(--afc-discussion-accent);
	color: oklch(98% 0.008 78deg);
}

.afc-thread__load-more p {
	margin: 0;
	color: var(--afc-discussion-muted);
	font-size: 0.72rem;
}

.afc-thread__empty {
	display: grid;
	justify-items: start;
	gap: 0.15rem;
	margin: 0;
	padding: 1.1rem;
	border-left: 3px solid var(--afc-discussion-line);
	background: var(--afc-discussion-soft);
}

.afc-thread__empty strong {
	font: 500 1.45rem/1.1 var(--afc-discussion-display);
}

.afc-thread__empty span {
	color: var(--afc-discussion-muted);
	font-size: 0.82rem;
}

.afc-thread__footnote {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.9rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--afc-discussion-line);
	color: var(--afc-discussion-muted);
	font-size: 0.7rem;
}

.afc-thread__footnote svg {
	flex: none;
	width: 1rem;
	height: 1rem;
	color: var(--afc-discussion-accent);
}

.afc-thread__footnote p {
	margin: 0;
}

.afc-thread__footnote strong {
	color: var(--afc-discussion-ink);
}

.afc-thread__footnote > span {
	margin-left: auto;
	white-space: nowrap;
}

@media (max-width: 760px) {
	.afc-thread {
		margin-top: 1.75rem;
	}

	.afc-thread__head {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		padding: 1.35rem 0 1rem;
	}

	.afc-thread__title {
		font-size: clamp(2.1rem, 12vw, 2.8rem);
	}

	.afc-thread__count {
		justify-self: start;
	}

	.afc-thread .afc-reply-form__composer {
		grid-template-columns: 2.25rem minmax(0, 1fr);
		gap: 0.65rem;
		padding: 0.75rem;
	}

	.afc-thread .afc-reply-form__avatar,
	.afc-thread .afc-reply-form__avatar > img,
	.afc-thread .afc-reply-form__avatar > .afc-avatar {
		width: 2.25rem;
		height: 2.25rem;
	}

	.afc-thread .afc-reply-form__identity > div > span {
		display: none;
	}

	.afc-thread .afc-reply-form textarea {
		min-height: 5.75rem;
	}

	.afc-thread .afc-reply-form__bar,
	.afc-thread .afc-reply-form__footer,
	.afc-thread__toolbar {
		align-items: stretch;
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	.afc-thread .afc-reply-form__bar {
		padding: 0.35rem 0;
	}

	.afc-thread .afc-reply-form__kind {
		justify-content: space-between;
		width: 100%;
	}

	.afc-thread .afc-reply-form__kind select {
		width: min(70%, 14rem);
	}

	.afc-thread .afc-reply-form__footer {
		gap: 0.65rem;
	}

	.afc-thread .afc-reply-form__submit {
		width: 100%;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.afc-thread .afc-reply-form__submit .afc-btn--primary {
		min-width: 6.5rem;
	}

	.afc-thread__sort {
		justify-content: space-between;
		width: 100%;
	}

	.afc-thread__sort select {
		width: min(70%, 14rem);
	}

	.afc-thread .afc-reply__inner {
		grid-template-columns: 2rem minmax(0, 1fr);
		gap: 0.5rem;
		padding: 0.7rem;
	}

	.afc-thread .afc-reply__foot {
		align-items: flex-start;
		flex-direction: column;
	}

	.afc-thread .afc-reply__tools {
		width: 100%;
	}

	.afc-thread .afc-reply > .children {
		margin-left: 0.7rem;
		padding-left: 0.75rem;
	}

	.afc-thread__footnote {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.afc-thread__footnote > span {
		width: 100%;
		margin-left: 1.55rem;
	}
}

@media (max-width: 430px) {
	.afc-thread .afc-reply-form__composer {
		grid-template-columns: 1fr;
	}

	.afc-thread .afc-reply-form__avatar {
		display: none;
	}

	.afc-thread .afc-reply-form__media {
		width: 100%;
		justify-content: space-between;
	}

	.afc-thread .afc-reply-form__media button,
	.afc-thread .afc-reply-form__file,
	.afc-thread .afc-emoji-picker > button {
		padding-inline: 0.35rem;
	}

	.afc-thread .afc-reply-form__file {
		max-width: 8rem;
	}

	.afc-thread .afc-reply-form__file span {
		max-width: 4rem;
	}

	.afc-thread .afc-reply-form__options > span {
		display: none;
	}

	.afc-thread .afc-reply-form__submit {
		grid-template-columns: 1fr auto;
	}

	.afc-thread .afc-reply-form__submit [data-afc-status] {
		text-align: left;
	}

	.afc-thread__filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.afc-thread__filters button {
		text-align: left;
	}

	.afc-thread .afc-reply__inner {
		grid-template-columns: 1.65rem minmax(0, 1fr);
		padding-inline: 0.55rem;
	}

	.afc-thread .afc-vote button {
		width: 1.65rem;
	}

	.afc-thread .afc-reaction__label {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.afc-thread *,
	.afc-thread *::before,
	.afc-thread *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
