/* ── nFusion Custom Tabs 0662d6c1 ── */

.nfct-0662d6c1-wrap,
.nfct-0662d6c1-wrap *,
.nfct-0662d6c1-wrap *::before,
.nfct-0662d6c1-wrap *::after {
    box-sizing: border-box;
}

.nfct-0662d6c1-wrap {
    --nfct-navy: #002A41;
    --nfct-azure: #006CA7;
    --nfct-orange: #FF6600;
    --nfct-parchment: #F5F2EB;
    --nfct-ink-mute: #5B6B75;
    --nfct-line: #E7E3DA;
    --nfct-tint: #FFF6EF;

    background: #FFFFFF;
    border: 1px solid var(--nfct-line);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    color: var(--nfct-navy);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── TOP-LEVEL TAB BAR ── */
.nfct-0662d6c1-toplevel {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border-bottom: 1px solid var(--nfct-line);
}

.nfct-0662d6c1-top-tab {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 20px;
    cursor: pointer;
    position: relative;
    border-bottom: 2px solid transparent;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nfct-ink-mute);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.nfct-0662d6c1-top-tab:hover:not(.is-active) {
    color: var(--nfct-navy);
    background: #FBFAF7;
}

.nfct-0662d6c1-top-tab:focus-visible {
    outline: 2px solid var(--nfct-orange);
    outline-offset: -2px;
}

.nfct-0662d6c1-top-tab.is-active {
    color: var(--nfct-navy);
    border-bottom-color: var(--nfct-orange);
    background: linear-gradient(180deg, var(--nfct-tint) 0%, #FFFFFF 72%);
}

.nfct-0662d6c1-top-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid var(--nfct-line);
    background: #FFFFFF;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--nfct-ink-mute);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nfct-0662d6c1-top-tab.is-active .nfct-0662d6c1-top-count {
    color: var(--nfct-orange);
    border-color: var(--nfct-orange);
}

/* ── GROUPS ── */
.nfct-0662d6c1-group {
    display: none;
}
.nfct-0662d6c1-group.is-active {
    display: block;
}

/* ── SECOND-LEVEL TAB BAR ── */
.nfct-0662d6c1-secondlevel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 24px;
    background: var(--nfct-parchment);
    border-bottom: 1px solid var(--nfct-line);
}

.nfct-0662d6c1-sub-tab {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px solid var(--nfct-line);
    color: var(--nfct-navy);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    user-select: none;
}

.nfct-0662d6c1-sub-tab:hover:not(.is-active) {
    border-color: var(--nfct-navy);
}

.nfct-0662d6c1-sub-tab:focus-visible {
    outline: 2px solid var(--nfct-orange);
    outline-offset: 1px;
}

.nfct-0662d6c1-sub-tab.is-active {
    background: var(--nfct-navy);
    border-color: var(--nfct-navy);
    color: #FFFFFF;
}

/* ── PANELS ── */
.nfct-0662d6c1-panels {
    padding: 28px 24px 32px;
    background: #FFFFFF;
}

.nfct-0662d6c1-panel {
    display: none;
}
.nfct-0662d6c1-panel.is-active {
    display: block;
}

.nfct-0662d6c1-panel-head {
    margin-bottom: 14px;
}

.nfct-0662d6c1-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.nfct-0662d6c1-crumb-group { color: var(--nfct-ink-mute); }
.nfct-0662d6c1-crumb-sep   { color: var(--nfct-ink-mute); }
.nfct-0662d6c1-crumb-tab   { color: var(--nfct-navy); font-weight: 600; }

.nfct-0662d6c1-panel-desc {
    margin: 0 0 22px;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--nfct-ink-mute);
}

.nfct-0662d6c1-content {
    width: 100%;
    min-height: 60px;
}

/* The raw-markup store must never render or occupy space. */
.nfct-0662d6c1-tpl {
    display: none;
}

/* ── EDITOR PREVIEW PLACEHOLDER (frontend never sees this) ── */
.nfct-0662d6c1-content--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    border: 1px dashed var(--nfct-line);
    background: repeating-linear-gradient(45deg, #FBFAF7, #FBFAF7 10px, #F6F4EF 10px, #F6F4EF 20px);
    color: var(--nfct-ink-mute);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nfct-0662d6c1-top-tab {
        padding: 16px 12px;
        font-size: 12px;
        letter-spacing: 0.1em;
        gap: 7px;
    }
    .nfct-0662d6c1-secondlevel {
        padding: 16px;
        gap: 8px;
    }
    .nfct-0662d6c1-sub-tab {
        padding: 10px 14px;
        font-size: 12px;
    }
    .nfct-0662d6c1-panels {
        padding: 22px 16px 26px;
    }
    .nfct-0662d6c1-panel-desc {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    /* Let the top bar scroll horizontally rather than cramming labels */
    .nfct-0662d6c1-toplevel {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nfct-0662d6c1-toplevel::-webkit-scrollbar {
        display: none;
    }
    .nfct-0662d6c1-top-tab {
        flex: 1 0 auto;
        white-space: nowrap;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .nfct-0662d6c1-top-tab,
    .nfct-0662d6c1-sub-tab,
    .nfct-0662d6c1-top-count {
        transition: none;
    }
}
