@font-face{font-family:'Barlow';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/barlow-latin-ext-300-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/barlow-latin-300-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/barlow-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/barlow-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/barlow-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/barlow-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Merriweather';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/merriweather-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Merriweather';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/merriweather-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/*
 * Organisatiekaart — stijl afgeleid van cpoe.prismaweb.org:
 * lichtgrijze vlakken (#f3f2f3) met zachte schaduw en rechte hoeken,
 * bordeaux (#541c3a) als hoofdkleur, rood (#972c31) als accent, dunne chevrons.
 * Kleuren en lettertypen zijn aan te passen onder Organisatiekaart → Instellingen.
 */

.okm {
	--okm-primary: #541c3a;
	--okm-accent: #972c31;
	--okm-surface: #f3f2f3;
	--okm-ink: #111111;
	--okm-body: #444444;
	--okm-line: #dcdadc;
	--okm-land: #dcdbdc;
	--okm-font-heading: 'Merriweather', Georgia, serif;
	--okm-font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--okm-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);

	box-sizing: border-box;
	container-type: inline-size;
	width: 100%;
	font-family: var(--okm-font-body);
	font-size: 17px;
	line-height: 1.5;
	color: var(--okm-body);
}

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

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

/* :where() = specificiteit 0, zodat de componentstijlen hieronder altijd winnen. */
:where(.okm) button,
:where(.okm) input,
:where(.okm) select {
	font: inherit;
	color: inherit;
}

/* Indeling: past zich aan de breedte van de pagina-kolom aan (niet aan het scherm). */
.okm__layout {
	--okm-height: clamp(500px, calc(100vh - 150px), 760px);
	display: grid;
	grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
	gap: 24px;
	width: 100%;
}

.okm :focus-visible {
	outline: 3px solid var(--okm-accent);
	outline-offset: 2px;
}

.okm h2,
.okm h3 {
	margin: 0;
	font-family: var(--okm-font-heading);
	font-weight: 700;
	color: var(--okm-ink);
	line-height: 1.25;
}

/* ---------- Melding (niet ingelogd / geen toegang / laden) ---------- */

.okm--notice,
.okm__loading-wrap {
	display: block;
	max-width: 640px;
	padding: 32px;
	background: var(--okm-surface);
	box-shadow: var(--okm-shadow);
}

.okm--notice h2 {
	font-size: 26px;
	margin-bottom: 12px;
}

.okm--notice p {
	margin: 0 0 16px;
}

.okm__loading {
	margin: 0;
	padding: 24px;
}

.okm__error {
	margin: 0;
	padding: 20px 24px;
	background: var(--okm-surface);
	border-left: 6px solid var(--okm-accent);
	color: var(--okm-ink);
}

/* ---------- Knoppen ---------- */

.okm__button {
	display: inline-block;
	padding: 11px 22px;
	border: 2px solid var(--okm-primary);
	background: var(--okm-primary);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.okm__button:hover {
	background: var(--okm-accent);
	border-color: var(--okm-accent);
}

.okm__button[disabled] {
	opacity: 0.55;
	cursor: default;
}

.okm__button--ghost {
	background: transparent;
	color: var(--okm-primary) !important;
}

.okm__button--ghost:hover {
	background: var(--okm-primary);
	border-color: var(--okm-primary);
	color: #fff !important;
}

.okm__button--small {
	padding: 6px 14px;
	font-size: 15px;
}

/* ---------- Zijbalk ---------- */

.okm__side {
	display: flex;
	flex-direction: column;
	height: var(--okm-height);
	min-height: 0;
	background: var(--okm-surface);
	box-shadow: var(--okm-shadow);
}

.okm__view {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.okm__side-head {
	padding: 24px 24px 12px;
}

.okm__side-head h2 {
	font-size: 24px;
}

.okm__side-sub {
	margin: 4px 0 0;
	font-weight: 300;
	color: #555;
}

.okm__field {
	margin: 0 24px 14px;
}

.okm__field input[type='search'],
.okm__field select {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #b9b7b9;
	border-radius: 0;
	background: #fff;
	appearance: none;
}

.okm__field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--okm-ink);
}

