/**
 * The Time Machine™ — Educational Retirement Explorer
 * Brand: ink #122E30 · accent #C83A3A · teal #0E6B6F · cream #F6F1E6
 */

.rr-tm-app {
	--rr-tm-ink: #122e30;
	--rr-tm-heading: #2f3a44;
	--rr-tm-accent: #c83a3a;
	--rr-tm-teal: #0e6b6f;
	--rr-tm-bg: #f6f1e6;
	--rr-tm-band: #ede4d3;
	--rr-tm-surface: #ffffff;
	--rr-tm-muted: #5a6b6c;
	--rr-tm-line: rgba(18, 46, 48, 0.14);
	--rr-tm-teal-soft: rgba(14, 107, 111, 0.12);
	--rr-tm-accent-soft: rgba(200, 58, 58, 0.12);
	--rr-tm-primary: #1bb89e;
	--rr-tm-primary-text: #ffffff;
	--rr-tm-primary-hover: #168f7c;
	--rr-tm-ghost-border: #e4dbc8;
	--rr-tm-font: "Karla", "Segoe UI", sans-serif;
	--rr-tm-font-display: "Fraunces", Georgia, serif;
	--rr-tm-display-weight: 600;
	--rr-tm-display-tracking: -0.02em;
	--rr-tm-shadow-card: 0 8px 28px rgba(0, 0, 0, 0.08);
	--rr-tm-card-bg: #ffffff;
	--rr-tm-card-border: 1px solid #e2e2e2;
	--rr-tm-card-radius: 14px;
	--rr-tm-card-padding: 28px;
	--rr-tm-card-gap: 24px;
	--rr-tm-share-text: #f5f1ea;
	--rr-tm-chart-stroke: 2.5px;
	--rr-tm-chart-marker: 6px;
	--rr-tm-chart-ring: 2.5px;

	box-sizing: border-box;
	max-width: 920px;
	margin: 0 auto;
	padding: 2rem 1.5rem 1.5rem;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--rr-tm-ink);
	font-family: var(--rr-tm-font);
	line-height: 1.5;
}

.rr-tm-app *,
.rr-tm-app *::before,
.rr-tm-app *::after {
	box-sizing: border-box;
}

/* ——— Page hero swap (lives on Divi .rr-res-hero, not inside the app) ———
 * Every visual rule under .rr-res-hero--results is gated on
 * --rr-tm-results-hero actually being set (PHP emits it only when the
 * art filter returns a URL). With no URL, the class must do nothing —
 * original hero renders untouched (§7.2).
 */
.rr-res-hero img,
.rr-res-hero .et_pb_image_wrap {
	transition: opacity 0.4s ease;
}

.rr-res-hero--results {
	/* Only establish a containing block when a swap layer may paint.
	   position is a no-op for layout size; hide/show is fully gated below. */
	position: relative;
}

.rr-res-hero--results::after {
	content: "";
	position: absolute;
	inset: 0;
	left: 0;
	right: 0;
	width: 100%;
	/* !important: theme .rr-res-hero::after is more specific for background-image */
	background-image: var(--rr-tm-results-hero) !important;
	background-size: cover;
	background-position: center;
	/* --rr-tm-hero-show is set to 1 only with a real URL; default 0 = no swap */
	opacity: var(--rr-tm-hero-show, 0);
	pointer-events: none;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.rr-res-hero--results img,
.rr-res-hero--results .et_pb_image_wrap {
	/* Without --rr-tm-hero-show, calc is 1 − 0 = 1 — original stays untouched */
	opacity: calc(1 - var(--rr-tm-hero-show, 0));
}

/* ——— Header ——— */
.rr-tm__header {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--rr-tm-line);
	animation: rr-tm-rise 0.45s ease both;
}

.rr-tm__brand {
	margin: 0 0 0.4rem;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rr-tm-teal);
}

.rr-tm__title {
	margin: 0 0 0.25rem;
	font-family: var(--rr-tm-font-display);
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: var(--rr-tm-display-weight);
	letter-spacing: var(--rr-tm-display-tracking);
	line-height: 1.1;
	color: var(--rr-tm-ink);
}

.rr-tm__subtitle {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--rr-tm-teal);
}

.rr-tm__tagline {
	margin: 0;
	max-width: 34rem;
	font-size: 1rem;
	color: var(--rr-tm-muted);
}

