/*
 * The Program Manager blog. Tokens are copied 1:1 from the product app (src/index.css),
 * RGB channels so alpha can be applied. Dark mode is toggled with html.dark, same as the app.
 */
:root {
	--tpm-canvas: 246 247 251;
	--tpm-surface: 255 255 255;
	--tpm-sunken: 241 242 247;
	--tpm-raised: 255 255 255;
	--tpm-line: 228 230 238;
	--tpm-line-strong: 211 214 225;
	--tpm-fg: 21 27 45;
	--tpm-fg-2: 70 77 99;
	--tpm-fg-3: 115 122 145;
	--tpm-fg-4: 160 166 186;
	--tpm-accent: 85 90 232;
	--tpm-accent-strong: 67 72 214;
	--tpm-accent-soft: 238 239 253;
	--tpm-ok: 13 148 136;
	--tpm-warn: 245 158 11;
	--tpm-crit: 224 82 82;
	--tpm-shadow: 21 27 45;
	--tpm-grid-dot: 205 209 222;
	--tpm-gutter: 16px;
	--tpm-wide: 1152px;
	--tpm-measure: 680px;
	--tpm-header-h: 56px;
	--tpm-admin-bar: 0px;
	--tpm-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	color-scheme: light;
}
html.dark {
	--tpm-canvas: 10 13 22;
	--tpm-surface: 17 21 33;
	--tpm-sunken: 13 17 27;
	--tpm-raised: 23 28 43;
	--tpm-line: 33 39 56;
	--tpm-line-strong: 46 53 74;
	--tpm-fg: 230 233 242;
	--tpm-fg-2: 176 182 202;
	--tpm-fg-3: 128 135 158;
	--tpm-fg-4: 87 94 117;
	--tpm-accent: 124 128 245;
	--tpm-accent-strong: 146 150 250;
	--tpm-accent-soft: 31 34 70;
	--tpm-ok: 45 186 170;
	--tpm-warn: 246 178 60;
	--tpm-crit: 240 110 110;
	--tpm-shadow: 0 0 0;
	--tpm-grid-dot: 38 45 64;
	color-scheme: dark;
}
@media (min-width: 640px) {
	:root { --tpm-gutter: 24px; }
}
body.admin-bar { --tpm-admin-bar: 32px; }
@media (max-width: 782px) {
	body.admin-bar { --tpm-admin-bar: 46px; }
}
@media (max-width: 600px) {
	/* WP admin bar scrolls away on small screens */
	body.admin-bar { --tpm-admin-bar: 0px; }
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	scroll-padding-top: calc(var(--tpm-header-h) + var(--tpm-admin-bar) + 16px);
}
body {
	background: rgb(var(--tpm-canvas));
	color: rgb(var(--tpm-fg));
	font-feature-settings: 'cv01', 'cv02', 'cv03', 'cv04', 'cv11', 'ss03';
}
::selection { background: rgb(var(--tpm-accent) / 0.22); }
:where(a, button, summary, input, [tabindex]):focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgb(var(--tpm-canvas)), 0 0 0 4px rgb(var(--tpm-accent) / 0.55);
	border-radius: 4px;
}

/* Kill the parent's block gap between header, main and footer */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.tpm-main { margin: 0; }
.tpm-main > * { margin-block-start: 0; }

.tpm-container {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--tpm-wide);
	margin-inline: auto !important;
	padding-inline: var(--tpm-gutter);
}

/* Icons (lucide geometry) */
.tpm-i {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Buttons: same classes as the landing page CTAs */
.tpm-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 22px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color 150ms, border-color 150ms, color 150ms;
	box-sizing: border-box;
}
.tpm-btn--primary {
	background: rgb(var(--tpm-accent));
	color: #fff !important;
	box-shadow: 0 1px 0 0 rgb(var(--tpm-shadow) / 0.04);
}
.tpm-btn--primary:hover { background: rgb(var(--tpm-accent-strong)); }
.tpm-btn--secondary {
	border: 1px solid rgb(var(--tpm-line));
	background: rgb(var(--tpm-surface));
	color: rgb(var(--tpm-fg)) !important;
	box-shadow: 0 1px 0 0 rgb(var(--tpm-shadow) / 0.04);
}
.tpm-btn--secondary:hover { border-color: rgb(var(--tpm-line-strong)); background: rgb(var(--tpm-sunken)); }
.tpm-btn--ghost {
	height: 32px;
	padding: 0 12px;
	font-size: 13px;
	line-height: 20px;
	color: rgb(var(--tpm-fg-2)) !important;
}
.tpm-btn--ghost:hover { background: rgb(var(--tpm-sunken)); color: rgb(var(--tpm-fg)) !important; }
.tpm-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; line-height: 20px; }
.tpm-btn .tpm-i { width: 16px; height: 16px; }

