/*
 * Syspro Directory Filter: front end.
 *
 * Every color, radius and spacing value is a custom property on .sdf, so the
 * Elementor widget (or your theme) can restyle without overriding selectors.
 */

.sdf {
	--sdf-primary: #0031ca;
	--sdf-primary-hover: #002399;
	--sdf-secondary: #026fff;
	--sdf-accent: #74ffe0;
	--sdf-text: #061c22;
	--sdf-muted: #5a6b70;
	--sdf-subtle: #8a979b;
	--sdf-placeholder: #9a9e9e;
	--sdf-border: #e1e1e1;
	--sdf-divider: rgba(6, 28, 34, 0.1);
	--sdf-control: rgba(6, 28, 34, 0.55);
	--sdf-surface: #ffffff;
	--sdf-page: #f5f6f6;
	--sdf-tint: #e3fff9;
	--sdf-link: var(--sdf-primary);
	--sdf-on-primary: #ffffff;

	/* Sidebar panel */
	--sdf-panel: #ffffff;
	--sdf-panel-border: rgba(6, 28, 34, 0.08);
	--sdf-panel-radius: 12px;
	--sdf-panel-padding: 20px 18px;
	--sdf-panel-shadow: none;
	--sdf-heading-size: 13px;
	--sdf-heading-weight: 700;
	--sdf-heading-transform: uppercase;
	--sdf-heading-spacing: 0.08em;
	--sdf-option-hover: rgba(0, 49, 202, 0.05);
	--sdf-option-active: var(--sdf-primary);
	--sdf-option-active-bg: rgba(0, 49, 202, 0.08);
	--sdf-count-bg: #eaeff0;
	--sdf-count-color: var(--sdf-text);
	--sdf-icon-color: var(--sdf-subtle);

	/* Toolbar */
	--sdf-control-height: 50px;
	--sdf-control-radius: 12px;
	--sdf-control-border: rgba(6, 28, 34, 0.12);
	--sdf-search-width: 350px;

	/* Cards */
	--sdf-card-bg: #ffffff;
	--sdf-card-border: rgba(6, 28, 34, 0.06);
	--sdf-card-shadow: 0 1px 2px rgba(6, 28, 34, 0.04), 0 4px 16px rgba(6, 28, 34, 0.05);
	--sdf-card-shadow-hover: 0 2px 4px rgba(6, 28, 34, 0.06), 0 12px 32px rgba(6, 28, 34, 0.1);
	--sdf-card-lift: 0px;
	--sdf-card-padding: 20px 20px 24px;
	--sdf-card-gap: 12px;
	--sdf-media-height: 200px;
	--sdf-media-padding: 16px 24px;
	--sdf-media-bg: transparent;
	--sdf-pill-bg: rgba(2, 111, 255, 0.1);
	--sdf-pill-color: var(--sdf-primary);
	--sdf-pill-radius: 999px;

	--sdf-radius: 4px;
	--sdf-radius-card: 10px;
	--sdf-gap: 36px;
	--sdf-sidebar: 390px;
	--sdf-card-min: 260px;
	--sdf-font: inherit;
	--sdf-shadow: 0 1px 2px rgba(6, 28, 34, 0.06), 0 8px 24px rgba(6, 28, 34, 0.08);
	--sdf-ease: cubic-bezier(0.4, 0, 0.2, 1);

	color: var(--sdf-text);
	font-family: var(--sdf-font);
	font-size: 16px;
	line-height: 1.5;
	position: relative;
}

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

.sdf--scheme-dark {
	--sdf-text: #ffffff;
	--sdf-muted: #cdd2d3;
	--sdf-subtle: #9a9e9e;
	--sdf-placeholder: #9a9e9e;
	--sdf-border: rgba(205, 210, 211, 0.4);
	--sdf-divider: rgba(205, 210, 211, 0.25);
	--sdf-control: #cdd2d3;
	--sdf-control-border: rgba(205, 210, 211, 0.4);
	--sdf-surface: #061c22;
	--sdf-panel: #061c22;
	--sdf-panel-border: rgba(205, 210, 211, 0.2);
	--sdf-card-bg: #061c22;
	--sdf-card-border: rgba(205, 210, 211, 0.2);
	--sdf-page: #000000;
	--sdf-tint: rgba(116, 255, 224, 0.12);
	--sdf-count-bg: rgba(205, 210, 211, 0.15);
	--sdf-pill-bg: rgba(116, 255, 224, 0.12);
	--sdf-pill-color: #74ffe0;
	--sdf-link: #74ffe0;
	--sdf-option-active: #74ffe0;
	--sdf-option-active-bg: rgba(116, 255, 224, 0.1);
	--sdf-option-hover: rgba(116, 255, 224, 0.06);
}

