/*
 * Single post layout — content + sidebar.
 * Visual: Figma BLOG-POST Desktop — Blog Post Layout (1:2).
 * Mobile: Figma BLOG-POST Mobile — Post Content (2024:38) + Sidebar (2024:34).
 * Content 952px | gap 140px | Sidebar 402px (within ~1494px row).
 */

.lwt-single-post {
	box-sizing: border-box;
	width: 100%;
}

.lwt-single-post__body {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding-block: var(--wp--preset--spacing--80)
		calc(var(--wp--preset--spacing--80) * 0.5);
	/*
	 * Side inset while the two-column row scales down. On wide screens the
	 * 1494px row still centers inside this padding.
	 */
	padding-inline: clamp(1.75rem, 4vw, 3rem);
}

.lwt-single-post__columns {
	display: grid;
	/* Article shrinks; sidebar stays 402px until the tablet stack. */
	grid-template-columns: minmax(0, 1fr) 25.125rem;
	column-gap: 8.75rem;
	align-items: start;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	max-width: 93.375rem;
	min-width: 0;
	margin-inline: auto;
}

.lwt-single-post__content {
	min-width: 0;
	width: 100%;
	max-width: 59.5rem;
}

/*
 * Post content — Figma BLOG-POST Desktop / Post Content (53:11).
 * Body Inter Light 21/45; H2 Editors Note 45/60; H3 Ashcroft 35/60;
 * inline links sea + medium + underline; paragraph rhythm ≈ one blank body line (45px).
 */
.lwt-single-post__content .wp-block-post-content {
	max-width: 100%;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 300;
	line-height: 2.1;
	/* One blank body line between blocks (Figma Post Content). */
	--wp--style--block-gap: 2.375rem; /* 38px */
}

/*
 * Enforce post-content rhythm. Do not zero margin-block-start on children —
 * that overrides core layout blockGap (see p / list / image rules below).
 */
.lwt-single-post__content .wp-block-post-content > * + * {
	margin-block-start: var(--wp--style--block-gap);
}

.lwt-single-post__content
	.wp-block-post-content
	> *
	+ :is(h2, .wp-block-heading:where(h2)) {
	margin-block-start: 4rem; /* ~64px section break */
}

.lwt-single-post__content .wp-block-post-content :is(h2, h2.wp-block-heading) {
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--editors-note);
	font-size: var(--wp--preset--font-size--heading-2);
	font-style: normal;
	font-weight: 200;
	letter-spacing: 0;
	line-height: 1.33;
	text-transform: none;
}

/*
 * H3 typography defaults (Ashcroft 35/60). Low specificity via :where()
 * so block has-* classes and inline styles can override.
 */
:root :where(.lwt-single-post__content .wp-block-post-content h3),
:root
	:where(
		.lwt-single-post__content .wp-block-post-content h3.wp-block-heading
	) {
	color: var(--wp--preset--color--black); /* #000 */
	font-family: var(--wp--preset--font-family--ashcroft);
	font-size: var(--wp--preset--font-size--heading-3); /* 35px */
	font-style: normal;
	font-weight: 200;
	letter-spacing: 0;
	line-height: 1.7; /* 171.429% */
	text-transform: none;
}

.lwt-single-post__content .wp-block-post-content :is(h3, h3.wp-block-heading) {
	/* Shrink-wrap heading to its text width. */
	width: fit-content;
	max-width: 100%;
	/*
	 * Constrained layout sets margin-inline: auto on children — with
	 * fit-content that centers every H3. Default to start; honor align classes.
	 */
	margin-inline: 0 !important;
}

.lwt-single-post__content
	.wp-block-post-content
	:is(h1, h2, h3, h4, h5, h6, .wp-block-heading)
	a:not(.wp-block-button__link):not(.lwt-post-toc__link) {
	color: var(--wp--preset--color--black);
	font-weight: inherit;
	text-decoration: underline;
	text-decoration-color: #195f89;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
	text-underline-position: under;
}

.lwt-single-post__content
	.wp-block-post-content
	:is(h1, h2, h3, h4, h5, h6, .wp-block-heading)
	a:not(.wp-block-button__link):not(.lwt-post-toc__link):hover,
