/* =========================================================
   MJ STUDIO65
   ARTICLE PAGE
   ========================================================= */


/* =========================================================
   ARTICLE HERO
   ========================================================= */

.mj-article-hero-wrap {
    margin-top: 32px;
}


.mj-article-hero {
    position: relative;

    width: 100%;
    min-height: 620px;

    display: flex;
    align-items: flex-end;

    background: var(--mj-dark);

    border-radius: 18px;
    overflow: hidden;
}

.mj-article-hero__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.mj-article-hero__shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.10) 15%,
            rgba(0, 0, 0, 0.42) 58%,
            rgba(0, 0, 0, 0.88) 100%
        );
}


.mj-article-hero__content {
    position: relative;
    z-index: 2;

    width: min(100%, 980px);

    padding-top: 180px;
    padding-bottom: 62px;

    color: #ffffff;
}


.mj-article-hero__category {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--mj-orange);

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.mj-article-hero h1 {
    max-width: 960px;

    margin: 0;

    font-size: clamp(2.4rem, 5vw, 4.9rem);
    line-height: 1.02;

    letter-spacing: -0.035em;
}


.mj-article-hero__excerpt {
    max-width: 780px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.86);

    font-size: 1.08rem;
    line-height: 1.65;
}


.mj-article-hero__meta {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 22px;

    margin-top: 26px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.82rem;
}


.mj-article-hero__meta a {
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;
}


.mj-article-hero__meta a:hover {
    color: var(--mj-orange);
}



/* =========================================================
   ARTICLE PAGE
   ========================================================= */

.mj-article-page {
    padding: 54px 0 32px;
}



/* =========================================================
   SHARE ROW
   ========================================================= */

.mj-article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 48px;
    margin-bottom: 34px;
    padding-bottom: 24px;

    border-bottom: 1px solid var(--mj-border);
}


.mj-article-share__label {
    color: var(--mj-text-secondary);

    font-size: 0.78rem;
    font-weight: 750;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.mj-article-share__buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


.mj-article-share__buttons a,
.mj-article-share__buttons button {
    min-height: 38px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--mj-border);
    border-radius: 999px;

    background: var(--mj-surface);

    color: var(--mj-text);

    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;
}


.mj-article-share__buttons a:hover,
.mj-article-share__buttons button:hover {
    border-color: var(--mj-orange);

    color: var(--mj-orange);
}



/* =========================================================
   KEY TAKEAWAYS
   ========================================================= */

.mj-article-takeaways {
    max-width: var(--mj-article);

    margin-bottom: 42px;

    padding: 26px 28px;

    border-left: 4px solid var(--mj-orange);

    background: var(--mj-surface);
}


.mj-article-takeaways h2 {
    margin: 0 0 14px;

    font-size: 1.05rem;
}


.mj-article-takeaways ul {
    margin: 0;
    padding-left: 20px;
}


.mj-article-takeaways li {
    margin: 7px 0;

    color: var(--mj-text-secondary);
}



/* =========================================================
   ARTICLE CONTENT + SIDEBAR
   ========================================================= */

.mj-article-layout {
    display: grid;

    grid-template-columns:
        minmax(0, var(--mj-article))
        minmax(240px, 300px);

    justify-content: space-between;

    gap: 72px;

    align-items: start;
}


.mj-article-main {
    min-width: 0;

    padding: 34px;

    background: var(--mj-surface);

    border: 1px solid var(--mj-border);
    border-radius: 12px;

    overflow: hidden;
}



/* =========================================================
   ARTICLE BODY
   ========================================================= */

.mj-article-body {
    color: var(--mj-text);

    font-size: 1.04rem;
    line-height: 1.82;
    border-radius: 12px;
}


.mj-article-body > *:first-child {
    margin-top: 0;
}


.mj-article-body p {
    margin: 0 0 1.55em;
}


.mj-article-body h2 {
    margin: 2.2em 0 0.72em;

    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.18;

    letter-spacing: -0.02em;
}

.mj-article-body h2,
.mj-article-body h3 {
    scroll-margin-top: 110px;
}


.mj-article-body h3 {
    margin: 1.9em 0 0.7em;

    font-size: 1.4rem;
    line-height: 1.25;
}


.mj-article-body h4 {
    margin: 1.7em 0 0.6em;

    font-size: 1.12rem;
}


