/*
Theme Name: The Marketing Ops Manager Blog
Theme URI: https://themarketingopsmanager.com/blog/
Description: Child theme of Twenty Twenty-Five that mirrors the themarketingopsmanager.com landing page (header, footer, tokens, Inter, buttons, cards).
Author: The Marketing Ops Manager
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tmom-blog
*/

/* ---------------------------------------------------------------
   Tokens (mirror src/index.css @theme of the product app)
---------------------------------------------------------------- */
:root {
	--tm-canvas: #f8fafc;
	--tm-surface: #ffffff;
	--tm-subtle: #f1f5f9;
	--tm-muted: #e2e8f0;
	--tm-line: #e5e9f0;
	--tm-line-strong: #d4dae3;
	--tm-ink: #172033;
	--tm-ink-2: #475569;
	--tm-ink-3: #64748b;
	--tm-ink-4: #94a3b8;
	--tm-body: #334155;
	--tm-brand: #2563eb;
	--tm-brand-600: #1d4ed8;
	--tm-brand-50: #eff6ff;
	--tm-brand-100: #dbeafe;
	--tm-teal: #0d9488;
	--tm-shadow-xs: 0 1px 2px rgb(23 32 51 / 0.04);
	--tm-shadow-card: 0 1px 2px rgb(23 32 51 / 0.04), 0 1px 3px rgb(23 32 51 / 0.03);
	--tm-shadow-pop: 0 4px 6px -2px rgb(23 32 51 / 0.05), 0 12px 32px -4px rgb(23 32 51 / 0.12);
	--tm-radius-card: 12px;
	--tm-font: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--tm-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
	--tm-admin-bar: var(--wp-admin--admin-bar--height, 0px);
	color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(80px + var(--tm-admin-bar)); }
