/* ==========================================================================
   Reverse Mortgage 101 — learning guide template
   Scoped under .rm101 so it never leaks into the rest of the theme.
   Brand: navy #142f57, blue #2E5EB1 / #3b7ade, ink #0f172a.
   ========================================================================== */

.rm101 {
	--rm-navy: #142f57;
	--rm-blue: #2e5eb1;
	--rm-blue-bright: #3b7ade;
	--rm-blue-soft: #eaf1fb;
	--rm-ink: #0f172a;
	--rm-body: #334155;
	--rm-slate: #64748b;
	--rm-border: #e2e8f0;
	--rm-bg: #f8fafc;
	--rm-gold: #f4b840;
	--rm-radius: 14px;
	--rm-heading-font: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
	--rm-body-font: "Inter", Arial, Helvetica, sans-serif;
	background: #fff;
	font-family: var(--rm-body-font);
	color: var(--rm-body);
	overflow-x: clip;
}

.rm101 *,
.rm101 *::before,
.rm101 *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Reading progress bar
   -------------------------------------------------------------------------- */

.rm101-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: transparent;
	z-index: 99999;
	pointer-events: none;
}

.rm101-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--rm-blue);
	border-radius: 0 3px 3px 0;
	transition: width 80ms linear;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.rm101-hero {
	position: relative;
	overflow: hidden;
	background: var(--rm-navy);
	padding: 170px 24px 84px;
	text-align: center;
	color: #fff;
}

.rm101-hero-inner {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
	z-index: 1;
}

.rm101-crumbs {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 22px;
}

.rm101-crumbs a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.rm101-crumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.rm101-hero h1 {
	font-family: var(--rm-heading-font);
	font-size: clamp(34px, 4.6vw, 54px);
	font-weight: 700;
	line-height: 1.14;
	color: #fff;
	margin: 0 0 18px;
}

.rm101-hero-sub {
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	max-width: 640px;
	margin: 0 auto 26px;
}

.rm101-hero-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 0;
	margin: 0 0 34px;
}

.rm101-hero-chips li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(4px);
	border-radius: 999px;
	padding: 7px 15px;
	font-size: 13.5px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}

.rm101-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.rm101-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--rm-heading-font);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1;
	padding: 15px 28px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	cursor: pointer;
}

.rm101-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.rm101-btn-light {
	background: #fff;
	color: var(--rm-navy);
	box-shadow: 0 8px 24px rgba(8, 20, 45, 0.35);
}

.rm101-btn-light:hover {
	color: var(--rm-blue);
}

.rm101-btn-ghost {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.rm101-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff;
}

.rm101-btn-solid {
	background: var(--rm-blue);
	color: #fff;
	width: 100%;
}

.rm101-btn-solid:hover {
	background: var(--rm-navy);
	color: #fff;
	box-shadow: 0 8px 20px rgba(46, 94, 177, 0.35);
}

/* --------------------------------------------------------------------------
   Layout: sticky sidebar + article
   -------------------------------------------------------------------------- */

.rm101-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 760px);
	justify-content: center;
	gap: 56px;
	max-width: 1220px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}

.rm101-sidebar {
	position: relative;
}

.rm101-sidebar-scroll {
	position: sticky;
	top: 110px;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-right: 4px;
	scrollbar-width: thin;
}

/* Table of contents card */

.rm101-toc-card {
	background: #fff;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
	padding: 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.rm101-toc-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.rm101-toc-head h2 {
	font-family: var(--rm-heading-font);
	font-size: 16px;
	font-weight: 700;
	color: var(--rm-ink);
	margin: 0;
}

.rm101-toc-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--rm-slate);
	white-space: nowrap;
}

.rm101-toc-meter {
	height: 5px;
	background: var(--rm-border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 14px;
}

.rm101-toc-meter span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--rm-blue);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.rm101-toc {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rm101-toc a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--rm-body);
	text-decoration: none;
	transition: background 0.12s ease, color 0.12s ease;
}

.rm101-toc a:hover {
	background: var(--rm-blue-soft);
	color: var(--rm-blue);
}

.rm101-toc .rm101-toc-num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rm-bg);
	border: 1px solid var(--rm-border);
	font-size: 11px;
	font-weight: 700;
	color: var(--rm-slate);
	transition: all 0.15s ease;
}

