/* Component „process”: numbered steps. The layer order is the base's (kit.css), so this file's place among the links
   does not matter, and the Site's own site.css wins over it. */
@layer sections {
  .steps { display: grid; gap: var(--space-l) 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .step { position: relative; display: grid; gap: 0.75rem; align-content: start; padding-inline-end: var(--space-m); }
  .step-num {
    font-family: var(--font-display); font-weight: var(--type-h1-weight); font-variant-numeric: tabular-nums; letter-spacing: var(--type-h1-tracking);
    font-size: var(--type-h1-size); line-height: var(--type-h1-leading); color: var(--c-text);
  }
  .step p { color: var(--c-text-muted); max-inline-size: 30ch; }
}

@layer utilities {
  /* The trades niche's ornaments (html[data-ornaments]): the measuring line over each step, the numerals outlined */
  :root[data-ornaments] {
    .step { padding-block-start: var(--space-l); }
    .step::before {
      content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 0.9rem;
      border-inline-start: var(--border-w) solid var(--c-line-strong);
      background: linear-gradient(var(--c-line-strong), var(--c-line-strong)) 0 50% / 100% var(--border-w) no-repeat;
    }
    .step:last-child::before { border-inline-end: var(--border-w) solid var(--c-line-strong); }
    .step-num { color: transparent; -webkit-text-stroke: 1.5px var(--c-text); }
  }
}