body {
	background: var(--tm-canvas);
	color: var(--tm-ink);
	font-feature-settings: "cv11", "ss01", "ss03";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
:focus-visible { outline: 2px solid var(--tm-brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--tm-brand-100); }

/* Block theme wrapper: no gaps between header / main / footer */
.wp-site-blocks { padding: 0 !important; min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0; }
.wp-site-blocks > .tm-main { flex: 1 0 auto; }
.tm-main > * { margin-block-start: 0; }

.tm-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.tm-narrow { box-sizing: border-box; width: 100%; max-width: calc(680px + 32px); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .tm-container, .tm-narrow { padding-inline: 24px; } .tm-narrow { max-width: calc(680px + 48px); } }
@media (min-width: 1024px) { .tm-container { padding-inline: 32px; } }

.tm-skip { position: absolute; left: -9999px; top: auto; z-index: 60; }
.tm-skip:focus { left: 16px; top: 16px; position: fixed; background: var(--tm-surface); color: var(--tm-ink); padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; box-shadow: var(--tm-shadow-pop); text-decoration: none; }

.tm-eyebrow, .tm-eyebrow a {
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
	color: var(--tm-brand); text-decoration: none;
}
.tm-eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------
   Buttons (mirror components/ui/button.tsx)
---------------------------------------------------------------- */
.tm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	white-space: nowrap; border-radius: 8px; font-family: var(--tm-font); font-weight: 500;
	text-decoration: none !important; border: 0; background: transparent; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
	box-sizing: border-box;
}
.tm-btn:active { transform: translateY(1px); }
.tm-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tm-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.tm-btn--lg { height: 44px; padding: 0 20px; font-size: 14px; }
.tm-btn--icon { height: 32px; width: 32px; padding: 0; }
.tm-btn--primary { background: var(--tm-brand); color: #fff !important; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.15), 0 1px 2px rgb(23 32 51 / 0.12); }
.tm-btn--primary:hover { background: var(--tm-brand-600); }
.tm-btn--secondary { border: 1px solid var(--tm-line-strong); background: var(--tm-surface); color: var(--tm-ink) !important; box-shadow: var(--tm-shadow-xs); }
.tm-btn--secondary:hover { background: var(--tm-subtle); border-color: rgb(148 163 184 / 0.6); }
.tm-btn--ghost { color: var(--tm-ink-2) !important; }
.tm-btn--ghost:hover { background: var(--tm-subtle); color: var(--tm-ink) !important; }
.tm-btn--ghost-dark { color: rgb(255 255 255 / 0.8) !important; }
.tm-btn--ghost-dark:hover { background: rgb(255 255 255 / 0.1); color: #fff !important; }

/* ---------------------------------------------------------------
   Header (mirror landing.tsx Header)
---------------------------------------------------------------- */
.tm-header {
	position: sticky; top: var(--tm-admin-bar); z-index: 40;
	border-bottom: 1px solid transparent; background: rgb(248 250 252 / 0);
	transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.tm-header.is-scrolled, .tm-header.is-open {
	border-bottom-color: var(--tm-line); background: rgb(248 250 252 / 0.85);
	box-shadow: var(--tm-shadow-xs); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tm-header__bar { display: flex; height: 64px; align-items: center; gap: 24px; }
.tm-logo-link { border-radius: 8px; text-decoration: none !important; color: inherit; }
.tm-logo { display: flex; align-items: center; gap: 10px; }
.tm-logo__mark { flex-shrink: 0; display: block; }
.tm-logo__text { display: flex; flex-direction: column; line-height: 1; }
.tm-logo__name { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: var(--tm-ink); }
.tm-logo__sub { margin-top: 2px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--tm-ink-4); }

.tm-nav { display: none; }
.tm-nav ul, .tm-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.tm-nav ul { display: flex; align-items: center; gap: 4px; }
.tm-nav a {
	display: block; border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 500; line-height: 1.5;
	color: var(--tm-ink-2); text-decoration: none !important; transition: color .15s, background-color .15s;
}
.tm-nav a:hover { background: var(--tm-subtle); color: var(--tm-ink); }
.tm-nav a.is-active { color: var(--tm-ink); background: var(--tm-subtle); }
@media (min-width: 768px) { .tm-nav { display: block; } }

.tm-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tm-hide-xs { display: none !important; }
@media (min-width: 640px) { .tm-hide-xs { display: inline-flex !important; } }
.tm-menu-toggle .tm-icon-close { display: none; }
.tm-menu-toggle[aria-expanded="true"] .tm-icon-open { display: none; }
.tm-menu-toggle[aria-expanded="true"] .tm-icon-close { display: block; }
@media (min-width: 768px) { .tm-menu-toggle { display: none !important; } }

.tm-mobile-menu { border-top: 1px solid var(--tm-line); background: var(--tm-surface); animation: tm-pop .16s ease-out; }
.tm-mobile-menu[hidden] { display: none; }
.tm-mobile-menu .tm-container { padding-top: 12px; padding-bottom: 12px; }
.tm-mobile-menu ul { display: flex; flex-direction: column; }
.tm-mobile-menu a {
	display: flex; height: 44px; align-items: center; border-radius: 8px; padding: 0 12px;
	font-size: 14px; font-weight: 500; color: var(--tm-ink-2); text-decoration: none !important;
}
.tm-mobile-menu a:hover, .tm-mobile-menu a.is-active { background: var(--tm-subtle); color: var(--tm-ink); }
.tm-mobile-menu__sep { margin-top: 8px; border-top: 1px solid var(--tm-line); padding-top: 12px; }
@media (min-width: 768px) { .tm-mobile-menu { display: none !important; } }
@keyframes tm-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------
   Page hero (blog index, archives, article header)
---------------------------------------------------------------- */
.tm-page-hero, .tm-article__head { position: relative; overflow: hidden; isolation: isolate; }
.tm-hero-grid {
	pointer-events: none; position: absolute; inset: 0; z-index: -1; opacity: .6;
	background-image: linear-gradient(var(--tm-line) 1px, transparent 1px), linear-gradient(90deg, var(--tm-line) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000, transparent);
	mask-image: radial-gradient(70% 55% at 50% 0%, #000, transparent);
}
.tm-page-hero { padding: 56px 0 40px; }
@media (min-width: 640px) { .tm-page-hero { padding: 80px 0 48px; } }
.tm-page-hero__inner { text-align: center; }
.tm-page-hero__inner > * { margin-left: auto; margin-right: auto; }
.tm-page-hero__inner > .tm-eyebrow { margin-bottom: 12px; }
.tm-page-hero__title, h1.tm-page-hero__title {
	max-width: 768px; margin: 0 auto; font-size: 38px; font-weight: 600; line-height: 1.06;
	letter-spacing: -0.035em; color: var(--tm-ink); text-wrap: balance;
}
@media (min-width: 640px) { .tm-page-hero__title, h1.tm-page-hero__title { font-size: 52px; } }
.tm-page-hero__lead, .tm-page-hero__lead p {
	max-width: 640px; margin: 20px auto 0; font-size: 16px; line-height: 1.625; color: var(--tm-ink-2); text-wrap: pretty;
}
@media (min-width: 640px) { .tm-page-hero__lead, .tm-page-hero__lead p { font-size: 18px; } }
.tm-404__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tm-404__search { max-width: 560px; padding-bottom: 96px; }

/* ---------------------------------------------------------------
   Post grid + cards (mirror .card)
---------------------------------------------------------------- */
.tm-posts { padding-bottom: 16px; }
.tm-query { margin: 0; }
.tm-grid {
	list-style: none; margin: 0 !important; padding: 0;
	display: grid !important; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tm-grid > li { margin: 0 !important; min-width: 0; }
.tm-card {
	position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column;
	min-width: 0; overflow: hidden; border-radius: var(--tm-radius-card); border: 1px solid var(--tm-line);
	background: var(--tm-surface); box-shadow: var(--tm-shadow-card);
	transition: box-shadow .2s, border-color .2s, transform .2s;
}
.tm-card:hover { border-color: var(--tm-line-strong); box-shadow: var(--tm-shadow-pop); transform: translateY(-2px); }
.tm-card > * { margin: 0 !important; }
.tm-card__media { border-bottom: 1px solid var(--tm-line); background: var(--tm-subtle); }
.tm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.tm-card__body > * { margin: 0 !important; }
.tm-card__cat { margin-bottom: 12px !important; font-size: 11px !important; }
.tm-card__cat a { color: var(--tm-brand); position: relative; z-index: 2; }
.tm-card__title, h2.tm-card__title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.tm-card__title a { color: var(--tm-ink); text-decoration: none !important; }
.tm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--tm-radius-card); }
.tm-card:hover .tm-card__title a { color: var(--tm-brand-600); }
.tm-card__excerpt { margin-top: 10px !important; font-size: 14px; line-height: 1.6; color: var(--tm-ink-2); }
.tm-card__excerpt p { margin: 0; }
.tm-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.tm-card__date { margin-top: auto !important; padding-top: 20px; font-size: 12px; color: var(--tm-ink-3); font-variant-numeric: tabular-nums; }

.tm-pagination { margin-top: 48px !important; gap: 4px; font-size: 13px; font-weight: 500; }
.tm-pagination a, .tm-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px;
	box-sizing: border-box; border-radius: 8px; color: var(--tm-ink-2); text-decoration: none !important;
}
.tm-pagination a:hover { background: var(--tm-subtle); color: var(--tm-ink); }
.tm-pagination .page-numbers.current { background: var(--tm-surface); color: var(--tm-ink); border: 1px solid var(--tm-line-strong); box-shadow: var(--tm-shadow-xs); }
.tm-empty { text-align: center; color: var(--tm-ink-2); padding: 48px 0; }

/* Search form */
.tm-search .wp-block-search__inside-wrapper { gap: 8px; border: 0 !important; padding: 0 !important; }
.tm-search .wp-block-search__input {
	height: 44px; box-sizing: border-box; border: 1px solid var(--tm-line-strong) !important; border-radius: 8px;
	background: var(--tm-surface); padding: 0 14px; font: inherit; font-size: 14px; color: var(--tm-ink); box-shadow: var(--tm-shadow-xs);
}
.tm-search .wp-block-search__input:focus { outline: 2px solid var(--tm-brand); outline-offset: 0; border-color: transparent !important; }
.tm-search .wp-block-search__button { margin: 0; height: 44px; line-height: 1; padding: 0 20px; }
.tm-page-hero .tm-search { max-width: 520px; margin: 28px auto 0; }

/* ---------------------------------------------------------------
   Article
---------------------------------------------------------------- */
.tm-article__head { padding: 40px 0 8px; }
@media (min-width: 640px) { .tm-article__head { padding: 56px 0 16px; } }
.tm-article__head-inner > * { margin: 0 !important; }
.tm-back {
	display: inline-flex !important; align-items: center; gap: 6px; margin-bottom: 28px !important;
	font-size: 13px; font-weight: 500; color: var(--tm-ink-3); text-decoration: none !important;
}
.tm-back:hover { color: var(--tm-ink); }
.tm-back svg { width: 16px; height: 16px; }
.tm-article__cat { margin-bottom: 14px !important; }
.tm-article__title, h1.tm-article__title {
	font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; color: var(--tm-ink); text-wrap: balance;
}
@media (min-width: 640px) { .tm-article__title, h1.tm-article__title { font-size: 46px; } }
.tm-article__lead { margin-top: 18px !important; font-size: 18px; line-height: 1.6; color: var(--tm-ink-2); text-wrap: pretty; }
.tm-article__lead p { margin: 0; }
.tm-article__lead .wp-block-post-excerpt__more-text { display: none; }
.tm-article__meta {
	margin-top: 24px !important; gap: 0 !important; padding-top: 20px; border-top: 1px solid var(--tm-line);
	font-size: 13px; color: var(--tm-ink-3);
}
.tm-article__meta > * { margin: 0 !important; }
.tm-article__meta .wp-block-post-date { font-weight: 500; color: var(--tm-ink-2); }
.tm-article__meta > * + *::before { content: "\00B7"; margin: 0 10px; color: var(--tm-ink-4); }
.tm-article__media {
	box-sizing: border-box; max-width: 1040px; margin: 24px auto 8px !important; padding: 0 16px;
}
.tm-article__media img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--tm-line); box-shadow: var(--tm-shadow-card); object-fit: cover; }
@media (min-width: 640px) { .tm-article__media { padding: 0 24px; } }

