/* Consumer site -> Developers portal bridge. Additive only; no downloader UI overrides. */
.gis-api-bridge {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    max-width: 1080px;
    margin: clamp(24px, 5vw, 56px) auto;
    padding: clamp(28px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, .22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 10%, rgba(124, 58, 237, .32), transparent 38%),
        linear-gradient(135deg, #090a12 0%, #101322 58%, #111827 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .2);
}

.gis-api-bridge::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -45% auto auto -8%;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(103, 232, 249, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(103, 232, 249, .035), 0 0 0 92px rgba(139, 92, 246, .03);
}

.gis-api-bridge-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a5f3fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gis-api-bridge-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 18px #5eead4;
}

.gis-api-bridge h2 {
    max-width: 680px;
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.gis-api-bridge p {
    max-width: 680px;
    margin: 0;
    color: #b8c0d4;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
}

.gis-api-bridge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.gis-api-bridge-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.gis-api-bridge-primary {
    background: #67e8f9;
    color: #071018;
    box-shadow: 0 12px 32px rgba(103, 232, 249, .18);
}

.gis-api-bridge-secondary {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .055);
    color: #fff;
}

.gis-api-bridge-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(103, 232, 249, .22);
}

.gis-api-bridge-code {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(3, 5, 13, .72);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .25);
    transform: rotate(1.5deg);
}

.gis-api-bridge-code > div {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.gis-api-bridge-code span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}

.gis-api-bridge-code b {
    margin-left: auto;
    color: #8ea0bc;
    font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gis-api-bridge-code code {
    display: block;
    padding: 24px 20px 26px;
    color: #c4b5fd;
    font: 600 13px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gis-api-bridge-code i { color: #67e8f9; font-style: normal; }
.gis-api-bridge-code strong { color: #bef264; font-weight: 600; }
.gis-api-bridge-code em { display: inline-block; margin-top: 12px; color: #5eead4; font-style: normal; }

.footer-api-column .footer-api-lead,
.footer-col .footer-api-lead {
    color: #67e8f9 !important;
    font-weight: 800 !important;
}

.footer-api-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(103, 232, 249, .14);
    color: #a5f3fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.nav-link-developers {
    border-color: rgba(6, 182, 212, .22) !important;
    background: linear-gradient(135deg, #ecfeff, #eef2ff) !important;
}

.nav-link-developers .nav-link-label { color: #0e7490 !important; }

.nav-item-api { position: relative !important; }
.nav-item-api::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    min-width: 620px;
    height: 14px;
}

.nav-api-trigger { appearance: none; font: inherit; cursor: pointer; }
.nav-api-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(620px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 22px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .2);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(.985);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 100002;
}

.nav-item-api.open .nav-api-menu,
.nav-item-api:hover .nav-api-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-api-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 10px 14px;
    border-bottom: 1px solid #e9eef5;
}

.nav-api-menu-head div { display: flex; flex-direction: column; gap: 2px; }
.nav-api-menu-head strong { color: #0f172a; font-size: 15px; }
.nav-api-menu-head span { color: #64748b; font-size: 11px; }
.nav-api-menu-head > a { color: #0891b2; font-size: 12px; font-weight: 800; text-decoration: none; }

.nav-api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding-top: 10px;
}

.nav-api-grid > a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
    color: #334155;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.nav-api-grid > a:hover { background: #f1f5ff; transform: translateX(2px); }
.nav-api-grid svg { width: 25px; height: 25px; flex: 0 0 25px; color: #6366f1; }
.nav-api-grid a:nth-child(1) svg,
.nav-api-grid a:nth-child(2) svg,
.nav-api-grid a:nth-child(3) svg { color: #d946ef; }
.nav-api-grid a:nth-child(4) svg { color: #111827; }
.nav-api-grid a:nth-child(5) svg { color: #0f172a; }
.nav-api-grid a:nth-child(6) svg { color: #e60023; }
.nav-api-grid a:nth-child(7) svg { color: #229ed9; }
.nav-api-grid span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.nav-api-grid b { color: #111827; font-size: 12px; }
.nav-api-grid small { overflow: hidden; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.menu-item-developer-api {
    margin: 8px 14px;
    padding: 13px 14px !important;
    border: 1px solid rgba(8, 145, 178, .16);
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfeff, #eef2ff);
    color: #0e7490 !important;
    font-weight: 800 !important;
}

.menu-item-developer-api > span { display: flex; flex-direction: column; gap: 2px; }
.menu-item-developer-api small { color: #64748b; font-size: 10px; font-weight: 700; }

.mobile-api-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: -3px 14px 10px;
}

.mobile-api-links a {
    padding: 8px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

@media screen and (min-width: 768px) and (max-width: 1360px) {
    .nav-link-developers { min-width: 44px !important; width: 44px !important; padding: 0 !important; }
    .nav-link-developers .nav-link-label { display: none !important; }
}

@media screen and (min-width: 768px) and (max-width: 900px) {
    .nav-api-menu { right: -190px; width: min(560px, calc(100vw - 24px)); }
}

@media (max-width: 720px) {
    .gis-api-bridge { grid-template-columns: 1fr; margin-inline: 16px; border-radius: 22px; }
    .gis-api-bridge-code { transform: none; }
    .gis-api-bridge-actions { flex-direction: column; }
    .gis-api-bridge-actions a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .gis-api-bridge-actions a { transition: none; }
}
