/* Richer Road Freedom: tool and dashboard components. Theme colours come from --rr-* variables. */

.rrf-tool,
.rrf-dash,
.rrf-panel,
.rrf-res,
.rrf-calcbox,
.rrf-calcbox__cta,
.rrf-related,
.rrf-guide-meta,
.rrf-guide-calc,
.rrf-contact {
	--_green: var(--rr-green, #087A50);
	--_forest: var(--rr-forest, #053B27);
	--_mint: var(--rr-accent, var(--rr-mint, #5BE3A6));
	--_cta: var(--rr-cta, var(--rr-green, #087A50));
	--_cta-ink: var(--rr-cta-ink, #FFFFFF);
	--_cta-hover: var(--rr-cta-hover, var(--rr-forest, #053B27));
	--_cta-hover-ink: var(--rr-cta-hover-ink, #FFFFFF);
	--_tint: var(--rr-tint, #E6F4EC);
	--_paper: var(--rr-paper, #F4F7F3);
	--_ink: var(--rr-ink, #10251B);
	--_body: var(--rr-body, #3A4A42);
	--_muted: var(--rr-muted, #5B6B63);
	--_rule: var(--rr-rule, #D9E2DC);
	--_field: var(--rr-field, #9FB3A8);
	--_cost: var(--rr-cost, #B42332);
	--_display: var(--rr-display, system-ui, sans-serif);
	color: var(--_body);
	font-size: 1rem;
	line-height: 1.5;
}

.rrf-tool *,
.rrf-dash *,
.rrf-panel * {
	box-sizing: border-box;
}

/* Keep the hidden attribute working even where a component sets display. */
.rrf-tool [hidden],
.rrf-dash [hidden],
.rrf-panel [hidden] {
	display: none !important;
}

.rrf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.rrf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Buttons ---------- */
.rrf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--_cta);
	color: var(--_cta-ink);
	font: inherit;
	font-weight: 800;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.rrf-btn:hover { background: var(--_cta-hover); color: var(--_cta-hover-ink); }
.rrf-btn:active { transform: translateY(1px); }
.rrf-btn:disabled { opacity: 0.6; cursor: progress; }
.rrf-btn--big { min-height: 56px; font-size: 1.0625rem; width: 100%; }
.rrf-btn--ghost { background: transparent; color: var(--_ink); box-shadow: inset 0 0 0 2px var(--_ink); }
.rrf-btn--ghost:hover { background: var(--_ink); color: #FFFFFF; }
.rrf-btn--danger { background: var(--_cost); }
.rrf-btn--danger:hover { background: #8A1826; }
.rrf-btn:focus-visible,
.rrf-link:focus-visible,
.rrf-tab:focus-visible,
.rrf-tool select:focus-visible,
.rrf-dash select:focus-visible,
.rrf-range:focus-visible,
.rrf-check input:focus-visible,
.rrf-danger summary:focus-visible {
	outline: 3px solid var(--_ink);
	outline-offset: 3px;
}

.rrf-link {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--_ink);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Fields ---------- */
.rrf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.rrf-field__label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--_ink);
	line-height: 1.3;
}
.rrf-input {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 14px;
	border: 1.5px solid var(--_field);
	border-radius: 14px;
	background: #FFFFFF;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rrf-input:focus-within {
	border-color: var(--_ink);
	box-shadow: 0 0 0 3px var(--_tint);
}
.rrf-input input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	padding: 12px 6px;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--_ink);
	font: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
}
.rrf-input input::-webkit-outer-spin-button,
.rrf-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rrf-input__affix { color: var(--_muted); font-weight: 600; }

.rrf-cur select {
	min-height: 44px;
	padding: 0 34px 0 14px;
	border: 1.5px solid var(--_field);
	border-radius: 999px;
	background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310251B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--_ink);
	font: inherit;
	font-weight: 700;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* ---------- The tool ---------- */
.rrf-tool {
	container-type: inline-size;
	position: relative;
	padding: clamp(20px, 5vw, 32px);
	border-radius: 28px;
	background: #FFFFFF;
	box-shadow: 0 40px 80px -40px rgba(1, 26, 16, 0.65), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
}
.rrf-tool__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.rrf-tool__title {
	margin: 0;
	font-family: var(--_display);
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 1.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--_ink);
}
.rrf-tool__sub { margin: 4px 0 18px; font-size: 0.9375rem; color: var(--_muted); }

.rrf-tab {
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--_body);
	font: inherit;
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
}
.rrf-tab.is-active { background: var(--_forest); color: #FFFFFF; }
.rrf-modes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	margin-bottom: 18px;
	padding: 4px;
	border-radius: 999px;
	background: var(--_paper);
}
.rrf-modes .rrf-tab { padding: 0 6px; }
.rrf-fields-note { margin: 10px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--_muted); }
.rrf-fields-note[hidden] { display: none; }
.rrf-good { color: var(--_green); font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.rrf-result.is-short { background: var(--_cost); }
.rrf-result.is-short .rrf-result__label, .rrf-result.is-short .rrf-result__span { color: #FFF1EC; }

.rrf-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 12px;
}
.rrf-fields .rrf-field:first-child { grid-column: 1 / -1; }
@container (min-width: 470px) {
	.rrf-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rrf-fields .rrf-field:first-child { grid-column: auto; }
}

/* The result reads like a green road sign: the one bold element. */
.rrf-result {
	margin-top: 20px;
	padding: 22px 24px 20px;
	border-radius: 20px;
	background: var(--_green);
	color: #FFFFFF;
	outline: 3px solid #FFFFFF;
	outline-offset: -9px;
}
.rrf-result p { margin: 0; }
.rrf-result__label { font-size: 0.9375rem; font-weight: 600; color: #E6F4EC; }
.rrf-result__date {
	margin: 4px 0 2px !important;
	font-family: var(--_display);
	font-size: clamp(2.5rem, 10cqi, 3.75rem);
	font-weight: 800;
	font-stretch: 88%;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #FFFFFF;
	font-variant-numeric: tabular-nums;
}
.rrf-result__span { font-size: 0.9375rem; color: #E6F4EC; }
.rrf-result.is-new .rrf-result__date { animation: rrf-roll 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rrf-roll {
	from { opacity: 0.2; transform: translateY(0.25em); }
	to { opacity: 1; transform: none; }
}
.rrf-result__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 12px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--_ink);
	font-size: 0.9375rem;
}
.rrf-cost { color: var(--_cost); font-size: 1.1875rem; font-variant-numeric: tabular-nums; }

.rrf-extra { margin-top: 16px; }
.rrf-range-label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--_ink);
}
.rrf-range {
	width: 100%;
	min-height: 44px;
	margin: 0;
	accent-color: var(--_green);
	cursor: pointer;
}
.rrf-line {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--_tint);
	color: var(--_forest);
	font-weight: 700;
	font-size: 0.9375rem;
}

.rrf-alert { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: 0.9375rem; }
.rrf-alert p { margin: 0 0 6px; }
.rrf-alert p:last-child { margin-bottom: 0; }
.rrf-alert--warn { background: #FCEDEE; color: #6E1520; }
.rrf-alert--warn a { color: #6E1520; font-weight: 700; }
.rrf-alert--ok { background: var(--_tint); color: var(--_forest); }
.rrf-hint { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--_paper); font-size: 0.9375rem; }

.rrf-save { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--_rule); }
.rrf-save__label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--_ink); }
.rrf-save__row { display: flex; flex-wrap: wrap; gap: 10px; }
.rrf-save__row input {
	flex: 1 1 210px;
	min-width: 0;
	min-height: 52px;
	padding: 0 18px;
	border: 1.5px solid var(--_field);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--_ink);
	font: inherit;
	font-size: 1rem;
}
.rrf-save__row input:focus { outline: none; border-color: var(--_ink); box-shadow: 0 0 0 3px var(--_tint); }
.rrf-save__row .rrf-btn { flex: 1 1 auto; }
@container (min-width: 470px) {
	.rrf-save__row .rrf-btn { flex: 0 0 auto; }
}
.rrf-error { margin: 10px 0 0; color: var(--_cost); font-weight: 600; font-size: 0.9375rem; }
.rrf-small { margin: 10px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--_muted); }
.rrf-note { margin: 14px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--_muted); }

/* ---------- Sign-in panel ---------- */
.rrf-panel {
	max-width: 560px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 40px);
	border-radius: 28px;
	background: #FFFFFF;
	box-shadow: 0 1px 0 var(--_rule), 0 30px 60px -40px rgba(1, 26, 16, 0.4);
}
.rrf-panel h2 { margin: 0 0 8px; font-family: var(--_display); font-size: 1.75rem; line-height: 1.15; color: var(--_ink); }
.rrf-panel > p { margin: 0 0 16px; }
.rrf-panel .rrf-save { border-top: 0; padding-top: 0; margin-top: 8px; container-type: inline-size; }

/* ---------- Dashboard ---------- */
.rrf-dash {
	display: grid;
	gap: 20px;
}
.rrf-dash h2 {
	margin: 0 0 6px;
	font-family: var(--_display);
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.625rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--_ink);
}
.rrf-dash__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.rrf-badge { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--_tint); color: var(--_forest); font-weight: 700; font-size: 0.875rem; }
.rrf-status { margin: 0; font-size: 0.875rem; color: var(--_muted); }
.rrf-muted { margin: 0 0 16px; color: var(--_muted); font-size: 0.9375rem; }
.rrf-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 700; font-size: 0.9375rem; color: var(--_green); }

.rrf-hero-card {
	padding: clamp(24px, 5vw, 36px);
	border-radius: 28px;
	background: var(--_forest);
	color: #FFFFFF;
}
.rrf-hero-card p { margin: 0; }
.rrf-hero-card__kicker { font-weight: 600; color: #CFEBDD; }
.rrf-hero-card__date {
	margin: 6px 0 8px !important;
	font-family: var(--_display);
	font-size: clamp(2.75rem, 8vw, 4.5rem);
	font-weight: 800;
	font-stretch: 88%;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--_mint);
}
.rrf-hero-card__sub { color: #CFEBDD; }
.rrf-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px;
	margin-top: 22px;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.16);
}
.rrf-stat { padding: 14px 16px; background: var(--_forest); }
.rrf-stat span { display: block; font-size: 0.8125rem; color: #CFEBDD; }
.rrf-stat strong { display: block; margin-top: 2px; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.rrf-hero-card .rrf-alert--warn { margin-top: 18px; }

.rrf-card {
	padding: clamp(20px, 4vw, 30px);
	border-radius: 24px;
	background: #FFFFFF;
	box-shadow: 0 0 0 1px var(--_rule);
}
.rrf-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.rrf-upgrade {
	display: grid;
	gap: 18px;
	box-shadow: 0 0 0 2px var(--_green);
}
.rrf-upgrade p { margin: 0 0 10px; }
.rrf-upgrade__line { color: var(--_ink); font-weight: 700; font-size: 1.0625rem; }
.rrf-upgrade__action { align-self: center; }
.rrf-upgrade__action .rrf-small { text-align: center; }
.rrf-ok { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--_tint); color: var(--_forest); }
@media (min-width: 820px) {
	.rrf-upgrade { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; }
}

.rrf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
	align-items: end;
}
.rrf-box { padding: 12px 16px; border-radius: 14px; background: var(--_paper); min-height: 52px; }
.rrf-box span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--_muted); }
.rrf-box strong { display: block; font-size: 1.25rem; color: var(--_ink); font-variant-numeric: tabular-nums; }
.rrf-box--tint { background: var(--_tint); }
.rrf-box--tint strong, .rrf-box--tint span { color: var(--_forest); }