.lwt-single-post__content
	.wp-block-post-content
	:is(h1, h2, h3, h4, h5, h6, .wp-block-heading)
	a:not(.wp-block-button__link):not(.lwt-post-toc__link):focus {
	color: var(--wp--preset--color--moss);
	text-decoration-thickness: 2px;
	text-decoration-color: var(--wp--preset--color--moss);
}

.lwt-single-post__content
	.wp-block-post-content
	:is(h3, h3.wp-block-heading).has-text-align-center {
	margin-inline: auto !important;
}

.lwt-single-post__content
	.wp-block-post-content
	:is(h3, h3.wp-block-heading).has-text-align-right {
	margin-inline-start: auto !important;
	margin-inline-end: 0 !important;
}

.lwt-single-post__content .wp-block-post-content :is(h4, h4.wp-block-heading) {
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: normal;
	text-transform: uppercase;
}

.lwt-single-post__content .wp-block-post-content p:not(.lwt-post-toc__title) {
	/* Leave margin-block-start to blockGap / sibling rules above. */
	margin-inline: 0;
	margin-block-end: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 300;
	line-height: 2.1;
}

.lwt-single-post__content
	.wp-block-post-content
	a:not(.wp-block-button__link):not(.lwt-post-toc__link) {
	color: var(--wp--preset--color--sea);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--sea);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	text-underline-position: under;
}

.lwt-single-post__content
	.wp-block-post-content
	a:not(.wp-block-button__link):not(.lwt-post-toc__link):hover,
.lwt-single-post__content
	.wp-block-post-content
	a:not(.wp-block-button__link):not(.lwt-post-toc__link):focus {
	color: var(--wp--preset--color--moss);
	text-decoration-color: var(--wp--preset--color--moss);
}

.lwt-single-post__content .wp-block-post-content :is(strong, b) {
	font-weight: 500;
}

.lwt-single-post__content .wp-block-post-content :is(em, i) {
	font-style: italic;
}

.lwt-single-post__content
	.wp-block-post-content
	:is(ul, ol):not(.lwt-post-toc__list) {
	/* Leave margin-block-start to blockGap / sibling rules above. */
	margin-inline: 0;
	margin-block-end: 0;
	padding-inline-start: 1.25em;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 300;
	line-height: 2.1;
}

.lwt-single-post__content
	.wp-block-post-content
	:is(ul, ol):not(.lwt-post-toc__list)
	li
	+ li {
	margin-block-start: 0;
}

/*
 * Image caption — Figma BLOG-POST Desktop (128:108).
 * Inter Light Italic 16/45, left-aligned under the image; linked names use moss underline.
 */
.lwt-single-post__content
	.wp-block-post-content
	:is(figcaption, .wp-element-caption) {
	margin-top: 1.0625rem; /* 17px */
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem; /* 16px */
	font-style: italic;
	font-weight: 300;
	line-height: 2.5;
	text-align: left;
}

/*
 * Core gallery nested-image captions overlay the photo (white + gradient).
 * Keep gallery crop/sizing intact; hang the caption just under each image.
 * Padding on the gallery (not the figure) clears hung captions so the next
 * block isn’t pulled up against them.
 */
.lwt-single-post__content
	.wp-block-post-content
	.wp-block-gallery:has(:is(figcaption, .wp-element-caption)) {
	/* Caption clearance (17px + ~40px line) + breathing room. */
	padding-bottom: calc(1.0625rem + 2.5rem + var(--wp--preset--spacing--47));
}

.lwt-single-post__content
	.wp-block-post-content
	.wp-block-gallery.has-nested-images
	figure.wp-block-image:has(:is(figcaption, .wp-element-caption)) {
	overflow: visible;
}

.lwt-single-post__content
	.wp-block-post-content
	.wp-block-gallery.has-nested-images
	figure.wp-block-image:has(figcaption)::before {
	content: none;
	display: none;
}

.lwt-single-post__content
	.wp-block-post-content
	.wp-block-gallery.has-nested-images
	figure.wp-block-image
	:is(figcaption, .wp-element-caption),