.rr-tm-app .rr-tm__intro {
	max-width: 60ch;
	margin: 0;
	color: var(--rr-tm-muted);
	font-size: 0.98rem;
	line-height: 1.55;
}

/* ——— Sections ——— */
.rr-tm__explorer,
.rr-tm__whatif,
.rr-tm__compare,
.rr-tm__learn {
	margin-bottom: var(--rr-tm-card-gap);
	animation: rr-tm-rise 0.45s ease both;
}

.rr-tm__whatif {
	animation-delay: 0.06s;
}

.rr-tm__compare {
	animation-delay: 0.1s;
}

.rr-tm__learn {
	animation-delay: 0.14s;
}

.rr-tm__section-title {
	margin: 0 0 0.35rem;
	font-family: var(--rr-tm-font-display);
	font-size: 1.45rem;
	font-weight: var(--rr-tm-display-weight);
	letter-spacing: var(--rr-tm-display-tracking);
	color: var(--rr-tm-heading);
}

.rr-tm__section-lede,
.rr-tm__block-lede {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	color: var(--rr-tm-muted);
}

.rr-tm__block-title {
	margin: 0 0 0.4rem;
	font-family: var(--rr-tm-font-display);
	font-size: 1.15rem;
	font-weight: var(--rr-tm-display-weight);
	letter-spacing: var(--rr-tm-display-tracking);
	color: var(--rr-tm-heading);
}

/* ——— Form ——— */
.rr-tm__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem 1rem;
	margin-bottom: 1.15rem;
}

.rr-tm__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.rr-tm__field--wide {
	grid-column: 1 / -1;
}

.rr-tm__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--rr-tm-ink);
}

.rr-tm__hint {
	font-size: 14px;
	color: var(--rr-tm-muted);
}

.rr-tm__input-wrap {
	display: flex;
	align-items: stretch;
	background: var(--rr-tm-surface);
	border: 1.5px solid var(--rr-tm-line);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rr-tm__input-wrap:focus-within {
	border-color: var(--rr-tm-teal);
	box-shadow: 0 0 0 3px var(--rr-tm-teal-soft);
}

.rr-tm__affix {
	display: flex;
	align-items: center;
	padding: 0 0.65rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--rr-tm-muted);
	background: rgba(18, 46, 48, 0.04);
	user-select: none;
}

.rr-tm__input {
	width: 100%;
	min-width: 0;
	padding: 0.7rem 0.75rem;
	border: 0;
	background: transparent;
	color: var(--rr-tm-ink);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	outline: none;
	-moz-appearance: textfield;
}

.rr-tm__input::-webkit-outer-spin-button,
.rr-tm__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rr-tm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 0;
}

.rr-tm__support {
	margin: 0.85rem 0 1.35rem;
	font-size: 14px;
	color: var(--rr-tm-muted);
}

.rr-tm__btn {
	appearance: none;
	border: 1.5px solid transparent;
	padding: 0.75rem 1.2rem;
	min-height: 44px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rr-tm__btn--primary {
	background: var(--rr-tm-primary);
	color: var(--rr-tm-primary-text);
	border-color: var(--rr-tm-primary);
}

.rr-tm__btn--primary:hover,
.rr-tm__btn--primary:focus-visible {
	background: var(--rr-tm-primary-hover);
	border-color: var(--rr-tm-primary-hover);
	color: var(--rr-tm-primary-text);
}

.rr-tm__btn--ghost {
	background: transparent;
	color: var(--rr-tm-ink);
	border-color: var(--rr-tm-ghost-border);
}

.rr-tm__btn--ghost:hover {
	border-color: var(--rr-tm-teal);
	color: var(--rr-tm-teal);
}

/* ——— Results ——— */
.rr-tm__results {
	display: flex;
	flex-direction: column;
	gap: var(--rr-tm-card-gap);
}

/* Gated until first submit (§5.1). Class on the results container only;
   sibling result sections follow via :has so markup/ids stay unchanged. */
.rr-tm__results--pending {
	display: none;
}

/* Inputs stowed while results are showing (class toggle, not DOM removal). */
.rr-tm__form--stowed {
	display: none;
}

.rr-tm-app:has(.rr-tm__form--stowed) .rr-tm__explorer > .rr-tm__section-title {
	display: none;
}

.rr-tm__actions--again {
	margin: 0 0 var(--rr-tm-card-gap);
}

.rr-tm-app:has(.rr-tm__results--pending) .rr-tm__whatif,
.rr-tm-app:has(.rr-tm__results--pending) .rr-tm__compare,
.rr-tm-app:has(.rr-tm__results--pending) .rr-tm__resultend,
.rr-tm-app:has(.rr-tm__results--pending) .rr-tm__about,
.rr-tm-app:has(.rr-tm__results--pending) .rr-tm__footer-links,
.rr-tm-app:has(.rr-tm__results--pending) .rr-tm__disclaimer {
	display: none;
}

.rr-tm__narrative[hidden] {
	display: none !important;
}

/* Number card — white + the only shadow on the screen */
.rr-tm__result-stack {
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
	box-shadow: var(--rr-tm-shadow-card);
	overflow: hidden;
}

.rr-tm__highlight {
	padding: var(--rr-tm-card-padding);
	background: transparent;
	color: var(--rr-tm-ink);
}

.rr-tm__highlight-label {
	margin: 0 0 0.35rem;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rr-tm-muted);
}

