/* ==========================================================
   Article detail
   ========================================================== */

.sn-article-detail {
    display: block;
    width: 100%;

    margin: 0;
    padding: 0;

    background: #fff;
    color: #333;
}

.sn-article-detail,
.sn-article-detail * {
    box-sizing: border-box;
}

/* ==========================================================
   Hero
   ========================================================== */

.sn-article-detail__hero {
    position: relative;

    width: 100vw;
    height: 625px;
    min-height: 625px;

    margin-left: calc(50% - 50vw);

    overflow: hidden;
    background: #363936;
}

.sn-article-detail__hero-image {
    position: absolute;
    z-index: 0;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    border: 0;

    object-fit: cover;
    object-position: center center;
}

.sn-article-detail__hero-placeholder {
    position: absolute;
    z-index: 0;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            #525752 0%,
            #2e332f 100%
        );
}

.sn-article-detail__hero-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 14, 11, 0.52) 0%,
            rgba(10, 14, 11, 0.29) 36%,
            rgba(10, 14, 11, 0.08) 68%,
            rgba(10, 14, 11, 0.02) 100%
        );

    pointer-events: none;
}

.sn-article-detail__hero-inner {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: 1180px;
    height: 100%;

    margin: 0 auto;
    padding: 0 24px;
}

.sn-article-detail__hero-content {
    width: 100%;
    max-width: 650px;
}

/* ==========================================================
   Hero title
   ========================================================== */

