/* Stack the shared AcuGIS bar above the GeoJibe menu and docs chrome. */

:root {
  --acugis-chrome-offset: 72px;
  --gj-docs-chrome-height: calc(188px + var(--acugis-chrome-offset));
}

@media (max-width: 720px) {
  :root {
    --acugis-chrome-offset: 64px;
  }
}

.site-header {
  top: var(--acugis-chrome-offset);
}

.md-header {
  top: calc(var(--acugis-chrome-offset) + var(--gj-site-header-height, 80px));
}

/* Keep product menus usable under the main bar. */
.sidenav,
nav.gj-sidenav {
  top: var(--acugis-chrome-offset);
  height: calc(100% - var(--acugis-chrome-offset));
  z-index: 1500;
}

.sidenav-overlay,
.gj-sidenav-overlay {
  z-index: 1400;
}

/* Site footer. Scoped so GeoJibe and Materialize rules do not restyle it. */
footer.acugis-site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
}

footer.acugis-site-footer * {
  box-sizing: border-box;
}

footer.acugis-site-footer .acugis-sf-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

footer.acugis-site-footer .acugis-sf-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
}

footer.acugis-site-footer .acugis-sf-logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.2;
}

footer.acugis-site-footer .acugis-sf-brand p:last-child {
  max-width: 280px;
  margin: 0;
  font-size: 15px;
  color: #94a3b8;
}

footer.acugis-site-footer h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
}

footer.acugis-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.acugis-site-footer li {
  margin: 0 0 10px;
}

footer.acugis-site-footer a {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

footer.acugis-site-footer a:hover,
footer.acugis-site-footer a:focus {
  color: #ffffff;
}

footer.acugis-site-footer .acugis-sf-copy {
  margin: 40px 0 0;
  padding: 24px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 1100px) {
  footer.acugis-site-footer .acugis-sf-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  footer.acugis-site-footer .acugis-sf-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  footer.acugis-site-footer .acugis-sf-inner {
    width: calc(100% - 32px);
  }

  footer.acugis-site-footer .acugis-sf-grid {
    grid-template-columns: 1fr;
  }
}
