:host-context(vlt-toolbar) {
  min-block-size: var(--toolbar-size-block);
}
:host-context(vlt-toolbar) button,
:host-context(vlt-toolbar) a {
  --ripple-x: 0;
  --ripple-y: 0;
  --ripple-color: var(--vlt-color__selected, var(--vlt-color__contrast));
  --animation-tick: 0;
}
:host-context(vlt-toolbar) button.animating,
:host-context(vlt-toolbar) a.animating {
  background-image: paint(ripple);
}

:any-link {
  text-decoration: none;
}

button,
a {
  --ripple-x: 0;
  --ripple-y: 0;
  --ripple-color: var(--vlt-color__base);
  --animation-tick: 0;
  padding: calc(var(--size-gutter) / 4) calc(var(--size-gutter) / 4) calc(var(--size-gutter) / 4) calc(var(--size-gutter) / 4);
  cursor: pointer;
  box-sizing: border-box;
  block-size: 100%;
  min-inline-size: 12rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  text-align: center;
  transition: 0.2s color;
  will-change: color;
  flex-shrink: 0;
  transform-origin: 50% 100%;
  outline: none;
  overflow: hidden;
  user-select: none;
  background-color: transparent;
  border: 0 none;
  font: inherit;
  color: inherit;
}
button.animating,
a.animating {
  background-image: paint(ripple);
}
button::after,
a::after {
  content: "";
  transition: 0.3s transform;
  will-change: transform;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  block-size: 5px;
  background: currentColor;
  position: absolute;
  bottom: 0;
  offset-block-end: 0;
  left: 50%;
  offset-inline-start: 0;
}
:host([selected=true]) button,
:host([selected=true]) a {
  color: var(--vlt-color__selected, currentColor);
}
:host([selected=true]) button::after,
:host([selected=true]) a::after {
  transform: translateX(-50%) scaleX(1);
}

::slotted(:any-link) {
  text-decoration: none;
}

.context {
  display: inline-grid;
  grid-gap: 0.5rem;
  pointer-events: none;
}