.rm101-toc a.is-active {
	background: var(--rm-blue-soft);
	color: var(--rm-navy);
	font-weight: 600;
}

.rm101-toc a.is-active .rm101-toc-num {
	background: var(--rm-blue);
	border-color: var(--rm-blue);
	color: #fff;
}

.rm101-toc a.is-read:not(.is-active) {
	color: var(--rm-slate);
}

.rm101-toc a.is-read .rm101-toc-num {
	background: #e7f0e9;
	border-color: #cfe3d4;
	color: #2f7d46;
}

/* Sidebar CTA card */

.rm101-side-cta {
	background: var(--rm-navy);
	border-radius: var(--rm-radius);
	padding: 22px;
	color: #fff;
	text-align: center;
}

.rm101-side-cta h3 {
	font-family: var(--rm-heading-font);
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
}

.rm101-side-cta p {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 16px;
	line-height: 1.5;
}

.rm101-side-cta .rm101-btn-solid {
	background: #fff;
	color: var(--rm-navy);
	font-size: 14.5px;
	padding: 13px 20px;
}

.rm101-side-cta .rm101-btn-solid:hover {
	color: var(--rm-blue);
	box-shadow: 0 8px 20px rgba(8, 20, 45, 0.3);
}

/* Sidebar link groups */

.rm101-side-links {
	background: #fff;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
	overflow: hidden;
}

.rm101-side-links summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	font-family: var(--rm-heading-font);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--rm-ink);
	cursor: pointer;
	list-style: none;
}

.rm101-side-links summary::-webkit-details-marker {
	display: none;
}

.rm101-side-links summary svg {
	flex: 0 0 auto;
	color: var(--rm-slate);
	transition: transform 0.15s ease;
}

.rm101-side-links[open] summary svg {
	transform: rotate(180deg);
}

.rm101-side-links ul {
	list-style: none;
	margin: 0;
	padding: 2px 8px 10px;
}

.rm101-side-links li a {
	display: block;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--rm-body);
	text-decoration: none;
}

.rm101-side-links li a:hover {
	background: var(--rm-blue-soft);
	color: var(--rm-blue);
}

/* --------------------------------------------------------------------------
   Byline
   -------------------------------------------------------------------------- */

.rm101-byline {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: var(--rm-bg);
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
	margin-bottom: 40px;
}

.rm101-byline-avatars {
	display: flex;
	flex: 0 0 auto;
}

.rm101-byline-avatars img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 2.5px solid #fff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
	background: #fff;
}

.rm101-byline-avatars img + img {
	margin-left: -14px;
}

.rm101-byline-names {
	font-family: var(--rm-heading-font);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--rm-ink);
	line-height: 1.5;
	margin: 0 0 3px;
}

.rm101-byline-names a {
	color: var(--rm-blue);
	text-decoration: none;
}

.rm101-byline-names a:hover {
	text-decoration: underline;
}

.rm101-byline-sub {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--rm-slate);
	margin: 0;
}

.rm101-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--rm-slate);
	opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Prose (WYSIWYG content)
   -------------------------------------------------------------------------- */

.rm101-prose {
	font-size: 17.5px;
	line-height: 1.78;
	color: var(--rm-body);
}

.rm101-prose > *:first-child {
	margin-top: 0;
}

.rm101-prose p {
	margin: 0 0 1.35em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.rm101-prose a {
	color: var(--rm-blue);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(46, 94, 177, 0.35);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.12s ease;
}

.rm101-prose a:hover {
	text-decoration-color: var(--rm-blue);
}

.rm101-prose strong {
	color: var(--rm-ink);
	font-weight: 600;
}

.rm101-prose ul,
.rm101-prose ol {
	margin: 0 0 1.5em;
	padding-left: 6px;
	list-style: none;
}

.rm101-prose ul li,
.rm101-prose ol li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 0.7em;
	font-size: inherit;
	line-height: 1.65;
}

.rm101-prose ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rm-blue-bright);
	opacity: 0.85;
}

.rm101-prose ol {
	counter-reset: rm101-ol;
}

.rm101-prose ol li {
	counter-increment: rm101-ol;
	padding-left: 38px;
}

.rm101-prose ol li::before {
	content: counter(rm101-ol);
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rm-blue-soft);
	color: var(--rm-blue);
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Chapter headings (decorated by JS) */

.rm101-prose h2 {
	font-family: var(--rm-heading-font);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rm-ink);
	margin: 2em 0 0.7em;
	scroll-margin-top: 130px;
}

