/* The stage of «Матрица» and the layer stack of «Про AI». System — design/red_mad_robot. */

:root { --line: var(--rm-grey-200); }

.ico { display: block; width: 16px; height: 16px; flex: none; }
.ico path { stroke-linecap: square; }

/* Stage: the wall. A direction's offers live on its own page (web/fn/, web/it/). */
/* No min-height: 0 — the wall keeps its own minimum (style.css) through the stage. */
.stage { position: relative; flex: 1 1 auto; display: flex; }
.stage > .wall { flex: 1 1 auto; min-width: 0; }

/* ── Layer stack ── */
.stack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rm-black); }
.stack__row {
  display: grid; grid-template-columns: 22px minmax(0, 12ch) minmax(0, 1fr); gap: 0 14px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-2); transition: color 160ms ease-out;
}
.stack__name { font-size: 15px; line-height: 1.3; color: var(--rm-black); }
.stack__text { font-size: 13px; line-height: 1.4; }
.stack__row:not(.is-lit) .stack__name { color: var(--ink-2); }
.cell {
  align-self: center; width: 14px; height: 14px; background: var(--rm-grey-100);
  display: grid; place-items: center; transition: background-color 200ms ease-out;
}
.is-lit > .cell { background: var(--rm-red); }

.planes { margin-top: 16px; }
.planes__cap { font-size: 13px; color: var(--ink-2); }
.planes__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.planes__item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.planes__item.is-lit { color: var(--rm-black); }

/* Chips: one line of offers to jump to. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  appearance: none; font: inherit; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer;
  border: 1px solid var(--rm-black); border-radius: 0; background: var(--rm-white); color: var(--rm-black);
  padding: 7px 12px; transition: background-color 120ms ease-out, color 120ms ease-out;
}
.chip:hover, .chip:focus-visible { background: var(--rm-black); color: var(--rm-white); }

@media (max-width: 1023px) {
  .stack__row { grid-template-columns: 18px minmax(0, 1fr); }
  .stack__text { grid-column: 2; }
}
