/*--- fonts ---*/
@import url('https://fonts.googleapis.com/css2?family=Martel:wght@700&display=swap');


/*--- icons ---*/
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');


/*--- generic ---*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	line-height: 1;
}
html{
    height:100%;
}
body {
	font-family: 'Georgia', serif;
	background: #fdf6e3;
	color: #3c3c3c;
	line-height: 1.6;
	padding: 30rem;
    font-size:18rem;
}
.sr_only{
	position: absolute;
	left:-9999rem;
}
.mobile {
	display:none;
}
.overlay {
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap:20rem;
	position:fixed;
	top:0;
	left:0;
	max-width:100%;
	width:100%;
	height:100%;
	background-color:rgba(0,0,0,0.6);
	overflow:hidden;
	z-index:97;
}
.fixed {
	overflow: hidden;
}
h1 {
	font-size:60rem;
}
h2 {
	margin-bottom:30rem;
	font-size: 30rem;
}
h3 {
	margin-bottom:15rem;
	font-size:25rem;
}
h4 {
	margin-bottom:15rem;
	font-size:20rem;
}
p {
	font-size:18rem;
}
a {
	color:#7a5c28;
}
a:has(h1) {
	text-decoration: none;
}
button,
.button,
#e_img::file-selector-button,
#e_img::-webkit-file-upload-button {
	font-family: 'Georgia', serif;
	position: relative;
	display: inline-block;
	font-size: 18rem;
	color: #5c4420;
	margin-bottom:15rem;
	padding: 15rem 30rem;
	background: #f4e8d8;
	border: 1rem solid #d5c4a1;
	border-radius: 5rem;
	text-decoration: none;
	transition: background 0.3s, border-color 0.3s, color 0.3s;
	box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.05);
	cursor: pointer;
}
button:hover,
.button:hover,
#e_img::file-selector-button:hover,
#e_img::-webkit-file-upload-button:hover {
	background: #e8dbc7;
	border-color: #c2b59b;
	color: #4a351a;
}
#e_img::file-selector-button,
#e_img::-webkit-file-upload-button {
	margin-right:20rem;
	padding:9rem 20rem 8rem 20rem !important;
}
button[disabled],
button:disabled {
	color:#d5c4a1;
	pointer-events: none;
}
button.icon {
	padding-left:54rem;
}
button.icon:after {
	content: "";
	position: absolute;
	top:calc(50% - 1rem);
	left:20rem;
	right:0;
	width:24rem;
	height:24rem;
	background-position: center center;
	background-size: 24rem 24rem;
	background-repeat: no-repeat;
	transform:translateY(-50%)
}
button.icon:hover:after{
	/*filter:invert(65%) sepia(46%) saturate(231%) hue-rotate(0deg) brightness(88%) contrast(89%);*/
}
button.icon.save:after {
	background-image:url("../images/save.svg");
}
button.icon.delete:after{
	background-image:url("../images/delete.svg");
}
button#save.icon.save:disabled:after,
button#save.icon.save[disabled]:after,
button#delete.icon.delete:disabled:after,
button#delete.icon.delete[disabled]:after {
	filter:invert(65%) sepia(46%) saturate(231%) hue-rotate(0deg) brightness(88%) contrast(89%);
}
button.icon.wait:after{
	background-image:url("../images/saving.svg");
	filter:invert(65%) sepia(46%) saturate(231%) hue-rotate(0deg) brightness(88%) contrast(89%);
}
button.icon.back:after{
	background-image:url("../images/back.svg");
}
button.icon.create:after{
	background-image:url("../images/create.svg");
}
button.icon.wrench:after{
	background-image:url("../images/wrench.svg");
}
button.hazard:before {
	content: "";
	position: absolute;
	bottom:0;
	left:0;
	right:0;
	height:4rem;
	border-top: 1rem solid #5c4420;
	background: linear-gradient(45deg, #5c4420 25%, #d5c4a1 25%, #d5c4a1 50%, #5c4420 50%, #5c4420 75%, #d5c4a1 75%, #d5c4a1 100%);
	background-size:30rem 30rem;
}
button#save.reminder {
	animation:reminder 2s infinite;
}
button#save.reminder:disabled {
	animation:none;
}
button#save.reminder:hover {
	color:#3C3322;
}

