/* =========================================================
   ARTICLE PAGE LAYOUT
   ========================================================= */

.semantic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
        "main aside"
        "related aside";
    gap: 0 48px;
    padding: 20px 0 60px;
}

.semantic-layout > main {
    grid-area: main;
    min-width: 0;
}

.semantic-layout > .related {
    grid-area: related;
    min-width: 0;
}

.semantic-layout > .rsidebar {
    grid-area: aside;
    min-width: 0;
}


/* =========================================================
   MAIN ARTICLE
   ========================================================= */

.main-article {
    min-width: 0;
    font-family: var(--sans);
    font-size: var(--body-font-size);
    font-weight: var(--font-weight-body);
    line-height: 1.5;
}

.main-article > h1 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: var(--content-h1-size);
    font-weight: var(--h1-weight);
    line-height: 1.3;
}

.articleBody {
    min-width: 0;
}

.articleBody h2 {
    margin: 20px 0 10px;
    font-family: var(--serif);
    font-size: var(--content-h2-size);
    font-weight: var(--h2-weight);
    line-height: 1.15;
}

.articleBody h3 {
    margin: 15px 0 10px;
    font-family: var(--serif);
    font-size: var(--content-h3-size);
    font-weight: var(--h3-weight);
    line-height: 1.25;
}

.articleBody img {
    display: block;
    max-width: 100%;
    height: auto;
}

.articleBody > div[align="center"] img {
    margin-inline: auto;
}


/* =========================================================
   FLOATING ARTICLE IMAGES
   ========================================================= */

.articleBody .left-image {
    float: left;
    width: 25%;
    margin: 0;
    padding: .5rem 1rem .3rem 0;
    font-size: 85%;
}

.articleBody .right-image {
    float: right;
    width: 40%;
    margin: 0;
    padding: .5rem 0 .3rem 1rem;
    font-size: 85%;
}

.articleBody .left-image img,
.articleBody .right-image img {
    width: 100%;
    height: auto;
}


/* =========================================================
   BLOCKQUOTES
   ========================================================= */

.articleBody blockquote {
    margin: 15px 0 0;
    padding: 20px;
    border: 1px solid var(--theme-accent);
    background: var(--page-background);
}

.articleBody blockquote::after {
    display: table;
    clear: both;
    content: "";
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.related > h2 {
    margin: 6px 0 20px;
    font-family: var(--serif);
    font-size: var(--content-h2-size);
    font-weight: var(--h2-weight);
    line-height: 1.2;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-color);
}

.related-article-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--page-background);
}

.related-article-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .3s ease;
}

.related-card:hover .related-article-image {
    transform: scale(1.025);
}

.related-card-body {
    padding: 18px;
}

.related-card-title {
    margin: 7px 0;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.related-card-title a {
    color: inherit;
    text-decoration: none;
}

.related-card-title a:hover,
.related-card-title a:focus {
    color: var(--theme-color);
}

.related-article-intro {
    margin: 0 0 10px;
    color: var(--muted-color);
    font-size: 13px;
    line-height: 1.5;
}

.related .divider-banner {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 75%;
    margin: 0 auto;
}

.related > .load {
    margin-top: 24px;
    text-align: center;
}
/* =========================================================
   ARTICLE NAVIGATION
   ========================================================= */

.pagenavigation {
    padding: 42px 0 24px;
    border-top: 1px solid var(--border-color);
}

.pagination-wrppaer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pagenavigation .previous,
.pagenavigation .next {
    width: auto;
    min-width: 120px;
    min-height: 46px;
    max-width: 45%;
    padding: 11px 16px;
	
	justify-content: center;
    gap: 8px;
    text-align: center;
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.pagenavigation .previous:hover {
    transform: translateX(-3px);
}

.pagenavigation .next:hover {
    transform: translateX(3px);
}

.pagenavigation .previous:focus-visible,
.pagenavigation .next:focus-visible {
    outline: 3px solid color-mix(
        in srgb,
        var(--theme-color) 30%,
        transparent
    );
    outline-offset: 3px;
}
/* =========================================================
   ARTICLE CONTACT MODULE
   ========================================================= */

.mgs-contact-layout {
    margin: 5px auto !important;
}

.article-contact-form .mgs-webforms__field label {
    font-weight: 500 !important;
}

.article-contact-form .mgs-webforms__field {
    font-size: 16px !important;
}
/* =========================================================
   ARTICLE FOOTER
   ========================================================= */

.article-footer {
    clear: both;
    margin-top: 38px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-color);
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .035);
	clear: both;
}


/* Top area */

.article-footer-top {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 30px;
    padding: 24px 28px;
}

