/*
Theme Name: CSU-ATS
Theme URI: http://dept-test.atmos.colostate.edu/themes/csu
Author: Matthew Bishop
Author URI: http://atmos.colostate.edu/
Description: Follows the new (2017) University requirements for web pages.
Version: 0.1
License: uh...
 */

/* Adapted from  http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
pre, a, abbr, acronym, address, big, cite, code,
del, dfn, img, ins, kbd, q, s, samp,
small, tt, var,
u, i, center, dl, dt, dd,
fieldset, form, label, legend,
caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	/*font: inherit;*/
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
    font-family: 'prox-regular', sans-serif;
    font-size: 16px;
    line-height: 1.2em;
}
blockquote, q {
	quotes: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

th {
	font-weight:bold;
	text-align:left;
}
th, td {
    padding-right: 1em;
    padding-bottom: 1ex;
}

main > ol > li, main > ul >li {
    margin-bottom: 10px;
}

a, a:link, a:visited {
    text-decoration: none;
    outline: 0;
}
a:focus {
    outline: 1px dotted black;
/*text-decoration: underline overline;
   text-decoration-style: dotted;*/
}

h1, h2, h3, h4, h5, h6 {
    /* CSU suggestion; not sure about this */
    /*font-family: 'factoria-book', sans-serif;*/
    font-weight: normal;
    margin-top: 0.8em;
    margin-bottom: 0.2em;
    line-height: 130%; /*1.2em;*/
}

h2, h3, h4, h5, h6 {
    font-weight: 700;
}

i { font-style: italic; }

/*ol, ul { list-style-position: inside; }*/

.clear { clear: both; }
.clearl { clear: left; }
.clearr { clear: right; }
.floatl { float: left; }
.floatr { float: right; }

/* Wordpress builtin styling
 */
.alignleft {
    display: inline;
    float: left;
    margin: 0 1.5em 1.5em 0;
}
.alignright {
    display: inline;
    float: right;
    margin: 0 0 1.5em 1.5em;
}
.aligncenter {
    clear: both;
    display: block;
    margin: 0 auto;
}

/* CSU mandated header -------------------------------------------------
 * http://brand.colostate.edu/d/sLlipb6y2ZT4/colorado-state-university-style-guide#/style-guide/web-guidelines
 */

.smaller-text {
    font-family: 'prox-regular';
    letter-spacing: .11em;
    line-height: 1.1em;
    font-size: 14px;
    text-transform: uppercase;
}

.medium-text {
    font-family: 'prox-regular';
    letter-spacing: .11em;
    line-height: 1.1em;
    font-size: 18px;
    text-transform: uppercase;
}

.larger-text {
    font-family: 'prox-regular';
    letter-spacing: .11em;
    line-height: 1.1em;
    font-size: 21px;
    text-transform: uppercase;
}

#signature-container {
    background-color: #1E4D2B;
    padding: 1em 0;
    width: 100%;
}

.signature { /* generic of #signature-* */
    display: none;
    white-space: nowrap;
}

.signature a {
    color: white;
}
.signature a:focus {
    outline: 1px dotted white;
}

.signature-mark { /* CSU logo */
    display: inline-block;
    padding-right: 15px;
    border-right: 2px solid white;
    margin-right: 10px;
}

.unit-identifier { /* our department */
    display: inline-block;
    vertical-align: top;
    /*color: white;*/
}

@media all and (max-width: 529px) {
    #signature-mobile {
        display: inline-block;
        margin-left: 3%;
    }
    #signature-mobile .unit-identifier {
        margin-top: 4px;
    }
}

@media all and (min-width: 530px) and (max-width: 999px) {
    #signature-stacked {
        display: inline-block;
        margin-left: 1em;
    }
    #signature-stacked .unit-identifier {
        margin-top: 7px;
    }
}

@media all and (min-width: 1000px) {
    #signature-oneline {
        display: inline-block;
        margin-left: 1.5em;
    }
    #signature-oneline .unit-identifier {
        margin-top: 16px;
    }
}

#news, #right-area {
    min-width: 280px;
}

@media all and (max-width: 679px) {
    #news {
        width: 100%;
    }
    #news article:nth-child(3) {
        display: none;
    }
    #right-area {
        width: 100%;
    }
}