@media (prefers-color-scheme: dark) {
	.sdf--scheme-auto {
		--sdf-text: #ffffff;
		--sdf-muted: #cdd2d3;
		--sdf-subtle: #9a9e9e;
		--sdf-placeholder: #9a9e9e;
		--sdf-border: rgba(205, 210, 211, 0.4);
		--sdf-divider: rgba(205, 210, 211, 0.25);
		--sdf-control: #cdd2d3;
		--sdf-control-border: rgba(205, 210, 211, 0.4);
		--sdf-surface: #061c22;
		--sdf-panel: #061c22;
		--sdf-panel-border: rgba(205, 210, 211, 0.2);
		--sdf-card-bg: #061c22;
		--sdf-card-border: rgba(205, 210, 211, 0.2);
		--sdf-page: #000000;
		--sdf-tint: rgba(116, 255, 224, 0.12);
		--sdf-count-bg: rgba(205, 210, 211, 0.15);
		--sdf-pill-bg: rgba(116, 255, 224, 0.12);
		--sdf-pill-color: #74ffe0;
		--sdf-link: #74ffe0;
		--sdf-option-active: #74ffe0;
		--sdf-option-active-bg: rgba(116, 255, 224, 0.1);
		--sdf-option-hover: rgba(116, 255, 224, 0.06);
	}
}

.sdf-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sdf [hidden] {
	display: none !important;
}

.sdf__form {
	margin: 0;
}

.sdf-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

/* Material Symbols (Syspro icon settings): outlined, light weight. */
.sdf-symbol {
	display: inline-block;
	width: 1em;
	overflow: hidden;
	font-family: "Material Symbols Rounded";
	font-weight: normal;
	font-style: normal;
	font-size: 22px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	font-variation-settings: "FILL" 0, "wght" 300, "GRAD" -25, "opsz" 24;
	visibility: hidden;
}

.sdf-symbols-ready .sdf-symbol {
	visibility: visible;
}

/* Focus: Cyan ring with a Cobalt edge so it reads on light and dark surfaces. */
.sdf :focus-visible {
	outline: 2px solid var(--sdf-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--sdf-primary);
}

/* ---------- Layout ---------- */
.sdf__layout {
	display: grid;
	grid-template-columns: var(--sdf-sidebar) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.sdf--filters-right .sdf__layout {
	grid-template-columns: minmax(0, 1fr) var(--sdf-sidebar);
}

.sdf--filters-right .sdf__sidebar {
	order: 2;
}

.sdf--filters-top .sdf__layout {
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

.sdf__sidebar {
	min-width: 0;
}

.sdf__panel {
	background: var(--sdf-panel);
	border: 1px solid var(--sdf-panel-border);
	border-radius: var(--sdf-panel-radius);
	box-shadow: var(--sdf-panel-shadow);
	padding: var(--sdf-panel-padding);
}

.sdf--filters-top .sdf__panel {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.sdf__panel-head,
.sdf__toggle,
.sdf .sdf__show-results {
	display: none;
}

.sdf__main {
	min-width: 0;
	position: relative;
}

/* ---------- Search ---------- */
.sdf-search {
	margin-bottom: 24px;
}

.sdf-search__label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}

.sdf-search__field {
	position: relative;
}

.sdf-search__field .sdf-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	color: var(--sdf-subtle);
	pointer-events: none;
}

.sdf-search__input.sdf-input {
	padding-left: 50px;
}

.sdf-search--toolbar {
	flex: 0 1 var(--sdf-search-width);
	min-width: 0;
	margin: 0;
}

/* ---------- Inputs ---------- */

.sdf-input {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--sdf-text);
	background: var(--sdf-surface);
	border: 1px solid var(--sdf-divider);
	border-radius: var(--sdf-radius);
	transition: border-color 150ms ease-out;
	-webkit-appearance: none;
	appearance: none;
}

.sdf-input::placeholder {
	color: var(--sdf-placeholder);
	opacity: 1;
}

.sdf-input:hover {
	border-color: var(--sdf-control);
}

.sdf-input:focus {
	border-color: var(--sdf-primary);
}

.sdf-input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}

.sdf-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061C22' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	cursor: pointer;
}

.sdf--scheme-dark .sdf-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374FFE0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}

/* ---------- Filter groups ---------- */
.sdf-filter {
	border-top: 1px solid var(--sdf-divider);
}

