/* =========================================================================
 * Thrivepine theme
 *
 * Palette from the logo: pine #263C30 and lichen #E7E8DD, with white pages, a
 * light fog for alternate sections and one sunny accent (pollen) kept for the
 * main call to action only.
 * Type: Schibsted Grotesk, one family, weights for hierarchy.
 * Breakpoints match Brizy: mobile 0-767px, tablet 768-991px, desktop 992px+,
 * plus one wide step at 1200px. Written mobile-first.
 * Base element rules use :where() (zero specificity) so Brizy's own element
 * styles always win on Brizy-built pages.
 * ========================================================================= */

@font-face {
	font-family: "Schibsted Grotesk";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
	--tp-pine: #263C30;
	--tp-deep: #1B2B22;
	--tp-lichen: #E7E8DD;
	--tp-fog: #F1F2EC;
	--tp-white: #FFFFFF;
	--tp-pollen: #F2C230;
	--tp-pollen-hover: #E5B21C;
	--tp-pollen-edge: #C99A12;
	--tp-moss: #4A5D51;
	--tp-rule: #D3D9D0;
	--tp-field: #7E8C82;
	--tp-on-pine: #E7E8DD;
	--tp-on-pine-muted: #B9C4B5;
	--tp-rule-on-pine: rgba(231, 232, 221, 0.22);

	--tp-font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

	--tp-fs-small: 0.9375rem;
	--tp-fs-body: 1.0625rem;
	--tp-fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--tp-fs-h3: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
	--tp-fs-h2: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
	--tp-fs-h1: clamp(2.5rem, 1.55rem + 3.8vw, 4.5rem);

	--tp-wrap: 1200px;
	--tp-gutter: clamp(1.125rem, 0.6rem + 2.4vw, 2.5rem);
	--tp-section: clamp(3.5rem, 2.4rem + 4.4vw, 6.5rem);
	--tp-radius: 4px;
	--tp-header-h: 4rem;
	--tp-focus: var(--tp-deep);
}

/* ---------- Base (zero specificity) ---------- */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(html) { scroll-behavior: smooth; scroll-padding-top: calc(var(--tp-header-h) + 1rem); }

:where(body) {
	margin: 0;
	background: var(--tp-white);
	color: var(--tp-deep);
	font-family: var(--tp-font);
	font-size: var(--tp-fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--tp-font);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: inherit;
	text-wrap: balance;
}
:where(p, li, dd) { text-wrap: pretty; }
:where(a) { color: var(--tp-pine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:where(a:hover) { color: var(--tp-deep); text-decoration-thickness: 2px; }
:where(img, svg, video) { max-width: 100%; height: auto; }

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid var(--tp-focus);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	:where(html) { scroll-behavior: auto; }
	.tp *, .tp *::before, .tp *::after,
	.tp-site-header *, .tp-mobilebar { transition-duration: 0.01ms !important; }
}

.tp-skip-link {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	border-radius: var(--tp-radius);
	background: var(--tp-white);
	color: var(--tp-deep);
	font-weight: 600;
}
.tp-skip-link:focus { top: 1rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Scope: every Thrivepine section is self-contained ---------- */

.tp,
.tp-site-header,
.tp-site-footer,
.tp-mobilebar {
	box-sizing: border-box;
	font-family: var(--tp-font);
	font-size: var(--tp-fs-body);
	font-weight: 400;
	line-height: 1.6;
	color: var(--tp-deep);
	text-align: left;
}
.tp *,
.tp *::before,
.tp *::after,
.tp-site-header *,
.tp-site-footer *,
.tp-mobilebar *,
.tp-wrap,
.tp-content,
.tp-content *,
.tp-content *::before,
.tp-content *::after { box-sizing: border-box; }

.tp p, .tp ul, .tp ol, .tp dl, .tp dd, .tp figure, .tp table,
.tp h1, .tp h2, .tp h3 { margin: 0; }

/* Dark sections switch the focus ring to the accent so it stays visible. */
.tp-site-header, .tp-site-footer, .tp-mobilebar, .tp-process, .tp-checklist { --tp-focus: var(--tp-pollen); }
.tp-checklist .tp-card { --tp-focus: var(--tp-deep); }

.tp-wrap {
	width: 100%;
	max-width: calc(var(--tp-wrap) + 2 * var(--tp-gutter));
	margin-inline: auto;
	padding-inline: var(--tp-gutter);
}
.tp-wrap--narrow { max-width: calc(46rem + 2 * var(--tp-gutter)); }

.tp-section { padding-block: var(--tp-section); }

.tp .tp-title {
	font-size: var(--tp-fs-h2);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--tp-deep);
}
.tp .tp-intro {
	max-width: 42rem;
	font-size: var(--tp-fs-lead);
	line-height: 1.55;
	color: var(--tp-moss);
}
.tp .tp-section__head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.tp .tp-section__head > * + * { margin-top: 1rem; }

.tp h3 {
	font-size: var(--tp-fs-h3);
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--tp-deep);
}

