.raft-profile-page {
	background: #f6f8fb;
	color: #111827;
	direction: rtl;
}

.raft-profile-container {
	width: min(100% - 32px, 1180px);
	margin-inline: auto;
}

.raft-profile-hero {
	background: #ffffff;
	border-top: 5px solid #16a085;
	border-bottom: 1px solid #dce3ea;
	padding: 54px 0 48px;
}

.raft-profile-eyebrow,
.raft-profile-kicker {
	margin: 0 0 8px;
	color: #087f6a;
	font-size: 14px;
	font-weight: 800;
}

.raft-profile-hero h1 {
	max-width: 780px;
	margin: 0;
	color: #10233f;
	font-size: 42px;
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0;
}

.raft-profile-intro {
	max-width: 760px;
	margin: 14px 0 0;
	color: #4b5563;
	font-size: 18px;
	line-height: 1.9;
}

.raft-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.raft-profile-button {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.raft-profile-button--primary {
	background: #1769aa;
	color: #ffffff;
}

.raft-profile-button--primary:hover,
.raft-profile-button--primary:focus-visible {
	background: #10568d;
	color: #ffffff;
}

.raft-profile-button--secondary {
	background: #ffffff;
	border-color: #1769aa;
	color: #155b93;
}

.raft-profile-button--secondary:hover,
.raft-profile-button--secondary:focus-visible {
	background: #eef6fc;
	color: #104d7d;
}

.raft-profile-button--quiet {
	background: #eef1f4;
	border-color: #d7dde3;
	color: #25364b;
}

.raft-profile-button--quiet:hover,
.raft-profile-button--quiet:focus-visible {
	background: #e2e7ec;
}

.raft-share-feedback {
	min-height: 24px;
	margin: 8px 0 0;
	color: #087f6a;
	font-size: 13px;
	font-weight: 700;
}

.raft-profile-viewer-band {
	padding: 40px 0 54px;
}

.raft-profile-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.raft-profile-section-heading h2,
.raft-profile-qr-layout h2 {
	margin: 0;
	color: #16283f;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: 0;
}

.raft-profile-section-heading > p,
.raft-profile-qr-layout p {
	margin: 0;
	color: #667085;
	font-size: 14px;
	line-height: 1.8;
}

.raft-pdf-tool {
	overflow: hidden;
	border: 1px solid #cfd8e3;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 14px 32px rgba(16, 35, 63, 0.08);
}

.raft-pdf-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 64px;
	box-sizing: border-box;
	padding: 10px 12px;
	background: #1f2937;
	color: #ffffff;
}

.raft-pdf-toolbar-group {
	display: flex;
	align-items: center;
	gap: 7px;
}

.raft-pdf-toolbar button,
.raft-pdf-navigation button {
	min-width: 42px;
	height: 40px;
	box-sizing: border-box;
	padding: 0 12px;
	border: 1px solid #4b5563;
	border-radius: 5px;
	background: #374151;
	color: #ffffff;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.raft-pdf-toolbar button:hover:not(:disabled),
.raft-pdf-toolbar button:focus-visible:not(:disabled),
.raft-pdf-navigation button:hover:not(:disabled),
.raft-pdf-navigation button:focus-visible:not(:disabled) {
	border-color: #71d6c4;
	background: #087f6a;
}

.raft-pdf-toolbar button:disabled,
.raft-pdf-navigation button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.raft-pdf-navigation {
	display: grid;
	grid-template-columns: minmax(84px, auto) minmax(150px, 1fr) minmax(84px, auto);
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	padding: 12px;
	border-top: 1px solid #4b5563;
	background: #1f2937;
	color: #ffffff;
}

.raft-pdf-navigation button {
	background: #374151;
	color: #ffffff;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.raft-page-control {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	font-size: 13px;
}

.raft-page-control input {
	width: 58px;
	height: 40px;
	box-sizing: border-box;
	border: 1px solid #6b7280;
	border-radius: 5px;
	background: #ffffff;
	color: #111827;
	font: inherit;
	font-weight: 800;
	text-align: center;
}

.raft-pdf-stage {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 680px;
	max-height: 80svh;
	overflow: auto;
	box-sizing: border-box;
	padding: 24px;
	background: #e7ebf0;
	overscroll-behavior: contain;
	touch-action: pan-y pinch-zoom;
	user-select: none;
}

.raft-pdf-stage.is-ready {
	min-height: 0;
}

.raft-pdf-stage canvas {
	display: none;
	flex: 0 0 auto;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.raft-pdf-stage canvas.is-ready {
	display: block;
}

.raft-pdf-stage.is-fit canvas {
	max-width: 100%;
	height: auto !important;
}

.raft-pdf-loading,
.raft-pdf-error {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(100% - 40px, 420px);
	box-sizing: border-box;
	transform: translate(-50%, -50%);
	text-align: center;
}

.raft-pdf-loading {
	display: grid;
	justify-items: center;
	gap: 12px;
	color: #26364b;
}

.raft-pdf-loading[hidden] {
	display: none;
}

.raft-pdf-spinner {
	width: 38px;
	height: 38px;
	border: 4px solid #cbd5e1;
	border-top-color: #087f6a;
	border-radius: 50%;
	animation: raft-pdf-spin 800ms linear infinite;
}

.raft-pdf-loading progress {
	width: min(100%, 280px);
	height: 9px;
	accent-color: #16a085;
}

.raft-pdf-error {
	padding: 22px;
	border: 1px solid #efc2c2;
	border-radius: 7px;
	background: #fff7f7;
	color: #7f1d1d;
}

.raft-pdf-error[hidden] {
	display: none;
}

.raft-pdf-error p {
	margin: 8px 0 16px;
	color: #7f1d1d;
	line-height: 1.8;
}

.raft-pdf-error a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 5px;
	background: #1769aa;
	color: #ffffff;
	font-weight: 800;
	text-decoration: none;
}

html.raft-pdf-fullscreen-open,
body.raft-pdf-fullscreen-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.raft-pdf-tool:fullscreen,
.raft-pdf-tool:-webkit-full-screen,
.raft-pdf-tool.is-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #e7ebf0;
}

