/*
 * Single post (blog-single), in the post column (800px at 1440): the category chip, the title, the meta bar between two
 * hairlines (author, date, reading time, comments link, each beside an 18px icon), the 9:5 featured image, the body, the
 * share row (accent circle icon, label, share links), the author box (authorBox), related posts (post-carousel,
 * related) with a hairline under them and the comments with core's form ("Leave a Reply" after an accent circle).
 * Body rules are written for any author content (core/post-content in the single template): paragraphs, h2 with a light
 * marker bar, galleries (3 columns, 5:4 crops), quotes in a cream box with an accent edge.
 * hero (single-wide): the chip, title and meta bar centred on the featured image (a 34rem cover, 50% dark overlay) under
 * the overlay header; the post in a 47.5rem column. toc (single-wide-contents): under the cover a wide four column
 * grid, the post in three, a sticky table of contents in the fourth; one column under 64rem, the contents first.
 * The original theme: core post blocks, core/icon, core/social-links (share links), core/avatar, core/cover, a grid group with
 * rtthemes/table-of-contents, core/comments + core/post-comments-form ("Two columns" style). The form keeps core's
 * markup: the form box is display: contents so its fields wrap in the respond box's flex row next to the title.
 * Spacing presets 50-70 are fluid in the original theme: the --rt-spacing-*-fluid tokens, with the fixed sizes as fallbacks.
 */
:where(.rt-post-content) {
	color: var(--rt-color-body);
}

.rt-post-content {
	--rt-post-content-gap: 1.5625rem;
	--rt-post-content-block-gap: 2.5rem;
	--rt-post-content-section-gap: var(--rt-spacing-50-fluid, var(--rt-spacing-50));
	--rt-post-content-related-gap: var(--rt-spacing-60-fluid, var(--rt-spacing-60));
	--rt-post-content-icon-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92L5.92 19zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83a1 1 0 0 0 0-1.41z'/%3E%3C/svg%3E");
	font-family: var(--rt-font-family-body);
	font-size: var(--rt-font-size-base);
	line-height: 1.5625;
}

.rt-post-content a {
	text-underline-offset: 0.1875rem;
}

.rt-post-content a:not(.rt-post-content__body a) {
	color: inherit;
}

/* Author content: zero class weight, so in the original theme the theme.json link element (Styles → Elements → Link) wins */
:where(.rt-post-content__body) a {
	color: inherit;
}

.rt-post-content .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* Category chip: accent label, Bold 14, sized to its text */
.rt-post-content .rt-post-content__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.rt-post-content .rt-post-content__terms a.rt-post-content__chip {
	padding: 0.375rem 0.75rem;
	background-color: var(--rt-color-accent);
	color: var(--rt-color-on-accent);
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.2;
	text-decoration: none;
}

.rt-post-content .rt-post-content__title {
	margin: 1.125rem 0 0;
	color: var(--rt-color-contrast);
	font-family: var(--rt-font-family-body);
	font-size: clamp(1.25rem, 1.25rem + ((1vw - 0.2rem) * 1.071), 2rem); /* preset-exempt: single post title (the original theme's fluid 32), no preset */
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.1875;
}

/* Meta bar: Medium 14 between two hairlines, each item an 18px icon 8px before its text, items 28px apart */
/* The original theme: the groups' flex layouts and block gaps (markup) */
:where(.rt-post-content .rt-post-content__meta) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 1.75rem;
}

