/*
 * Mira Content Builder V2 — PUBLIC component styles.
 * Load this same file on the public site and in CKEditor. There is intentionally
 * no editor-only chrome here.
 *
 * Site themes can override the custom properties on .mcb2-section.
 */
.mcb2-section {
    --mcb2-max-width: 1200px;
    --mcb2-gutter: 24px;
    --mcb2-brand: #0a3544;
    --mcb2-brand-contrast: #ffffff;
    --mcb2-light: #f5f7f8;
    --mcb2-dark: #172126;
    --mcb2-border: rgba(0,0,0,.13);
    --mcb2-radius: 14px;
    --mcb2-shadow: 0 6px 22px rgba(0,0,0,.08);
    --mcb2-section-space-y: 54px;
    box-sizing: border-box;
    width: 100%;
    padding-top: var(--mcb2-section-space-y);
    padding-bottom: var(--mcb2-section-space-y);
}

.mcb2-section *,
.mcb2-nested-component,
.mcb2-nested-component * { box-sizing: border-box; }

/* Generic nested-component containment. A nested component must size itself to
   the host content region instead of retaining assumptions from a full-width
   section. This is intentionally public CSS because the same composition must
   render identically in CKEditor and on the live page. */
.mcb2-nested-component {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.mcb2-nested-component > * { min-width: 0; max-width: 100%; }

/* Approved nested-content host regions. Keep them shrink-safe for Grid/Flex
   descendants and prevent a nested block from creating phantom horizontal size. */
.mcb2-tab-panel,
.mcb2-card-body,
.mcb2-grid-cell-body,
.mcb2-callout-body,
.mcb2-hero-content,
.mcb2-scroller-item,
.mcb2-faq-answer,
.mcb2-flip-card-face { min-width: 0; }
.mcb2-tab-panel > .mcb2-nested-component,
.mcb2-card-body > .mcb2-nested-component,
.mcb2-grid-cell-body > .mcb2-nested-component,
.mcb2-callout-body > .mcb2-nested-component,
.mcb2-hero-content > .mcb2-nested-component,
.mcb2-scroller-item > .mcb2-nested-component,
.mcb2-faq-answer > .mcb2-nested-component,
.mcb2-flip-card-face > .mcb2-nested-component {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Nested blocks should not manufacture outside spacing when they are the first
   or last content in a host. Component-specific nested margins are retained
   between authored text/other blocks, but collapse cleanly at host edges. */
.mcb2-tab-panel > .mcb2-nested-component:first-child,
.mcb2-card-body > .mcb2-nested-component:first-child,
.mcb2-grid-cell-body > .mcb2-nested-component:first-child,
.mcb2-callout-body > .mcb2-nested-component:first-child,
.mcb2-hero-content > .mcb2-nested-component:first-child,
.mcb2-scroller-item > .mcb2-nested-component:first-child,
.mcb2-faq-answer > .mcb2-nested-component:first-child,
.mcb2-flip-card-face > .mcb2-nested-component:first-child { margin-top: 0; }
.mcb2-tab-panel > .mcb2-nested-component:last-child,
.mcb2-card-body > .mcb2-nested-component:last-child,
.mcb2-grid-cell-body > .mcb2-nested-component:last-child,
.mcb2-callout-body > .mcb2-nested-component:last-child,
.mcb2-hero-content > .mcb2-nested-component:last-child,
.mcb2-scroller-item > .mcb2-nested-component:last-child,
.mcb2-faq-answer > .mcb2-nested-component:last-child,
.mcb2-flip-card-face > .mcb2-nested-component:last-child { margin-bottom: 0; }

.mcb2-container {
    width: 100%;
    max-width: var(--mcb2-max-width);
    margin: 0 auto;
    padding-left: var(--mcb2-gutter);
    padding-right: var(--mcb2-gutter);
}

/* Optional per-section alignment override. Default keeps the Builder gutter;
   Flush lines the component up with the surrounding CMS content edge. */
.mcb2-section[data-mcb2-gutter="flush"] > .mcb2-container {
    padding-left: 0;
    padding-right: 0;
}

/* Section padding. Card/grid spacing is controlled separately. */
.mcb2-space-none { --mcb2-section-space-y: 0px; }
.mcb2-space-compact { --mcb2-section-space-y: 28px; }
.mcb2-space-normal { --mcb2-section-space-y: 54px; }
.mcb2-space-spacious { --mcb2-section-space-y: 82px; }

/* Theme hooks retained for older V2 test content. New V2 UI leaves row/background
   ownership to Miramar's CMS row builder. */
.mcb2-bg-default { background: transparent; }
.mcb2-bg-light { background: var(--mcb2-light); }
.mcb2-bg-brand { background: var(--mcb2-brand); color: var(--mcb2-brand-contrast); }
.mcb2-bg-dark { background: var(--mcb2-dark); color: #fff; }

/* Legacy compatibility only (pre-1551 saved pages). New widgets no longer generate
   a generic Section Heading wrapper; the editor migrates old wrappers on edit/save. */
.mcb2-section-heading { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.mcb2-section-heading > :first-child { margin-top: 0; }
.mcb2-section-heading > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.mcb2-card-grid {
    --mcb2-card-gap: 24px;
    --mcb2-card-divider-color: #d9e0e5;
    --mcb2-card-divider-width: 1px;
    display: grid;
    gap: var(--mcb2-card-gap);
    align-items: stretch;
}
.mcb2-card-grid.mcb2-cols-1 { grid-template-columns: minmax(0, 1fr); }
.mcb2-card-grid.mcb2-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcb2-card-grid.mcb2-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcb2-card-grid.mcb2-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcb2-card-grid.mcb2-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mcb2-card-grid.mcb2-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Optional visual separators between Cards. The line sits on the trailing edge
   of each visual cell and is removed from the last card in every responsive row. */
.mcb2-card-grid.mcb2-card-divider-show > .mcb2-card { position: relative; }
.mcb2-card-grid.mcb2-card-divider-show > .mcb2-card::after {
    content: '';
    position: absolute;
    z-index: 5;
    top: 10%;
    right: 0;
    bottom: 10%;
    width: var(--mcb2-card-divider-width);
    background: var(--mcb2-card-divider-color);
    pointer-events: none;
}
.mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-2 > .mcb2-card:nth-child(2n)::after,
.mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-3 > .mcb2-card:nth-child(3n)::after,
.mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-4 > .mcb2-card:nth-child(4n)::after,
.mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-5 > .mcb2-card:nth-child(5n)::after,
.mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-6 > .mcb2-card:nth-child(6n)::after,
.mcb2-card-grid.mcb2-card-divider-show > .mcb2-card:last-child::after { display: none; }

.mcb2-card {
    --mcb2-card-bg: #fff;
    --mcb2-card-color: #222;
    --mcb2-card-padding: 26px;
    --mcb2-card-radius: var(--mcb2-radius);
    --mcb2-card-border-width: 1px;
    --mcb2-card-border-color: var(--mcb2-border);
    --mcb2-card-shadow: none;

    min-width: 0;
    padding: var(--mcb2-card-padding);
    border-style: solid;
    border-width: var(--mcb2-card-border-width);
    border-color: var(--mcb2-card-border-color);
    border-radius: var(--mcb2-card-radius);
    background: var(--mcb2-card-bg);
    color: var(--mcb2-card-color);
    box-shadow: var(--mcb2-card-shadow);
    overflow: hidden;
}
.mcb2-card > :first-child,
.mcb2-card-body > :first-child { margin-top: 0; }
.mcb2-card > :last-child,
.mcb2-card-body > :last-child { margin-bottom: 0; }
.mcb2-card-body { min-width: 0; }
.mcb2-cards-align-left .mcb2-card-body { text-align: left; }
.mcb2-cards-align-center .mcb2-card-body { text-align: center; }
.mcb2-cards-align-right .mcb2-card-body { text-align: right; }
.mcb2-card-icon {
    display: inline-block;
    margin-bottom: 14px;
    font-size: var(--mcb2-card-icon-size, 1.8rem);
    line-height: 1;
    color: var(--mcb2-brand);
}

/* Structural card variants. Different Add Content templates use the same Cards
   component/settings while changing only the clean HTML inside each card. */
.mcb2-card-layout-icon .mcb2-card-body { min-height: 100%; }

.mcb2-card-layout-image-top {
    padding: 0;
}
.mcb2-card-layout-image-top .mcb2-card-media {
    width: 100%;
    aspect-ratio: var(--mcb2-card-image-ratio, 16 / 9);
    position: relative;
    overflow: hidden;
    background: #e9edf0;
}
/* Author-selected uniform crop applies to all images in the group. Published
   markup stays clean; source dimensions and image-editor positioning are intact.
   We deliberately scope the stricter sizing to Full width mode, so choosing
   Contained or editing an unrelated image remains unchanged. */
.mcb2-cards-section[data-mcb2-card-image-ratio="4-3"],
.mcb2-cards-nested[data-mcb2-card-image-ratio="4-3"] { --mcb2-card-image-ratio: 4 / 3; }
.mcb2-cards-section[data-mcb2-card-image-ratio="1-1"],
.mcb2-cards-nested[data-mcb2-card-image-ratio="1-1"] { --mcb2-card-image-ratio: 1 / 1; }
.mcb2-cards-section[data-mcb2-card-image-ratio="4-5"],
.mcb2-cards-nested[data-mcb2-card-image-ratio="4-5"] { --mcb2-card-image-ratio: 4 / 5; }
.mcb2-cards-section[data-mcb2-card-image-ratio="3-4"],
.mcb2-cards-nested[data-mcb2-card-image-ratio="3-4"] { --mcb2-card-image-ratio: 3 / 4; }
.mcb2-cards-section[data-mcb2-card-image-ratio="2-3"],
.mcb2-cards-nested[data-mcb2-card-image-ratio="2-3"] { --mcb2-card-image-ratio: 2 / 3; }

.mcb2-card-layout-image-top .mcb2-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Inline width/height values from CKEditor/Image Properties should not enlarge
   a card beyond the selected frame. Only enforce this in cropped Full width mode. */
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > img,
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > a > img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
}
/* CKEditor Image2 and Mira Image Editor may wrap images in a figure/span. Keep
   the wrapper within the frame without reparenting or stripping editable markup. */
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > .cke_widget_wrapper,
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > .miraimg-wrap,
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > .miraimg-caption-figure {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > .cke_widget_wrapper > img,
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > .miraimg-wrap > img,
.mcb2-cards-image-full .mcb2-card-layout-image-top .mcb2-card-media > .miraimg-caption-figure > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.mcb2-cards-image-contained .mcb2-card-layout-image-top .mcb2-card-media {
    width: auto;
    aspect-ratio: auto;
    margin: var(--mcb2-card-padding) var(--mcb2-card-padding) 0;
    overflow: visible;
    background: transparent;
}
.mcb2-cards-image-contained .mcb2-card-layout-image-top .mcb2-card-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
}
.mcb2-card-image-focus-top .mcb2-card-media img,
.mcb2-card-image-focus-top .mcb2-card-background-image { object-position: center top; }
.mcb2-card-image-focus-center .mcb2-card-media img,
.mcb2-card-image-focus-center .mcb2-card-background-image { object-position: center center; }
.mcb2-card-image-focus-bottom .mcb2-card-media img,
.mcb2-card-image-focus-bottom .mcb2-card-background-image { object-position: center bottom; }
.mcb2-card-layout-image-top .mcb2-card-body {
    padding: var(--mcb2-card-padding);
}

.mcb2-card-layout-action.mcb2-card-button-bottom {
    display: flex;
    flex-direction: column;
}
.mcb2-card-layout-action.mcb2-card-button-bottom .mcb2-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}
.mcb2-card-action { margin-top: 12px; padding-top: 10px; }
.mcb2-card-button-bottom .mcb2-card-action { margin-top: auto; }
.mcb2-card-button-align-left .mcb2-card-action { text-align: left; }
.mcb2-card-button-align-center .mcb2-card-action { text-align: center; }
.mcb2-card-button-align-right .mcb2-card-action { text-align: right; }
.mcb2-card-button { display: inline-block; }
.mcb2-card-button:not(.quickButton) {
    padding: 9px 15px;
    border-radius: 5px;
    background: var(--mcb2-brand);
    color: var(--mcb2-brand-contrast);
    text-decoration: none;
    font-weight: 700;
}

.mcb2-card-layout-background {
    position: relative;
    display: flex;
    min-height: 320px;
    padding: 0;
    color: #fff;
    background: #25333a;
}
.mcb2-card-background-image,
.mcb2-card-background-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.mcb2-card-background-image { object-fit: cover; }
.mcb2-card-background-overlay {
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.18));
    pointer-events: none;
}
.mcb2-card-layout-background .mcb2-card-body {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: auto;
    padding: var(--mcb2-card-padding);
}
.mcb2-card-layout-background .mcb2-card-button:not(.quickButton) {
    background: #fff;
    color: #172126;
}

/* Section-level card styles are defaults. Individual card classes and custom
   properties come later and can override them. */
.mcb2-card-style-standard .mcb2-card {
    --mcb2-card-padding: 26px;
    --mcb2-card-border-width: 1px;
    --mcb2-card-border-color: var(--mcb2-border);
    --mcb2-card-shadow: none;
    border-width: var(--mcb2-card-border-width);
}
.mcb2-card-style-feature .mcb2-card {
    --mcb2-card-padding: 26px;
    --mcb2-card-border-width: 4px;
    --mcb2-card-border-color: var(--mcb2-brand);
    --mcb2-card-shadow: var(--mcb2-shadow);
    border-width: var(--mcb2-card-border-width) 0 0 0;
}
.mcb2-card-style-compact .mcb2-card {
    --mcb2-card-padding: 18px;
    --mcb2-card-border-width: 1px;
    --mcb2-card-border-color: var(--mcb2-border);
    --mcb2-card-shadow: none;
    border-width: var(--mcb2-card-border-width);
}
.mcb2-card-style-compact .mcb2-card-icon,
.mcb2-card.mcb2-card-variant-compact .mcb2-card-icon { font-size: 1.45rem; margin-bottom: 10px; }

/* Optional per-card preset overrides. */
.mcb2-card.mcb2-card-variant-standard {
    --mcb2-card-padding: 26px;
    --mcb2-card-border-width: 1px;
    --mcb2-card-border-color: var(--mcb2-border);
    --mcb2-card-shadow: none;
    border-width: var(--mcb2-card-border-width);
}
.mcb2-card.mcb2-card-variant-feature {
    --mcb2-card-padding: 26px;
    --mcb2-card-border-width: 4px;
    --mcb2-card-border-color: var(--mcb2-brand);
    --mcb2-card-shadow: var(--mcb2-shadow);
    border-width: var(--mcb2-card-border-width) 0 0 0;
}
.mcb2-card.mcb2-card-variant-compact {
    --mcb2-card-padding: 18px;
    --mcb2-card-border-width: 1px;
    --mcb2-card-border-color: var(--mcb2-border);
    --mcb2-card-shadow: none;
    border-width: var(--mcb2-card-border-width);
}

/* Per-card border-position overrides. These intentionally come after presets. */
.mcb2-card.mcb2-card-border-none { border-width: 0; }
.mcb2-card.mcb2-card-border-all { border-width: var(--mcb2-card-border-width); }
.mcb2-card.mcb2-card-border-top { border-width: var(--mcb2-card-border-width) 0 0 0; }
.mcb2-card.mcb2-card-border-left { border-width: 0 0 0 var(--mcb2-card-border-width); }

/* Per-card shadow overrides. */
.mcb2-card.mcb2-card-shadow-none { --mcb2-card-shadow: none; }
.mcb2-card.mcb2-card-shadow-soft { --mcb2-card-shadow: 0 5px 18px rgba(0,0,0,.08); }
.mcb2-card.mcb2-card-shadow-medium { --mcb2-card-shadow: 0 9px 28px rgba(0,0,0,.14); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.mcb2-faq {
    --mcb2-faq-gap: 0px;
    --mcb2-faq-border-color: var(--mcb2-border);
    --mcb2-faq-border-width: 1px;
    --mcb2-faq-radius: 0px;
    --mcb2-faq-question-bg: transparent;
    --mcb2-faq-question-open-bg: var(--mcb2-faq-question-bg);
    --mcb2-faq-answer-bg: transparent;
    --mcb2-faq-question-color: inherit;
    --mcb2-faq-question-open-color: var(--mcb2-faq-question-color);
    --mcb2-faq-answer-color: inherit;
    --mcb2-faq-icon-color: var(--mcb2-brand);
    --mcb2-faq-icon-bg: transparent;
    --mcb2-faq-icon-open-color: var(--mcb2-faq-icon-color);
    --mcb2-faq-icon-open-bg: var(--mcb2-faq-icon-bg);
    --mcb2-faq-icon-size: 30px;
    --mcb2-faq-accent-color: #00aaff;
    --mcb2-faq-accent-width: 5px;
    width: 100%;
}
.mcb2-nested-component.mcb2-faq { margin-top: 22px; margin-bottom: 6px; }

/* MCB2 owns FAQ presentation. Neutralize generic site-wide details/accordion
   effects so older site CSS cannot slow or distort this widget. This includes
   modern ::details-content transitions as well as older child animations. */
.mcb2-faq .mcb2-faq-item,
.mcb2-faq .mcb2-faq-item > summary,
.mcb2-faq .mcb2-faq-answer {
    animation: none !important;
    transition: none !important;
}

/* Some Mira site styles animate every <details>::details-content at a fixed
   duration. MCB2's measured outer-box animation must be the only transition
   owner, so disable that native pseudo-element transition inside MCB2 FAQs. */
.mcb2-faq .mcb2-faq-item::details-content {
    transition: none !important;
    transition-behavior: normal !important;
}
.mcb2-faq .mcb2-faq-answer {
    max-height: none !important;
    transform: none !important;
}
.mcb2-faq .mcb2-faq-item > summary::after {
    animation: none !important;
}

/* FAQ transition presets. Instant keeps the native <details> toggle; only
   conflicting site-wide animation is neutralized. For Fast/Normal/Slow/Custom,
   the on-demand FAQ runtime measures the native
   closed/open <details> box and animates the outer height. Animating the outer
   box is deliberate: answer padding must collapse with the answer so the full
   configured duration remains visually apparent. */
.mcb2-faq { --mcb2-faq-open-duration: 0ms; }
.mcb2-faq[data-mcb2-faq-transition="fast"] { --mcb2-faq-open-duration: 150ms; }
.mcb2-faq[data-mcb2-faq-transition="normal"] { --mcb2-faq-open-duration: 300ms; }
.mcb2-faq[data-mcb2-faq-transition="slow"] { --mcb2-faq-open-duration: 500ms; }
.mcb2-faq[data-mcb2-faq-transition="custom"] { --mcb2-faq-open-duration: var(--mcb2-faq-custom-duration, 400ms); }

@media (prefers-reduced-motion: reduce) {
    .mcb2-faq { --mcb2-faq-open-duration: 0ms !important; }
}

.mcb2-faq-item {
    overflow: hidden;
    border-color: var(--mcb2-faq-border-color);
    border-style: solid;
    border-width: 0 0 var(--mcb2-faq-border-width) 0;
    border-radius: var(--mcb2-faq-radius);
    background: transparent;
    color: var(--mcb2-faq-answer-color);
}
.mcb2-faq-item:first-child { border-top-width: var(--mcb2-faq-border-width); }
.mcb2-faq .mcb2-faq-item > summary {
    position: relative;
    display: block;
    cursor: pointer;
    list-style: none !important;
    list-style-type: none !important;
    -webkit-appearance: none;
    padding: 18px calc(var(--mcb2-faq-icon-size) + 24px) 18px 0;
    background: var(--mcb2-faq-question-bg);
    color: var(--mcb2-faq-question-color);
    font-weight: 700;
}
.mcb2-faq .mcb2-faq-item[open] > summary {
    background: var(--mcb2-faq-question-open-bg, var(--mcb2-faq-question-bg));
    color: var(--mcb2-faq-question-open-color, var(--mcb2-faq-question-color));
}
/* Suppress both the browser disclosure marker and any generic site-level
   summary::before caret. MCB2 owns the disclosure icon through ::after. */
.mcb2-faq-item > summary::-webkit-details-marker { display: none !important; }
.mcb2-faq-item > summary::marker { content: none !important; font-size: 0 !important; }
.mcb2-faq-item > summary::before { content: none !important; display: none !important; }
.mcb2-faq .mcb2-faq-answer {
    padding: 10px 0 20px;
    background: var(--mcb2-faq-answer-bg);
    color: var(--mcb2-faq-answer-color);
}
.mcb2-faq-answer > :first-child { margin-top: 0; }
.mcb2-faq-answer > :last-child { margin-bottom: 0; }

/* FAQ icon is structural chrome, not editable content. */
.mcb2-faq-item > summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--mcb2-faq-icon-size);
    height: var(--mcb2-faq-icon-size);
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--mcb2-faq-icon-bg);
    color: var(--mcb2-faq-icon-color);
    font-size: calc(var(--mcb2-faq-icon-size) * 0.6667);
    line-height: 1;
    font-weight: 400;
}
.mcb2-faq-item[open] > summary::after {
    color: var(--mcb2-faq-icon-open-color, var(--mcb2-faq-icon-color));
    background: var(--mcb2-faq-icon-open-bg, var(--mcb2-faq-icon-bg));
}
.mcb2-faq-icon-plus .mcb2-faq-item[open] > summary::after { content: '−'; }
.mcb2-faq-icon-chevron .mcb2-faq-item > summary::after {
    content: '›';
    transform: translateY(-50%) rotate(90deg);
    transition: transform .15s ease !important;
}
.mcb2-faq-icon-chevron .mcb2-faq-item[open] > summary::after {
    transform: translateY(-50%) rotate(270deg);
}
.mcb2-faq-icon-circle .mcb2-faq-item > summary::after {
    content: '+';
    border: 1px solid currentColor;
}
.mcb2-faq-icon-circle .mcb2-faq-item[open] > summary::after { content: '−'; }
.mcb2-faq-icon-none .mcb2-faq-item > summary { padding-right: 0; }
.mcb2-faq-icon-none .mcb2-faq-item > summary::after { display: none; }