.lwt-single-post__content
	.wp-block-post-content
	.wp-block-gallery:not(.has-nested-images)
	:is(.blocks-gallery-item, .blocks-gallery-image)
	figcaption {
	position: absolute;
	top: 100%;
	bottom: auto;
	left: 0;
	right: 0;
	width: auto;
	max-height: none;
	overflow: visible;
	padding: 0;
	margin: 1.0625rem 0 0;
	background: none;
	color: var(--wp--preset--color--black);
	text-shadow: none;
	text-align: left;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-style: italic;
	font-weight: 300;
	line-height: 2.5;
	will-change: auto;
	scrollbar-width: auto;
	scrollbar-color: auto;
}

.lwt-single-post__content
	.wp-block-post-content
	:is(figcaption, .wp-element-caption)
	a:not(.wp-block-button__link) {
	color: inherit;
	font-weight: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--moss);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	text-underline-position: under;
}

.lwt-single-post__content
	.wp-block-post-content
	:is(figcaption, .wp-element-caption)
	a:not(.wp-block-button__link):hover,
.lwt-single-post__content
	.wp-block-post-content
	:is(figcaption, .wp-element-caption)
	a:not(.wp-block-button__link):focus {
	color: var(--wp--preset--color--moss);
	text-decoration-color: var(--wp--preset--color--moss);
}

/* Author signature — Figma BLOG-POST Desktop (— Courtney / 2:1002). */
.lwt-post-signature,
.lwt-single-post__content .lwt-post-signature.wp-block-paragraph {
	margin-block: calc(var(--wp--preset--spacing--80) * 0.5) 0;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--september-spirit-all-caps);
	font-size: var(--wp--preset--font-size--heading-6);
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 0.93;
	text-align: left;
	white-space: nowrap;
	transform: rotate(-2.936deg);
}

/* Offset jump-link targets for the sticky site header. */
.lwt-single-post__content :is(h1, h2, h3, h4, h5, h6)[id] {
	scroll-margin-top: calc(
		var(--lwt-header-bar-height, 4rem) +
			var(--lwt-header-admin-offset, 0px) + 1rem
	);
}

/* Sidebar template part — unlocked; any blocks allowed in Site Editor. */
.lwt-post-sidebar,
.lwt-single-post__columns > .wp-block-template-part {
	min-width: 0;
	width: 100%;
	max-width: 25.125rem;
	justify-self: end;
}

.lwt-post-sidebar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	/* Figma 53:12 — ~120–127px between Latest Posts / Side Streets / Pin This Guide.
	   Latest Posts tape overhangs upward into the gap above the butter card. */
	gap: 7.5625rem; /* 121px */
}

/* -------------------------------------------------------------------------
   I'm Courtney — Figma BLOG-POST Desktop (53:5)
   Portrait 316×422, Ashcroft 35/60 title, Inter Light 21/45 body + underlines.
   Group class: lwt-sidebar-courtney (Advanced → Additional CSS class).
   ------------------------------------------------------------------------- */

.lwt-post-sidebar .lwt-sidebar-courtney,
.lwt-sidebar-courtney {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 23.75rem; /* 380px */
	margin: 0 auto;
	padding: 0;
	color: var(--wp--preset--color--black);
}

/* Image: 316px wide, centered — beat core size-large / width attrs. */
.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-image,
.lwt-post-sidebar .lwt-sidebar-courtney .lwt-sidebar-courtney__image,
.lwt-sidebar-courtney .wp-block-image,
.lwt-sidebar-courtney .lwt-sidebar-courtney__image {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 19.75rem; /* 316px */
	margin: 0 auto 3rem; /* ~48px image → title */
	padding: 0;
	line-height: 0;
	background-color: var(--wp--preset--color--wheat);
}

.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-image img,
.lwt-post-sidebar .lwt-sidebar-courtney .lwt-sidebar-courtney__image img,
.lwt-sidebar-courtney .wp-block-image img,
.lwt-sidebar-courtney .lwt-sidebar-courtney__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 316 / 422;
	object-fit: cover;
}

.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-heading,
.lwt-post-sidebar .lwt-sidebar-courtney h2,
.lwt-sidebar-courtney .wp-block-heading,
.lwt-sidebar-courtney h2 {
	width: 100%;
	max-width: 23.75rem;
	margin: 0 0 2rem; /* ~32px title → body */
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--ashcroft);
	font-size: var(--wp--preset--font-size--heading-3);
	font-style: normal;
	font-weight: 200;
	line-height: 1.7;
	text-align: center;
}