.mj-article-body a {
    color: var(--mj-orange);

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


.mj-article-body strong {
    font-weight: 750;
}


.mj-article-body ul,
.mj-article-body ol {
    margin: 0 0 1.5em;

    padding-left: 26px;
}


.mj-article-body li {
    margin: 8px 0;
}


.mj-article-body blockquote {
    margin: 34px 0;

    padding: 8px 0 8px 24px;

    border-left: 4px solid var(--mj-orange);

    color: var(--mj-text-secondary);

    font-size: 1.18rem;
    line-height: 1.65;
}


.mj-article-body img {
    width: 100%;

    margin: 34px 0;

    border-radius: var(--mj-radius-md);
}



/* =========================================================
   SIDEBAR
   ========================================================= */

.mj-article-sidebar {
    position: sticky;
    top: 90px;

    align-self: start;
}

/* Keep enough viewport space for the brand card */
.mj-article-toc {
    max-height: calc(100vh - 370px);
    overflow-y: auto;

    scrollbar-width: thin;
}

.mj-article-sidebar {
    padding-bottom: 20px;
}


/* Small spacing between TOC and brand card */
.mj-article-sidebar .mj-brand-card {
    margin-top: 20px;
}


.mj-article-toc {
    padding: 24px;

    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);

    background: var(--mj-surface);
}


.mj-article-toc h2 {
    margin: 0 0 16px;

    font-size: 0.92rem;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.mj-article-toc nav {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.mj-article-toc a {
    color: var(--mj-text-secondary);

    font-size: 0.84rem;
    line-height: 1.4;

    text-decoration: none;
}

.mj-article-toc a.is-subheading {
    padding-left: 14px;

    color: var(--mj-text-light);

    font-size: 0.8rem;
}


.mj-article-toc a:hover {
    color: var(--mj-orange);
}



/* =========================================================
   MJ STUDIO65 BRAND CARD
   ========================================================= */

.mj-brand-card {
    margin-top: 24px;

    padding: 28px;

    border-radius: var(--mj-radius-md);

    background: #171717;

    color: #ffffff;
}


.mj-brand-card__name {
    display: block;

    font-size: 1.35rem;
    font-weight: 800;
}


.mj-brand-card__name span {
    color: var(--mj-orange);
}


.mj-brand-card__sub {
    display: block;

    margin-top: 2px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.64rem;
    font-weight: 700;

    letter-spacing: 0.14em;
}


.mj-brand-card p {
    margin: 24px 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 0.9rem;
    line-height: 1.7;
}


.mj-brand-card a {
    color: var(--mj-orange);

    font-size: 0.82rem;
    font-weight: 750;

    text-decoration: none;
}



/* =========================================================
   SOURCES / FOOTNOTES
   ========================================================= */

.mj-article-sources {
    margin-top: 60px;
    padding-top: 32px;

    border-top: 1px solid var(--mj-border);
}


.mj-article-sources h2 {
    margin: 0 0 18px;

    font-size: 1.35rem;
}


.mj-article-sources ol,
.mj-article-sources ul {
    padding-left: 22px;
}


.mj-article-sources li {
    margin: 10px 0;

    color: var(--mj-text-secondary);

    font-size: 0.88rem;
    line-height: 1.6;
}



/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.mj-related-articles {
    margin-top: 78px;
    padding-top: 52px;

    border-top: 1px solid var(--mj-border);
}


.mj-related-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


.mj-related-card {
    overflow: hidden;

    border-radius: var(--mj-radius-md);

    background: var(--mj-surface);
}


.mj-related-card img {
    width: 100%;
    height: 190px;

    object-fit: cover;
}


.mj-related-card__content {
    padding: 20px;
}


.mj-related-card__content h3 {
    margin: 8px 0 0;

    font-size: 1.02rem;
    line-height: 1.35;
}


.mj-related-card__content h3 a {
    text-decoration: none;
}


/* =========================================================
   COMMENTS
   ========================================================= */

.mj-article-comments {
    padding: 72px 0;

    background: var(--mj-surface-soft);
}


.mj-article-comments__inner {
    width: min(100%, var(--mj-article));

    margin-inline: auto;
}


.mj-comment-form {
    margin-bottom: 46px;

    padding: 26px;

    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);

    background: var(--mj-surface);
}


.mj-comment-form textarea {
    display: block;

    width: 100%;
    min-height: 140px;

    padding: 16px;

    resize: vertical;

    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-sm);

    background: var(--mj-bg);

    color: var(--mj-text);

    font: inherit;
    line-height: 1.6;
}


.mj-comment-form textarea:focus {
    border-color: var(--mj-orange);

    outline: none;
}


.mj-comment-form__actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 16px;
}


.mj-comments-list {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.mj-comment {
    display: grid;

    grid-template-columns: 42px minmax(0, 1fr);

    gap: 16px;

    padding: 22px;

    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);

    background: var(--mj-surface);
}


.mj-comment__avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--mj-dark);

    color: #ffffff;

    font-size: 0.86rem;
    font-weight: 800;
}


.mj-comment__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px 12px;

    margin-bottom: 8px;
}


