/* Typography and styling */

html {
	font-family: 'Barlow', sans-serif;
	font-size: 13pt;
	line-height: 1.5;
	color: #000;
}

body {
	min-width: 22rem;
}

.content p, .content li {
	max-width: 40rem; /* keep in sync with `.content .paragraph-width` below */
	line-height: 1.66;
}

.content p {
	margin-top: 0;
	margin-bottom: 0.5em;
	text-align: justify;
}

code, pre, var {
	font-family: 'Roboto Mono', monospace;
	font-weight: 300;
	font-size: 90%;
	font-style: inherit;
}

pre {
	margin: 0.3em;
	margin-bottom: 0.5em;
	padding-left: 0.5em;
	border-left: 2pt dotted #fc8;
	overflow-x: auto;
}

code {
	border: 2pt dotted #fc8;
	border-radius: 0.2em;
}

pre code {
	border: none;
	font-size: inherit;
}

a {
	text-decoration: none;
	color: #0ad;
}

a:hover {
	text-decoration: underline;
}

a.header-local-anchor {
	color: #eee;
	font-weight: 300;
	padding-left: 0.5em;
}

a.header-local-anchor:hover {
	text-decoration: none;
	color: #0ad;
}

body {
	margin: 0;
	background: white;
}

h1, h2, h3, h4, h5, h6 {
	color: #555;
	border-bottom: 1pt solid #e8e8e8;
	font-family: 'Barlow Semi Condensed', sans-serif;
}

h1 {
	font-size: 160%;
	font-weight: bold;
}

h2 {
	font-size: 150%;
	font-weight: normal;
}

h3 {
	font-size: 140%;
	font-weight: 100;
}

h4 {
	font-size: 130%;
	font-weight: bold;
}

h5 {
	font-size: 120%;
	font-weight: normal;
}

h6 {
	font-size: 110%;
	font-weight: 100;
}

dt {
	font-weight: bold;
}

tbody tr.even {
	background: #f8f8f8;
}

table {
	font-variant-numeric: tabular-nums;
}

table td {
	padding: 0.3em;
}

table th {
	padding: 0.5em;
	border-bottom: 1pt solid #777;
}

blockquote {
	border-left: 0.5em solid #eee;
	padding-left: 1em;
}

img, video {
	max-width: 100%;
}

figcaption {
	display: none;
}

/* sizing and alignment helper classes; keep in sync with the paragraph sizes above */

.content .w1-1 { max-width: 40rem; }
.content .w4-5 { max-width: 32rem; }
.content .w3-4 { max-width: 30rem; }
.content .w2-3 { max-width: 26.666rem; }
.content .w3-5 { max-width: 24rem; }
.content .w1-2 { max-width: 20rem; }
.content .w2-5 { max-width: 16rem; }
.content .w1-3 { max-width: 13.333rem; }
.content .w1-4 { max-width: 10rem; }
.content .w1-5 { max-width: 8rem; }

.content .h1-1 { max-height: 40rem; }
.content .h4-5 { max-height: 32rem; }
.content .h3-4 { max-height: 30rem; }
.content .h2-3 { max-height: 26.666rem; }
.content .h3-5 { max-height: 24rem; }
.content .h1-2 { max-height: 20rem; }
.content .h2-5 { max-height: 16rem; }
.content .h1-3 { max-height: 13.333rem; }
.content .h1-4 { max-height: 10rem; }
.content .h1-5 { max-height: 8rem; }
.content .h-line { max-height: 1.44em; }

.content .wx1-1 { width: 40rem; }
.content .wx4-5 { width: 32rem; }
.content .wx3-4 { width: 30rem; }
.content .wx2-3 { width: 26.666rem; }
.content .wx3-5 { width: 24rem; }
.content .wx1-2 { width: 20rem; }
.content .wx2-5 { width: 16rem; }
.content .wx1-3 { width: 13.333rem; }
.content .wx1-4 { width: 10rem; }
.content .wx1-5 { width: 8rem; }

.content .hx1-1 { height: 40rem; }
.content .hx4-5 { height: 32rem; }
.content .hx3-4 { height: 30rem; }
.content .hx2-3 { height: 26.666rem; }
.content .hx3-5 { height: 24rem; }
.content .hx1-2 { height: 20rem; }
.content .hx2-5 { height: 16rem; }
.content .hx1-3 { height: 13.333rem; }
.content .hx1-4 { height: 10rem; }
.content .hx1-5 { height: 8rem; }
.content .hx-line { height: 1.44em; }


