/* cta-dock — see cta-dock.js.
   On the phone the bar publishes its height as --bar-h: every scene overlay anchored to the bottom adds it, the page
   ends with that much room (the footer's address and hours never sit under the bar), and anchors/focus scroll clear of it. */
@media (max-width: 767px) {
  :root { --bar-h: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--bar-h); }
  html { scroll-padding-bottom: var(--bar-h); }
}
.cd-bar {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--ink, #14120f); font: 600 16px/1 var(--font-text, system-ui, sans-serif);
}
.cd-bar a { flex: 1; display: grid; place-items: center; min-height: 56px; text-decoration: none; transition: transform 140ms ease-out; }
.cd-bar a:active { transform: scale(0.97); }
.cd-bar .cd-main { background: var(--paper, #f4efe6); color: var(--ink, #14120f); flex: 1.4; }
.cd-bar .cd-alt { color: var(--paper, #f4efe6); border: 1px solid color-mix(in srgb, var(--paper, #f4efe6) 40%, transparent); }
.cd-bar.is-live { translate: 0 110%; transition: translate 300ms cubic-bezier(.22,1,.36,1); }
.cd-bar.is-live.is-on { translate: 0 0; }
@media (min-width: 768px) {
  .cd-bar { left: auto; right: 24px; bottom: 24px; padding: 6px; border-radius: 999px; box-shadow: 0 8px 28px rgb(0 0 0 / 0.3); /* it floats */ }
  .cd-bar a { min-height: 48px; padding: 0 22px; border-radius: 999px; }
  .cd-bar.is-live { translate: 0 calc(100% + 32px); }
}
.cd-bar.is-typing { translate: 0 110% !important; }
@media (prefers-reduced-motion: reduce) { .cd-bar.is-live { transition: none; } }
