.nsp-rl-container {
	--nsp-rl-dark: #10233f;
	--nsp-rl-green: #0b6f63;
	--nsp-rl-light: #f7f9fb;
	--nsp-rl-gray: #5b6472;
	background: var(--nsp-rl-light);
	border-radius: 8px;
	color: var(--nsp-rl-dark);
	margin: 32px auto;
	max-width: 1180px;
	padding: 42px 24px;
}

.nsp-rl-container .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.nsp-rl-header {
	margin: 0 auto 26px;
	max-width: 760px;
	text-align: center;
}

.nsp-rl-header h2 {
	color: var(--nsp-rl-dark);
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 10px;
}

.nsp-rl-header p {
	color: var(--nsp-rl-gray);
	font-size: 16px;
	line-height: 1.65;
	margin: 0;
}

.nsp-rl-controls {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.nsp-rl-search {
	background: #fff;
	border: 1px solid #d8dee8;
	border-radius: 8px;
	box-shadow: none;
	color: var(--nsp-rl-dark);
	font-size: 15px;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.nsp-rl-search:focus {
	border-color: var(--nsp-rl-green);
	box-shadow: 0 0 0 3px rgba(11, 111, 99, 0.14);
	outline: none;
}

.nsp-rl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.nsp-rl-filter {
	background: #fff;
	border: 1px solid #d8dee8;
	border-radius: 999px;
	color: var(--nsp-rl-dark);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 11px 15px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nsp-rl-filter:hover,
.nsp-rl-filter:focus,
.nsp-rl-filter.is-active {
	background: var(--nsp-rl-green);
	border-color: var(--nsp-rl-green);
	color: #fff;
	outline: none;
}

.nsp-rl-grid {
	display: grid;
	gap: 22px;
}

.nsp-rl-columns-1 .nsp-rl-grid {
	grid-template-columns: minmax(0, 1fr);
}

.nsp-rl-columns-2 .nsp-rl-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nsp-rl-columns-3 .nsp-rl-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nsp-rl-columns-4 .nsp-rl-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nsp-rl-card {
	background: #fff;
	border: 1px solid #e5e9f0;
	border-radius: 8px;
	box-shadow: 0 14px 30px rgba(16, 35, 63, 0.08);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 22px;
}

.nsp-rl-card[hidden] {
	display: none;
}

.nsp-rl-card-top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.nsp-rl-badge {
	background: rgba(11, 111, 99, 0.1);
	border-radius: 999px;
	color: var(--nsp-rl-green);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 7px 10px;
	text-transform: uppercase;
}

.nsp-rl-category {
	color: var(--nsp-rl-gray);
	font-size: 13px;
	font-weight: 600;
}

.nsp-rl-title {
	color: var(--nsp-rl-dark);
	font-size: 20px;
	line-height: 1.35;
	margin: 0 0 10px;
}

.nsp-rl-excerpt {
	color: var(--nsp-rl-gray);
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 22px;
}

.nsp-rl-card-footer {
	align-items: flex-start;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-top: auto;
}

.nsp-rl-card-footer time {
	color: var(--nsp-rl-gray);
	font-size: 13px;
	font-weight: 600;
}

.nsp-rl-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.nsp-rl-download,
.nsp-rl-preview-button {
	background: var(--nsp-rl-green);
	border: 1px solid var(--nsp-rl-green);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 13px 16px;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
	white-space: nowrap;
}

.nsp-rl-preview-button {
	background: #fff;
	color: var(--nsp-rl-green);
}

.nsp-rl-download:hover,
.nsp-rl-download:focus,
.nsp-rl-preview-button:hover,
.nsp-rl-preview-button:focus {
	background: #10233f;
	border-color: #10233f;
	color: #fff;
	outline: none;
	transform: translateY(-1px);
}

.nsp-rl-preview-active {
	overflow: hidden;
}

.nsp-rl-preview-modal[hidden] {
	display: none;
}

.nsp-rl-preview-modal {
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 20px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 99999;
}

.nsp-rl-preview-backdrop {
	background: rgba(16, 35, 63, 0.72);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.nsp-rl-preview-dialog {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 28px 80px rgba(16, 35, 63, 0.32);
	display: flex;
	flex-direction: column;
	max-height: min(860px, 92vh);
	max-width: min(1040px, 94vw);
	position: relative;
	width: 100%;
}

.nsp-rl-preview-header,
.nsp-rl-preview-footer {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 16px 18px;
}

.nsp-rl-preview-header {
	border-bottom: 1px solid #e5e9f0;
}

.nsp-rl-preview-header h3 {
	color: var(--nsp-rl-dark);
	font-size: 18px;
	line-height: 1.35;
	margin: 0;
}

.nsp-rl-preview-close {
	align-items: center;
	background: #f7f9fb;
	border: 1px solid #d8dee8;
	border-radius: 999px;
	color: var(--nsp-rl-dark);
	cursor: pointer;
	display: inline-flex;
	font-size: 24px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 38px;
}

.nsp-rl-preview-close:hover,
.nsp-rl-preview-close:focus {
	background: var(--nsp-rl-dark);
	border-color: var(--nsp-rl-dark);
	color: #fff;
	outline: none;
}

.nsp-rl-preview-body {
	background: #f7f9fb;
	min-height: 280px;
	overflow: auto;
	padding: 16px;
}

.nsp-rl-preview-frame {
	background: #fff;
	border: 0;
	border-radius: 8px;
	display: block;
	height: min(680px, 68vh);
	width: 100%;
}

.nsp-rl-onlyoffice-holder {
	background: #fff;
	border-radius: 8px;
	display: block;
	height: min(720px, 70vh);
	min-height: 520px;
	overflow: hidden;
	width: 100%;
}

.nsp-rl-preview-loading {
	color: var(--nsp-rl-gray);
	font-weight: 700;
	margin: 0 0 12px;
	text-align: center;
}

.nsp-rl-preview-image {
	background: #fff;
	border-radius: 8px;
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: 68vh;
	max-width: 100%;
	object-fit: contain;
}

.nsp-rl-preview-fallback {
	align-items: center;
	background: #fff;
	border: 1px solid #e5e9f0;
	border-radius: 8px;
	color: var(--nsp-rl-gray);
	display: grid;
	gap: 14px;
	justify-items: center;
	margin: 0 auto;
	max-width: 560px;
	padding: 32px;
	text-align: center;
}

.nsp-rl-preview-fallback p {
	margin: 0;
}

.nsp-rl-preview-fallback a {
	color: var(--nsp-rl-green);
	font-weight: 700;
}

.nsp-rl-preview-footer {
	border-top: 1px solid #e5e9f0;
	justify-content: flex-end;
}

.nsp-rl-empty,
.nsp-rl-filter-empty {
	background: #fff;
	border: 1px solid #e5e9f0;
	border-radius: 8px;
	color: var(--nsp-rl-gray);
	margin: 0;
	padding: 20px;
	text-align: center;
}

@media (max-width: 960px) {
	.nsp-rl-columns-3 .nsp-rl-grid,
	.nsp-rl-columns-4 .nsp-rl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.nsp-rl-container {
		margin: 24px auto;
		padding: 30px 16px;
	}

	.nsp-rl-header h2 {
		font-size: 26px;
	}

	.nsp-rl-columns-2 .nsp-rl-grid,
	.nsp-rl-columns-3 .nsp-rl-grid,
	.nsp-rl-columns-4 .nsp-rl-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nsp-rl-card-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.nsp-rl-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.nsp-rl-download,
	.nsp-rl-preview-button {
		justify-content: center;
		width: 100%;
	}

	.nsp-rl-preview-modal {
		padding: 10px;
	}

	.nsp-rl-preview-header,
	.nsp-rl-preview-footer {
		padding: 13px;
	}

	.nsp-rl-preview-body {
		padding: 10px;
	}
}
