/* ============================================================
   MKJB AI SEO FAQ Schema - Block Stylesheet (v1.3.1)
   Editor + Frontend styles. All ASCII-safe.
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --mkjb-primary: #3858e9;
    --mkjb-primary-hover: #2945c4;
    --mkjb-primary-light: #eef1fd;
    --mkjb-success: #00a32a;
    --mkjb-warning: #dba617;
    --mkjb-danger: #d63638;
    --mkjb-text-primary: #1e1e1e;
    --mkjb-text-secondary: #616161;
    --mkjb-text-muted: #8c8f94;
    --mkjb-border: #dcdcde;
    --mkjb-border-light: #f0f0f1;
    --mkjb-bg-surface: #ffffff;
    --mkjb-bg-subtle: #f6f7f7;
    --mkjb-radius: 8px;
    --mkjb-radius-sm: 4px;
    --mkjb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --mkjb-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --mkjb-transition: 0.2s ease;
}

/* ============================================================
   EDITOR STYLES
   ============================================================ */

/* --- Editor Wrapper --- */
.mkjb-block-editor-wrapper {
    border: 1px solid var(--mkjb-border);
    border-radius: var(--mkjb-radius);
    padding: 0;
    background: var(--mkjb-bg-surface);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    overflow: hidden;
    box-shadow: var(--mkjb-shadow-sm);
}

.mkjb-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #3858e9 0%, #6c5ce7 100%);
    margin: 0;
    border: none;
}

.mkjb-block-icon {
    font-size: 20px;
    filter: grayscale(1) brightness(10);
}

.mkjb-block-header strong {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Tab Navigation --- */
.mkjb-tabs {
    width: 100%;
    padding: 0 20px;
}

.mkjb-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--mkjb-border-light);
    margin-bottom: 16px;
    padding-top: 4px;
}

.mkjb-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--mkjb-text-muted);
    transition: color var(--mkjb-transition), border-color var(--mkjb-transition), background var(--mkjb-transition);
    border-radius: var(--mkjb-radius-sm) var(--mkjb-radius-sm) 0 0;
}

.mkjb-tab-btn:hover {
    color: var(--mkjb-text-primary);
    background: var(--mkjb-bg-subtle);
}

.mkjb-tab-btn:focus-visible {
    outline: 2px solid var(--mkjb-primary);
    outline-offset: -2px;
}

.mkjb-tab-btn.active {
    color: var(--mkjb-primary);
    border-bottom-color: var(--mkjb-primary);
    font-weight: 600;
}

/* --- Tab Content --- */
.mkjb-tab-content {
    padding: 8px 0 20px;
}

.mkjb-help-text {
    color: var(--mkjb-text-secondary);
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.mkjb-format-example {
    background: var(--mkjb-bg-subtle);
    border: 1px solid var(--mkjb-border);
    border-left: 3px solid var(--mkjb-primary);
    border-radius: 0 var(--mkjb-radius-sm) var(--mkjb-radius-sm) 0;
    padding: 12px 16px;
    font-size: 12px;
    color: #3c434a;
    margin-bottom: 14px;
    white-space: pre-wrap;
    font-family: monospace;
}

.mkjb-empty-state {
    text-align: center;
    color: var(--mkjb-text-muted);
    font-style: italic;
    padding: 24px 0;
    background: var(--mkjb-bg-subtle);
    border-radius: var(--mkjb-radius);
    border: 1px dashed var(--mkjb-border);
}

/* --- Buttons --- */
.mkjb-generate-btn,
.mkjb-parse-btn,
.mkjb-analyze-btn,
.mkjb-add-btn {
    margin-top: 10px;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.mkjb-generate-btn:hover:not(:disabled),
.mkjb-parse-btn:hover,
.mkjb-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--mkjb-shadow-md);
}

.mkjb-generate-btn:active:not(:disabled),
.mkjb-parse-btn:active,
.mkjb-add-btn:active {
    transform: translateY(0);
}

.mkjb-remove-btn {
    margin-left: auto;
}

/* --- FAQ Preview (editor) --- */
.mkjb-faq-preview {
    margin-top: 16px;
    border-top: 1px solid var(--mkjb-border-light);
    padding-top: 14px;
}

.mkjb-faq-preview h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #3c434a;
}

