/* Archives and search results: one main column and the "Find a Post" sidebar; classic posts use the same frame
   without the sidebar (post-classic.css).
   Values measured on live roc.ai (the Divi default post layout). Loaded only by archive.php, search.php and the
   classic single post template, after style.css and media.css. */

:root {
    --posts-indigo: #1c1e4d;     /* titles and meta of the post rows */
    --posts-container-max: 1140px;
}

/* ==========================================================================
   Frame: main column 74%, sidebar 26%, stacked at 980px and below
   ========================================================================== */
.posts-page {
    padding-top: 360px;
    background: var(--color-cream);
}

.posts-page--search {
    padding-top: 0;
    --posts-container-max: 1340px;
}

.posts-page--single {
    padding-top: 60px;
}

.posts-page__row {
    display: flex;
    align-items: flex-start;
    width: 80%;
    max-width: var(--posts-container-max);
    margin: 0 auto;
    padding-top: 58px;
}

.posts-page__main {
    box-sizing: border-box;
    min-width: 0;
    width: 74%;
    padding: 0 3% 23px 0;
}

.posts-page__nav {
    display: flex;
    justify-content: space-between;
}

.posts-page__nav a {
    color: var(--color-navy);
}

/* ==========================================================================
   Post rows
   ========================================================================== */
.post-row {
    margin-bottom: 60px;
}

.post-row__image {
    display: block;
    margin-bottom: 30px;
}

.post-row__image img {
    display: block;
    width: 100%;
    height: auto;
}

.post-row__title {
    padding-bottom: 10px;
    font-family: var(--font-regular);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--posts-indigo);
}

.post-row__title a {
    color: inherit;
}

.post-row__meta {
    display: flex;
    justify-content: space-between;
    margin: 0 10% 6px;
    padding-bottom: 15px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    color: var(--posts-indigo);
}

.post-row__meta a {
    margin-left: 5px;
    color: inherit;
}

.post-row__meta span {
    margin-right: 5px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.side {
    box-sizing: border-box;
    width: 26%;
    padding: 0 0 28px 30px;
}

.side__widget {
    margin-bottom: 30px;
}

.side__title {
    position: relative;
    padding: 20px 0 22px;
    font-family: var(--font-regular);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--posts-indigo);
}

.side__title::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 31px;
    height: 2px;
    background: #e32f2a;
}

.side__search {
    display: flex;
}

.side__input {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 9.8px;
    border: 1px solid var(--color-steel);
    border-right: 0;
    background: transparent;
    font-family: var(--font-regular);
    font-size: 14px;
    color: var(--color-navy);
}

.side__submit {
    box-sizing: border-box;
    flex: 0 0 92px;
    height: 40px;
    padding: 9.8px 28px 9.8px 17px;
    border: 0;
    border-radius: 0 3px 3px 0;
    background: var(--color-rust-muted);
    font-family: var(--font-regular);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--color-white);
    cursor: pointer;
}

.side__list {
    list-style: none;
}

.side__item {
    margin-bottom: 8px;
    line-height: 24px;
}

.side__item a {
    color: var(--color-navy);
}

/* ==========================================================================
   Responsive tiers
   ========================================================================== */
@media (max-width: 1100px) {
    .post-row { margin-bottom: 42px; }
}

@media (max-width: 980px) {
    .posts-page__row {
        flex-direction: column;
        align-items: stretch;
    }

    .posts-page__main {
        width: 100%;
        padding: 0;
    }

    .side {
        width: 100%;
        padding-left: 0;
    }

    .post-row__meta { font-size: 14px; }
}

@media (max-width: 767px) {
    .post-row__title {
        padding-bottom: 0;
        font-size: 16px;
        line-height: 1.3;
    }
}

@media (max-width: 475px) {
    .post-row__meta {
        margin: 0 0 6px;
        padding: 0 24px 15px;
    }
}