.rrf-list { display: grid; gap: 12px; margin-bottom: 16px; }
.rrf-item {
	container-type: inline-size;
	padding: 16px;
	border-radius: 18px;
	background: var(--_paper);
}
.rrf-item__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.rrf-item__fields .rrf-field--wide { grid-column: 1 / -1; }
@container (min-width: 640px) {
	.rrf-item__fields { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
	.rrf-item__fields .rrf-field--wide { grid-column: auto; }
}
.rrf-item .rrf-input { min-height: 48px; }
.rrf-item .rrf-input input { font-size: 1rem; }
.rrf-item__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-top: 8px; }
.rrf-item__result { margin: 0; font-weight: 700; color: var(--_forest); font-size: 0.9375rem; }
.rrf-item__btns { display: flex; gap: 4px; margin-left: auto; }
.rrf-empty { margin: 0; padding: 18px; border-radius: 18px; border: 1.5px dashed var(--_field); color: var(--_muted); }

.rrf-milestone { display: grid; gap: 20px; align-items: center; }
@media (min-width: 820px) {
	.rrf-milestone { grid-template-columns: minmax(0, 1fr) 280px; }
}
.rrf-milestone h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.rrf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rrf-sharecard canvas {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto;
	border-radius: 18px;
	box-shadow: 0 30px 50px -30px rgba(1, 26, 16, 0.7);
}

/* Share card: Post / Story switch, and the bar under the free tool's result. */
.rrf-formats { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: var(--_tint); }
.rrf-chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--_forest); font: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.rrf-chip[aria-pressed="true"] { background: #FFFFFF; box-shadow: 0 1px 3px rgba(1, 26, 16, 0.18); }
.rrf-chip:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-sharecard canvas[height="1920"] { max-width: 240px; }
.rrf-sharebar { margin-top: 16px; }
.rrf-sharebar__label { margin: 0 0 8px; font-weight: 700; }
.rrf-sharebar__label .rrf-small { display: block; font-weight: 400; }
.rrf-sharebar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rrf-sharebar__row .rrf-formats { margin: 0; }

.rrf-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 4px 0 12px; font-weight: 600; color: var(--_ink); cursor: pointer; }
.rrf-check input { width: 22px; height: 22px; accent-color: var(--_green); }
.rrf-danger summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--_cost); }
.rrf-danger p { margin: 4px 0 12px; }
.rrf-loading { padding: 40px 0; text-align: center; color: var(--_muted); }

/* Contact form */
.rrf-contact__form { display: grid; gap: 16px; }
.rrf-contact__grid { display: grid; gap: 16px; }
@container (min-width: 520px) { .rrf-contact__grid { grid-template-columns: 1fr 1fr; } }
.rrf-contact { container-type: inline-size; }
.rrf-input select { flex: 1 1 auto; width: 100%; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--_ink); }
.rrf-input select:focus { outline: none; }
.rrf-input input[type="text"], .rrf-input input[type="email"] { border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--_ink); min-height: 48px; }
.rrf-input input[type="text"]:focus, .rrf-input input[type="email"]:focus { outline: none; }
.rrf-input--area { align-items: stretch; padding: 10px 14px; }
.rrf-input--area textarea { flex: 1 1 auto; width: 100%; min-height: 150px; border: 0; background: transparent; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--_ink); resize: vertical; }
.rrf-input--area textarea:focus { outline: none; }
.rrf-contact .rrf-btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
	.rrf-btn, .rrf-input { transition: none; }
	.rrf-result.is-new .rrf-result__date { animation: none; }
}

