@font-face {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 400;
	src: url('/fonts/mulish-regular.woff2') format('woff2');
}

@font-face {
	font-family: 'Mulish';
	font-style: italic;
	font-weight: 400;
	src: url('/fonts/mulish-italic.woff2') format('woff2');
}

@font-face {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 700;
	src: url('/fonts/mulish-bold.woff2') format('woff2');
}

@font-face {
	font-family: 'Mulish';
	font-style: italic;
	font-weight: 700;
	src: url('/fonts/mulish-bold-italic.woff2') format('woff2');
}

/******************************************************************************/

html,
body,
header *,
footer * {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	font-family: Mulish, sans-serif;
}

html {
	display: flex;
	flex-flow: column wrap;
	justify-content: flex-start;
	align-items: center;
}

body {
	max-width: 870px;
	margin: 0 1rem 0 1rem;
	overflow-x: hidden;  /* because of sub-menu */
	display: flex;
	flex-flow: column nowrap;
	height: 100vh;
}

a {
	color: black;
}

/******************************************************************************/

header,
header a.logo,
header nav {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: center;
}

@media (max-width: 349px) {
	header a.logo {
		justify-content: center;
		width: 100%;
	}
}

@media (min-width: 350px) {
	header a.logo {
		margin-right: 5rem;
	}
}

header a.logo,
header a.logo img {
	font-size: 3.5rem;
	color: #ef4e18;
}

header a.logo img {
	margin: 1rem 0;
	width: 197px;
	max-width: 100%;
}

header ul#menu {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: stretch;
	margin-left: -1rem;
	margin-right: -1rem;
}

header ul#menu ul {
	position: absolute;
	top: 100%;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: stretch;
	box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;

	overflow: hidden;  /* hide the element content, while max-height = 0 */
	max-height: 0;
	opacity: 0;
	transition: max-height 0s 2s, opacity 1s 1s;
}

header ul#menu li:hover ul,
header ul#menu li:focus-within ul {
	max-height: 100vh;
	opacity: 1;
	transition: max-height 0s 0s, opacity 1s 0s;
}

header ul#menu li {
	position: relative;
}

@media (min-width: 350px) {
	header ul#menu li {
		white-space: nowrap;
	}
}

header ul#menu a {
	display: flex;
	padding: 0.5rem 1rem;
	font-size: 1.3rem;
	text-decoration: none;
	color: #000;
	background: white;
}

header ul#menu ul a {
	padding: 0.35rem 1rem;
	font-size: 1.1rem;
}

header ul#menu a:hover,
header ul#menu a:focus {
	background: #eeeeee;
	outline: none;
}

header ul#menu .current > a,
header ul#menu .parent > a {
	text-decoration: underline;
	text-decoration-color: hsl(23, 79%, 49%);
	text-decoration-thickness: 4px;
}

/******************************************************************************/

main {
  flex-grow: 999;
  max-width:600px;
}

main h1 {
	font-size: 2.3rem;
	color: hsl(23, 79%, 49%);
}

main h2 {
	font-size: 1.8rem;
	color: #575656;
}

main h3 {
	font-size: 1.2rem;
	color: hsl(23, 79%, 49%);
}


main li {
	list-style-type: "\003E";
	padding-left:0.5em;
}

main li li {
	list-style-type: square;
}

main ol li li {
	list-style-type: disc;
}

main img,
main figure {
	display: block;
	max-width: 100%;
	margin: 1.5rem auto;
}

main figure img {
	margin: 0 auto;
}

main figure img + figcaption,
main figure figcaption + img {
	margin-top: 0.5rem;
}

main .half-width-images {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: flex-start;
	margin: -1rem auto;
}

main .half-width-images > * {
	max-width: max(calc(50% - 1rem), 420px);
}

main .half-width-images > *:not(:only-child) {
	margin-left: 0;
	margin-right: 0;
}

main a[href^=http]::after {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin: 0 0 -0.125em 0.125em;
	content: "";
	background: center / contain no-repeat url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTEwIDZ2Mkg1djExaDExdi01aDJ2NmExIDEgMCAwIDEtMSAxSDRhMSAxIDAgMCAxLTEtMVY3YTEgMSAwIDAgMSAxLTFoNlptMTEtM3Y4aC0yVjYuNDEzbC03Ljc5MyA3Ljc5NC0xLjQxNC0xLjQxNEwxNy41ODUgNUgxM1YzaDhaIi8+PC9zdmc+");
}

main a[href$=\.pdf]:not([href^=http])::after {
	display: inline-block;
	margin: 0 0 0 0.25em;
	padding: 2px;
	border: 1px dotted;
	border-radius: 2px;
	content: "PDF";
	font-size: 0.75em;
}

main blockquote {
	position: relative;
	margin: 1rem 0;
}

main blockquote::before {
	position: absolute;
	top: -3rem;
	right: calc(100% + 4rem);
	display: block;
	content: "“";
	font-family: "Times New Roman", Mulish, serif;
	font-size: calc(10rem * 2);
	font-style: normal;
	color: hsl(23, 79%, 49%);
	opacity: 0.5;
}

main blockquote ul {
	padding: 0;
}

main blockquote li {
	margin: 1rem 0;
	font-style: italic;
	list-style: none;
}

main blockquote li::before {
	content: "«\a0";
	font-style: normal;
}

main blockquote li::after {
	content: "\a0»";
	font-style: normal;
}

/******************************************************************************/

footer {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: start;
	width: calc(100vw - 2rem);
	margin: 1rem calc(50% - 50vw) 0 calc(50% - 50vw);
	padding: 1rem;
	background: hsl(23, 79%, 49%);
}

footer div {
	width: 230px;
	max-width: 100%;
	margin: 2rem 0;
}

@media (min-width: 300px) {
	footer div {
		margin-left: 2rem;
		margin-right: 2rem;
	}
}

@media (min-width: 800px) {
	footer div {
		margin-left: 4rem;
		margin-right: 4rem;
	}
}

footer h1 {
	margin: 0 0 1rem 0;
	font-size: 1.8rem;
	color: black;
}

footer img {
	width: 250px;
	max-width: 100%;
}

footer .ourselves img {
	filter: brightness(0) saturate(0);
}

footer .partners a {
	display: flex;
}

footer .partners img {
	max-width: calc(100% - 20px);
	padding: 10px;
	background: white;
}

footer li:not(:first-child) {
	margin-top: 1rem;
}

/******************************************************************************/

@media print {
	header nav,
	footer {
		display: none;
	}

	header a.logo {
		text-decoration: none;
	}

	header img {
		filter: brightness(0) saturate(0);
	}

	* {
		color: black !important;
	}

	main a[href^=http]::after,
	main a[href$=\.pdf]::after {
		display: inline-block;
		width: unset;
		height: unset;
		margin: 0 0 0 0.25em;
		padding: 0;
		border: none;
		border-radius: 0;
		content: "[" attr(href) "]";
		font-size: 1em;
		background: transparent;
	}
}
