/*
Welcome to Custom CSS!

To learn how this works, see https://wp.me/PEmnE-Bt
*/
.home .post-title {
	display: none;
}

.navigation a {
	color: white !important;
	font-size: 1.3em;
}

/*   H I G H   P R I O R I T Y   C S S  */

/* With checklist boxes replacing drop-downs, compress space */
.members-advanced-search-page #categorychecklist li,
.members-advanced-search-page-country #categorychecklist li {
	display: inline-block !important;
	font-size: 0.8em !important;
	margin-right: 0.7em !important;
	line-height: 150% !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
	Text-indent: -26px !important;  /* ensures second line of wrapping text in li is indented */
    Padding-left: 26px !important;  /* ensures second line of wrapping text in li is indented */
}


/*   C O N T A C T   F O R M   */

/* Remove inaccurate "Advanced Search..." page title */
.members-advanced-search-page-name h1.post-title {
	display: none !important;
	float: left !important;
}

/* Add "Send Email to" text before Name */
/* .members-advanced-search-page-name .given-name::before {
	content: "Send Email to " !important;
} */

/* Remove search fields completely */
.members-advanced-search-page-name #cn-multi-category-search {
	/* padding: 0 20px !important; */
	display: none !important;
}

/* Gets rid of unclear h3 "Email Entry" instructions and empty vertical space */
/* .members-advanced-search-page-name .additional-name,
.members-advanced-search-page-name .cn-biography,
.members-advanced-search-page-name .cn-image-style,
.members-advanced-search-page-name .org,
.members-advanced-search-page-name .address-block,
.members-advanced-search-page-name .phone-number-block,
.members-advanced-search-page-name .link-block, */
.members-advanced-search-page-name .cnct-first-name, 
.members-advanced-search-page-name .cnct-last-name,
/* .members-advanced-search-page-name .cn_category_label,
.members-advanced-search-page-name .cn-category-name,
.members-advanced-search-page-name .cn-last-updated, */
.members-advanced-search-page-name .cn-entry-content-block h3 {
/* .members-advanced-search-page-name .cn-entry-content-block-email_entry h3 { */
	display: none !important;
} 

/* In place near where "Email Entry" was, replace with "Send Email" */
.members-advanced-search-page-name .cn-entry-content-block-email_entry::before {
/* 	content: "Send Email" !important; */
	font-size: 34px !important;
	font-family: 'Merriweather', Georgia, serif !important;
    font-weight: 900 !important;
}

/* Add "Your " before "Name:" */
/* .members-advanced-search-page-name .cnct-name label::before {
	content: "Your " !important;
} */

.members-advanced-search-page-name .vcard h3 {
	font-size: 1.55em !important;
	line-height: 1.5 !important;
}

/* Add "Your " before "Email address:" */
/* .members-advanced-search-page-name .cnct-email-address label::before {
	content: "Your " !important;
} */

.members-advanced-search-page-name #cn-list label {
    cursor: pointer !important;
    margin: 1em 0 0.5em 0 !important;
    display: block !important;
}




/*   R E G I S T R A T I O N   F O R M   C L E A N - U P   */

/* Styling for text above five search fields associated with research categories */
/* Wordpress actually puts this tag in a figure element (wrapping the table) */
/* .members-advanced-search-page-submit #instructions-table {  
	display:block;
}
.members-advanced-search-page-submit #instructions-table table {
	border: #363636 solid 2px;
}
.members-advanced-search-page-submit #instructions-table td {
	padding:0.7em;
	line-height:150%;
} */