/* ---------- Buttons ---------- */

.tp-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.tp-ctas--stack { flex-direction: column; align-items: flex-start; }

.tp-btn,
.tp .tp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.375rem;
	border: 2px solid transparent;
	border-radius: var(--tp-radius);
	font-family: var(--tp-font);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tp-btn--primary,
.tp .tp-btn--primary {
	background: var(--tp-pollen);
	border-color: var(--tp-pollen-edge);
	color: var(--tp-deep);
}
.tp-btn--primary:hover,
.tp .tp-btn--primary:hover { background: var(--tp-pollen-hover); color: var(--tp-deep); }

.tp .tp-btn--secondary { background: transparent; border-color: var(--tp-deep); color: var(--tp-deep); }
.tp .tp-btn--secondary:hover { background: var(--tp-deep); color: var(--tp-white); }

.tp-btn--small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

/* ---------- Header ---------- */

.tp-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--tp-pine);
	color: var(--tp-on-pine);
}
.admin-bar .tp-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tp-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tp-site-header { top: 0; } }

.tp-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--tp-header-h);
}

.tp-brand {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-right: auto;
	color: var(--tp-on-pine);
	text-decoration: none;
}
.tp-brand__logo { display: block; width: auto; height: 2.5rem; }
.tp-brand--custom img { display: block; width: auto; max-height: 2.5rem; }

.tp-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1.5px solid rgba(231, 232, 221, 0.5);
	border-radius: var(--tp-radius);
	background: transparent;
	color: var(--tp-on-pine);
	font: 600 0.9375rem/1 var(--tp-font);
	cursor: pointer;
}
.tp-menu-toggle__bars,
.tp-menu-toggle__bars::before,
.tp-menu-toggle__bars::after {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease;
}
.tp-menu-toggle__bars { position: relative; }
.tp-menu-toggle__bars::before,
.tp-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.tp-menu-toggle__bars::before { top: -6px; }
.tp-menu-toggle__bars::after { top: 6px; }
.tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__bars { background: transparent; }
.tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.tp-nav__list { list-style: none; margin: 0; padding: 0; }
.tp-nav__list a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--tp-on-pine);
	font-weight: 500;
	text-decoration: none;
}
.tp-nav__list a:hover { color: var(--tp-white); text-decoration: underline; text-underline-offset: 0.3em; }

/* Mobile and tablet: menu opens as a panel under the header. Without JS the links stay visible. */
.js .tp-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 0.25rem var(--tp-gutter) 1.5rem;
	background: var(--tp-pine);
	border-top: 1px solid var(--tp-rule-on-pine);
	box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.5);
}
.js .tp-site-header.is-open .tp-nav { display: block; }
.no-js .tp-nav { order: 10; width: 100%; padding-bottom: 1rem; }
.no-js .tp-menu-toggle { display: none; }
.tp-nav .tp-nav__list a { font-size: 1.125rem; border-bottom: 1px solid var(--tp-rule-on-pine); }
.tp-nav__cta { width: 100%; margin-top: 1rem; }
.tp-header__cta { display: none; }