@keyframes reminder {
  0% {background-color: #d5c4a1;}
  50% {background-color: #FFB56B;}
  100% {background-color: #d5c4a1;}
}

/*.container {*/
/*	max-width: 1200px;*/
/*	margin: 0 auto;*/
/*	padding: 40px;*/
/*	border: 2px solid #d5c4a1;*/
/*	background: #fffdf5;*/
/*	box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);*/
/*}*/



/*-------------------------------*/
/*--- H E A D E R   +   N A V ---*/
/*-------------------------------*/

header {
	text-align: center;
	margin-bottom:30rem;
}

#admin + header {
	margin-top:60rem;
}

header h1 {
	color: #7a5c28;
	letter-spacing: 1rem;
}

header p {
	max-width: 750rem;
	margin: 0 auto;
	line-height:1.6;
}

header a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 20rem;
	margin-bottom:30rem;
}

header img {
	max-width:120rem;
	width:100%;
}

nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15rem;
	margin-bottom: 60rem;
	list-style: none;
}
nav ul li {
	display:flex;
}
nav:not(#admin) a {
	text-decoration: none;
	background-color: #d5c4a1;
	padding: 15rem 20rem;
	border: 1rem solid #d5c4a1;
	font-size:18rem;
	color: #3c3c3c;
	border-radius: 5rem;
	transition: background 0.3s;
}

nav:not(#admin) a:hover,
nav:not(#admin) ul li #nav-search:hover {
	background-color: #eee8d5;
}
nav:not(#admin) ul li #nav-search {
	background-image:url("/images/search.svg");
	background-position: center center;
	background-size: 30rem 30rem;
	background-repeat: no-repeat;
	background-color:#d5c4a1;
	aspect-ratio: 1/1;
	cursor: pointer;
}
#admin {
	position: fixed;
	display:flex;
	align-items: center;
	justify-content: center;
	width:calc(100% + 60rem);
	height:60rem;
	margin:-30rem 0 0 -30rem;
	background-color:#d5c4a1;
	box-shadow:/**/ 0 -2rem 8rem 2rem rgba(0,0,0,0.4);
	-webkit-box-shadow: 0 -2rem 8rem 2rem rgba(0,0,0,0.4);
	-moz-box-shadow: 0 -2rem 8rem 2rem rgba(0,0,0,0.4);
	z-index: 98;
}
#admin div:first-of-type {
	display:flex;
	gap:10rem;
}
#admin > div.success,
#admin > div.waiting,
#admin > div.error {
	display: none;
}
#admin > div.success > div,
#admin > div.waiting > div,
#admin > div.error > div {
	width: auto;
    padding: 10rem 20rem 10rem 50rem;
	background-position:0 50%;
	background-size:40rem;
	background-repeat: no-repeat;
}
#admin > div.success > div {
    background-image:url("../images/success.svg");
}
#admin > div.waiting > div {
    background-image:url("../images/saving.svg");
}
#admin > div.error > div {
    background-image:url("../images/error.svg");
}

/*header{*/
/*    display: flex;*/
/*    max-width:1280rem;*/
/*    margin:0 auto;*/
/*    padding:40rem 5% 0;*/
/*    overflow: auto;*/
/*}*/
/*header img{*/
/*    width:83%;*/
/*    margin:0 0 0 2%;*/
/*}*/
/*header img:first-child{*/
/*    width:15%;*/
/*    height:15%;*/
/*    margin:0;*/


/*}*/


/*-------------------*/
/*--- D I A L O G ---*/
/*-------------------*/

dialog {
	position: fixed;
	max-width: 60vw;
	width:100%;
	margin: auto !important;
	border: none;
	outline: none;
	background-color: #FFF;
	border-radius:5rem;
	z-index: 99;
 }

dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
	z-index: 98;
}
dialog .close {
	display:block;
	position: absolute;
	top:30rem;
	right:30rem;
	width:30rem;
	height:30rem;
	padding:0;
	border:none;
	background: url("/images/close.svg") center center / 100% no-repeat transparent;
	box-shadow: none;
}

dialog form {
	padding: 60rem;
}

dialog div h2 { text-align: center; }

