/* Second Nature lab: the four-stage breeding season, parent rules, the edit bench and Jesse's Cas9 explainer.
   Reading text is VT323 at 19px or more; Silkscreen is kept for small caps labels and buttons. */

/* ---------- The season in four stages ---------- */
.sn-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: stage; }
.sn-flow li { counter-increment: stage; position: relative; padding: 10px 12px 10px 46px; border-radius: 6px; background: #181d31; border: 1px solid var(--c-line); color: var(--c-faint); }
.sn-flow li::before { content: counter(stage); position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; font: 22px/1 var(--f-term); }
.sn-flow b { display: block; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
.sn-flow small { display: block; margin-top: 3px; font: 19px/1.05 var(--f-term); color: var(--c-faint); }
.sn-flow li.done { color: var(--c-jade); }
.sn-flow li.done b { color: var(--c-text); }
.sn-flow li.now { color: var(--c-amber); border-color: var(--c-amber); background: var(--c-amber-wash); }
.sn-flow li.now b, .sn-flow li.now small { color: var(--c-ink); }
.sn-flow li.open { color: var(--c-jesse); border-style: dashed; border-color: rgba(111, 211, 189, .5); }
.sn-flow li.open small { color: var(--c-dim); }
.sn-flow li.skip { opacity: .6; }
.sn-flow li.skip::before { content: "–"; }

/* ---------- Stage 1: who can parent this season ---------- */
.sn-rule { display: grid; gap: 2px 12px; grid-template-columns: auto 1fr; margin: 12px 0 10px; padding: 10px 14px; border-left: 4px solid var(--c-amber); border-radius: 0 6px 6px 0; background: rgba(18, 21, 36, .8); }
.sn-rule b { grid-row: span 2; align-self: start; padding-top: 6px; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-amber); }
.panel.computer .sn-rule p { margin: 0; font: 22px/1.1 var(--f-term); color: var(--c-ink); }
.sn-rule small { font: 19px/1.15 var(--f-term); color: var(--c-dim); }
.sn-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.sn-who li { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 6px; background: #181d31; border: 1px solid var(--c-line); }
.sn-who li.key { border-color: var(--c-amber); background: var(--c-amber-wash); }
.sn-who .sn-node-portrait { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; }
.sn-who span b { display: block; font: 20px/1 var(--f-term); font-weight: normal; color: var(--c-ink); }
.sn-who span small { display: block; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint); }
.sn-who .sn-geno { font-size: 19px; padding: 2px 5px 1px; }
.sn-who em { font: var(--fs-label)/1.2 var(--f-label); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--c-amber); }
.panel.computer .sn-away { margin: 0 0 10px; font: 19px/1.15 var(--f-term); color: var(--c-faint); }
.panel.computer .sn-pair-check { margin: 10px 0; padding: 6px 12px; border-radius: 4px; font: 20px/1.15 var(--f-term); }
.sn-pair-check.ok { color: var(--c-jade); background: rgba(71, 196, 163, .08); }
.sn-pair-check.ok::before { content: "✓ "; }
.sn-pair-check.bad { color: #f6b0a6; background: rgba(240, 138, 125, .1); }
.sn-pair-check.bad::before { content: "✗ "; }
.panel.computer .sn-deal-foot { margin: 2px 0 0; font: 19px/1.15 var(--f-term); color: var(--c-dim); }
.computer .sn-plan .btn[data-sn="forecast"]:disabled { filter: grayscale(.7); }

/* ---------- Stages 2–4: notes on the forecast cards (type comes from laptop.css .sn-note) ---------- */
.panel.computer .sn-forecasts .sn-note { margin: 0 0 14px; }
.panel.computer .sn-note.ok { border-left-color: var(--c-jade); color: var(--c-text); }
.sn-noedit { flex: 1 1 auto; align-self: center; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint); }
.computer .sn-card-actions .btn[data-sn="select-embryo"]:disabled { opacity: .5; }

