/* Pro-Street Automation Hub 0.3.0: efterlysningsskabelon. Alt er scoped under .ps-ef. */
.ps-ef {
	--ps-ef-ink: #18181b;
	--ps-ef-text: #27272a;
	--ps-ef-muted: #71717a;
	--ps-ef-line: #e4e4e7;
	--ps-ef-soft: #f4f4f5;
	--ps-ef-red: #c8102e;
	--ps-ef-green: #15803d;
	--ps-ef-green-soft: #ecfdf3;
	container-type: inline-size;
	color: var(--ps-ef-text);
	margin: 0 0 32px;
}
.ps-ef *,
.ps-ef *::before,
.ps-ef *::after { box-sizing: border-box; }

/* Grid: én kolonne som udgangspunkt (mobil), to kolonner når wrapperen er bred nok. */
.ps-ef .ps-ef-grid { display: flex; flex-direction: column; gap: 24px; }
.ps-ef .ps-ef-intro { order: 1; }
.ps-ef .ps-ef-side { display: contents; }
.ps-ef .ps-ef-facts { order: 2; }
.ps-ef .ps-ef-main { order: 3; min-width: 0; }
.ps-ef .ps-ef-fb { order: 4; }
.ps-ef .ps-ef-ad { order: 5; }

/* 0.3.1: to kolonner når WRAPPEREN er mindst 640 px (uafhængigt af temaets kolonner). */
@container (min-width: 640px) {
	.ps-ef .ps-ef-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 250px;
		grid-template-areas: "intro side" "main side";
		grid-template-rows: auto 1fr;
		column-gap: 28px;
		row-gap: 20px;
		align-items: start;
	}
	.ps-ef .ps-ef-intro { grid-area: intro; }
	.ps-ef .ps-ef-main { grid-area: main; }
	.ps-ef .ps-ef-grid > .ps-ef-side {
		grid-area: side;
		display: flex;
		flex-direction: column;
		gap: 16px;
		position: sticky;
		top: 24px;
	}
}
/* Fallback for browsere uden container queries: viewport-bredde. */
@supports not (container-type: inline-size) {
	@media (min-width: 1024px) {
		.ps-ef .ps-ef-grid {
			display: grid;
			grid-template-columns: minmax(0, 1fr) 250px;
			grid-template-areas: "intro side" "main side";
			grid-template-rows: auto 1fr;
			column-gap: 28px;
			row-gap: 20px;
			align-items: start;
		}
		.ps-ef .ps-ef-intro { grid-area: intro; }
		.ps-ef .ps-ef-main { grid-area: main; }
		.ps-ef .ps-ef-grid > .ps-ef-side {
			grid-area: side;
			display: flex;
			flex-direction: column;
			gap: 16px;
			position: sticky;
			top: 24px;
		}
	}
}

/* Selvstændig sidekolonne (widget/shortcode): altid stablet. */
.ps-ef.ps-ef-sidebar-only { container-type: normal; margin: 0; }
.ps-ef.ps-ef-sidebar-only .ps-ef-side { display: flex; flex-direction: column; gap: 16px; }

/* Ingress */
.ps-ef .ps-ef-ingress {
	margin: 0;
	padding: 0;
	font-size: 1.3em;
	line-height: 1.4;
	font-weight: 600;
	color: var(--ps-ef-ink);
	border: 0;
	text-transform: none;
	letter-spacing: 0;
}
.ps-ef .ps-ef-ingress em { font-style: italic; }

/* Fundet-banner */
.ps-ef .ps-ef-found {
	display: flex;
	gap: 14px;
	align-items: center;
	background: var(--ps-ef-green);
	color: #fff;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 0 0 24px;
}
.ps-ef .ps-ef-found-icon {
	flex: 0 0 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
}
.ps-ef .ps-ef-found-title { display: block; font-size: 1.1em; text-transform: uppercase; letter-spacing: .04em; }
.ps-ef .ps-ef-found-text { display: block; opacity: .92; font-size: .95em; margin-top: 2px; }

/* Bokse i sidekolonnen */
.ps-ef .ps-ef-box {
	background: #fff;
	border: 1px solid var(--ps-ef-line);
	border-radius: 6px;
	overflow: hidden;
	margin: 0;
}
.ps-ef .ps-ef-facts-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--ps-ef-ink);
	color: #fff;
	padding: 12px 16px;
}
.ps-ef .ps-ef-facts-title { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.ps-ef .ps-ef-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 4px 9px;
	border-radius: 3px;
	color: #fff;
	line-height: 1.2;
}
.ps-ef .ps-ef-badge--efterlyst { background: var(--ps-ef-red); }
.ps-ef .ps-ef-badge--fundet { background: var(--ps-ef-green); }
.ps-ef .ps-ef-dl { margin: 0; padding: 4px 16px 10px; }
.ps-ef .ps-ef-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--ps-ef-line);
	font-size: 13.5px;
	line-height: 1.4;
}
.ps-ef .ps-ef-row:last-child { border-bottom: 0; }
.ps-ef .ps-ef-row dt { margin: 0; color: var(--ps-ef-muted); font-weight: 400; }
.ps-ef .ps-ef-row dd { margin: 0; color: var(--ps-ef-ink); font-weight: 600; overflow-wrap: anywhere; }
.ps-ef .ps-ef-row dd.ps-ef-plate {
	justify-self: start;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .04em;
	border: 1.5px solid var(--ps-ef-ink);
	border-radius: 3px;
	padding: 1px 7px;
	background: #fff;
}
.ps-ef .ps-ef-row--list { grid-template-columns: 1fr; gap: 4px; }
.ps-ef .ps-ef-row--list dd ul { margin: 0; padding: 0 0 0 18px; list-style: disc; }
.ps-ef .ps-ef-row--list dd li { margin: 0 0 3px; padding: 0; font-weight: 500; }