dialog p {
	max-width: 100%;
	width: 100%;
}
dialog .archive-toggle {
	position: relative;
	margin-bottom: 1.5rem;
	cursor: pointer;
}
dialog .archive-toggle .toggle-option {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	z-index: 2;
	color: #4B3621;
	user-select: none;
	padding: 0 10rem;
	text-align: center;
	transition: color 0.3s ease, opacity 0.3s ease;
	opacity: 0.1;
	line-height:1.4;
}
dialog .toggle-slider {
	flex:1;
	display: flex;
	position: relative;
	max-width: 100%;
	width: 100%;
	border: 1rem solid #d5c4a1;
	border-radius: 5rem;
	overflow: hidden;
	height: 60rem;
	background: #F5F0E1;
}
dialog .slider-knob {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	background-color: #C2B280;
	transition: left 0.3s ease;
	z-index: 1;
	border-radius: 5rem;
}
dialog .archive-toggle.photo-mode span:first-of-type {
	color: #FFF;
	opacity: 1;
}
dialog .archive-toggle.document-mode span:last-of-type {
	color: #FFF;
	opacity: 1;
}
dialog .archive-toggle.photo-mode .slider-knob {
	left: 0;
}
dialog .archive-toggle.document-mode .slider-knob {
	left: 50%;
}
dialog .search-row {
	margin-top: 30rem;
}
dialog input {
	max-width: 100% !important;
}
dialog button {
	height: 64rem;
	margin: 0;
}


/*---------------*/
/*--- M A I N ---*/
/*---------------*/

main {
	max-width: 1280rem;
	margin: 0 auto;
	padding: 0 60rem;
}
main section,
main article {
	margin:0 auto 60rem auto;
}
main section:first-of-type,
main article:first-of-type {
	margin-top: 60rem;
}
main h3 span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40rem;
	height:40rem;
	margin: -0.15em 0.5em 0 0;
	font-size: 0.8em;
	color: #FFF;
	background-color: #EC2227;
	text-align: center;
	border-radius: 100%;
	line-height:1;
}
main a[data-lightbox]:has(img) {
	display: block;
	position:relative;
	margin-bottom:30rem;
	border-radius: 10rem;
	border:1rem solid #d5c4a1;
	overflow:hidden;
	line-height:0;
}
main a[data-lightbox] img {
	margin:0;
}
main a span {
	position: absolute;
	top: 2.5vmin;
	left: 50%;
}
main a span > span {
	position: relative;
	left: -50%;
	padding: 0.25em 1em;
	font-size: 2.2vmin;
	line-height: 1em;
	color: #FFF;
	font-weight: bold;
	text-align: center;
	background-color: #EC2227;
	border-radius: 1em;
	white-space: nowrap;
}
main p {
	margin-bottom:15rem;
	line-height:1.4;
}
main img {
	width:100%;
	margin-bottom:15rem;
}
main strong {
	margin-bottom:15rem;
}
main table{
	margin-bottom:30rem;
}
main ul,
main ol {
	margin-bottom: 30rem;
	padding-left: 20rem;
}
main li {
	margin-bottom:10rem;
	font-size:18rem;
}
main :last-child {
	margin-bottom:0;
}
main .two-column {
	display:flex;
	gap:30rem;
}
main .two-column div {
	flex:1;
}
main .two-column iframe {
	flex:1;
	max-width:50%;
	width:100%;
	height:300rem;
}
main #cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(330rem, 1fr));
	gap: 20rem;
	max-width: 700rem;
	margin: 30rem auto;
}
main #cards.-four-wide {
    max-width: 1000rem;
	grid-template-columns: repeat(auto-fit, minmax(220rem, 1fr));
}
main #cards .card {
	text-align: center;
	border-radius: 10rem;
	border: 1rem solid #ddd;
	text-decoration: none;
	background-color: #eee8d5;
	overflow: hidden;
	box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

main #cards .card:hover {
	transform: translateY(-5rem);
}

main #cards .card img {
	width: 100%;
	height: 180rem;
	margin:0;
	object-fit: cover;
}

main #cards .card h3 {
	margin: 0;
	padding: 15rem;
	font-size:20rem;
	color: #7a5c28;
	line-height: 1.2;
}

