@layer components {
  /* Base
  /* -------------------------------------------------------------------------- */

  /* The wrapper anchors the popup below the trigger */
  .menu {
    position: relative;
  }

  /* Elements
  /* -------------------------------------------------------------------------- */

  /* Smaller and softer than the label: it says "opens", it isn't the action */
  .menu__caret {
    --icon-size: 12px;

    margin-inline-end: -2px;
    opacity: 0.75;
    transition: rotate var(--duration-fast) ease-in-out;

    .menu:has(.menu__popup[open]) & {
      rotate: 180deg;
    }
  }

  @media print {
    .menu { display: none; }
  }
}