.okm__list {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	border-bottom: 1px solid var(--okm-line);
}

.okm__list li {
	margin: 0;
	padding: 0;
}

.okm__org {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 24px;
	border: 0;
	border-top: 1px solid var(--okm-line);
	border-radius: 0;
	background: transparent;
	color: var(--okm-ink);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.12s;
}

.okm__org:hover {
	background: #e8e6e8;
}

.okm__org-text {
	display: block;
	min-width: 0;
}

.okm__org-name {
	display: block;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.okm__org-meta {
	display: block;
	font-size: 15px;
	font-weight: 300;
	color: #5a5a5a;
}

.okm__org-mine {
	color: var(--okm-accent);
	font-weight: 600;
}

.okm__chevron {
	flex: none;
	width: 10px;
	height: 18px;
	fill: none;
	stroke: var(--okm-accent);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.okm__org[aria-pressed='true'],
.okm__org[aria-pressed='true']:hover {
	background: var(--okm-primary);
	color: #fff;
}

.okm__org[aria-pressed='true'] .okm__org-meta,
.okm__org[aria-pressed='true'] .okm__org-mine {
	color: rgba(255, 255, 255, 0.85);
}

.okm__org[aria-pressed='true'] .okm__chevron {
	stroke: #fff;
}

.okm__empty {
	padding: 16px 24px;
	margin: 0;
	font-weight: 300;
}

.okm__empty--flush {
	padding: 0;
}

/* ---------- Bewerken (zijbalk) ---------- */

.okm__hint {
	margin: 0 24px 14px;
	font-weight: 300;
}

.okm__checks {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	border-top: 1px solid var(--okm-line);
}

.okm__check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 24px;
	cursor: pointer;
}

.okm__check:hover {
	background: #e8e6e8;
}

.okm__check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--okm-primary);
}

.okm__editfoot {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 24px;
	border-top: 1px solid var(--okm-line);
	background: var(--okm-surface);
}

.okm__editfoot-count {
	flex: 1 0 100%;
	margin: 0;
	font-weight: 600;
	color: var(--okm-ink);
}

.okm__editerror {
	flex: 1 0 100%;
	margin: 0;
	color: var(--okm-accent);
	font-weight: 600;
}

/* ---------- Kaartvlak ---------- */

.okm__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	height: var(--okm-height);
}

.okm__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	min-height: 44px;
}

.okm__status {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0;
	color: var(--okm-ink);
}

.okm__tools {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.okm__lang {
	display: inline-flex;
}

.okm__lang button {
	min-width: 44px;
	padding: 6px 10px;
	border: 2px solid var(--okm-primary);
	border-radius: 0;
	background: transparent;
	color: var(--okm-primary);
	font-weight: 600;
	cursor: pointer;
}

.okm__lang button + button {
	margin-left: -2px;
}

.okm__lang button[aria-pressed='true'] {
	background: var(--okm-primary);
	color: #fff;
}

.okm__mapwrap {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #fff;
	box-shadow: var(--okm-shadow);
}

.okm__map {
	position: absolute;
	inset: 0;
}

.okm .leaflet-container {
	background: #fff;
	font-family: var(--okm-font-body);
	font-size: 15px;
	cursor: default;
}

.okm .leaflet-interactive {
	cursor: pointer;
}

.okm .leaflet-bar {
	border: 0;
	box-shadow: var(--okm-shadow);
}

.okm .leaflet-bar a,
.okm .leaflet-bar a:hover {
	border-radius: 0;
	color: var(--okm-ink);
}

.okm .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.85);
	font-size: 12px;
}

.okm .leaflet-control-attribution a {
	color: var(--okm-primary);
}