.content figure {
	max-width: 40rem;
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
	margin-bottom: 0.5em;
}

.content .align-left {
	margin-left: 0;
	margin-right: auto;
	display: block;
}

.content .align-center {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.content .align-right {
	margin-left: auto;
	margin-right: 0;
	display: block;
}

.content div.centered-block {
	text-align: center;
}

.content div.centered-block p,
.content div.centered-block figure {
	text-align: inherit;
}

.content div.wide-block {
	max-width: unset;
}

.content div.wide-block p,
.content div.wide-block figure {
	max-width: inherit;
}

/* text alert coloring and hihglighting helpers */

.content .color-primary, .content .color-blue {
	color: #04d;
}

.content .color-secondary, .content .color-gray, .content .color-grey {
	color: #888;
}

.content .color-success, .content .color-correct, .content .color-green {
	color: #0d0;
}

.content .color-warning, .content .color-yellow {
	color: #dc0;
}

.content .color-alert, .content .color-orange {
	color: #e80;
}

.content .color-danger, .content .color-wrong, .content .color-red {
	color: #d00;
}

.content .color-weird, .content .color-violet {
	color: #b4c;
}

.content .color-info, .content .color-cyan {
	color: #3ab;
}

.content .highlight {
	background-color: #ffd;
	padding: .2ex;
	margin: .2ex;
}

/* admonitions */

.content div.info-box, .content div.blue-box {
	background-color: #cef;
	max-width: 40rem;
	padding: 1em;
	margin-bottom: 1em;
}

.content div.danger-box, .content div.red-box {
	background-color: #fbb;
	max-width: 40rem;
	padding: 1em;
	margin-bottom: 1em;
}

.content span.box-header {
	display: block;
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	margin-top: -1em;
	margin-left: -1em;
	margin-right: -1em;
	margin-bottom: 1em;
	backdrop-filter: brightness(66%) saturate(500%);
	font-weight: bold;
	color: white;
}

/* front page */

div.frontpage-card-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

div.frontpage-card-switchable {
	overflow: hidden;
	max-height: 10000rem; /* This should accomodate a lot of rows. Better solution wins a beer. */
	opacity: 1;
	transition: max-height 0.5s linear(0, 0 50%, 1 50%, 1), opacity 0.5s linear(0,0,1);
}

div.frontpage-card-hidden {
	max-height: 0;
	opacity: 0;
	transition: max-height 0.5s linear(0, 0 50%, 1 50%, 1), opacity 0.5s linear(0,1,1);
}

div.frontpage-card {
	display: inline-block;
	overflow: hidden;

	text-align: center;
	font-size: 70%;

	height: 7.5rem;
	width: 4.666rem;
	padding: 0.25rem;

	margin: 0.25rem;
	border: solid #ddd;
	border-width: 1pt;
	border-radius: .75rem;

	box-shadow: 2pt 2pt 6pt #ddd;

	transition: border-color 0.2s, box-shadow 0.2s, filter 0.2s, opacity 0.2s;
}

div.frontpage-card img {
	width: 2rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

div.frontpage-groupcard {
	border-color: #8ce;
}

div.frontpage-groupcard-off {
	filter: saturate(0.5);
	opacity: 0.5;
}

div.frontpage-card:hover {
	border-color: #0ad;
	box-shadow: 2pt 2pt 6pt #8ce;
}

div.frontpage-card div.frontpage-card-label {
	font-family: 'Barlow Semi Condensed', sans-serif;
}

/* listings */

img.list-policy-mark {
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	vertical-align: middle;
}

/* SOP support */

div.policy-explanation {
	margin: 3em;
	padding: 2em;
	text-align: center;
	border: 1pt solid #ddd;
	border-radius: .75rem;
}

div.policy-explanation p {
	text-align: center;
	max-width: inherit;
	line-height: 1.3;
}

div.policy-header {
	margin: 1rem;
	padding: 1rem;
	border: 1pt solid #0ad;
	border-radius: .75rem;
	padding-left: 7rem;
	max-width: 40rem;
	font-size: 75%;
}

img.policy-header-mark {
	display: inline-block;
	margin-left: -6rem;
	margin-bottom: -5rem;
	width: 5rem;
	height: 5rem;
}

/* the "side" infobox */

.sidebox ol {
	padding-left: 1em;
	margin: 0;
	margin-bottom: 0.5em;
}

.sidebox ul {
	padding-left: 1em;
	list-style-type: none;
	margin: 0;
	margin-bottom: 0.5em;
}

.sidebox .sidebox-right {
	text-align: right;
	margin-bottom: 1em;
}


li.sidebox-tag {
	padding-left: 1em;
	text-indent: -1em;
}

.sidebox-toc a {
	display: inline-block;
	padding-left: 1em;
	text-indent: -1em;
}

.sidebox .external-warning {
	font-size: 80%;
	color: #d44;
	margin-bottom: 0.5em;
}

body .external_warning {
	color: #d44;
	font-weight: bold;
}

/* back-to-top button */

#back-top-button {
	position: fixed;
	bottom: 2rem;
	right: 2rem;

	cursor: pointer;

	width: 3rem;
	height: 3rem;

	background-color: white;
	border: 1.5pt solid #ddd;
	border-radius: 50%;
	box-shadow: 2pt 2pt 6pt #ddd;

	visibility: hidden;
	opacity: 0;

	transition: opacity 250ms, border-color 250ms, box-shadow 250ms, visibility 250ms;

	display: none; /* hidden on small screens */
}

#back-top-button.active {
	visibility: visible;
	opacity: 1;
}

