/**
 * SIMPLE Downloads Manager Pro — public library styles.
 *
 * All selectors are prefixed `.sdmp-`. Design tokens live as CSS custom
 * properties on `.sdmp-library` (overridden by the settings-driven inline
 * style emitted by SDMP_Frontend). Responsive: desktop grid, tablet wrap,
 * mobile single column with collapsible filters and horizontally scrollable
 * category cards. All touch targets are at least 44px on mobile.
 *
 * @package Simple_Downloads_Manager_Pro
 */

/* ------------------------------------------------------------------ */
/* Tokens + base                                                       */
/* ------------------------------------------------------------------ */

.sdmp-library {
	container-type: inline-size;
	container-name: sdmp;
	--sdmp-navy: #0A2855;
	--sdmp-navy-dark: #061E46;
	--sdmp-gold: #FFD200;
	--sdmp-gold-accent: #F7C600;
	--sdmp-bg: #F7F9FC;
	--sdmp-border: #E4EAF2;
	--sdmp-text: #1F2937;
	--sdmp-muted: #667085;
	--sdmp-white: #FFFFFF;
	--sdmp-radius: 14px;
	--sdmp-shadow: 0 2px 10px rgba(6, 30, 70, .06);
	--sdmp-shadow-hover: 0 8px 24px rgba(6, 30, 70, .14);

	color: var(--sdmp-text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.sdmp-library,
.sdmp-library *,
.sdmp-library *::before,
.sdmp-library *::after {
	box-sizing: border-box;
}

.sdmp-library [hidden] {
	display: none !important;
}

.sdmp-library img,
.sdmp-library svg {
	max-width: 100%;
}

.sdmp-library button {
	font: inherit;
	cursor: pointer;
}

/* Screen-reader-only text. */
.sdmp-library .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus visibility — gold ring everywhere. */
.sdmp-library a:focus-visible,
.sdmp-library button:focus-visible,
.sdmp-library input:focus-visible,
.sdmp-library select:focus-visible,
.sdmp-library textarea:focus-visible,
.sdmp-library [tabindex]:focus-visible {
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .45);
	border-radius: 6px;
}

/* Generic inline icon. */
.sdmp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: none;
	vertical-align: middle;
}

.sdmp-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Loading state. */
.sdmp-library .sdmp-results {
	transition: opacity .18s ease;
}

.sdmp-library.is-loading .sdmp-results {
	opacity: .5;
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.sdmp-hero {
	background: linear-gradient(135deg, var(--sdmp-navy) 0%, var(--sdmp-navy-dark) 100%);
	color: var(--sdmp-white);
	border-radius: var(--sdmp-radius);
	padding: clamp(40px, 6vw, 72px);
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin: 0 0 28px;
}

@container sdmp (min-width: 900px) {
	.sdmp-hero {
		grid-template-columns: 1.2fr .8fr;
		gap: 48px;
		align-items: center;
	}

	.sdmp-hero--no-card {
		grid-template-columns: 1fr;
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 900px) {
	.sdmp-hero {
		grid-template-columns: 1.2fr .8fr;
		gap: 48px;
		align-items: center;
	}

	.sdmp-hero--no-card {
		grid-template-columns: 1fr;
	}
}
}

.sdmp-breadcrumb {
	color: rgba(255, 255, 255, .8);
	font-size: .85rem;
	margin: 0 0 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sdmp-breadcrumb-sep {
	color: rgba(255, 255, 255, .5);
}

.sdmp-hero-heading {
	position: relative;
	padding-left: 18px;
	margin: 0 0 14px;
}

.sdmp-hero-heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	border-radius: 2px;
	background: var(--sdmp-gold);
}

.sdmp-hero-title {
	margin: 0;
	color: var(--sdmp-white);
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
}

.sdmp-hero-subtitle {
	margin: 0;
	color: rgba(255, 255, 255, .85);
	font-size: 1.05rem;
	max-width: 46ch;
}

/* ------------------------------------------------------------------ */
/* Submit card + form                                                  */
/* ------------------------------------------------------------------ */

.sdmp-submit-card {
	background: var(--sdmp-white);
	color: var(--sdmp-text);
	border-radius: var(--sdmp-radius);
	box-shadow: var(--sdmp-shadow);
	padding: 28px;
}

.sdmp-submit-heading {
	margin: 0 0 6px;
	color: var(--sdmp-navy);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
}

.sdmp-submit-desc {
	margin: 0 0 18px;
	color: var(--sdmp-muted);
	font-size: .92rem;
}

.sdmp-submit-form .sdmp-field {
	margin: 0 0 14px;
}

.sdmp-submit-form .sdmp-field-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 14px;
}

