/* ==========================================================================
   Single blog post body (single.php -> .blog-body)
   Matches the client's static template blog-details2.php.
   Post content comes from the editor with lots of inline styles
   (line-height, font-family, colours, highlights, justify), so most rules
   here need !important to win over them.
   ========================================================================== */

/* ---------- Paragraphs (template: p.text-dark) ---------- */
body .blog-body p {
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 18px !important;
    line-height: 28px !important;
    font-weight: 400;
    color: #212529 !important;
    margin-top: 0;
    margin-bottom: 1rem;
}

body .blog-body p[style*="justify"],
body .blog-body li[style*="justify"],
body .blog-body h2[style*="justify"],
body .blog-body h3[style*="justify"],
body .blog-body h4[style*="justify"],
body .blog-body [style*="--bs-body-text-align"] {
    text-align: left !important;
}

/* Empty editor paragraphs (<p><span>&nbsp;</span></p>) */
body .blog-body p:empty {
    display: none;
}

/* ---------- Inline text: inherit everything from its block ---------- */
body .blog-body span,
body .blog-body strong,
body .blog-body b,
body .blog-body em,
body .blog-body i,
body .blog-body u,
body .blog-body font {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    background-color: transparent !important;
}

body .blog-body strong,
body .blog-body b {
    font-weight: 700 !important;
}

/* ---------- Headings (template: h2.section-title.h3) ---------- */
body .blog-body h2,
body .blog-body h3,
body .blog-body h4,
body .blog-body h5,
body .blog-body h6 {
    font-family: "Titillium Web", sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #000 !important;
    text-align: left !important;
    vertical-align: baseline;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

body .blog-body h2 {
    font-size: calc(1.3rem + .6vw) !important;
}

body .blog-body h3 {
    font-size: calc(1.275rem + .3vw) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

body .blog-body h4 {
    font-size: 1.25rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
}

body .blog-body h5,
body .blog-body h6 {
    font-size: 1.1rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: .75rem !important;
}

/* Bold/span wrappers inside headings keep the heading weight */
body .blog-body h2 strong, body .blog-body h2 b,
body .blog-body h3 strong, body .blog-body h3 b,
body .blog-body h4 strong, body .blog-body h4 b,
body .blog-body h5 strong, body .blog-body h5 b,
body .blog-body h6 strong, body .blog-body h6 b {
    font-weight: inherit !important;
}

/* No big gap above the first block of the article */
body .blog-body > :first-child {
    margin-top: 0 !important;
}

@media (min-width: 1200px) {
    body .blog-body h2 { font-size: 1.75rem !important; }
    body .blog-body h3 { font-size: 1.5rem !important; }
}

@media (max-width: 767.98px) {
    body .blog-body h2 {
        font-size: 24px !important;
        line-height: 30px !important;
    }
    body .blog-body h3 {
        font-size: 20px !important;
        line-height: 26px !important;
    }
}

/* ---------- Lists (template: ol.ms-0 > li > p.text-dark) ---------- */
body .blog-body ul,
body .blog-body ol {
    margin: 0 0 1rem 0 !important;
    padding-left: 2rem !important;
}

body .blog-body ul { list-style-type: disc; }
body .blog-body ol { list-style-type: decimal; }

body .blog-body li {
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 18px !important;
    line-height: 28px !important;
    font-weight: 400;
    color: #212529 !important;
    margin: 0 0 1rem 0 !important;
    padding-left: 0 !important;
}

/* bullet / number styled like the template's marker */
body .blog-body li::marker {
    font-family: "Titillium Web", sans-serif;
    font-size: 16px;
    color: #000;
}

@media (max-width: 767.98px) {
    body .blog-body li::marker { font-size: 14px; }
}

body .blog-body li > p:last-child {
    margin-bottom: 0;
}

/* nested lists */
body .blog-body li > ul,
body .blog-body li > ol {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* ---------- Links ---------- */
body .blog-body a span,
body .blog-body a strong,
body .blog-body a em,
body .blog-body a i {
    color: inherit !important;
}

/* ---------- Media ---------- */
body .blog-body img {
    max-width: 100%;
    height: auto !important;
}

body .blog-body figure {
    margin: 0 0 1.5rem 0;
    max-width: 100%;
}

body .blog-body figcaption {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6c757d;
    margin-top: .5rem;
}

body .blog-body iframe {
    max-width: 100%;
}

/* ---------- Quotes ---------- */
body .blog-body blockquote {
    margin: 0 0 1.5rem 0 !important;
    padding: .25rem 0 .25rem 1.25rem !important;
    border-left: 4px solid #2f3e70 !important;
    background: transparent !important;
}

body .blog-body blockquote p:last-child {
    margin-bottom: 0;
}

/* ---------- Tables ---------- */
body .blog-body table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

body .blog-body th,
body .blog-body td {
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: #212529 !important;
    border: 1px solid #dee2e6;
    padding: .5rem .75rem !important;
    vertical-align: top;
}

body .blog-body th,
body .blog-body thead td {
    font-weight: 700;
    background-color: #f8f9fa;
}

body .blog-body td p,
body .blog-body th p {
    font-size: inherit !important;
    line-height: inherit !important;
    margin-bottom: .5rem;
}

body .blog-body td p:last-child,
body .blog-body th p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ accordion (single.php, ACF "Blog FAQ")
   Markup/classes are copied from blog-details2.php, so the accordion itself
   picks up the same styles. The answer is a WYSIWYG field, so it arrives
   wrapped in <p>/<ul>/<ol>; these rules keep that rich text looking like
   the template's plain answer text (16px / 28px, #212529).
   ========================================================================== */
.msk-blog-faq .oracle-faq__body p,
.msk-blog-faq .oracle-faq__body li {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.msk-blog-faq .oracle-faq__body p {
    margin: 0 0 1rem 0;
}

.msk-blog-faq .oracle-faq__body ul,
.msk-blog-faq .oracle-faq__body ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.msk-blog-faq .oracle-faq__body ul { list-style-type: disc; }
.msk-blog-faq .oracle-faq__body ol { list-style-type: decimal; }

.msk-blog-faq .oracle-faq__body li {
    margin: 0 0 .5rem 0;
}

.msk-blog-faq .oracle-faq__body > :last-child,
.msk-blog-faq .oracle-faq__body li:last-child {
    margin-bottom: 0;
}

.msk-blog-faq .oracle-faq__body a {
    color: #0a66c2;
    text-decoration: underline;
}
