/* "Every step, in detail": one wide table, with the site's colours from style.css.
   Wide screens scroll the table sideways inside its box; phones show each row as a card. */
.steps-main { max-width: 1488px; }
.back { margin: 28px 0 0; font-size: 0.95rem; }
.back a { color: var(--muted); text-underline-offset: 3px; }
.steps-h { margin: 12px 0 12px; font-size: clamp(2rem, 4vw, 2.8rem); }
.steps-lead { margin: 0 0 16px; color: var(--ink-2); max-width: 820px; }
.steps-lead a, .steps-facts a { text-decoration-style: dotted; text-underline-offset: 3px; }
.steps-facts { margin: 0 0 20px; padding-left: 20px; max-width: 900px; color: var(--ink-2); }
.steps-facts li { margin: 0 0 6px; }
.steps-facts strong { color: var(--ink); }
.steps-h2 { margin: 40px 0 10px; font-size: 1.5rem; }
.steps-date { margin: 24px 0 48px; color: var(--muted); font-size: 0.9rem; }
.steps-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; font-size: 0.88rem; color: var(--muted); }

.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tablewrap:focus-visible { outline-offset: 2px; }
table.flow { border-collapse: collapse; width: 100%; min-width: 1280px; font-size: 0.86rem; line-height: 1.5; }
.flow th, .flow td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.flow thead th { font: 700 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); }
.flow thead th:nth-child(1) { width: 48px; }
.flow thead th:nth-child(2) { width: 120px; }
.flow thead th:nth-child(3) { width: 190px; }
.flow thead th:nth-child(4) { width: 260px; }
.flow thead th:nth-child(5) { width: 220px; }
.flow thead th:nth-child(6) { width: 190px; }
.flow thead th:nth-child(7) { width: 200px; }
.flow tbody tr:not(.group):nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.flow tr.group th { padding-top: 18px; background: var(--bg); font: 600 1.05rem/1.3 var(--serif); color: var(--seal); letter-spacing: 0; text-transform: none; }
.flow tr.side td:first-child { color: var(--muted); }
.flow td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.flow code, .steps-facts code { font-size: 0.92em; padding: 0 5px; border-radius: 5px; background: var(--surface-2); overflow-wrap: anywhere; }
.flow .src { color: var(--muted); }
.none { color: var(--muted); }
.leaves { color: var(--seal); }
.btnl { font-weight: 600; white-space: nowrap; }
.btnl::before { content: "["; color: var(--muted); font-weight: 400; }
.btnl::after { content: "]"; color: var(--muted); font-weight: 400; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 9px; font: 600 10.5px/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
.tag.test { background: #F2C46D; color: #2B2108; }

/* Phones: each row becomes a card, each cell labelled with its column name. */
@media (max-width: 760px) {
  .tablewrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  table.flow { min-width: 0; font-size: 0.92rem; }
  .flow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .flow tbody, .flow tr, .flow td, .flow th { display: block; width: auto; }
  .flow tr:not(.group) { margin: 0 0 14px; padding: 6px 14px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .flow tbody tr:not(.group):nth-child(even) td { background: none; }
  .flow td { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .flow td:last-child { border-bottom: 0; }
  .flow td::before { content: attr(data-label); display: block; font: 700 10.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .flow td:first-child { font-size: 1.05rem; }
  .flow tr.group th { padding: 18px 0 8px; border: 0; background: none; }
  .btnl { white-space: normal; }
}
