/**
 * Meditation Retreats Archives - Professional Series v33.0
 * Aesthetics: Grayscale / Unified 5px Radius / Precision Alignment / Mobile Responsive
 */

/* ==========================================================================
   1. ROOT VARIABLES & TYPOGRAPHY
   ========================================================================== */
:root {
    /* --mra-hl-color is injected dynamically via PHP */
    --mra-primary: #333333;
    --mra-secondary: #7f8c8d;
    --mra-border: #eeeeee;
    --mra-bg-soft: #f9f9f9;
    --mra-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.mra-hidden { display: none !important; }
.mra-d-none { display: none !important; }
.mra-text-danger { color: #dc3545 !important; }
.mra-sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.mra-mb-20 { margin-bottom: 20px; }
.mra-mb-15 { margin-bottom: 15px; }
.mra-mb-30 { margin-bottom: 30px; }
.mra-mb-6 { margin-bottom: 6px; }
.mra-mt-15 { margin-top: 15px; }
.mra-flex-1 { flex: 1; }

.mra-notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    color: #475569;
    font-size: 1rem;
    text-align: center;
}
.mra-notice-center {
    text-align: center;
    padding: 60px 20px;
}
.mra-btn-login {
    margin-top: 20px;
    padding: 12px 24px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.mra-btn-login:hover {
    background: #0284c7;
}
.mra-bookmarks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.mra-bookmarks-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.mra-bookmarks-layout {
    display: flex;
    align-items: flex-start;
}

.mra-bookmarks-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: flex-start; /* Required for sticky to work in flex container */
    position: sticky;
    top: 100px;
}

.mra-sidebar-sticky {
    /* Sticky behavior moved to .mra-bookmarks-sidebar */
}

.mra-sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 700;
}