.mkjb-faq-item-preview {
    background: var(--mkjb-bg-subtle);
    border-radius: var(--mkjb-radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
    border-left: 3px solid var(--mkjb-primary);
    transition: background var(--mkjb-transition);
}

.mkjb-faq-item-preview:hover {
    background: var(--mkjb-primary-light);
}

.mkjb-faq-item-preview strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--mkjb-text-primary);
}

.mkjb-faq-item-preview p {
    font-size: 12px;
    color: var(--mkjb-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* --- Manual Input FAQ item --- */
.mkjb-manual-faq-item {
    background: var(--mkjb-bg-surface);
    border: 1px solid var(--mkjb-border);
    border-radius: var(--mkjb-radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color var(--mkjb-transition), box-shadow var(--mkjb-transition);
}

.mkjb-manual-faq-item:hover {
    border-color: var(--mkjb-primary);
    box-shadow: 0 0 0 1px rgba(56, 88, 233, 0.1);
}

.mkjb-manual-faq-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mkjb-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mkjb-manual-faq-header .mkjb-faq-index {
    flex: 1;
}

.mkjb-manual-faq-header .mkjb-faq-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* --- Drag handle (6-dot grip drawn via gradients) --- */
.mkjb-drag-handle {
    display: inline-block;
    width: 16px;
    height: 22px;
    cursor: grab;
    user-select: none;
    border-radius: var(--mkjb-radius-sm);
    background-image:
        radial-gradient(circle, var(--mkjb-text-muted) 1.6px, transparent 1.8px),
        radial-gradient(circle, var(--mkjb-text-muted) 1.6px, transparent 1.8px);
    background-size: 4px 4px;
    background-position: 4px 5px, 10px 5px;
    background-repeat: repeat-y;
    transition: background-color var(--mkjb-transition), opacity var(--mkjb-transition);
    opacity: 0.7;
    flex-shrink: 0;
}

.mkjb-drag-handle:hover {
    opacity: 1;
    background-color: var(--mkjb-primary-light);
}

.mkjb-drag-handle:active {
    cursor: grabbing;
}

/* --- Drag states --- */
.mkjb-manual-faq-item.mkjb-dragging {
    opacity: 0.4;
}

.mkjb-manual-faq-item.mkjb-drop-target {
    border-color: var(--mkjb-primary) !important;
    box-shadow: 0 0 0 2px rgba(56, 88, 233, 0.25) !important;
    background: var(--mkjb-primary-light);
}

/* --- Schema Preview --- */
.mkjb-schema-preview-textarea,
.mkjb-schema-sidebar-preview {
    width: 100%;
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 11px;
    background: #1d2327;
    color: #a8c7fa;
    border: 1px solid #3c434a;
    border-radius: var(--mkjb-radius-sm);
    padding: 12px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.6;
}

/* --- Textarea Input (Tab 2) --- */
.mkjb-textarea-input textarea {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
}

/* --- Divider --- */
.mkjb-divider {
    border: none;
    border-top: 1px solid var(--mkjb-border-light);
    margin: 16px 20px;
}

/* --- Quality Analyzer --- */
.mkjb-quality-analyzer {
    padding: 4px 20px 16px;
}

.mkjb-analysis-results {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mkjb-analysis-notice {
    margin: 0 !important;
    border-radius: var(--mkjb-radius-sm) !important;
}

/* --- Dual Score Cards (SEO + GEO) --- */
.mkjb-dual-score-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.mkjb-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--mkjb-bg-subtle);
    border-radius: var(--mkjb-radius);
    border: 2px solid var(--mkjb-border-light);
    transition: border-color var(--mkjb-transition), box-shadow var(--mkjb-transition), background var(--mkjb-transition);
}

.mkjb-score-card:hover {
    border-color: var(--mkjb-border);
    background: #f0f2ff;
}

.mkjb-score-card-active {
    border-color: var(--mkjb-primary) !important;
    background: var(--mkjb-primary-light) !important;
    box-shadow: 0 0 0 1px rgba(56, 88, 233, 0.15), var(--mkjb-shadow-md);
}

.mkjb-score-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mkjb-primary);
    background: rgba(56, 88, 233, 0.1);
    padding: 3px 10px;
    border-radius: 10px;
}

