/* ====================PSYCH-SPECIFIC STYLES ONLY==================== */

table img {
	max-width: inherit;
	}
	
/* MENU TOGGLE - HOMEPAGE ONLY */

.home #banner {
	height: auto;
	min-height: 430px;
}


.home #banner .grid {
    display: flex;
    min-height: 430px;
}

.grid .unit.banner-menu {
    padding-left: 0;
}

.banner-menu a {
	color: white;
    font-size: 14px;
    line-height: 24px;
	display: block;
    padding: 0 12px;
	}

.banner-menu a:hover {
    color: #c0f115;
    }
    
.banner-toggle {
	position: relative;
    background-color: transparent;
    border: 1px solid #192138;
    border-bottom: none;
    transition: .3s;
    display: block;
    width: 100%;
	font-size: 16px; font-size: 1rem;    
    text-align: left;
    margin-top: 10px;
    margin-bottom: 0px;
    padding: 7px 5px 7px 12px;
}

/*give submenu items a bkgd opacity wo. affecting text opacity*/

.banner-toggle:after {
    content: "";
    opacity: 0.95;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -200;   
    font-family: 'FontAwesome';
    font-size: 1.25rem;
	line-height: 20px;
	text-align: right;
	padding: 7px 5px;
    color: #ffce15;
  	}
  	
.banner-toggle::after, .banner__hidden-menu::after {
    background-color: #192138;
}

.banner-toggle.closed:after {
    content: "+";
}

.banner-toggle.opened:after {
    content: "\2013";
}

.banner-toggle:hover, .banner-toggle:hover:after, .banner-menu a:hover  {
    color: #e1b200;
}

.banner__hidden-menu {
    border: 1px solid #192138;
    border-top: none;
    position: relative;
    display: block;
    list-style-type: none;
    font-size: 0.8125rem;
    line-height: 20px;
    margin: 0 0 5px 0;
    padding: 0 0 5px 0;
    z-index: 750;   
    }

.banner__hidden-menu li {
    margin: 0;
    padding: 4px 0;
    }

/*give submenu items a bkgd opacity wo. affecting text opacity*/

.banner__hidden-menu:after {
    content: "";
    background-color: #034077;
    opacity: 0.95;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;   
    }

/* instructions on opacity bg wo effecting text on top:
1. parent div has to have position: relative
2. child div with opacity bg has to have position: absolute, opacity, content, z-index;
3. outer most parent div has to have z-index
*/

.unit.two-thirds.banner-callout-wrapper {
    align-self: flex-end;
}

.banner-callout {
    float: right;
    padding: 15px 30px 5px 30px;
	margin-bottom: 40px;
    }

.banner-callout::after { 
    background-color: #f9f9f9;
    }

.banner-callout a:hover {
    color: #3fa4fe;
    }

/* ======= MAN ======= */
/* links https://cmsdev1.pmacs.upenn.edu/psychiatry/collaborations.html */

main a {
    color: #3678c2;
}

main a:hover {
    color: #74000e;
}

.main-content {
    margin: 20px 0;
}

/* === READ MORE w SLIDEOUT === */
.slideout-wrapper {
    position: relative;
    overflow: hidden;
}

.slideout-button {
    position: relative;
    display: inline;
    background-color: #cde7ff;
    padding: 5px 10px;
    z-index: 100;
}

/*caret*/
.slideout-button:before  {
    content: '';
    position: absolute;
    left: 93px;
    top: 28%;
    display: block; 
    border-left: 8px solid #ffdd66;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    z-index: 100;
    }
    
.slideout {
    position: absolute;
    left: 0;
    display: inline;
    border-radius: 0 3px 3px 0;
    background-color: #f5f5f5;
    list-style-type: none;
    -webkit-animation: slide 0.5s forwards;
    -webkit-animation-delay: 2s;
    animation: slide 0.5s forwards;
    z-index: 0;
    margin: 0 0 0 90px;
    padding: 5px 12px;
}

@-webkit-keyframes slide {
    100% { left: 0; }
}

@keyframes slide {
    100% { left: 0; }
}

.slideout, .slideout li {
    line-height: 25px;
}

.slideout li {
    display: inline;
    padding: 0 8px 0 12px;
    font-size: 13px;
}

.slideout li + li {
    border-left: 1px solid #957500;
}

.slideout a {
    color: #74000e; 
}
    
.slideout a:hover {
    color: #034077; 
}

/* NEWS */

.news .unit p a {
	color: #fb8247;
	}

.news .unit p a:hover {
	color: #df3f1a;
	}