.sdf-filter:last-child {
	border-bottom: 1px solid var(--sdf-divider);
}

.sdf-filter__title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding: 16px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
}

.sdf-filter__title::-webkit-details-marker {
	display: none;
}

/* Static groups: the reference design (no accordion, small caps headings). */
.sdf--groups-static .sdf-filter {
	border: 0;
	padding: 4px 0 20px;
}

.sdf--groups-static .sdf-filter + .sdf-filter {
	border-top: 1px solid var(--sdf-divider);
	padding-top: 24px;
}

.sdf--groups-static .sdf-filter:last-child {
	border-bottom: 0;
	padding-bottom: 4px;
}

.sdf-filter__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: var(--sdf-heading-size);
	font-weight: var(--sdf-heading-weight);
	line-height: 1.3;
	letter-spacing: var(--sdf-heading-spacing);
	text-transform: var(--sdf-heading-transform);
	color: var(--sdf-text);
}

.sdf-filter__name {
	flex: 1 1 auto;
}

.sdf-filter__badge {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--sdf-on-primary);
	background: var(--sdf-primary);
	border-radius: 11px;
	font-variant-numeric: tabular-nums;
}

.sdf--groups-static .sdf-filter--nav .sdf-filter__badge,
.sdf--groups-static .sdf-filter--list .sdf-filter__badge {
	display: none;
}

.sdf-filter__chevron {
	color: var(--sdf-muted);
	transition: transform 300ms ease-in-out;
}

.sdf-filter[open] > .sdf-filter__title .sdf-filter__chevron {
	transform: rotate(180deg);
}

.sdf-filter__body {
	margin: 0;
	padding: 0 0 16px;
	border: 0;
	min-width: 0;
}

.sdf--groups-static .sdf-filter__body {
	padding: 0;
}

.sdf-filter__find {
	margin-bottom: 8px;
	min-height: 40px;
	font-size: 14px;
}

.sdf-filter__more {
	margin-top: 8px;
	padding: 4px 0;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--sdf-link);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sdf-filter--toggle {
	padding: 12px 0;
}

/* ---------- Options: navigation list (Browse by) ---------- */

.sdf-options--nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sdf-option.sdf-option--nav {
	position: relative;
	gap: 14px;
	min-height: 52px;
	padding: 8px 16px 8px calc(16px + var(--sdf-depth, 0) * 20px);
	font-size: 17px;
	font-weight: 500;
	border-radius: 10px;
	transition: background-color 150ms ease-out, color 150ms ease-out;
}

.sdf-option--nav:hover {
	background: var(--sdf-option-hover);
}

.sdf-option--nav:has(.sdf-option__input:checked:not([value=""])) {
	color: var(--sdf-option-active);
	background: var(--sdf-option-active-bg);
}

.sdf-option__icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--sdf-icon-color);
}

.sdf-option__icon svg,
.sdf-option__icon i {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.sdf-option__icon i,
.sdf-option__icon svg:not(.sdf-icon) {
	fill: currentColor;
}

.sdf-option--nav:has(.sdf-option__input:checked:not([value=""])) .sdf-option__icon {
	color: inherit;
}

.sdf-option--nav .sdf-option__count {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 30px;
	padding: 0 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--sdf-count-color);
	background: var(--sdf-count-bg);
	border-radius: 15px;
}

.sdf-option--nav:has(.sdf-option__input:checked:not([value=""])) .sdf-option__count {
	color: var(--sdf-on-primary);
	background: var(--sdf-option-active);
}

/* Hidden native input; the whole row is the target. */
.sdf-option__input.sdf-option__input--hidden {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	border: 0;
	background: none;
}

.sdf-option:has(.sdf-option__input--hidden:focus-visible) {
	outline: 2px solid var(--sdf-accent);
	outline-offset: 0;
	box-shadow: inset 0 0 0 2px var(--sdf-primary);
}

.sdf-option__input--hidden:focus-visible {
	outline: none;
	box-shadow: none;
}

/* ---------- Options: link list (Category) ---------- */

.sdf-options--list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sdf-option.sdf-option--list {
	position: relative;
	gap: 10px;
	min-height: 48px;
	padding: 8px 8px 8px calc(8px + var(--sdf-depth, 0) * 18px);
	font-size: 17px;
	color: var(--sdf-muted);
	border-radius: 8px;
	transition: color 150ms ease-out, background-color 150ms ease-out;
}

.sdf-option--list:hover {
	color: var(--sdf-text);
	background: var(--sdf-option-hover);
}

