/* Docket footer — Docket footer geometry and interaction.
   Loaded on / and /integrations; columns are rebuilt by docket-footer.js. */

/* Keep the old, simpler bracket pseudo-elements out of the way. */
.dk-footer-col::before,
.dk-footer-col::after { content: none !important; }

.dk-footer-col {
  position: relative;
  padding-left: 20px;
  padding-bottom: 20px;
}

@media (min-width: 500px) {
  .dk-footer-col { width: 144px; }
  .dk-footer-col:nth-child(2),
  .dk-footer-col:nth-child(3) { width: 132px; }
}

/* The red rectangle shared by the label and the hovered link. */
.dk-footer-col-highlight {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 0;
  width: 112px;
  height: 19px;
  background: #ff002a;
  box-shadow: 0 0 10px 0 rgba(255, 0, 42, 0.42);
  pointer-events: none;
  transition:
    top 340ms cubic-bezier(0.22, 1, 0.36, 1),
    height 340ms cubic-bezier(0.22, 1, 0.36, 1),
    width 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* The L-bracket. Its top line tracks the centre of the highlight. */
.dk-footer-col-rail {
  position: absolute;
  top: 9px;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 20px;
  border-left: 2px solid #ff002a;
  border-bottom: 2px solid #ff002a;
  filter: drop-shadow(0 0 6px rgba(255, 0, 42, 0.35));
  pointer-events: none;
  transform-origin: top center;
  transition: top 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dk-footer-col-rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: #ff002a;
}

.dk-footer-col-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 112px;
  min-width: 0;
  height: 19px;
  min-height: 19px;
  padding: 0 4px;
  background: transparent;
  color: #050807;
  font-family: eurostile, "Eurostile", "Spline Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 200ms cubic-bezier(0.33, 0, 0.67, 1);
}

.dk-footer-col-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  padding-left: 4px;
}
.dk-footer-col-links a {
  width: fit-content;
  opacity: 1;
  color: #fafafa;
  font-family: "Spline Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transform: none;
  transition: opacity 200ms cubic-bezier(0.33, 0, 0.67, 1), color 200ms cubic-bezier(0.33, 0, 0.67, 1);
}
.dk-footer-col-links a:hover { color: #ffffff; transform: none; }
.dk-footer-col.is-active .dk-footer-col-links a:not(.is-hot) { opacity: 0.5; }
.dk-footer-col-links a.is-hot { opacity: 1; color: #ffffff; }

/* At rest the red rectangle is the label tab. */
.dk-footer-col:not(.is-active) .dk-footer-col-highlight {
  top: 0;
  height: 19px;
}
.dk-footer-col.is-active .dk-footer-col-label { color: #ffffff; }

.dk-footer-mark { opacity: 0.55; }
.dk-footer-mark img { width: 100%; height: auto; }

.dk-newsletter-note {
  margin-top: 8px;
  color: #7ef0c4;
  font-family: "Spline Sans", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

footer form button {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease;
}
footer form button:hover { transform: translateY(-1px); filter: brightness(1.08); }
footer form button:active { transform: translateY(0) scale(0.99); }

@media (max-width: 360px) {
  .dk-footer-col { max-width: 132px; }
}

@media (prefers-reduced-motion: no-preference) {
  .dk-footer-enhanced .dk-footer-col {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--dk-delay, 0ms);
  }
  .dk-footer-enhanced .dk-footer-col.is-in { opacity: 1; transform: none; }

  .dk-footer-enhanced .dk-footer-col-rail { transform: scaleY(0); }
  .dk-footer-enhanced .dk-footer-col.is-in .dk-footer-col-rail {
    transform: scaleY(1);
    transition:
      top 340ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 780ms cubic-bezier(0.22, 1, 0.36, 1) 100ms;
  }

  .dk-footer-enhanced .dk-footer-col-links a {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      color 200ms cubic-bezier(0.33, 0, 0.67, 1);
  }
  .dk-footer-enhanced .dk-footer-col.is-in .dk-footer-col-links a {
    opacity: 1;
    transform: none;
  }
  .dk-footer-enhanced .dk-footer-col.is-in .dk-footer-col-links a:nth-child(1) { transition-delay: 100ms; }
  .dk-footer-enhanced .dk-footer-col.is-in .dk-footer-col-links a:nth-child(2) { transition-delay: 155ms; }
  .dk-footer-enhanced .dk-footer-col.is-in .dk-footer-col-links a:nth-child(3) { transition-delay: 210ms; }
  .dk-footer-enhanced .dk-footer-col.is-in .dk-footer-col-links a:nth-child(4) { transition-delay: 265ms; }

  .dk-footer-enhanced .dk-footer-mark {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .dk-footer-enhanced .dk-footer-mark.is-in { opacity: 0.55; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dk-footer-col-highlight,
  .dk-footer-col-rail,
  .dk-footer-col-links a,
  .dk-footer-mark,
  footer form button {
    transition: none !important;
    animation: none !important;
  }
}

@media (min-width: 1280px) {
  .dk-footer-no-newsletter { justify-content: flex-end; }
}

@media (max-width: 1023px) {
  .dk-footer-legal { display: none; }
}


.gate-recent { display: none !important; }

/* Console footer: same city layer and 2:1 height as the homepage footer. */
.dk-console-city-band {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 12;
  overflow: hidden;
  flex: none;
}
.dk-console-city-band img {
  display: block;
}
@media (max-width: 1023px) {
  .dk-console-city-band {
    aspect-ratio: auto;
    height: 300px;
  }
}
@media (max-width: 767px) {
  .dk-console-city-band { height: 220px; }
}

/* Prevent the mirrored footer from being painted before Docket replaces it. */
footer[data-page-find-surface="red"],
.bg-background > footer {
  visibility: hidden !important;
}
html.dk-footer-ready footer[data-page-find-surface="red"],
html.dk-footer-ready .bg-background > footer {
  visibility: visible !important;
}
