/*
Theme Name: TempSlate
Theme URI: https://newharvest.ca/
Description: Version 3.3. Mostly unstyled responsive structure, now with CSS flexbox support.
Author: Karyl Gilbertson, New Harvest Media
Author URI: https://newharvest.ca/who-we-are/
Version: 3.3
License: GPLv2
License URI: https://wordpress.org/about/gpl/
Text Domain: tempslate
Tags: two-columns, right-sidebar
*/

/* ==== GENERAL ==== */

:root {
    --heading-font: Helvetica, Arial, sans-serif;
    --body-font: Helvetica, Arial, sans-serif;
    --header-color: #000;
    --main-color: #000;
    --accent-color: #666;
    --widget-bg-color: #EEE;
    --phead-color: #000;
    --text-color: #000;
    --link-color: #048;
    --link-hover-color: #08C;
    --shadow-light: rgba(0, 0, 0, .33);
    --shadow-dark: rgba(0, 0, 0, .67);
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-size: 18px;
    font-family: var(--body-font);
    color: var(--text-color);
}

.row-wrapper > * {
    max-width: 1400px;
    margin: 0 auto;
    overflow: auto;
}

.alignleft {
    float: left;
    margin: 1em 1em 1em 0;
}

.aligncenter {
    text-align: center;
    margin: 0 auto;
}

.alignright {
    float: right;
    margin: 1em 0 1em 1em;
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    line-height: 1;
}

img {
    border: 0;
    display: block;
    max-width: 100%;
    height: auto !important;
}

hr {
    border: none;
    border-bottom: 1px solid var(--widget-bg-color);
    margin: 2em 0;
}

a, a:link, a:visited {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover-color);
}

a.button {
    display: inline-block;
    background-color: var(--main-color);
    padding: .5em 1em;
    text-decoration: none;
}

a i,
button i {
    margin: 0 .5em 0 0;
}

/* Remove list styling where lists are usually navigational elements */
ul.sid,
ul.menu,
ul.sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==== HEADER ==== */

header ul.sid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

header h1, header h2 {
    color: var(--header-color);
    font-size: 2em;
    margin: .5em;
}

header .widget-container {
    width: 100%;
    display: block;
    margin: 0 1em 2em;
}

header .widget-container:first-child {
    margin: 2em 1em;
}

/* ==== SEARCH ==== */

#search-form {
    display: flex;
}

#search-form label {
    display: none;
}

#search-input,
#search-submit {
    margin: 0;
    padding: .5em;
    font-size: 1em;
    line-height: 1;
    box-sizing: border-box;
}

#search-input {
    width: 85%;
    color: var(--text-color);
    font-family: inherit;
    border: 1px solid var(--widget-bg-color);
    border-right: none;
}

#search-input::placeholder {
    color: var(--accent-color);
}

#search-submit {
    color: #fff;
    width: 15%;
    background: var(--main-color);
    border: 1px solid var(--main-color);
}

#search-submit i {
    margin: 0 auto;
}

/* ==== NAVIGATION ==== */

.menu a {
    display: inline-block;
    color: #fff;
    padding: 1em;
    text-decoration: none;
}

.menu a:hover {
    background: var(--accent-color);
}

.top-wrapper {
    background: var(--accent-color);
}

#top-nav ul.menu {
    display: flex;
    justify-content: flex-end;
    font-size: .8em;
}

.nav-wrapper {
    background: var(--main-color);
}

#mobile-menu-btn {
    display: block;
    width: 100%;
    color: #fff;
    font: 1em var(--body-font);
    background: none;
    border: none;
    padding: 1em;
}

#main-nav ul.menu {
    display: none;
    border-top: 1px solid var(--accent-color);

}

#main-nav ul li {
    text-align: center;
}

#main-nav ul.sub-menu {
    display: none;
    position: absolute;
    background: var(--main-color);
    margin: 0 0 0 -1em;
    box-shadow: 0 .25em .5em var(--shadow-light);
}

#main-nav ul li:hover > ul.sub-menu {
    display: block;
}

/* ==== MAIN CONTENT AREAS ==== */

#content {
    padding: 1em;
    line-height: 1.5;
}

.page-title,
.entry-title {
    margin: 0 0 .5em;
    line-height: 1;
    color: var(--phead-color);
}

.entry-meta {
    font-size: .8em;
    color: var(--accent-color);
}

