/* New Math World: workbook page. Graph-paper ground, cover-black slabs, red-pen notes. */
:root {
	--paper: #FAFBFC;
	--grid: #E3E9EF;
	--ink: #15171B;
	--ink-2: #4A5260;
	--line: #D4DBE3;
	--red: #D3262F;
	--red-tint: #FCECEC;
	--yellow: #F4C20D;
	--slab: #15171B;
	--slab-fg: #F5F6F8;
	--slab-2: #C8CED8;
	--slab-line: #2B3038;
	--card: #FFFFFF;
	--display: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hand: "Caveat", "Comic Sans MS", cursive;
	--max: 1160px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background-color: var(--paper);
	background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 24px 24px;
	color: var(--ink);
	font: 400 17px/1.6 var(--body);
	overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
p, ul, ol { margin: 0; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding-inline: .1em; }
.stars { color: #E0A800; letter-spacing: .06em; }
.small { font-size: 14px; }

/* Buttons */
.btn, .prose .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5rem;
	font: 700 16px/1.1 var(--body); text-decoration: none;
	border-radius: 999px; padding: 15px 22px; border: 2px solid var(--ink);
	cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary, .prose .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 3px 0 var(--ink);
}
.btn-primary:hover, .prose .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); color: #fff;
}
.btn-ghost, .prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); }
.btn-ghost:hover, .prose .is-style-outline .wp-block-button__link:hover { background: var(--card); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* Top bar + header */
.topbar { background: var(--yellow); color: var(--ink); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .3rem .7rem; padding-block: .45rem; text-align: center; }
.topbar a { font-weight: 700; text-underline-offset: 3px; }
.topbar-hand { font: 700 1.25rem/1 var(--hand); color: var(--red); }
@media (max-width: 520px) { .topbar-hand { display: none; } }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 251, 252, .94); backdrop-filter: blur(8px);
	border-bottom: 2px solid var(--ink);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header > .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.brand-text { display: flex; flex-direction: column; gap: .1rem; }
.brand-name { font: 850 18px/1 var(--display); font-stretch: 82%; text-transform: uppercase; letter-spacing: .01em; }
.brand-tag { font: 700 1.05rem/1 var(--hand); color: var(--red); }
.site-nav { margin-left: auto; }
.site-nav ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav a {
	position: relative; display: inline-block; padding-block: .35rem;
	text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-2);
}
.site-nav a::after {
	content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 7px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5 C 25 1.5, 55 1.5, 98 4' fill='none' stroke='%23D3262F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--ink); }
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 10px; padding: 9px 8px; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav .wrap { padding-block: .5rem 1.4rem; }
.mobile-nav a { display: block; padding: .8rem 0; text-decoration: none; font: 850 1.6rem/1.1 var(--display); font-stretch: 82%; text-transform: uppercase; border-bottom: 1px dashed var(--line); }
.mobile-cta { display: grid; gap: .6rem; margin-top: 1.2rem; font-size: 14px; color: var(--ink-2); }
.mobile-cta .btn { justify-content: center; font: 700 16px/1.1 var(--body); text-transform: none; border-bottom: 2px solid var(--red); }
@media (max-width: 860px) {
	.site-nav { display: none; }
	.header-cta { margin-left: auto; }
	.nav-toggle { display: inline-flex; }
}
.brand-name, .header-cta { white-space: nowrap; }
.mobile-cta .btn { display: flex; }
@media (max-width: 440px) {
	.site-header > .wrap { gap: .75rem; }
	.brand-tag { display: none; }
	.brand img { width: 36px; height: 36px; }
	.brand-name { font-size: 15px; }
	.header-cta { padding: 9px 12px; font-size: 14px; }
}
@media (max-width: 380px) {
	.header-cta { display: none; }
	.nav-toggle { margin-left: auto; }
}

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 900; font-stretch: 78%; text-transform: uppercase; margin-top: 1rem; }
.hero h1 .red { color: var(--red); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; margin: 1.4rem 0 2rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.2rem; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.facts li { display: flex; gap: .5rem; align-items: center; }
.facts b { font: 800 1.35rem/1 var(--display); font-stretch: 80%; color: var(--ink); font-variant-numeric: tabular-nums; }
.cover { position: relative; justify-self: center; max-width: 380px; width: 100%; }
.cover img { display: block; width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: 0 30px 50px -18px rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.18); transform: rotate(-2.5deg); }
.note { position: absolute; font: 700 1.55rem/1 var(--hand); color: var(--red); white-space: nowrap; }
.note svg { display: block; overflow: visible; }
.note-a { right: -.5rem; top: -2.4rem; transform: rotate(4deg); }
@media (max-width: 860px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.cover { max-width: 240px; margin-top: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
	.cover img { animation: nmwSettle .9s cubic-bezier(.2,.7,.2,1) both; }
	@keyframes nmwSettle { from { transform: rotate(-8deg) translateY(14px); } to { transform: rotate(-2.5deg); } }
}

/* Sections */
.block { padding-block: clamp(3.5rem, 7vw, 6rem); }
.block.tight { padding-top: 0; }
.sec-head { display: grid; gap: .9rem; max-width: 44rem; margin-bottom: 2.6rem; }
.sec-head h2, .h-display { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 850; font-stretch: 80%; text-transform: uppercase; }
.sec-head p { color: var(--ink-2); max-width: 60ch; }
.mini-note { font-size: 14px; color: var(--ink-2); margin-top: 1.4rem; }

.slab { background: var(--slab); color: var(--slab-fg); }
.slab .eyebrow { color: var(--yellow); }
.slab .sec-head p { color: #B9C0CC; }
.worries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--slab-line); border: 1px solid var(--slab-line); }
.worry { background: var(--slab); padding: 1.8rem 1.5rem; display: grid; gap: .9rem; align-content: start; }
.worry-q { font: 800 1.4rem/1.15 var(--display); font-stretch: 85%; }
.worry p:not(.worry-q) { color: var(--slab-2); font-size: 16px; }
.worry .fix { font: 700 1.4rem/1.1 var(--hand); color: var(--yellow); }
@media (max-width: 1000px) { .worries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .worries { grid-template-columns: 1fr; } }