/* Icon placement is independent from icon appearance. */
.mcb2-faq-icon-right .mcb2-faq-item > summary::after { right: 8px; left: auto; }
.mcb2-faq-icon-left .mcb2-faq-item > summary { padding-left: calc(var(--mcb2-faq-icon-size) + 24px); padding-right: 0; }
.mcb2-faq-icon-left .mcb2-faq-item > summary::after { left: 8px; right: auto; }
.mcb2-faq-icon-none .mcb2-faq-item > summary { padding-left: 0; padding-right: 0; }

/* FAQ presets set sensible structural defaults, while variables can be customized
   globally on .mcb2-faq or overridden on one .mcb2-faq-item. */
.mcb2-faq-style-standard {
    display: block;
}

.mcb2-faq-style-boxed {
    display: grid;
    gap: var(--mcb2-faq-gap, 12px);
    --mcb2-faq-radius: 10px;
    --mcb2-faq-question-bg: #fff;
    --mcb2-faq-answer-bg: #fff;
}
.mcb2-faq-style-boxed .mcb2-faq-item {
    border-width: var(--mcb2-faq-border-width);
}
.mcb2-faq-style-boxed .mcb2-faq-item > summary,
.mcb2-faq-style-separated .mcb2-faq-item > summary {
    padding: 17px calc(var(--mcb2-faq-icon-size) + 28px) 17px 18px;
}
.mcb2-faq-style-boxed .mcb2-faq-answer,
.mcb2-faq-style-separated .mcb2-faq-answer {
    padding: 10px 18px 18px;
}
.mcb2-faq-style-boxed .mcb2-faq-item > summary::after,
.mcb2-faq-style-separated .mcb2-faq-item > summary::after { right: 14px; }

.mcb2-faq-style-separated {
    display: grid;
    gap: var(--mcb2-faq-gap, 12px);
    --mcb2-faq-radius: 8px;
}
.mcb2-faq-style-separated .mcb2-faq-item {
    border-width: 0 0 0 var(--mcb2-faq-border-width);
    box-shadow: 0 3px 14px rgba(0,0,0,.05);
}

.mcb2-faq-style-minimal .mcb2-faq-item,
.mcb2-faq-style-minimal .mcb2-faq-item:first-child {
    border-width: 0;
}
.mcb2-faq-style-minimal .mcb2-faq-item > summary { padding-left: 0; }

/* Boxed/separated layouts keep breathing room when the icon is moved left. */
.mcb2-faq-style-boxed.mcb2-faq-icon-left .mcb2-faq-item > summary,
.mcb2-faq-style-separated.mcb2-faq-icon-left .mcb2-faq-item > summary {
    padding: 17px 18px 17px calc(var(--mcb2-faq-icon-size) + 28px);
}
.mcb2-faq-style-boxed.mcb2-faq-icon-left .mcb2-faq-item > summary::after,
.mcb2-faq-style-separated.mcb2-faq-icon-left .mcb2-faq-item > summary::after {
    left: 14px;
    right: auto;
}
.mcb2-faq-style-minimal.mcb2-faq-icon-left .mcb2-faq-item > summary { padding-left: calc(var(--mcb2-faq-icon-size) + 24px); }
/* None always wins over icon position/layout padding. */
.mcb2-faq-icon-none .mcb2-faq-item > summary,
.mcb2-faq-style-boxed.mcb2-faq-icon-none .mcb2-faq-item > summary,
.mcb2-faq-style-separated.mcb2-faq-icon-none .mcb2-faq-item > summary,
.mcb2-faq-style-minimal.mcb2-faq-icon-none .mcb2-faq-item > summary {
    padding-left: 18px;
    padding-right: 18px;
}
.mcb2-faq-style-standard.mcb2-faq-icon-none .mcb2-faq-item > summary,
.mcb2-faq-style-minimal.mcb2-faq-icon-none .mcb2-faq-item > summary {
    padding-left: 0;
    padding-right: 0;
}

/* Optional accent edge. This is deliberately independent from the main border,
   allowing e.g. a grey boxed FAQ with a blue 5px left accent. */
.mcb2-faq-accent-left .mcb2-faq-item {
    border-left-style: solid;
    border-left-color: var(--mcb2-faq-accent-color);
    border-left-width: var(--mcb2-faq-accent-width);
}
.mcb2-faq-accent-right .mcb2-faq-item {
    border-right-style: solid;
    border-right-color: var(--mcb2-faq-accent-color);
    border-right-width: var(--mcb2-faq-accent-width);
}
.mcb2-faq-accent-top .mcb2-faq-item {
    border-top-style: solid;
    border-top-color: var(--mcb2-faq-accent-color);
    border-top-width: var(--mcb2-faq-accent-width);
}
.mcb2-faq-accent-bottom .mcb2-faq-item {
    border-bottom-style: solid;
    border-bottom-color: var(--mcb2-faq-accent-color);
    border-bottom-width: var(--mcb2-faq-accent-width);
}

/* Responsive card columns. 5/6-column choices collapse earlier so they remain useful. */
@media (max-width: 1100px) {
    .mcb2-card-grid.mcb2-cols-6,
    .mcb2-card-grid.mcb2-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-5 > .mcb2-card::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-6 > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-5 > .mcb2-card:nth-child(3n)::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-6 > .mcb2-card:nth-child(3n)::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-5 > .mcb2-card:last-child::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-6 > .mcb2-card:last-child::after { display: none; }
}

@media (max-width: 900px) {
    .mcb2-card-grid.mcb2-cols-6,
    .mcb2-card-grid.mcb2-cols-5,
    .mcb2-card-grid.mcb2-cols-4,
    .mcb2-card-grid.mcb2-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-3 > .mcb2-card::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-4 > .mcb2-card::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-5 > .mcb2-card::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-6 > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-3 > .mcb2-card:nth-child(2n)::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-4 > .mcb2-card:nth-child(2n)::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-5 > .mcb2-card:nth-child(2n)::after,
    .mcb2-card-grid.mcb2-card-divider-show.mcb2-cols-6 > .mcb2-card:nth-child(2n)::after,
    .mcb2-card-grid.mcb2-card-divider-show > .mcb2-card:last-child::after { display: none; }
}

@media (max-width: 620px) {
    .mcb2-container { --mcb2-gutter: 18px; }
    .mcb2-space-compact { --mcb2-section-space-y: 22px; }
    .mcb2-space-normal { --mcb2-section-space-y: 38px; }
    .mcb2-space-spacious { --mcb2-section-space-y: 54px; }
    .mcb2-card-grid.mcb2-cols-2,
    .mcb2-card-grid.mcb2-cols-3,
    .mcb2-card-grid.mcb2-cols-4,
    .mcb2-card-grid.mcb2-cols-5,
    .mcb2-card-grid.mcb2-cols-6 { grid-template-columns: 1fr; }
    .mcb2-card-grid.mcb2-card-divider-show > .mcb2-card::after { display: none; }
}

/* Legacy Section Heading visibility for untouched pre-1551 pages. */
.mcb2-section-heading-hide .mcb2-section-heading { display: none !important; }

/* --------------------------------------------------------------------------
   V2 refinements: card overlays + hover effects
   -------------------------------------------------------------------------- */

.mcb2-card {
    --mcb2-card-overlay-color: #000000;
    --mcb2-card-overlay-opacity: 58%;
}
.mcb2-card-layout-background .mcb2-card-background-overlay {
    background: var(--mcb2-card-overlay-color);
    opacity: var(--mcb2-card-overlay-opacity);
}

.mcb2-card-hover-lift .mcb2-card,
.mcb2-card-hover-grow .mcb2-card,
.mcb2-card-hover-shadow .mcb2-card,
.mcb2-card-hover-border .mcb2-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mcb2-card-hover-lift .mcb2-card:hover { transform: translateY(-6px); }
.mcb2-card-hover-grow .mcb2-card:hover { transform: scale(1.025); }
.mcb2-card-hover-shadow .mcb2-card:hover { box-shadow: 0 16px 42px rgba(0,0,0,.30); }
/* Use an inset ring rather than only changing border-color. Feature cards often
   already use the brand colour on their top edge, so a colour-only hover was
   visually indistinguishable. The inset ring never changes layout. */
.mcb2-card-hover-border .mcb2-card:hover {
    box-shadow: inset 0 0 0 3px var(--mcb2-brand), var(--mcb2-card-shadow);
}

.mcb2-cards-nested { width: 100%; margin-top: 22px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
    .mcb2-card-hover-lift .mcb2-card,
    .mcb2-card-hover-grow .mcb2-card,
    .mcb2-card-hover-shadow .mcb2-card,
    .mcb2-card-hover-border .mcb2-card { transition: none; }
    .mcb2-card-hover-lift .mcb2-card:hover,
    .mcb2-card-hover-grow .mcb2-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.mcb2-tabs {
    --mcb2-tabs-gap: 3px;
    --mcb2-tabs-radius: 20px;
    --mcb2-tabs-bg: #f4f6f7;
    --mcb2-tabs-hover-bg: var(--mcb2-tabs-bg);
    --mcb2-tabs-primary: var(--mcb2-brand);
    --mcb2-tabs-active-bg: var(--mcb2-tabs-primary);
    --mcb2-tabs-color: #263238;
    --mcb2-tabs-hover-color: var(--mcb2-tabs-color);
    --mcb2-tabs-active-color: #ffffff;
    --mcb2-tabs-border-color: #d4dadd;
    --mcb2-tabs-border-width: 1px;
    --mcb2-tabs-active-border-color: var(--mcb2-tabs-primary);
    --mcb2-tabs-active-border-width: var(--mcb2-tabs-border-width);
    --mcb2-tabs-panel-bg: #ffffff;
    --mcb2-tabs-panel-border-color: #d4dadd;
    --mcb2-tabs-panel-border-width: 1px;
    --mcb2-tabs-panel-padding: 28px;
    --mcb2-tabs-nav-width: 220px;
    width: 100%;
}
.mcb2-tabs-nav {
    display: flex;
    gap: var(--mcb2-tabs-gap);
}
.mcb2-tab-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: var(--mcb2-tabs-border-width) solid var(--mcb2-tabs-border-color);
    border-radius: var(--mcb2-tabs-radius);
    background: var(--mcb2-tab-bg, var(--mcb2-tabs-bg));
    color: var(--mcb2-tabs-color);
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    user-select: text;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.mcb2-tab-button:not(.is-active):hover,
.mcb2-tab-button:not(.is-active):focus-visible {
    background: var(--mcb2-tab-hover-bg, var(--mcb2-tabs-hover-bg));
    color: var(--mcb2-tab-hover-color, var(--mcb2-tabs-hover-color));
}
.mcb2-tab-button.is-active {
    border-color: var(--mcb2-tab-active-border-color, var(--mcb2-tabs-active-border-color));
    border-width: var(--mcb2-tabs-active-border-width);
    background: var(--mcb2-tab-active-bg, var(--mcb2-tabs-active-bg));
    color: var(--mcb2-tabs-active-color);
}
.mcb2-tab-button:focus-visible {
    outline: 2px solid var(--mcb2-brand);
    outline-offset: 2px;
}

.mcb2-tab-button:focus:not(:focus-visible) {
    outline: none;
}
.mcb2-tabs-panels { min-width: 0; }
.mcb2-tab-panel {
    display: none;
    position: relative;
    isolation: isolate;
    min-width: 0;
    box-sizing: border-box;
    padding: var(--mcb2-tabs-panel-padding);
    border: var(--mcb2-tabs-panel-border-width) solid var(--mcb2-tabs-panel-border-color);
    border-radius: var(--mcb2-tabs-radius);
    background: var(--mcb2-tabs-panel-bg);
}
/* The panel's real border is the only visible panel stroke. Avoid repainting
   it with a pseudo-element, which made a 1px panel border look heavier than a
   1px tab border. */
.mcb2-tab-panel.is-active { display: block; }
.mcb2-tab-panel > :first-child { margin-top: 0; }
.mcb2-tab-panel > :last-child { margin-bottom: 0; }
.mcb2-tabs-nested { width: 100%; min-width: 0; margin: 20px 0 8px; }

/* Horizontal layout. */
.mcb2-tabs-layout-horizontal .mcb2-tabs-nav { margin-bottom: var(--mcb2-tabs-gap); }
.mcb2-tabs-layout-horizontal.mcb2-tabs-align-left .mcb2-tabs-nav { justify-content: flex-start; }
.mcb2-tabs-layout-horizontal.mcb2-tabs-align-center .mcb2-tabs-nav { justify-content: center; }
.mcb2-tabs-layout-horizontal.mcb2-tabs-align-right .mcb2-tabs-nav { justify-content: flex-end; }

/* Vertical layout: label rail on the left, large content region on the right. */
.mcb2-tabs-layout-vertical {
    display: grid;
    grid-template-columns: minmax(80px, var(--mcb2-tabs-nav-width)) minmax(0, 1fr);
    gap: var(--mcb2-tabs-gap);
    align-items: stretch;
}
.mcb2-tabs-layout-vertical .mcb2-tabs-nav {
    flex-direction: column;
    align-items: stretch;
}
.mcb2-tabs-layout-vertical.mcb2-tabs-align-left .mcb2-tab-button { justify-content: flex-start; text-align: left; }
.mcb2-tabs-layout-vertical.mcb2-tabs-align-center .mcb2-tab-button { justify-content: center; text-align: center; }
.mcb2-tabs-layout-vertical.mcb2-tabs-align-right .mcb2-tab-button { justify-content: flex-end; text-align: right; }

/* Optional vertical writing for vertical tab rails.
   Tabs remain stacked top-to-bottom; only the label text rotates. */
.mcb2-tabs-layout-vertical.mcb2-tabs-label-vertical .mcb2-tabs-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
}
.mcb2-tabs-layout-vertical.mcb2-tabs-label-vertical {
    grid-template-columns: 48px minmax(0, 1fr);
}
.mcb2-tabs-layout-vertical.mcb2-tabs-label-vertical .mcb2-tab-button {
    width: 48px;
    min-height: 150px;
    padding: 12px 8px;
}
.mcb2-tabs-layout-vertical.mcb2-tabs-label-vertical .mcb2-tab-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Visual presets. */
.mcb2-tabs-style-underline .mcb2-tab-button {
    border-width: 0 0 var(--mcb2-tabs-border-width) 0;
    border-radius: 0;
    background: var(--mcb2-tab-bg, var(--mcb2-tabs-bg));
    color: var(--mcb2-tabs-color);
}
.mcb2-tabs-style-underline .mcb2-tab-button.is-active {
    border-width: 0 0 var(--mcb2-tabs-active-border-width) 0;
    border-color: var(--mcb2-tab-active-border-color, var(--mcb2-tabs-active-border-color));
    background: var(--mcb2-tab-active-bg, var(--mcb2-tabs-active-bg));
    color: var(--mcb2-tabs-active-color);
}
.mcb2-tabs-style-pills .mcb2-tab-button {
    padding: 12px 20px;
    border-color: transparent;
    border-radius: 999px;
}
.mcb2-tabs-style-pills .mcb2-tab-button.is-active {
    border-color: var(--mcb2-tab-active-border-color, var(--mcb2-tabs-active-border-color));
}
.mcb2-tabs-style-boxed .mcb2-tab-button {
    border-color: var(--mcb2-tabs-border-color);
    border-radius: max(2px, calc(var(--mcb2-tabs-radius) / 2));
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.05);
}
.mcb2-tabs-style-boxed .mcb2-tab-button.is-active {
    border-color: var(--mcb2-tab-active-border-color, var(--mcb2-tabs-active-border-color));
    box-shadow: inset 0 -3px 0 rgba(255,255,255,.18);
}
.mcb2-tabs-style-minimal .mcb2-tab-button {
    border-color: transparent;
    background: var(--mcb2-tab-bg, var(--mcb2-tabs-bg));
    color: var(--mcb2-tabs-color);
}
.mcb2-tabs-style-minimal .mcb2-tab-button.is-active {
    border-color: var(--mcb2-tab-active-border-color, var(--mcb2-tabs-active-border-color));
    background: var(--mcb2-tab-active-bg, var(--mcb2-tabs-active-bg));
    color: var(--mcb2-tabs-active-color);
}

@media (max-width: 700px) {
    .mcb2-tabs-layout-vertical {
        display: block;
    }
    .mcb2-tabs-layout-vertical .mcb2-tabs-nav,
    .mcb2-tabs-layout-vertical.mcb2-tabs-label-vertical .mcb2-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        margin-bottom: var(--mcb2-tabs-gap);
    }
    .mcb2-tabs-layout-vertical.mcb2-tabs-label-vertical .mcb2-tab-button {
        width: auto;
        min-height: 42px;
        padding: 10px 16px;
    }
    .mcb2-tabs-layout-vertical.mcb2-tabs-label-vertical .mcb2-tab-label {
        writing-mode: horizontal-tb;
        transform: none;
    }
}
/* Mobile horizontal Tabs stay tabs instead of being coerced into a tall stack by
   site-wide button/flex rules. Long tab sets scroll horizontally while each label
   remains readable. */
@media (max-width: 700px) {
    .mcb2-tabs-layout-horizontal > .mcb2-tabs-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .mcb2-tabs-layout-horizontal > .mcb2-tabs-nav > .mcb2-tab-button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content;
        max-width: min(85vw, 320px);
        white-space: normal;
    }
}


/* Legacy heading visibility: only the originally hidden heading is marked
   during migration. New H3/H2 content must always use native CKEditor formatting. */
.mcb2-legacy-hidden-heading { display: none !important; }

/* Pre-migration public markup retains the older hidden-heading appearance. */
.mcb2-card.mcb2-card-heading-hide .mcb2-card-body > h3 { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.mcb2-hero {
    --mcb2-hero-gap: 44px;
    --mcb2-hero-min-height: 360px;
    --mcb2-hero-button-bg: #20262a;
    --mcb2-hero-button-color: #fff;
    --mcb2-hero-button-border: #20262a;
    --mcb2-hero-button-radius: 5px;
    display: grid;
    gap: var(--mcb2-hero-gap);
    min-height: var(--mcb2-hero-min-height);
    align-items: center;
}
.mcb2-hero-content,
.mcb2-hero-media { min-width: 0; }
.mcb2-hero-content > :first-child { margin-top: 0; }
.mcb2-hero-content > :last-child { margin-bottom: 0; }
.mcb2-hero-eyebrow {
    margin-bottom: 8px;
    color: var(--mcb2-brand);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mcb2-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
/* Opt-in positioning for non-background Hero media. Preserve legacy Heroes
   that do not have an alignment class. A narrower MiraImage/CKEditor image can
   now sit in the middle (or right) of its grid column instead of hugging left. */
.mcb2-hero.mcb2-hero-media-left:not(.mcb2-hero-image-background) > .mcb2-hero-media,
.mcb2-hero.mcb2-hero-media-center:not(.mcb2-hero-image-background) > .mcb2-hero-media,
.mcb2-hero.mcb2-hero-media-right:not(.mcb2-hero-image-background) > .mcb2-hero-media {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mcb2-hero.mcb2-hero-media-left > .mcb2-hero-media { align-items: flex-start; }
.mcb2-hero.mcb2-hero-media-center > .mcb2-hero-media { align-items: center; }
.mcb2-hero.mcb2-hero-media-right > .mcb2-hero-media { align-items: flex-end; }
.mcb2-hero:is(.mcb2-hero-media-left,.mcb2-hero-media-center,.mcb2-hero-media-right):not(.mcb2-hero-image-background) > .mcb2-hero-media img {
    width: auto;
    max-width: 100%;
    height: auto;
}
.mcb2-hero-action { margin-top: 22px; }
.mcb2-hero .mcb2-hero-button {
    display: inline-block;
    padding: 10px 17px;
    border: 1px solid var(--mcb2-hero-button-border);
    border-radius: var(--mcb2-hero-button-radius);
    background: var(--mcb2-hero-button-bg);
    color: var(--mcb2-hero-button-color);
    text-decoration: none;
    font-weight: 700;
}
.mcb2-hero-image-left,
.mcb2-hero-image-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mcb2-hero-image-left .mcb2-hero-media { grid-column: 1; grid-row: 1; }
.mcb2-hero-image-left .mcb2-hero-content { grid-column: 2; grid-row: 1; }
.mcb2-hero-image-right .mcb2-hero-content { grid-column: 1; grid-row: 1; }
.mcb2-hero-image-right .mcb2-hero-media { grid-column: 2; grid-row: 1; }
.mcb2-hero-image-left.mcb2-hero-split-content,
.mcb2-hero-image-right.mcb2-hero-split-media { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.mcb2-hero-image-left.mcb2-hero-split-media,
.mcb2-hero-image-right.mcb2-hero-split-content { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.mcb2-hero-image-top,
.mcb2-hero-image-bottom { grid-template-columns: minmax(0, 1fr); }
.mcb2-hero-image-top .mcb2-hero-media { grid-row: 1; }
.mcb2-hero-image-top .mcb2-hero-content { grid-row: 2; }
.mcb2-hero-image-bottom .mcb2-hero-content { grid-row: 1; }
.mcb2-hero-image-bottom .mcb2-hero-media { grid-row: 2; }
.mcb2-hero-image-none { display: block; min-height: 0; }
.mcb2-hero-image-none .mcb2-hero-media { display: none; }
.mcb2-hero-align-left .mcb2-hero-content { text-align: left; }
.mcb2-hero-align-center .mcb2-hero-content { text-align: center; }
.mcb2-hero-align-right .mcb2-hero-content { text-align: right; }
.mcb2-hero-v-top { align-items: start; }
.mcb2-hero-v-center { align-items: center; }
.mcb2-hero-v-bottom { align-items: end; }
.mcb2-hero-nested { width: 100%; margin-top: 20px; margin-bottom: 8px; }

/* Hero photo banner. Only applies when explicitly selecting Background image;
   all existing split, top/bottom and image-free hero layouts remain unchanged. */
.mcb2-hero-image-background {
    --mcb2-hero-overlay-color: #0c4777;
    --mcb2-hero-overlay-opacity: 75%;
    --mcb2-hero-banner-text: #fff;
    --mcb2-hero-content-width: 1100px;
    --mcb2-hero-banner-pad-x: 32px;
    --mcb2-hero-banner-pad-y: 38px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: var(--mcb2-hero-banner-pad-y) var(--mcb2-hero-banner-pad-x);
    color: var(--mcb2-hero-banner-text);
}
.mcb2-hero-image-background.mcb2-hero-v-top { justify-content: flex-start; }
.mcb2-hero-image-background.mcb2-hero-v-center { justify-content: center; }
.mcb2-hero-image-background.mcb2-hero-v-bottom { justify-content: flex-end; }
.mcb2-hero-image-background > .mcb2-hero-media {
    position: absolute;
    z-index: 0;
    inset: 0;
    margin: 0;
}
.mcb2-hero-image-background > .mcb2-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    margin: 0;
}
.mcb2-hero-image-background.mcb2-hero-focus-top > .mcb2-hero-media img { object-position: center top; }
.mcb2-hero-image-background.mcb2-hero-focus-bottom > .mcb2-hero-media img { object-position: center bottom; }
.mcb2-hero-image-background > .mcb2-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mcb2-hero-overlay-color);
    opacity: var(--mcb2-hero-overlay-opacity);
    pointer-events: none;
}
.mcb2-hero-image-background > .mcb2-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--mcb2-hero-content-width);
    margin: 0 auto;
    min-width: 0;
    color: inherit;
}
/* Do not override explicit inline CKEditor text colours or alignments. */
.mcb2-hero-image-background > .mcb2-hero-content > :is(h1,h2,h3,h4,h5,h6,p):not([style*="color"]) { color: inherit; }
.mcb2-hero-image-background.mcb2-hero-align-center > .mcb2-hero-content > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: center; }
.mcb2-hero-image-background.mcb2-hero-align-left > .mcb2-hero-content > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: left; }
.mcb2-hero-image-background.mcb2-hero-align-right > .mcb2-hero-content > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: right; }
@media (max-width: 800px) {
    .mcb2-hero-image-background { min-height: var(--mcb2-hero-min-height); }
    .mcb2-hero-image-background > .mcb2-hero-media { width: auto; }
    .mcb2-hero-image-background > .mcb2-hero-content { width: 100%; }
    .mcb2-hero-image-background.mcb2-hero-mobile-center > .mcb2-hero-content > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: center; }
    .mcb2-hero-image-background.mcb2-hero-mobile-left > .mcb2-hero-content > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: left; }
    .mcb2-hero-image-background.mcb2-hero-mobile-right > .mcb2-hero-content > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: right; }
}

