/* Every rule is scoped to the Newsroom archive. */
body.post-type-archive-pr_newsroom {
    --pr-newsroom-red: #e21b23;
    --pr-newsroom-red-hover: #bd1219;
}

body.post-type-archive-pr_newsroom #jupiterx-main {
    background: #f7f7f9;
    padding: 54px 0 64px !important;
}

body.post-type-archive-pr_newsroom #jupiterx-main .jupiterx-main-content {
    padding: 0 !important;
}

body.post-type-archive-pr_newsroom #jupiterx-main > .jupiterx-main-content > .container {
    width: calc(100% - 40px) !important;
    max-width: 1200px !important;
    padding: 0 !important;
}

body.post-type-archive-pr_newsroom #jupiterx-main > .jupiterx-main-content > .container > .row {
    margin: 0 !important;
}

body.post-type-archive-pr_newsroom #jupiterx-primary {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

body.post-type-archive-pr_newsroom #jupiterx-main .jupiterx-sidebar {
    display: none !important;
}

body.post-type-archive-pr_newsroom #jupiterx-primary > .jupiterx-content {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

body.post-type-archive-pr_newsroom .prturkey-newsroom-heading {
    grid-column: 1 / -1;
    margin: 0 0 8px !important;
    padding-left: 16px;
    border-left: 5px solid var(--pr-newsroom-red);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    font-weight: 700;
    color: #17171b;
}

body.post-type-archive-pr_newsroom #jupiterx-primary > .jupiterx-content > article.jupiterx-post-loop {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: #fff;
    border: 1px solid #e9e9ed !important;
    border-top: 4px solid var(--pr-newsroom-red) !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(20, 20, 30, .045);
    transition: box-shadow .2s ease, border-color .2s ease;
}

body.post-type-archive-pr_newsroom #jupiterx-primary > .jupiterx-content > article.jupiterx-post-loop:hover {
    border-color: #efb7ba !important;
    border-top-color: var(--pr-newsroom-red) !important;
    box-shadow: 0 10px 28px rgba(20, 20, 30, .09);
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-body {
    display: contents !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-image {
    order: -1;
    height: 210px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #f0f0f3;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-image > a,
body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-image picture {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-image img {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    box-sizing: border-box;
    padding: 20px !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-header {
    margin: 0 !important;
    padding: 22px 22px 0 !important;
    border: 0 !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-title {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    letter-spacing: -.2px;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    color: #1d1d23 !important;
    text-decoration: none !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-title a:hover {
    color: var(--pr-newsroom-red) !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-content {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 22px 22px !important;
    margin: 0 !important;
    color: #62626c;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-content::before,
body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-content::after {
    display: none !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-content > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0 0 20px !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-more-link {
    margin-top: auto !important;
    padding: 10px 18px !important;
    background: var(--pr-newsroom-red) !important;
    border: 1px solid var(--pr-newsroom-red) !important;
    color: #fff !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-more-link:hover {
    background: var(--pr-newsroom-red-hover) !important;
    border-color: var(--pr-newsroom-red-hover) !important;
}

body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-meta-author,
body.post-type-archive-pr_newsroom article.jupiterx-post-loop .jupiterx-post-author-box {
    display: none !important;
}

/* Replace the theme's pagination with the scoped numbered navigation. */
body.post-type-archive-pr_newsroom #jupiterx-main .jupiterx-pagination,
body.post-type-archive-pr_newsroom #jupiterx-main nav.navigation.pagination {
    display: none !important;
}

body.post-type-archive-pr_newsroom .prturkey-newsroom-pagination,
body.post-type-archive-pr_newsroom #jupiterx-primary > .jupiterx-content > .jupiterx-no-article {
    grid-column: 1 / -1;
}

body.post-type-archive-pr_newsroom .prturkey-newsroom-pagination {
    margin-top: 18px;
    width: 100%;
}

body.post-type-archive-pr_newsroom .prturkey-newsroom-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.post-type-archive-pr_newsroom .prturkey-newsroom-pagination li {
    padding: 0;
    margin: 0;
}

body.post-type-archive-pr_newsroom .prturkey-newsroom-pagination li > .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #e5e5eb;
    border-radius: 7px;
    background: #fff;
    color: #303039;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

body.post-type-archive-pr_newsroom .prturkey-newsroom-pagination .page-numbers.current,
body.post-type-archive-pr_newsroom .prturkey-newsroom-pagination a.page-numbers:hover {
    background: var(--pr-newsroom-red);
    border-color: var(--pr-newsroom-red);
    color: #fff;
}

body.post-type-archive-pr_newsroom #jupiterx-main a:focus-visible {
    outline: 2px solid var(--pr-newsroom-red);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    body.post-type-archive-pr_newsroom #jupiterx-primary > .jupiterx-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 600px) {
    body.post-type-archive-pr_newsroom #jupiterx-primary > .jupiterx-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    body.post-type-archive-pr_newsroom #jupiterx-main {
        padding: 34px 0 44px !important;
    }
    body.post-type-archive-pr_newsroom #jupiterx-main > .jupiterx-main-content > .container {
        width: calc(100% - 30px) !important;
    }
}