@media all and (min-width: 680px) and (max-width: 999px) {
    #news {
        max-width: calc(56% - 1em);
    }
    #right-area {
        max-width: 43%;
    }
}

@media all and (min-width: 1000px) {
    #news {
        width: calc(70% - 1.5em);
    }
    #right-area {
        width: 30%;
    }
}

header nav {
    background-color: #225831;
}

/* Menu ------------------------------------------------------------- */

@media all and (min-width: 800px) { /* desktop menu */
    #mobile-menu-toggle { display: none; }

    #menu-main {
        max-width: 1140px;
        margin: 0 auto;
        position: relative;
    }

    #menu-main ul.sub-menu {
        position: absolute;
        display: none;
        border-left: 1px solid #225831;
        border-right: 1px solid #225831;
        background-color: #225831;
        z-index: 1;
    }

    #menu-main > li {
        display: inline-block;
    }

    #menu-main > li > a {
        display: block;
        background-image: url('/wp-content/themes/csu-ats/images/down-arrow.png');
        background-repeat: no-repeat;
        background-position: bottom center;
    }
}

@media all and (max-width: 799px) { /* mobile menu */
    #mobile-menu-toggle {
        display: block;

    }
    #mobile-menu-toggle img {
        padding: 9px 11px 7px 11px;
    }
    #mobile-menu-close { display: none; }
    #menu-main { display: none; }

    #menu-main {
        margin: 0;
        padding: 0;
        position: relative;
    }

    #menu-main ul.sub-menu {
        display: none;
    }

    #menu-main > li {
        display: block;
    }

    #menu-main > li > a {
        display: block;
        border-top: 1px solid white;
        background-image: url('/wp-content/themes/csu-ats/images/down-arrow.png');
        background-repeat: no-repeat;
        background-position: center right;
    }

    #menu-main > li > ul a {
        padding-left: 2em;
    }
}

#menu-main ul {
    padding: 0;
}

#menu-main li {
    list-style-type: none;
}

ul.sub-menu li {
    padding: 0;
}

ul.sub-menu a {
    display: block;
}

#menu-main a, #menu-main a:visited {
    color: white;
    font-size: 18px;
    padding: 10px 16px 12px 16px;
}
#menu-main a:focus {
    outline: 1px dotted white;
}

#menu-main a:hover, #menu-main > li.open > a {
    background-color: #2A6C3C;
}

#menu-main li:hover ul.sub-menu {
    display: block; /* fallback when no javascript */
}


/* Image Slider/Carrousel ------------------------------------------- */

#slider-images {
    overflow: hidden;
}

#about-slider-images {
    overflow: hidden;
}

.slider-image {
    display: none;
    position: relative;
}
#slider-images .slider-image:first-child {
    display: block;
}
.slider-image img {
    min-width: 100%;
    max-width: 100%;
}

span.slide-cap {
    visibility: hidden;
    position: absolute;
    top: 20px;
    left: 0;
    padding: 30px 20px;
    font-size: 60px;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,1.0);
}
@keyframes capfadein {
    from {
        color: rgba(255,255,255,0.1);
        background: rgba(0,0,0,0.05);
    }
    to {
        color: rgba(255,255,255,1.0);
        background: rgba(0,0,0,0.5);
    }
}
.slider-image:hover span.slide-cap {
    visibility: visible;
    animation-name: capfadein;
    animation-duration: 1s;
}

#slider-controls {
    margin-top: 6px;
    text-align: center;
    font-size: 16px;
}
#slider-controls span {
    display: inline-block;
}

.slider-dot {
    width: 16px;
    height: 16px;
    background: url('/wp-content/themes/csu-ats/images/slider-dot.png') no-repeat;
    cursor: pointer;
}
.slider-dot:first-child {
    background: url('/wp-content/themes/csu-ats/images/slider-dot-sel.png') no-repeat;
}
.slider-dot:hover {
    background: url('/wp-content/themes/csu-ats/images/slider-dot-sel.png') no-repeat;
}

#slider-pause {
    float: right;
    width: 11px;
    height: 16px;
    margin-top: 2px;
    background: url('/wp-content/themes/csu-ats/images/slider-pause.png') no-repeat;
    cursor: pointer;
}
#slider-pause:hover {
    background: url('/wp-content/themes/csu-ats/images/slider-pause-sel.png') no-repeat;
}


