.essay-pills {
  display: flex;
  align-items: center;
  gap: .45em;
  font: 500 13px/1.15 system-ui, sans-serif;
}
.essay-pills a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .36em;
  min-height: var(--pill-target, 44px);
  min-width: var(--pill-target, 44px);
  padding-inline: .78em;
  white-space: nowrap;
  color: var(--midnight);
  text-decoration: none;
  touch-action: manipulation;
  cursor: pointer;
}
.essay-pills a::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  height: 2.4em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 75%, var(--light-gray));
  box-shadow: inset 0 0 0 1px var(--light-gray), 0 1px 2px rgb(24 25 26 / 7%);
  z-index: -1;
  pointer-events: none;
}
.essay-pills svg {
  width: 1.18em;
  height: 1.18em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.essay-pills a:is(:hover, :focus-visible, :active)::before {
  background: color-mix(in srgb, var(--white) 86%, var(--azure));
  box-shadow: inset 0 0 0 1px var(--cornflower), 0 0 .65em rgb(14 165 233 / 18%);
}
.essay-pills a:focus-visible { outline: none; }
.essay-pills a:focus-visible::before { outline: 2px solid var(--midnight); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .essay-pills a::before { transition: background-color .15s, box-shadow .15s; }
}