.rm101-prose h2.rm101-chapter-heading {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: clamp(27px, 3vw, 34px);
	line-height: 1.2;
	margin: 2.4em 0 0.8em;
	padding-top: 1.6em;
	border-top: 1px solid var(--rm-border);
}

.rm101-prose h2.rm101-chapter-heading:first-child,
.rm101-prose > h2.rm101-chapter-heading:first-of-type:first-child {
	border-top: 0;
	padding-top: 0;
}

.rm101-ch-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	font-family: var(--rm-heading-font);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rm-blue);
}

.rm101-ch-kicker::after {
	content: "";
	width: 44px;
	height: 2px;
	border-radius: 2px;
	background: var(--rm-blue-bright);
}

.rm101-prose h3 {
	font-family: var(--rm-heading-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rm-ink);
	margin: 1.8em 0 0.6em;
	scroll-margin-top: 130px;
}

.rm101-prose h4 {
	font-family: var(--rm-heading-font);
	font-size: 17px;
	font-weight: 700;
	color: var(--rm-ink);
	margin: 1.6em 0 0.5em;
}

.rm101-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--rm-radius);
	margin: 10px 0 20px;
}

.rm101-prose blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	border-left: 4px solid var(--rm-blue-bright);
	background: var(--rm-blue-soft);
	border-radius: 0 var(--rm-radius) var(--rm-radius) 0;
	font-style: italic;
	color: var(--rm-navy);
}

.rm101-prose hr {
	border: 0;
	height: 1px;
	background: var(--rm-border);
	margin: 2.5em 0;
}

/* "Bottom Line" callouts (decorated by JS) */

.rm101-prose p.rm101-bottomline {
	position: relative;
	background: var(--rm-blue-soft);
	border: 1px solid #d3e2f6;
	border-left: 4px solid var(--rm-blue);
	border-radius: 10px;
	padding: 18px 22px 18px 52px;
	color: var(--rm-navy);
	margin: 1.6em 0;
}

.rm101-prose p.rm101-bottomline::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 21px;
	width: 18px;
	height: 18px;
	background: var(--rm-blue);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path d="M10 1.5c-3.6 0-6.5 2.7-6.5 6.1 0 2 1 3.7 2.6 4.8v2.1c0 .5.4 1 1 1h5.8c.6 0 1-.5 1-1v-2.1c1.6-1.1 2.6-2.8 2.6-4.8 0-3.4-2.9-6.1-6.5-6.1Z" stroke="white" stroke-width="1.6"/><path d="M7.5 18.5h5" stroke="white" stroke-width="1.6" stroke-linecap="round"/></svg>') no-repeat center / contain;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path d="M10 1.5c-3.6 0-6.5 2.7-6.5 6.1 0 2 1 3.7 2.6 4.8v2.1c0 .5.4 1 1 1h5.8c.6 0 1-.5 1-1v-2.1c1.6-1.1 2.6-2.8 2.6-4.8 0-3.4-2.9-6.1-6.5-6.1Z" stroke="white" stroke-width="1.6"/><path d="M7.5 18.5h5" stroke="white" stroke-width="1.6" stroke-linecap="round"/></svg>') no-repeat center / contain;
}

.rm101-prose p.rm101-bottomline strong:first-child {
	color: var(--rm-blue);
}

/* Playbook teaser cards (decorated by JS) */

.rm101-playbook-card {
	position: relative;
	background: #fdf8ea;
	border: 1px solid #f3e3bb;
	border-radius: var(--rm-radius);
	padding: 24px 26px;
	margin: 2.2em 0;
}

.rm101-playbook-card::before {
	content: "Inside the Free Playbook";
	display: inline-flex;
	align-items: center;
	font-family: var(--rm-heading-font);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #96690b;
	background: #faedcb;
	border-radius: 999px;
	padding: 5px 12px;
	margin-bottom: 12px;
}

.rm101-playbook-card p {
	margin: 0 0 14px;
	color: #4a3c1e;
	font-size: 16.5px;
}

.rm101-playbook-card p:last-child {
	margin-bottom: 0;
}