/* Prose */
.tm-prose {
	padding: 8px 16px 16px; font-size: 17px; line-height: 1.75; color: var(--tm-body);
	font-feature-settings: "cv11", "ss01", "ss03";
}
@media (min-width: 640px) { .tm-prose { padding-left: 24px; padding-right: 24px; } }
.tm-prose > * { margin-block-start: 0; margin-block-end: 0; box-sizing: border-box; }
.tm-prose > * + * { margin-block-start: 1.25em; }
.tm-prose p { text-wrap: pretty; }
.tm-prose strong { color: var(--tm-ink); font-weight: 600; }
.tm-prose a:where(:not(.wp-element-button)) {
	color: var(--tm-brand); text-decoration: underline; text-decoration-color: rgb(37 99 235 / 0.35);
	text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s;
}
.tm-prose a:where(:not(.wp-element-button)):hover { color: var(--tm-brand-600); text-decoration-color: currentColor; }
.tm-prose :is(h2, h3, h4, h5, h6) { color: var(--tm-ink); scroll-margin-top: calc(88px + var(--tm-admin-bar)); }
.tm-prose > h2, .tm-prose h2.wp-block-heading { margin-block-start: 2.1em; font-size: 26px; line-height: 1.25; letter-spacing: -0.025em; }
.tm-prose > h3, .tm-prose h3.wp-block-heading { margin-block-start: 1.8em; font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; }
.tm-prose > h4 { margin-block-start: 1.6em; font-size: 17px; }
.tm-prose > :is(h2, h3, h4) + * { margin-block-start: 0.6em; }
@media (min-width: 640px) { .tm-prose > h2, .tm-prose h2.wp-block-heading { font-size: 28px; } .tm-prose > h3, .tm-prose h3.wp-block-heading { font-size: 21px; } }
.tm-prose .tm-anchor { margin-left: 8px; color: var(--tm-ink-4); text-decoration: none !important; opacity: 0; transition: opacity .15s; font-weight: 500; }
.tm-prose :is(h2, h3):hover .tm-anchor, .tm-prose .tm-anchor:focus { opacity: 1; }
.tm-prose .tm-anchor:hover { color: var(--tm-brand); }