.mkjb-score-card-label-geo {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.mkjb-score-card-subtitle {
    font-size: 10px;
    color: var(--mkjb-text-muted);
    font-weight: 500;
    margin-top: -2px;
}

.mkjb-score-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--mkjb-bg-surface);
    box-shadow: var(--mkjb-shadow-sm);
}

.mkjb-score-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.mkjb-score-max {
    font-size: 11px;
    color: var(--mkjb-text-muted);
    margin-top: 2px;
}

.mkjb-score-breakdown-panel {
    background: var(--mkjb-bg-subtle);
    border: 1px solid var(--mkjb-border-light);
    border-radius: var(--mkjb-radius);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.mkjb-breakdown-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--mkjb-text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mkjb-score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--mkjb-text-secondary);
}


/* ============================================================
   FRONTEND STYLES
   ============================================================ */

/* --- Shared Base --- */
.mkjb-faq-block {
    max-width: 800px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.mkjb-faq-block .mkjb-faq-title {
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid #3858e9;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.5em;
    letter-spacing: -0.01em;
}

.mkjb-faq-block .mkjb-faq-item {
    margin-bottom: 16px;
}

.mkjb-faq-block .mkjb-faq-question {
    margin: 0 0 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.45;
}

.mkjb-faq-block .mkjb-faq-question h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.mkjb-faq-block .mkjb-faq-answer {
    color: #4a4a68;
    line-height: 1.75;
    font-size: 0.95em;
}

.mkjb-faq-block .mkjb-faq-answer p {
    margin: 0;
    color: inherit;
    line-height: inherit;
    font-size: inherit;
}


/* ============================================================
   STYLE 1: MINIMAL
   Clean separator-based layout with Q prefix
   ============================================================ */
.mkjb-style-minimal .mkjb-faq-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mkjb-style-minimal .mkjb-faq-item:first-of-type {
    padding-top: 0;
}

.mkjb-style-minimal .mkjb-faq-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.mkjb-style-minimal .mkjb-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1a1a2e;
}

.mkjb-style-minimal .mkjb-faq-question::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3858e9, #6c5ce7);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 1px;
}

.mkjb-style-minimal .mkjb-faq-answer {
    padding-left: 38px;
    color: #555770;
}


/* ============================================================
   STYLE 2: CARD
   Elevated cards with hover interaction
   ============================================================ */
.mkjb-style-card .mkjb-faq-item {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mkjb-style-card .mkjb-faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3858e9, #6c5ce7);
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mkjb-style-card .mkjb-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
    border-color: #d0d5dd;
}

.mkjb-style-card .mkjb-faq-item:hover::before {
    opacity: 1;
}

.mkjb-style-card .mkjb-faq-question {
    color: #1a1a2e;
    font-size: 1.08em;
    margin-bottom: 10px;
}

.mkjb-style-card .mkjb-faq-answer {
    color: #555770;
    padding-left: 0;
}


/* ============================================================
   STYLE 3: ACCORDION
   Expandable sections with smooth animation
   ============================================================ */
.mkjb-style-accordion details.mkjb-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: #ffffff;
}

.mkjb-style-accordion details.mkjb-faq-item:hover {
    border-color: #c5cad3;
}

.mkjb-style-accordion details.mkjb-faq-item[open] {
    border-color: #3858e9;
    box-shadow: 0 0 0 1px rgba(56, 88, 233, 0.12), 0 4px 12px rgba(56, 88, 233, 0.06);
}

.mkjb-style-accordion summary.mkjb-faq-question {
    background: #f9fafb;
    padding: 18px 52px 18px 22px;
    cursor: pointer;
    list-style: none;
    font-size: 1em;
    font-weight: 600;
    color: #1a1a2e;
    position: relative;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease;
    margin: 0;
    line-height: 1.45;
}

.mkjb-style-accordion summary.mkjb-faq-question::-webkit-details-marker {
    display: none;
}

.mkjb-style-accordion summary.mkjb-faq-question::marker {
    display: none;
    content: "";
}

/* Plus/minus icon */
.mkjb-style-accordion summary.mkjb-faq-question::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 400;
    color: #3858e9;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(56, 88, 233, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.mkjb-style-accordion details[open] summary.mkjb-faq-question {
    background: #f0f2ff;
    color: #3858e9;
}