.rm101-prose a.rm101-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--rm-blue);
	color: #fff;
	font-family: var(--rm-heading-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	padding: 13px 24px;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rm101-prose a.rm101-download-btn:hover {
	background: var(--rm-navy);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(46, 94, 177, 0.3);
	color: #fff;
}

.rm101-prose p.rm101-download-wrap {
	margin: 1.4em 0 1.8em;
}

/* Tables inside prose + comparison table */

.rm101-table-wrap {
	overflow-x: auto;
	margin: 2em 0;
	border-radius: var(--rm-radius);
	border: 1px solid var(--rm-border);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.rm101-table,
.rm101-table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
	line-height: 1.55;
	background: #fff;
	margin: 0;
}

.rm101-table th,
.rm101-table-wrap table th {
	background: var(--rm-navy);
	color: #fff;
	font-family: var(--rm-heading-font);
	font-size: 14.5px;
	font-weight: 700;
	text-align: left;
	padding: 14px 18px;
	white-space: nowrap;
}

.rm101-table td,
.rm101-table-wrap table td {
	padding: 13px 18px;
	border-top: 1px solid var(--rm-border);
	color: var(--rm-body);
	vertical-align: top;
	min-width: 180px;
}

.rm101-table tbody tr:nth-child(even) td,
.rm101-table-wrap table tbody tr:nth-child(even) td {
	background: var(--rm-bg);
}

/* --------------------------------------------------------------------------
   Checklist sections (ACF repeaters)
   -------------------------------------------------------------------------- */

.rm101-checklist {
	background: var(--rm-bg);
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
	padding: 26px 28px;
	margin: 2.2em 0;
}

.rm101-checklist > h3 {
	font-family: var(--rm-heading-font);
	font-size: 20px;
	font-weight: 700;
	color: var(--rm-ink);
	margin: 0 0 16px;
}

.rm101-checklist > h3:empty {
	display: none;
}

.rm101-check-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 0;
}

.rm101-check-item + .rm101-check-item {
	border-top: 1px solid var(--rm-border);
}

.rm101-check-icon {
	flex: 0 0 auto;
	color: #2f7d46;
	margin-top: 3px;
}

.rm101-check-body {
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--rm-body);
}

.rm101-check-body p {
	margin: 0 0 0.5em;
}

.rm101-check-body p:last-child {
	margin-bottom: 0;
}

.rm101-check-body strong {
	color: var(--rm-ink);
}

/*
 * Legacy checklist markup can also be embedded directly in an ACF WYSIWYG
 * field. Reset the generic prose heading/image spacing so those rules do not
 * turn each compact row into an oversized block.
 */
.rm101-prose .requirements-list-1 {
	background: var(--rm-bg);
	border: 1px solid var(--rm-border);
	border-top: 7px solid var(--rm-blue);
	border-radius: var(--rm-radius);
	padding: 26px 28px;
	margin: 2.2em 0;
}

.rm101-prose .requirements-list-1 h3 {
	font-family: var(--rm-heading-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rm-ink);
	margin: 0 0 16px;
	padding: 0;
}

.rm101-prose .requirements-list-1 .list-req1 {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 0;
	font-size: 16.5px;
	font-weight: 500;
	line-height: 1.65;
	color: var(--rm-body);
}

.rm101-prose .requirements-list-1 .list-req1 + .list-req1 {
	border-top: 1px solid var(--rm-border);
}

.rm101-prose .requirements-list-1 .list-req1 img {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 3px 0 0;
	border-radius: 0;
}

.rm101-prose .requirements-list-1 .list-req1 br {
	display: none;
}

/* --------------------------------------------------------------------------
   Toolkit / quote CTA
   -------------------------------------------------------------------------- */

.rm101-toolkit {
	position: relative;
	overflow: hidden;
	background: var(--rm-navy);
	border-radius: 18px;
	padding: 38px 40px;
	margin: 3em 0;
	color: #fff;
}

.rm101-kicker {
	display: inline-block;
	font-family: var(--rm-heading-font);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 14px;
}

.rm101-toolkit h2 {
	font-family: var(--rm-heading-font);
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 8px;
}

.rm101-toolkit-copy p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 22px;
	max-width: 520px;
}

.rm101-age-form {
	position: relative;
	z-index: 1;
}

.rm101-age-label {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 10px;
}

.rm101-age-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 480px;
}

.rm101-age-row input {
	flex: 1 1 160px;
	min-width: 0;
	height: 52px;
	border: 0;
	border-radius: 12px;
	padding: 0 18px;
	font-family: var(--rm-body-font);
	font-size: 16px;
	color: var(--rm-ink);
	background: #fff;
	appearance: textfield;
	-moz-appearance: textfield;
}

