/**
 * File: msi-faq.css
 * Path: /wp-content/themes/msi-theme/assets/css/msi-faq.css
 * Version: 1.0.24-dev
 * Created: 2026-12-01
 * Last Updated: 2026-12-01
 * Description: FAQ page layout and opt-in reusable LM Core accordion skin.
 * Changelog: 1.0.16-dev — Harmonize LM Core obfuscated email, phone, WhatsApp and text with FAQ typography while preserving green/bold.
 *            1.0.15-dev — Preserve native details/summary and existing content.
 */
/* Route scope; no builder-generated IDs. Optional section classes survive migrations. */
body.msi-theme.msi-faq-page #Content :is(.msi-faq-hero, .mfn-builder-content > .mcb-section:first-child:has(.column_image):not(:has(.lm-faq,.column_heading))) {
    padding: 0 !important;
}
body.msi-theme.msi-faq-page #Content :is(.msi-faq-hero, .mfn-builder-content > .mcb-section:first-child:has(.column_image):not(:has(.lm-faq,.column_heading))) > .section_wrapper {
    width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
}
body.msi-theme.msi-faq-page #Content :is(.msi-faq-hero, .mfn-builder-content > .mcb-section:first-child:has(.column_image):not(:has(.lm-faq,.column_heading))) :is(.wrap,.column,.mcb-wrap-inner,.mcb-column-inner,.image_frame,.image_wrapper) {
    margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; border: 0 !important; box-sizing: border-box;
}
body.msi-theme.msi-faq-page #Content :is(.msi-faq-hero, .mfn-builder-content > .mcb-section:first-child:has(.column_image):not(:has(.lm-faq,.column_heading))) img {
    display: block; width: 100% !important; max-width: 100%; height: auto !important;
}
body.msi-theme.msi-faq-page #Content :is(.msi-faq-content,.mfn-builder-content > .mcb-section:has(.lm-faq)) {
    --msi-title-color: var(--msi-red-dark); background: #fff !important; padding: clamp(40px,5vw,72px) 0 !important;
}
body.msi-theme.msi-faq-page #Content :is(.msi-faq-content,.mfn-builder-content > .mcb-section:has(.lm-faq)) > .section_wrapper {
    width: calc(100% - 40px) !important; max-width: 1000px !important; margin: 0 auto !important; padding: 0 !important; box-sizing: border-box;
}
body.msi-theme.msi-faq-page #Content :is(.msi-faq-content,.mfn-builder-content > .mcb-section:has(.lm-faq)) :is(.wrap,.column,.mcb-wrap-inner,.mcb-column-inner) {
    box-sizing: border-box; min-width: 0; margin: 0 !important; padding: 0 !important;
}
body.msi-theme.msi-faq-page #Content :is(.msi-faq-content,.mfn-builder-content > .mcb-section:has(.lm-faq)) :is(.wrap,.column) { width: 100% !important; max-width: 100% !important; }
body.msi-theme.msi-faq-page #Content :is(.msi-faq-content,.mfn-builder-content > .mcb-section:has(.lm-faq)) .column_heading .title {
    line-height: 1.18 !important; text-align: center !important; margin: 0 0 clamp(24px,3vw,40px) !important;
    color: var(--msi-red-dark) !important; overflow-wrap: anywhere;
}
/* Shared opt-in accordion skin (class on LM Core shortcode or enclosing wrap).
 * Also automatically applied to native LM Core accordions on the FAQ route.
 * Existing native name/open attributes, links and plugin scripts are untouched. */
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq),
body.msi-theme.msi-faq-page #Content .lm-faq {
    --msi-faq-gap: 12px; --msi-faq-pad: 22px; --msi-faq-question-size: 17px;
    display: grid !important; grid-template-columns: minmax(0,1fr); gap: var(--msi-faq-gap) !important;
    width: 100% !important; max-width: 100%; margin: 0 !important; padding: 0 !important;
    color: var(--msi-ink); font: 400 16px/1.65 Arial, Helvetica, sans-serif; box-sizing: border-box;
}
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) > .lm-faq__item,
body.msi-theme.msi-faq-page #Content .lm-faq > .lm-faq__item {
    box-sizing: border-box; min-width: 0; margin: 0 !important; padding: 0 !important;
    border: 1px solid var(--msi-border) !important; border-left: 3px solid var(--msi-red) !important;
    border-radius: 4px !important; background: #fff !important; box-shadow: none !important;
}
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__question,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__question {
    box-sizing: border-box; display: flex !important; flex-direction: row-reverse !important; align-items: center !important; justify-content: space-between !important;
    gap: 16px !important; min-height: 64px; margin: 0 !important; padding: 16px var(--msi-faq-pad) !important;
    background: #fff !important; border: 0 !important; color: var(--msi-red-dark) !important;
    font: 700 var(--msi-faq-question-size)/1.45 Arial, Helvetica, sans-serif !important; text-align: left !important;
    list-style: none !important; cursor: pointer; border-radius: 2px !important;
}
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__question::-webkit-details-marker,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__question::-webkit-details-marker { display: none; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__question::marker,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__question::marker { content: ''; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__label,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__label { flex: 1 1 auto; min-width: 0; color: inherit !important; font: inherit !important; overflow-wrap: anywhere; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__question:hover,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__question:hover { background: #fbf1f1 !important; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__item[open] > .lm-faq__question,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__item[open] > .lm-faq__question { background: var(--msi-red-dark) !important; color: #fff !important; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__question:focus-visible,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__question:focus-visible { outline: 3px solid var(--msi-green-dark) !important; outline-offset: 3px; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__indicator,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__indicator {
    position: relative; display: block !important; flex: 0 0 28px !important; width: 28px !important; height: 28px !important; box-sizing: border-box;
    margin: 0 !important; padding: 0 !important; border: 1px solid currentColor; border-radius: 50%; font-size: 0 !important; line-height: 0 !important;
    color: inherit !important; background: transparent !important; transform: none !important;
}
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__indicator::before,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__indicator::before { content: ''; position: absolute; width: 12px; height: 2px; background: currentColor; top: 50%; left: 50%; transform: translate(-50%,-50%); }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__indicator::after,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__indicator::after { content: ''; position: absolute; width: 2px; height: 12px; background: currentColor; top: 50%; left: 50%; transform: translate(-50%,-50%); }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__item[open] .lm-faq__indicator::after,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__item[open] .lm-faq__indicator::after { display: none; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__answer,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer { box-sizing: border-box; margin: 0 !important; padding: 18px var(--msi-faq-pad) 22px !important; background: #fff !important; color: var(--msi-ink) !important; font: inherit !important; overflow-wrap: anywhere; text-align: left !important; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__answer p,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer p { margin: 0 0 12px !important; font: inherit !important; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__answer p:last-child,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer p:last-child { margin-bottom: 0 !important; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__answer a,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer a { color: var(--msi-green-dark) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__answer .lmcore-encoded-contact-link,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer .lmcore-encoded-contact-link { gap: 5px !important; vertical-align: middle; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__answer .lmcore-encoded-contact__icon,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer .lmcore-encoded-contact__icon { width: 16px !important; height: 16px !important; flex: 0 0 16px !important; }
body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__answer .lmcore-encoded-contact__icon svg,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer .lmcore-encoded-contact__icon svg { width: 100%; height: 100%; }
/*
 * LM Core Email & Text Obfuscator integration in FAQ answers.
 * Both plugin output and MSI footer opt-in classes may contain aggressive display,
 * font-size or color declarations. Here the FAQ paragraph wins only inside FAQ.
 * Keep link color green / weight semibold, but match paragraph font and baseline.
 */
body.msi-theme #Content :is(.msi-ui-faq.lm-faq, .msi-ui-faq .lm-faq) .lm-faq__answer :is(a.lmcore-encoded-contact-link, a.lmcore-encoded-email-link, .lmcore-encoded-text),
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer :is(a.lmcore-encoded-contact-link, a.lmcore-encoded-email-link, .lmcore-encoded-text) {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    vertical-align: baseline !important;
}
/* HTML generated by LM Core uses inline display:inline-flex: override for no-icon links. */
body.msi-theme #Content :is(.msi-ui-faq.lm-faq, .msi-ui-faq .lm-faq) .lm-faq__answer a.lmcore-encoded-contact-link:not(:has(.lmcore-encoded-contact__icon)),
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer a.lmcore-encoded-contact-link:not(:has(.lmcore-encoded-contact__icon)) {
    display: inline !important;
    width: auto !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.msi-theme #Content :is(.msi-ui-faq.lm-faq, .msi-ui-faq .lm-faq) .lm-faq__answer :is(a.lmcore-encoded-contact-link, a.lmcore-encoded-email-link),
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer :is(a.lmcore-encoded-contact-link, a.lmcore-encoded-email-link) {
    color: var(--msi-green-dark) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
/* Avoid footer email's decorative ::before envelope leaking into FAQ prose. */
body.msi-theme #Content :is(.msi-ui-faq.lm-faq, .msi-ui-faq .lm-faq) .lm-faq__answer a.lmcore-encoded-email-link::before,
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer a.lmcore-encoded-email-link::before {
    content: none !important;
    display: none !important;
}
@media(max-width:767px) {
    body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq),
    body.msi-theme.msi-faq-page #Content .lm-faq { --msi-faq-pad: 14px; --msi-faq-gap: 10px; --msi-faq-question-size: 15px; font-size: 15px; }
    body.msi-theme #Content :is(.msi-ui-faq.lm-faq,.msi-ui-faq .lm-faq) .lm-faq__question,
    body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__question { gap: 10px !important; padding-block: 14px !important; min-height: 60px; }
}

/* FAQ decoded contact links: keep green/semibold at rest; MSI red on interaction. */
body.msi-theme #Content :is(.msi-ui-faq.lm-faq, .msi-ui-faq .lm-faq) .lm-faq__answer :is(a.lmcore-encoded-contact-link, a.lmcore-encoded-email-link):is(:hover, :focus-visible),
body.msi-theme.msi-faq-page #Content .lm-faq .lm-faq__answer :is(a.lmcore-encoded-contact-link, a.lmcore-encoded-email-link):is(:hover, :focus-visible) {
    color: var(--msi-red) !important;
}
