/* helpers.css — utilities, reveal animation (css-only), cookie banner */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* css-only reveal: fade-up on load with staggered animation-delay */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise {
  opacity: 0;
  animation: rise 0.6s var(--ease) forwards;
}
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.14s; }
.rise-3 { animation-delay: 0.23s; }
.rise-4 { animation-delay: 0.32s; }
.rise-5 { animation-delay: 0.41s; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; animation: none; }
}

/* cookie banner — footer-inline layout, class data-bar */
.data-bar {
  background: var(--graphite);
  color: var(--chalk-dim);
  border-top: 2px solid var(--highlight);
  font-size: 0.9rem;
}
.data-bar[hidden] { display: none; }
.data-bar .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.data-bar p { margin: 0; max-width: 70ch; }
.data-bar a { color: var(--highlight-soft); }
.data-bar .actions { display: flex; gap: 12px; flex-shrink: 0; }
.data-bar .btn { padding: 10px 20px; font-size: 0.9rem; }
.data-bar .btn--solid { background: var(--highlight); color: #fff; border-color: var(--highlight); }
.data-bar .btn--solid:hover { background: var(--highlight-soft); }
.data-bar .btn--ghost { color: var(--chalk); border-color: rgba(236,236,238,0.45); }
.data-bar .btn--ghost:hover { border-color: var(--chalk); }

@media (max-width: 640px) {
  .data-bar .inner { flex-direction: column; align-items: flex-start; }
  .data-bar .actions { width: 100%; }
  .data-bar .actions .btn { flex: 1; justify-content: center; }
}