/* ---------- Full plan ---------- */
.rrf-badge--full { background: var(--_forest); color: #FFFFFF; }
.rrf-alert--info { background: #FFF6E5; color: #5A3A00; }
.rrf-alert--info a { color: #5A3A00; font-weight: 700; }
.rrf-preview-note { max-width: 1100px; margin: 0 auto 18px; }
.rrf-fullplan { display: grid; gap: 20px; }
.rrf-h3 { margin: 22px 0 10px; font-family: var(--_display); font-size: 1.125rem; font-weight: 800; color: var(--_ink); }
.rrf-card .rrf-h3:first-child { margin-top: 0; }

/* This month's steps: a checklist with big targets. */
.rrf-steps__count { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--_tint); color: var(--_forest); font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.rrf-steps__count:empty { display: none; }
.rrf-steps__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rrf-step label { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--_paper); cursor: pointer; }
.rrf-step.is-focus label { background: var(--_tint); box-shadow: inset 4px 0 0 var(--_green); }
.rrf-step input { flex: 0 0 auto; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--_green); cursor: pointer; }
.rrf-step input:focus-visible { outline: 3px solid var(--_ink); outline-offset: 3px; }
.rrf-step__text strong { display: block; color: var(--_ink); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.rrf-step__text span { display: block; font-size: 0.875rem; color: var(--_muted); }
.rrf-step.is-done .rrf-step__text strong { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--_muted); }

/* Order choice */
.rrf-orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.rrf-orders > .rrf-empty { grid-column: 1 / -1; }
.rrf-order {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 18px;
	border: 0;
	border-radius: 18px;
	background: var(--_paper);
	color: var(--_body);
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: inset 0 0 0 1.5px var(--_rule);
}
.rrf-order:hover { box-shadow: inset 0 0 0 1.5px var(--_field); }
.rrf-order:focus-visible { outline: 3px solid var(--_ink); outline-offset: 3px; }
.rrf-order.is-picked { background: #FFFFFF; box-shadow: inset 0 0 0 2.5px var(--_green); }
.rrf-order__title { font-weight: 800; color: var(--_ink); }
.rrf-order__date { font-family: var(--_display); font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--_forest); }
.rrf-order__int { font-weight: 700; color: var(--_ink); font-variant-numeric: tabular-nums; }
.rrf-order__meta { font-size: 0.875rem; color: var(--_muted); }
.rrf-order__how { margin-top: 6px; font-size: 0.875rem; }
.rrf-order__pick { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 0.9375rem; color: var(--_green); }
.rrf-order.is-picked .rrf-order__pick::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--_green); }

