/* The footer supplies its own bottom inset, without a second page-sized gap. */
main:has(> footer .site-footer-nav) {
  padding-bottom: 0;
}

/* Shared footer rules are scoped so legacy page typography stays untouched. */
footer:has(.site-footer-nav) {
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 1.5rem 1rem 1.75rem;
  border: 0;
  border-top: 1px solid var(--rule, #ccc);
  border-image: var(--horizontal-rule) 1;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted, #666);
}
footer .site-footer-nav,
.pricing-page footer .site-footer-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
footer .site-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1.35rem;
}
footer:has(.site-footer-nav) a {
  color: var(--ink, #111);
  text-decoration: none;
  border-bottom: 1px solid var(--rule, #ccc);
  border-image: var(--horizontal-rule) 1;
}
footer:has(.site-footer-nav) a:hover {
  border-bottom-color: var(--ink, #111);
  border-image-source: var(--horizontal-rule-active);
}
footer:has(.site-footer-nav) a:focus,
footer:has(.site-footer-nav) a:focus-visible {
  outline: 2px solid var(--ink, #111);
  outline-offset: 4px;
}
footer:has(.site-footer-nav) .footer-brand {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--muted, #666);
}
footer:has(.site-footer-nav) .yc-badge {
  font-size: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  vertical-align: middle;
}
footer:has(.site-footer-nav) .yc-logo {
  display: block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 2px;
}
@media (max-width: 640px) {
  footer:has(.site-footer-nav) {
    margin-top: 2.5rem;
    padding: 1.25rem 0.75rem 1.5rem;
  }
  footer .site-footer-row {
    gap: 0.65rem 1rem;
  }
}
