/* The test drawings. On paper: white, the drawing and the tables together, the bar and the buttons gone. */
.diagrams > section { max-width: 72rem; margin-inline: auto; padding: 0 var(--pad) 4rem; }
.diagrams h2 { margin: 2.2rem 0 .8rem; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.diagrams .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dg-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: none; }
.dg-find { display: flex; gap: .8rem; flex-wrap: wrap; } .dg-find label { flex: 1 1 16rem; }
.dg-find input { font: inherit; width: 100%; min-height: 3.5rem; color: var(--ink); background: var(--tile); border: 1px solid var(--hair); border-radius: 99px; padding: .6rem 1.4rem; }
.dg-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .7rem; }
.dg-list a { display: block; height: 100%; padding: 1rem 1.2rem; border-radius: 22px; background: var(--tile); border: 1px solid var(--hair); text-decoration: none; }
.dg-list a:hover { border-color: var(--accent); } .dg-list bdi { color: var(--accent); font-size: .9rem; white-space: nowrap; } .dg-list span { display: block; color: var(--muted); margin-top: .2rem; }
.dg-warn { border: 1px solid var(--red); border-radius: 18px; padding: .9rem 1.2rem; margin: 0 0 1.4rem; max-width: 75ch; }
.dg-list ~ .dg-warn { margin-top: 2rem; }
.dg-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; } .dg-top h2 { margin-top: 1.6rem; }
.dg-sheet { margin: 0; padding: 1.2rem; border-radius: 28px; background: var(--tile); border: 1px solid var(--hair); }
.dg-sheet svg { display: block; width: 100%; height: auto; }
.dg-sheet figcaption { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.dg-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .6rem; padding: 0; color: var(--ink); } .dg-legend li { display: flex; gap: .5rem; align-items: center; } .dg-legend svg { width: 30px; height: 8px; } .dg-legend line { stroke: var(--c); stroke-width: 3; }
.dg-table { width: 100%; border-collapse: collapse; } .dg-table th, .dg-table td { text-align: start; padding: .55rem .5rem; border-bottom: 1px solid var(--hair); font-weight: 400; vertical-align: top; } .dg-table thead th { color: var(--muted); font-size: .92rem; } .dg-table i { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); margin-inline-end: .5rem; }
.dg-table th bdi { font-weight: 600; } .val { white-space: nowrap; font-weight: 600; }
.dg-safe { margin: 0; padding-inline-start: 1.2rem; max-width: 80ch; } .dg-safe li { margin-bottom: .35rem; } .dg-safe li::marker { color: var(--red); }
.dg-steps { list-style: none; counter-reset: s; margin: 0 0 1.4rem; padding: 0; max-width: 85ch; } .dg-steps li { counter-increment: s; display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--hair); }
.dg-steps input { flex: none; width: 1.35rem; height: 1.35rem; margin: .2rem 0 0; accent-color: var(--vivid); } .dg-steps label::before { content: counter(s) ". "; color: var(--accent); font-weight: 600; } .dg-steps p { color: var(--muted); margin-top: .3rem; }
.dg-codes { color: var(--muted); } .dg-codes bdi { display: inline-block; margin-inline-end: .5rem; }
.circuit-ink { stroke: var(--ink); fill: none; stroke-linecap: round; stroke-linejoin: round; } .circuit-box { fill: var(--raised); stroke: var(--ink); stroke-width: 1.4; } .circuit-hole { fill: var(--ground); stroke: var(--ink); stroke-width: 1.4; } .circuit-dot { fill: var(--ink); } .circuit-wire { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linejoin: round; } .circuit-text { fill: var(--ink); font-family: "Plex", sans-serif; text-anchor: middle; dominant-baseline: central; } .circuit-text[class*="cw-"] { fill: var(--c); font-weight: 600; }
@media (max-width: 860px) { .dg-top { grid-template-columns: minmax(0, 1fr); } }
@media print {
    @page { margin: 12mm; }
    :root, [data-mode] { --ground: #fff !important; --ink: #000 !important; --title: #000 !important; --muted: #333 !important; --tile: #fff !important; --raised: #f2f2f2 !important; --hair: #999 !important; --accent: #000 !important; --red: #B3261E !important; }
    html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; } body::before, body::after { display: none !important; }
    .top, body > footer, .skip, .dg-print, .dg-find, .dg-head a { display: none !important; }
    .page-head { background: none !important; padding: 0 0 .4rem !important; } .page-head h1 { font-size: 20pt !important; max-width: none; } .page-head .lead { font-size: 11pt; }
    .diagrams > section { padding: 0; max-width: none; } .diagrams h2 { margin: .9rem 0 .3rem; font-size: 13pt; }
    .dg-top { grid-template-columns: 1.1fr 1fr; gap: 1rem; } .dg-sheet { border-radius: 8px; padding: .5rem; } .dg-warn { padding: .4rem .7rem; margin-bottom: .8rem; max-width: none; border-radius: 8px; }
    .dg-table th, .dg-table td { padding: .2rem .3rem; } .dg-steps, .dg-safe { max-width: none; } .dg-steps li { padding: .35rem 0; break-inside: avoid; } .dg-sheet, .dg-table tr { break-inside: avoid; } h2 { break-after: avoid; }
    .circuit-wire, .circuit-box, .dg-table i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