/*main{*/
/*    max-width:1280rem;*/
/*    margin:0 auto;*/
/*    padding:0 5%;*/
/*    overflow: hidden;*/
/*}*/
/*main h1{*/
/*    padding-top:2em;*/
/*    font-size:1.8em;*/
/*    font-weight:700;*/
/*    color:#3C3322;*/
/*    line-height: 1.2em;*/
/*}*/
/*main h1 span{*/
/*    display:block;*/
/*    float:left;*/
/*    width:1.6em;*/
/*    margin:-0.15em 0.5em 0 0;*/
/*    font-size:0.8em;*/
/*    line-height:1.6em;*/
/*    color:#FFF;*/
/*    background-color:#EC2227;*/
/*    text-align: center;*/
/*    border-radius: 100%;*/
/*}*/
/*main h2{*/
/*    padding-top:1em;*/
/*    font-size:1.35em;*/
/*    font-weight:700;*/
/*    color:#3C3322;*/
/*    line-height: 1.15em;*/
/*}*/
/*main h3{*/
/*}*/
/*main p{*/
/*    max-width:850rem;*/
/*    margin-top:1em;*/
/*    line-height: 1.5em;*/
/*    color:#3C3322;*/
/*}*/
/*main p em{*/
/*    font-size:0.8em;*/
/*}*/
/*main ul{*/
/*    margin-top:0.5em;*/
/*    padding-left:1em;*/
/*    color:#EC2227;*/
/*    overflow: auto;*/
/*}*/
/*.acknowledgements ul{*/
/*    color:#3C3322;*/
/*}*/



#archive ul li{
    line-height: 1.5em;
}
main ul.toc {
	display:flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap:15rem 60rem;
	color: #EC2227;
}
#archive a{
    color:#3C3322;
    transition:0.5s opacity;
}
#archive p a:hover,
#archive ul li a:hover{
    opacity: 0.75;
}
#archive a.full_width,
#archive a.half_width{
    position: relative;
    display:block;
    margin-top:1em;
}
#archive a.half_width{
    float:left;
    width:calc(50% - 0.5em);
}
#archive a.half_width:nth-child(even){
    margin-right:1em;
}
#archive a.full_width img,
#archive a.half_width img{
    display:block;
    width:100%;
	margin:0;
    transition:0.25s filter, 0.25s opacity;
}
#archive a.file_width img{
    display:block;
    width:28%;
	margin:0 auto;
    padding:10%;
}
#archive a:hover img{
    opacity: 0.75;
}
#archive a span{
    position:absolute;
    top:2.5vmin;
    left:50%;
}
#archive a span > span{
    position: relative;
    left: -50%;
    padding:0.25em 1em;
    font-size: 2.2vmin;
    line-height: 1em;
    color: #FFF;
    font-weight: bold;
    text-align: center;
    background-color: #EC2227;
    border-radius: 1em;
    white-space:nowrap;
}
#archive a.button{
    display:inline-block;
    padding:0.5em 1em;
    font-size:0.8em;
    color:#D7CDBA;
    text-decoration: none;
    background-color:#3C3322;
}
main table tr th,
main table tr td{
	font-size:18rem;
    padding:1em 2em 0 0;
    line-height: 1.5em;
    vertical-align: top;
}
main table tr:first-child th,
main table tr:first-child td{
	/*padding-top:0;*/
}
main table tr td{
    padding-right:0;
}
main table tr th{
    font-weight:bold;
    text-align: left;
    white-space: nowrap;
    vertical-align: top;
}

/*-----------------------------*/
/*--- A D M I N   L O G I N ---*/
/*-----------------------------*/

#login {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap:20rem;
	padding-top:0;
	overflow:hidden;
}
#login .error {
	color:#fe6869;
}
#login a {
	color:#FFF;
	text-decoration: underline;
	cursor: pointer;
}
#login h2 {
	max-width:100%;
	width:30vw;
	font-size:40rem;
	font-weight:normal;
	text-align:left;
}
#login input {
	max-width:100%;
	width:100%;
	border:none;
	border-radius:5rem;
}
#login button {
	margin:0;
}

#login ul {
	padding:20rem;
	list-style: none;
	border:1rem solid #DDDDDD;
	background-color: #eee8d5;
	box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.1);
	border-radius: 8rem;
}
#login > ul > li {
    display: flex;
	width:100%;
    padding: 10rem;
    align-items: center;
    justify-content: flex-start;
    gap: 20rem;
}

/*dialog {*/
/*	padding: 2rem;*/
/*	border: none;*/
/*	border-radius: 10px;*/
/*	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);*/
/*	max-width: 400px;*/
/*	font-family: sans-serif;*/
/*}*/

/*h2 {*/
/*	font-size: 1.2rem;*/
/*	margin-bottom: 1rem;*/
/*}*/


/*-----------------------*/
/*--- A R C H I V E S ---*/
/*-----------------------*/

