/**
 * Phone layout for the RevOps rv- pages, under 768px only.
 *
 * assets/js/global/rv-mobile.js adds main.rv-m and main.rv-m--<page> on the
 * pages that have opted in, marks long card groups as .rv-m-swipe rows, and
 * adds .rv-m-nav arrows after the longest ones. Every rule is scoped to
 * main.rv-m, so desktop and pages that have not opted in are untouched.
 */

@media (max-width: 767px) {

	/* ---------- swipe rows ---------- */
	/* Page stylesheets set their grids through three classes
	   (.rv-root .rv-section .rv-grid); the swipe rows outrank them. */
	main.rv-m .rv-m-swipe.rv-m-swipe.rv-m-swipe {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: var(--rv-space-12);
		overflow-x: auto;
		overflow-y: hidden; /* vertical swipes pass through to the page */
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: 0;
		margin-bottom: 0;
		padding: 0;
		border: 0;
		background: none;
	}
	main.rv-m .rv-m-swipe::-webkit-scrollbar { display: none; }
	main.rv-m .rv-m-swipe:focus-visible {
		outline: 2px solid var(--rv-green);
		outline-offset: 3px;
	}
	/* Off-screen slides never reach the reveal observer, so show them. */
	main.rv-m .rv-m-swipe.rv-m-swipe.rv-m-swipe > * {
		flex: 0 0 86%;
		min-width: 0;
		margin: 0;
		scroll-snap-align: start;
		opacity: 1;
		transform: none;
	}
	main.rv-m .rv-m-swipe.rv-m-swipe.rv-m-swipe--full > * { flex-basis: 100%; }
	/* rv-mobile.js sets the height of rows whose slides differ. */
	main.rv-m .rv-m-swipe--full { transition: height 200ms ease; }
	/* Rows differ in height; each slide keeps its own. */
	/* Full-width slides keep their own height; rv-mobile.js sizes the row
	   to the slide in view. */
	main.rv-m .rv-m-swipe.rv-m-swipe.rv-m-swipe--full { align-items: flex-start; }

	/* List rows become cards. */
	main.rv-m .rv-m-swipe > :is(.rv-gap-row, .rv-stepcards-card, .rv-svc-row, .rv-eng-brief, .rv-kpi) {
		padding: var(--rv-space-20);
		border: 1px solid var(--rv-hair-dark);
	}

	/* ---------- arrows and count under a full-width slider ---------- */
	main.rv-m .rv-m-nav {
		display: flex;
		align-items: center;
		gap: var(--rv-space-8);
		margin-top: var(--rv-space-12);
		margin-bottom: var(--rv-space-24);
	}
	main.rv-m .rv-m-count {
		margin-right: auto;
		font-family: var(--rv-font-mono, monospace);
		font-size: var(--rv-text-12);
		opacity: 0.7;
	}
	main.rv-m .rv-m-arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
		background: none;
		color: inherit;
		font-size: var(--rv-text-18);
		line-height: 1;
		cursor: pointer;
	}
	main.rv-m .rv-m-arrow:disabled { opacity: 0.3; cursor: default; }
	main.rv-m .rv-m-arrow:focus-visible {
		outline: 2px solid var(--rv-green);
		outline-offset: 3px;
	}

	/* ---------- hero: higher, smaller title, copy and calls to action only ---------- */
	main.rv-m section.rv-rh-hero { padding-top: var(--rv-space-32) !important; }
	main.rv-m .rv-rh-grid { padding-top: 0; padding-bottom: 0; }
	/* lp-type.css sets hero h1s through .rv-root [class*="rv-hero"] h1. */
	/* Several RevOps pages size the hero title and button with !important. */
	main.rv-m.rv-root h1:is(.rv-rh-h1, .rv-display, .rv-hs-h1) { font-size: var(--rv-text-28) !important; }
	main.rv-m.rv-root :is(.rv-rh-sub, [class*="rv-hero"] .rv-lede, .rv-hs-sub) { font-size: var(--rv-text-16) !important; }
	main.rv-m .rv-rh-meta { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
	/* One column: drop the column indent and dividers. */
	main.rv-m .rv-rh-meta .rv-rh-mchip {
		padding-inline: 0;
		border-left: 0;
		border-right: 0;
	}
	main.rv-m .rv-rh-figwrap { display: none; }
	main.rv-m .rv-rh-left { padding-bottom: var(--rv-space-24); }

	/* ---------- solid buttons: 12 / 20, 14px, square, 48px ---------- */
	main.rv-m.rv-root :is(.rv-rh-cta, .rv-cta--solid, .rv-hs-cta) {
		padding: var(--rv-space-12) var(--rv-space-20) !important;
		font-size: var(--rv-text-14) !important;
		border: 1px solid transparent;
		border-radius: 0;
	}
	main.rv-m :is(.rv-rh-cta span, .rv-cta--solid .rv-cta-arrow) { font-size: inherit; line-height: 1; }

	/* ---------- logo strip ---------- */
	main.rv-m :is(.rv-logos, .rv-clients) { padding: var(--rv-space-12) var(--rv-space-20); }
	main.rv-m .rv-logos-static { gap: var(--rv-space-8) var(--rv-space-16); }

	/* ---------- section rhythm: 48 top, 32 bottom, 24 sides ---------- */
	main.rv-m.rv-root > section:not([class*="rv-hero"], .rv-logos, .rv-clients) {
		padding: var(--rv-space-48) var(--rv-space-24) var(--rv-space-32);
	}
	/* Some pages set .rv-method and .rv-close padding with !important. */
	main.rv-m.rv-root > section:is(.rv-method, .rv-close) { padding: var(--rv-space-48) var(--rv-space-24) var(--rv-space-32) !important; }
	main.rv-m.rv-root > section.rv-shift.rv-ins { padding-block: var(--rv-space-16) var(--rv-space-32); }
	main.rv-m.rv-root > section.rv-testify { padding-top: var(--rv-space-32); }
	main.rv-m .rv-section-head { margin-bottom: var(--rv-space-32); }
	/* Section intros at body size, as the hero copy. */
	main.rv-m :is(.rv-section-lede, .rv-gap-note, .rv-eng-lede) { font-size: var(--rv-text-16); }

	/* ---------- the gap: arrows close under the slides ---------- */
	main.rv-m .rv-gap-shell { row-gap: 0; }
	main.rv-m .rv-gap-aside { margin-bottom: var(--rv-space-32); }

	/* ---------- the shift ---------- */
	main.rv-m .rv-ins-card-media { display: none; }
	main.rv-m .rv-ins .rv-ins-card {
		display: flex;
		padding: var(--rv-space-20);
		border: 1px solid var(--rv-hair-dark);
	}
	main.rv-m .rv-shift .rv-ins-head .rv-h2 { margin-top: 0; }

	/* ---------- methodology ---------- */
	main.rv-m .rv-svc { padding: var(--rv-space-24) 0 0; }
	main.rv-m .rv-svc-figbox { display: none; }
	main.rv-m .rv-svc-title { font-size: var(--rv-text-22); line-height: 1.2; }

	/* ---------- who it's for ---------- */
	main.rv-m .rv-eng-tag { display: none; }
	main.rv-m .rv-eng-brief-head { display: flex; }

	/* ---------- case studies: count and arrows under the slider ---------- */
	main.rv-m .rv-cs,
	main.rv-m.rv-root > .rv-cs { padding: var(--rv-space-48) var(--rv-space-20); }
	main.rv-m .rv-cs-rail { display: none; }
	main.rv-m .rv-cs-viewport { touch-action: pan-y; }
	main.rv-m .rv-cs-inner { display: flex; flex-direction: column; }
	main.rv-m .rv-cs-head { display: contents; }
	main.rv-m .rv-cs-head > :first-child { margin-bottom: var(--rv-space-20); }
	main.rv-m .rv-cs-nav { order: 1; margin-top: var(--rv-space-12); }
	main.rv-m .rv-cs-count { margin-right: auto; }

	/* ---------- maturity ---------- */
	main.rv-m .rv-mat .rv-matx-num { display: none; }
	main.rv-m .rv-matx-code { flex: none; }
	main.rv-m .rv-matx-rail { padding-top: 0; gap: 0; }

	/* ---------- deliverables ---------- */
	main.rv-m .rv-del-note { display: none; }

	/* ---------- case ---------- */
	main.rv-m .rv-folder-tab { display: none; }
	main.rv-m .rv-case .rv-quote.rv-quote { font-size: var(--rv-text-16); line-height: 1.5; }
	main.rv-m .rv-quote-attr { margin-top: 0; padding-bottom: var(--rv-space-16); }

	/* ---------- outcomes ---------- */
	main.rv-m .rv-out-head { gap: 0; }

	/* ---------- close ---------- */
	main.rv-m .rv-close > svg { display: none; }
	main.rv-m section.rv-close :is(h2, .rv-display.rv-display--sm) { font-size: var(--rv-text-28); line-height: 1.1; }
	main.rv-m .rv-close p { font-size: var(--rv-text-16); }

	/* ---------- FAQ ---------- */
	main.rv-m .rv-faq-item summary {
		grid-template-columns: 24px minmax(0, 1fr) 24px;
		column-gap: var(--rv-space-12);
		padding-block: var(--rv-space-12);
		font-size: var(--rv-text-16);
		line-height: 1.3;
	}
	main.rv-m .rv-faq-q { font-size: var(--rv-text-16); line-height: 1.3; }
}

