/* dogmaOS footer: compact layered cards. No wheel or page-scroll interception. */
html body footer.footer-community { padding-top:clamp(64px,10vh,100px)!important; }
html body .footer-community .footer-university { display:flex;align-items:center;justify-content:space-between;gap:32px;padding-bottom:24px;margin-bottom:28px;border-bottom:1px solid var(--footer-line); }
html body .footer-community .footer-university-mark { width:min(100%,420px); }
html body .footer-community .footer-university-mark > a { display:block;width:100%;padding:10px 14px;border:0;border-radius:0;background:transparent;box-shadow:none; }
html body .footer-community .footer-university img { display:block;width:100%;height:auto;max-height:74px;object-fit:contain; }
html body .footer-community .footer-university-name { display:block;font-size:17px;line-height:1.4;font-weight:700;color:#12183f; }
html body .footer-community .footer-university-name span { font-size:22px; }
html body .footer-community .footer-team-edition { flex-shrink:0;font-size:13px;letter-spacing:.12em;font-weight:700;text-align:right; }
html body .footer-community .footer-team-edition span { display:block;font-size:12px;letter-spacing:.04em;font-weight:400;margin-top:8px; }
html body .footer-community .dogma-footer-grid, html body .footer-community .dogma-footer-grid.has-siblings { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(320px,1.22fr);gap:clamp(24px,3vw,40px);align-items:start;padding:8px 0 14px; }
html body .footer-community .dogma-footer-brand { grid-column:auto; }
html body .footer-community .footer-navigation { display:grid;gap:24px; }
html body .footer-community .footer-connect { margin-top:18px; }
html body .footer-community .footer-socials { display:flex;flex-wrap:wrap;gap:10px;margin-top:14px; }
html body .footer-community a.footer-social { position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--footer-line);border-radius:10px;background:rgba(255,255,255,.62);color:var(--footer-heading)!important;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease; }
html body .footer-community a.footer-social:hover { transform:translateY(-2px);box-shadow:0 6px 18px rgba(40,90,120,.1); }
html body .footer-community .footer-social svg { width:21px;height:21px; }
html body .footer-community .footer-rednote-mark { display:block;font:800 10px/1.2 Arial,"Microsoft YaHei",sans-serif;color:#c81935;letter-spacing:-.8px; }
html body .footer-community .footer-social-tooltip { position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:200px;padding:5px 8px;border-radius:6px;background:var(--footer-heading);color:var(--dogma-page,#f7fafc);font-size:12px;line-height:1.4;opacity:0;visibility:hidden;pointer-events:none; }
html body .footer-community .footer-social:is(:hover,:focus-visible) .footer-social-tooltip { opacity:1;visibility:visible; }
html body .footer-community .footer-icon-credit { font-size:10px;line-height:1.5;margin-top:10px;max-width:260px; }
html body .footer-community .footer-sponsors { margin:0;min-width:0;padding:0;border:0; }
html body .footer-community .footer-sponsors > h2 { text-align:center;margin-bottom:4px; }
html body .footer-community .footer-sponsor-stack { position:relative;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;isolation:isolate; }
html body .footer-community .footer-sponsor-card { display:flex;align-items:center;justify-content:center;flex:0 0 210px;min-height:116px;padding:20px;border:1px solid rgba(75,113,143,.1);border-radius:18px;background:#fff;box-shadow:0 12px 25px rgba(37,71,98,.08);text-decoration:none!important;color:#173950!important; }
html body .footer-community .footer-sponsor-card img { display:block;width:100%;height:64px;object-fit:contain; }
html body .footer-community .footer-sponsor-card--dark { background:#152430;color:#fff!important; }
html body .footer-community .footer-sponsor-name { font-size:18px;font-weight:700;text-align:center; }
html body .footer-community [data-ready] .footer-sponsor-stack { display:block;height:176px;--stack-shift:clamp(46px,5vw,66px); }
html body .footer-community [data-ready] .footer-sponsor-card { position:absolute;top:18px;left:50%;width:min(240px,calc(100% - 108px));height:132px;min-height:0;transform:translateX(-50%);transition:transform .65s cubic-bezier(.22,.7,.22,1),opacity .55s ease,box-shadow .55s ease;will-change:transform; }
html body .footer-community .footer-sponsor-card[data-position="front"] { z-index:4;opacity:1;box-shadow:0 17px 32px rgba(34,63,87,.14);transform:translateX(-50%) scale(1); }
html body .footer-community .footer-sponsor-card[data-position="left"] { z-index:2;opacity:.52;transform:translateX(calc(-50% - var(--stack-shift))) translateY(8px) scale(.86); }
html body .footer-community .footer-sponsor-card[data-position="right"] { z-index:2;opacity:.52;transform:translateX(calc(-50% + var(--stack-shift))) translateY(8px) scale(.86); }
html body .footer-community .footer-sponsor-card[data-position="back"] { z-index:1;opacity:.24;transform:translateX(-50%) translateY(18px) scale(.72); }
html body .footer-community .footer-sponsor-controls { display:flex;align-items:center;justify-content:center;gap:10px;height:30px; }
html body .footer-community .footer-sponsor-controls[hidden] { display:none; }
html body .footer-community .footer-sponsor-controls button { display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--footer-heading);font:400 22px/1 Arial,sans-serif;cursor:pointer; }
html body .footer-community .footer-sponsor-controls button:hover { background:rgba(66,119,156,.08); }
html body .footer-community .footer-sponsor-controls button:focus-visible, html body .footer-community .footer-sponsor-stack:focus-visible { outline:2px solid var(--footer-accent);outline-offset:3px; }
html body .footer-community .footer-sponsor-dots { display:flex;gap:0; }
html body .footer-community .footer-sponsor-dots button { flex-basis:24px;width:24px; }
html body .footer-community .footer-sponsor-dots span { display:block;width:5px;height:5px;border-radius:50%;background:var(--footer-accent);opacity:.28;transition:width .25s ease,opacity .25s ease; }
html body .footer-community .footer-sponsor-dots [aria-pressed="true"] span { width:15px;border-radius:9px;opacity:1; }
html body .footer-community .footer-sponsor-controls .footer-sponsors-toggle { font-size:12px; }
html body .footer-community .footer-mark-credit, html body .footer-community .footer-sponsor-credit { display:block;margin-top:7px;font:400 10px/1.5 Inter,Arial,sans-serif;color:var(--footer-text); }
html body .footer-community .footer-sponsor-credit { text-align:center;min-height:30px;margin:7px 12px 0; }
html body .footer-community .footer-sponsor-notice { font-size:10px;line-height:1.5;text-align:center;max-width:300px;margin:2px auto 0; }
html body .footer-community .dogma-footer-resources { margin-bottom:6px; }
html body .footer-community .dogma-footer-license { margin-top:16px; }


@media(max-width:1050px) and (min-width:701px){html body .footer-community .dogma-footer-grid, html body .footer-community .dogma-footer-grid.has-siblings {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}html body .footer-community .footer-sponsors {grid-column:1/-1;width:380px;max-width:100%;justify-self:center;margin-top:4px;}}
@media(max-width:700px){html body footer.footer-community {padding-top:56px!important;}html body .footer-community .footer-university {display:block;padding-bottom:20px;margin-bottom:24px;}html body .footer-community .footer-team-edition {text-align:left;margin-top:16px;}html body .footer-community .footer-university-mark>a {padding:10px;}html body .footer-community .dogma-footer-grid, html body .footer-community .dogma-footer-grid.has-siblings {grid-template-columns:minmax(0,1fr);gap:28px;}html body .footer-community .footer-sponsors {width:380px;max-width:100%;justify-self:center;}html body .footer-community .footer-navigation {grid-template-columns:minmax(0,1fr);gap:24px;}}
@media(prefers-reduced-motion:reduce){html body .footer-community :is(.footer-sponsor-card,.footer-sponsor-dots span,a.footer-social) {transition:none;}html body .footer-community .footer-sponsors-toggle {display:none;}}

/* Keep the ship centred in its round mark rather than at the absolute origin. */
html body .wiki-unified-footer.footer-community .dogma-footer-logo {display:grid;place-items:center;background:#fff;border-radius:50%;width:48px;height:48px;flex:0 0 48px;}
html body .wiki-unified-footer.footer-community .dogma-footer-logo img {position:static;display:block;width:34px;height:40px;margin:0;transform:none;object-fit:contain;}

/* Preserve the alpha channel of the supplied school mark on every page. */
html body .footer-community .footer-university img { background:transparent; }