/* The road: the payoff order as stops along a road. */
.rrf-road { position: relative; margin: 0; padding: 4px 0 0 34px; list-style: none; }
.rrf-road::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 30px; width: 6px; border-radius: 3px; background: var(--_forest); }
.rrf-road li { position: relative; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; padding: 6px 0 14px; }
.rrf-road li::before { content: ""; position: absolute; left: -31px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px var(--_forest); }
.rrf-road__date { min-width: 92px; font-weight: 800; color: var(--_ink); font-variant-numeric: tabular-nums; }
.rrf-road__what { color: var(--_body); }
.rrf-road__end::before { left: -35px !important; top: 4px !important; width: 20px !important; height: 20px !important; background: var(--rr-sun, #FFC24D) !important; box-shadow: 0 0 0 3px var(--_forest) !important; }
.rrf-road__end .rrf-road__what { font-weight: 800; color: var(--_forest); }

/* Progress chart */
.rrf-chart { position: relative; margin: 6px 0 0; }
.rrf-chart__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.rrf-chart__plot svg:focus-visible { outline: 3px solid var(--_ink); outline-offset: 4px; border-radius: 6px; }
.rrf-chart__grid { stroke: var(--_rule); stroke-width: 1; shape-rendering: crispEdges; }
.rrf-chart__tick { fill: var(--_muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rrf-chart__label { fill: var(--_ink); font-size: 13px; font-weight: 700; }
.rrf-chart__area { fill: var(--_green); fill-opacity: 0.1; }
.rrf-chart__line { fill: none; stroke: var(--_green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rrf-chart__plan { fill: none; stroke: var(--_green); stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; opacity: 0.6; }
.rrf-chart__dot { fill: var(--_green); stroke: #FFFFFF; stroke-width: 2; }
.rrf-chart__dot--end { fill: var(--rr-sun, #FFC24D); stroke: var(--_forest); }
.rrf-chart__cross { stroke: var(--_ink); stroke-width: 1; opacity: 0.35; }
.rrf-chart__tip { position: absolute; transform: translateX(-50%); padding: 8px 12px; border-radius: 10px; background: var(--_forest); color: #FFFFFF; font-size: 0.8125rem; line-height: 1.35; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -8px rgba(1, 26, 16, 0.5); }
.rrf-chart__tip strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.rrf-chart__key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 0.8125rem; color: var(--_muted); }
.rrf-key { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--_green); }
.rrf-key--dash { border-top: 2px dashed var(--_green); opacity: 0.6; margin-left: 8px; }
.rrf-table { margin-top: 12px; }
.rrf-table summary, .rrf-promo summary, .rrf-how summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--_ink); cursor: pointer; }
.rrf-table summary:focus-visible, .rrf-promo summary:focus-visible, .rrf-how summary:focus-visible { outline: 3px solid var(--_ink); outline-offset: 3px; }
.rrf-table table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.rrf-table th, .rrf-table td { padding: 8px 10px; border-bottom: 1px solid var(--_rule); text-align: left; }
.rrf-table th { color: var(--_muted); font-weight: 600; }
.rrf-table > div { max-height: 320px; overflow: auto; }

/* What-if lab */
.rrf-labtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; padding: 5px; border-radius: 20px; background: var(--_paper); }
@media (min-width: 760px) { .rrf-labtabs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 999px; } }
.rrf-labtab { min-height: 44px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--_body); font: inherit; font-weight: 700; font-size: 0.9375rem; line-height: 1.2; cursor: pointer; }
.rrf-labtab.is-active { background: var(--_forest); color: #FFFFFF; }
.rrf-labtab:focus-visible { outline: 3px solid var(--_ink); outline-offset: 2px; }
.rrf-labpanel .rrf-grid { margin-bottom: 12px; }

/* Interest-free fields in a debt row, and other small disclosures */
.rrf-promo { margin-top: 8px; }
.rrf-promo .rrf-small { margin: 0 0 10px; }
.rrf-promo__fields { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.rrf-how p { margin: 0 0 10px; font-size: 0.9375rem; }

/* Home loan comparison */
.rrf-homeres { margin-top: 16px; }
.rrf-homeres__base { margin: 0 0 12px; }
.rrf-homecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rrf-homecard { padding: 16px 18px; border-radius: 18px; background: var(--_paper); }
.rrf-homecard .rrf-h3 { margin: 0 0 6px; }
.rrf-homecard p { margin: 0 0 4px; font-size: 0.9375rem; }
.rrf-homecard__date { font-family: var(--_display); font-size: 1.625rem; font-weight: 800; line-height: 1.1; color: var(--_forest); }
.rrf-homecard__flag { display: inline-block; margin-top: 6px !important; padding: 4px 10px; border-radius: 999px; background: var(--_tint); color: var(--_forest); font-weight: 700; font-size: 0.8125rem !important; }

.rrf-print .rrf-card__head { flex-wrap: wrap; }
.rrf-print .rrf-muted { margin: 0; }

@media print {
	.rrf-dash { display: block; }
	.rrf-dash .rrf-card, .rrf-dash .rrf-hero-card { box-shadow: none; border: 1px solid #BBB; margin-bottom: 14px; break-inside: avoid; }
	.rrf-hero-card { background: #FFFFFF !important; color: #000 !important; }
	.rrf-hero-card *, .rrf-stat { color: #000 !important; background: #FFFFFF !important; }
	.rrf-btn, .rrf-link, .rrf-actions, .rrf-milestone, .rrf-sharebar, .rrf-print, .rrf-status, #rrf-lab, .rrf-cur, .rrf-danger, .rrf-chart__tip, .rrf-preview-note,
	.rrf-dash section[aria-labelledby="rrf-acc-title"], .rrf-range, .rrf-range-label { display: none !important; }
	.rrf-input { border-color: #BBB; }
	.rrf-table[open] > div, .rrf-table > div { max-height: none; overflow: visible; }
}

/* Account: download my data */
.rrf-account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0 0 8px; }
.rrf-account-links .rrf-link { padding-left: 0; }
.rrf-account-links .rrf-small { margin: 0; }
.rrf-link-quiet { color: var(--_muted); font-size: 0.875rem; }

/* Checkout: creator code, buy panel */
.rrf-code { margin-top: 10px; }
.rrf-code summary { min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--_ink); cursor: pointer; font-size: 0.9375rem; }
.rrf-code summary:focus-visible { outline: 3px solid var(--_ink); outline-offset: 3px; }
.rrf-code .rrf-input { min-height: 46px; }
.rrf-buy__price { margin: 0 0 16px !important; font-family: var(--_display); font-size: 2.25rem; font-weight: 900; color: var(--_ink); line-height: 1.1; }
.rrf-buy__price span + span { display: block; margin-top: 6px; font-family: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--_muted); }
.rrf-upgrade .rrf-error { margin-top: 8px; }

/* Affiliate join and dashboard */
.rrf-join h2 { margin-bottom: 4px; }
.rrf-check--top { align-items: flex-start; }
.rrf-check--top input { margin-top: 3px; flex: 0 0 auto; }
.rrf-check--top span { font-weight: 500; line-height: 1.45; }
.rrf-btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.rrf-aff__link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 6px !important; font-family: var(--_display); font-size: clamp(1.125rem, 0.9rem + 1.2vw, 1.625rem); font-weight: 800; color: var(--_mint); word-break: break-all; }
.rrf-aff__built { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.rrf-aff__built code { padding: 8px 12px; border-radius: 10px; background: var(--_paper); color: var(--_ink); font-size: 0.9375rem; word-break: break-all; }
.rrf-aff__qr { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rrf-aff__qr [data-aff-qr] { width: 132px; height: 132px; padding: 6px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule); }
.rrf-aff__qr svg { display: block; width: 100%; height: 100%; }
.rrf-aff__qr svg path { fill: var(--_forest); }
.rrf-table-wrap { overflow-x: auto; }
.rrf-aff-table { width: 100%; border-collapse: collapse; font-size: 0.9063rem; font-variant-numeric: tabular-nums; }
.rrf-aff-table th, .rrf-aff-table td { padding: 9px 10px; border-bottom: 1px solid var(--_rule); text-align: left; vertical-align: top; }
.rrf-aff-table th { color: var(--_muted); font-weight: 600; white-space: nowrap; }
.rrf-aff__links { margin: 0; padding-left: 1.2em; }
.rrf-aff__links li { margin-bottom: 8px; }
.rrf-aff__links a { color: var(--_ink); font-weight: 600; }
.rrf-aff .rrf-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: stretch; }
/* Keep wide tables scrolling inside their card on phones. */
.rrf-dash { grid-template-columns: minmax(0, 1fr); }

/* ---------- Bills and subscriptions (1.5.0): phone-first ---------- */
.rrf-billstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.rrf-billstats .rrf-box--wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .rrf-billstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rrf-billstats .rrf-box--wide { grid-column: auto; } }
.rrf-box__small { font-size: 1rem !important; line-height: 1.3; overflow-wrap: anywhere; }

.rrf-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--_paper); }
.rrf-tab2 { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; font-size: 0.9375rem; color: var(--_muted); cursor: pointer; }
.rrf-tab2[aria-selected="true"] { background: #FFFFFF; color: var(--_ink); box-shadow: 0 1px 3px rgba(1, 26, 16, 0.14); }
.rrf-tab2:focus-visible, .rrf-chip:focus-visible, .rrf-bell:focus-visible, .rrf-bill__main:focus-visible, .rrf-cal__day:focus-visible, .rrf-iconbtn:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-billview { padding: 16px 2px 4px; min-height: 120px; }
.rrf-viewnote { margin: 0 0 12px; color: var(--_body); }

.rrf-day { margin: 0 0 14px; }
.rrf-day__head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 800; color: var(--_ink); }
.rrf-day__date { font-weight: 600; color: var(--_muted); }
.rrf-day__sum { margin-left: auto; font-size: 0.875rem; font-weight: 700; color: var(--_muted); font-variant-numeric: tabular-nums; }
.rrf-paypill { padding: 2px 10px; border-radius: 999px; background: var(--_green); color: #FFFFFF; font-size: 0.75rem; font-weight: 700; }
.rrf-billlist { list-style: none; margin: 0; padding: 0; }
.rrf-billlist li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; margin-top: 6px; border-radius: 12px; background: var(--_paper); }
.rrf-billlist__name { color: var(--_ink); font-weight: 600; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; }
.rrf-billlist__amt { font-weight: 800; color: var(--_ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rrf-bellmini { display: inline-flex; color: var(--_green); }
.rrf-bellmini svg { width: 14px; height: 14px; }

.rrf-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rrf-cal__title { margin: 0; text-align: center; display: flex; flex-direction: column; color: var(--_ink); }
.rrf-cal__title span { font-size: 0.875rem; color: var(--_muted); }
.rrf-iconbtn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--_paper); font-size: 1.5rem; line-height: 1; color: var(--_ink); cursor: pointer; }
.rrf-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rrf-cal__dow { font-size: 0.75rem; font-weight: 700; color: var(--_muted); text-align: center; padding: 2px 0 4px; }
.rrf-cal__day { position: relative; min-height: 52px; padding: 6px 4px; border: 0; border-radius: 12px; background: var(--_paper); display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: var(--_ink); cursor: pointer; }
.rrf-cal__num { font-size: 0.875rem; font-weight: 700; }
.rrf-cal__sum { font-size: 0.6875rem; font-weight: 800; color: #7A4B00; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rrf-cal__day.has-bills { background: #FFF1D6; }
.rrf-cal__day.is-today { box-shadow: inset 0 0 0 2px var(--_green); }
.rrf-cal__day.is-picked { background: var(--_ink); color: #FFFFFF; }
.rrf-cal__day.is-picked .rrf-cal__sum { color: #FFE2A6; }
.rrf-cal__paydot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--_green); }
.rrf-cal__day .rrf-cal__paydot { position: absolute; top: 6px; right: 6px; }
.rrf-cal__key { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: 0.8125rem; color: var(--_muted); }
.rrf-cal__keybill { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: #FFF1D6; box-shadow: inset 0 0 0 1px #E8C88A; }
.rrf-cal__key .rrf-cal__paydot { margin-left: 10px; }
@media (min-width: 640px) { .rrf-cal__day { min-height: 64px; } .rrf-cal__sum { font-size: 0.75rem; } }

.rrf-periods { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.rrf-periods li { padding: 14px 16px; border-radius: 14px; background: var(--_paper); }
.rrf-periods__top { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--_ink); }
.rrf-periods__nums { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 8px 0 0; font-size: 0.9375rem; }
.rrf-periods__nums strong { color: var(--_forest); font-variant-numeric: tabular-nums; }
.rrf-meter { display: block; height: 10px; border-radius: 6px; background: rgba(5, 59, 39, 0.12); overflow: hidden; }
.rrf-meter span { display: block; height: 100%; border-radius: 6px; background: var(--_green); }
.rrf-periods li.is-heavy .rrf-meter span { background: #D9922B; }
.rrf-periods li.is-short { background: #FDECEE; }
.rrf-periods li.is-short .rrf-meter span { background: var(--_cost); }
.rrf-periods li.is-short .rrf-periods__nums strong { color: var(--_cost); }
.rrf-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--_tint); color: var(--_forest); font-size: 0.6875rem; font-weight: 800; vertical-align: 2px; }
.rrf-tag--warm { background: #FFF1D6; color: #7A4B00; }
.rrf-paysetup { margin-top: 6px; }
.rrf-paydetails summary, .rrf-remindset summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--_green); cursor: pointer; }

.rrf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rrf-chip { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--_rule); border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--_ink); cursor: pointer; }
.rrf-chip[aria-pressed="true"] { border-color: var(--_ink); background: var(--_ink); color: #FFFFFF; }
.rrf-presets { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rrf-chip--add { flex: 0 0 auto; border-style: dashed; color: var(--_forest); }
.rrf-chip--own { border-style: solid; border-color: var(--_green); }
.rrf-seg-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.rrf-seg-field legend { padding: 0; margin-bottom: 6px; }

.rrf-bills { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.rrf-bill { border-radius: 16px; background: var(--_paper); }
.rrf-bill.is-open { background: #FFFFFF; box-shadow: 0 0 0 2px var(--_ink); }
.rrf-bill__row { display: flex; align-items: center; }
.rrf-bill__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 6px 10px 16px; border: 0; background: transparent; font: inherit; text-align: left; color: var(--_ink); cursor: pointer; border-radius: 16px; }
.rrf-bill__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rrf-bill__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrf-bill__meta { font-size: 0.8125rem; color: var(--_muted); }
.rrf-bill__amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rrf-muted-inline { font-weight: 600; color: var(--_green); }
.rrf-bill__chev { display: inline-flex; color: var(--_muted); transition: transform 0.2s; }
.rrf-bill.is-open .rrf-bill__chev { transform: rotate(90deg); }
.rrf-bell { flex: 0 0 auto; width: 48px; height: 48px; margin-right: 6px; border: 0; border-radius: 12px; background: transparent; color: var(--_field); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rrf-bell[aria-pressed="true"] { color: var(--_green); background: var(--_tint); }
.rrf-bill__edit { display: grid; gap: 12px; padding: 4px 16px 16px; }
@media (min-width: 640px) { .rrf-bill__edit { grid-template-columns: 1.4fr 1fr; } .rrf-bill__edit .rrf-seg-field, .rrf-bill__actions { grid-column: 1 / -1; } }
.rrf-bill__edit .rrf-input input { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--_ink); }
.rrf-bill__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rrf-link--danger { color: var(--_cost); margin-left: auto; }
.rrf-remindset { margin: 6px 0 0; max-width: 520px; }
.rrf-remindset .rrf-input select { width: 100%; border: 0; background: transparent; font: inherit; color: var(--_ink); }
@media (prefers-reduced-motion: reduce) { .rrf-bill__chev { transition: none; } }

/* ---------- Calculators and resource centre (1.5.0) ---------- */
.rrf-calcbox { margin: 8px 0 28px; padding: clamp(18px, 4vw, 28px); border-radius: 22px; background: #FFFFFF; box-shadow: 0 1px 0 var(--_rule), 0 18px 40px -28px rgba(1, 26, 16, 0.35); color: var(--_body); }
.rrf-calcbox__form { display: flex; flex-direction: column; gap: 6px; }
.rrf-calcbox__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.rrf-calcbox__cur { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; }
.rrf-calcbox__result { margin-top: 18px; padding: 20px; border-radius: 18px; background: var(--_tint); }
.rrf-calcbox__label { margin: 0; font-weight: 700; color: var(--_forest); }
.rrf-calcbox__big { margin: 2px 0 2px; font-family: var(--_display); font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); line-height: 1.1; font-weight: 800; color: var(--_ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rrf-calcbox__sub { margin: 0 0 6px; color: var(--_forest); }
.rrf-calcbox__rows { margin: 12px 0 0; display: grid; gap: 0; }
.rrf-calcbox__rows div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-top: 1px solid rgba(5, 59, 39, 0.12); }
.rrf-calcbox__rows dt { color: var(--_body); }
.rrf-calcbox__rows dd { margin: 0; font-weight: 700; color: var(--_ink); font-variant-numeric: tabular-nums; text-align: right; }
.rrf-calcbox .rrf-alert { margin-top: 12px; }
.rrf-calcbox__note { margin: 10px 0 0; }
.rrf-calcbox__cta { margin: 0 0 28px; padding: 16px 18px; border-radius: 16px; background: var(--_paper); }
.rrf-calcbox__cta p { margin: 0; }
.rrf-bars { display: grid; gap: 8px; margin-top: 14px; }
.rrf-bar { display: grid; grid-template-columns: 9em minmax(0, 1fr) 3.5em; gap: 10px; align-items: center; font-size: 0.9375rem; }
.rrf-bar__track { height: 10px; border-radius: 6px; background: rgba(5, 59, 39, 0.12); overflow: hidden; }
.rrf-bar__track span { display: block; height: 100%; border-radius: 6px; background: var(--_green); }
.rrf-bar strong { text-align: right; color: var(--_ink); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .rrf-bar { grid-template-columns: 7em minmax(0, 1fr) 3.2em; } }

.rrf-res { margin: 0 0 32px; }
.rrf-res h2 { margin: 36px 0 14px; font-family: var(--_display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); color: var(--_ink); }
.rrf-res__search { max-width: 560px; }
.rrf-res__search input[type="search"] { width: 100%; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--_ink); }
.rrf-calccards, .rrf-guidecards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rrf-guidecards--big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rrf-calccard, .rrf-guidecard a { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; border-radius: 16px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule); color: var(--_body); text-decoration: none; overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.rrf-calccard { gap: 6px; padding: 16px 18px; }
.rrf-calccard:hover, .rrf-guidecard a:hover { box-shadow: 0 0 0 2px var(--_green); }
.rrf-calccard:focus-visible, .rrf-guidecard a:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-calccard--main { background: var(--_tint); }
.rrf-guidecard__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--_paper); }
.rrf-guidecards--big .rrf-guidecard__img { aspect-ratio: 3 / 2; }
.rrf-guidecard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.rrf-guidecard__topic { font-size: 0.75rem; font-weight: 700; color: var(--_green); }
.rrf-calccard__title, .rrf-guidecard__title { font-weight: 800; color: var(--_ink); line-height: 1.3; }
.rrf-guidecards--big .rrf-guidecard__title { font-size: 1.125rem; }
.rrf-calccard__sum, .rrf-guidecard__sum { font-size: 0.9375rem; line-height: 1.45; }
.rrf-guidecard__min { margin-top: auto; padding-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--_muted); }
@media (prefers-reduced-motion: reduce) { .rrf-calccard, .rrf-guidecard a { transition: none; } }

.rrf-crumbs { font-size: 0.875rem; color: var(--_muted); margin: 0 0 12px; }
.rrf-crumbs a { color: var(--_green); }
.rrf-res__hero { padding: clamp(18px, 4vw, 28px); border-radius: 22px; background: var(--_tint); margin-bottom: 8px; }
.rrf-res__lede { margin: 0 0 14px; font-size: 1.0625rem; color: var(--_ink); max-width: 60ch; }
.rrf-res__search { max-width: 560px; margin: 0; }
.rrf-res__search .rrf-input { background: #FFFFFF; }
.rrf-res__search input[type="search"] { width: 100%; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--_ink); }
.rrf-res__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.rrf-res__popular > span { font-weight: 700; font-size: 0.875rem; color: var(--_forest); }
.rrf-res__stats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--_forest); font-size: 0.9375rem; }
.rrf-res__stats strong { font-size: 1.25rem; color: var(--_ink); }
.rrf-res__check { flex-basis: 100%; font-size: 0.875rem; }
.rrf-res__jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(5, 59, 39, 0.15); font-size: 0.9375rem; font-weight: 700; }
.rrf-res__jump a { color: var(--_green); }
.rrf-res__results h2 { display: flex; align-items: baseline; gap: 12px; }
ol.rrf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); counter-reset: none; }
ol.rrf-steps a { display: flex; gap: 14px; align-items: flex-start; height: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule); color: var(--_body); text-decoration: none; }
ol.rrf-steps a:hover { box-shadow: 0 0 0 2px var(--_green); }
ol.rrf-steps a:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
ol.rrf-steps .rrf-steps__n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--_forest); color: #FFFFFF; font-weight: 800; }
ol.rrf-steps a > span:last-child { display: flex; flex-direction: column; gap: 2px; }
ol.rrf-steps strong { color: var(--_ink); }
ol.rrf-steps a > span:last-child span { font-size: 0.9375rem; }
.rrf-topiccards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rrf-topiccard { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 0; border-radius: 16px; background: var(--_paper); text-align: left; font: inherit; color: var(--_body); cursor: pointer; }
.rrf-topiccard:hover { box-shadow: 0 0 0 2px var(--_green); }
.rrf-topiccard:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-topiccard strong { color: var(--_ink); font-size: 1.0625rem; }
.rrf-topiccard em { font-style: normal; font-weight: 700; font-size: 0.8125rem; color: var(--_green); margin-top: auto; }
.rrf-res__filters { margin: 0 0 6px; }
.rrf-res__topic h3 { font-family: var(--_display); font-size: 1.125rem; color: var(--_ink); margin: 24px 0 12px; }
.rrf-quick { margin: 0; padding-left: 1.2em; columns: 2 280px; column-gap: 32px; }
.rrf-quick li { margin: 0 0 10px; break-inside: avoid; }
.rrf-quick a { color: var(--_green); font-weight: 600; }
.rrf-res__cta { margin: 36px 0 0; padding: clamp(18px, 4vw, 28px); border-radius: 22px; background: var(--_forest); color: #E6F4EC; }
.rrf-res__cta h2 { margin: 0 0 8px !important; color: #FFFFFF !important; }
.rrf-res__cta p { margin: 0 0 16px; max-width: 60ch; }
.rrf-res__standards ul { margin: 0 0 10px; padding-left: 1.2em; }
.rrf-res__standards li { margin-bottom: 8px; }
.rrf-related { margin: 32px 0; }
.rrf-related h2, .rrf-guide-calc h2 { font-family: var(--_display); font-size: 1.375rem; color: var(--_ink); margin: 0 0 12px; }
.rrf-guide-calc { margin: 36px 0 0; }
.rrf-guide-meta { font-size: 0.875rem; font-weight: 600; color: var(--_muted); }
.rrf-guide-meta a { color: inherit; }

/* ---------- Guide levels ---------- */
.rrf-level { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; color: var(--_forest); white-space: nowrap; }
.rrf-level__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.rrf-level__bars i { display: block; width: 4px; border-radius: 1px; background: rgba(5, 59, 39, 0.18); }
.rrf-level__bars i:nth-child(1) { height: 5px; }
.rrf-level__bars i:nth-child(2) { height: 8px; }
.rrf-level__bars i:nth-child(3) { height: 12px; }
.rrf-level--1 .rrf-level__bars i:nth-child(-n+1),
.rrf-level--2 .rrf-level__bars i:nth-child(-n+2),
.rrf-level--3 .rrf-level__bars i { background: var(--_green); }
.rrf-guidecard__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rrf-guidecard__foot .rrf-guidecard__min { margin: 0; padding: 0; }
.rrf-guide-meta .rrf-level { margin-left: 6px; vertical-align: middle; }
.rrf-chip__n { margin-left: 4px; font-weight: 600; opacity: 0.7; }
.rrf-res__levels { margin-top: 8px; }

.rrf-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.rrf-ladder__rung { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule); }
.rrf-ladder__rung--1 { box-shadow: inset 0 4px 0 #9FD3B5, 0 0 0 1px var(--_rule); }
.rrf-ladder__rung--2 { box-shadow: inset 0 4px 0 #2E9A66, 0 0 0 1px var(--_rule); }
.rrf-ladder__rung--3 { box-shadow: inset 0 4px 0 var(--_forest), 0 0 0 1px var(--_rule); }
.rrf-res .rrf-ladder h3 { margin: 0; font-size: 1rem; }
.rrf-ladder h3 .rrf-level { font-size: 1rem; color: var(--_ink); }
.rrf-ladder p { margin: 0; font-size: 0.9375rem; color: var(--_muted); }
.rrf-ladder ul { list-style: none; margin: 0; padding: 0; display: grid; }
.rrf-ladder ul a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--_rule); color: var(--_ink); font-weight: 600; text-decoration: none; line-height: 1.3; }
.rrf-ladder ul li:last-child a { border-bottom: 0; }
.rrf-ladder ul a:hover { color: var(--_green); text-decoration: underline; }
.rrf-ladder .rrf-link { align-self: flex-start; min-height: 44px; margin-top: auto; }

/* ---------- Calculator row near the top ---------- */
.rrf-res__calcrow { margin-top: 18px; }
.rrf-res .rrf-res__calcrow-h { margin: 0 0 8px; font-size: 1rem; color: var(--_forest); }
.rrf-calcrow { list-style: none; margin: 0 calc(-1 * clamp(18px, 4vw, 28px)); padding: 2px clamp(18px, 4vw, 28px) 6px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.rrf-calcrow li { flex: 0 0 auto; scroll-snap-align: start; }
.rrf-calcrow__item { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 8px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule); color: var(--_ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.25; }
.rrf-calcrow__item strong { font-weight: 700; }
.rrf-calcrow__item span { font-size: 0.8125rem; color: var(--_muted); }
.rrf-calcrow__item--main { background: var(--_forest); color: #FFFFFF; box-shadow: none; }
.rrf-calcrow__item--main span { color: rgba(255, 255, 255, 0.8); }
.rrf-calcrow__item:hover { box-shadow: 0 0 0 2px var(--_green); }
.rrf-calcrow__item:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
@media (min-width: 900px) { .rrf-calcrow { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 0; } }

/* ---------- Contact page card ---------- */
.rrf-contact { display: grid; gap: clamp(24px, 4vw, 40px); padding: clamp(20px, 4vw, 40px); border-radius: 28px; background: #FFFFFF; box-shadow: 0 30px 60px -36px rgba(13, 59, 46, 0.45), 0 0 0 1px var(--_rule); }
@media (min-width: 960px) { .rrf-contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.rrf-contact .rrf-contact__h { margin: 0 0 6px; font-family: var(--_display); font-weight: 900; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--_forest); line-height: 1.15; }
.rrf-contact__lede { margin: 0 0 18px; color: var(--_muted); }
.rrf-contact__form { display: grid; gap: 16px; }
.rrf-contact__form .rrf-contact__lede { margin-bottom: 2px; }
.rrf-contact__roles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-bottom: 6px; }
.rrf-role { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 60px; padding: 12px 14px; border: 0; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule); color: var(--_ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow 0.15s, background 0.15s; }
.rrf-role strong { font-weight: 700; font-size: 0.9875rem; }
.rrf-role span { font-size: 0.8125rem; color: var(--_muted); }
.rrf-role:hover { box-shadow: 0 0 0 2px var(--_green); }
.rrf-role:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-role[aria-checked="true"] { background: var(--_forest); box-shadow: none; color: #FFFFFF; }
.rrf-role[aria-checked="true"] span { color: rgba(255, 255, 255, 0.82); }
.rrf-contact__grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .rrf-contact__grid { grid-template-columns: 1fr 1fr; } }
.rrf-contact__hint { display: block; margin: 2px 0 8px; font-size: 0.875rem; line-height: 1.5; color: var(--_muted); font-weight: 400; }
.rrf-contact__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.rrf-contact__send p { flex: 1 1 220px; margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--_muted); }
.rrf-contact__sent { display: grid; justify-items: start; gap: 10px; padding: 8px 0; }
.rrf-contact__sent:focus { outline: none; }
.rrf-contact__sent p { margin: 0; }
.rrf-contact__tick { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--_tint); color: var(--_green); }
.rrf-contact__side { padding: clamp(20px, 3vw, 28px); border-radius: 22px; background: #FFF6E5; }
.rrf-contact .rrf-contact__h3 { margin: 0 0 14px; font-family: var(--_display); font-weight: 900; font-size: 1.25rem; color: var(--_forest); }
.rrf-contact__next { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; counter-reset: rrfnext; }
.rrf-contact__next li { position: relative; padding-left: 38px; line-height: 1.5; color: var(--_body); counter-increment: rrfnext; }
.rrf-contact__next li::before { content: counter(rrfnext); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--rr-amber, #F5A524); color: var(--_ink); font-weight: 800; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; }
.rrf-contact__quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rrf-contact__quick a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 12px; background: #FFFFFF; color: var(--_ink); font-weight: 600; text-decoration: none; line-height: 1.3; transition: box-shadow 0.15s; }
.rrf-contact__quick a svg { flex: none; color: var(--_green); }
.rrf-contact__quick a:hover { box-shadow: 0 0 0 2px var(--_green); }
.rrf-contact__quick a:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rrf-role, .rrf-contact__quick a { transition: none; } }
.rrf-contact__form[hidden], .rrf-contact__sent[hidden] { display: none; }

/* ---------- Get started (dashboard) ---------- */
.rrf-start__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rrf-start__head h2 { margin: 0; }
.rrf-start__head .rrf-muted { margin: 4px 0 0; }
.rrf-start__hide { flex: none; color: var(--_muted); font-size: 0.875rem; }
.rrf-start__meter { height: 8px; border-radius: 999px; background: var(--_tint); margin: 14px 0 6px; overflow: hidden; }
.rrf-start__meter span { display: block; height: 100%; width: 0; background: var(--_green); border-radius: inherit; transition: width .3s ease; }
.rrf-start__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rrf-start__step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--_rule); margin: 0; }
.rrf-start__step:first-child { border-top: 0; }
.rrf-start__mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--_field); display: grid; place-items: center; color: #fff; }
.rrf-start__step.is-done .rrf-start__mark { background: var(--_green); border-color: var(--_green); }
.rrf-start__step.is-next .rrf-start__mark { border-color: var(--_green); box-shadow: 0 0 0 4px var(--_tint); }
.rrf-start__text strong { display: block; color: var(--_ink); }
.rrf-start__text span { display: block; color: var(--_muted); font-size: 0.875rem; line-height: 1.45; margin-top: 2px; }
.rrf-start__step.is-done .rrf-start__text strong { color: var(--_muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.rrf-start__go { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--_rule); color: var(--_forest); font-weight: 700; text-decoration: none; }
.rrf-start__go:hover { border-color: var(--_green); }
.rrf-start__step.is-next .rrf-start__go { background: var(--_green); border-color: var(--_green); color: #fff; }
.rrf-start__step.is-done .rrf-start__go { border-color: transparent; color: var(--_muted); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .rrf-start__meter span { transition: none; } }
.rrf-join__rules { margin: 18px 0 6px; padding: 16px 18px; border-radius: 16px; background: var(--_tint); border: 1px solid var(--_rule); }
.rrf-join__rules h3 { margin: 0 0 8px; font-size: 1rem; color: var(--_ink); }
.rrf-join__rules ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--_body); }
.rrf-join__rules .rrf-small { margin: 10px 0 0; }

