/* ==========================================================================
   Robux Tax Calculator – page + calculator styles
   All selectors are prefixed with .rtc- (or scoped to body.rtc-page).
   Edit the tokens in :root to rebrand colours, type and spacing.
   ========================================================================== */

:root {
	/* Brand */
	--rtc-red: #e2231a;
	--rtc-red-hover: #c91c16;
	--rtc-blue: #00a2ff;
	--rtc-green: #168653;
	--rtc-gold: #f5b72d;
	--rtc-ink: #191b1f;
	--rtc-charcoal: #23262b;

	/* Light theme (default) */
	--rtc-bg: #ffffff;
	--rtc-surface: #ffffff;
	--rtc-surface-2: #f2f4f7;
	--rtc-surface-3: #e8ebf0;
	--rtc-text: #191b1f;
	--rtc-text-muted: #5b5f68;
	--rtc-border: #dde1e7;
	--rtc-border-strong: #b9bec7;
	--rtc-accent-text: #c91c16;
	--rtc-success: #168653;
	--rtc-success-bg: #e8f5ee;
	--rtc-danger-bg: #fdecea;
	--rtc-focus: #0077cc;
	--rtc-shadow: 0 1px 2px rgba(25, 27, 31, 0.06), 0 8px 24px rgba(25, 27, 31, 0.08);
	--rtc-shadow-lg: 0 2px 4px rgba(25, 27, 31, 0.06), 0 24px 48px rgba(25, 27, 31, 0.12);

	/* Type */
	--rtc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rtc-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	/* 8px spacing scale */
	--rtc-s1: 8px;
	--rtc-s2: 16px;
	--rtc-s3: 24px;
	--rtc-s4: 32px;
	--rtc-s5: 40px;
	--rtc-s6: 48px;
	--rtc-s8: 64px;
	--rtc-s10: 80px;

	--rtc-radius: 16px;
	--rtc-radius-sm: 12px;
	--rtc-radius-lg: 18px;
	--rtc-max: 1200px;
	--rtc-header-h: 64px;
}

html[data-rtc-theme="dark"] {
	--rtc-bg: #131417;
	--rtc-surface: #23262b;
	--rtc-surface-2: #1b1d21;
	--rtc-surface-3: #2e3238;
	--rtc-text: #f2f4f7;
	--rtc-text-muted: #b3b8c1;
	--rtc-border: #3a3f47;
	--rtc-border-strong: #575d67;
	--rtc-accent-text: #ff6b63;
	--rtc-success: #3dd68c;
	--rtc-success-bg: rgba(61, 214, 140, 0.12);
	--rtc-danger-bg: rgba(255, 107, 99, 0.14);
	--rtc-focus: #4dc3ff;
	--rtc-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
	--rtc-shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px rgba(0, 0, 0, 0.45);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Page base
   -------------------------------------------------------------------------- */

body.rtc-page {
	background: var(--rtc-bg);
	color: var(--rtc-text);
	font-family: var(--rtc-font);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(body.rtc-page) {
		scroll-behavior: smooth;
	}
}

body.rtc-page :where(h1, h2, h3, h4) {
	font-family: var(--rtc-font);
	color: var(--rtc-text);
	letter-spacing: -0.02em;
	line-height: 1.15;
}

body.rtc-page :where(.rtc-section, .rtc-hero, .rtc-calc-section, .rtc-footer, .rtc-header)[id],
body.rtc-page [id].rtc-section {
	scroll-margin-top: calc(var(--rtc-header-h) + 16px);
}

body.rtc-page a {
	color: inherit;
	text-underline-offset: 3px;
}

body.rtc-page :where(.rtc-section, .rtc-hero) a:where(:not(.wp-block-button__link)) {
	color: var(--rtc-accent-text);
	font-weight: 600;
}

.rtc-page :focus-visible,
.rtc-calc :focus-visible,
.rtc-theme-toggle :focus-visible {
	outline: 3px solid var(--rtc-focus);
	outline-offset: 2px;
}

.rtc-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Core buttons inside our patterns */
.rtc-btn-primary .wp-block-button__link,
.rtc-btn-secondary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--rtc-radius-sm);
	font-family: var(--rtc-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rtc-btn-primary .wp-block-button__link {
	background: var(--rtc-red);
	color: #fff;
	border: 2px solid var(--rtc-red);
}

.rtc-btn-primary .wp-block-button__link:hover,
.rtc-btn-primary .wp-block-button__link:focus-visible {
	background: var(--rtc-red-hover);
	border-color: var(--rtc-red-hover);
	color: #fff;
}

.rtc-btn-secondary .wp-block-button__link {
	background: transparent;
	color: var(--rtc-text);
	border: 2px solid var(--rtc-border-strong);
}

.rtc-btn-secondary .wp-block-button__link:hover,
.rtc-btn-secondary .wp-block-button__link:focus-visible {
	border-color: var(--rtc-text);
	background: var(--rtc-surface-2);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.rtc-header {
	background: var(--rtc-ink);
	color: #fff;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	padding-left: var(--rtc-s2);
	padding-right: var(--rtc-s2);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	z-index: 50;
}

@media (min-width: 782px) {
	.rtc-header {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
	}
}

.rtc-header__inner {
	gap: var(--rtc-s2);
	min-height: 44px;
}

.rtc-brand {
	margin: 0 !important;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.rtc-brand a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff !important;
	text-decoration: none;
}

.rtc-brand a::before,
.rtc-footer__brand::before {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23FF5A52' d='M16 2 29 9.5 16 17 3 9.5z'/%3E%3Cpath fill='%23E2231A' d='M3 9.5 16 17v14L3 23.5z'/%3E%3Cpath fill='%23A3140E' d='M29 9.5 16 17v14l13-7.5z'/%3E%3Cpath fill='%23fff' d='M7 15.2l5 2.9v5l-5-2.9z'/%3E%3Cpath fill='%23F5B72D' d='M20 18.1l5-2.9v5l-5 2.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rtc-nav {
	flex: 1 1 auto;
	justify-content: center;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.rtc-nav .wp-block-navigation__container {
	gap: 4px clamp(12px, 2vw, 28px);
	flex-wrap: nowrap;
}

.rtc-nav .wp-block-navigation-item {
	white-space: nowrap;
}

.rtc-nav .wp-block-navigation-item__content {
	color: #e6e8ec !important;
	text-decoration: none;
	padding: 8px 4px;
}

.rtc-nav .wp-block-navigation-item__content:hover {
	color: #fff !important;
	text-decoration: underline;
	text-decoration-color: var(--rtc-red);
	text-decoration-thickness: 2px;
}

.rtc-nav .wp-block-navigation__responsive-container-open,
.rtc-nav .wp-block-navigation__responsive-container-close {
	color: #fff;
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
}

.rtc-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--rtc-ink) !important;
	color: #fff !important;
	padding: var(--rtc-s3);
}

.rtc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 20px;
	padding: 10px 0;
}

.rtc-header__actions {
	gap: var(--rtc-s1);
	flex: none;
}

.rtc-header .wp-block-buttons {
	margin: 0;
}

.rtc-header .rtc-btn-primary .wp-block-button__link {
	min-height: 44px;
	padding: 10px 16px;
	font-size: 15px;
}

/* Tablet: brand + actions on the first row, links on a second row. */
@media (min-width: 600px) and (max-width: 899px) {
	.rtc-header__inner {
		flex-wrap: wrap !important;
		row-gap: 4px;
	}
	.rtc-nav {
		order: 3;
		flex-basis: 100%;
	}
	.rtc-nav .wp-block-navigation__container {
		justify-content: center;
	}
}

@media (max-width: 599px) {
	.rtc-brand {
		font-size: 16px;
	}
	.rtc-header .rtc-btn-primary .wp-block-button__link {
		padding: 8px 12px;
		font-size: 14px;
	}
	.rtc-header .wp-block-buttons {
		display: none;
	}
}

/* Theme toggle */
.rtc-theme-toggle {
	display: inline-flex;
}

.rtc-theme-toggle__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--rtc-radius-sm);
	background: transparent;
	color: #fff;
	font: 600 14px/1 var(--rtc-font);
	cursor: pointer;
}