@container sdmp (min-width: 560px) {
	.sdmp-submit-form .sdmp-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 560px) {
	.sdmp-submit-form .sdmp-field-row {
		grid-template-columns: 1fr 1fr;
	}
}
}

.sdmp-submit-form label,
.sdmp-submit-form .sdmp-field-label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	color: var(--sdmp-navy);
	margin: 0 0 6px;
}

.sdmp-required {
	color: #B42318;
}

.sdmp-submit-form .sdmp-input,
.sdmp-submit-form .sdmp-select,
.sdmp-submit-form .sdmp-textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	background: var(--sdmp-white);
	color: var(--sdmp-text);
	border: 1px solid var(--sdmp-border);
	border-radius: 10px;
	font: inherit;
	font-size: .95rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.sdmp-submit-form .sdmp-textarea {
	min-height: 88px;
	resize: vertical;
}

.sdmp-submit-form .sdmp-input:focus,
.sdmp-submit-form .sdmp-select:focus,
.sdmp-submit-form .sdmp-textarea:focus {
	outline: none;
	border-color: var(--sdmp-navy);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .4);
}

/* Honeypot — offscreen, never display:none (bots check). */
.sdmp-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Dropzone. */
.sdmp-dropzone {
	position: relative;
	border: 2px dashed rgba(10, 40, 85, .25);
	border-radius: 12px;
	padding: 28px;
	text-align: center;
	background: var(--sdmp-bg);
	transition: border-color .15s ease, background-color .15s ease;
	cursor: pointer;
}

@supports (border-color: color-mix(in srgb, red 50%, transparent)) {
	.sdmp-dropzone {
		border-color: color-mix(in srgb, var(--sdmp-navy) 25%, transparent);
	}
}

.sdmp-dropzone.is-dragover {
	border-color: var(--sdmp-gold);
	background: rgba(255, 210, 0, .08);
}

.sdmp-dropzone .sdmp-icon {
	width: 28px;
	height: 28px;
	color: var(--sdmp-navy);
	margin-bottom: 8px;
}

.sdmp-dropzone-text {
	margin: 0 0 4px;
	font-weight: 600;
	color: var(--sdmp-navy);
	font-size: .95rem;
}

.sdmp-or {
	display: block;
	color: var(--sdmp-muted);
	font-size: .8rem;
	margin: 4px 0 10px;
	text-transform: lowercase;
}

.sdmp-choose {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	background: var(--sdmp-navy);
	color: var(--sdmp-white);
	border: 0;
	border-radius: 10px;
	font-weight: 600;
	font-size: .9rem;
	transition: background-color .15s ease;
}

.sdmp-choose:hover {
	background: var(--sdmp-navy-dark);
}

/* The real file input stays focusable-hidden inside the dropzone. */
.sdmp-file-input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sdmp-dropzone-info {
	margin: 8px 0 0;
	color: var(--sdmp-muted);
	font-size: .78rem;
	text-align: center;
}

.sdmp-file-chosen {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 10px 12px;
	background: rgba(10, 40, 85, .06);
	border-radius: 10px;
	font-size: .88rem;
}

.sdmp-file-chosen .sdmp-icon {
	color: var(--sdmp-navy);
}

.sdmp-file-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--sdmp-text);
	font-weight: 500;
}