/* --------------------------------------------------------------------------
   Container Styling
   -------------------------------------------------------------------------- */
.mcb2-callout-grid {
    --mcb2-callout-grid-gap: 24px;
    display: grid;
    width: 100%;
    gap: var(--mcb2-callout-grid-gap);
    align-items: start;
}
.mcb2-callout-grid.mcb2-callout-cols-1 { grid-template-columns: minmax(0, 1fr); }
.mcb2-callout-grid.mcb2-callout-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcb2-callout-grid.mcb2-callout-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcb2-callout-grid.mcb2-callout-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcb2-callout-grid.mcb2-callout-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mcb2-callout-grid.mcb2-callout-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mcb2-callout-grid.mcb2-callout-equal-off { align-items: start; }
.mcb2-callout-grid.mcb2-callout-equal-row,
.mcb2-callout-grid.mcb2-callout-equal-all { align-items: stretch; }
.mcb2-callout-grid.mcb2-callout-equal-row > .mcb2-callout,
.mcb2-callout-grid.mcb2-callout-equal-all > .mcb2-callout { height: 100%; }
.mcb2-callout-grid.mcb2-callout-equal-all { grid-auto-rows: 1fr; }

.mcb2-callout {
    --mcb2-callout-bg: #dbeef8;
    --mcb2-callout-hover-bg: var(--mcb2-callout-bg);
    --mcb2-callout-border-color: #c6d5dd;
    --mcb2-callout-border-width: 0px;
    --mcb2-callout-hover-border-color: var(--mcb2-callout-border-color);
    --mcb2-callout-accent-color: #2f7799;
    --mcb2-callout-accent-width: 8px;
    --mcb2-callout-radius: 0px;
    --mcb2-callout-pad-y: 0px;
    --mcb2-callout-pad-x: 0px;
    --mcb2-callout-max-width: 1200px;
    --mcb2-callout-media-width: 200px;
    --mcb2-callout-media-percent: 20%;
    --mcb2-callout-media-gap: 24px;
    --mcb2-callout-media-pad-x: 10px;
    --mcb2-callout-icon-size: 48px;
    --mcb2-callout-icon-color: #2f7799;
    --mcb2-callout-media-min-height: 160px;
    --mcb2-callout-inner-radius: max(0px, calc(var(--mcb2-callout-radius) - var(--mcb2-callout-border-width)));
    width: 100%;
    max-width: var(--mcb2-callout-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: var(--mcb2-callout-pad-y) var(--mcb2-callout-pad-x);
    border: var(--mcb2-callout-border-width) solid var(--mcb2-callout-border-color);
    border-radius: var(--mcb2-callout-radius);
    background: var(--mcb2-callout-bg);
    overflow: hidden;
    position: relative;
}
/* New Container Styling blocks start square, but Rounded uses a practical 20px
   starting value when selected. Legacy blocks without either class continue to
   use their saved --mcb2-callout-radius exactly as before. */
.mcb2-callout-corners-square { border-radius: 0; }
.mcb2-callout-corners-rounded { border-radius: var(--mcb2-callout-radius, 20px); }
.mcb2-callout-body,
.mcb2-callout-media { min-width: 0; }
.mcb2-callout-body > :first-child { margin-top: 0; }
.mcb2-callout-body > :last-child { margin-bottom: 0; }
.mcb2-callout-heading-hide .mcb2-callout-body > h1:first-child,
.mcb2-callout-heading-hide .mcb2-callout-body > h2:first-child,
.mcb2-callout-heading-hide .mcb2-callout-body > h3:first-child,
.mcb2-callout-heading-hide .mcb2-callout-body > h4:first-child,
.mcb2-callout-heading-hide .mcb2-callout-body > h5:first-child,
.mcb2-callout-heading-hide .mcb2-callout-body > h6:first-child { display: none; }

/* Optional native CKEditor media slot. The builder only owns its placement. */
.mcb2-callout-media-none .mcb2-callout-media { display: none; }
.mcb2-callout-media-left,
.mcb2-callout-media-right {
    display: grid;
    gap: var(--mcb2-callout-media-gap);
}
/* Auto media sizing follows the actual icon/image content, not the legacy
   200px reserved media column. Fit-content caps large images so the text column
   can still shrink on narrower layouts; optional padding belongs to the media
   itself and does not alter existing Fixed/Percentage mode geometry. */
.mcb2-callout-media-size-auto.mcb2-callout-media-left {
    grid-template-columns: fit-content(40%) minmax(0, 1fr);
}
.mcb2-callout-media-size-auto.mcb2-callout-media-right {
    grid-template-columns: minmax(0, 1fr) fit-content(40%);
}
.mcb2-callout-media-size-auto > .mcb2-callout-media {
    box-sizing: border-box;
    padding-left: var(--mcb2-callout-media-pad-x);
    padding-right: var(--mcb2-callout-media-pad-x);
}
/* Media Off must win over the persistent left/right position class. */
.mcb2-callout.mcb2-callout-media-none {
    display: block;
    gap: 0;
    grid-template-columns: none;
}
.mcb2-callout-media-size-fixed.mcb2-callout-media-left {
    grid-template-columns: minmax(36px, var(--mcb2-callout-media-width)) minmax(0, 1fr);
}
.mcb2-callout-media-size-fixed.mcb2-callout-media-right {
    grid-template-columns: minmax(0, 1fr) minmax(36px, var(--mcb2-callout-media-width));
}
.mcb2-callout-media-size-percent.mcb2-callout-media-left {
    grid-template-columns: minmax(0, var(--mcb2-callout-media-percent)) minmax(0, 1fr);
}
.mcb2-callout-media-size-percent.mcb2-callout-media-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--mcb2-callout-media-percent));
}
.mcb2-callout-media-right .mcb2-callout-body { grid-column: 1; grid-row: 1; }
.mcb2-callout-media-right .mcb2-callout-media { grid-column: 2; grid-row: 1; }
.mcb2-callout-media-left .mcb2-callout-media { grid-column: 1; grid-row: 1; }
.mcb2-callout-media-left .mcb2-callout-body { grid-column: 2; grid-row: 1; }
/* Media is a real grid item. Vertical alignment belongs to the media item only;
   the authored body should not be vertically shifted just because the icon/image is. */
.mcb2-callout-media-v-top > .mcb2-callout-media { align-self: start; }
.mcb2-callout-media-v-center > .mcb2-callout-media { align-self: center; }
.mcb2-callout-media-v-bottom > .mcb2-callout-media { align-self: end; }

.mcb2-callout-media-type-icon > .mcb2-callout-media,
.mcb2-callout-media-type-image.mcb2-callout-image-standard > .mcb2-callout-media {
    display: flex;
    min-width: 0;
}
.mcb2-callout-media-align-left > .mcb2-callout-media { justify-content: flex-start; text-align: left; }
.mcb2-callout-media-align-center > .mcb2-callout-media { justify-content: center; text-align: center; }
.mcb2-callout-media-align-right > .mcb2-callout-media { justify-content: flex-end; text-align: right; }

.mcb2-callout-media-type-icon > .mcb2-callout-media [class*="fa-"] {
    display: inline-block;
    max-width: 100%;
    color: var(--mcb2-callout-icon-color);
    font-size: var(--mcb2-callout-icon-size);
    line-height: 1;
}

/* Public defensive visibility: only the active media kind may render. This also
   protects older/sourcified markup if an inactive node survives an editor round trip. */
.mcb2-callout-media-type-icon > .mcb2-callout-media img,
.mcb2-callout-media-type-icon > .mcb2-callout-media picture,
.mcb2-callout-media-type-icon > .mcb2-callout-media figure { display: none !important; }
.mcb2-callout-media-type-image > .mcb2-callout-media [class*="fa-"] { display: none !important; }

.mcb2-callout-media-type-image > .mcb2-callout-media img { display: block; max-width: 100%; height: auto; }
.mcb2-callout-media-type-image.mcb2-callout-image-standard.mcb2-callout-image-size-natural > .mcb2-callout-media img { width: auto; }
.mcb2-callout-media-type-image.mcb2-callout-image-standard.mcb2-callout-image-size-full > .mcb2-callout-media img { width: 100%; }

/* Fill Media Area keeps a real IMG (so CKEditor/MiraFinder still owns image editing)
   but lets it behave like the visual background of the media column. */
.mcb2-callout-media-type-image.mcb2-callout-image-fill > .mcb2-callout-media {
    position: relative;
    display: block;
    align-self: stretch;
    min-height: var(--mcb2-callout-media-min-height);
    overflow: hidden;
}
.mcb2-callout-media-type-image.mcb2-callout-image-fill > .mcb2-callout-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
}
.mcb2-callout-image-fit-cover > .mcb2-callout-media img { object-fit: cover; }
.mcb2-callout-image-fit-contain > .mcb2-callout-media img { object-fit: contain; }
.mcb2-callout-image-focus-top > .mcb2-callout-media img { object-position: center top; }
.mcb2-callout-image-focus-center > .mcb2-callout-media img { object-position: center center; }
.mcb2-callout-image-focus-bottom > .mcb2-callout-media img { object-position: center bottom; }

.mcb2-callout-accent-none::after { content: none; }

/* Accent edges are decorative overlays only. The real outline is always the
   .mcb2-callout border. This mirrors the proven NRS menu-item pattern:
   one real border on the card, plus an absolutely positioned accent overlay
   that is clipped by the card's own overflow/border-radius. */
.mcb2-callout-accent-left::after,
.mcb2-callout-accent-right::after,
.mcb2-callout-accent-top::after,
.mcb2-callout-accent-bottom::after,
.mcb2-callout-accent-all::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 4;
    opacity: 1;
    background: var(--mcb2-callout-accent-color);
}

/* Do NOT inset the accent by the normal border width. It sits at the callout
   edge and the callout's overflow:hidden + border-radius provide the clipping.
   This avoids separate radius/border geometries fighting each other. */
.mcb2-callout-accent-left::after,
.mcb2-callout-accent-right::after {
    top: 0;
    bottom: 0;
    width: var(--mcb2-callout-accent-width);
}
.mcb2-callout-accent-left::after { left: 0; border-radius: var(--mcb2-callout-radius) 0 0 var(--mcb2-callout-radius); }
.mcb2-callout-accent-right::after { right: 0; border-radius: 0 var(--mcb2-callout-radius) var(--mcb2-callout-radius) 0; }

.mcb2-callout-accent-top::after,
.mcb2-callout-accent-bottom::after {
    left: 0;
    right: 0;
    height: var(--mcb2-callout-accent-width);
}
.mcb2-callout-accent-top::after { top: 0; border-radius: var(--mcb2-callout-radius) var(--mcb2-callout-radius) 0 0; }
.mcb2-callout-accent-bottom::after { bottom: 0; border-radius: 0 0 var(--mcb2-callout-radius) var(--mcb2-callout-radius); }

.mcb2-callout-accent-all::after {
    inset: 0;
    border: var(--mcb2-callout-accent-width) solid var(--mcb2-callout-accent-color);
    border-radius: inherit;
    background: transparent;
    box-sizing: border-box;
}

/* Optional curved accent treatment. Standard remains the original strip,
   including all legacy content without any accent-style class. Only opt-in
   mcb2-callout-accent-style-curve on rounded containers traces the outer edge. */
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-left::after,
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-right::after,
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-top::after,
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-bottom::after {
    inset: 0;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: inherit;
}
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-left::after {
    box-shadow: inset var(--mcb2-callout-accent-width) 0 0 var(--mcb2-callout-accent-color);
}
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-right::after {
    box-shadow: inset calc(0px - var(--mcb2-callout-accent-width)) 0 0 var(--mcb2-callout-accent-color);
}
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-top::after {
    box-shadow: inset 0 var(--mcb2-callout-accent-width) 0 var(--mcb2-callout-accent-color);
}
.mcb2-callout-corners-rounded.mcb2-callout-accent-style-curve.mcb2-callout-accent-bottom::after {
    box-shadow: inset 0 calc(0px - var(--mcb2-callout-accent-width)) 0 var(--mcb2-callout-accent-color);
}

/* The callout itself owns clipping/radius. The accent never changes dimensions
   or replaces a side of the normal border. */
.mcb2-callout:not(.mcb2-callout-accent-none) { isolation: isolate; }

/* Hover-only accent: solid reveal or directional scale reveal. */
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-solid::after {
    opacity: 0;
    transition: opacity .18s ease;
}
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-solid:hover::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-solid:focus-within::after { opacity: 1; }

.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center.mcb2-callout-accent-left::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center.mcb2-callout-accent-right::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-left::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-right::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-left::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-right::after {
    transform: scaleY(0);
    transition: transform .20s ease;
}
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center.mcb2-callout-accent-top::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center.mcb2-callout-accent-bottom::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-top::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-bottom::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-top::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-bottom::after {
    transform: scaleX(0);
    transition: transform .20s ease;
}
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center.mcb2-callout-accent-all::after {
    transform: scale(.02);
    transition: transform .20s ease;
}
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-all::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-all::after {
    transform: scaleX(0);
    transition: transform .20s ease;
}

.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center::after { transform-origin: center; }
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-left::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-right::after { transform-origin: top center; }
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-left::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-right::after { transform-origin: bottom center; }
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-top::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-bottom::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start.mcb2-callout-accent-all::after { transform-origin: center left; }
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-top::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-bottom::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end.mcb2-callout-accent-all::after { transform-origin: center right; }

.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center:hover::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center:focus-within::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start:hover::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start:focus-within::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end:hover::after,
.mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end:focus-within::after { transform: scale(1); }

.mcb2-callout-shadow-none { box-shadow: none; }
.mcb2-callout-shadow-soft { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.mcb2-callout-shadow-medium { box-shadow: 0 10px 30px rgba(0,0,0,.14); }

/* Hover effects: border remains the callout's one real border. Lift deliberately
   changes only transform + border colour; it does not manufacture a hover
   shadow. If a shadow is wanted, use the existing Shadow setting. */
.mcb2-callout-hover-lift,
.mcb2-callout-hover-grow {
    transition: transform .20s ease, border-color .20s ease, background-color .20s ease;
    transform-origin: center;
}
.mcb2-callout-hover-bounce {
    transition: border-color .20s ease, background-color .20s ease;
}

.mcb2-callout:hover,
.mcb2-callout:focus-within {
    background: var(--mcb2-callout-hover-bg, var(--mcb2-callout-bg));
}

.mcb2-callout-hover-lift:hover,
.mcb2-callout-hover-lift:focus-within,
.mcb2-callout-hover-grow:hover,
.mcb2-callout-hover-grow:focus-within,
.mcb2-callout-hover-bounce:hover,
.mcb2-callout-hover-bounce:focus-within {
    border-color: var(--mcb2-callout-hover-border-color, var(--mcb2-callout-border-color));
}

.mcb2-callout-hover-lift:hover,
.mcb2-callout-hover-lift:focus-within { transform: translateY(-3px); }

.mcb2-callout-hover-grow:hover,
.mcb2-callout-hover-grow:focus-within { transform: scale(1.025); }

@keyframes mcb2-callout-bounce {
    0%, 100% { transform: translateY(0); }
    35% { transform: translateY(-7px); }
    65% { transform: translateY(-2px); }
}
.mcb2-callout-hover-bounce:hover,
.mcb2-callout-hover-bounce:focus-within {
    animation: mcb2-callout-bounce .45s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-center::after,
    .mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-start::after,
    .mcb2-callout-accent-display-hover.mcb2-callout-accent-anim-end::after { transition: none; }
    .mcb2-callout-hover-lift,
    .mcb2-callout-hover-grow { transition: border-color .20s ease, background-color .20s ease; }
    .mcb2-callout-hover-lift:hover,
    .mcb2-callout-hover-lift:focus-within,
    .mcb2-callout-hover-grow:hover,
    .mcb2-callout-hover-grow:focus-within { transform: none; }
    .mcb2-callout-hover-bounce:hover,
    .mcb2-callout-hover-bounce:focus-within { animation: none; }
}
@media (max-width: 1100px) {
    .mcb2-callout-grid.mcb2-callout-cols-5,
    .mcb2-callout-grid.mcb2-callout-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .mcb2-callout-grid.mcb2-callout-cols-3,
    .mcb2-callout-grid.mcb2-callout-cols-4,
    .mcb2-callout-grid.mcb2-callout-cols-5,
    .mcb2-callout-grid.mcb2-callout-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .mcb2-callout-grid.mcb2-callout-cols-2,
    .mcb2-callout-grid.mcb2-callout-cols-3,
    .mcb2-callout-grid.mcb2-callout-cols-4,
    .mcb2-callout-grid.mcb2-callout-cols-5,
    .mcb2-callout-grid.mcb2-callout-cols-6 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
    .mcb2-callout.mcb2-callout-media-on.mcb2-callout-mobile-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--mcb2-callout-media-gap);
    }
    .mcb2-callout.mcb2-callout-media-on.mcb2-callout-mobile-wrap > .mcb2-callout-media,
    .mcb2-callout.mcb2-callout-media-on.mcb2-callout-mobile-wrap > .mcb2-callout-body {
        width: 100%;
        min-width: 0;
        grid-column: auto;
        grid-row: auto;
    }
    .mcb2-callout.mcb2-callout-media-left > .mcb2-callout-media { order: 1; }
    .mcb2-callout.mcb2-callout-media-left > .mcb2-callout-body { order: 2; }
    .mcb2-callout.mcb2-callout-media-right > .mcb2-callout-body { order: 1; }
    .mcb2-callout.mcb2-callout-media-right > .mcb2-callout-media { order: 2; }
    .mcb2-callout.mcb2-callout-media-type-image.mcb2-callout-image-fill.mcb2-callout-mobile-wrap > .mcb2-callout-media {
        min-height: var(--mcb2-callout-media-min-height);
    }
}
.mcb2-callout-nested { width: 100%; margin-top: 20px; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Video Playlist
   -------------------------------------------------------------------------- */
.mcb2-video-playlist {
    --mcb2-video-gap: 24px;
    --mcb2-video-list-width: 360px;
    --mcb2-video-list-height: 470px;
    --mcb2-video-radius: 8px;
    --mcb2-video-accent: #0a8cc1;
    --mcb2-video-active-bg: #f0f3f5;
    display: grid;
    gap: var(--mcb2-video-gap);
    width: 100%;
    min-width: 0;
}
.mcb2-video-layout-left { grid-template-columns: minmax(220px, var(--mcb2-video-list-width)) minmax(0, 1fr); }
.mcb2-video-layout-right { grid-template-columns: minmax(0, 1fr) minmax(220px, var(--mcb2-video-list-width)); }
.mcb2-video-layout-right .mcb2-video-sidebar { grid-column: 2; grid-row: 1; }
.mcb2-video-layout-right .mcb2-video-stage { grid-column: 1; grid-row: 1; }
.mcb2-video-layout-top { grid-template-columns: 1fr; }
.mcb2-video-layout-top .mcb2-video-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
}
.mcb2-video-sidebar { min-width: 0; }
.mcb2-video-list-head {
    display: block;
    margin-bottom: 14px;
}
.mcb2-video-list-head > * { min-width: 0; }
.mcb2-video-list-head h3 { margin: 0 0 4px; white-space: normal; overflow-wrap: normal; word-break: normal; }
.mcb2-video-list-head p { margin: 0; white-space: normal; overflow-wrap: normal; word-break: normal; }
.mcb2-video-list {
    max-height: var(--mcb2-video-list-height);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mcb2-video-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-left: 4px solid transparent;
    border-radius: var(--mcb2-video-radius);
    color: inherit;
    text-decoration: none;
}
.mcb2-video-item:hover,
.mcb2-video-item:focus,
.mcb2-video-item.is-active {
    background: var(--mcb2-video-active-bg);
    border-left-color: var(--mcb2-video-accent);
    outline: none;
}
.mcb2-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: max(2px, calc(var(--mcb2-video-radius) - 3px));
    background: #e8ecef;
}
.mcb2-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mcb2-video-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--mcb2-video-accent);
    font-size: 10px;
    line-height: 1;
}
.mcb2-video-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; }
.mcb2-video-title { min-width: 0; color: inherit; font-weight: 700; white-space: normal; overflow-wrap: break-word; word-break: normal; }
.mcb2-video-duration { color: #59666d; font-size: .9em; white-space: nowrap; }
.mcb2-video-duration:empty { display: none; }
.mcb2-video-stage { min-width: 0; }
.mcb2-video-player {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--mcb2-video-radius);
    background: #101619;
}
.mcb2-video-frame { display: block; width: 100%; height: 100%; border: 0; background: #101619; }
.mcb2-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #1d292e, #0e1417);
    color: #fff;
    pointer-events: none;
}
.mcb2-video-placeholder > span { font-size: 34px; color: var(--mcb2-video-accent); }
.mcb2-video-placeholder small { color: rgba(255,255,255,.72); }
.mcb2-video-actions { display: flex; justify-content: flex-end; margin-top: 9px; min-height: 1.5em; }
.mcb2-video-external { color: var(--mcb2-video-accent); font-weight: 700; text-decoration: none; }
.mcb2-video-external:hover, .mcb2-video-external:focus { text-decoration: underline; }
.mcb2-video-playlist-nested { width: 100%; margin-top: 20px; margin-bottom: 8px; }