/* Facebook-boks (kun link) */
.ps-ef .ps-ef-fb { padding: 16px; background: var(--ps-ef-soft); border-color: var(--ps-ef-soft); }
.ps-ef .ps-ef-fb-text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--ps-ef-text); }
.ps-ef .ps-ef-fb-link,
.ps-ef .ps-ef-fb-link:visited {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ps-ef-ink);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	padding: 11px 14px;
	border-radius: 4px;
}
.ps-ef .ps-ef-fb-link:hover,
.ps-ef .ps-ef-fb-link:focus { background: #3f3f46; color: #fff; }
.ps-ef .ps-ef-fb-icon { flex: 0 0 18px; }

/* Reklameplads */
.ps-ef .ps-ef-ad { text-align: center; max-width: 100%; overflow: hidden; }
.ps-ef .ps-ef-ad--placeholder {
	min-height: 250px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #d4d4d8;
	border-radius: 6px;
	background: #fafafa;
	color: #a1a1aa;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* Hovedkolonne */
.ps-ef .ps-ef-lead-image { margin: 0 0 20px; }
.ps-ef .ps-ef-lead-image img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 4px; }
.ps-ef .ps-ef-gallery img { max-width: 100%; height: auto; display: block; }
.ps-ef .ps-ef-body > *:first-child { margin-top: 0; }
.ps-ef .ps-ef-details {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-left: 3px solid var(--ps-ef-ink);
	background: var(--ps-ef-soft);
}
.ps-ef .ps-ef-details p { margin: 0 0 6px; }
.ps-ef .ps-ef-details p:last-child { margin: 0; }
.ps-ef .ps-ef-h {
	margin: 0 0 12px;
	padding: 0;
	font-size: 1.15em;
	line-height: 1.3;
	font-weight: 700;
	color: inherit;
	border: 0;
}

/* Opfordringsboks */
.ps-ef .ps-ef-cta {
	margin: 28px 0 0;
	padding: 20px 22px;
	background: var(--ps-ef-ink);
	color: #e4e4e7;
	border-radius: 6px;
}
.ps-ef .ps-ef-cta .ps-ef-h { color: #fff; }
.ps-ef .ps-ef-steps { margin: 0; padding: 0; list-style: none; counter-reset: psef; }
.ps-ef .ps-ef-steps li {
	counter-increment: psef;
	position: relative;
	margin: 0 0 10px;
	padding: 0 0 0 36px;
	line-height: 1.5;
}
.ps-ef .ps-ef-steps li::before {
	content: counter(psef);
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #3f3f46;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ps-ef .ps-ef-steps strong,
.ps-ef .ps-ef-cta strong { color: #fff; }
.ps-ef .ps-ef-contact { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #3f3f46; font-size: 14px; line-height: 1.5; }
.ps-ef .ps-ef-cta a,
.ps-ef .ps-ef-cta a:visited { color: #fff; text-decoration: underline; }
.ps-ef .ps-ef-cta--found { background: var(--ps-ef-green-soft); color: var(--ps-ef-text); border: 1px solid #bbf7d0; }
.ps-ef .ps-ef-cta--found .ps-ef-h { color: var(--ps-ef-green); }
.ps-ef .ps-ef-cta--found p { margin: 0; }

/* Galleri */
.ps-ef .ps-ef-gallery { margin: 32px 0 0; }
.ps-ef .ps-ef-gallery .gallery { margin: 0; }

/* 0.4.0: sidekolonnen i temaets sidebar. I artiklen står kun faktaboksen, og kun under mobilgrænsen
   (768 px, temaets sidebar havner så nederst). I temaets sidebar skjules faktaboksen under grænsen,
   så den aldrig ses to gange på samme skærmbredde. Ingen position: sticky (temaet styrer selv sin sidebar). */
.ps-ef.ps-ef--sidebar-theme .ps-ef-grid { display: block; }
.ps-ef.ps-ef--sidebar-theme .ps-ef-grid > .ps-ef-intro { margin-bottom: 20px; }
.ps-ef.ps-ef--sidebar-theme .ps-ef-grid > .ps-ef-side.ps-ef-side--mobile { display: block; position: static; margin: 0 0 20px; }
@media (min-width: 768px) {
	.ps-ef.ps-ef--sidebar-theme .ps-ef-grid > .ps-ef-side.ps-ef-side--mobile { display: none; }
}
@media (max-width: 767.98px) {
	.ps-ef-sidebar-only.ps-ef-sidebar--theme .ps-ef-facts { display: none; }
}
.ps-ef.ps-ef-sidebar-only.ps-ef-sidebar--theme .ps-ef-side { position: static; }