/* Legenda */

.okm__legend {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 500;
	max-width: 280px;
	padding: 10px 14px 12px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--okm-shadow);
	font-size: 14px;
	line-height: 1.35;
	color: #333;
	pointer-events: none;
}

.okm__legend-title {
	margin: 0 0 6px;
	font-weight: 600;
	color: var(--okm-ink);
}

.okm__legend-bar {
	height: 10px;
	width: 170px;
	background: linear-gradient(to right, #ecd0da, var(--okm-primary));
	border: 1px solid #b9b7b9;
}

.okm__legend-scale {
	display: flex;
	justify-content: space-between;
	width: 170px;
	margin-top: 2px;
	color: #555;
}

.okm__legend-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.okm__swatch {
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--okm-accent);
	border: 1px solid #7a7a7a;
}

/* Tooltip (hover) en popup (klik) */

.okm .okm-tip {
	min-width: 190px;
	max-width: 280px;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #222;
	font-weight: 400;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
	white-space: normal;
	pointer-events: none;
}

.okm .okm-tip::before {
	display: none;
}

.okm-tip__title {
	display: block;
	font-family: var(--okm-font-heading);
	font-size: 15px;
	font-weight: 700;
	color: var(--okm-ink);
}

.okm-tip__list {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.okm-tip__list li {
	margin: 0;
	padding: 1px 0;
}

.okm-tip__meta {
	margin-top: 4px;
	font-weight: 400;
	color: #555;
}

.okm .okm-pop .leaflet-popup-content-wrapper {
	border-radius: 0;
	background: var(--okm-surface);
	color: var(--okm-body);
	box-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
}

.okm .okm-pop .leaflet-popup-tip {
	background: var(--okm-surface);
}

.okm .okm-pop .leaflet-popup-content {
	min-width: 230px;
	margin: 16px 20px 16px 18px;
	font-size: 16px;
	line-height: 1.4;
}

.okm .okm-pop .leaflet-popup-scrolled {
	border-top: 0;
	border-bottom: 1px solid var(--okm-line);
	padding-right: 8px;
}

.okm .okm-pop a.leaflet-popup-close-button {
	color: var(--okm-ink);
}

.okm-pop__title {
	margin: 0 0 10px;
	font-size: 19px;
}

.okm-pop__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.okm-pop__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 0;
	border-top: 1px solid var(--okm-line);
}

