/*
 * LibraMed Cabinet Core v0.5.29
 * Premium Medical Editorial Typography
 *
 * Scope: only body.libramed-editorial-article
 * No "Clinical Intelligence" label or visible branding is added.
 */

body.libramed-editorial-article {
    --lm-editorial-navy: #071a3d;
    --lm-editorial-text: #15233b;
    --lm-editorial-muted: #6e7b8f;
    --lm-editorial-line: #dfe7ee;
    --lm-editorial-accent: #16b8b2;
    --lm-editorial-accent-soft: #eefafa;
}

/* Article title */
body.libramed-editorial-article .entry-title {
    color: var(--lm-editorial-navy);
    font-size: clamp(38px, 3.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 750;
    margin-bottom: 18px;
}

/* Meta row */
body.libramed-editorial-article .entry-meta,
body.libramed-editorial-article .entry-meta a {
    color: #263650;
}

body.libramed-editorial-article .entry-meta {
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--lm-editorial-line);
}

/* Main article copy */
body.libramed-editorial-article .entry-content {
    color: var(--lm-editorial-text);
    font-size: 20px;
    line-height: 1.58;
    letter-spacing: -0.006em;
}

body.libramed-editorial-article .entry-content p {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Editorial H2/H3 */
body.libramed-editorial-article h2.libramed-editorial-heading,
body.libramed-editorial-article h3.libramed-editorial-heading {
    position: relative;
    text-align: left !important;
    color: var(--lm-editorial-navy);
    letter-spacing: -0.018em;
}

body.libramed-editorial-article h2.libramed-editorial-heading {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 750;
    margin: 46px 0 20px;
    padding-bottom: 14px;
}

body.libramed-editorial-article h2.libramed-editorial-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: var(--lm-editorial-accent);
}

body.libramed-editorial-article h3.libramed-editorial-heading {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    margin: 34px 0 14px;
}

/* Lists */
body.libramed-editorial-article .entry-content ul,
body.libramed-editorial-article .entry-content ol {
    margin-top: 10px;
    margin-bottom: 26px;
}

body.libramed-editorial-article .entry-content li {
    margin-bottom: 9px;
}

/* Small editorial source note */
body.libramed-editorial-article .libramed-editorial-source-note {
    margin-top: 38px !important;
    padding-top: 16px;
    border-top: 1px solid var(--lm-editorial-line);
    color: var(--lm-editorial-muted) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* Links inside article */
body.libramed-editorial-article .entry-content a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
    body.libramed-editorial-article .entry-title {
        font-size: 42px;
    }

    body.libramed-editorial-article .entry-content {
        font-size: 19px;
    }

    body.libramed-editorial-article h2.libramed-editorial-heading {
        font-size: 28px;
        margin-top: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.libramed-editorial-article .entry-title {
        font-size: 34px;
        line-height: 1.12;
        margin-bottom: 14px;
    }

    body.libramed-editorial-article .entry-meta {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    body.libramed-editorial-article .entry-content {
        font-size: 18px;
        line-height: 1.55;
    }

    body.libramed-editorial-article .entry-content p {
        margin-bottom: 20px;
    }

    body.libramed-editorial-article h2.libramed-editorial-heading {
        font-size: 25px;
        line-height: 1.24;
        margin: 34px 0 18px;
        padding-bottom: 12px;
    }

    body.libramed-editorial-article h3.libramed-editorial-heading {
        font-size: 22px;
        margin-top: 28px;
    }
}