.rr-tm-app .rr-tm__highlight-value {
	margin: 0;
	margin-bottom: 0;
	padding: 0;
	padding-bottom: 0;
	font-family: var(--rr-tm-font-display);
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: var(--rr-tm-display-weight);
	letter-spacing: var(--rr-tm-display-tracking);
	line-height: 1;
	color: var(--rr-tm-teal);
}

.rr-tm__highlight-support {
	margin: 8px 0 0;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--rr-tm-ink);
}

/* Share strip — teal ground; welded copy sits in the number card stack */
.rr-tm__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rr-tm-card-gap);
	margin: 0 0 var(--rr-tm-card-gap);
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-teal);
	border: 0;
	border-radius: var(--rr-tm-card-radius);
	color: var(--rr-tm-share-text);
}

.rr-tm__result-stack .rr-tm__share {
	margin: 0;
	border-radius: 0;
}

.rr-tm__share-copy {
	flex: 1 1 12rem;
	min-width: 0;
}

.rr-tm__share .rr-tm__block-title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	color: var(--rr-tm-share-text);
}

.rr-tm__share .rr-tm__actions {
	display: flex;
	flex-wrap: wrap;
	flex: 0 0 auto;
	gap: 0.65rem;
	margin: 0;
}

/*
 * Scoped on-teal variant — do not change the shared .rr-tm__btn--ghost.
 * Include the button element + .rr-tm-app so this beats Divi/theme
 * `button.rr-tm__btn--ghost { background: transparent !important }` rules
 * that otherwise leave teal text on the teal share card (1.00:1).
 */
.rr-tm-app .rr-tm__share button.rr-tm__btn.rr-tm__btn--ghost {
	background: #FFFFFF !important;
	background-color: #FFFFFF !important;
	color: var(--rr-tm-teal) !important;
	border-color: #FFFFFF !important;
}

.rr-tm-app .rr-tm__share button.rr-tm__btn.rr-tm__btn--ghost:hover {
	background: var(--rr-tm-share-text) !important;
	background-color: var(--rr-tm-share-text) !important;
	border-color: var(--rr-tm-share-text) !important;
	color: var(--rr-tm-teal) !important;
}

.rr-tm__share .rr-tm__share-status {
	flex: 1 0 100%;
	min-height: 1.35em;
	margin: 0;
	font-size: 14px;
	color: rgba(245, 241, 234, 0.85);
}

/* Empty status must not reserve a flex row / gap. */
.rr-tm__share .rr-tm__share-status:empty {
	display: none;
	min-height: 0;
	flex: 0;
	margin: 0;
	padding: 0;
}

.rr-tm__share .rr-tm__hint {
	margin: 0;
	font-size: 0.95rem;
	color: var(--rr-tm-share-text);
}

.rr-tm__share p {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	color: var(--rr-tm-share-text);
}

.rr-tm__share p:last-child {
	margin-bottom: 0;
}

/* ——— Stat chips ——— */
.rr-tm__chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--rr-tm-card-gap);
}

.rr-tm__chip {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0;
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
	min-width: 0;
}

.rr-tm__chip-value {
	font-family: var(--rr-tm-font);
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--rr-tm-ink);
	word-break: break-word;
	overflow-wrap: anywhere;
	max-width: 100%;
}

.rr-tm__chip-label {
	font-size: 14px;
	line-height: 1.35;
	color: var(--rr-tm-muted);
	overflow-wrap: anywhere;
	max-width: 100%;
}

