/* Shared public footer for Cloud, Build, and Blog. */
.nw-footer {
  --footer-ink: #0f1424;
  --footer-text: #515a73;
  --footer-muted: #59657b;
  --footer-line: rgba(20, 34, 80, 0.10);
  border-top: 1px solid var(--footer-line);
  background: #fff;
  color: var(--footer-text);
  font: 400 0.875rem/1.65 "Google Sans", "Product Sans", "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.nw-footer,
.nw-footer * {
  box-sizing: border-box;
}

.nw-footer a {
  color: inherit;
  text-decoration: none;
}

.nw-footer a:hover {
  color: var(--footer-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nw-footer a:focus-visible {
  outline: 2px solid #4f5bd5;
  outline-offset: 3px;
}

.nw-footer__shell {
  width: 100%;
  padding-inline: clamp(20px, 4vw, 72px);
}

.nw-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(32px, 4vw, 56px) 28px;
}

.nw-footer__brand,
.nw-footer__group {
  min-width: 0;
}

.nw-footer__brand-link {
  display: inline-block;
  margin-block-end: 16px;
}

.nw-footer__logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
}

.nw-footer__brand p {
  max-width: 320px;
  margin: 0;
  color: var(--footer-text);
  font: inherit;
}

.nw-footer__group h4 {
  margin: 0 0 10px;
  color: var(--footer-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.nw-footer__group nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nw-footer__group a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nw-footer__group a.nw-footer__product {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 8px;
  color: var(--footer-ink);
  font-weight: 500;
}

.nw-footer__product img {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 6px;
}

.nw-footer__product--cloud .nw-footer__suffix { color: #4a58e0; }
.nw-footer__product--build .nw-footer__suffix { color: #18a77c; }
.nw-footer__product--support .nw-footer__suffix { color: #3d54de; }

.nw-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.nw-footer__copyright {
  margin: 0;
  color: inherit;
  font: inherit;
}

.nw-footer__resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

@media (max-width: 1020px) {
  .nw-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 24px;
  }

  .nw-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nw-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .nw-footer__group nav { gap: 2px; }

  .nw-footer__group a {
    display: block;
    min-height: 32px;
    padding-block: 4px;
  }

  .nw-footer__group a.nw-footer__product { min-height: 32px; }

  .nw-footer__base {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nw-footer__resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
  }

  .nw-footer__resources a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .nw-footer__logo { width: min(168px, 100%); }
}