.rtc-theme-toggle__button:hover {
	background: rgba(255, 255, 255, 0.08);
}

.rtc-theme-toggle__icon {
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--rtc-i-moon) center / contain no-repeat;
	mask: var(--rtc-i-moon) center / contain no-repeat;
}

.rtc-theme-toggle__button[aria-pressed="true"] .rtc-theme-toggle__icon {
	-webkit-mask-image: var(--rtc-i-sun);
	mask-image: var(--rtc-i-sun);
}

@media (max-width: 1199px) {
	.rtc-theme-toggle__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
	.rtc-theme-toggle__button {
		padding: 0;
	}
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.rtc-hero {
	position: relative;
	margin-top: 0 !important;
	padding: var(--rtc-s8) var(--rtc-s2) calc(var(--rtc-s10) + var(--rtc-s4));
	background:
		linear-gradient(180deg, transparent 60%, var(--rtc-bg) 100%),
		linear-gradient(90deg, var(--rtc-border) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(0deg, var(--rtc-border) 1px, transparent 1px) 0 0 / 48px 48px,
		var(--rtc-surface-2);
	background-blend-mode: normal;
	overflow: hidden;
	isolation: isolate;
}

.rtc-hero::before,
.rtc-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 6px;
	transform: rotate(14deg);
	pointer-events: none;
}

.rtc-hero::before {
	width: 72px;
	height: 72px;
	left: 4%;
	bottom: 18%;
	background: var(--rtc-red);
	opacity: 0.12;
}

.rtc-hero::after {
	width: 40px;
	height: 40px;
	right: 6%;
	top: 12%;
	background: var(--rtc-blue);
	opacity: 0.16;
	transform: rotate(-12deg);
}

.rtc-hero__cols {
	align-items: center !important;
	gap: var(--rtc-s6) !important;
	margin: 0 auto !important;
}

.rtc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--rtc-s2) !important;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--rtc-danger-bg);
	color: var(--rtc-accent-text);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rtc-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 2px;
	transform: rotate(45deg);
}

.rtc-hero__title {
	margin: 0 0 var(--rtc-s2) !important;
	font-size: clamp(2.4rem, 5.5vw, 4rem) !important;
	font-weight: 900 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.035em !important;
}

.rtc-hero__lead {
	max-width: 36em;
	margin: 0 0 var(--rtc-s3) !important;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: var(--rtc-text-muted);
}

.rtc-hero__ctas {
	gap: 12px !important;
	margin-bottom: var(--rtc-s3) !important;
}

.rtc-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 var(--rtc-s2) !important;
	padding: 0 !important;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
}

.rtc-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.rtc-trust li::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: var(--rtc-success) var(--rtc-i-check-white) center / 14px no-repeat;
}

.rtc-disclosure {
	margin: 0 !important;
	font-size: 14px;
	color: var(--rtc-text-muted);
}

.rtc-hero__media {
	display: flex;
	justify-content: center;
}

.rtc-hero__art {
	margin: 0 !important;
	width: 100%;
	max-width: 520px;
}

.rtc-hero__art img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 560 / 480;
}

@media (max-width: 781px) {
	.rtc-hero {
		padding-top: var(--rtc-s5);
		padding-bottom: var(--rtc-s10);
	}
	.rtc-hero__cols {
		gap: var(--rtc-s3) !important;
	}
	.rtc-hero__media {
		order: -1;
	}
	.rtc-hero__art {
		max-width: 260px;
	}
}