.entry-utility {
    background: var(--widget-bg-color);
    margin: 1em 0;
    padding: .5em;
    display: flex;
    justify-content: space-around;
}

abbr {
    text-decoration: none;
}

.sticky, .bypostauthor {
    background: var(--widget-bg-color);
    padding: 1em;
}

/* ==== IMAGES / CAPTIONS ==== */

.wp-caption,
.wp-block figure caption,
.widget_sp_image-description {
    text-align: center;
}

.wp-caption-text, 
.gallery-caption,
.wp-block figure caption,
.widget_sp_image-description {
    font-size: .8em;
    margin: 0;
    padding: 0;
    font-style: italic;
    color: var(--accent-color);
}

#page-bottom-widget-area .gallery-columns-4 {
    justify-content: space-between;
}

#page-bottom-widget-area .gallery-columns-4 .gallery-item {
    width: 23% !important;
    box-shadow: 0 2px 6px var(--shadow-light);
}

.gallery .gallery-item img {
    border: none !important;
}

/* ==== SIDEBAR ==== */

.sidebar {
    padding: 1em;
}

.sidebar .widget-container {
    background: var(--widget-bg-color);
    margin: 0 0 1em;
    padding: 1em;
}

.sidebar h3 {
    color: var(--phead-color);
    line-height: 1;
    margin: 0 0 1em;
}

/* ==== PAGE BOTTOM AREA ==== */

.page-bottom-wrapper {
    background: var(--widget-bg-color);
}

#page-bottom-widget-area .widget-container {
    padding: 2em;
}

#page-bottom-widget-area .widget-title {
    margin: 0 0 1.5em;
    text-transform: uppercase;
    color: var(--phead-color);
    font-style: italic;
    text-shadow: 2px 2px 6px var(--shadow-light);
}

#page-bottom-widget-area .widget-container#text-10 {
    padding-top: 0;
    text-align: right;
}

#page-bottom-widget-area .widget-container#text-10 p {
    margin-top: 0;
}

/* ==== FOOTER ==== */

.footer-1-wrapper {
    background: var(--accent-color);
}

.footer-2-wrapper {
    background: var(--main-color);
}

footer {
    background: inherit;
    color: #fff;
    font-size: .8em;
}

footer ul.sid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
}

footer .widget-container {
    flex: 1 1 auto;
    margin: 0 auto;
    box-sizing: border-box;
}

footer .widget-title {
    color: var(--main-color);
    font-size: 1.5em;
    margin: 0;
}

#footer-1 .widget-container {
    padding: 0 1.25em 2.5em;
}

#footer-1 .widget-container:first-child {
    padding: 2.5em 1.25em;
}

#footer-2 .widget-container {
    padding: 0 1.25em 1.25em;
}

#footer-2 .widget-container:first-child {
    padding: 1.25em;
}

#footer-1 .widget-container p {
    margin: 1em 0 0;
}

/* Back to Top Button */

#custom_html-4 {
    text-align: center;
}

#footer-2 .button {
    color: #fff;
    background: var(--accent-color);
    margin: .5em auto;
}

/* ==== RESPONSIVE ==== */

@media screen and (min-width: 768px) {
    header .widget-container {
        width: calc(33.3% - 2em);
        margin: 0 1em;
    }
    header .widget-container:first-child {
        width: calc(50% - 2em);
    }
    #mobile-menu-btn {
        display: none;
    }
    #main-nav ul.menu {
        display: flex;
        justify-content: flex-start;
        border-top: none;
    }
    main {
        display: flex;
        justify-content: space-between;
    }
    #content {
        width: 67%;
    }
    .sidebar {
        width: 33%;
    }
    .full-width #content {
        width: 100%;
    }
    .two-sidebars #content {
        width: 50%;
    }
    .two-sidebars .sidebar {
        width: 25%;
    }
    footer ul.sid {
        flex-direction: row;
    }
    footer .widget-container {
        min-width: 20%;
        flex: 1 1 20%;
    }
    #footer-1 .widget-container {
        padding: 2.5em 1.25em;
    }
    #footer-2 .widget-container {
        padding: 1.25em;
    }
}

/* Text meant only for screen readers. */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #eee;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px var(--shadow-dark);
    clip: auto !important;
    color: var(--link-color);
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 9999; /* Above WP toolbar. */
}