.mkjb-style-accordion details[open] summary.mkjb-faq-question::after {
    content: "\2212";
    background: rgba(56, 88, 233, 0.15);
    transform: translateY(-50%) rotate(0deg);
}

.mkjb-style-accordion summary.mkjb-faq-question:hover {
    background: #f0f2ff;
    color: #3858e9;
}

.mkjb-style-accordion summary.mkjb-faq-question h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    display: inline;
    line-height: inherit;
}

.mkjb-style-accordion .mkjb-faq-answer {
    padding: 18px 22px 22px;
    background: #ffffff;
    border-top: 1px solid #eef0f3;
    color: #555770;
    animation: mkjb-fade-in 0.3s ease;
}

@keyframes mkjb-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   STYLE 4: BOXED  (NEW)
   Colored header boxes with distinct Q/A sections
   ============================================================ */
.mkjb-style-boxed .mkjb-faq-item {
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e2e5ea;
    background: #ffffff;
    transition: box-shadow 0.3s ease;
}

.mkjb-style-boxed .mkjb-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mkjb-style-boxed .mkjb-faq-question {
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
    padding: 16px 20px;
    margin: 0;
    color: #2d3a8c;
    font-size: 1em;
    border-bottom: 1px solid #dde1f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mkjb-style-boxed .mkjb-faq-question::before {
    content: "?";
    font-size: 16px;
    flex-shrink: 0;
}

.mkjb-style-boxed .mkjb-faq-answer {
    padding: 16px 20px;
    color: #4a4a68;
    background: #ffffff;
}


/* ============================================================
   STYLE 5: TIMELINE  (NEW)
   Vertical timeline with numbered dots
   ============================================================ */
.mkjb-style-timeline {
    position: relative;
    padding-left: 36px;
}

.mkjb-style-timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 60px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, #3858e9 0%, #c5cad3 100%);
    border-radius: 1px;
}

.mkjb-style-timeline .mkjb-faq-item {
    position: relative;
    padding: 0 0 28px 28px;
    margin-bottom: 0;
}

.mkjb-style-timeline .mkjb-faq-item:last-of-type {
    padding-bottom: 0;
}

.mkjb-style-timeline .mkjb-faq-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: #3858e9;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #3858e9;
    z-index: 1;
}

.mkjb-style-timeline .mkjb-faq-question {
    color: #1a1a2e;
    font-size: 1.05em;
    margin-bottom: 6px;
}

.mkjb-style-timeline .mkjb-faq-answer {
    color: #555770;
    padding-left: 0;
    font-size: 0.93em;
}


/* ============================================================
   STYLE 6: CHAT  (NEW)
   Messenger-style question / answer bubbles
   ============================================================ */