:where(.rt-post-content .rt-post-content__meta-item) {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.rt-post-content .rt-post-content__meta {
	margin: 1.5rem 0 0;
	padding-block: 1.125rem;
	border-block: 1px solid var(--rt-post-content-divider);
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.15;
}

.rt-post-content__meta-item > * {
	margin: 0;
}

.rt-post-content .rt-post-content__meta-icon {
	display: block;
	flex: none;
	width: 1.125rem;
	height: auto;
	color: var(--rt-color-warm);
}

.rt-post-content__meta a {
	text-decoration: none;
}

.rt-post-content__meta a:hover,
.rt-post-content__meta a:focus-visible,
.rt-post-content__count a {
	text-decoration: underline;
}

.rt-post-content__count a:hover,
.rt-post-content__count a:focus-visible {
	text-decoration: none;
}

/* Featured image: 9:5, 32px under the meta bar */
.rt-post-content .rt-post-content__image {
	margin: 2rem 0 0;
	aspect-ratio: 9 / 5;
	overflow: hidden;
}

.rt-post-content .rt-post-content__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/*
 * hero: the article spans the page; the cover holds the chip, an xx-large title and the meta bar centred on the featured
 * image under a 50% dark overlay. Its top padding leaves room for the overlay header. The rest sits in a 47.5rem column
 * (original theme: a constrained group with the root padding at its sides).
 */
.rt-post-content--hero {
	--rt-post-content-column: 47.5rem;
	padding-inline: var(--rt-layout-root-padding-start, var(--rt-spacing-40)) var(--rt-layout-root-padding-end, var(--rt-spacing-40));
}

.rt-post-content.rt-post-content--hero > :not(.rt-post-content__cover, .rt-post-content__grid) {
	max-width: var(--rt-post-content-column);
	margin-inline: auto;
}

.rt-post-content .rt-post-content__cover {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 34rem;
	margin-inline: calc(-1 * var(--rt-layout-root-padding-start, var(--rt-spacing-40))) calc(-1 * var(--rt-layout-root-padding-end, var(--rt-spacing-40)));
	padding: var(--rt-spacing-section-large) var(--rt-spacing-50-fluid, var(--rt-spacing-50)) var(--rt-spacing-70-fluid, var(--rt-spacing-70));
	overflow: clip;
	color: var(--rt-color-base);
}

.rt-post-content .rt-post-content__cover-image,
.rt-post-content .rt-post-content__cover-dim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.rt-post-content .rt-post-content__cover-image {
	max-width: none;
	object-fit: cover;
}

.rt-post-content .rt-post-content__cover-dim {
	background-color: var(--rt-color-contrast);
	opacity: 0.5;
}

/* The original theme: the inner group's vertical flex layout, centred, 20px block gap (markup) */
.rt-post-content .rt-post-content__cover-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
	max-width: var(--rt-post-content-column);
	margin-inline: auto;
}

.rt-post-content__cover .rt-post-content__title {
	margin: 0;
	color: var(--rt-color-base);
	font-size: var(--rt-font-size-xx-large);
	line-height: 1.15;
	text-align: center;
}

.rt-post-content__cover .rt-post-content__meta {
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--rt-color-base);
}

.rt-post-content__cover .rt-post-content__meta-icon {
	color: var(--rt-color-accent);
}

/* toc: a wide four column grid, the post in the first three, the contents sticking below the header in the fourth */
.rt-post-content .rt-post-content__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--rt-spacing-50-fluid, var(--rt-spacing-50)) var(--rt-spacing-60-fluid, var(--rt-spacing-60));
	max-width: var(--rt-layout-wide, 76.25rem);
	margin: var(--rt-spacing-60-fluid, var(--rt-spacing-60)) auto 0;
}

.rt-post-content .rt-post-content__toc {
	grid-area: 1 / 4 / auto / span 1;
	margin: 0;
}

.rt-post-content .rt-post-content__main {
	grid-area: 1 / 1 / auto / span 3;
	min-width: 0;
}

.rt-post-content .rt-post-content__toc-sticky {
	position: sticky;
	top: 6rem;
}

/* The table of contents block's settings: small, medium weight, body colour, the current link in contrast; its title
   paragraph medium, bold, contrast, 1.25rem above the list */
.rt-post-content__toc .rt-table-of-contents {
	color: var(--rt-color-body);
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.4;
}

.rt-post-content__toc .rt-table-of-contents .rt-table-of-contents__title {
	margin: 0 0 1.25rem;
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-medium);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.2;
}

.rt-post-content__toc .rt-table-of-contents__link {
	padding-block: 0.375rem;
}

.rt-post-content__toc .rt-table-of-contents__link[aria-current] {
	color: var(--rt-color-contrast);
}

