/* ***** */
/* COLOR */
/* ***** */

$paBlue: #00319c;
$brightBlue: #0050fb;
$lightBlue: #BBE6FE;
$teal: #97e1e6;
$yellow:#FFD926;
$lightgray: #f7f7f7;
$darkgrey: #2d2d2d;
$medgrey: #6c6c6c;

/* ********** */
/* IRT COLORS */
/* ********** */

$paBlue__tint-80: #335AAF;
$irt-green:#62BB46;
$irt-green__shade-60:#315D23;
$irt-green__shade-40:#458331;
$irt-green__shade-15:#539F3C;
$irt-green__tint-50:#B1DDA3;
$pa-yellow__tint-40:#FFE87C;
$pa-yellow__tint-10:#FFFBE8;




/* ***** */
/* FONTS */
/* ***** */

body, button, input, select, textarea {
    background:$paBlue;
    font-family: Georgia, Times, serif;
    line-height: 1.6;
    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:20px;
    //     font-size:1.25rem;
    // }
}
input, select, textarea {
    background:$lightgray;
    font-family: Georgia, Times, serif;
    line-height: 1.6;
    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:20px;
    //     font-size:1.25rem;
    // }
}


h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.4;
    margin: 0 0 0.75em;
    // padding: 1.5em 0 0;
}
@media screen and (min-width: 44.375em) {
    .entry-content ul, .entry-summary ul, .entry-content ol, .entry-summary ol {
        margin-left:1.25em;
    }
}

.site-title {
    font-family: Georgia, Times, serif;
    font-size: 36px;
    font-size: 1.875rem;
    font-weight: normal;
    letter-spacing: normal;
}

.entry-title {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; //IRT CHANGE
    font-size: 36px;
    font-size: 2.25rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:48px;
    //     font-size: 3rem;
    // }

    a {
        color:$irt-green__shade-60;
    }
}
h1.entry-title {
    color:$irt-green__shade-60;
    font-size: 48px;
    font-size: 3rem; //WRONG IS ORIGINAL
    letter-spacing: normal;
    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:60px;
    // }
}
.page-title { //MISSING FROM ORIGINAL
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 30px;
    font-size: 1.875rem;
    text-transform: uppercase; //IRT CHANGE

    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:50px;
    // }
}
.entry-content h1, .entry-summary h1, .comment-content h1, .textwidget h1 {//IRT CHANGE
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 36px;
    font-size: 2.25rem;

    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:48px;
    // }
}
.entry-content h2, .entry-summary h2, .comment-content h2, .textwidget h2 {//IRT CHANGE
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-size: 1.625rem;
    font-weight:normal;
    color:$irt-green__shade-40;

    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:42px;
    // }
}

.entry-content h3, .entry-summary h3, .comment-content h3, .textwidget h3 {//IRT CHANGE
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 28px;
    font-size: 1.75rem;

    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:36px;
    // }
}

.entry-content h4, .entry-summary h4, .comment-content h4, .textwidget h4 {//IRT CHANGE
    color:$irt-green;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:32px;
    //     font-size:2rem;
    // }
}
.entry-content h5,.entry-content h6,.entry-summary h5,.entry-summary h6,.comment-content h5,.comment-content h6 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    font-size: 1.25rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    // @media screen and (min-width: 99.375em) { //IRT CHANGE
    //     font-size:24px;
    //     font-size:1.5rem;
    // }
}

// .entry-content h6, .entry-summary h6, .comment-content h6, .textwidget h6 { //IRT CHANGE
//     font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
//     font-size: 16px;
//     font-size: 1rem;
//     font-style:normal;
//     font-weight: 900;
//     line-height: 1.56;
//     letter-spacing: .9px;
//     text-transform: uppercase;
//     @media screen and (min-width: 99.375em) { //IRT CHANGE
//         font-size:20px;
//         font-size:1.25rem;
//     }
// }

.entry-footer {//MISSING FROM ORIGINAL
    font-family: Arial, sans-serif; 
}