/* Main Content Styling --------------------------------------------- */

body {
    background-color: #FFF;
}

/* XXX site needs minimum width */

main {
    max-width: 1140px;
    margin: 0 auto 2em auto;
    padding: 0 1em;
    line-height: 1.2em;
    font-size: 16px;
}

main a, main a:visited {
    color: #008000;
}
main a:hover {
    text-decoration: underline;
}

.wp-caption-text {
    font-family: factoria, serif;
    font-size: 14px;
    margin-top: -3px;
}

/* News Posts ------------------------------------------------------- */

#news {
    display: inline-block;
    padding-right: 1em;
    margin-bottom: 1em;
    vertical-align: top;
}

article.type-post {
    padding-bottom: 1em;
    margin-top: 1em;
}

header.entry-header {
    width: calc(100% - 2ex);
    padding: 1ex;
    margin-bottom: 1em;
}
article .date {
    margin-right: 1em;
    margin-bottom: 1em;
    font-weight: bold;
}
h1.entry-title {
    font-size: 24px;
}
h2.entry-title {
    margin: 0;
    font-size: 19px;
    font-weight: bold;
}
h1.entry-title a, h2.entry-title a {
	color: #1e4d2b;
}

header.entry-header a {
    color: black;
}

.featured-image {
    margin: 2em 0;
}
#news .featured-image {
    float: left;
    clear: left;
    margin: 1em 1em 1em 0;
}

.entry-content {
    margin: 1em 0;
}
.entry-content .date {
    margin-bottom: 1ex;
    font-weight: bold;
}
.entry-content p {
    margin-top: 0;
}

#news article.has-post-thumbnail .entry-content {
    min-height: 150px;
}

#oldnews {
	font-size: 14px;
    letter-spacing: 0.03em;
}

/* front page area to the right of #news ---------------------------- */

#right-area {
    display: inline-block;
    margin-top: 1em;
}

#right-area .box {
    margin-bottom: 1em;
}

#right-area h2 { /* box header */
    color: white;
    background-color: #225831;
    font-size: 20px;
    font-weight: normal;
    margin: 0;
    padding: 4px 6px;
    text-align: center;
}
#right-area h2 a {
    color: white;
}

#right-area .content {
    padding: 1em;
}

#right-area .none {
    margin: 0;
}
#right-area .more {
    margin-top: 16px;
    font-size: 16px;
}

#colloquium .content, #defenses .content {
    font-size: 18px;
}
#colloquium p.title {
    margin-top: 0;
}

#colloquium smaller, #defenses smaller {
    font-size: 13px;
    text-transform: uppercase;
}

#defenses .kind {
    font-size: 16px;
    font-weight: bold;
}

#current-cond dt {
    float: left;
    clear: left;
    display: inline-block;
    width: 5em;
    padding-right: 1ex;
    text-align: right;
}
#current-cond dd {
    float: left;
    display: inline-block;
}

#article.box {
    line-height: 120%;
}
#article .recent {
    margin-bottom: 24px;
}
#article .author {
    font-size: 18px;
}
#article .title {
    margin: 6px 0;
    font-size: 18px;
}

#newsletter {
	font-size: 18px;
}

#newsletter img {
	margin-bottom: 8px;
}

/* Footer General --------------------------------------------------- */

footer {
    clear: left;
    width: 100%;
    /*position: fixed;
   bottom: 0px;
   z-index: -1;*/
    border-bottom: 1px solid white;
    background-color: #225831;
    color: white;
    line-height: 1.5;
}

footer a {
    color: white;
}
footer a:visited {
    color: #E27522;
}

footer .container {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    text-align: left;
}

footer ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: left;
}
footer ul li {
    margin-bottom: 0.7em;
    line-height: 1.5em;
}


/* Department Footer ------------------------------------------------ */

#dept-footer {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1em;
    text-align: center;
}

#social-icons {
    float: left;
    display: inline-block;
    margin: 1em 0;
}
#social-icons img {
    margin-right: 20px;
}

#scott-engineering {
    display: inline-block;
    margin-top: 26px;
    padding-right: 1em;
    padding: 0 1em;
    margin-right: 4em;
}
#scott-engineering a {
    color: white;
}