.rt-post-content--toc .rt-post-content__body h2,
.rt-post-content--toc .rt-post-content__body h3 {
	scroll-margin-top: 6rem;
}

/* Body: author content */
.rt-post-content .rt-post-content__body {
	margin: 1.8125rem 0 0;
}

.rt-post-content--hero > .rt-post-content__body {
	margin-top: var(--rt-spacing-60-fluid, var(--rt-spacing-60));
}

.rt-post-content .rt-post-content__main > .rt-post-content__body {
	margin-top: 0;
}

.rt-post-content__body > * {
	margin-block: 0;
}

.rt-post-content__body > * + * {
	margin-block-start: var(--rt-post-content-gap);
}

/* h2, galleries, quotes and the newsletter box (the theme's pattern in a post) keep more room around them (margins
   collapse with the paragraphs' gap; the original theme: the blocks' own margins); h3 and h4 keep the paragraphs' gap */
.rt-post-content__body > h2,
.rt-post-content__body > figure,
.rt-post-content__body > .rt-newsletter-box,
.rt-post-content__body > blockquote {
	margin-block: var(--rt-post-content-block-gap);
}

.rt-post-content__body > :first-child {
	margin-block-start: 0;
}

.rt-post-content__body > :last-child {
	margin-block-end: 0;
}

/* The author's headings; a module's own heading in the body (the accordion's) keeps the module's type */
.rt-post-content__body h2,
.rt-post-content__body h3:not(.rt-accordion__heading),
.rt-post-content__body h4 {
	color: var(--rt-color-contrast);
	font-family: var(--rt-font-family-body);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.15;
}

/* h2: a light marker bar under two thirds of the heading, 3px below its last line */
.rt-post-content__body h2 {
	width: fit-content;
	max-width: 100%;
	padding-bottom: 0.1875rem;
	background: linear-gradient(var(--rt-post-content-highlight), var(--rt-post-content-highlight)) 0 100% / 65% 0.9375rem no-repeat;
	font-size: var(--rt-font-size-large);
}

.rt-post-content__body h3:not(.rt-accordion__heading) {
	font-size: var(--rt-font-size-medium);
	line-height: 1.25;
}

.rt-post-content__body h4 {
	font-size: var(--rt-font-size-base);
}

.rt-post-content__body figure {
	margin-inline: 0;
}

.rt-post-content__body img {
	max-width: 100%;
	height: auto;
}

/* Gallery (a figure of figures): three 5:4 crops 15px apart; under 600px two per row, the last one filling its row. In
   the original theme, core's gallery layout lays them out the same way (theme.json gives core/gallery the 15px block gap), so the
   layout rules sit in :where() and a gallery's own Block spacing wins. */
:where(.rt-post-content__body figure:has(> figure)) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9375rem;
}

:where(.rt-post-content__body figure:has(> figure) > figure) {
	flex-grow: 1;
	width: calc((100% - 0.9375rem) / 2);
	margin: 0;
}

@media (min-width: 600px) {
	:where(.rt-post-content__body figure:has(> figure) > figure) {
		width: calc((100% - 2 * 0.9375rem) / 3);
	}
}

.rt-post-content__body figure:has(> figure) img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

/* Quote: cream box, 11px accent edge, Medium 18/30 */
.rt-post-content__body blockquote {
	margin-inline: 0;
	padding: 3.625rem 4.1875rem 3.25rem 3.5rem;
	border: 0;
	border-inline-start: 0.6875rem solid var(--rt-post-content-quote-edge);
	background: var(--rt-post-content-quote);
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-base-plus);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.6667;
}

.rt-post-content__body blockquote > * {
	margin-block: 0;
}

.rt-post-content__body blockquote > * + * {
	margin-block-start: var(--rt-spacing-30);
}

.rt-post-content__body blockquote cite {
	display: block;
	color: var(--rt-color-warm);
	font-size: var(--rt-font-size-small);
	font-style: normal;
}

/* Share row: an accent circle icon and the bold label on the left, 18px icons 28px apart on the right, a line under */
/* The original theme: the groups' flex layouts and block gaps (markup) */
:where(.rt-post-content .rt-post-content__share) {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem 2rem;
}

