/* =========================================================================
   Component — numbered rules (U-2282, redesign R8f)
   -------------------------------------------------------------------------
   A short ordered list of rules or steps, each a panel with its number in a
   ring beside the text: the crew's building rules and what belongs in a
   support request. Two columns from 768 px, one below; the canvas's values
   (24 px inside, 16 px apart, the 32 px ring in the teal line).

     <ol class="rules">
       <li class="rule"><span class="rule-num" aria-hidden="true">1</span>
         <div><p class="eyebrow">…</p><h3>…</h3><p>…</p></div></li>
     </ol>

   The list is an `<ol>`, so the order is read out; the drawn number repeats it
   and is hidden from assistive technology. On the alternating band a rule
   takes the muted ground, as a card does (components/band.css).
   ========================================================================= */

.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .rules {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rule {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius);
  background: var(--doc-panel);
}

.section-alt .rule {
  background: var(--sd-surface-alt);
}

.rule-num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: var(--border-w-strong) solid var(--sd-secondary);
  border-radius: var(--radius-pill);
  color: var(--sd-secondary);
  font-weight: 700;
}

.rule > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rule h3,
.rule h4 {
  margin: 0;
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg-lh);
}

.rule p {
  margin: 0;
  color: var(--doc-ink-soft);
}