.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-paragraph,
.lwt-post-sidebar .lwt-sidebar-courtney p,
.lwt-sidebar-courtney .wp-block-paragraph,
.lwt-sidebar-courtney p {
	width: 100%;
	max-width: 20rem; /* 320px */
	margin: 0 auto;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	font-style: normal;
	font-weight: 300;
	letter-spacing: 0.02rem;
	line-height: 2.1;
	text-align: center;
}

/* Inline link underlines (Figma 2:55 / 2:56 / 2:58). */
.lwt-post-sidebar .lwt-sidebar-courtney a,
.lwt-sidebar-courtney a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.5em;
}

.lwt-post-sidebar .lwt-sidebar-courtney a:hover,
.lwt-post-sidebar .lwt-sidebar-courtney a:focus,
.lwt-sidebar-courtney a:hover,
.lwt-sidebar-courtney a:focus {
	color: var(--wp--preset--color--moss);
}

.lwt-post-sidebar .lwt-sidebar-courtney a:focus-visible,
.lwt-sidebar-courtney a:focus-visible {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 3px;
}

/*
 * Tablet: the 402px sidebar no longer fits beside a readable article.
 * Phone type styles continue at 781px.
 */
@media (max-width: 1024px) {
	.lwt-single-post__columns {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 5.5rem;
	}

	.lwt-single-post__content,
	.lwt-post-sidebar,
	.lwt-single-post__columns > .wp-block-template-part {
		width: 100%;
		max-width: none;
		justify-self: stretch;
	}

	.lwt-post-sidebar {
		gap: 4.5rem;
		padding-inline: 0;
	}
}

@media (max-width: 781px) {
	/* Tighter than the desktop rhythm; sides match the mobile header inset. */
	.lwt-single-post__body {
		padding-block: 1.5rem calc(2.5rem * 0.25);
		padding-inline: var(--lwt-header-inset, 1.25rem);
	}

	/*
	 * Post content — Figma Mobile (2024:38).
	 * Body Inter Light 16/35; H2 Editors Note 30/40; H3 Ashcroft 25/60.
	 */
	.lwt-single-post__content .wp-block-post-content {
		font-size: 1rem; /* 16px */
		line-height: 35px;
		--wp--style--block-gap: 2.1875rem; /* 35px — one blank body line */
	}

	.lwt-single-post__content
		.wp-block-post-content
		> *
		+ :is(h2, .wp-block-heading:where(h2)) {
		margin-block-start: 3rem;
	}

	.lwt-single-post__content .wp-block-post-content :is(h2, h2.wp-block-heading) {
		font-size: 1.875rem; /* 30px */
		line-height: 40px;
	}

	:root :where(.lwt-single-post__content .wp-block-post-content h3),
	:root
		:where(
			.lwt-single-post__content .wp-block-post-content h3.wp-block-heading
		) {
		font-size: 1.5625rem; /* 25px */
		line-height: 60px;
	}

	.lwt-single-post__content .wp-block-post-content p:not(.lwt-post-toc__title),
	.lwt-single-post__content
		.wp-block-post-content
		:is(ul, ol):not(.lwt-post-toc__list) {
		font-size: 1rem;
		line-height: 35px;
	}

	.lwt-single-post__content
		.wp-block-post-content
		:is(figcaption, .wp-element-caption),
	.lwt-single-post__content
		.wp-block-post-content
		.wp-block-gallery.has-nested-images
		figure.wp-block-image
		:is(figcaption, .wp-element-caption),
	.lwt-single-post__content
		.wp-block-post-content
		.wp-block-gallery:not(.has-nested-images)
		:is(.blocks-gallery-item, .blocks-gallery-image)
		figcaption {
		line-height: 35px;
	}

	.lwt-single-post__content
		.wp-block-post-content
		.wp-block-gallery:has(:is(figcaption, .wp-element-caption)) {
		padding-bottom: calc(1.0625rem + 35px + var(--wp--preset--spacing--30));
	}

	.lwt-post-signature,
	.lwt-single-post__content .lwt-post-signature.wp-block-paragraph {
		margin-block-start: 1.5rem;
		font-size: 2.5rem; /* closer to mobile signature scale */
		line-height: 40px;
	}

	.lwt-post-sidebar .lwt-sidebar-courtney,
	.lwt-sidebar-courtney {
		max-width: 23.75rem;
	}

	.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-image,
	.lwt-post-sidebar .lwt-sidebar-courtney .lwt-sidebar-courtney__image,
	.lwt-sidebar-courtney .wp-block-image,
	.lwt-sidebar-courtney .lwt-sidebar-courtney__image {
		max-width: 16.5rem; /* 264px — Figma Mobile */
		margin-bottom: 2.5625rem; /* ~41px image → title */
	}

	.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-image img,
	.lwt-post-sidebar .lwt-sidebar-courtney .lwt-sidebar-courtney__image img,
	.lwt-sidebar-courtney .wp-block-image img,
	.lwt-sidebar-courtney .lwt-sidebar-courtney__image img {
		aspect-ratio: 264 / 352;
	}

	.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-heading,
	.lwt-post-sidebar .lwt-sidebar-courtney h2,
	.lwt-sidebar-courtney .wp-block-heading,
	.lwt-sidebar-courtney h2 {
		margin-bottom: 1.375rem;
		font-size: 1.5625rem; /* 25px */
		line-height: 60px;
	}

	.lwt-post-sidebar .lwt-sidebar-courtney .wp-block-paragraph,
	.lwt-post-sidebar .lwt-sidebar-courtney p,
	.lwt-sidebar-courtney .wp-block-paragraph,
	.lwt-sidebar-courtney p {
		max-width: 20rem;
		font-size: 1rem; /* 16px */
		line-height: 35px;
	}
}