/* RevOps hub, second pass. Phones only. */
@media (max-width: 767px) {
	main.rv-m .rv-method-head-row { margin-bottom: var(--rv-space-24); }
	main.rv-m .rv-break { display: none; }

	/* ---------- testimonials ---------- */
	main.rv-m .rv-t-index,
	main.rv-m .rv-testimonial::before { display: none; }
	/* Off-scale: 6px as requested (tokens step 0 / 8). */
	main.rv-m .rv-testimonial { padding-block: 6px; }
	/* Off-scale: 15px as requested (tokens step 14 / 16). */
	main.rv-m .rv-t-quote { font-size: 15px; }

	/* ---------- cost ---------- */
	/* Off-scale: 24px as requested (tokens step 22 / 28). */
	main.rv-m #cost-h { font-size: 24px; }
	main.rv-m .rv-cost-step { row-gap: 0; }

	/* ---------- numbers a step down (cost and outcomes) ---------- */
	main.rv-m .rv-num.rv-num { font-size: var(--rv-text-34); }
	main.rv-m .rv-kpi-suffix { font-size: var(--rv-text-22); }

	/* ---------- deliverables: one panel, arrows under it (rv-mobile.js) ---------- */
	main.rv-m.rv-root > section.rv-deliverables { padding-top: var(--rv-space-32); }
	main.rv-m .rv-delstep-grid { gap: 0; }
	main.rv-m .rv-delstep-side,
	main.rv-m .rv-delstep-nav { display: none; }
	main.rv-m .rv-delstep-detail { padding: var(--rv-space-20); }
	main.rv-m .rv-m-tag {
		display: block;
		margin-bottom: var(--rv-space-8);
		font-family: var(--rv-font-mono, monospace);
		font-size: var(--rv-text-12);
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--rv-green);
	}
	main.rv-m .rv-delstep-detail-title { font-size: var(--rv-text-22); line-height: 1.2; }
	main.rv-m .rv-delstep-detail-body { font-size: var(--rv-text-16); }

	/* ---------- case ---------- */
	main.rv-m .rv-case-head { margin: 0 0 var(--rv-space-24); }
	main.rv-m .rv-folder { margin-top: 0; padding-block: var(--rv-space-24); }
	main.rv-m .rv-case-metric { display: none; }
}

