/* MAST Community Footer 2.0.43 — isolated, theme-aware styles */
/* Inherit the active RaxBoard theme palette instead of imposing a fixed footer palette. */
.mcf-footer {
    --mcf-theme-bg:var(--background,var(--color-body-bg,var(--color-content-bg,#ffffff)));
    --mcf-theme-panel:var(--card,var(--color-content-bg,var(--color-card-bg,#f7f8fa)));
    --mcf-theme-text:var(--foreground,var(--color-text,#20242a));
    --mcf-theme-muted:var(--muted-foreground,var(--color-text-muted,#475569));
    --mcf-theme-dim:var(--muted-foreground,var(--color-text-muted,#5b6472));
    --mcf-theme-accent:var(--primary,var(--color-primary,#e87524));
    --mcf-bg:var(--mcf-theme-bg);
    --mcf-panel:var(--mcf-theme-panel);
    --mcf-border:var(--border,var(--color-border,rgba(30,41,59,.14)));
    --mcf-text:var(--mcf-theme-text);
    --mcf-muted:var(--mcf-theme-muted);
    --mcf-dim:var(--mcf-theme-dim);
    --mcf-accent:var(--mcf-theme-accent);
    width:100%; margin:0; background:var(--mcf-bg); color:var(--mcf-text);
    border-top:1px solid var(--mcf-border); font:inherit; line-height:1.5;
    box-sizing:border-box; color-scheme:normal;
}

/* RaxBoard updates these tokens when the selected theme or light/dark mode changes. */
html[data-theme="dark"] .mcf-footer,
html[data-theme-mode="dark"] .mcf-footer { color-scheme:dark; }

html[data-theme="light"] .mcf-footer,
html[data-theme-mode="light"] .mcf-footer { color-scheme:light; }

.mcf-footer * { box-sizing:border-box; }
.mcf-wrap { width:calc(100% - 48px); max-width:1360px; margin:0 auto; }
.mcf-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:20px 0; }
.mcf-stat {
    min-width:0; min-height:88px; display:flex; align-items:center; gap:15px;
    padding:14px 22px; background:var(--mcf-panel); border:1px solid var(--mcf-border); border-radius:12px;
}
.mcf-stat-icon {
    width:50px; height:50px; flex:0 0 50px; display:grid; place-items:center;
    border-radius:50%; background:rgba(25,181,163,.12); color:var(--mcf-accent); font-size:19px;
}
.mcf-stat-copy { min-width:0; display:flex; flex-direction:column; gap:1px; }
.mcf-stat-copy strong { overflow:hidden; color:var(--mcf-text); font-size:20px; font-weight:750; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.mcf-stat-copy .mcf-stat-name { color:var(--mcf-accent); }
.mcf-stat-copy small { color:var(--mcf-dim); font-size:10px; font-weight:800; letter-spacing:1.1px; text-transform:uppercase; }
.mcf-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-flow:row; align-items:stretch; border-top:1px solid var(--mcf-border); border-bottom:1px solid var(--mcf-border); }
.mcf-brand,.mcf-panel { min-width:0; padding:22px; }
.mcf-brand { border-inline-end:1px solid var(--mcf-border); }
.mcf-brand-title { display:flex; align-items:center; gap:10px; color:var(--mcf-text); font-size:20px; font-weight:800; text-decoration:none; }
.mcf-brand-mark { display:grid; place-items:center; color:var(--mcf-accent); font-size:24px; }
.mcf-brand-tag { display:block; margin-top:2px; color:var(--mcf-accent); font-size:10px; font-weight:800; letter-spacing:1.1px; text-transform:uppercase; }
.mcf-brand p { margin:10px 0 14px; color:var(--mcf-muted); font-size:13px; line-height:1.85; }
.mcf-social { display:flex; flex-wrap:wrap; gap:6px; }
.mcf-social span { width:35px; height:35px; display:grid; place-items:center; border-radius:8px; background:rgba(255,255,255,.055); color:var(--mcf-muted); font-size:14px; }
.mcf-panel { border-inline-end:1px solid var(--mcf-border); }
.mcf-grid > :last-child { border-inline-end:0; }
.mcf-panel h3 { display:flex; align-items:center; gap:10px; margin:0 0 13px; padding:0 0 14px; border-bottom:1px solid var(--mcf-border); color:var(--mcf-text); font-size:12px; font-weight:850; letter-spacing:1px; text-transform:uppercase; }
.mcf-dot { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:var(--mcf-accent); }
.mcf-items { display:flex; flex-direction:column; gap:8px; }
.mcf-item { min-width:0; display:flex; align-items:center; gap:12px; }
.mcf-avatar { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border:1px solid var(--mcf-border); border-radius:50%; background:var(--color-content-bg,var(--color-card-bg,#f7f8fa)); color:var(--mcf-muted); font-size:13px; }
.mcf-item-copy { min-width:0; display:flex; flex-direction:column; }
.mcf-item-copy a { display:-webkit-box; overflow:hidden; color:var(--mcf-text); font-size:13px; line-height:1.45; text-decoration:none; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.mcf-item-copy a:hover { color:var(--mcf-accent); }
.mcf-item-copy small { overflow:hidden; color:var(--mcf-muted); font-size:10px; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.mcf-empty { color:var(--mcf-dim); font-size:12px; }
.mcf-bottom { min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 0; color:var(--mcf-dim); font-size:11px; }
.mcf-controls { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.mcf-controls #rbThemeBar,.mcf-controls #rbStyleSel,.mcf-controls #rbLangSel { min-height:30px; border:1px solid var(--mcf-border); border-radius:7px; background:var(--mcf-panel); color:var(--mcf-muted); font:inherit; font-size:11px; }
.mcf-controls #rbThemeBar { display:flex; align-items:center; gap:3px; padding:2px; }
.mcf-controls #rbThemeBar button { min-width:27px; min-height:26px; border:0; border-radius:5px; background:transparent; color:inherit; }
.mcf-controls #rbStyleSel,.mcf-controls #rbLangSel { padding:0 9px; }
.mcf-bottom nav { display:flex; flex-wrap:wrap; gap:18px; }
.mcf-bottom nav a { color:var(--mcf-text); text-decoration:none; }
.mcf-bottom nav a:hover { color:var(--mcf-accent); }
footer[data-rb-el="footer"][hidden] { display:none!important; }

@media (max-width:1050px) {
    .mcf-wrap { width:calc(100% - 36px); }
    .mcf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mcf-brand,.mcf-panel { padding:20px; }
    .mcf-brand,.mcf-panel { border-inline-end:1px solid var(--mcf-border); border-bottom:1px solid var(--mcf-border); }
    .mcf-grid > :nth-child(2n) { border-inline-end:0; }
    .mcf-grid > :last-child { border-bottom:0; }
}
@media (max-width:650px) {
    .mcf-wrap { width:calc(100% - 28px); }
    .mcf-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:14px 0; }
    .mcf-stat { min-height:70px; gap:9px; padding:9px; border-radius:9px; }
    .mcf-stat-icon { width:36px; height:36px; flex-basis:36px; font-size:14px; }
    .mcf-stat-copy strong { font-size:17px; }
    .mcf-stat-copy small { font-size:8px; letter-spacing:.7px; }
    .mcf-grid { grid-template-columns:1fr; }
    .mcf-brand,.mcf-panel { padding:17px 5px; }
    .mcf-brand,.mcf-panel { border-inline-end:0; border-bottom:1px solid var(--mcf-border); }
    .mcf-grid > :last-child { border-bottom:0; }
    .mcf-bottom { align-items:flex-start; flex-direction:column; gap:9px; padding:13px 0; }
    .mcf-bottom nav { gap:12px; }
}

@media (prefers-reduced-motion:reduce) { .mcf-footer * { transition:none!important; } }

/* Real member avatars */
.mcf-avatar{overflow:hidden}
.mcf-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Admin settings */
.mcf-admin-page .mcf-social-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) minmax(150px,1fr) auto;gap:12px;align-items:end;margin:12px 0;padding:12px;border:1px solid var(--color-border,var(--color-border-dark));border-radius:10px}
.mcf-admin-page .mcf-social-row label{display:flex;flex-direction:column;gap:5px;min-width:0}
.mcf-admin-page .mcf-social-row input{width:100%;min-width:0}
@media(max-width:700px){.mcf-admin-page .mcf-social-row{grid-template-columns:1fr}.mcf-admin-page .mcf-social-row .mcf-remove-social{justify-self:start}}

.mcf-admin-page .mcf-color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:12px 0}
.mcf-admin-page .mcf-color-grid label{display:flex;flex-direction:column;gap:7px}
.mcf-admin-page .mcf-color-grid input[type=color]{width:100%;height:42px;padding:3px;border:1px solid var(--color-border,var(--color-border-dark));border-radius:8px;background:transparent}

.mcf-brand-image { display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:0; height:auto; background:transparent; border:0; overflow:visible; }
.mcf-brand-image img { display:block; max-width:100%; }
.mcf-admin-logo-preview { display:flex; align-items:center; justify-content:flex-start; min-height:72px; padding:12px; margin:8px 0; border:1px dashed var(--border-color, #d1d5db); border-radius:8px; }


/* Design presets — MAST Community Footer 2.0.14 */
.mcf-footer[data-mcf-preset="minimal"] { --mcf-border:rgba(255,255,255,.08); }
.mcf-footer[data-mcf-preset="minimal"] .mcf-stats { gap:0; padding:18px 0; }
.mcf-footer[data-mcf-preset="minimal"] .mcf-stat { min-height:66px; padding:10px 16px; border:0; border-right:1px solid var(--mcf-border); border-radius:0; background:transparent; }
.mcf-footer[data-mcf-preset="minimal"] .mcf-stat:last-child { border-right:0; }
.mcf-footer[data-mcf-preset="minimal"] .mcf-stat-icon { width:34px;height:34px;flex-basis:34px;border-radius:9px; }
.mcf-footer[data-mcf-preset="minimal"] .mcf-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.mcf-footer[data-mcf-preset="minimal"] .mcf-brand,.mcf-footer[data-mcf-preset="minimal"] .mcf-panel { padding:20px 18px; }
.mcf-footer[data-mcf-preset="minimal"] .mcf-brand-title { font-size:18px; }
.mcf-footer[data-mcf-preset="minimal"] .mcf-panel h3 { border-bottom:0; padding-bottom:5px; }
.mcf-footer[data-mcf-preset="modern"] .mcf-stat { box-shadow:0 8px 24px rgba(0,0,0,.10); }
.mcf-footer[data-mcf-preset="modern"] .mcf-grid { background:linear-gradient(180deg,rgba(255,255,255,.018),transparent); }
.mcf-footer[data-mcf-preset="dark_pro"] { background:radial-gradient(ellipse at 15% 0%,color-mix(in srgb,var(--mcf-accent) 18%,transparent),transparent 42%),var(--mcf-bg); }
.mcf-footer[data-mcf-preset="dark_pro"] .mcf-stat { background:linear-gradient(145deg,color-mix(in srgb,var(--mcf-panel) 90%,white 5%),var(--mcf-panel)); border-color:color-mix(in srgb,var(--mcf-accent) 24%,var(--mcf-border)); box-shadow:0 12px 30px rgba(0,0,0,.2); }
.mcf-footer[data-mcf-preset="dark_pro"] .mcf-stat-icon { border:1px solid color-mix(in srgb,var(--mcf-accent) 35%,transparent); box-shadow:0 0 18px color-mix(in srgb,var(--mcf-accent) 14%,transparent); }
.mcf-footer[data-mcf-preset="dark_pro"] .mcf-brand,.mcf-footer[data-mcf-preset="dark_pro"] .mcf-panel { background:linear-gradient(180deg,rgba(255,255,255,.025),transparent); }
.mcf-footer[data-mcf-preset="dark_pro"] .mcf-panel h3 { letter-spacing:1.35px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-stats { gap:7px; padding:12px 0; }
.mcf-footer[data-mcf-preset="compact"] .mcf-stat { min-height:58px; gap:9px; padding:8px 12px; border-radius:8px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-stat-icon { width:32px;height:32px;flex-basis:32px;font-size:13px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-stat-copy strong { font-size:16px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.mcf-footer[data-mcf-preset="compact"] .mcf-brand,.mcf-footer[data-mcf-preset="compact"] .mcf-panel { padding:15px 14px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-brand-title { font-size:17px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-brand p { margin:6px 0 9px; font-size:12px; line-height:1.6; }
.mcf-footer[data-mcf-preset="compact"] .mcf-panel h3 { margin-bottom:8px; padding-bottom:8px; font-size:11px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-items { gap:5px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-avatar { width:30px;height:30px;flex-basis:30px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-item-copy a { font-size:12px; }
.mcf-footer[data-mcf-preset="compact"] .mcf-bottom { min-height:42px; }
@media(max-width:1050px) { .mcf-footer[data-mcf-preset="minimal"] .mcf-grid,.mcf-footer[data-mcf-preset="compact"] .mcf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .mcf-footer[data-mcf-preset="minimal"] .mcf-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .mcf-footer[data-mcf-preset="minimal"] .mcf-stat:nth-child(2) { border-right:0; } .mcf-footer[data-mcf-preset="minimal"] .mcf-grid,.mcf-footer[data-mcf-preset="compact"] .mcf-grid { grid-template-columns:1fr; } }

/* 2.0.15: order-independent brand and panel layout */
.mcf-grid > .mcf-brand,.mcf-grid > .mcf-panel { min-width:0; }
.mcf-grid > :last-child { border-inline-end:0; }
@media (max-width:1050px) {
 .mcf-grid > .mcf-brand,.mcf-grid > .mcf-panel { border-bottom:1px solid var(--mcf-border); }
 .mcf-grid > :nth-child(2n) { border-inline-end:0; }
 .mcf-grid > :last-child { border-bottom:0; }
}
@media (max-width:650px) {
 .mcf-grid > .mcf-brand,.mcf-grid > .mcf-panel { border-inline-end:0; border-bottom:1px solid var(--mcf-border); }
 .mcf-grid > :last-child { border-bottom:0; }
}

/* 2.0.16 brand rendering: follow active RaxBoard theme logo settings */
.mcf-brand-title--clean { display:flex; align-items:center; justify-content:flex-start; width:100%; min-height:44px; gap:0; text-decoration:none; }
.mcf-brand-title--clean .mcf-theme-logo { display:block; max-height:80px; }
.mcf-brand-title--clean .mcf-brand-text { display:block; color:var(--mcf-text); font-size:clamp(18px,1.5vw,24px); font-weight:700; line-height:1.35; }
.mcf-theme-logo--dark { display:none!important; }
html[data-theme="dark"] .mcf-theme-logo--light { display:none!important; }
html[data-theme="dark"] .mcf-theme-logo--dark { display:block!important; }
.mcf-brand-title--clean + .mcf-social { margin-top:14px; }
.mcf-brand-tag,.mcf-brand > p { display:none!important; }

/* 2.0.17: deterministic footer columns and balanced brand block */
.mcf-footer .mcf-grid {
    display:flex !important;
    flex-flow:row nowrap;
    align-items:stretch;
}
.mcf-footer .mcf-grid > .mcf-brand,
.mcf-footer .mcf-grid > .mcf-panel {
    order:initial;
    flex:1 1 0;
    min-width:0;
    width:auto;
}
.mcf-footer .mcf-grid > .mcf-brand {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:22px;
    padding-top:30px;
    padding-bottom:30px;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-brand-title--clean {
    flex:0 0 auto;
    min-height:56px;
    align-items:center;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-social {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:0;
    padding-top:8px;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-theme-logo {
    max-width:min(100%,220px);
    max-height:90px;
    object-fit:contain;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-brand-text {
    overflow-wrap:anywhere;
}
@media(max-width:1050px) {
    .mcf-footer .mcf-grid { flex-wrap:wrap; }
    .mcf-footer .mcf-grid > .mcf-brand,
    .mcf-footer .mcf-grid > .mcf-panel {
        flex:1 1 calc(50% - 1px);
    }
}
@media(max-width:650px) {
    .mcf-footer .mcf-grid { flex-direction:column; }
    .mcf-footer .mcf-grid > .mcf-brand,
    .mcf-footer .mcf-grid > .mcf-panel {
        flex:1 1 auto;
        width:100%;
    }
    .mcf-footer .mcf-grid > .mcf-brand {
        min-height:140px;
        align-items:center;
        text-align:center;
    }
    .mcf-footer .mcf-grid > .mcf-brand .mcf-social { justify-content:center; }
}

/* 2.0.18: brand position is structurally fixed, independent of logo mode */
.mcf-footer .mcf-grid {
    display:grid !important;
    grid-template-columns: minmax(0,1.05fr) repeat(3,minmax(0,1fr));
    grid-auto-flow:row;
    align-items:stretch;
}
.mcf-footer .mcf-grid > .mcf-brand { grid-column:1; grid-row:1; order:0 !important; }
.mcf-footer .mcf-grid > .mcf-panel { order:0 !important; }
.mcf-footer .mcf-grid > .mcf-brand {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:20px;
    min-height:100%;
    padding-top:28px;
    padding-bottom:28px;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-brand-title--clean { min-height:58px; }
.mcf-footer .mcf-grid > .mcf-brand .mcf-theme-logo {
    max-width:min(100%,220px);
    max-height:88px;
    object-fit:contain;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-social { margin-top:0; padding-top:4px; }
@media(max-width:1050px) {
    .mcf-footer .mcf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mcf-footer .mcf-grid > .mcf-brand { grid-column:1; grid-row:1; }
}
@media(max-width:650px) {
    .mcf-footer .mcf-grid { grid-template-columns:minmax(0,1fr); }
    .mcf-footer .mcf-grid > .mcf-brand { grid-column:1; grid-row:1; }
    .mcf-footer .mcf-grid > .mcf-brand { min-height:130px; align-items:center; text-align:center; }
    .mcf-footer .mcf-grid > .mcf-brand .mcf-social { justify-content:center; }
}
/* Preset-specific grid rules must not change the brand column placement */
.mcf-footer[data-mcf-preset="minimal"] .mcf-grid,
.mcf-footer[data-mcf-preset="compact"] .mcf-grid {
    grid-template-columns:minmax(0,1.05fr) repeat(3,minmax(0,1fr));
}
@media(max-width:1050px) {
 .mcf-footer[data-mcf-preset="minimal"] .mcf-grid,
 .mcf-footer[data-mcf-preset="compact"] .mcf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
 .mcf-footer[data-mcf-preset="minimal"] .mcf-grid,
 .mcf-footer[data-mcf-preset="compact"] .mcf-grid { grid-template-columns:minmax(0,1fr); }
}

/* 2.0.19: richer brand identity without repeating the forum title */
.mcf-footer .mcf-grid > .mcf-brand {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    gap:17px;
    justify-content:center;
    background:
      radial-gradient(ellipse at 8% 12%, color-mix(in srgb,var(--mcf-accent) 13%,transparent), transparent 58%),
      linear-gradient(145deg, color-mix(in srgb,var(--mcf-panel) 84%,var(--mcf-accent)), transparent 78%);
}
.mcf-footer .mcf-grid > .mcf-brand::before {
    content:"";
    position:absolute;
    z-index:-1;
    width:190px;
    height:190px;
    right:-95px;
    bottom:-112px;
    border:1px solid color-mix(in srgb,var(--mcf-accent) 20%,transparent);
    border-radius:50%;
    box-shadow:0 0 0 18px color-mix(in srgb,var(--mcf-accent) 4%,transparent),
               0 0 0 38px color-mix(in srgb,var(--mcf-accent) 3%,transparent);
    pointer-events:none;
}
.mcf-footer .mcf-brand-signature {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    width:100%;
    max-width:290px;
}
.mcf-footer .mcf-brand-kicker {
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--mcf-accent);
    font-size:10px;
    font-weight:850;
    letter-spacing:1.5px;
    line-height:1.4;
}
.mcf-footer .mcf-brand-kicker::before {
    content:"";
    display:block;
    width:20px;
    height:2px;
    border-radius:2px;
    background:var(--mcf-accent);
    box-shadow:0 0 10px color-mix(in srgb,var(--mcf-accent) 55%,transparent);
}
.mcf-footer .mcf-brand-topics {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}
.mcf-footer .mcf-brand-topics span {
    display:inline-flex;
    align-items:center;
    min-height:27px;
    padding:4px 9px;
    border:1px solid color-mix(in srgb,var(--mcf-accent) 20%,var(--mcf-border));
    border-radius:999px;
    background:color-mix(in srgb,var(--mcf-panel) 70%,transparent);
    color:var(--mcf-muted);
    font-size:10px;
    font-weight:650;
    line-height:1.2;
    white-space:nowrap;
}
.mcf-footer .mcf-brand-topics span:first-child {
    color:var(--mcf-text);
    border-color:color-mix(in srgb,var(--mcf-accent) 42%,var(--mcf-border));
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-social {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    padding-top:2px;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-social a {
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border:1px solid var(--mcf-border);
    border-radius:10px;
    background:color-mix(in srgb,var(--mcf-panel) 78%,transparent);
    color:var(--mcf-accent);
    transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.mcf-footer .mcf-grid > .mcf-brand .mcf-social a:hover {
    transform:translateY(-2px);
    border-color:var(--mcf-accent);
    background:color-mix(in srgb,var(--mcf-accent) 12%,var(--mcf-panel));
}
@media(max-width:650px) {
    .mcf-footer .mcf-grid > .mcf-brand .mcf-brand-signature { align-items:center; }
    .mcf-footer .mcf-grid > .mcf-brand .mcf-brand-topics { justify-content:center; }
}

/* 2.0.20: user-editable text directly under the brand mark */
.mcf-footer .mcf-grid > .mcf-brand .mcf-brand-caption {
    display:block;
    width:100%;
    max-width:300px;
    margin:-7px 0 0;
    color:var(--mcf-muted);
    font-size:13px;
    line-height:1.7;
    font-weight:450;
    overflow-wrap:anywhere;
}
.mcf-footer .mcf-grid > .mcf-brand > p.mcf-brand-caption { display:block!important; }


/* RTL layout support for Arabic */
:dir(rtl) .mcf-footer { direction: rtl; text-align: right; }
:dir(rtl) .mcf-footer .mcf-social { direction: rtl; }
:dir(rtl) .mcf-footer .mcf-bottom { direction: rtl; }


/* 2.0.45: keep footer links readable against light theme surfaces. */
html[data-theme="light"] .mcf-footer,
html[data-theme-mode="light"] .mcf-footer {
    --mcf-link-color: color-mix(in srgb, var(--mcf-text) 94%, #000 6%);
    --mcf-meta-color: color-mix(in srgb, var(--mcf-text) 78%, var(--mcf-bg) 22%);
}
html[data-theme="light"] .mcf-footer .mcf-item-copy a,
html[data-theme-mode="light"] .mcf-footer .mcf-item-copy a,
html[data-theme="light"] .mcf-footer .mcf-bottom nav a,
html[data-theme-mode="light"] .mcf-footer .mcf-bottom nav a {
    color: var(--mcf-link-color);
    font-weight: 600;
}
html[data-theme="light"] .mcf-footer .mcf-item-copy small,
html[data-theme-mode="light"] .mcf-footer .mcf-item-copy small,
html[data-theme="light"] .mcf-footer .mcf-bottom,
html[data-theme-mode="light"] .mcf-footer .mcf-bottom {
    color: var(--mcf-meta-color);
}
html[data-theme="light"] .mcf-footer .mcf-item-copy a:hover,
html[data-theme-mode="light"] .mcf-footer .mcf-item-copy a:hover,
html[data-theme="light"] .mcf-footer .mcf-bottom nav a:hover,
html[data-theme-mode="light"] .mcf-footer .mcf-bottom nav a:hover {
    color: var(--mcf-accent);
}

/* 2.0.47: improve light-mode contrast without changing typography weight. */
html[data-theme="light"] .mcf-footer .mcf-item-copy a,
html[data-theme-mode="light"] .mcf-footer .mcf-item-copy a,
html[data-theme="light"] .mcf-footer .mcf-bottom nav a,
html[data-theme-mode="light"] .mcf-footer .mcf-bottom nav a {
    color: #292333 !important;
}
html[data-theme="light"] .mcf-footer .mcf-item-copy small,
html[data-theme-mode="light"] .mcf-footer .mcf-item-copy small,
html[data-theme="light"] .mcf-footer .mcf-bottom,
html[data-theme-mode="light"] .mcf-footer .mcf-bottom {
    color: #51495b !important;
}
html[data-theme="light"] .mcf-footer .mcf-item-copy a:hover,
html[data-theme-mode="light"] .mcf-footer .mcf-item-copy a:hover,
html[data-theme="light"] .mcf-footer .mcf-bottom nav a:hover,
html[data-theme-mode="light"] .mcf-footer .mcf-bottom nav a:hover {
    color: #a20b82 !important;
}


/* 2.0.48: compact icon-only theme mode switcher across theme styles. */
.mcf-footer .mcf-controls #rbThemeBar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 38px !important;
    padding: 3px !important;
    box-sizing: border-box !important;
}
.mcf-footer .mcf-controls #rbThemeBar button[data-m] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}
.mcf-footer .mcf-controls #rbThemeBar button[data-m] i,
.mcf-footer .mcf-controls #rbThemeBar button[data-m] svg {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
    line-height: 16px !important;
}


/* 2.0.49: avoid duplicate Aslitium theme statistics when MAST footer is active. */
@supports selector(body:has(.mcf-footer)) {
    body:has(.mcf-footer) .as-statstrip {
        display: none !important;
    }
}