/* This table is inserted via code snippet not WP editor */
.members-advanced-search-page-submit #intro-registration-instructions {
	display: block;
}
.members-advanced-search-page-submit #intro-registration-instructions table {
	border: #363636 solid 2px;
}
.members-advanced-search-page-submit #intro-registration-instructions td {
	padding:0.7em;
	line-height:150%;
	border: #363636 solid 2px;
}
.members-advanced-search-page-submit #intro-registration-instructions tr td:nth-child(1) {
 /* min-width: 4em; */
 text-align: center;
}
.members-advanced-search-page-submit #intro-registration-instructions tr td:nth-child(2) {
 min-width: 8em;
 /* text-align: center; */
}
.members-advanced-search-page-submit #intro-registration-instructions tr td:nth-child(3) {
 /* min-width: 8em; */
 text-align: center;
}
.members-advanced-search-page-submit #intro-registration-instructions tr td:nth-child(4) {
 /* min-width: 8em;  */
 text-align: center;
}
/* Did not style last column (child5) so that it can automatically expand/compress horizontally */
.members-advanced-search-page-submit #intro-registration-instructions .table-head td {
	font-weight: bold;
	text-align: center !important;
}

.members-advanced-search-page-submit #intro-registration-instructions,
.members-advanced-search-page-submit #mid-registration-instructions {
	line-height: 1.5;
    color: black;
	text-align: left;
	margin-bottom: 1em;
}

.members-advanced-search-page-submit #mid-registration-instructions {
    margin-top: 1.5em;
}

.members-advanced-search-page-submit .cn-metabox {
	box-shadow: none !important;
	webkit-box-shadow: none !important;
}

/* On registration form, hide search form title which doesn't match registration form */
.members-advanced-search-page-submit #cn-multi-category-search,
.members-advanced-search-page-submit h1.post-title {
	display: none !important;
}
/* On registration form, add new form title and styling to match h1 */
.members-advanced-search-page-submit .post-header::after {
	content: "To Join CHOSTIS or Update Your Existing Directory Information" !important;
	font-family: 'Merriweather', Georgia, serif !important;
	font-size: 2.5em !important;
    font-weight: 900 !important;
    line-height: 1.25em !important;
    margin-bottom: 10px !important;
    padding-bottom: 16px !important;
}

/* On registration form, add note to only pick one Main Primary Source Language  */
/* #cn-metabox-category-id-35 h3::after {
	content: " (Select all that apply)" !important;
}  */

/* Style button for adding category contents */
#cn-form .cn-add.cn-button {
	background-color: grey !important;
    padding-top: 1em !important;
    padding-bottom: 1em !important;
    font-size: 1.1em !important;
	width: 12em !important;
	margin-left: 0.3em !important;
    float: left !important;
}

/* Submission button was green, but switch to blue */
#cn-form .cn-button.green {
/*     background-color: #00ADEE !important; */
	background-color: grey !important;
	padding-top: 1em !important;
    padding-bottom: 1em !important;
    font-size: 1.1em !important;
}

/* Remove bullets from each check box */
.members-advanced-search-page-submit #cn-form li {
	list-style-type: none !important;
	margin-bottom: 2px !important;
    line-height: 100% !important;
}
.members-advanced-search-page-submit #cn-form li input {
	margin-bottom: 0 !important;
}

/* For each category container, fit content and enable Vertical slider when needed */
.tabs-panel {
	max-height: fit-content !important;
	overflow-y: auto !important;
}

/* Increase the text size that user types */
#cn-form input[type=text] {
	font-size: 1.3em !important;
}

/* Increase text size of form labels */
#cn-form label {
    font-size: 1.2em !important;
}

.address-country .cn-enhanced-select {
	width: 100% !important;
    font-size: 1.3em !important;
    padding: 0.3em !important;
    margin: 0.3em 0 !important;
}

.link-target-follow-container, .link-assignment {
	display: none !important;
}

/* Button was showing too high */
#cn-form p.cn-remove-button {
    bottom: -2.8em !important;
}

.members-advanced-search-page-submit #cn-form .cn-metabox h3 {
	border-bottom: none !important;
	font-size: 1.2em !important;
	text-shadow: none !important;
}




/*   S E A R C H   D I R E C T O R Y   C L E A N - U P   */