@media (max-width: 599px) {
	/* Keep the calculator close to the top on phones. */
	.rtc-hero__media {
		display: none !important;
	}
	.rtc-hero {
		padding-top: var(--rtc-s3);
		padding-bottom: calc(var(--rtc-s10) + var(--rtc-s2));
	}
	.rtc-eyebrow {
		margin-bottom: 12px !important;
		font-size: 12px;
	}
	.rtc-hero__title {
		margin-bottom: 12px !important;
	}
	.rtc-hero__lead {
		margin-bottom: var(--rtc-s2) !important;
		font-size: 1rem;
	}
	.rtc-hero__ctas {
		flex-wrap: nowrap !important;
		margin-bottom: var(--rtc-s2) !important;
	}
	.rtc-hero__ctas .wp-block-button {
		flex: 1 1 0;
		min-width: 0;
	}
	.rtc-hero__ctas .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		padding: 10px 12px;
		font-size: 15px;
	}
	.rtc-trust {
		gap: 6px 14px;
		font-size: 14px;
	}
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */

.rtc-section {
	padding: var(--rtc-s10) var(--rtc-s2);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.rtc-section--alt {
	background: var(--rtc-surface-2);
}

.rtc-section > .wp-block-heading:first-child,
.rtc-section__title {
	margin-top: 0 !important;
	margin-bottom: var(--rtc-s2) !important;
	font-size: clamp(1.75rem, 3.4vw, 2.5rem) !important;
	font-weight: 850 !important;
}

.rtc-section__intro {
	max-width: 46em;
	margin-top: 0 !important;
	margin-bottom: var(--rtc-s5) !important;
	color: var(--rtc-text-muted);
	font-size: 1.0625rem;
}

.rtc-section h3 {
	font-size: 1.25rem;
	font-weight: 800;
}

.rtc-grid {
	gap: var(--rtc-s3) !important;
}

.rtc-card {
	position: relative;
	margin: 0 !important;
	padding: var(--rtc-s3) !important;
	background: var(--rtc-surface);
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius);
	box-shadow: var(--rtc-shadow);
}

.rtc-card > * {
	margin-top: 0 !important;
}

.rtc-card h3 {
	margin: 0 0 var(--rtc-s1) !important;
	font-size: 1.125rem !important;
	line-height: 1.3;
}

.rtc-card p {
	margin: 0 !important;
	color: var(--rtc-text-muted);
	font-size: 0.97rem;
}

/* Icon tile (geometric square with a line icon) */
.rtc-card[class*="rtc-icon--"]::before {
	content: "";
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: var(--rtc-s2);
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 60%),
		var(--rtc-card-tile, var(--rtc-ink));
	box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.18);
}

.rtc-card[class*="rtc-icon--"]::after {
	content: "";
	position: absolute;
	top: calc(var(--rtc-s3) + 12px);
	left: calc(var(--rtc-s3) + 12px);
	width: 24px;
	height: 24px;
	background: #fff;
	-webkit-mask: var(--rtc-icon) center / contain no-repeat;
	mask: var(--rtc-icon) center / contain no-repeat;
}

.rtc-card:nth-child(3n + 1) { --rtc-card-tile: var(--rtc-red); }
.rtc-card:nth-child(3n + 2) { --rtc-card-tile: var(--rtc-ink); }
.rtc-card:nth-child(3n + 3) { --rtc-card-tile: #0a74b8; }
html[data-rtc-theme="dark"] .rtc-card:nth-child(3n + 2) { --rtc-card-tile: #454b55; }

/* Step cards */
.rtc-step__num {
	margin: 0 0 4px !important;
	font-size: 13px !important;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rtc-accent-text) !important;
}

/* Formulas */
.rtc-formulas {
	margin-top: var(--rtc-s6) !important;
	padding: var(--rtc-s4) !important;
	border-radius: var(--rtc-radius-lg);
	background: var(--rtc-ink);
	color: #f2f4f7;
}

.rtc-formulas h3 {
	margin-top: 0 !important;
	color: #fff !important;
}

.rtc-formula {
	margin: 0 0 12px !important;
	padding: 14px 16px;
	border-radius: var(--rtc-radius-sm);
	background: rgba(255, 255, 255, 0.06);
	border-left: 4px solid var(--rtc-red);
	font-family: var(--rtc-mono);
	font-size: clamp(0.92rem, 1.8vw, 1.05rem);
	overflow-wrap: anywhere;
}

.rtc-formula strong {
	color: #fff;
	font-family: var(--rtc-font);
}

.rtc-formulas .rtc-note {
	margin: var(--rtc-s2) 0 0 !important;
	color: #c9cdd4;
	font-size: 0.95rem;
}

/* Callout */
.rtc-callout {
	margin-top: var(--rtc-s4) !important;
	padding: var(--rtc-s3) !important;
	border: 1px solid var(--rtc-border);
	border-left: 6px solid var(--rtc-blue);
	border-radius: var(--rtc-radius);
	background: var(--rtc-surface);
}

.rtc-callout > *:first-child { margin-top: 0 !important; }
.rtc-callout > *:last-child { margin-bottom: 0 !important; }

/* Table */
.rtc-table {
	margin: 0 0 var(--rtc-s3) !important;
	overflow-x: auto;
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius);
	background: var(--rtc-surface);
	box-shadow: var(--rtc-shadow);
}

.rtc-table table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.rtc-table th,
.rtc-table td {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--rtc-border);
	text-align: right;
}

.rtc-table th:first-child,
.rtc-table td:first-child {
	text-align: left;
}