.tpm-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: rgb(var(--tpm-fg-2));
	cursor: pointer;
	transition: background-color 100ms, color 100ms;
}
.tpm-icon-btn:hover { background: rgb(var(--tpm-sunken)); color: rgb(var(--tpm-fg)); }

/* ---------------------------------------------------------------- Header */
.tpm-header-part {
	position: sticky;
	top: var(--tpm-admin-bar);
	z-index: 40;
}
.tpm-header {
	border-bottom: 1px solid rgb(var(--tpm-line));
	background: rgb(var(--tpm-canvas) / 0.85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-size: 13px;
	line-height: 20px;
}
.tpm-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: var(--tpm-wide);
	height: var(--tpm-header-h);
	margin: 0 auto;
	padding: 0 var(--tpm-gutter);
	box-sizing: border-box;
}
.tpm-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgb(var(--tpm-fg)) !important;
	text-decoration: none !important;
}
.tpm-mark { display: block; }
.tpm-brand__name {
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
@media (max-width: 400px) {
	.tpm-brand__name { display: none; }
}
.tpm-nav { display: none; align-items: center; gap: 20px; }
.tpm-nav a {
	color: rgb(var(--tpm-fg-3));
	text-decoration: none !important;
	transition: color 150ms;
}
.tpm-nav a:hover, .tpm-nav a.is-active { color: rgb(var(--tpm-fg)); }
.tpm-nav a.is-active { font-weight: 500; }
.tpm-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.tpm-i--sun, html.dark .tpm-i--moon { display: none; }
html.dark .tpm-i--sun { display: block; }
.tpm-i--x, .tpm-menu-btn.is-open .tpm-i--menu { display: none; }
.tpm-menu-btn.is-open .tpm-i--x { display: block; }

.tpm-mobile-nav {
	border-top: 1px solid rgb(var(--tpm-line));
	padding: 8px 16px;
}
.tpm-mobile-nav[hidden] { display: none; }
.tpm-mobile-nav a {
	display: block;
	padding: 8px;
	border-radius: 6px;
	color: rgb(var(--tpm-fg-2));
	text-decoration: none !important;
}
.tpm-mobile-nav a:hover { background: rgb(var(--tpm-sunken)); }
.tpm-mobile-nav a.is-active, .tpm-mobile-nav__strong { color: rgb(var(--tpm-fg)) !important; font-weight: 500; }

@media (max-width: 639px) {
	.tpm-hide-xs { display: none !important; }
}
@media (min-width: 768px) {
	.tpm-header__inner { gap: 24px; }
	.tpm-nav { display: flex; }
	.tpm-menu-btn { display: none; }
	.tpm-mobile-nav { display: none !important; }
}

/* ---------------------------------------------------------------- Hero (index, archives) */
.tpm-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgb(var(--tpm-line));
	padding: 48px 0 44px;
}
.tpm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.6;
	background-image: radial-gradient(rgb(var(--tpm-grid-dot)) 1px, transparent 1px);
	background-size: 16px 16px;
	-webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
	mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.tpm-hero > * { position: relative; }
@media (min-width: 1024px) {
	.tpm-hero { padding: 72px 0 60px; }
}
.tpm-hero .tpm-container > * { margin-block: 0; }
.tpm-kicker {
	margin: 0;
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgb(var(--tpm-accent));
}
.tpm-kicker a { color: inherit !important; text-decoration: none !important; }
.tpm-kicker a:hover { text-decoration: underline !important; }
.tpm-hero__title {
	margin-top: 10px !important;
	max-width: 22ch;
	font-size: clamp(30px, 4vw, 42px) !important;
	line-height: 1.1 !important;
	font-weight: 600;
	letter-spacing: -0.025em !important;
	color: rgb(var(--tpm-fg));
}
.tpm-hero__lead, .tpm-hero .wp-block-term-description {
	margin-top: 14px !important;
	max-width: 36rem;
	font-size: 15px;
	line-height: 1.65;
	color: rgb(var(--tpm-fg-3));
}
.tpm-hero .wp-block-term-description p { margin: 0; }

