/* =========================================
   TARGET IT — SINGLE BLOG ARTICLE
   ========================================= */

.target-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    background: #fff;
    color: #2e2e2e;
    font-family: "Syne", Arial, Helvetica, sans-serif;
}

.target-article *,
.target-article *::before,
.target-article *::after {
    box-sizing: border-box;
}

/* =========================================
   ARTICLE HEADER
   ========================================= */

.target-article .target-article__header {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    padding: 112px 0 0;
    text-align: center;
}

.target-article .target-article__title {
    max-width: 850px;
    margin: 0 auto 38px;

    color: #2e2e2e;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Large centered featured photograph */

.target-article .target-article__featured {
    width: min(960px, 100%);
    max-width: none;
    margin: 0 auto;
}

.target-article__featured img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 960 / 515;

    object-fit: cover;
    filter: grayscale(100%);
}

/* =========================================
   ARTICLE CONTENT
   ========================================= */

.target-article .target-article__body {
    width: min(1040px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 65px 0 115px;
}

.target-article__body .wp-block-post-content {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.target-article__body p {
    margin: 0 0 30px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.target-article__body h2 {
    margin: 45px 0 20px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
}

.target-article__body h3 {
    margin: 35px 0 17px;
    font-size: 20px;
    font-weight: 600;
}

.target-article__body a {
    color: #719b35;
    text-underline-offset: 3px;
}

.target-article__body ul,
.target-article__body ol {
    padding-left: 24px;
    margin: 0 0 30px;
}

.target-article__body li {
    margin-bottom: 9px;
}

/* =========================================
   IMAGES INSIDE ARTICLES
   ========================================= */

.target-article__body .wp-block-image {
    margin: 35px 0;
}

.target-article__body .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Two side-by-side Gutenberg image columns */

.target-article__body .wp-block-columns {
    display: flex;
    gap: 18px;
    margin: 55px 0;
}

.target-article__body .wp-block-column {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.target-article__body .wp-block-columns .wp-block-image {
    margin: 0;
}

.target-article__body .wp-block-columns .wp-block-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: grayscale(100%);
}

.target-article__body figcaption {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* =========================================
   PREVIOUS / NEXT ARTICLE NAVIGATION
   ========================================= */

.target-article .target-article__navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    max-width: none;
    min-height: 90px;
    margin: 0;

    background: #2e2e2e;
}

.target-article__navigation .wp-block-post-navigation-link {
    display: flex;
    align-items: stretch;
    min-width: 0;
    min-height: 90px;
    margin: 0;

    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.target-article__navigation
.wp-block-post-navigation-link:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.8);
}

.target-article__navigation
.wp-block-post-navigation-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;

    width: 100%;
    padding: 22px 18px;

    background: #2e2e2e;
    color: #fff;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;

    transition:
        background-color 200ms ease,
        color 200ms ease;
}

/* Diagonal arrows matching Figma */

.target-article__previous a::before {
    content: "↙";
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
}

.target-article__next a::after {
    content: "↗";
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
}

.target-article__navigation
.wp-block-post-navigation-link a:hover,
.target-article__navigation
.wp-block-post-navigation-link a:focus-visible {
    background: #383838;
    color: #9ec857;
}

.target-article__navigation
.wp-block-post-navigation-link a:focus-visible {
    outline: 2px solid #9ec857;
    outline-offset: -4px;
}

/* =========================================
   TABLET
   ========================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .target-article .target-article__header {
        padding-top: 85px;
    }

    .target-article .target-article__title {
        font-size: 29px;
    }

    .target-article .target-article__body {
        padding-bottom: 90px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .target-article .target-article__header {
        width: calc(100% - 40px);
        padding-top: 60px;
    }

    .target-article .target-article__title {
        margin-bottom: 30px;
        font-size: 23px;
        line-height: 1.25;
    }

    .target-article__featured img {
        aspect-ratio: 16 / 10;
    }

    .target-article .target-article__body {
        width: calc(100% - 44px);
        padding: 45px 0 70px;
    }

    .target-article__body .wp-block-post-content,
    .target-article__body p {
        font-size: 14px;
        line-height: 1.5;
    }

    .target-article__body p {
        margin-bottom: 24px;
    }

    .target-article__body h2 {
        font-size: 22px;
    }

    .target-article__body h3 {
        font-size: 18px;
    }

    /* Stack article image columns */

    .target-article__body .wp-block-columns {
        flex-direction: column;
        gap: 20px;
        margin: 40px 0;
    }

    .target-article__body .wp-block-column {
        flex-basis: auto !important;
        width: 100%;
    }

    /* Navigation remains readable on narrow screens */

    .target-article .target-article__navigation {
        grid-template-columns: minmax(0, 1fr);
    }

    .target-article__navigation
    .wp-block-post-navigation-link {
        min-height: 76px;
    }

    .target-article__navigation
    .wp-block-post-navigation-link:first-child {
        border-right: 0;
        border-bottom: 0;
    }

    .target-article__navigation
    .wp-block-post-navigation-link a {
        min-height: 76px;
        gap: 20px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .target-article__navigation
    .wp-block-post-navigation-link a {
        transition: none;
    }
}

/* Center previous/next article navigation */

.target-article .target-article__navigation {
    justify-items: stretch;
}

.target-article .target-article__navigation
> .wp-block-post-navigation-link {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.target-article .target-article__navigation
.wp-block-post-navigation-link a {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* Position both article links closer to the center divider */

@media (min-width: 768px) {

    .target-article .target-article__navigation
    .target-article__previous a {
        justify-content: flex-end;
        padding-right: 55px;
    }

    .target-article .target-article__navigation
    .target-article__next a {
        justify-content: flex-start;
        padding-left: 55px;
    }

}

/* ZOOTHOOT BODY TYPOGRAPHY 16PX */
.target-article__body p,
.target-article__body .wp-block-post-content {
    font-size: 16px;
}