/* ——— Doubling timeline + growth chart ——— */
.rr-tm__timeline-wrap {
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
	overflow: visible;
	min-width: 0;
}

.rr-tm__chart {
	margin: 0 0 1.15rem;
	width: 100%;
	max-width: 100%;
	/* visible so marker rings / value labels near the plot edge are not clipped */
	overflow: visible;
}

.rr-tm__chart-svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	overflow: visible;
}

.rr-tm__chart-empty {
	margin: 0;
	padding: 1rem;
	font-size: 0.9rem;
	color: var(--rr-tm-muted);
}

/*
 * Pass 2 §1 / §2 — age-step cards removed from view (they read as broken
 * variable-length bars). Markup stays so the growth chart can still read
 * markers. Unhide: delete the display:none rule below.
 */
.rr-tm__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none !important;
}

.rr-tm__timeline-step {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 0.75rem;
	border: 1px solid var(--rr-tm-line);
	background: var(--rr-tm-surface);
	min-width: 0;
}

.rr-tm__timeline-age {
	font-size: 14px;
	font-weight: 700;
	color: var(--rr-tm-teal);
}

.rr-tm__timeline-amount {
	font-family: var(--rr-tm-font);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rr-tm-ink);
}

.rr-tm__timeline-label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(--rr-tm-muted);
	overflow-wrap: anywhere;
}

/* ——— What if ——— */
.rr-tm__whatif {
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
}

.rr-tm__whatif-control {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
}

.rr-tm__whatif-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.85rem;
}

.rr-tm__whatif-row input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 44px;
	min-height: 44px;
	background: transparent;
	cursor: pointer;
}

.rr-tm__whatif-row input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: var(--rr-tm-ghost-border);
}

.rr-tm__whatif-row input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -6px;
	border-radius: 50%;
	background: var(--rr-tm-teal);
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px var(--rr-tm-teal);
}

.rr-tm__whatif-row input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: var(--rr-tm-ghost-border);
	border: none;
}

.rr-tm__whatif-row input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--rr-tm-teal);
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px var(--rr-tm-teal);
}

.rr-tm__whatif-value {
	min-width: 2.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--rr-tm-teal);
	text-align: right;
}

.rr-tm__whatif-result {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--rr-tm-ink);
}

/* ——— Scenario compare ——— */
.rr-tm__scenarios {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rr-tm-card-gap);
	margin-bottom: var(--rr-tm-card-gap);
}

.rr-tm__scenario {
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
	min-width: 0;
	overflow: hidden;
}

.rr-tm__scenario-title {
	margin: 0 0 0.85rem;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rr-tm-teal);
}

.rr-tm__scenario-fields {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.rr-tm__scenario-result {
	padding-top: 0.85rem;
	border-top: 1px solid var(--rr-tm-line);
}

.rr-tm__scenario-estimate-label {
	margin: 0 0 0.2rem;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rr-tm-muted);
}

.rr-tm__scenario-estimate {
	margin: 0 0 0.35rem;
	font-family: var(--rr-tm-font);
	font-size: clamp(1.25rem, 4vw, 1.65rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--rr-tm-ink);
	overflow-wrap: anywhere;
	max-width: 100%;
}

.rr-tm__scenario-meta {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--rr-tm-muted);
	overflow-wrap: anywhere;
	max-width: 100%;
}

.rr-tm__diff {
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
	color: var(--rr-tm-ink);
	text-align: center;
}

.rr-tm__diff-label {
	margin: 0 0 0.25rem;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rr-tm-muted);
}

.rr-tm__diff-value {
	margin: 0;
	font-family: var(--rr-tm-font);
	font-size: clamp(1.5rem, 5vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--rr-tm-ink);
	overflow-wrap: anywhere;
	max-width: 100%;
}

.rr-tm__diff-value.is-positive {
	color: var(--rr-tm-teal);
}

.rr-tm__diff-value.is-negative {
	color: var(--rr-tm-accent);
}

/* ——— Learn ——— */
.rr-tm__learn-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.rr-tm__learn-block {
	padding: 0;
}

.rr-tm__learn-block p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--rr-tm-muted);
}

.rr-tm__learn-stack {
	display: grid;
	gap: 1.15rem;
	margin-bottom: 1.25rem;
}