.rtc-table thead th {
	background: var(--rtc-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.rtc-table tbody tr:nth-child(even) td {
	background: var(--rtc-surface-2);
}

.rtc-table tbody tr:last-child td {
	border-bottom: 0;
}

.rtc-table td:last-child {
	font-weight: 800;
	color: var(--rtc-success);
}

.rtc-table figcaption {
	margin: 0;
	padding: 12px 18px;
	border-top: 1px solid var(--rtc-border);
	color: var(--rtc-text-muted);
	font-size: 14px;
	text-align: left;
}

/* Why choose RobuxTaxCalc.com */
.rtc-why .wp-block-heading.has-text-align-center,
.rtc-faq-section > .wp-block-heading.has-text-align-center {
	text-align: center;
}

.rtc-why .rtc-section__intro.has-text-align-center,
.rtc-faq-section .rtc-section__intro.has-text-align-center {
	text-align: center;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rtc-why .rtc-grid {
	grid-template-columns: minmax(0, 1fr) !important;
}

@media (min-width: 600px) {
	.rtc-why .rtc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 960px) {
	.rtc-why .rtc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

.rtc-why__cta {
	justify-content: center;
	margin-top: var(--rtc-s5) !important;
}

/* FAQ: category tabs + accordion card (core Group + Details blocks) */
.rtc-faq-section .rtc-section__intro {
	margin-top: var(--rtc-s2) !important;
	margin-bottom: var(--rtc-s6) !important;
}

/* !important: WordPress's flow layout resets child margins to 0. */
.rtc-faq__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 var(--rtc-s5) !important;
}

.rtc-faq__tab {
	min-height: 48px;
	padding: 10px 22px;
	border: 1px solid var(--rtc-border);
	border-radius: 999px;
	background: var(--rtc-surface);
	color: var(--rtc-text);
	font: 650 16px/1.2 var(--rtc-font);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rtc-faq__tab:hover {
	border-color: var(--rtc-border-strong);
	background: var(--rtc-surface-2);
}

.rtc-faq__tab[aria-selected="true"] {
	background: var(--rtc-red);
	border-color: var(--rtc-red);
	color: #fff;
	box-shadow: 0 6px 16px rgba(226, 35, 26, 0.28);
}

.rtc-faq__tab:focus-visible {
	outline: 3px solid var(--rtc-focus);
	outline-offset: 3px;
}

/* Hide inactive categories before the script runs, so the section doesn't jump. */
html.rtc-js .rtc-faq:not(.is-tabbed) > .rtc-faq__group ~ .rtc-faq__group,
.rtc-faq.is-tabbed > .rtc-faq__group[hidden] {
	display: none;
}

html.rtc-js .rtc-faq__group-title,
.rtc-faq.is-tabbed .rtc-faq__group-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.rtc-faq.is-tabbed > .rtc-faq__group:not([hidden]) {
	display: block;
}

.rtc-faq__group {
	margin: 0 0 var(--rtc-s3) !important;
	overflow: hidden;
	background: var(--rtc-surface);
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius);
	box-shadow: 0 1px 2px rgba(25, 27, 31, 0.04), 0 10px 30px rgba(25, 27, 31, 0.05);
}

.rtc-faq__group-title {
	margin: 0 !important;
	padding: 18px 32px 0;
	font-size: 14px !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
	color: var(--rtc-accent-text) !important;
}

.rtc-faq__item {
	margin: 0 !important;
	border: 0;
	border-top: 1px solid var(--rtc-border);
}

.rtc-faq__group-title + .rtc-faq__item {
	border-top: 0;
}

.rtc-faq__item summary {
	position: relative;
	display: block;
	padding: 28px 72px 28px 32px;
	font-weight: 650;
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	line-height: 1.4;
	color: var(--rtc-text);
	cursor: pointer;
	list-style: none;
	transition: background-color 0.15s ease;
}

.rtc-faq__item summary::-webkit-details-marker {
	display: none;
}

.rtc-faq__item summary:hover {
	background: var(--rtc-surface-2);
}

.rtc-faq__item summary::after {
	content: "";
	position: absolute;
	right: 32px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: var(--rtc-text-muted);
	-webkit-mask: var(--rtc-i-chevron) center / contain no-repeat;
	mask: var(--rtc-i-chevron) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.rtc-faq__item[open] summary::after {
	transform: rotate(180deg);
}

.rtc-faq__item summary:focus-visible {
	outline-offset: -4px;
}

.rtc-faq__item > :not(summary) {
	margin: 0 !important;
	padding: 0 72px 26px 32px;
	color: var(--rtc-text-muted);
	font-size: 1.0625rem;
}

@media (max-width: 599px) {
	.rtc-faq__tabs {
		gap: 8px;
		margin-bottom: 28px !important;
	}
	.rtc-faq__tab {
		padding: 8px 16px;
		font-size: 15px;
	}
	.rtc-faq__item summary {
		padding: 20px 52px 20px 20px;
	}
	.rtc-faq__item summary::after {
		right: 20px;
	}
	.rtc-faq__item > :not(summary) {
		padding: 0 20px 20px;
	}
	.rtc-faq__group-title {
		padding: 16px 20px 0;
	}
}

/* Legal pages (page template: title band + readable content column) */
.rtc-legal-main {
	margin: 0 !important;
}

.rtc-legal-hero {
	margin: 0 !important;
	padding: var(--rtc-s8) var(--rtc-s2) var(--rtc-s6);
	background:
		linear-gradient(180deg, transparent 50%, var(--rtc-surface-2) 100%),
		linear-gradient(90deg, var(--rtc-border) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(0deg, var(--rtc-border) 1px, transparent 1px) 0 0 / 48px 48px,
		var(--rtc-surface-2);
	border-bottom: 1px solid var(--rtc-border);
}

.rtc-legal-hero__title {
	margin: 0 !important;
	font-size: clamp(2.1rem, 5vw, 3.25rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.03em !important;
	line-height: 1.08 !important;
}

.rtc-legal-hero__title::before {
	content: "";
	display: block;
	width: 48px;
	height: 6px;
	margin-bottom: var(--rtc-s2);
	border-radius: 3px;
	background: linear-gradient(90deg, var(--rtc-red) 0 60%, var(--rtc-blue) 60%);
}

.rtc-legal {
	margin: 0 !important;
	padding: var(--rtc-s6) var(--rtc-s2) var(--rtc-s10);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--rtc-text);
}

.rtc-legal > * {
	margin-top: 0;
	margin-bottom: 1.1em;
}

.rtc-legal h2 {
	margin-top: 2.4em !important;
	margin-bottom: 0.6em !important;
	font-size: clamp(1.35rem, 2.6vw, 1.6rem) !important;
	font-weight: 800 !important;
	line-height: 1.25;
}

.rtc-legal h3 {
	margin-top: 1.8em !important;
	margin-bottom: 0.4em !important;
	font-size: 1.15rem !important;
	font-weight: 750 !important;
}

.rtc-legal p,
.rtc-legal li {
	color: var(--rtc-text);
}

.rtc-legal ul,
.rtc-legal ol {
	padding-left: 1.4em;
}

.rtc-legal li {
	margin-bottom: 0.45em;
}

.rtc-legal li::marker {
	color: var(--rtc-red);
}

.rtc-legal a {
	color: var(--rtc-accent-text);
	font-weight: 600;
	text-underline-offset: 3px;
}

.rtc-legal__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rtc-text-muted) !important;
}

.rtc-legal__meta::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--rtc-red);
	transform: rotate(45deg);
}

.rtc-legal__lead {
	font-size: 1.2rem;
	line-height: 1.65;
	color: var(--rtc-text-muted) !important;
}

.rtc-legal__summary {
	margin: var(--rtc-s4) 0 !important;
	padding: var(--rtc-s3) var(--rtc-s3) var(--rtc-s1) !important;
	border: 1px solid var(--rtc-border);
	border-left: 6px solid var(--rtc-red);
	border-radius: var(--rtc-radius);
	background: var(--rtc-surface-2);
}

.rtc-legal__summary > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.rtc-legal__summary h2 {
	margin-top: 0 !important;
	font-size: 1.2rem !important;
}

.rtc-legal .rtc-legal__table {
	margin: var(--rtc-s3) 0 !important;
}

.rtc-legal .rtc-legal__table table {
	min-width: 600px;
	font-size: 15px;
	line-height: 1.5;
}

.rtc-legal .rtc-legal__table th,
.rtc-legal .rtc-legal__table td {
	text-align: left;
	vertical-align: top;
}

.rtc-legal .rtc-legal__table td:last-child {
	font-weight: 400;
	color: var(--rtc-text);
}

.rtc-legal .rtc-legal__table td:first-child {
	font-weight: 700;
}

/* Contact page */
.rtc-contact-info {
	gap: var(--rtc-s2) !important;
	margin-top: var(--rtc-s4) !important;
	margin-bottom: var(--rtc-s5) !important;
}

.rtc-contact-info .rtc-card h2 {
	margin: 0 0 4px !important;
	font-size: 1.05rem !important;
}

.rtc-contact-info .rtc-card p {
	margin: 0 !important;
	font-size: 0.97rem;
}

.rtc-icon--mail { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.rtc-icon--clock { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

.rtc-contact {
	margin-top: var(--rtc-s2) !important;
	margin-bottom: var(--rtc-s5) !important;
	box-sizing: border-box;
	padding: clamp(20px, 4vw, 32px);
	background: var(--rtc-surface);
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius-lg);
	box-shadow: var(--rtc-shadow);
	font-size: 16px;
	line-height: 1.5;
}

.rtc-contact *,
.rtc-contact *::before {
	box-sizing: border-box;
}

.rtc-contact p {
	margin: 0;
}

.rtc-contact__row {
	display: grid;
	gap: 0 var(--rtc-s2);
}

@media (min-width: 640px) {
	.rtc-contact__row {
		grid-template-columns: 1fr 1fr;
	}
}

.rtc-contact__control {
	padding-right: 16px !important;
	font-size: 1.05rem !important;
	font-weight: 500 !important;
}

.rtc-contact__textarea {
	display: block;
	width: 100%;
	min-height: 180px;
	padding: 14px 16px;
	border: 2px solid var(--rtc-border-strong);
	border-radius: var(--rtc-radius-sm);
	background: var(--rtc-surface);
	color: var(--rtc-text);
	font: 500 1.05rem/1.55 var(--rtc-font);
	resize: vertical;
}

.rtc-contact__textarea:focus {
	outline: none;
	border-color: var(--rtc-focus);
	box-shadow: 0 0 0 4px rgba(0, 162, 255, 0.25);
}

.rtc-contact__textarea[aria-invalid="true"] {
	border-color: var(--rtc-red);
	background: var(--rtc-danger-bg);
}

.rtc-contact__consent label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	color: var(--rtc-text-muted);
	cursor: pointer;
}

.rtc-contact__consent input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--rtc-red);
}

