/* The page canvas behind the cards is UI/Lightest Grey, not the body default. */
body:has(.nordemo-vacancies) {
	background-color: #fafafa;
}

/* The tab bar rides up over the band above it, which gives up its bottom margin in return. */
.nordemo-vacancies {
	margin-block: -32px 57px;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.nordemo-vacancies__tabs {
	align-self: center;
	display: flex;
	gap: 16px;
	padding: 8px;
	background: var(--nordemo-on-primary);
	/* Figma strokes sit inside the frame. An inset shadow keeps the designed box height. */
	box-shadow: inset 0 0 0 1px #eaeae9;
	border-radius: var(--nordemo-radius);
}

.nordemo-vacancies__tab {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 24px 16px 16px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 500;
	line-height: normal;
	color: var(--nordemo-text);
	white-space: nowrap;
	background: none;
	border: 0;
	border-radius: var(--nordemo-radius);
	cursor: pointer;
}

.nordemo-vacancies__tab[aria-selected='true'] {
	color: var(--nordemo-on-primary);
	background: var(--nordemo-primary);
	border-radius: var(--nordemo-radius-sm);
}

.nordemo-vacancies__tab-label--short {
	display: none;
}

.nordemo-vacancies__tab-icon {
	flex: none;
	display: block;
	width: 24px;
	height: 24px;
}

.nordemo-vacancies__tab-icon img {
	display: block;
	width: 100%;
	height: 100%;
}

/* The exported tab glyphs are dark; the selected tab sits on a dark ground. */
.nordemo-vacancies__tab[aria-selected='true'] .nordemo-vacancies__tab-icon img {
	filter: brightness(0) invert(1);
}

.nordemo-vacancies__filters {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 16px;
	padding: 24px 40px;
	background: var(--nordemo-surface);
	box-shadow: inset 0 0 0 1px #f2f2f2;
	border-radius: var(--nordemo-radius);
}

.nordemo-vacancies__filters[hidden] {
	display: none;
}

.nordemo-vacancies__columns {
	display: flex;
	gap: 56px;
}

.nordemo-vacancies__columns > * {
	flex: 1;
	min-width: 0;
}

.nordemo-vacancies__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 556px;
}

.nordemo-vacancies__columns .nordemo-vacancies__field {
	max-width: none;
}

.nordemo-vacancies__label {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0.0938em;
	text-transform: uppercase;
	color: var(--nordemo-text);
}

.nordemo-vacancies__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.nordemo-vacancies__pill {
	height: 44px;
	padding: 0 24px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	color: var(--nordemo-text);
	background: var(--nordemo-on-primary);
	border: 0;
	border-radius: var(--nordemo-radius-pill);
	cursor: pointer;
}

.nordemo-vacancies__pill[aria-pressed='true'] {
	color: var(--nordemo-on-primary);
	background: var(--nordemo-primary);
}

.nordemo-range {
	position: relative;
	height: 16px;
}

.nordemo-range__track,
.nordemo-range__fill {
	position: absolute;
	top: 50%;
	height: 4px;
	border-radius: 2px;
	transform: translateY(-50%);
}

.nordemo-range__track {
	left: 0;
	right: 0;
	background: var(--nordemo-sky);
}

.nordemo-range__fill {
	background: var(--nordemo-primary-deep);
}

/* Two native sliders share one track; only their thumbs stay hittable. */
.nordemo-range__input {
	position: absolute;
	inset: 0;
	width: 100%;
	margin: 0;
	appearance: none;
	background: none;
	pointer-events: none;
}

.nordemo-range__input::-webkit-slider-thumb {
	appearance: none;
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	background: var(--nordemo-primary-deep);
	border: 5px solid var(--nordemo-on-primary);
	border-radius: 50%;
	pointer-events: auto;
	cursor: pointer;
}

.nordemo-range__input::-moz-range-thumb {
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	background: var(--nordemo-primary-deep);
	border: 5px solid var(--nordemo-on-primary);
	border-radius: 50%;
	pointer-events: auto;
	cursor: pointer;
}

.nordemo-range__values {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--nordemo-text-muted);
}

.nordemo-vacancies__count {
	margin: 24px 0 0;
	font-size: 14px;
	line-height: 21px;
	color: var(--nordemo-text);
	text-align: right;
}

.nordemo-vacancies__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.nordemo-vacancies__card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-shadow: inset 0 0 0 1px #f6f6f6;
	border-radius: var(--nordemo-radius);
}

/* Covers the card so any part of it opens the listing. Only the HomeQ cards carry one. */
.nordemo-vacancies__link {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: var(--nordemo-radius);
}

.nordemo-vacancies__card:has( .nordemo-vacancies__link:hover ) .nordemo-vacancies__title {
	text-decoration: underline;
}

.nordemo-vacancies__card[hidden] {
	display: none;
}

.nordemo-vacancies__media {
	position: relative;
	display: block;
	height: 230px;
	overflow: hidden;
	background: #d9d9d9;
	border-radius: var(--nordemo-radius) var(--nordemo-radius) 0 0;
}

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

.nordemo-vacancies__placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	font-size: 14px;
	font-weight: 500;
	line-height: 23px;
	color: #989898;
	transform: translate(-50%, -50%);
}

.nordemo-vacancies__chip {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 23px;
	color: #000;
	white-space: nowrap;
	background: var(--nordemo-on-primary);
	border-radius: var(--nordemo-radius-sm);
}