/* Increase size of pagination bar at bottom of screen */
.members-advanced-search-page .cn-list-foot #cn-page-nav > .page-numbers,
.members-advanced-search-page-country .cn-list-foot #cn-page-nav > .page-numbers {
	display:inline-block !important;
	font-size: 1.25em !important;
	border: 2px solid !important;
    margin-right: 2px !important;
    margin-bottom: 1em !important;
	vertical-align: middle !important;
}
/* Remove border from elipsis (confusing since it looked like button) */
.members-advanced-search-page .cn-list-foot #cn-page-nav > span.page-numbers.dots,
.members-advanced-search-page-country .cn-list-foot #cn-page-nav > span.page-numbers.dots {
	border: none !important;
    background: none !important;
	color:gray !important;
}
/* Remove border from current page number (confusing since it looked like button) */
.members-advanced-search-page .cn-list-foot #cn-page-nav > span.page-numbers.current,
.members-advanced-search-page-country .cn-list-foot #cn-page-nav > span.page-numbers.current {
	border: none !important;
    background: none !important;
	font-size: 1.4em !important;
	color:gray !important;
}

/* Force long URLs to wrap (for small screens where they break through the RHS margin) */
.members-advanced-search-page .link-block a,
.members-advanced-search-page-country .link-block a {
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
	word-break: break-word !important;
}

/* Remove double columns on larger width */
.members-advanced-search-page #cn-multi-category-search .categorychecklist,
.members-advanced-search-page-country #cn-multi-category-search .categorychecklist {
	-webkit-columns: 1 !important;
    -moz-columns: 1 !important;
	columns: 1 !important;
}

/* Increase width of main column  */
.members-advanced-search-page .post-inner,
.members-advanced-search-page-country .post-inner,
.members-advanced-search-page-name .post-inner,
.members-advanced-search-page-submit .post-inner {
	width: 100% !important;
}
.members-advanced-search-page #categorychecklist li *,
.members-advanced-search-page-country #categorychecklist li * {
	font-size: 1.1em !important;
	font-weight: normal !important;
}
.members-advanced-search-page #categorychecklist,
.members-advanced-search-page-country #categorychecklist {
	margin-left: .5em !important;
	margin-bottom: 0.9em !important;
	line-height: 150% !important;
}
.members-advanced-search-page .cn-term-checklist-heading,
.members-advanced-search-page-country .cn-term-checklist-heading {
	margin-left: 0.5em !important;
	color: #5E5E5E !important;
	font-size: 20px !important;
	line-height: 150% !important;
}
.members-advanced-search-page .cn-term-checklist,
.members-advanced-search-page-country .cn-term-checklist {
	border: 2px solid #78a1d5 !important;
	border-radius: 6px;
}
.members-advanced-search-page .cn-term-checklist-options,
.members-advanced-search-page-country .cn-term-checklist-options {
	margin-top: 0.5em !important;
}


/* Styling for text above five search fields associated with research categories */
.members-advanced-search-page #research-categories-instructions,
.members-advanced-search-page-country #research-categories-instructions {
	line-height: 1.5;
    color: #5E5E5E;
	text-align: left;
}

/* Styling for text above Names and Keyword field */
.members-advanced-search-page #names-keyword-instructions,
.members-advanced-search-page-country #names-keyword-instructions {
	line-height: 1.5;
    color: #5E5E5E;
    padding-top: 1em;
	text-align: left;
}

#cn-multi-category-search input#cnmcs-search-input {
	padding-bottom: 4px !important;
}

/* The button to add new member must be activated for moderation workflow to function, but don't want it at start of search results */
#cn-list-action-submit {
	display:none !important;
}

/* Increase line spacing in address block */
.cn-entry .cn-right .address-block * {
	line-height: 1.4 !important;
}

/*  Add link below name to indicate "click to email"  */
.members-advanced-search-page-country #cn-list .family-name::after, 
.members-advanced-search-page #cn-list .family-name::after {
	content: "Click to send email" !important;
