/* Shared registration footer; keep it in normal document flow. */
.site-registration {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  font: 400 14px/1.6 "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  text-align: center;
}
.site-registration a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: #49323d;
  text-decoration: none;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.site-registration a:hover { text-decoration: underline; }
.site-registration a:focus-visible {
  outline: 2px solid #85294d;
  outline-offset: 3px;
  text-decoration: underline;
}
body[data-return-kind="post"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body[data-return-kind="post"] > .scene { flex: 1 0 auto; min-height: 0; }
body.tool-detail-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
}
body.tool-detail-page > .tool-detail-shell {
  flex: 1 0 240px;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
}

/* The legacy meteor theme applies !important rules to every footer.
   Override only the dedicated registration footer, leaving the home footer intact. */
.site-registration--standalone {
  margin: 0 !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  font-size: 14px !important;
}
