.studio-legacy {
	--studio-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--studio-space: clamp(3.5rem, 7vw, 5.5rem);
	--studio-text: #334155;
	--studio-dim: var(--muted-light);
	--studio-warm: #fff9eb;
	--studio-sky: #eef5ff;
	--studio-mint: #eef9f4;
	--studio-lilac: #f4f1ff;
	--studio-shadow: 0 1rem 2rem -1.25rem rgb(15 23 42 / 30%);
	min-width: 0;
	counter-reset: studio-step;
}

.studio-legacy > section,
.studio-legacy .comparison-page > section {
	padding-block: var(--studio-space);
}

.studio-legacy .hero {
	padding-block: clamp(3.5rem, 6vw, 4.5rem);
}

.studio-legacy .container {
	width: calc(100% - 2 * var(--studio-gutter));
}

.studio-legacy .studio-dim {
	color: var(--muted);
}

.studio-legacy :is(h1, h2) {
	overflow-wrap: break-word;
	hyphens: manual;
}

.studio-legacy .studio-eyebrow {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 500;
}

.studio-legacy .hero h1 {
	max-width: 21ch;
	margin: 0;
	text-wrap: initial;
}

.studio-legacy .studio-lead {
	max-width: 38rem;
	margin: 1.25rem 0 0;
	color: var(--studio-text);
	font-size: 1.15rem;
}

.studio-legacy .studio-intro {
	max-width: 46rem;
}

.studio-legacy .studio-intro p + p {
	margin-top: 1rem;
}

.studio-legacy .studio-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 1.75rem 0 0;
}

.studio-legacy .hero-supporting {
	margin: 1rem 0 0;
}

.studio-legacy .studio-link {
	color: var(--ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--studio-dim);
	text-underline-offset: 0.2em;
}

.studio-legacy .studio-link:hover {
	text-decoration-color: currentColor;
}