:where(.rt-post-content .rt-post-content__share-head) {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.rt-post-content .rt-post-content__share {
	margin: 0;
	padding-block: var(--rt-post-content-section-gap);
	border-bottom: 1px solid var(--rt-post-content-divider);
}

/* 44px accent circle with the icon in the text colour on accent (original theme: core/icon with a background and 50% radius) */
.rt-post-content .rt-post-content__badge {
	box-sizing: border-box;
	display: block;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.6875rem;
	border-radius: 50%;
	background-color: var(--rt-color-accent);
	color: var(--rt-color-on-accent);
}

.rt-post-content .rt-post-content__badge-icon {
	display: block;
	width: 100%;
	height: 100%;
}

.rt-post-content .rt-post-content__share-label {
	margin: 0;
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-base-plus);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.15;
}

/* The original theme: the social links' flex layout and block gap (markup) */
:where(.rt-post-content .rt-post-content__share-links) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
}

.rt-post-content .rt-post-content__share-links {
	margin: 0;
	padding: 0;
	color: var(--rt-color-contrast);
	list-style: none;
}

/* The icon size while no Icon size is chosen in the sidebar */
.rt-post-content .rt-post-content__share-links:not([class*="-icon-size"]) {
	font-size: var(--rt-font-size-base-plus);
}

.rt-post-content__share-links li {
	margin: 0;
}

.rt-post-content__share-links a {
	display: block;
	color: inherit;
	transition: color 0.2s ease;
}

.rt-post-content__share-links a:hover,
.rt-post-content__share-links a:focus-visible {
	color: var(--rt-color-accent);
}

.rt-post-content__share-links svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Author box (authorBox): an 80px round avatar beside "Written by", the name and the biography, on the surface colour */
/* The original theme: the groups' flex layouts and block gaps (markup) */
:where(.rt-post-content .rt-post-content__author-box) {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

:where(.rt-post-content .rt-post-content__author-text) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.375rem;
}

.rt-post-content .rt-post-content__author-box {
	margin: var(--rt-post-content-section-gap) 0 0;
	padding: 2rem;
	background-color: var(--rt-color-surface);
}

.rt-post-content .rt-post-content__avatar {
	display: block;
	flex: none;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
}

.rt-post-content__author-text > * {
	margin: 0;
}

.rt-post-content .rt-post-content__author-label {
	color: var(--rt-color-warm);
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.2;
}

.rt-post-content .rt-post-content__author-name {
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-medium);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.2;
}

.rt-post-content__author-name a {
	text-decoration: none;
}

.rt-post-content__author-name a:hover,
.rt-post-content__author-name a:focus-visible {
	text-decoration: underline;
}

.rt-post-content .rt-post-content__author-bio {
	margin-top: 0.25rem;
	color: var(--rt-color-body);
	font-size: var(--rt-font-size-small);
	line-height: 1.5714;
}

/* Related posts with a line under them (padding: the original theme's group children have no block margins) */
.rt-post-content .rt-post-content__related {
	margin: 0;
	padding: var(--rt-post-content-related-gap) 0 var(--rt-post-content-section-gap);
	border-bottom: 1px solid var(--rt-post-content-divider);
}

.rt-post-content .rt-post-carousel--related {
	--rt-post-carousel-top: 0px;
}

.rt-post-content .rt-post-content__comments {
	margin: 0;
	padding-top: var(--rt-post-content-related-gap);
}

/* Comments list (none in the design): title, then comments split by thin lines */
.rt-post-content .rt-post-content__comments-title,
.rt-post-content__form .comment-reply-title {
	margin: 0;
	color: var(--rt-color-contrast);
	font-family: var(--rt-font-family-body);
	font-size: var(--rt-font-size-large-plus);
	font-weight: var(--rt-font-weight-bold);
	line-height: 1.7308;
}

.rt-post-content .rt-post-content__comment-list {
	margin: 0 0 4.375rem;
	padding: 0;
	list-style: none;
}