#archive form {
	display:flex;
	flex-wrap:wrap;
	align-items: center;
	column-gap:10rem;
	row-gap:20rem;
	padding-top:2em;
}
#archive form:last-of-type{
	display:none;
	margin:0 auto;
	padding-bottom:0;
}
form input,
form select,
form textarea {
	font-family: Georgia, serif;
	width:100%;
	max-width:300rem;
	height:64rem;
	margin:0;
	padding:15rem;
	color:#3C3322;
	font-size:20rem;
	border:1rem solid #d5c4a1;
	background-color:#FFF;
	border-radius:5rem;
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
}
form input:disabled {
	background-color:#EEE;
}
form > input:first-of-type {
	flex:1 auto;
	max-width:100%;
	height:84rem;
	font-size:28rem;
}
form select {
	line-height:1.1em;
	cursor: pointer;
}
form textarea {
	height:300rem;
}
form label {
	margin-right:5rem;
	font-size:20rem;
}
form > div {
	flex:1;
	display:flex;
	align-items: center;
	column-gap:10rem;
}
form > div > label {
	margin-left:auto;
}
form > div > div {
	flex:0 150rem;
	display: flex;
	justify-content: center;
	column-gap:5rem;
	width:150rem;
	padding-top:0.1em;
	text-align:center;
}
form .select_wrapper {
	flex:1 300rem;
	position: relative;
	max-width:100%;
	height:64rem;
	margin:0 0 0 auto;
	padding:0;
	border: 1rem solid #d5c4a1;
	background-image:url(/images/down_arrow.svg), linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
	background-position:center right 15rem, center right;
	background-size:20rem auto, 50rem auto;
	background-repeat:no-repeat;
	background-color:#FFF;
	border-radius:8rem;
	line-height:1.1em;
	cursor: pointer;
}
form select:disabled,
form select[disabled] {
    color:#CCC;
}
form .select_wrapper select {
	max-width:100%;
	height:100%;
	margin:0;
	padding:22rem 15rem 6rem 15rem;
	border:none;
	background:transparent;
	z-index:2;
	-webkit-appearance:none;
	-moz-appearance:none;
	appearance:none;
}
form .select_wrapper label {
	position:absolute;
	top:15rem;
	left:15rem;
	font-size: 10rem;
	color: #777;
	font-weight:700;
	text-transform: uppercase;
	z-index:1;
}
#search > form > div {
	justify-content: center;
	height:64rem;
}

#search form div button {
	min-height:100%;
	margin-bottom:0;
	color:#3C3322;
	border:1rem solid #d5c4a1;
	background-color:#FFF;
}
#search form div button:hover {
	background-color:#e8dbc7;
}
#search form button:disabled,
#search form button[disabled]{
	color:#CCC;
	background-color:#FFF;
	pointer-events: none;
}
main > #archive > * {
	box-sizing: border-box;
}
main > #archive {
	min-height:700rem;
}
main > #title {
	display:flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	column-gap:20rem;
	min-height:78rem;
}
main > #title button {
	display:none;
	margin-bottom:15rem;
}
main > #title > h2,
main > #title > p {
	padding-top:0;
	margin-top:0;
	margin-right:auto;
}
main > #archive > #loading {
	display:flex;
	align-items: flex-start;
}
main > #archive > #search {
	display:none;
}
main > #archive > #search > ul {
	display:flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 20rem;
	max-width:1280rem;
	margin-top:20rem;
	padding:0;
	list-style:none;
}
main > #archive > #search > h2.no_results {
	margin:0 auto;
	padding:100rem 0;
	font-size:46rem;
	text-align: center;
	overflow:visible;
}

main > #archive > #search > ul li {
	flex: 1 0 calc(33% - 26rem);
    max-width: calc(33% - 10rem);
    height: 300rem;
}
main > #archive > #search > ul.documents li {
	flex: 1 0 calc(50% - 26rem);
    max-width: calc(50% - 10rem);
    min-height: 150rem;
    height: auto;
}
main > #archive > #search > ul li button {
	position:relative;
	display:flex;
	flex-direction: column;
	justify-content: flex-end;
	width:100%;
	height:100%;
	padding:0;
	text-decoration: none;
	border:1rem solid #d5c4a1;
	background-color:#7a5c28;
	text-transform: none;
	overflow:hidden;
	opacity:1;
	cursor:pointer;
}
main > #archive > #search > ul.documents li button {
	align-items: flex-end;
	justify-content: center;
}
main > #archive > #search > ul li button .skeleton {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
    background-image: linear-gradient(90deg, rgba(0,0,0,0), rgba(255,236,184,0.1), rgba(255,236,184,0.2), rgba(0,0,0,0));	
	transform: translateX(-100%);
	animation: skeleton .5s infinite;
}

