/**
 * Evo Downloads stylesheet.
 *
 * Module styles with responsive overrides placed after their related rules.
 * Responsive behaviour is preserved; an overridden padding rule is omitted.
 */

.evo-dl {
	--dl-bg: #151c21;
	--dl-panel: #20292f;
	--dl-panel-alt: rgba(127, 127, 127, 0.07);
	--dl-border: #38464e;
	--dl-text: #edf2f4;
	--dl-muted: #b0bec5;
	--dl-accent: #78f524;
	--dl-accent-text: #14200b;
	--dl-radius: 12px;
	color: var(--dl-text);
	font-family: inherit;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 2100px;
	padding: 18px 0;
	text-align: left;
	width: 100%;
	color-scheme: dark;
}

@media (min-width: 576px) {
	.evo-dl {
		padding: 25px 18px;
	}
}

.evo-dl.evo-dl-error {
	padding: 0;
}

.evo-dl.evo-dl-error .dl-notice {
	margin-bottom: 0;
}

.evo-dl *,
.evo-dl *::before,
.evo-dl *::after {
	box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
	.evo-dl * {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

.evo-dl [hidden] {
	display: none !important;
}

.evo-dl h1,
.evo-dl h2,
.evo-dl h3,
.evo-dl p {
	color: inherit;
	font-family: inherit;
	margin: 0 0 14px;
}

.evo-dl h1 {
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.2;
}

.evo-dl h2 {
	font-size: 19px;
	line-height: 1.35;
}

.evo-dl a {
	color: inherit;
	text-decoration: none;
}

.evo-dl a:hover {
	color: var(--theme-accent, var(--dl-accent));
}

.evo-dl button,
.evo-dl input,
.evo-dl select,
.evo-dl textarea {
	font: inherit;
}

.evo-dl input[type="checkbox" i] {
  accent-color: var(--theme-accent, var(--dl-accent));
}

.evo-dl .dl-btn {
	align-items: center;
	border-radius: 8px;
	color: var(--dl-text);
	cursor: pointer;
	display: inline-flex;
	font-weight: 600;
	gap: 7px;
	justify-content: center;
	line-height: 1.35;
	margin: 0;
	min-height: 42px;
	padding: 10px 15px;
	text-decoration: none;
	transition: background .15s, border-color .15s;
}

.evo-dl .dl-primary {
	background: var(--theme-accent, var(--dl-accent));
	border-color: var(--theme-accent, var(--dl-accent));
	color: var(--dl-accent-text);
}

.evo-dl .dl-primary:hover {
	color: var(--dl-accent-text);
	filter: brightness(1.1);
}

.evo-dl .dl-danger {
	color: #ffb5b5;
}

.evo-dl .dl-heading {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 15px;
	justify-content: space-between;
	margin-bottom: 28px;
}

@media (min-width: 576px) {
	.evo-dl .dl-heading {
		align-items: center;
		flex-direction: row;
	}
}

.evo-dl .dl-heading p {
	color: var(--dl-muted);
	margin: 0;
}

.evo-dl .dl-category-label {
	color: var(--theme-accent, var(--dl-accent));
	display: block;
	font-weight: 700;
	letter-spacing: .13em;
	margin-bottom: 8px;
}

.evo-dl .dl-layout,
.evo-dl .dl-detail-layout {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
	.evo-dl .dl-layout {
		grid-template-columns: 205px minmax(0, 1fr);
	}

	.evo-dl .dl-detail-layout {
		grid-template-columns: minmax(0, 1fr) 325px;
	}
}

.evo-dl .dl-panel {
	border-radius: var(--dl-radius);
	padding: 20px 0;
	min-width: 0;
}

@media (min-width: 992px) {
	.evo-dl .dl-panel {
		padding: 20px;
	}
}

.dl-panel.dl-download-box {
	padding: 20px;
}

.evo-dl .dl-sidebar {
	align-self: start;
	margin: 0;
	padding: 12px;
}

.evo-dl .dl-sidebar h2 {
	padding: 8px 10px;
	margin: 0;
}

.evo-dl .dl-sidebar nav {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

@media (min-width: 992px) {
	.evo-dl .dl-sidebar nav {
		display: flex;
		flex-direction: column;
	}
}

.evo-dl .dl-sidebar a {
	align-items: center;
	border-left: 3px solid transparent;
	border-radius: 5px;
	display: flex;
	gap: 15px;
	justify-content: space-between;
	padding: 10px;
}

.evo-dl .dl-sidebar a:hover {
	background: var(--dl-panel-alt);
}

.evo-dl .dl-sidebar [aria-current="page"] {
	background: var(--dl-panel-alt);
	border-left-color: var(--theme-accent, var(--dl-accent));
	color: var(--theme-accent, var(--dl-accent));
	font-weight: 600;
}

.evo-dl .dl-count {
	background: var(--dl-panel-alt);
	border-radius: 5px;
	color: var(--dl-text);
	padding: 0 6px;
}

.evo-dl .dl-toolbar {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.evo-dl .dl-search {
	flex: 1 1 220px;
	margin: 0;
}

.evo-dl .dl-search input[type="search"] {
	width: 100%;
}

.evo-dl .dl-toolbar select {
	width: auto;
	min-width: 140px;
}

.evo-dl .dl-view-switch {
	display: flex;
	gap: 4px;
}

.evo-dl .dl-view-switch .dl-btn[aria-pressed="true"],
.evo-dl .dl-pages [aria-current="page"] {
	border-color: var(--theme-accent, var(--dl-accent));
	color: var(--theme-accent, var(--dl-accent));
}

.evo-dl .dl-main {
	min-width: 0;
	border-radius: var(--dl-radius);
	padding: 20px;
}

.evo-dl .dl-cards {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 576px) {
	.evo-dl .dl-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.evo-dl .dl-cards[data-view="list"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 1200px) {
	.evo-dl .dl-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.evo-dl .dl-card {
	border-radius: var(--dl-radius);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: 0;
}

@media (min-width: 576px) {
	.evo-dl .dl-cards[data-view="list"] .dl-card {
		flex-direction: row;
	}
}

.evo-dl .dl-featured {
	border-color: var(--theme-accent, var(--dl-accent));
	border-width: 2px;
}

.evo-dl .dl-cover {
	aspect-ratio: 16 / 8;
	background: linear-gradient(135deg, #293f2d, #141d22 48%, #3c6a25);
	display: block;
	overflow: hidden;
	position: relative;
}

@media (min-width: 576px) {
	.evo-dl .dl-cards[data-view="list"] .dl-cover {
		aspect-ratio: auto;
		flex: 0 0 230px;
	}
}

.evo-dl .dl-cover img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.evo-dl .dl-placeholder {
	align-items: center;
	color: var(--dl-accent);
	display: flex;
	font-size: 76px;
	font-weight: 400;
	height: 100%;
	justify-content: center;
}

.evo-dl .dl-featured-badge {
	background: var(--theme-accent, var(--dl-accent));
	border-radius: 5px;
	color: var(--dl-accent-text);
	font-weight: 700;
	left: 12px;
	padding: 3px 8px;
	position: absolute;
	top: 12px;
}

.evo-dl .dl-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
	min-width: 0;
}

@media (min-width: 576px) {
	.evo-dl .dl-cards[data-view="list"] .dl-card-body {
		flex: 1;
	}
}

.evo-dl .dl-card h2 {
	font-size: 20px;
	margin: 9px 0;
	overflow-wrap: anywhere;
}

.evo-dl .dl-card p {
	color: var(--dl-muted);
	margin-bottom: 20px;
	overflow-wrap: anywhere;
}

.evo-dl .dl-meta,
.evo-dl .dl-card-footer {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.evo-dl .dl-card-footer {
	border-top: 1px solid var(--dl-border);
	color: var(--dl-muted);
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
}

.evo-dl .dl-badge {
	background: var(--dl-panel-alt);
	border: 1px solid var(--dl-border);
	border-radius: 5px;
	color: var(--dl-text);
	display: inline-block;
	padding: 2px 7px;
	overflow-wrap: anywhere;
}

.evo-dl .dl-status-published {
	background: #244b1e;
	border-color: #3d6734;
	color: #b9ff9b;
}

.evo-dl .dl-status-pending {
	background: #4d3d1c;
	border-color: #756037;
	color: #ffe0a0;
}

.evo-dl .dl-status-draft {
	color: var(--dl-muted);
}

.evo-dl .dl-pages {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	margin: 26px 0 5px;
}

.evo-dl .dl-pages .dl-btn {
	min-width: 40px;
	padding: 8px;
}

.evo-dl .dl-back {
	color: var(--dl-muted);
	display: inline-block;
	margin-bottom: 20px;
}

.evo-dl .dl-hero-image {
	display: block;
	margin-bottom: 22px;
	overflow: hidden;
}

.evo-dl .dl-hero-image img {
	display: block;
	object-fit: contain;
	width: 100%;
	border-radius: 8px;
}

.evo-dl .dl-tab-nav {
	border-bottom: 1px solid var(--dl-border);
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: -5px 0 23px;
}

.evo-dl .dl-tab-nav a {
	border-bottom: 2px solid transparent;
	color: var(--dl-muted);
	padding: 12px 0;
}

.evo-dl .dl-tab-nav [aria-selected="true"] {
	border-bottom-color: var(--theme-accent, var(--dl-accent));
	color: var(--theme-accent, var(--dl-accent));
}

.evo-dl .dl-tab-panel + .dl-tab-panel {
	margin-top: 30px;
}

.evo-dl .dl-tabs[data-enhanced] .dl-tab-panel {
	margin-top: 0;
}

.evo-dl .dl-prose {
	line-height: 1.85;
	margin-bottom: 25px;
	overflow-wrap: anywhere;
}

.evo-dl .dl-screenshots {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.evo-dl .dl-screenshots img {
	border: 1px solid var(--dl-border);
	border-radius: 8px;
	display: block;
	height: 160px;
	object-fit: contain;
	width: 100%;
}

.evo-dl .dl-download-box {
	align-self: start;
}

@media (min-width: 992px) {
	.evo-dl .dl-download-box {
		position: sticky;
		top: 20px;
	}
}

.evo-dl .dl-download-button {
	font-size: 16px;
	padding: 15px;
	width: 100%;
}

.evo-dl .dl-facts {
	display: grid;
	gap: 14px 12px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin: 22px 0;
}

.evo-dl .dl-facts dt {
	color: var(--dl-muted);
	font-weight: 400;
}

.evo-dl .dl-facts dd {
	margin: 0;
	overflow-wrap: anywhere;
	text-align: right;
}

.evo-dl .dl-date-block {
	border-top: 1px solid var(--dl-border);
	margin-top: 15px;
	padding-top: 15px;
}

.evo-dl .dl-date-block strong {
	display: block;
	margin-bottom: 7px;
}

.evo-dl .dl-date {
	display: block;
	overflow-wrap: anywhere;
}

.evo-dl .dl-date small {
	color: var(--dl-muted);
}

.evo-dl .dl-checksum,
.evo-dl .dl-report {
	border-top: 1px solid var(--dl-border);
	margin-top: 18px;
	padding-top: 15px;
}

.evo-dl summary {
	cursor: pointer;
}

.evo-dl .dl-checksum code,
.evo-dl .dl-storage-path {
	background: transparent;
	color: var(--dl-muted);
	display: block;
	margin-top: 10px;
	overflow-wrap: anywhere;
	white-space: normal;
}

.evo-dl .dl-report form {
	margin-top: 16px;
}

.evo-dl .dl-notice {
	background: #203923;
	border: 1px solid #547f40;
	border-radius: 8px;
	margin-bottom: 24px;
	padding: 16px 20px;
}

.evo-dl .dl-notice[role="alert"] {
	background: #402a28;
	border-color: #a85d55;
}

.evo-dl .dl-empty {
	text-align: center;
}

.evo-dl .dl-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 19px;
	min-width: 0;
}

.evo-dl .dl-field > span {
	font-weight: 600;
}

.evo-dl .dl-field small,
.evo-dl .dl-muted {
	color: var(--dl-muted);
}

.evo-dl .dl-check {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 0 0 20px;
}

.evo-dl .dl-mirror-editor {
	border: 1px solid var(--dl-border);
	border-radius: 8px;
	margin: 0 0 22px;
	padding: 18px;
	min-width: 0;
}

.evo-dl .dl-mirror-editor legend {
	color: var(--dl-text);
	padding: 0 7px;
	font-weight: 600;
	width: auto;
}

.evo-dl .dl-mirror-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin-bottom: 14px;
}

.evo-dl .dl-mirror-row .dl-field {
	flex: 1 1 180px;
	margin: 0;
}

.evo-dl .dl-mirror-row .dl-field:nth-child(2) {
	flex-grow: 2;
}

.evo-dl .dl-mirror-links {
	border-top: 1px solid var(--dl-border);
	padding-top: 20px;
	margin-top: 20px;
}

.evo-dl .dl-mirror-link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	margin-bottom: 9px;
	overflow-wrap: anywhere;
}

.evo-dl .dl-mirror-link small {
	color: var(--dl-muted);
	font-weight: 400;
	font-size: 11px;
}

.evo-dl .dl-form-grid,
.evo-dl .dl-upload-grid {
	display: grid;
	gap: 0 20px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 576px) {
	.evo-dl .dl-form-grid,
	.evo-dl .dl-upload-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.evo-dl .dl-upload-preview {
	border-radius: 8px;
	max-height: 180px;
	object-fit: contain;
	width: 100%;
}

.evo-dl .dl-thumb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
}

.evo-dl .dl-thumb-row img {
	border-radius: 5px;
	height: 80px;
	object-fit: cover;
	width: 120px;
}

.evo-dl .dl-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.evo-dl .dl-inline {
	display: inline-flex;
	margin: 0;
}

.evo-dl .dl-stats {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: 20px;
}

@media (min-width: 576px) {
	.evo-dl .dl-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.evo-dl .dl-stat {
	margin: 0;
}

.evo-dl .dl-stat span {
	color: var(--dl-muted);
	display: block;
}

.evo-dl .dl-stat strong {
	display: block;
	font-size: 29px;
	line-height: 1.3;
	margin-top: 7px;
}

.evo-dl .dl-table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.evo-dl table.dl-table {
	background: transparent;
	border: 0;
	border-collapse: collapse;
	color: var(--dl-text);
	font-size: 1rem;
	margin: 0;
	min-width: 600px;
	text-align: left;
	width: 100%;
}

.evo-dl .dl-table tr {
	background: transparent;
}

.evo-dl .dl-table th {
	color: var(--dl-muted);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .03em;
}

.evo-dl .dl-table th,
.evo-dl .dl-table td {
	border: 0;
	border-bottom: 1px solid var(--dl-border);
	padding: 14px 12px;
	vertical-align: middle;
}

.evo-dl .dl-table tbody tr:last-child td {
	border-bottom: 0;
}

.evo-dl .dl-table td small {
	color: var(--dl-muted);
	display: block;
	font-size: 11px;
	margin-top: 4px;
}

.evo-dl .dl-table .dl-btn {
	min-height: 36px;
	padding: 7px 10px;
}

.evo-dl .dl-category-editor > .dl-inline {
	margin-top: 12px;
}

.evo-dl .dl-audit {
	margin-top: 20px;
}

.evo-dl .dl-audit h3 {
	margin-top: 20px;
}

.evo-dl .dl-sr-only {
	clip: rect(0,0,0,0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
