/* Shared footer: existing brand, links and office details. */
.nx-footer.nx-footer--curated { padding: 0 !important; }
.nx-footer-shell {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin-inline: auto;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  row-gap: 1.5rem;
}
.nx-footer-top,
.nx-footer-brand { display: contents; }
.nx-footer-logo-row { display: flex; justify-content: center; align-self: center; grid-column: 2; grid-row: 1; }
.nx-footer-email { grid-column: 1; grid-row: 1; align-self: center; }
.nx-footer--curated .nx-footer-logo { margin: 0; line-height: 0; }
.nx-footer--curated .nx-footer-logo img { display: block; width: auto; height: 38px; margin: 0; }
.nx-footer-heading,
.err-footer .nx-footer-category-title {
  margin: 0 0 .75rem;
  font: 700 .72rem/1.4 var(--font-sans, 'DM Sans', sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.nx-footer-email .nx-footer-heading { margin-bottom: .4rem; color: rgba(255,255,255,.5); }
.nx-footer--curated a { text-decoration: none; transition: color .18s ease; }
.nx-footer-email a { font-size: .9rem; color: rgba(255,255,255,.8); overflow-wrap: anywhere; }
.nx-footer-socials { display: flex; gap: .6rem; grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
.nx-footer-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.025);
}
.nx-footer-links { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1.4fr 1fr 1fr; gap: 1.75rem; }
.nx-footer-group { min-width: 0; }
.nx-footer-group-list { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.nx-footer-group-list a { font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.62); }
.nx-footer--curated a:hover { color: #fff; }
.nx-footer--curated a:focus-visible { outline: 2px solid #1db87a; outline-offset: 5px; border-radius: 3px; }
.nx-footer-office-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  border-block: 1px solid rgba(255,255,255,.09);
  padding-block: 1.1rem;
}
.nx-footer--curated .nx-footer-office {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .65rem 1.5rem;
}
.nx-footer--curated .nx-footer-office-label { grid-column: 1 / -1; font-size: .7rem; letter-spacing: .12em; color: #70cba4; }
.nx-footer--curated .nx-footer-office-addr { font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.62); }
.nx-footer--curated .nx-footer-office-tel { font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.84); }
.nx-footer-bottomline { grid-column: 1 / -1; font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.42); margin-top: -.5rem; }
.err-footer-links .nx-footer-category-title { flex-basis: 100%; margin-bottom: 0; }

@media (max-width: 1100px) {
  .nx-footer--curated .nx-footer-office { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
}
@media (max-width: 760px) {
  .nx-footer-shell { padding: 1.5rem; row-gap: 1rem; }
  .nx-footer--curated .nx-footer-logo img { height: 30px; }
  .nx-footer-logo-row { grid-column: 1 / -1; }
  .nx-footer-email { grid-column: 1 / -1; grid-row: 2; justify-self: center; text-align: center; }
  .nx-footer-email .nx-footer-heading { display: none; }
  .nx-footer-links { grid-row: 5; display: block; }
  .nx-footer-group:not(:last-child),
  .nx-footer-group .nx-footer-heading { display: none; }
  .nx-footer-group-list { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1rem; }
  .nx-footer-group-list a { font-size: .72rem; padding-block: .4rem; }
  .nx-footer-office-row { grid-row: 3; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: .25rem .9rem; border-top: 0; }
  .nx-footer--curated .nx-footer-office { gap: .4rem; }
  .nx-footer--curated .nx-footer-office-addr,
  .nx-footer--curated .nx-footer-office-tel { font-size: .8rem; line-height: 1.6; }
  .nx-footer-socials { grid-column: 1 / -1; grid-row: 4; justify-self: center; gap: .6rem; }
  .nx-footer-socials a { width: 32px; height: 32px; }
  .nx-footer-bottomline { grid-row: 6; margin-top: -.5rem; text-align: center; font-size: .7rem; }
}
@media (max-width: 360px) {
  .nx-footer-shell { padding-inline: 1rem; }
  .nx-footer-office-row { gap: .75rem; }
}
