/*
 * The per-service detail bands: eight signature modules, the fit band and the FAQ.
 *
 * Elementor lays these pages out, so this sheet carries only what the builder
 * cannot express: a drawn SVG path, a rail that fills along its own length, a
 * staggered node chain, a native disclosure. Everything reads --sonipat-* tokens,
 * which is what lets a header or band colour repainted in the Customizer flow into
 * a module nobody re-styled.
 *
 * Resting state rule: every module below is complete in CSS. The scroll
 * choreography in assets/js/cinematic-animations.js animates *from* something back
 * to the value written here, so a blocked CDN, a dead script or a reduced-motion
 * preference leaves a finished page rather than a half-drawn diagram.
 */

.mx {
	--mx-gap: clamp(1rem, 2vw, 1.6rem);
	--mx-line: var(--sonipat-border);
	color: var(--sonipat-text);
	position: relative;
	width: 100%;
}

/* --- shared piece parts --------------------------------------------------- */

/* Only ever present while a reveal tween is running (see initServiceModules in
   cinematic-animations.js). The hover lifts below transition `transform`, which
   is the same property the tween writes, so the two have to take turns. */
[data-mx-revealing] {
	transition-property: border-color, box-shadow, background-color !important;
}

.mx-item-tag {
	background: var(--sonipat-primary-soft);
	border-radius: 999px;
	color: var(--sonipat-primary-hover);
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	padding: 0.32rem 0.8rem;
	text-transform: uppercase;
	width: -moz-max-content;
	width: max-content;
}

.mx-item-title {
	color: var(--sonipat-text);
	font-size: clamp(1.02rem, 1.35vw, 1.2rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	margin: 0;
}

.mx-item-body {
	color: var(--sonipat-text-muted);
	font-size: 0.97rem;
	line-height: 1.72;
	margin: 0;
}

.mx-strip-label {
	color: var(--sonipat-text-faint);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	margin: clamp(1.6rem, 3vw, 2.4rem) 0 0.9rem;
	text-transform: uppercase;
}

.mx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-chip {
	background: var(--sonipat-chip);
	border: 1px solid var(--mx-line);
	border-radius: 999px;
	color: var(--sonipat-text-muted);
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.4;
	padding: 0.5rem 1rem;
}

/* --- 1 · ladder (SEO) — four stages climbing a drawn curve ---------------- */

.mx--ladder {
	padding-top: 0.5rem;
}

.mx-ladder-curve {
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 2.2rem;
}

.mx-ladder-curve svg {
	display: block;
	height: 220px;
	overflow: visible;
	width: 100%;
}

.mx-ladder-guide {
	fill: none;
	stroke: var(--mx-line);
	stroke-width: 2;
}

.mx-ladder-line {
	fill: none;
	stroke: var(--sonipat-primary);
	stroke-linecap: round;
	stroke-width: 3;
}

.mx-ladder-rungs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--mx-gap);
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.mx-rung {
	align-items: flex-start;
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: clamp(1.1rem, 2vw, 1.5rem);
	position: relative;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--sonipat-ease);
}

.mx-rung:hover {
	border-color: var(--sonipat-border-strong);
	box-shadow: var(--sonipat-shadow);
	transform: translateY(-4px);
}

/* The node sits on the curve's landing line for its column, which is why the
   curve is drawn at all: it is the only part of the band that says "these four
   are one climb" rather than four cards in a row. */
.mx-rung-node {
	background: var(--sonipat-surface);
	border: 2px solid var(--sonipat-primary);
	border-radius: 999px;
	height: 14px;
	left: clamp(1.1rem, 2vw, 1.5rem);
	position: absolute;
	top: -28px;
	width: 14px;
}