/* ---------- Hero ---------- */

.tp-hero {
	container-type: inline-size;
	display: grid;
	background: var(--tp-white);
}
.tp-hero__copy {
	min-width: 0;
	padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem) var(--tp-gutter) 2.25rem;
}
.tp .tp-hero__title {
	max-width: 14ch;
	font-size: var(--tp-fs-h1);
	font-weight: 760;
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: var(--tp-deep);
}
.tp .tp-hero__lead {
	max-width: 38rem;
	margin-top: 1.25rem;
	font-size: var(--tp-fs-lead);
	line-height: 1.55;
	color: var(--tp-deep);
}
.tp-hero .tp-ctas { margin-top: 1.75rem; }
.tp .tp-hero__note { margin-top: 1rem; font-size: var(--tp-fs-small); color: var(--tp-moss); }

.tp-hero__figure { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.tp-hero__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tp-fog); }
.tp-photo__picture { display: contents; }
.tp-photo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}
.tp .tp-hero__caption {
	padding: 0.9rem var(--tp-gutter) 1.25rem;
	font-size: var(--tp-fs-small);
	line-height: 1.5;
	color: var(--tp-moss);
}
.tp-hero__caption strong { font-weight: 600; color: var(--tp-deep); }
.tp-nowrap { white-space: nowrap; }

/* ---------- Platforms ---------- */

.tp-platforms { border-top: 1px solid var(--tp-rule); border-bottom: 1px solid var(--tp-rule); background: var(--tp-fog); }
.tp .tp-platforms__text {
	max-width: 62rem;
	padding-block: 1.4rem;
	font-size: var(--tp-fs-body);
	line-height: 1.9;
	color: var(--tp-deep);
}
.tp-platforms__text a { padding-block: 0.3rem; font-weight: 600; }

/* ---------- What every migration protects ---------- */

/* The redirect example sits below the six protections as an opt-in detail, so it proves the point without the weight. */
.tp-redirects { max-width: 52rem; margin-top: 2rem; }
.tp-redirects__summary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	font-weight: 600;
	color: var(--tp-deep);
	cursor: pointer;
	list-style: none;
}
.tp-redirects__summary::-webkit-details-marker { display: none; }
.tp-redirects__summary::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid var(--tp-moss);
	border-bottom: 2px solid var(--tp-moss);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}
.tp-redirects[open] .tp-redirects__summary::before { transform: rotate(45deg); }
.tp .tp-redirects__lead { max-width: 44rem; margin: 0.75rem 0 1.25rem; font-size: var(--tp-fs-small); line-height: 1.55; color: var(--tp-moss); }
.tp-redirects__table { width: 100%; border-collapse: collapse; }
.tp-redirects__table thead th {
	padding: 0 1rem 0.6rem 0;
	border-bottom: 2px solid var(--tp-deep);
	font-size: var(--tp-fs-small);
	font-weight: 600;
	text-align: left;
	color: var(--tp-deep);
}
.tp .tp-redirects__group {
	padding: 1rem 0 0.25rem;
	font-size: var(--tp-fs-small);
	font-weight: 650;
	text-align: left;
	color: var(--tp-pine);
}
.tp-redirects__table td {
	width: 50%;
	padding: 0.55rem 1rem 0.55rem 0;
	border-bottom: 1px solid var(--tp-rule);
	font-size: 0.9375rem;
	line-height: 1.45;
	vertical-align: top;
	overflow-wrap: anywhere;
}
.tp-redirects__old { color: var(--tp-moss); }
.tp-redirects__new { color: var(--tp-deep); font-weight: 600; }

.tp-ledger { border-top: 2px solid var(--tp-deep); }
.tp-ledger__row { display: grid; gap: 0.45rem; padding-block: 1.4rem; border-bottom: 1px solid var(--tp-rule); }
.tp .tp-ledger__text { max-width: 44rem; }

/* ---------- Signs ---------- */