.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.step .n { font: 900 2.4rem/1 var(--display); font-stretch: 70%; color: var(--red); }
.step h3 { font-size: 1.25rem; font-weight: 800; font-stretch: 90%; }
.step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .method { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

.path { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.path .sec-head { margin-bottom: 1.6rem; }
@media (max-width: 860px) { .path { grid-template-columns: 1fr; } }
.topics { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.topics li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.topics strong { font: 800 1.15rem/1.2 var(--display); font-stretch: 90%; }
.topics span { font: 400 1.2rem/1.1 var(--hand); color: var(--ink-2); }
.topics li.algebra { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.topics li.algebra span { color: var(--yellow); }

/* Warm-up quiz */
.quiz { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 8px 8px 0 var(--ink); min-width: 0; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.dots { display: flex; gap: .4rem; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); display: block; }
.dots i.on { background: var(--ink); }
.dots i.ok { background: var(--red); border-color: var(--red); }
.qtext { font: 800 clamp(1.6rem, 3.4vw, 2.2rem)/1.1 var(--display); font-stretch: 85%; margin-bottom: 1.2rem; font-variant-numeric: tabular-nums; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.opt { font: 700 18px/1 var(--body); padding: 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt.right { border-color: var(--red); background: var(--red-tint); }
.opt.wrong { opacity: .55; text-decoration: line-through; }
.feedback { min-height: 3.4rem; margin-top: 1rem; color: var(--ink-2); }
.feedback .hand { font: 700 1.5rem var(--hand); color: var(--red); margin-right: .3rem; }
.quiz .next { margin-top: .4rem; }

/* Reviews */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; color: var(--ink-2); }
.rating b { font: 900 2.6rem/1 var(--display); font-stretch: 75%; color: var(--ink); }
.rating .stars { font-size: 1.4rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.review .pull { font: 800 1.3rem/1.2 var(--display); font-stretch: 88%; }
.review p:not(.pull) { color: var(--ink-2); font-size: 16px; }
.review footer { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: 14px; color: var(--ink-2); }
.review footer b { color: var(--ink); }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }

/* Freebies */
.free { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.freebie { border: 2px solid var(--ink); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; background: var(--card); align-content: start; }
.freebie.alt { background: var(--yellow); }
.freebie.alt p, .freebie.alt li { color: #3A3F48; }
.freebie h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 850; font-stretch: 80%; text-transform: uppercase; }
.freebie p { color: var(--ink-2); }
.formula { font: 700 15px/1.6 ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: .8rem 1rem; }
.checks { list-style: none; padding: 0; display: grid; gap: .35rem; font-size: 15px; }
.checks li::before { content: "\2713\00a0"; font-weight: 700; }
@media (max-width: 760px) { .free { grid-template-columns: 1fr; } }

/* Final CTA + footer */
.final-cta { background: var(--red); color: #fff; border-top: 2px solid var(--ink); }
.final-cta .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.final-cta h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; font-stretch: 75%; text-transform: uppercase; max-width: 18ch; }
.final-hand { font: 700 1.5rem/1 var(--hand); color: var(--yellow); margin-bottom: .4rem; }

.site-footer {
	background-color: var(--slab);
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 24px 24px;
	color: var(--slab-2); font-size: 15px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer ul a { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat left bottom / 0 2px; transition: background-size .2s ease, color .2s ease; padding-bottom: 2px; }
.site-footer ul a:hover { color: #fff; background-size: 100% 2px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { box-shadow: 0 0 0 2px #fff; }
.site-footer .brand-tag { color: var(--yellow); }
.footer-tag { max-width: 32ch; margin-top: 1rem; }
.footer-h { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.book-card {
	display: inline-flex; gap: .9rem; align-items: center; margin-top: 1.4rem;
	padding: .7rem 1rem .7rem .7rem; border: 1px solid var(--slab-line); border-radius: 14px; background: rgba(255,255,255,.03);
	transition: border-color .2s ease;
}
.book-card:hover { border-color: var(--yellow); }
.book-card img { width: 58px; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 8px 16px -6px rgba(0,0,0,.6); }
.book-card > span { display: grid; gap: .15rem; font-size: 13px; line-height: 1.3; }
.book-card b { color: #fff; font-size: 15px; }
.book-card em { font-style: normal; font-weight: 700; color: var(--yellow); }
.contact-list li { overflow-wrap: anywhere; }
.social { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--slab-line); color: #fff; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.social-note { font: 700 1.15rem/1 var(--hand); color: var(--slab-2); margin-left: .3rem; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; border-top: 1px solid var(--slab-line); padding-block: 1.2rem; font-size: 13px; color: #8B94A3; }
.legal-hand { font: 700 1.15rem/1 var(--hand); color: var(--yellow); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Regular pages (block editor content) */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.page-head h1, .prose h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; font-stretch: 78%; text-transform: uppercase; max-width: 22ch; }
.page-pad { padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose { max-width: 760px; padding-block: 2rem clamp(3rem, 6vw, 5rem); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 850; font-stretch: 82%; text-transform: uppercase; margin-top: 2.4rem; }
.prose h3 { font-size: 1.4rem; font-weight: 800; font-stretch: 90%; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a:not(.btn):not(.wp-block-button__link) { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose img { border-radius: 10px; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; }
.prose .wp-block-image figcaption { font-size: 14px; color: var(--ink-2); text-align: center; }
.prose .wp-block-embed iframe, .prose iframe { width: 100%; border: 0; }

/* Content panels usable in the editor via the "Additional CSS class" field */
.prose .nmw-card { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 8px 8px 0 var(--ink); }
.prose .nmw-card > * + * { margin-top: 1rem; }
.prose .nmw-steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.prose .nmw-step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.4rem; }
.prose .nmw-step > * + * { margin-top: .6rem; }
.prose .nmw-step h3 { margin-top: 0; }
.prose .nmw-step h3 .num { color: var(--red); margin-right: .4rem; }
.prose .nmw-note { font: 700 1.5rem/1.2 var(--hand); color: var(--red); }
.prose .nmw-media { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; }
.prose .nmw-media img { box-shadow: 0 20px 36px -16px rgba(0,0,0,.45); border-radius: 4px 8px 8px 4px; }
@media (max-width: 620px) { .prose .nmw-media { grid-template-columns: 1fr; } .prose .nmw-media img { max-width: 200px; } }

/* Thrive Leads forms inside pages: keep their own styling, just give them room */
.prose .tve-leads-shortcode, .prose .tve_flt { margin-top: 1.4rem; }

/* Migrated landing pages */
.prose figure { margin: 0; }
.prose .lead-p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); }
.prose .nmw-media { margin-block: 1.6rem 2.4rem; }
.prose .nmw-media-text > * + * { margin-top: .8rem; }
.prose .nmw-media-text h2, .prose .nmw-media-text h3 { margin-top: 0; }
.prose .nmw-card h2 { margin-top: 0; }
.prose .nmw-card h3 + p { margin-top: .2rem; }
.prose .nmw-steps { margin-block: 1.6rem; }
.prose .wp-block-button__link { text-decoration: none; }

/* Classic-theme group blocks wrap children in .wp-block-group__inner-container */
.prose .wp-block-group__inner-container > * + * { margin-top: 1rem; }
.prose .nmw-media { display: block; }
.prose .nmw-media > .wp-block-group__inner-container { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; }
.prose .nmw-steps { display: block; }
.prose .nmw-steps > .wp-block-group__inner-container { display: grid; gap: 1rem; }
.prose .nmw-media > .wp-block-group__inner-container > * + *,
.prose .nmw-steps > .wp-block-group__inner-container > * + * { margin-top: 0; }
.prose .nmw-media-text .wp-block-group__inner-container > * + * { margin-top: .8rem; }
.prose .nmw-step .wp-block-group__inner-container > * + * { margin-top: .6rem; }
@media (max-width: 620px) {
	.prose .nmw-media > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.prose .nmw-media img { max-width: 200px; }
}

/* Thrive Leads forms: match the theme */
.prose .tve-leads-shortcode,
.prose .tve-leads-shortcode p,
.prose .tve-leads-shortcode span,
.prose .tve-leads-shortcode label,
.prose .tve-leads-shortcode input,
.prose .tve-leads-shortcode a { font-family: var(--body) !important; }
.prose .tve-leads-shortcode h1, .prose .tve-leads-shortcode h2, .prose .tve-leads-shortcode h3, .prose .tve-leads-shortcode h4 {
	font-family: var(--display) !important; font-stretch: 82%; text-transform: uppercase; color: var(--ink) !important;
}
.prose .tve-leads-shortcode .thrv_lead_generation_container,
.prose .tve-leads-shortcode .tve-content-box-background,
.prose .tve-leads-shortcode .tve-leads-conversion-object .thrv_contentbox_shortcode { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.prose .tve-leads-shortcode input[type="text"],
.prose .tve-leads-shortcode input[type="email"] {
	border: 2px solid var(--line) !important; border-radius: 12px !important; background: var(--paper) !important; color: var(--ink) !important; font-size: 16px !important;
}
.prose .tve-leads-shortcode input[type="text"]:focus,
.prose .tve-leads-shortcode input[type="email"]:focus { border-color: var(--ink) !important; outline: none; }
.prose .tve-leads-shortcode .tve-form-button .tcb-button-link {
	background: var(--red) !important; border: 2px solid var(--red) !important; border-radius: 999px !important;
	box-shadow: 0 3px 0 var(--ink) !important; color: #fff !important; transition: transform .15s ease, box-shadow .15s ease;
}
.prose .tve-leads-shortcode .tve-form-button .tcb-button-link:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink) !important; }
.prose .tve-leads-shortcode .tve-form-button .tcb-button-link span { color: #fff !important; font-weight: 700 !important; }

/* Thrive Leads uses ID-weighted !important rules; :not(#a):not(#b) adds matching weight */
body #main .prose .tve-leads-shortcode :is(p, strong, em, span, label, input, a, div):not(#nmw-a):not(#nmw-b):not(#nmw-c) { font-family: var(--body) !important; }
body #main .prose .tve-leads-shortcode .thrv_text_element p > strong:not(#nmw-a):not(#nmw-b):not(#nmw-c),
body #main .prose .tve-leads-shortcode .thrv_text_element p > strong span:not(#nmw-a):not(#nmw-b):not(#nmw-c) {
	font-family: var(--display) !important; font-stretch: 82%; text-transform: uppercase; font-weight: 850 !important; color: var(--ink) !important; letter-spacing: 0 !important;
}
body #main .prose .tve-leads-shortcode .tcb-button-link:not(#nmw-a):not(#nmw-b):not(#nmw-c) {
	background: var(--red) !important; background-color: var(--red) !important; border-color: var(--red) !important;
}
body #main .prose .tve-leads-shortcode .tcb-button-link:not(#nmw-a):not(#nmw-b):not(#nmw-c)::before,
body #main .prose .tve-leads-shortcode .tcb-button-link:not(#nmw-a):not(#nmw-b):not(#nmw-c)::after { background: transparent !important; background-color: transparent !important; }
body #main .prose .tve-leads-shortcode .tcb-button-link:not(#nmw-a):not(#nmw-b):not(#nmw-c) .tcb-button-text { font-family: var(--body) !important; letter-spacing: .02em !important; }

/* Thrive Leads injects "body, .tcb-plain-text { font-family: Muli }" after this file */
html body { font-family: var(--body); }

/* Sign-up form (Mailchimp) */
.nmw-signup { display: grid; gap: 1rem; margin-top: 1.2rem; }
.nmw-signup-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.nmw-field { display: grid; gap: .35rem; }
.nmw-field span { font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.nmw-field input {
	font: 400 17px/1.3 var(--body); color: var(--ink); background: var(--paper);
	border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%;
}
.nmw-field input:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.nmw-signup .btn { justify-content: center; width: 100%; font-size: 17px; padding-block: 17px; }
.nmw-signup-note { font-size: 14px; color: var(--ink-2); text-align: center; }
.nmw-signup-msg { border-radius: 12px; padding: .8rem 1rem; font-weight: 700; }
.nmw-signup-msg.is-ok { background: #E7F6EC; color: #145C2C; }
.nmw-signup-msg.is-error { background: var(--red-tint); color: #8A1219; }
.nmw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