.rr-tm__learn-more {
	margin: 1rem 0 0;
}

.rr-tm__text-link {
	color: var(--rr-tm-teal);
	font-weight: 700;
	text-decoration: underline;
}

.rr-tm__text-link:hover {
	color: #0a5558;
}

.rr-tm__resultend {
	margin: 0 0 var(--rr-tm-card-gap);
}

.rr-tm__upsell {
	margin: 0;
	padding: var(--rr-tm-card-padding);
	background-color: var(--rr-tm-band);
	background-image: var(--rr-tm-dashboard-bg, none);
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
	color: var(--rr-tm-ink);
}

/* Leave the right half clear for the dashboard art. */
.rr-tm__upsell > * {
	max-width: 50%;
}

.rr-tm__upsell .rr-tm__upsell-eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rr-tm-muted);
}

.rr-tm__upsell .rr-tm__block-title {
	margin: 0 0 12px;
	color: var(--rr-tm-ink);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.rr-tm__upsell p:not(.rr-tm__upsell-eyebrow):not(.rr-tm__block-title) {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	color: var(--rr-tm-ink);
}

.rr-tm__upsell p:last-child {
	margin-bottom: 0;
}

.rr-tm__upsell .rr-tm__hint {
	color: var(--rr-tm-muted);
}

.rr-tm__upsell .rr-tm__actions {
	margin: 1rem 0 0;
}

.rr-tm__upsell > p:last-of-type {
	margin-bottom: 0;
}

.rr-tm__upsell a.rr-tm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: var(--rr-tm-primary);
	border-color: var(--rr-tm-primary);
	color: var(--rr-tm-primary-text);
}

.rr-tm__upsell a.rr-tm__btn:hover,
.rr-tm__upsell a.rr-tm__btn:focus-visible {
	background: var(--rr-tm-primary-hover);
	border-color: var(--rr-tm-primary-hover);
	color: var(--rr-tm-primary-text);
}

.rr-tm__about {
	margin: 0 0 var(--rr-tm-card-gap);
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
}

.rr-tm__about p {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	color: var(--rr-tm-muted);
}

.rr-tm__about p:last-child {
	margin-bottom: 0;
}

.rr-tm__about .rr-tm__block-title {
	margin-bottom: 0.4rem;
}

.rr-tm__meta-date {
	margin: 0;
	font-size: 14px;
	color: var(--rr-tm-muted);
}

.rr-tm-app--methodology {
	padding-bottom: 2rem;
}

.rr-tm-app--methodology .rr-tm__learn-block p {
	font-size: 14px;
	line-height: 1.55;
}

/*
 * Pass 2 §2 — hide extended methodology explainers.
 * Markup remains in includes/class-rr-tm-methodology.php.
 * To unhide: delete (or comment out) the next rule.
 */
.rr-tm-app--methodology .rr-tm__learn-stack,
.rr-tm__learn-stack[data-rr-tm-deep-math] {
	display: none !important;
}

.rr-tm__disclosure {
	margin: 0;
	padding: 0;
	border: 0;
}

.rr-tm__disclosure > summary {
	cursor: pointer;
	list-style: none;
	font-size: 14px;
}

.rr-tm__disclosure > summary::-webkit-details-marker {
	display: none;
}

.rr-tm__disclosure > summary::after {
	content: " +";
	color: var(--rr-tm-teal);
	font-weight: 700;
}

.rr-tm__disclosure[open] > summary::after {
	content: " −";
}

.rr-tm__footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.55rem;
	margin: 0.85rem 0 var(--rr-tm-card-gap);
	padding: 0;
}

.rr-tm__footer-link {
	appearance: none;
	margin: 0;
	padding: 0.25rem 0.1rem;
	border: 0;
	background: transparent;
	color: var(--rr-tm-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.rr-tm__footer-link:hover,
.rr-tm__footer-link:focus-visible {
	color: var(--rr-tm-ink);
}

.rr-tm__footer-sep {
	color: var(--rr-tm-line);
	font-size: 14px;
	user-select: none;
}

/* ——— Disclaimer ——— */
.rr-tm__disclaimer {
	margin: 0;
	padding: var(--rr-tm-card-padding);
	background: var(--rr-tm-card-bg);
	border: var(--rr-tm-card-border);
	border-radius: var(--rr-tm-card-radius);
}

.rr-tm__disclaimer p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rr-tm-muted);
}