.hentry div.sharedaddy h3.sd-title, .hentry h3.sd-title {//MISSING FROM ORIGINAL
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


/* **** */
/* LINK */
/* **** */

// .main-navigation a, 
.menu-toggle, .dropdown-toggle, .social-navigation a, .post-navigation a, .widget-title a { //IRT CHANGE
    color:$paBlue;
}
// .main-navigation a:hover, .main-navigation a:focus, 
a:hover, a:focus, .menu-toggle:hover, .entry-footer a:hover, .social-navigation a:hover:before, .social-navigation a:focus:before, .post-navigation a:hover .post-title, .post-navigation a:focus .post-title, .tagcloud a:hover, .tagcloud a:focus, .entry-title a:hover, .entry-title a:focus, .entry-footer a:hover, .entry-footer a:focus, .comment-metadata a:hover, .comment-metadata a:focus, .pingback .comment-edit-link:hover, .pingback .comment-edit-link:focus, .comment-reply-link:hover, .comment-reply-link:focus, .site-info a:hover, .site-info a:focus, .wp_widget_tag_cloud a:hover, .wp_widget_tag_cloud a:focus, body #infinite-footer .blog-info a:hover, body #infinite-footer .blog-info a:focus, body #infinite-footer .blog-info a:hover, body #infinite-footer .blog-info a:focus, body #infinite-footer .blog-credits a:hover, body #infinite-footer .blog-credits a:focus, .comment-reply-title small a:hover, .comment-reply-title small a:focus {
    color:$brightBlue;
}




/* ****** */
/* BUTTON */
/* ****** */
input[type=button], input[type=button][disabled]:hover, input[type=button][disabled]:focus, input[type=reset], input[type=reset][disabled]:hover, input[type=reset][disabled]:focus, input[type=submit], input[type=submit][disabled]:hover, input[type=submit][disabled]:focus {
    background-color:$irt-green__shade-15;
}

button:hover, button[disabled]:hover, button[disabled]:focus, .pagination:before, .pagination:after, .pagination .prev, .pagination .next, .page-links a, .site-main #infinite-handle span  {
    background-color:$brightBlue;
}
// .menu-toggle.toggled-on, .menu-toggle.toggled-on:hover, .menu-toggle.toggled-on:focus {
//     border-color:$brightBlue;
// }

.post-navigation, .post-navigation div+div, .pagination, .widget, .page-header, .page-links a, .comments-title, .comment-reply-title {
    border-color:$brightBlue;
}

// .search-submit {
//     background-color:$paBlue;
// }



/* **** */
/* BODY */
/* **** */

body.custom-background {
    background-color:$paBlue;
    background-image:none;
}




/* **** */
/* SITE */
/* **** */

.site {
    margin:10px;
    @media screen and (min-width: 44.375em) {
        margin: 16px;
        margin: 1rem;
    }

    &-inner {
        max-width: 100%;

        .site-header,
        .site-content {
            margin:0 auto;
            max-width:1320px;
        }
    }
}


/* ****** */
/* HEADER */
/* ****** */

.menu-toggle {
    border-color:rgba(0, 49, 156, .2);
}
.has-site-logo {
    .site-branding {
        display:flex;
        align-items: center;
        flex-flow:column wrap;
        margin-right:auto;
        margin-left:auto;
        @media screen and (min-width: 56.875em) {
            flex-flow:row wrap;
            margin-right:0;
            margin-left:0;
        }
    }

    .site-title {
        text-align:center;
        @media screen and (min-width: 56.875em) {
            margin-left:2rem;
            text-align:left;
        }
    }

    .menu-toggle {
        margin-right:auto;
        margin-left:auto;
    }
}

.site-logo {
    @media screen and (max-width: 44.3125em) {
        max-height:132px;
    }
}
.site-branding {

    .site-title a {
        &:focus,
        &:hover {
            color:$paBlue;
        }
    }

}






/* ********** */
/* NAVIGATION */
/* ********** */