/* ---------- Jesse's explainer panels ---------- */
.sn-howcas9 { margin: 0 0 14px; border: 1px solid rgba(111, 211, 189, .4); border-radius: 8px; background: rgba(111, 211, 189, .05); }
.sn-howcas9 > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.sn-howcas9 > summary::-webkit-details-marker { display: none; }
.sn-howcas9 > summary::before { content: "▸"; font: 22px/1 var(--f-term); color: var(--c-jesse); }
.sn-howcas9[open] > summary::before { content: "▾"; }
.sn-howcas9 > summary span { font: 24px/1 var(--f-term); color: var(--c-jesse); }
.sn-howcas9 > summary small { font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
.sn-howcas9 > summary:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; border-radius: 6px; }
.sn-howcas9 .sn-c9-card { max-width: none; margin: 0 12px 12px; }
.panel.computer .sn-c9-lead { margin: 0 14px 10px; font: 19px/1.2 var(--f-term); color: var(--c-dim); }
.sn-c9-fold { margin: 0 12px 8px; border: 1px solid rgba(111, 211, 189, .28); border-radius: 6px; background: rgba(15, 19, 34, .5); }
.sn-c9-fold > summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; cursor: pointer; list-style: none; }
.sn-c9-fold > summary::-webkit-details-marker { display: none; }
.sn-c9-fold > summary::before { content: "▸"; font: 20px/1 var(--f-term); color: var(--c-jesse); }
.sn-c9-fold[open] > summary::before { content: "▾"; }
.sn-c9-fold > summary small { flex: none; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-jesse); }
.sn-c9-fold > summary span { font: 22px/1 var(--f-term); color: var(--c-ink); }
.sn-c9-fold > summary:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; border-radius: 6px; }
.sn-c9-fold .sn-c9-card { margin: 0 8px 8px; }
.sn-forecasts > header .sn-howcas9 { margin: 12px 0 0; }
.sn-c9-card header h4 { margin: 0; font: 26px/1 var(--f-term); color: var(--c-ink); }
.panel.computer .sn-c9-card .sn-explainer-text p { max-width: 74ch; font: 20px/1.25 var(--f-term); color: var(--c-text); }
.sn-c9-shelf .sn-c9-card { max-width: none; margin: 0 14px 14px; }