.nordemo-vacancies__chip--label {
	padding: 5px 16px;
	border-radius: 36px;
}

.nordemo-vacancies__dot {
	flex: none;
	width: 5px;
	height: 5px;
	background: #000;
	border-radius: 50%;
}

.nordemo-vacancies__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 32px;
	padding: 16px;
	background: var(--nordemo-on-primary);
	border-radius: 0 0 var(--nordemo-radius) var(--nordemo-radius);
}

.nordemo-vacancies__card[data-tab='lokaler'] .nordemo-vacancies__body,
.nordemo-vacancies__card[data-tab='parkering'] .nordemo-vacancies__body {
	gap: 12px;
}

.nordemo-vacancies__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nordemo-vacancies__title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 24px;
	color: #000;
}

.nordemo-vacancies__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.nordemo-vacancies__place {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	font-size: 17px;
	line-height: 25px;
	color: #000;
}

.nordemo-vacancies__place img {
	flex: none;
	display: block;
	width: 24px;
	height: 24px;
}

.nordemo-vacancies__price {
	display: flex;
	align-items: flex-start;
	gap: 3px;
	font-size: 17px;
	line-height: 25px;
	color: #000;
	white-space: nowrap;
}

.nordemo-vacancies__price strong {
	font-size: 24px;
	font-weight: 600;
	line-height: 24px;
}

/* Plain grey text drowns in the photos, so the credit sits on a soft scrim. */
.nordemo-vacancies__credit {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 3px 10px;
	font-size: 12px;
	line-height: 18px;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 36px;
}

.nordemo-vacancies__price--row {
	align-items: flex-end;
	margin: 0;
	padding-block: 2px;
}

/* Figma caps the description at three lines; longer texts are clipped with an ellipsis. */
.nordemo-vacancies__info {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0;
	font-size: 17px;
	line-height: 25px;
	color: var(--nordemo-text-muted);
}

.nordemo-vacancies__divider {
	width: 100%;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--nordemo-border-light);
}

/* 4px extra under the spec row: body gap 12px + 4px = the design's 16px to the button. */
.nordemo-vacancies__specs {
	display: flex;
	width: 100%;
	margin-bottom: 4px;
}

.nordemo-vacancies__spec {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.nordemo-vacancies__spec-label {
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 1.5px;
	color: var(--nordemo-text-muted);
}

.nordemo-vacancies__spec-value {
	font-size: 15px;
	line-height: 24px;
	color: #000;
}

.nordemo-vacancies__button {
	margin-top: auto;
}

.nordemo-vacancies__empty {
	margin: 32px 0 0;
	font-size: 17px;
	line-height: 25px;
	color: var(--nordemo-text-muted);
	text-align: center;
}

.nordemo-interest {
	width: min(718px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 56px 40px 40px;
	background: var(--nordemo-on-primary);
	border: 0;
	border-radius: 16px;
}

.nordemo-interest::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

.nordemo-interest__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 24px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0.1071em;
	text-transform: uppercase;
	color: #000;
	background: var(--nordemo-surface);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.nordemo-interest__close svg {
	display: block;
}

/* The contact-form block spaces itself against the page footer; inside the dialog it must not. */
.nordemo-interest .nordemo-contact-form {
	margin-block: 0;
}

/* The prefilled subject cannot be edited, so it should not look editable. */
.nordemo-interest .nordemo-contact-form input[readonly] {
	color: var(--nordemo-text-muted);
	background: #f6f6f6;
}

.nordemo-vacancies :focus-visible {
	outline: 2px solid var(--nordemo-primary);
	outline-offset: 2px;
}

@media (max-width: 991px) {
	.nordemo-vacancies {
		margin-block: 0 16px;
	}

	/* The tab bar climbs 76px into the band, leaving 22px of it proud below the band's edge. */
	.nordemo-vacancies__tabs {
		margin-top: -76px;
	}

	.nordemo-vacancies__filters {
		margin-top: 16px;
	}

	.nordemo-vacancies__count {
		margin-top: 16px;
	}

	.nordemo-vacancies__grid {
		margin-top: 16px;
	}

	/* Tabs, filters and the counter sit 8px from the viewport edge; the cards keep the 16px gutter. */
	.nordemo-vacancies__tabs,
	.nordemo-vacancies__filters,
	.nordemo-vacancies__count {
		margin-inline: -8px;
	}

	.nordemo-vacancies__tabs {
		align-self: stretch;
		gap: 8px;
		box-shadow: inset 0 0 0 1px #f6f6f6;
	}

	.nordemo-vacancies__tab {
		flex: 1;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		height: 82px;
		padding: 10px 16px;
		font-size: 16px;
		line-height: 19px;
		text-align: center;
		white-space: normal;
		border-radius: var(--nordemo-radius-sm);
	}

	.nordemo-vacancies__tab-icon {
		width: 20px;
		height: 20px;
	}

	.nordemo-vacancies__tab-label--short {
		display: block;
	}

	.nordemo-vacancies__tab-label--short + *,
	.nordemo-vacancies__tab:has( .nordemo-vacancies__tab-label--short ) .nordemo-vacancies__tab-label {
		display: none;
	}

	.nordemo-vacancies__filters {
		padding: 16px;
	}

	.nordemo-vacancies__media {
		height: 196px;
	}

	.nordemo-vacancies__columns {
		flex-direction: column;
		gap: 24px;
	}

	.nordemo-vacancies__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nordemo-interest {
		padding: 56px 16px 24px;
	}
}
