.nmu-faq-connection-status {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #f1f2f3;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
}
.nmu-faq-connection-status.is-checking { background: #eef4ff; color: #2c5aa0; }
.nmu-faq-connection-status.is-success { background: #edfaef; color: #18752a; }
.nmu-faq-connection-status.is-error { background: #fff0f0; color: #a02323; }

.nmu-faq {
    --nmu-faq-text: var(--e-global-color-text, #171717);
    --nmu-faq-heading: var(--e-global-color-primary, #171717);
    --nmu-faq-orange: #f15a24;
    --nmu-faq-number-color: #171717;
    --nmu-faq-icon-color: #f15a24;
    --nmu-faq-border: rgba(23, 23, 23, 0.18);
    --nmu-faq-state-bg: #f8f7f5;
    width: 100%;
    color: var(--nmu-faq-text);
    font-family: inherit;
}

.nmu-faq__title {
    margin: 0 0 clamp(30px, 4vw, 56px);
    color: var(--nmu-faq-heading);
    font-family: inherit;
    font-size: clamp(2.25rem, 4.4vw, 4.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.nmu-faq__list {
    width: 100%;
    border-top: 1px solid var(--nmu-faq-border);
}

/*
 * Loading placeholder / CLS guard.
 * The row count comes from last-known-good local metadata only, so this reserves
 * space without putting SharePoint or any remote service on the render path.
 * Static shapes are intentional: no shimmer animation, no extra paint loop.
 */
.nmu-faq__list.is-loading {
    --nmu-faq-placeholder-row-height: clamp(68px, 5.2vw, 88px);
    min-height: calc(var(--nmu-faq-placeholder-rows, 5) * var(--nmu-faq-placeholder-row-height));
    overflow: hidden;
}

.nmu-faq__loading-placeholder {
    width: 100%;
}

.nmu-faq__placeholder-row {
    display: grid;
    grid-template-columns: clamp(38px, 4vw, 62px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: var(--nmu-faq-placeholder-row-height, 78px);
    padding: clamp(20px, 2vw, 30px) clamp(16px, 1.8vw, 26px);
    border-bottom: 1px solid var(--nmu-faq-border);
    box-sizing: border-box;
}

.nmu-faq__placeholder-number,
.nmu-faq__placeholder-text,
.nmu-faq__placeholder-icon {
    display: block;
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.08);
}

.nmu-faq__placeholder-number {
    width: 26px;
    height: 0.82em;
}

.nmu-faq__placeholder-text {
    width: var(--nmu-faq-placeholder-width, 72%);
    max-width: 620px;
    height: 0.82em;
}

.nmu-faq__placeholder-icon {
    width: 22px;
    height: 22px;
    margin-left: clamp(10px, 1.5vw, 22px);
    border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
    .nmu-faq__loading-placeholder * {
        animation: none !important;
        transition: none !important;
    }
}

.nmu-faq__item {
    border-bottom: 1px solid var(--nmu-faq-border);
    background: transparent;
}

.nmu-faq__heading {
    margin: 0;
    padding: 0;
}

/*
 * NM+U accordion state treatment.
 * Explicitly reset theme/Elementor button states so global button CSS cannot
 * inject a blue/grey/brand background into hover, focus, active or open states.
 */
.nmu-faq .nmu-faq__question {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: clamp(38px, 4vw, 62px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: clamp(20px, 2vw, 30px) clamp(16px, 1.8vw, 26px);
    border: 0;
    border-radius: 0;
    outline: 0;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    color: var(--nmu-faq-heading);
    font: inherit;
    font-size: clamp(1.125rem, 1.35vw, 1.5rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transform: none;
    transition: background-color 180ms ease;
}

.nmu-faq .nmu-faq__question:hover,
.nmu-faq .nmu-faq__question:focus,
.nmu-faq .nmu-faq__question:focus-visible,
.nmu-faq .nmu-faq__question:active,
.nmu-faq .nmu-faq__question[aria-expanded="true"] {
    background-color: var(--nmu-faq-state-bg);
    background-image: none;
    color: var(--nmu-faq-heading);
    box-shadow: none;
    transform: none;
}

.nmu-faq .nmu-faq__question:focus-visible {
    outline: 1px solid var(--nmu-faq-orange);
    outline-offset: -1px;
}

.nmu-faq__number {
    display: inline-block;
    color: var(--nmu-faq-number-color);
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    white-space: nowrap;
}

.nmu-faq__question-text {
    display: block;
    min-width: 0;
    color: inherit;
    font: inherit;
    opacity: 1;
}

/* Use the exact NM+U icon-font classes already present in the site theme. */
.nmu-faq__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    margin-left: clamp(10px, 1.5vw, 22px);
    color: var(--nmu-faq-icon-color);
    font-size: 22px;
    line-height: 1;
}

.nmu-faq .nmu-faq__question .nmu-faq__icon,
.nmu-faq .nmu-faq__question .nmu-faq__icon-opened,
.nmu-faq .nmu-faq__question .nmu-faq__icon-closed,
.nmu-faq .nmu-faq__question .nmu-faq__icon .icon,
.nmu-faq .nmu-faq__question .nmu-faq__icon .icon::before {
    color: var(--nmu-faq-icon-color) !important;
    -webkit-text-fill-color: var(--nmu-faq-icon-color) !important;
    background: none !important;
}

.nmu-faq .nmu-faq__question .nmu-faq__icon .icon,
.nmu-faq .nmu-faq__question .nmu-faq__icon .icon::before {
    font-family: 'nmu-icons' !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    font-size: inherit !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nmu-faq__icon-opened,
.nmu-faq__icon-closed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nmu-faq-icon-color);
}

.nmu-faq__icon-opened { display: none; }
.nmu-faq__question[aria-expanded="true"] .nmu-faq__icon-opened { display: inline-flex; }
.nmu-faq__question[aria-expanded="true"] .nmu-faq__icon-closed { display: none; }

.nmu-faq__answer[hidden] {
    display: none !important;
}

.nmu-faq__answer {
    background: var(--nmu-faq-state-bg);
}

.nmu-faq__answer-inner {
    max-width: 920px;
    margin-left: clamp(48px, 5vw, 72px);
    padding: 0 clamp(52px, 6vw, 92px) clamp(26px, 3vw, 42px) 10px;
    color: var(--nmu-faq-text);
    font-size: clamp(1rem, 1.05vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
}

.nmu-faq__answer-inner > :first-child { margin-top: 0; }
.nmu-faq__answer-inner > :last-child { margin-bottom: 0; }

.nmu-faq-editor-placeholder,
.nmu-faq-editor-error,
.nmu-faq__editor-warning {
    padding: 14px 16px;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.035);
    color: #333;
    font: 13px/1.45 Arial, sans-serif;
}

.nmu-faq-editor-error {
    border-color: #d63638;
    background: rgba(214, 54, 56, 0.06);
}

.nmu-faq__editor-warning {
    margin-top: 16px;
    border-color: #dba617;
    background: rgba(219, 166, 23, 0.08);
}

@media (max-width: 767px) {
    .nmu-faq__title {
        margin-bottom: 26px;
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1;
    }

    .nmu-faq .nmu-faq__question {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 19px 12px;
        font-size: 1.0625rem;
        line-height: 1.35;
    }


    .nmu-faq__icon {
        min-width: 20px;
        min-height: 20px;
        margin-left: 8px;
        font-size: 19px;
    }

    .nmu-faq__answer-inner {
        margin-left: 40px;
        padding: 0 36px 24px 8px;
        font-size: 0.9875rem;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nmu-faq .nmu-faq__question { transition: none; }
}

.nmu-faq[aria-busy="true"] .nmu-faq__list { opacity: 0.985; }