/* Diagrams */
.c9-art { font-family: var(--f-term); }
.sn-c9-card { container-type: inline-size; }
/* A narrow card stacks card 1's three pictures, and its arrows turn to point down the column. */
@container (max-width: 420px) { .c9-text { flex-direction: column; } .c9-text .art-op { transform: rotate(90deg); } }
.c9-art figure { margin: 0; display: grid; justify-items: center; gap: 6px; text-align: center; }
.c9-art figcaption { font: 19px/1.05 var(--f-term); color: var(--c-ink); }
.c9-art figcaption small { margin-top: 3px; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint); }
.c9-cells { display: grid; grid-template-columns: repeat(2, 26px); gap: 4px; }
.c9-cells i { width: 26px; height: 26px; border-radius: 45% 55% 50% 50%; background: radial-gradient(circle at 50% 50%, #8fb3ff 0 4px, #2b3a63 5px 100%); border: 1px solid #5a6fa5; }
.c9-ladder { display: grid; gap: 1px; padding: 6px 8px; border-radius: 4px; background: #10142a; }
.c9-ladder > span { display: grid; grid-template-columns: repeat(8, 15px); justify-items: center; font-size: 21px; line-height: 1; color: var(--c-ink); }
.c9-ladder > span i { font-style: normal; }
.c9-ladder > span:last-child i { color: var(--c-dim); }
.c9-ladder .rungs i { width: 2px; height: 9px; background: var(--c-line-2); }
.c9-protein { display: grid; justify-items: center; gap: 4px; }
.c9-protein b { padding: 6px 18px; border-radius: 22px; background: rgba(111, 211, 189, .22); border: 2px solid var(--c-jesse); font: 22px/1 var(--f-term); font-weight: normal; color: var(--c-ink); }
.c9-guide { font-size: 19px; letter-spacing: .02em; color: var(--c-olivia); }

.c9-search { container-type: inline-size; flex-direction: column; flex-wrap: nowrap; align-items: stretch; overflow-x: auto; }
/* Like the bench lineup, the letter columns narrow with the space so the PAM stays in view. A single flex line keeps the
   legend as wide as the box rather than as wide as the strand. --dw sizes the dim context columns either side. */
.c9-track { --end: 26px; --pad: 8px; --cw: clamp(6.6px, calc((100cqw - 2 * var(--end) - 2 * var(--pad)) / var(--n)), 15px); --dw: var(--cw); position: relative; display: grid; grid-template-columns: var(--end) repeat(var(--l), var(--dw)) var(--pad) repeat(var(--core), var(--cw)) var(--pad) repeat(var(--r), var(--dw)) var(--end); grid-auto-rows: auto; row-gap: 2px; justify-content: safe center; font-size: clamp(19px, calc(var(--cw) * 1.34), 20px); line-height: 1.05; }
.c9-label .short { display: none; }
/* Narrow: the dim context goes, so the address and PAM get every column; the ends keep a clear gap from the letters. */
@container (max-width: 420px) {
  .c9-track { --end: 20px; --pad: 6px; --dw: 0px; --cw: clamp(6.6px, calc((100cqw - 2 * var(--end) - 2 * var(--pad)) / var(--core)), 15px); }
  .c9-track i.dim { display: none; }
  .c9-label { letter-spacing: 0; } .c9-label .long { display: none; } .c9-label .short { display: inline; }
  .c9-cas9-tag { letter-spacing: 0; }
}
.c9-track i { position: relative; z-index: 1; font-style: normal; text-align: center; color: var(--c-ink); }
.c9-track i.dim { color: var(--c-faint); }
.c9-track i.pam { color: #211709; background: var(--c-amber); }
.c9-track i.guide { color: var(--c-olivia); }
.c9-end { font-size: 19px; color: var(--c-faint); align-self: center; text-align: center; white-space: nowrap; }
/* The outline's edges sit in the empty padding columns; the tag hangs below its right end, under the PAM. */
.c9-cas9 { position: relative; z-index: 0; margin: -6px 0 -4px; border-radius: 8px; background: rgba(111, 211, 189, .12); border: 2px solid rgba(111, 211, 189, .6); }
.c9-cas9-tag { justify-self: start; margin: 6px 0 0 2px; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--c-jesse); }
.c9-snip { position: relative; z-index: 2; border-left: 2px dashed #f08a7d; margin-left: -1px; }
.c9-snip::before { content: "✂"; position: absolute; top: -20px; left: -10px; font-size: 19px; color: #f08a7d; }
.c9-label { padding-bottom: 2px; text-align: center; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); border-bottom: 1px solid var(--c-line-2); margin-bottom: 4px; }
.c9-label.pam { color: var(--c-amber); border-color: var(--c-amber); letter-spacing: 0; }
.c9-label.guide { border: 0; border-top: 1px solid rgba(201, 170, 242, .5); margin: 4px 0 0; padding-top: 3px; color: var(--c-olivia); }
.c9-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font: 19px/1.1 var(--f-term); color: var(--c-dim); }
.c9-key li { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.c9-key i { flex: none; width: 14px; height: 14px; border-radius: 2px; }
.c9-key .k-pam { background: var(--c-amber); } .c9-key .k-addr { border: 2px solid var(--c-ink); }
.c9-key .k-guide { background: var(--c-olivia); } .c9-key .k-cut { border-left: 2px dashed #f08a7d; border-radius: 0; width: 8px; }

.c9-repair { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
.c9-repairs { container-type: inline-size; display: grid; gap: 10px; }
.c9-repairs figure { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 14px; text-align: left; }
.c9-mini { display: inline-flex; padding: 4px 8px; border-radius: 4px; background: #10142a; font-size: 20px; line-height: 1; letter-spacing: .02em; }
.c9-mini i { width: clamp(8px, calc((100cqw - 18px) / 20), 12px); text-align: center; font-style: normal; color: var(--c-ink); }
.c9-mini i.lost { color: #f08a7d; }
.c9-mini i.new { color: #0f1322; background: var(--c-jade); }
.c9-gap { position: relative; top: -16px; left: -6px; width: 0; font-size: 19px; font-weight: normal; color: #f08a7d; }
.c9-repairs .bad figcaption { color: #f6b0a6; }
.c9-repairs .good figcaption { color: var(--c-jade); }
.c9-timing { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; padding-top: 12px; border-top: 1px dashed var(--c-line-2); }
.c9-dots { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 3px; width: 64px; height: 48px; }
.c9-dots i { width: 13px; height: 13px; border-radius: 50%; background: #2a3150; border: 1px solid var(--c-line-2); }
.c9-dots i.on { background: var(--c-jade); }
.c9-dots.one i { width: 34px; height: 34px; }
.c9-dots.body { position: relative; width: 70px; border-radius: 26px 26px 18px 18px; background: #2a3150; border: 1px solid var(--c-line-2); }
.c9-dots.body i { width: 8px; height: 8px; border: 0; }
.c9-dots.eight { width: 64px; }

.c9-screen { gap: 18px 28px; }
.c9-embryos { display: flex; gap: 16px; }
.c9-embryo { position: relative; display: grid; grid-template-columns: repeat(2, 14px); gap: 2px; padding: 9px; border-radius: 50%; background: rgba(243, 231, 203, .1); border: 2px solid var(--c-line-2); }
.c9-embryo i { width: 14px; height: 14px; border-radius: 50%; background: #3b4468; }
.c9-embryo i.read { background: var(--c-amber); }
.c9-screen figure.picked .c9-embryo { border-color: var(--c-amber); box-shadow: 0 0 0 3px var(--c-amber-wash); }
.c9-screen figcaption { display: grid; justify-items: center; gap: 3px; }
.c9-geno { display: inline-block; padding: 1px 5px; border-radius: 3px; background: #12162a; border: 1px solid var(--c-line); font: 19px/1 var(--f-term); color: var(--c-jade); }
.c9-versus { display: grid; gap: 8px; max-width: 330px; }
.panel.computer .c9-versus p { margin: 0; font: 19px/1.15 var(--f-term); color: var(--c-text); }
.c9-versus b { display: block; font: var(--fs-label)/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-amber); }

/* ---------- The edit bench ---------- */
.panel.computer .sn-why { display: flex; gap: 10px; align-items: baseline; margin: -6px 0 14px 42px; font: 19px/1.15 var(--f-term); color: var(--c-dim); }
.sn-why b { flex: none; padding: 3px 6px 2px; border-radius: 3px; background: rgba(111, 211, 189, .14); font: var(--fs-label)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-jesse); }
.panel.computer .sn-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.sn-trail span { font: var(--fs-label)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }
.sn-trail b { padding: 3px 8px 2px; border-radius: 3px; background: #181d31; border: 1px solid var(--c-line); font: 19px/1 var(--f-term); font-weight: normal; color: var(--c-text); }
.panel.computer .sn-howto { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: how; }
.panel.computer .sn-howto li { counter-increment: how; position: relative; padding-left: 34px; font: 20px/1.2 var(--f-term); color: var(--c-text); }
.sn-howto li::before { content: counter(how); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--c-amber); color: #211709; font: 20px/1 var(--f-term); }
.sn-howto b { font-weight: normal; color: var(--c-amber); }
.panel.computer .sn-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; font: 20px/1.1 var(--f-term); color: var(--c-ink); }
.sn-key span { font: var(--fs-label)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }

/* The guide lineup: every row shares one letter grid, so guides read straight down against the DNA. The letter columns
   shrink with the space available (a container query), down to about VT323's own letter width at 19px, so the PAM,
   the address and the guides stay in view in narrow windows; only below that does the row scroll. */
.sn-lineup-wrap { container-type: inline-size; margin: 0 0 12px; padding: 12px 8px 10px; overflow-x: auto; background: #0f1322; border: 1px solid var(--c-line); border-radius: 6px; }
.sn-lineup { --lab: 84px; --end: 24px; --cw: clamp(6.6px, calc((100cqw - var(--lab) - 2 * var(--end) - 4px) / var(--n)), 19px); display: grid; gap: 4px; width: max-content; font-family: var(--f-term); }
/* --lc counts the leading context, address and PAM columns; --r the trailing context, which narrow lineups drop. */
.sn-line { display: grid; grid-template-columns: var(--lab) var(--end) repeat(var(--lc), var(--cw)) repeat(var(--r), var(--tw, var(--cw))) var(--tail-end, var(--end)); align-items: center; min-height: 30px; }
.sn-line i { grid-row: 1; font: clamp(19px, calc(var(--cw) * 1.32), 25px)/1.1 var(--f-term); font-style: normal; text-align: center; color: var(--c-ink); }
.sn-line-label { grid-column: 1; grid-row: 1; padding-left: 8px; font: var(--fs-label)/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-dim); }
.sn-end { grid-row: 1; text-align: center; font-size: 19px; color: var(--c-faint); }
.sn-line.dna i.dim { color: var(--c-faint); }
.sn-line.dna i.addr { background: rgba(244, 240, 230, .06); border-bottom: 2px solid var(--c-line-2); }
.sn-line.dna i.pam { color: #211709; background: var(--c-amber); }
/* Faint bands group the address in fives, so a guide can be checked against the DNA five letters at a time. */
.sn-line i.alt { background: rgba(244, 240, 230, .05); }
.sn-line.dna i.addr.alt { background: rgba(244, 240, 230, .12); }
/* Reads: the rewritten letter is boxed, a lost letter is a red dash, and the cut is a dashed line between two columns. */
.sn-line.dna i.site { outline: 2px solid #f08a7d; outline-offset: -2px; border-radius: 2px; }
.sn-line.dna i.site.mixed { outline: 2px dashed var(--c-jade); }
.sn-line.dna i.site.fixed { color: #0f1322; background: var(--c-jade); outline-color: var(--c-jade); }
.sn-line.dna i.gone { color: #f08a7d; }
.sn-cutline { position: relative; z-index: 1; grid-row: 1; align-self: stretch; justify-self: start; margin-left: -1px; border-left: 2px dashed #f08a7d; pointer-events: none; }
.sn-cutline b { position: absolute; bottom: -22px; left: -9px; font: 19px/1 var(--f-term); font-weight: normal; color: #f08a7d; }
.sn-lineup .sn-line.dna:has(.sn-cutline) { margin-bottom: 20px; } /* room for the scissors under the cut */
.sn-line.labels, .sn-line.ngg { min-height: 0; }
/* The marks sit on the letters they name, however many lines the 12px label takes. */
.sn-line.labels { align-items: end; }
.sn-mark { grid-row: 1; padding: 0 0 4px; text-align: center; font: var(--fs-label)/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); border: 1px solid var(--c-line-2); border-bottom: 0; border-radius: 4px 4px 0 0; padding-top: 4px; margin: 0 1px; text-wrap: balance; }
.sn-mark .short { display: none; }
.sn-mark.pam { color: var(--c-amber); border-color: var(--c-amber); letter-spacing: 0; }
.sn-line.ngg i.ngg { font-size: clamp(19px, calc(var(--cw) * 1.16), 22px); color: var(--c-amber); border: 1px dashed rgba(255, 182, 61, .7); border-top: 0; border-radius: 0 0 3px 3px; }
.sn-line-note { grid-row: 1; padding-left: 8px; font: var(--fs-label)/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-amber); }
.sn-line-note.lead { padding: 0 8px 0 0; text-align: right; }
.computer .btn.sn-line.guide { display: grid; justify-content: start; gap: 0; width: auto; margin: 0; padding: 0; min-height: 36px; font: inherit; text-align: left; text-transform: none; letter-spacing: 0; background: #1a2038; border: 2px solid #3b4362; border-radius: 6px; box-shadow: none; color: var(--c-ink); }
.computer .btn.sn-line.guide:hover, .computer .btn.sn-line.guide:focus-visible { background: #3a3157; border-color: var(--c-amber); outline: none; }
.computer .btn.sn-line.guide:active { transform: none; }
.sn-line.guide i { color: var(--c-olivia); }
.sn-line.guide .sn-line-label { color: var(--c-ink); }
.sn-line.guide.picked { border: 2px solid transparent; }
.sn-line.guide i.miss { color: #0f1322; background: #f08a7d; border-radius: 2px; }
.sn-line.guide i.nopam { color: #f6b0a6; border: 1px dashed #f08a7d; border-radius: 2px; }
.sn-line.guide .sn-line-note { color: #f6b0a6; }
.sn-line.dna, .sn-line.labels, .sn-line.ngg { border: 2px solid transparent; }
/* Narrow: each row's label moves above its letters, so all 32 columns can share the width. */
@container (max-width: 560px) {
  .sn-lineup { --lab: 0px; --end: 15px; }
  .sn-line { min-height: 0; }
  .sn-line-label { grid-column: 1 / -1; grid-row: 1; padding: 3px 0 1px 4px; }
  .sn-line i, .sn-end, .sn-mark, .sn-line-note, .sn-cutline { grid-row: 2; }
  /* The trailing context and 3′ end go, so the address, PAM and every guide (one starts six letters early) get wider
     columns; the "not N G G" note moves up beside its row's label. */
  .sn-lineup { --tw: 0px; --tail-end: 0px; --cw: clamp(6.6px, calc((100cqw - var(--end) - 4px) / var(--lc)), 19px); }
  .sn-line i.tail, .sn-end.tail { display: none; }
  .sn-line.guide .sn-line-note { grid-row: 1; grid-column: 1 / -1 !important; justify-self: end; padding-right: 6px; }
  .computer .btn.sn-line.guide { padding-bottom: 2px; }
  /* Three letter columns are narrower than "PAM" at the 12px label size: the marks become underlined labels, as in the
     Cas9 diagram, so a label a little wider than its letters has no box edge to cross. */
  .sn-mark { letter-spacing: 0; padding: 0 0 2px; margin: 0 1px 4px; border: 0; border-bottom: 1px solid var(--c-line-2); border-radius: 0; white-space: nowrap; }
  .sn-mark .long { display: none; } .sn-mark .short { display: inline; }
}

@media (max-width: 760px) {
  .sn-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-rule { grid-template-columns: 1fr; }
  .sn-rule b { grid-row: auto; padding: 0; }
  .c9-repairs figure { grid-template-columns: 1fr; }
  .panel.computer .sn-why { margin-left: 0; }
  .sn-lineup-wrap { padding-left: 4px; padding-right: 4px; }
  .c9-search { padding-left: 6px; padding-right: 6px; }
  /* Narrow windows give the diagrams the width that nested margins would take: the bench, its folds and the cards inside. */
  .panel.computer .sn-bench { padding: 14px 10px; }
  .sn-c9-fold { margin: 0 6px 8px; }
  .sn-howcas9 .sn-c9-card { margin: 0 6px 8px; }
  .sn-c9-fold .sn-c9-card { margin: 0; border-width: 1px 0 0; border-radius: 0; }
  .sn-c9-card .c9-art { margin: 10px 8px 4px; }
}