.rm101-age-row input::-webkit-outer-spin-button,
.rm101-age-row input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rm101-age-row input:focus {
	outline: 3px solid rgba(255, 255, 255, 0.5);
	outline-offset: 1px;
}

.rm101-age-row button {
	flex: 0 0 auto;
	height: 52px;
	border: 0;
	border-radius: 12px;
	padding: 0 26px;
	background: var(--rm-gold);
	color: #3a2a05;
	font-family: var(--rm-heading-font);
	font-size: 15.5px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rm101-age-row button:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.rm101-age-error {
	font-size: 13.5px;
	font-weight: 600;
	color: #ffd9d9;
	margin: 10px 0 0;
}

.rm101-toolkit-note {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   Next-step cards
   -------------------------------------------------------------------------- */

.rm101-next {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 56px;
}

.rm101-next-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
	padding: 22px 24px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rm101-next-card:hover {
	border-color: var(--rm-blue-bright);
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.rm101-next-kicker {
	font-family: var(--rm-heading-font);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--rm-slate);
}

.rm101-next-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--rm-heading-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--rm-ink);
	line-height: 1.35;
}

.rm101-next-title svg {
	flex: 0 0 auto;
	color: var(--rm-blue);
	transition: transform 0.15s ease;
}

.rm101-next-card:hover .rm101-next-title {
	color: var(--rm-blue);
}

.rm101-next-card:hover .rm101-next-title svg {
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Mobile chapters button + drawer
   -------------------------------------------------------------------------- */

.rm101-toc-fab {
	display: none;
	position: fixed;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9900;
	align-items: center;
	gap: 8px;
	background: var(--rm-navy);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px 24px;
	font-family: var(--rm-heading-font);
	font-size: 14.5px;
	font-weight: 700;
	box-shadow: 0 10px 30px rgba(8, 20, 45, 0.35);
	cursor: pointer;
}

.rm101-toc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 18, 35, 0.5);
	z-index: 9950;
}

@media (max-width: 1023px) {
	.rm101-layout {
		grid-template-columns: minmax(0, 760px);
		padding-top: 40px;
	}

	.rm101-toc-fab {
		display: inline-flex;
	}

	.rm101-sidebar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 9960;
		transform: translateY(105%);
		transition: transform 0.25s ease;
		background: #fff;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -12px 40px rgba(8, 20, 45, 0.25);
		max-height: 76vh;
		padding: 10px 6px 18px;
	}

	body.rm101-toc-open .rm101-sidebar {
		transform: translateY(0);
	}

	.rm101-sidebar-scroll {
		position: static;
		max-height: calc(76vh - 28px);
		padding: 8px 14px 0;
	}

	.rm101-toc-card {
		border: 0;
		box-shadow: none;
		padding: 12px 6px;
	}

	.rm101-side-cta,
	.rm101-side-links {
		margin: 0 6px;
	}
}

@media (max-width: 640px) {
	.rm101-hero {
		padding: 140px 18px 60px;
	}

	.rm101-layout {
		padding-left: 18px;
		padding-right: 18px;
	}

	.rm101-prose {
		font-size: 16.5px;
	}

	.rm101-byline {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.rm101-byline-sub {
		row-gap: 4px;
	}

	.rm101-toolkit {
		padding: 28px 22px;
	}

	.rm101-age-row button {
		flex: 1 1 100%;
	}

	.rm101-checklist,
	.rm101-prose .requirements-list-1 {
		padding: 20px;
	}

	.rm101-next {
		grid-template-columns: 1fr;
	}

	.rm101-table td,
	.rm101-table-wrap table td {
		min-width: 150px;
		font-size: 14.5px;
	}
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
	.rm101-progress,
	.rm101-sidebar,
	.rm101-toc-fab,
	.rm101-toc-overlay,
	.rm101-toolkit,
	.rm101-side-cta,
	.rm101-hero-actions {
		display: none !important;
	}

	.rm101-layout {
		grid-template-columns: 1fr;
	}

	.rm101-hero {
		background: #fff;
		color: var(--rm-ink);
		padding: 20px 0;
	}

	.rm101-hero h1,
	.rm101-hero-sub {
		color: var(--rm-ink);
	}
}