.tm-prose :is(ul, ol) { padding-left: 1.4em; }
.tm-prose li + li { margin-top: 0.4em; }
.tm-prose li::marker { color: var(--tm-ink-4); }
.tm-prose ol li::marker { color: var(--tm-ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-prose :is(ul, ol) :is(ul, ol) { margin-top: 0.4em; }

.tm-prose blockquote, .tm-prose .wp-block-quote {
	margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tm-brand);
	color: var(--tm-ink); font-size: 18px; line-height: 1.65;
}
.tm-prose blockquote p { margin: 0; }
.tm-prose blockquote p + p { margin-top: .8em; }
.tm-prose blockquote cite, .tm-prose .wp-block-quote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--tm-ink-3); }
.tm-prose .wp-block-pullquote { border-top: 1px solid var(--tm-line); border-bottom: 1px solid var(--tm-line); padding: 32px 0; text-align: center; }
.tm-prose .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }

.tm-prose :not(pre) > code {
	font-family: var(--tm-mono); font-size: 0.86em; padding: 2px 6px; border-radius: 6px;
	background: var(--tm-subtle); border: 1px solid var(--tm-line); color: var(--tm-ink);
}
.tm-prose pre, .tm-prose .wp-block-code, .tm-prose .wp-block-preformatted {
	overflow-x: auto; background: var(--tm-ink); color: #e2e8f0; border-radius: 12px;
	padding: 20px 24px; font-family: var(--tm-mono); font-size: 13.5px; line-height: 1.7; white-space: pre;
	border: 1px solid #0f172a; box-shadow: var(--tm-shadow-card);
}
.tm-prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.tm-prose figure { margin-inline: 0; }
.tm-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.tm-prose .wp-block-image img { border: 1px solid var(--tm-line); }
.tm-prose figcaption, .tm-prose .wp-element-caption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--tm-ink-3); text-align: center; }
.tm-prose hr, .tm-prose .wp-block-separator { border: 0; border-top: 1px solid var(--tm-line); margin-block: 2.5em; opacity: 1; }

