/* Generated by brand/scripts/build-components.mjs from brand/components/. Do not edit. Load public/tokens/tokens.css first. */

/* Floating panel (L4 of nuevauno/nu#341): a record's detail or a map card that floats over what is under it, with a head (what it
   is and its close) and a body. The consumer places it; it rises when it appears. */
.nu-float {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  max-height: 100%;
  border: var(--nu-border-width) solid var(--nu-color-border);
  background: var(--nu-color-surface);
  color: var(--nu-color-ink);
  box-shadow: var(--nu-shadow-floating);
  animation: nu-float-rise var(--nu-motion-slow) var(--nu-motion-ease-out);
}

.nu-float__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nu-space-8);
  padding: var(--nu-space-12) var(--nu-space-16);
  border-bottom: var(--nu-border-width) solid var(--nu-color-border);
}

.nu-float__title {
  min-width: 0;
  overflow: hidden;
  font-size: var(--nu-size-subtitle);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nu-float__close {
  width: var(--nu-control-pointer);
  height: var(--nu-control-pointer);
  border: 0;
  background: transparent;
  color: var(--nu-color-muted);
  font: inherit;
  cursor: pointer;
}

.nu-float__close:hover {
  background: var(--nu-color-hover);
  color: var(--nu-color-ink);
}

.nu-float__body {
  display: grid;
  gap: var(--nu-space-12);
  align-content: start;
  justify-items: start;
  padding: var(--nu-space-16);
  overflow-y: auto;
}

@keyframes nu-float-rise {
  from {
    opacity: 0;
    transform: translateY(var(--nu-space-8));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nu-float {
    animation: none;
  }
}
