:root {
	--ra-gate-ink: #14171c;
	--ra-gate-black: #090a0d;
	--ra-gate-blue: #153d8f;
	--ra-gate-blue-hover: #0c2b67;
	--ra-gate-gold: #b88a2d;
	--ra-gate-paper: #ffffff;
	--ra-gate-canvas: #f7f6f2;
	--ra-gate-muted: #67707d;
	--ra-gate-border: #d9d7d0;
	--ra-gate-blue-border: #d8dee9;
	--ra-gate-danger: #a33232;
	--ra-gate-focus: #153d8f;
}

html {
	min-height: 100%;
	max-width: 100%;
	overflow-x: hidden;
	background: var(--ra-gate-canvas);
}

body.ra-isolated-access,
body.ra-isolated-access * {
	box-sizing: border-box;
}

body.ra-isolated-access {
	min-height: 100%;
	max-width: 100%;
	margin: 0;
	overflow-x: hidden;
	background: var(--ra-gate-canvas);
	color: var(--ra-gate-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ra-gate-shell {
	display: flex;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
}

.ra-gate-compliance {
	display: flex;
	width: 100%;
	min-height: 30px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px max(18px, env(safe-area-inset-right)) 6px max(18px, env(safe-area-inset-left));
	background: var(--ra-gate-black);
	color: #ffffff;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.055em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

.ra-gate-compliance strong {
	color: inherit;
	font-weight: inherit;
}

.ra-gate-brand {
	display: flex;
	width: 100%;
	min-width: 0;
	align-items: center;
	justify-content: center;
	margin: 18px auto 18px;
	text-align: center;
}

.ra-gate-logo {
	display: block;
	width: auto;
	max-width: min(180px, 100%);
	height: auto;
	max-height: 124px;
	object-fit: contain;
}

.ra-gate-wordmark {
	margin: 28px auto 20px;
	color: var(--ra-gate-ink);
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
}

.ra-gate-page {
	width: min(calc(100% - 48px), 660px);
	min-width: 0;
}

.ra-gate-card,
.ra-policy-card,
.ra-gate-login-card {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--ra-gate-border);
	border-radius: 12px;
	background: var(--ra-gate-paper);
}

.ra-gate-card {
	padding: 28px 32px 30px;
}

.ra-gate-card--form {
	width: 100%;
}

.ra-gate-card--compact {
	width: min(calc(100% - 36px), 560px);
	margin-top: 48px;
	padding: 38px 32px 42px;
	text-align: center;
}

.ra-gate-card--compact .ra-gate-brand {
	margin-top: 0;
}

.ra-gate-card__header {
	min-width: 0;
	text-align: center;
}

.ra-gate-eyebrow {
	margin: 0 0 14px;
	color: var(--ra-gate-gold);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.075em;
	line-height: 1.35;
	text-align: center;
	text-transform: uppercase;
}

.ra-gate-card h1,
.ra-policy-card h1 {
	margin: 0;
	color: var(--ra-gate-ink);
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 0.005em;
	line-height: 40px;
}

.ra-gate-card--form h1 {
	text-align: center;
}

.ra-gate-intro {
	max-width: 570px;
	margin: 14px auto 0;
	color: var(--ra-gate-muted);
	font-size: 0.86rem;
	line-height: 1.58;
	text-align: center;
}

.ra-access-form {
	width: 100%;
	min-width: 0;
}

.ra-gate-notices:empty {
	display: none;
}

.ra-gate-notices:not(:empty) {
	margin-top: 22px;
}

.ra-gate-notice {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #dfb0b0;
	border-radius: 8px;
	background: #fff6f6;
	color: var(--ra-gate-danger);
	font-size: 0.88rem;
	line-height: 1.5;
}

.ra-gate-confirmations {
	display: grid;
	min-width: 0;
	gap: 12px;
	margin-top: 38px;
}

.ra-gate-check {
	position: relative;
	display: grid;
	width: 100%;
	min-width: 0;
	min-height: 80px;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 15px;
	border: 1px solid var(--ra-gate-blue-border);
	border-radius: 12px;
	background: #ffffff;
	color: var(--ra-gate-ink);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.5;
}

.ra-gate-check:hover {
	border-color: #9fb0ca;
	background: #fbfcff;
}

.ra-gate-check > span:last-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ra-gate-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ra-gate-checkmark {
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border: 1.5px solid #7c8798;
	border-radius: 5px;
	background: #ffffff;
}

.ra-gate-check input:checked + .ra-gate-checkmark {
	border-color: var(--ra-gate-blue);
	background: var(--ra-gate-blue);
}

.ra-gate-check input:checked + .ra-gate-checkmark::after {
	width: 5px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	content: "";
	transform: translateY(-1px) rotate(45deg);
}

.ra-gate-check input:focus-visible + .ra-gate-checkmark {
	outline: 2px solid var(--ra-gate-focus);
	outline-offset: 3px;
}

.ra-gate-button,
.ra-gate-login-action {
	display: inline-flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border-radius: 8px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.ra-gate-button {
	margin-top: 16px;
	border: 1px solid var(--ra-gate-black);
	background: var(--ra-gate-black);
	color: #ffffff;
	cursor: pointer;
}

.ra-gate-button:hover:not(:disabled) {
	border-color: #202630;
	background: #202630;
	color: #ffffff;
}

.ra-gate-button:disabled,
.ra-gate-button[aria-busy="true"] {
	border-color: #9ca2ab;
	background: #9ca2ab;
	color: #ffffff;
	cursor: not-allowed;
	opacity: 0.72;
}

.ra-gate-button:focus-visible,
.ra-gate-login-action:focus-visible,
.ra-gate-footer a:focus-visible,
.ra-policy-back:focus-visible,
.ra-policy-content a:focus-visible {
	outline: 2px solid var(--ra-gate-focus);
	outline-offset: 3px;
}

.ra-gate-cookie-note {
	margin: 12px 0 0;
	color: var(--ra-gate-muted);
	font-size: 0.72rem;
	line-height: 1.5;
	text-align: center;
}

.ra-gate-login-card {
	margin-top: 16px;
	padding: 20px;
}

.ra-gate-login-card h2 {
	margin: 0;
	color: var(--ra-gate-ink);
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.4;
}

.ra-gate-login-card p {
	margin: 6px 0 0;
	color: var(--ra-gate-muted);
	font-size: 0.76rem;
	line-height: 1.5;
}

.ra-gate-login-action {
	min-height: 44px;
	margin-top: 12px;
	border: 1px solid #98a3b4;
	background: #ffffff;
	color: var(--ra-gate-ink);
}

.ra-gate-login-action:hover {
	border-color: var(--ra-gate-blue);
	background: #f7f9fd;
	color: var(--ra-gate-blue-hover);
}

.ra-gate-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ra-gate-footer {
	display: flex;
	width: min(calc(100% - 36px), 760px);
	min-width: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
	margin: 24px 0 max(28px, env(safe-area-inset-bottom));
	color: var(--ra-gate-muted);
	font-size: 0.68rem;
	line-height: 1.55;
	text-align: center;
}

.ra-gate-footer__links {
	display: flex;
	max-width: 100%;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.ra-gate-footer a,
.ra-policy-back,
.ra-policy-content a {
	color: var(--ra-gate-muted);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ra-gate-footer p {
	margin: 0;
}

.ra-gate-shell--policy {
	padding: 32px 0 0;
}

.ra-policy-card {
	width: min(calc(100% - 48px), 900px);
	padding: 32px clamp(24px, 6vw, 64px) 56px;
}

.ra-policy-card .ra-gate-brand {
	margin-top: 0;
	margin-bottom: 12px;
}

.ra-policy-card .ra-gate-logo {
	max-height: 96px;
}

.ra-policy-back {
	display: inline-block;
	margin: 10px 0 28px;
	font-size: 0.87rem;
}

.ra-policy-card h1 {
	text-align: left;
}

.ra-policy-content {
	max-width: 100%;
	margin-top: 28px;
	color: #303847;
	font-size: 0.98rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.ra-policy-content h2,
.ra-policy-content h3 {
	margin: 1.6em 0 0.55em;
	color: var(--ra-gate-ink);
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	line-height: 1.25;
}

.ra-policy-content img {
	max-width: 100%;
	height: auto;
}

.ra-policy-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 767px) {
	.ra-gate-compliance {
		min-height: 30px;
		flex-wrap: wrap;
		gap: 4px;
		padding: 7px max(18px, env(safe-area-inset-right)) 7px max(18px, env(safe-area-inset-left));
		font-size: clamp(0.47rem, 2.25vw, 0.57rem);
		letter-spacing: 0.035em;
		line-height: 1.35;
		overflow-wrap: anywhere;
		white-space: normal;
	}

	.ra-gate-brand {
		margin: 20px auto 20px;
	}

	.ra-gate-logo {
		max-width: 150px;
		max-height: 118px;
	}

	.ra-gate-wordmark {
		margin: 28px auto 22px;
		font-size: 1.35rem;
	}

	.ra-gate-page {
		width: 100%;
		max-width: 660px;
		padding-right: max(18px, env(safe-area-inset-right));
		padding-left: max(18px, env(safe-area-inset-left));
	}

	.ra-gate-card {
		padding: 28px 18px 26px;
	}

	.ra-gate-card--compact {
		width: calc(100% - 36px);
		margin-top: 32px;
		padding: 30px 20px 34px;
	}

	.ra-gate-eyebrow {
		margin-bottom: 16px;
		font-size: 0.68rem;
	}

	.ra-gate-card h1,
	.ra-policy-card h1 {
		font-size: 36px;
		line-height: 40px;
		overflow-wrap: anywhere;
	}

	.ra-gate-intro {
		margin-top: 18px;
		font-size: 0.88rem;
		line-height: 1.55;
	}

	.ra-gate-confirmations {
		gap: 12px;
		margin-top: 30px;
	}

	.ra-gate-check {
		min-height: 76px;
		grid-template-columns: 24px minmax(0, 1fr);
		align-items: start;
		padding: 16px 14px;
		font-size: 0.88rem;
	}

	.ra-gate-button {
		min-height: 52px;
		margin-top: 16px;
	}

	.ra-gate-cookie-note {
		margin-top: 14px;
		font-size: 0.72rem;
	}

	.ra-gate-login-card {
		margin-top: 16px;
		padding: 22px 18px;
	}

	.ra-gate-login-card h2 {
		font-size: 0.95rem;
	}

	.ra-gate-login-card p {
		font-size: 0.78rem;
	}

	.ra-gate-footer {
		width: 100%;
		padding-right: max(18px, env(safe-area-inset-right));
		padding-left: max(18px, env(safe-area-inset-left));
	}

	.ra-gate-shell--policy {
		padding-top: 18px;
	}

	.ra-policy-card {
		width: calc(100% - 36px);
		padding: 24px 18px 40px;
	}

	.ra-policy-back {
		margin-bottom: 22px;
	}

	.ra-policy-content {
		font-size: 0.94rem;
		line-height: 1.68;
	}
}

/* 0.5.2 access-gate refinement: branded depth without changing consent flow. */
.ra-gate-brand__copy {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	color: #0a2d6f;
	line-height: 1;
	text-align: left;
}

.ra-gate-brand__copy strong {
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: 1.24rem;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.ra-gate-brand__copy span {
	margin-top: 5px;
	font-size: 0.52rem;
	font-weight: 800;
	letter-spacing: 0.21em;
	text-transform: uppercase;
}

.ra-gate-shell--access {
	position: relative;
	isolation: isolate;
	background-color: #04142d;
	background-image:
		radial-gradient(circle at 98% 18%, rgb(37 91 185 / 0.52) 0, rgb(37 91 185 / 0) 31%),
		radial-gradient(circle at 4% 86%, rgb(19 75 159 / 0.36) 0, rgb(19 75 159 / 0) 35%),
		repeating-linear-gradient(135deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 34px),
		linear-gradient(120deg, #020c1e 0%, #08285d 58%, #113e89 100%);
}

.ra-gate-shell--access::before,
.ra-gate-shell--access::after {
	position: absolute;
	z-index: -1;
	width: 420px;
	height: 420px;
	border: 1px solid rgb(210 166 67 / 0.16);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.ra-gate-shell--access::before {
	top: 96px;
	right: -245px;
}

.ra-gate-shell--access::after {
	bottom: 50px;
	left: -300px;
}

.ra-gate-shell--access .ra-gate-compliance {
	position: relative;
	z-index: 1;
	border-bottom: 1px solid rgb(209 164 61 / 0.34);
	background: #05080f;
}

.ra-gate-shell--access .ra-gate-page {
	width: min(calc(100% - 48px), 760px);
	margin-top: 32px;
}

.ra-gate-shell--access .ra-gate-card--form {
	overflow: hidden;
	padding: 25px 34px 30px;
	border: 1px solid rgb(211 169 70 / 0.58);
	border-top: 4px solid #d0a13a;
	border-radius: 20px;
	box-shadow: 0 24px 68px rgb(0 6 19 / 0.38);
}

.ra-gate-card--form .ra-gate-brand {
	width: auto;
	gap: 12px;
	margin: 0 auto 15px;
}

.ra-gate-card--form .ra-gate-logo {
	width: auto;
	max-width: 84px;
	height: 56px;
	max-height: 56px;
}

.ra-gate-card--form .ra-gate-eyebrow {
	margin-bottom: 9px;
}

.ra-gate-card--form h1 {
	font-size: clamp(2rem, 5vw, 2.55rem);
	line-height: 1.12;
}

.ra-gate-shell--access .ra-gate-intro {
	max-width: 610px;
	margin-top: 13px;
}

.ra-gate-offer {
	position: relative;
	display: flex;
	min-height: 148px;
	align-items: center;
	justify-content: flex-end;
	overflow: hidden;
	margin-top: 20px;
	padding: 18px 24px;
	border: 1px solid #c79b38;
	border-radius: 15px;
	background-color: #031531;
	background-image:
		linear-gradient(90deg, rgb(2 18 43 / 0.08) 0%, rgb(3 18 42 / 0.52) 39%, #03152f 62%, #03152f 100%),
		url("../images/royal-gate-welcome25-banner.webp");
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.045);
	color: #ffffff;
}

.ra-gate-offer__copy {
	position: relative;
	z-index: 1;
	width: 55%;
	min-width: 0;
}

.ra-gate-offer p {
	margin: 0;
}

.ra-gate-offer__eyebrow {
	color: #efc75d;
	font-size: 0.61rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ra-gate-offer__title {
	margin-top: 5px !important;
	font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
	font-size: clamp(1.18rem, 3vw, 1.55rem);
	line-height: 1.18;
}

.ra-gate-offer__title strong {
	color: #efc75d;
}

.ra-gate-offer__detail {
	margin-top: 9px !important;
	color: #d9e4f6;
	font-size: 0.67rem;
	line-height: 1.45;
}

.ra-gate-offer__detail span {
	display: inline-block;
	margin: 0 2px;
	padding: 2px 6px;
	border: 1px solid rgb(239 199 93 / 0.72);
	border-radius: 4px;
	color: #ffffff;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.ra-gate-shell--access .ra-gate-confirmations {
	margin-top: 22px;
}

.ra-gate-shell--access .ra-gate-check {
	border-color: #cbd7e9;
	box-shadow: 0 3px 13px rgb(8 39 92 / 0.045);
}

.ra-gate-shell--access .ra-gate-check:hover {
	border-color: #7594c4;
	background: #f7faff;
}

.ra-gate-shell--access .ra-gate-button {
	border-color: #123e91;
	background: #123e91;
	box-shadow: 0 8px 19px rgb(18 62 145 / 0.2);
}

.ra-gate-shell--access .ra-gate-button:hover:not(:disabled) {
	border-color: #092d72;
	background: #092d72;
}

.ra-gate-shell--access .ra-gate-button:disabled,
.ra-gate-shell--access .ra-gate-button[aria-busy="true"] {
	border-color: #a8b1c0;
	background: #a8b1c0;
	box-shadow: none;
}

.ra-gate-shell--access .ra-gate-login-card {
	padding: 20px 22px;
	border-color: rgb(219 226 240 / 0.42);
	background: rgb(255 255 255 / 0.97);
	box-shadow: 0 14px 38px rgb(0 7 23 / 0.22);
}

.ra-gate-shell--access .ra-gate-footer {
	color: #cbd7e9;
}

.ra-gate-shell--access .ra-gate-footer a {
	color: #e3eaf6;
}

@media (max-width: 767px) {
	.ra-gate-shell--access .ra-gate-page {
		width: 100%;
		margin-top: 20px;
	}

	.ra-gate-shell--access .ra-gate-card--form {
		padding: 21px 18px 25px;
		border-radius: 16px;
	}

	.ra-gate-card--form .ra-gate-logo {
		max-width: 72px;
		height: 48px;
		max-height: 48px;
	}

	.ra-gate-brand__copy strong {
		font-size: 1.05rem;
	}

	.ra-gate-brand__copy span {
		font-size: 0.46rem;
	}

	.ra-gate-card--form h1 {
		font-size: 2rem;
		line-height: 1.13;
	}

	.ra-gate-offer {
		min-height: 178px;
		justify-content: flex-end;
		padding: 16px;
		background-image:
			linear-gradient(90deg, rgb(2 18 43 / 0.12) 0%, rgb(3 18 42 / 0.84) 48%, #03152f 73%, #03152f 100%),
			url("../images/royal-gate-welcome25-banner.webp");
		background-position: 40% center;
	}

	.ra-gate-offer__copy {
		width: 58%;
	}

	.ra-gate-offer__title {
		font-size: 1.15rem;
	}

	.ra-gate-shell--access .ra-gate-check {
		min-height: 72px;
	}
}
