/* Nomenclatuurpagina */
/* .body heeft overflow-x:hidden, waardoor position:sticky niet werkt; clip doet hetzelfde zonder scrollcontainer */
.body:has(.nomen) { overflow-x: clip; overflow-y: visible; }
.nomen { --nomen-blue: #2973d6; --nomen-ink: #282828; --nomen-line: #e3e6ea; --nomen-soft: #f4f7fb; color: var(--nomen-ink); }
.nomen [hidden] { display: none !important; }
.nomen-hide { display: none !important; }

.nomen-intro { max-width: 760px; margin: 0 0 24px; line-height: 1.6; }

.nomen-bar {
	position: sticky; top: 0; z-index: 20;
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
	padding: 14px 64px 14px 0; background: #fff; border-bottom: 1px solid var(--nomen-line);
}
.nomen-lang { display: inline-flex; border: 2px solid var(--nomen-blue); border-radius: 6px; overflow: hidden; flex: none; }
.nomen-lang button {
	appearance: none; border: 0; background: #fff; color: var(--nomen-blue);
	font: 700 15px/1 Lato, sans-serif; padding: 12px 20px; cursor: pointer; min-height: 44px;
}
.nomen-lang button + button { border-left: 2px solid var(--nomen-blue); }
.nomen-lang button[aria-pressed="true"] { background: var(--nomen-blue); color: #fff; }

.nomen-search { position: relative; flex: 1 1 320px; display: flex; align-items: center; min-width: 0; }
.nomen-search .icon { position: absolute; left: 14px; font-size: 20px; color: #8a929c; pointer-events: none; }
.nomen-search input {
	width: 100%; min-width: 0; box-sizing: border-box; height: 48px; padding: 0 92px 0 42px;
	border: 2px solid var(--nomen-line); border-radius: 6px; font: 16px Lato, sans-serif; color: var(--nomen-ink);
	-webkit-appearance: none; appearance: none; background: #fff;
}
.nomen-search input:focus { outline: none; border-color: var(--nomen-blue); }
.nomen-search input::-webkit-search-cancel-button { display: none; }
.nomen-clear {
	position: absolute; right: 6px; border: 0; background: var(--nomen-soft); color: var(--nomen-ink);
	font: 13px Lato, sans-serif; padding: 8px 12px; border-radius: 4px; cursor: pointer;
}
.nomen-status { margin: 0; font-weight: 700; color: var(--nomen-blue); min-width: 90px; }

.nomen-toc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 4px; font-size: 14px; }
.nomen-toc span { font-weight: 700; margin-right: 4px; }
.nomen-toc a {
	display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--nomen-soft);
	color: var(--nomen-ink); text-decoration: none; border: 1px solid var(--nomen-line);
}
.nomen-toc a:hover { border-color: var(--nomen-blue); color: var(--nomen-blue); }
.is-searching .nomen-toc { display: none; }

.nomen-hint { font-size: 13px; color: #6b737d; margin: 10px 0 0; }
.nomen-empty { margin: 30px 0; font-size: 17px; }

.nomen-chapter { margin: 36px 0 0; padding-top: 8px; scroll-margin-top: 90px; }
.nomen-chapter > .nomen-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; border-bottom: 3px solid var(--nomen-blue); padding-bottom: 8px; margin-bottom: 14px; }
.nomen-chapter h2 { font-size: 24px; line-height: 1.25; margin: 0; color: var(--nomen-ink); }
.nomen-date { margin: 0; font-size: 13px; color: #6b737d; }

.nomen-text { line-height: 1.55; font-size: 16px; max-width: 980px; }
.nomen-text p { margin: 0 0 6px; }
.nomen-text h3, .nomen-text h4 { margin: 20px 0 8px; }
.nomen-text ul, .nomen-text ol { margin: 0 0 4px; padding-left: 22px; }
.nomen-text li { margin: 0 0 4px; }
.nomen-text li > p { margin: 0; }
/* punten met onderverdeling = rubriek (bv. Elleboog > Beenderen en articulaties) */
.nomen-text li:has(> ul) > p { font-weight: 700; margin-top: 10px; }
.nomen-text > ul > li:has(> ul) > p { font-size: 18px; margin-top: 18px; }
.nomen-text ul ul ul { list-style: square; }

.nomen-code {
	position: relative; display: inline-block; border: 0; margin: 0 1px; padding: 0 4px; border-radius: 3px;
	background: var(--nomen-soft); color: var(--nomen-blue); font: inherit; font-weight: 700;
	font-variant-numeric: tabular-nums; cursor: copy; line-height: inherit;
}
.nomen-code:hover { background: #e2ecfa; }
.nomen-code.is-copied::after {
	content: attr(data-copied); position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px);
	background: var(--nomen-ink); color: #fff; font-size: 12px; font-weight: 400; padding: 3px 8px; border-radius: 3px; white-space: nowrap;
}
mark.nomen-hit { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }

.nomen-top {
	position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
	background: var(--nomen-blue); color: #fff; text-decoration: none; font-size: 22px;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 30;
}

@media (max-width: 640px) {
	.nomen-bar { padding-right: 0; }
	.nomen-lang { width: calc(100% - 56px); }
	.nomen-search { flex-basis: 100%; }
	.nomen-status { min-width: 0; }
	.nomen-lang button { flex: 1; }
	.nomen-chapter h2 { font-size: 20px; }
	.nomen-text { font-size: 15px; }
	.nomen-text ul, .nomen-text ol { padding-left: 16px; }
	.nomen-text > ul > li:has(> ul) > p { font-size: 17px; }
}

@media print {
	.nomen-bar, .nomen-toc, .nomen-hint, .nomen-top { display: none !important; }
	.nomen-code { background: none; color: inherit; padding: 0; }
}
