/**
 * Theme Name: Reviewed Stack
 * Description: Reviewed Stack
 *
 * Text Domain: stackreviewed
 */

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
    text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
    display: block;
}
body {
    background: #000;
}

.reviewed-snippet {
    transition: box-shadow .25s ease-out,transform .25s ease-out;
    overflow: hidden;
}
.reviewed-snippet:hover {
    transform: translate(-.25rem,-.25rem);
    box-shadow: .5rem .5rem 0 0 var(--wp--preset--color--dynamic-bg);
    text-decoration: none;
}
.reviewed-snippet .reviewed-snippet-read-more {
    box-shadow: inset 0 -6px 0 var(--wp--preset--color--dynamic-shadow);
    padding: 6px 2px;
    text-decoration: none;
    transition: box-shadow .3s ease;
    display: inline-block;
}
.reviewed-snippet .reviewed-snippet-read-more:hover {
    box-shadow: inset 0 -22px 0 var(--wp--preset--color--dynamic-shadow);
}
.wp-block-post-content img {
    max-width: 100%;
    height: auto;
}
.wp-site-blocks {
    background-color: var(--wp--preset--color--base-2);
}
.wp-site-blocks > .wp-block-template-part:nth-child(1) {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
}
body.admin-bar .wp-site-blocks .wp-block-template-part:nth-child(1) {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .wp-site-blocks .wp-block-template-part:nth-child(1) {
        top: 46px;
    }
    .reviewed-header {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    .reviewed-header img {
        max-width: 135px !important;
    }
}
@media (max-width: 600px) {
    body.admin-bar .wp-site-blocks .wp-block-template-part:nth-child(1) {
        top: 0 !important;
    }
}

body.single .wp-site-blocks,
body.page .wp-site-blocks {
    background: #fff;
}
.reviewed-pagination {
    display: grid !important;
    grid-template-columns: 144px 1fr 144px;
    grid-template-areas: 'prv num nxt';
    max-width: 1340px !important;
    user-select: none;
}
.reviewed-pagination .wp-block-query-pagination-numbers {
    justify-content: center;
    display: flex;
    grid-area: num;
    gap: 8px;
}
.reviewed-pagination .wp-block-query-pagination-numbers .current {
   font-weight: 900;
}
.reviewed-pagination .wp-block-query-pagination-numbers .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #a3a3a3;
    line-height: 1;
    padding: 10px 16px 12px;
    background-color: var(--wp--preset--color--dynamic-bg);
    color: var(--wp--preset--color--dynamic-text);
    transition: 0.2s ease opacity;
}
.reviewed-pagination .wp-block-query-pagination-numbers .page-numbers:not(.current):hover {
    opacity: 0.85;
}
.reviewed-pagination .wp-block-query-pagination-next {
    grid-area: nxt;
}
.reviewed-pagination .wp-block-query-pagination-previous {
    grid-area: prv;
}
.reviewed-pagination .wp-block-query-pagination-next,
.reviewed-pagination .wp-block-query-pagination-previous {
    background-color: var(--wp--preset--color--dynamic-bg);
    color: var(--wp--preset--color--dynamic-text);
    display: inline-block;
    font-weight: 700;
    padding: 12px 24px 13px;
    transition: 0.2s ease opacity;
    cursor: pointer;
    text-decoration: none;
}

