/* Shared footer also renders on pages outside the homepage shell. */
.nm-footer-legacy { margin-left: 232px; }
.nm-footer-legacy .nm-footer--ecosystem { margin-top: 0; }
.nm-footer--ecosystem {
    clear: both;
    margin-top: 32px;
    padding: 0;
    border-top: 1px solid #e5e5e5;
    background: #ffffff;
    color: #737373;
    font-family: var(--nm-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 13px;
    line-height: 1.7;
}
.nm-footer--ecosystem,
.nm-footer--ecosystem *,
.nm-footer--ecosystem *::before,
.nm-footer--ecosystem *::after { box-sizing: border-box; }
.nm-footer--ecosystem > .nm-container {
    width: 100%;
    max-width: 1152px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}
.nm-footer--ecosystem p { margin: 0; color: #737373; font-size: 13px; line-height: 1.7; }
.nm-footer--ecosystem a { color: inherit; text-decoration: none; }
.nm-footer--ecosystem .nm-footer-main {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0 20px;
}
.nm-footer--ecosystem .nm-footer-brand { min-width: 0; flex: 0 1 220px; }
.nm-footer--ecosystem .nm-footer-partners { min-width: 0; flex: 0 1 auto; margin: 0; }
.nm-footer--ecosystem .nm-footer-brand .nm-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #171717;
    font-size: 15px;
    line-height: 1.4;
}
.nm-footer--ecosystem .nm-footer-brand .nm-brand strong { font-weight: 600; letter-spacing: -.02em; }
.nm-footer--ecosystem .nm-footer-brand .nm-brand-logo { display: block; flex: 0 0 32px; width: 32px; height: 32px; }
.nm-footer--ecosystem .nm-footer-brand > p { margin-top: 12px; }
.nm-footer--ecosystem .nm-footer-heading {
    margin: 0 0 12px;
    color: #171717;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
}
.nm-footer--ecosystem .nm-footer-partner-links { display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 24px; max-width: 100%; }
.nm-footer--ecosystem :is(.nm-footer-link, .nm-footer-apply) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #737373;
    font-size: 13px;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}
/* Preserve link hierarchy when the shared theme normalizes anchor colors. */
.nm-footer--ecosystem a.nm-footer-link { color: #64748b !important; }
.nm-footer--ecosystem a.nm-footer-apply { color: #2563eb !important; }
.nm-footer--ecosystem :is(.nm-footer-link, .nm-footer-apply):hover { color: #171717 !important; }
.nm-footer--ecosystem .nm-footer-qrcode { flex: 0 0 84px; width: 84px; margin-left: auto; }
.nm-footer--ecosystem .nm-footer-qrcode > a { display: block; width: 84px; height: 84px; }
.nm-footer--ecosystem .nm-footer-qrcode img { display: block; width: 84px; height: 84px; padding: 4px; border: 1px solid #e5e5e5; border-radius: 8px; background: #ffffff; object-fit: contain; }
.nm-footer--ecosystem .nm-footer-qrcode-caption { display: block; margin-top: 6px; color: #94a3b8; font-size: 11px; line-height: 1.5; text-align: center; }
.nm-footer--ecosystem .nm-footer-row {
    display: block;
    margin: 0;
    padding: 14px 0 16px;
    border-top: 1px solid #e5e5e5;
    color: #737373;
    font-size: 12px;
    line-height: 1.7;
}
.nm-footer--ecosystem .nm-footer-legal { display: block; color: inherit; font-size: inherit; overflow-wrap: anywhere; }
.nm-footer--ecosystem .nm-footer-legal a:hover { color: #171717; text-decoration: underline; text-underline-offset: 3px; }
.nm-footer--ecosystem :focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; }
@media (min-width: 901px) {
    .nm-footer--ecosystem > .nm-container { max-width: 1680px; padding-right: 32px; padding-left: 32px; }
}
@media (min-width: 901px) and (max-width: 1299px) {
    .nm-footer-legacy { margin-left: 216px; }
    .nm-footer--ecosystem > .nm-container { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 900px) {
    .nm-footer-legacy { margin-left: 0; }
}
@media (max-width: 767px) {
    .nm-footer--ecosystem .nm-footer-main { flex-direction: column; gap: 20px; }
    .nm-footer--ecosystem .nm-footer-brand { flex-basis: auto; }
    .nm-footer--ecosystem .nm-footer-partners { flex: none; width: 100%; max-width: none; margin: 0; }
    .nm-footer--ecosystem .nm-footer-partner-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nm-footer--ecosystem .nm-footer-qrcode { align-self: flex-start; margin-left: 0; }
}
@media (max-width: 600px) {
    .nm-footer--ecosystem { margin-top: 24px; }
    .nm-footer--ecosystem > .nm-container { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 400px) {
    .nm-footer--ecosystem .nm-footer-partner-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .nm-footer--ecosystem :is(.nm-footer-link, .nm-footer-apply) { transition: none; }
}