.sn-article-detail__title {
    max-width: 650px;
    margin: 0;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: 0;

    color: #fff;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sn-article-detail__title::before,
.sn-article-detail__title::after {
    content: none;
}

/* ==========================================================
   More button
   ========================================================== */

.sn-article-detail__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 154px;
    min-height: 60px;

    margin-top: 68px;
    padding: 0 28px;

    border: 0;
    border-radius: 999px;

    background: #005b48;
    color: #fff;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.sn-article-detail__more:hover,
.sn-article-detail__more:focus {
    background: #004837;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.sn-article-detail__more:active {
    transform: translateY(0);
}

/* ==========================================================
   Article body
   ========================================================== */

.sn-article-detail__body {
    display: block;
    width: 100%;

    margin: 0;
    padding: 70px 0 86px;

    background: #fff;
    scroll-margin-top: 118px;
}

.sn-article-detail__inner {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================
   Breadcrumbs
   ========================================================== */

.sn-article-detail__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    width: 100%;

    margin: 0 0 50px;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;

    color: rgba(40, 40, 40, 0.42);
}

.sn-article-detail__breadcrumbs a {
    color: rgba(40, 40, 40, 0.48);
    text-decoration: none;

    transition: color 0.2s ease;
}

.sn-article-detail__breadcrumbs a:hover,
.sn-article-detail__breadcrumbs a:focus {
    color: #5f936f;
    text-decoration: none;
}

.sn-article-detail__breadcrumbs span {
    color: rgba(40, 40, 40, 0.42);
}

/* ==========================================================
   Detail text
   ========================================================== */

.sn-article-detail__text {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.68;
    font-weight: 400;

    color: rgba(40, 40, 40, 0.76);
}

.sn-article-detail__text > *:first-child {
    margin-top: 0 !important;
}

.sn-article-detail__text > *:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================
   Paragraphs
   ========================================================== */

.sn-article-detail__text p {
    max-width: 100%;

    margin: 0 0 26px;
    padding: 0;

    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;

    color: inherit;
}

/* ==========================================================
   Headings
   ========================================================== */

.sn-article-detail__text h2 {
    margin: 54px 0 30px;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0;

    color: #333;
}

.sn-article-detail__text h3 {
    margin: 44px 0 24px;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 500;

    color: #333;
}

.sn-article-detail__text h4 {
    margin: 36px 0 20px;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 500;

    color: #333;
}

.sn-article-detail__text h2::before,
.sn-article-detail__text h2::after,
.sn-article-detail__text h3::before,
.sn-article-detail__text h3::after,
.sn-article-detail__text h4::before,
.sn-article-detail__text h4::after {
    content: none;
}

/* ==========================================================
   Links
   ========================================================== */

.sn-article-detail__text a {
    color: #5f936f;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition: color 0.2s ease;
}

.sn-article-detail__text a:hover {
    color: #477653;
}

/* ==========================================================
   Lists
   ========================================================== */

.sn-article-detail__text ul,
.sn-article-detail__text ol {
    margin: 0 0 28px;
    padding-left: 25px;

    color: inherit;
}

.sn-article-detail__text li {
    margin: 0 0 9px;
    padding-left: 4px;

    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.sn-article-detail__text li:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Images
   ========================================================== */

.sn-article-detail__text img {
    display: block;
    max-width: 100%;
    height: auto;

    margin: 38px auto;

    border: 0;
}

.sn-article-detail__text figure {
    max-width: 100%;
    margin: 38px 0;
}

.sn-article-detail__text figure img {
    margin: 0;
}

.sn-article-detail__text figcaption {
    margin-top: 10px;

    font-size: 13px;
    line-height: 1.45;
    color: rgba(40, 40, 40, 0.5);
}

/* ==========================================================
   Quotes
   ========================================================== */

.sn-article-detail__text blockquote {
    position: relative;

    margin: 40px 0;
    padding: 26px 30px 26px 34px;

    border: 0;
    border-left: 3px solid #5f936f;

    background: #f7f7f5;

    font-size: 17px;
    line-height: 1.6;
    font-style: normal;
    color: rgba(40, 40, 40, 0.78);
}

.sn-article-detail__text blockquote p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Tables
   ========================================================== */

.sn-article-detail__text table {
    width: 100%;
    margin: 38px 0;

    border-collapse: collapse;
    border-spacing: 0;

    font-size: 14px;
    line-height: 1.5;
}

.sn-article-detail__text th,
.sn-article-detail__text td {
    padding: 14px 16px;

    border: 1px solid #e4e4e0;

    text-align: left;
    vertical-align: top;
}

.sn-article-detail__text th {
    background: #f7f7f5;
    color: #333;
    font-weight: 500;
}

/* ==========================================================
   Related articles
   ========================================================== */

.sn-article-detail__related {
    width: 100%;

    margin: 48px 0 0;
    padding: 0;
}

.sn-article-detail__related-title {
    margin: 0 0 24px;
    padding: 0;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 400;

    color: #444;
}

.sn-article-detail__related-title::before,
.sn-article-detail__related-title::after {
    content: none;
}

.sn-article-detail__related-list {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;

    width: 100%;
}

.sn-article-detail__related-link {
    display: inline-flex;
    align-items: center;

    min-height: 52px;
    max-width: 100%;

    padding: 12px 22px;

    border: 1px solid #d9d9d6;
    background: #f4f4f2;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;

    color: rgba(40, 40, 40, 0.72);
    text-decoration: none;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.sn-article-detail__related-link:hover,
.sn-article-detail__related-link:focus {
    border-color: #5f936f;
    background: #fff;

    color: #5f936f;
    text-decoration: none;
}

/* ==========================================================
   Bottom navigation
   ========================================================== */

.sn-article-detail__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 54px;
    padding-top: 0;
}

.sn-article-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    color: #333;
    text-decoration: none;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;

    transition: color 0.2s ease;
}

.sn-article-detail__back:hover,
.sn-article-detail__back:focus {
    color: #5f936f;
    text-decoration: none;
}

.sn-article-detail__back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: rgba(40, 40, 40, 0.28);

    font-size: 25px;
    line-height: 1;
    font-weight: 300;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.sn-article-detail__back:hover
.sn-article-detail__back-arrow {
    color: #5f936f;
    transform: translateX(-3px);
}

/* ==========================================================
   Share button
   ========================================================== */

.sn-article-detail__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: rgba(40, 40, 40, 0.28);

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.sn-article-detail__share:hover,
.sn-article-detail__share:focus {
    background: #f4f4f2;
    color: #5f936f;
}

.sn-article-detail__share:active {
    transform: scale(0.96);
}

.sn-article-detail__share.is-copied {
    background: #5f936f;
    color: #fff;
}

/* ==========================================================
   Focus
   ========================================================== */

.sn-article-detail a:focus-visible,
.sn-article-detail button:focus-visible {
    outline: 2px solid #5f936f;
    outline-offset: 3px;
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 1199px) {
    .sn-article-detail__hero-inner,
    .sn-article-detail__inner {
        max-width: 100%;
        padding-right: 24px;
        padding-left: 24px;
    }

    .sn-article-detail__hero {
        height: 560px;
        min-height: 560px;
    }

    .sn-article-detail__title {
        max-width: 600px;
        font-size: 42px;
    }
}

@media (max-width: 991px) {

    .sn-article-detail__hero {
        height: 500px;
        min-height: 500px;
    }

    .sn-article-detail__hero-content {
        max-width: 560px;
    }

    .sn-article-detail__title {
        max-width: 560px;
        font-size: 38px;
    }

    .sn-article-detail__more {
        min-height: 54px;
        margin-top: 48px;
    }

    .sn-article-detail__body {
        padding-top: 52px;
        scroll-margin-top: 88px;
    }

    .sn-article-detail__breadcrumbs {
        margin-bottom: 40px;
    }

    .sn-article-detail__text h2,
    .sn-article-detail__related-title {
        font-size: 30px;
    }
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 767px) {

    .sn-article-detail__hero {
        height: 430px;
        min-height: 430px;
    }

    .sn-article-detail__hero-image {
        object-position: center center;
    }

    .sn-article-detail__hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(10, 14, 11, 0.58) 0%,
                rgba(10, 14, 11, 0.28) 100%
            );
    }

    .sn-article-detail__hero-inner,
    .sn-article-detail__inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .sn-article-detail__hero-content {
        max-width: 100%;
    }

    .sn-article-detail__title {
        max-width: 100%;

        font-size: 31px;
        line-height: 1.16;
    }

    .sn-article-detail__more {
        min-width: 136px;
        min-height: 48px;

        margin-top: 38px;
        padding: 0 22px;

        font-size: 14px;
    }

    .sn-article-detail__body {
        padding: 38px 0 58px;
        scroll-margin-top: 76px;
    }

    .sn-article-detail__breadcrumbs {
        gap: 7px;

        margin-bottom: 32px;

        font-size: 11px;
    }

    .sn-article-detail__text {
        font-size: 15px;
        line-height: 1.65;
    }

    .sn-article-detail__text p {
        margin-bottom: 22px;
    }

    .sn-article-detail__text h2 {
        margin-top: 42px;
        margin-bottom: 22px;

        font-size: 27px;
        line-height: 1.24;
    }

    .sn-article-detail__text h3 {
        margin-top: 36px;
        margin-bottom: 19px;

        font-size: 23px;
    }

    .sn-article-detail__text h4 {
        margin-top: 30px;
        margin-bottom: 17px;

        font-size: 19px;
    }

    .sn-article-detail__text img,
    .sn-article-detail__text figure {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .sn-article-detail__text blockquote {
        margin: 30px 0;
        padding: 20px 20px 20px 23px;

        font-size: 15px;
    }

    .sn-article-detail__text table {
        display: block;
        width: 100%;

        overflow-x: auto;
    }

    .sn-article-detail__related {
        margin-top: 40px;
    }

    .sn-article-detail__related-title {
        margin-bottom: 20px;

        font-size: 27px;
    }

    .sn-article-detail__related-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sn-article-detail__related-link {
        width: 100%;
        min-height: 50px;
        padding: 12px 16px;

        font-size: 13px;
    }

    .sn-article-detail__bottom {
        margin-top: 42px;
    }
}

/* ==========================================================
   Small mobile
   ========================================================== */

@media (max-width: 479px) {
    .sn-article-detail__hero {
        height: 390px;
        min-height: 390px;
    }

    .sn-article-detail__title {
        font-size: 28px;
    }

    .sn-article-detail__breadcrumbs span:last-child {
        width: 100%;
    }
}