.mkjb-style-chat .mkjb-faq-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.mkjb-style-chat .mkjb-faq-question {
    align-self: flex-end;
    max-width: 80%;
    background: linear-gradient(135deg, #3858e9 0%, #6c5ce7 100%);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 1px 3px rgba(56, 88, 233, 0.25);
}

.mkjb-style-chat .mkjb-faq-question h3 {
    color: #ffffff;
}

.mkjb-style-chat .mkjb-faq-answer {
    align-self: flex-start;
    max-width: 85%;
    background: #f1f3f5;
    color: #2d3138;
    padding: 14px 18px;
    border-radius: 18px 18px 18px 4px;
    font-size: 0.95em;
    line-height: 1.65;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}


/* ============================================================
   STYLE 7: NUMBERED  (NEW)
   Large index numbers for tutorial-style posts
   ============================================================ */
.mkjb-style-numbered {
    counter-reset: mkjb-faq-counter;
}

.mkjb-style-numbered .mkjb-faq-item {
    counter-increment: mkjb-faq-counter;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #eef0f3;
}

.mkjb-style-numbered .mkjb-faq-item:last-of-type {
    border-bottom: none;
}

.mkjb-style-numbered .mkjb-faq-item::before {
    content: counter(mkjb-faq-counter, decimal-leading-zero);
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #3858e9 0%, #6c5ce7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.mkjb-style-numbered .mkjb-faq-question {
    grid-column: 2;
    font-size: 1.1em;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.mkjb-style-numbered .mkjb-faq-answer {
    grid-column: 2;
    color: #555770;
    padding-left: 0;
    font-size: 0.95em;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .mkjb-faq-block {
        margin: 20px auto;
    }

    .mkjb-style-card .mkjb-faq-item {
        padding: 18px 20px;
    }

    .mkjb-style-accordion summary.mkjb-faq-question {
        padding: 14px 44px 14px 16px;
        font-size: 0.95em;
    }

    .mkjb-style-boxed .mkjb-faq-question,
    .mkjb-style-boxed .mkjb-faq-answer {
        padding: 14px 16px;
    }

    .mkjb-style-timeline {
        padding-left: 28px;
    }

    .mkjb-style-minimal .mkjb-faq-answer {
        padding-left: 0;
    }

    .mkjb-style-numbered .mkjb-faq-item {
        grid-template-columns: 48px 1fr;
        gap: 12px;
    }

    .mkjb-style-numbered .mkjb-faq-item::before {
        font-size: 1.8em;
    }

    .mkjb-style-chat .mkjb-faq-question,
    .mkjb-style-chat .mkjb-faq-answer {
        max-width: 92%;
    }
}


/* ============================================================
   DARK MODE (frontend only; follows OS preference)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .mkjb-faq-block .mkjb-faq-title {
        color: #e8e8f0;
        border-bottom-color: #7c8fff;
    }

    .mkjb-faq-block .mkjb-faq-question {
        color: #e8e8f0;
    }

    .mkjb-faq-block .mkjb-faq-answer {
        color: #b8bcd1;
    }

    /* Minimal */
    .mkjb-style-minimal .mkjb-faq-item {
        border-bottom-color: #3a3d5c;
    }

    .mkjb-style-minimal .mkjb-faq-answer {
        color: #b8bcd1;
    }

    /* Card */
    .mkjb-style-card .mkjb-faq-item {
        background: #232946;
        border-color: #3a3d5c;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .mkjb-style-card .mkjb-faq-item:hover {
        border-color: #7c8fff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.25);
    }

    .mkjb-style-card .mkjb-faq-answer {
        color: #b8bcd1;
    }

    /* Accordion */
    .mkjb-style-accordion details.mkjb-faq-item {
        background: #232946;
        border-color: #3a3d5c;
    }

    .mkjb-style-accordion summary.mkjb-faq-question {
        background: #1a1a2e;
        color: #e8e8f0;
    }

    .mkjb-style-accordion details[open] summary.mkjb-faq-question,
    .mkjb-style-accordion summary.mkjb-faq-question:hover {
        background: #2d2f4f;
        color: #a8b9ff;
    }

    .mkjb-style-accordion summary.mkjb-faq-question::after {
        color: #a8b9ff;
        background: rgba(124, 143, 255, 0.15);
    }

    .mkjb-style-accordion .mkjb-faq-answer {
        background: #232946;
        border-top-color: #3a3d5c;
        color: #b8bcd1;
    }

    /* Boxed */
    .mkjb-style-boxed .mkjb-faq-item {
        background: #232946;
        border-color: #3a3d5c;
    }

    .mkjb-style-boxed .mkjb-faq-question {
        background: linear-gradient(135deg, #2d2f4f 0%, #353868 100%);
        color: #d8e0ff;
        border-bottom-color: #3a3d5c;
    }

    .mkjb-style-boxed .mkjb-faq-answer {
        background: #232946;
        color: #b8bcd1;
    }

    /* Timeline */
    .mkjb-style-timeline::before {
        background: linear-gradient(180deg, #7c8fff 0%, #3a3d5c 100%);
    }

    .mkjb-style-timeline .mkjb-faq-item::before {
        border-color: #1a1a2e;
        box-shadow: 0 0 0 2px #7c8fff;
    }

    /* Chat */
    .mkjb-style-chat .mkjb-faq-answer {
        background: #2d2f4f;
        color: #d8dcf0;
    }

    /* Numbered */
    .mkjb-style-numbered .mkjb-faq-item {
        border-bottom-color: #3a3d5c;
    }

    .mkjb-style-numbered .mkjb-faq-answer {
        color: #b8bcd1;
    }
}