.main-navigation {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

    // .current-menu-item>a, .current-menu-ancestor>a {
    //     color:$brightBlue;
    // }
    // li:hover>a {
    //     color:$brightBlue;
    // }

    @media screen and (max-width: 56.8125em) {
        li {
            border-top:1px dotted $medgrey;
        }
        li,
        ul ul li {
            border-color:$medgrey;
        }
        .primary-menu {
            border-bottom:1px dotted $medgrey;
        }
    }
}

.dropdown-toggle:after {
    border-color:$medgrey;
    border-style:dotted;
}

.post-navigation {
    border-top:1px dotted $darkgrey;
    border-bottom:1px dotted $darkgrey;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

    .post-title {
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    }
}





/* ************* */
/* ENTRY CONTENT */
/* ************* */

blockquote {
    border-color:$teal;
    background:rgba(151, 225, 230, .1);
    padding-top:1.5em;
    padding-bottom:1.5em;
}

/* ****** */
/* WIDGET */
/* ****** */

.widget {
    border-top:1px dotted $darkgrey;
    @media screen and (min-width: 75em) {
        font-size:16px;
        font-size:1rem;
    }

    .widget-title {
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        @media screen and (min-width: 75em) {
            font-size:20px;
            font-size:1.25rem;
        }
    }

    .widget_media_image img {
        margin:0 auto;
    }
    
}


/* ******** */
/* COMMENTS */
/* ******** */

textarea,
#respond {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.comments-title, .comment-reply-title {
    border-top:1px dotted $darkgrey;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


/* ****** */
/* FOOTER */
/* ****** */

.site-footer {
    background-color:$paBlue;
    color:white;
    padding-top:3em;
    @media screen and (min-width: 56.875em) {
        padding-top:1.5em;
    }

    a,
    .widget a,
    .widget-area a {
        color:white;

        &:focus,
        &:hover {
            color:white;
        }
    }

    .widget-title {
        color:white;
    }

    .main-navigation {
        padding-right:0;
        padding-left:0;
        // a {
        //     padding:.84375em;
        // }
        // .current-menu-item>a, .current-menu-ancestor>a {
        //     color:white;
        //     text-decoration:underline;
        // }
        // li:hover>a {
        //     background-color:$teal;
        //     color:$darkgrey;
        // }
    
        @media screen and (max-width: 56.8125em) {
            li {
                border-top:none;
            }
            // li,
            // ul ul li {
            //     border-color:white;
            // }
            // ul ul li {
            //     background-color:transparent;
            // }
            .primary-menu {
                border-bottom:none;
            }
        }
    }
    .dropdown-toggle {
        color:white;

        &:after {
            border-color:white;
            border-style:dotted;
        }
    }

}

.site-info a {
    color:white;

    &:focus,
    &:hover {
        color:white;
    }
}




/* *** */
/* IRT */
/* *** */


/* ****** */
/* HEADER */
/* ****** */

.site-inner {
    @media screen and (min-width: 56.875em) { 
        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+70,fffbe8+70 */
        background: #ffffff; /* Old browsers */
        // background: -moz-linear-gradient(left, #ffffff 70%, #fffbe8 70%); /* FF3.6-15 */
        // background: -webkit-linear-gradient(left, #ffffff 70%,#fffbe8 70%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to right, #ffffff 70%,#fffbe8 70%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        // filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fffbe8',GradientType=1 ); /* IE6-9 */
    }

    .site-header {
        max-width: 100%;
    }
}
.site-header {
    background:white;
    padding:0;
}
    .site-header-main {
        justify-content: center;
        padding-top:2.625em;
    }
        .site-branding {
            justify-content: center;
            max-width:1320px;
            padding-right:7.6923%;
            padding-left:7.6923%;
            width:100%;
            @media screen and (min-width: 56.875em) {
                padding-right:4.5455%;
                padding-left:4.5455%;
            }
            @media screen and (min-width: 61.5625em) {
                padding-right:7.6923%;
                padding-left:7.6923%;
            }
            @media screen and (min-width: 99.375em) { //1590
                // max-width:1320px;
                padding-right:0;
                padding-left:0;
            }
        }
        .has-site-logo .site-branding {
            @media screen and (min-width: 56.875em) {
                display:block;
            }
        }

            .site-logo-link {
                margin-left:2em;
                @media screen and (min-width: 56.875em) {
                    float:left;
                    margin-left:0;
                }
            }
            .has-site-logo .site-title {
                @media screen and (min-width: 56.875em) {
                    display:inline-block;
                    margin-top:6.25rem;
                }
            }
            .site-title,
            .site-description {
                font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            }
            .site-title {
                @media screen and (min-width: 56.875em) {
                    font-size:2.25rem;
                }
            }
            .site-description {
                color:$paBlue;
                display:block;
                font-size:1.25rem;
                font-weight: bold;
                text-align: center;
                @media screen and (min-width: 56.875em) {
                    display:inherit;
                    font-size:1.5rem;
                    margin-top:0.35em;
                    margin-left:calc(201px + 2rem);
                    text-align: left;
                }
            }

            .site-header-menu {
                background:$paBlue;
                border-top:8px solid $irt-green;
                @media screen and (min-width: 44.375em){
                    margin-bottom:0;
                }
                @media screen and (min-width: 56.875em){
                    width:100%;
                }
            }