/* Shared helpers for the RevOps sub-pages (rv-mobile.js). Phones only. */
@media (max-width: 767px) {
	/* Tab lists replaced by the arrows under their panels. */
	main.rv-m .rv-m-tabs-hidden.rv-m-tabs-hidden { display: none; }

	/* Long copy folded behind Read more. */
	main.rv-m .rv-m-clamp:not(.is-open) {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 5;
		overflow: hidden;
	}
	main.rv-m .rv-m-listclamp:not(.is-open) > .rv-m-extra { display: none; }
	main.rv-m .rv-m-more {
		display: inline-block;
		margin-top: var(--rv-space-8);
		padding: 0;
		border: 0;
		background: none;
		color: inherit;
		font-family: var(--rv-font-mono, monospace);
		font-size: var(--rv-text-12);
		letter-spacing: 0.14em;
		text-transform: uppercase;
		text-decoration: underline;
		text-underline-offset: 4px;
		cursor: pointer;
	}

	/* Method steps: the sticky stage counter and the spine belong to the
	   desktop scroll; the slider has its own count. */
	main.rv-m :is(.rv-steps-side, .rv-steps-spine, .rv-step-dot, .rv-mbp-side, .rv-mbp-spine, .rv-mbp-station) { display: none; }
	main.rv-m .rv-mbp-shell { gap: 0; }
	main.rv-m .rv-steps { gap: 0; }
	main.rv-m .rv-step { padding-bottom: 0; }
	main.rv-m .rv-step-card { padding: var(--rv-space-20); }

	/* Deliverables record: the side card repeats the panel title. */
	main.rv-m .rv-rec { gap: 0; }
	main.rv-m .rv-rec-side { display: none; }

	/* Case study carousel: the decorative client slab goes. */
	main.rv-m .rv-cases-right { display: none; }
	main.rv-m .rv-cases-title { font-size: var(--rv-text-22); padding-block: var(--rv-space-8); margin-bottom: var(--rv-space-12); }
	/* The clamped case text sits right above its Read more. */
	main.rv-m .rv-cases-body.rv-m-clamp { margin-bottom: 0; }
	main.rv-m .rv-cases-body + .rv-m-more { margin-bottom: var(--rv-space-24); }
	main.rv-m .rv-cases-metric-v { font-size: var(--rv-text-18); }
	main.rv-m .rv-cases-metrics { margin-bottom: 0; }

	/* Who it's for: personas start at the top of the slide; the meta line goes. */
	main.rv-m .rv-whofor .rv-persona { padding-top: 0; }
	main.rv-m .rv-whofor-meta { display: none; }

	/* Testimonials: the big quote marks go. */
	main.rv-m :is(.rv-t-mark, .rv-testi-mark, .rv-tm-mark) { display: none; }
}