.rr-tm__disclaimer p + p {
	margin-top: 0.65rem;
}

/* Compact */
.rr-tm-app--compact .rr-tm__compare,
.rr-tm-app--compact .rr-tm__timeline-wrap {
	display: none;
}

.rr-tm-app--compact {
	padding: 1.25rem 1rem;
}

@media (max-width: 900px) {
	.rr-tm__chips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 720px) {
	.rr-tm-app {
		padding: 1.35rem 1rem 1.15rem;
	}

	.rr-tm__fields,
	.rr-tm__scenarios,
	.rr-tm__learn-grid,
	.rr-tm__chips,
	.rr-tm__timeline {
		grid-template-columns: 1fr;
	}

	.rr-tm__actions {
		flex-direction: column;
	}

	.rr-tm__btn {
		width: 100%;
		text-align: center;
	}

	.rr-tm__upsell > * {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.rr-tm__share {
		flex-direction: column;
		align-items: stretch;
	}

	.rr-tm__share .rr-tm__actions {
		width: 100%;
		flex-direction: column;
	}

	.rr-tm__share .rr-tm__btn {
		width: 100%;
		text-align: center;
	}
}

@keyframes rr-tm-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rr-tm__header,
	.rr-tm__explorer,
	.rr-tm__whatif,
	.rr-tm__compare,
	.rr-tm__learn {
		animation: none;
	}

	.rr-res-hero img,
	.rr-res-hero .et_pb_image_wrap,
	.rr-res-hero--results::after {
		transition: none;
	}
}

/* ============================================================
   Time Machine - results screen fixes
   Append to assets/css/rr-time-machine.css (end of file).
   Verified on the live dev page at 1280px and 430px,
   from a clean reload each time.
   ============================================================ */


/* ------------------------------------------------------------
   1. RESULTS HERO - the swap never rendered

   Two faults stacked:

   a) The page's own Divi CSS carries
        html body.et-db.page-id-46269 #et-boc .rr-res-hero::after
      at specificity 1-3-3, setting width:60%. The plugin rule
      .rr-res-hero--results::after is 0-1-1 and could never win,
      so the ::after kept painting the default hero jpg.

   b) opacity was var(--rr-tm-hero-show, 0) and nothing in the
      plugin, theme or page ever set that variable to 1, so the
      layer was transparent regardless of which rule won.

   The geometry override is scoped to >=981px deliberately.
   Below 980px the page already sets
     inset: auto auto 30px 50%; transform: translateX(-50%);
     width: 100vw; height: 55.9vw;
   which is the correct mobile band. Forcing left:0 there fights
   the translateX(-50%) and throws the art half off screen.
------------------------------------------------------------ */
/* The class is repeated on purpose. The page's own inline Divi CSS now
   carries background-image with !important at specificity 1-3-3:
     html body.et-db.page-id-46269 #et-boc .rr-res-hero::after
   A single .rr-res-hero--results here is also 1-3-3, so the tie falls to
   source order and the page's inline <style> is emitted after this
   enqueued file. Doubling the class makes this 1-4-3 and it wins on
   specificity regardless of order. Verified 2026-10-07. */
.rr-res-hero--results { --rr-tm-hero-show: 1; }

html body.et-db #et-boc .rr-res-hero.rr-res-hero--results.rr-res-hero--results::after {
  background-image: var(--rr-tm-results-hero) !important;
  opacity: 1 !important;
}

@media (min-width: 981px) {
  html body.et-db #et-boc .rr-res-hero.rr-res-hero--results.rr-res-hero--results::after {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 0 !important;
  }
}


/* ------------------------------------------------------------
   2. PARAGRAPH RHYTHM - this is the spacing bug, at its root

   Divi's global stylesheet sets p { padding-bottom: 1em }.
   Every <p> in the calculator was carrying dead space scaled to
   its own font size: 12px under the eyebrow, 29.6px under the
   section titles, 15.2px under body copy. That is the gap above
   and below "See it next to everything else", and it was the
   same cause as the dead space under the headline figure.

   19 paragraphs in the module still had it. Killing it once at
   the module root stops it resurfacing card by card. The two
   margin rules below put back deliberate spacing where the
   padding was doing real work.
------------------------------------------------------------ */
.rr-tm p { padding-bottom: 0 !important; }
.rr-tm .rr-tm__upsell-eyebrow { margin-bottom: 10px !important; }
.rr-tm .rr-tm__block-title { margin-bottom: 14px !important; }