/* 	color: orange !important; */
	font-size: 16px !important;
	display: block !important;
	font-variant: none !important;
	font-weight: normal !important;
}

/* Fix Website label, separator ":", and link breaking across lines and left / right */
   /* Removes label and separator */
.members-advanced-search-page-country .cn-link.website span,
.members-advanced-search-page .cn-link.website span {	
	display:none !important;
}
/* Adjust URL and second line of URL to be aligned on left  */
/* .members-advanced-search-page-country .cn-link.website a,
.members-advanced-search-page .cn-link.website a {	
	float:left !important;
	text-align: left !important;
} */

/* Minimize vertical space for categories since they are stacked with li tag */
/* Convert li to be displayed by sub content or inline */
.members-advanced-search-page-country .cn-entry-content-block-list .cn-entry-content-block-list,
.members-advanced-search-page .cn-entry-content-block-list .cn-entry-content-block-list, 
.members-advanced-search-page-country .cn-entry-content-block-list h3,
.members-advanced-search-page .cn-entry-content-block-list h3 {
	margin: 0 !important;
}
.members-advanced-search-page-country .cn-entry-content-block-list h3,
.members-advanced-search-page .cn-entry-content-block-list h3 {
	font-family: Lato, sans-serif;
	font-size: 1em !important;
	font-weight: bold !important;
	display: contents !important;
}
.members-advanced-search-page-country .cn-entry-content-block-list h3::after,
.members-advanced-search-page .cn-entry-content-block-list h3::after {
	content: ": " !important;
}
.members-advanced-search-page-country .cn-entry-content-block-list, 
.members-advanced-search-page .cn-entry-content-block-list {
	margin: 0 !important;
}
.members-advanced-search-page-country .cn-meta .cn-category-name:not(:last-child)::after,
.members-advanced-search-page .cn-meta .cn-category-name:not(:last-child)::after {
	content: ", "
}
.members-advanced-search-page-country .cn-entry-content-block,
.members-advanced-search-page .cn-entry-content-block {
	margin: 0 0 .4em 0 !important;
}
.members-advanced-search-page-country .cn-categories,
.members-advanced-search-page .cn-categories {
	display: contents !important;
}
.members-advanced-search-page-country .cn-category-list,
.members-advanced-search-page .cn-category-list {
	display: contents !important;
}

.members-advanced-search-page-country .cn-category-list li,
.members-advanced-search-page .cn-category-list li {
    line-height: 150% !important;
    display: inline !important;
}
/* "Category:" label that shows categories entered in freeform with no parent */
.members-advanced-search-page-country .cn_category_label,
.members-advanced-search-page .cn_category_label {
/* 	display:none !important; */
	font-weight: bold !important;
}
/* .members-advanced-search-page-country .cn_category_label::before,
.members-advanced-search-page .cn_category_label::before {
	content: "Other " !important;
} */
.members-advanced-search-page-country .cn-categories *,
.members-advanced-search-page .cn-categories * {
	line-height: 150% !important;
}





/* Larger Name Text */
.members-advanced-search-page-country .given-name, 
.members-advanced-search-page-country .additional-name, 
.members-advanced-search-page-country .family-name,
.members-advanced-search-page .given-name, 
.members-advanced-search-page .additional-name, 
.members-advanced-search-page .family-name {
	font-size: 1.35em !important;
	font-variant: none !important;
	font-weight: normal !important;
}
/* Larger Institute Text */
.members-advanced-search-page-country #cn-list span.org, 
.members-advanced-search-page-country #cn-list span.title,
.members-advanced-search-page #cn-list span.org, 
.members-advanced-search-page #cn-list span.title {
    display: block !important;
    margin-top: 0.3em !important;
    font-size: 1.2em !important;
	line-height: 1.5 !important;
}

a:link { border-bottom: none !important; }
a:visited { 
/* 	text-decoration: none !important; */
/* 	text-decoration-color: set to invisible; */
    border-bottom: none !important;
}
/* a:hover { border-bottom: 2px solid grey !important; } */