/* Stronger FAQ marker suppression for sites that force summary back to list-item. */
.mcb2-faq-item > summary {
    display: flex !important;
    align-items: center;
    list-style: none !important;
    list-style-type: none !important;
}
.mcb2-faq-question { flex: 1 1 auto; min-width: 0; }
.mcb2-faq-item > summary::-webkit-details-marker { display: none !important; }
.mcb2-faq-item > summary::marker { content: '' !important; display: none !important; }

@media (max-width: 800px) {
    /* Do not keep the desktop CSS Grid on stacked heroes. Older site styles can
       otherwise leave implicit grid tracks behind, making the two real hero
       children look like a 2x2 layout. A simple flex stack guarantees that
       media and content each occupy the full mobile width. */
    .mcb2-hero-image-left,
    .mcb2-hero-image-right,
    .mcb2-hero-image-top,
    .mcb2-hero-image-bottom {
        display: flex;
        flex-direction: column;
        gap: var(--mcb2-hero-gap);
        min-height: 0;
    }
    .mcb2-hero-image-left .mcb2-hero-content,
    .mcb2-hero-image-left .mcb2-hero-media,
    .mcb2-hero-image-right .mcb2-hero-content,
    .mcb2-hero-image-right .mcb2-hero-media,
    .mcb2-hero-image-top .mcb2-hero-content,
    .mcb2-hero-image-top .mcb2-hero-media,
    .mcb2-hero-image-bottom .mcb2-hero-content,
    .mcb2-hero-image-bottom .mcb2-hero-media {
        width: 100%;
        min-width: 0;
        grid-column: auto;
        grid-row: auto;
    }
    .mcb2-hero-image-left .mcb2-hero-media,
    .mcb2-hero-image-right .mcb2-hero-media,
    .mcb2-hero-image-top .mcb2-hero-media { order: 1; }
    .mcb2-hero-image-left .mcb2-hero-content,
    .mcb2-hero-image-right .mcb2-hero-content,
    .mcb2-hero-image-top .mcb2-hero-content { order: 2; }
    .mcb2-hero-image-bottom .mcb2-hero-content { order: 1; }
    .mcb2-hero-image-bottom .mcb2-hero-media { order: 2; }

    /* Optional mobile stack order: 'first' / 'second' refer to the left/right
       (or top/bottom) desktop side, NOT the content type. Absence of either
       class retains the legacy automatic order. Background heroes never stack. */
    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-left > .mcb2-hero-media,
    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-top > .mcb2-hero-media,
    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-right > .mcb2-hero-content,
    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-bottom > .mcb2-hero-content,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-left > .mcb2-hero-content,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-top > .mcb2-hero-content,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-right > .mcb2-hero-media,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-bottom > .mcb2-hero-media { order: 1; }

    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-left > .mcb2-hero-content,
    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-top > .mcb2-hero-content,
    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-right > .mcb2-hero-media,
    .mcb2-hero.mcb2-hero-mobile-order-first.mcb2-hero-image-bottom > .mcb2-hero-media,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-left > .mcb2-hero-media,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-top > .mcb2-hero-media,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-right > .mcb2-hero-content,
    .mcb2-hero.mcb2-hero-mobile-order-second.mcb2-hero-image-bottom > .mcb2-hero-content { order: 2; }

    /* Existing heroes from earlier V2 builds did not have a mobile alignment class.
       Center is the safe stacked default; explicit mobile classes override it. */
    .mcb2-hero .mcb2-hero-content { text-align: center; }
    .mcb2-hero .mcb2-hero-media img { margin-left: auto; margin-right: auto; }
    .mcb2-hero-mobile-left .mcb2-hero-content { text-align: left; }
    .mcb2-hero-mobile-center .mcb2-hero-content { text-align: center; }
    .mcb2-hero-mobile-right .mcb2-hero-content { text-align: right; }
    .mcb2-hero-mobile-center .mcb2-hero-media img { margin-left: auto; margin-right: auto; }

    .mcb2-video-layout-left,
    .mcb2-video-layout-right { grid-template-columns: 1fr; }
    .mcb2-video-layout-right .mcb2-video-sidebar,
    .mcb2-video-layout-right .mcb2-video-stage { grid-column: 1; }
    .mcb2-video-layout-right .mcb2-video-sidebar { grid-row: 1; }
    .mcb2-video-layout-right .mcb2-video-stage { grid-row: 2; }
    .mcb2-video-list { max-height: 320px; }
}

@media (max-width: 620px) {
    .mcb2-video-layout-top .mcb2-video-list { grid-template-columns: 1fr; }
    .mcb2-video-item { grid-template-columns: 68px minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Flexible Grid
   -------------------------------------------------------------------------- */
.mcb2-grid {
    --mcb2-grid-divider-color: #d7dde1;
    --mcb2-grid-divider-width: 0px;
    --mcb2-grid-border-color: #d7dde1;
    --mcb2-grid-border-width: 0px;
    --mcb2-grid-radius: 0px;
    --mcb2-grid-min-height: 180px;
    --mcb2-grid-slant-size: 18px;
    display: grid;
    gap: var(--mcb2-grid-divider-width);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: var(--mcb2-grid-border-width) solid var(--mcb2-grid-border-color);
    border-radius: var(--mcb2-grid-radius);
    background: var(--mcb2-grid-divider-color);
}

/* Grid divider patterns. Straight/dashed/dotted modes use the grid gap itself.
   Slanted modes use real clipped cell edges. They switch the grid container to a
   wrapping flex row so an incomplete final row grows to fill the available width
   instead of exposing a large block of divider colour. */
.mcb2-grid-divider-solid { background: var(--mcb2-grid-divider-color); }
.mcb2-grid-divider-dashed {
    background-color: transparent;
    background-image: repeating-linear-gradient(45deg,var(--mcb2-grid-divider-color) 0 7px,transparent 7px 13px);
}
.mcb2-grid-divider-dotted {
    background-color: transparent;
    background-image: radial-gradient(circle,var(--mcb2-grid-divider-color) 38%,transparent 42%);
    background-size: 6px 6px;
}

/* Real slanted cell edges. The negative horizontal margin overlaps neighbouring
   flex items by the slant depth; the remaining exposed strip is the divider. */
.mcb2-grid-divider-slant-forward,
.mcb2-grid-divider-slant-back {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--mcb2-grid-divider-color);
}
.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-divider-slant-back > .mcb2-grid-cell {
    flex: 1 1 calc((100% - ((var(--mcb2-grid-active-cols) - 1) * (var(--mcb2-grid-divider-width) - var(--mcb2-grid-slant-size)))) / var(--mcb2-grid-active-cols));
    width: auto;
    box-sizing: border-box;
    margin-right: calc(var(--mcb2-grid-divider-width) - var(--mcb2-grid-slant-size));
}
.mcb2-grid-divider-slant-forward > .mcb2-grid-cell {
    clip-path: polygon(var(--mcb2-grid-slant-size) 0,100% 0,calc(100% - var(--mcb2-grid-slant-size)) 100%,0 100%);
}
.mcb2-grid-divider-slant-back > .mcb2-grid-cell {
    clip-path: polygon(0 0,calc(100% - var(--mcb2-grid-slant-size)) 0,100% 100%,var(--mcb2-grid-slant-size) 100%);
}

/* Keep the outside edge of each visual row square. */
.mcb2-grid-cols-2.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(2n+1),
.mcb2-grid-cols-3.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(3n+1),
.mcb2-grid-cols-4.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(5n+1),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(6n+1),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(7n+1),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(8n+1) {
    clip-path: polygon(0 0,100% 0,calc(100% - var(--mcb2-grid-slant-size)) 100%,0 100%);
}
.mcb2-grid-cols-2.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(2n+1),
.mcb2-grid-cols-3.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(3n+1),
.mcb2-grid-cols-4.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(5n+1),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(6n+1),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(7n+1),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(8n+1) {
    clip-path: polygon(0 0,calc(100% - var(--mcb2-grid-slant-size)) 0,100% 100%,0 100%);
}
.mcb2-grid-cols-2.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(2n),
.mcb2-grid-cols-3.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(3n),
.mcb2-grid-cols-4.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(5n),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(6n),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(7n),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(8n),
.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:last-child {
    margin-right: 0;
    clip-path: polygon(var(--mcb2-grid-slant-size) 0,100% 0,100% 100%,0 100%);
}
.mcb2-grid-cols-2.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(2n),
.mcb2-grid-cols-3.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(3n),
.mcb2-grid-cols-4.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(5n),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(6n),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(7n),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(8n),
.mcb2-grid-divider-slant-back > .mcb2-grid-cell:last-child {
    margin-right: 0;
    clip-path: polygon(0 0,100% 0,100% 100%,var(--mcb2-grid-slant-size) 100%);
}
.mcb2-grid-cols-2.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(2n+1):last-child,
.mcb2-grid-cols-2.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(2n+1):last-child,
.mcb2-grid-cols-3.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(3n+1):last-child,
.mcb2-grid-cols-3.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(3n+1):last-child,
.mcb2-grid-cols-4.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-4.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(5n+1):last-child,
.mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(5n+1):last-child,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(6n+1):last-child,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(6n+1):last-child,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(7n+1):last-child,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(7n+1):last-child,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(8n+1):last-child,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(8n+1):last-child { clip-path: none; }

.mcb2-grid-cols-1 { --mcb2-grid-active-cols: 1; grid-template-columns: minmax(0, 1fr); }
.mcb2-grid-cols-2 { --mcb2-grid-active-cols: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcb2-grid-cols-3 { --mcb2-grid-active-cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcb2-grid-cols-4 { --mcb2-grid-active-cols: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcb2-grid-cols-5 { --mcb2-grid-active-cols: 5; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mcb2-grid-cols-6 { --mcb2-grid-active-cols: 6; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mcb2-grid-cols-7 { --mcb2-grid-active-cols: 7; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mcb2-grid-cols-8 { --mcb2-grid-active-cols: 8; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.mcb2-grid-cell {
    --mcb2-grid-cell-bg: #fff;
    --mcb2-grid-cell-color: #20262a;
    --mcb2-grid-cell-pad-x: 24px;
    --mcb2-grid-cell-pad-y: 24px;
    --mcb2-grid-cell-overlay: #000;
    --mcb2-grid-cell-overlay-opacity: 45%;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: var(--mcb2-grid-min-height);
    padding: var(--mcb2-grid-cell-pad-y) var(--mcb2-grid-cell-pad-x);
    overflow: hidden;
    background: var(--mcb2-grid-cell-bg);
    color: var(--mcb2-grid-cell-color);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.mcb2-grid-cell-body { position: relative; z-index: 3; min-width: 0; text-align: inherit; }
.mcb2-grid-cell-body > :first-child { margin-top: 0; }
.mcb2-grid-cell-body > :last-child { margin-bottom: 0; }
.mcb2-grid-cell-heading-hide .mcb2-grid-cell-body > h1:first-child,
.mcb2-grid-cell-heading-hide .mcb2-grid-cell-body > h2:first-child,
.mcb2-grid-cell-heading-hide .mcb2-grid-cell-body > h3:first-child,
.mcb2-grid-cell-heading-hide .mcb2-grid-cell-body > h4:first-child,
.mcb2-grid-cell-heading-hide .mcb2-grid-cell-body > h5:first-child,
.mcb2-grid-cell-heading-hide .mcb2-grid-cell-body > h6:first-child { display: none; }
/* Grid text alignment: the Grid supplies the default; a cell may override it. */
.mcb2-grid > .mcb2-grid-cell { text-align: left; }
.mcb2-grid-template-feature > .mcb2-grid-cell { text-align: center; }
.mcb2-grid.mcb2-grid-align-left > .mcb2-grid-cell { text-align: left; }
.mcb2-grid.mcb2-grid-align-center > .mcb2-grid-cell { text-align: center; }
.mcb2-grid.mcb2-grid-align-right > .mcb2-grid-cell { text-align: right; }
.mcb2-grid > .mcb2-grid-cell.mcb2-grid-cell-align-left { text-align: left; }
.mcb2-grid > .mcb2-grid-cell.mcb2-grid-cell-align-center { text-align: center; }
.mcb2-grid > .mcb2-grid-cell.mcb2-grid-cell-align-right { text-align: right; }
.mcb2-grid-cell-v-top { justify-content: flex-start; }
.mcb2-grid-cell-v-center { justify-content: center; }
.mcb2-grid-cell-v-bottom { justify-content: flex-end; }

.mcb2-grid-cell-media { position: relative; z-index: 3; min-width: 0; margin-bottom: 14px; }
.mcb2-grid-cell-icon { font-size: 2rem; line-height: 1; }
.mcb2-grid-cell-image { display: block; max-width: 100%; height: auto; }
.mcb2-grid-cell-overlay { display: none; }

.mcb2-grid-cell-layout-text .mcb2-grid-cell-media { display: none; }
/* Text-layout cells are safe to let nested motion escape their box. Without this,
   Lift/Bounce can clip the nested container's top border at the cell boundary. */
.mcb2-grid-cell-layout-text:has(> .mcb2-grid-cell-body > .mcb2-nested-component .mcb2-callout-hover-lift:hover),
.mcb2-grid-cell-layout-text:has(> .mcb2-grid-cell-body > .mcb2-nested-component .mcb2-callout-hover-lift:focus-within),
.mcb2-grid-cell-layout-text:has(> .mcb2-grid-cell-body > .mcb2-nested-component .mcb2-callout-hover-grow:hover),
.mcb2-grid-cell-layout-text:has(> .mcb2-grid-cell-body > .mcb2-nested-component .mcb2-callout-hover-grow:focus-within),
.mcb2-grid-cell-layout-text:has(> .mcb2-grid-cell-body > .mcb2-nested-component .mcb2-callout-hover-bounce:hover),
.mcb2-grid-cell-layout-text:has(> .mcb2-grid-cell-body > .mcb2-nested-component .mcb2-callout-hover-bounce:focus-within) { overflow: visible; }

/* A nested child can only visibly lift if every clipping ancestor in the Grid
   chain permits it. The Grid itself normally clips cells for radius/slant
   layouts, so relax that clipping only while a nested hover motion is active. */
.mcb2-grid:has(.mcb2-callout-hover-lift:hover),
.mcb2-grid:has(.mcb2-callout-hover-lift:focus-within),
.mcb2-grid:has(.mcb2-callout-hover-grow:hover),
.mcb2-grid:has(.mcb2-callout-hover-grow:focus-within),
.mcb2-grid:has(.mcb2-callout-hover-bounce:hover),
.mcb2-grid:has(.mcb2-callout-hover-bounce:focus-within) { overflow: visible; }
.mcb2-grid-cell-layout-icon .mcb2-grid-cell-image { display: none; }
.mcb2-grid-cell-layout-image .mcb2-grid-cell-icon { display: none; }
.mcb2-grid-cell-layout-image { padding: 0; }
.mcb2-grid-cell-layout-image .mcb2-grid-cell-media { margin: 0; }
.mcb2-grid-cell-layout-image .mcb2-grid-cell-image { width: 100%; height: auto; }
.mcb2-grid-cell-layout-image .mcb2-grid-cell-body { padding: var(--mcb2-grid-cell-pad-y) var(--mcb2-grid-cell-pad-x); }

.mcb2-grid-cell-layout-background { --mcb2-grid-cell-color: #fff; color: var(--mcb2-grid-cell-color); }
.mcb2-grid-cell-layout-background .mcb2-grid-cell-media {
    position: absolute;
    z-index: 0;
    inset: 0;
    margin: 0;
}
.mcb2-grid-cell-layout-background .mcb2-grid-cell-icon { display: none; }
.mcb2-grid-cell-layout-background .mcb2-grid-cell-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.mcb2-grid-cell-layout-background .mcb2-grid-cell-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    background: var(--mcb2-grid-cell-overlay);
    opacity: var(--mcb2-grid-cell-overlay-opacity);
    pointer-events: none;
}

/* Background CTA support is also available within ordinary Grid cells. */
.mcb2-grid-template-banner { --mcb2-grid-min-height: 290px; }
.mcb2-grid-template-banner .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6,p):not([style*="color"]) { color: inherit; }
.mcb2-grid-cell-layout-background .mcb2-grid-cell-body {
    width: 100%;
    max-width: var(--mcb2-grid-cell-content-width, none);
    margin-left: auto;
    margin-right: auto;
}
.mcb2-grid-cell-focus-top .mcb2-grid-cell-image { object-position: center top; }
.mcb2-grid-cell-focus-center .mcb2-grid-cell-image { object-position: center center; }
.mcb2-grid-cell-focus-bottom .mcb2-grid-cell-image { object-position: center bottom; }
.mcb2-grid-cell-layout-background.mcb2-grid-cell-align-center .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: center; }
.mcb2-grid-cell-layout-background.mcb2-grid-cell-align-left .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: left; }
.mcb2-grid-cell-layout-background.mcb2-grid-cell-align-right .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: right; }
.mcb2-grid.mcb2-grid-align-center > .mcb2-grid-cell-layout-background:not(.mcb2-grid-cell-align-left):not(.mcb2-grid-cell-align-right) .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6,p):not([style*="text-align"]) { text-align: center; }

/* Optional media-only hover for image tiles. The cell and angled divider stay put.
   Works for pointer and keyboard focus, and does not change existing Grid defaults. */
.mcb2-grid-hover-image-zoom > .mcb2-grid-cell .mcb2-grid-cell-image {
    transition: transform 350ms ease, filter 350ms ease;
}
.mcb2-grid-hover-image-zoom > .mcb2-grid-cell:hover .mcb2-grid-cell-image,
.mcb2-grid-hover-image-zoom > .mcb2-grid-cell:focus-within .mcb2-grid-cell-image {
    transform: scale(1.055);
    filter: saturate(1.08) brightness(1.08);
}
.mcb2-grid-hover-image-zoom > .mcb2-grid-cell .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6):first-child {
    transition: color 180ms ease, transform 180ms ease;
}
.mcb2-grid-hover-image-zoom > .mcb2-grid-cell:hover .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6):first-child,
.mcb2-grid-hover-image-zoom > .mcb2-grid-cell:focus-within .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6):first-child {
    color: var(--mcb2-grid-cell-title-hover,inherit);
    transform: translateY(-3px);
}
/* Bottom-weighted gradient suited to text overlaying full-height images. */
.mcb2-grid-cell-layout-background.mcb2-grid-overlay-bottom-fade .mcb2-grid-cell-overlay {
    background: linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,.35) 38%,transparent 67%);
}
@media (prefers-reduced-motion:reduce) {
    .mcb2-grid-hover-image-zoom > .mcb2-grid-cell .mcb2-grid-cell-image,
    .mcb2-grid-hover-image-zoom > .mcb2-grid-cell .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6):first-child {
        transition:none;
    }
    .mcb2-grid-hover-image-zoom > .mcb2-grid-cell:hover .mcb2-grid-cell-image,
    .mcb2-grid-hover-image-zoom > .mcb2-grid-cell:focus-within .mcb2-grid-cell-image,
    .mcb2-grid-hover-image-zoom > .mcb2-grid-cell:hover .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6):first-child,
    .mcb2-grid-hover-image-zoom > .mcb2-grid-cell:focus-within .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6):first-child {
        transform:none;
        filter:none;
    }
}

.mcb2-grid-hover-lift .mcb2-grid-cell:hover { transform: translateY(-5px); z-index: 4; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.mcb2-grid-hover-grow .mcb2-grid-cell:hover { transform: scale(1.025); z-index: 4; }
.mcb2-grid-hover-highlight .mcb2-grid-cell:hover { filter: brightness(1.08); z-index: 4; }
.mcb2-grid-template-feature { --mcb2-grid-min-height: 150px; }
.mcb2-grid-template-split { --mcb2-grid-min-height: 260px; }
/* Split Grid's 260px top-level presentation height is inappropriate when the
   Grid is being used as a layout primitive inside another component. Nested
   Split Grids size to their content instead; the row still stretches sibling
   cells naturally through CSS Grid. */
.mcb2-grid-nested > .mcb2-grid-template-split { --mcb2-grid-min-height: 0px; }
.mcb2-grid-template-image { --mcb2-grid-min-height: 320px; }
.mcb2-grid-template-image .mcb2-grid-cell-layout-background { --mcb2-grid-cell-color: #fff; }
.mcb2-grid-nested { width: 100%; margin-top: 20px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
    .mcb2-grid-cell { transition: none; }
    .mcb2-grid-hover-lift .mcb2-grid-cell:hover,
    .mcb2-grid-hover-grow .mcb2-grid-cell:hover { transform: none; }
}
@media (min-width: 761px) and (max-width: 1050px) {
    .mcb2-grid-cols-8,.mcb2-grid-cols-7,.mcb2-grid-cols-6,.mcb2-grid-cols-5 {
        --mcb2-grid-active-cols: 4;
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    /* 5–8 column presets become four columns at this breakpoint. */
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell {
        margin-right: calc(var(--mcb2-grid-divider-width) - var(--mcb2-grid-slant-size)) !important;
    }
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell { clip-path: polygon(var(--mcb2-grid-slant-size) 0,100% 0,calc(100% - var(--mcb2-grid-slant-size)) 100%,0 100%) !important; }
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell { clip-path: polygon(0 0,calc(100% - var(--mcb2-grid-slant-size)) 0,100% 100%,var(--mcb2-grid-slant-size) 100%) !important; }
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1) { clip-path: polygon(0 0,100% 0,calc(100% - var(--mcb2-grid-slant-size)) 100%,0 100%) !important; }
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1) { clip-path: polygon(0 0,calc(100% - var(--mcb2-grid-slant-size)) 0,100% 100%,0 100%) !important; }
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:last-child,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:last-child,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:last-child,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:last-child { margin-right:0 !important; clip-path:polygon(var(--mcb2-grid-slant-size) 0,100% 0,100% 100%,0 100%) !important; }
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n),
.mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell:last-child,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell:last-child,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell:last-child,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell:last-child { margin-right:0 !important; clip-path:polygon(0 0,100% 0,100% 100%,var(--mcb2-grid-slant-size) 100%) !important; }
    .mcb2-grid-cols-5.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-forward > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-5.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-6.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-7.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1):last-child,