/* ------------------------------------------------------------
   3. DASHBOARD CARD - copy over the subject, dead height

   The art is 1584x672 with its subject occupying 54.5% to 93.7%
   of the width. background-size:cover on an 854px card scaled it
   to 1211px and cropped 357px off the left, dragging the donut to
   x=176 while the copy ran to x=427. contain + right bottom keeps
   the whole subject in the right half: subject left edge x=466,
   copy ends at x=427, 39px clear.

   The art file was reflattened onto a solid #EDE4D3 ground
   (rr-upsell-band-bg-flat.jpg, attachment 46880) so the card
   colour and the art ground are the same value and the strip
   above the art is seamless. No gradient layer needed.

   min-height:0 removes the dead space under the content.
------------------------------------------------------------ */
.rr-tm__upsell {
  background-color: #EDE4D3 !important;
  background-size: contain !important;
  background-position: right bottom !important;
  background-repeat: no-repeat !important;
  min-height: 0 !important;
  height: auto !important;
}

.rr-tm__upsell > * { max-width: 50% !important; }

/* Below 860px the copy goes full width and the art becomes a
   band across the bottom of the card. */
@media (max-width: 860px) {
  .rr-tm__upsell > * { max-width: 100% !important; }

  .rr-tm__upsell {
    background-size: 100% auto !important;
    background-position: center bottom !important;
    padding-bottom: 44% !important;
  }
}

/* timeline steps were the last sharp-cornered boxes on the screen */
.rr-tm .rr-tm__timeline-step { border-radius: 14px; border-color: #E2E2E2; }

/* stacked mobile share strip: flex:1 1 12rem is a row-layout basis and forces
   192px of height for 115px of content once the strip goes column */
@media (max-width: 640px) {
  .rr-tm__share-copy { flex: 0 1 auto; }
}

/* ------------------------------------------------------------
   4. Page ".rr-tm" superscript rule was hitting the app root.

   The marketing pages style .rr-tm as a tiny trademark mark
   (font-size 9px, line-height 0, bottom offset, margin-left).
   The calculator root carries that class, so every inherited
   line collapsed onto itself (the doubling-timeline lede, the
   share hint, and the paragraphs under them) and margin-left
   overrode margin: 0 auto, pinning the card to the left of the
   flex column. Two classes beat that one-class rule.
------------------------------------------------------------ */
.rr-tm.rr-tm-app {
	align-self: center;
	width: 100%;
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: normal;
	position: static;
	top: auto;
	bottom: auto;
	vertical-align: baseline;
}

.rr-tm.rr-tm-app .rr-tm__block-lede,
.rr-tm.rr-tm-app .rr-tm__section-lede,
.rr-tm.rr-tm-app .rr-tm__share-copy,
.rr-tm.rr-tm-app .rr-tm__share .rr-tm__hint,
.rr-tm.rr-tm-app .rr-tm__whatif-result,
.rr-tm.rr-tm-app .rr-tm__scenario-meta,
.rr-tm.rr-tm-app .rr-tm__highlight-support,
.rr-tm.rr-tm-app .rr-tm__about p,
.rr-tm.rr-tm-app .rr-tm__disclaimer p,
.rr-tm.rr-tm-app .rr-tm__upsell p {
	line-height: 1.5;
	height: auto;
	overflow-wrap: break-word;
}

.rr-tm__chip-label,
.rr-tm__scenario-estimate,
.rr-tm__diff-value,
.rr-tm__highlight-value {
	overflow-wrap: anywhere;
}

.rr-tm__input-wrap,
.rr-tm__field,
.rr-tm__whatif-row {
	min-width: 0;
	max-width: 100%;
}

.rr-tm-app [hidden] {
	display: none !important;
}

.rr-tm__include-compare {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 0 100%;
	margin: 0.85rem 0 0;
	min-height: 44px;
	min-width: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	color: var(--rr-tm-share-text);
}

.rr-tm__include-compare input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	flex: 0 0 auto;
	accent-color: #ffffff;
}

.rr-tm__edit-row {
	flex: 1 0 100%;
	margin: 0.35rem 0 0;
}

.rr-tm__edit-inputs {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: var(--rr-tm-share-text);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.rr-tm__edit-inputs:hover,
.rr-tm__edit-inputs:focus-visible {
	color: #ffffff;
}