/* This is the box that shows up when a search is active. Box contains active params selected by user. */
.members-advanced-search-page-country #cn-search-messages,
.members-advanced-search-page #cn-search-messages {
/* 	border: 2px solid lightgray !important; */
	border-radius: .35em !important;
	/* dark grey */
	border: 2px solid #787878 !important; 
/* 	border-top: none !important;
	border-right: none !important;
	border-bottom: none !important; */
}

/* Reduce whitespace around earch member's row cell */
.members-advanced-search-page-country .cn-list-item,
.members-advanced-search-page .cn-list-item {
	margin: 0 !important;  /* Matches margins on search fields box */
}
.members-advanced-search-page-country .cn-entry,
.members-advanced-search-page .cn-entry {
	border-radius: 0px !important;
	padding: 1em 0 !important; 
	border-top: 2px solid #787878 !important;
    border-left: 0px solid #787878 !important;
    border-right: 0px solid #787878 !important;
    border-bottom: 0px solid #787878 !important; 
	/* margin: 1em 0 !important; */
}
/* Sequence of first initial of person's last name used for searching*/
.members-advanced-search-page .cn-alphaindex .cn-char {
	border-bottom: none !important;
    font-size: 1.6em !important;
	padding: 2px;
}
/* Highlight selected letter of last name for filtering */
.members-advanced-search-page .cn-alphaindex .cn-char-current {
	font-size: 1.6em !important;
	color: #787878 !important;
	border: 2px solid #787878 !important;
    padding: 0 5px !important;
    border-radius: 0.3em !important;
}

.members-advanced-search-page-country #cn-list .cn-alphaindex,
.members-advanced-search-page #cn-list .cn-alphaindex {
	margin: 0 0 6px 0 !important;
	padding-left: 20px; /* to match margin on search fields box */
}

.members-advanced-search-page-country #cn-search-messages::before,
.members-advanced-search-page #cn-search-messages::before {
	font-weight: normal !important;
	font-size: 1.2em !important;
	content: "The membership directory below is filtered by the following... " !important;
}

.members-advanced-search-page .cn-alphaindex::before {
	font-weight: normal !important;
	font-size: 1.2em !important;
	content: "Or filter by last name: " !important;
	margin-bottom: .3em !important;
}

/* This was for when I had the last name search initial enabled */
/* .cn-alphaindex::after {
	font-size: 34px !important;
	font-family: 'Merriweather', Georgia, serif !important;
    font-weight: 900 !important;
	content: "Search Results" !important;
	margin-top: 12px !important;
} */

/* #cn-list-body::before {
#cn-search-messages::after {
.cn-list-head::after {
	font-size: 34px !important;
	font-family: 'Merriweather', Georgia, serif !important;
    font-weight: 900 !important;
	content: "Search Results" !important;
	margin-top: 24px !important;
} */

/* Hide "Work, Home, Office..." */
.members-advanced-search-page-country .address-name,
.members-advanced-search-page .address-name {
	display: none !important;
}
/* Remove Vertical & Horiz Whitespace around search fields*/
.members-advanced-search-page-country #cn-multi-category-search,
.members-advanced-search-page #cn-multi-category-search {
	padding: 0 !important;
}
.members-advanced-search-page-country .post-content input,
.members-advanced-search-page .post-content input {
    margin-bottom: 0 !important;
} 
.members-advanced-search-page-country .single-post .post-header,
.members-advanced-search-page .single-post .post-header {
    margin-bottom: 0 !important;
}
.members-advanced-search-page-country .content,
.members-advanced-search-page .content, 
.sidebar {
    padding-top: 25px;
    padding-bottom: 50px;
}

/* NEW MEMBERSHIP APPLICATION FORM SUBMISSION MESSAGE */
#cn-form-ajax-response p {
    font-size: 1.1em !important;
}