.tm-prose .wp-block-table { overflow-x: auto; }
.tm-prose table {
	width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.5;
	border: 1px solid var(--tm-line); border-radius: 12px; overflow: hidden; background: var(--tm-surface); box-shadow: var(--tm-shadow-card);
}
.tm-prose .wp-block-table table { border: 1px solid var(--tm-line); }
.tm-prose :is(th, td) { padding: 10px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--tm-line); }
.tm-prose thead th, .tm-prose thead td { background: var(--tm-subtle); color: var(--tm-ink); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.tm-prose tbody tr:last-child :is(th, td) { border-bottom: 0; }
.tm-prose .wp-block-table thead { border-bottom: 0; }
.tm-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--tm-canvas); }

.tm-prose .wp-block-buttons { gap: 12px; }
.tm-prose .wp-block-button__link { text-decoration: none !important; }
.tm-prose .is-style-outline .wp-block-button__link { background: var(--tm-surface); color: var(--tm-ink); border: 1px solid var(--tm-line-strong); box-shadow: var(--tm-shadow-xs); }

.tm-article__foot { padding-top: 32px; padding-bottom: 16px; }
.tm-article__foot > * { margin: 0 !important; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; margin-bottom: 32px !important; }
.tm-tags a {
	display: inline-flex; height: 28px; align-items: center; padding: 0 10px; border-radius: 999px;
	border: 1px solid var(--tm-line); background: var(--tm-surface); font-size: 12px; font-weight: 500;
	color: var(--tm-ink-2); text-decoration: none !important;
}
.tm-tags a:hover { background: var(--tm-subtle); color: var(--tm-ink); }
.tm-tags .wp-block-post-terms__separator { display: none; }
.tm-postnav { display: grid; gap: 12px; grid-template-columns: 1fr; padding-top: 32px; border-top: 1px solid var(--tm-line); }
@media (min-width: 640px) { .tm-postnav { grid-template-columns: 1fr 1fr; } }
.tm-postnav > * { margin: 0 !important; }
.tm-postnav:not(:has(a)) { display: none; }
.tm-article__foot:not(:has(a)) { display: none; }
.tm-postnav__next { text-align: right; grid-column: -2; }
.tm-postnav a {
	display: block; border-radius: var(--tm-radius-card); border: 1px solid var(--tm-line); background: var(--tm-surface);
	padding: 16px 18px; box-shadow: var(--tm-shadow-card); font-size: 14px; font-weight: 600; line-height: 1.4;
	color: var(--tm-ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s;
}
.tm-postnav a:hover { border-color: var(--tm-line-strong); box-shadow: var(--tm-shadow-pop); color: var(--tm-brand-600); }
.tm-postnav .post-navigation-link__label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tm-ink-4); }
.tm-postnav .wp-block-post-navigation-link__arrow-previous, .tm-postnav .wp-block-post-navigation-link__arrow-next { color: var(--tm-ink-4); }

