/*
Theme Name: Twenty Twenty-Five Medium Writer
Theme URI: https://example.com/twentytwentyfive-medium-writer
Description: Update-safe child theme for Twenty Twenty-Five with a Medium-inspired writing style variation and focused post/page layouts.
Author: OpenAI
Author URI: https://openai.com/
Template: twentytwentyfive
Requires at least: 6.7
Requires PHP: 7.2
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-medium-writer
Tags: blog, one-column, block-styles, full-site-editing, style-variations
*/

:root {
	--tt5mw-content-size: var(--wp--style--global--content-size, 720px);
	--tt5mw-wide-size: var(--wp--style--global--wide-size, 1120px);
	--tt5mw-reading-measure: 68ch;
	--tt5mw-border: color-mix(in srgb, currentColor 13%, transparent);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body .wp-site-blocks > .wp-block-template-part:first-child,
body .wp-site-blocks > .wp-block-template-part:last-child,
header,
footer,
.wp-block-navigation,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-button,
.wp-block-search,
.tt5-medium-meta,
.tt5-medium-kicker,
.tt5-medium-share,
.tt5-medium-author-card,
.tt5-medium-post-navigation {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

body .wp-site-blocks > .wp-block-template-part:first-child {
	border-bottom: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
}

body .wp-site-blocks > .wp-block-template-part:last-child {
	border-top: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	margin-top: var(--wp--preset--spacing--70, 5rem);
}

a:where(:not(.wp-element-button)) {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.05em;
}

img {
	height: auto;
}

.tt5-medium-reading-progress {
	background: transparent;
	height: 3px;
	inset: 0 0 auto;
	pointer-events: none;
	position: fixed;
	z-index: 9999;
}

.tt5-medium-reading-progress span {
	background: var(--wp--preset--color--accent-1, #1a8917);
	display: block;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 120ms linear;
	width: 100%;
}

:is(.single-post, .page) main.tt5-medium-main {
	margin-top: clamp(2.5rem, 6vw, 5rem);
}

.tt5-medium-article {
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.tt5-medium-kicker {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.35;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.tt5-medium-kicker a {
	color: var(--wp--preset--color--accent-1, #1a8917);
	text-decoration: none;
}

.tt5-medium-kicker a:hover {
	text-decoration: underline;
}

:is(.single-post, .page) .tt5-medium-title {
	max-width: 920px;
}

:is(.single-post, .page) .tt5-medium-title,
:is(.single-post, .page) .tt5-medium-title a {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: clamp(2.75rem, 7.5vw, 5.6rem);
	font-weight: 800;
	letter-spacing: -0.065em;
	line-height: 0.98;
}

.tt5-medium-meta {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	font-size: 0.95rem;
	gap: 0.75rem;
	line-height: 1.45;
	margin-top: clamp(1.3rem, 3vw, 2rem);
}

.tt5-medium-meta .wp-block-avatar img {
	border-radius: 999px;
}

.tt5-medium-meta a {
	color: var(--wp--preset--color--contrast, #242424);
	font-weight: 500;
	text-decoration: none;
}

.tt5-medium-meta a:hover {
	text-decoration: underline;
}

.tt5-medium-meta-line {
	gap: 0.38rem;
}

.tt5-medium-featured-image {
	margin-block: clamp(2.25rem, 6vw, 4.75rem) clamp(2.5rem, 5vw, 4rem);
}

.tt5-medium-featured-image img {
	border-radius: 3px;
	display: block;
}

:is(.single-post, .page) .tt5-medium-content {
	font-family: var(--wp--preset--font-family--serif, Georgia, "Times New Roman", serif);
	max-width: var(--tt5mw-content-size);
}

:is(.single-post, .page) .tt5-medium-content > :where(p, ul, ol) {
	font-size: clamp(1.16rem, 0.9rem + 0.52vw, 1.35rem);
	letter-spacing: -0.003em;
	line-height: 1.72;
}

:is(.single-post, .page) .tt5-medium-content > p {
	margin-block: 1.15em;
}

:is(.single-post, .page) .tt5-medium-content > :where(ul, ol) {
	padding-inline-start: 1.45em;
}

:is(.single-post, .page) .tt5-medium-content > :where(ul, ol) li + li {
	margin-top: 0.55em;
}

:is(.single-post, .page) .tt5-medium-content > :where(h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.14;
	margin-bottom: 0.5em;
	margin-top: 2.1em;
}

:is(.single-post, .page) .tt5-medium-content > h2 {
	font-size: clamp(1.85rem, 3vw, 2.6rem);
}

:is(.single-post, .page) .tt5-medium-content > h3 {
	font-size: clamp(1.45rem, 2vw, 1.95rem);
}

:is(.single-post, .page) .tt5-medium-content > :where(figure, .wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video) {
	margin-block: clamp(2rem, 5vw, 3.6rem);
}

:is(.single-post, .page) .tt5-medium-content .alignwide {
	max-width: min(var(--tt5mw-wide-size), calc(100vw - 2.5rem));
}

:is(.single-post, .page) .tt5-medium-content .alignfull {
	max-width: none;
	width: 100vw;
}

:is(.single-post, .page) .tt5-medium-content figcaption,
:is(.single-post, .page) .tt5-medium-content .wp-element-caption {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.86rem;
	line-height: 1.45;
	margin-top: 0.75rem;
	text-align: center;
}

:is(.single-post, .page) .tt5-medium-content blockquote,
:is(.single-post, .page) .tt5-medium-content .wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--contrast, #242424);
	font-style: normal;
	margin-block: 2.25rem;
	padding: 0.15rem 0 0.15rem 1.35rem;
}

:is(.single-post, .page) .tt5-medium-content blockquote p,
:is(.single-post, .page) .tt5-medium-content .wp-block-quote p {
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
	line-height: 1.45;
}

:is(.single-post, .page) .tt5-medium-content .wp-block-pullquote {
	border-block: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	padding-block: clamp(2rem, 5vw, 3rem);
}

:is(.single-post, .page) .tt5-medium-content .wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
}

:is(.single-post, .page) .tt5-medium-content :where(code, kbd) {
	background: var(--wp--preset--color--accent-5, #f7f4ed);
	border-radius: 0.25rem;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
	font-size: 0.9em;
	padding: 0.12em 0.28em;
}

:is(.single-post, .page) .tt5-medium-content pre {
	background: var(--wp--preset--color--accent-5, #f7f4ed);
	border-radius: 0.45rem;
	font-size: 0.95rem;
	line-height: 1.6;
	overflow-x: auto;
	padding: 1.25rem;
}


/* Core block polish: keep common WordPress blocks readable inside the longform layout. */
:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(
	.wp-block-buttons,
	.wp-block-button,
	.wp-block-file,
	.wp-block-search,
	.wp-block-latest-posts,
	.wp-block-latest-comments,
	.wp-block-query,
	.wp-block-post-template,
	.wp-block-post-title,
	.wp-block-post-date,
	.wp-block-post-author-name,
	.wp-block-read-more,
	.wp-block-categories,
	.wp-block-categories-list,
	.wp-block-archives,
	.wp-block-archives-list,
	.wp-block-page-list,
	.wp-block-tag-cloud,
	.wp-block-rss,
	.wp-block-calendar,
	.wp-block-table,
	.wp-block-social-links,
	.wp-block-loginout,
	.wp-block-details summary
) {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) > :where(
	.wp-block-latest-posts,
	.wp-block-latest-comments,
	.wp-block-rss,
	.wp-block-categories-list,
	.wp-block-archives-list,
	.wp-block-page-list,
	.wp-block-query,
	.wp-block-search,
	.wp-block-calendar,
	.wp-block-tag-cloud,
	.wp-block-file,
	.wp-block-buttons,
	.wp-block-table,
	.wp-block-details
) {
	font-size: 1rem;
	letter-spacing: normal;
	line-height: 1.5;
	margin-block: clamp(2rem, 5vw, 3.25rem);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) > :where(.wp-block-buttons, .wp-block-button) {
	margin-block: clamp(1.75rem, 4vw, 2.75rem);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-button__link,
:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-element-button {
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.95rem;
	font-weight: 650;
	line-height: 1;
	padding: 0.78rem 1.08rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-button.is-style-outline .wp-block-button__link,
:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-button__link.is-style-outline {
	border-color: var(--wp--preset--color--accent-6, #e6e6e6);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-separator {
	border-color: var(--wp--preset--color--accent-6, #e6e6e6);
	margin-block: clamp(2.5rem, 6vw, 4rem);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 96px;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-table {
	overflow-x: auto;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-table table {
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.95rem;
	line-height: 1.45;
	width: 100%;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-table :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	padding: 0.82rem 0.65rem;
	text-align: left;
	vertical-align: top;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-table thead th {
	color: var(--wp--preset--color--contrast, #242424);
	font-weight: 700;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-details {
	border-block: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	padding-block: 1.1rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	letter-spacing: -0.015em;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-details > :last-child {
	margin-bottom: 0;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-verse {
	background: var(--wp--preset--color--accent-5, #f7f4ed);
	border-radius: 0.65rem;
	font-family: var(--wp--preset--font-family--serif, Georgia, "Times New Roman", serif);
	line-height: 1.7;
	padding: 1.25rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-file {
	align-items: center;
	border: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	border-radius: 0.8rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	justify-content: space-between;
	padding: 1rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-file a:not(.wp-block-file__button) {
	color: var(--wp--preset--color--contrast, #242424);
	font-weight: 650;
	text-decoration: none;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-file__button {
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 650;
	margin: 0;
	padding: 0.62rem 0.86rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(.wp-block-audio, .wp-block-video) {
	margin-block: clamp(2rem, 5vw, 3.4rem);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(.wp-block-audio figcaption, .wp-block-video figcaption) {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.86rem;
	text-align: center;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-cover {
	border-radius: 0.95rem;
	margin-block: clamp(2.25rem, 6vw, 4rem);
	overflow: hidden;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-cover .wp-block-cover__inner-container {
	max-width: min(100%, 760px);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-media-text {
	gap: clamp(1.25rem, 4vw, 2.5rem);
	margin-block: clamp(2.25rem, 6vw, 4rem);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-media-text .wp-block-media-text__media img {
	border-radius: 0.55rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-media-text .wp-block-media-text__content {
	padding: 0;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-columns {
	gap: clamp(1.5rem, 4vw, 2.5rem);
	margin-block: clamp(2.25rem, 6vw, 4rem);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-column > :first-child {
	margin-top: 0;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-column > :last-child {
	margin-bottom: 0;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-gallery {
	gap: 0.75rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-gallery .wp-block-image img {
	border-radius: 0.35rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-embed iframe {
	max-width: 100%;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-search {
	gap: 0.65rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-search__label {
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-search__inside-wrapper {
	gap: 0.65rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-search__input {
	background: var(--wp--preset--color--base, #ffffff);
	border: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast, #242424);
	font: inherit;
	min-height: 44px;
	padding: 0.7rem 1rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-search__button {
	background: var(--wp--preset--color--contrast, #242424);
	border: 0;
	border-radius: 999px;
	color: var(--wp--preset--color--base, #ffffff);
	font: inherit;
	font-weight: 650;
	margin-left: 0;
	min-height: 44px;
	padding: 0.7rem 1rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(
	.wp-block-latest-posts,
	.wp-block-latest-comments,
	.wp-block-rss,
	.wp-block-categories-list,
	.wp-block-archives-list,
	.wp-block-page-list,
	.wp-block-post-template
) {
	list-style: none;
	padding-left: 0;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(
	.wp-block-latest-posts:not(.is-grid) > li,
	.wp-block-latest-comments > li,
	.wp-block-rss > li,
	.wp-block-categories-list > li,
	.wp-block-archives-list > li,
	.wp-block-page-list > li,
	.wp-block-post-template > li,
	.wp-block-query .wp-block-post
) {
	border-top: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	padding-block: 1rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(
	.wp-block-latest-posts:not(.is-grid) > li:last-child,
	.wp-block-latest-comments > li:last-child,
	.wp-block-rss > li:last-child,
	.wp-block-categories-list > li:last-child,
	.wp-block-archives-list > li:last-child,
	.wp-block-page-list > li:last-child,
	.wp-block-post-template > li:last-child
) {
	border-bottom: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(.wp-block-latest-posts a, .wp-block-rss a, .wp-block-categories-list a, .wp-block-archives-list a, .wp-block-page-list a) {
	color: var(--wp--preset--color--contrast, #242424);
	font-weight: 650;
	text-decoration: none;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(.wp-block-latest-posts a, .wp-block-rss a, .wp-block-categories-list a, .wp-block-archives-list a, .wp-block-page-list a):hover {
	color: var(--wp--preset--color--accent-1, #1a8917);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(.wp-block-latest-posts__post-date, .wp-block-latest-posts__post-author, .wp-block-latest-comments__comment-date, .wp-block-rss__item-publish-date, .wp-block-rss__item-author) {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	display: block;
	font-size: 0.86rem;
	margin-top: 0.35rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(.wp-block-latest-posts__post-excerpt, .wp-block-latest-comments__comment-excerpt, .wp-block-rss__item-excerpt) {
	color: var(--wp--preset--color--accent-3, #444444);
	font-size: 0.95rem;
	line-height: 1.55;
	margin-top: 0.55rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts__featured-image {
	margin-bottom: 0.85rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts__featured-image img {
	border-radius: 0.55rem;
	display: block;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts.is-grid {
	display: grid;
	gap: 1rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts.is-grid li {
	border: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	border-radius: 0.9rem;
	padding: 1rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-comments__comment-avatar {
	border-radius: 999px;
	float: left;
	margin: 0.15rem 0.75rem 0.25rem 0;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-query .wp-block-post-title {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: clamp(1.3rem, 1rem + 1vw, 2rem);
	letter-spacing: -0.035em;
	line-height: 1.15;
	margin-bottom: 0.45rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-query .wp-block-post-title a {
	color: var(--wp--preset--color--contrast, #242424);
	text-decoration: none;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-query .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1, #1a8917);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) :where(.wp-block-post-date, .wp-block-post-author-name, .wp-block-post-terms) {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	font-size: 0.88rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--accent-3, #444444);
	font-family: var(--wp--preset--font-family--serif, Georgia, "Times New Roman", serif);
	font-size: 1.05rem;
	line-height: 1.58;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-read-more {
	border: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast, #242424);
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1;
	margin-top: 0.6rem;
	padding: 0.62rem 0.85rem;
	text-decoration: none;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-tag-cloud a,
.single-post .taxonomy-post_tag a {
	background: var(--wp--preset--color--accent-5, #f7f4ed);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast, #242424);
	display: inline-block;
	font-size: 0.86rem !important;
	font-weight: 500;
	line-height: 1;
	margin: 0.25rem 0.25rem 0.25rem 0;
	padding: 0.55rem 0.8rem;
	text-decoration: none;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-tag-cloud a:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent-1, #1a8917) 10%, var(--wp--preset--color--accent-5, #f7f4ed));
	color: var(--wp--preset--color--accent-2, #0f730c);
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-calendar table {
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.9rem;
	line-height: 1.35;
	width: 100%;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-calendar caption {
	color: var(--wp--preset--color--contrast, #242424);
	font-weight: 700;
	margin-bottom: 0.75rem;
	text-align: left;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-calendar :where(th, td) {
	border: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	padding: 0.55rem;
	text-align: center;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-calendar a {
	color: var(--wp--preset--color--accent-1, #1a8917);
	font-weight: 700;
	text-decoration: none;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-social-links {
	gap: 0.55rem;
}

:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-loginout a {
	border: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast, #242424);
	display: inline-flex;
	font-weight: 650;
	padding: 0.65rem 0.9rem;
	text-decoration: none;
}

@media (max-width: 780px) {
	:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-latest-posts.is-grid {
		grid-template-columns: 1fr;
	}

	:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-search__inside-wrapper {
		flex-direction: column;
	}

	:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-search__button {
		width: 100%;
	}

	:is(.tt5-medium-content, body.page .wp-block-post-content:not(.tt5-medium-content)) .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		padding-top: 1rem;
	}
}

.tt5-medium-after-content {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	margin-top: clamp(2.5rem, 7vw, 5rem);
}

.tt5-medium-share {
	align-items: center;
	border-block: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.94rem;
	gap: 1rem;
	padding-block: 0.9rem;
}

.tt5-medium-share a,
.tt5-medium-share button {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--contrast, #242424);
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	padding: 0;
	text-decoration: none;
}

.tt5-medium-share a:hover,
.tt5-medium-share button:hover {
	color: var(--wp--preset--color--accent-1, #1a8917);
}

.tt5-medium-share button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1, #1a8917);
	outline-offset: 0.25rem;
}

.single-post .tt5-medium-tags {
	gap: 0.5rem;
	margin-top: 2rem;
}

.single-post .tt5-medium-tags a,
.single-post .taxonomy-post_tag a {
	background: var(--wp--preset--color--accent-5, #f7f4ed);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast, #242424);
	display: inline-block;
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.86rem;
	font-weight: 500;
	line-height: 1;
	margin: 0.25rem 0.25rem 0.25rem 0;
	padding: 0.55rem 0.8rem;
	text-decoration: none;
}

.single-post .tt5-medium-tags a:hover,
.single-post .taxonomy-post_tag a:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent-1, #1a8917) 10%, var(--wp--preset--color--accent-5, #f7f4ed));
	color: var(--wp--preset--color--accent-2, #0f730c);
}

.tt5-medium-author-card {
	border-top: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: 1.75rem;
}

.tt5-medium-author-card--custom {
	align-items: start;
	display: grid;
	gap: 1rem;
	grid-template-columns: 72px minmax(0, 1fr);
}

.tt5-medium-author-card__avatar {
	display: inline-flex;
	line-height: 0;
}

.tt5-medium-author-card__avatar img,
.tt5-medium-author-card .wp-block-post-author__avatar img {
	aspect-ratio: 1;
	border-radius: 999px;
	display: block;
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.tt5-medium-author-card__avatar-fallback {
	align-items: center;
	aspect-ratio: 1;
	background: var(--wp--preset--color--accent-5, #f7f4ed);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast, #242424);
	display: inline-flex;
	font-size: 1.4rem;
	font-weight: 750;
	justify-content: center;
	height: 72px;
	width: 72px;
}

.tt5-medium-author-card__byline,
.tt5-medium-author-card__name {
	margin: 0;
}

.tt5-medium-author-card__byline {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.tt5-medium-author-card__name,
.tt5-medium-author-card .wp-block-post-author__name {
	font-weight: 700;
	margin-top: 0.22rem;
}

.tt5-medium-author-card__name a {
	color: var(--wp--preset--color--contrast, #242424);
	text-decoration: none;
}

.tt5-medium-author-card__name a:hover {
	color: var(--wp--preset--color--accent-1, #1a8917);
}

.tt5-medium-author-card__bio,
.tt5-medium-author-card .wp-block-post-author__bio {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	font-size: 0.95rem;
	line-height: 1.55;
	margin-top: 0.6rem;
}

.tt5-medium-author-card__bio > :first-child {
	margin-top: 0;
}

.tt5-medium-author-card__bio > :last-child {
	margin-bottom: 0;
}

@media (max-width: 520px) {
	.tt5-medium-author-card--custom {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.tt5-medium-author-card__avatar img,
	.tt5-medium-author-card .wp-block-post-author__avatar img,
	.tt5-medium-author-card__avatar-fallback {
		height: 56px;
		width: 56px;
	}
}

.tt5-medium-post-navigation {
	border-top: 1px solid var(--wp--preset--color--accent-6, #e6e6e6);
	margin-top: clamp(2.25rem, 5vw, 3.5rem);
	padding-top: 1.5rem;
}

.tt5-medium-comments,
.tt5-medium-more-posts {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

@media (max-width: 720px) {
	:is(.single-post, .page) .tt5-medium-title,
	:is(.single-post, .page) .tt5-medium-title a {
		font-size: clamp(2.35rem, 13vw, 3.55rem);
		letter-spacing: -0.055em;
	}

	.tt5-medium-meta {
		align-items: flex-start;
	}

	:is(.single-post, .page) .tt5-medium-content > :where(p, ul, ol) {
		font-size: 1.125rem;
		line-height: 1.68;
	}
}

/* Page template: use the same calm longform reading system as posts, without post-only metadata. */
.page main.tt5-medium-page-main {
	margin-top: clamp(2.5rem, 6vw, 5rem);
}

.page .tt5-medium-page-title,
.page .tt5-medium-page-title a {
	font-size: clamp(2.45rem, 6.5vw, 4.8rem);
	letter-spacing: -0.058em;
	line-height: 1;
}

.page .tt5-medium-page-featured-image {
	margin-block: clamp(2rem, 5vw, 4rem) clamp(2.2rem, 5vw, 3.8rem);
}

.page .tt5-medium-page-content {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.page .tt5-medium-page-featured-image + .tt5-medium-page-content,
.page .wp-block-post-featured-image + .tt5-medium-page-content {
	margin-top: 0;
}

.page .tt5-medium-page-content > :first-child {
	margin-top: 0;
}

.page .tt5-medium-page-content > :where(p, ul, ol):first-child {
	font-size: clamp(1.2rem, 0.95rem + 0.55vw, 1.45rem);
	line-height: 1.65;
}

.page .tt5-medium-page-content > :where(.wp-block-buttons, .wp-block-button) {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	margin-block: clamp(1.75rem, 4vw, 2.75rem);
}

.page .tt5-medium-page-content .wp-block-separator {
	border-color: var(--wp--preset--color--accent-6, #e6e6e6);
	margin-block: clamp(2.5rem, 6vw, 4rem);
}

@media (max-width: 720px) {
	.page .tt5-medium-page-title,
	.page .tt5-medium-page-title a {
		font-size: clamp(2.15rem, 12vw, 3.35rem);
		letter-spacing: -0.05em;
	}
}

/* Fallback: make parent/custom page templates look acceptable even when a page has not picked up templates/page.html yet. */
body.page .wp-block-post-title:not(.tt5-medium-title) {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: clamp(2.35rem, 6vw, 4.6rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.03;
	max-width: 920px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

body.page .wp-block-post-featured-image:not(.tt5-medium-featured-image) {
	max-width: min(var(--tt5mw-wide-size), calc(100vw - 2.5rem));
	margin: clamp(2rem, 5vw, 4rem) auto clamp(2.2rem, 5vw, 3.8rem);
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

body.page .wp-block-post-featured-image:not(.tt5-medium-featured-image) img {
	border-radius: 3px;
}

body.page .wp-block-post-content:not(.tt5-medium-content) {
	font-family: var(--wp--preset--font-family--serif, Georgia, "Times New Roman", serif);
	max-width: var(--tt5mw-content-size);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

body.page .wp-block-post-content:not(.tt5-medium-content) > :where(p, ul, ol) {
	font-size: clamp(1.16rem, 0.9rem + 0.52vw, 1.35rem);
	letter-spacing: -0.003em;
	line-height: 1.72;
}

body.page .wp-block-post-content:not(.tt5-medium-content) > p {
	margin-block: 1.15em;
}

body.page .wp-block-post-content:not(.tt5-medium-content) > :where(h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.14;
	margin-bottom: 0.5em;
	margin-top: 2.1em;
}

body.page .wp-block-post-content:not(.tt5-medium-content) > h2 {
	font-size: clamp(1.85rem, 3vw, 2.6rem);
}

body.page .wp-block-post-content:not(.tt5-medium-content) > h3 {
	font-size: clamp(1.45rem, 2vw, 1.95rem);
}

body.page .wp-block-post-content:not(.tt5-medium-content) figcaption,
body.page .wp-block-post-content:not(.tt5-medium-content) .wp-element-caption {
	color: var(--wp--preset--color--accent-4, #6b6b6b);
	font-family: var(--wp--preset--font-family--ui-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.86rem;
	line-height: 1.45;
	margin-top: 0.75rem;
	text-align: center;
}

@media (max-width: 720px) {
	body.page .wp-block-post-title:not(.tt5-medium-title) {
		font-size: clamp(2.15rem, 12vw, 3.35rem);
		letter-spacing: -0.05em;
	}

	body.page .wp-block-post-content:not(.tt5-medium-content) > :where(p, ul, ol) {
		font-size: 1.125rem;
		line-height: 1.68;
	}
}

