/**
 * Category strip: four columns of procedure links under the navigation bar.
 *
 * Tight by design. This is wayfinding that appears on every page, so it has to
 * earn very little vertical space — roughly 200px at desktop for 23 links.
 */

.category-strip {
  background: var(--chrome-strip);
  border-bottom: 1px solid var(--border);
}

.category-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.category-strip__col {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s-5) var(--s-5) var(--s-6);
}
.category-strip__col + .category-strip__col {
  border-inline-start: 1px solid var(--border);
}

/* The faded backdrop. Anchored right so a portrait-ish subject sits behind the
   link list's ragged edge rather than behind the words. */
.category-strip__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: 100% 30%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.16;
  /* A wash toward the strip ground so the links keep their contrast whatever
     the photograph happens to be. */
  -webkit-mask-image: linear-gradient(to left, rgb(0 0 0 / 1) 0%, rgb(0 0 0 / 0.25) 62%, transparent 92%);
          mask-image: linear-gradient(to left, rgb(0 0 0 / 1) 0%, rgb(0 0 0 / 0.25) 62%, transparent 92%);
}

.category-strip__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--c-slate-600);
  text-decoration: none;
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
  border-bottom: 2px solid var(--c-slate-200);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.category-strip__title:hover {
  color: var(--c-slate-800);
  border-bottom-color: var(--c-gold-600);
}

.category-strip__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.category-strip__links a {
  display: block;
  padding: 0.12rem 0;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.category-strip__links a:hover {
  color: var(--c-slate-700);
  transform: translateX(2px);
}
.category-strip__links a[aria-current='page'] {
  color: var(--c-slate-800);
  font-weight: 700;
}

/* ---- Tablet: two columns ----------------------------------------------- */
@media (max-width: 61.99em) {
  .category-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-strip__col:nth-child(odd) { border-inline-start: 0; }
  .category-strip__col:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ---- Mobile: headings only ---------------------------------------------- */
/* Twenty-three links stacked above the content would push the page itself
   below the fold. The four category pages carry the same lists. */
@media (max-width: 47.99em) {
  .category-strip__links { display: none; }
  .category-strip__col { padding: var(--s-4) var(--s-4); }
  .category-strip__title {
    font-size: var(--fs-base);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .category-strip__bg { opacity: 0.12; }
}
