
/*
|--------------------------------------------------------------------------
| SweetMeet - Journal Features
|--------------------------------------------------------------------------
|
| Lightweight, responsive and Elementor-free.
|
| Layouts:
|   featured  - Main editorial feature
|   cards     - Multiple article cards
|   related   - Related reading list
|   strip     - Horizontal in-feed promotion
|   compact   - Small account/sidebar feature
|
| Sizes:
|   xs, sm, md, lg
|
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| 1. Base Container
|--------------------------------------------------------------------------
*/

.smjf {
    --smjf-gold: #c8a96a;
    --smjf-border: #e6e3de;
    --smjf-bg: #faf9f7;
    --smjf-font: inherit;

    container-type: inline-size;

    font-family: var(--smjf-font);

    margin: 24px auto;

    width: calc(100% - 108px);
    max-width: 1118px;
    min-width: 0;

    box-sizing: border-box;
}

.smjf *,
.smjf *::before,
.smjf *::after {
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| 2. Headings
|--------------------------------------------------------------------------
*/

.smjf__heading,
.smjf-backlinks h2 {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 15px;
}


/*
|--------------------------------------------------------------------------
| 3. Article Grid
|--------------------------------------------------------------------------
*/

.smjf__items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}


/*
|--------------------------------------------------------------------------
| 4. Article Container
|--------------------------------------------------------------------------
*/

.smjf__item {
    display: flex;

    min-width: 0;
    overflow: hidden;

    background: var(--smjf-bg);

    border: 1px solid var(--smjf-border);
    border-radius: 10px;
}


/*
|--------------------------------------------------------------------------
| 5. Article Image
|--------------------------------------------------------------------------
*/

.smjf__media {
    display: block;

    flex: 0 0 35%;
    max-width: 35%;

    min-height: 140px;
    overflow: hidden;
}

.smjf__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    aspect-ratio: 4 / 3;
}


/*
|--------------------------------------------------------------------------
| 6. Article Content
|--------------------------------------------------------------------------
*/

.smjf__body {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    gap: 7px;
    padding: 17px;
}

.smjf__eyebrow {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #877045;
}

.smjf__item-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;

    margin: 0;
}

.smjf__excerpt {
    font-size: 13px;
    line-height: 1.5;

    color: #626262;

    margin: 0;
}


/*
|--------------------------------------------------------------------------
| 7. Article Links
|--------------------------------------------------------------------------
*/

.smjf__item-title a,
.smjf__read,
.smjf-backlinks a {
    color: inherit;
    text-decoration: none;
}

.smjf__item-title a:hover,
.smjf__read:hover,
.smjf-backlinks a:hover {
    text-decoration: underline;
    text-decoration-color: var(--smjf-gold);
}

.smjf__read {
    font-size: 12px;
    font-weight: 700;

    align-self: flex-start;

    margin-top: 3px;
}

.smjf__read span {
    color: var(--smjf-gold);
}


/*
|--------------------------------------------------------------------------
| 8. Featured Layout
|--------------------------------------------------------------------------
|
| Main editorial feature used on seed and pillar pages.
| Inset image, rounded corners and centred content.
|
|--------------------------------------------------------------------------
*/

.smjf--featured {
    padding: 14px 14px 0px 0px;
    border-radius: 16px;
}

.smjf--featured .smjf__item {
    align-items: center;

    gap: 24px;

    background: #fff;
    border: 1px solid var(--smjf-border);
    border-radius: 12px;
}

.smjf--featured .smjf__media {
    border-radius: 12px;
    overflow: hidden;
}

.smjf--featured .smjf__body {
    padding: 12px 16px 12px 0;
    justify-content: center;
}


/*
|--------------------------------------------------------------------------
| 9. Cards Layout
|--------------------------------------------------------------------------
|
| Multiple articles displayed as editorial cards.
|
|--------------------------------------------------------------------------
*/

.smjf--cards .smjf__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smjf--cards .smjf__item {
    display: block;
}

.smjf--cards .smjf__media {
    max-width: none;
    min-height: 0;

    aspect-ratio: 16 / 9;
}

.smjf--cards .smjf__image {
    aspect-ratio: 16 / 9;
}


/*
|--------------------------------------------------------------------------
| 10. Related Reading Layout
|--------------------------------------------------------------------------
|
| Compact list of related articles.
|
|--------------------------------------------------------------------------
*/

.smjf--related .smjf__items {
    gap: 0;

    border: 1px solid var(--smjf-border);
    border-radius: 10px;

    overflow: hidden;
}

.smjf--related .smjf__item {
    border: 0;
    border-radius: 0;

    background: transparent;
}

.smjf--related .smjf__item + .smjf__item {
    border-top: 1px solid var(--smjf-border);
}

.smjf--related .smjf__body {
    padding: 12px 16px;
}

.smjf--related .smjf__item-title {
    font-size: 14px;
}

.smjf--related .smjf__read {
    display: none;
}