@keyframes skeleton {
	100% {
		transform: translateX(100%);
	}
}
main > #archive > #search > ul li button div:first-of-type:not(.skeleton) {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:center center / cover no-repeat;
	transform: scale(1.5);
    transition:all .4s ease-in-out;
}
main > #archive > #search > ul.documents li button div:first-of-type:not(.skeleton) {
	background:20rem 50% / 14% no-repeat;
	transform: scale(1);
	transform-origin:left center;
	transition: background-image 0.5s;
}
main > #archive > #search > ul li button:hover div:first-of-type:not(.skeleton) {
	transform: scale(1.6);
	opacity:0.75;	
}
main > #archive > #search > ul.documents li button:hover div:first-of-type:not(.skeleton) {
	background-image: url("/images/file_download.svg") !important;
	transform: scale(1);
}
main > #archive > #search > ul li button div:not(:first-of-type) {
	width:100%;
	padding:20rem 10rem;
	color:#FFF;
	/*text-shadow: 2rem 2rem 2rem #000;*/
	background-color:rgba(60,51,34,0.75);
	backdrop-filter: blur(2rem);
	z-index:1;
}
main > #archive > #search > ul.documents li button div:not(:first-of-type) {
	background-color:#7a5c28;
}
main > #archive > #search > ul.documents li button div:not(:first-of-type) {
	display:flex;
	flex-direction: column;
	justify-content: center;
	flex-wrap:wrap;
	gap:0;
	width:82%;
	height:100%;
	padding:20rem;
}
main > #archive > #search > ul li button div h2 {
	margin:0;
	padding:0.2em 0 0 0;
	font-size:18rem;
	color:#FFF;
	text-align:left;
	line-height:1.4;
}
main > #archive > #search > ul li button div h3 {
	max-height:calc(100% - 40rem);
	margin-top:10rem;
	font-size:15rem;
	font-weight:normal;
	text-align:left;
	line-height:1.4;
	overflow: hidden;
}

main > #archive > #record {
	display:flex;
	flex-direction: row;
	align-items:flex-start;
	flex-wrap: nowrap;
	column-gap: 50rem;
	max-width:100%;
	padding-top:40rem;
}
main > #archive > #record > div { 
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
main > #archive > #record > div, 
main > #archive > #record > a {
	flex:1 50%;
	max-width:50%;
	margin:0;
}
main > #archive > #record > div > div > input[type=file] {
	font-size:20rem;
	border-top:none;
}
main > #archive > #record > div > a.no_img:hover > img{
	opacity: 1 !important;
}
main > #archive > #record > div > img { 
	height:auto;
	border:8rem solid #d5c4a1;
}
main > #archive > #record > div > h2 { 
	position:relative;
	font-size:46rem;
	padding-top:0;
}
main > #archive > #record > div:first-of-type > a { 
	width:100%;
	margin:0;
	border:4rem solid #d5c4a1;
	border-radius:8rem 8rem 0 0;
}
main > #archive > #record > div:first-of-type > a > span { 
	display:inline;
	top:auto;
	right:6rem;
	bottom:6rem;
	left:auto;
	padding:10rem 15rem;
	color:#FFF;
	text-shadow: 2rem 2rem 2rem #000;
    background-color: rgba(60,51,34,0.75);
    backdrop-filter: blur(2rem);
}
main > #archive > #record > div:last-of-type > a { 
	margin-top:60rem;
	font-size:16rem;
	font-weight:bold;
	line-height:1.4;
	text-decoration: underline;
	cursor:pointer;
}
main > #archive > #record > div #e_img {
	display:inline-block !important;
	height:64rem;
	position:relative;
	margin:0;
	border-top:none;
	border-radius: 0 0 8rem 8rem;
	cursor:pointer;
}
main > #archive > #record > div input,
main > #archive > #record > div textarea { 
	position: relative;
	display:block;
	max-width:100%;
	margin-top:10rem;
    font-size: 20rem;
	color: #3C3322;
}
main > #archive > #record > div:last-of-type > input:first-of-type { 
	height:auto;
	margin:0;
	font-size:46rem;
	color: #3C3322;
}
main > #archive > #record > div input.flag,
main > #archive > #record > div textarea.flag { 
	border:4rem solid #ae0000;
}