.tp-signs { background: var(--tp-fog); }
.tp-split { display: grid; gap: 2rem; align-items: start; }
.tp .tp-split__head > * + * { margin-top: 1rem; }
.tp-split__cta { margin-top: 0; }
.tp .tp-signs__list { list-style: none; padding: 0; }
.tp-signs__list li {
	position: relative;
	padding: 1rem 0 1rem 1.6rem;
	border-bottom: 1px solid var(--tp-rule);
}
.tp-signs__list li:first-child { border-top: 1px solid var(--tp-rule); }
.tp-signs__list li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 1.55rem;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--tp-pine);
}

/* ---------- Process (a real sequence, so it is numbered) ---------- */

.tp-process { background: var(--tp-pine); color: var(--tp-on-pine); }
.tp-process .tp-title,
.tp-process h3 { color: var(--tp-white); }
.tp-process .tp-intro { color: var(--tp-on-pine-muted); }
.tp .tp-steps { display: grid; list-style: none; padding: 0; counter-reset: tp-step; border-top: 1px solid var(--tp-rule-on-pine); }
.tp-step {
	counter-increment: tp-step;
	position: relative;
	display: grid;
	gap: 0.4rem;
	padding: 1.5rem 0 1.5rem 3.25rem;
	border-bottom: 1px solid var(--tp-rule-on-pine);
}
.tp-step::before {
	content: counter(tp-step);
	position: absolute;
	left: 0;
	top: 1.15rem;
	font-size: 2rem;
	font-weight: 500;
	line-height: 1;
	color: var(--tp-on-pine-muted);
	font-variant-numeric: tabular-nums;
}
.tp .tp-step__text { color: var(--tp-on-pine-muted); }

/* ---------- Services ---------- */

.tp-services__grid { display: grid; border-top: 2px solid var(--tp-deep); }
.tp-service { display: grid; gap: 0.6rem; align-content: start; padding-block: 1.6rem; border-bottom: 1px solid var(--tp-rule); }
.tp .tp-service__text { max-width: 34rem; color: var(--tp-moss); }
.tp-service__link a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }

/* ---------- Founder ---------- */

.tp-founder { background: var(--tp-fog); }
.tp-founder__grid { display: grid; gap: 2rem; align-items: center; }
.tp-founder__figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tp-rule); }
.tp-founder__figure .tp-photo__img { object-position: 60% 40%; }
.tp .tp-founder__copy > * + * { margin-top: 1.25rem; }
.tp .tp-founder__lead { max-width: 38rem; font-size: var(--tp-fs-lead); line-height: 1.55; }
.tp .tp-facts { display: grid; gap: 0; padding-top: 0.25rem; }
.tp-facts__item {
	display: grid;
	grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
	padding-block: 0.7rem;
	border-bottom: 1px solid var(--tp-rule);
}
.tp-facts__item:first-child { border-top: 1px solid var(--tp-rule); }
.tp .tp-facts dt { font-size: 1.125rem; font-weight: 700; color: var(--tp-deep); overflow-wrap: anywhere; }
.tp .tp-facts dd { font-size: var(--tp-fs-small); color: var(--tp-moss); }

/* ---------- Commitments ---------- */

.tp-commitments__grid { display: grid; gap: 1.75rem; }
.tp-commit { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--tp-deep); }
.tp .tp-commit__text { color: var(--tp-moss); }
.tp-founding {
	display: grid;
	gap: 1.25rem;
	margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	padding: clamp(1.25rem, 1rem + 2vw, 2rem);
	border-radius: 6px;
	background: var(--tp-fog);
}
.tp .tp-founding__copy { max-width: 44rem; }
.tp .tp-founding__copy > * + * { margin-top: 0.5rem; }
.tp-founding .tp-btn { justify-self: start; }

/* ---------- Checklist ---------- */

