/* =========================================================
   ContractGauge — Single Article
   ========================================================= */

.cg-article-page {
    --article-navy: #081a2f;
    --article-text: #203044;
    --article-muted: #68788c;
    --article-border: #dce4ec;
    --article-bg: #f6f8fa;
    --article-green: #2f9e44;
    --article-green-dark: #27883a;
    --article-green-soft: #eaf7ed;

    color: var(--article-text);
    background: #ffffff;
}


/* =========================================================
   Article Hero
   ========================================================= */

.cg-article-page .cg-article-hero {
    padding: 72px 0 58px;
    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(47, 158, 68, 0.08),
            transparent 29%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fafc 100%
        );
    border-bottom: 1px solid rgba(8, 26, 47, 0.07);
}

.cg-article-page .cg-article-hero__inner {
    max-width: 900px;
    margin: 0 auto;
}

.cg-article-page .cg-article-hero__back {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--article-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cg-article-page .cg-article-hero__back:hover {
    color: var(--article-green-dark);
}

.cg-article-page .cg-article-hero__eyebrow {
    margin: 0 0 14px;
    color: var(--article-green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.11em;
}

.cg-article-page .cg-article-hero__title {
    max-width: 880px;
    margin: 0;
    color: var(--article-navy);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.cg-article-page .cg-article-hero__excerpt {
    max-width: 760px;
    margin-top: 22px;
}

.cg-article-page .cg-article-hero__excerpt p {
    margin: 0;
    color: #586a7d;
    font-size: 18px;
    line-height: 1.7;
}

.cg-article-page .cg-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.5;
}

.cg-article-page .cg-article-meta a {
    color: var(--article-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.cg-article-page .cg-article-meta a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   Featured Image
   ========================================================= */

.cg-article-page .cg-article-featured {
    padding: 44px 0 0;
    background: #ffffff;
}

.cg-article-page .cg-article-featured__figure {
    max-width: 1040px;
    margin: 0 auto;
}

.cg-article-page .cg-article-featured__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 46px rgba(8, 26, 47, 0.08);
}


/* =========================================================
   Article Body
   ========================================================= */

.cg-article-page .cg-article-body {
    padding: 64px 0 90px;
}

.cg-article-page .cg-article-layout {
    max-width: 790px;
    margin: 0 auto;
}

.cg-article-page .cg-article-content {
    color: var(--article-text);
    font-size: 17px;
    line-height: 1.82;
}

.cg-article-page .cg-article-content > *:first-child {
    margin-top: 0;
}

.cg-article-page .cg-article-content > *:last-child {
    margin-bottom: 0;
}

.cg-article-page .cg-article-content p {
    margin: 0 0 24px;
}

.cg-article-page .cg-article-content h2 {
    margin: 58px 0 20px;
    color: var(--article-navy);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.cg-article-page .cg-article-content h3 {
    margin: 38px 0 15px;
    color: var(--article-navy);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.cg-article-page .cg-article-content h4 {
    margin: 30px 0 12px;
    color: var(--article-navy);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
}

.cg-article-page .cg-article-content a {
    color: var(--article-green-dark);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cg-article-page .cg-article-content strong {
    color: #132338;
    font-weight: 750;
}

.cg-article-page .cg-article-content ul,
.cg-article-page .cg-article-content ol {
    margin: 0 0 26px;
    padding-left: 24px;
}

.cg-article-page .cg-article-content li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.cg-article-page .cg-article-content li::marker {
    color: var(--article-green);
    font-weight: 700;
}

.cg-article-page .cg-article-content blockquote {
    margin: 34px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--article-green);
    border-radius: 0 12px 12px 0;
    background: var(--article-green-soft);
    color: #35465a;
}

.cg-article-page .cg-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.cg-article-page .cg-article-content hr {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid var(--article-border);
}

.cg-article-page .cg-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.cg-article-page .cg-article-content figure {
    margin: 34px 0;
}

.cg-article-page .cg-article-content figcaption {
    margin-top: 9px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}


/* =========================================================
   Tables
   ========================================================= */

.cg-article-page .cg-article-content .wp-block-table {
    overflow-x: auto;
    margin: 32px 0;
}

.cg-article-page .cg-article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}

.cg-article-page .cg-article-content th,
.cg-article-page .cg-article-content td {
    padding: 14px 16px;
    border: 1px solid var(--article-border);
    text-align: left;
    vertical-align: top;
}

.cg-article-page .cg-article-content th {
    color: var(--article-navy);
    background: #f3f6f8;
    font-weight: 750;
}


/* =========================================================
   Code / Preformatted
   ========================================================= */

.cg-article-page .cg-article-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #eef2f5;
    color: #203044;
    font-size: 0.9em;
}

.cg-article-page .cg-article-content pre {
    overflow-x: auto;
    margin: 30px 0;
    padding: 20px;
    border-radius: 12px;
    background: var(--article-navy);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.65;
}

.cg-article-page .cg-article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}


/* =========================================================
   Article Footer CTA
   ========================================================= */

.cg-article-page .cg-article-footer {
    padding: 0 0 90px;
    background: #ffffff;
}

.cg-article-page .cg-article-footer__box {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 40px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: 38px;
    border: 1px solid var(--article-border);
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #f8fbf9 0%,
            #eef8f0 100%
        );
}

.cg-article-page .cg-article-footer__eyebrow {
    margin: 0 0 8px;
    color: var(--article-green);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.11em;
}

.cg-article-page .cg-article-footer h2 {
    margin: 0;
    color: var(--article-navy);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.cg-article-page .cg-article-footer p:not(.cg-article-footer__eyebrow) {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.65;
}

.cg-article-page .cg-article-footer__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cg-article-page .cg-article-footer__primary,
.cg-article-page .cg-article-footer__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.cg-article-page .cg-article-footer__primary {
    gap: 8px;
    color: #ffffff;
    background: var(--article-green);
}

.cg-article-page .cg-article-footer__primary:hover {
    background: var(--article-green-dark);
}

.cg-article-page .cg-article-footer__secondary {
    color: var(--article-navy);
    background: #ffffff;
    border: 1px solid var(--article-border);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 820px) {

    .cg-article-page .cg-article-footer__box {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .cg-article-page .cg-article-footer__actions {
        max-width: 360px;
    }

}


@media (max-width: 560px) {

    .cg-article-page .cg-article-hero {
        padding: 48px 0 42px;
    }

    .cg-article-page .cg-article-hero__back {
        margin-bottom: 22px;
    }

    .cg-article-page .cg-article-hero__title {
        font-size: clamp(34px, 10vw, 45px);
    }

    .cg-article-page .cg-article-hero__excerpt p {
        font-size: 16px;
    }

    .cg-article-page .cg-article-meta {
        margin-top: 20px;
    }

    .cg-article-page .cg-article-featured {
        padding-top: 30px;
    }

    .cg-article-page .cg-article-featured__image {
        border-radius: 12px;
    }

    .cg-article-page .cg-article-body {
        padding: 48px 0 65px;
    }

    .cg-article-page .cg-article-content {
        font-size: 16px;
        line-height: 1.78;
    }

    .cg-article-page .cg-article-content h2 {
        margin-top: 46px;
    }

    .cg-article-page .cg-article-content h3 {
        margin-top: 32px;
    }

    .cg-article-page .cg-article-content blockquote {
        margin: 28px 0;
        padding: 18px;
    }

    .cg-article-page .cg-article-footer {
        padding-bottom: 65px;
    }

    .cg-article-page .cg-article-footer__box {
        padding: 24px;
        border-radius: 16px;
    }

    .cg-article-page .cg-article-footer__actions {
        max-width: none;
    }

}