.sdmp-file-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: none;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--sdmp-muted);
	transition: color .15s ease, background-color .15s ease;
}

.sdmp-file-clear:hover {
	color: #B42318;
	background: rgba(180, 35, 24, .08);
}

.sdmp-file-clear .sdmp-icon {
	width: 16px;
	height: 16px;
}

.sdmp-captcha {
	margin: 0 0 14px;
}

.sdmp-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	background: var(--sdmp-gold);
	color: var(--sdmp-navy);
	border: 0;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	transition: background-color .15s ease, transform .1s ease;
}

.sdmp-submit-btn:hover {
	background: var(--sdmp-gold-accent);
}

.sdmp-submit-btn:disabled {
	opacity: .7;
	cursor: wait;
}

.sdmp-submit-msg {
	margin-top: 12px;
	font-size: .9rem;
	border-radius: 10px;
}

.sdmp-submit-msg:empty {
	display: none;
}

.sdmp-submit-msg.is-error {
	padding: 10px 14px;
	background: #FEF3F2;
	border: 1px solid #FECDCA;
	color: #B42318;
}

.sdmp-submit-msg.is-success {
	padding: 10px 14px;
	background: #ECFDF3;
	border: 1px solid #ABEFC6;
	color: #067647;
}

/* ------------------------------------------------------------------ */
/* Controls: search, filter toggle, filters                            */
/* ------------------------------------------------------------------ */

.sdmp-controls {
	margin: 0 0 22px;
}

.sdmp-searchbar {
	position: relative;
	margin: 0 0 14px;
}

.sdmp-searchbar > .sdmp-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: var(--sdmp-muted);
	pointer-events: none;
}

.sdmp-search {
	display: block;
	width: 100%;
	height: 54px;
	padding: 0 16px 0 46px;
	background: var(--sdmp-white);
	color: var(--sdmp-text);
	border: 1px solid var(--sdmp-border);
	border-radius: var(--sdmp-radius);
	font: inherit;
	font-size: 1rem;
	box-shadow: var(--sdmp-shadow);
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.sdmp-search::placeholder {
	color: var(--sdmp-muted);
}

.sdmp-search:focus {
	outline: none;
	border-color: var(--sdmp-navy);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .4);
}

/* Filter toggle — mobile only. */
.sdmp-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	background: var(--sdmp-white);
	color: var(--sdmp-navy);
	border: 1px solid var(--sdmp-border);
	border-radius: 10px;
	font-weight: 600;
	font-size: .9rem;
	margin: 0 0 12px;
}

.sdmp-filter-toggle .sdmp-icon {
	width: 16px;
	height: 16px;
}

.sdmp-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.sdmp-filter,
.sdmp-sort {
	min-height: 44px;
	padding: 8px 34px 8px 12px;
	background-color: var(--sdmp-white);
	color: var(--sdmp-text);
	border: 1px solid var(--sdmp-border);
	border-radius: 10px;
	font: inherit;
	font-size: .9rem;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.sdmp-filter:focus,
.sdmp-sort:focus {
	outline: none;
	border-color: var(--sdmp-navy);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .4);
}

.sdmp-clear-filters {
	min-height: 44px;
	padding: 0 16px;
	background: transparent;
	color: var(--sdmp-navy);
	border: 1px solid rgba(10, 40, 85, .35);
	border-radius: 10px;
	font-weight: 600;
	font-size: .9rem;
	transition: background-color .15s ease, color .15s ease;
}

.sdmp-clear-filters:hover {
	background: var(--sdmp-navy);
	color: var(--sdmp-white);
}

@container sdmp (max-width: 767px) {
	.sdmp-filter-toggle {
		display: inline-flex;
	}

	.sdmp-filters {
		display: none;
	}

	.sdmp-filters.is-open {
		display: flex;
	}

	.sdmp-filter,
	.sdmp-sort,
	.sdmp-clear-filters {
		width: 100%;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 767px) {
	.sdmp-filter-toggle {
		display: inline-flex;
	}

	.sdmp-filters {
		display: none;
	}

	.sdmp-filters.is-open {
		display: flex;
	}

	.sdmp-filter,
	.sdmp-sort,
	.sdmp-clear-filters {
		width: 100%;
	}
}
}