.rt-post-content__comment-list ol {
	margin: 0;
	padding: 0 0 0 var(--rt-spacing-50);
	list-style: none;
}

.rt-post-content__comment-list li {
	margin: 0;
}

.rt-post-content .rt-post-content__comment {
	margin: 0;
	padding-block: 1.875rem;
	border-bottom: 1px solid var(--rt-post-content-divider);
}

/* The original theme: the group's flex layout and block gap (markup) */
:where(.rt-post-content .rt-post-content__comment-meta) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
}

.rt-post-content .rt-post-content__comment-meta {
	align-items: baseline;
	margin: 0;
}

.rt-post-content__comment-meta > * {
	margin: 0;
}

.rt-post-content .rt-post-content__comment-author {
	color: var(--rt-color-contrast);
	font-weight: var(--rt-font-weight-bold);
}

/* The author's link keeps its underline over the theme's core/comment-author-name block style */
.rt-post-content .rt-post-content__comment-author a {
	text-decoration: underline;
}

.rt-post-content .rt-post-content__comment-date {
	color: var(--rt-color-warm);
	font-size: var(--rt-font-size-small);
}

.rt-post-content .rt-post-content__comment-text {
	margin: 0;
	padding-top: 0.625rem;
}

.rt-post-content__comment-text > * {
	margin-block: 0;
}

.rt-post-content__comment-text > * + * {
	margin-block-start: 0.75rem;
}

.rt-post-content .rt-post-content__reply {
	margin: 0;
	padding-top: 0.625rem;
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-medium);
}

.rt-post-content__reply a {
	text-decoration: underline;
}

.rt-post-content__reply a:hover,
.rt-post-content__reply a:focus-visible {
	text-decoration: none;
}

/*
 * Comment form: "Leave a Reply" with the notes beside it, Name | Email, Website, Comment, cookies consent, an outlined
 * 220x55 button. The form box steps aside (display: contents) so its paragraphs are items of the respond box's row.
 */
.rt-post-content .rt-post-content__form {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 3.5625rem;
	margin: 0;
	color: var(--rt-color-contrast);
}

.rt-post-content__form .comment-form {
	display: contents;
}

.rt-post-content__form .comment-form > * {
	flex: 1 1 100%;
	order: 2;
	margin: 1.875rem 0 0;
}

/* The title and the notes share the first row; an empty full-width item ends it, so the fields always start below */
.rt-post-content__form .comment-form::before {
	content: "";
	flex: 1 1 100%;
	order: 1;
	margin: 0;
}

/* "Leave a Reply" after a 44px accent circle with a pencil, like the share and related titles' icons */
.rt-post-content__form .comment-reply-title {
	--rt-post-content-badge: 2.75rem;
	position: relative;
	flex: none;
	align-content: center;
	min-height: var(--rt-post-content-badge);
	padding-inline-start: calc(var(--rt-post-content-badge) + 0.875rem);
}

.rt-post-content__form .comment-reply-title::before,
.rt-post-content__form .comment-reply-title::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	translate: 0 -50%;
}

.rt-post-content__form .comment-reply-title::before {
	inset-inline-start: 0;
	width: var(--rt-post-content-badge);
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--rt-color-accent);
}

.rt-post-content__form .comment-reply-title::after {
	inset-inline-start: calc(var(--rt-post-content-badge) / 4);
	width: calc(var(--rt-post-content-badge) / 2);
	aspect-ratio: 1;
	background-color: var(--rt-color-on-accent);
	-webkit-mask: var(--rt-post-content-icon-pencil) center / contain no-repeat;
	mask: var(--rt-post-content-icon-pencil) center / contain no-repeat;
}

.rt-post-content__form .comment-reply-title small {
	display: block;
	font-size: var(--rt-font-size-small);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.5;
}

.rt-post-content__form .comment-notes,
.rt-post-content__form .logged-in-as {
	flex: 1 1 18rem;
	order: 0;
	margin: 0 0 0 1.1875rem;
	color: var(--rt-color-contrast);
	line-height: 1.5625;
}