/* Search field */
.tpm-search { margin-top: 20px !important; max-width: 28rem; }
.tpm-search .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 0 !important;
	border: 0 !important;
}
.tpm-search .wp-block-search__input {
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgb(var(--tpm-line)) !important;
	border-radius: 6px;
	background: rgb(var(--tpm-surface));
	color: rgb(var(--tpm-fg));
	font: inherit;
	font-size: 14px;
}
.tpm-search .wp-block-search__input:focus {
	outline: none;
	border-color: rgb(var(--tpm-accent) / 0.6) !important;
	box-shadow: 0 0 0 2px rgb(var(--tpm-accent) / 0.2);
}
.tpm-search .wp-block-search__button {
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: rgb(var(--tpm-accent));
	color: #fff;
	font-size: 14px;
	font-weight: 500;
}
.tpm-search .wp-block-search__button:hover { background: rgb(var(--tpm-accent-strong)); }
.tpm-404-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }

/* ---------------------------------------------------------------- Post grid */
.tpm-section { padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1024px) {
	.tpm-section { padding-top: 56px; }
}
.tpm-posts { margin: 0; }
.wp-block-post-template.tpm-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) {
	.wp-block-post-template.tpm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.wp-block-post-template.tpm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.tpm-grid > li { margin: 0 !important; display: flex; }
.tpm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgb(var(--tpm-line));
	border-radius: 8px;
	background: rgb(var(--tpm-surface));
	box-shadow: 0 1px 2px 0 rgb(var(--tpm-shadow) / 0.05);
	transition: border-color 150ms, box-shadow 150ms;
}
.tpm-card:hover {
	border-color: rgb(var(--tpm-line-strong));
	box-shadow: 0 8px 24px -8px rgb(var(--tpm-shadow) / 0.14), 0 2px 6px -2px rgb(var(--tpm-shadow) / 0.08);
}
.tpm-card > * { margin: 0 !important; }
.tpm-card__media { border-bottom: 1px solid rgb(var(--tpm-line)); background: rgb(var(--tpm-sunken)); }
.tpm-card__media img { display: block; width: 100%; object-fit: cover; }
.tpm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
}
.tpm-card__body > * { margin: 0 !important; }
.tpm-card__date {
	font-size: 11px;
	line-height: 16px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgb(var(--tpm-fg-3));
}
.tpm-card__title {
	font-size: 17px !important;
	line-height: 1.35 !important;
	font-weight: 600;
	letter-spacing: -0.01em !important;
}
.tpm-card__title a { color: rgb(var(--tpm-fg)) !important; text-decoration: none !important; }
.tpm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tpm-card__excerpt, .tpm-card__excerpt p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgb(var(--tpm-fg-3));
}
.tpm-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.tpm-card__more {
	margin-top: auto !important;
	padding-top: 6px;
	font-size: 13px;
	font-weight: 500;
	color: rgb(var(--tpm-accent)) !important;
	text-decoration: none !important;
}
.tpm-card__more::after { content: " \2192"; }

.tpm-pagination {
	margin-top: 40px !important;
	padding-top: 20px;
	border-top: 1px solid rgb(var(--tpm-line));
	font-size: 14px;
}
.tpm-pagination a { color: rgb(var(--tpm-fg-2)) !important; text-decoration: none !important; }
.tpm-pagination a:hover { color: rgb(var(--tpm-fg)) !important; }
.tpm-pagination .page-numbers { padding: 4px 9px; border-radius: 6px; }
.tpm-pagination .page-numbers.current { background: rgb(var(--tpm-accent-soft)); color: rgb(var(--tpm-accent)); font-weight: 600; }
.tpm-empty { color: rgb(var(--tpm-fg-3)); }