.mra-filter-list-vertical {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.mra-filter-list-vertical .mra-filter-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.mra-filter-list-vertical .mra-filter-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mra-filter-list-vertical .mra-filter-btn.active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.mra-bookmarks-main {
    flex-grow: 1;
    min-width: 0;
}

.mra-bookmarks-search-area {
    margin-bottom: 32px;
}

#mra-bookmark-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

#mra-bookmark-search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.mra-bookmark-tags .mra-filter-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}
.mra-bookmark-tags .mra-filter-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.mra-bookmark-tags .mra-filter-btn.active {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

.mra-accordion-icon {
    display: none;
}

@media (max-width: 991px) {
    .mra-accordion-icon {
        display: inline-block;
    }
    .mra-bookmarks-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .mra-bookmarks-sidebar {
        width: 100%;
        margin-bottom: 0;
        padding: 0;
        order: 2;
        border-top: none;
        background: #fff;
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        z-index: 1000;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        border-radius: 20px 20px 0 0;
        padding-top: 12px;
    }
    .mra-bookmarks-sidebar::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 4px;
    }
    .mra-sidebar-sticky {
        padding: 16px;
        padding-top: 4px;
        position: static;
    }
    .mra-folder-accordion-toggle {
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding-bottom: 8px;
    }
    .mra-accordion-icon {
        display: none !important;
    }
.mra-folder-accordion-content {
        display: flex !important;
        max-height: 0;
        overflow-y: hidden;
        margin-top: 0;
        transition: max-height 0.3s ease, margin-top 0.3s ease;
    }
    .mra-folder-accordion-content.mra-is-open {
        max-height: 75vh;
        overflow-y: auto;
        margin-top: 16px;
    }
    .mra-folder-accordion-content.mra-is-open {
        display: flex !important;
    }
    .mra-bookmarks-main {
        padding-bottom: 80px; /* Add padding so content isn't hidden behind sticky footer */
        order: 1;
    }
}

.mra-b-folder-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (hover: hover) {
    .mra-b-folder-badge.mra-js-move-bmark-trigger:hover {
        color: #3498db !important;
    }
}
.mra-b-folder-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* AI Anchor Icon */
.mra-ai-anchor-icon {
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}
.mra-ai-anchor-icon:hover {
    opacity: 1;
    color: #005177 !important;
}
.mra-cursor-pointer { cursor: pointer; }
.mra-w-100 { width: 100%; }
.mra-day-dates-style { font-weight: normal; font-size: 0.9em; opacity: 0.8; }
.mra-tag-link-style { display: inline-block; background: #eee; color: #333; padding: 4px 10px; border-radius: 12px; margin-right: 8px; margin-bottom: 8px; text-decoration: none; transition: background 0.2s; }
.mra-tag-link-style:hover { background: #ddd; }
.mra-excerpt-heading-style { margin-top: 0; margin-bottom: 10px; font-size: 1.1em; }
.mra-ask-breadcrumb-label-style { font-size: 11px; color: #888; margin-bottom: 10px; text-transform: uppercase; }

html {
    scroll-behavior: smooth;
}

.mra-root,
.mra-root * {
    box-sizing: border-box;
}

.mra-root {
    max-width: 1100px;
    margin: 40px auto;
    color: var(--mra-primary);
    line-height: 1.8;
}

/* ==========================================================================
   2. ICON SIZE & SPACING CONSTRAINTS
   ========================================================================== */
.mra-root svg,
.mra-selection-popup svg,
.mra-confirm-box svg,
.mra-b-card svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    /* 2 blank spaces width */
    flex-shrink: 0;
    stroke-width: 2;
    fill: none;
}

.mra-close svg,
.mra-close-small svg {
    margin-right: 0;
}

/* ==========================================================================
   3. SHARED BUTTON STYLES
   ========================================================================== */
.mra-b-btn,
#mra-search-btn,
.mra-search-toggle-btn,
#mra-ask-confirm,
#mra-send-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    height: 42px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    min-width: 120px;
}

@media (hover: hover) {
    .mra-b-btn:hover,
    #mra-search-btn:hover,
    .mra-search-toggle-btn:hover {
        background: #f8f9fa;
        border-color: #999;
        color: #222;
    }
}

/* Dark Button Variant */
.mra-b-btn.view,
#mra-search-btn,
#mra-ask-confirm,
#mra-send-confirm {
    background: #333 !important;
    color: #fff !important;
    border: none !important;
}

@media (hover: hover) {
    .mra-b-btn.view:hover,
    #mra-search-btn:hover {
        background: #000 !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.mra-b-btn svg,
#mra-search-btn svg,
.mra-search-toggle-btn svg,
.mra-selection-popup button svg,
.mra-share-dropdown button svg {
    width: 16px;
    height: 16px;
    margin-right: 0;
}

#mra-act-ask {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

#mra-act-ask svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   4. ADVANCED SEARCH UI (Pill Design)
   ========================================================================== */
.mra-search-toggle-btn {
    margin: 0 auto 30px;
    border-radius: 50px;
}

.mra-advanced-search {
    background: #ffffff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
    border: 1px solid #f0f0f0;
}

.mra-search-row.main {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 100;
}

.mra-root .mra-search-buttons {
    display: flex;
    gap: 10px;
}

/* Live Search Dropdown */
.mra-live-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    margin-top: 5px;
}

.mra-live-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.mra-live-item:last-child {
    border-bottom: none;
}

.mra-live-item:hover {
    background: #f9f9f9;
}

.mra-live-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mra-live-snippet {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.mra-live-snippet strong {
    background: var(--mra-hl-color);
    padding: 0 2px;
    font-weight: 600;
    color: #000;
}

.mra-search-row.main input {
    flex: 1;
    border: none;
    background: transparent;
    padding-left: 20px;
    font-size: 16px;
    outline: none;
}

.mra-search-row.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #f9f9f9;
    align-items: center;
}

.mra-search-row select,
.mra-date-inputs input {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    background: #fcfcfc;
    font-size: 14px;
}

.mra-date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.mra-date-label-main {
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.mra-date-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mra-no-results {
    padding: 50px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 5px;
    color: var(--mra-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mra-no-results-icon {
    width: 64px;
    height: 64px;
    color: var(--mra-secondary);
    opacity: 0.7;
}

.mra-no-results-icon svg {
    width: 100%;
    height: 100%;
}



/* ==========================================================================
   5. ARCHIVE GRID & SHADOW BOXES
   ========================================================================== */
.mra-content-area { display: none; padding: 0 30px 30px 30px; }
@media (max-width: 991px) {
    .mra-content-area {
        padding: 0 10px 30px 0;
    }
}
.mra-row.is-open > .mra-content-area { display: block; }

.mra-row { margin-bottom: 20px; border-radius: 5px; overflow: hidden; transition: all 0.3s ease; }

.mra-theme-standard .mra-lvl-1 { background: #ffffff; border: 1px solid #f0f0f0; box-shadow: var(--mra-shadow); }

/* --- RETREAT HEADER RESTRUCTURE (Requirement #1 & #2) --- */
.mra-retreat-header {
    display: flex;
    flex-direction: column; /* Stack image on top of info */
    cursor: pointer;
    padding: 0; /* Remove padding from outer container to allow image bleed */
}

/* 1. The Image Container */
.mra-retreat-image {
    width: 100%;
    overflow: hidden;
    border-radius: 5px; /* All four corners rounded for mobile */
}

.mra-retreat-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 2. The Info Box (Underneath Image) */
.mra-retreat-info {
    padding: 30px; /* Internal padding for text */
    width: 100%;
    background: #fff;
}

.mra-standard-title {
    margin: 0 0 10px 0 !important;
    font-size: 1.3rem;
    font-weight: bold;
}
.mra-standard-title a { color: var(--mra-primary); text-decoration: none; }

/* Retreat Excerpt (Requirement #6: Smaller, Italic, Dark Gray) */
.mra-retreat-excerpt {
    font-size: 0.85em; 
    color: #666; 
    font-style: italic; 
    margin-top: 5px; 
    margin-bottom: 15px; 
    line-height: 1.5;
}

ul.mra-meta {
    display: flex; 
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 25px; 
    margin: 10px 0 0 0; 
    padding: 0;
    list-style: none; /* Remove bullet points */
    font-size: 14px; 
    color: var(--mra-secondary); 
}
ul.mra-meta li.mra-meta-item { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.mra-session-facilitator {
    color: var(--mra-secondary);
}

/* Force SVGs to inherit currentColor globally (unifying fill and stroke icons) */
.mra-root svg:not(.mra-auth-social-btn svg):not([fill]):not([stroke]) {
    fill: currentColor !important;
}
.mra-meta-item svg [style*="fill"],
.mra-session-facilitator svg [style*="fill"] {
    fill: currentColor !important;
}
.mra-meta-item svg [style*="stroke"],
.mra-session-facilitator svg [style*="stroke"] {
    stroke: currentColor !important;
}

.mra-root svg:not(.mra-auth-social-btn svg)[stroke]:not([stroke="none"]),
.mra-modal-box svg:not(.mra-auth-social-btn svg)[stroke]:not([stroke="none"]),
.mra-a11y-popover svg:not(.mra-auth-social-btn svg)[stroke]:not([stroke="none"]),
.mra-selection-popup svg:not(.mra-auth-social-btn svg)[stroke]:not([stroke="none"]),
.mra-confirm-box svg:not(.mra-auth-social-btn svg)[stroke]:not([stroke="none"]),
.mra-b-card svg:not(.mra-auth-social-btn svg)[stroke]:not([stroke="none"]),
.mra-auth-modal-content svg:not(.mra-auth-social-btn svg)[stroke]:not([stroke="none"]),
.mra-root svg:not(.mra-auth-social-btn svg) [stroke]:not([stroke="none"]),
.mra-modal-box svg:not(.mra-auth-social-btn svg) [stroke]:not([stroke="none"]),
.mra-a11y-popover svg:not(.mra-auth-social-btn svg) [stroke]:not([stroke="none"]),
.mra-selection-popup svg:not(.mra-auth-social-btn svg) [stroke]:not([stroke="none"]),
.mra-confirm-box svg:not(.mra-auth-social-btn svg) [stroke]:not([stroke="none"]),
.mra-b-card svg:not(.mra-auth-social-btn svg) [stroke]:not([stroke="none"]),
.mra-auth-modal-content svg:not(.mra-auth-social-btn svg) [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.mra-root svg:not(.mra-auth-social-btn svg)[fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-modal-box svg:not(.mra-auth-social-btn svg)[fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-a11y-popover svg:not(.mra-auth-social-btn svg)[fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-selection-popup svg:not(.mra-auth-social-btn svg)[fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-confirm-box svg:not(.mra-auth-social-btn svg)[fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-b-card svg:not(.mra-auth-social-btn svg)[fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-auth-modal-content svg:not(.mra-auth-social-btn svg)[fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-root svg:not(.mra-auth-social-btn svg) [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-modal-box svg:not(.mra-auth-social-btn svg) [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-a11y-popover svg:not(.mra-auth-social-btn svg) [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-selection-popup svg:not(.mra-auth-social-btn svg) [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-confirm-box svg:not(.mra-auth-social-btn svg) [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-b-card svg:not(.mra-auth-social-btn svg) [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
.mra-auth-modal-content svg:not(.mra-auth-social-btn svg) [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]) {
    fill: currentColor !important;
}

/* Desktop Overrides for Retreat Header */
@media (min-width: 769px) {
    .mra-retreat-header.mra-has-image {
        flex-direction: row-reverse;
        align-items: stretch;
    }
    .mra-retreat-image {
        width: 35%;
        flex-shrink: 0;
        border-radius: 0 5px 5px 0; /* Right corners rounded for desktop */
    }
    .mra-retreat-image img {
        height: 100%;
    }
    .mra-retreat-info {
        width: 65%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* --- DAY AND SESSION HEADERS --- */
.mra-lvl-2 > .mra-header { padding: 15px 0; cursor: pointer; }
.mra-lvl-2 { border-left: 4px solid #f1f2f6; margin: 15px 0 15px 25px; padding-left: 20px; }

/* Desktop Grid for Sessions */
.mra-sessions-grid {
    display: none; /* Hide by default */
    grid-template-columns: repeat(var(--mra-grid-cols, 3), 1fr);
    gap: 20px;
    padding: 20px 0;
}

.mra-row.is-open > .mra-sessions-grid {
    display: grid; /* Show when open */
}

/* Level 3 Session Card */
.mra-lvl-3 { 
    background: #f8f9fa; border: 1px solid #eee; margin: 0; 
    border-radius: 5px; transition: all 0.2s ease;
    display: flex; flex-direction: column; height: 100%;
}
.mra-lvl-3:hover { background: #ffffff; border-color: #3498db; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transform: translateY(-2px); }

.mra-lvl-3 .mra-header { flex-direction: column; align-items: flex-start; padding: 25px; gap: 10px; height: 100%; }
.mra-lvl-3 h5 { font-size: 1.15rem; margin: 0; line-height: 1.4; }
.mra-lvl-3 h5 a { color: #2c3e50; text-decoration: none; }
.mra-lvl-3 h5 a:hover { text-decoration: underline; }

.mra-session-excerpt { font-size: 16px; color: #666; line-height: 1.6; margin: 0; flex-grow: 1; }
.mra-session-action { font-size: 12px; font-weight: bold; color: #3498db; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; }

/* Flat search mode overrides */
.mra-search-active article > header, .mra-search-active section > header { display: none; }
.mra-search-active .mra-lvl-3 header { display: flex; }

/* ==========================================================================
   6. MODALS & MULTIMEDIA
   ========================================================================== */
.mra-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.mra-modal.is-visible {
    display: flex;
}

.mra-single-view {
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.mra-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    max-height: 85vh;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    padding: 40px;
    box-sizing: border-box;
    margin: 0;
}

/* Minimalist Close Button */
.mra-close,
.mra-close-small {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    z-index: 1000;
}

.mra-close svg,
.mra-close-small svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    margin: 0;
}

.mra-close:hover,
.mra-close-small:hover {
    color: #333;
}

.mra-modal-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
    margin-top: 10px;
    flex-grow: 1;
    scroll-behavior: smooth;
    position: relative;
}

.mra-breadcrumbs-wrapper {
    width: 100%;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px); /* span full width taking into account parent padding */
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 15px;
    background: var(--wp--preset--color--base, #ffffff);
    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.mra-single-view .mra-breadcrumbs-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-left: -20px;
    margin-right: -10px;
    width: calc(100% + 40px);
    padding-left: 20px;
    padding-right: 10px;
    padding-top: 30px;
    border-radius: 0;
}

.mra-modal-scroll::-webkit-scrollbar {
    width: 8px;
}

.mra-modal-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.mra-breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-transform: none;
    letter-spacing: normal;
    width: 100%;
}

.mra-breadcrumbs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mra-bc-item {
    display: inline-flex;
    align-items: center;
    /* gap: 6px; */
    white-space: nowrap;
}

.mra-bc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.mra-bc-link:hover {
    color: var(--mra-primary, #0073aa);
    text-decoration: none;
}

.mra-bc-current {
    color: #0f172a;
    font-weight: 500;
}

.mra-bc-chevron {
    color: #cbd5e1;
    flex-shrink: 0;
}

.mra-bc-home {
    flex-shrink: 0;
}

.mra-modal-banner {
    margin: -20px -25px 20px -25px;
    overflow: hidden;
    border-radius: 5px;
}

.mra-single-view .mra-modal-banner {
    margin: 0 0 20px 0;
}

.mra-modal-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.mra-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.mra-modal-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.mra-modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.mra-a11y-container {
    position: relative;
    display: inline-block;
}

.mra-a11y-toggle {
    background-color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
    fill: currentColor;
    stroke: currentColor;
    padding: 0;
}

.mra-a11y-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
}

.mra-a11y-toggle:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.mra-a11y-toggle svg {
    width: 20px;
    height: 20px;
}

@keyframes mraPopoverFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mra-a11y-popover {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15), 0 0 20px rgba(0,0,0,0.05);
    padding: 16px;
    width: 270px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mra-a11y-popover:not([hidden]) {
    animation: mraPopoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mra-a11y-popover[hidden] {
    display: none;
}

.mra-a11y-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 4px 0;
}

/* Dark Theme Styles */
body.mra-dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.mra-dark-theme .mra-modal-box,
body.mra-dark-theme .mra-single-view,
body.mra-dark-theme .mra-a11y-popover,
body.mra-dark-theme .mra-toc-container,
body.mra-dark-theme .mra-transcript-body,
body.mra-dark-theme .mra-related-card,
body.mra-dark-theme .mra-theme-card,
body.mra-dark-theme .mra-study-path-item,
body.mra-dark-theme .mra-daily-wisdom,
body.mra-dark-theme .mra-bookmarks-sidebar,
body.mra-dark-theme .mra-b-card,
body.mra-dark-theme .mra-share-dropdown,
body.mra-dark-theme .mra-folder-dropdown,
body.mra-dark-theme .mra-selection-popup,
body.mra-dark-theme .mra-ai-chat-window,
body.mra-dark-theme .mra-ai-chat-footer,
body.mra-dark-theme .mra-search-ai-answer,
body.mra-dark-theme .mra-theme-suggest,
body.mra-dark-theme .mra-live-results {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

body.mra-dark-theme .mra-ai-chat-footer input {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

body.mra-dark-theme .mra-ai-chat-footer button {
    background-color: #444;
    color: #fff;
}

body.mra-dark-theme .mra-modal-title,
body.mra-dark-theme .mra-toc-title,
body.mra-dark-theme .mra-bookmarks-title,
body.mra-dark-theme .mra-related-card-title,
body.mra-dark-theme .mra-theme-card h3,
body.mra-dark-theme .mra-study-path-item h3,
body.mra-dark-theme .mra-wisdom-quote,
body.mra-dark-theme .mra-b-title,
body.mra-dark-theme .mra-related-title,
body.mra-dark-theme .mra-ai-chat-header h3 {
    color: #ffffff;
}

body.mra-dark-theme .mra-font-adjuster,
body.mra-dark-theme .mra-font-btn:hover,
body.mra-dark-theme .mra-filter-btn,
body.mra-dark-theme .mra-ai-chat-body,
body.mra-dark-theme .mra-ai-system {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

body.mra-dark-theme .mra-theme-summary {
    color: #e0e0e0;
}

body.mra-dark-theme .mra-close,
body.mra-dark-theme .mra-font-btn,
body.mra-dark-theme .mra-a11y-section label,
body.mra-dark-theme .mra-toc-list a,
body.mra-dark-theme .mra-modal-excerpt,
body.mra-dark-theme .mra-wisdom-source,
body.mra-dark-theme .mra-b-meta,
body.mra-dark-theme .mra-share-dropdown button,
body.mra-dark-theme .mra-folder-dropdown button,
body.mra-dark-theme .mra-search-ai-answer blockquote {
    color: #b0b0b0;
}

body.mra-dark-theme .mra-search-ai-answer blockquote {
    border-left-color: #555;
}

body.mra-dark-theme .mra-live-item {
    border-bottom-color: #333;
}
body.mra-dark-theme .mra-live-item:hover,
body.mra-dark-theme .mra-theme-suggest div:hover {
    background-color: #2d2d2d;
    color: #fff;
}

html.mra-dark-theme .mra-a11y-toggle,
body.mra-dark-theme .mra-a11y-toggle,
[data-theme="dark"] .mra-a11y-toggle {
    background-color: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

html.mra-dark-theme .mra-a11y-toggle svg path,
body.mra-dark-theme .mra-a11y-toggle svg path,
[data-theme="dark"] .mra-a11y-toggle svg path {
    stroke: #ffffff !important;
}

html.mra-dark-theme .mra-a11y-toggle:hover,
body.mra-dark-theme .mra-a11y-toggle:hover,
[data-theme="dark"] .mra-a11y-toggle:hover {
    background-color: #3f3f46;
    color: #ffffff;
}

body.mra-dark-theme .mra-close:hover,
body.mra-dark-theme .mra-toc-list a:hover {
    background-color: #333;
    color: #fff;
}

body.mra-dark-theme .mra-a11y-divider,
body.mra-dark-theme .mra-b-card {
    border-color: #333;
}

body.mra-dark-theme .mra-advanced-search {
    background: #1e1e1e;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: #333;
}

body.mra-dark-theme .mra-search-row.main {
    background: #2d2d2d;
    border-color: #444;
}

body.mra-dark-theme .mra-search-row.main input {
    color: #e0e0e0;
}

body.mra-dark-theme .mra-search-row.filters,
body.mra-dark-theme .mra-related-teachings-section {
    border-top-color: #333;
}

body.mra-dark-theme .mra-search-row select,
body.mra-dark-theme .mra-date-inputs input {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.mra-dark-theme .mra-b-btn,
body.mra-dark-theme .mra-search-toggle-btn,
body.mra-dark-theme #mra-ask-confirm,
body.mra-dark-theme #mra-send-confirm {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.mra-dark-theme .mra-b-btn:hover,
body.mra-dark-theme .mra-search-toggle-btn:hover {
    background: #333;
    border-color: #555;
    color: #fff;
}

body.mra-dark-theme .mra-b-btn.view,
body.mra-dark-theme #mra-search-btn,
body.mra-dark-theme #mra-ask-confirm,
body.mra-dark-theme #mra-send-confirm {
    background: #0ea5e9 !important;
    color: #fff !important;
    border: none !important;
}

body.mra-dark-theme .mra-b-btn.view:hover,
body.mra-dark-theme #mra-search-btn:hover {
    background: #0284c7 !important;
}

body.mra-dark-theme .mra-a11y-toggle-input {
    background-color: #444;
}

body.mra-dark-theme .mra-a11y-toggle-input:checked {
    background-color: #0ea5e9;
}

body.mra-dark-theme .mra-a11y-toggle-input::after {
    background-color: #e0e0e0;
}

.mra-a11y-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mra-a11y-section label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mra-font-adjuster {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border-radius: 9999px;
    padding: 4px;
    border: none;
    gap: 2px;
}

.mra-font-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s, color 0.2s;
}

.mra-font-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mra-font-btn.mra-font-decrease {
    font-size: 12px;
}

.mra-font-btn.mra-font-increase {
    font-size: 16px;
}

.mra-font-btn.mra-font-reset svg {
    width: 16px;
    height: 16px;
}

.mra-font-value {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    min-width: 40px;
    text-align: center;
}

.mra-a11y-toggle-input {
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    appearance: none;
    background: #e2e8f0;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.mra-a11y-toggle-input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mra-a11y-toggle-input:checked {
    background: #6366f1;
}

.mra-a11y-toggle-input:checked::after {
    transform: translateX(18px);
}

.mra-scalable-content {
    font-size: calc(1rem * var(--mra-scale, 1));
    line-height: var(--mra-line-height, 1.6);
    font-family: var(--mra-font-family, inherit);
    transition: font-size 0.2s ease-out, line-height 0.2s ease-out;
}

.mra-relaxed-line-height {
    --mra-line-height: 2.0;
}

.mra-tag-link {
    font-size: calc(0.7em * var(--mra-scale, 1));
    font-weight: 500;
}



/* Dyslexia Font */
.mra-dyslexia-font .mra-scalable-content {
    --mra-font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif;
}

/* TTS Player - Native Podcast Style */
.mra-tts-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mra-tts-player[hidden] {
    display: none;
    opacity: 0;
    transform: translateY(100%);
}

.mra-tts-progress-bar {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.mra-tts-progress-fill {
    height: 100%;
    background: #0f172a;
    width: 0%;
    transition: width 0.2s linear;
}

.mra-tts-player-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mra-tts-zone-left {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.mra-tts-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
}

.mra-tts-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #0f172a;
}

.mra-tts-status-text {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mra-tts-zone-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 2;
}

.mra-tts-zone-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.mra-tts-settings-wrapper {
    position: relative;
}

.mra-tts-settings-menu {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2), 0 4px 12px -4px rgba(0,0,0,0.1);
    padding: 16px;
    width: 280px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform-origin: bottom right;
    animation: mraPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mra-tts-settings-menu[hidden] {
    display: none;
}

@keyframes mraPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mra-tts-setting-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mra-tts-setting-row label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mra-tts-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.mra-tts-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: scale(1.05);
}

.mra-tts-btn:active {
    transform: scale(0.95);
}

.mra-tts-btn.active {
    background: #eff6ff;
    color: #2563eb;
}

.mra-tts-play-pause {
    background: #0f172a;
    color: #ffffff;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.mra-tts-play-pause:hover {
    background: #1e293b;
    color: #ffffff;
    transform: scale(1.05);
}

.mra-tts-pause-icon {
    display: none;
}

.mra-tts-voice-select,
.mra-tts-speed-select {
    width: 100%;
    padding: 10px 32px 10px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.mra-tts-voice-select:hover,
.mra-tts-speed-select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.mra-tts-voice-select:focus,
.mra-tts-speed-select:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.mra-tts-close {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.mra-tts-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .mra-tts-player-inner {
        padding: 12px 16px;
        gap: 8px;
    }
    .mra-tts-zone-left {
        display: none; /* Hide status on mobile to save space */
    }
    .mra-tts-zone-center {
        flex: 1;
        justify-content: flex-start;
    }
    .mra-tts-settings-menu {
        width: 240px;
        right: -40px; /* Adjust popover position on mobile */
    }
}

.mra-tts-word-hl {
    background-color: rgba(255, 152, 0, 0.4);
    border-radius: 2px;
    border-bottom: 2px solid #ff9800;
}



/* TTS Highlighting & Focus Mode */
.mra-tts-active-block {
    background-color: var(--mra-tts-hl-color, #fff176);
    border-radius: 4px;
    transition: background-color 0.2s;
}



.mra-tts-focus-mode .mra-scalable-content > * {
    opacity: 0.4;
    transition: opacity 0.3s;
}

.mra-tts-focus-mode .mra-scalable-content > .mra-tts-active-block {
    opacity: 1;
}

/* Click to Read Mode */
.mra-tts-click-mode .mra-scalable-content p,
.mra-tts-click-mode .mra-scalable-content li,
.mra-tts-click-mode .mra-scalable-content h2,
.mra-tts-click-mode .mra-scalable-content h3,
.mra-tts-click-mode .mra-scalable-content h4 {
    cursor: pointer;
    position: relative;
}

.mra-tts-click-mode .mra-scalable-content p:hover,
.mra-tts-click-mode .mra-scalable-content li:hover,
.mra-tts-click-mode .mra-scalable-content h2:hover,
.mra-tts-click-mode .mra-scalable-content h3:hover,
.mra-tts-click-mode .mra-scalable-content h4:hover {
    outline: 2px dashed #3498db;
    outline-offset: 4px;
    border-radius: 2px;
}

.mra-modal-excerpt {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
    border-left: 4px solid #ddd;
    padding-left: 15px;
}

.mra-modal-excerpt p:last-child {
    margin-bottom: 0;
}

.mra-toc-container {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.mra-toc-title {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mra-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mra-toc-list li {
    margin-bottom: 10px;
}

.mra-toc-list li:last-child {
    margin-bottom: 0;
}

.mra-toc-list a {
    color: var(--mra-primary);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s ease;
    display: block;
}

.mra-toc-list a:hover {
    color: var(--mra-secondary);
    text-decoration: underline;
}

.mra-multimedia-hub {
    background: #111;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.mra-player-item {
    margin-bottom: 15px;
    color: #fff;
}

.mra-player-item label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   7. TRANSCRIPT AND QA ACCORDION
   ========================================================================== */
.mra-transcript-section {
    margin-top: 10px;
}

.mra-transcript-heading {
    margin: 0;
    padding: 0;
    border: none;
}

.mra-transcript-body {
    padding-top: 10px;
}

.mra-qa-details {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    scroll-margin-top: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.mra-qa-summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    outline: none;
    background: #f8fafc;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05em;
    list-style: none;
}

.mra-qa-summary::-webkit-details-marker {
    display: none;
}

.mra-qa-q-icon {
    color: #6366f1;
    font-weight: 800;
    font-size: 1.1em;
}

.mra-qa-q-text {
    flex: 1;
}

.mra-qa-answer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.7;
    color: #334155;
    font-size: 1em;
}

/* ==========================================================================
   8. DYNAMIC HIGHLIGHTS & SELECTION POPUP
   ========================================================================== */
mark.mra-active-highlight {
    background-color: var(--mra-hl-color, #fff176);
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 2px 0 0 rgba(0,0,0,0.1);
}

mark.mra-active-highlight.mra-fade-out {
    background-color: transparent;
    color: inherit;
    transition: background-color 2s ease-out, color 2s ease-out;
    box-shadow: none;
}

.mra-selection-popup {
    position: absolute;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 2147483647;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    gap: 0;
}

.mra-selection-popup.mra-horizontal {
    transform: translateX(-50%);
}

.mra-selection-popup.mra-vertical {
    transform: translateY(-50%);
}

.mra-popup-main {
    display: flex;
    gap: 6px;
    padding: 6px;
}

.mra-selection-popup.mra-vertical .mra-popup-main {
    flex-direction: column;
}

.mra-selection-popup.mra-horizontal .mra-popup-main {
    flex-direction: row;
}

.mra-selection-popup.mra-vertical button[data-tooltip]::after {
    bottom: 50%;
    left: 115%;
    transform: translateY(50%);
}

.mra-selection-popup.mra-vertical button[data-tooltip]::before {
    bottom: 50%;
    left: 100%;
    transform: translateY(50%);
    border-width: 5px 5px 5px 0;
    border-color: transparent #2c3e50 transparent transparent;
}

.mra-selection-popup.mra-vertical .mra-share-dropdown {
    left: 115%;
    bottom: 50%;
    top: auto;
    transform: translateY(50%);
}

.mra-btn-text, .mra-dropdown-text {
    display: none;
}

.mra-selection-popup button,
.mra-share-dropdown button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #444;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

@media (hover: hover) {
    .mra-selection-popup button:hover,
    .mra-share-dropdown button:hover {
        background: #f0f0f0;
        color: #000;
    }
}

.mra-selection-popup button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transition-delay: 0.4s;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mra-selection-popup button[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #2c3e50 transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transition-delay: 0.4s;
    pointer-events: none;
}

@media (hover: hover) {
    .mra-selection-popup button[data-tooltip]:hover::after,
    .mra-selection-popup button[data-tooltip]:hover::before {
        opacity: 1;
        visibility: visible;
    }
}

.mra-share-wrapper {
    position: relative;
    display: inline-block;
}

.mra-share-dropdown {
    position: absolute;
    left: 50%;
    top: 115%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    min-width: 60px;
}

.mra-b-card .mra-share-dropdown {
    bottom: 110%;
    top: auto;
}

.mra-selection-popup .mra-share-dropdown {
    top: 110%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
}

.mra-share-dropdown button {
    border: none;
    background: transparent;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 8px;
    padding: 10px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mra-share-dropdown button svg {
    color: #6b7280;
    margin: 0;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .mra-share-dropdown button:hover {
        background: #f3f4f6;
        color: #111827;
        transform: translateX(2px);
    }
    .mra-share-dropdown button:hover svg {
        color: #111827;
    }
}

.mra-dropdown-text {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

/* ==========================================================================
   9. FORMS & OVERLAYS (Professional Centering)
   ========================================================================== */
.mra-confirm-overlay {
    display: none;
    position: fixed;
    z-index: 10000000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.mra-confirm-overlay.is-visible {
    display: flex;
}

.mra-confirm-box {
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.mra-ask-quote-box {
    background: #f9f9f9;
    color: #666;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

@media (min-width: 769px) {
    #mra-ask-form-overlay .mra-confirm-box {
        max-width: 900px;
    }
    .mra-ask-quote-box {
        max-height: 250px;
    }
}

.mra-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
    text-align: left;
}

.mra-field-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: #999;
    margin-bottom: -5px;
}

#mra-ask-breadcrumb-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mra-form-grid input,
.mra-form-grid textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    color: #333;
}

.mra-form-grid input:focus,
.mra-form-grid textarea:focus {
    border-color: #333;
}

.mra-confirm-btns {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.mra-btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.mra-btn-danger:hover {
    background: #dc2626;
}

.mra-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.mra-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ==========================================================================
   10. BOOKMARK CARDS & INLINE DELETE
   ========================================================================== */
.mra-bookmark-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
}
.mra-bookmark-link-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: #475569;
}
.mra-bookmark-link-icon:active {
    transform: scale(0.95);
}
.mra-bookmark-link-icon svg {
    width: 24px;
    height: 24px;
}

.mra-bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.mra-b-card {
    position: relative;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 11px 20px 20px 20px;
    margin-bottom: 0;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}   

.mra-b-meta-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}

.mra-b-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.74rem;
    text-transform: none;
    color: #64748b;
    letter-spacing: normal;
    padding-right: 0;
    line-height: 1.4;
    margin-bottom: 16px;
}

.mra-b-quote {
    font-size: 0.95rem;
    color: #334155;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 0 0 20px 0;
    border-left: 4px solid #cbd5e1;
    max-height: 12em;
    overflow-y: auto;
    flex-grow: 1;
    line-height: 1.6;
    font-style: italic;
}

.mra-b-quote p {
    margin: 0 0 1em 0;
}

.mra-b-quote p:last-child {
    margin-bottom: 0;
}

.mra-b-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.mra-b-footer .mra-b-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    height: auto;
    width: auto;
}

.mra-b-footer .mra-b-btn.view {
    background: #0ea5e9 !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}
@media (hover: hover) {
    .mra-b-footer .mra-b-btn.view:hover {
        background: #0284c7 !important;
    }
}

.mra-b-footer .mra-b-btn.share {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}
@media (hover: hover) {
    .mra-b-footer .mra-b-btn.share:hover {
        background: #e2e8f0 !important;
        color: #1e293b !important;
    }
}

.mra-card-confirm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* ==========================================================================
   11. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 991px) {
    .mra-b-card {
        padding: 11px;
        margin-left: -15px;
        margin-right: 5px;
    }

    .mra-root .mra-search-row.main {
        flex-direction: column;
        padding: 10px;
    }

    .mra-root .mra-search-input-wrapper {
        width: 100%;
    }

    .mra-root .mra-search-row.main input {
        padding: 12px;
        text-align: center;
        width: 100%;
    }

    .mra-root .mra-search-buttons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .mra-root #mra-search-btn,
    .mra-root .mra-ask-btn {
        flex: 1;
        height: 48px;
        border-radius: 5px;
        min-width: 0;
        padding: 0 10px;
    }

    .mra-root .mra-search-row.filters {
        flex-direction: column;
        align-items: stretch;
    }

    /* Mobile Stacked Date Filter Inputs */
    .mra-root .mra-date-inputs {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
        border-top: 1px dashed #eee;
        padding-top: 10px;
        margin-top: 5px;
    }

    .mra-root .mra-date-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mra-root .mra-date-wrap label {
        font-size: 11px;
        text-transform: uppercase;
        color: #888;
        font-weight: bold;
    }

    .mra-root .mra-date-wrap input {
        width: 75%;
    }

    .mra-root .mra-date-label-main {
        display: none;
    }

    .mra-retreat-info {
        padding: 15px 0 0 0 !important;
    }

    .mra-standard-title {
        font-size: 1rem;
        margin-bottom: 8px !important;
        line-height: 1.2;
    }

    .mra-retreat-excerpt {
        margin-bottom: 12px;
        font-size: 0.85rem;
    }

    .mra-meta {
        gap: 12px;
        font-size: 13px;
    }

    .mra-root .mra-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .mra-root .mra-img {
        width: 100%;
        height: 200px;
    }

    .mra-root .mra-sessions-grid {
        grid-template-columns: 1fr;
        padding: 15px 0 !important;
    }

    .mra-lvl-2 {
        margin-left: 10px;
        padding-left: 10px;
    }

    .mra-lvl-3 {
        margin-left: 0;
    }

    .mra-modal {
        padding: 10px;
        align-items: start;
        justify-content: left;
    }

    .mra-modal-box {
        width: 100%;
        padding: 25px 20px 20px 20px;
        margin: 0;
        max-height: 95vh;
    }

    .mra-modal-box {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mra-single-view {
        padding-top: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .mra-modal-scroll {
        padding-right: 15px;
    }

    .mra-close {
        right: 10px;
        top: 10px;
    }

    /* Icon-Only Tool Bar */
    .mra-selection-popup {
        flex-wrap: nowrap;
        justify-content: center;
        padding: 8px;
        width: auto;
        max-width: none;
    }

    .mra-selection-popup.mra-horizontal {
        flex-direction: row;
        transform: translateX(-50%);
        position: fixed;
        left: 50% !important;
        right: auto !important;
        margin: 0 auto !important;
        width: max-content !important;
        bottom: 20px !important;
        top: auto !important;
        z-index: 2147483647;
    }

    .mra-selection-popup.mra-vertical {
        flex-direction: column;
        transform: none !important;
        position: fixed;
        left: 20px !important;
        right: auto !important;
        margin: 0 !important;
        width: max-content !important;
        bottom: 20px !important;
        top: auto !important;
        z-index: 2147483647;
    }

    .mra-selection-popup.mra-horizontal .mra-share-dropdown {
        left: 50%;
        bottom: 115%;
        top: auto;
        transform: translateX(-50%);
    }

    .mra-selection-popup.mra-horizontal .mra-folder-dropdown,
    .mra-selection-popup.mra-vertical .mra-folder-dropdown,
    .mra-move-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 50% !important;
        right: auto !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        border-radius: 20px 20px 0 0 !important;
        padding-top: 24px !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px) !important;
        z-index: 2147483647 !important;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5), 0 -10px 40px rgba(0, 0, 0, 0.1) !important;
        animation: none !important;
    }
    
    .mra-selection-popup.mra-horizontal .mra-folder-dropdown::before,
    .mra-selection-popup.mra-vertical .mra-folder-dropdown::before,
    .mra-move-dropdown::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 4px;
    }

    .mra-popup-main {
        padding: 0;
    }

    .mra-selection-popup button {
        padding: 0;
        min-width: auto;
        border-radius: 5px;
        width: 44px;
        height: 44px;
    }

    .mra-share-dropdown button {
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .mra-selection-popup button[data-tooltip]::after,
    .mra-selection-popup button[data-tooltip]::before {
        display: none;
    }

    /* Hide tooltips on touch */
    .mra-selection-popup .mra-share-dropdown {
        top: auto;
        bottom: 115%;
    }

    .mra-root .mra-b-footer {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .mra-root .mra-b-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
    }
    
    .mra-root .mra-share-wrapper {
        flex: 1;
    }
    
    .mra-root .mra-share-wrapper .mra-b-btn {
        width: 100%;
    }

    .mra-confirm-box {
        width: 95%;
        padding: 25px 20px;
    }
}

/* ==========================================================================
   10. NEW REFACTORED CLASSES
   ========================================================================== */
.mra-root .mra-search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

.mra-root .mra-search-input-wrapper input[type="search"] {
    width: 100%;
}

.mra-theme-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    width: 100%;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    opacity: 0;
    animation: mra-suggest-fade-in 0.2s ease-out forwards;
}

@keyframes mra-suggest-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

body.mra-dark-theme .mra-theme-suggest {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

body.mra-dark-theme .mra-theme-suggest div {
    border-bottom: 1px solid #333;
}

body.mra-dark-theme .mra-theme-suggest div:last-child {
    border-bottom: none;
}

body.mra-dark-theme .mra-theme-suggest div:hover {
    background-color: #2d2d2d;
    color: #fff;
}

.mra-search-instruction {
    font-size: 0.6em;
    color: #666;
    margin-top: 5px;
    margin-bottom: 15px;
    padding-left: 10px;
}

.mra-root form[role="search"] {
    position: relative;
}

.mra-search-ai-answer {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    position: absolute;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .mra-search-ai-answer {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
}

.mra-search-ai-answer blockquote {
    border-left: 3px solid #ccc;
    margin: 12px 0;
    padding: 5px 0 5px 12px;
    font-style: italic;
    color: #555;
    background: transparent;
}

.mra-ai-breadcrumb {
    margin-top: 15px;
    font-size: 0.85em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.mra-ai-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.mra-ai-breadcrumb a:hover {
    text-decoration: underline;
}

.mra-search-ai-answer.mra-loading {
    opacity: 0.7;
    font-style: italic;
}

.mra-themes-heading {
    font-size: 1em;
    font-weight: bold;
    margin-top: 5px;
}

.mra-session-box-tags {
    margin-top: 2px;
    margin-bottom: 10px;
    line-height: 1.6em;
    font-size: .8em;
}

.mra-session-box-tags a {
    text-decoration: none;
    color: #666;
}

.mra-session-box-tag-link.mra-anchor-link:hover {
    text-decoration: underline;
}

.mra-summary-text li.mra-flex-row,
.mra-summary-text p.mra-flex-row,
.mra-summary-text li:has(> .mra-ai-anchor-icon),
.mra-summary-text p:has(> .mra-ai-anchor-icon) {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.mra-ai-anchor-icon {
    cursor: pointer;
    flex-shrink: 0;
    color: var(--mra-theme, #0073aa);
    vertical-align: middle;
    transition: color 0.2s;
    margin-top: 2px; /* aligns icon with first line of text */
}

.mra-summary-text li .mra-ai-anchor-icon {
    margin-right: 0; /* Let gap handle spacing */
}

.mra-ai-anchor-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.mra-qa-continue-reading-container {
    margin-top: 10px;
}

.mra-qa-continue-reading {
    color: var(--mra-theme, #6366f1);
    text-decoration: none;
    font-size: 0.9em;
    white-space: nowrap;
}

.mra-speaker-label {
    font-size: 17px;
    font-weight: bold;
}

.mra-theme-summary {
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.mra-suggest-item {
    font-size: 0.9em;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    color: #475569;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mra-suggest-item:last-child {
    border-bottom: none;
}

.mra-suggest-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.mra-share-dropdown {
    display: none;
}

/* Remove default WordPress block focus outline */
:where(.wp-site-blocks *:focus),
:where(.wp-site-blocks :focus) {
    outline: none !important;
}

.mra-folder-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
}

.mra-folder-item-wrapper.mra-drag-over {
    background-color: #f0f4f8;
    border: 2px dashed #0ea5e9;
}

.mra-folder-menu-wrapper {
    position: relative;
}

.mra-folder-menu-wrapper .mra-folder-dropdown {
    width: 140px;
    right: auto;
    left: 0;
    padding: 6px;
}

@media (max-width: 991px) {
    .mra-folder-menu-wrapper .mra-folder-dropdown {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        border-radius: 20px 20px 0 0 !important;
        padding-top: 24px !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px) !important;
        z-index: 2147483647 !important;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5), 0 -10px 40px rgba(0, 0, 0, 0.1) !important;
        margin: 0 !important;
        animation: mra-mobile-bottom-sheet 0.2s ease-out forwards !important;
    }
    
    @keyframes mra-mobile-bottom-sheet {
        from { opacity: 0; transform: translate(-50%, 100%); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }
    
    .mra-folder-menu-wrapper .mra-folder-dropdown::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 4px;
    }
}

.mra-folder-menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
    color: #64748b;
}

.mra-folder-menu-btn:hover {
    color: #0f172a;
}

.mra-bookmark-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.mra-bookmark-actions > button,
.mra-bookmark-actions > .mra-move-wrapper > button {
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

@media (hover: hover) {
    .mra-bookmark-actions > button:hover,
    .mra-bookmark-actions > .mra-move-wrapper > button:hover {
        color: #ef4444;
    }

    .mra-bookmark-actions > button.mra-js-delete-bmark-trigger:hover {
        color: #ef4444;
    }
}

.mra-bookmark-actions > button svg,
.mra-bookmark-actions > .mra-move-wrapper > button svg {
    width: 16px;
    height: 16px;
    margin: 0;
}
.mra-folder-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mra-folder-dropdown button svg {
    width: 16px;
    height: 16px;
    margin: 0;
    color: #6b7280;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .mra-folder-dropdown button:hover {
        background: #f3f4f6;
        color: #111827;
        transform: translateX(2px);
    }
    .mra-folder-dropdown button:hover svg {
        color: #111827;
    }
}

@keyframes mra-slide-up-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Folder Dropdown Styles */
.mra-folder-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    font-family: inherit;
    z-index: 1000;
    width: 250px;
    padding: 16px;
    animation: mra-slide-up-fade 0.15s ease-out forwards;
}

.mra-folder-header {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 16px;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mra-folder-field {
    margin-bottom: 16px;
}

.mra-folder-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mra-folder-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 5px;
    padding-right: 5px;
}

.mra-folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mra-folder-item span {
    cursor: pointer;
    transition: color 0.15s ease;
}

.mra-folder-item span:hover {
    color: var(--mra-primary, #3498db);
}

.mra-folder-item svg {
    color: #94a3b8;
    transition: color 0.15s ease;
}

.mra-folder-item.mra-saving {
    background-color: #f1f5f9;
    color: #64748b;
    pointer-events: none;
}

.mra-folder-item.mra-saved {
    background-color: #ecfdf5;
    color: #10b981;
    pointer-events: none;
}

.mra-folder-item.mra-saved svg {
    color: #10b981;
}

@keyframes mra-spin {
    to { transform: rotate(360deg); }
}

.mra-spinner {
    animation: mra-spin 1s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.mra-new-folder-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.mra-new-folder-wrapper:focus-within {
    border-color: #cbd5e1;
    background: #ffffff;
}

.mra-folder-input {
    width: 100%;
    padding: 6px 36px 6px 8px;
    font-size: 14px;
    color: #334155;
    background-color: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

.mra-folder-input:focus {
    outline: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.mra-new-folder-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px !important;
    cursor: pointer;
    color: #64748b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.mra-new-folder-submit-btn:hover {
    color: #0f172a !important;
    border-color: transparent !important;
    background: transparent !important;
}

.mra-new-folder-submit-btn svg {
    width: 14px;
    height: 14px;
}

.mra-new-folder-submit-btn.mra-saved {
    color: #10b981 !important;
}

/* Bookmark Filters */
.mra-bookmark-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mra-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.mra-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mra-filter-btn:hover {
    background: #e4e4e4;
    border-color: #ccc;
}

.mra-filter-btn.active {
    background: var(--mra-hl-color, #ffeb3b);
    border-color: #d4c12a;
    color: #000;
    font-weight: 500;
}

.mra-remove-filter {
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    opacity: 0.6;
}

.mra-remove-filter:hover {
    opacity: 1;
}

/* ==========================================================================
   PROTOTYPES CSS
   ========================================================================== */

/* AI Chat Widget */
.mra-ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}
.mra-ai-chat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #222;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.mra-ai-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}
.mra-ai-chat-header {
    background: #222;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mra-ai-chat-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}
.mra-ai-chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.mra-ai-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
}
.mra-ai-message {
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
}
.mra-ai-system {
    background: #e9ecef;
    align-self: flex-start;
    color: #333;
}
.mra-ai-user {
    background: #222;
    color: #fff;
    align-self: flex-end;
}
.mra-ai-chat-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}
.mra-ai-chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}
.mra-ai-chat-footer button {
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Related Content Section */
.mra-related-teachings-section {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}
.mra-related-title {
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}
.mra-related-content {
    margin-bottom: 24px;
}
.mra-related-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card */
.mra-related-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mra-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}
.mra-related-card-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100%;
}
.mra-related-card-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}
.mra-related-card-excerpt {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px 0;
}
.mra-related-card-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.mra-related-card-facilitator,
.mra-related-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}
.mra-related-card-facilitator svg,
.mra-related-card-tags svg {
    color: #94a3b8;
}

/* Theme Hubs */
.mra-theme-hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.mra-theme-card {
    display: block;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.mra-theme-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #ddd;
}
.mra-theme-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.mra-theme-count {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    background: #eee;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Study Paths */
.mra-study-paths-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mra-study-path-item {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}
.mra-study-path-item h3 {
    margin: 0 0 10px 0;
}
.mra-study-path-item h3 a {
    text-decoration: none;
    color: inherit;
}
.mra-study-path-item h3 a:hover {
    color: #0073aa;
}
.mra-path-excerpt {
    font-size: 14px;
    color: #555;
}

/* Daily Wisdom */
.mra-daily-wisdom {
    padding: 30px;
    background: #f9f9f9;
    border-left: 4px solid #333;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}
.mra-wisdom-icon {
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}
.mra-wisdom-quote {
    font-size: 18px;
    font-style: italic;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}
.mra-wisdom-source {
    font-size: 14px;
    color: #777;
}
.mra-wisdom-source a {
    color: #0073aa;
    text-decoration: none;
}
.mra-wisdom-source a:hover {
    text-decoration: underline;
}

body.mra-dark-theme .mra-related-card {
    background: #1e1e1e;
    border-color: #333;
}
body.mra-dark-theme .mra-related-card:hover {
    border-color: #555;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
body.mra-dark-theme .mra-related-grid .mra-related-card-title {
    color: #f8fafc;
}
body.mra-dark-theme .mra-related-grid .mra-related-card-excerpt {
    color: #94a3b8;
}
body.mra-dark-theme .mra-related-card-meta {
    border-top-color: #334155;
}
body.mra-dark-theme .mra-related-card-facilitator,
body.mra-dark-theme .mra-related-card-tags {
    color: #cbd5e1;
}
body.mra-dark-theme .mra-related-card-facilitator svg,
body.mra-dark-theme .mra-related-card-tags svg {
    color: #475569;
}

/* ==========================================================================
   Q&A VISUAL STYLES
   ========================================================================== */

/* 1) Minimal - Clean separators */
.mra-qa-style-minimal .mra-qa-details {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}
.mra-qa-style-minimal .mra-qa-details:last-child {
    border-bottom: none;
}
.mra-qa-style-minimal .mra-qa-summary {
    background: transparent;
    padding: 16px 0;
}
.mra-qa-style-minimal .mra-qa-answer {
    padding: 0 0 20px 0;
    border-top: none;
}

/* 2) Bordered - Left colored border */
.mra-qa-style-bordered .mra-qa-details {
    border: none;
    border-left: 4px solid #6366f1;
    border-radius: 4px;
    background: #f8fafc;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mra-qa-style-bordered .mra-qa-summary {
    background: transparent;
    padding: 16px 20px;
}
.mra-qa-style-bordered .mra-qa-answer {
    border-top: 1px dashed #cbd5e1;
    padding: 20px;
}

/* 3) Soft - Subtle floating cards */
.mra-qa-style-soft .mra-qa-details {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mra-qa-style-soft .mra-qa-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.12);
}
.mra-qa-style-soft .mra-qa-summary {
    background: transparent;
    padding: 20px 24px;
    align-items: center;
}
.mra-qa-style-soft .mra-qa-q-icon {
    background: rgba(99, 102, 241, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}
.mra-qa-style-soft .mra-qa-answer {
    border-top: none;
    padding: 0 24px 24px 24px;
}

/* ==========================================================================
   TRANSCRIPT VISUAL STYLES
   ========================================================================== */

/* 1) Editorial (Medium-like) */
.mra-transcript-style-medium {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.15em;
    line-height: 1.8;
    color: #292929;
    max-width: 720px;
    margin: 0 auto;
}
.mra-transcript-style-medium p {
    margin-bottom: 1.5em;
    letter-spacing: -0.003em;
}
body.mra-dark-theme .mra-transcript-style-medium {
    color: #d1d5db;
}

/* 2) Monospace (Academic/Technical) */
.mra-transcript-style-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.mra-transcript-style-mono p {
    margin-bottom: 1.2em;
}
body.mra-dark-theme .mra-transcript-style-mono {
    background: #1e1e1e;
    color: #cbd5e1;
    border-color: #333;
}

/* 3) Divided */
.mra-transcript-style-divided p {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.mra-transcript-style-divided p:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
body.mra-dark-theme .mra-transcript-style-divided p {
    border-bottom-color: #333;
}

/* 4) Chat */
.mra-transcript-style-chat {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
}
.mra-transcript-style-chat p {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0;
    width: fit-content;
    max-width: 90%;
    position: relative;
    border: 1px solid #f1f5f9;
}
.mra-transcript-style-chat p:nth-child(even) {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.1);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}
body.mra-dark-theme .mra-transcript-style-chat {
    background: #1e1e1e;
}
body.mra-dark-theme .mra-transcript-style-chat p {
    background: #2d2d2d;
    border-color: #333;
}
body.mra-dark-theme .mra-transcript-style-chat p:nth-child(even) {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.15);
}
