/* Work navigation and short reference lists. */
.work-toc {
  margin-block: 0.75rem;
}

.work-toc ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  border: 1px solid #f8d4e6;
  border-radius: 10px;
  background: #fff0f7;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-underline-offset: 0.15em;
}

.work-toc a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.work-overview [id]:target {
  scroll-margin-top: 0.75rem;
}

.work-overview .subpage-title span {
  display: inline-block;
}

.work-facts dt {
  font-weight: 700;
}

.work-facts dd {
  margin: 0 0 0.65rem;
}

.work-facts dd:last-child {
  margin-bottom: 0;
}

.work-facts time,
.work-control-label {
  white-space: nowrap;
}

.work-steps {
  padding-inline-start: 1.5rem;
}

.work-steps li + li {
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .work-toc ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