/* ---------------------------------------------------------------- Single article */
.tpm-article { margin: 0; padding-top: 40px; }
@media (min-width: 1024px) {
	.tpm-article { padding-top: 64px; }
}
.tpm-article > * { margin-block: 0; }
.tpm-article__head,
.tpm-prose,
.tpm-tags,
.tpm-postnav,
.tpm-comments-wrap {
	box-sizing: content-box;
	max-width: var(--tpm-measure);
	margin-inline: auto !important;
	padding-inline: var(--tpm-gutter);
}
.tpm-article__head > * { margin-block: 0; }
.tpm-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	font-size: 13px;
	font-weight: 500;
	color: rgb(var(--tpm-fg-3)) !important;
	text-decoration: none !important;
}
.tpm-back:hover { color: rgb(var(--tpm-fg)) !important; }
.tpm-back .tpm-i { width: 14px; height: 14px; }
.tpm-article__head .tpm-kicker { margin-bottom: 10px; }
.tpm-article__title {
	font-size: clamp(30px, 4.4vw, 44px) !important;
	line-height: 1.1 !important;
	font-weight: 600;
	letter-spacing: -0.025em !important;
	color: rgb(var(--tpm-fg));
	text-wrap: balance;
}
.tpm-meta {
	gap: 6px 16px !important;
	margin-top: 16px !important;
	padding-bottom: 24px;
	border-bottom: 1px solid rgb(var(--tpm-line));
	font-size: 13px;
	line-height: 20px;
	color: rgb(var(--tpm-fg-3));
}
.tpm-meta > * { margin: 0 !important; }
.tpm-meta > * + *::before { content: "\00B7"; margin-right: 16px; color: rgb(var(--tpm-fg-4)); }
.tpm-meta .wp-block-post-author-name { color: rgb(var(--tpm-fg-2)); font-weight: 500; }
.tpm-meta a { color: inherit !important; }

.tpm-article__media {
	box-sizing: border-box;
	max-width: calc(880px + 2 * var(--tpm-gutter));
	margin: 32px auto 0 !important;
	padding-inline: var(--tpm-gutter);
}
.tpm-article__media img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgb(var(--tpm-line));
	border-radius: 10px;
}