/* -------------------------------------------------------------------------
   Comments — Figma BLOG-POST Desktop (Leave a Comment / 67:3, 67:17, 67:16)
   Labels stay top-left inside bordered panels. Field heights are shorter
   than the 142px / 420px Figma panels so the form reads tighter.
   Button 233×64, #AFC7D3.
   ------------------------------------------------------------------------- */

.lwt-comments {
	box-sizing: border-box;
	width: 100%;
	max-width: 60.6875rem; /* 971px */
	margin-top: 0;
	margin-block-start: 0;
	margin-inline: auto;
	padding: 0 var(--wp--preset--spacing--20) calc(var(--wp--preset--spacing--80) / 4);
	color: var(--wp--preset--color--black);
}

.lwt-comments *,
.lwt-comments *::before,
.lwt-comments *::after {
	box-sizing: border-box;
}

.lwt-comments__heading,
.lwt-comments .lwt-comments__heading.wp-block-heading {
	margin: 0 0 3.625rem; /* 58px — title → form (67:3 → 67:17) */
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--editors-note);
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: 200;
	line-height: 1.3333; /* 60/45 */
	text-align: center;
}

.lwt-comments__thread {
	margin-top: var(--wp--preset--spacing--80);
}

/*
 * Comment template renders nothing when a post has no comments, but the
 * wrapper still contains whitespace, so :empty never matches.
 */
.wp-block-comments.lwt-comments__thread:not(:has(.wp-block-comment-template)) {
	margin: 0;
	padding: 0;
	height: 0;
	min-height: 0;
	overflow: hidden;
}

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

.lwt-comments__item {
	margin: 0 0 var(--wp--preset--spacing--47);
}

.lwt-comments__meta {
	gap: 0;
	align-items: center;
}

.lwt-comments__meta-text {
	gap: 0.5rem;
	align-items: baseline;
}

.lwt-comments__list .wp-block-comment-author-name,
.lwt-comments__list .wp-block-comment-date {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.4;
}

.lwt-comments__list .wp-block-comment-author-name {
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 500;
}

.lwt-comments__list .wp-block-comment-date {
	font-family: var(--wp--preset--font-family--inter);
}

.lwt-comments__list .wp-block-avatar img {
	border-radius: 0;
}

.lwt-comments__list .wp-block-comment-content {
	margin-top: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.5;
}

.lwt-comments__list .wp-block-comment-reply-link {
	margin-top: var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

/* Title lives in the template; hide the empty reply heading until cancel is shown. */
.lwt-comments .comment-reply-title {
	display: none;
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--editors-note);
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: 200;
	line-height: 1.3333;
	text-align: center;
}

