/* ═══════════════════════════════════════════════════════════════════════════
   FOREIGN POLICY STATEMENT — Side Panel (LEFT side, below OTG)
   Icon-only half-circle tab, horizontal image row, rich text content.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.mb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mb-overlay.is-open {
    display: block;
}

/* ── Side Panel — slides from LEFT ───────────────────────────────────────── */
.mb-panel {
    position: fixed;
    top: 0;
    left: -75vw;
    width: 75vw;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.mb-panel.is-open {
    left: 0;
}

.mb-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Panel Header — navy solid */
.mb-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #dc1f34;
    flex-shrink: 0;
}

.mb-panel-header h3 {
    color: #fff;
    font-size: 50px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mb-panel-header svg {
    margin-top: 3px;
}

.mb-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s;
}

.mb-panel-close:hover {
    opacity: 0.7;
}

/* Panel Scrollable Content */
.mb-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ── Horizontal Scrollable Image Row ─────────────────────────────────────── */
.mb-image-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 32px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mb-image-row::-webkit-scrollbar {
    display: none;
}

.mb-image-item {
    flex-shrink: 0;
    width: 340px;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.mb-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Rich Text Content — WYSIWYG output styling ─────────────────────────── */
.mb-text-content {
    color: #1a3a6b;
    padding: 0 32px;
}

.mb-text-content h1,
.mb-text-content h2,
.mb-text-content h3 {
    color: #1a3a6b;
    font-weight: 700;
    margin: 0 0 16px;
}

.mb-text-content h1 {
    font-size: 36px;
}

.mb-text-content h2 {
    font-size: 30px;
}

.mb-text-content h3 {
    font-size: 26px;
}

.mb-text-content p {
    font-size: 24px;
    line-height: 1.7;
    color: #1a3a6b;
    margin: 0 0 12px;
    text-align: justify;
}

.mb-text-content p:last-child {
    margin-bottom: 0;
}

.mb-text-content strong {
    font-weight: 700;
}

.mb-text-content em {
    font-style: italic;
}

.mb-text-content a {
    color: #dc1f34;
    text-decoration: underline;
}

.mb-text-content a:hover {
    color: #1a3a6b;
}

.mb-text-content ul,
.mb-text-content ol {
    font-size: 20px;
    line-height: 1.7;
    color: #1a3a6b;
    margin: 0 0 12px;
    padding-left: 24px;
}

/* Signature / closing lines — reduce spacing between consecutive <br> lines */
.mb-text-content br + br {
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .mb-panel {
        width: 100vw;
        left: -100vw;
    }

    .mb-panel.is-open {
        left: 0;
    }

    .mb-panel-header h3 {
        font-size: 26px;
    }

    .mb-panel-header svg {
        width: 30px;
        height: 30px;
    }

    .mb-panel-content {
        padding-bottom: 100px;
    }

    .mb-image-row {
        justify-content: flex-start;
    }

    .mb-image-item {
        width: 260px;
        height: 180px;
    }

    .mb-text-content h3 {
        font-size: 22px;
    }
    
    .mb-text-content {
        padding: 0 16px;
    }

    .mb-text-content p,
    .mb-text-content ul,
    .mb-text-content ol {
        font-size: 20px;
    }
}

@supports (-webkit-touch-callout: none) {
    .mb-panel-content {
        padding-bottom: 100px;
    }
}