/* Forecasting & reporting. Phones only. */
@media (max-width: 767px) {
	main.rv-m--forecasting-reporting {
		/* lp-type sets the hero's padding-block-start with a vh clamp. */
		& section.rv-hero { padding: var(--rv-space-32) var(--rv-space-24) 0 !important; }
		& .rv-heroG { display: none; }
		& .rv-hero-credibility { border-top: 0; }

		/* The hero lines are masked spans with a desktop line height; at
		   28px they overlapped. */
		& .rv-display .rv-mask { line-height: 1.1; }
		/* Models: the big count repeats the slider count. */
		& .rv-models-count { display: none; }

		& .rv-cred-list { gap: var(--rv-space-12); }
		& .rv-cost-stat { margin-top: 0; padding-top: 0; }
		/* 30px is off the type scale (28 / 34); kept as asked. */
		& .rv-dxh2 { font-size: 30px; }
		/* The method section already carries the 24px side padding. */
		& .rv-method .rv-dxwrap { padding-inline: 0; }
		& #method-h { padding-top: var(--rv-space-16); }
		/* Models: the marker pseudo-elements go; the card fills the slide. */
		& .rv-models-item { display: flex; }
		& .rv-models-item::before, & .rv-models-item::after { display: none; }
		& .rv-seq { margin-top: var(--rv-space-32); }
		& .rv-leadmagnet { padding: var(--rv-space-24); }
		& .rv-whofor .rv-notfor { margin-top: 0; }
		& .rv-kpistack.rv-m-swipe { margin-top: var(--rv-space-32); }
		/* Metrics: a hairline between the slides. */
		& .rv-metrics-grid.rv-m-swipe > * {
			padding-inline-end: var(--rv-space-12);
			border-inline-end: 1px solid var(--rv-hair-dark);
		}
		& .rv-kpi { padding: var(--rv-space-20); }
		& .rv-kpi-body { padding-inline: var(--rv-space-8); }
		& .rv-case .rv-folder-body { gap: 0; }
		& .rv-case .rv-case-metric { gap: var(--rv-space-12); }
		& .rv-case .rv-case-metric-num { font-size: var(--rv-text-28); line-height: 1; }
		& .rv-case-metric-num .rv-num { font-size: inherit; }
		& .rv-case .rv-case-metric-label { font-size: var(--rv-text-14); }
	}
}