/* Article typography */
.tpm-prose {
	margin-top: 32px !important;
	font-size: 17px;
	line-height: 1.75;
	color: rgb(var(--tpm-fg-2));
}
@media (max-width: 639px) {
	.tpm-prose { font-size: 16px; line-height: 1.7; }
}
.tpm-prose > * { margin-block: 0 !important; }
.tpm-prose > * + * { margin-top: 1.25em !important; }
.tpm-prose > :where(h2, h3, h4, h5, h6) { color: rgb(var(--tpm-fg)); scroll-margin-top: calc(var(--tpm-header-h) + var(--tpm-admin-bar) + 16px); }
.tpm-prose > h2 { margin-top: 2.2em !important; font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; }
.tpm-prose > h3 { margin-top: 1.9em !important; font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
.tpm-prose > h4 { margin-top: 1.7em !important; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.tpm-prose > :where(h2, h3, h4) + * { margin-top: 0.6em !important; }
.tpm-prose strong { color: rgb(var(--tpm-fg)); font-weight: 600; }
.tpm-prose a {
	color: rgb(var(--tpm-accent));
	text-decoration: underline;
	text-decoration-color: rgb(var(--tpm-accent) / 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color 150ms;
}
.tpm-prose a:hover { text-decoration-color: rgb(var(--tpm-accent)); }
.tpm-prose :where(ul, ol) { padding-left: 1.4em; }
.tpm-prose li + li { margin-top: 0.4em; }
.tpm-prose li::marker { color: rgb(var(--tpm-fg-4)); }
.tpm-prose ol > li::marker { color: rgb(var(--tpm-fg-3)); font-weight: 500; font-variant-numeric: tabular-nums; }
.tpm-prose blockquote,
.tpm-prose .wp-block-quote {
	margin-inline: 0;
	padding: 2px 0 2px 20px;
	border-left: 2px solid rgb(var(--tpm-accent));
	color: rgb(var(--tpm-fg));
	font-size: 1.06em;
}
.tpm-prose blockquote p { margin: 0; }
.tpm-prose blockquote p + p { margin-top: 0.8em; }
.tpm-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: rgb(var(--tpm-fg-3)); }
.tpm-prose .wp-block-pullquote { border: 0; padding: 0; text-align: left; }
.tpm-prose :not(pre) > code {
	padding: 0.15em 0.35em;
	border: 1px solid rgb(var(--tpm-line));
	border-radius: 4px;
	background: rgb(var(--tpm-sunken));
	font-family: var(--tpm-mono);
	font-size: 0.84em;
	color: rgb(var(--tpm-fg));
}
.tpm-prose pre {
	overflow-x: auto;
	padding: 16px 20px;
	border: 1px solid rgb(var(--tpm-line));
	border-radius: 8px;
	background: rgb(var(--tpm-sunken));
	font-family: var(--tpm-mono);
	font-size: 13.5px;
	line-height: 1.65;
	color: rgb(var(--tpm-fg));
}
.tpm-prose pre code { font-family: inherit; }
.tpm-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.tpm-prose figure { margin-inline: 0; }
.tpm-prose figcaption, .tpm-prose .wp-element-caption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: rgb(var(--tpm-fg-3));
}
.tpm-prose .wp-block-image img { border: 1px solid rgb(var(--tpm-line)); }
.tpm-prose hr, .tpm-prose .wp-block-separator {
	margin-block: 2.5em !important;
	border: 0;
	border-top: 1px solid rgb(var(--tpm-line));
	opacity: 1;
}
/* Tables, styled like the app's dense table */
.tpm-prose .wp-block-table { overflow-x: auto; }
.tpm-prose table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid rgb(var(--tpm-line));
	border-radius: 8px;
	background: rgb(var(--tpm-surface));
	font-size: 14px;
	line-height: 1.5;
}
.tpm-prose .wp-block-table table { border: 1px solid rgb(var(--tpm-line)); }
.tpm-prose thead { border: 0; }
.tpm-prose th {
	padding: 9px 12px;
	border: 0;
	border-bottom: 1px solid rgb(var(--tpm-line));
	background: rgb(var(--tpm-sunken));
	text-align: left;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgb(var(--tpm-fg-3));
	white-space: nowrap;
}
.tpm-prose td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid rgb(var(--tpm-line) / 0.7);
	vertical-align: top;
	color: rgb(var(--tpm-fg-2));
}
.tpm-prose tbody tr:last-child td { border-bottom: 0; }
.tpm-prose .wp-block-table figcaption { text-align: left; }
.tpm-prose .alignwide { max-width: min(var(--tpm-wide), 100vw - 2 * var(--tpm-gutter)); margin-inline: calc((var(--tpm-measure) - min(var(--tpm-wide), 100vw - 2 * var(--tpm-gutter))) / 2); }
@media (max-width: 760px) {
	.tpm-prose .alignwide { margin-inline: 0; max-width: 100%; }
}
.tpm-prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.tpm-prose .wp-block-button__link {
	padding: 9px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.tpm-prose .wp-block-button__link:hover { text-decoration: none; }

.tpm-tags { margin-top: 32px !important; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0; }
.tpm-tags a {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border: 1px solid rgb(var(--tpm-line));
	border-radius: 999px;
	background: rgb(var(--tpm-surface));
	font-size: 12px;
	font-weight: 500;
	color: rgb(var(--tpm-fg-2)) !important;
	text-decoration: none !important;
}
.tpm-tags a:hover { border-color: rgb(var(--tpm-line-strong)); color: rgb(var(--tpm-fg)) !important; }
.tpm-tags .wp-block-post-terms__separator { display: none; }

.tpm-postnav {
	gap: 12px !important;
	margin-top: 48px !important;
	padding-top: 24px !important;
	border-top: 1px solid rgb(var(--tpm-line));
	font-size: 14px;
}
.tpm-postnav:not(:has(a)) { display: none !important; }
.tpm-postnav > * { margin: 0 !important; }
.tpm-postnav a { color: rgb(var(--tpm-fg-2)) !important; font-weight: 500; text-decoration: none !important; }
.tpm-postnav a:hover { color: rgb(var(--tpm-accent)) !important; }

/* Comments */
.tpm-comments-wrap { margin-top: 40px !important; }
.tpm-comments-wrap:not(:has(.wp-block-comments > *)) { display: none; }
.tpm-comments { font-size: 15px; color: rgb(var(--tpm-fg-2)); }
.tpm-comments h2, .tpm-comments h3, .tpm-comments .comment-reply-title { font-size: 20px; letter-spacing: -0.015em; color: rgb(var(--tpm-fg)); }
.tpm-comment { padding: 16px 0; border-top: 1px solid rgb(var(--tpm-line)); }
.tpm-comment__meta { gap: 10px !important; font-size: 13px; }
.tpm-comment__meta img { border-radius: 999px; }
.tpm-comment__meta .wp-block-comment-author-name { font-weight: 600; color: rgb(var(--tpm-fg)); }
.tpm-comment__meta .wp-block-comment-date { color: rgb(var(--tpm-fg-3)); }
.tpm-comment__meta a { color: inherit !important; text-decoration: none !important; }
.tpm-comments .wp-block-comment-template { padding: 0; list-style: none; }
.tpm-comments input[type="text"],
.tpm-comments input[type="email"],
.tpm-comments input[type="url"],
.tpm-comments textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgb(var(--tpm-line));
	border-radius: 6px;
	background: rgb(var(--tpm-surface));
	color: rgb(var(--tpm-fg));
	font: inherit;
	font-size: 14px;
}
.tpm-comments :is(input, textarea):focus { outline: none; border-color: rgb(var(--tpm-accent) / 0.6); box-shadow: 0 0 0 2px rgb(var(--tpm-accent) / 0.2); }
.tpm-comments label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: rgb(var(--tpm-fg-2)); }
.tpm-comments .comment-notes, .tpm-comments .logged-in-as { font-size: 13px; color: rgb(var(--tpm-fg-3)); }
.tpm-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.tpm-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.tpm-comments .form-submit .submit, .tpm-comments .wp-block-button__link {
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: rgb(var(--tpm-accent));
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.tpm-comments .form-submit .submit:hover { background: rgb(var(--tpm-accent-strong)); }

/* CTA (same copy and buttons as the landing page closing section) */
.tpm-cta { margin-top: 80px !important; border-top: 1px solid rgb(var(--tpm-line)); }
.tpm-cta__inner {
	box-sizing: border-box;
	max-width: 768px;
	margin: 0 auto;
	padding: 80px var(--tpm-gutter);
	text-align: center;
}
.tpm-cta__title {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 34px) !important;
	line-height: 1.25 !important;
	font-weight: 600;
	letter-spacing: -0.02em !important;
	color: rgb(var(--tpm-fg));
}
.tpm-cta__body {
	max-width: 36rem;
	margin: 12px auto 0;
	font-size: 14px;
	line-height: 22px;
	color: rgb(var(--tpm-fg-3));
}
.tpm-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------------------------------------------------------------- Footer */
.tpm-footer {
	border-top: 1px solid rgb(var(--tpm-line));
	background: rgb(var(--tpm-surface));
	font-size: 13px;
	line-height: 20px;
}
.tpm-footer__grid {
	display: grid;
	gap: 32px;
	box-sizing: border-box;
	max-width: var(--tpm-wide);
	margin: 0 auto;
	padding: 48px var(--tpm-gutter);
}
@media (min-width: 768px) {
	.tpm-footer__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.tpm-footer__about { grid-column: span 2 / span 2; }
}
.tpm-footer p, .tpm-footer ul { margin: 0; }
.tpm-footer__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgb(var(--tpm-fg)); }
.tpm-footer__brand svg { display: block; }
.tpm-footer__about p { max-width: 24rem; margin-top: 12px; line-height: 1.625; color: rgb(var(--tpm-fg-3)); }
.tpm-eyebrow {
	margin: 0 0 12px !important;
	font-size: 11px;
	line-height: 16px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgb(var(--tpm-fg-3));
}
.tpm-footer__links, .tpm-footer__status { padding: 0; list-style: none; }
.tpm-footer__links li + li, .tpm-footer__status li + li { margin-top: 8px; }
.tpm-footer__links a { color: rgb(var(--tpm-fg-3)) !important; text-decoration: none !important; }
.tpm-footer__links a:hover { color: rgb(var(--tpm-fg)) !important; }
.tpm-footer__status li { display: flex; align-items: flex-start; gap: 8px; color: rgb(var(--tpm-fg-4)); }
.tpm-footer__status li.is-done { color: rgb(var(--tpm-fg-2)); }
.tpm-footer__status .tpm-i { width: 14px; height: 14px; margin-top: 2px; }
.tpm-footer__status li.is-done .tpm-i { color: rgb(var(--tpm-ok)); }
.tpm-footer__bar { border-top: 1px solid rgb(var(--tpm-line)); }
.tpm-footer__bar-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	box-sizing: border-box;
	max-width: var(--tpm-wide);
	margin: 0 auto;
	padding: 16px var(--tpm-gutter);
	font-size: 12px;
	line-height: 18px;
	color: rgb(var(--tpm-fg-4));
	text-align: center;
}
@media (min-width: 640px) {
	.tpm-footer__bar-inner { flex-direction: row; text-align: left; }
}
.tpm-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tpm-footer__legal a { color: rgb(var(--tpm-fg-4)) !important; text-decoration: none !important; }
.tpm-footer__legal a:hover { color: rgb(var(--tpm-fg-2)) !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Keep the footer at the bottom on short pages */
.wp-site-blocks { display: flex; flex-direction: column; min-height: calc(100vh - var(--tpm-admin-bar)); }
.wp-site-blocks > .tpm-main { flex: 1 0 auto; }
