.ejo-pub-design-v2,
.ejo-pub-design-v2 *,
.ejo-pub-design-v2 *::before,
.ejo-pub-design-v2 *::after {
	box-sizing: border-box;
}

.ejo-pub-design-v2 {
	--ejo-pub-dark: #201c1d;
	--ejo-pub-ink: #302a2b;
	--ejo-pub-primary: #f47538;
	--ejo-pub-primary-hover: #f2611c;
	--ejo-pub-secondary: #44914a;
	--ejo-pub-muted: #716866;
	--ejo-pub-line: #e9e2dc;
	--ejo-pub-line-strong: #d8ccc3;
	--ejo-pub-soft: #fff6f1;
	--ejo-pub-green-soft: #f1f8f2;
	--ejo-pub-shadow: 0 18px 46px rgba(32, 28, 29, 0.08);
	--ejo-pub-shadow-strong: 0 30px 80px rgba(32, 28, 29, 0.26);
	color: var(--ejo-pub-dark);
	font-size: 16px;
	margin: clamp(30px, 5vw, 58px) 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.ejo-pub-design-v2 .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;
}

.ejo-pub-header {
	display: grid;
	gap: 8px;
	margin: 0 0 22px;
	max-width: 760px;
}

.ejo-pub-eyebrow {
	align-items: center;
	color: var(--ejo-pub-primary);
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	gap: 9px;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ejo-pub-eyebrow::before {
	background: var(--ejo-pub-primary);
	content: "";
	display: inline-block;
	height: 2px;
	width: 28px;
}

.ejo-pub-header h2 {
	color: var(--ejo-pub-dark);
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.05;
	margin: 0;
}

.ejo-pub-header p {
	color: var(--ejo-pub-muted);
	font-size: clamp(15px, 1.55vw, 17px);
	line-height: 1.7;
	margin: 0;
}

.ejo-pub-count {
	color: var(--ejo-pub-secondary);
	display: inline-flex;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

.ejo-pub-controls {
	border-bottom: 1px solid var(--ejo-pub-line);
	border-top: 1px solid var(--ejo-pub-line);
	display: grid;
	gap: 14px;
	margin: 0 0 24px;
	padding: 16px 0;
}

.ejo-pub-search-wrap {
	max-width: 460px;
	position: relative;
	width: 100%;
}

.ejo-pub-search {
	appearance: none;
	background: #fff;
	border: 1px solid var(--ejo-pub-line-strong);
	border-radius: 6px;
	box-shadow: none;
	color: var(--ejo-pub-dark);
	font: inherit;
	font-size: 15px;
	line-height: 1.3;
	min-height: 46px;
	padding: 12px 70px 12px 14px;
	width: 100%;
}

.ejo-pub-search::placeholder {
	color: #8d807b;
	opacity: 1;
}

.ejo-pub-search:focus,
.ejo-pub-search:focus-visible {
	border-color: var(--ejo-pub-primary);
	box-shadow: 0 0 0 3px rgba(244, 117, 56, 0.16);
	outline: none;
}

.ejo-pub-search-clear {
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--ejo-pub-primary);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	padding: 9px;
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
}

.ejo-pub-search-clear:hover,
.ejo-pub-search-clear:focus-visible {
	background: var(--ejo-pub-soft);
	outline: none;
}

.ejo-pub-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
}

