/*
Theme Name: Grammarphobia's Twenty Twenty Child Theme
Template: twentytwenty
Version: 1.0.14
Author: Paul Houser
Author URI: https://plaidpowered.com/custom-development
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@media (min-width: 700px) {

        
    .header-inner {
        position: relative;
    }

    .header-inner .header-titles-wrapper {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .header-inner .header-titles {
        margin-left: 240px;
        padding-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner .site-title {
        font-size: 4rem;
    }
    .header-inner .site-logo {
        font-size: 2.5rem;
        line-height: 1em;
    }
    .header-inner .site-logo img {
        position: absolute;
        top: 2.8rem;
        left: 0;
        width: 240px;
        height: auto;
        max-height: none;
    }
    

    .two-column-layout {
        max-width: calc(100% - 8rem);
        margin-top: 5rem;
        margin-left: auto;
        margin-right: auto;
    }

    nav.pagination-single {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    nav.pagination-single a {
        font-size: 2rem;
        line-height: 1.35em;
    }

    body:not(.singular) main > article:first-of-type {
        padding-top: 0;
    }

    .two-column-layout .entry-content .jetpack_subscription_widget h2.widgettitle,
    .two-column-layout .entry-content div.sharedaddy h3.sd-title {
        font-size: 2rem;
    }
}


@media (min-width: 1000px) {
    .header-inner .toggle-wrapper {
        display: none;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-inner .header-navigation-wrapper {
        margin-top: 1em;
        margin-left: 265px;
    }
    .two-column-layout {
        display: flex;
        align-items: flex-start;
    }
    
    .header-inner .site-description {
        line-height: 1.25em;
        font-size: 2rem;
        max-width: 25em;
        font-weight: 300;
        font-style: italic;

    }

    .entry-content > .alignleft, .entry-content > p .alignleft, 
    .entry-content > .wp-block-image .alignleft {
        position: static;
        max-width: none;
    }

    .entry-content > .alignright, 
    .entry-content > p .alignright, 
    .entry-content > .wp-block-image .alignright, 
    [class*="__inner-container"] > .alignright {
        position: static;
        left: none;
        max-width: none;
        margin-right: 0;
    }
}
@media (max-width: 1100px) {
    .header-inner .header-navigation-wrapper ul.primary-menu {
        font-size: 1.5rem;
    }
}

.header-inner .header-navigation-wrapper ul.primary-menu {
    justify-content: flex-start;
}

@media (max-width: 999px) {
    .header-titles-wrapper {
        align-items: flex-start;
        text-align: left;
    }
    .header-inner .header-titles {
        max-width: calc( 100% - 200px );
        margin-left: 160px;
        margin-right: auto;
    }
    .header-inner .site-description {
        line-height: 1.25em;
        font-size: 1.75rem;
        max-width: 25em;
        font-weight: 300;
        font-style: italic;
    }
    .header-inner .site-logo img {
        top: 50%;
        right: auto;
        left: 2.8rem;
        width: 150px;
        height: auto;
        max-height: none;
        transform: translateY(-50%);
    }
    .header-inner.section-inner {
        max-width: 100%;
        width: 100%;
    }
}

.header-inner a.screen-reader-text {
    color: inherit;
    text-decoration: none;
}

.header-inner .site-logo .screen-reader-text {
    border: 0;
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: auto;
    overflow: visible;
    padding: 0;
    position: static !important;
    width: auto;
    font-size: 4rem;
    line-height: 4rem;
    letter-spacing: 0.01em;
}

@media (max-width: 699px) {
    html,body {
        font-size: 8px;
    }
    .site-logo .custom-logo {
        display: none;
    }
    .header-titles-wrapper {
        padding-left: 2rem;
    }
    .header-inner .header-titles {
        margin-left: 0;
        max-width: 100%;
    }
    .header-inner .site-description {
        font-size: 1.35rem;
        display: block;        
    }
    article .entry-content  {
        font-size: 1.75rem;
    }
    .header-inner .mobile-nav-toggle {
        padding-bottom: 6rem;
    }
    main {
        margin-top: 5rem;
    }
    .sidebar-widgets {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
.menu-modal {
    z-index: 9999;
}

.mobile-search-toggle {
    display: none !important;
}

.archive-header,
.entry-header {
    background: transparent !important;
}

header.archive-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid #999;
    margin-bottom: 5rem;
}

.archive-header,
.archive-header-inner {
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    text-align: left;
}

.primary-menu ul li.menu-item-has-children:hover > ul {
    right: auto;
    left: calc( 100% - 1px );
    border-radius: 0 5px 5px 0;
}

.primary-menu ul ul::after {
    border-left-color: transparent !important;
    border-right-color: #000;
    left: -1.6rem;
    right: auto;

    display: none;
}

.two-column-layout .sidebar-widgets {
    flex: 0 1 40rem;
}
.two-column-layout .sidebar-widgets .widget {
    background: #fafafa;
    padding: 30px;
    border: 1px solid #ccc;
}
.two-column-layout .sidebar-widgets h2.widget-title {
    font-size: 2.25rem;
}

.two-column-layout .sidebar-widgets .widget_archive ul {
    font-weight: 400;
    font-size: 1.5rem;
}

.two-column-layout > article,
.two-column-layout > main {
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
}

.two-column-layout .entry-header {
    padding: 0;
}

.two-column-layout .post-inner {
    padding-top: 0;
}

.two-column-layout .entry-header .entry-header-inner {
    margin: 0 auto;
    width: calc( 100% - 4rem );
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
    margin-top: 0;
}

.entry-content h1:last-child,
.entry-content h2:last-child,
.entry-content h3:last-child,
.entry-content h4:last-child,
.entry-content h5:last-child,
.entry-content h6:last-child {
    margin-bottom: 0;
}

h1.entry-title,
h2.entry-title {
    font-size: 3.25rem; 
    margin-bottom: 1rem;
    font-weight: 700;
}
.entry-content h2 {
    font-size: 2.75rem; 
    margin-bottom: 2rem;
}
.entry-content h3 {
    font-size: 2.25rem; 
    margin-bottom: 2rem;
}
.entry-content h4 {
    font-size: 2rem; 
    margin-bottom: 1rem;
}
.entry-content h5 {
    font-size: 1.75rem;
    text-transform: uppercase; 
    font-weight: bold;
    margin-bottom: 1rem;
}
.entry-content h6 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase; 
}

.entry-content h2 + h4 {
    margin-top: 0;
}

@media (max-width: 1100px) {
    h1.entry-title,
    h2.entry-title {
        font-size: 3.25rem; 
    }
}

.entry-content em em, em i, i em, i i, cite em, cite i {
    font-weight: inherit;
}


.post-meta-single-top .post-meta {
    border-bottom: 1px solid #999;
    padding-bottom: 2rem;
    justify-content: flex-start;
    margin-bottom: 4rem;
}

.entry-categories-inner {
    font-size: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.entry-content table,
.entry-content table * {
    border: 0;
    background: #f0f0f0;
    font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif;
    font-size: 2rem;
}

.entry-content div.sharedaddy {
    border-top: 1px solid #999;
    margin-top: 5rem;
    padding-top: 2rem;
}

.entry-content .jetpack_subscription_widget {
    border-top: 1px solid #999;
    margin-top: 5rem;
    padding-top: 2rem;
}

.widget .widget-content p {
    font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif;
}

.entry-content .jetpack_subscription_widget h2.widgettitle,
.entry-content div.sharedaddy h3.sd-title {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-top: 0;
}

.entry-content div.sharedaddy h3.sd-title::before {
    content: none;
}

.entry-categories, .post-meta-single-bottom {
    display: none;
}

.post-meta .post-author {
    display: none;
}
.post-meta .meta-icon {
    display: none;
}

/**
 * Google search box style edits
 */
.gsc-search-box {
    margin: 0;
}
.gsc-input {
    margin: 0;
}
.cse .gsc-search-button-v2, .gsc-search-button-v2,
.wgs_wrapper .gsc-input-box .gsib_a input {
    height: 44px !important;
    box-sizing: border-box;
}
.wgs_wrapper td.gsib_a,
.gsc-search-box-tools .gsc-search-box td.gsc-input {
    padding: 0 !important;
}
.gsc-search-button svg {
    width: 20px;
    height: 20px;
    fill: white;
    max-width: none;
}
.gsc-search-box .gsc-search-button-v2 {
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;;
}