/* Apply the approved homepage grid to the shared footer across page releases. */
.dt-site-footer.complete-footer {
  --footer-ink: #101d38;
  --footer-muted: #53627b;
  --footer-line: #e0e7f2;
  --footer-blue: #0b5fff;
  padding: 0 !important;
  border-block-start: 1px solid var(--footer-line) !important;
  background: #fff !important;
  color: var(--footer-ink) !important;
}

.dt-site-footer.complete-footer .dt-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0 clamp(1.4rem, 3.4vw, 3.5rem);
  inline-size: 100%;
  max-inline-size: 85rem !important;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 3.2vw, 2.75rem) 1.6rem !important;
}

.dt-site-footer.complete-footer .footer-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

.dt-site-footer.complete-footer .wordmark img {
  inline-size: auto !important;
  max-inline-size: 100%;
  block-size: 1.625rem !important;
}

.dt-site-footer.complete-footer .footer-brand-row > div:first-child > p {
  max-inline-size: 17rem;
  margin-block: .55rem 0;
  color: var(--footer-ink);
  font-size: .92rem !important;
  font-weight: 600;
  line-height: 1.5;
}

.dt-site-footer.complete-footer .footer-brand-row > div:first-child > p + p {
  display: none;
}

.dt-site-footer.complete-footer .partner {
  margin-block: .65rem 0;
}

.dt-site-footer.complete-footer .partner img {
  inline-size: auto;
  max-inline-size: 100%;
  block-size: 1rem;
  object-fit: contain;
}

.dt-site-footer.complete-footer .footer-follow ul {
  flex-wrap: nowrap;
  gap: .35rem;
  margin: 0;
}

.dt-site-footer.complete-footer .footer-follow p {
  display: none;
}

.dt-site-footer.complete-footer .footer-follow li {
  flex: 0 1 2.5rem;
  min-inline-size: 0;
}

.dt-site-footer.complete-footer .footer-follow a {
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  block-size: 2.5rem !important;
  min-block-size: 2.5rem !important;
  border: 1px solid var(--footer-line) !important;
  border-radius: 7px;
  color: var(--footer-muted) !important;
}

.dt-site-footer.complete-footer .footer-follow a:hover {
  border-color: var(--footer-blue) !important;
  color: var(--footer-blue) !important;
}

.dt-site-footer.complete-footer .footer-market {
  min-inline-size: 0;
  max-inline-size: 17rem;
  gap: .2rem;
}

.dt-site-footer.complete-footer [data-market-trigger] {
  flex-wrap: wrap;
  gap: .25rem .55rem;
  padding: .4rem .65rem;
  border-color: var(--footer-line) !important;
  border-radius: 7px;
  background: #fff !important;
  color: var(--footer-ink) !important;
  overflow-wrap: anywhere;
}

.dt-site-footer.complete-footer [data-market-trigger] [aria-hidden="true"] {
  box-shadow: none;
}

.dt-site-footer.complete-footer .footer-navigation {
  display: contents;
}

.dt-site-footer.complete-footer .footer-group {
  min-inline-size: 0;
  border: 0;
}

.dt-site-footer.complete-footer .footer-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-block-size: 36px;
  margin-block-end: .55rem;
  color: var(--footer-ink);
  font-size: .94rem !important;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.dt-site-footer.complete-footer .footer-group > summary::after {
  flex: none;
  inline-size: .45rem;
  block-size: .45rem;
  margin-inline-end: .2rem;
  border: solid var(--footer-muted);
  border-width: 0 1.5px 1.5px 0;
  content: '';
  transform: rotate(45deg);
}

.dt-site-footer.complete-footer .footer-group[open] > summary::after {
  transform: rotate(225deg);
}

.dt-site-footer.complete-footer .footer-group nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .38rem;
  padding: 0;
}

.dt-site-footer.complete-footer .footer-group a {
  min-block-size: 28px;
  padding: 0;
  color: var(--footer-muted) !important;
  font-size: .92rem !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dt-site-footer.complete-footer .footer-bottom {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-block-start: clamp(2.25rem, 5vw, 4rem);
  padding-block-start: 1.3rem;
  border-color: var(--footer-line);
  color: var(--footer-muted) !important;
  font-size: .85rem !important;
}

.dt-site-footer.complete-footer .footer-bottom > div {
  gap: .25rem .9rem;
}

.dt-site-footer.complete-footer :is(.footer-group a, .footer-bottom a):hover {
  color: var(--footer-blue) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 61rem) {
  .dt-site-footer.complete-footer .dt-footer-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dt-site-footer.complete-footer .footer-brand-row {
    grid-column: 1 / -1;
    margin-block-end: 1.5rem;
  }
}

@media (max-width: 700px) {
  .dt-site-footer.complete-footer .dt-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block-end: calc(1.6rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dt-site-footer.complete-footer .footer-group {
    border-block-start: 1px solid var(--footer-line);
  }

  .dt-site-footer.complete-footer .footer-group > summary {
    min-block-size: 49px;
    margin: 0;
  }

  .dt-site-footer.complete-footer .footer-group nav {
    gap: 0;
    padding-block-end: .85rem;
  }

  .dt-site-footer.complete-footer .footer-group a {
    min-block-size: 42px;
  }
}