.mcb2-grid-cols-8.mcb2-grid-divider-slant-back > .mcb2-grid-cell:nth-child(4n+1):last-child { clip-path:none !important; }
}
@media (max-width: 760px) {
    .mcb2-grid-cols-8,.mcb2-grid-cols-7,.mcb2-grid-cols-6,.mcb2-grid-cols-5,.mcb2-grid-cols-4,.mcb2-grid-cols-3 {
        --mcb2-grid-active-cols: 2;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    /* Slant is a desktop/tablet treatment. On narrow screens use normal tiles. */
    .mcb2-grid-divider-slant-forward,.mcb2-grid-divider-slant-back {
        display:grid;
        gap:var(--mcb2-grid-divider-width);
    }
    .mcb2-grid-divider-slant-forward > .mcb2-grid-cell,
    .mcb2-grid-divider-slant-back > .mcb2-grid-cell {
        width:100%;
        margin-right:0 !important;
        clip-path:none !important;
        flex:none;
    }
}
@media (max-width: 520px) {
    .mcb2-grid-cols-2,.mcb2-grid-cols-3,.mcb2-grid-cols-4,.mcb2-grid-cols-5,.mcb2-grid-cols-6,.mcb2-grid-cols-7,.mcb2-grid-cols-8 {
        --mcb2-grid-active-cols:1;
        grid-template-columns:1fr;
    }
}

/* Optional distinct mobile cards for a wide desktop image strip. Only an explicit
   choice changes the original flush Grid behaviour. */
@media (max-width: 560px) {
    .mcb2-grid.mcb2-grid-mobile-separated {
        gap:14px;
        background:transparent;
    }
    .mcb2-grid.mcb2-grid-mobile-separated > .mcb2-grid-cell {
        border:1px solid rgba(255,255,255,.12);
        clip-path:none;
        margin-right:0;
    }
}

/* Layout choices stored in the Grid itself (no page-specific <style> blocks).
   Keep automatic behaviour for all older Grid HTML without these attributes. */
@media (min-width: 761px) {
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-split="25-75"] { grid-template-columns: minmax(0, 25fr) minmax(0, 75fr); }
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-split="35-65"] { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-split="40-60"] { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-split="60-40"] { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-split="65-35"] { grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); }
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-split="75-25"] { grid-template-columns: minmax(0, 75fr) minmax(0, 25fr); }
}
/* Optional custom desktop tracks. Values are saved as a validated inline
   custom property on the grid; existing equal/split widths remain the default.
   Tablet and mobile rules are unaffected, even with fixed pixel tracks. */
@media (min-width: 1051px) {
    .mcb2-grid[data-mcb2-desktop-sizing="custom"],
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-desktop-sizing="custom"] {
        grid-template-columns: var(--mcb2-grid-desktop-template, repeat(var(--mcb2-grid-active-cols, 2), minmax(0, 1fr)));
    }
}

/* A stored two-column proportion must not override the tablet layout when
   Custom desktop sizing is enabled. The active column count is still driven by
   the tablet choice, including when it is different from two. */
@media (min-width: 521px) and (max-width: 1050px) {
    .mcb2-grid.mcb2-grid-cols-2[data-mcb2-desktop-sizing="custom"][data-mcb2-split] {
        grid-template-columns: repeat(var(--mcb2-grid-active-cols, 2), minmax(0, 1fr));
    }
}