.rtc-contact__consent a {
	color: var(--rtc-accent-text);
	font-weight: 600;
}

.rtc-contact__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rtc-contact__submit {
	min-width: 180px;
	margin-top: var(--rtc-s1);
}

.rtc-contact__submit::before {
	display: none;
}

.rtc-contact__notice {
	margin-bottom: var(--rtc-s3);
	padding: 14px 16px;
	border-radius: var(--rtc-radius-sm);
	border: 1px solid;
	font-size: 15px;
}

.rtc-contact__notice strong {
	display: block;
}

.rtc-contact__notice--ok {
	border-color: var(--rtc-success);
	background: var(--rtc-success-bg);
	color: var(--rtc-text);
}

.rtc-contact__notice--error {
	border-color: var(--rtc-red);
	background: var(--rtc-danger-bg);
	color: var(--rtc-text);
}

/* Footer */
.rtc-footer {
	margin-top: 0 !important;
	padding: var(--rtc-s8) var(--rtc-s2) var(--rtc-s4);
	background: var(--rtc-ink);
	color: #c9cdd4;
	font-size: 15px;
}

.rtc-footer a {
	color: #fff !important;
	text-decoration: none;
}

.rtc-footer a:hover {
	text-decoration: underline;
	text-decoration-color: var(--rtc-red);
}

.rtc-footer h2,
.rtc-footer h3 {
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase;
	margin: 0 0 12px !important;
}

.rtc-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px !important;
	color: #fff;
	font-size: 20px;
	font-weight: 800;
}