.lwt-comments
	.comment-reply-title:has(
		#cancel-comment-reply-link:not([style*="display:none"])
	) {
	display: block;
}

.lwt-comment-form {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.3125rem; /* 21px */
	row-gap: 1.25rem;
	width: 100%;
	max-width: 60.6875rem;
	margin: 0 auto;
}

.lwt-comment-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 1.125rem 1.5rem;
	border: 1px solid var(--wp--preset--color--black);
	border-radius: 0;
	background-color: var(--wp--preset--color--creamy-white);
}

.lwt-comment-form__field--author,
.lwt-comment-form__field--email {
	grid-column: span 1;
	height: auto;
	min-height: 0;
}

.lwt-comment-form__field--comment {
	grid-column: 1 / -1;
	height: auto;
	min-height: 0;
}

.lwt-comment-form .comment-form-cookies-consent,
.lwt-comment-form .logged-in-as,
.lwt-comment-form__submit,
.lwt-comment-form .form-submit {
	grid-column: 1 / -1;
	width: 100%;
}

.lwt-comment-form__field label {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--heading-4);
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.13em; /* 2.21px at 17px */
	line-height: normal;
	text-transform: uppercase;
}

.lwt-comment-form__field input[type="text"],
.lwt-comment-form__field input[type="email"],
.lwt-comment-form__field textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	font-style: normal;
	font-weight: 300;
	line-height: 1.5;
}

.lwt-comment-form__field input[type="text"],
.lwt-comment-form__field input[type="email"] {
	min-height: 1.5rem;
}

.lwt-comment-form__field textarea {
	flex: 1 1 auto;
	height: 5.5rem;
	min-height: 5.5rem;
	resize: vertical;
}

.lwt-comment-form__field input:focus,
.lwt-comment-form__field textarea:focus {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 2px;
}

/* Cookie opt-in is not in the Figma form; keep in DOM for WP, hide visually. */
.lwt-comment-form .comment-form-cookies-consent {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lwt-comment-form__submit,
.lwt-comment-form .form-submit {
	display: flex;
	justify-content: center;
	margin: 30px auto 0;
}

.lwt-comment-form__submit input[type="submit"],
.lwt-comment-form .form-submit input[type="submit"],
.lwt-comment-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 14.5625rem; /* 233px */
	min-height: 4rem; /* 64px */
	margin: 0;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 0;
	background-color: #afc7d3 !important;
	box-shadow: none;
	color: var(--wp--preset--color--black) !important;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--heading-4);
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: normal;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.lwt-comment-form__submit input[type="submit"]:hover,
.lwt-comment-form .form-submit input[type="submit"]:hover,
.lwt-comment-form__button:hover,
.lwt-comment-form__submit input[type="submit"]:focus,
.lwt-comment-form .form-submit input[type="submit"]:focus,
.lwt-comment-form__button:focus {
	background-color: var(--wp--preset--color--sea) !important;
	color: var(--wp--preset--color--creamy-white) !important;
}

.lwt-comment-form__submit input[type="submit"]:focus-visible,
.lwt-comment-form .form-submit input[type="submit"]:focus-visible,
.lwt-comment-form__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 4px;
}

@media (max-width: 781px) {
	.lwt-comments {
		padding-top: 0;
		padding-bottom: calc(var(--wp--preset--spacing--47) / 4);
		padding-inline: 1.75rem;
	}

	.lwt-comments__heading,
	.lwt-comments .lwt-comments__heading.wp-block-heading {
		margin-bottom: var(--wp--preset--spacing--47);
		font-size: 1.875rem; /* 30px — match mobile H2 scale */
		line-height: 40px;
	}

	.lwt-comment-form {
		grid-template-columns: 1fr;
		row-gap: 1.5rem;
	}

	.lwt-comment-form__field {
		padding: 0.875rem 1rem;
	}

	.lwt-comment-form__field--author,
	.lwt-comment-form__field--email,
	.lwt-comment-form__field--comment {
		height: auto;
		min-height: 0;
	}

	.lwt-comment-form__field textarea {
		height: 6rem;
		min-height: 6rem;
		resize: vertical;
	}

	.lwt-comment-form__field label {
		font-size: 0.8125rem; /* 13px */
	}
}