.okm-pop__org {
	padding: 0;
	border: 0;
	background: none;
	color: var(--okm-primary);
	font-weight: 600;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.okm-pop__org:hover {
	color: var(--okm-accent);
}

.okm .okm-pop__site {
	flex: none;
	font-size: 14px;
	color: var(--okm-accent);
	text-underline-offset: 3px;
}

.okm-pop__sub {
	margin: -6px 0 10px;
	font-size: 14px;
	color: #555;
}

/* Bevestiging */

.okm__toast {
	position: absolute;
	top: 56px;
	left: 50%;
	z-index: 600;
	padding: 10px 20px;
	background: var(--okm-primary);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateX(-50%);
	pointer-events: none;
	transition: opacity 0.2s;
}

.okm__toast.is-visible {
	opacity: 1;
}

/* ---------- Smalle kolom ---------- */

@container (max-width: 860px) {
	.okm__layout {
		--okm-height: auto;
		grid-template-columns: minmax(0, 1fr);
	}

	.okm__stage {
		order: 1;
		height: auto;
	}

	.okm__mapwrap {
		flex: none;
		height: clamp(320px, 62vw, 520px);
	}

	.okm__side {
		order: 2;
		height: auto;
		max-height: 560px;
	}

	.okm__list,
	.okm__checks {
		max-height: 360px;
	}
}

@container (max-width: 520px) {
	.okm__legend {
		left: 8px;
		bottom: 8px;
		max-width: 150px;
		padding: 6px 8px 7px;
		font-size: 12px;
		line-height: 1.25;
	}

	.okm__legend-title {
		margin-bottom: 4px;
	}

	.okm__legend-bar,
	.okm__legend-scale {
		width: 110px;
	}

	.okm__tools {
		margin-left: 0;
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.okm *,
	.okm *::before,
	.okm *::after {
		transition: none !important;
	}
}


/* ===== Pagina-opmaak van de standalone app ===== */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: #444;
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.5;
}

h1, h2 { font-family: 'Merriweather', Georgia, serif; font-weight: 700; color: #111; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 28px; }
h2 { font-size: 22px; margin-top: 28px; }
a { color: #972c31; text-underline-offset: 3px; }
a:hover { color: #541c3a; }
:focus-visible { outline: 3px solid #972c31; outline-offset: 2px; }

.site-header {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 14px 32px; border-bottom: 1px solid #dcdadc; background: #fff;
}
.brand { font-family: 'Merriweather', Georgia, serif; font-weight: 700; font-size: 20px; color: #541c3a; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 16px; }
.site-nav .who { color: #555; font-weight: 300; }
.site-nav form { margin: 0; }
.lang-link { font-weight: 600; text-decoration: none; }

.site-main { padding: 24px 32px 48px; max-width: 1700px; margin: 0 auto; }
@media (max-width: 600px) { .site-header { padding: 12px 16px; } .site-main { padding: 16px 16px 40px; } }

.card { background: #f3f2f3; box-shadow: 0 1px 6px rgba(0,0,0,.16); padding: 32px; }
.card--narrow { max-width: 520px; margin: 40px auto; }
.small { font-size: 15px; color: #555; }

label { display: block; margin: 16px 0 4px; font-weight: 600; color: #111; }
input[type=text], input[type=email], input[type=file], textarea, select {
	display: block; width: 100%; padding: 10px 12px; border: 1px solid #b9b7b9; border-radius: 0; background: #fff;
	font: inherit; color: #111;
}
input[type=file] { display: inline-block; width: auto; border: 0; padding: 8px 0; background: none; }
.code-input { font-size: 28px; letter-spacing: .35em; text-align: center; max-width: 12em; font-variant-numeric: tabular-nums; }
.card form .btn { margin-top: 20px; }

.btn {
	display: inline-block; padding: 11px 22px; border: 2px solid #541c3a; background: #541c3a; color: #fff;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: #972c31; border-color: #972c31; color: #fff; }
.btn--ghost { background: transparent; color: #541c3a; }
.btn--ghost:hover { background: #541c3a; border-color: #541c3a; color: #fff; }
.btn--danger { background: transparent; border-color: #972c31; color: #972c31; }
.btn--danger:hover { background: #972c31; color: #fff; }
.btn--small { padding: 5px 12px; font-size: 15px; }

.alert, .notice { margin: 16px 0; padding: 12px 16px; background: #fff; color: #111; border-left: 6px solid #972c31; }
.notice { border-left-color: #541c3a; }

/* Beheer */
.admin h1 { margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #dcdadc; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 18px; text-decoration: none; color: #111; font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current=page] { border-bottom-color: #972c31; color: #541c3a; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #f3f2f3; box-shadow: 0 1px 6px rgba(0,0,0,.16); }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid #dcdadc; }
th { border-top: 0; color: #111; }
td.actions { white-space: nowrap; }
form.inline, .inline-form { display: inline; }
.stack { max-width: 900px; }
.check-grid { columns: 3 220px; column-gap: 24px; max-height: 360px; overflow: auto; border: 1px solid #b9b7b9; background: #fff; padding: 12px; }
.check-grid label { display: block; margin: 0; padding: 3px 0; font-weight: 400; break-inside: avoid; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
legend { font-weight: 600; color: #111; padding: 0; }

/* De kaart vult de breedte van de pagina */
.page-map .site-main { padding-top: 20px; }
