/* Global HTMX error toast (static/js/htmxErrors.js), linked by every page that loads the script.
   Above the admin slide-in panel (z 101). The offset is a custom property: admin main.css sets it
   to 56px (under the 48px topbar); the hub and trail pages have no fixed bar, so they use 12px. */
.htmx-error-toast { position: fixed; top: var(--htmx-toast-top, 12px); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; align-items: flex-start; gap: 12px; width: max-content; max-width: min(560px, calc(100vw - 24px)); padding: 10px 12px 10px 14px; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #dc2626; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12); color: #1a1a1a; font-size: 14px; line-height: 1.4; }
.htmx-error-toast__close { flex-shrink: 0; background: none; border: none; color: #64748b; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.htmx-error-toast__close:hover { color: #1e293b; }
/* A phone at a trailhead: a 44px tap target. Desktop (fine pointer) is unchanged. */
@media (pointer: coarse) {
  .htmx-error-toast__close { min-width: 44px; min-height: 44px; margin: -10px -8px -10px 0; }
}