.rt-post-content__form .comment-form-author,
.rt-post-content__form .comment-form-email {
	flex: 1 1 calc(50% - 1.78125rem);
}

.rt-post-content__form label {
	display: block;
	padding-bottom: 1.0625rem;
	line-height: 1.5625;
}

/* core's comment form: a small gap under the name, email and website labels */
.rt-post-content__form .comment-form-author label,
.rt-post-content__form .comment-form-email label,
.rt-post-content__form .comment-form-url label {
	margin-bottom: 0.25em;
}

.rt-post-content__form .required {
	color: inherit;
}

.rt-post-content__form input[type="text"],
.rt-post-content__form input[type="email"],
.rt-post-content__form input[type="url"],
.rt-post-content__form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 3.75rem;
	margin: 0;
	padding: 0 1.25rem;
	border: 1px solid var(--rt-post-content-field);
	border-radius: 0;
	background-color: var(--rt-color-base);
	color: var(--rt-color-contrast);
	font-family: inherit;
	font-size: var(--rt-font-size-base);
	line-height: 1.5625;
	appearance: none;
}

.rt-post-content__form textarea {
	height: 10.5rem;
	padding-block: 1.0625rem;
	resize: vertical;
}

/* Focus: 2px dark frame drawn inside, so the field does not move; invalid after the visitor typed: dashed error frame */
.rt-post-content__form input:focus-visible,
.rt-post-content__form textarea:focus-visible {
	border-color: var(--rt-color-contrast);
	outline: 0;
	box-shadow: inset 0 0 0 1px var(--rt-color-contrast);
}

.rt-post-content__form input:user-invalid,
.rt-post-content__form textarea:user-invalid {
	border-style: dashed;
	border-color: var(--rt-post-content-error);
}

.rt-post-content__form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	line-height: 1.5625;
}

.rt-post-content__form .comment-form-cookies-consent input {
	flex: none;
	width: 1rem;
	height: 1rem;
	margin: 0.375rem 0 0;
	accent-color: var(--rt-color-contrast);
}

.rt-post-content__form .comment-form-cookies-consent label {
	padding: 0;
	line-height: inherit;
}

.rt-post-content__form .form-submit input[type="submit"] {
	box-sizing: border-box;
	min-width: 13.75rem;
	margin: 0;
	padding: var(--rt-spacing-30) var(--rt-spacing-40);
	border: 1px solid var(--rt-color-contrast);
	border-radius: var(--rt-button-radius);
	background: transparent;
	color: var(--rt-color-contrast);
	font-family: inherit;
	font-size: var(--rt-font-size-base-plus);
	font-weight: var(--rt-font-weight-medium);
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rt-post-content__form .form-submit input[type="submit"]:hover {
	border-color: var(--rt-button-hover-border);
	background-color: var(--rt-button-hover-bg);
	color: var(--rt-button-hover-color);
}

.rt-post-content__form .form-submit input[type="submit"]:focus-visible {
	outline: 2px solid var(--rt-color-contrast);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.rt-post-content__share-links a,
	.rt-post-content__form .form-submit input[type="submit"] {
		transition: none;
	}
}

/* Tablet (toc): one column, the contents above the post */
@media (max-width: 64rem) {
	.rt-post-content .rt-post-content__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rt-post-content .rt-post-content__toc {
		grid-area: 1 / 1;
	}

	.rt-post-content .rt-post-content__main {
		grid-area: 2 / 1;
	}
}

/* Mobile: 7rem above the cover's text, one column form, the notes under the title */
@media (max-width: 37.5rem) {
	.rt-post-content .rt-post-content__cover {
		padding-top: 7rem;
	}

	.rt-post-content__form .comment-form > * {
		margin-top: 1.25rem;
	}

	.rt-post-content__form .comment-notes,
	.rt-post-content__form .logged-in-as,
	.rt-post-content__form .comment-form-author,
	.rt-post-content__form .comment-form-email {
		flex-basis: 100%;
		margin-inline-start: 0;
	}

	.rt-post-content__form .comment-notes,
	.rt-post-content__form .logged-in-as {
		margin-top: var(--rt-spacing-20);
	}
}
