/**
 * Travel26 content styles: post and page content written in the block editor.
 *
 * One file for the front end and the block editor (docs/block-editor.md at the site root): functions.php enqueues it
 * on enqueue_block_assets, which loads it on the site and inside the editor's canvas. It is scoped to .entry-content
 * (theme templates and Inoforest Core's Post Content widget) and .editor-styles-wrapper (the canvas), so both show the
 * same thing, and builds on WordPress's own block-library styles. Approved design:
 * docs/mockups/travel26-theme-block-content.html at the site root, which loads this same file.
 *
 * Contents
 * 1. Tokens and base text
 * 2. Widths and alignments (content, wide, full, left, right, centre)
 * 3. Text blocks: paragraph, headings, inline text, lists, quote, pullquote, code, preformatted, verse, details,
 *    table, math
 * 4. Media blocks: image, gallery, audio, video, cover, file, media & text, icon
 * 5. Design blocks: buttons, columns, group / row / stack / grid, accordion, separator, spacer
 * 6. Widget blocks: archives, categories, page list, latest posts, latest comments, RSS, calendar, search, social
 *    icons, tag cloud
 * 7. Theme blocks: site logo / title / tagline, navigation, query loop and pagination, post data, avatar,
 *    breadcrumbs, login / out, comments; the password form and page links WordPress prints with the content
 * 8. Embeds
 * 9. Block editor only
 * 10. Responsive and reduced motion
 *
 * Colours read the Inoforest Core Design System when it is active, with the Travel26 design as fallback.
 */