.sdf-option__chevron {
	width: 16px;
	height: 16px;
	color: var(--sdf-subtle);
}

.sdf-option--list .sdf-option__count {
	font-size: 16px;
	color: var(--sdf-subtle);
}

.sdf-option--list:has(.sdf-option__input:checked),
.sdf-option--list:has(.sdf-option__input:checked) .sdf-option__chevron,
.sdf-option--list:has(.sdf-option__input:checked) .sdf-option__count {
	color: var(--sdf-option-active);
}

.sdf-option--list:has(.sdf-option__input:checked) {
	font-weight: 500;
}

/* ---------- Options: checkbox & radio ---------- */

.sdf-options {
	display: flex;
	flex-direction: column;
}

.sdf-option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	padding: 4px 0 4px calc(var(--sdf-depth, 0) * 20px);
	font-size: 16px;
	line-height: 1.35;
	cursor: pointer;
}

.sdf-option__input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	background: var(--sdf-surface);
	border: 1.5px solid var(--sdf-control);
	border-radius: var(--sdf-radius);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	place-items: center;
	transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.sdf-option__input[type="radio"] {
	border-radius: 50%;
}

.sdf-option__input:checked {
	background: var(--sdf-primary);
	border-color: var(--sdf-primary);
}

.sdf-option__input[type="checkbox"]:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
	background-size: 16px;
	background-position: center;
	background-repeat: no-repeat;
}

.sdf-option__input[type="radio"]:checked {
	box-shadow: inset 0 0 0 4px var(--sdf-surface);
}

.sdf-option__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sdf-option__count {
	flex: none;
	margin-left: auto;
	font-size: 14px;
	color: var(--sdf-muted);
	font-variant-numeric: tabular-nums;
}

.sdf-option.is-disabled,
.sdf-toggle.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.sdf-option.is-disabled .sdf-option__input {
	cursor: not-allowed;
}

/* ---------- Options: buttons ---------- */

.sdf-options--buttons {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.sdf-options--buttons .sdf-option {
	position: relative;
	gap: 8px;
	min-height: 40px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 500;
	border: 1px solid var(--sdf-divider);
	border-radius: var(--sdf-radius);
	background: var(--sdf-surface);
	transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.sdf-options--buttons .sdf-option:hover {
	border-color: var(--sdf-primary);
}

.sdf-options--buttons .sdf-option__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	border: 0;
}

.sdf-options--buttons .sdf-option:has(.sdf-option__input:checked) {
	color: var(--sdf-on-primary);
	background: var(--sdf-primary);
	border-color: var(--sdf-primary);
}

.sdf-options--buttons .sdf-option:has(.sdf-option__input:checked) .sdf-option__count {
	color: inherit;
	opacity: 0.8;
}

.sdf-options--buttons .sdf-option:has(.sdf-option__input:focus-visible) {
	outline: 2px solid var(--sdf-accent);
	outline-offset: 2px;
}

.sdf-options--buttons .sdf-option__input:focus-visible {
	outline: none;
	box-shadow: none;
}

.sdf-options--buttons .sdf-option__label {
	flex: 0 1 auto;
}

/* ---------- Toggle ---------- */

.sdf-toggle {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.sdf-toggle__input {
	position: absolute;
	right: 0;
	width: 44px;
	height: 24px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.sdf-toggle__label {
	flex: 1 1 auto;
}

.sdf-toggle .sdf-option__count {
	margin-left: 0;
	font-weight: 400;
}

.sdf-toggle__track {
	position: relative;
	flex: none;
	width: 44px;
	height: 24px;
	background: var(--sdf-control);
	border-radius: 12px;
	transition: background-color 150ms ease-out;
}

.sdf-toggle__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 150ms ease-out;
}

.sdf-toggle__input:checked ~ .sdf-toggle__track {
	background: var(--sdf-primary);
}

.sdf-toggle__input:checked ~ .sdf-toggle__track::after {
	transform: translateX(20px);
}

.sdf-toggle__input:focus-visible ~ .sdf-toggle__track {
	outline: 2px solid var(--sdf-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--sdf-primary);
}

/* ---------- Range ---------- */

.sdf-range {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.sdf-range__label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	color: var(--sdf-muted);
}

.sdf-range__input {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sdf-range__affix {
	flex: none;
	font-size: 14px;
	color: var(--sdf-muted);
}

.sdf-range .sdf-input {
	padding-left: 10px;
	padding-right: 6px;
	-moz-appearance: textfield;
}

/* ---------- Actions ---------- */

.sdf__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 24px;
}

.sdf--js .sdf__apply:not(.sdf__apply--always) {
	display: none;
}

/* ---------- Buttons ---------- */

.sdf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 24px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--sdf-radius);
	cursor: pointer;
	transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.sdf-button--primary {
	color: var(--sdf-on-primary);
	background: var(--sdf-primary);
	border-color: var(--sdf-primary);
}

.sdf-button--primary:hover {
	background: var(--sdf-primary-hover);
	border-color: var(--sdf-primary-hover);
}

.sdf-button--secondary {
	color: var(--sdf-link);
	background: transparent;
	border-color: currentColor;
}

.sdf-button--secondary:hover {
	color: var(--sdf-on-primary);
	background: var(--sdf-primary);
	border-color: var(--sdf-primary);
}

.sdf-button--text {
	min-height: 44px;
	padding: 10px 0;
	color: var(--sdf-link);
	background: none;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sdf-button--text:hover {
	color: var(--sdf-secondary);
}

.sdf__icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--sdf-text);
	background: none;
	border: 0;
	border-radius: var(--sdf-radius);
	cursor: pointer;
}