/* Free plan limits on bills */
.rrf-billlock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: 16px; background: var(--_tint); border: 1px dashed var(--_field); margin: 8px 0; }
.rrf-billlock p { margin: 0; flex: 1 1 260px; color: var(--_body); font-size: 0.9375rem; line-height: 1.45; }
.rrf-billlock svg { vertical-align: -2px; color: var(--_forest); }
.rrf-billnote { margin: 8px 0 0; }
.rrf-bell--locked { opacity: .55; }
.rrf-tab2 svg { vertical-align: -2px; margin-left: 2px; }

/* Free plan: the prize in the hero card, and this month's payments locked in the upgrade card. */
.rrf-hero-card .rrf-prize { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); color: #FFFFFF; font-weight: 700; line-height: 1.45; }
.rrf-prize a { color: var(--rr-sun, #F5B83D); text-underline-offset: 3px; white-space: nowrap; }
.rrf-prize a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.rrf-locked { margin: 4px 0 14px; }
.rrf-locked:empty { display: none; }
.rrf-locked__head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--_forest); }
.rrf-locked__list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; user-select: none; }
.rrf-locked__list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--_paper); }
.rrf-locked__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--_tint); color: var(--_forest); font-size: 0.8125rem; font-weight: 800; }
.rrf-locked__blur { filter: blur(5px); color: var(--_ink); white-space: nowrap; overflow: hidden; }
.rrf-locked__amt { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Price label and the refund promise next to every buy button. */
.rrf-pricenote { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--rr-sun, #F5B83D); color: var(--_ink); font-size: 0.8125rem; font-weight: 800; }
.rrf-refund { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--_body); }
.rrf-refund strong { color: var(--_forest); }
.rrf-upgrade__action .rrf-refund, .rrf-upgrade__action .rrf-pricenote { text-align: center; }
.rrf-upgrade__action .rrf-pricenote { display: table; margin: 0 auto 10px; }
.rrf-locked__head svg { flex: none; }

/* ---------- Dashboard in sections (1.8.0) ---------- */
.rrf-dash { --rrf-sticky: var(--rr-header, 68px); }
.admin-bar .rrf-dash { --rrf-sticky: calc(var(--rr-header, 68px) + 32px); }
@media (max-width: 782px) { .admin-bar .rrf-dash { --rrf-sticky: calc(var(--rr-header, 68px) + 46px); } }

/* A shorter summary card, so the sections start higher up. */
.rrf-hero-card { padding: clamp(20px, 3.5vw, 30px); }
.rrf-hero-card .rrf-stats { margin-top: 16px; }
@media (min-width: 900px) {
	.rrf-hero-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 28px; align-items: center; }
	.rrf-hero-card > :not(.rrf-stats) { grid-column: 1; }
	.rrf-hero-card .rrf-stats { grid-column: 2; grid-row: 1 / span 6; grid-template-columns: 1fr; margin-top: 0; align-self: center; }
	.rrf-hero-card .rrf-stat { padding: 11px 16px; }
}