/* ********** */
/* NAVIGATION */
/* ********** */

.main-navigation {
    font-family: inherit;
    margin:0 auto;
    max-width: 1320px;
    padding-right:7.6923%;
    padding-left:7.6923%;
    @media screen and (min-width: 56.875em) {
        padding-right:4.5455%;
        padding-left:4.5455%;
    }
    @media screen and (min-width: 61.5625em) {
        padding-right:7.6923%;
        padding-left:7.6923%;
    }
    @media screen and (min-width: 99.375em) { //1590
        // max-width:1320px;
        padding-right:0;
        padding-left:0;
    }
    a {
        color:white;
        &:focus,
        &:hover {
            color:white;
            text-decoration: underline;
        }
    }

    li {
        &:focus,
        &:hover {
            > a {
                color:white;
                text-decoration: underline;
            }
        }
    }
    @media screen and (max-width: 56.8125em) {
        li, 
        ul ul li {
            border-top:none;
        }
        .primary-menu {
            border-bottom:none;
        }
    }
}


.menu-toggle {
    border:1px solid $paBlue;
    &:hover {
        border-color:$irt-green;
        color:$irt-green__shade-40;
    }
    &.toggled-on,
    &.toggled-on:hover,
    &.toggled-on:focus {
        background-color: $irt-green__shade-15;
        border-color:$irt-green__shade-15;
    }
    @media screen and (min-width: 44.375em) {
        margin:0.5em 0;
    }
}

@media screen and (max-width: 56.8125em) {
    .site-header-menu {
        margin:0;
    }

    .main-navigation a {
        font-size:1.5rem;
    }
}


            

.site-header .main-navigation+.social-navigation {
    margin-bottom:1.75em;
    padding-right: 7.6923%;
    padding-left: 7.6923%;
}
.social-navigation a {
    color:white;
    border-color:white;

    &:hover {

        &:before {
            color:$irt-green__tint-50;
        }
    }
}




/* ******* */
/* CONTENT */
/* ******* */

    .site-content {
        display:flex;
        flex-flow:column wrap;
        @media screen and (min-width: 56.875em) {
            flex-flow:row wrap;
            padding:0;
        }
    }




/* ******* */
/* PRIMARY */
/* ******* */

.content-area {
    flex:0 1 auto;
    float:none;
    margin-right:0;
    margin-top:1.3125em;
    @media screen and (min-width: 44.375em) {
        margin-top:3.9375em;
    }
    @media screen and (min-width: 56.875em) {
        padding-right:4.5455%;
        padding-left:4.5455%;
        width:64%;
    }
    @media screen and (min-width: 61.5625em) {
        margin-top:5.25em;
        padding-right:4.5455%;
        padding-left:7.6923%;
    }
    @media screen and (min-width: 99.375em) { //1590
        padding-left:0;
    }
}
    .site-main {
        max-width:910px; //910px, 56.875em
    }

