#dsc.window
{
	/*border: 1px solid #e3e2e1;*/
	/*border-radius: 6px;*/
	/*margin: 1rem 0;*/
	/*padding: 0;*/
	padding: 0 0 5rem 0;
	position: relative;
	
	h2,h3
	{
		/*border: none;*/
		/*margin: 1rem 1rem .5rem 1rem;*/
		/*padding: 0;*/
	}
}
#c
{
	margin: 1rem 0;
	padding: 0;
}
.ead-dsc
{
	input[type="checkbox"],
	button
	{
		display: none;
	}
}
.container-list
{
	line-height: 1.3;
	/*max-height: 70dvh;*/
	margin: 0;
	/*overflow-y: scroll;*/
	padding: 1rem 0;

	/* form styles reset */
	li ul,
	label
	{
		float: none;
		width: auto;
	}
	label
	{
		cursor: pointer;
		font-weight: normal;
		padding: 0;
	}
	input[type="checkbox"]
	{
		accent-color: #8c6d2c;
	}
	label:has(input:checked)
	{
		background-color: #f7f6f5;

		/*.ead-unittitle
		{
			font-weight: bold;
		}*/
	}

	.row-header
	{
		border-bottom: 1px solid #e3e2e1;
		color: #777675;
		display: flex;
		gap: 0 1em;
		justify-content: space-between;
		/*display: grid;*/
		/*grid-template-columns: 9fr 3fr 1fr;*/
		font-size: .75rem;
		margin: 0;
		padding: .5rem 1rem .5rem 4rem;
		text-transform: uppercase;

		.column-title
		{
			flex: 1 1 18em;
		}
		.column-location
		{
			flex: 1 1 10em;
		}
		.column-select
		{
			flex: 0 1 4em;
		}
	}

	ul
	{
		margin: 0;
		padding: 0 0 0 1em;
	}
	li
	{
		border-top: 1px dotted #dadcdd;
		list-style: none;
		margin: 0;
	}
	/*li:has(>details):nth-child(odd) >details >summary,
	li:not(:has(>details)):nth-child(odd)
	{
		border-top: 1px dotted #dadcdd;
	}*/
	/*li + li
	{
		border-top: 1px dotted #dadcdd;
	}*/
	li ul
	{
		padding-inline-start: 1.5em;
	}
	x summary + ul
	{
		margin-block-start: -.25em;
	}

	details
	{
		summary
		{
			cursor: pointer;
			display: flex;
			align-items: center;
			font-weight: normal;
			line-height: 1.3;
			list-style: none;
			margin: 1px 0;
			padding: 0;

			&:hover
			{
				background-color: #f7f6f5;
			}
			&::marker
			{
				content: '';
			}
			&::-webkit-details-marker
			{
				display: none; 
			}
			&::before
			{
				/*background-image: url("https://zsr.wfu.edu/tests/ead/svg/disclosure.svg#closed");*/
				background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><rect x="5.53553" y="30.2843" width="5" height="20" rx="1" transform="rotate(-135 5.53553 30.2843)" fill="%23353331"/><rect x="2" y="5.53553" width="5" height="20" rx="1" transform="rotate(-45 2 5.53553)" fill="%23353331"/></svg>');
				background-position: center;
				background-repeat: no-repeat;
				content: '';
				display: block;
				height: 1.5rem;
				transform: rotate(0deg);
				transition: transform 75ms ease;
				width: 1.5rem;
			}
			&::after
			{
				display: none;
			}
		}
	}
	[open] > summary::before
	{
		/*background-image: url("https://zsr.wfu.edu/tests/ead/svg/disclosure.svg#open");*/
		/*background-image: url(https://zsr.wfu.edu/tests/ead/svg/disclosure-open.svg);*/
		transform: rotate(90deg);
	}

	/* layout: s */
	.ead-did,
	.ead-did-otherwise
	{
		flex: 0 1 70%;
		/*order: 1;*/
	}
	.ead-did-container
	{
		flex: 1 1 100%;
		/*order: 3;*/
	}
	.ead-select
	{
		flex: 0 1 15%;
		/*order: 2;*/
	}

	li [class^="level-"]
	{
		display: flex;
		flex: 1;
		flex-wrap: wrap;
		gap: 0 .3125em;
		justify-content: start;
		align-items: start;
		line-height: 1.3;
		margin: 0;
		padding: .5em 0;
	}
	li [class^="level-"]::before
	{
		background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 32 25" xmlns="http://www.w3.org/2000/svg"><path d="M11.086 2L13.543 4.414L14.1715 5H30V23H2V2H11.086ZM12 0H2C0.8955 0 0 0.8955 0 2V23C0 24.1045 0.8955 25 2 25H30C31.1045 25 32 24.1045 32 23V5C32 3.8955 31.1045 3 30 3H15L12 0Z" fill="%23353331"/></svg>');
		background-position: center;
		background-repeat: no-repeat;
		content: '';
		display: block;
		height: 1.5rem;
		width: 1.5rem;

	}
	li:not(:has(>details)) .level-file::before
	{
		background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 76 87" xmlns="http://www.w3.org/2000/svg"><path d="M72.3292 18C73.2627 18.928 73.6874 20.492 74.3292 22C74.9709 23.508 75.3292 24.608 75.3292 26V82C75.3292 83.334 75.2043 85.13 74.3292 86C73.454 86.87 71.6711 86.9417 70.3292 87H5.32919C3.98731 87 2.20434 86.928 1.32919 86C0.454047 85.072 0.387536 83.276 0.329193 82V5C0.329193 3.666 0.395704 1.87 1.32919 1C2.26269 0.13 4.04564 0.0580003 5.32919 0H48.3292C49.6128 0 51.7539 0.362 53.3292 1C54.9045 1.638 55.454 2.072 56.3292 3L72.3292 18ZM50.3292 7V25H68.3292C68.0375 24.014 67.7376 23.348 67.3292 23L52.3292 8C51.9791 7.594 51.321 7.29 50.3292 7ZM69.3292 81V31H48.3292C46.9873 31 46.2043 30.928 45.3292 30C44.454 29.072 44.3876 27.218 44.3292 26V6H6.32919V81H69.3292ZM19.3292 39C19.3292 38.594 19.0375 38.29 19.3292 38C19.6209 37.71 19.8625 37 20.3292 37H55.3292C55.7959 37 56.0375 37.71 56.3292 38C56.6209 38.29 56.3292 38.594 56.3292 39V42C56.3292 42.464 56.6209 42.71 56.3292 43C56.0375 43.29 55.7959 44 55.3292 44H20.3292C19.8625 44 19.6209 43.29 19.3292 43C19.0375 42.71 19.3292 42.464 19.3292 42V39ZM55.3292 50C55.7959 50 56.0375 49.71 56.3292 50C56.6209 50.29 56.3292 50.536 56.3292 51V54C56.3292 54.464 56.6209 55.71 56.3292 56C56.0375 56.29 55.7959 56 55.3292 56H20.3292C19.8625 56 19.6209 56.29 19.3292 56C19.0375 55.71 19.3292 54.464 19.3292 54V51C19.3292 50.536 19.0375 50.29 19.3292 50C19.6209 49.71 19.8625 50 20.3292 50H55.3292ZM55.3292 62C55.7959 62 56.0375 62.71 56.3292 63C56.6209 63.29 56.3292 63.536 56.3292 64V67C56.3292 67.464 56.6209 67.71 56.3292 68C56.0375 68.29 55.7959 68 55.3292 68H20.3292C19.8625 68 19.6209 68.29 19.3292 68C19.0375 67.71 19.3292 67.464 19.3292 67V64C19.3292 63.536 19.0375 63.29 19.3292 63C19.6209 62.71 19.8625 62 20.3292 62H55.3292Z" fill="%23353331"/></svg>');
	}
	li:not(:has(>details))
	{
		padding-inline-start: 1.5em;
	}
	li:has(.match)
	{
		border: none;
		border-top: 1px dotted #dadcdd;
	}
	/*li:has(.match) ~ li:has(.match)
	{
		border-top: 1px dotted #dadcdd;
	}*/

	summary .ead-unittitle
	{
		/*font-weight: bold;*/
	}
	.ead-did-container
	{
		color: #777675;
		font-size: .8125em;
		font-weight: normal;
		margin-block-start: .1825em;
		margin-inline-start: 2.3125em;
		text-transform: capitalize;
	}
	.ead-unitdate, .ead-unitdatestructured
	{
		color: #777675;
		/*display: block;*/
		font-size: .8125em;
		font-weight: normal;
	}
	.ead-scopecontent
	{
		color: #777675;
		font-size: .75rem;
		flex-basis: 80%;
		margin-inline-start: 1.75rem;
	}
	.ead-select
	{
		text-align: center;
	}
}

