.site-footer {
  position: relative;
  background-color: var(--footer-bg);
  -webkit-backdrop-filter: blur(var(--footer-backdrop-blur, var(--card-surface-backdrop-blur, 0px)));
  backdrop-filter: blur(var(--footer-backdrop-blur, var(--card-surface-backdrop-blur, 0px)));
  border-top: 1px solid var(--footer-border);
  padding: var(--footer-padding-block) 0;
  margin-top: auto;
  overflow: visible;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--footer-overlay-gradient);
  z-index: 0;
}

.footer-layout {
  position: relative;
  z-index: 1;
  max-width: var(--footer-max-width);
  margin: 0 auto;
  padding: 0 var(--footer-horizontal-padding);
  overflow: visible;
}

.footer-top-row {
  margin-bottom: var(--footer-section-gap);
  padding-bottom: var(--footer-section-divider-spacing);
  border-bottom: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  position: relative;
}

.footer-brand-stack {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.footer-brand-image {
  height: var(--footer-logo-height);
  width: auto;
  display: block;
}

.footer-brand-overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--header-overlay-fill);
  opacity: var(--header-overlay-opacity);
  pointer-events: none;
  -webkit-mask-image: var(--header-overlay-mask);
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--header-overlay-mask);
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.footer-brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-links {
  display: flex;
  gap: var(--footer-link-gap);
}

.footer-nav-link {
  font-weight: 500;
  position: relative;
  font-family: var(--font-family-ui, var(--font-family-base, "Open Sans", sans-serif));
}

.footer-modal-mount {
  position: relative;
  z-index: 1;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copyright,
.footer-credits {
  font-size: var(--footer-meta-text-size);
  color: var(--footer-muted);
}

.footer-credits {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.footer-heart-icon {
  width: var(--footer-heart-size);
  height: var(--footer-heart-size);
  display: inline-block;
  flex: 0 0 auto;
  background: var(--footer-heart-fill);
  opacity: var(--header-overlay-opacity);
  -webkit-mask-image: var(--footer-heart-mask);
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--footer-heart-mask);
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.footer-credit-name {
  color: var(--footer-credit-color);
  font-weight: 600;
}

.footer-status-list {
  display: grid;
  width: max-content;
  justify-items: stretch;
  gap: var(--footer-status-gap);
}

.footer-status-item {
  display: grid;
  grid-template-columns: var(--footer-status-dot-size) max-content;
  align-items: center;
  column-gap: 0.65rem;
  width: 100%;
  color: var(--footer-text);
}

.footer-status-dot {
  width: var(--footer-status-dot-size);
  height: var(--footer-status-dot-size);
  border-radius: 50%;
  flex: 0 0 auto;
}

.footer-status-dot.is-muted {
  background: var(--footer-status-muted-color);
}

.footer-status-dot.is-live {
  background: var(--footer-status-live-color);
}

.footer-status-text {
  font-size: var(--footer-meta-text-size);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--footer-muted);
}

@media (max-width: 768px) {
  .site-footer {
    padding: calc(var(--footer-padding-block) - 0.25rem) 0;
  }

  .footer-layout {
    padding: 0 1rem;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 0.95rem;
    text-align: center;
    margin-bottom: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 0.95rem;
    text-align: center;
  }

  .footer-meta {
    order: 2;
    gap: 0.35rem;
    align-items: center;
  }

  .footer-status-list {
    order: 1;
    width: auto;
    justify-items: start;
    justify-content: center;
    gap: 0.45rem;
    text-align: left;
  }

  .footer-status-item {
    width: auto;
    grid-template-columns: var(--footer-status-dot-size) minmax(0, max-content);
    column-gap: 0.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-nav-link {
    font-size: 0.95rem;
  }

  .footer-copyright,
  .footer-credits,
  .footer-status-text {
    font-size: 0.88rem;
  }

  .footer-brand-image {
    height: var(--footer-logo-height-mobile);
  }

  .footer-status-list {
    display: none;
  }
}

@media (max-width: 420px) {
  .footer-layout {
    padding: 0 0.85rem;
  }

  .footer-top-row {
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .footer-bottom-row {
    gap: 0.85rem;
  }

  .footer-links {
    gap: 0.85rem;
  }

  .footer-nav-link {
    font-size: 0.9rem;
  }

  .footer-status-text {
    white-space: normal;
    line-height: 1.35;
  }

  .footer-copyright,
  .footer-credits,
  .footer-status-text {
    font-size: 0.82rem;
  }
}