.raft-pdf-tool:fullscreen .raft-pdf-stage,
.raft-pdf-tool:-webkit-full-screen .raft-pdf-stage,
.raft-pdf-tool.is-fullscreen .raft-pdf-stage {
	flex: 1;
	min-height: 0;
	max-height: none;
}

.raft-pdf-tool:fullscreen .raft-profile-actions--below,
.raft-pdf-tool:fullscreen .raft-share-feedback,
.raft-pdf-tool:-webkit-full-screen .raft-profile-actions--below,
.raft-pdf-tool:-webkit-full-screen .raft-share-feedback,
.raft-pdf-tool.is-fullscreen .raft-profile-actions--below,
.raft-pdf-tool.is-fullscreen .raft-share-feedback {
	display: none;
}

.raft-profile-actions--below {
	justify-content: center;
	margin: 0;
	padding: 16px 16px 8px;
	border-top: 1px solid #dbe2e9;
}

.raft-profile-actions--below + .raft-share-feedback {
	box-sizing: border-box;
	margin: 0;
	padding: 0 16px 8px;
	text-align: center;
}

.raft-profile-qr-band {
	border-top: 1px solid #dbe2e9;
	background: #ffffff;
	padding: 42px 0;
}

.raft-profile-qr-layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.raft-profile-qr-layout > div {
	max-width: 620px;
}

.raft-profile-qr-layout p {
	margin-top: 10px;
}

.raft-profile-text-link {
	display: inline-block;
	margin-top: 12px;
	color: #155b93;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.raft-profile-qr {
	width: 210px;
	height: 210px;
	flex: 0 0 210px;
	border: 1px solid #d7dde3;
	border-radius: 6px;
	background: #ffffff;
}

@keyframes raft-pdf-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.raft-profile-container {
		width: min(100% - 24px, 1180px);
	}

	.raft-profile-hero {
		padding: 34px 0 30px;
	}

	.raft-profile-hero h1 {
		font-size: 30px;
	}

	.raft-profile-intro {
		font-size: 16px;
		line-height: 1.8;
	}

	.raft-profile-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.raft-profile-button {
		width: 100%;
	}

	.raft-profile-viewer-band {
		padding: 28px 0 38px;
	}

	.raft-profile-section-heading {
		display: block;
	}

	.raft-profile-section-heading > p {
		margin-top: 6px;
	}

	.raft-pdf-toolbar {
		align-items: center;
	}

	.raft-pdf-toolbar-group {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr) 42px minmax(0, 1fr);
		width: 100%;
	}

	.raft-pdf-toolbar button,
	.raft-pdf-navigation button {
		width: 100%;
		min-width: 0;
		padding: 0 7px;
	}

	.raft-page-control {
		justify-content: center;
	}

	.raft-page-control input {
		width: 48px;
	}

	.raft-pdf-stage {
		min-height: 58svh;
		max-height: 72svh;
		padding: 12px;
	}

	.raft-pdf-stage.is-ready {
		min-height: 0;
	}

	.raft-pdf-navigation {
		grid-template-columns: 64px minmax(0, 1fr) 64px;
		gap: 7px;
	}

	.raft-profile-actions--below {
		padding: 14px 12px 6px;
	}

	.raft-profile-qr-layout {
		align-items: flex-start;
		flex-direction: column;
		gap: 24px;
	}

	.raft-profile-qr {
		width: 180px;
		height: 180px;
		flex-basis: 180px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.raft-pdf-spinner {
		animation-duration: 1600ms;
	}
}