.live-search
{
	display: none;
	padding: 1rem 0 .5rem 0;
	&.js-active
	{
		display: flex;
		align-items: center;
		gap: .5rem;
	}
	input[type="search"]
	{
		background-color: #fcfbfa;
		border: none;
		color: #777675;
		font-family: 'Open Sans', Helvetica, Arial, sans-serif;
		font-size: 16px;
		line-height: 1.7;
		padding: .5rem;
		&:focus
		{
			outline: none;
		}
	}
	button[type="submit"]
	{
		background-color: #fcfbfa;
		border: none;
		box-shadow: none;
		color: #fff;
		cursor: pointer;
		display: flex;
		align-items: center;
		align-self: stretch;
		margin: 0;
		padding: .5rem 1rem;
		svg
		{
			fill: #353331;
		}
		&:focus
		{
			background-color: #8c6d2c;
			outline: none;
			svg
			{
				fill: #fff;
			}
		}
	}
	.search-query
	{
		border: 1px solid #dfdedd;
		border-color: #afaead #dfdedd #dfdedd #afaead;
		border-radius: 4px;
		display: flex;
		flex: 1;
		align-items: center;
		flex-wrap: nowrap;
		margin: 0;
		overflow: hidden;
		padding: 0;
		&:focus-within
		{
			border-color: #8c6d2c;
		}
	}
	.query
	{
		border-radius: 4px 0 0 4px;
		border-width: 1px 0 1px 1px;
		flex: 2 1 20rem;
		margin: 0;
		-webkit-appearance: none;
	}
	button[aria-controls="c"]
	{
		background-color: #fff;
		border: none;
		border-radius: 6px;
		color: #353331;
		cursor: pointer;
		display: flex;
		align-items: center;
		font-size: 1.25rem;
		line-height: 1;
		overflow: hidden;
		margin: 0;
		padding: .5rem;
		/*position: absolute;*/
		/*top: 1.375rem;*/
		/*right: 3rem;*/
		&:hover
		{
			background-color: #efeeed;
			box-shadow: none;
		}
		&[aria-expanded="false"] #collapse,
		&[aria-expanded="true"] #expand
		{
			display: none;
		}
	}
}
.js-searching
{
	summary:hover
	{
		background: none;
	}
	li:not(:has(.match))
	{
		display: none;
	}
	.match
	{
		background-color: #ffd;
	}
}