/* ------------------------------------------------------------------ */
/* Category cards                                                      */
/* ------------------------------------------------------------------ */

.sdmp-cat-cards {
	margin: 0 0 26px;
}

@container sdmp (min-width: 768px) {
	.sdmp-cat-cards {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 14px;
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 768px) {
	.sdmp-cat-cards {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 14px;
	}
}
}

@container sdmp (max-width: 767px) {
	.sdmp-cat-cards {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 767px) {
	.sdmp-cat-cards {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
}
}

.sdmp-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 18px 12px;
	background: var(--sdmp-white);
	border: 1px solid var(--sdmp-border);
	border-radius: var(--sdmp-radius);
	text-align: center;
	color: var(--sdmp-text);
	box-shadow: var(--sdmp-shadow);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

@container sdmp (max-width: 767px) {
	.sdmp-cat-card {
		min-width: 150px;
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 767px) {
	.sdmp-cat-card {
		min-width: 150px;
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
}
}

.sdmp-cat-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--sdmp-shadow-hover);
}

.sdmp-cat-card:focus-visible {
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px rgba(255, 210, 0, .45);
}

.sdmp-cat-card .sdmp-icon {
	width: 28px;
	height: 28px;
	color: var(--sdmp-navy);
}

.sdmp-cat-name {
	font-weight: 600;
	font-size: .88rem;
	line-height: 1.3;
	color: var(--sdmp-navy);
}

.sdmp-cat-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	padding: 2px 10px;
	background: var(--sdmp-navy);
	color: var(--sdmp-white);
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.5;
}

/* Active card: 2px gold border effect + gold tint + gold icon. */
.sdmp-cat-card.is-active {
	border-color: var(--sdmp-gold);
	box-shadow: inset 0 0 0 1px var(--sdmp-gold), var(--sdmp-shadow);
	background: rgba(255, 210, 0, .08);
}

.sdmp-cat-card.is-active .sdmp-icon {
	color: var(--sdmp-gold-accent);
}

.sdmp-cat-card.is-active .sdmp-cat-count {
	background: var(--sdmp-gold);
	color: var(--sdmp-navy);
}

/* ------------------------------------------------------------------ */
/* Status line                                                         */
/* ------------------------------------------------------------------ */

.sdmp-status {
	min-height: 1.4em;
	margin: 0 0 14px;
	color: var(--sdmp-muted);
	font-size: .9rem;
	font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Sections (grouped mode)                                             */
/* ------------------------------------------------------------------ */

.sdmp-section {
	margin: 0 0 34px;
}

.sdmp-section-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	flex-wrap: wrap;
}

.sdmp-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 10px;
	background: rgba(10, 40, 85, .08);
	color: var(--sdmp-navy);
}

.sdmp-section-icon .sdmp-icon {
	width: 20px;
	height: 20px;
}

.sdmp-section-title {
	margin: 0;
	color: var(--sdmp-navy);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.sdmp-section-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	padding: 2px 10px;
	background: var(--sdmp-gold);
	color: var(--sdmp-navy);
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
}

.sdmp-view-all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	min-height: 44px;
	padding: 0 6px;
	color: var(--sdmp-navy);
	font-weight: 600;
	font-size: .88rem;
	text-decoration: none;
	transition: color .15s ease;
}

.sdmp-view-all:hover {
	color: var(--sdmp-gold-accent);
	text-decoration: underline;
}

.sdmp-view-all .sdmp-icon {
	width: 16px;
	height: 16px;
}

.sdmp-collapse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	background: transparent;
	border: 1px solid var(--sdmp-border);
	border-radius: 10px;
	color: var(--sdmp-navy);
	transition: background-color .15s ease, border-color .15s ease;
}

.sdmp-collapse:hover {
	background: rgba(10, 40, 85, .06);
}