.sdf__icon-button:hover {
	background: var(--sdf-tint);
}

/* ---------- Toolbar ---------- */
.sdf__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.sdf__toolbar .sdf-input {
	min-height: var(--sdf-control-height);
	font-size: 15px;
	background-color: var(--sdf-surface);
	border-color: var(--sdf-control-border);
	border-radius: var(--sdf-control-radius);
}

.sdf-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.sdf-sort__label {
	font-size: 14px;
	color: var(--sdf-muted);
	white-space: nowrap;
}

.sdf-sort__select.sdf-input {
	width: auto;
	min-width: 250px;
}

/* Results bar: count and clear filters. */
.sdf__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding-bottom: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--sdf-divider);
}

.sdf__count {
	margin: 0;
	font-size: 18px;
	color: var(--sdf-muted);
}

.sdf__count-number {
	font-weight: 700;
	color: var(--sdf-text);
}

.sdf__clear-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	margin-left: auto;
	padding: 0;
	font: inherit;
	font-size: 18px;
	font-weight: 500;
	color: var(--sdf-text);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 150ms ease-out;
}

.sdf__clear-link:hover {
	color: var(--sdf-primary);
}

.sdf__clear-link .sdf-icon {
	width: 20px;
	height: 20px;
}

/* The bar's clear link replaces the sidebar one on desktop. */
.sdf--show-full .sdf__bar ~ * .sdf__clear,
.sdf--show-full .sdf__panel .sdf__clear {
	display: none;
}

/* ---------- Chips ---------- */

.sdf__chips {
	margin-bottom: 24px;
}

.sdf__chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sdf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 8px 6px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--sdf-text);
	background: var(--sdf-tint);
	border: 1px solid transparent;
	border-radius: var(--sdf-radius);
	cursor: pointer;
	transition: border-color 150ms ease-out;
}

.sdf-chip:hover {
	border-color: var(--sdf-primary);
}

.sdf-chip .sdf-icon {
	width: 16px;
	height: 16px;
}

/* ---------- Results ---------- */
.sdf__results {
	--_cols: var(--sdf-columns, var(--sdf-columns-default, 3));
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(var(--sdf-card-min), calc((100% - (var(--_cols) - 1) * var(--sdf-gap)) / var(--_cols))), 1fr));
	gap: var(--sdf-gap);
	outline: none;
	transition: opacity 150ms ease-out;
}

.sdf__results:focus-visible {
	box-shadow: none;
	outline: none;
}

.sdf__item {
	display: flex;
	min-width: 0;
}

.sdf__item > * {
	flex: 1 1 auto;
	min-width: 0;
}

.sdf.is-loading .sdf__results {
	opacity: 0.5;
}

.sdf.is-loading .sdf__main::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -8px;
	left: 0;
	height: 2px;
	width: 40%;
	background: var(--sdf-primary);
	border-radius: 2px;
	animation: sdf-progress 900ms var(--sdf-ease) infinite;
}

@keyframes sdf-progress {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(250%);
	}
}

.sdf-error {
	grid-column: 1 / -1;
	margin: 0;
	padding: 16px;
	font-size: 16px;
	background: #fff5f5;
	color: #061c22;
	border-left: 4px solid #ff0000;
	border-radius: var(--sdf-radius);
}

