/* Shared footer skin: Ghost supplies the content for both publication and Lab. */
.rv-publication .gh-footer,
.rv-lab .gh-footer {
  display: block;
  max-width: none;
  margin: 48px 0 0;
  padding: 48px 24px 32px;
  position: relative;
  border: 0;
  border-top: 1px solid var(--rv-line);
  background: linear-gradient(135deg, var(--rv-surface), var(--rv-soft));
  color: var(--rv-ink);
  font: 14px/1.6 var(--rv-font);
  box-shadow: 0 -4px 20px #18203608;
}
.gh-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
}
.gh-footer .gh-footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0;
}
.gh-footer .gh-footer-about,
.gh-footer .gh-footer-navigation,
.gh-footer .gh-footer-subscribe {
  grid-column: auto;
  justify-self: stretch;
  width: auto;
  max-width: none;
  text-align: left;
}
.gh-footer .nav-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.gh-footer .gh-footer-logo img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
}
.gh-footer .gh-footer-logo h2 {
  font-size: 24px;
  margin: 0;
  color: var(--rv-primary);
}
.gh-footer .gh-footer-description,
.gh-footer .gh-cta-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--rv-muted);
  margin: 16px 0;
}
.gh-footer .gh-footer-nav-title,
.gh-footer .gh-cta-title {
  font: 700 18px/1.4 var(--rv-font);
  letter-spacing: 0;
  color: var(--rv-ink);
  margin: 0 0 24px;
  padding-bottom: 8px;
  position: relative;
}
.gh-footer .gh-footer-nav-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #a855f7);
}
.gh-footer .gh-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.gh-footer .gh-footer-nav-list.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}
.gh-footer .gh-footer-nav-list li {
  margin: 0;
  padding: 0;
}
.gh-footer a {
  color: var(--rv-muted);
  text-decoration: none;
  font-size: 14px;
}
.gh-footer a:hover {
  color: var(--rv-primary);
  text-decoration: underline;
}
.gh-footer .gh-footer-nav-list a {
  display: inline-block;
  padding: 4px 0;
}
.gh-footer .gh-cta,
.gh-footer .gh-cta-inner,
.gh-footer .gh-cta-content {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  display: block;
}
.gh-footer a.button {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  background: #514bd5;
  border: 1px solid #514bd5;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.gh-footer .gh-footer-toggle {
  display: flex;
  justify-content: flex-end;
  max-width: 1200px;
  margin: 0 auto 12px;
  padding: 0;
}
.gh-footer .gh-nightshift-options {
  display: flex;
  gap: 8px;
  background: var(--rv-soft);
  border-radius: 24px;
  padding: 4px;
}
.gh-footer .gh-nightshift-option {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--rv-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font: 12px var(--rv-font);
  cursor: pointer;
}
.gh-footer .gh-nightshift-option.active,
.gh-footer .gh-nightshift-option[aria-pressed="true"] {
  background: var(--rv-surface);
  color: var(--rv-primary);
}
.gh-footer .gh-nightshift-option svg {
  width: 16px;
  height: 16px;
}
.gh-footer .gh-footer-bottom {
  max-width: 1200px;
  margin: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rv-line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
}
.gh-footer .gh-footer-copyright-text {
  font-size: 12px;
  line-height: 1.7;
  color: var(--rv-muted);
  margin: 0;
}
.gh-footer .gh-footer-copyright-text span {
  display: block;
}
.gh-footer .gh-footer-links-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.gh-footer .gh-footer-links-menu a {
  font-size: 12px;
  margin: 0;
}
.gh-footer .gh-language-container {
  display: flex;
  justify-content: flex-end;
  width: auto;
}
.gh-footer .gh-language-selector {
  font: 12px var(--rv-font);
  background: var(--rv-surface);
  color: var(--rv-ink);
  border: 1px solid var(--rv-line);
  border-radius: 6px;
  padding: 8px;
  width: auto;
}
.gh-footer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gh-footer a:focus-visible,
.gh-footer button:focus-visible,
.gh-footer select:focus-visible {
  outline: 3px solid var(--rv-primary);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .gh-footer .gh-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .gh-footer .gh-footer-navigation {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .gh-footer .gh-footer-bottom {
    grid-template-columns: 1fr;
  }
  .gh-footer .gh-language-container {
    justify-content: flex-start;
  }
}
@media (max-width: 540px) {
  .rv-publication .gh-footer,
  .rv-lab .gh-footer {
    padding: 32px 20px;
  }
  .gh-footer .gh-footer-top {
    grid-template-columns: 1fr;
  }
  .gh-footer .gh-footer-navigation {
    grid-column: auto;
    grid-row: auto;
  }
  .gh-footer .nav-wrapper {
    gap: 20px;
  }
  .gh-footer .gh-footer-toggle {
    justify-content: flex-start;
  }
  .gh-footer .gh-footer-links-menu {
    flex-direction: row;
    justify-content: flex-start;
  }
  .gh-footer .gh-footer-controls {
    padding: 0;
    justify-content: flex-start;
  }
  .gh-footer .gh-nightshift-container {
    width: auto;
  }
}
/* Reset theme-only utility rules so both hosts render the same component. */
.gh-footer .gh-footer-logo {
  display: block;
  margin: 0;
  padding: 0;
}
.gh-footer .gh-footer-description,
.gh-footer .gh-cta-description {
  max-width: none;
}
.gh-footer .gh-footer-subscribe {
  margin: 0;
}
.gh-footer .gh-cta-inner,
.gh-footer .gh-cta-content {
  max-width: none;
  text-align: left;
}
.gh-footer a.button {
  text-align: center;
  font-weight: 600;
}
.gh-footer .gh-footer-nav-section {
  min-width: 0;
}
.gh-footer .gh-nightshift-container {
  background: none;
  padding: 0;
  border: 0;
}
