/**
 * CSS for global FAQs
 *
 * This file is in version control:
 * https://github.com/uofa/global-environment
 *
 * Created 12 Oct 2012
 * Updated 29 Jan 2021
 *
 * Last update: ensure faq heading link contrast is sufficient.
 *
 * @author Allan A Beattie
 */


/* FAQ tables
------------------------------------------------------------ */

.faq_table {
	width: 100%;
	margin: 0 0 3em;
	border-collapse: separate;
	border-spacing: 0.5em;
}

.faq_table:last-child {
	margin: 0;
}

.faq_table th {
	padding: 0;
	text-align: left;
	font-weight: 700;
}

.faq_table td {
	padding: 1em;
}

.clickable_faq th,
.clickable_faq_active th {
	position: relative;
	border: 1px solid #e0e0e0;
	background: #f5f5f5;
	color: #0370aa;
	text-align: left;
	font-weight: normal;
	cursor: pointer;
	transition: border-color ease 0.3s,  box-shadow ease 0.2s ;
}

.clickable_faq_active th {
	color: #444;
}

.clickable_faq th:hover,
.clickable_faq_active th,
.clickable_faq_active th:hover {
	box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
}

.clickable_faq th strong,
.clickable_faq_active th strong {
	font-weight: inherit;
}

.clickable_faq th::after {
	position: absolute;
	right: 1em;
	top: 1em;
	font-family: 'FontAwesome';
	content: '\f078';
}

.clickable_faq_active th::after {
	position: absolute;
	right: 1em;
	top: 1em;
	font-family: 'FontAwesome';
	font-weight: normal;
	content: '\f077';
}

tr.active_faq {
	padding: 1em;
	background: #fdfdec;
	opacity: 1;
	max-height: 1000px;
	height: 0;
	-webkit-animation: faq_anim 0.1s ease-in-out;
	-moz-animation: faq_anim 0.1s ease-in-out;
	-o-animation: faq_anim 0.1s ease-in-out;
	animation: faq_anim 0.1s ease-in-out;
	overflow: hidden;
}

@keyframes faq_anim {
	0% {
		display: none;
		visibility: hidden;
		max-height: 0;
	}
	
	1% {
		display: block;
		visibility: hidden;
		opacity: 0;
		height: 0;
		max-height: 0;
	}
	
	100% {
		opacity: 1;
		max-height: 1000px;
		visibility: visible;
	}
}

@-webkit-keyframes faq_anim {
	0% {
		display: none;
		visibility: hidden;
		max-height: 0;
	}
	
	1% {
		display: block;
		opacity: 0;
		height: 0;
		max-height: 0;
	}
	
	100% {
		opacity: 1;
		max-height: 1000px;
		visibility: visible;
	}
}

@-moz-keyframes faq_anim {
	0% {
		display: none;
		visibility: hidden;
		max-height: 0;
	}
	
	1% {
		display: block;
		opacity: 0;
		height: 0;
		max-height: 0;
	}
	
	100% {
		opacity: 1;
		max-height: 1000px;
		visibility: visible;
	}
}

@-o-keyframes faq_anim {
	0% {
		display: none;
		visibility: hidden;
		max-height: 0;
	}
	
	1% {
		display: block;
		opacity: 0;
		height: 0;
		max-height: 0;
	}
	
	100% {
		opacity: 1;
		max-height: 1000px;
		visibility: visible;
	}
}


/* FAQ table content
------------------------------------------------------------ */

.faq_table p {
	margin: 0 0 1em;
	line-height: 1.5em;
}

.faq_table p:last-child {
	margin-bottom: 0;
}

.faq_table th h2,
.faq_table th h3,
.faq_table th h4,
.faq_table th h5,
.faq_table th h6 {
	margin: 0;
	padding: 1em 3em 1em 1em;
	font-family: inherit;
	font-size: 100%;
	font-weight: inherit;
}

.faq_table th p {
	padding: 0;
	line-height: normal;
}

.hidden {
	display: none;
}