/* "Open the tool" calls to action on the lab guides (MONO design).
   Band: a pale-lime strip after a section. Sticky: the bar that follows the reader
   once the hero button has scrolled away and no other button is on screen. */

.tcta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 28px; padding: 20px 24px;
  background: var(--mono-lime-pale, #fbfde8);
  border: 1px solid var(--mono-lime, #ccea4a);
  border-radius: 20px;
}
.tcta__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tcta__title { font-family: var(--mono-font-display); font-size: 17px; font-weight: 700; color: var(--mono-ink, #111827); letter-spacing: -0.01em; }
.tcta__sub { font-size: var(--mono-fs-sm, 14px); color: var(--mono-text-muted, #6b7280); }
.tcta__btn { flex: none; }

.tcta-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.tcta-sticky__in {
  pointer-events: auto;
  margin: 0 auto; max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--mono-border, #e5e7eb);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.14);
  animation: tcta-rise .28s cubic-bezier(.2,.8,.2,1) both;
}
.tcta-sticky__text { font-size: var(--mono-fs-sm, 14px); color: var(--mono-ink, #111827); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcta-sticky__text em { font-style: normal; color: var(--mono-text-muted, #6b7280); }
.tcta-sticky__btn { height: 44px; padding: 0 20px; flex: none; }
@keyframes tcta-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 900px) {
  /* a pill at the bottom right on a desktop, out of the way of the text */
  .tcta-sticky { left: auto; right: 24px; bottom: 24px; padding: 0; }
  .tcta-sticky__in { margin: 0; max-width: none; }
}
@media (max-width: 640px) {
  .tcta { flex-direction: column; align-items: stretch; text-align: center; padding: 18px; }
  .tcta__btn { width: 100%; justify-content: center; }
  .tcta-sticky__text { display: none; }
  .tcta-sticky__in { justify-content: center; padding: 8px; }
  .tcta-sticky__btn { width: 100%; justify-content: center; }
  /* the page's own footer must not sit under the bar on the last screen */
  html.tcta-sticky-on body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .tcta-sticky__in { animation: none; } }