/*
|--------------------------------------------------------------------------
| 11. Strip Layout
|--------------------------------------------------------------------------
|
| Thin horizontal promotion for search results.
|
|--------------------------------------------------------------------------
*/

.smjf--strip {
    width: calc(100% - 108px);
    max-width: 1118px;

    margin: 12px auto;
}

.smjf--strip .smjf__item {
    align-items: center;

    border-left: 3px solid var(--smjf-gold);
    background: #fff;
}

.smjf--strip .smjf__media {
    flex-basis: 125px;
    max-width: 125px;

    min-height: 84px;
    align-self: stretch;
}

.smjf--strip .smjf__body {
    padding: 11px 14px;
    gap: 3px;
}

.smjf--strip .smjf__item-title {
    font-size: 14px;
}

.smjf--strip .smjf__excerpt {
    display: none;
}

.smjf--strip .smjf__read {
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| 12. Compact Layout
|--------------------------------------------------------------------------
|
| Small feature for My Account and side panels.
|
|--------------------------------------------------------------------------
*/

.smjf--compact {
    width: calc(100% - 108px);
    max-width: 1118px;

    margin: 12px auto;
}

.smjf--compact .smjf__item {
    border-left: 3px solid var(--smjf-gold);
}

.smjf--compact .smjf__body {
    padding: 12px;
    gap: 4px;
}

.smjf--compact .smjf__item-title {
    font-size: 14px;
}

.smjf--compact .smjf__read {
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| 13. Size Variations
|--------------------------------------------------------------------------
*/

/* Extra Small */

.smjf--xs .smjf__body {
    padding: 9px 11px;
    gap: 4px;
}

.smjf--xs .smjf__item-title {
    font-size: 13px;
}

/* Small */

.smjf--sm .smjf__item-title {
    font-size: 14px;
}

/* Large */

.smjf--lg .smjf__item-title {
    font-size: 21px;
}

.smjf--lg .smjf__body {
    padding: 22px;
}


/*
|--------------------------------------------------------------------------
| 14. In-Feed Placement
|--------------------------------------------------------------------------
|
| Full-width within search result grids.
|
|--------------------------------------------------------------------------
*/

.smjf--in-feed {
    grid-column: 1 / -1;

    width: 100%;

    margin: 8px 0;
}


/*
|--------------------------------------------------------------------------
| 15. Journal Reverse Links
|--------------------------------------------------------------------------
|
| Related pillar pages, city pages and articles.
|
|--------------------------------------------------------------------------
*/

.smjf-backlinks {
    border-top: 1px solid #e5e5e5;

    margin: 34px 0 14px;
    padding-top: 20px;
}

.smjf-backlinks ul {
    display: flex;
    flex-wrap: wrap;

    list-style: none !important;

    gap: 8px 22px;

    margin: 0 !important;
    padding: 0 !important;
}

.smjf-backlinks li {
    font-size: 14px;
    margin: 0 !important;
}

.smjf-backlinks li span {
    color: #666;
}

.smjf-backlinks a {
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| 16. Container Responsive Rules
|--------------------------------------------------------------------------
|
| Adjust according to available component width,
| rather than viewport width alone.
|
|--------------------------------------------------------------------------
*/

@container (max-width: 450px) {

    .smjf--featured .smjf__item {
        display: block;
    }

    .smjf--featured .smjf__media {
        max-width: none;
        min-height: 0;

        aspect-ratio: 16 / 9;
    }

    .smjf--featured .smjf__image {
        aspect-ratio: 16 / 9;
    }

    .smjf--featured .smjf__body {
        padding: 12px;
    }

    .smjf--cards .smjf__items {
        grid-template-columns: 1fr;
    }

    .smjf--strip .smjf__media {
        flex-basis: 80px;
        max-width: 80px;

        min-height: 90px;
    }

    .smjf--strip .smjf__body {
        padding: 8px;
    }

    .smjf--strip .smjf__eyebrow {
        font-size: 9px;
    }
}



/*
|--------------------------------------------------------------------------
| SM Journal - Mobile Layout
|--------------------------------------------------------------------------
|
| Maintain 10px horizontal spacing on mobile.
| Override desktop width and max-width.
|
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    /*
    | Main Journal Container
    */

    .smjf {
        width: calc(100% - 20px);
        max-width: 100%;

        margin: 20px auto;
    }

    /*
    | Featured Article
    */

    .smjf--featured .smjf__item {
        gap: 14px;
    }

    .smjf--featured .smjf__body {
        padding: 12px;
    }

    /*
    | Strip and Compact Layouts
    */

    .smjf--strip,
    .smjf--compact {
        width: calc(100% - 20px);
        max-width: 100%;

        margin: 12px auto;
    }

    /*
    | Search Feed - Full Width
    */

    .smjf--in-feed {
        grid-column: 1 / -1;

        width: 100%;
        max-width: 100%;

        margin: 12px 0;
    }

}



/*
|--------------------------------------------------------------------------
| 18. Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {

    .smjf--strip .smjf__media {
        display: none;
    }
}
