﻿/* ========== Block List Layout ========== */
.umb-block-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    .umb-block-list .section-block .container {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

h2.main_title {
    text-align: center;
    margin: 0 0 1.25rem;
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    line-height: 1.2;
}


/* ========== Rich Text Content Base ========== */
.umb-block-list .rte-content {
    color: inherit;
    font: inherit;
    line-height: 1.7;
    overflow-wrap: anywhere;
    text-align: left;
}

    .umb-block-list .rte-content:dir(rtl),
    html[dir="rtl"] .umb-block-list .rte-content {
        text-align: right;
    }

    /* Spacing rhythm */
    .umb-block-list .rte-content > * + * {
        margin-top: 1rem;
    }

    .umb-block-list .rte-content > :first-child {
        margin-top: 0;
    }

    .umb-block-list .rte-content > :last-child {
        margin-bottom: 0;
    }

    /* Headings */
    .umb-block-list .rte-content h1,
    .umb-block-list .rte-content h2,
    .umb-block-list .rte-content h3,
    .umb-block-list .rte-content h4,
    .umb-block-list .rte-content h5,
    .umb-block-list .rte-content h6 {
        line-height: 1.25;
        margin: 1.5rem 0 .5rem;
        font-weight: 700;
    }

    .umb-block-list .rte-content h1 {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }

    .umb-block-list .rte-content h2 {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
    }

    .umb-block-list .rte-content h3 {
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }

    .umb-block-list .rte-content h4 {
        font-size: 1.125rem;
    }

    .umb-block-list .rte-content h5 {
        font-size: 1rem;
    }

    .umb-block-list .rte-content h6 {
        font-size: .95rem;
    }

    /* Paragraphs & common inline blocks */
    .umb-block-list .rte-content p,
    .umb-block-list .rte-content li,
    .umb-block-list .rte-content td,
    .umb-block-list .rte-content th {
        text-align: left;
        margin: 0;
    }

    /* Lists */
    .umb-block-list .rte-content ul,
    .umb-block-list .rte-content ol {
        margin: 0;
        padding-left: 1.5rem;
    }

    .umb-block-list .rte-content li {
        margin: .25rem 0;
    }

        .umb-block-list .rte-content li > ul,
        .umb-block-list .rte-content li > ol {
            margin-top: .25rem;
        }

    /* Links */
    .umb-block-list .rte-content a {
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .umb-block-list .rte-content a:hover {
            text-decoration-thickness: 2px;
        }

    /* Blockquote */
    .umb-block-list .rte-content blockquote {
        margin: 0;
        padding-left: 1rem;
        border-left: 4px solid #e5e7eb;
        font-style: italic;
    }

    /* Horizontal rule */
    .umb-block-list .rte-content hr {
        border: 0;
        border-top: 1px solid #e5e7eb;
        margin: 2rem 0;
    }

    /* Media */
    .umb-block-list .rte-content img,
    .umb-block-list .rte-content video,
    .umb-block-list .rte-content iframe {
        width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    }

    .umb-block-list .rte-content figure {
        margin: 0;
    }

    .umb-block-list .rte-content figcaption {
        font-size: .875rem;
        color: #6b7280;
        text-align: center;
        margin-top: .5rem;
    }

    /* Tables */
    .umb-block-list .rte-content table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
    }

    .umb-block-list .rte-content th,
    .umb-block-list .rte-content td {
        border: 1px solid #e5e7eb;
        padding: .5rem .75rem;
        vertical-align: top;
    }

    .umb-block-list .rte-content thead th {
        background: #f9fafb;
        font-weight: 600;
    }

    .umb-block-list .rte-content tbody tr:nth-child(odd) {
        background: #fcfcfc;
    }

@media (max-width: 768px) {
    .umb-block-list .rte-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Code */
.umb-block-list .rte-content code,
.umb-block-list .rte-content kbd,
.umb-block-list .rte-content samp,
.umb-block-list .rte-content pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.umb-block-list .rte-content code {
    background: #f6f8fa;
    padding: .125rem .375rem;
    border-radius: .25rem;
}

.umb-block-list .rte-content pre {
    background: #0b1020;
    color: #e5e7eb;
    padding: 1rem;
    overflow: auto;
    border-radius: .5rem;
    margin: 0;
}

    .umb-block-list .rte-content pre code {
        background: transparent;
        padding: 0;
        color: inherit;
    }

/* Details/Summary */
.umb-block-list .rte-content details {
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
    padding: .5rem .75rem;
}

.umb-block-list .rte-content summary {
    font-weight: 600;
    cursor: pointer;
}

/* Alignment helpers */
.umb-block-list .rte-content .align-left,
.umb-block-list .rte-content .text-left {
    text-align: left !important;
}

.umb-block-list .rte-content .align-center,
.umb-block-list .rte-content .text-center {
    text-align: center !important;
}

.umb-block-list .rte-content .align-right,
.umb-block-list .rte-content .text-right {
    text-align: right !important;
}

.umb-block-list .rte-content .align-justify,
.umb-block-list .rte-content .text-justify {
    text-align: justify !important;
}

/* Responsive embed */
.umb-block-list .rte-content .embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

    .umb-block-list .rte-content .embed iframe,
    .umb-block-list .rte-content .embed object,
    .umb-block-list .rte-content .embed embed {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