/* ---------- Built-in card ---------- */
.sdf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	color: var(--sdf-text);
	background: var(--sdf-card-bg);
	border: 1px solid var(--sdf-card-border);
	border-radius: var(--sdf-radius-card);
	box-shadow: var(--sdf-card-shadow);
	transition: box-shadow 150ms ease-out, transform 150ms ease-out, border-color 150ms ease-out;
}

.sdf-card:hover {
	box-shadow: var(--sdf-card-shadow-hover);
	transform: translateY(calc(var(--sdf-card-lift) * -1));
}

.sdf-card:has(.sdf-card__link:focus-visible) {
	outline: 2px solid var(--sdf-accent);
	outline-offset: 2px;
}

.sdf-card__media {
	position: relative;
	display: grid;
	place-items: center;
	height: var(--sdf-media-height);
	padding: var(--sdf-media-padding);
	overflow: hidden;
	background: var(--sdf-media-bg);
}

.sdf-card__media-link {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.sdf-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sdf-card--fit-cover .sdf-card__media {
	padding: 0;
}

.sdf-card--fit-cover .sdf-card__img {
	object-fit: cover;
}

.sdf-card__initials {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--sdf-primary);
	background: var(--sdf-tint);
	border-radius: 50%;
}

.sdf-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--sdf-card-gap);
	padding: var(--sdf-card-padding);
}

.sdf-card__body > * {
	margin: 0;
}

/* Tags (taxonomy terms and pill-style fields). */
.sdf-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sdf-card__tags--pill .sdf-card__tag {
	padding: 4px 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--sdf-pill-color);
	background: var(--sdf-pill-bg);
	border-radius: var(--sdf-pill-radius);
}

.sdf-card__tags--text .sdf-card__tag {
	font-size: 14px;
	font-weight: 500;
	color: var(--sdf-pill-color);
}

.sdf-card__tags--text .sdf-card__tag + .sdf-card__tag::before {
	content: "/";
	margin-right: 6px;
	color: var(--sdf-subtle);
}

.sdf-card__tag a {
	position: relative;
	z-index: 2;
	color: inherit;
	text-decoration: none;
}

.sdf .sdf-card__title {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--sdf-text);
}

.sdf-card__link {
	color: inherit;
	text-decoration: none;
	transition: color 150ms ease-out;
}

.sdf-card--linked .sdf-card__link::before,
.sdf-card__link--overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sdf-card__link:focus-visible {
	outline: none;
	box-shadow: none;
}

.sdf-card__excerpt {
	font-size: 17px;
	line-height: 1.55;
	color: var(--sdf-muted);
}

.sdf-card__more {
	color: var(--sdf-muted);
	white-space: nowrap;
}

/* Meta data (custom fields). */
.sdf-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	font-size: 15px;
	line-height: 1.45;
}

.sdf-card__meta-label {
	font-size: 14px;
	color: var(--sdf-subtle);
}

.sdf-card__meta--inline .sdf-card__meta-label::after {
	content: ":";
}

.sdf-card__meta-value {
	color: var(--sdf-text);
	overflow-wrap: anywhere;
}

.sdf-card__meta-value a {
	position: relative;
	z-index: 2;
	color: var(--sdf-link);
}

.sdf-card__meta--stacked {
	flex-direction: column;
	gap: 2px;
}

.sdf-card__meta--plain .sdf-card__meta-value {
	color: var(--sdf-muted);
}

.sdf-card__meta-icon {
	display: inline-grid;
	align-self: center;
	place-items: center;
	color: var(--sdf-subtle);
}

.sdf-card__meta-icon svg,
.sdf-card__meta-icon i {
	width: 16px;
	height: 16px;
	font-size: 16px;
	fill: currentColor;
}

.sdf-card__divider {
	width: 100%;
	height: 0;
	border: 0;
	border-top: 1px solid var(--sdf-divider);
}

/* Call to action. */
.sdf-card__actions {
	display: flex;
	margin-top: auto !important;
	padding-top: 16px;
}

.sdf-card__button {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sdf-link);
	text-decoration: none;
	transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}

.sdf-card__button svg,
.sdf-card__button i {
	width: 18px;
	height: 18px;
	font-size: 18px;
	fill: none;
	transition: transform 150ms ease-out;
}

.sdf-card__button i {
	fill: currentColor;
}