@media (max-width: 899px) {
	.rrf-hero-card .rrf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rrf-hero-card .rrf-stat { padding: 10px 12px; }
	.rrf-hero-card .rrf-stat strong { font-size: 1.0625rem; }
}

/* Tab bar: sticky under the site header; scrolls sideways on phones. */
.rrf-dnav { position: sticky; top: var(--rrf-sticky); z-index: 20; margin: 0 -4px; padding: 6px 4px; background: var(--_paper); }
.rrf-dnav__bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule), 0 6px 18px rgba(5, 59, 39, 0.06); scroll-snap-type: x proximity; }
.rrf-dnav__bar::-webkit-scrollbar { display: none; }
.rrf-dtab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--_body); font: inherit; font-weight: 700; font-size: 0.9375rem; white-space: nowrap; cursor: pointer; scroll-snap-align: center; }
.rrf-dtab:hover { background: var(--_tint); color: var(--_forest); }
.rrf-dtab[aria-selected="true"] { background: var(--_forest); color: #FFFFFF; }
.rrf-dtab:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-dtab svg { flex: none; }
.rrf-dtab__lock { opacity: 0.7; }
@media (max-width: 560px) { .rrf-dtab { padding: 8px 12px; font-size: 0.875rem; } }

.rrf-panel-tab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; scroll-margin-top: calc(var(--rrf-sticky) + 80px); }
.rrf-panel-tab[hidden] { display: none !important; }
.rrf-panel-tab:focus { outline: none; }
.rrf-panel-tab > section { scroll-margin-top: calc(var(--rrf-sticky) + 80px); }