.sdmp-collapse .sdmp-icon {
	width: 16px;
	height: 16px;
	transition: transform .2s ease;
}

.sdmp-section.is-collapsed .sdmp-collapse .sdmp-icon {
	transform: rotate(-90deg);
}

.sdmp-section.is-collapsed .sdmp-rows {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Rows grid                                                           */
/* ------------------------------------------------------------------ */

.sdmp-rows {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@container sdmp (min-width: 760px) {
	.sdmp-rows[data-columns="3"] {
		grid-template-columns: repeat(2, 1fr);
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 760px) {
	.sdmp-rows[data-columns="3"] {
		grid-template-columns: repeat(2, 1fr);
	}
}
}

@container sdmp (min-width: 900px) {
	.sdmp-rows[data-columns="2"] {
		grid-template-columns: repeat(2, 1fr);
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 900px) {
	.sdmp-rows[data-columns="2"] {
		grid-template-columns: repeat(2, 1fr);
	}
}
}

@container sdmp (min-width: 1100px) {
	.sdmp-rows[data-columns="3"] {
		grid-template-columns: repeat(3, 1fr);
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 1100px) {
	.sdmp-rows[data-columns="3"] {
		grid-template-columns: repeat(3, 1fr);
	}
}
}

/* ------------------------------------------------------------------ */
/* Document row                                                        */
/* ------------------------------------------------------------------ */

.sdmp-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	background: var(--sdmp-white);
	border: 1px solid var(--sdmp-border);
	border-radius: 12px;
	box-shadow: var(--sdmp-shadow);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.sdmp-row:hover {
	transform: translateY(-1px);
	box-shadow: var(--sdmp-shadow-hover);
	border-color: rgba(10, 40, 85, .2);
}

.sdmp-row.is-featured {
	box-shadow: inset 3px 0 0 var(--sdmp-gold), var(--sdmp-shadow);
}

.sdmp-row.is-featured:hover {
	box-shadow: inset 3px 0 0 var(--sdmp-gold), var(--sdmp-shadow-hover);
}

.sdmp-row-main {
	flex: 1;
	min-width: 0;
}

.sdmp-row-title {
	display: inline-block;
	color: var(--sdmp-navy);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color .15s ease;
}

.sdmp-row-title:hover {
	color: var(--sdmp-gold-accent);
	text-decoration: underline;
}

.sdmp-row-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--sdmp-muted);
	font-size: .85rem;
}

.sdmp-meta-sep {
	color: var(--sdmp-muted);
	opacity: .6;
}

.sdmp-row-desc {
	margin-top: 6px;
	color: var(--sdmp-muted);
	font-size: .88rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sdmp-row-badge {
	flex: none;
	align-self: flex-start;
	padding: 3px 10px;
	background: var(--sdmp-gold);
	color: var(--sdmp-navy);
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
}

.sdmp-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	flex: none;
	background: rgba(10, 40, 85, .06);
	color: var(--sdmp-navy);
	border-radius: 10px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.sdmp-download-btn:hover {
	background: var(--sdmp-navy);
	color: var(--sdmp-white);
}

.sdmp-download-btn .sdmp-icon {
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------------ */
/* File-type icons (tinted square + colored stroke)                    */
/* ------------------------------------------------------------------ */

.sdmp-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 10px;
}

.sdmp-file-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.sdmp-file-icon--pdf {
	color: #E5484D;
	background: rgba(229, 72, 77, .12);
}

.sdmp-file-icon--doc {
	color: #2F6FED;
	background: rgba(47, 111, 237, .12);
}

.sdmp-file-icon--xls {
	color: #1F9D55;
	background: rgba(31, 157, 85, .12);
}

.sdmp-file-icon--img {
	color: #0E9F8A;
	background: rgba(14, 159, 138, .12);
}

.sdmp-file-icon--zip {
	color: #7C5CFC;
	background: rgba(124, 92, 252, .12);
}

.sdmp-file-icon--other {
	color: #667085;
	background: rgba(102, 112, 133, .12);
}

/* ------------------------------------------------------------------ */
/* Empty state                                                         */
/* ------------------------------------------------------------------ */

.sdmp-empty {
	text-align: center;
	padding: 48px 20px;
	color: var(--sdmp-muted);
}

.sdmp-empty .sdmp-icon {
	width: 40px;
	height: 40px;
	color: var(--sdmp-border);
	margin-bottom: 12px;
}

.sdmp-empty-title {
	margin: 0 0 4px;
	color: var(--sdmp-text);
	font-weight: 600;
	font-size: 1.05rem;
}

.sdmp-empty-hint {
	margin: 0 0 16px;
	font-size: .9rem;
}

.sdmp-clear-filters-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	background: transparent;
	color: var(--sdmp-navy);
	border: 1px solid rgba(10, 40, 85, .35);
	border-radius: 10px;
	font-weight: 600;
	font-size: .9rem;
	transition: background-color .15s ease, color .15s ease;
}