.sdf-card__button--link:hover .sdf-card-button-text,
.sdf-card__button--link:hover .sdf-card__button-text {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sdf-card:hover .sdf-card__button svg {
	transform: translate(2px, -2px);
}

.sdf-card__button--button {
	min-height: 44px;
	padding: 10px 20px;
	color: var(--sdf-on-primary);
	background: var(--sdf-primary);
	border: 2px solid var(--sdf-primary);
	border-radius: var(--sdf-radius);
}

.sdf-card__button--button:hover {
	background: var(--sdf-primary-hover);
	border-color: var(--sdf-primary-hover);
}

.sdf--scheme-dark .sdf-card__initials {
	color: var(--sdf-accent);
}

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

.sdf-empty {
	grid-column: 1 / -1;
	display: grid;
	justify-items: start;
	gap: 8px;
	max-width: 560px;
	padding: 48px 0;
}

.sdf-empty__art {
	margin-bottom: 8px;
}

.sdf-empty__fill {
	fill: var(--sdf-tint);
}

.sdf-empty__line {
	fill: var(--sdf-text);
	opacity: 0.4;
}

.sdf-empty__ring {
	stroke: var(--sdf-primary);
	stroke-width: 2.5;
	fill: var(--sdf-surface);
}

.sdf-empty__accent {
	fill: var(--sdf-accent);
}

.sdf-empty__title {
	margin: 0;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
}

.sdf-empty__text {
	margin: 0 0 16px;
	color: var(--sdf-muted);
}

/* ---------- Pagination ---------- */
.sdf__pagination:not(:empty) {
	margin-top: 24px;
}

.sdf-pages__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--sdf-pages-align, flex-end);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sdf-pages__link {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--sdf-primary);
	text-decoration: none;
	background: var(--sdf-surface);
	border: 1.5px solid transparent;
	border-radius: 22px;
	font-variant-numeric: tabular-nums;
	transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

a.sdf-pages__link:hover {
	border-color: var(--sdf-primary);
}

.sdf-pages__step {
	padding: 0;
	border-color: var(--sdf-primary);
}

a.sdf-pages__step:hover {
	color: var(--sdf-on-primary);
	background: var(--sdf-primary);
}

.sdf-pages__step.is-disabled {
	cursor: default;
}

.sdf-pages__link.is-current {
	color: var(--sdf-on-primary);
	background: var(--sdf-primary);
	border-color: var(--sdf-primary);
}

.sdf-pages__gap {
	padding: 0 4px;
	color: var(--sdf-muted);
}

.sdf-more {
	display: flex;
	justify-content: center;
	position: relative;
}

.sdf-more__sentinel {
	position: absolute;
	top: 0;
	height: 1px;
	width: 1px;
}

.sdf--io .sdf-more:has([data-sdf-sentinel]) .sdf-button {
	visibility: hidden;
}

/* ---------- Bar layout (desktop) ---------- */

@media (min-width: 1024px) {
	.sdf--filters-top .sdf__panel-body {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		gap: 8px;
	}

	.sdf--filters-top .sdf-search {
		flex: 1 1 320px;
		max-width: 480px;
		margin: 0 8px 0 0;
	}

	.sdf--filters-top .sdf-search__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.sdf--filters-top .sdf-filter {
		position: relative;
		border: 0;
	}

	.sdf--filters-top .sdf-filter:last-child {
		border: 0;
	}

	.sdf--filters-top .sdf-filter__title {
		min-height: 44px;
		padding: 8px 12px 8px 16px;
		font-size: 15px;
		font-weight: 500;
		background: var(--sdf-surface);
		border: 1px solid var(--sdf-divider);
		border-radius: var(--sdf-radius);
		transition: border-color 150ms ease-out;
	}

	.sdf--filters-top .sdf-filter__title:hover,
	.sdf--filters-top .sdf-filter[open] > .sdf-filter__title {
		border-color: var(--sdf-primary);
	}

	.sdf--filters-top .sdf-filter__body {
		position: absolute;
		z-index: 30;
		top: calc(100% + 8px);
		left: 0;
		width: max-content;
		min-width: 280px;
		max-width: 360px;
		max-height: 400px;
		overflow: auto;
		padding: 16px;
		background: var(--sdf-surface);
		border: 1px solid var(--sdf-border);
		border-radius: var(--sdf-radius-card);
		box-shadow: var(--sdf-shadow);
	}

	.sdf--filters-top .sdf-filter--toggle {
		padding: 0 8px;
	}

	.sdf--filters-top .sdf__actions {
		margin: 0 0 0 auto;
	}

	.sdf--filters-top .sdf__panel {
		padding-bottom: 24px;
		border-bottom: 1px solid var(--sdf-divider);
	}
}

/* ---------- Tablet and mobile: filters move into a drawer ---------- */