.mj-comment__meta strong {
    font-size: 0.86rem;
}


.mj-comment__meta span {
    color: var(--mj-text-light);

    font-size: 0.74rem;
}


.mj-comment__content p {
    margin: 0;

    color: var(--mj-text-secondary);

    font-size: 0.94rem;
    line-height: 1.65;
}


.mj-comments-empty {
    padding: 26px;

    border: 1px dashed var(--mj-border-dark);
    border-radius: var(--mj-radius-md);

    text-align: center;
}


.mj-comments-empty p {
    margin: 0;

    color: var(--mj-text-secondary);
}

/* =========================================================
   PREVIOUS / NEXT ARTICLE
   ========================================================= */

.mj-article-navigation {
    padding: 24px 0;

    border-top: 1px solid var(--mj-border);
    border-bottom: 1px solid var(--mj-border);

    background: var(--mj-surface);
}


.mj-article-navigation__grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;
}


.mj-article-navigation__item {
    min-width: 0;
}


.mj-article-navigation__link {
    min-height: 132px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 24px 26px;

    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);

    background: var(--mj-bg);

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.mj-article-navigation__link:hover {
    border-color: var(--mj-orange);

    background: var(--mj-surface);

    transform: translateY(-2px);
}


.mj-article-navigation__label {
    margin-bottom: 8px;

    color: var(--mj-orange);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.mj-article-navigation__link strong {
    color: var(--mj-text);

    font-size: 1rem;
    line-height: 1.45;
}


.mj-article-navigation__link--next {
    text-align: right;
}

.mj-related-card__image-link {
    display: block;

    overflow: hidden;
}


.mj-related-card__image-link img {
    transition: transform 0.3s ease;
}


.mj-related-card:hover .mj-related-card__image-link img {
    transform: scale(1.025);
}


.mj-related-card__category {
    color: var(--mj-orange);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.mj-related-card__content h3 a {
    color: var(--mj-text);

    text-decoration: none;
}


.mj-related-card__content h3 a:hover {
    color: var(--mj-orange);
}


.mj-related-card__date {
    display: block;

    margin-top: 14px;

    color: var(--mj-text-light);

    font-size: 0.72rem;
}


/* =========================================================
   ARTICLE INLINE IMAGES
   ========================================================= */

.mj-article-body img.article-image-left {
    width: min(46%, 380px);

    float: left;

    margin:
        8px
        28px
        20px
        0;
}


.mj-article-body img.article-image-right {
    width: min(46%, 380px);

    float: right;

    margin:
        8px
        0
        20px
        28px;
}


.mj-article-body img.article-image-full {
    width: 100%;

    float: none;

    margin:
        34px
        0;
}


.mj-article-body::after {
    content: "";

    display: block;
    clear: both;
}


/* =========================================================
   ARTICLE GALLERY
   ========================================================= */

.article-gallery {
    margin: 42px 0;
}


.article-gallery-main {
    overflow: hidden;

    border-radius: var(--mj-radius-md);

    background: var(--mj-dark);
}


.mj-article-body .article-gallery-main-image {
    display: block;

    width: 100%;

    margin: 0;

    border-radius: 0;

    object-fit: cover;
}


.article-gallery-thumbnails,
.article-gallery-strip {
    display: flex;

    gap: 10px;

    width: 100%;

    margin-top: 10px;
    padding-bottom: 4px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
}


.mj-article-body .article-gallery-thumbnail {
    flex: 0 0 150px;

    width: 150px;
    height: 90px;

    margin: 0;

    object-fit: cover;

    border: 2px solid transparent;
    border-radius: var(--mj-radius-sm);

    cursor: pointer;

    opacity: 0.72;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.mj-article-body .article-gallery-thumbnail:hover,
.mj-article-body .article-gallery-thumbnail.active {
    opacity: 1;

    border-color: var(--mj-orange);
}


/* =========================================================
   ARTICLE LIGHTBOX
   ========================================================= */

.article-lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.94);
}


.article-lightbox.active {
    display: flex;
}


.article-lightbox-image {
    display: block;

    max-width: min(92vw, 1500px);
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;
}


.article-lightbox-close,
.article-lightbox-prev,
.article-lightbox-next {
    position: absolute;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #ffffff;

    cursor: pointer;
}


.article-lightbox-close {
    top: 22px;
    right: 28px;

    width: 46px;
    height: 46px;

    font-size: 2.2rem;
}


.article-lightbox-prev,
.article-lightbox-next {
    top: 50%;

    width: 54px;
    height: 70px;

    transform: translateY(-50%);

    font-size: 3rem;
}


.article-lightbox-prev {
    left: 18px;
}


.article-lightbox-next {
    right: 18px;
}

/* =========================================================
   ARTICLE HERO POLISH
   ========================================================= */

.mj-article-hero .mj-article-hero__content {
    box-sizing: border-box;

    width: 100%;

    padding-left: 48px;
    padding-right: 48px;
}

.mj-article-hero__content h1 {
    max-width: 1000px;

    margin-top: 12px;
    margin-bottom: 18px;

    font-size: clamp(2.5rem, 3.5vw, 3.5rem);
    line-height: 1.02;

    letter-spacing: -0.035em;
}

.mj-article-hero__excerpt {
    max-width: 760px;

    font-size: 1rem;
    line-height: 1.6;
}

.mj-article-hero__meta {
    margin-top: 18px;
}


/* =========================================================
   ARTICLE YOUTUBE
   ========================================================= */

.article-youtube {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin: 42px 0;

    overflow: hidden;

    border-radius: var(--mj-radius-md);

    background: var(--mj-dark);
}


.article-youtube iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .mj-article-layout {
        grid-template-columns: minmax(0, 1fr) 250px;

        gap: 42px;
    }


    .mj-article-hero {
        min-height: 560px;
    }

}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .mj-article-hero {
        min-height: 520px;
    }

    .mj-article-hero {
        border-radius: 8px;
    }


    .mj-article-hero__content {
        padding-top: 150px;
        padding-bottom: 38px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .mj-article-main {
    padding: 22px;
}


    .mj-article-hero h1 {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }


    .mj-article-page {
        padding-top: 34px;
    }


    .mj-article-share {
        align-items: flex-start;

        flex-direction: column;
    }


    .mj-article-layout {
        display: block;
    }


    .mj-article-sidebar {
        position: static;

        margin-top: 48px;
    }


    .mj-article-toc {
        padding: 20px;
    }


    .mj-brand-card {
        margin-top: 18px;
    }


    .mj-related-grid {
        grid-template-columns: 1fr;
    }


    .mj-related-card img {
        height: 220px;
    }

    .mj-article-navigation {
        padding: 42px 0;
    }


    .mj-article-navigation__grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .mj-article-navigation__link {
        min-height: auto;
    }


    .mj-article-navigation__link--next {
        text-align: left;
    }

    .mj-article-body img.article-image-left,
    .mj-article-body img.article-image-right {
        width: 100%;

        float: none;

        margin:
            28px
            0;
    }


    .article-gallery-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .mj-article-body .article-gallery-thumbnail {
        height: 78px;
    }


    .article-lightbox {
        padding: 24px;
    }


    .article-lightbox-prev {
        left: 4px;
    }


    .article-lightbox-next {
        right: 4px;
    }

    .mj-article-hero .mj-article-hero__content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mj-article-hero__content h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.04;
    }

    .mj-article-hero__excerpt {
        font-size: 0.95rem;
    }

    .mj-article-sidebar {
        position: static;
        padding-bottom: 0;
    }

    .mj-article-toc {
        max-height: none;
        overflow-y: visible;
    }

    .mj-article-hero-wrap {
        margin-top: 18px;
    }

    .mj-article-hero {
        border-radius: 12px;
    }

     .mj-article-body .article-gallery-thumbnail {
        flex-basis: 130px;

        width: 130px;
        height: 82px;
    }


}