main > #archive > #record > div > div > input, 
main > #archive > #record > div > div > div > select {
	font-size:14rem;
	font-weight: bold;
}
main > #archive > #record > div > div > div { 
	flex:1 100%;
	margin-top:10rem;
}
main > #archive > #record > div > div { 
	position:relative;
	display: inline-flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	column-gap:10rem;
	max-width:100%;
	width:auto;
}
main > #archive > #record > div > div > p { 
	padding:5rem 10rem;
	font-size:14rem;
	font-weight:bold;
	border:2rem solid #412312;
	cursor:default;
}
main > #archive > #record > div > #mod_categories { 
	display: none;
    width: calc(100% - 48rem);
	margin-top:10rem;
    padding: 20rem;
	background-color: #CCC;
	border: 4rem solid #d5c4a1;
	z-index:97;
}
main > #archive > #record > div > #mod_categories > div { 
	margin-top:0;
}
main > #archive > #record > div > #mod_categories > div > div { 
	position:relative;
	display:block;
}
main > #archive > #record > div > #mod_categories > div > div > span { 
	content:"";
	position:absolute;
	top:50%;
	right: 20rem;
	width: 24rem;
	height: 24rem;
	background-image:url("../images/delete.svg");
	background-position: center center;
	background-size: 24rem 24rem;
	background-repeat: no-repeat;
	transform: translateY(-50%);
	cursor:pointer;
	z-index:100;
}

main > #archive > #record > div > #mod_categories > div > button { 
	display:inline-block;
	max-width:100%;
	width:auto;
	margin-top:20rem;
}


/*---------------------*/
/*--- C O N T A C T ---*/
/*---------------------*/

#contact ul {
	margin-top:30rem;
	padding:0;
	list-style: none;
}
#contact input,
#contact textarea {
	max-width:50%;
}
#contact textarea {
	resize: vertical;
}
#contact .msg {
	margin:30rem 0;
	padding:15rem 30rem;
	font-size:20rem;
	color:#FFFFFF;
	background-color:#7a5c28;
}


/*-----------------------------------*/
/*--- E D U C A T I O N   P A C K ---*/
/*-----------------------------------*/

.download-meta {
    margin-left:10rem;
    font-size: 14rem;
    color: #5c4420;
    opacity: 0.85;
}
.teacher-note {
    margin-left:10rem;
    color: #4b3621;
    font-style: italic;

}
#teachers {
    position: relative;
    padding: 50rem 30rem 20rem 30rem;
    border: 1rem solid #d5c4a1;
    border-radius: 10rem;
}
#teachers > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:5rem;
    position: absolute;
    top: -20rem;
    padding: 10rem;
    border: 1rem solid #d5c4a1;
    color: #7a5c28;
    background-color: #fdf6e3;
    border-radius: 10rem;
}


/*-------------------*/
/*--- F O O T E R ---*/
/*-------------------*/


