/* This file contains material derived from 'Supplemental css for the disclosure menu keyboard behavior', https://www.w3.org/WAI/content-assets/wai-aria-practices/patterns/disclosure/examples/css/disclosure-navigation.css. Copyright © 2024 World Wide Web Consortium. https://www.w3.org/copyright/software-license-2023/"

Copyright © 2024 World Wide Web Consortium. All Rights Reserved. This work is distributed under the W3C® Software and Document License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[1] https://www.w3.org/Consortium/Legal/copyright-software
*/

.display-none{
	display: none;
}

.display-block{
	display: block;
}

/* Cookie info */
.cookie_summary_button{
	cursor: help;
}

.cookie_summary_button[aria-expanded="false"]::before {
  content: "";
  position: relative;
  left: -2px;
  cursor: default;
}

.cookie_summary_button[aria-expanded="true"]::before {
  content: "";
  position: relative;
  left: -4px;
  top: 2px;
  cursor: default;
}

/* Hamburger button for nav */
.hamburger_button{
	color: #20403d;
	background-color: #faeee2; 
	position: fixed;
	z-index:1;
	border:1px transparent;
	top:0px;
	right:0px;
	height:50px;
	width:50px;
	padding:5px;
	box-shadow:0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

.hamburger_button[aria-expanded="false"]::before {
  content: url("../images/hamburger_lines.svg");
  cursor: default;
}

.hamburger_button[aria-expanded="true"]::before {
  content: url("../images/close_x.svg");
  cursor: default;
}

.short_desc{
  background-color: #000000;
  position: absolute;
  top: 50px;
  right: 0;
  display: inline-block;
  cursor: default;
  box-shadow:0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

/* Large and medium screens */
@media only screen and (min-width: 667px) {

	.short_desc{
		min-width:300px;
	}

	.disclosure-nav {
		position:fixed;
		width:100%;
		z-index:1;
		top:0;
		right:55px;
		display: flex;
		justify-content: flex-end;
		list-style-type: none;
		padding: 0;		
		margin: 0;
		min-height: 50px;
		padding-bottom: 2px;
		box-shadow:0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
		background-color: #faeee2;	
	}
}


.disclosure-nav ul {
	background-color: #faeee2;
	border: 0px solid #20403d;
	border-top-width: 0px;
	border-radius: 0 0 0 0;
	display: block;
	list-style-type: none;
	margin: 0;
	min-width: 100px;
	padding: 0;
	position: absolute;
	top: 100%;
	box-shadow:0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

.disclosure-nav li {
	margin: 0;
}

.disclosure-nav > li {
	display: flex;
	position: relative;
}

.disclosure-nav ul a {
  border: 0;
  color: #20403d;
  display: block;
  margin: 0;
  padding: 0.5em 1em;
  text-decoration: none;
}

.disclosure-nav p {
  display: flex;
  position: relative;
  border: 5px solid #faeee2;
  background-color: #ffffff;
  display: block;
  margin: 0;
  padding: 0.5em 1em;
  text-decoration: unset;
  font-size: 0.9em;
}


.disclosure-nav ul a:hover,
.disclosure-nav ul a:focus {
  background-color: #ddd;
  margin-bottom: 0;
  text-decoration: none;
}

.disclosure-nav ul a:focus {
  outline: 5px solid #20403d / 75%;
  position: relative;
}

.disclosure-nav button,
.disclosure-nav .main-link {
  align-items: center;
  background-color: transparent;
  border: 0px solid transparent;
  border-right-color: #ccc;
  display: flex;
  padding: 0.8em;
}

.disclosure-nav .main-link {
  border-right-color: transparent;
  color: #20403d;
  text-decoration: none;
}

.disclosure-nav button::after {
  content: "";
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  height: 0.5em;
  margin-left: 0.75em;
  width: 0.5em;
  transform: rotate(45deg);
}

.disclosure-nav .main-link + button::after {
  margin-left: 0;
}

.disclosure-nav button:focus,
.disclosure-nav .main-link:focus {
  border-color: #20403d;
  outline: 5px solid #20403d / 75%;
  position: relative;
}


.disclosure-nav button:hover,
.disclosure-nav button[aria-expanded="true"] {
  background-color: #ddd;
}

.disclosure-nav button:hover::after,
.disclosure-nav button[aria-expanded="true"]::after {
  border-color: #20403d;
}

/* Addition */
.disclosure-nav .main-link:hover {
  background-color: #ddd;
}



/* Small screen */
@media only screen and (max-width: 666px) {
	.short_desc{
		width:170px;
		position:relative;
		top:-2em;
		left:30px;
	}
	
	.disclosure-nav {
		height:100%;
		width:200px;
		text-align: left;
		background-color:#faeee2;
		position:fixed;
		list-style-type:none;
		display: flex;
		flex-direction: column;
		padding:0;
		margin:0;
		z-index:1;
		right:0;
		top:55px;
		overflow:auto;
		box-shadow:0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);	
	}
	
	.disclosure-nav ul {
		all: unset;
		background-color: #faeee2;
		border: 0px solid #20403d;
		border-top-width: 0px;
		border-radius: 0 0 0 0;
		display: flex;
		list-style-type: none;
		margin: 0;
		min-width: 100px;
		padding: 0;
		margin-left: 5px;
		position: relative;
	}
	
	.disclosure-nav li {
		margin: 0;
	}

	.disclosure-nav > li {
		display:inline-block;
		position:relative;
	}
	
	.disclosure-nav ul a {
	  border: 0;
	  color: #20403d;
	  display: block;
	  margin: 0;
	  padding: 0.5em 1.5em;
	  text-decoration: none;
	}
}