/* =========================================================
   RESPONSIVE YOUTUBE EMBED
   ========================================================= */

@media (max-width: 768px) {

    .article-youtube {
        margin: 30px 0;
    }

}


@media (max-width: 480px) {

    .article-youtube {
        margin: 24px 0;

        border-radius: var(--mj-radius-sm);
    }

}



/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .mj-article-hero {
        min-height: 470px;
    }


    .mj-article-hero__content {
        padding-top: 120px;
        padding-bottom: 30px;
    }


    .mj-article-hero__excerpt {
        font-size: 0.95rem;
    }


    .mj-article-hero__meta {
        font-size: 0.76rem;
    }


    .mj-article-body {
        font-size: 1rem;
        line-height: 1.75;
    }


    .mj-article-takeaways {
        padding: 22px 20px;
    }


    .mj-related-card img {
        height: 190px;
    }

    .mj-article-comments {
        padding: 52px 0;
    }

    .mj-comment-form {
        padding: 20px;
    }

    .mj-comment {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        padding: 18px;
    }

    .mj-comment__avatar {
        width: 36px;
        height: 36px;
    }

    .article-gallery-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .mj-article-body .article-gallery-thumbnail {
        height: 74px;
    }


    .article-lightbox {
        padding: 16px;
    }


    .article-lightbox-prev,
    .article-lightbox-next {
        width: 40px;

        font-size: 2.4rem;
    }

      .mj-article-body .article-gallery-thumbnail {
        flex-basis: 115px;

        width: 115px;
        height: 74px;
    }

}



    