.mx-rung-step {
	color: var(--sonipat-text-faint);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* --- 2 · ledger (paid ads) — who owns each decision ----------------------- */

.mx--ledger {
	display: grid;
	gap: 0;
	grid-template-columns: 26px minmax(0, 1fr);
}

.mx-ledger-rail {
	background: var(--mx-line);
	border-radius: 999px;
	grid-row: 1;
	position: relative;
	width: 3px;
}

/* The rail is the scroll position made visible: JS scales this fill from 0 to
   its full length while the band travels, and CSS leaves it full. */
.mx-ledger-rail i {
	background: linear-gradient(180deg, var(--sonipat-primary), var(--sonipat-primary-hover));
	border-radius: 999px;
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	transform-origin: top center;
	width: 100%;
}

.mx-ledger-rows {
	display: grid;
	gap: 0.7rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-row {
	align-items: start;
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	display: grid;
	gap: 0.35rem 1.1rem;
	grid-template-columns: 168px minmax(0, 1fr);
	padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.1rem, 2vw, 1.6rem);
	position: relative;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.mx-row:hover {
	border-color: var(--sonipat-border-strong);
}

.mx-pill {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	width: -moz-max-content;
	width: max-content;
}

.mx-row .mx-pill {
	color: var(--sonipat-primary-hover);
}

/* The two rows the owner approves are the ones a reader has to slow down on, so
   they get the lime fill the theme reserves for a decision point. */
.mx-row[data-mx-approve] {
	background: var(--sonipat-wash-strong);
}

.mx-row[data-mx-approve] .mx-pill {
	background: var(--sonipat-secondary);
	border-radius: 999px;
	color: var(--sonipat-accent-ink);
	padding: 0.3rem 0.8rem;
	width: -moz-max-content;
	width: max-content;
}

.mx-row-copy {
	display: grid;
	gap: 0.45rem;
}

/* --- 3 · grammar (social) — one story, four channel grammars -------------- */

.mx-gram-grid {
	display: grid;
	gap: var(--mx-gap);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-gram {
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	display: grid;
	gap: 0.55rem;
	overflow: hidden;
	padding: clamp(1.2rem, 2.4vw, 1.8rem);
	position: relative;
	transition: box-shadow 0.35s ease, transform 0.35s var(--sonipat-ease);
}

/* The channel name is painted twice on purpose: once as the small label the
   reader scans, once as the oversized watermark that makes the four cards
   unmistakably about *where* the post goes. */
.mx-gram::after {
	color: var(--sonipat-primary-soft);
	content: attr(data-mx-channel);
	font-size: clamp(3.4rem, 8vw, 6.4rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	position: absolute;
	right: 0.2rem;
	text-transform: uppercase;
	top: -0.6rem;
	-webkit-user-select: none;
	user-select: none;
	z-index: 0;
}

.mx-gram > * {
	position: relative;
	z-index: 1;
}

.mx-gram:hover {
	box-shadow: var(--sonipat-shadow-lift);
	transform: translateY(-5px);
}

.mx-gram-tag {
	color: var(--sonipat-primary-hover);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mx-grammar-marquee {
	margin-top: 0.2rem;
}

/* --- 4 · flow (email) — the journeys in the order they fire --------------- */

.mx--flow {
	position: relative;
}

.mx-flow-nodes {
	display: grid;
	gap: var(--mx-gap);
	grid-template-columns: repeat(5, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

.mx-node {
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	display: grid;
	gap: 0.5rem;
	padding: clamp(1rem, 1.6vw, 1.3rem);
	transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.mx-node:hover {
	border-color: var(--sonipat-primary);
	box-shadow: var(--sonipat-shadow);
}

.mx-node-index {
	color: var(--sonipat-text-faint);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.mx-node-trigger {
	color: var(--sonipat-primary-hover);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* The line runs behind the row of nodes at the height their indices sit on, so
   the chain reads as a sequence even though the five cards are separate. Only
   drawn while the row really is one row. */
.mx-flow-line {
	display: none;
	height: 3px;
	left: 4%;
	position: absolute;
	right: 4%;
	top: 34px;
}

.mx-flow-line i {
	background: linear-gradient(90deg, var(--sonipat-primary), var(--sonipat-secondary));
	border-radius: 999px;
	display: block;
	height: 100%;
	transform-origin: left center;
	width: 100%;
}

@media only screen and (min-width: 1181px) {
	.mx-flow-line {
		display: block;
	}
}

/* --- 5 · build (web dev) — a staircase of weeks, then the budget ---------- */

.mx-weeks {
	display: grid;
	gap: var(--mx-gap);
	grid-template-columns: repeat(5, minmax(0, 1fr));
	list-style: none;
	margin: 0 0 clamp(1.6rem, 3vw, 2.6rem);
	padding: 0;
}

.mx-week {
	align-self: end;
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-bottom: 3px solid var(--sonipat-primary);
	border-radius: var(--sonipat-radius);
	display: grid;
	gap: 0.5rem;
	margin-top: calc(28px - var(--mx-step) * 5.6px);
	padding: clamp(1rem, 1.6vw, 1.35rem);
	transition: box-shadow 0.3s ease, transform 0.3s var(--sonipat-ease);
}

.mx-week:hover {
	box-shadow: var(--sonipat-shadow);
	transform: translateY(-4px);
}

.mx-budget {
	background: var(--sonipat-wash-strong);
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	overflow: hidden;
	padding: clamp(1.1rem, 2.2vw, 1.7rem);
}

.mx-budget-head {
	color: var(--sonipat-text-faint);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin: 0 0 0.9rem;
	text-transform: uppercase;
}

.mx-budget-rows {
	display: grid;
	margin: 0;
}

.mx-budget-row {
	align-items: center;
	border-top: 1px solid var(--mx-line);
	display: grid;
	gap: 0.4rem 1.2rem;
	grid-template-columns: minmax(0, 1fr) 120px minmax(0, 200px);
	padding: 0.85rem 0;
}

.mx-budget-row:first-child {
	border-top: 0;
}

.mx-budget-row dt {
	color: var(--sonipat-text);
	font-size: 0.98rem;
	font-weight: 600;
}

.mx-budget-target {
	color: var(--sonipat-primary-hover);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.mx-budget-source {
	color: var(--sonipat-text-faint);
	font-size: 0.84rem;
	margin: 0;
}

/* --- 6 · annot (UI/UX) — six questions over an abstract screen ------------ */

.mx--annot {
	display: grid;
	gap: clamp(1.4rem, 3vw, 2.6rem);
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.mx-annot-stage {
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-radius: calc(var(--sonipat-radius) + 6px);
	min-height: 340px;
	padding: clamp(1rem, 2vw, 1.5rem);
	position: sticky;
	top: 96px;
}

.mx-annot-screen {
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius-sm);
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	height: 100%;
	min-height: 280px;
	padding: 12px;
	position: relative;
}

.mx-annot-bar {
	background: var(--sonipat-primary-soft);
	border-radius: 6px;
	grid-column: span 4;
	height: 22px;
}

.mx-annot-block {
	background: var(--sonipat-wash);
	border-radius: 6px;
}

.mx-annot-block--a {
	grid-column: span 2;
	min-height: 74px;
}

.mx-annot-block--b {
	grid-column: span 2;
	min-height: 74px;
}

.mx-annot-block--c {
	grid-column: span 3;
	min-height: 96px;
}

.mx-annot-block--d {
	background: var(--sonipat-secondary);
	min-height: 96px;
	opacity: 0.55;
}

/* Callout dots parked on the abstract screen. They are decoration keyed to the
   list beside them, so they carry no text a screen reader would have to match
   against the real headings. */
.mx-annot-dots {
	inset: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	pointer-events: none;
}

.mx-annot-dot {
	position: absolute;
}

.mx-annot-dot span {
	align-items: center;
	background: var(--sonipat-primary);
	border-radius: 999px;
	box-shadow: 0 0 0 6px var(--sonipat-primary-soft);
	color: #fff;
	display: flex;
	font-size: 0.7rem;
	font-weight: 800;
	height: 26px;
	justify-content: center;
	line-height: 1;
	width: 26px;
}

.mx-annot-dot:nth-child(1) { left: 6%; top: 8%; }
.mx-annot-dot:nth-child(2) { left: 48%; top: 22%; }
.mx-annot-dot:nth-child(3) { left: 12%; top: 44%; }
.mx-annot-dot:nth-child(4) { left: 76%; top: 38%; }
.mx-annot-dot:nth-child(5) { left: 30%; top: 70%; }
.mx-annot-dot:nth-child(6) { left: 84%; top: 82%; }

.mx-annot-list {
	display: grid;
	gap: 0.7rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-annot-list .mx-item {
	border-bottom: 1px solid var(--mx-line);
	display: grid;
	gap: 0.35rem;
	padding: 0.9rem 0;
}

/* --- 7 · map (ERP) — modules around the record they share ----------------- */

.mx--map {
	display: grid;
	gap: var(--mx-gap);
}

/* Painted on the brand, not on --sonipat-text: the hub is a dark chip in a light
   band, and the ink token flips to near-white inside a dark scope, which would
   have put white text on a white hub. */
.mx-map-hub {
	background: var(--sonipat-primary);
	border-radius: var(--sonipat-radius);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	font-weight: 700;
	gap: 0.5rem 1rem;
	justify-content: center;
	letter-spacing: 0.14em;
	margin: 0;
	padding: 0.9rem 1.4rem;
	text-align: center;
	text-transform: uppercase;
}

.mx-map-hub b {
	color: var(--sonipat-secondary);
	font-weight: 800;
}

.mx-map-grid {
	display: grid;
	gap: var(--mx-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-tile {
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	display: grid;
	gap: 0.5rem;
	background: var(--sonipat-surface);
	overflow: hidden;
	padding: clamp(1.1rem, 2vw, 1.5rem);
	position: relative;
	transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

/* Each tile is wired back to the hub with the rail it grows from, which is the
   only place the "one record" claim is actually drawn rather than asserted. */
.mx-tile-rail {
	background: linear-gradient(90deg, var(--sonipat-primary), transparent);
	height: 2px;
	left: 0;
	position: absolute;
	top: 0;
	transform-origin: left center;
	width: 100%;
}

.mx-tile:hover {
	border-color: var(--sonipat-primary);
	box-shadow: var(--sonipat-shadow);
}

/* --- 8 · stack (cloud) — five layers, and how a change crosses them ------- */

.mx-layers {
	display: grid;
	gap: 0.6rem;
	list-style: none;
	margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
	padding: 0;
}

.mx-layer {
	align-items: start;
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	display: grid;
	gap: 0.4rem 1.2rem;
	grid-template-columns: 130px minmax(0, 1fr);
	/* Each layer sits slightly further in than the one above it, so the stack
	   reads top-down the way the request actually travels. */
	margin-left: calc((var(--mx-layer) - 1) * 1.1%);
	padding: clamp(1rem, 1.8vw, 1.4rem);
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.mx-layer:hover {
	background: var(--sonipat-surface-hover);
	border-color: var(--sonipat-border-strong);
}

.mx-layer-tag {
	color: var(--sonipat-text-faint);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	padding-top: 0.2rem;
	text-transform: uppercase;
}

.mx-layer-copy {
	display: grid;
	gap: 0.45rem;
}

.mx-pipeline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-pipe {
	align-items: center;
	background: var(--sonipat-chip);
	border: 1px solid var(--mx-line);
	border-radius: 999px;
	color: var(--sonipat-text-muted);
	display: flex;
	font-size: 0.84rem;
	font-weight: 700;
	gap: 0.55rem;
	padding: 0.5rem 1rem;
	position: relative;
}

.mx-pipe + .mx-pipe::before {
	color: var(--sonipat-primary);
	content: "\2192";
	font-size: 0.9rem;
	left: -0.72rem;
	position: absolute;
}

/* --- fit band ------------------------------------------------------------- */

.mx-fit-list {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-fit-item {
	align-items: start;
	color: var(--sonipat-text-muted);
	display: grid;
	font-size: 0.97rem;
	gap: 0.7rem;
	grid-template-columns: 22px minmax(0, 1fr);
	line-height: 1.65;
}

.mx-fit-mark {
	border-radius: 999px;
	height: 22px;
	position: relative;
	width: 22px;
}

.mx-fit-list--yes .mx-fit-mark {
	background: var(--sonipat-primary-soft);
}

.mx-fit-list--no .mx-fit-mark {
	background: var(--sonipat-wash-strong);
	border: 1px solid var(--mx-line);
}

/* The two marks are drawn from the same two pseudo-elements so the yes/no pair
   cannot drift apart in weight or size. */
.mx-fit-mark::before,
.mx-fit-mark::after {
	background: var(--sonipat-primary-hover);
	border-radius: 2px;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 10px;
}

.mx-fit-mark::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.mx-fit-mark::after {
	transform: translate(-50%, -50%) rotate(-45deg);
	width: 5px;
}

.mx-fit-list--yes .mx-fit-mark::before {
	transform: translate(-50%, -50%) rotate(-45deg);
	width: 6px;
}

.mx-fit-list--yes .mx-fit-mark::after {
	transform: translate(-58%, -62%) rotate(40deg);
	width: 11px;
}

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

.mx--faq {
	display: grid;
	gap: 0.65rem;
}

.mx-faq-item {
	background: var(--sonipat-surface);
	border: 1px solid var(--mx-line);
	border-radius: var(--sonipat-radius);
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mx-faq-item[open] {
	border-color: var(--sonipat-border-strong);
	box-shadow: var(--sonipat-shadow);
}

.mx-faq-q {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: clamp(0.98rem, 1.3vw, 1.08rem);
	font-weight: 700;
	gap: 1rem;
	justify-content: space-between;
	list-style: none;
	padding: clamp(1rem, 1.8vw, 1.3rem) clamp(1.1rem, 2vw, 1.5rem);
	position: relative;
}

.mx-faq-q::-webkit-details-marker {
	display: none;
}

.mx-faq-q:focus-visible {
	outline: 2px solid var(--sonipat-primary);
	outline-offset: -3px;
}

.mx-faq-icon {
	border: 1px solid var(--sonipat-border-strong);
	border-radius: 999px;
	flex: none;
	height: 26px;
	position: relative;
	transition: background-color 0.25s ease, transform 0.3s var(--sonipat-ease);
	width: 26px;
}

/* The plus is two bars, one drawn by each pseudo-element; the parent rotates 45
   degrees on open, which turns it into the minus a reader expects. */
.mx-faq-icon::before,
.mx-faq-icon::after {
	background: var(--sonipat-text);
	border-radius: 2px;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 10px;
}

.mx-faq-icon::before {
	transform: translate(-50%, -50%);
}

.mx-faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.mx-faq-item[open] .mx-faq-icon {
	background: var(--sonipat-primary);
	border-color: var(--sonipat-primary);
	transform: rotate(45deg);
}

.mx-faq-item[open] .mx-faq-icon::before,
.mx-faq-item[open] .mx-faq-icon::after {
	background: #fff;
}

/* Grid-rows rather than max-height: the answer has no known pixel height, and a
   max-height transition is either jumpy or clipped. */
.mx-faq-a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.32s var(--sonipat-ease);
}

.mx-faq-item[open] .mx-faq-a {
	grid-template-rows: 1fr;
}

.mx-faq-a > p {
	color: var(--sonipat-text-muted);
	font-size: 0.97rem;
	line-height: 1.72;
	margin: 0;
	overflow: hidden;
	padding: 0 clamp(1.1rem, 2vw, 1.5rem);
	transition: padding-block 0.32s var(--sonipat-ease);
}

.mx-faq-item[open] .mx-faq-a > p {
	padding-block: 0 1.35rem;
}

/* --- responsive ----------------------------------------------------------- */

@media only screen and (max-width: 1180px) {
	.mx-flow-nodes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.mx-ladder-rungs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* The curve is fitted to a four-across row; with two it would cross the
	   cards instead of climbing them. */
	.mx-ladder-curve {
		display: none;
	}
}

@media only screen and (max-width: 960px) {
	.mx--annot {
		grid-template-columns: minmax(0, 1fr);
	}

	.mx-annot-stage {
		position: relative;
		top: auto;
	}

	.mx-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.mx-layer {
		grid-template-columns: minmax(0, 1fr);
	}

	.mx-layer-tag {
		padding-top: 0;
	}

	/* The offset is a desktop depth cue; on a narrow column it just eats
	   horizontal space and makes the last layer look indented by mistake. */
	.mx-layer {
		margin-left: 0;
	}

	.mx-budget-row {
		grid-template-columns: minmax(0, 1fr) 96px;
	}

	.mx-budget-source {
		grid-column: 1 / -1;
	}
}

@media only screen and (max-width: 767px) {
	.mx-gram-grid,
	.mx-map-grid,
	.mx-ladder-rungs,
	.mx-flow-nodes,
	.mx-weeks {
		grid-template-columns: minmax(0, 1fr);
	}

	.mx-week {
		margin-top: 0;
	}

	.mx-annot-stage {
		display: none;
	}

	.mx-ledger-rail {
		display: none;
	}

	.mx--ledger {
		grid-template-columns: minmax(0, 1fr);
	}

	.mx-rung-node {
		display: none;
	}

	.mx-pipe + .mx-pipe::before {
		display: none;
	}
}
