/* Step 09 · Where this goes next: cards, slide map, verification, references */
#s9 .s9-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-block: 22px 30px; }
@media (min-width: 760px) { #s9 .s9-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#s9 .s9-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 18px 8px; min-width: 0; }
#s9 .s9-card h3 { margin: 4px 0 8px; font-size: 1.3rem; }
#s9 .s9-card p { font-size: 0.97rem; line-height: 1.58; }
#s9 .s9-card .s9-meta { font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#s9 .s9-card .s9-meta .slide-ref { font-size: 0.7rem; }
#s9 .s9-next { border-style: dashed; border-color: color-mix(in srgb, var(--source) 55%, var(--rule)); background: color-mix(in srgb, var(--source) 5%, var(--surface)); }
#s9 .s9-next .s9-meta { color: var(--source); }

/* card illustrations (inline SVG, theme colours) */
#s9 .s9-ill { display: block; width: 100%; height: 92px; margin: 0 0 10px; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; }
#s9 .s9-vox path { stroke: var(--rule); stroke-width: 1; fill: none; }
#s9 .s9-surf { stroke: var(--target); stroke-width: 2.5; fill: none; }
#s9 .s9-srcpts circle { fill: var(--source); }
#s9 .s9-cam { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
#s9 .s9-ray { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
#s9 .s9-tgt-ell ellipse { fill: color-mix(in srgb, var(--target) 22%, transparent); stroke: var(--target); stroke-width: 1.4; }
#s9 .s9-src-ell ellipse { fill: color-mix(in srgb, var(--source) 22%, transparent); stroke: var(--source); stroke-width: 1.4; }
#s9 .s9-link { stroke: var(--match); stroke-width: 1; stroke-dasharray: 2 3; fill: none; }
#s9 .s9-edge { stroke: var(--muted); stroke-width: 1.6; fill: none; stroke-linejoin: round; }
#s9 .s9-loop { stroke: var(--source); stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
#s9 .s9-node circle { fill: var(--surface); stroke: var(--target); stroke-width: 2; }
#s9 .s9-lbl { font-family: var(--f-mono); font-size: 9px; fill: var(--muted); letter-spacing: 0.04em; }
#s9 .s9-lbl-loop { fill: var(--source); }
#s9 .s9-gt0 { stop-color: var(--target); stop-opacity: 0.75; }
#s9 .s9-gt1 { stop-color: var(--target); stop-opacity: 0; }
#s9 .s9-gs0 { stop-color: var(--source); stop-opacity: 1; }
#s9 .s9-gs1 { stop-color: var(--source); stop-opacity: 0.2; }

/* tables */
#s9 .s9-tbl table { font-size: 0.9rem; }
#s9 .s9-tbl td { line-height: 1.5; }
#s9 .s9-step { white-space: nowrap; font-weight: 700; }
#s9 .s9-step b { font-family: var(--f-mono); font-size: 0.78rem; color: var(--source); font-weight: 600; margin-right: 4px; }
#s9 .s9-num { font-family: var(--f-mono); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
#s9 .s9-ver td:first-child { min-width: 12rem; }
#s9 .s9-res .s9-it { color: var(--muted); margin-left: 4px; }
#s9 .s9-res.live .s9-val::before { content: "live "; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); border-radius: 4px; padding: 0 4px; margin-right: 6px; vertical-align: 0.1em; }
#s9 .s9-res.same .s9-val { color: var(--good); }
#s9 .s9-res.diff .s9-val { color: var(--bad); }
#s9 .s9-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 18px; }
#s9 .s9-status { margin: 0; font-size: 0.88rem; color: var(--muted); flex: 1 1 16rem; }
#s9 .s9-facts { font-size: 0.95rem; }
#s9 .s9-facts li { margin-bottom: 8px; }
#s9 code { font-family: var(--f-mono); font-size: 0.86em; background: var(--tint); border-radius: 4px; padding: 0 4px; }

/* references */
#s9 .s9-refs { font-size: 0.9rem; line-height: 1.5; padding-left: 1.6rem; }
#s9 .s9-refs li { margin-bottom: 6px; padding-left: 2px; }
#s9 .s9-refs li::marker { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
#s9 .s9-refs a { overflow-wrap: anywhere; }
#s9 .s9-credits { font-size: 0.9rem; color: var(--muted); }
#s9 .s9-credits b { color: var(--ink); }
#s9 #s9-autotest { white-space: pre-wrap; font-size: 0.7rem; }

/* phones: each verification row becomes a small stacked block so no number is cut off */
@media (max-width: 600px) {
  #s9 .s9-ver thead { display: none; }
  #s9 .s9-ver table, #s9 .s9-ver tbody, #s9 .s9-ver tr, #s9 .s9-ver td { display: block; }
  #s9 .s9-ver tr { padding: 9px 12px; border-bottom: 1px solid var(--rule); }
  #s9 .s9-ver tr:last-child { border-bottom: 0; }
  #s9 .s9-ver td { border: 0; padding: 1px 0; white-space: normal; }
  #s9 .s9-ver td:first-child { min-width: 0; font-weight: 700; margin-bottom: 3px; }
  #s9 .s9-ver td[data-k]::before { content: attr(data-k); display: inline-block; width: 6.4rem; font-family: var(--f-mono); font-size: 0.66rem;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 520px) {
  #s9 .s9-card { padding: 12px 14px 6px; }
  #s9 .s9-ver td:first-child { min-width: 9rem; }
  #s9 .s9-tbl table { font-size: 0.86rem; }
}