@media only screen and (min-width: 660px)
{
	.container-list
	{
		.ead-did,
		.ead-did-otherwise
		{
			flex: 1 1 16em;
			/*order: 1;*/
		}
		.ead-did-container
		{
			flex: 1 1 11em;
			/*order: 2;*/
		}
		.ead-select
		{
			flex: 0 1 2em;
			/*order: 3;*/
		}
	}
}
@media only screen and (min-width: 1200px)
{
	.container-list
	{
		.ead-did-container
		{
			margin-inline-start: 0;
		}
	}
}

/*@supports (interpolate-size: allow-keywords)
{
	:root
	{
		interpolate-size: allow-keywords;
	}
	[open]::details-content
	{
		height: auto;
	}
}
::details-content
{
	height: 0;
	overflow: clip;
	transition: height 0.5s ease, content-visibility 0.5s ease allow-discrete;
}*/

.container-list.block-border
{
	li ul
	{
		margin-inline-start: 0;
		padding-inline-start: 0;
	}
	[open] ul
	{
		border-left: 1.5em solid #f7f6f5;
	}
}
.container-list.line-border
{
	/*padding-block-start: 0;*/
	li
	{
		border: none;
	}
	li ul
	{
		margin-inline-start: .75em;
		margin-inline-start: .6875em;
		padding-inline-start: .75em;
		padding-inline-start: .8125em;
	}
	[open] ul
	{
		border-left: 1px dotted #b3b2b1;
	}
}
.container-list.nested-border
{
	li
	{
		border: none;
	}
	li:not(:has(>details))
	{
		padding-inline-start: .6125em;
		display: flex;
		&::before
		{
			border: 1px dotted #353331;
			border-width: 0 0 1px 1px;
			content: '';
			display: block;
			height: .75em;
			margin-block-start: .6125em;
			margin-inline-end: .5625em;
			/*margin-block-start: .6875em;*/
            /*margin-inline-start: .0625em;*/
            /*margin-inline-end: .4375em;*/
			width: .375em;
		}
		label
		{
			flex: 1;
		}
	}
}