.studio-legacy .studio-paint,
.studio-legacy .studio-final > .container {
	padding: clamp(1rem, 3.2vw, 2.5rem);
	border-radius: 1rem;
	background:
		radial-gradient(60% 80% at 15% 20%, #ffe7a3, transparent 60%),
		radial-gradient(55% 70% at 85% 25%, #e3dcff, transparent 60%),
		radial-gradient(70% 80% at 60% 95%, #ffd9c2, transparent 65%),
		linear-gradient(135deg, #fff8e6, #f4f1ff);
}

.studio-legacy .studio-paint.studio-tone-sky,
.studio-legacy .studio-callout.studio-tone-sky {
	background: linear-gradient(140deg, var(--sky), #f5f9ff);
}

.studio-legacy .studio-paint.studio-tone-mint,
.studio-legacy .studio-callout.studio-tone-mint {
	background: linear-gradient(140deg, var(--mint), #f7fdf9);
}

.studio-legacy .studio-paint.studio-tone-lilac,
.studio-legacy .studio-callout.studio-tone-lilac {
	background: linear-gradient(140deg, var(--lilac), #f9f7ff);
}

.studio-legacy .studio-paint picture {
	display: block;
}

.studio-legacy .studio-paint img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: var(--paper);
	box-shadow: var(--studio-shadow);
}

.studio-legacy .studio-phone img {
	display: block;
	width: min(100%, 13rem);
	margin-inline: auto;
}

.studio-legacy .hero-media {
	margin: 3rem 0 0;
}

.studio-legacy .hero-media .image-frame {
	border: 0;
	overflow: visible;
	box-shadow: none;
}

.studio-legacy .studio-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(1.5rem, 5vw, 3.5rem);
}

.studio-legacy section:has(.studio-split .studio-paint) + section .studio-split:has(.studio-paint),
.studio-legacy section:has(.studio-split .studio-paint):has(+ section .studio-split .studio-paint) .studio-split:has(.studio-paint) {
	counter-increment: studio-step;
}

/* number image rows only when they form a run of two or more, so no lone "01" */
.studio-legacy section:has(.studio-split .studio-paint) + section .studio-split:has(.studio-paint) > :not(.studio-paint, :has(.studio-paint)) > :is(h2, h3):first-of-type::before,
.studio-legacy section:has(.studio-split .studio-paint):has(+ section .studio-split .studio-paint) .studio-split:has(.studio-paint) > :not(.studio-paint, :has(.studio-paint)) > :is(h2, h3):first-of-type::before {
	content: counter(studio-step, decimal-leading-zero);
	display: block;
	margin-bottom: 0.6rem;
	color: var(--studio-dim);
	font-size: 1.6rem;
	font-weight: 400;
}

.studio-legacy .studio-split.studio-reverse > :first-child {
	order: 1;
}

.studio-legacy .studio-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.studio-legacy .studio-grid-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-legacy :is(h2, p, .studio-intro) + .studio-grid {
	margin-top: 2rem;
}

.studio-legacy :is(.studio-card, .studio-callout, .studio-quote, .comparison-card, .comparison-callout, .comparison-review, .comparison-tile-grid article) {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: linear-gradient(140deg, var(--studio-card-color, var(--paper)), var(--paper));
}

.studio-legacy :is(.studio-grid, .comparison-grid, .comparison-tile-grid) > :where(:nth-child(4n + 1)) {
	--studio-card-color: var(--studio-warm);
}

.studio-legacy :is(.studio-grid, .comparison-grid, .comparison-tile-grid) > :where(:nth-child(4n + 2)) {
	--studio-card-color: var(--studio-sky);
}

.studio-legacy :is(.studio-grid, .comparison-grid, .comparison-tile-grid) > :where(:nth-child(4n + 3)) {
	--studio-card-color: var(--studio-mint);
}

.studio-legacy :is(.studio-grid, .comparison-grid, .comparison-tile-grid) > :where(:nth-child(4n)) {
	--studio-card-color: var(--studio-lilac);
}

.studio-legacy :is(.studio-callout, .studio-quote, .comparison-review) {
	--studio-card-color: var(--studio-warm);
}

.studio-legacy .comparison-callout {
	--studio-card-color: var(--studio-sky);
}

.studio-legacy .comparison-grid + .studio-callout {
	margin-top: 1.5rem;
}

.studio-legacy .studio-tone-warm {
	--studio-card-color: var(--studio-warm);
}

.studio-legacy .studio-tone-sky {
	--studio-card-color: var(--studio-sky);
}

.studio-legacy .studio-tone-mint {
	--studio-card-color: var(--studio-mint);
}

.studio-legacy .studio-tone-lilac {
	--studio-card-color: var(--studio-lilac);
}

.studio-legacy section:is(.studio-tone-warm, .studio-tone-sky, .studio-tone-mint, .studio-tone-lilac) {
	background: var(--studio-card-color);
}

.studio-legacy .studio-quote {
	margin: 0;
}

.studio-legacy .studio-quote blockquote {
	margin: 0;
	font-size: 1.15rem;
}

.studio-legacy .studio-quote figcaption {
	margin-top: 1rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.studio-legacy a.studio-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.studio-legacy :is(a.studio-card, .post-card:has(> a:only-child)):is(:hover, :focus-within) {
	border-color: var(--studio-dim);
	box-shadow: var(--studio-shadow);
}

.studio-legacy .studio-card :is(h2, h3),
.studio-legacy .studio-callout :is(h2, h3) {
	margin: 0 0 0.65rem;
}

.studio-legacy .studio-card p:last-child,
.studio-legacy .studio-callout p:last-child {
	margin-bottom: 0;
}

.studio-legacy .studio-card-icon {
	display: block;
	width: 5rem;
	height: auto;
	margin-bottom: 1rem;
}

.studio-legacy .studio-feature-card {
	height: 100%;
}

.studio-legacy .studio-feature-card .studio-paint {
	margin: 1rem 0;
	padding: clamp(0.75rem, 2vw, 1.25rem);
}

.studio-legacy .studio-feature-card h3 {
	font-size: 1.35rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.studio-legacy .problem-card .studio-link {
	display: inline-block;
}

.studio-legacy .studio-final {
	padding-inline: var(--studio-gutter);
}

.studio-legacy .studio-final > .container {
	width: 100%;
	padding: clamp(1.5rem, 5vw, 4rem);
}

.studio-legacy .studio-final h2 {
	margin: 0;
}

.studio-legacy .studio-final p {
	margin: 1rem 0 0 !important;
}

.studio-legacy :is(.studio-text .container, .text-section-body, .studio-prose, .studio-legal) {
	max-width: 46rem;
}

.studio-legacy .studio-prose {
	margin-inline: auto;
}

.studio-legacy :is(.studio-text, .studio-prose, .studio-legal) :is(p, li) {
	color: var(--studio-text);
}

.studio-legacy :is(.studio-text, .studio-prose, .studio-legal) :is(h2, h3):not(:first-child) {
	margin-top: 2rem;
}

.studio-legacy .studio-legal {
	overflow-wrap: anywhere;
}

.studio-legacy .studio-legal :is(p, li) {
	line-height: 1.75;
}

.studio-legacy :is(.studio-legal, .studio-prose) :is(ol, ul) {
	padding-inline-start: 1.5rem;
}

.studio-legacy :is(ol, ul).studio-grid {
	padding: 0;
	list-style: none;
}

.studio-legacy :is(.studio-legal, .studio-steps) li + li {
	margin-top: 0.65rem;
}

.studio-legacy .studio-steps li::marker {
	color: var(--muted);
	font-weight: 600;
}

.studio-legacy .studio-booking {
	max-width: 58rem;
	margin-inline: auto;
}

.studio-legacy .studio-table,
.studio-legacy .comparison-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 0.875rem;
	background: var(--paper);
}

.studio-legacy .studio-table table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
	text-align: left;
}

.studio-legacy .studio-table :is(th, td) {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.studio-legacy :is(.studio-table, .comparison-table-wrap) thead {
	background: var(--soft);
}

.studio-legacy .studio-table tbody tr:last-child > :is(th, td) {
	border-bottom: 0;
}

.studio-legacy .studio-faq {
	max-width: 52rem;
}

.studio-legacy .studio-faq details {
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--line);
}

.studio-legacy .studio-faq summary {
	cursor: pointer;
	font-weight: 600;
}

.studio-legacy .studio-faq details p {
	margin: 0.65rem 0 0;
	color: var(--studio-text);
}

.studio-legacy section.bg-blue {
	background: #fffdf5 !important;
}

.studio-legacy section.bg-dark {
	background: #f3f8fd !important;
}

.studio-legacy section.bg-black {
	background: #f7f5fc !important;
}

.studio-legacy .feature-section :is(picture, video) {
	max-width: 100%;
}

.studio-legacy .post-card {
	min-width: 0;
}

.studio-legacy .blog-listing-header {
	margin-bottom: 1.25rem;
	padding: clamp(1.5rem, 4vw, 3.5rem);
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: linear-gradient(130deg, var(--studio-warm), var(--studio-lilac));
}

.studio-legacy .blog-listing-header h1 {
	margin-top: 0;
}

.studio-legacy .post-feature-image img {
	border-radius: 1rem;
}

.studio-legacy .post-header {
	padding-top: var(--studio-space);
}

.studio-legacy .post-header .post-tag,
.studio-legacy .post-card-tag {
	border-radius: 62rem;
	letter-spacing: 0;
}

.studio-legacy .gh-content > aside {
	padding: clamp(1.25rem, 3vw, 2rem);
	margin-block: 2.5rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--studio-sky);
}

.studio-legacy .gh-content > aside h2:first-child {
	margin-top: 0;
}

.studio-legacy .gh-content > aside p:last-child {
	margin-bottom: 0;
}

.studio-legacy .gh-content :is(pre, table) {
	max-width: 100%;
	overflow: auto;
}

@media (max-width: 56rem) {
	.studio-legacy .gh-content table {
		display: block;
	}

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

	.studio-legacy .studio-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.studio-legacy .studio-split.studio-reverse > :first-child {
		order: 0;
	}
}

@media (max-width: 36rem) {
	.studio-legacy .studio-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.studio-legacy .hero-media {
		margin-top: 2.25rem;
	}
}