@media (max-width: 1023.98px) {
	.sdf__layout,
	.sdf--filters-right .sdf__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.sdf--filters-right .sdf__sidebar {
		order: 0;
	}

	.sdf-option {
		min-height: 44px;
	}

	.sdf--js .sdf__toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 10px 16px;
		font: inherit;
		font-size: 16px;
		font-weight: 600;
		color: var(--sdf-text);
		background: var(--sdf-surface);
		border: 1px solid var(--sdf-divider);
		border-radius: var(--sdf-radius);
		cursor: pointer;
	}

	.sdf--js .sdf__toggle:hover {
		border-color: var(--sdf-primary);
	}

	.sdf__toggle-count {
		display: inline-grid;
		place-items: center;
		min-width: 24px;
		height: 24px;
		padding: 0 6px;
		font-size: 13px;
		color: var(--sdf-on-primary);
		background: var(--sdf-primary);
		border-radius: 12px;
	}

	.sdf--js .sdf__panel {
		border: 0;
		border-radius: 0;
		position: fixed;
		z-index: 100000;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: min(420px, 100%);
		padding: 0;
		background: var(--sdf-surface);
		box-shadow: -8px 0 32px rgba(6, 28, 34, 0.16);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 300ms ease-in-out, visibility 0s linear 300ms;
	}

	.sdf--js.sdf--drawer-open .sdf__panel {
		transform: none;
		visibility: visible;
		transition: transform 300ms ease-in-out, visibility 0s;
	}

	.sdf--js.sdf--drawer-open .sdf__sidebar::before {
		content: "";
		position: fixed;
		z-index: 99999;
		inset: 0;
		background: rgba(6, 28, 34, 0.4);
	}

	.sdf--js .sdf__panel-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 8px 8px 8px 24px;
		border-bottom: 1px solid var(--sdf-divider);
	}

	.sdf__panel-title {
		margin: 0;
		font-size: 20px;
		font-weight: 500;
	}

	.sdf--js .sdf__panel-body {
		flex: 1 1 auto;
		overflow-y: auto;
		padding: 24px;
		overscroll-behavior: contain;
	}

	.sdf--js .sdf__actions {
		margin: 0;
		padding: 16px 24px;
		border-top: 1px solid var(--sdf-divider);
		background: var(--sdf-surface);
	}

	.sdf--js .sdf__show-results {
		display: inline-flex;
		flex: 1 1 auto;
	}

	.sdf--js .sdf__apply.sdf__apply--always {
		flex: 1 1 auto;
	}

	.sdf--js .sdf__apply--always ~ .sdf__show-results {
		display: none;
	}

	.sdf__toolbar {
		gap: 8px 16px;
	}

	.sdf-sort {
		margin-left: 0;
	}

	.sdf--js .sdf__sidebar {
		display: flex;
		gap: 8px;
	}

	.sdf--show-full .sdf__panel .sdf__clear {
		display: inline-flex;
	}

	.sdf-search--toolbar {
		flex: 1 1 100%;
	}

	.sdf__toolbar .sdf-sort {
		flex: 1 1 100%;
	}

	.sdf__toolbar .sdf-sort__select.sdf-input {
		flex: 1 1 auto;
		min-width: 0;
	}
}

@media (max-width: 639.98px) {
	.sdf {
		--sdf-gap: 16px;
	}

	.sdf-sort {
		width: 100%;
	}

	.sdf-sort__select.sdf-input {
		flex: 1 1 auto;
		min-width: 0;
	}

	.sdf-card__body {
		padding: 16px;
	}
}

html.sdf-lock,
html.sdf-lock body {
	overflow: hidden;
}

/* ---------- Editor notice ---------- */

.sdf-notice {
	padding: 16px;
	font-size: 16px;
	color: #061c22;
	background: rgba(116, 255, 224, 0.1);
	border-left: 4px solid #74ffe0;
	border-radius: 4px;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.sdf *,
	.sdf *::before,
	.sdf *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.sdf.is-loading .sdf__main::before {
		width: 100%;
		transform: none;
		opacity: 0.6;
	}
}

/* ---------- Elementor widget options ---------- */

@media (min-width: 1024px) {
	.sdf-sticky-yes .sdf__sidebar {
		position: sticky;
		top: var(--sdf-sticky-top, 24px);
	}
}

.sdf-grayscale-yes .sdf-card__img {
	filter: grayscale(1);
	transition: filter 300ms ease-in-out, transform 300ms ease-in-out;
}

.sdf-grayscale-yes .sdf-card:hover .sdf-card__img {
	filter: none;
}

.sdf-card__img {
	transition: transform 300ms ease-in-out;
}

