/* Long-form detail blocks on technicals.html: the pairing steps, the
   bounded-session table, and the two-column contains/does-not-contain
   panels that sit under each section's summary row. */
/* Long-form detail under a section's headline row. The two-column
   tech-grid above stays for the summary and its diagram. */
.tech-detail { margin-top: clamp(2.5rem, 5vw, 4rem); }
.tech-detail h3 { margin: 2.8rem 0 0; font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.tech-detail h3:first-child { margin-top: 0; }
.tech-detail h4 { margin: 0 0 0.5rem; font-size: 0.98rem; }
.tech-detail p { max-width: 64ch; margin: 1rem 0 0; color: var(--color-ink-muted); font-family: var(--font-reading); }
.tech-detail ul { max-width: 64ch; margin: 1rem 0 0; padding-left: 1.1rem; color: var(--color-ink-muted); font-family: var(--font-reading); }
.tech-detail li { margin: 0.4rem 0; }
.tech-detail code { font-family: var(--kai-mono); font-size: 0.86em; background: color-mix(in srgb, currentColor 9%, transparent); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

/* The pairing ceremony, one numbered card per exchange. */
.step-list { counter-reset: step; list-style: none; display: grid; gap: 12px; margin: 1.6rem 0 0; padding: 0; }
.step-list li { position: relative; min-width: 0; padding: 16px 18px 18px 56px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
  background: color-mix(in srgb, currentColor 3%, transparent);
  color: var(--color-ink-muted); font-family: var(--font-reading); }
.step-list li::before { counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--kai-font); font-size: 0.78rem; font-weight: 700;
  background: var(--color-ink); color: var(--color-on-dark); }
.step-list b { color: var(--color-ink); font-weight: 700; }

.detail-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 1.5rem; }
.detail-cols > div { min-width: 0; padding: 20px 20px 22px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, currentColor 13%, transparent); }
.detail-cols ul { margin-top: 0; }
@media (max-width: 46rem) { .detail-cols { grid-template-columns: minmax(0, 1fr); } }

/* A wide table must scroll in its own box, never widen the page. */
.spec-wrap { overflow-x: auto; margin-top: 1.4rem; }
.spec-table { width: 100%; min-width: 22rem; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.spec-table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.spec-table td { color: var(--color-ink-muted); }
.spec-table td.num { font-family: var(--kai-mono); white-space: nowrap; color: var(--color-ink); }

.tech-section-dark .tech-detail p,
.tech-section-dark .tech-detail ul,
.tech-section-dark .spec-table td { color: color-mix(in oklch, var(--color-on-dark) 82%, transparent); }
.tech-section-dark .tech-detail h3,
.tech-section-dark .tech-detail h4 { color: var(--color-on-dark); }

.tech-note { margin-top: 1.6rem; padding: 16px 18px; border-radius: 14px;
  border: 1px dashed color-mix(in srgb, currentColor 22%, transparent); }
.tech-note p { margin: 0; max-width: 68ch; }