@media (min-width: 521px) and (max-width: 1050px) {
    .mcb2-grid[data-mcb2-tablet-cols="1"] { --mcb2-grid-active-cols: 1; grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .mcb2-grid[data-mcb2-tablet-cols="2"] { --mcb2-grid-active-cols: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcb2-grid[data-mcb2-tablet-cols="3"] { --mcb2-grid-active-cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mcb2-grid[data-mcb2-tablet-cols="4"] { --mcb2-grid-active-cols: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .mcb2-grid[data-mcb2-mobile-cols="1"] { --mcb2-grid-active-cols: 1; grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .mcb2-grid[data-mcb2-mobile-cols="2"] { --mcb2-grid-active-cols: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcb2-grid[data-mcb2-mobile-cols="3"] { --mcb2-grid-active-cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    .mcb2-grid > .mcb2-grid-cell.mcb2-grid-cell-full-row-responsive { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Stats Counter
   -------------------------------------------------------------------------- */
.mcb2-stats-counter {
    --mcb2-stats-gap: 34px;
    --mcb2-stat-number-color: var(--mcb2-brand, #0a3544);
    --mcb2-stat-label-color: #202020;
    width: 100%;
}
.mcb2-stats-items {
    display: grid;
    gap: var(--mcb2-stats-gap);
    align-items: stretch;
}
.mcb2-stats-cols-2 .mcb2-stats-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcb2-stats-cols-3 .mcb2-stats-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcb2-stats-cols-4 .mcb2-stats-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcb2-stats-cols-5 .mcb2-stats-items { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mcb2-stats-cols-6 .mcb2-stats-items { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mcb2-stat-item {
    --mcb2-stat-number-color: var(--mcb2-brand, #0a3544);
    --mcb2-stat-label-color: #202020;
    min-width: 0;
    position: relative;
}
.mcb2-stat-value {
    color: var(--mcb2-stat-number-color);
    font-size: clamp(2.15rem, 5vw, 3.45rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
}
.mcb2-stat-label {
    margin-top: 8px;
    color: var(--mcb2-stat-label-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}
.mcb2-stats-align-left .mcb2-stat-item { text-align: left; }
.mcb2-stats-align-center .mcb2-stat-item { text-align: center; }
.mcb2-stats-align-right .mcb2-stat-item { text-align: right; }

.mcb2-stats-style-cards .mcb2-stat-item {
    padding: 26px;
    border: 1px solid var(--mcb2-border, rgba(0,0,0,.13));
    border-radius: var(--mcb2-radius, 14px);
    background: #fff;
    box-shadow: var(--mcb2-shadow, 0 6px 22px rgba(0,0,0,.08));
}
.mcb2-stats-style-divided .mcb2-stat-item {
    padding-left: calc(var(--mcb2-stats-gap) / 2);
    border-left: 1px solid var(--mcb2-border, rgba(0,0,0,.13));
}
.mcb2-stats-style-divided .mcb2-stat-item:first-child {
    padding-left: 0;
    border-left: 0;
}
.mcb2-stats-style-accent .mcb2-stat-item {
    padding: 22px 22px 20px;
    border-top: 5px solid var(--mcb2-stat-number-color);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.07);
}
.mcb2-stats-nested { width: 100%; margin: 20px 0 8px; }

/* --------------------------------------------------------------------------
   Progress / Goal Meter
   -------------------------------------------------------------------------- */
.mcb2-progress {
    --mcb2-progress-gap: 28px;
    --mcb2-progress-thickness: 24px;
    --mcb2-progress-height: 280px;
    width: 100%;
}
.mcb2-progress-items {
    display: grid;
    gap: var(--mcb2-progress-gap);
}
.mcb2-progress-item {
    --mcb2-progress-fill-color: #246d95;
    --mcb2-progress-track-color: #e6ebee;
    --mcb2-progress-ratio: 0%;
    position: relative;
    min-width: 0;
}
.mcb2-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}
.mcb2-progress-label {
    min-width: 0;
    font-weight: 700;
    line-height: 1.25;
}
.mcb2-progress-values {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.mcb2-progress-percent-number { font-weight: 800; }
.mcb2-progress-track {
    position: relative;
    width: 100%;
    height: var(--mcb2-progress-thickness);
    overflow: hidden;
    border-radius: 999px;
    background: var(--mcb2-progress-track-color);
}
/*
   Render the fill with a pseudo-element rather than relying on the empty
   .mcb2-progress-fill span. CKEditor may discard empty inline elements while
   editing, which left the number animating correctly but the visible bar empty.
   Existing saved markup can keep the span; it is simply ignored visually.
*/
.mcb2-progress-fill { display: none; }
.mcb2-progress-track::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: var(--mcb2-progress-ratio);
    border-radius: inherit;
    background: var(--mcb2-progress-fill-color);
    pointer-events: none;
}
.mcb2-progress-marker { display: none; }

/* Choose how much numeric detail is shown without changing the saved values. */
.mcb2-progress-display-percent .mcb2-progress-current-number,
.mcb2-progress-display-percent .mcb2-progress-goal-number,
.mcb2-progress-display-percent .mcb2-progress-of { display: none; }
.mcb2-progress-display-values .mcb2-progress-percent-number { display: none; }
.mcb2-progress-display-current-percent .mcb2-progress-goal-number,
.mcb2-progress-display-current-percent .mcb2-progress-of { display: none; }

/* Vertical comparison bars. */
.mcb2-progress-vertical .mcb2-progress-items {
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    align-items: end;
}
.mcb2-progress-vertical .mcb2-progress-item {
    display: grid;
    grid-template-rows: var(--mcb2-progress-height) auto;
    justify-items: center;
    gap: 12px;
}
.mcb2-progress-vertical .mcb2-progress-track {
    grid-row: 1;
    width: var(--mcb2-progress-thickness);
    height: var(--mcb2-progress-height);
}
.mcb2-progress-vertical .mcb2-progress-track::after {
    inset: auto 0 0 0;
    width: 100%;
    height: var(--mcb2-progress-ratio);
}
.mcb2-progress-vertical .mcb2-progress-head {
    grid-row: 2;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2px;
    margin: 0;
    text-align: center;
}
.mcb2-progress-vertical .mcb2-progress-values { font-size: 1.25rem; }

/* Fundraising thermometer. The bulb is visual-only; the numeric value remains semantic. */
.mcb2-progress-thermometer .mcb2-progress-items {
    grid-template-columns: minmax(180px, 340px);
    justify-content: center;
}
.mcb2-progress-thermometer .mcb2-progress-item {
    display: grid;
    grid-template-rows: auto var(--mcb2-progress-height);
    justify-items: center;
    gap: 20px;
    padding-bottom: 46px;
}
.mcb2-progress-thermometer .mcb2-progress-head {
    grid-row: 1;
    width: 100%;
    display: block;
    margin: 0;
    text-align: center;
}
.mcb2-progress-thermometer .mcb2-progress-values {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 1.15rem;
}
.mcb2-progress-thermometer .mcb2-progress-track {
    grid-row: 2;
    width: max(36px, var(--mcb2-progress-thickness));
    height: var(--mcb2-progress-height);
    overflow: visible;
    border: 6px solid #f2f3f4;
    box-shadow: 0 3px 15px rgba(0,0,0,.12);
    background: var(--mcb2-progress-track-color);
}
.mcb2-progress-thermometer .mcb2-progress-track::after {
    inset: auto 0 0 0;
    width: 100%;
    height: var(--mcb2-progress-ratio);
    border-radius: inherit;
}
.mcb2-progress-thermometer .mcb2-progress-track::before {
    content: '';
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: -45px;
    width: 76px;
    height: 76px;
    transform: translateX(-50%);
    border: 7px solid #f2f3f4;
    border-radius: 50%;
    background: var(--mcb2-progress-fill-color);
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
}

/* Segmented status meter. The value is represented by a marker instead of a fill. */
.mcb2-progress-segmented .mcb2-progress-items {
    grid-template-columns: minmax(260px, 760px);
    justify-content: center;
}
.mcb2-progress-segmented .mcb2-progress-track {
    overflow: visible;
    height: max(22px, var(--mcb2-progress-thickness));
    background: linear-gradient(90deg,
        #e53935 0 20%,
        #fb8c00 20% 40%,
        #fdd835 40% 60%,
        #7cb342 60% 80%,
        #16a34a 80% 100%);
}
.mcb2-progress-segmented .mcb2-progress-track::after { display: none; }
.mcb2-progress-segmented .mcb2-progress-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--mcb2-progress-ratio);
    display: block;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 50%;
    background: #172126;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.mcb2-progress-segmented .mcb2-progress-marker-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 3px 7px;
    border-radius: 6px;
    background: #172126;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.mcb2-progress-nested { width: 100%; margin: 20px 0 8px; }

@media (max-width: 900px) {
    .mcb2-stats-cols-6 .mcb2-stats-items,
    .mcb2-stats-cols-5 .mcb2-stats-items,
    .mcb2-stats-cols-4 .mcb2-stats-items,
    .mcb2-stats-cols-3 .mcb2-stats-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcb2-stats-style-divided .mcb2-stat-item:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
    .mcb2-stats-cols-2 .mcb2-stats-items,
    .mcb2-stats-cols-3 .mcb2-stats-items,
    .mcb2-stats-cols-4 .mcb2-stats-items,
    .mcb2-stats-cols-5 .mcb2-stats-items,
    .mcb2-stats-cols-6 .mcb2-stats-items { grid-template-columns: 1fr; }
    .mcb2-stats-style-divided .mcb2-stat-item { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--mcb2-border, rgba(0,0,0,.13)); }
    .mcb2-stats-style-divided .mcb2-stat-item:first-child { padding-top: 0; border-top: 0; }
    .mcb2-progress-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .mcb2-progress-vertical .mcb2-progress-items { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .mcb2-progress-track::after,
    .mcb2-progress-marker { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Chart
   -------------------------------------------------------------------------- */
.mcb2-chart {
    --mcb2-chart-height: 360px;
    --mcb2-chart-series-1: #246d95;
    --mcb2-chart-series-2: #f3a000;
    --mcb2-chart-series-3: #9b1c20;
    --mcb2-chart-series-4: #6d9eeb;
    --mcb2-chart-series-5: #5b8c5a;
    --mcb2-chart-series-6: #7c5cbf;
    width: 100%;
    min-width: 0;
}
.mcb2-chart-stage {
    position: relative;
    width: 100%;
    height: var(--mcb2-chart-height);
    min-height: 220px;
}
.mcb2-chart-stage > canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.mcb2-chart-placeholder {
    box-sizing: border-box;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 24px;
    border: 1px dashed rgba(10,53,68,.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10,53,68,.04), rgba(36,109,149,.08));
    color: #4f626a;
    text-align: center;
}
.mcb2-chart-placeholder strong { color: #0a3544; font-size: 1.05rem; }
.mcb2-chart-placeholder span { max-width: 560px; font-size: .9rem; line-height: 1.4; }
.mcb2-chart-data-wrap { margin-top: 18px; overflow-x: auto; }
.mcb2-chart-data {
    display: table !important;
    width: 100%;
    min-width: 420px;
    table-layout: auto !important;
    border-collapse: collapse;
    background: #fff;
}
.mcb2-chart-data caption { display: table-caption !important; }
.mcb2-chart-data thead { display: table-header-group !important; }
.mcb2-chart-data tbody { display: table-row-group !important; }
.mcb2-chart-data tfoot { display: table-footer-group !important; }
.mcb2-chart-data tr { display: table-row !important; }
.mcb2-chart-data th,
.mcb2-chart-data td {
    display: table-cell !important;
    float: none !important;
    clear: none !important;
}
.mcb2-chart-data caption {
    padding: 0 0 8px;
    color: #0a3544;
    font-weight: 700;
    text-align: left;
}
.mcb2-chart-data th,
.mcb2-chart-data td {
    padding: 9px 11px;
    border: 1px solid #d7e0e4;
    text-align: left;
    vertical-align: middle;
}
.mcb2-chart-data thead th { background: #0a3544; color: #fff; }
.mcb2-chart-style-card {
    padding: 24px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(0,0,0,.08);
}
.mcb2-chart-style-minimal .mcb2-chart-placeholder { border-color: transparent; background: transparent; }
.mcb2-chart-nested { width: 100%; margin: 20px 0 8px; }

/* Keep the real HTML data accessible as a no-JS fallback. Only hide it once
   Chart.js has successfully rendered the visual enhancement. */
.mcb2-chart-enhanced.mcb2-chart-table-hide .mcb2-chart-data-wrap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.mcb2-chart-table-show .mcb2-chart-data-wrap { position: static; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; }

@media (max-width: 640px) {
    .mcb2-chart { --mcb2-chart-height: 310px; }
    .mcb2-chart-style-card { padding: 16px; }
}

/* --------------------------------------------------------------------------
   Content Scroller
   -------------------------------------------------------------------------- */
.mcb2-scroller-shell {
    --mcb2-scroller-gap: 22px;
    --mcb2-scroller-min-height: 180px;
    --mcb2-scroller-item-bg: #fff;
    --mcb2-scroller-item-color: #20262a;
    --mcb2-scroller-border-color: #d7dde1;
    --mcb2-scroller-radius: 16px;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}
.mcb2-scroller {
    display: flex;
    gap: var(--mcb2-scroller-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 4px 2px 12px;
}
.mcb2-scroller-mode-continuous .mcb2-scroller { scroll-snap-type: none; }
.mcb2-scroller-item {
    flex: 0 0 calc((100% - (var(--mcb2-scroller-gap) * 2)) / 3);
    min-width: 0;
    min-height: var(--mcb2-scroller-min-height);
    padding: 24px;
    border: 1px solid var(--mcb2-scroller-border-color);
    border-radius: var(--mcb2-scroller-radius);
    background: var(--mcb2-scroller-item-bg);
    color: var(--mcb2-scroller-item-color);
    scroll-snap-align: start;
}
.mcb2-scroller-item > :first-child { margin-top: 0; }
.mcb2-scroller-item > :last-child { margin-bottom: 0; }
.mcb2-scroller-icon { display: inline-block; margin-bottom: 12px; color: var(--mcb2-brand); font-size: 1.7rem; }
.mcb2-scroller-nav {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--mcb2-border);
    border-radius: 50%;
    background: #fff;
    color: var(--mcb2-brand);
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.mcb2-scroller-arrows-hide .mcb2-scroller-nav { display: none; }
.mcb2-scroller-arrows-hide { grid-template-columns: minmax(0, 1fr); }
.mcb2-scroller-items-1 .mcb2-scroller-item { flex-basis: 100%; }
.mcb2-scroller-items-2 .mcb2-scroller-item { flex-basis: calc((100% - var(--mcb2-scroller-gap)) / 2); }
.mcb2-scroller-items-3 .mcb2-scroller-item { flex-basis: calc((100% - (var(--mcb2-scroller-gap) * 2)) / 3); }
.mcb2-scroller-items-4 .mcb2-scroller-item { flex-basis: calc((100% - (var(--mcb2-scroller-gap) * 3)) / 4); }
.mcb2-scroller-items-5 .mcb2-scroller-item { flex-basis: calc((100% - (var(--mcb2-scroller-gap) * 4)) / 5); }
.mcb2-scroller-items-6 .mcb2-scroller-item { flex-basis: calc((100% - (var(--mcb2-scroller-gap) * 5)) / 6); }

/* --------------------------------------------------------------------------
   Flip Cards
   -------------------------------------------------------------------------- */
.mcb2-flip-grid {
    --mcb2-flip-gap: 24px;
    --mcb2-flip-height: 280px;
    --mcb2-flip-duration: 600ms;
    --mcb2-flip-radius: 18px;
    --mcb2-flip-front-bg: #0a3544;
    --mcb2-flip-front-color: #fff;
    --mcb2-flip-back-bg: #f3a000;
    --mcb2-flip-back-color: #172126;
    --mcb2-flip-bg-overlay: transparent;
    display: grid;
    gap: var(--mcb2-flip-gap);
}
.mcb2-flip-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcb2-flip-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcb2-flip-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcb2-flip-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mcb2-flip-card { min-width: 0; min-height: var(--mcb2-flip-height); perspective: 1200px; cursor: pointer; }
.mcb2-flip-card-inner {
    position: relative;
    width: 100%;
    min-height: inherit;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform var(--mcb2-flip-duration) ease;
}
.mcb2-flip-card-face {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border-radius: var(--mcb2-flip-radius);
    backface-visibility: hidden;
    overflow: hidden;
}
.mcb2-flip-card-face > :first-child { margin-top: 0; }
.mcb2-flip-card-face > :last-child { margin-bottom: 0; }
.mcb2-flip-card-front { background: var(--mcb2-flip-front-bg); color: var(--mcb2-flip-front-color); }
.mcb2-flip-card-back { background: var(--mcb2-flip-back-bg); color: var(--mcb2-flip-back-color); }
.mcb2-flip-horizontal .mcb2-flip-card-back { transform: rotateY(180deg); }
.mcb2-flip-vertical .mcb2-flip-card-back { transform: rotateX(180deg); }
.mcb2-flip-icon { font-size: 2rem; margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Responsive Table
   -------------------------------------------------------------------------- */
.mcb2-table-scroll {
    --mcb2-table-min-width: 900px;
    --mcb2-table-head-bg: #0a3544;
    --mcb2-table-head-color: #fff;
    --mcb2-table-border-color: #d4dce1;
    --mcb2-table-hover-bg: #f5f8fa;
    --mcb2-table-head-radius: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.mcb2-responsive-table {
    width: 100%;
    min-width: var(--mcb2-table-min-width);
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}
.mcb2-table-min-auto .mcb2-responsive-table { min-width: 100%; }
.mcb2-table-min-manual .mcb2-responsive-table { min-width: var(--mcb2-table-min-width); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table { table-layout: fixed; }
.mcb2-table-scroll[data-mcb2-width-preset="auto"] .mcb2-responsive-table { table-layout: auto; }

.mcb2-responsive-table caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
.mcb2-table-caption-hide .mcb2-responsive-table caption { display: none; }

.mcb2-responsive-table th,
.mcb2-responsive-table td {
    padding: 14px 16px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background: #fff;
    overflow-wrap: anywhere;
}
/* Table body defaults to Top; leave <thead> untouched at its existing Middle.
   CKEditor Cell Properties writes inline vertical-align, which wins over these
   non-!important class defaults (including for <tbody> row-header <th> cells). */
.mcb2-responsive-table tbody > tr > th,
.mcb2-responsive-table tbody > tr > td { vertical-align: top; }
.mcb2-table-body-valign-top .mcb2-responsive-table tbody > tr > th,
.mcb2-table-body-valign-top .mcb2-responsive-table tbody > tr > td { vertical-align: top; }
.mcb2-table-body-valign-middle .mcb2-responsive-table tbody > tr > th,
.mcb2-table-body-valign-middle .mcb2-responsive-table tbody > tr > td { vertical-align: middle; }
.mcb2-table-body-valign-bottom .mcb2-responsive-table tbody > tr > th,
.mcb2-table-body-valign-bottom .mcb2-responsive-table tbody > tr > td { vertical-align: bottom; }

.mcb2-table-wrap .mcb2-responsive-table th,
.mcb2-table-wrap .mcb2-responsive-table td { white-space: normal; }
.mcb2-table-nowrap .mcb2-responsive-table th,
.mcb2-table-nowrap .mcb2-responsive-table td { white-space: nowrap; }

.mcb2-table-body-left .mcb2-responsive-table tbody th,
.mcb2-table-body-left .mcb2-responsive-table tbody td { text-align: left; }
.mcb2-table-body-center .mcb2-responsive-table tbody th,
.mcb2-table-body-center .mcb2-responsive-table tbody td { text-align: center; }
.mcb2-table-body-right .mcb2-responsive-table tbody th,
.mcb2-table-body-right .mcb2-responsive-table tbody td { text-align: right; }
.mcb2-table-head-left .mcb2-responsive-table thead th { text-align: left; }
.mcb2-table-head-center .mcb2-responsive-table thead th { text-align: center; }
.mcb2-table-head-right .mcb2-responsive-table thead th { text-align: right; }

/* Per-column body alignment overrides the general body alignment. */
.mcb2-table-col-1-left .mcb2-responsive-table tbody tr > :nth-child(1) { text-align: left; }
.mcb2-table-col-1-center .mcb2-responsive-table tbody tr > :nth-child(1) { text-align: center; }
.mcb2-table-col-1-right .mcb2-responsive-table tbody tr > :nth-child(1) { text-align: right; }
.mcb2-table-col-2-left .mcb2-responsive-table tbody tr > :nth-child(2) { text-align: left; }
.mcb2-table-col-2-center .mcb2-responsive-table tbody tr > :nth-child(2) { text-align: center; }
.mcb2-table-col-2-right .mcb2-responsive-table tbody tr > :nth-child(2) { text-align: right; }
.mcb2-table-col-3-left .mcb2-responsive-table tbody tr > :nth-child(3) { text-align: left; }
.mcb2-table-col-3-center .mcb2-responsive-table tbody tr > :nth-child(3) { text-align: center; }
.mcb2-table-col-3-right .mcb2-responsive-table tbody tr > :nth-child(3) { text-align: right; }
.mcb2-table-col-4-left .mcb2-responsive-table tbody tr > :nth-child(4) { text-align: left; }
.mcb2-table-col-4-center .mcb2-responsive-table tbody tr > :nth-child(4) { text-align: center; }
.mcb2-table-col-4-right .mcb2-responsive-table tbody tr > :nth-child(4) { text-align: right; }
.mcb2-table-col-5-left .mcb2-responsive-table tbody tr > :nth-child(5) { text-align: left; }
.mcb2-table-col-5-center .mcb2-responsive-table tbody tr > :nth-child(5) { text-align: center; }
.mcb2-table-col-5-right .mcb2-responsive-table tbody tr > :nth-child(5) { text-align: right; }
.mcb2-table-col-6-left .mcb2-responsive-table tbody tr > :nth-child(6) { text-align: left; }
.mcb2-table-col-6-center .mcb2-responsive-table tbody tr > :nth-child(6) { text-align: center; }
.mcb2-table-col-6-right .mcb2-responsive-table tbody tr > :nth-child(6) { text-align: right; }
.mcb2-table-col-7-left .mcb2-responsive-table tbody tr > :nth-child(7) { text-align: left; }
.mcb2-table-col-7-center .mcb2-responsive-table tbody tr > :nth-child(7) { text-align: center; }
.mcb2-table-col-7-right .mcb2-responsive-table tbody tr > :nth-child(7) { text-align: right; }
.mcb2-table-col-8-left .mcb2-responsive-table tbody tr > :nth-child(8) { text-align: left; }
.mcb2-table-col-8-center .mcb2-responsive-table tbody tr > :nth-child(8) { text-align: center; }
.mcb2-table-col-8-right .mcb2-responsive-table tbody tr > :nth-child(8) { text-align: right; }
.mcb2-table-col-9-left .mcb2-responsive-table tbody tr > :nth-child(9) { text-align: left; }
.mcb2-table-col-9-center .mcb2-responsive-table tbody tr > :nth-child(9) { text-align: center; }
.mcb2-table-col-9-right .mcb2-responsive-table tbody tr > :nth-child(9) { text-align: right; }
.mcb2-table-col-10-left .mcb2-responsive-table tbody tr > :nth-child(10) { text-align: left; }
.mcb2-table-col-10-center .mcb2-responsive-table tbody tr > :nth-child(10) { text-align: center; }
.mcb2-table-col-10-right .mcb2-responsive-table tbody tr > :nth-child(10) { text-align: right; }

/* Explicit column widths are stored as CSS variables on the table wrapper. */
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(1) { width: var(--mcb2-table-col-1-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(2) { width: var(--mcb2-table-col-2-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(3) { width: var(--mcb2-table-col-3-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(4) { width: var(--mcb2-table-col-4-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(5) { width: var(--mcb2-table-col-5-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(6) { width: var(--mcb2-table-col-6-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(7) { width: var(--mcb2-table-col-7-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(8) { width: var(--mcb2-table-col-8-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(9) { width: var(--mcb2-table-col-9-width, auto); }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(10) { width: var(--mcb2-table-col-10-width, auto); }

.mcb2-responsive-table thead th { background: var(--mcb2-table-head-bg); color: var(--mcb2-table-head-color); font-weight: 700; }
.mcb2-table-head-rounded .mcb2-responsive-table thead tr:first-child > :first-child { border-top-left-radius: var(--mcb2-table-head-radius); }
.mcb2-table-head-rounded .mcb2-responsive-table thead tr:first-child > :last-child { border-top-right-radius: var(--mcb2-table-head-radius); }
.mcb2-table-head-square .mcb2-responsive-table thead tr:first-child > :first-child,
.mcb2-table-head-square .mcb2-responsive-table thead tr:first-child > :last-child { border-radius: 0; }

.mcb2-table-style-bordered .mcb2-responsive-table th,
.mcb2-table-style-bordered .mcb2-responsive-table td { border-right: 1px solid var(--mcb2-table-border-color); border-bottom: 1px solid var(--mcb2-table-border-color); }
.mcb2-table-style-bordered .mcb2-responsive-table tr > :first-child { border-left: 1px solid var(--mcb2-table-border-color); }
.mcb2-table-style-bordered .mcb2-responsive-table thead tr:first-child > * { border-top: 1px solid var(--mcb2-table-border-color); }
.mcb2-table-style-striped .mcb2-responsive-table tbody tr:nth-child(even) > *,
.mcb2-table-stripes-on .mcb2-responsive-table tbody tr:nth-child(even) > * { background: #f7f9fa; }
.mcb2-table-style-minimal .mcb2-responsive-table th,
.mcb2-table-style-minimal .mcb2-responsive-table td { border-bottom: 1px solid var(--mcb2-table-border-color); }
.mcb2-table-scroll .mcb2-responsive-table tbody tr:hover > * { background: var(--mcb2-table-hover-bg) !important; }
.mcb2-table-density-compact .mcb2-responsive-table th,
.mcb2-table-density-compact .mcb2-responsive-table td { padding: 8px 10px; }
.mcb2-table-density-normal .mcb2-responsive-table th,
.mcb2-table-density-normal .mcb2-responsive-table td { padding: 14px 16px; }
.mcb2-table-density-comfortable .mcb2-responsive-table th,
.mcb2-table-density-comfortable .mcb2-responsive-table td { padding: 20px 22px; }

/* Row-header semantics do not force a visual style. Emphasis is an independent option. */
.mcb2-table-rowheaders-on.mcb2-table-first-plain .mcb2-responsive-table tbody tr > th:first-child {
    font-weight: inherit;
    color: inherit;
    background: #fff;
}
.mcb2-table-first-emphasis .mcb2-responsive-table tbody tr > :first-child { font-weight: 700; color: var(--mcb2-brand); background: #f2f5f7; text-align: left; }
.mcb2-table-sticky-head .mcb2-responsive-table thead th { position: sticky; top: 0; z-index: 3; }
.mcb2-table-first-sticky .mcb2-responsive-table tr > :first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--mcb2-table-border-color); }
.mcb2-table-style-plain.mcb2-table-first-sticky .mcb2-responsive-table tr > :first-child { box-shadow: none; }
.mcb2-table-first-sticky.mcb2-table-sticky-head .mcb2-responsive-table thead tr > :first-child { z-index: 4; }

@media (max-width: 900px) {
    .mcb2-scroller-items-3 .mcb2-scroller-item,
    .mcb2-scroller-items-4 .mcb2-scroller-item,
    .mcb2-scroller-items-5 .mcb2-scroller-item,
    .mcb2-scroller-items-6 .mcb2-scroller-item { flex-basis: calc((100% - var(--mcb2-scroller-gap)) / 2); }
    .mcb2-flip-cols-4,
    .mcb2-flip-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .mcb2-scroller-shell { grid-template-columns: minmax(0, 1fr); }
    .mcb2-scroller-nav { display: none; }
    .mcb2-scroller-item { flex-basis: 86% !important; }
    .mcb2-flip-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
    .mcb2-flip-card-inner { transition: none !important; }
    .mcb2-scroller { scroll-behavior: auto !important; }
}

/* Consolidated Cards controls. */
.mcb2-card-layout-text .mcb2-card-body { min-height: 100%; }
.mcb2-card-action-hide .mcb2-card-action { display: none !important; }
.mcb2-card-action-show .mcb2-card-action { display: block; }

/* Keep fundraising values together; this prevents Editor line breaks between
   current value, "of", goal and percent while the thermometer stays narrow. */
.mcb2-progress-thermometer .mcb2-progress-values {
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Classic tabs: familiar bordered tabs positioned against the content panel.
   Keep the active colour controls semantically consistent with every other
   tab style: Active Background paints the tab, Active Text paints its label,
   and Tab Border Colour remains visible on every edge. */
.mcb2-tabs-style-classic.mcb2-tabs-layout-horizontal .mcb2-tabs-nav {
    gap: var(--mcb2-tabs-gap);
    margin-bottom: calc(-1 * var(--mcb2-tabs-panel-border-width));
    position: relative;
    z-index: 2;
}
.mcb2-tabs-style-classic .mcb2-tab-button {
    border: var(--mcb2-tabs-border-width) solid var(--mcb2-tabs-border-color);
    border-radius: var(--mcb2-tabs-radius) var(--mcb2-tabs-radius) 0 0;
    background: var(--mcb2-tabs-bg);
    color: var(--mcb2-tabs-color);
}
.mcb2-tabs-style-classic .mcb2-tab-button.is-active {
    border-color: var(--mcb2-tab-active-border-color, var(--mcb2-tabs-active-border-color));
    border-width: var(--mcb2-tabs-active-border-width);
    background: var(--mcb2-tab-active-bg, var(--mcb2-tabs-active-bg));
    color: var(--mcb2-tabs-active-color);
}
.mcb2-tabs-style-classic.mcb2-tabs-layout-horizontal .mcb2-tab-panel {
    border-radius: 0 var(--mcb2-tabs-radius) var(--mcb2-tabs-radius) var(--mcb2-tabs-radius);
}
.mcb2-tabs-style-classic.mcb2-tabs-layout-vertical .mcb2-tab-button {
    border-radius: var(--mcb2-tabs-radius) 0 0 var(--mcb2-tabs-radius);
}
.mcb2-tabs-style-classic.mcb2-tabs-layout-vertical .mcb2-tab-panel {
    border-radius: 0 var(--mcb2-tabs-radius) var(--mcb2-tabs-radius) 0;
}
.mcb2-tabs .mcb2-tab-panel[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Redraw pass — actions, media and cleaner scrollers
   -------------------------------------------------------------------------- */
.mcb2-grid-cell-action { display: none; margin: 18px 0 0; }
.mcb2-grid-action-button .mcb2-grid-cell-action { display: block; }
.mcb2-grid-action-button .mcb2-grid-cell-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--mcb2-grid-button-border, transparent);
    border-radius: var(--mcb2-grid-button-radius, 7px);
    background: var(--mcb2-grid-button-bg, var(--mcb2-brand, #0a3544));
    color: var(--mcb2-grid-button-color, #fff);
    font-weight: 700;
    text-decoration: none;
}
.mcb2-grid-action-link .mcb2-grid-cell-action { display: none; }
.mcb2-grid-action-link .mcb2-grid-cell-link {
    position: absolute;
    z-index: 6;
    inset: 0;
    display: block;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    background: transparent;
}
.mcb2-grid-action-link { cursor: pointer; }
.mcb2-grid-action-link .mcb2-grid-cell-link:focus-visible {
    outline: 3px solid var(--mcb2-brand, #0a5cff);
    outline-offset: -3px;
    text-indent: -9999px;
}


/* --------------------------------------------------------------------------
   Grid: optional horizontal link rows.
   Reuses existing Grid cells + whole-cell links, so all text and links remain
   editable. No decorative arrows or hover bars are inserted into CKEditor HTML.
   -------------------------------------------------------------------------- */
.mcb2-grid-style-link-rows { --mcb2-grid-min-height: 0px; }
.mcb2-grid-style-link-rows > .mcb2-grid-cell,
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-cell-layout-image {
    --mcb2-grid-row-accent: #ff8200;
    --mcb2-grid-cell-pad-x: 38px;
    --mcb2-grid-cell-pad-y: 26px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 50px;
    column-gap: 22px;
    align-items: center;
    justify-content: initial;
    min-height: 115px;
    padding: var(--mcb2-grid-cell-pad-y) var(--mcb2-grid-cell-pad-x);
    text-align: left;
    overflow: hidden;
    transition: padding-left 180ms ease, background-color 180ms ease;
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell > .mcb2-grid-cell-media {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--mcb2-grid-row-accent, #ff8200);
    border-radius: 50%;
    color: var(--mcb2-grid-row-accent, #ff8200);
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-cell-layout-text > .mcb2-grid-cell-media { display: none; }
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-cell-layout-image .mcb2-grid-cell-image {
    width: 38px;
    height: 38px;
    max-width: 38px;
    object-fit: contain;
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell .mcb2-grid-cell-icon {
    font-size: 1.65rem;
    line-height: 1;
    color: var(--mcb2-grid-row-accent, #ff8200);
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell > .mcb2-grid-cell-body {
    grid-area: 1 / 2;
    padding: 0;
    min-width: 0;
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell .mcb2-grid-cell-body > :is(h1,h2,h3,h4,h5,h6):first-child {
    margin: 0 0 5px;
    color: inherit;
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell > .mcb2-grid-cell-body > p:last-of-type:not(.mcb2-grid-cell-action) { margin-bottom: 0; }
/* The accent grows from the centre; the arrow is decoration, not another link. */
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--mcb2-grid-row-accent, #ff8200);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 180ms ease;
    pointer-events: none;
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link::after {
    content: '\2192';
    grid-area: 1 / 3;
    justify-self: center;
    color: var(--mcb2-grid-row-accent, #ff8200);
    font-size: 2rem;
    transition: transform 180ms ease;
    pointer-events: none;
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:hover,
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:focus-within {
    padding-left: calc(var(--mcb2-grid-cell-pad-x) + 8px);
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--mcb2-grid-row-accent, #ff8200) 11%, transparent), transparent 75%);
}
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:hover::before,
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:focus-within::before { transform: scaleY(1); }
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:hover::after,
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:focus-within::after { transform: translateX(7px); }
.mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link .mcb2-grid-cell-link:focus-visible {
    outline: 2px solid var(--mcb2-grid-row-accent, #ff8200);
    outline-offset: -3px;
}
@supports not (background: color-mix(in srgb, white 10%, transparent)) {
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:hover,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:focus-within { background-color: #15161a; }
}
@media (min-width: 521px) and (max-width: 1050px) {
    .mcb2-grid-style-link-rows > .mcb2-grid-cell,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-cell-layout-image {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;
        padding: 24px 26px;
    }
    .mcb2-grid-style-link-rows > .mcb2-grid-cell > .mcb2-grid-cell-media { width: 54px; height: 54px; }
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link::after { display: none; }
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:hover,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:focus-within { padding-left: 32px; }
}
@media (max-width: 520px) {
    .mcb2-grid-style-link-rows > .mcb2-grid-cell,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-cell-layout-image {
        grid-template-columns: 50px minmax(0, 1fr) 28px;
        column-gap: 16px;
        min-height: 110px;
        padding: 22px 19px;
    }
    .mcb2-grid-style-link-rows > .mcb2-grid-cell > .mcb2-grid-cell-media { width: 50px; height: 50px; }
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link::after { display: block; grid-area: 1 / 3; font-size: 1.5rem; }
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:hover,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:focus-within { padding-left: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    .mcb2-grid-style-link-rows > .mcb2-grid-cell,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell::before,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell::after { transition: none !important; }
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:hover::after,
    .mcb2-grid-style-link-rows > .mcb2-grid-cell.mcb2-grid-action-link:focus-within::after { transform: none; }
}

.mcb2-scroller-scrollbar-hidden .mcb2-scroller {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.mcb2-scroller-scrollbar-hidden .mcb2-scroller::-webkit-scrollbar { display: none; }

.mcb2-flip-grid { --mcb2-flip-media-height: 150px; }
.mcb2-flip-media { width: 100%; margin: 0 0 14px; }
.mcb2-flip-media .mcb2-flip-icon { margin-bottom: 0; }
.mcb2-flip-image {
    display: none;
    width: 100%;
    height: var(--mcb2-flip-media-height);
    max-width: none;
    object-fit: cover;
    border-radius: max(4px, calc(var(--mcb2-flip-radius) * .55));
}
.mcb2-flip-front-none .mcb2-flip-media-front,
.mcb2-flip-back-none .mcb2-flip-media-back { display: none; }
.mcb2-flip-front-image .mcb2-flip-media-front .mcb2-flip-icon,
.mcb2-flip-back-image .mcb2-flip-media-back .mcb2-flip-icon { display: none; }
.mcb2-flip-front-image .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-image .mcb2-flip-media-back .mcb2-flip-image { display: block; }

/* Optional full-bleed top image for standard front Image mode. The image still
   uses the shared media height / fit controls, but touches the card's top and
   side edges instead of sitting inside the 30px face padding. */
.mcb2-flip-front-image-full .mcb2-flip-card-front { justify-content: flex-start; }
.mcb2-flip-front-image-full .mcb2-flip-media-front {
    box-sizing: border-box;
    width: calc(100% + 60px);
    max-width: none;
    margin: -30px -30px 18px;
    flex: 0 0 auto;
}
.mcb2-flip-front-image-full .mcb2-flip-media-front .mcb2-flip-image {
    border-radius: 0;
}

.mcb2-flip-front-icon .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-icon .mcb2-flip-media-back .mcb2-flip-image { display: none; }

/* Flip Cards — full-image front with a persistent caption below the flipping
   surface. The caption is ordinary CKEditor content and never rotates. */
.mcb2-flip-caption {
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 10px 0;
    color: inherit;
}
.mcb2-flip-layout-image-caption .mcb2-flip-caption { display: block; }
.mcb2-flip-caption-left .mcb2-flip-caption { text-align: left; }
.mcb2-flip-caption-center .mcb2-flip-caption { text-align: center; }
.mcb2-flip-caption-right .mcb2-flip-caption { text-align: right; }
.mcb2-flip-caption > :first-child { margin-top: 0; }
.mcb2-flip-caption > :last-child { margin-bottom: 0; }
.mcb2-flip-caption h1,
.mcb2-flip-caption h2,
.mcb2-flip-caption h3,
.mcb2-flip-caption h4,
.mcb2-flip-caption h5,
.mcb2-flip-caption h6 { margin-bottom: 8px; }

.mcb2-flip-layout-image-caption .mcb2-flip-card-front { padding: 0; }
.mcb2-flip-layout-image-caption .mcb2-flip-media-front {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}
.mcb2-flip-layout-image-caption .mcb2-flip-media-front .mcb2-flip-icon { display: none; }
.mcb2-flip-layout-image-caption .mcb2-flip-media-front .mcb2-flip-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}
.mcb2-flip-layout-image-caption .mcb2-flip-card-front > :not(.mcb2-flip-media) { display: none; }
.mcb2-flip-layout-image-caption .mcb2-flip-front-fit-contain .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-layout-image-caption .mcb2-flip-front-fit-natural .mcb2-flip-media-front .mcb2-flip-image {
    height: 100%;
    object-fit: contain;
}

/* Structured playlist copy stays compact and predictable even after pasted text. */
.mcb2-video-title { font-weight: 600; line-height: 1.28; }
.mcb2-video-duration { font-size: .78em; font-weight: 400; opacity: .82; }
.mcb2-grid-cell-link[href=""] { pointer-events: none; cursor: default; }

/* --------------------------------------------------------------------------
   Responsive Table hardening for legacy/global mobile table rules
   --------------------------------------------------------------------------
   Some Mira site responsive styles intentionally turn tables/cells into block
   layouts on phones. Responsive Table owns a horizontally scrollable wide
   table instead, so restore native table display semantics inside this wrapper.
*/
.mcb2-table-scroll .mcb2-responsive-table {
    display: table !important;
}
.mcb2-table-scroll .mcb2-responsive-table thead {
    display: table-header-group !important;
}
.mcb2-table-scroll .mcb2-responsive-table tbody {
    display: table-row-group !important;
}
.mcb2-table-scroll .mcb2-responsive-table tfoot {
    display: table-footer-group !important;
}
.mcb2-table-scroll .mcb2-responsive-table tr {
    display: table-row !important;
}
.mcb2-table-scroll .mcb2-responsive-table th,
.mcb2-table-scroll .mcb2-responsive-table td {
    display: table-cell !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
}
/* Neutralize site-wide forced cell widths while preserving MCB2 column widths. */
.mcb2-table-scroll[data-mcb2-width-preset="auto"] .mcb2-responsive-table th,
.mcb2-table-scroll[data-mcb2-width-preset="auto"] .mcb2-responsive-table td { width: auto !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(1) { width: var(--mcb2-table-col-1-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(2) { width: var(--mcb2-table-col-2-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(3) { width: var(--mcb2-table-col-3-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(4) { width: var(--mcb2-table-col-4-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(5) { width: var(--mcb2-table-col-5-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(6) { width: var(--mcb2-table-col-6-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(7) { width: var(--mcb2-table-col-7-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(8) { width: var(--mcb2-table-col-8-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(9) { width: var(--mcb2-table-col-9-width, auto) !important; }
.mcb2-table-scroll:not([data-mcb2-width-preset="auto"]) .mcb2-responsive-table tr > :nth-child(10) { width: var(--mcb2-table-col-10-width, auto) !important; }

.mcb2-table-scroll .mcb2-responsive-table td::before,
.mcb2-table-scroll .mcb2-responsive-table th::before {
    display: none !important;
    content: none !important;
}

/* --------------------------------------------------------------------------
   Flip Cards touch behavior
   --------------------------------------------------------------------------
   Touch browsers can retain :hover/:focus after a tap. Keep the persistent
   state controlled by .is-flipped, and only use true hover on hover-capable
   pointer devices. This lets a second tap reliably flip the card back.
*/
.mcb2-flip-horizontal .mcb2-flip-card.is-flipped .mcb2-flip-card-inner {
    transform: rotateY(180deg);
}
.mcb2-flip-vertical .mcb2-flip-card.is-flipped .mcb2-flip-card-inner {
    transform: rotateX(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .mcb2-flip-trigger-hover.mcb2-flip-horizontal .mcb2-flip-card:hover .mcb2-flip-card-inner {
        transform: rotateY(180deg);
    }
    .mcb2-flip-trigger-hover.mcb2-flip-vertical .mcb2-flip-card:hover .mcb2-flip-card-inner {
        transform: rotateX(180deg);
    }
}

/* --------------------------------------------------------------------------
   Flip Cards — image fitting, background-image faces and responsive height
   --------------------------------------------------------------------------
   Public flip faces use an overlapping CSS grid rather than absolutely
   positioned faces. Both faces therefore contribute to the card's intrinsic
   height, so natural-height images can safely make a card taller without
   breaking the 3D flip.
*/
.mcb2-flip-card-inner {
    display: grid;
    height: auto;
}
.mcb2-flip-card-face {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    min-height: var(--mcb2-flip-height);
    height: 100%;
    isolation: isolate;
}

/* Height modes. Legacy Flip Cards without a mode class retain the historical
   minimum-height behaviour. Auto is fully content-sized; Fixed is exact. */
.mcb2-flip-height-auto .mcb2-flip-card,
.mcb2-flip-height-auto .mcb2-flip-card-inner,
.mcb2-flip-height-auto .mcb2-flip-card-face { min-height: 0; }

.mcb2-flip-height-fixed .mcb2-flip-card {
    height: var(--mcb2-flip-height);
    min-height: var(--mcb2-flip-height);
}
.mcb2-flip-height-fixed .mcb2-flip-card-inner,
.mcb2-flip-height-fixed .mcb2-flip-card-face {
    height: 100%;
    min-height: 100%;
}
.mcb2-flip-height-fixed .mcb2-flip-card-face { overflow: auto; }

/* Equal height is measured by the Flip Cards runtime/editor rather than inferred
   from CSS Grid rows. Different face modes (inline image, full-bleed image,
   background image, overlay content and CKEditor image wrappers) have different
   intrinsic sizing rules, so the tallest natural flipping surface is measured
   and exposed as --mcb2-flip-equal-height. This keeps every card stage identical
   across the entire component, including later wrapped rows. */
/* In Standard layout Equal owns the OUTER grid item too. Media variants such
   as full-width natural images and full-face backgrounds can otherwise change
   the card item's intrinsic size even when the inner flip stage is equal. */
.mcb2-flip-layout-standard.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card {
    height: var(--mcb2-flip-equal-height, auto);
    min-height: var(--mcb2-flip-equal-height, var(--mcb2-flip-height));
}
.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card-inner,
.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card-face {
    height: var(--mcb2-flip-equal-height, auto);
    min-height: var(--mcb2-flip-equal-height, var(--mcb2-flip-height));
}
.mcb2-flip-layout-standard.mcb2-flip-height-auto.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card,
.mcb2-flip-height-auto.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card-inner,
.mcb2-flip-height-auto.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card-face {
    min-height: var(--mcb2-flip-equal-height, 0px);
}

/* Caption layouts apply the configured height to the flipping surface, not to
   the caption underneath it. Fixed therefore means a fixed image/flip stage. */
.mcb2-flip-layout-image-caption.mcb2-flip-height-fixed .mcb2-flip-card {
    display: grid;
    grid-template-rows: var(--mcb2-flip-height) auto;
    height: auto;
    min-height: 0;
}
.mcb2-flip-layout-image-caption.mcb2-flip-height-fixed .mcb2-flip-card-inner {
    height: var(--mcb2-flip-height);
    min-height: var(--mcb2-flip-height);
}
/* Auto/Minimum caption layouts derive the flipping stage from the actual
   front image aspect ratio (and the back content if it needs more room). The
   runtime/editor writes this responsive measurement per card. */
.mcb2-flip-layout-image-caption.mcb2-flip-equal-off:not(.mcb2-flip-height-fixed) .mcb2-flip-card-inner,
.mcb2-flip-layout-image-caption.mcb2-flip-equal-off:not(.mcb2-flip-height-fixed) .mcb2-flip-card-face {
    height: var(--mcb2-flip-auto-height, auto);
    min-height: var(--mcb2-flip-auto-height, 0px);
}
.mcb2-flip-layout-image-caption.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
}
.mcb2-flip-layout-image-caption.mcb2-flip-equal-on:not(.mcb2-flip-height-fixed) .mcb2-flip-card-inner {
    min-height: var(--mcb2-flip-height);
}
.mcb2-flip-layout-image-caption.mcb2-flip-height-auto.mcb2-flip-equal-on .mcb2-flip-card-inner { min-height: 0; }

/* Inline image fitting. Cover remains the default for backwards compatibility. */
.mcb2-flip-front-fit-contain .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-fit-contain .mcb2-flip-media-back .mcb2-flip-image {
    object-fit: contain;
}
.mcb2-flip-front-fit-natural .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-fit-natural .mcb2-flip-media-back .mcb2-flip-image {
    height: auto;
    object-fit: contain;
}

/* Per-face focal alignment for cropped/contained images and background images. */
.mcb2-flip-front-pos-top .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-pos-top .mcb2-flip-media-back .mcb2-flip-image { object-position: center top; }
.mcb2-flip-front-pos-center .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-pos-center .mcb2-flip-media-back .mcb2-flip-image { object-position: center center; }
.mcb2-flip-front-pos-bottom .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-pos-bottom .mcb2-flip-media-back .mcb2-flip-image { object-position: center bottom; }

/* Full-face background image mode keeps a real <img> in the markup/editor, but
   visually stretches it behind the face content. The overlay is inherited from
   the Flip Cards grid and can be changed (or set Transparent) in settings. */
.mcb2-flip-front-background .mcb2-flip-card-front,
.mcb2-flip-back-background .mcb2-flip-card-back {
    position: relative;
}
.mcb2-flip-front-background .mcb2-flip-media-front,
.mcb2-flip-back-background .mcb2-flip-media-back {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}
.mcb2-flip-front-background .mcb2-flip-media-front .mcb2-flip-icon,
.mcb2-flip-back-background .mcb2-flip-media-back .mcb2-flip-icon { display: none; }
.mcb2-flip-front-background .mcb2-flip-media-front .mcb2-flip-image,
.mcb2-flip-back-background .mcb2-flip-media-back .mcb2-flip-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}
.mcb2-flip-front-background .mcb2-flip-card-front::after,
.mcb2-flip-back-background .mcb2-flip-card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.mcb2-flip-front-background .mcb2-flip-card-front::after {
    background: var(--mcb2-flip-front-overlay, var(--mcb2-flip-bg-overlay));
}
.mcb2-flip-back-background .mcb2-flip-card-back::after {
    background: var(--mcb2-flip-back-overlay, var(--mcb2-flip-bg-overlay));
}
.mcb2-flip-front-background .mcb2-flip-card-front > :not(.mcb2-flip-media),
.mcb2-flip-back-background .mcb2-flip-card-back > :not(.mcb2-flip-media) {
    position: relative;
    z-index: 2;
}

/* On phones, inline images default to their natural aspect ratio so portrait
   staff/team imagery is not chopped into the desktop crop. The card grows to
   fit because both faces now participate in intrinsic grid sizing. */
@media (max-width: 620px) {
    .mcb2-flip-grid:not(.mcb2-flip-mobile-image-fixed):not(.mcb2-flip-layout-image-caption) .mcb2-flip-front-image .mcb2-flip-media-front .mcb2-flip-image,
    .mcb2-flip-grid:not(.mcb2-flip-mobile-image-fixed) .mcb2-flip-back-image .mcb2-flip-media-back .mcb2-flip-image {
        height: auto;
        object-fit: contain;
    }
}

/* --------------------------------------------------------------------------
   Popup / modal action
   -------------------------------------------------------------------------- */
.mcb2-popup-trigger { cursor: pointer; }
.mcb2-popup-trigger:focus-visible {
    outline: 2px solid var(--mcb2-brand, #0a5cff);
    outline-offset: 3px;
}
.mcb2-popup {
    box-sizing: border-box;
    width: min(calc(100vw - 32px), 680px);
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #222;
    box-shadow: 0 20px 70px rgba(0,0,0,.28);
    overflow: visible;
}
.mcb2-popup-width-small { width: min(calc(100vw - 32px), 440px); }
.mcb2-popup-width-medium { width: min(calc(100vw - 32px), 680px); }
.mcb2-popup-width-large { width: min(calc(100vw - 32px), 900px); }
.mcb2-popup-width-wide { width: min(calc(100vw - 32px), 1180px); }
.mcb2-popup::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(2px); }
.mcb2-popup-panel {
    position: relative;
    box-sizing: border-box;
    max-height: calc(100vh - 32px);
    padding: 34px 38px 38px;
    overflow: auto;
}
.mcb2-popup-heading { margin: 0 44px 18px 0; }
.mcb2-popup-body > :first-child { margin-top: 0; }
.mcb2-popup-body > :last-child { margin-bottom: 0; }
.mcb2-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2f4;
    color: #263238;
    font: 400 26px/1 Arial,Helvetica,sans-serif;
    cursor: pointer;
}
.mcb2-popup-close:hover,
.mcb2-popup-close:focus-visible { background: #dfe7eb; outline: 2px solid rgba(10,53,68,.2); }
@media (max-width: 600px) {
    .mcb2-popup-panel { padding: 28px 22px 26px; }
}

/* --------------------------------------------------------------------------
   Flip Cards — Back Background / Overlay designer (1556)
   --------------------------------------------------------------------------
   The image owns the whole back face. The CKEditor content is a full-width
   overlay box whose vertical position is a real 0–100% value:
   0 = top, 50 = middle, 100 = bottom. Text alignment stays in CKEditor.
*/
.mcb2-flip-card {
    --mcb2-flip-back-content-position: 50%;
    --mcb2-flip-back-content-y: 0px;
    --mcb2-flip-back-content-pad: 24px;
}
.mcb2-flip-content-back {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
.mcb2-flip-content-back > :first-child { margin-top: 0; }
.mcb2-flip-content-back > :last-child { margin-bottom: 0; }

.mcb2-flip-back-layout-overlay .mcb2-flip-card-back {
    display: block;
    position: relative;
    padding: 0;
    overflow: hidden;
}
.mcb2-flip-back-layout-overlay .mcb2-flip-media-back {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}
.mcb2-flip-back-layout-overlay .mcb2-flip-media-back .mcb2-flip-icon { display: none !important; }
.mcb2-flip-back-layout-overlay .mcb2-flip-media-back .mcb2-flip-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}
.mcb2-flip-back-layout-overlay.mcb2-flip-back-fit-contain .mcb2-flip-media-back .mcb2-flip-image { object-fit: contain; }
.mcb2-flip-back-layout-overlay .mcb2-flip-card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--mcb2-flip-back-overlay, var(--mcb2-flip-bg-overlay));
}
.mcb2-flip-back-layout-overlay .mcb2-flip-content-back {
    position: absolute;
    z-index: 2;
    left: 0;
    top: var(--mcb2-flip-back-content-position);
    width: 100%;
    max-width: none;
    max-height: 100%;
    overflow: auto;
    padding: var(--mcb2-flip-back-content-pad);
    transform:
        translateY(calc(0% - var(--mcb2-flip-back-content-position)))
        translateY(var(--mcb2-flip-back-content-y));
}


/* --------------------------------------------------------------------------
   Plain Columns — cell-first layout refinements (1561)
   -------------------------------------------------------------------------- */
.mcb2-cards-plain-columns .mcb2-card {
    --mcb2-card-radius: 0px;
    border-radius: 0;
    overflow: visible;
}

/* Place Plain Columns dividers in the centre of the GRID GAP, not on the
   card edge. Respect authored gap and divider thickness. This leaves the card
   contents/column widths unchanged and works with responsive reflow. */
.mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show > .mcb2-card::after {
    right: auto;
    left: calc(100% + (var(--mcb2-card-gap, 24px) - var(--mcb2-card-divider-width, 1px)) / 2);
}

/* A single-column Plain Columns group has no side-by-side cell boundary. */
.mcb2-cards-plain-columns .mcb2-card-grid.mcb2-cols-1.mcb2-card-divider-show > .mcb2-card::after {
    display: none;
}

/* Plain Columns alignment is the default for its editable paragraphs and
   headings. Site/CKEditor styles can assign text-align directly to P/H3,
   defeating an inherited value on .mcb2-card-body. Apply it to the immediate
   text blocks instead; CKEditor's inline alignment remains an override and
   nested widgets retain their own typography. */
.mcb2-cards-plain-columns.mcb2-cards-align-left .mcb2-card-body > :is(p, h1, h2, h3, h4, h5, h6),
.mcb2-cards-plain-columns.mcb2-cards-align-left .mcb2-card-body > div:not(.mcb2-nested-component) { text-align: left; }
.mcb2-cards-plain-columns.mcb2-cards-align-center .mcb2-card-body > :is(p, h1, h2, h3, h4, h5, h6),
.mcb2-cards-plain-columns.mcb2-cards-align-center .mcb2-card-body > div:not(.mcb2-nested-component) { text-align: center; }
.mcb2-cards-plain-columns.mcb2-cards-align-right .mcb2-card-body > :is(p, h1, h2, h3, h4, h5, h6),
.mcb2-cards-plain-columns.mcb2-cards-align-right .mcb2-card-body > div:not(.mcb2-nested-component) { text-align: right; }

/* Desktop width presets. At smaller breakpoints the existing responsive column
   rules take over so these layouts still collapse predictably. */
@media (min-width: 901px) {
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-25-75"] { grid-template-columns: minmax(0,1fr) minmax(0,3fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-33-67"] { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-35-65"] { grid-template-columns: minmax(0,35fr) minmax(0,65fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-65-35"] { grid-template-columns: minmax(0,65fr) minmax(0,35fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-40-60"] { grid-template-columns: minmax(0,2fr) minmax(0,3fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-60-40"] { grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-67-33"] { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="2-75-25"] { grid-template-columns: minmax(0,3fr) minmax(0,1fr); }

    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="3-25-50-25"] { grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="3-50-25-25"] { grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="3-25-25-50"] { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,2fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="3-20-40-40"] { grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,2fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="3-40-40-20"] { grid-template-columns: minmax(0,2fr) minmax(0,2fr) minmax(0,1fr); }

    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="4-20-30-30-20"] { grid-template-columns: minmax(0,2fr) minmax(0,3fr) minmax(0,3fr) minmax(0,2fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="4-40-20-20-20"] { grid-template-columns: minmax(0,2fr) repeat(3,minmax(0,1fr)); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="4-20-20-20-40"] { grid-template-columns: repeat(3,minmax(0,1fr)) minmax(0,2fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="4-15-35-35-15"] { grid-template-columns: minmax(0,3fr) minmax(0,7fr) minmax(0,7fr) minmax(0,3fr); }
}

@media (min-width: 1101px) {
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="5-lead"] { grid-template-columns: minmax(0,2fr) repeat(4,minmax(0,1fr)); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="5-center"] { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) minmax(0,2fr) minmax(0,1.25fr) minmax(0,1fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="5-last"] { grid-template-columns: repeat(4,minmax(0,1fr)) minmax(0,2fr); }

    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="6-lead"] { grid-template-columns: minmax(0,2fr) repeat(5,minmax(0,1fr)); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="6-center"] { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr) minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr); }
    .mcb2-cards-plain-columns .mcb2-card-grid[data-mcb2-layout="6-last"] { grid-template-columns: repeat(5,minmax(0,1fr)) minmax(0,2fr); }
}

/* --------------------------------------------------------------------------
   Enhanced List
   -------------------------------------------------------------------------- */
.mcb2-enhanced-list {
    --mcb2-enhanced-list-marker-color: var(--mcb2-brand, #0a3544);
    --mcb2-enhanced-list-marker-size: 20px;
    --mcb2-enhanced-list-marker-width: 28px;
    --mcb2-enhanced-list-marker-gap: 10px;
    --mcb2-enhanced-list-item-gap: 12px;
    --mcb2-enhanced-list-column-gap: 28px;
    --mcb2-enhanced-list-item-bg: #f5f7f8;
    --mcb2-enhanced-list-border-color: #d9e0e5;
    --mcb2-enhanced-list-border-width: 1px;
    --mcb2-enhanced-list-divider-color: #d9e0e5;
    --mcb2-enhanced-list-divider-width: 1px;
    --mcb2-enhanced-list-radius-default: 0px;
    --mcb2-enhanced-list-item-padding-default: 0px;
    --mcb2-enhanced-list-start-offset: 0;
    --mcb2-enhanced-list-nested-indent: 8px;
    width: 100%;
    min-width: 0;
}
/* Enhanced List owns its markers. Neutralize native and site-wide UL/LI marker
   rules so a site's default bullets/checkmarks cannot appear beside the widget marker. */
.mcb2-enhanced-list .mcb2-enhanced-list-items {
    list-style: none !important;
}
.mcb2-enhanced-list .mcb2-enhanced-list-item {
    list-style: none !important;
}
.mcb2-enhanced-list .mcb2-enhanced-list-item::marker {
    content: '' !important;
    font-size: 0 !important;
}
.mcb2-enhanced-list .mcb2-enhanced-list-item::before,
.mcb2-enhanced-list .mcb2-enhanced-list-item::after {
    content: none !important;
    display: none !important;
}

.mcb2-enhanced-list-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--mcb2-enhanced-list-item-gap) var(--mcb2-enhanced-list-column-gap);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none !important;
    counter-reset: mcb2EnhancedList var(--mcb2-enhanced-list-start-offset, 0);
}
.mcb2-enhanced-list-cols-1 .mcb2-enhanced-list-items { grid-template-columns: minmax(0, 1fr); }
.mcb2-enhanced-list-cols-2 .mcb2-enhanced-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcb2-enhanced-list-cols-3 .mcb2-enhanced-list-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcb2-enhanced-list-cols-4 .mcb2-enhanced-list-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mcb2-enhanced-list-item {
    position: relative;
    display: grid;
    grid-template-columns: var(--mcb2-enhanced-list-marker-width) minmax(0, 1fr);
    column-gap: var(--mcb2-enhanced-list-marker-gap);
    min-width: 0;
    margin: 0;
    padding: var(--mcb2-enhanced-list-item-padding, var(--mcb2-enhanced-list-item-padding-default));
    border-radius: var(--mcb2-enhanced-list-radius, var(--mcb2-enhanced-list-radius-default));
}
.mcb2-enhanced-list-marker-top .mcb2-enhanced-list-item { align-items: start; }
.mcb2-enhanced-list-marker-center .mcb2-enhanced-list-item { align-items: center; }
.mcb2-enhanced-list-marker {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--mcb2-enhanced-list-marker-width);
    min-width: 0;
    color: var(--mcb2-enhanced-list-item-marker-color, var(--mcb2-enhanced-list-marker-color));
    font-size: var(--mcb2-enhanced-list-marker-size);
    line-height: 1.25;
    text-align: center;
}
.mcb2-enhanced-list-marker::before { content: ''; }
.mcb2-enhanced-list .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-content {
    grid-column: 2;
    min-width: 0;
}
.mcb2-enhanced-list-content > :first-child { margin-top: 0; }
.mcb2-enhanced-list-content > :last-child { margin-bottom: 0; }

/* Semantic sub-lists created with Tab live directly under the parent <li>. The
   parent marker already supplies the first indent; this variable adds a small,
   user-adjustable second step without using fake margin-left list items. */
.mcb2-enhanced-list-item > .mcb2-enhanced-list-items {
    grid-column: 2 / -1;
    align-self: stretch;
    width: auto;
    min-width: 0;
    margin: 8px 0 0 var(--mcb2-enhanced-list-nested-indent);
    padding: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    counter-reset: mcb2EnhancedList 0;
}
.mcb2-enhanced-list-item > .mcb2-enhanced-list-items > .mcb2-enhanced-list-item { min-width: 0; }

/* Bulleted / icon markers. */
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-disc .mcb2-enhanced-list-marker::before { content: '\2022'; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-circle .mcb2-enhanced-list-marker::before { content: '\25CB'; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-square .mcb2-enhanced-list-marker::before { content: '\25AA'; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-check .mcb2-enhanced-list-marker::before { content: '\2713'; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-arrow .mcb2-enhanced-list-marker::before { content: '\2192'; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-star .mcb2-enhanced-list-marker::before { content: '\2605'; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom .mcb2-enhanced-list-marker::before { display: none; }
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom .mcb2-enhanced-list-icon {
    display: inline-block !important;
}

/* Nested marker customization. Auto gives conventional bullet progression for
   Disc/Circle/Square, while Check/Arrow/Star/Custom stay consistent by default. */
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-disc .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\2022'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-disc .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-circle .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\25CB'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-circle .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-square .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\25AA'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-square .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-check .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\2713'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-check .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-arrow .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\2192'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-arrow .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-star .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\2605'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-star .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-custom .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: ''; display: none; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-custom .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: inline-block !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-disc .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\2022'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-disc .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-circle .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\25CB'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-circle .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-square .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\25AA'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-square .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-check .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\2713'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-check .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-arrow .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\2192'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-arrow .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-star .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\2605'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-star .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-custom .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: ''; display: none; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-custom .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: inline-block !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-disc.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\25CB'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-disc.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-circle.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\25AA'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-circle.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-square.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: '\2022'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-square.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-disc.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\25AA'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-disc.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-circle.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\2022'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-circle.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-square.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: '\25CB'; display: inline; }
.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-square.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon { display: none !important; }


/* Public-rendering icon authority. MiraAwesome may downcast its editable icon and
   remove the private mcb2-enhanced-list-icon helper class before saved HTML reaches
   the public page. Marker visibility therefore must not depend on that helper class.
   Hide every Font Awesome node inside a marker by default, then opt it back in only
   for levels that are actually configured as Custom (or inherit a Custom parent). */
.mcb2-enhanced-list .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon {
    display: none !important;
}

/* Main / Level 1 Custom icon. Use the direct root-list relationship so older saved
   lists remain safe even if they predate the explicit depth helper classes. */
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom > .mcb2-enhanced-list-items > .mcb2-enhanced-list-item > .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom > .mcb2-enhanced-list-items > .mcb2-enhanced-list-item > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon {
    display: inline-block !important;
}

/* Explicit nested Custom icons own their own level-specific icon. */
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-custom .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l2-marker-custom .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon,
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-custom .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-l3-marker-custom .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon {
    display: inline-block !important;
}

/* Same/Auto intentionally inherit the main icon when the main list is Custom. */
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l2-marker-same .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l2-marker-same .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon,
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l2-marker-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon,
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l3-marker-same .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l3-marker-same .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon,
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker [class*="fa-"],
.mcb2-enhanced-list.mcb2-enhanced-list-bulleted.mcb2-enhanced-list-marker-custom.mcb2-enhanced-list-l3-marker-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker .mcb2-enhanced-list-icon {
    display: inline-block !important;
}

/* Ordered list markers. The saved HTML remains a real <ol>; CSS counters provide
   consistent marker layout while the native start value is retained for semantics. */
.mcb2-enhanced-list-numbered .mcb2-enhanced-list-item {
    counter-increment: mcb2EnhancedList;
}
.mcb2-enhanced-list-numbered .mcb2-enhanced-list-marker { justify-content: flex-end; text-align: right; }
.mcb2-enhanced-list-numbered .mcb2-enhanced-list-marker::before {
    font-variant-numeric: tabular-nums;
}
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-decimal .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-leading-zero .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-upper-alpha .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-lower-alpha .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-upper-roman .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-lower-roman .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-leading-zero.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-upper-alpha.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-lower-alpha.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-upper-roman.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-lower-roman.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-leading-zero.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-upper-alpha.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-lower-alpha.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-upper-roman.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-number-lower-roman.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) ')'; }

/* Nested ordered-list formats. Auto follows the common 1. → a. → i. pattern;
   Same as list deliberately leaves the parent number format in control. */
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-auto .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-auto.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-auto.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-decimal .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-decimal.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-decimal.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-leading-zero .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-leading-zero.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-leading-zero.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-upper-alpha .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-upper-alpha.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-upper-alpha.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-lower-alpha .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-lower-alpha.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-lower-alpha.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-upper-roman .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-upper-roman.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-upper-roman.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-lower-roman .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-lower-roman.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l2-number-lower-roman.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-2 > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-auto .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-auto.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-auto.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-decimal .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-decimal.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-decimal.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-leading-zero .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-leading-zero.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-leading-zero.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, decimal-leading-zero) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-upper-alpha .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-upper-alpha.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-upper-alpha.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-alpha) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-lower-alpha .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-lower-alpha.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-lower-alpha.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-alpha) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-upper-roman .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-upper-roman.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-upper-roman.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, upper-roman) ')'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-lower-roman .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman); }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-lower-roman.mcb2-enhanced-list-number-suffix-period .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) '.'; }
.mcb2-enhanced-list-numbered.mcb2-enhanced-list-l3-number-lower-roman.mcb2-enhanced-list-number-suffix-paren .mcb2-enhanced-list-depth-3plus > .mcb2-enhanced-list-marker::before { content: counter(mcb2EnhancedList, lower-roman) ')'; }

/* Item appearance. */
.mcb2-enhanced-list-item-plain { --mcb2-enhanced-list-item-padding-default: 0px; }
.mcb2-enhanced-list-item-plain .mcb2-enhanced-list-item {
    border: 0;
    background: var(--mcb2-enhanced-list-item-bg-override, transparent);
}
.mcb2-enhanced-list-item-filled,
.mcb2-enhanced-list-item-bordered,
.mcb2-enhanced-list-item-accent { --mcb2-enhanced-list-item-padding-default: 14px; }
.mcb2-enhanced-list-item-filled .mcb2-enhanced-list-item {
    border: 0;
    background: var(--mcb2-enhanced-list-item-bg-override, var(--mcb2-enhanced-list-item-bg));
}
.mcb2-enhanced-list-item-bordered .mcb2-enhanced-list-item {
    border: var(--mcb2-enhanced-list-border-width) solid var(--mcb2-enhanced-list-border-color);
    background: var(--mcb2-enhanced-list-item-bg-override, var(--mcb2-enhanced-list-item-bg));
}
.mcb2-enhanced-list-item-accent .mcb2-enhanced-list-item {
    border: 0;
    border-left: var(--mcb2-enhanced-list-border-width) solid var(--mcb2-enhanced-list-border-color);
    background: var(--mcb2-enhanced-list-item-bg-override, var(--mcb2-enhanced-list-item-bg));
}
.mcb2-enhanced-list-corners-square { --mcb2-enhanced-list-radius-default: 0px; }
.mcb2-enhanced-list-corners-rounded { --mcb2-enhanced-list-radius-default: 20px; }

.mcb2-enhanced-list-divider-show .mcb2-enhanced-list-item {
    border-bottom-color: var(--mcb2-enhanced-list-divider-color);
    border-bottom-style: solid;
    border-bottom-width: var(--mcb2-enhanced-list-divider-width);
}
.mcb2-enhanced-list-divider-show.mcb2-enhanced-list-item-plain .mcb2-enhanced-list-item:last-child,
.mcb2-enhanced-list-divider-show.mcb2-enhanced-list-item-filled .mcb2-enhanced-list-item:last-child { border-bottom-width: 0; }

.mcb2-enhanced-list-nested { margin: 1.25em 0; }

@media (max-width: 900px) {
    .mcb2-enhanced-list-cols-3 .mcb2-enhanced-list-items,
    .mcb2-enhanced-list-cols-4 .mcb2-enhanced-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .mcb2-enhanced-list-mobile-1 .mcb2-enhanced-list-items { grid-template-columns: minmax(0, 1fr); }
    .mcb2-enhanced-list-mobile-2 .mcb2-enhanced-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Tabs — optional mobile stacked accordion (desktop and existing sites intact).
   display:contents allows headings and panels to share one flex formatting
   context without moving/duplicating any editable panel or nested component.
   Each pair's order comes from the editor structure repair + public runtime.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
    .mcb2-tabs.mcb2-tabs-mobile-accordion {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        grid-template-columns: none !important;
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-nav,
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-panels {
        display: contents !important;
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-nav > .mcb2-tab-button {
        order: var(--mcb2-tab-stack-order, 0);
        box-sizing: border-box;
        display: flex !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 44px;
        margin: 0;
        margin-top: var(--mcb2-tabs-gap);
        padding: 12px 18px;
        justify-content: flex-start !important;
        text-align: left !important;
        white-space: normal !important;
        writing-mode: horizontal-tb !important;
        border: var(--mcb2-tabs-border-width) solid var(--mcb2-tabs-border-color);
        border-radius: var(--mcb2-tabs-radius) !important;
        background: var(--mcb2-tab-bg, var(--mcb2-tabs-bg));
        color: var(--mcb2-tabs-color);
        box-shadow: none;
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-nav > .mcb2-tab-button:not(.is-active):hover,
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-nav > .mcb2-tab-button:not(.is-active):focus-visible {
        background: var(--mcb2-tab-hover-bg, var(--mcb2-tabs-hover-bg));
        color: var(--mcb2-tab-hover-color, var(--mcb2-tabs-hover-color));
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-nav > .mcb2-tab-button:first-child {
        margin-top: 0;
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-nav > .mcb2-tab-button > .mcb2-tab-label {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-nav > .mcb2-tab-button.is-active {
        border-color: var(--mcb2-tab-active-border-color, var(--mcb2-tabs-active-border-color));
        border-width: var(--mcb2-tabs-active-border-width);
        border-radius: var(--mcb2-tabs-radius) var(--mcb2-tabs-radius) 0 0 !important;
        background: var(--mcb2-tab-active-bg, var(--mcb2-tabs-active-bg));
        color: var(--mcb2-tabs-active-color);
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-panels > .mcb2-tab-panel {
        order: var(--mcb2-tab-stack-order, 1);
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: var(--mcb2-tabs-panel-padding);
        border: var(--mcb2-tabs-panel-border-width) solid var(--mcb2-tabs-panel-border-color);
        border-top-width: 0;
        border-radius: 0 0 var(--mcb2-tabs-radius) var(--mcb2-tabs-radius) !important;
        background: var(--mcb2-tabs-panel-bg);
    }
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-panels > .mcb2-tab-panel:not(.is-active),
    .mcb2-tabs.mcb2-tabs-mobile-accordion > .mcb2-tabs-panels > .mcb2-tab-panel[hidden] {
        display: none !important;
    }
}


/* Responsive row-count choices for Cards and Plain Columns. Auto preserves the
   original component defaults. These controls reuse fixed shared breakpoints,
   rather than generating per-page media queries or stylesheet fragments. */
@media (min-width: 621px) and (max-width: 1100px) {
    .mcb2-card-grid[data-mcb2-tablet-cols="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .mcb2-card-grid[data-mcb2-tablet-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcb2-card-grid[data-mcb2-tablet-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mcb2-card-grid[data-mcb2-tablet-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="1"] > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="1"] > .mcb2-card::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="1"] > .mcb2-card:last-child::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="2"] > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="2"] > .mcb2-card:nth-child(2n)::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="2"] > .mcb2-card:last-child::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="3"] > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="3"] > .mcb2-card:nth-child(3n)::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="3"] > .mcb2-card:last-child::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="4"] > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="4"] > .mcb2-card:nth-child(4n)::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="4"] > .mcb2-card:last-child::after { display: none; }
}
@media (max-width: 620px) {
    .mcb2-card-grid[data-mcb2-mobile-cols="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .mcb2-card-grid[data-mcb2-mobile-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcb2-card-grid[data-mcb2-mobile-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="2"] > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="2"] > .mcb2-card:nth-child(2n)::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="2"] > .mcb2-card:last-child::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="3"] > .mcb2-card::after { display: block; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="3"] > .mcb2-card:nth-child(3n)::after { display: none; }
    .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="3"] > .mcb2-card:last-child::after { display: none; }
}


/* Keep Plain Columns dividers at the boundary of the ACTUAL responsive row.
   The generic Cards desktop/auto selectors otherwise override tablet/mobile
   3-column choices and re-show a divider on stacked mobile cells. */
@media (min-width: 621px) and (max-width: 1100px) {
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="1"] > .mcb2-card::after { display: none; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="2"] > .mcb2-card::after { display: block; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="2"] > .mcb2-card:nth-child(2n)::after,
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="2"] > .mcb2-card:last-child::after { display: none; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="3"] > .mcb2-card::after { display: block; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="3"] > .mcb2-card:nth-child(3n)::after,
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="3"] > .mcb2-card:last-child::after { display: none; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="4"] > .mcb2-card::after { display: block; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="4"] > .mcb2-card:nth-child(4n)::after,
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-tablet-cols="4"] > .mcb2-card:last-child::after { display: none; }
}
@media (max-width: 620px) {
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show:not([data-mcb2-mobile-cols="2"]):not([data-mcb2-mobile-cols="3"]) > .mcb2-card::after {
        display: none;
    }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="1"] > .mcb2-card::after { display: none; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="2"] > .mcb2-card::after { display: block; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="2"] > .mcb2-card:nth-child(2n)::after,
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="2"] > .mcb2-card:last-child::after { display: none; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="3"] > .mcb2-card::after { display: block; }
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="3"] > .mcb2-card:nth-child(3n)::after,
    .mcb2-cards-plain-columns .mcb2-card-grid.mcb2-card-divider-show[data-mcb2-mobile-cols="3"] > .mcb2-card:last-child::after { display: none; }
}

/* --------------------------------------------------------------------------
   Cards: optional image-card effects and mobile swipe layout.
   These classes are opt-in; pre-existing Cards are not affected.
   -------------------------------------------------------------------------- */
.mcb2-card-hover-underline,
.mcb2-card-accent-bottom,
.mcb2-card-accent-left {
    --mcb2-card-underline-size: 3px;
}
.mcb2-card-hover-underline .mcb2-card,
.mcb2-card-accent-bottom .mcb2-card,
.mcb2-card-accent-left .mcb2-card {
    --mcb2-card-accent: #00b8ff;
    position: relative;
}
.mcb2-card-hover-underline .mcb2-card::before,
.mcb2-card-accent-bottom .mcb2-card::before,
.mcb2-card-accent-left .mcb2-card::before {
    content: "";
    position: absolute;
    z-index: 4;
    inset: auto 0 0 0;
    height: var(--mcb2-card-underline-size, 3px);
    width: auto;
    background: var(--mcb2-card-accent);
    box-shadow: 0 0 12px var(--mcb2-card-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 260ms ease;
    pointer-events: none;
}
.mcb2-card-hover-underline .mcb2-card:is(:hover, :focus-within)::before,
.mcb2-card-accent-bottom .mcb2-card:is(:hover, :focus-within)::before {
    transform: scaleX(1);
}
/* Left accent uses the same thickness control and is independent of hover motion. */
.mcb2-card-accent-left .mcb2-card::before {
    inset: 0 auto 0 0;
    width: var(--mcb2-card-underline-size, 3px);
    height: auto;
    transform: scaleY(0);
    transform-origin: center center;
    transition: transform 200ms ease;
}
.mcb2-card-accent-left .mcb2-card:is(:hover, :focus-within)::before {
    transform: scaleY(1);
}
.mcb2-card-media-hover-zoom .mcb2-card-layout-background .mcb2-card-background-image {
    transition: transform 420ms ease, filter 420ms ease;
}
.mcb2-card-media-hover-zoom .mcb2-card-layout-background:is(:hover, :focus-within) .mcb2-card-background-image {
    transform: scale(1.045);
    filter: saturate(1.08) brightness(1.05);
}
@media (max-width: 620px) {
    .mcb2-cards-mobile-swipe .mcb2-card-grid {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: none;
        gap: var(--mcb2-card-gap, 18px);
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 14px;
    }
    .mcb2-cards-mobile-swipe .mcb2-card-grid::-webkit-scrollbar { display: none; }
    .mcb2-cards-mobile-swipe .mcb2-card-grid > .mcb2-card {
        flex: 0 0 min(84vw, 390px);
        min-width: min(84vw, 390px);
        max-width: min(84vw, 390px);
        scroll-snap-align: start;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mcb2-card-hover-underline .mcb2-card::before,
    .mcb2-card-accent-bottom .mcb2-card::before,
    .mcb2-card-accent-left .mcb2-card::before,
    .mcb2-card-media-hover-zoom .mcb2-card-layout-background .mcb2-card-background-image {
        transition: none;
    }
    .mcb2-card-media-hover-zoom .mcb2-card-layout-background:is(:hover, :focus-within) .mcb2-card-background-image {
        transform: none;
        filter: none;
    }
}

/* Card-level overlay option: preserves the original solid treatment by default. */
.mcb2-card-layout-background.mcb2-card-overlay-bottom-fade .mcb2-card-background-overlay {
    background: linear-gradient(to bottom,
        rgba(0,0,0,.03) 10%, rgba(0,0,0,.12) 43%,
        rgba(3,4,6,.80) 68%, rgba(3,4,6,.98) 100%);
    opacity: 1;
}

/* Plain Columns optional coloured group background. Independent of the
   outer frame and its border: a simple three-column information strip can
   have a coloured surface without changing the overall widget geometry.
   Transparent remains the default on all existing/plain sections. */
.mcb2-cards-plain-columns .mcb2-card-grid.mcb2-plain-surface {
    background: var(--mcb2-plain-surface-color, #e6eaee);
    padding: var(--mcb2-plain-surface-padding, 10px);
}

/* Plain Columns optional framed directory and bottom action buttons.
   Entirely opt-in; legacy Plain Columns retain original geometry.
   Footer is a sibling of the grid (never counted as a cell). */
.mcb2-cards-plain-columns.mcb2-plain-frame {
    --mcb2-plain-border-size: 2px;
    --mcb2-plain-border-color: #d1dbe6;
    --mcb2-plain-radius: 30px;
    --mcb2-plain-inner-padding: 28px;
    --mcb2-plain-background: #ffffff;
}
.mcb2-cards-plain-columns.mcb2-plain-frame > .mcb2-container {
    border: var(--mcb2-plain-border-size) solid var(--mcb2-plain-border-color);
    border-radius: var(--mcb2-plain-radius);
    padding: var(--mcb2-plain-inner-padding);
    background: var(--mcb2-plain-background);
    position: relative;
    overflow: visible;
}
.mcb2-cards-plain-columns .mcb2-plain-actions { display: none; }
.mcb2-cards-plain-columns.mcb2-plain-actions-show {
    --mcb2-plain-button-accent: #075088;
    --mcb2-plain-button-radius: 48px;
    --mcb2-plain-buttons-gap: 30px;
    /* Reserve room for action buttons protruding beneath the frame. */
    padding-bottom: calc(var(--mcb2-section-space-y) + 36px);
}
.mcb2-cards-plain-columns.mcb2-plain-actions-show > .mcb2-container > .mcb2-plain-actions {
    display: flex;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: max-content;
    max-width: calc(100% - 24px);
    gap: var(--mcb2-plain-buttons-gap, 30px);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1;
}
.mcb2-cards-plain-columns .mcb2-plain-action {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
/* Footer button height follows its content and padding; the optional
   icon badge scales with text rather than forcing the whole button taller.
   Site CSS mode continues to own button styling. */
.mcb2-cards-plain-columns .mcb2-plain-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
}
.mcb2-cards-plain-columns:not(.mcb2-plain-buttons-site) .mcb2-plain-button {
    padding: 10px 24px;
    border: 3px solid var(--mcb2-plain-button-accent, #075088);
    border-radius: var(--mcb2-plain-button-radius, 48px);
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    background: var(--mcb2-plain-button-accent, #075088);
    color: #fff;
    transition: background .2s ease, color .2s ease;
}
/* Optional icon badge for framed Plain Columns action buttons. Keep its
   outside dimensions close to the text line-height so natural button sizing
   remains consistent for icon and text-only buttons. */
.mcb2-cards-plain-columns:not(.mcb2-plain-buttons-site) .mcb2-plain-button-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    box-sizing: border-box;
    border-radius: 50%;
    margin-right: .6em;
    background: #fff;
    color: var(--mcb2-plain-button-accent, #075088);
    line-height: 1;
    font-size: inherit;
}
.mcb2-cards-plain-columns:not(.mcb2-plain-buttons-site) .mcb2-plain-button-icon > .fa-solid {
    font-size: .72em;
}
.mcb2-cards-plain-columns:not(.mcb2-plain-buttons-site) .mcb2-plain-button:hover,
.mcb2-cards-plain-columns:not(.mcb2-plain-buttons-site) .mcb2-plain-button:focus-visible { filter: brightness(.94); }
.mcb2-cards-plain-columns:not(.mcb2-plain-buttons-site) .mcb2-plain-button-outline {
    background: var(--mcb2-plain-background, #fff);
    color: var(--mcb2-plain-button-accent, #075088);
}
@media (max-width: 620px) {
    .mcb2-cards-plain-columns.mcb2-plain-frame > .mcb2-container {
        padding: min(var(--mcb2-plain-inner-padding, 28px), 20px);
    }
    .mcb2-cards-plain-columns.mcb2-plain-actions-show {
        padding-bottom: var(--mcb2-section-space-y);
    }
    /* Stack in the normal flow on phones: no overlap / horizontal clipping. */
    .mcb2-cards-plain-columns.mcb2-plain-actions-show > .mcb2-container > .mcb2-plain-actions {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 24px;
        flex-direction: column;
        gap: 12px;
    }
    .mcb2-cards-plain-columns .mcb2-plain-actions .mcb2-plain-action { width: 100%; }
    .mcb2-cards-plain-columns .mcb2-plain-actions .mcb2-plain-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .mcb2-cards-plain-columns .mcb2-plain-button { transition: none; }
}