.reviewed-pagination .wp-block-query-pagination-next:hover,
.reviewed-pagination .wp-block-query-pagination-previous:hover {
    opacity: 0.85;
}
.reviewed-footer-socials a {
    transition: 0.2s ease opacity;
    user-select: none;
}
.reviewed-footer-socials a img {
    object-fit: contain;
}
.reviewed-footer-socials a:hover {
    opacity: 0.8;
}
img[alt="Reviewed"] {
    user-select: none;
}
@media(max-width: 720px) {
    .reviewed-posts-list .wp-block-post-template {
        grid-template-columns: 100% !important;
        gap: 2rem !important;
    }
    .reviewed-pagination {
        max-width: 100%;
        grid-template-columns: minmax(100px, 144px) minmax(100px, 144px) !important;
        justify-content: space-between;
        grid-template-areas: 'prv nxt';
    }
    .reviewed-pagination .wp-block-query-pagination-numbers {
        display: none !important;
    }
}
/* Post Content */
.entry-content a:not(:has(img)) {
    box-shadow: inset 0 -6px 0 var(--wp--preset--color--dynamic-shadow);
    transition: box-shadow .3s ease;
    text-decoration: none;
    color: #232323;
    font-weight: 700;
    line-height: 23px;
}
.entry-content a:not(:has(img)):hover {
    box-shadow: inset 0 -22px 0 var(--wp--preset--color--dynamic-shadow);
}
.entry-content p {
    margin-top: 0;
    margin-bottom: 1rem;
}
.entry-content img {
    max-width: 100%;
    vertical-align: middle;
    border-style: none;
}
.entry-content {
    font: 400 18px/30px acumin-pro,sans-serif;
    color: #212529;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}
.entry-content h1 {
    color: #090d3d;
    font-size: 2.5rem;
}
.entry-content h3 {
    color: #090d3d;
    font: 700 28px / 40px acumin-pro-condensed, sans-serif;
    margin-bottom: 24px;
    padding-top: 24px;
}
.entry-content h2 {
    color: #090d3d;
    font: 800 36px / 44px acumin-pro-condensed, sans-serif;
    letter-spacing: -.5px;
    margin-bottom: 32px;
    max-width: 690px;
    padding-top: 24px;
}
.entry-content h4 {
    color: #090d3d;
    font: 500 2rem acumin-pro-condensed,sans-serif;
}
.entry-content h5 {
    color: #090d3d;
    font: 500 1.25rem acumin-pro,sans-serif;
}
.entry-content ul {
    list-style-type: disc;
}
.entry-content ul, .entry-content ol, .entry-content dl {
    margin-top: 0;
}
@media (min-width: 768px) {
    .entry-content h1 {
        font: 400 18px/30px acumin-pro,sans-serif;
    }
    .entry-content h3 {
        font:700 32px/40px acumin-pro-condensed,sans-serif;
    }
    .entry-content h2 {
        font: 800 36px / 44px acumin-pro-condensed, sans-serif;
        margin-bottom: 56px;
    }
}

.reviewed-tags .wp-block-post-terms__separator {
    display: none;
}
.reviewed-tags .wp-block-post-terms a {
    color: #6d6d6d;
    background: #f3f3f3;
    display: inline-block;
    padding: .25em .4em;
    margin: 0 4px;
    text-transform: uppercase;
    transition: 0.2s ease background;
}
.reviewed-tags .wp-block-post-terms a:hover {
    background: #e8e8e8;
}
.reviewed-tags {
    gap: 4px;
}
.wp-block-post-author__avatar img {
    border-radius: 50%;
    overflow: hidden;
    display: block;
    object-fit: cover;
    max-width: 70px;
}
.wp-block-post-author__content {
    display: flex;
    align-content: center;
    align-items: center;
}
.wp-block-post-author__byline {
    color: #6d6d6d;
    display: block;
    font: 400 14px / 21px acumin-pro, sans-serif;
    margin-bottom: 0;
    width: fit-content;
    margin-right: 6px;
}
.wp-block-post-author__name {
    color: #151d89;
    font: 400 14px / 21px acumin-pro, sans-serif;
    font-weight: bolder;
    margin-bottom: 0;
}
:root {
    --primary-color: #ef7b69;
    --primary-hover: #ffc8c1;
    --text-color: #212529;
    --body-color: #333333;
    --caption-color: #6d6d6d;
    --border-color: #dddddd;
    --white: #ffffff;
    --border-radius: 4px;
    --spacing-lg: 50px;
    --spacing-md: 24px;
    --spacing-sm: 16px;
    font-family: "Poppins", sans-serif;
}
.item-block {
    display: flex;
    flex-direction: column;
    margin: var(--spacing-lg) 0;
    border-bottom: solid 1px var(--border-color);
    padding: 50px 0;
}
.item-block:last-of-type {
    border-bottom: none;
    padding-bottom: none;
}
.image_link {
    aspect-ratio: 16/9;
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.image_link .block-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.block-headline {
    font-weight: 800;
    font-size: 56px;
    margin: 0 0 var(--spacing-sm) 0;
    order: 0;
    color: var(--text-color);
}
.item-body {
    font-size: 18px;
    margin: var(--spacing-md) 0;
    order: 3;
    font-weight: 500;
    color: var(--body-color);
}
figcaption {
    font-size: 13px;
    color: var(--caption-color);
}
p:last-of-type {
    order: 4;
    margin: 0;
}
.button_link {
    padding: var(--spacing-sm);
    font-size: 16px;
    display: block;
    border-radius: var(--border-radius);
    min-width: 280px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    width: fit-content;
    font-weight: 700;
    transition: background-color 0.2s ease;
    box-shadow: None !important;
}
.button_link:hover {
    background-color: var(--primary-hover);
}
.amz_link.headline_link {
    text-decoration: none;
    color: inherit;
}
.entry-content h4 { 
    margin-bottom: .5em;
}
.item-block figure {
	margin-bottom: .5em;
}
@media screen and (max-width: 700px) {
	.item-block figure a:first-of-type {
		aspect-ratio: 1/1;
		border: solid 1px #e4e4e4;
	}
}
@media screen and (max-width: 500px) {
    .block-headline {
        font-size: 32px;
    }
    .item-body {
        font-size: 16px;
    }
    .button_link {
        width: 100%;
        min-width: unset;
        padding: 16px 0;
    }
}

.wp-block-group.has-global-padding.is-content-justification-left.is-layout-constrained.wp-container-core-group-is-layout-2.wp-block-group-is-layout-constrained {
    max-width: 720px;
}

.has-dynamic-color-color {
	color: var(--wp--preset--color--dynamic-bg) !important;
}