.tp-checklist { background: var(--tp-pine); color: var(--tp-on-pine); }
.tp-checklist .tp-title { color: var(--tp-white); }
.tp-checklist .tp-intro { color: var(--tp-on-pine-muted); }
.tp-checklist__grid { display: grid; gap: 2rem; align-items: center; }
.tp .tp-checklist__copy > * + * { margin-top: 1.1rem; }
.tp .tp-checks { list-style: none; padding: 0; }
.tp-checks li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; }
.tp-checks li::before {
	content: "";
	position: absolute;
	left: 0.05rem;
	top: 0.78rem;
	width: 0.75rem;
	height: 0.4rem;
	border-left: 2px solid var(--tp-pollen);
	border-bottom: 2px solid var(--tp-pollen);
	transform: rotate(-45deg);
}
.tp-card {
	min-width: 0;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
	border-radius: 6px;
	background: var(--tp-white);
	color: var(--tp-deep);
}

/* ---------- FAQ ---------- */

.tp-faq__grid { display: grid; gap: 1.5rem; align-items: start; }
.tp .tp-faq__head > * + * { margin-top: 1rem; }
.tp-faq__head a { padding-block: 0.6rem; }
.tp-faq__list { border-top: 2px solid var(--tp-deep); }
.tp-faq__item { border-bottom: 1px solid var(--tp-rule); }
.tp-faq__item summary {
	position: relative;
	display: block;
	padding: 1.15rem 2.75rem 1.15rem 0;
	list-style: none;
	cursor: pointer;
}
.tp-faq__item summary::-webkit-details-marker { display: none; }
.tp-faq__item summary::after {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 50%;
	width: 0.6rem;
	height: 0.6rem;
	margin-top: -0.45rem;
	border-right: 2px solid var(--tp-pine);
	border-bottom: 2px solid var(--tp-pine);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.tp-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.tp .tp-faq__q { display: inline; font-size: var(--tp-fs-h3); line-height: 1.3; }
.tp .tp-faq__a { max-width: 44rem; padding-bottom: 1.4rem; }

/* ---------- Quote ---------- */

.tp-quote { background: var(--tp-fog); }
.tp-quote__grid { display: grid; gap: 2rem; align-items: start; }
.tp-quote__form { border: 1px solid var(--tp-rule); }
.tp .tp-quote__form > .tp-intro { margin-top: 0.75rem; }
.tp-quote__form .tp-form-wrap { margin-top: 1.75rem; }
.tp-quote__aside { display: grid; gap: 2rem; }
.tp .tp-quote__subtitle { margin-bottom: 0.9rem; }
.tp .tp-next { list-style: none; padding: 0; counter-reset: tp-next; }
.tp-next li { counter-increment: tp-next; position: relative; padding: 0 0 0.9rem 2rem; }
.tp-next li::before {
	content: counter(tp-next) ".";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--tp-pine);
}
.tp-quote__talk .tp-ctas { margin-top: 0; }
.tp .tp-quote__email { margin-top: 1rem; color: var(--tp-moss); font-size: var(--tp-fs-small); }
.tp-quote__email a { display: inline-block; padding-block: 0.7rem; }

/* ---------- Forms (markup from the Thrivepine Leads plugin) ---------- */