/* ---------------------------------------------------------------
   CTA (mirror sections.tsx FinalCta)
---------------------------------------------------------------- */
.tm-cta-wrap { padding: 64px 0 80px; }
@media (min-width: 640px) { .tm-cta-wrap { padding: 80px 0 96px; } }
.tm-cta { position: relative; overflow: hidden; border-radius: 24px; background: var(--tm-ink); padding: 56px 24px; text-align: center; }
@media (min-width: 640px) { .tm-cta { padding: 64px 48px; } }
.tm-cta__grid {
	pointer-events: none; position: absolute; inset: 0;
	background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent);
	mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent);
}
.tm-cta__glow { pointer-events: none; position: absolute; top: -96px; left: 50%; width: 560px; height: 256px; transform: translateX(-50%); border-radius: 999px; background: rgb(37 99 235 / 0.3); filter: blur(64px); }
.tm-cta__inner { position: relative; }
.tm-cta__title, h2.tm-cta__title { max-width: 672px; margin: 0 auto; color: #fff; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
@media (min-width: 640px) { .tm-cta__title, h2.tm-cta__title { font-size: 38px; } }
.tm-cta__text { max-width: 576px; margin: 16px auto 0; font-size: 15px; line-height: 1.625; color: rgb(255 255 255 / 0.7); }
.tm-cta__note { max-width: 576px; margin: 8px auto 0; font-size: 13px; color: rgb(255 255 255 / 0.6); }
.tm-cta__actions { margin-top: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.tm-cta__actions .tm-btn { width: 100%; }
@media (min-width: 640px) { .tm-cta__actions { flex-direction: row; } .tm-cta__actions .tm-btn { width: auto; } }

/* ---------------------------------------------------------------
   Footer (mirror landing.tsx Footer)
---------------------------------------------------------------- */
.tm-footer { border-top: 1px solid var(--tm-line); background: var(--tm-surface); }
.tm-footer__grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .tm-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.tm-footer__about { margin: 16px 0 0; max-width: 320px; font-size: 13px; line-height: 1.625; color: var(--tm-ink-3); }
.tm-footer__title, h2.tm-footer__title { margin: 0; font-size: 11px; font-weight: 600; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tm-ink-4); }
.tm-footer__links { list-style: none; margin: 16px 0 0; padding: 0; }
.tm-footer__links li { font-size: 14px; line-height: 1.5; }
.tm-footer__links li + li { margin-top: 10px; }
.tm-footer__links a { font-size: 13px; line-height: 1.5; color: var(--tm-ink-2); text-decoration: none !important; transition: color .15s; }
.tm-footer__links a:hover { color: var(--tm-ink); }
.tm-footer__bottom { border-top: 1px solid var(--tm-line); }
.tm-footer__bottom-inner { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; padding-bottom: 24px; font-size: 12px; line-height: 1.5; color: var(--tm-ink-4); }
@media (min-width: 640px) { .tm-footer__bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

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

/* WP admin bar is not fixed below 600px, so the sticky header goes to the very top there. */
@media (max-width: 600px) { .tm-header { top: 0; } html { scroll-padding-top: 80px; } }
