/**
 * Default Page Template Style
 *
 * @since 3.1.0
 */

.page.with-toc .page-toc {
    margin-bottom: 2em;
    margin-top: 2em;
}

.page .entry-content {
    margin: 2em auto;
}

.page-template-default .entry-content {
    margin-top: 0.5em;
}

.page .page-thumbnail img {
    display: block;
}

.page.with-toc .sidebar .floating-cta {
    background-color: #fff;
    border: 1px solid var(--color-accent);
    padding: 0 0 0.75rem;
    text-align: center;
}

.page.with-toc .sidebar .floating-cta.to-newsletter {
    padding-bottom: 0;
}

.page.with-toc .sidebar .floating-cta > p {
    background-color: var(--color-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13.856'%3E%3Cpath fill='%2331adb3' d='M8 13.856 16 0H0l8 13.856z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(50% - 8px) bottom;
    background-size: 16px;
    color: #fff;
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

@media screen and (min-width: 1024px) {
    
    article.page {
        display: grid;
        grid-template-columns: 3fr 2fr;
        grid-template-rows: repeat(4, auto);
    }
    
    article.page.with-toc {
        grid-template-rows: repeat(5, auto);
    }
    
    .page .entry-header {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .page.with-toc.has-introduction .page-excerpt {
        background-color: var(--color-light-background);
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        padding: 2em 10%;
    }
    
    .page.with-toc .page-toc {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
        margin-bottom: 0;
        margin-top: 3em;
        padding: 0 10%;
    }
    
    .page.with-toc .page-thumbnail {
        background-color: var(--color-light-background);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath fill='%23fff' d='M0 0h10v10H0z'/%3E%3C/svg%3E");
        background-position: left top;
        background-repeat: no-repeat;
        background-size: 50% 100%;
        grid-column: 1 / 2;
        grid-row: 2 / 4;
        padding-bottom: 2em;
        padding-top: 2em;
    }
    
    .page .entry-content {
        width: 100%;
    }
    
    .page .sidebar { /* CTA */
        grid-column: 2 / 3;
        grid-row: 2 / 5;
        padding-left: 10%;
        padding-right: 10%;
    }
    
    .page.with-toc .sidebar { 
        background-color: var(--color-light-background);
        grid-row: 2 / 4;
        padding-bottom: 2em;
        padding-top: 2em;
    }
    
    .page.with-toc.has-introduction .sidebar {
        display: flex;
        align-items: flex-end;
        grid-row: 3 / 4;
    }
    
    .page.with-toc .entry-content {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        margin-top: 3em;
    }
    
    .page .page-form {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .page.with-toc .page-form {
        grid-row: 5 / 6;
    }
    
    .page.with-toc .page-toc .ez-toc-list {
        position: sticky;
        top: 100px;
    }
    
    .page.with-toc .page-thumbnail img {
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }
    
    article.page:not(.with-toc) .sidebar .floating-cta {
        position: sticky;
        top: 100px;
    }
    
    .page.with-toc .sidebar > * {
        width: 100%;
    }
}

@media screen and (min-width: 1200px) {
    
    article.page {
        grid-template-columns: 1fr 1fr;
    }
    
    .page.with-toc.has-introduction .page-excerpt,
    .page.with-toc .page-toc,
    .page .sidebar { /* CTA */
        padding-left: 20%;
        padding-right: 20%;
    }
}