.tp-form { display: grid; gap: 1rem; }
.tp-form__row { display: grid; gap: 1rem; }
.tp-field { display: grid; gap: 0.4rem; min-width: 0; }
.tp-field label { font-size: var(--tp-fs-small); font-weight: 600; color: var(--tp-deep); }
.tp-field label span { font-weight: 400; color: var(--tp-moss); }
.tp-field input,
.tp-field select,
.tp-field textarea {
	width: 100%;
	min-height: 3rem;
	margin: 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--tp-field);
	border-radius: var(--tp-radius);
	background: var(--tp-white);
	color: var(--tp-deep);
	font: 400 1rem/1.4 var(--tp-font); /* 16px stops iOS zooming into fields */
}
.tp-field textarea { min-height: 6.5rem; resize: vertical; }
.tp-field input:focus,
.tp-field select:focus,
.tp-field textarea:focus { border-color: var(--tp-deep); }
.tp-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.25rem;
	padding: 0.85rem 1.5rem;
	border: 2px solid var(--tp-pollen-edge);
	border-radius: var(--tp-radius);
	background: var(--tp-pollen);
	color: var(--tp-deep);
	font: 650 1.0625rem/1.2 var(--tp-font);
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.tp-form__submit:hover { background: var(--tp-pollen-hover); }
.tp .tp-form__fine,
.tp-form__fine { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--tp-moss); }
.tp-form__error { margin: 0; padding: 0.75rem 1rem; border-radius: var(--tp-radius); background: #FBEAE5; color: #7A2611; font-size: var(--tp-fs-small); }
.tp-form__title { margin: 0; font: 700 1.375rem/1.25 var(--tp-font); color: var(--tp-deep); }
.tp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tp-form-done { padding: 1.25rem 1.4rem; border-radius: var(--tp-radius); background: var(--tp-fog); border-left: 4px solid var(--tp-pine); }
.tp-form-done strong { display: block; margin-bottom: 0.35rem; font: 700 1.25rem/1.3 var(--tp-font); }
.tp-form-done p { margin: 0; }
.tp-form-fallback p { margin: 0 0 0.75rem; }
.tp-admin-hint { padding: 0.6rem 0.8rem; border: 1px dashed var(--tp-pollen-edge); border-radius: var(--tp-radius); background: #FFF8E1; color: var(--tp-deep); font-size: 0.875rem; }

/* ---------- Footer ---------- */

.tp-site-footer {
	padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
	background: var(--tp-deep);
	color: var(--tp-on-pine-muted);
	font-size: var(--tp-fs-small);
}
.tp-site-footer a { color: var(--tp-on-pine); text-decoration: none; }
.tp-site-footer a:hover { color: var(--tp-white); text-decoration: underline; }
.tp-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.tp-footer__about { grid-column: 1 / -1; }
.tp-footer__about p { margin: 0.9rem 0 0; max-width: 24rem; }
.tp-site-footer .tp-brand { margin-right: 0; }
.tp-footer__title {
	margin: 0 0 0.6rem;
	font: 650 var(--tp-fs-small)/1.4 var(--tp-font);
	letter-spacing: 0;
	color: var(--tp-white);
}
.tp-footer__list { list-style: none; margin: 0; padding: 0; }
.tp-footer__list a { display: inline-flex; align-items: center; min-width: 2.75rem; min-height: 2.75rem; overflow-wrap: anywhere; }
.tp-footer__legal {
	position: relative;
	display: grid;
	gap: 0.5rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	font-size: 0.8125rem;
}
/* The rule lines up with the text, not the padded edge of the wrapper. */
.tp-footer__legal::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--tp-gutter);
	right: var(--tp-gutter);
	border-top: 1px solid var(--tp-rule-on-pine);
}
.tp-footer__legal p { margin: 0; }
.tp-footer__legal a { text-decoration: underline; }
.tp-footer__legal a,
.tp-form__fine a { padding-block: 0.35rem; }
.tp-footer__tm { max-width: 60rem; }

/* ---------- Phone call-to-action bar ---------- */

.tp-mobilebar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 0.5rem;
	padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
	background: var(--tp-pine);
	border-top: 1px solid var(--tp-rule-on-pine);
	transition: transform 0.2s ease, visibility 0s;
}
.tp-mobilebar--single { grid-template-columns: 1fr; }
.tp-mobilebar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 0.2s ease, visibility 0s 0.2s; }
.tp-mobilebar a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	border-radius: var(--tp-radius);
	font-weight: 650;
	text-decoration: none;
}
.tp-mobilebar__quote { background: var(--tp-pollen); color: var(--tp-deep); }
.tp-mobilebar__chat { border: 1.5px solid rgba(231, 232, 221, 0.55); color: var(--tp-white); }
.tp-mobilebar a:hover { color: inherit; }
body:has(.tp-mobilebar) .tp-site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }

/* ---------- Inner pages: posts, guides, legal ---------- */