#back-top-button img {
	width: 1.44rem;
	height: 1.44rem;
}

#back-top-button:hover {
	border-color: #0ad;
	box-shadow: 2pt 2pt 6pt #8ce;
}

/* search form and related stuff */

.search-form-wrap {
	text-align: center;
	font-size: 120%;
}

ul.search-results li {
	margin-bottom: 1em;
}

ul.search-results li a.search-result {
	font-size: 120%;
	display: block;
}

ul.search-results li div.search-tag {
	display: block;
	font-size: 80%;
	color: #555;
	font-weight: bold;
}

form.search-form-wrap {
	width: 100%;
}

div.search {
	width: 100%;
	border: 2pt solid #eee;
	border-radius: 2em;
	transition: border 250ms;
	margin-left: auto;
	margin-right: auto;
	display:flex;
}

div.search:focus-within {
	border: 2pt solid #0ad;
}

.search i {
	height: 2em;
	width: 2em;
	background-image: url('static/search.svg');
	background-size: contain;
	background-repeat: no-repeat;
	flex-grow: 0;
}

.search input {
	font-size: inherit;
	font-family: inherit;
	line-height: 2em;
	border: none;
	background: none;
	flex-grow: 1;
}

.search input:focus, .search input:active, .search input:focus-visible{
	outline: none;
}

/* layout */

header {
	height: 4rem;
	margin-bottom: 1rem;
	background: #fafafa;
	display: flex;
}

main {
	display: flex;
	flex-direction: row;
}

.content-holder {
	flex-grow: 1;

	display: flex;
	flex-direction: column;
	align-items: stretch;

	overflow-x: hidden; /* this prevents <pre> and pals from killing the layout */
}

/* side stuff */

.flex-sidefill-l {
}

.flex-sidefill-r {
}

.width-sidebox-counterweight {
}

.width-sidebox-placeholder {
}

.sidebox {
}

.width-content {
	width: 100%;
}

.flex-fill {
	flex-grow: 1;
}

/* header bar */

.topbar-borderbottom {
	border-bottom: 1pt solid #777;
}

.same-height {
	height: inherit;
	display: flex;
}

.topbar-padding {
	min-width: 2rem;
}

.topbar-unilu {
	background: white;
	align-self: flex-end;
	padding: 0.65rem;
	padding-bottom: 0.1rem;
	border: solid 1pt #777;
	border-bottom: none;
	border-radius: 0.65rem 0.65rem 0 0;
}

