/* Crisis Triage Rating Scale. Colours follow the site's Elementor globals, with fallbacks. */

.nowe-ctrs {
	--ctrs-navy: var(--e-global-color-primary, #103967);
	--ctrs-purple: var(--e-global-color-secondary, #987bf6);
	--ctrs-yellow: var(--e-global-color-accent, #f2c633);
	--ctrs-cream: #fefaeb;
	--ctrs-grey: #f0f1f4;
	--ctrs-line: #d5d8e0;
	--ctrs-tint: #f4f1fe;
	--ctrs-error: #b3261e;
	--ctrs-level: var(--ctrs-navy);

	--ctrs-font: "agenda", sans-serif;

	color: var(--ctrs-navy);
	font-family: var(--ctrs-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	margin: 0 auto;
	width: 100%;
	scroll-margin-top: 120px;
}

.nowe-ctrs *,
.nowe-ctrs *::before,
.nowe-ctrs *::after {
	box-sizing: border-box;
}

.nowe-ctrs [hidden] {
	display: none !important;
}

.nowe-ctrs__header {
	margin-bottom: 32px;
}

.nowe-ctrs .nowe-ctrs__title,
.nowe-ctrs .nowe-ctrs__legend,
.nowe-ctrs .nowe-ctrs__band-title,
.nowe-ctrs .nowe-ctrs__part-title {
	color: var(--ctrs-navy);
	font-family: var(--ctrs-font);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
}

.nowe-ctrs .nowe-ctrs__title {
	line-height: 1.4;
	margin: 0 0 12px;
}

.nowe-ctrs p,
.nowe-ctrs li {
	color: var(--ctrs-navy);
	font-family: var(--ctrs-font);
	font-size: inherit;
	line-height: inherit;
}

.nowe-ctrs__intro p,
.nowe-ctrs__part-body p,
.nowe-ctrs__disclaimer p {
	margin: 0 0 1em;
}

.nowe-ctrs__intro > :last-child,
.nowe-ctrs__part-body > :last-child,
.nowe-ctrs__disclaimer > :last-child {
	margin-bottom: 0;
}

/* Steps */

.nowe-ctrs__form {
	margin: 0;
}

.nowe-ctrs__progress {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.nowe-ctrs .nowe-ctrs__stepcount {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

.nowe-ctrs__dots {
	display: flex;
	flex: 1;
	gap: 6px;
	list-style: none;
	margin: 0;
	max-width: 240px;
	padding: 0;
}

.nowe-ctrs__dots li {
	background: var(--ctrs-line);
	border-radius: 99px;
	flex: 1;
	height: 6px;
	margin: 0;
}

.nowe-ctrs__dots li.is-done {
	background: var(--ctrs-navy);
}

.nowe-ctrs__dots li.is-current {
	background: var(--ctrs-purple);
}

.nowe-ctrs__q {
	border: 0;
	margin: 0 0 32px;
	min-width: 0;
	padding: 0;
}

.nowe-ctrs.is-ready .nowe-ctrs__q {
	margin-bottom: 0;
}

.nowe-ctrs .nowe-ctrs__legend {
	border: 0;
	margin: 0 0 16px;
	padding: 0;
	width: 100%;
}

.nowe-ctrs__legend:focus {
	outline: none;
}

.nowe-ctrs__help {
	margin: -8px 0 16px;
}

.nowe-ctrs__options {
	display: grid;
	gap: 10px;
}

.nowe-ctrs__option {
	align-items: flex-start;
	background: #fff;
	border: 2px solid var(--ctrs-line);
	border-radius: 14px;
	cursor: pointer;
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 14px 16px;
	position: relative;
	transition: border-color 0.15s, background-color 0.15s;
}

.nowe-ctrs__option:hover {
	border-color: var(--ctrs-purple);
}

/* The radio stays in the accessibility tree and keyboard order; the numbered badge is what you see. */
.nowe-ctrs__option input[type="radio"] {
	height: 1px;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.nowe-ctrs__points {
	align-items: center;
	background: var(--ctrs-grey);
	border-radius: 50%;
	display: flex;
	flex: none;
	font-size: 18px;
	font-weight: 600;
	height: 36px;
	justify-content: center;
	line-height: 1;
	transition: background-color 0.15s, color 0.15s;
	width: 36px;
}

.nowe-ctrs__text {
	color: var(--ctrs-navy);
	flex: 1;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	padding-top: 6px;
}

.nowe-ctrs__option input:checked ~ .nowe-ctrs__points {
	background: var(--ctrs-navy);
	color: #fff;
}

.nowe-ctrs__option:has(input:checked) {
	background: var(--ctrs-tint);
	border-color: var(--ctrs-navy);
}

.nowe-ctrs__option:has(input:focus-visible) {
	outline: 3px solid var(--ctrs-purple);
	outline-offset: 2px;
}

.nowe-ctrs .nowe-ctrs__error {
	color: var(--ctrs-error);
	font-weight: 600;
	margin: 16px 0 0;
}

/* Buttons */

.nowe-ctrs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	margin-top: 24px;
}

.nowe-ctrs__nav > :only-child,
.nowe-ctrs__nav > [hidden] + * {
	margin-left: auto;
}

.nowe-ctrs .nowe-ctrs__btn {
	background: var(--ctrs-yellow);
	border: 0;
	border-radius: 50px;
	box-shadow: none;
	color: var(--ctrs-navy);
	cursor: pointer;
	font-family: var(--ctrs-font);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1;
	padding: 15px 30px;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.3s, color 0.3s;
}

.nowe-ctrs .nowe-ctrs__btn:hover,
.nowe-ctrs .nowe-ctrs__btn:focus {
	background: var(--ctrs-purple);
	color: #fff;
}

.nowe-ctrs .nowe-ctrs__btn--ghost {
	background: var(--ctrs-purple);
	color: #fff;
}

.nowe-ctrs .nowe-ctrs__btn--ghost:hover,
.nowe-ctrs .nowe-ctrs__btn--ghost:focus {
	background: var(--ctrs-navy);
	color: #fff;
}

.nowe-ctrs .nowe-ctrs__btn:focus-visible {
	outline: 3px solid var(--ctrs-navy);
	outline-offset: 2px;
}

/* Result */

.nowe-ctrs__result:focus {
	outline: none;
}

.nowe-ctrs .nowe-ctrs__score {
	background: var(--ctrs-navy);
	border: 6px solid var(--ctrs-score-accent, var(--ctrs-navy));
	border-radius: 14px;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 20px;
	padding: 20px 24px;
}

.nowe-ctrs__score strong {
	color: var(--ctrs-yellow);
	font-size: 1.5em;
	font-weight: 600;
}

.nowe-ctrs__band {
	background: var(--ctrs-cream);
	border-left: 6px solid var(--ctrs-level);
	border-radius: 14px;
	padding: 24px;
}

.nowe-ctrs__band--high {
	--ctrs-level: #c0392b;
}

.nowe-ctrs__band--medium {
	--ctrs-level: #e08a00;
}

.nowe-ctrs__band--moderate {
	--ctrs-level: #f2c633;
}

.nowe-ctrs__band--low {
	--ctrs-level: #2e8b57;
}

.nowe-ctrs__band--none {
	--ctrs-level: #1e9bd7;
}

.nowe-ctrs__band--empty {
	display: none;
}

.nowe-ctrs .nowe-ctrs__band-title {
	margin: 0 0 12px;
}

.nowe-ctrs__part + .nowe-ctrs__part {
	border-top: 1px solid rgba(16, 57, 103, 0.15);
	margin-top: 20px;
	padding-top: 20px;
}

.nowe-ctrs__part--overview .nowe-ctrs__part-body {
	font-weight: 600;
}

.nowe-ctrs .nowe-ctrs__part-title {
	font-size: 18px;
	margin: 0 0 8px;
}

.nowe-ctrs__part-body ul,
.nowe-ctrs__part-body ol {
	margin: 0 0 1em 1.25em;
	padding: 0;
}

.nowe-ctrs__part-body a {
	color: var(--ctrs-navy);
	text-decoration: underline;
}

.nowe-ctrs__breakdown {
	margin-top: 24px;
}

.nowe-ctrs__breakdown ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nowe-ctrs__breakdown li {
	border-bottom: 1px solid var(--ctrs-line);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0;
	padding: 8px 0;
}

.nowe-ctrs .nowe-ctrs__disclaimer {
	border-top: 1px solid var(--ctrs-line);
	font-size: 16px;
	margin-top: 32px;
	opacity: 0.85;
	padding-top: 16px;
}

@media (max-width: 600px) {
	.nowe-ctrs__option {
		gap: 12px;
		padding: 12px;
	}

	.nowe-ctrs__band,
	.nowe-ctrs__score {
		padding: 18px;
	}

	.nowe-ctrs__nav {
		flex-direction: column-reverse;
	}

	.nowe-ctrs .nowe-ctrs__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nowe-ctrs * {
		transition: none !important;
	}
}

.nowe-ctrs .nowe-ctrs__notice {
	font-size: 16px;
	margin: 24px 0 0;
	opacity: 0.85;
}

/* Doorverwijzingen */

.nowe-ctrs__services {
	display: grid;
	gap: 14px;
	margin-top: 12px;
}

.nowe-ctrs__filters {
	align-items: end;
	background: #fff;
	border-radius: 14px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	padding: 14px 16px;
}

.nowe-ctrs__filter {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.nowe-ctrs__filter label {
	color: var(--ctrs-navy);
	font-size: 15px;
	font-weight: 600;
}

.nowe-ctrs .nowe-ctrs__filter select {
	background: #fff;
	border: 2px solid var(--ctrs-line);
	border-radius: 10px;
	color: var(--ctrs-navy);
	font-family: var(--ctrs-font);
	font-size: 16px;
	max-width: 100%;
	padding: 8px 10px;
	width: 100%;
}

.nowe-ctrs .nowe-ctrs__filter select:focus-visible {
	outline: 3px solid var(--ctrs-purple);
	outline-offset: 1px;
}

.nowe-ctrs__filter-status {
	display: grid;
	gap: 2px;
}

.nowe-ctrs .nowe-ctrs__count {
	font-size: 15px;
	margin: 0;
}

.nowe-ctrs .nowe-ctrs__reset {
	background: none;
	border: 0;
	color: var(--ctrs-navy);
	cursor: pointer;
	font-family: var(--ctrs-font);
	font-size: 15px;
	justify-self: start;
	padding: 0;
	text-decoration: underline;
}

.nowe-ctrs__service-list {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.nowe-ctrs__service {
	background: #fff;
	border: 2px solid var(--ctrs-line);
	border-radius: 14px;
	display: grid;
	gap: 8px;
	align-content: start;
	/* Long names such as "Urgentiepsychiatrie/outreachend" must wrap, not push the card wider. */
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 14px 16px;
}

.nowe-ctrs .nowe-ctrs__service-title {
	color: var(--ctrs-navy);
	font-family: var(--ctrs-font);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.25;
	margin: 0;
	text-transform: none;
}

.nowe-ctrs__service-data {
	display: grid;
	gap: 6px;
	margin: 0;
}

.nowe-ctrs__service-row dt {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.8;
}

.nowe-ctrs__service-row dd {
	font-size: 16px;
	margin: 0;
	overflow-wrap: anywhere;
}

.nowe-ctrs .nowe-ctrs__service-row a {
	color: var(--ctrs-navy);
	text-decoration: underline;
}

.nowe-ctrs__service-link {
	display: block;
}

.nowe-ctrs .nowe-ctrs__empty {
	background: var(--ctrs-cream);
	border-radius: 14px;
	margin: 0;
	padding: 14px 16px;
}

.nowe-ctrs__band .nowe-ctrs__service {
	border-color: rgba(16, 57, 103, 0.15);
}

/* Familie en naasten: three cards per row in the site's light yellow and navy. */

.nowe-ctrs--naasten {
	--ctrs-naasten-bg: var(--e-global-color-04ecda9, #fefaeb);
}

.nowe-ctrs--naasten .nowe-ctrs__intro {
	margin-bottom: 28px;
}

.nowe-ctrs--naasten .nowe-ctrs__service-list {
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nowe-ctrs--naasten .nowe-ctrs__service {
	background: var(--ctrs-naasten-bg);
	border: 0;
	border-radius: 0 30px 0 30px;
	border-top: 6px solid var(--ctrs-navy);
	gap: 14px;
	padding: 26px 28px 28px;
}

.nowe-ctrs--naasten .nowe-ctrs__service-title {
	font-size: 22px;
	line-height: 1.2;
}

.nowe-ctrs--naasten .nowe-ctrs__service-data {
	gap: 12px;
}

/* "Label: value" on one line, as in the client's table; multi-line values keep their line breaks. */
.nowe-ctrs--naasten .nowe-ctrs__service-row {
	color: var(--ctrs-navy);
	font-size: 18px;
	line-height: 1.35;
}

.nowe-ctrs--naasten .nowe-ctrs__service-row dt,
.nowe-ctrs--naasten .nowe-ctrs__service-row dd {
	display: inline;
	font-size: inherit;
}

.nowe-ctrs--naasten .nowe-ctrs__service-row dt {
	font-weight: 600;
	margin-right: 4px;
	opacity: 1;
}

.nowe-ctrs--naasten .nowe-ctrs__service-row dd {
	color: var(--ctrs-navy);
}

.nowe-ctrs.nowe-ctrs--naasten .nowe-ctrs__service-row a {
	color: var(--ctrs-navy);
	text-decoration: underline;
	text-decoration-color: var(--ctrs-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.nowe-ctrs.nowe-ctrs--naasten .nowe-ctrs__service-row a:hover,
.nowe-ctrs.nowe-ctrs--naasten .nowe-ctrs__service-row a:focus {
	text-decoration-color: var(--ctrs-navy);
}

@media (max-width: 1024px) {
	.nowe-ctrs--naasten .nowe-ctrs__service-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nowe-ctrs--naasten .nowe-ctrs__service-list {
		gap: 16px;
		grid-template-columns: minmax(0, 1fr);
	}

	.nowe-ctrs--naasten .nowe-ctrs__service {
		padding: 22px;
	}
}

/* [nowe_ctrs layout="split"]: tool on grey at about two thirds, text beside it. */

.nowe-ctrs-layout {
	align-items: start;
	display: grid;
	gap: 48px;
	grid-template-columns: minmax(0, 68fr) minmax(0, 32fr);
}

.nowe-ctrs-layout--single {
	grid-template-columns: minmax(0, 1fr);
}

.nowe-ctrs-layout__main {
	background: #f0f1f4;
	border-radius: 0 40px 0 40px;
	min-width: 0;
	padding: 40px;
}

.nowe-ctrs-layout__aside {
	color: var(--e-global-color-primary, #103967);
	font-family: "agenda", sans-serif;
	font-size: 18px;
	line-height: 1.4;
	min-width: 0;
	padding-top: 40px;
}

.nowe-ctrs-layout__aside h3 {
	color: inherit;
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 16px;
}

@media (max-width: 900px) {
	.nowe-ctrs-layout {
		gap: 24px;
		grid-template-columns: minmax(0, 1fr);
	}

	.nowe-ctrs-layout__main {
		padding: 24px 16px;
	}

	.nowe-ctrs-layout__aside {
		padding-top: 0;
	}
}

/* [nowe_ctrs_start] */

.nowe-ctrs-start {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin: 0 auto;
}

.nowe-ctrs-start__item {
	align-content: space-between;
	background: #f0f1f4;
	border-radius: 24px;
	display: grid;
	gap: 16px;
	padding: 28px;
}

.nowe-ctrs-start__text {
	color: var(--e-global-color-primary, #103967);
	font-family: "agenda", sans-serif;
	font-size: 18px;
	line-height: 1.35;
}

.nowe-ctrs-start__text p {
	margin: 0 0 0.6em;
}

.nowe-ctrs-start .nowe-ctrs-start__btn {
	background: var(--e-global-color-accent, #f2c633);
	border-radius: 50px;
	color: var(--e-global-color-primary, #103967);
	display: inline-block;
	font-family: "agenda", sans-serif;
	font-size: 18px;
	justify-self: start;
	line-height: 1.25;
	padding: 16px 30px;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.nowe-ctrs-start__item--naaste .nowe-ctrs-start__btn {
	background: var(--e-global-color-secondary, #987bf6);
	color: #fff;
}

.nowe-ctrs-start .nowe-ctrs-start__btn:hover,
.nowe-ctrs-start .nowe-ctrs-start__btn:focus {
	background: var(--e-global-color-primary, #103967);
	color: #fff;
}

.nowe-ctrs-start .nowe-ctrs-start__btn:focus-visible {
	outline: 3px solid var(--e-global-color-secondary, #987bf6);
	outline-offset: 3px;
}

.nowe-ctrs-start__todo {
	background: #fff4d6;
	border-radius: 8px;
	font-size: 14px;
	margin: 0;
	padding: 10px 12px;
}

@media (prefers-reduced-motion: reduce) {
	.nowe-ctrs-start__btn {
		transition: none;
	}
}