/* =========================================================
   ARTICLE PAGE RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .semantic-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "related"
            "aside";
        gap: 36px;
    }

    .semantic-layout > .related {
        margin-top: 12px;
    }

    .semantic-layout > .rsidebar {
        padding-left: 0;
        border-left: 0;
    }

}


@media (max-width: 650px) {

    .semantic-layout {
        padding-top: 16px;
        padding-bottom: 40px;
        gap: 30px;
    }

    .related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .related .divider-banner {
        max-width: 100%;
    }

    .articleBody .left-image,
    .articleBody .right-image {
        float: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 16px 0;
    }

    .articleBody .left-image img,
    .articleBody .right-image img {
        margin-inline: auto;
    }
.pagenavigation {
    padding: 30px 0 16px;
}

.pagination-wrppaer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pagenavigation .previous,
.pagenavigation .next {
    width: auto;
    min-width: 105px;
    min-height: 44px;
    max-width: 48%;
    padding: 10px 14px;
	justify-content: center;
	gap: 8px;
	text-align: center;
}

.pagenavigation .next {
    margin-left: auto;
}

}
/* =========================================================
   META + SHARE
   ========================================================= */

.article-footer-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-meta {
    display: grid;
    gap: 10px;
}

.article-meta > div,
.share {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-meta-label {
    min-width: 92px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.article-meta-value {
    font-size: 14px;
    color: var(--text-color);
}


/* Share */

.share ul {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.share li {
    margin: 0;
}

.share a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--theme-color);
    text-decoration: none;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.share a:hover {
    transform: translateY(-2px);
    border-color: var(--theme-accent);
    background: var(--page-background);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--theme-color) 9%, transparent);
}


/* =========================================================
   FEEDBACK
   ========================================================= */

.article-feedback {
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--page-background);
}

.article-feedback-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 15px;
}

.article-feedback-kicker,
.article-contact-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.article-feedback-heading strong {
    font-size: 16px;
    line-height: 1.35;
    color: var(--text-color);
}


/* Rating choices */

.article-feedback-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.article-feedback-options button {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 78px;
    padding: 10px 7px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--surface-color);
    color: var(--muted-color);

    font: inherit;
    font-size: 11px;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.article-feedback-options button:hover {
    transform: translateY(-3px);
    border-color: var(--theme-accent);
    background: var(--surface-color);
    box-shadow: 0 7px 16px rgba(0, 0, 0, .065);
}

.article-feedback-options button:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

.article-feedback-emoji {
    display: block;
    font-size: 29px;
    line-height: 1;
    transition: transform .2s ease;
}

.article-feedback-options button:hover .article-feedback-emoji {
    transform: scale(1.12);
}

.article-feedback-options button:disabled {
    cursor: default;
    opacity: .45;
    transform: none;
}

.article-feedback-form.is-voted
.article-feedback-options button {
    pointer-events: none;
}

.article-feedback-message {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #287047;
}


/* =========================================================
   CONTACT CTA
   ========================================================= */

.article-contact {
    padding: 21px 28px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient( 90deg, #f4faf7 0%, #ffe994 100% );
}

.article-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.article-contact-text {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-color);
}

.article-contact-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    flex: 0 0 auto;

    min-width: 138px;
    padding: 11px 18px;

    border: 0;
    border-radius: 7px;

    background: var(--theme-color);
    color: var(--theme-on-color);

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 5px 12px color-mix(in srgb, var(--theme-color) 16%, transparent);

    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.article-contact-toggle:hover {
    transform: translateY(-2px);
    background: var(--theme-accent);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--theme-color) 22%, transparent);
}

.article-contact-toggle span {
    font-size: 16px;
    transition: transform .2s ease;
}

.article-contact-toggle:hover span {
    transform: translateX(3px);
}


/* =========================================================
   EXPANDING CONTACT FORM
   ========================================================= */

.article-contact-form {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;

    transition:
        grid-template-rows .35s ease,
        opacity .25s ease,
        margin-top .35s ease,
        visibility 0s linear .35s;
}

.article-contact-form > .mgs-webforms {
    min-height: 0;
    overflow: hidden;
}

.article-contact-form.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    margin-top: 22px;

    transition:
        grid-template-rows .35s ease,
        opacity .25s ease,
        margin-top .35s ease,
        visibility 0s;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .article-footer {
        border-radius: 10px;
    }

    .article-footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .article-footer-meta {
        padding-bottom: 2px;
    }

    .article-feedback {
        padding: 18px;
    }

    .article-contact {
        padding: 19px 20px;
    }

    .article-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .article-contact-toggle {
        width: 100%;
    }

    .article-meta > div,
    .share {
        align-items: center;
    }

    .article-meta-label {
        min-width: 86px;
    }

    .pagenavigation {
        padding: 30px 0 16px;
    }

    .pagination-wrppaer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .pagenavigation .previous,
    .pagenavigation .next {
        width: auto;
        min-width: 105px;
        min-height: 44px;
        max-width: 48%;
        padding: 10px 14px;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .pagenavigation .next {
        margin-left: auto;
    }
}