.rtc-footer__links {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.rtc-footer__links li {
	margin: 0 0 8px;
}

.rtc-footer__legal {
	margin-top: var(--rtc-s5) !important;
	padding-top: var(--rtc-s3) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	color: #b3b8c1;
}

.rtc-footer__legal p {
	margin: 0 0 8px !important;
}

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */

.rtc-calc-section {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * var(--rtc-s10)) !important;
	padding: 0 var(--rtc-s2) var(--rtc-s8);
}

.rtc-calc {
	--rtc-calc-pad: clamp(16px, 3.5vw, 32px);
	position: relative;
	box-sizing: border-box;
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding: var(--rtc-calc-pad);
	background: var(--rtc-surface);
	color: var(--rtc-text);
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius-lg);
	box-shadow: var(--rtc-shadow-lg);
	font-family: var(--rtc-font);
	font-size: 16px;
	line-height: 1.5;
}

.rtc-calc *,
.rtc-calc *::before,
.rtc-calc *::after {
	box-sizing: border-box;
}

/* Geometric accent strip */
.rtc-calc::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	border-radius: var(--rtc-radius-lg) var(--rtc-radius-lg) 0 0;
	background: linear-gradient(90deg, var(--rtc-red) 0 40%, var(--rtc-ink) 40% 75%, var(--rtc-blue) 75%);
}

html[data-rtc-theme="dark"] .rtc-calc::before {
	background: linear-gradient(90deg, var(--rtc-red) 0 40%, #575d67 40% 75%, var(--rtc-blue) 75%);
}

.rtc-calc p,
.rtc-calc h2,
.rtc-calc h3,
.rtc-calc h4,
.rtc-calc dl,
.rtc-calc dd {
	margin: 0;
}

.rtc-calc__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--rtc-s2);
	margin-bottom: var(--rtc-s3);
}

.rtc-calc__title {
	font-size: clamp(1.5rem, 3vw, 2rem) !important;
	font-weight: 850 !important;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--rtc-text);
}

.rtc-calc__subtitle {
	margin-top: 6px !important;
	color: var(--rtc-text-muted);
}

.rtc-calc__badge {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rtc-calc__badge span {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--rtc-surface-2);
	border: 1px solid var(--rtc-border);
	font-size: 13px;
	font-weight: 700;
	color: var(--rtc-text-muted);
}

/* Tabs – segmented control */
.rtc-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 6px;
	margin-bottom: var(--rtc-s3);
	border-radius: 14px;
	background: var(--rtc-surface-2);
	border: 1px solid var(--rtc-border);
}

.rtc-tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-height: 60px;
	padding: 10px 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--rtc-text-muted);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rtc-tab:hover {
	color: var(--rtc-text);
	background: var(--rtc-surface-3);
}

.rtc-tab[aria-selected="true"] {
	background: var(--rtc-surface);
	color: var(--rtc-text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 -3px 0 var(--rtc-red);
}

.rtc-tab__title {
	font-weight: 800;
	font-size: 1rem;
}

.rtc-tab__hint {
	font-size: 13px;
}

.rtc-tab[aria-selected="true"] .rtc-tab__title::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	vertical-align: 2px;
	background: var(--rtc-red);
	border-radius: 2px;
	transform: rotate(45deg);
}

/* Body layout */
.rtc-calc__body {
	display: grid;
	gap: var(--rtc-s3);
}

/* Layout reacts to the calculator's own width, so it works in any column. */
.rtc-calc {
	container-type: inline-size;
	container-name: rtc-calc;
}

@container rtc-calc (min-width: 820px) {
	.rtc-calc__body {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: var(--rtc-s4);
	}
}

/* Form */
.rtc-field {
	margin-bottom: var(--rtc-s1);
}

.rtc-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 750;
	font-size: 15px;
	color: var(--rtc-text);
}

.rtc-input,
.rtc-select {
	position: relative;
	display: flex;
	align-items: center;
}

.rtc-input__control,
.rtc-select__control {
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 12px 16px;
	border: 2px solid var(--rtc-border-strong);
	border-radius: var(--rtc-radius-sm);
	background: var(--rtc-surface);
	color: var(--rtc-text);
	font: 700 1.3rem/1.2 var(--rtc-font);
	font-variant-numeric: tabular-nums;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.rtc-input__control {
	padding-right: 84px;
}

.rtc-select__control {
	padding-right: 48px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.rtc-select::after {
	content: "";
	position: absolute;
	right: 16px;
	width: 14px;
	height: 14px;
	background: var(--rtc-text-muted);
	-webkit-mask: var(--rtc-i-chevron) center / contain no-repeat;
	mask: var(--rtc-i-chevron) center / contain no-repeat;
	pointer-events: none;
}

.rtc-input__suffix {
	position: absolute;
	right: 12px;
	padding: 4px 8px;
	border-radius: 8px;
	background: var(--rtc-surface-2);
	color: var(--rtc-text-muted);
	font-weight: 700;
	font-size: 14px;
	pointer-events: none;
}

.rtc-input__control:hover,
.rtc-select__control:hover {
	border-color: var(--rtc-text-muted);
}

.rtc-input__control:focus,
.rtc-select__control:focus {
	outline: none;
	border-color: var(--rtc-focus);
	box-shadow: 0 0 0 4px rgba(0, 162, 255, 0.25);
}

.rtc-input__control[aria-invalid="true"] {
	border-color: var(--rtc-red);
	background: var(--rtc-danger-bg);
}

.rtc-help {
	margin-top: 6px !important;
	font-size: 14px;
	color: var(--rtc-text-muted);
}

.rtc-help--note {
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--rtc-surface-2);
	font-size: 13px;
}

/* Reserved line so errors never shift the layout */
.rtc-error {
	min-height: 1.5em;
	margin-top: 4px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--rtc-accent-text);
}

.rtc-error:not(:empty)::before {
	content: "!";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	border-radius: 4px;
	background: var(--rtc-red);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	vertical-align: 1px;
}

/* USD value group */
.rtc-usd {
	min-width: 0;
	margin: 0 0 var(--rtc-s1);
	padding: 14px 14px 4px;
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius-sm);
}