.sdmp-clear-filters-link:hover {
	background: var(--sdmp-navy);
	color: var(--sdmp-white);
}

/* ------------------------------------------------------------------ */
/* Load more                                                           */
/* ------------------------------------------------------------------ */

.sdmp-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin: 24px 0;
}

.sdmp-loadmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	background: transparent;
	color: var(--sdmp-navy);
	border: 1px solid rgba(10, 40, 85, .35);
	border-radius: 10px;
	font-weight: 600;
	font-size: .95rem;
	transition: background-color .15s ease, color .15s ease;
}

.sdmp-loadmore:hover {
	background: var(--sdmp-navy);
	color: var(--sdmp-white);
}

.sdmp-loadmore:disabled {
	opacity: .7;
	cursor: wait;
}

/* ------------------------------------------------------------------ */
/* CTA panel                                                           */
/* ------------------------------------------------------------------ */

.sdmp-cta {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 28px;
	margin: 28px 0 0;
	background: #EAF3FF;
	color: var(--sdmp-navy);
	border-radius: var(--sdmp-radius);
	flex-wrap: wrap;
}

.sdmp-cta > .sdmp-icon {
	width: 32px;
	height: 32px;
	color: var(--sdmp-navy);
}

.sdmp-cta-copy {
	flex: 1;
	min-width: 220px;
}

.sdmp-cta-heading {
	margin: 0 0 4px;
	color: var(--sdmp-navy);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.sdmp-cta-text {
	margin: 0;
	color: var(--sdmp-navy);
	opacity: .8;
	font-size: .92rem;
}

.sdmp-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 24px;
	background: var(--sdmp-navy);
	color: var(--sdmp-white);
	border-radius: 10px;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
	transition: background-color .15s ease;
}

.sdmp-cta-btn:hover {
	background: var(--sdmp-navy-dark);
	color: var(--sdmp-white);
}

/* ------------------------------------------------------------------ */
/* Small-screen refinements                                            */
/* ------------------------------------------------------------------ */

@container sdmp (max-width: 599px) {
	.sdmp-hero {
		padding: 32px 22px;
	}

	.sdmp-submit-card {
		padding: 22px;
	}

	.sdmp-row {
		flex-wrap: wrap;
	}

	.sdmp-row-main {
		flex-basis: calc(100% - 54px);
	}

	.sdmp-cta {
		padding: 22px;
	}
}

@supports not (container-type: inline-size) {
	@media (max-width: 599px) {
	.sdmp-hero {
		padding: 32px 22px;
	}

	.sdmp-submit-card {
		padding: 22px;
	}

	.sdmp-row {
		flex-wrap: wrap;
	}

	.sdmp-row-main {
		flex-basis: calc(100% - 54px);
	}

	.sdmp-cta {
		padding: 22px;
	}
}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.sdmp-library *,
	.sdmp-library *::before,
	.sdmp-library *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}

	.sdmp-cat-card:hover,
	.sdmp-row:hover {
		transform: none;
	}
}