/* Overview: plan at a glance. */
.rrf-tiles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.rrf-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border: 0; border-radius: 18px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--_rule); color: var(--_body); font: inherit; text-align: left; cursor: pointer; }
.rrf-tile:hover { box-shadow: 0 0 0 2px var(--_green); }
.rrf-tile:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-tile__title { font-size: 0.8125rem; font-weight: 700; color: var(--_muted); }
.rrf-tile strong { font-family: var(--_display); font-size: 1.25rem; color: var(--_ink); }
.rrf-tile__small { font-size: 0.875rem; color: var(--_muted); }

/* "How this works" on each card. */
.rrf-help { margin: 2px 0 14px; }
.rrf-help summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--_green); font-weight: 700; font-size: 0.875rem; cursor: pointer; list-style: none; }
.rrf-help summary::-webkit-details-marker { display: none; }
.rrf-help__i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--_tint); color: var(--_forest); font-size: 0.75rem; font-weight: 800; }
.rrf-help[open] summary { color: var(--_forest); }
.rrf-help p { margin: 6px 0 0 !important; padding: 12px 14px; border-radius: 12px; background: var(--_tint); color: var(--_ink); font-size: 0.9375rem; line-height: 1.5; max-width: 70ch; }
.rrf-help summary:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; border-radius: 6px; }

/* Plan tools on the free plan. */
.rrf-tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 14px 0 18px; padding: 0; list-style: none; }
.rrf-tl li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--_paper); }
.rrf-tl strong { color: var(--_ink); }
.rrf-tl span { font-size: 0.9375rem; color: var(--_body); }

/* Account. */
.rrf-acc { display: grid; }
.rrf-acc__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; padding: 18px 0; border-top: 1px solid var(--_rule); }
.rrf-acc__row:first-child { border-top: 0; padding-top: 6px; }
.rrf-acc__row > div:first-child { flex: 1 1 320px; min-width: 0; }
.rrf-acc__row .rrf-h3 { margin: 0 0 4px; }
.rrf-acc__value { margin: 0 0 2px; font-weight: 700; color: var(--_ink); overflow-wrap: anywhere; }
.rrf-acc__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rrf-acc__more { flex: 1 1 100%; }
.rrf-acc__more > summary { display: inline-block; cursor: pointer; }
.rrf-acc__form { display: grid; gap: 10px; max-width: 460px; margin-top: 10px; }
.rrf-acc__form .rrf-btn { justify-self: start; }
.rrf-acc__row--danger { padding-bottom: 0; }
.rrf-account .rrf-check { margin: 0; }
@media (min-width: 700px) { .rrf-acc__row:first-child { flex-wrap: wrap; } .rrf-acc__more { flex: 0 1 auto; } .rrf-acc__more[open] { flex-basis: 100%; } }