.rtc-usd legend.rtc-label {
	padding: 0 6px;
	margin: 0 0 0 -6px;
}

.rtc-sublabel {
	display: block;
	margin: 10px 0 6px;
	font-size: 14px;
	font-weight: 650;
	color: var(--rtc-text);
}

.rtc-usd .rtc-sublabel:first-of-type {
	margin-top: 0;
}

.rtc-input--prefix .rtc-input__control {
	padding-left: 34px;
}

.rtc-input__prefix {
	position: absolute;
	left: 16px;
	font-weight: 800;
	font-size: 1.2rem;
	color: var(--rtc-text-muted);
	pointer-events: none;
}

.rtc-input--prefix .rtc-input__control {
	padding-right: 92px;
}

.rtc-form__actions {
	display: flex;
	gap: var(--rtc-s1);
	margin-top: var(--rtc-s1);
}

/* Buttons */
.rtc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 18px;
	border: 2px solid transparent;
	border-radius: var(--rtc-radius-sm);
	font: 700 15px/1.2 var(--rtc-font);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rtc-btn--primary {
	background: var(--rtc-red);
	border-color: var(--rtc-red);
	color: #fff;
}

.rtc-btn--primary:hover {
	background: var(--rtc-red-hover);
	border-color: var(--rtc-red-hover);
}

.rtc-btn--secondary {
	background: var(--rtc-surface);
	border-color: var(--rtc-border-strong);
	color: var(--rtc-text);
}

.rtc-btn--secondary:hover {
	border-color: var(--rtc-text);
}

.rtc-btn--ghost {
	background: transparent;
	border-color: var(--rtc-border);
	color: var(--rtc-text-muted);
}

.rtc-btn--ghost:hover {
	color: var(--rtc-text);
	border-color: var(--rtc-border-strong);
}

.rtc-btn--primary::before,
.rtc-btn--secondary::before,
.rtc-btn--ghost::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--rtc-btn-icon, none) center / contain no-repeat;
	mask: var(--rtc-btn-icon, none) center / contain no-repeat;
}

[data-action="copy"] { --rtc-btn-icon: var(--rtc-i-copy); }
[data-action="share"] { --rtc-btn-icon: var(--rtc-i-link); }
[data-action="print"] { --rtc-btn-icon: var(--rtc-i-print); }
[data-action="reset"] { --rtc-btn-icon: var(--rtc-i-reset); }

/* Results */
.rtc-results {
	padding: clamp(16px, 2.5vw, 24px);
	border-radius: var(--rtc-radius);
	background: var(--rtc-surface-2);
	border: 1px solid var(--rtc-border);
}

.rtc-results__title {
	margin-bottom: 12px !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
	color: var(--rtc-text-muted) !important;
}

.rtc-stats-wrap {
	position: relative;
}

.rtc-results {
	container-type: inline-size;
	container-name: rtc-results;
}

.rtc-stats {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

@container rtc-results (min-width: 420px) {
	.rtc-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container rtc-results (min-width: 300px) and (max-width: 419.98px) {
	.rtc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.rtc-stat--net {
		grid-column: 1 / -1;
	}
}

.rtc-stat {
	position: relative;
	min-width: 0;
	padding: 14px 14px 12px;
	border-radius: var(--rtc-radius-sm);
	background: var(--rtc-surface);
	border: 1px solid var(--rtc-border);
}

.rtc-stat__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 750;
	color: var(--rtc-text-muted);
}

/* Shape markers – meaning is never carried by colour alone */
.rtc-stat__label::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

.rtc-stat--gross .rtc-stat__label::before {
	background: var(--rtc-text);
}

.rtc-stat--fee .rtc-stat__label::before {
	background: repeating-linear-gradient(45deg, var(--rtc-red) 0 3px, transparent 3px 5px);
	border: 2px solid var(--rtc-red);
}

.rtc-stat--net .rtc-stat__label::before {
	background: var(--rtc-success);
	border-radius: 50%;
}

.rtc-stat__value {
	margin-top: 4px !important;
	font-size: clamp(1.5rem, 7cqi, 2.25rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.rtc-stat__unit {
	display: block;
	margin-top: 2px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--rtc-text-muted);
}

.rtc-stat__usd {
	margin-top: 6px !important;
	font-size: 15px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--rtc-text);
	overflow-wrap: anywhere;
}

.rtc-stat--net .rtc-stat__usd {
	color: var(--rtc-success);
	font-size: 16px;
}

.rtc-stat__meta {
	min-height: 3.9em;
	margin-top: 4px !important;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--rtc-text-muted);
}

.rtc-stat--fee .rtc-stat__value {
	color: var(--rtc-accent-text);
}

.rtc-stat--net {
	background: var(--rtc-success-bg);
	border-color: var(--rtc-success);
	box-shadow: inset 0 0 0 1px var(--rtc-success);
}

.rtc-stat--net .rtc-stat__value {
	color: var(--rtc-success);
}

.rtc-calc.is-invalid .rtc-stats {
	visibility: hidden;
}

.rtc-results__invalid {
	position: absolute;
	inset: 0;
	border: 2px dashed var(--rtc-border-strong);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	border-radius: var(--rtc-radius-sm);
	background: var(--rtc-surface);
	font-weight: 750;
	text-align: center;
	color: var(--rtc-text);
}

.rtc-results__invalid[hidden] {
	display: none;
}

.rtc-results__invalid-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: var(--rtc-red);
	color: #fff;
	font-weight: 900;
}

/* Fee breakdown bars */
.rtc-breakdown {
	margin-top: var(--rtc-s3);
}

.rtc-breakdown__title {
	margin-bottom: 10px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: var(--rtc-text);
}

.rtc-bar + .rtc-bar {
	margin-top: 12px;
}

.rtc-bar__label {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 650;
}

