.article-category-label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .55em;
}

.world-links > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.article-category-mark {
  --ink: #184839;
  --face: #fce4a0;
  --highlight: #ffefc2;
  --edge: #91632e;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--ink);
  background: var(--face);
  box-shadow: 0 3px var(--edge);
  transition: background-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.article-category-mark--plan {
  --face: #bce3d2;
  --highlight: #d6f4e7;
  --edge: #3d7868;
}

.article-category-mark--record {
  --ink: #234b68;
  --face: #cbe4f5;
  --highlight: #e3f3fd;
  --edge: #537a94;
}

.article-category-mark--trophy {
  --ink: #69411e;
  --face: #f7dca7;
  --highlight: #fff0ce;
  --edge: #9a6b36;
}

.article-category-mark--trophy > span {
  position: relative;
  width: 13px;
  height: 14px;
  margin-top: -5px;
  background: currentColor;
  border-radius: 1px 1px 7px 7px;
}
.article-category-mark--trophy > span::before {
  content: '';
  position: absolute;
  inset: 2px -5px auto;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 8px 8px;
}
.article-category-mark--trophy > span::after {
  content: '';
  position: absolute;
  inset: 100% -1px auto;
  height: 7px;
  background: currentColor;
  clip-path: polygon(39% 0, 61% 0, 61% 68%, 100% 68%, 100% 100%, 0 100%, 0 68%, 39% 68%);
}

.article-category-mark > span,
.article-category-mark > span::before,
.article-category-mark > span::after { box-sizing: border-box; }

/* A lightbulb with a short base and three rays. */
.article-category-mark--idea > span {
  position: relative;
  top: -1px;
  width: 13px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 52% 52% 47% 47%;
  box-shadow: -9px 0 0 -5px currentColor, 9px 0 0 -5px currentColor;
}
.article-category-mark--idea > span::before,
.article-category-mark--idea > span::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
  border-radius: 2px;
}
.article-category-mark--idea > span::before { width: 2px; height: 4px; top: -7px; }
.article-category-mark--idea > span::after { width: 7px; height: 3px; bottom: -5px; }

/* A notebook with a spine and an arrow drawn on its page. */
.article-category-mark--plan > span {
  position: relative;
  width: 19px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
  border-left-width: 4px;
}
.article-category-mark--plan > span::before,
.article-category-mark--plan > span::after {
  content: '';
  position: absolute;
}

/* A score sheet with a folded corner and three lines of moves. */
.article-category-mark--record > span {
  position: relative;
  width: 17px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.article-category-mark--record > span::before,
.article-category-mark--record > span::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.article-category-mark--record > span::before {
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.article-category-mark--record > span::after {
  top: 7px;
  left: 2px;
  width: 9px;
  height: 1.5px;
  box-shadow: 0 3.5px, 0 7px;
}
.article-category-mark--plan > span::before {
  width: 9px;
  height: 2px;
  background: currentColor;
  top: 9px;
  left: 2px;
  transform: rotate(-45deg);
}
.article-category-mark--plan > span::after {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  top: 5px;
  right: 1px;
}

.article-category-link:hover .article-category-mark,
.article-category-link:focus-visible .article-category-mark {
  background: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 5px var(--edge);
}
.article-category-link:hover .article-category-label > span:last-child,
.article-category-link:focus-visible .article-category-label > span:last-child {
  background: #dbf0fc;
  box-shadow: 0 0 0 3px #dbf0fc;
  border-radius: 3px;
}
.article-category-link:focus-visible .article-category-label {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}
.article-category-link:active .article-category-mark {
  background: var(--face);
  transform: translateY(3px);
  box-shadow: inset 0 2px 2px #0003;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .article-category-mark { transition: none; }
  .article-category-link:hover .article-category-mark,
  .article-category-link:focus-visible .article-category-mark,
  .article-category-link:active .article-category-mark { transform: none; }
}