/* HubSpot administration. Phones only. */
@media (max-width: 767px) {
	main.rv-m--hubspot-administration {
		& section.rv-hero-struct { margin-top: 0; padding-top: var(--rv-space-24); padding-bottom: var(--rv-space-32); }
		& .rv-partner-badge { display: none; }
		& .rv-partner-sub { margin-bottom: 0; }
		& .rv-eng-inner { padding: 0; }
		& .rv-section-head { gap: 0; }
		/* Diagnosis: framed slides without the bottom motif. */
		& .rv-diag-grid.rv-m-swipe { margin-top: var(--rv-space-32); }
		& .rv-diag-grid > * { padding: var(--rv-space-20); border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
		& .rv-diag-motif { display: none; }
		& .rv-mat-card { border-color: color-mix(in srgb, currentColor 25%, transparent); }
		/* 26px and 25px are off the type scale (22 / 28); kept as asked. */
		& .rv-shift-side h3 { font-size: 26px; }
		& .rv-mcta-h { font-size: 25px; }
		& .rv-csx-intro { margin: 0; }
		& .rv-csx-grid > * { border: 1px solid var(--rv-hair-dark); }
		& .rv-kpi { padding: 0 !important; }
		& .rv-testi .rv-case-head { padding-bottom: var(--rv-space-24); }
		& .rv-testi-quote { font-size: var(--rv-text-16); margin-top: 0; }
		& .rv-testi-top { display: none; }
		&.rv-root > section.rv-why { padding-top: var(--rv-space-32); }
		& .rv-why-meta { display: none; }
		& .rv-diffpanel-num { display: none; }
		/* FAQ on ink: each question framed. */
		& .rv-faq-item { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
		& .rv-faq-item + .rv-faq-item { border-top: 0; }
		& .rv-faq-item summary { padding-inline: var(--rv-space-12); }
		/* Solid buttons further down, at the shared 48px size. */
		& :is(.rv-mcta-btn, .rv-kpi-btn) {
			padding: var(--rv-space-12) var(--rv-space-20) !important;
			font-size: var(--rv-text-14) !important;
		}
		/* Before / after become two slides; the divider between them goes. */
		& .rv-shift-divider { display: none; }
		& .rv-mbp-row { padding: var(--rv-space-20); border: 1px solid var(--rv-hair-dark); }
		& .rv-objrow { padding: var(--rv-space-20); border: 1px solid var(--rv-hair-dark); }
		/* Why DevriX: narrower number column. */
		& .rv-diffpanel-list > li { grid-template-columns: var(--rv-space-16) minmax(0, 1fr); }
	}
}

/* Tech stack. Phones only. */
@media (max-width: 767px) {
	main.rv-m--tech-stack {
		& .rv-hero-grid2 { padding-top: var(--rv-space-24); }
		& .rv-hero-meta { border-top: 0; }
		/* Hero buttons: smaller, and both as wide as the wider one. */
		& .rv-hero-ctas { display: grid; justify-content: start; gap: var(--rv-space-12); }
		& .rv-hero-ctas > * { justify-content: center; }
		&.rv-root .rv-cta {
			padding: var(--rv-space-10) var(--rv-space-16) !important;
			font-size: var(--rv-text-14) !important;
			gap: var(--rv-space-8);
		}

		/* Leakage. */
		& #leak-h { margin-top: var(--rv-space-12); }
		& .rv-stair-flag { font-size: var(--rv-text-10); }
		/* Index column width, not a spacing value. */
		& .rv-stair-idx { width: 15px; }
		& .rv-stair-stat-num { font-size: var(--rv-text-44); line-height: 1; }
		& .rv-leak-foot { display: none; }
		& .rv-ladder.rv-m-swipe { margin-top: var(--rv-space-32); }
		& .rv-section-lede { margin-top: 0 !important; }
		& :is(.rv-delsplit-rule, .rv-delsplit-stat) { display: none; }

		& .rv-obj h3 { font-size: var(--rv-text-20); }
		/* Why DevriX: 18px marker column, body-size text. */
		& .rv-diff-row { grid-template-columns: var(--rv-space-18) minmax(0, 1fr); font-size: var(--rv-text-16); }
		& .rv-diff-row > * { font-size: inherit; }
	}
}

/* RevOps auditing: a dx- page (main.dx-root), so the rv- rules above do
   not reach it; the same phone look, on its own blocks. Phones only. */
@media (max-width: 767px) {
	main.rv-m--revops-auditing {
		/* Hero: higher, smaller title, copy and calls to action only. */
		& section.dx-rh { padding-top: var(--rv-space-32); }
		& .dx-rh-grid { padding-top: 0; padding-bottom: 0; }
		& h1.dx-rh-h1 { font-size: var(--rv-text-28) !important; }
		& .dx-rh-sub { font-size: var(--rv-text-16) !important; }
		& .dx-rh-figwrap { display: none; }
		& .dx-rh-meta { border-top: 0; }
		& .dx-rh-logos { padding: var(--rv-space-12) var(--rv-space-20); }
		& .dx-rh-logo-row { gap: var(--rv-space-8) var(--rv-space-16); font-size: var(--rv-text-14); }
		& .dx-rh-logo-row > * { font-size: inherit; }

		/* Solid buttons: 12 / 20, 14px, square, 48px. */
		& .dx-btn:not(.dx-btn--ghost) {
			padding: var(--rv-space-12) var(--rv-space-20) !important;
			font-size: var(--rv-text-14) !important;
			border-radius: 0;
		}

		/* Section rhythm: 48 top, 32 bottom, 24 sides. */
		& > section.dx-sec { padding: var(--rv-space-48) 0 var(--rv-space-32) !important; }
		& > section.dx-rh-statement { padding: var(--rv-space-48) var(--rv-space-24) var(--rv-space-32); }
		& .dx-wrap { padding-inline: var(--rv-space-24); }
		& .dx-sechead { margin-bottom: var(--rv-space-32); }
		& .dx-seclede { font-size: var(--rv-text-16); }

		/* Slides become bordered cards. */
		& .rv-m-swipe > :is(.dx-fit-col, .dx-leak-list > li, .dx-mat-card, .dx-ins-card, .dx-del2-card, .dx-out2-row, .dx-why-row) {
			padding: var(--rv-space-20);
			border: 1px solid var(--rv-hair-dark);
		}
		& .dx-sec--ink .rv-m-swipe > * { border-color: color-mix(in srgb, currentColor 25%, transparent); }

		/* Method: the sticky stage counter and the spine belong to the
		   desktop scroll. */
		& :is(.dx-steps-side, .dx-steps-spine, .dx-step-dot) { display: none; }
		& .dx-steps { gap: 0; }
		/* The step card carries the frame, so the slide itself has none. */
		& .rv-m-swipe > .dx-step { padding: 0; border: 0; }
		& .dx-step-card { padding: var(--rv-space-20); }

		/* The leak funnel: one column that may shrink below its content. */
		& .dx-funnel { grid-template-columns: minmax(0, 1fr); }

		/* Foundations: the staircase trace behind the pillars goes. */
		& .dx-crawl { display: none; }

		/* The shift: the cards' images go. */
		& .dx-ins-card-media { display: none; }

		/* 24px is off the type scale (22 / 28); kept as asked. */
		& .dx-case-title { font-size: 24px; padding-block: var(--rv-space-8); }
		/* Client name words share a line; the label stays above them. */
		& .dx-case-client { flex-flow: row wrap; column-gap: var(--rv-space-8); }
		& .dx-case-client > span { flex-basis: 100%; }

		/* Testimonials: the big quote mark goes. */
		& .dx-testi-mark { display: none; }

		/* Why DevriX: narrower marker column. */
		& .dx-diff-row { grid-template-columns: var(--rv-space-24) minmax(0, 1fr); }

		/* FAQ and close, as on the other RevOps pages. */
		/* rv-core sizes the close title through .rv-root section.rv-close …. */
		& .dx-close h2 { font-size: var(--rv-text-28) !important; line-height: 1.1; }
		& .dx-faq-item summary {
			grid-template-columns: 24px minmax(0, 1fr) 24px;
			padding-block: var(--rv-space-16);
			font-size: var(--rv-text-16);
		}

		/* Lead magnet: the decorative report art goes. */
		& :is(.dx-magnet-art, .dx-magnet-trust) { display: none; }
		& .dx-close p { font-size: var(--rv-text-16); }
	}
}

/* Sales performance and customer health keep their own mobile layouts
   (has-mobile) and load only this stylesheet, not rv-mobile.js, so they
   have no main.rv-m; these rules are scoped by the page template's body
   class instead. Phones only. */
@media (max-width: 767px) {
	body:is(.page-template-sales-performance, .page-template-customer-health) main.rv-root {
		/* Solid buttons at the shared 48px size. */
		& :is(.rv-hs-cta, .rv-rh-cta, .rv-cta--solid) {
			padding: var(--rv-space-12) var(--rv-space-20) !important;
			font-size: var(--rv-text-14) !important;
			border-radius: 0;
		}

		/* Compact FAQ, as on the other RevOps pages. */
		& .rv-faq-item summary {
			column-gap: var(--rv-space-12);
			padding-block: var(--rv-space-12);
			line-height: 1.3;
		}
		& .rv-faq-item summary > * { font-size: var(--rv-text-16); line-height: 1.3; }
	}

	body.page-template-sales-performance main.rv-root {
		/* Width of the stage number column, not a spacing value. */
		& .rv-leakstair-num { min-width: 25px; }
		& .rv-matx-num { font-size: var(--rv-text-34); line-height: 1; }
		& .rv-matx-title { font-size: var(--rv-text-22); }
		& .rv-matx-panel { padding: var(--rv-space-20); }
	}

	body.page-template-customer-health main.rv-root {
		/* Hero: title, intro and logo strip as on the other RevOps pages. */
		& section.rv-rh-hero { padding-top: var(--rv-space-32) !important; }
		& .rv-rh-h1 { font-size: var(--rv-text-28) !important; }
		& .rv-rh-sub { font-size: var(--rv-text-16) !important; }
		& .rv-clients { padding-block: var(--rv-space-12) var(--rv-space-20); }

		/* Score bands: four short cards, two to a row. */
		& .rv-hscore-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rv-space-12); }
		& .rv-hscore-band { padding: var(--rv-space-16); }
		& .rv-hscore-band h3 { font-size: var(--rv-text-20); }
	}
}