/* 1. Tokens and base text ------------------------------------------------------ */
:is(.entry-content, .editor-styles-wrapper) {
	--t26c-primary: var(--inoforest-color-primary, #0b7a75);
	--t26c-primary-dark: #075c58;
	--t26c-primary-light: #e5f3f2;
	--t26c-accent: var(--inoforest-color-accent, #ff6a3d);
	--t26c-accent-light: #fff0eb;
	--t26c-heading: var(--inoforest-color-heading, #0d1b2a);
	--t26c-text: var(--inoforest-color-text, #5a6a79);
	--t26c-muted: #8b99a6;
	--t26c-border: var(--inoforest-color-border, #e5ebef);
	--t26c-soft: #f4f8f8;
	--t26c-sand: #fdf6ef;
	--t26c-radius: 16px;
	--t26c-radius-lg: 24px;
	--t26c-content: var(--travel26-content-width, 860px);
	--t26c-wide: var(--travel26-wide-width, 1240px);
	--t26c-gutter: 24px;
	--t26c-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 1.0625rem;
	line-height: 1.85;
	color: var(--t26c-text);
}

:is(.entry-content, .editor-styles-wrapper)::after {
	content: "";
	display: table;
	clear: both;
}

/* In the editor the blocks sit in .is-root-container inside the canvas; :where keeps the front end's specificity. */
:is(.entry-content, .editor-styles-wrapper) > *,
.editor-styles-wrapper :where(.is-root-container) > * {
	margin-top: 0;
	margin-bottom: 1.6rem;
}

:is(.entry-content, .editor-styles-wrapper) > :last-child,
.editor-styles-wrapper :where(.is-root-container) > :last-child {
	margin-bottom: 0;
}

/* Browsers indent figure and blockquote; content blocks start at the column edge (alignments below override). */
:is(.entry-content, .editor-styles-wrapper) :is(figure, blockquote) {
	margin-left: 0;
	margin-right: 0;
}

/* The editor gives every nested block 28px top and bottom (classic layout styles); on the front end they have none. */
html :where(.editor-styles-wrapper .wp-block .wp-block) {
	margin-top: 0;
	margin-bottom: 0;
}

/* Text inside other blocks (group, columns, cover, quote, details…) is spaced 1em apart whatever reset a theme or the
   editor applies; direct children of the content use the larger rhythm above. Lowest specificity on purpose. */
:where(:is(.entry-content, .editor-styles-wrapper)) :is(p, ul, ol, dl, pre, figure, blockquote) {
	margin-top: 1em;
	margin-bottom: 1em;
}

/* 2. Widths and alignments ------------------------------------------------------ */
/* Wide and full blocks start below any floated image, as in the editor. */
:is(.entry-content, .editor-styles-wrapper) :is(.alignwide, .alignfull) {
	clear: both;
}

:is(.entry-content, .editor-styles-wrapper) .alignwide {
	width: min(var(--t26c-wide), 100vw - 2 * var(--t26c-gutter));
	max-width: none;
	margin-left: calc((100% - min(var(--t26c-wide), 100vw - 2 * var(--t26c-gutter))) / 2);
	margin-right: calc((100% - min(var(--t26c-wide), 100vw - 2 * var(--t26c-gutter))) / 2);
}

:is(.entry-content, .editor-styles-wrapper) .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

:is(.entry-content, .editor-styles-wrapper) .alignleft,
.editor-styles-wrapper .wp-block[data-align="left"] > * {
	float: left;
	max-width: 45%;
	margin: 0.4rem 2rem 1.4rem 0;
}

:is(.entry-content, .editor-styles-wrapper) .alignright,
.editor-styles-wrapper .wp-block[data-align="right"] > * {
	float: right;
	max-width: 45%;
	margin: 0.4rem 0 1.4rem 2rem;
}

:is(.entry-content, .editor-styles-wrapper) .aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* 3. Text blocks ----------------------------------------------------------------- */
:is(.entry-content, .editor-styles-wrapper) h1,
:is(.entry-content, .editor-styles-wrapper) h2,
:is(.entry-content, .editor-styles-wrapper) h3,
:is(.entry-content, .editor-styles-wrapper) h4,
:is(.entry-content, .editor-styles-wrapper) h5,
:is(.entry-content, .editor-styles-wrapper) h6 {
	font-family: inherit;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) h1 { margin: 2.8rem 0 1.1rem; font-size: clamp(2.1rem, 4vw, 2.8rem); }
:is(.entry-content, .editor-styles-wrapper) h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
:is(.entry-content, .editor-styles-wrapper) h3 { margin: 2.2rem 0 0.9rem; font-size: 1.45rem; }
:is(.entry-content, .editor-styles-wrapper) h4 { margin: 2rem 0 0.8rem; font-size: 1.25rem; }
:is(.entry-content, .editor-styles-wrapper) h5 { margin: 1.8rem 0 0.7rem; font-size: 1.1rem; }
:is(.entry-content, .editor-styles-wrapper) h6 { margin: 1.8rem 0 0.7rem; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }

:is(.entry-content, .editor-styles-wrapper) > :is(h1, h2, h3, h4, h5, h6):first-child,
.editor-styles-wrapper :where(.is-root-container) > :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) a:where(:not(.wp-element-button):not(.wp-block-button__link)) {
	font-weight: 600;
	color: var(--t26c-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) a:where(:not(.wp-element-button):not(.wp-block-button__link)):is(:hover, :focus-visible) {
	color: var(--t26c-accent);
}

:is(.entry-content, .editor-styles-wrapper) strong,
:is(.entry-content, .editor-styles-wrapper) b {
	font-weight: 700;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) mark {
	padding: 0.05em 0.3em;
	color: var(--t26c-heading);
	background: var(--t26c-accent-light);
	border-radius: 4px;
}

:is(.entry-content, .editor-styles-wrapper) :is(code, kbd):not(pre code) {
	padding: 0.15em 0.4em;
	font-family: var(--t26c-mono);
	font-size: 0.88em;
	color: var(--t26c-heading);
	background: var(--t26c-soft);
	border-radius: 6px;
}

:is(.entry-content, .editor-styles-wrapper) kbd {
	border: 1px solid var(--t26c-border);
	box-shadow: 0 2px 0 var(--t26c-border);
}

:is(.entry-content, .editor-styles-wrapper) .has-drop-cap:not(:focus)::first-letter {
	float: left;
	margin: 0.1em 0.14em 0 0;
	font-size: 4.4em;
	font-weight: 800;
	line-height: 0.8;
	color: var(--t26c-primary);
}

/* Paragraph style "Lead" (registered by the theme): a larger opening paragraph, like the design's .lead. */
:is(.entry-content, .editor-styles-wrapper) p.is-style-lead {
	font-size: 1.125rem;
	line-height: 1.8;
}

/* Lists: the core List block only (widget lists have their own look below). */
:is(.entry-content, .editor-styles-wrapper) .wp-block-list {
	padding-left: 0;
	list-style: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-list li {
	position: relative;
	margin-bottom: 0.6rem;
	padding-left: 30px;
}

:is(.entry-content, .editor-styles-wrapper) ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 6px;
	width: 8px;
	height: 8px;
	background: var(--t26c-accent);
	border-radius: 50%;
}

:is(.entry-content, .editor-styles-wrapper) ul.wp-block-list ul.wp-block-list > li::before {
	background: transparent;
	border: 2px solid var(--t26c-accent);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-list .wp-block-list {
	margin: 0.6rem 0 0;
}

:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list {
	counter-reset: t26c-ol;
}

:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list > li {
	margin-bottom: 0.9rem;
	padding-left: 46px;
	counter-increment: t26c-ol;
}

:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list > li::before {
	content: counter(t26c-ol);
	position: absolute;
	top: 0.1em;
	left: 0;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1;
	color: var(--t26c-primary);
	background: var(--t26c-primary-light);
	border-radius: 50%;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-quote {
	position: relative;
	margin-top: 2.4rem;
	margin-bottom: 2.4rem;
	padding: 34px 40px 34px 96px;
	background: var(--t26c-soft);
	border-left: 4px solid var(--t26c-accent);
	border-radius: 0 var(--t26c-radius-lg) var(--t26c-radius-lg) 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-quote::before {
	content: "";
	position: absolute;
	top: 30px;
	left: 30px;
	width: 44px;
	height: 44px;
	background: var(--t26c-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 17.3C3.6 16.2 3 15 3 13c0-3.5 2.5-6.6 6-8.2l.9 1.4C6.6 8 6 10.1 5.7 11.5c.6-.3 1.4-.4 2.2-.3 2 .2 3.6 1.8 3.6 3.9a4 4 0 0 1-4 4c-1.2 0-2.4-.6-3-1.8zm10 0c-1-1.1-1.6-2.3-1.6-4.3 0-3.5 2.5-6.6 6-8.2l.9 1.4c-3.3 1.8-4 3.9-4.2 5.3.6-.3 1.4-.4 2.2-.3 2 .2 3.6 1.8 3.6 3.9a4 4 0 0 1-4 4c-1.2 0-2.4-.6-3-1.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 17.3C3.6 16.2 3 15 3 13c0-3.5 2.5-6.6 6-8.2l.9 1.4C6.6 8 6 10.1 5.7 11.5c.6-.3 1.4-.4 2.2-.3 2 .2 3.6 1.8 3.6 3.9a4 4 0 0 1-4 4c-1.2 0-2.4-.6-3-1.8zm10 0c-1-1.1-1.6-2.3-1.6-4.3 0-3.5 2.5-6.6 6-8.2l.9 1.4c-3.3 1.8-4 3.9-4.2 5.3.6-.3 1.4-.4 2.2-.3 2 .2 3.6 1.8 3.6 3.9a4 4 0 0 1-4 4c-1.2 0-2.4-.6-3-1.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-quote p {
	margin: 0 0 14px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.6;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-quote cite {
	display: block;
	font-size: 0.925rem;
	font-style: normal;
	font-weight: 700;
	color: var(--t26c-accent);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-quote cite::before {
	content: "\2014\00a0";
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-pullquote {
	margin-top: 2.8rem;
	margin-bottom: 2.8rem;
	padding: 44px 30px;
	font-size: 1rem;
	text-align: center;
	border-top: 3px solid var(--t26c-accent);
	border-bottom: 3px solid var(--t26c-accent);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-pullquote blockquote {
	margin: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-pullquote p {
	margin: 0 0 16px;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-pullquote cite {
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--t26c-accent);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-code {
	padding: 24px 28px;
	overflow-x: auto;
	font-family: var(--t26c-mono);
	font-size: 0.9rem;
	line-height: 1.7;
	color: #e5ebef;
	background: var(--t26c-heading);
	border: 0;
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-code code {
	font-family: inherit;
	color: inherit;
	background: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-preformatted {
	padding: 22px 26px;
	overflow-x: auto;
	font-family: var(--t26c-mono);
	font-size: 0.9rem;
	line-height: 1.75;
	color: var(--t26c-heading);
	white-space: pre-wrap;
	background: var(--t26c-soft);
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-verse {
	padding: 6px 0 6px 26px;
	font-family: inherit;
	font-size: 1.1rem;
	font-style: italic;
	line-height: 1.9;
	color: var(--t26c-heading);
	white-space: pre-wrap;
	background: none;
	border-left: 3px solid var(--t26c-primary-light);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details {
	padding: 0;
	background: #fff;
	border: 1px solid var(--t26c-border);
	border-radius: var(--t26c-radius);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details[open] {
	border-color: transparent;
	box-shadow: 0 14px 40px rgba(13, 27, 42, 0.1);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary {
	position: relative;
	padding: 20px 60px 20px 26px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--t26c-heading);
	list-style: none;
	cursor: pointer;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary::-webkit-details-marker {
	display: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 22px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--t26c-primary);
	background: var(--t26c-primary-light);
	border-radius: 50%;
	transform: translateY(-50%);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details[open] summary::after {
	content: "\2212";
	color: #fff;
	background: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 26px 22px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table {
	margin-top: 2rem;
	margin-bottom: 2rem;
	overflow-x: auto;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table table {
	width: 100%;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 1rem;
	border-radius: 10px 10px 0 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table :is(th, td) {
	padding: 14px 20px;
	text-align: start;
	border: 0;
	border-bottom: 1px solid var(--t26c-border);
}

/* The header colour is painted on the row group, so fractional cell widths leave no seams. */
:is(.entry-content, .editor-styles-wrapper) .wp-block-table thead {
	background: var(--t26c-heading);
	border: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table thead th {
	font-weight: 800;
	color: #fff;
	background: transparent;
	border-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table tbody tr:nth-child(even) {
	background: var(--t26c-soft);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table tfoot {
	border: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table tfoot td {
	font-weight: 800;
	color: var(--t26c-heading);
	border-bottom: 0;
	border-top: 2px solid var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table.is-style-stripes {
	border-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--t26c-primary-light);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
	background: transparent;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table figcaption,
:is(.entry-content, .editor-styles-wrapper) .wp-element-caption {
	margin-top: 12px;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
	color: var(--t26c-muted);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-math {
	padding: 22px;
	overflow-x: auto;
	font-size: 1.2rem;
	color: var(--t26c-heading);
	text-align: center;
	background: var(--t26c-soft);
	border-radius: var(--t26c-radius);
}

/* 4. Media blocks ----------------------------------------------------------------- */
:is(.entry-content, .editor-styles-wrapper) .wp-block-image,
.editor-styles-wrapper .wp-block[data-align]:has(> .wp-block-image) {
	margin-top: 2.2rem;
	margin-bottom: 2.2rem;
}

/* Editor: an aligned image sits in a wrapper (div.wp-block[data-align]) that takes the block's spacing. */
.editor-styles-wrapper .wp-block[data-align]:not([data-align="left"]):not([data-align="right"]) > .wp-block-image {
	margin-top: 0;
	margin-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-image img {
	height: auto;
	border-radius: var(--t26c-radius-lg);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter) img,
:is(.entry-content, .editor-styles-wrapper) .wp-block-image.alignwide img,
:is(.entry-content, .editor-styles-wrapper) .wp-block-image.alignfull img {
	width: 100%;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-image.alignfull img {
	border-radius: 0;
}

/* A floated figure takes its width from its image: keep the image's own size there (capped by the figure's 45 %). */
:is(.entry-content, .editor-styles-wrapper) :is(.alignleft, .alignright) img,
.editor-styles-wrapper .is-root-container > .wp-block:is([data-align="left"], [data-align="right"]) > .wp-block-image img {
	width: auto;
	max-width: 100%;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-image.aligncenter {
	display: table;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-image.is-style-rounded img {
	border-radius: 9999px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-gallery {
	--wp--style--unstable-gallery-gap: 16px;
	margin-top: 2.2rem;
	margin-bottom: 2.2rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-gallery .wp-block-image {
	margin: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-gallery .wp-block-image img {
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-gallery > .wp-element-caption {
	width: 100%;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-audio,
:is(.entry-content, .editor-styles-wrapper) .wp-block-video {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-audio audio {
	width: 100%;
	height: 54px;
	border-radius: 999px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-video video {
	width: 100%;
	border-radius: var(--t26c-radius-lg);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-cover {
	margin-top: 2.4rem;
	margin-bottom: 2.4rem;
	padding: 60px 40px;
	overflow: hidden;
	border-radius: var(--t26c-radius-lg);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-cover.alignfull {
	border-radius: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-cover .wp-block-cover__inner-container {
	color: #fff;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-cover :is(h1, h2, h3, h4, h5, h6, strong) {
	color: #fff;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-cover :is(h1, h2, h3, h4, h5, h6) {
	margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 18px 22px 18px 72px;
	background: var(--t26c-soft) no-repeat 22px center / 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b7a75' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9z'/%3E%3C/svg%3E");
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-file a:not(.wp-block-file__button) {
	font-weight: 700;
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-file .wp-block-file__button {
	margin: 0;
	padding: 10px 22px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	background: var(--t26c-primary);
	border-radius: 999px;
	transition: background-color 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-file .wp-block-file__button:is(:hover, :focus-visible) {
	color: #fff;
	background: var(--t26c-primary-dark);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text {
	margin-top: 2.4rem;
	margin-bottom: 2.4rem;
	gap: 0;
	overflow: hidden;
	background: var(--t26c-soft);
	border-radius: var(--t26c-radius-lg);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text__media img {
	height: 100%;
	object-fit: cover;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text .wp-block-media-text__content {
	padding: 36px 40px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text__content > :first-child {
	margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text__content > :last-child {
	margin-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-icon svg {
	fill: var(--t26c-primary);
}

/* Captions of the classic editor and the [gallery] shortcode (older posts), as the block captions above. */
:is(.entry-content, .editor-styles-wrapper) .wp-caption {
	max-width: 100%;
	margin-bottom: 24px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-caption img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-caption-text,
:is(.entry-content, .editor-styles-wrapper) .gallery-caption {
	margin-top: 12px;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
	color: var(--t26c-muted);
}

/* 5. Design blocks ---------------------------------------------------------------- */
:is(.entry-content, .editor-styles-wrapper) .wp-block-buttons {
	gap: 12px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-button__link,
:is(.entry-content, .editor-styles-wrapper) .wp-element-button:not(.wp-block-file__button):not(.wp-block-search__button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 26px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	background: var(--t26c-primary);
	border: 2px solid var(--t26c-primary);
	border-radius: 999px;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-button__link:is(:hover, :focus-visible) {
	color: #fff;
	background: var(--t26c-primary-dark);
	border-color: var(--t26c-primary-dark);
	transform: translateY(-2px);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	color: var(--t26c-primary);
	background: transparent;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:is(:hover, :focus-visible) {
	color: #fff;
	background: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-button[class*="wp-block-button__width"] .wp-block-button__link {
	width: 100%;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-cover .wp-block-button__link.wp-element-button {
	background: var(--t26c-accent);
	border-color: var(--t26c-accent);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns {
	gap: 30px;
	margin-top: 2.4rem;
	margin-bottom: 2.4rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-column > :first-child {
	margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-column > :last-child {
	margin-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.has-background {
	padding: 30px 34px;
	border-radius: var(--t26c-radius-lg);
}

/* Classic themes wrap group content in .wp-block-group__inner-container. */
:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-group, .wp-block-group__inner-container) > :first-child {
	margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-group, .wp-block-group__inner-container) > :last-child {
	margin-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-card {
	margin-top: 2.4rem;
	margin-bottom: 2.4rem;
	padding: 30px 34px;
	background: var(--t26c-soft);
	border-radius: var(--t26c-radius-lg);
}

/* A card closing the page (the terms page's help box) sits a little further from the text above. */
:is(.entry-content, .editor-styles-wrapper) > .wp-block-group.is-style-card:last-child,
.editor-styles-wrapper :where(.is-root-container) > .wp-block-group.is-style-card:last-child {
	margin-top: 3rem;
}

/* "Contents" list style: numbered links in two columns; a paragraph just above it reads as a small label. */
:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list.is-style-contents {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 28px;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
}

:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list.is-style-contents > li {
	margin: 0;
	padding: 6px 0 6px 40px;
	font-size: 0.975rem;
	line-height: 1.5;
}

:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list.is-style-contents > li::before {
	top: 4px;
	width: 28px;
	height: 28px;
	font-size: 0.8rem;
	background: #fff;
}

:is(.entry-content, .editor-styles-wrapper) .is-style-contents a {
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .is-style-contents a:hover,
:is(.entry-content, .editor-styles-wrapper) .is-style-contents a:focus-visible {
	color: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) p:has(+ .is-style-contents) {
	margin-bottom: 14px;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--t26c-heading);
}

/* Headings that a contents list links to stop below the sticky header. */
.entry-content :is(h2, h3)[id] {
	scroll-margin-top: 110px;
}

/* Row, Stack, Grid and other flex / grid layouts; the gallery keeps its own gap (its column widths depend on it). */
:is(.entry-content, .editor-styles-wrapper) :is(.is-layout-flex, .is-layout-grid):not(.wp-block-gallery) {
	gap: 16px 24px;
}

:is(.entry-content, .editor-styles-wrapper) :is(.is-layout-flex, .is-layout-grid) > * {
	margin: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-layout-grid > p {
	padding: 18px 20px;
	font-weight: 600;
	color: var(--t26c-heading);
	background: var(--t26c-soft);
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-accordion {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-accordion-item {
	margin: 0;
	background: #fff;
	border: 1px solid var(--t26c-border);
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-accordion-heading {
	margin: 0;
	font-size: 1rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-accordion-heading button,
:is(.entry-content, .editor-styles-wrapper) .wp-block-accordion-heading__toggle {
	border-radius: 0;
	width: 100%;
	padding: 18px 24px;
	font: inherit;
	font-weight: 800;
	color: var(--t26c-heading);
	text-align: start;
	background: none;
	border: 0;
	cursor: pointer;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-accordion-panel {
	padding: 0 24px 20px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator {
	width: 120px;
	margin: 2.6rem auto;
	border: 0;
	border-top: 2px solid var(--t26c-border);
	opacity: 1;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator.is-style-wide {
	width: 100%;
	border-top-width: 1px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator.is-style-dots {
	width: auto;
	border: 0;
	line-height: 1;
	text-align: center;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator.is-style-dots::before {
	content: "";
	display: inline-block;
	width: 56px;
	height: 8px;
	padding: 0;
	background: radial-gradient(circle, var(--t26c-accent) 3.5px, transparent 4px) 0 0 / 20px 8px repeat-x;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-spacer {
	margin: 0;
}

/* 6. Widget blocks ----------------------------------------------------------------- */
:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list, .wp-block-rss) {
	padding: 0;
	list-style: none;
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list) li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	color: var(--t26c-muted);
	border-bottom: 1px dashed var(--t26c-border);
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list) a {
	font-weight: 600;
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-archives-list, .wp-block-categories-list, .wp-block-page-list) a:is(:hover, :focus-visible) {
	color: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-posts.wp-block-latest-posts__list {
	padding: 0;
	list-style: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-posts__list li {
	display: grid;
	grid-template-columns: 90px 1fr;
	column-gap: 18px;
	align-items: start;
	margin-bottom: 20px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-posts__list li > :not(.wp-block-latest-posts__featured-image) {
	grid-column: 2;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-posts__featured-image {
	grid-row: span 3;
	margin: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-posts__featured-image img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 12px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-posts__post-title {
	font-weight: 800;
	line-height: 1.4;
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-latest-posts__post-date, .wp-block-latest-comments__comment-date, .wp-block-rss__item-publish-date) {
	font-size: 0.85rem;
	color: var(--t26c-muted);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-posts__post-excerpt {
	margin: 4px 0 0;
	font-size: 0.95rem;
	line-height: 1.6;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-comments {
	padding: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-latest-comments.no-comments {
	padding: 18px 22px;
	font-size: 0.95rem;
	color: var(--t26c-muted);
	background: var(--t26c-soft);
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-rss__item {
	padding: 12px 0;
	border-bottom: 1px dashed var(--t26c-border);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-rss__item-title a {
	font-weight: 800;
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-calendar table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 4px;
	font-size: 0.95rem;
	text-align: center;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-calendar caption {
	margin-bottom: 8px;
	font-weight: 800;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-calendar :is(th, td) {
	padding: 8px 0;
	border: 0;
	border-radius: 10px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-calendar th {
	font-weight: 800;
	color: var(--t26c-muted);
	background: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-calendar td:not(.pad) {
	background: var(--t26c-soft);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-calendar #today {
	font-weight: 800;
	color: #fff;
	background: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-calendar .wp-calendar-nav {
	margin-top: 8px;
	font-weight: 700;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 800;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-search__inside-wrapper {
	gap: 10px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-search__input {
	min-height: 56px;
	margin: 0;
	padding: 14px 20px;
	font: inherit;
	color: var(--t26c-heading);
	background: var(--t26c-soft);
	border: 1px solid transparent;
	border-radius: 10px;
	outline: 0;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-search__input:focus {
	background: #fff;
	border-color: var(--t26c-primary);
	box-shadow: 0 0 0 4px var(--t26c-primary-light);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-search__button {
	margin: 0;
	padding: 0 26px;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: var(--t26c-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-search__button:is(:hover, :focus-visible) {
	background: var(--t26c-primary-dark);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-social-links {
	gap: 10px;
	padding: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-social-links:not(.is-style-logos-only):not(.is-style-pill-shape) .wp-social-link {
	color: var(--t26c-heading);
	background: var(--t26c-soft);
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-social-links:not(.is-style-logos-only):not(.is-style-pill-shape) .wp-social-link:is(:hover, :focus-within) {
	color: #fff;
	background: var(--t26c-accent);
	transform: translateY(-3px);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-social-links .wp-social-link :is(a, .wp-block-social-link-anchor) {
	padding: 10px;
	color: inherit;
}

/* Tag sizes stay as the block sets them (inline, from its smallest / largest size); the pills line up on centre. */
:is(.entry-content, .editor-styles-wrapper) .wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-tag-cloud a {
	display: inline-block;
	margin: 0;
	padding: 0.35em 0.9em;
	line-height: 1.3;
	font-weight: 600;
	color: var(--t26c-heading);
	text-decoration: none;
	background: var(--t26c-soft);
	border-radius: 999px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-tag-cloud a:is(:hover, :focus-visible) {
	color: #fff;
	background: var(--t26c-primary);
}

/* 7. Theme blocks ------------------------------------------------------------------ */
:is(.entry-content, .editor-styles-wrapper) .wp-block-site-logo img {
	border-radius: 14px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-site-title {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-site-title a {
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-site-tagline {
	font-size: 0.95rem;
	color: var(--t26c-muted);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-navigation {
	gap: 8px 26px;
	font-weight: 700;
}

/* Navigation reuses the Page List markup: undo the Page List widget's rows here. */
:is(.entry-content, .editor-styles-wrapper) .wp-block-navigation .wp-block-navigation-item {
	padding: 0;
	color: inherit;
	border: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-navigation .wp-block-navigation-item__content {
	font-weight: 700;
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-navigation .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	color: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
	border-radius: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-template {
	padding: 0;
	list-style: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--t26c-border);
	border-radius: var(--t26c-radius-lg);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-template > li > :not(.wp-block-post-featured-image) {
	margin: 0 22px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-template > li > :last-child {
	margin-bottom: 22px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-featured-image {
	margin: 10px 10px 6px;
	overflow: hidden;
	border-radius: var(--t26c-radius);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-featured-image img {
	width: 100%;
	transition: transform 0.8s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-featured-image a:is(:hover, :focus-visible) img {
	transform: scale(1.06);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-title {
	font-size: 1.15rem;
	line-height: 1.35;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-title a {
	font-weight: 800;
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-title a:is(:hover, :focus-visible) {
	color: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-post-date, .wp-block-post-time-to-read, .wp-block-post-author-name, .wp-block-comment-date) {
	font-size: 0.875rem;
	color: var(--t26c-muted);
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-post-date, .wp-block-comment-date) a {
	font-weight: 500;
	color: inherit;
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-author-name {
	font-weight: 700;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-read-more,
:is(.entry-content, .editor-styles-wrapper) .wp-block-post-excerpt__more-link {
	font-size: 0.925rem;
	font-weight: 700;
	color: var(--t26c-primary);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-read-more::after {
	content: " \2192";
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-terms a {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.825rem;
	font-weight: 600;
	color: var(--t26c-primary);
	text-decoration: none;
	background: var(--t26c-primary-light);
	border-radius: 999px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-terms__separator {
	display: inline-block;
	width: 6px;
	overflow: hidden;
	color: transparent;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-query-pagination {
	gap: 8px;
	margin-top: 28px;
	font-weight: 700;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-query-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	color: var(--t26c-heading);
	text-decoration: none;
	border: 1px solid var(--t26c-border);
	border-radius: 999px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-query-pagination .page-numbers.current {
	color: #fff;
	background: var(--t26c-primary);
	border-color: var(--t26c-primary);
}

:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-query-pagination-next, .wp-block-query-pagination-previous) {
	color: var(--t26c-primary);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-avatar img {
	border-radius: 50%;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	list-style: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-breadcrumbs li:not(:last-child)::after {
	content: var(--separator, "/");
	margin-left: 6px;
	color: var(--t26c-muted);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-breadcrumbs a {
	font-weight: 600;
	color: var(--t26c-heading);
	text-decoration: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-breadcrumbs [aria-current] {
	color: var(--t26c-muted);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-loginout a {
	display: inline-flex;
	padding: 10px 22px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--t26c-primary);
	text-decoration: none;
	border: 2px solid var(--t26c-primary);
	border-radius: 999px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-comments-title,
:is(.entry-content, .editor-styles-wrapper) .wp-block-comments .comment-reply-title {
	margin: 0 0 24px;
	font-size: 1.5rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-comment-template {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-comment-template li {
	margin-bottom: 20px;
	padding: 24px 26px;
	background: #fff;
	border: 1px solid var(--t26c-border);
	border-radius: var(--t26c-radius-lg);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-comment-template .wp-block-columns {
	gap: 18px;
	margin: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-comment-author-name {
	font-weight: 800;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-comment-content p {
	margin: 8px 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-comment-reply-link a,
:is(.entry-content, .editor-styles-wrapper) .comment-reply-link {
	display: inline-flex;
	padding: 4px 14px;
	font-size: 0.825rem;
	font-weight: 700;
	color: var(--t26c-primary);
	text-decoration: none;
	background: var(--t26c-primary-light);
	border-radius: 999px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .comment-form > p {
	grid-column: 1 / -1;
	margin: 0 0 18px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .comment-form > p:is(.comment-form-author, .comment-form-email) {
	grid-column: auto;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--t26c-heading);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%;
	min-height: 54px;
	padding: 14px 20px;
	font: inherit;
	color: var(--t26c-heading);
	background: var(--t26c-soft);
	border: 1px solid transparent;
	border-radius: 10px;
	outline: 0;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form textarea {
	height: 180px;
	min-height: 160px;
	resize: vertical;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form :is(input, textarea):focus {
	background: #fff;
	border-color: var(--t26c-primary);
	box-shadow: 0 0 0 4px var(--t26c-primary-light);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .comment-form-cookies-consent {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 0.9rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 500;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .form-submit input[type="submit"] {
	min-height: 54px;
	padding: 14px 32px;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: var(--t26c-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .form-submit input[type="submit"]:is(:hover, :focus-visible) {
	background: var(--t26c-primary-dark);
}

/* A password-protected post (html/blog-details.html?protected): get_the_password_form() in place of the content. */
.entry-content .post-password-form {
	position: relative;
	padding: 40px 44px 40px 132px;
	background: var(--t26c-soft);
	border-radius: var(--t26c-radius-lg);
}

.entry-content .post-password-form::before {
	content: "";
	position: absolute;
	top: 40px;
	left: 40px;
	width: 64px;
	height: 64px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M9 15.5h.01M12 15.5h.01M15 15.5h.01'/%3E%3C/svg%3E") center / 28px no-repeat;
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(13, 27, 42, 0.07);
}

.entry-content .post-password-form p {
	margin: 0 0 20px;
}

.entry-content .post-password-form p:first-child {
	font-weight: 600;
	color: var(--t26c-heading);
}

.entry-content .post-password-form p:last-child {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	margin: 0;
}

.entry-content .post-password-form label {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 8px;
	font-size: 0.925rem;
	font-weight: 700;
	color: var(--t26c-heading);
}

.entry-content .post-password-form input[type="password"] {
	width: 100%;
	min-height: 56px;
	padding: 14px 20px;
	font-weight: 400;
	color: var(--t26c-heading);
	background: #fff;
	border: 1px solid var(--t26c-border);
	border-radius: 10px;
	box-shadow: none;
	outline: 0;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.entry-content .post-password-form input[type="password"]:focus {
	border-color: var(--t26c-primary);
	box-shadow: 0 0 0 4px var(--t26c-primary-light);
}

.entry-content .post-password-form input[type="submit"] {
	min-height: 56px;
	margin: 0;
	padding: 14px 36px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	background: var(--t26c-primary);
	border: 0;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.entry-content .post-password-form input[type="submit"]:is(:hover, :focus-visible) {
	background: var(--t26c-primary-dark);
}

/* A post split into pages with the Page Break block (?paged): wp_link_pages() below the content. */
.entry-content .page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 2.6rem 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--t26c-border);
}

.entry-content .page-links-title {
	margin-right: 6px;
	font-weight: 800;
	color: var(--t26c-heading);
}

.entry-content .page-links .post-page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 10px;
	font-weight: 700;
	color: var(--t26c-heading);
	text-decoration: none;
	border: 1px solid var(--t26c-border);
	border-radius: 50%;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.entry-content .page-links :is(a.post-page-numbers:is(:hover, :focus-visible), .post-page-numbers.current) {
	color: #fff;
	background: var(--t26c-primary);
	border-color: var(--t26c-primary);
}

/* 8. Embeds -------------------------------------------------------------------------- */
:is(.entry-content, .editor-styles-wrapper) .wp-block-embed {
	margin-top: 2.2rem;
	margin-bottom: 2.2rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	overflow: hidden;
	background: var(--t26c-heading);
	border-radius: var(--t26c-radius-lg);
}

/* 9. Block editor only ----------------------------------------------------------------- */
/* The editor canvas uses the same side gutter, reading column and wide width as the front end. */
.editor-styles-wrapper {
	padding-left: var(--t26c-gutter);
	padding-right: var(--t26c-gutter);
	font-family: var(--inoforest-font-body-family, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	background: #fff;
}

/* Full width reaches the canvas edges across the side gutter (core allows for its own 8px only). */
html .editor-styles-wrapper .is-root-container > .wp-block[data-align="full"] {
	margin-left: calc(-1 * var(--t26c-gutter));
	margin-right: calc(-1 * var(--t26c-gutter));
}

/* The front end sizes boxes border-box (theme and Elementor resets); the canvas does the same. */
:where(.editor-styles-wrapper) *,
:where(.editor-styles-wrapper) *::before,
:where(.editor-styles-wrapper) *::after {
	box-sizing: border-box;
}

/* Top-level blocks only: nested blocks fill their parent, as on the front end (core caps every block at 840px). */
.editor-styles-wrapper .wp-block {
	max-width: none;
}

.editor-styles-wrapper .is-root-container > .wp-block {
	max-width: var(--t26c-content);
}

.editor-styles-wrapper .is-root-container > .wp-block[data-align="wide"] {
	max-width: var(--t26c-wide);
}

.editor-styles-wrapper .is-root-container > .wp-block[data-align="full"] {
	max-width: none;
}

/* Core breaks words anywhere in the editor; the front end does not (a line beside a float drops below it instead). */
.editor-styles-wrapper .is-root-container .block-editor-block-list__block {
	overflow-wrap: normal;
}

/* Blocks whose editor markup adds wrappers: lay the wrappers out like the front end's markup. */
.editor-styles-wrapper .wp-block-file__content-wrapper {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.editor-styles-wrapper .wp-block-file .wp-block-file__button-richtext-wrapper {
	margin: 0;
}

/* The search block's resize-handle holder would take a flex gap. */
.editor-styles-wrapper .wp-block-search__inside-wrapper > div:not([class]) {
	display: contents;
}

.editor-styles-wrapper .editor-post-title__input {
	font-size: clamp(2.3rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--t26c-heading);
}

/* 10. Responsive and reduced motion ------------------------------------------------------ */
@media (max-width: 767px) {
	:is(.entry-content, .editor-styles-wrapper) {
		font-size: 1rem;
	}

	:is(.entry-content, .editor-styles-wrapper) :is(.alignleft, .alignright),
	.editor-styles-wrapper .wp-block:is([data-align="left"], [data-align="right"]) > * {
		float: none;
		max-width: 100%;
		margin-top: 1.6rem;
		margin-bottom: 1.6rem;
	}

	/* Core gives the editor's left / right wrapper no height, for the float. */
	.editor-styles-wrapper .wp-block:is([data-align="left"], [data-align="right"]) {
		height: auto;
	}

	:is(.entry-content, .editor-styles-wrapper) {
		--t26c-gutter: 16px;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-group.is-style-card {
		padding: 24px 22px;
	}

	:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list.is-style-contents {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-content .post-password-form {
		padding: 28px 22px;
	}

	.entry-content .post-password-form::before {
		position: static;
		display: block;
		width: 56px;
		height: 56px;
		margin-bottom: 18px;
		background-size: 24px;
	}

	.entry-content .post-password-form input[type="submit"] {
		flex: 1 1 100%;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-quote {
		padding: 76px 24px 26px;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-quote::before {
		top: 24px;
		left: 24px;
		width: 36px;
		height: 36px;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-table :is(th, td) {
		padding: 12px 14px;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text .wp-block-media-text__content {
		padding: 26px 24px;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-cover {
		padding: 40px 22px;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-post-comments-form .comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-file {
		padding-left: 64px;
		background-position: 18px center;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.entry-content, .editor-styles-wrapper) *,
	:is(.entry-content, .editor-styles-wrapper) *::before,
	:is(.entry-content, .editor-styles-wrapper) *::after {
		transition: none !important;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-button__link:is(:hover, :focus-visible),
	:is(.entry-content, .editor-styles-wrapper) .wp-block-post-featured-image a:is(:hover, :focus-visible) img {
		transform: none;
	}
}
