/*
 * THE ROUTED POPOVER'S TITLE ROW. A back chevron that appears only while there
 * is somewhere to go back to, the title, and a trailing slot.
 *
 * `header` rather than a root of its own: `PopoverNavHeader` is one member of
 * the `popover_nav` compound, and the other two (`PopoverScreen`,
 * `usePopoverNav`) render no element at all — so the anatomy is the router's and
 * this is its header, the way `PopoverFooter` is the panel's footer.
 *
 * The row's height is the back button's, so it CHANGES between the root screen
 * (no chevron, the title's own leading) and a sub-screen — which is the shape
 * the panel had before, and the reason nothing here states a height.
 *
 * `min-width: 0` on the title is what lets a long one truncate instead of
 * widening the panel: a flex item defaults to `min-width: auto`, which is its
 * content's width.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-popover-nav__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--lotics-space-8);
    padding-inline-start: var(--lotics-space-8);
  }

  .lotics-popover-nav__title {
    flex: 1;
    min-width: 0;
  }
}
