{% scope_css %}


.dgrd-footer {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  color: var(--dgrd-footer-text, #34373B);
}

.dgrd-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  gap: 48px !important;
}

/* ---------- Top row: brand + columns ----------------------------------- */
.dgrd-footer__top {
  display: grid !important;
  grid-template-columns: minmax(0, 356px) minmax(0, 1fr) !important;
  gap: 80px !important;
  align-items: start;
}

.dgrd-footer__brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
  align-items: flex-start !important;
  min-width: 0;
}

.dgrd-footer__logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.dgrd-footer__logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
}

.dgrd-footer__description,
.dgrd-footer__description p {
  margin: 0 !important;
  color: var(--dgrd-footer-text, #34373B) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.dgrd-footer__description > * + * {
  margin-top: 12px !important;
}

/* ---------- CTA buttons row --------------------------------------------
 * Desktop: keep both buttons on a single row underneath the brand
 * description. The brand column is capped at 356px in the top grid
 * which is narrower than the combined button widths + 24px gap, so
 * the row needs to (1) opt out of wrapping and (2) size to its
 * content so it can overflow the brand column visually (this matches
 * Figma where the buttons sit at `left=42` as siblings of the brand
 * block, not children constrained to its 356px).
 */
.dgrd-footer__ctas {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 24px !important;
  margin: 0 !important;
  width: max-content !important;
  max-width: 100%;
}

.dgrd-footer__ctas--mobile {
  display: none !important;
}

.dgrd-footer__cta {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* ---------- Link columns ---------------------------------------------- */
.dgrd-footer__columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 81px !important;
  align-items: start;
  min-width: 0;
}

/* When the editor configures a different number of columns, fall back
 * to auto-fit so the footer doesn't break. */
.dgrd-footer[data-columns="1"] .dgrd-footer__columns {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.dgrd-footer[data-columns="2"] .dgrd-footer__columns {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.dgrd-footer[data-columns="3"] .dgrd-footer__columns {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.dgrd-footer[data-columns="5"] .dgrd-footer__columns {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.dgrd-footer[data-columns="6"] .dgrd-footer__columns {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.dgrd-footer__col {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  align-items: flex-start !important;
  min-width: 0;
}

.dgrd-footer__col-heading {
  margin: 0 !important;
  color: var(--dgrd-footer-heading, #34373B) !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.dgrd-footer__col-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  align-items: flex-start !important;
  width: 100%;
}

.dgrd-footer__col-item {
  margin: 0 !important;
  padding: 0 !important;
}

.dgrd-footer__col-link {
  display: inline-block;
  margin: 0;
  padding: 0 ;
  color: var(--dgrd-footer-text, #34373B);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dgrd-footer__col-link p {
  font-weight: 400;
  font-size: 16px;
  margin: 0 ;
  padding: 0 ;
  color: inherit;
  line-height: inherit;
  letter-spacing: 0;
  text-decoration: inherit;
}

.dgrd-footer__col-link:hover,
.dgrd-footer__col-link:focus-visible {
  color: var(--dgrd-footer-link-hover, #1E5D85) !important;
  text-decoration: none;
  outline: none;
}

.dgrd-footer__col-link--no-href {
  cursor: default;
}

/* ---------- Divider ---------------------------------------------------- */
.dgrd-footer__divider {
  width: 100% !important;
  height: 1px !important;
  border: 0 !important;
  margin: 0 !important;
  background-color: var(--dgrd-footer-divider, #34373B) !important;
  opacity: var(--dgrd-footer-divider-opacity, 0.2) !important;
}

/* ---------- Bottom row: copyright | brandline | socials --------------- */
.dgrd-footer__bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100%;
}

.dgrd-footer__copyright {
  margin: 0 !important;
  flex: 0 1 auto;
  color: var(--dgrd-footer-text, #34373B) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.dgrd-footer__brandline {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* When all three exist, the absolute centring is achieved by setting
   * the brandline's position relative to the row using `position: relative`
   * + `left: 50%; transform: translateX(-50%)` would break the flex
   * layout, so we lean on `justify-content: space-between` and an
   * `auto` margin pair instead. */
  margin-left: auto;
  margin-right: auto;
}

.dgrd-footer__brandline-link {
  display: inline-flex;
  line-height: 0;
}

.dgrd-footer__brandline-image {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.dgrd-footer__socials {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  flex: 0 0 auto;
}

.dgrd-footer__social-item {
  margin: 0 !important;
  padding: 0 !important;
}

.dgrd-footer__social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px;
  height: 24px;
  color: var(--dgrd-footer-text, #34373B) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.dgrd-footer__social-link:hover,
.dgrd-footer__social-link:focus-visible {
  color: var(--dgrd-footer-link-hover, #1E5D85) !important;
  outline: none;
}

.dgrd-footer__social-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

.dgrd-footer__social-icon-image {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

/* =============================================================================
   Tablet (768–1023px) — node 497-2061
   Single-column flow: brand → columns row → buttons → bottom row.
   ============================================================================ */
@media (min-width: 1024px) {
  .dgrd-footer__col {
    min-width: max-content;
  }

  .dgrd-footer__col-link,
  .dgrd-footer__col-link p {
    white-space: nowrap !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .dgrd-footer__inner {
    gap: 32px !important;
  }

  .dgrd-footer__top {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }

  .dgrd-footer__brand {
    max-width: 480px;
  }

  .dgrd-footer__ctas--desktop {
    display: none !important;
  }

  .dgrd-footer__ctas--mobile {
    display: flex !important;
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: 100%;
  }

  .dgrd-footer__columns {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 48px !important;
  }
}

/* =============================================================================
   Mobile (≤ 767px) — node 513-2082
   Everything stacks. Link columns become a vertical list.
   ============================================================================ */
@media (max-width: 767px) {
  .dgrd-footer__inner {
    padding: 0 16px;
    gap: 24px !important;
  }

  .dgrd-footer__top {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .dgrd-footer__brand {
    gap: 24px !important;
  }

  .dgrd-footer__ctas--desktop {
    display: none !important;
  }

  .dgrd-footer__ctas--mobile {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: auto !important;
    max-width: 100%;
  }

  .dgrd-footer__columns {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .dgrd-footer__col {
    gap: 8px !important;
  }

  .dgrd-footer__bottom {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  /* On mobile the brandline and socials sit on one row, copyright on
   * its own row below them. We achieve this with a CSS order swap. */
  .dgrd-footer__brandline {
    order: 1;
    flex: 1 1 auto;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .dgrd-footer__socials {
    order: 2;
    flex: 0 0 auto;
    justify-content: flex-end !important;
    margin-left: auto;
  }

  .dgrd-footer__copyright {
    order: 3;
    flex: 1 1 100%;
  }

  .dgrd-footer__brandline-image {
    height: 36px;
  }
}

{% end_scope_css %}