.ejo-pub-filter {
	-webkit-tap-highlight-color: transparent;
	background: #fff;
	border: 1px solid var(--ejo-pub-line-strong);
	border-radius: 999px;
	color: var(--ejo-pub-ink);
	cursor: pointer;
	flex: 0 0 auto;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	min-height: 38px;
	padding: 10px 13px;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.ejo-pub-filter:hover,
.ejo-pub-filter:focus-visible {
	border-color: var(--ejo-pub-primary);
	color: var(--ejo-pub-primary-hover);
	outline: none;
}

.ejo-pub-filter.is-active {
	background: var(--ejo-pub-dark);
	border-color: var(--ejo-pub-dark);
	color: #fff;
}

.ejo-pub-grid {
	display: grid;
	gap: 14px;
}

.ejo-pub-card {
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--ejo-pub-line);
	border-radius: 8px;
	display: grid;
	grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto;
	grid-template-areas: "media body actions";
	min-height: 168px;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ejo-pub-card:hover {
	border-color: rgba(244, 117, 56, 0.62);
	box-shadow: var(--ejo-pub-shadow);
	transform: translateY(-1px);
}

.ejo-pub-card[hidden] {
	display: none;
}

.ejo-pub-card.has-no-image::before {
	align-items: center;
	background: linear-gradient(135deg, var(--ejo-pub-soft), #fff);
	border-right: 1px solid var(--ejo-pub-line);
	color: var(--ejo-pub-primary);
	content: attr(data-file-label);
	display: flex;
	font-size: 18px;
	font-weight: 900;
	grid-area: media;
	justify-content: center;
	letter-spacing: 0.08em;
	min-height: 220px;
}

.ejo-pub-card-image {
	background: var(--ejo-pub-soft);
	border-right: 1px solid var(--ejo-pub-line);
	grid-area: media;
	height: 100%;
	margin: 0;
	min-height: 220px;
	overflow: hidden;
	width: 100%;
}

.ejo-pub-card-image img {
	display: block;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
	width: 100%;
}

.ejo-pub-card-body {
	display: grid;
	gap: 10px;
	grid-area: body;
	min-width: 0;
	padding: 20px 22px;
}

.ejo-pub-card-top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ejo-pub-badge,
.ejo-pub-preview-status,
.ejo-pub-auto-file {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.05em;
	line-height: 1;
	padding: 7px 9px;
	text-transform: uppercase;
}

.ejo-pub-badge {
	background: var(--ejo-pub-soft);
	border: 1px solid rgba(244, 117, 56, 0.18);
	color: var(--ejo-pub-primary-hover);
}

.ejo-pub-preview-status {
	background: var(--ejo-pub-green-soft);
	border: 1px solid rgba(68, 145, 74, 0.22);
	color: var(--ejo-pub-secondary);
}

.ejo-pub-auto-file {
	background: #f5f2ef;
	border: 1px solid var(--ejo-pub-line-strong);
	color: var(--ejo-pub-muted);
}

.ejo-pub-title {
	color: var(--ejo-pub-dark);
	font-size: clamp(19px, 2vw, 23px);
	font-weight: 900;
	line-height: 1.22;
	margin: 0;
	overflow-wrap: anywhere;
}

.ejo-pub-excerpt {
	color: var(--ejo-pub-muted);
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
	max-width: 780px;
	overflow-wrap: anywhere;
}

.ejo-pub-meta {
	align-items: center;
	color: var(--ejo-pub-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 800;
	gap: 8px 14px;
	line-height: 1.35;
	margin-top: 2px;
}

.ejo-pub-meta time,
.ejo-pub-category {
	display: inline-flex;
}

.ejo-pub-category {
	color: var(--ejo-pub-secondary);
}

.ejo-pub-card-actions {
	align-items: center;
	border-left: 1px solid var(--ejo-pub-line);
	display: flex;
	grid-area: actions;
	justify-content: center;
	min-width: 190px;
	padding: 18px;
}

.ejo-pub-actions {
	display: grid;
	gap: 9px;
	width: 100%;
}

.ejo-pub-download,
.ejo-pub-preview-button,
.ejo-pub-preview-secondary-close {
	-webkit-tap-highlight-color: transparent;
	align-items: center;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	justify-content: center;
	line-height: 1.15;
	min-height: 42px;
	padding: 11px 14px;
	text-align: center;
	text-decoration: none;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
	white-space: nowrap;
	width: 100%;
}

.ejo-pub-download {
	background: var(--ejo-pub-primary);
	border: 1px solid var(--ejo-pub-primary);
	color: #fff;
}

.ejo-pub-download:visited {
	color: #fff;
}

.ejo-pub-preview-button,
.ejo-pub-preview-secondary-close {
	background: #fff;
	border: 1px solid var(--ejo-pub-dark);
	color: var(--ejo-pub-dark);
}

.ejo-pub-preview-button {
	background: var(--ejo-pub-dark);
	color: #fff;
}

.ejo-pub-download:hover,
.ejo-pub-download:focus-visible {
	background: var(--ejo-pub-primary-hover);
	border-color: var(--ejo-pub-primary-hover);
	color: #fff;
	outline: none;
}

.ejo-pub-preview-button:hover,
.ejo-pub-preview-button:focus-visible,
.ejo-pub-preview-secondary-close:hover,
.ejo-pub-preview-secondary-close:focus-visible {
	background: #000;
	border-color: #000;
	color: #fff;
	outline: none;
}

.ejo-pub-missing-file {
	background: #fff7e8;
	border: 1px solid #f7d39c;
	border-radius: 6px;
	color: #8a5a00;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.45;
	margin: 0;
	padding: 12px;
}

html.ejo-pub-preview-active,
body.ejo-pub-preview-active {
	overflow: hidden;
}

.ejo-pub-preview-modal[hidden] {
	display: none;
}

.ejo-pub-preview-modal {
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: clamp(10px, 2vw, 24px);
	position: fixed;
	right: 0;
	top: 0;
	z-index: 99999;
}

.ejo-pub-preview-backdrop {
	background: rgba(32, 28, 29, 0.78);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

@supports (backdrop-filter: blur(10px)) {
	.ejo-pub-preview-backdrop {
		backdrop-filter: blur(4px);
	}
}

.ejo-pub-preview-dialog {
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--ejo-pub-shadow-strong);
	display: flex;
	flex-direction: column;
	height: min(860px, calc(100dvh - 32px));
	max-width: min(1120px, calc(100vw - 32px));
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ejo-pub-preview-dialog:focus {
	outline: none;
}

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

.ejo-pub-preview-header {
	border-bottom: 1px solid var(--ejo-pub-line);
}

.ejo-pub-preview-header h3 {
	color: var(--ejo-pub-dark);
	font-size: clamp(17px, 2vw, 20px);
	font-weight: 900;
	line-height: 1.35;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.ejo-pub-preview-close {
	-webkit-tap-highlight-color: transparent;
	align-items: center;
	background: #fff;
	border: 1px solid var(--ejo-pub-line-strong);
	border-radius: 999px;
	color: var(--ejo-pub-dark);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font: inherit;
	font-size: 24px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 40px;
}

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

.ejo-pub-preview-body {
	background: #f6f3ef;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	min-height: 0;
	overflow: auto;
	padding: 12px;
}

.ejo-pub-pdf-toolbar {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
}

.ejo-pub-pdf-open {
	background: #fff;
	border: 1px solid var(--ejo-pub-line-strong);
	border-radius: 6px;
	color: var(--ejo-pub-dark);
	display: inline-flex;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	padding: 10px 12px;
	text-decoration: none;
}

.ejo-pub-pdf-open:hover,
.ejo-pub-pdf-open:focus-visible {
	background: var(--ejo-pub-dark);
	border-color: var(--ejo-pub-dark);
	color: #fff;
	outline: none;
}

.ejo-pub-preview-frame {
	background: #fff;
	border: 0;
	border-radius: 6px;
	display: block;
	flex: 1 1 auto;
	height: auto;
	min-height: 520px;
	width: 100%;
}

.ejo-pub-onlyoffice-holder {
	background: #fff;
	border-radius: 6px;
	display: block;
	height: 100%;
	min-height: 520px;
	overflow: hidden;
	width: 100%;
}

.ejo-pub-preview-loading {
	color: var(--ejo-pub-muted);
	font-weight: 900;
	margin: 0 0 12px;
	text-align: center;
}

.ejo-pub-preview-image {
	background: #fff;
	border-radius: 6px;
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.ejo-pub-preview-fallback {
	align-items: center;
	background: #fff;
	border: 1px solid var(--ejo-pub-line);
	border-radius: 8px;
	color: var(--ejo-pub-muted);
	display: grid;
	gap: 14px;
	justify-items: center;
	margin: 0 auto;
	max-width: 580px;
	padding: clamp(24px, 5vw, 40px);
	text-align: center;
}

.ejo-pub-preview-fallback p {
	line-height: 1.65;
	margin: 0;
}

.ejo-pub-preview-fallback a {
	color: var(--ejo-pub-primary);
	font-weight: 900;
}

.ejo-pub-preview-footer {
	border-top: 1px solid var(--ejo-pub-line);
	justify-content: flex-end;
}

.ejo-pub-preview-footer .ejo-pub-download,
.ejo-pub-preview-secondary-close {
	width: auto;
}

.ejo-pub-empty,
.ejo-pub-filter-empty {
	background: #fff;
	border: 1px solid var(--ejo-pub-line);
	border-radius: 8px;
	color: var(--ejo-pub-muted);
	font-weight: 800;
	line-height: 1.6;
	margin: 0;
	padding: 22px;
	text-align: center;
}

.ejo-pub-filter-empty {
	margin-top: 18px;
}

@media (max-width: 980px) {
	.ejo-pub-card {
		grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
		grid-template-areas:
			"media body"
			"actions actions";
	}

	.ejo-pub-card-actions {
		border-left: 0;
		border-top: 1px solid var(--ejo-pub-line);
		grid-column: 1 / -1;
		justify-content: flex-start;
		padding: 14px 18px;
	}

	.ejo-pub-actions {
		display: flex;
		flex-wrap: wrap;
	}

	.ejo-pub-download,
	.ejo-pub-preview-button {
		width: auto;
	}
}

@media (max-width: 720px) {
	.ejo-pub-design-v2 {
		margin: 26px 0 42px;
	}

	.ejo-pub-controls {
		padding: 14px 0;
	}

	.ejo-pub-filters {
		flex-wrap: nowrap;
		margin-left: -2px;
		margin-right: -2px;
		overflow-x: auto;
		padding: 0 2px 6px;
		scrollbar-width: thin;
	}

	.ejo-pub-card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"media"
			"body"
			"actions";
	}

	.ejo-pub-card.has-no-image::before {
		min-height: 82px;
	}

	.ejo-pub-card-image {
		border-bottom: 1px solid var(--ejo-pub-line);
		border-right: 0;
		height: auto;
		min-height: 0;
	}

	.ejo-pub-card-image img {
		aspect-ratio: 16 / 9;
		height: auto;
	}

	.ejo-pub-card-body {
		padding: 18px;
	}

	.ejo-pub-card-actions {
		padding: 0 18px 18px;
	}

	.ejo-pub-actions {
		display: grid;
		width: 100%;
	}

	.ejo-pub-download,
	.ejo-pub-preview-button {
		width: 100%;
		white-space: normal;
	}
}

@media (max-width: 560px) {
	.ejo-pub-preview-modal {
		padding: 0;
	}

	.ejo-pub-preview-dialog {
		border-radius: 0;
		height: 100dvh;
		max-height: none;
		max-width: none;
		width: 100vw;
	}

	.ejo-pub-preview-header,
	.ejo-pub-preview-footer {
		padding: 12px;
	}

	.ejo-pub-preview-body {
		padding: 8px;
	}

	.ejo-pub-preview-frame,
	.ejo-pub-onlyoffice-holder {
		min-height: calc(100dvh - 140px);
	}

	.ejo-pub-preview-footer {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.ejo-pub-preview-footer .ejo-pub-download,
	.ejo-pub-preview-secondary-close {
		width: 100%;
	}
}

@supports not (height: 100dvh) {
	.ejo-pub-preview-dialog {
		height: calc(100vh - 32px);
	}

	@media (max-width: 560px) {
		.ejo-pub-preview-dialog {
			height: 100vh;
		}

		.ejo-pub-preview-frame,
		.ejo-pub-onlyoffice-holder {
			min-height: calc(100vh - 140px);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.ejo-pub-card,
	.ejo-pub-download,
	.ejo-pub-filter,
	.ejo-pub-preview-button,
	.ejo-pub-preview-secondary-close {
		transition: none;
	}

	.ejo-pub-card:hover {
		transform: none;
	}
}