@media print {
	.rrf-dnav, .rrf-tiles, .rrf-help, .rrf-toolslock { display: none !important; }
	.rrf-panel-tab[hidden] { display: grid !important; }
}

/* "How your dashboard works" video (1.8.2) */
.rrf-howto { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--_tint); }
.rrf-howto__play { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0; border: 0; background: none; color: var(--_ink); font: inherit; text-align: left; cursor: pointer; }
.rrf-howto__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--_forest); color: #FFFFFF; padding-left: 2px; }
.rrf-howto__play:hover .rrf-howto__icon { background: var(--_green); }
.rrf-howto__play:focus-visible { outline: 3px solid var(--_green); outline-offset: 3px; border-radius: 12px; }
.rrf-howto__text { display: flex; flex-direction: column; gap: 2px; }
.rrf-howto__text strong { font-size: 1rem; }
.rrf-howto__text span { font-size: 0.875rem; color: var(--_body); }
.rrf-howto__hide { flex: none; font-size: 0.875rem; }
.rrf-vdialog { width: min(960px, calc(100vw - 24px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.rrf-vdialog::backdrop { background: rgba(5, 25, 18, 0.78); }
.rrf-vdialog__box { position: relative; }
.rrf-vdialog__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.rrf-vdialog__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rrf-vdialog__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--_ink, #10251B); font-size: 26px; line-height: 1; cursor: pointer; }
.rrf-vdialog__close:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* ---------- What do you want to plan? (1.9.0) ---------- */
.rrf-welcome { box-shadow: 0 0 0 2px var(--_green); }
.rrf-welcome ~ #rrf-start { display: none !important; }
.rrf-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 16px 0 18px; }
.rrf-pick__opt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 44px 16px 16px; border: 0; border-radius: 16px; background: var(--_paper); box-shadow: 0 0 0 1.5px var(--_rule); color: var(--_body); font: inherit; text-align: left; cursor: pointer; }
.rrf-pick__opt svg { flex: none; margin-top: 2px; color: var(--_forest); }
.rrf-pick__opt > span { display: flex; flex-direction: column; gap: 2px; }
.rrf-pick__opt strong { color: var(--_ink); font-size: 1rem; }
.rrf-pick__opt > span > span { font-size: 0.875rem; }
.rrf-pick__tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--_field); }
.rrf-pick__opt:hover { box-shadow: 0 0 0 2px var(--_green); }
.rrf-pick__opt[aria-pressed="true"] { background: var(--_tint); box-shadow: 0 0 0 2px var(--_green); }
.rrf-pick__opt[aria-pressed="true"] .rrf-pick__tick { background: var(--_green); box-shadow: none; }
.rrf-pick__opt[aria-pressed="true"] .rrf-pick__tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.rrf-pick__opt:focus-visible { outline: 3px solid var(--_green); outline-offset: 2px; }
.rrf-welcome__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 !important; }

/* Also plan */
.rrf-alsoplan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rrf-alsoplan[hidden] { display: none; }
.rrf-alsoplan__label { font-weight: 700; color: var(--_muted); font-size: 0.9375rem; margin-right: 4px; }

/* Your month */
.rrf-month__spend { display: grid; gap: 6px; align-content: start; }
.rrf-month__spend .rrf-box { display: flex; flex-direction: column; gap: 2px; }
.rrf-month__toggle { justify-self: start; font-size: 0.875rem; }
.rrf-month__sum { margin-top: 14px; }
.rrf-month__extra { margin-top: 18px; }
.rrf-month__extra[hidden], [data-out="minsBox"][hidden] { display: none !important; }
.rrf-spendcats { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--_paper); }
.rrf-spendcats[hidden] { display: none; }
.rrf-spendcats .rrf-h3 { margin: 0 0 2px; }
.rrf-spendcats .rrf-small { margin: 0 0 10px; }
.rrf-spendcats__rows { display: grid; gap: 8px; margin-bottom: 12px; }
.rrf-spendrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rrf-spendrow .rrf-field { margin: 0; }
.rrf-spendrow__x { font-size: 0.875rem; }
@media (max-width: 520px) { .rrf-spendrow { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); } .rrf-spendrow__x { grid-column: 1 / -1; justify-self: end; margin-top: -4px; } }

/* ---------- Money tools (1.11.0): pay plan, big bills, Can I afford it?, emergency fund ---------- */
.rrf-pays { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .rrf-pays { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rrf-pay { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--_paper); box-shadow: inset 0 0 0 1px var(--_rule); }
.rrf-pay.is-next { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--_green); }
.rrf-pay.is-short { box-shadow: inset 0 0 0 2px var(--_cost); }
.rrf-pay__top { display: flex; justify-content: space-between; gap: 10px; margin: 0; color: var(--_ink); }
.rrf-pay__top span { font-weight: 700; font-variant-numeric: tabular-nums; }
.rrf-paybar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #DCEFE3; }
.rrf-paybar span { display: block; height: 100%; }
.rrf-paybar .b1, .rrf-pay__lines .k1::before { background: #0B6B4B; }
.rrf-paybar .b2, .rrf-pay__lines .k2::before { background: #F5A524; }
.rrf-paybar .b3, .rrf-pay__lines .k3::before { background: #4FB286; }
.rrf-paybar .b4, .rrf-pay__lines .k4::before { background: #0D3B2E; }
.rrf-pay__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9375rem; }
.rrf-pay__lines li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; color: var(--_ink); }
.rrf-pay__lines li > span:first-child { position: relative; padding-left: 16px; }
.rrf-pay__lines li::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 3px; margin-top: 7px; }
.rrf-pay__lines li > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rrf-pay__lines small { display: block; font-size: 0.8125rem; color: var(--_muted); }
.rrf-pay__left { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--_rule); color: var(--_ink); font-weight: 700; }
.rrf-pay__left strong { font-size: 1.375rem; color: var(--_green); font-variant-numeric: tabular-nums; }
.rrf-pay.is-short .rrf-pay__left strong { color: var(--_cost); }
.rrf-bigtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--_tint); color: var(--_ink); font-weight: 700; }
.rrf-bigtotal strong { font-size: 1.5rem; color: var(--_green); font-variant-numeric: tabular-nums; }
.rrf-bigbills { list-style: none; margin: 0; padding: 0; }
.rrf-bigbills li { padding: 12px 0; border-top: 1px solid var(--_rule); }
.rrf-bigbills li:first-child { border-top: 0; }
.rrf-bigbills__top { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 4px; color: var(--_ink); }
.rrf-bigbills__top span { font-weight: 700; color: var(--_green); white-space: nowrap; }
.rrf-afford__price { max-width: 320px; margin-top: 14px; }
.rrf-afford { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.rrf-afford li { display: grid; gap: 4px; padding: 14px 16px 14px 18px; border-radius: 14px; background: var(--_paper); border-left: 5px solid var(--_rule); color: var(--_ink); line-height: 1.5; }
.rrf-afford__yes { border-left-color: var(--_green) !important; background: var(--_tint) !important; }
.rrf-afford__wait { border-left-color: #F5A524 !important; }
.rrf-afford__no { border-left-color: var(--_cost) !important; }
.rrf-afford__goal { border-left-color: #4FB286 !important; }
.rrf-efund { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--_tint); }
.rrf-efund:empty { display: none; }
.rrf-efund__title { margin: 0 0 10px; color: var(--_ink); line-height: 1.5; }
.rrf-efund__title strong { display: block; }
.rrf-locktease .rrf-locked__list { margin: 12px 0 16px; }
.rrf-pays--one { grid-template-columns: minmax(0, 520px) !important; }
.rrf-pays--one .rrf-pay { padding: 20px; }
.rrf-pays--one .rrf-pay__left strong { font-size: 1.75rem; }
.rrf-paylater { margin-top: 14px; }
.rrf-paylater > summary { cursor: pointer; font-weight: 700; color: var(--_green); }
.rrf-paylater .rrf-pays { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rrf-paypre { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--_paper); color: var(--_ink); font-size: 0.9375rem; line-height: 1.5; }
.rrf-payplan .rrf-paydetails { margin-top: 12px; }
.rrf-payplan .rrf-paydetails > summary { cursor: pointer; font-weight: 700; color: var(--_green); }