.tp-content { padding-block: var(--tp-section); }
.tp-content__header { margin-bottom: 2rem; }
.tp-content__title { margin: 0; font-size: var(--tp-fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.tp-content__meta { margin: 0.75rem 0 0; color: var(--tp-moss); font-size: var(--tp-fs-small); }
.tp-content__updated { margin-left: 0.75rem; }
.tp-content__image { margin: 0 0 2rem; }
.tp-content__image img { border-radius: 6px; }
.tp-prose { font-size: var(--tp-fs-body); line-height: 1.7; }
.tp-prose > * + * { margin-top: 1.25em; }
.tp-prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.tp-prose h3 { margin-top: 1.75em; font-size: var(--tp-fs-h3); }
.tp-prose img { border-radius: var(--tp-radius); }
.tp-prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--tp-pine); }
.tp-prose pre { overflow-x: auto; padding: 1rem; border-radius: var(--tp-radius); background: var(--tp-fog); }
.tp-prose table { width: 100%; border-collapse: collapse; }
.tp-prose th,
.tp-prose td { padding: 0.5rem; border-bottom: 1px solid var(--tp-rule); text-align: left; }

/* WordPress content classes: classic-editor alignments and captions, galleries, sticky posts, author comments. */
.alignleft { float: left; margin: 0.35em 1.5em 1em 0; }
.alignright { float: right; margin: 0.35em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.tp-prose::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption-text,
.gallery-caption,
.tp-prose figcaption { margin-top: 0.5rem; color: var(--tp-moss); font-size: var(--tp-fs-small); }
.sticky .tp-postcard__title::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; vertical-align: 0.15em; background: var(--tp-pollen-edge); }
.bypostauthor > .comment-body .fn { font-weight: 700; }
/* Very small phones (320-359px wide): tighter hero type so the first button stays on the first screen. */
@media (max-width: 359px) {
	:root { --tp-fs-h1: 2.125rem; --tp-fs-lead: 1.0625rem; }
	.tp .tp-hero__copy { padding-top: 1.75rem; }
	.tp .tp-hero__lead { margin-top: 1rem; }
	.tp-hero .tp-ctas { margin-top: 1.25rem; }
}

@media (max-width: 599px) {
	.alignleft,
	.alignright { float: none; margin: 1em 0; }
}
.tp-postlist { display: grid; gap: 2rem; }
.tp-postcard { padding-bottom: 2rem; border-bottom: 1px solid var(--tp-rule); }
.tp-postcard__title { margin: 0; font-size: var(--tp-fs-h3); }
.tp-postcard__title a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.4rem; color: var(--tp-deep); text-decoration: none; }
.tp-postcard__title a:hover { text-decoration: underline; }
.tp-postcard__meta { margin: 0; color: var(--tp-moss); font-size: var(--tp-fs-small); }
.tp-pagination { margin-top: 2.5rem; }
.tp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); text-decoration: none; }
.tp-pagination .current { background: var(--tp-pine); border-color: var(--tp-pine); color: var(--tp-white); }
.tp-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--tp-rule); }
.tp-comments__list { padding-left: 1.25rem; }
.tp-comments__list .comment-body { padding-block: 1rem; border-bottom: 1px solid var(--tp-rule); }
.comment-reply-title { font-size: var(--tp-fs-h3); }
.comment-form > p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--tp-field);
	border-radius: var(--tp-radius);
	background: var(--tp-white);
	color: var(--tp-deep);
	font: inherit;
	font-size: 1rem;
}
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--tp-pine); }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-reply-link,
#cancel-comment-reply-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.search-form { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.search-form .search-field { flex: 1; width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem; border: 1px solid var(--tp-field); border-radius: var(--tp-radius); font: inherit; font-size: 1rem; }
.search-form .search-submit { min-height: 3rem; padding: 0 1.2rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-pine); color: var(--tp-white); font: 650 1rem/1 var(--tp-font); cursor: pointer; }

/* Brizy and other builders: full-width templates hand the whole width to the builder. */
.tp-builder { display: block; width: 100%; }