.rtc-bar__label span:last-child {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.rtc-bar__track {
	position: relative;
	height: 16px;
	border-radius: 6px;
	background: var(--rtc-surface-3);
	overflow: hidden;
}

.rtc-bar__fill {
	display: block;
	height: 100%;
	max-width: 100%;
	border-radius: 6px;
	transition: width 0.3s ease;
}

.rtc-bar--gross .rtc-bar__fill {
	background: var(--rtc-text);
}

.rtc-bar--fee .rtc-bar__fill {
	background: repeating-linear-gradient(45deg, var(--rtc-red) 0 6px, var(--rtc-red-hover) 6px 10px);
}

.rtc-bar--net .rtc-bar__fill {
	background: var(--rtc-success);
}

.rtc-results__explain {
	margin-top: var(--rtc-s2) !important;
	font-size: 14px;
	color: var(--rtc-text-muted);
}

.rtc-results__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rtc-s1);
	margin-top: var(--rtc-s2);
}

.rtc-status {
	min-height: 1.5em;
	margin-top: 10px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--rtc-success);
	overflow-wrap: anywhere;
}

.rtc-status.is-error {
	color: var(--rtc-accent-text);
}

.rtc-calc__disclosure {
	display: flex;
	gap: 10px;
	margin-top: var(--rtc-s3) !important;
	padding-top: var(--rtc-s2);
	border-top: 1px solid var(--rtc-border);
	font-size: 13.5px;
	color: var(--rtc-text-muted);
}

.rtc-calc__disclosure a {
	color: var(--rtc-accent-text);
	font-weight: 700;
}

.rtc-calc__disclosure-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	background: var(--rtc-text-muted);
	-webkit-mask: var(--rtc-i-info) center / contain no-repeat;
	mask: var(--rtc-i-info) center / contain no-repeat;
}

@media (max-width: 599px) {
	.rtc-calc-section {
		padding-left: 12px;
		padding-right: 12px;
	}
	.rtc-calc__badge {
		display: none;
	}
	.rtc-tab {
		min-height: 56px;
		padding: 8px 10px;
	}
	.rtc-tab__title {
		font-size: 0.94rem;
	}
	.rtc-tab__hint {
		font-size: 12px;
	}
	.rtc-tab[aria-selected="true"] .rtc-tab__title::before {
		display: none;
	}
	.rtc-results__actions .rtc-btn {
		flex: 1 1 auto;
	}
}

/* --------------------------------------------------------------------------
   Icons (masks). Original simple line icons, 24×24, stroke-based.
   -------------------------------------------------------------------------- */

:root {
	--rtc-i-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--rtc-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191B1F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
	--rtc-i-plus-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
	--rtc-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
	--rtc-i-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E");
	--rtc-i-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
	--rtc-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E");
	--rtc-i-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M15 9V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h4'/%3E%3C/svg%3E");
	--rtc-i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E");
	--rtc-i-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M7 9V3h10v6M7 17H4v-7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v7h-3'/%3E%3Crect x='7' y='14' width='10' height='7'/%3E%3C/svg%3E");
	--rtc-i-reset: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.3-5.7M4 4v4h4'/%3E%3C/svg%3E");
}

.rtc-icon--after { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 21h16'/%3E%3C/svg%3E"); }
.rtc-icon--before { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V9M7 14l5-5 5 5M4 3h16'/%3E%3C/svg%3E"); }
.rtc-icon--reverse { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14l-4-4M20 16H6l4 4'/%3E%3C/svg%3E"); }
.rtc-icon--percent { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M19 5L5 19'/%3E%3Ccircle cx='7' cy='7' r='2.5'/%3E%3Ccircle cx='17' cy='17' r='2.5'/%3E%3C/svg%3E"); }
.rtc-icon--instant { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.rtc-icon--breakdown { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 5h18M3 12h11M3 19h7'/%3E%3C/svg%3E"); }
.rtc-icon--net { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E"); }
.rtc-icon--gamepass { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v4a2 2 0 0 0 0 4v4H3v-4a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 6v12' stroke-dasharray='2 2'/%3E%3C/svg%3E"); }
.rtc-icon--devproduct { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Cpath d='M12 22V12M21 7l-9 5-9-5'/%3E%3C/svg%3E"); }
.rtc-icon--tag { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 12V3h9l9 9-9 9z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.rtc-icon--copy { --rtc-icon: var(--rtc-i-copy); }
.rtc-icon--mobile { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.rtc-icon--shield { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.3-8 11-4.6-1.7-8-6-8-11V5z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.rtc-icon--gift { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='5' rx='1'/%3E%3Cpath d='M5 13v8h14v-8M12 8v13M12 8S10.5 3 8 3.5 6.5 8 12 8zM12 8s1.5-5 4-4.5S17.5 8 12 8z'/%3E%3C/svg%3E"); }
.rtc-icon--input { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10v4M10 10h.01M14 10h.01M18 10h.01M10 14h8'/%3E%3C/svg%3E"); }
.rtc-icon--result { --rtc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.rtc-calc *,
	.rtc-page *,
	.rtc-calc *::before,
	.rtc-page *::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	body.rtc-page * {
		visibility: hidden;
	}
	body.rtc-page .rtc-calc,
	body.rtc-page .rtc-calc * {
		visibility: visible;
	}
	body.rtc-page .rtc-calc {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		box-shadow: none;
		border: 1px solid #999;
	}
	.rtc-calc {
		--rtc-surface: #fff;
		--rtc-surface-2: #fff;
		--rtc-surface-3: #ddd;
		--rtc-text: #000;
		--rtc-text-muted: #333;
		--rtc-border: #999;
		color: #000;
		background: #fff;
	}
	.rtc-calc .rtc-results__actions,
	.rtc-calc .rtc-form__actions,
	.rtc-calc .rtc-status,
	.rtc-calc .rtc-tab[aria-selected="false"],
	.rtc-calc__badge {
		display: none !important;
	}
	.rtc-calc .rtc-tabs {
		display: block;
		border: 0;
		padding: 0;
		background: none;
	}
	.rtc-calc .rtc-bar__fill,
	.rtc-calc .rtc-stat__label::before {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	.rtc-calc__body {
		grid-template-columns: 1fr 1fr !important;
	}
}