/* RevOps auditing, second pass. Phones only. */
@media (max-width: 767px) {
	main.rv-m--revops-auditing {
		/* Off-scale: 27px as requested (tokens step 22 / 28). The first pass
		   sets it with !important. */
		& h1#hero-h { font-size: 27px !important; }

		/* The gap. */
		& .dx-gap-tag { display: none; }
		& .dx-gap-main .dx-body { font-size: var(--rv-text-16); }

		/* Who this is for: no column header. */
		& .dx-fit-col header { display: none; }

		/* Stage by stage: number beside its label. */
		& .dx-bigstat {
			display: grid;
			grid-template-columns: auto minmax(0, 1fr);
			column-gap: var(--rv-space-16);
			align-items: center;
		}
		& .dx-bigstat-num { font-size: var(--rv-text-44); line-height: 1; }
		& .rv-m-swipe > .dx-leak-list > li,
		& .dx-leak-list.rv-m-swipe > li { padding: 0; }

		/* Maturity model. */
		& .dx-mat-card { gap: var(--rv-space-8); }
		& .dx-mat-card .dx-body { font-size: var(--rv-text-16); }

		/* What we audit. */
		& .dx-prow-name { font-size: var(--rv-text-16); margin-bottom: 4px !important; }
		& .dx-prow-arrow { width: 32px; height: 32px; font-size: var(--rv-text-14); }
		& .dx-prow-head { margin-top: 0; }
		/* Off-scale: 28px as requested (spacing steps 24 / 32). */
		& .dx-pstack { gap: 28px; }

		/* Lead magnet. */
		& .dx-magnet { padding: var(--rv-space-24); }
		& .dx-magnet-p { margin: var(--rv-space-12) 0; }
		& .dx-magnet-submit { width: 100%; justify-content: center; text-align: center; }

		/* The promise. */
		& .dx-ins-card { display: flex; }
		& .dx-ins-head { margin-bottom: var(--rv-space-24); }
		& .dx-ins-head .dx-kicker { margin-bottom: 0; }

		/* Section rhythm sets 48px top with !important. */
		& > section:is(#deliverables, #cases).dx-sec { padding-top: var(--rv-space-24) !important; }
		& > section#book-audit { padding-top: var(--rv-space-32); }
		/* Off-scale: 11px as requested (the type scale starts at 12). */
		& #book-audit .dx-kicker { font-size: 11px; }
		& #del-h br { display: none; }

		/* Outcomes and Why DevriX: a firmer card edge. */
		/* Doubled class: the shared card rule above weighs .dx-leak-list > li. */
		& .rv-m-swipe > :is(.dx-out2-row.dx-out2-row, .dx-why-row.dx-why-row) { border-color: var(--rv-hair-dark-strong); }
		/* On a dark band the light hairline, at its stronger step. */
		& .dx-sec--ink .rv-m-swipe > :is(.dx-out2-row.dx-out2-row, .dx-why-row.dx-why-row) { border-color: var(--rv-hair-strong); }

		/* Close: the solid button at the 48px size the others use. */
		& .dx-close-cta {
			padding: var(--rv-space-12) var(--rv-space-20);
			font-size: var(--rv-text-14);
		}
	}
}

/* RevOps hub and service pages: the auditing page's second pass, carried
   over where the rv- pages have the same block. Scoped by body class, as
   sales performance and customer health have no main.rv-m. Phones only. */
@media (max-width: 767px) {
	body:is(.page-template-revenue-operations, .page-template-forecasting-reporting, .page-template-sales-performance, .page-template-tech-stack, .page-template-hubspot-administration, .page-template-customer-health) main.rv-root {
		/* Off-scale: 27px, as on auditing (tokens step 22 / 28). */
		& h1#hero-h { font-size: 27px !important; }

		/* Deliverables and cases sit closer to the section above; the close
		   starts higher. */
		& > section:is(#deliverables, #cases, #case-study) { padding-top: var(--rv-space-24) !important; }
		& > section#book-audit { padding-top: var(--rv-space-32) !important; }
		/* Off-scale: 11px, as on auditing (the type scale starts at 12). */
		& #book-audit :is(.rv-label, .rv-close-eyebrow) { font-size: 11px; }

		/* Outcomes and Why DevriX: a firmer card edge. */
		& :is(#outcomes, #proof) .rv-kpi.rv-kpi { border-color: var(--rv-hair-dark-strong); }
		& #why .rv-objrow.rv-objrow { border-color: var(--rv-hair-dark-strong); }
	}
}

/* All seven RevOps pages: the hero title had a 0.98 to 1.04 line height;
   1.2 on the title and on the spans inside it, some of which set their
   own. Phones only. */
@media (max-width: 767px) {
	body:is(.page-template-revenue-operations, .page-template-revops-auditing, .page-template-forecasting-reporting, .page-template-sales-performance, .page-template-tech-stack, .page-template-hubspot-administration, .page-template-customer-health) main :is(h1#hero-h, h1#hero-h *) {
		line-height: 1.2 !important;
	}
	/* rv-core pulls each masked line up 0.25em to tighten the desktop
	   title, and tech stack pads it back down; at 1.2 the line height alone
	   spaces the lines. */
	body:is(.page-template-revenue-operations, .page-template-revops-auditing, .page-template-forecasting-reporting, .page-template-sales-performance, .page-template-tech-stack, .page-template-hubspot-administration, .page-template-customer-health) main h1#hero-h .rv-mask {
		margin-bottom: 0;
		padding-block: 0;
	}
}

/* Sales performance, carried to tech stack, HubSpot administration and
   customer health where they have the block. Phones only. */
@media (max-width: 767px) {
	body:is(.page-template-sales-performance, .page-template-tech-stack, .page-template-hubspot-administration, .page-template-customer-health) main.rv-root {
		& > section.rv-promise { padding-bottom: var(--rv-space-32) !important; }
		& :is(#method, #methodology) .rv-mbp-copy { font-size: var(--rv-text-16); }
		& .rv-stk-panel-name { font-size: var(--rv-text-22); }
		& .rv-stk-panel-body { font-size: var(--rv-text-16); }
		& #audit-h { margin-top: 0; }
		& .rv-section-lede { margin-top: 0 !important; }
		& > section.rv-outcomes { padding-top: var(--rv-space-24) !important; }
		& :is(.rv-kpi-num .rv-num, .rv-kpi-num > span:first-child) { font-size: var(--rv-text-44) !important; }
		& .rv-kpi-label { font-size: var(--rv-text-16); }
		& .rv-kpistack { padding-bottom: 0; }
		& .rv-cstudy-title { font-size: var(--rv-text-20); }
		& .rv-tcard { gap: 0; }
		& #book-audit .rv-lede { font-size: var(--rv-text-16); }
	}
}
