/* Shared site footer (all pages): four columns + bottom divider bar. */

.site-footer {
  margin-top: 32px;
  border-top: 1px solid #dbe4ee;
  background: #f6f9fc;
  color: #45607a;
}

.site-footer-inner {
  width: min(88%, 1440px);
  margin-inline: auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px 24px;
  padding: 28px 0 20px;
}

.site-footer-heading {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #17385e;
}

.site-footer-desc,
.site-footer-link {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #5b7187;
}

.site-footer-desc {
  margin: 0;
}

.site-footer-link {
  display: block;
  padding: 3px 0;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #c74369;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-cite {
  position: relative;
  padding: 10px 44px 10px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-footer-cite-text {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.65;
  color: #45607a;
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
}

.site-footer-copy {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  background: #f6f9fc;
  color: #5b7187;
  cursor: pointer;
}

.site-footer-copy svg {
  width: 13px;
  height: 13px;
}

.site-footer-copy:hover,
.site-footer-copy:focus-visible {
  border-color: #c74369;
  color: #c74369;
}

.site-footer-copy:focus-visible {
  outline: 3px solid #69b9d1;
  outline-offset: 2px;
}

.site-footer-copy-status {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #1c7a54;
}

.site-footer-copy-status:empty {
  margin-top: 0;
}

.site-footer-copy-status.is-failed {
  color: #b0304a;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  border-top: 1px solid #dbe4ee;
  padding: 12px 0 16px;
  font-size: 0.76rem;
  color: #7a8ba0;
}

.site-footer-demo,
.site-footer-compliance {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.site-footer .compliance-link {
  color: #7a8ba0;
}

.site-footer .compliance-link:hover,
.site-footer .compliance-link:focus-visible {
  color: #c74369;
}

@media (max-width: 1100px) {
  .site-footer-inner {
    width: calc(100% - 48px);
  }
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 700px) {
  .site-footer-inner {
    width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 0 18px;
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

html[data-theme="dark"] .site-footer {
  border-top-color: #3b5263;
  background: #142a3b;
  color: #a6b8c8;
}

html[data-theme="dark"] .site-footer-heading {
  color: #eaf3f9;
}

html[data-theme="dark"] .site-footer-desc,
html[data-theme="dark"] .site-footer-link {
  color: #a6b8c8;
}

html[data-theme="dark"] .site-footer-link:hover,
html[data-theme="dark"] .site-footer-link:focus-visible {
  color: #e77b9a;
}

html[data-theme="dark"] .site-footer-cite {
  border-color: #3b5263;
  background: #10202e;
}

html[data-theme="dark"] .site-footer-cite-text {
  color: #afc1cf;
}

html[data-theme="dark"] .site-footer-copy {
  border-color: #3b5263;
  background: #1b3040;
  color: #a6b8c8;
}

html[data-theme="dark"] .site-footer-copy:hover,
html[data-theme="dark"] .site-footer-copy:focus-visible {
  border-color: #e77b9a;
  color: #e77b9a;
}

html[data-theme="dark"] .site-footer-copy-status {
  color: #6fd4a5;
}

html[data-theme="dark"] .site-footer-copy-status.is-failed {
  color: #ef9aa9;
}

html[data-theme="dark"] .site-footer-bottom {
  border-top-color: #3b5263;
  color: #8ba1b4;
}

html[data-theme="dark"] .site-footer .compliance-link {
  color: #8ba1b4;
}

html[data-theme="dark"] .site-footer .compliance-link:hover,
html[data-theme="dark"] .site-footer .compliance-link:focus-visible {
  color: #e77b9a;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
