/* MPR HTML Blocks - Frontend Styles */

.mpr-html-block {
    /* margin now handled by .mpr-section class on wrapper */
}

.mpr-html-block-title {
    margin-bottom: 10px;
}

.mpr-html-block-content {
    line-height: 1.6;
}

.mpr-html-block-content img {
    max-width: 100%;
    height: auto;
}

.mpr-html-block-content table {
    width: 100%;
    border-collapse: collapse;
}

.mpr-html-block-content table td,
.mpr-html-block-content table th {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.mpr-html-block-content ul,
.mpr-html-block-content ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

/* Full-width layout — breaks out of the container */
.mpr-html-block-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Contained layout — parent .container handles width */
.mpr-html-block-contained {
    /* no constraints — inherits from parent .container */
}

/* Hide outer module title for blocks that have their own header inside */
.mpr-facebook-feed-block > .mpr-html-block-title,
.mpr-x-feed-block > .mpr-html-block-title {
    display: none;
}

/* --- Facebook Embed Block ------------------------------------------------ */

.mpr-facebook-embed {
    background: var(--mpr-card-bg, #fff);
    border-radius: var(--mpr-card-radius, 0);
    border: var(--mpr-card-border, 1px solid #e1e8ed);
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.mpr-facebook-embed__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e8ed;
}

.mpr-facebook-embed__header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #262626;
    margin: 0;
    line-height: 1.3;
}

.mpr-facebook-embed .fb-page {
    display: block;
    width: 100%;
}

.mpr-facebook-embed .fb-page iframe,
.mpr-facebook-embed .fb-page span {
    width: 100% !important;
}

/* --- X / Twitter Embed Block --------------------------------------------- */

.mpr-x-embed {
    background: var(--mpr-card-bg, #fff);
    border-radius: var(--mpr-card-radius, 0);
    border: var(--mpr-card-border, 1px solid #e1e8ed);
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.mpr-x-embed__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e8ed;
}

.mpr-x-embed__header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #262626;
    margin: 0;
    line-height: 1.3;
}

.mpr-x-embed .twitter-timeline {
    border-radius: var(--mpr-card-radius, 0);
    overflow: hidden;
}
