.years { padding-block: 88px 24px; }
.year-index {
  margin: 0;
  padding: 0;
  columns: 2 420px;
  column-gap: 64px;
  list-style: none;
}
.year-index li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: start;
  padding: 12px 0;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}
.year-index a {
  color: var(--ink);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}
.year-index a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.year-index b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Keywords across the full width, then the two rankings side by side */
.arch-grid {
  display: grid;
  padding-block: 80px 24px;
  gap: 80px;
}
.ranks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 56px 64px;
}
.ranks > p { grid-column: 1 / -1; }
.tagbars {
  margin: 0;
  padding: 0;
  columns: 3 240px;
  column-gap: 40px;
  list-style: none;
}

/* The bar is the line under each keyword, so no rule of its own */
.tagbars li {
  padding: 9px 0;
  break-inside: avoid;
}
.tagbars a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--ink);
  text-decoration: none;
}

/* No underline, it would sit on the bar: the name and the bar light up */
.tagbars a:hover .nm, .tagbars a:focus-visible .nm { color: var(--accent); }
.tagbars a:hover .b i, .tagbars a:focus-visible .b i { background: var(--accent); }
.tagbars .nm {
  font-size: 17px;
  font-weight: 500;
}
.tagbars .meta-text { color: var(--muted); }
.tagbars .b {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 9px;
  background: var(--rule);
}
.tagbars .b i {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: color-mix(in oklab, var(--accent) 55%, var(--soft));
  transition: background .2s var(--ease);
}
.ranked {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ranked li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: baseline;
  padding: 12px 0;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
}
.ranked .pos {
  color: var(--accent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ranked a {
  color: var(--ink);
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.ranked a:hover { text-decoration: underline; }
.ranked .num {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.ranked .num b {
  color: var(--ink);
  font-weight: 600;
}
.more-ranked summary {
  padding: 14px 0;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}
@media (max-width: 1100px) {
  .ranks { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tagbars { columns: 1; }
  .year-index li { grid-template-columns: 56px minmax(0, 1fr) auto; }
}
