/* Stack — a definition list of labelled rows: a fixed yellow bitmap label column beside a
   wrapping run of small bordered chips, no lines between rows. Builds on theme.css (section,
   headings). Everything snaps to the 8px unit. */
#stack .stack-title { font-family: var(--font-mono); font-size: 24px; line-height: 40px; margin: 0 0 16px; }

/* Dithered rule: a 4px checkerboard, hard stops only. */
#stack .stack-dither {
  height: 8px;
  margin-bottom: 32px;
  background-color: var(--bg);
  background-image: repeating-conic-gradient(#29366F 0% 25%, #1A1C2C 0% 50%);
  background-size: 8px 8px;
  image-rendering: pixelated;
}

#stack .stack-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 24px;
  margin: 0;
  padding: 0;
}

/* One group per row: label column, then its chips. Nothing is drawn around or between rows. */
#stack .stack-group {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* The group name is a short label, so it takes the bitmap face. */
#stack .stack-name {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0;
  color: #FFCD75;
  margin: 0;
  overflow-wrap: anywhere;
}
#stack .stack-items { min-width: 0; margin: 0; padding: 0; }

#stack .stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#stack .stack-chip {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 24px;
  color: #F4F4F4;
  background-color: #333C57;
  border: 4px solid #F4F4F4;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 4px 12px;
}

/* One column: the label sits above its chips. */
@media (max-width: 720px) {
  #stack .stack-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
