/* OfferFlow universal article V6 */

body[data-page="article"] {
    background: #f7f8fb;
}

.ofpost {
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 0 82px;
    color: #172238;
}

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

.ofpost-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    color: #8793a5;
    font-size: 13px;
}

.ofpost-nav a {
    color: #627188;
    text-decoration: none;
    font-weight: 700;
}

.ofpost-nav a:hover { color: #ea7a25; }

/* Article introduction */

.ofpost-hero {
    position: relative;
    overflow: hidden;
    padding: 57px 65px 60px;
    border: 1px solid #e9eaf0;
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(255,185,117,.25),
            transparent 43%
        ),
        #ffffff;
}

.ofpost-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #d77529;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ofpost-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #f58220;
    border-radius: 50%;
}

.ofpost-hero h1 {
    max-width: 1000px;
    margin: 0 0 21px !important;
    color: #172238 !important;
    font-size: clamp(36px,4.5vw,58px) !important;
    line-height: 1.13 !important;
    letter-spacing: -.045em;
    font-weight: 800 !important;
}

.ofpost-excerpt {
    max-width: 850px;
    margin: 0 0 27px !important;
    color: #617087 !important;
    font-size: 18px !important;
    line-height: 1.75 !important;
}

.ofpost-meta {
    display: flex;
    gap: 13px;
    align-items: center;
    flex-wrap: wrap;
    color: #8793a5;
    font-size: 13px;
}

.ofpost-meta span + span::before {
    content: "·";
    margin-right: 13px;
    color: #b8c2d0;
}

/* Image */

.ofpost-cover {
    margin: 26px 0 0;
    overflow: hidden;
    border-radius: 20px;
    background: #e9edf3;
}

.ofpost-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 570px;
    object-fit: cover;
}

/* Reading surface */

.ofpost-reading {
    margin-top: 24px;
    padding: 50px 65px 58px;
    border: 1px solid #e8ecf2;
    border-radius: 22px;
    background: #ffffff;
}

.ofpost-body {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    overflow-wrap: anywhere;
}

.ofpost-body > :first-child {
    margin-top: 0 !important;
}

.ofpost-body h2,
.ofpost-body h3,
.ofpost-body h4 {
    color: #172238 !important;
    letter-spacing: -.025em;
    line-height: 1.35;
    scroll-margin-top: 95px;
}

.ofpost-body h2 {
    margin: 45px 0 17px !important;
    font-size: clamp(24px,2.5vw,31px) !important;
    font-weight: 800 !important;
}

.ofpost-body h3 {
    margin: 31px 0 13px !important;
    font-size: 22px !important;
    font-weight: 750 !important;
}

.ofpost-body h4 {
    margin: 23px 0 10px !important;
    font-size: 19px !important;
}

.ofpost-body p,
.ofpost-body li {
    color: #46576e !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
}

.ofpost-body p {
    margin: 0 0 21px !important;
}

.ofpost-body ul,
.ofpost-body ol {
    margin: 17px 0 26px !important;
    padding-left: 29px !important;
}

.ofpost-body li {
    margin: 8px 0;
    padding-left: 4px;
}

.ofpost-body li::marker {
    color: #e7802d;
}

.ofpost-body a {
    color: #dc7424;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ofpost-body a:hover { color: #a84f12; }

.ofpost-body strong {
    color: #24344c;
    font-weight: 750;
}

.ofpost-body blockquote {
    margin: 28px 0;
    padding: 22px 27px;
    border-left: 4px solid #f58220;
    border-radius: 0 13px 13px 0;
    background: #fff8f1;
    color: #415168;
}

.ofpost-body blockquote p:last-child {
    margin-bottom: 0 !important;
}

.ofpost-body img,
.ofpost-body video {
    max-width: 100%;
    height: auto;
    border-radius: 13px;
}

.ofpost-body figure {
    margin: 28px 0;
}

.ofpost-body figcaption {
    margin-top: 9px;
    color: #8793a5;
    font-size: 13px;
    text-align: center;
}

.ofpost-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 22px;
    border-radius: 13px;
    background: #172238;
    color: #edf2f8;
    font-size: 14px;
    line-height: 1.7;
}

.ofpost-body :not(pre) > code {
    padding: 3px 6px;
    border-radius: 5px;
    background: #f0f3f8;
    color: #a44e13;
}

.ofpost-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.ofpost-body th,
.ofpost-body td {
    padding: 13px 15px;
    border: 1px solid #e6ebf2;
    text-align: left;
}

.ofpost-body th {
    background: #f5f7fa;
    color: #172238;
}

.ofpost-body :where(iframe) {
    max-width: 100%;
}

.ofpost-body hr {
    height: 1px;
    margin: 35px 0;
    border: 0;
    background: #e8edf3;
}

/* Final action */

.ofpost-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 23px;
    padding: 32px 40px;
    border-radius: 20px;
    background: linear-gradient(110deg,#172238,#293c59);
}

.ofpost-next h2 {
    margin: 0 0 9px !important;
    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1.3;
}

.ofpost-next p {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.7;
}

.ofpost-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 13px 23px;
    min-height: 48px;
    border-radius: 11px;
    background: #ffffff;
    color: #172238 !important;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none !important;
}

.ofpost-next a:hover {
    background: #fff0e5;
}

@media (max-width: 800px) {
    .ofpost-hero { padding: 43px 35px; }
    .ofpost-reading { padding: 35px 32px; }
}

@media (max-width: 600px) {
    .ofpost {
        width: calc(100% - 28px);
        padding: 19px 0 45px;
    }

    .ofpost-nav {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .ofpost-hero {
        padding: 34px 23px;
        border-radius: 19px;
    }

    .ofpost-hero h1 {
        font-size: 34px !important;
    }

    .ofpost-excerpt {
        font-size: 16px !important;
    }

    .ofpost-cover { border-radius: 16px; }

    .ofpost-reading {
        padding: 28px 21px;
        border-radius: 17px;
    }

    .ofpost-body h2 { font-size: 24px !important; }
    .ofpost-body h3 { font-size: 20px !important; }

    .ofpost-body p,
    .ofpost-body li {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    .ofpost-next {
        flex-direction: column;
        align-items: stretch;
        padding: 27px 23px;
        border-radius: 17px;
    }

    .ofpost-next a { width: 100%; }
}