.logo-unilu {
	height: 2.5rem;
	width: 3rem;
	background-image: url('static/unilu.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

.topbar-lcsb {
	align-self: flex-end;
	padding-bottom: 0.5rem;
}

.logo-lcsb {
	height: 2.5rem;
	width: 2.5rem;
	background-image: url('static/lcsb.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

.topbar-text {
	padding-bottom: 0.5rem;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 300;
	line-height: 1.2;
	color: #777;
	display:flex;
}

.header-title {
	align-self: flex-end;
	font-size: 120%;
	margin-left: .6em;
}

.header-subtitle {
	display: none;
	align-self: flex-end;
	font-size: 120%;
	max-width: 7em;
	margin-left: .5em;
	padding-left: .5em;
	margin-bottom: 0.1rem;
	border-left: 1pt solid #777;
}

/* meta bar */

.sidebox {
	align-self: flex-start;
	box-sizing: border-box;
	width: 100%;

	padding-left: 2rem;
	padding-right: 2rem;

	color: #777;
}

.sidebox-header {
	font-weight: bold;
	font-size: 80%;
}

.sidebox-values {
	margin-bottom: 1em;
	font-size: 80%;
}

/* main content */

.content {
	box-sizing: border-box;
	width: 100%;

	padding-left: 2rem;
	padding-right: 2rem;
}

/* footer */

.content-footer {
	height: 10rem;
	margin-top: 5rem;
	background-color: #ddd;
	box-shadow:
		inset 10rem -10rem 10rem 0 #fff,
		inset -10rem -10rem 10rem 0 #fff;
	display: flex;
}

.footer-lcsb {
	align-self: center;
	margin-left: 1rem;
	height: 3rem;
	width: 3rem;
	background-image: url('static/lcsb.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

.footer-text {
	align-self: center;
	margin-left: 2rem;
	max-width: 75%;

	font: 'Barlow Condensed', sans-serif;
	font-size: 80%;
	color: #777;
}

/* responsive switchery */

@media screen and (min-width: 390pt /*30 rem*/) {

	div.search {
		width: 25rem;
	}

	.header-title {
		font-size: 150%;
	}

	.header-subtitle {
		font-size: 75%;
		display: block;
	}
}

@media screen and (min-width: 715pt /*55 rem*/) {
	/*
	 * bigger than forced 1column:
	 * - switch header to "normal" form
	 * - switch headers to normal size
	 * - start growing borders
	 * - show the back-to-top button
	 */

	header {
		height: 7rem;
	}

	.flex-sidefill-l {
		flex-grow: 1;
	}

	.flex-sidefill-r {
		flex-grow: 1;
	}

	.content-holder {
		flex-grow: 0;
	}

	.width-content {
		width: 55rem;
	}

	/* header stuff */

	.topbar-unilu {
		padding: 1.2rem;
		padding-bottom: 0.2rem;
		border-radius: 1.2rem 1.2rem 0 0;
	}

	.logo-unilu {
		height: 4rem;
		width: 4.7rem;
	}

	.topbar-lcsb {
		padding-bottom: 1rem;
	}

	.logo-lcsb {
		height: 4rem;
		width: 4rem;
	}

	.topbar-text {
		padding-bottom: 1rem;
	}

	.header-title {
		font-size: 300%;
	}

	.header-subtitle {
		margin-bottom: 0.4rem;
		font-size: 120%;
	}

	/* button gets shown, we're likely not on a phone anymore */

	#back-top-button {
		display: block;
	}

	/* frontpage cards expand here */

	div.frontpage-card {
		font-size: 100%;

		height: 14rem;
		width: 7.5rem;
		padding: 0.5rem;

		margin: 0.5rem;
		border-width: 2pt;
		border-radius: 1rem;
	}

	div.frontpage-card img {
		width: 6em;
		margin-top: 1rem;
		margin-bottom: 1rem;
	}

	/* typography expands here */

	h1 {
		font-size: 220%;
	}

	h2 {
		font-size: 200%;
	}

	h3 {
		font-size: 180%;
	}

	h4 {
		font-size: 150%;
	}

	h5 {
		font-size: 120%;
	}

	h6 {
		font-size: 120%;
	}
}

@media screen and (min-width: 975pt /*75 rem*/) {

	header {
		margin-bottom: 3rem;
	}

	.flex-sidefill-r {
		flex-grow: 0;
	}

	.content-holder {
		flex-direction: row-reverse;
	}

	.width-sidebox-placeholder {
		width: 20rem;
	}

	.sidebox {
		width: 20rem;
	}

	.sidebox .sidebox-right {
		text-align: left;
	}
}

@media screen and (min-width: 1235pt /*95 rem*/) {
	.flex-sidefill-r {
		flex-grow: 1;
	}

	.width-sidebox-counterweight {
		width: 20rem;
	}
}

@media print {
	html {
		font-size: 10pt;
	}

	main, .content-holder {
		display: initial;
	}

	header,
	.content-footer,
	.sidebox,
	a.header-local-anchor,
	.flex-sidefill-l, .flex-sidefill-r,
	.width-sidebox-placeholder, .width-sidebox-counterwieght,
	#lap-cookies-banner,
	#back-top-button {
		  display: none;
	}

	.content {
		padding: 0;
	}

	pre {
		overflow-x: wrap;
	}

	.content p, .content li {
		max-width: unset;
	}

	.content div.info-box, .content div.blue-box {
		border: 2pt solid #cef;
	}

	.content div.danger-box, .content div.red-box {
		border: 2pt solid #fbb;
	}
}