footer ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15rem;
	margin-top: 60rem;
	padding-top: 30rem;
	font-size: 18rem;
	text-align: center;
	border-top: 1rem solid #ccc;
	list-style: none;
}
footer li:first-of-type {
	flex:1 100%;
}
footer a {
	color: #7a5c28;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}
/*footer{*/
/*    margin-top:40rem;*/
/*    background-color:#d5c4a1;*/
/*    box-shadow: 0 5rem 15rem rgba(0, 0, 0, 0.25);*/
/*}*/
/*footer div{*/
/*    max-width:1280rem;*/
/*    margin:0 auto;*/
/*    padding:20rem 40rem;*/
/*}*/
/*footer div p, footer div a {*/
/*    font-size:16rem;*/
/*    line-height: 1.5em;*/
/*    color:#3C3322;*/
/*    text-align: center;*/
/*}*/
/*footer div a {*/
/*	display: block;*/
/*	font-size:20rem;*/
/*	margin-bottom: 0.5em;*/
/*}*/


/*---------------------------*/
/*--- R E S P O N S I V E ---*/
/*---------------------------*/

@media (max-width: 1023px) {
	html { font-size: calc((1rem / 16) * 0.9); }
	.desktop-only { display: none !important; }
}

@media (min-width: 1024px) {
	html { font-size: calc((1rem / 16) * 0.8); }
	.mobile-only { display: none !important; }
}

@media (min-width: 1200px) {
	html { font-size: calc((1rem / 16) * 1); }
}

@media (min-width: 1440px) {
	html { font-size: calc((1rem / 16) * 1.1); }
}

@media (min-width: 1600px) {
	html { font-size: calc((1rem / 16) * 1.2); }
}

@media (min-width: 1920px) {
	html { font-size: calc((1rem / 16) * 1.3); }
}

@media (max-width: 1024px){
    nav{
        display:block;
    }
    nav a{
        font-size:18rem;
    }
	#admin {
		width:100%;
	}
	#admin a{
		padding: 0;
	}
	main {
		padding:0;
	}
	main #cards.-four-wide {
		/*grid-template-columns: repeat(auto-fit, minmax(180rem, 1fr));*/
	}
}
@media (max-width: 768px){
	.mobile { display:block; }
	dialog {
		max-width:90vw;
	}
	dialog .close {
		top: 15rem;
		right: 15rem;
		width: 15rem;
		height: 15rem;
	}
	dialog form {
		padding:30rem;
	}
	dialog .search-row button {
		width:100%;
	}
	header h1{
		text-align: left;
	}
	nav:not(#admin) a {
		font-size:18rem;
	}
	nav a,
	nav#admin > div {
        font-size:16rem;
    }
	nav ul {
		gap:10rem;
	}
	#login ul {
		max-width:80vw;
		width:100%;
	}
	#login > ul > li {
		justify-content: space-between;
	}
	#login input {
		width:100%;
	}
	#search > form > div {
		height:auto;
	}
	#search form div button {
		padding:15rem;
		font-size:16rem;
	}
	form > div {
		flex-wrap: wrap;
		row-gap:10rem;
		height:auto;
	}
	form > div > div {
		flex-wrap: wrap;
		max-width:calc(100% - 228rem);
		font-size:16rem;
		line-height:1.4;
	}
	form > div > div > div {
		width:100%;
		line-height:1.3;
	}
	form .select_wrapper {
		flex:1 100%;
	}
	form .select_wrapper:first-of-type {
		order:-1;
	}
	form .select_wrapper:last-of-type {
		order:-2;
	}
	main .two-column {
		flex-wrap: wrap;
	}
	main .two-column div {
		flex:1 100% !important;
	}
	main .two-column iframe {
		max-width:100%;
		width:100%;
		height:auto;
		aspect-ratio: 1/1;
	}
	main a span > span {
		font-size:3.5vmin;
	}
	main ul li a {
		line-height:1.4;
	}
	main ul.toc {
		row-gap:5rem
	}
	main ul.toc li {
		flex:1 100%;
		margin-bottom:0;
	}
	main > #archive > #search > ul, 
	main > #archive > #loading > ul {
		flex:1 100%;
	}
	main > #archive > #search > ul > li, 
	main > #archive > #loading > ul > li {
		flex:1 100%;
		max-width:100%;
	}
	main > #title {
		flex-wrap:wrap;
		justify-content: flex-start;
		row-gap:20rem;
		min-height:100%;
	}
	main > #title h1 {
		flex:1 100%;
		font-size:1.5em;
		padding-bottom:20rem;
	}
	main > #title button.back {
		flex:0 auto;
		margin-top:0;
		font-size:20rem;
	}
	main > #archive > #record {
		padding-top:50rem;
		flex-wrap:wrap;
	}
	main > #archive > #record > a, 
	main > #archive > #record > div {
		flex:1 100%;
		max-width:100%;
		gap:0;
	}
	main > #archive > #record > div > div {
		flex-wrap:wrap;
	}
	main > #archive > #record > div > h2 {
		padding-top:30rem;
	}
	main > #archive > #search > ul.documents li {
		flex: 1 100%;
		max-width: 100%;
	}
	main > #archive > #search > ul.documents li button {
		align-items: flex-start;
	}
	main > #archive > #search > ul.documents li button div h2,
	main > #archive > #search > ul.documents li button div h3 {
		padding-left:60rem;
	}
	main > #archive > #search > ul.documents li button div:not(:first-of-type) {
		/*justify-content: flex-start;*/
		width:100%;
	}
	main > #archive > #search > ul.documents li button div:first-of-type:not(.skeleton) {
		background: 20rem 50% / 40rem no-repeat;
		z-index:2;
	}
	main table tr th,
	main table tr td{
		display: block;
	}
	main table tr td {
		padding-top:0;
	}
	#contact input,
	#contact textarea {
		max-width:100%;
	}
}