/*
 * A Thrivepine section placed with Brizy's Shortcode element runs edge to edge and carries its own spacing,
 * so drop the 10px margin Brizy gives every element wrapper (it shows as a white stripe between coloured sections).
 * Only wrappers that hold a whole Thrivepine section are affected; forms and Brizy's own elements keep their margins.
 */
.brz .brz-wrapper:has(> .brz-wp-shortcode .tp-section, > .brz-wp-shortcode .tp-hero) { margin-top: 0; margin-bottom: 0; }

/* =========================================================================
 * Tablet: 768px and up
 * ========================================================================= */
@media (min-width: 768px) {
	.js .tp-header__cta,
	.tp-header__cta { display: inline-flex; }
	.tp-nav__cta { display: none; }
	.tp-brand__logo { height: 2.75rem; }

	.tp-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
	.tp-hero__copy {
		align-self: center;
		padding: clamp(2.5rem, 1rem + 4vw, 4rem) 2.5rem clamp(2.5rem, 1rem + 4vw, 4rem) max(var(--tp-gutter), calc((100cqw - var(--tp-wrap)) / 2));
	}
	.tp-hero__photo { flex: 1 1 auto; aspect-ratio: auto; min-height: 30rem; }
	.tp .tp-hero__caption { padding: 0.85rem 1.25rem 1rem; font-size: 0.875rem; }

	.tp-ledger__row { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.5rem 2.5rem; }

	.tp-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; gap: 1.75rem 3rem; }
	.tp-split__head { grid-column: 1; grid-row: 1; }
	.tp-split__cta { grid-column: 1; grid-row: 2; align-self: start; }
	.tp-split > ul { grid-column: 2; grid-row: 1 / span 2; }

	.tp-step { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.5rem 2rem; align-items: start; padding-left: 3.5rem; }

	.tp-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-service { padding-right: 2rem; }
	.tp-service:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--tp-rule); }

	.tp-founder__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }

	.tp-commitments__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
	.tp-founding { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

	.tp-checklist__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }

	.tp-quote__aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.tp-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-form__submit { width: auto; justify-self: start; min-width: 14rem; }

	.tp-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.tp-mobilebar { display: none; }
	body:has(.tp-mobilebar) .tp-site-footer { padding-bottom: 2rem; }
}

/* =========================================================================
 * Desktop: 992px and up
 * ========================================================================= */
@media (min-width: 992px) {
	:root { --tp-header-h: 4.5rem; }

	.tp-menu-toggle { display: none; }
	.js .tp-nav,
	.tp-nav {
		display: block;
		position: static;
		margin-left: auto;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
	}
	.tp-brand { margin-right: 0; }
	.tp-brand__logo { height: 3rem; }
	.tp-nav .tp-nav__list { display: flex; gap: 1.75rem; }
	.tp-nav .tp-nav__list a { font-size: 0.9375rem; border-bottom: 0; }
	.no-js .tp-nav { order: 0; width: auto; padding: 0; }

	.tp-hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		min-height: min(calc(100svh - var(--tp-header-h)), 52rem);
	}
	.tp-hero__copy { padding-right: clamp(2.5rem, 1rem + 3vw, 4.5rem); }
	.tp-hero__photo { min-height: 34rem; }

	.tp-founder__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); }

	.tp-commitments__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	.tp-checklist__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); }

	.tp-faq__grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
	.tp-faq__head { position: sticky; top: calc(var(--tp-header-h) + 1.5rem); }

	.tp-quote__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
	.tp-quote__aside { grid-template-columns: minmax(0, 1fr); }

	.tp-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
	.tp-footer__about { grid-column: auto; }
}

/* =========================================================================
 * Wide: 1200px and up
 * ========================================================================= */
@media (min-width: 1200px) {
	.tp .tp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; border-top: 0; }
	.tp-step {
		display: block;
		padding: 3.75rem 0 0;
		border-top: 1px solid var(--tp-rule-on-pine);
		border-bottom: 0;
	}
	.tp-step::before { top: 1rem; font-size: 1.75rem; }
	.tp .tp-step__text { margin-top: 0.6rem; font-size: 0.96875rem; }
}