#donate {
    float: right;
    display: inline-block;
    margin: 1em 0;
}
#donate-button {
    padding: 8px 16px;
    color: #393E00;
    background-color: #C8C372;
    font-size: 26px;
}


/* CSU footer ------------------------------------------------------- */

#csu-footer {
    clear: both;
    background-color: #1E4D2B;
    width: 100%;
    padding: 14px 0px 0px;
    font-size: 0.83em;
}

#cf-col1, #cf-col2 {
    float: left;
    padding: 0 0.9375rem;
}
#cf-col1 {
    width: 66.6%;
}
#cf-col2 {
    width: 33.3%;
}

#csu-footer ul li {
    display: inline-block;
    padding: 0 10px;
    border-right: 1px solid white;
}
#csu-footer ul li:first-child {
    padding-left: 0;
}
#csu-footer ul li:last-child {
    border: 0;
}

#csu-footer p.copyright {
    line-height: 1.8em;
    margin-top: 0;
    margin-bottom: 1rem;
}

#csu-footer .bottomlogo {
    padding-bottom: 15px;
}
#csu-footer .bottomlogo img {
    vertical-align: middle;
}


/* Contact Us page */

.contact-col {
    float: left;
    margin: 1em 2em 1em 0;
}

.wp-image-176 {
    margin-bottom: 1em;
}

/* Room Schedule page */

ul#room-notes {
    display: inline-block;
    max-width: calc(1140px - 330px - 7em);
}

#room-colors {
    display: inline-block;
    min-width: 330px;
}
#room-colors span {
    display: inline-block;
    padding-right: 28px;
}
#room-colors div {
    display: inline-block;
}


table#room-info {
    margin-top: 1em;
}

table#room-info th {
    padding-right: 1.5em;
    padding-bottom: 1em;
    font-size: 19px;
    font-weight: bold;
    text-align: left;
}

table#room-info td {
    padding-right: 1.5em;
    padding-bottom: 2em;
}

table#email-lists th, table#email-lists td {
	padding-right: 2.5em;
	padding-bottom: 1ex;
}

table.striped {
	margin-top:1em;
}

table.striped th, table.striped td {
	padding:1ex 1em;
}

table.striped tr:nth-child(odd) {
	background-color: #CADFD2;
}

/* Colloquia */

.colloquium .title {
    font-size: 19px;
}

/* Defenses */

.upcoming-defense {
    margin-top: 1em;
}

/* Faculty, Research Staff, etc. */

div.profile, div.rsprofile {
    clear: left;
    min-height: 128px; /* same as profile photo */
    margin-bottom: 1.5em;
}
div.profile img {
    float: left;
}
div.profile > div {
    margin-left: calc(95px + 1.5em);
}

div.text-profile {
    clear: left;
    min-height: 3.5em;
    margin-bottom: 0.5em;
}
div.text-profile span.name {
    float: left;
    max-width: 10em;
}
div.text-profile > ul {
    margin-left: 10em;
}

div.rsprofile {
    min-height: 140px;
}
div.rsprofile img {
    float: left;
    width: 120px;
}
div.rsprofile > div, div.rsprofile > a {
    margin-left: calc(120px + 1.5em);
}

.staff-trunc p:first-child { margin-top: -2px; }
.staff-trunc {
   max-height: 112px;
   overflow: hidden;
   pointer: cursor;
}
.staff-trunc.expanded {
   max-height: revert;
}

.rpm-trunc {
   display: none;
}
.rpm-trunc.expanded {
   display: block;
}

.staff-see-more {
   display: block;
   margin-top: 8px;
}
.staff-see-more.expanded {
   margin-top: -8px;
}

/* Facilities */

.facility {
    clear: both;
    min-height: 188px;
    margin-bottom: 2em;
}

.facility img {
    float: right;
    margin: 0 0 1em 1em;
}

/* Research */

.research-area {
    clear: left;
    padding-bottom: 0.5em;
}

.research-area img {
    float: left;
    margin: 0 1em 0.5em 0;
}

.research-tools {
    text-align: center;
}

.research-tools figure {
    display: inline-block;
    margin: 1ex 1.5em;
}

.newsletter-list div {
	float: left;
	margin: 2em 5em 2em 0;
}