.page-header, 
.page-content {
    @media screen and (min-width: 44.375em){
        margin-right:7.6923%;
    }
}
.entry-header, .entry-content, .entry-footer, .comments-area, .content-bottom-widgets {
    @media screen and (min-width: 44.375em){
        margin-right:7.6923%;
    }
    @media screen and (min-width: 56.875em){
        margin-right:0;
    }
}

.comments-area #respond {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


/* ******* */
/* SIDEBAR */
/* ******* */

.sidebar {
    background-color:$pa-yellow__tint-10;
    background-image:url("https://irtblog.andover.edu/wp-content/uploads/2018/11/irt__sidebar__ivy__2x.png");
    background-position:20px 20px;
    background-size: auto 400px;
    background-repeat: no-repeat;
    flex:0 1 auto;
    float:none;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-left:0;
    margin-bottom:0;
    padding-top:1.3125em;
    padding-bottom:3.5em;
    @media screen and (min-width: 44.375em) {
        padding-top:3.9375em;
        padding-right:7.6923%;
        padding-bottom:5.25em;
        
    }
    @media screen and (min-width: 56.875em) { //910
        // margin-left:65%;
        padding-right:4.5455%;
        padding-left:1.5em;
        width:35%;
    }
    @media screen and (min-width: 61.5625em) {
        padding-top:5.25em;
        padding-right:7.6923%;
        padding-bottom:7em;
    }
    @media screen and (min-width: 1321px) { 
        background-size: contain;
    }
    @media screen and (min-width: 99.375em) { //1590
        padding-right:0;
    }
}





/* ****** */
/* WIDGET */
/* ****** */

.widget {
    border-top:none;
    border-bottom: 1px dotted $irt-green;


    .widget-title {
        background-color: $irt-green__shade-15;
        padding: 0.5em 1em;
        color: white;
    }
    ul {
        padding-right:1em;
        padding-left:1em;
    }

}

.widget_authors {
    border-bottom:none;

    >ul>li:not(:last-child) {
        margin-bottom:0.5em;
    }
    ul {
        padding-right:0;
        padding-left:0;
        li {
            border-bottom: 1px dotted $irt-green;
            padding:0 1em 0.5em 1em;
        }
    }
}
.widget-area>:last-child, .widget>:last-child {
    margin-bottom:1em;
}
.textwidget {
    padding:0 1em;
}





/* ************* */
/* SEARCH BUTTON */
/* ************* */
input[type="search"],
input,
label {
    border-radius:0;
}
.search-form {
    background:white;
    border-bottom:2px solid $teal;
}
.search-field {
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
}

input[type="search"].search-field {
    background-color:white;
    border:none;
    border-radius:0;
    color:$darkgrey;
    padding:1em;
}
.widget .search-submit {
    background-color:white;
    &:focus,
    &:hover {
        background-color:white;
    }

    &:before {
        color:$darkgrey;
        @media screen and (min-width: 56.875em) { 
            font-size: 24px;
        }
    }
}

.widget_search {
    border-bottom:none;
}






.irt_button {
    border:1px solid $irt-green;
    background:white;

    color:$darkgrey;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;


    padding:12px 18px;

    text-align: center;
    text-transform: uppercase;
    text-decoration: none;

    &:focus,
    &:hover {
        background:$irt-green;
        color:$darkgrey;
    }
}
.entry-content a.irt_button,
.entry-summary a.irt_button,
.taxonomy-description a.irt_button,
.logged-in-as a.irt_button,
.comment-content a.irt_button,
.pingback .comment-body>a.irt_button,
.textwidget a.irt_button,
.entry-footer a.irt_button:hover,
.site-info a:hover.irt_button {
    box-shadow: none;
}





/* ************* */
/* CUSTOM WIDGET */
/* ************* */

#custom_html-3 {
    background-color:$paBlue__tint-80;
    border-bottom:1px solid $paBlue__tint-80;
    color:white;
}


/* BUTTON */
#custom_html-4 {
    border-bottom:none;
}

.button__wrapper {
    display:flex;
    justify-content: center;
}




/* ****** */
/* FOOTER */
/* ****** */

.site-footer {
    .site-title,
    .site-title + a {
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    }
}