/*
Welcome to custom CSS for the WSU Spine Theme!

You may delete these comments and get started with your custom stylesheet.
Before doing so, please review the WSU web standards:

https://brand.wsu.edu/media/web/web-standards/

As a general rule of thumb, if your styles target aspects of the spine
(#spine), that's against standard, whereas if you're styling elsewhere on
the page, it's all good.
*/
.cpb-list {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.cpb-list > li {
	border-top: 1px solid #ddd;
	padding: .5rem 0 1rem;
}

.cpb-list .cpb-title {
	color: #981e32;
}

/* Fix awkward gaps in nested lists */
li > ul, li > ol {
	padding-bottom: 0;
}

.default .wsuwp-person-container {
	padding-bottom: 33%;
}

/* Match phone to other info in "People" section from CAHNRS WSUWP Ignite */
.wsuwp-person-container .wsuwp-person-phone {
	font-size: 14px;
}

/* Start armack style edits */
/* Hide empty paragraphs */
p:empty {
	display: none;
}

/* Remove space for non-link anchor tags */
:not(#spine) a[name]:not([href]) {
	display: block;
	visibility: hidden;
	height: 0;
	width: 0;
	padding: 0;
	margin: 0;
}

/* Stop individual email addresses from displaying within wrapper */
.group-email .profile-email, .group-email .wsuwp-person-email {
	display: none;
}

/* Remove box shadow from contact cards since it accentuates the unevenness of the card heights */
.profile-card {
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
	box-shadow: none !important;
}

/* Flex profile cards for better responsive display */
.wsuwp-people-wrapper {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: flex-start;
	align-content: flex-start;
	transition: 500ms justify-content linear;
}

.wsuwp-people-wrapper .wsuwp-person-container {
	flex: 0 1 auto;
	min-width: 10em;
}

.wsuwp-person-photo img {
	max-width: 70%;
	min-width: 150px;
}

@media only screen and (max-width: 400px) {
	.wsuwp-people-wrapper {
		justify-content: center;
	}
	
	.wsuwp-people-wrapper .wsuwp-person-container {
		flex: 1 1 auto;
		width: 100%;
	}
	
	.wsuwp-person-photo img {
		margin: auto;
	}
}

/* Hide search results when empty */
.cahnrswp-form-finder > nav > a {
	padding: .5em 1rem 0;
}

.cahnrswp-form-finder > fieldset {
	padding: 1rem 0;
}

.cahnrswp-form-finder .cahnrswp-field {
	margin: 0 1rem;
}

.cahnrswp-form-finder .cahnrswp-form-finder-results {
	margin: 0 1rem;
	margin-right: calc(1rem + 1px);
	visibility: visible;
	height: auto;
	-webkit-transition: all 375ms cubic-bezier(0.77,0,0.175,1);
}

.cahnrswp-form-finder-results:empty {
	visibility: hidden;
	height: 0;
	-webkit-transition: all 375ms cubic-bezier(0.77,0,0.175,1);
}

.cahnrswp-form-finder .cahnrswp-form-finder-results a {
	margin-left: 1px;
}

.cahnrswp-form-finder .cahnrswp-form-finder-results a:last-of-type {
	border-bottom: none;
}

/* Fix display of ordered lists in How-To */
.how-do-i-accordion-item ol {
	padding-left: 2em;
}

.how-do-i-accordion-item ol li::before {
	display: inline-block;
	width: 1em;
	margin-left: -2em;
	margin-right: .875em;
}

.how-do-i-accordion-content ul li:not(:first-child) {
	margin-top: 1rem;
}

.cpb-faq {
	margin-bottom: 3px;
	border: 1px solid #ddd;
	width: 100%;
	box-sizing: border-box;
	background-color: #fff;
}

.cpb-faq:hover, 
.cpb-faq:focus, 
.cpb-faq:active {
	background-color: transparent;
	text-decoration: none;
	border-color: #981e32;
}

.cpb-faq dt, 
.cpb-faq dd {
	padding: .75rem;
	border: none;
}

.cpb-faq dt {
	padding-right: calc(.75rem + 40px);
}

/* Preserve semantic heading level while keeping styles consistent between FAQs. */
.cpb-faq dt > h2,
.cpb-faq dt > h3, 
.cpb-faq dt > h4, 
.cpb-faq dt > h5, 
.cpb-faq dt > h6 {
	margin-top: inherit;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

/* Deal with awkward gaps when a list is the last item in the faq */
.cpb-faq dd > ul:last-of-type, 
.cpb-faq dd > ol:last-of-type {
	padding-bottom: 0;
}

.cpb-faq dd > ul:last-of-type li:last-child, 
.cpb-faq dd > ol:last-of-type li:last-child {
	padding-bottom: 0;
}

/* Add pseudo-message for empty forms categories */
.fs-library-section ul:empty:after {
	content: "There are no forms in this category.";
	color: #b7babe;
	font-style: italic;
}

/* Fix UL bullets */
ul > li {
	display: list-item;
}

/************************/
/* Flex quick links box */
/************************/
div.lm-quick-links {
	display: flex;
	flex-flow: row wrap;
}

.lm-quick-links span {
	color: #464E54;
	display: block;
	width: 100%;
}

.lm-quick-links a {
	width: auto;
}

.lm-quick-links a:not(:last-of-type):after, .lm-quick-links a:hover:not(:last-of-type):after, .lm-quick-links a:active:not(:last-of-type):after {
	content: "|";
	margin: 0 .5em;
	display: inline-block;
	text-decoration: none;
	pointer-events: none;
	cursor: default !important;
	color: #981e32;
}

@media screen and (max-width: 700px) {
	div.lm-quick-links {
		flex-flow: column wrap;
		background-color: transparent;
		padding: 0;
	}
	
	.lm-quick-links span {
		text-align: left;
		margin-bottom: 1em;
	}
	
	.lm-quick-links a {
		box-sizing: border-box;
		font-size: 1.5em;
		width: 100%;
		text-align: center;
		color: #981e32;
		background-color: #fff;
		padding: .75rem;
		margin-bottom: 3px;
		border: 1px solid #ddd;
	}
	
	.lm-quick-links a:hover, .lm-quick-links a:focus {
		color: #981e32;
		background-color: transparent;
		text-decoration: none;
		border-color: #981e32;
	}
	
	.lm-quick-links a:active {
		background-color: #eee;
		border-color: transparent;
	}
	
	.lm-quick-links a:not(:last-of-type):after, .lm-quick-links a:hover:not(:last-of-type):after, .lm-quick-links a:focus:not(:last-of-type):after, .lm-quick-links a:active:not(:last-of-type):after {
		content: none;
		margin: 0;
	}
}

/*******************************************************************/
/*  Styles for nested "Funding Sources" form in Personnel Request  */
/*******************************************************************/
.funding-sources table {
	background-color: transparent !important;
	border: 0 solid transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	border-collapse: collapse;
}

.funding-sources table td {
	padding: 0;
}

.funding-sources table table tbody {
	display: grid;
	grid-template-rows: auto;
	grid-template-columns: repeat(3,1/3);
	border: 2px solid black;
/*! padding: .25em; */
}

.funding-sources table table tbody tr {
	background-color: transparent !important;
	border: 0;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
}

.funding-sources table table tbody tr:nth-child(1) {
	grid-row: 2 !important;
	grid-column: 1 !important;
}

.funding-sources table table tbody tr:nth-child(2) {
	grid-row: 2 !important;
	grid-column: 2 !important;
}

.funding-sources table table tbody tr:nth-child(3) {
	grid-row: 3 !important;
	grid-column: 1 !important;
	border-bottom: 0;
}

.funding-sources table table tbody tr:nth-child(4) {
	grid-row: 3 !important;
	grid-column: 2 !important;
	border-bottom: 0;
}

.funding-sources table table tbody tr:nth-child(5), .funding-sources table table tr:nth-child(6) {
	display: none;
}

.funding-sources table table tbody tr:nth-child(7) {
	grid-row: 1 !important;
	grid-column: 1 !important;
}

.funding-sources table table tbody tr:nth-child(8) {
	grid-row: 1 !important;
	grid-column: 2 / span 2 !important;
	border-right: 0;
}

.funding-sources table table tbody tr:nth-child(9) {
	grid-row: 2 !important;
	grid-column: 3 !important;
	border-right: 0;
}

.funding-sources table table tbody tr:nth-child(10) {
	grid-row: 3 !important;
	grid-column: 3 !important;
	border-bottom: 0;
	border-right: 0;
}

.funding-sources table table tbody tr td[width] {
	display: none;
}

.funding-sources table table tbody tr td {
	padding: .25em .5em;
}

/*****************************************************/
/*  FTE Calculator helper in Personnel Request form  */
/*****************************************************/
.FTE-calculator {
	text-align: right;
}

.FTE-calculator * {
	display: inline-block;
}

.FTE-calculator div:after {
	margin-left: 1ch;
	font-weight: bold;
	content: "%";
}

.FTE-calculator input {
	text-align: right;
}

/* Events Styles */
.past {
	opacity: .5;
}

/***********/
/*  Forms  */
/***********/
.gform-body .small-print {
	font-size: .7em;
}

.gform-body .small-print p {
	padding-bottom: .6em;
}

.gform-body .small-print p strong {
	font-size: 1.2em;
	font-weight: 900;
}