/* Generated roles from brand-system/visual/DESIGN.md; existing Site theme aliases. */
:root {
  --s2a-mark-accent: var(--link);
  --s2a-mark-surface: var(--bg-raised);
  --s2a-mark-ink: var(--text-heading);
  --s2a-mark-mode-fill: var(--bg-raised);
  --s2a-mark-mode-stroke: var(--link);
  --s2a-mark-mode-ink: var(--text-heading);
  --s2a-mark-belegt-fill: var(--link);
  --s2a-mark-belegt-ink: var(--bg-raised);
  --s2a-mark-annahme-accent: var(--highlight);
  --s2a-mark-entscheidet-fill: var(--text-heading);
  --s2a-mark-entscheidet-ink: var(--bg-raised);
  --s2a-mark-radius: var(--radius-sm);
  --s2a-mark-padding-inline: 0.5em;
  --s2a-mark-padding-block: 0.25em;
  --s2a-mark-gap: 0.35em;
  --s2a-mark-shape-size: 0.68em;
  --s2a-mark-stroke-width: 1px;
  --s2a-mark-tint-weight: 8%;
  --s2a-mark-annahme-tint-weight: 15%;
  --s2a-mark-ink-weight: 70%;
}

/* Working modes: quiet outline; status labels: filled and shape-coded. */
.editorial-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2a-mark-gap);
  padding: var(--s2a-mark-padding-block) var(--s2a-mark-padding-inline);
  border: var(--s2a-mark-stroke-width) solid transparent;
  border-radius: var(--s2a-mark-radius);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  vertical-align: baseline;
  white-space: nowrap;
}
.editorial-mark--mode {
  color: var(--s2a-mark-mode-ink);
  background: var(--s2a-mark-mode-fill);
  border-color: var(--s2a-mark-mode-stroke);
}
.editorial-mark__glyph { color: var(--s2a-mark-accent); font-weight: 700; }
.editorial-mark__shape {
  inline-size: var(--s2a-mark-shape-size);
  block-size: var(--s2a-mark-shape-size);
  flex: none;
  fill: currentColor;
  stroke: currentColor;
}
.editorial-mark--belegt { background: var(--s2a-mark-belegt-fill); color: var(--s2a-mark-belegt-ink); }
.editorial-mark--annahme {
  color: color-mix(in srgb, var(--s2a-mark-annahme-accent) var(--s2a-mark-ink-weight), black);
  background: color-mix(in srgb, var(--s2a-mark-annahme-accent) var(--s2a-mark-annahme-tint-weight), var(--s2a-mark-surface));
  border-color: var(--s2a-mark-annahme-accent);
}
.editorial-mark--offen { color: var(--s2a-mark-ink); background: var(--s2a-mark-surface); border: var(--s2a-mark-stroke-width) dashed currentColor; }
.editorial-mark--entscheidet { background: var(--s2a-mark-entscheidet-fill); color: var(--s2a-mark-entscheidet-ink); }

/* Editorial card group, usable in articles, guides and workshop pages. */
.editorial-cards__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  padding: 0;
  list-style: none;
}

.editorial-cards__card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  justify-items: start;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.editorial-cards__headline {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
}

.editorial-cards__description,
.editorial-cards__fit { font-size: var(--text-sm); }

.editorial-cards__fit {
  inline-size: 100%;
  border-block-start: 1px solid var(--border);
  padding-block-start: var(--space-xs);
}

.editorial-cards__fit dt {
  color: var(--text-muted);
  font-family: var(--font-heading);
  margin-block-end: var(--space-2xs);
}

@media (max-width: 42em) {
  .editorial-cards__list { grid-template-columns: 1fr; }
  .editorial-cards__card { grid-template-rows: auto; grid-row: auto; }
}

.editorial-cards figcaption {
  margin-block-start: var(--space-xs);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Keep the quiet label small while centering it against the heading text. */
.editorial-heading {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.editorial-heading > .editorial-mark { flex: none; }
.editorial-heading__text { min-inline-size: 0; }