.news p {
    margin: 10px 0;
	}

.news ul {
    margin: 0 0 0 30px;
	}

.news ul li a {
	color: #fb8247;
	}

.news ul li a:hover {
	color: #df3f1a;
	}

/* sitemap */

ul.sitemap {
	columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
	}

.event-item {
    margin-bottom: 25px;
}

.event-item p {
    margin: 0;
}


/*  MEDIA QUERIES 
==================================================*/


@media (max-width: 1400px) { }

/* Large devices (desktops, less than 1200px)*/
@media (max-width: 1199.98px) {}

@media (max-width: 1154.98px) {
    
    /*mobile view for banner and banner content*/
    .grid .two-thirds.banner-callout-wrapper,
    .grid .one-third.banner-menu {
        width: 50%;
    }

    .banner-callout .banner-callout__title {
        font-size: 22px;
    }

    .banner-callout p {
        letter-spacing: 1px;
        font-size: 14px;
        line-height:26px;
    }
    
}

@media (max-width: 1059.98px) {
    
    
    .banner-callout {
        padding: 15px 30px 5px 30px;
        margin-top: 260px;
        }
        
    /* === READ MORE === */

    .more {
        font-size: 12px;
        padding: 5px 5px 6px 5px;
        }

    .more:hover {
        color: #1772c3;
        -ms-transition: .3s;
        -moz-transition: .3s;
        -webkit-transition: .3s;
        transition: .3s;
        cursor: pointer;
        }

    /*caret on hover*/
    .more:before  {
        content: '';
        position: absolute;
        left: 100%;
        top: 30%;
        display: block; 
        border-left: 6px solid #cde7ff;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        }

    /* slide out */
    .slideout {
        margin-left: 77px;
        }

    .slideout li {
        padding: 0 4px;
        font-size: 10px;
        line-height: 18px;
        }

    .slideout li:first-child {
        border: none;
        }
        
        
}

/* Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) { }

/* Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) { 
    
    .home #banner {
        width: 100%;
    }
    
   .banner-callout {
        padding: 10px 20px;
        margin: 0 0 20px 0;
    }

    /* read more - slide out*/
    .slideout {
        position: relative;
        display: block;
        margin: 0;
        padding: 0px 12px 1px 12px;
        z-index: 2;
        }
    
    .slideout li {
        display: block;
        border: none;
        font-size: 13px;
        line-height: 18px;
        padding: 5px;
        margin: 5px 0 0 0;
        }
    
    .slideout li:first-child {
        padding-top: 7px;
        }
        
    .slideout li + li {
        border-left: none;
    }

    /* home news 3 columns */
    
    .news.grid .unit > .unit {
        padding: 0;
        }
    
    .grid.news .unit.whole {
        padding: 10px 20px;
        }
    
    .news hr {
        margin-top: 0;
        }

	.sitemap {
		columns: 2;
		-webkit-columns: 2;
		-moz-columns: 2;
		}
    
}

@media (max-width: 575.98px) { 
    
    /*banner styles*/
    .home #banner {
        padding-top: 0;
        min-height: 450px;
    }
    
    .home #banner .grid {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    
    .unit.one-third.banner-menu, 
    .unit.two-thirds.banner-callout-wrapper {
        position: absolute;
        padding: 10px;    
    }
    
    .banner-toggle, .banner__hidden-menu {
        margin: auto;
        z-index: 500;
    }

    .banner-toggle { 
        margin-top: 10px;
    }

    .unit.two-thirds.banner-callout-wrapper {
        bottom: 0;
        margin: 0 auto;    
    }
    
    .banner-callout {
        margin: 0 auto;
        float: none;
    }
    /*content sidebar*/
    .whole aside.one-quarter {
    	padding: 0;
	}
    /*sitemap*/
	.sitemap {
    	columns: 1;
    	-webkit-columns: 1;
    	-moz-columns: 1;
	}
	/*read more slideout button on homepage to display more below vs to the right*/
	main .more {
	    border-bottom: 10px solid white;
	}
	
	.breadcrumbs .more {
	    border-bottom: none;
	}
	
	.slideout-button:before {
        left: 42%;
        top: 100%;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid #ffdd66; 
    }

}


/*======================= IPHONE 6 PLUS =======================*/
/* iPhone 6 Plus Landscape
    @media only screen
    and (min-device-width : 414px)
    and (max-device-width : 736px)
    and (orientation : landscape) {
                
        #banner .grid .unit {
            float: left;
            }
        
        .banner-callout {
            margin-top: 65px;
            }

    }
     */