.gates[data-astro-cid-4q7vb6v6]{gap:.75rem;display:grid}.gate[data-astro-cid-4q7vb6v6]{border-radius:var(--radius-lg);corner-shape:var(--corner-shape);background:var(--surface-alt);grid-template-columns:4.5rem 3.5rem 3.5rem 1fr 3.5rem;align-items:center;gap:.75rem;padding:.75rem 1rem;display:grid}.gate-name[data-astro-cid-4q7vb6v6]{color:var(--heading);font-family:var(--font-mono);font-weight:600}.gate-rule[data-astro-cid-4q7vb6v6]{color:var(--text-muted);font-size:var(--text-sm);text-align:right;grid-area:1/4}.output[data-astro-cid-4q7vb6v6]{grid-area:1/5}@media (width<=40rem){.gate[data-astro-cid-4q7vb6v6]{grid-template-columns:3.5rem 3rem 3rem 1fr 3rem;gap:.5rem}.gate-rule[data-astro-cid-4q7vb6v6]{grid-area:2/1/auto/-1}}.notation[data-astro-cid-4q7vb6v6].is-negated{text-decoration:overline}.gate-detail-body[data-astro-cid-4q7vb6v6]{grid-template-columns:minmax(0,1fr);gap:1rem;display:grid}.gate-detail-body[data-astro-cid-4q7vb6v6] .truth-table[data-astro-cid-4q7vb6v6] thead[data-astro-cid-4q7vb6v6] th[data-astro-cid-4q7vb6v6]{background:var(--code-bg)}.truth-table[data-astro-cid-4q7vb6v6] th[data-astro-cid-4q7vb6v6],.truth-table[data-astro-cid-4q7vb6v6] td[data-astro-cid-4q7vb6v6]{font-family:var(--font-mono);text-align:center;padding:.4rem .75rem}.bit[data-astro-cid-4q7vb6v6]{opacity:0;width:1px;height:1px;position:absolute}.bit[data-astro-cid-4q7vb6v6]+label[data-astro-cid-4q7vb6v6],.output[data-astro-cid-4q7vb6v6]{--bit:"0";aspect-ratio:1;border-radius:var(--radius);corner-shape:var(--corner-shape);background:var(--surface);color:var(--text-muted);font-family:var(--font-mono);font-size:var(--text-xl);box-shadow:var(--edge-shadow), var(--shadow-sm);--edge-top:var(--edge-light);--edge-bottom:var(--edge-dark);place-items:center;font-weight:600;display:grid}.bit[data-astro-cid-4q7vb6v6]+label[data-astro-cid-4q7vb6v6]{cursor:pointer}.bit[data-astro-cid-4q7vb6v6]+label[data-astro-cid-4q7vb6v6]:before,.output[data-astro-cid-4q7vb6v6]:before{content:var(--bit)}.bit[data-astro-cid-4q7vb6v6]:checked+label[data-astro-cid-4q7vb6v6]{--bit:"1";background:var(--brand-blue);color:#fff}.bit[data-astro-cid-4q7vb6v6]:focus-visible+label[data-astro-cid-4q7vb6v6]{outline:2px solid var(--focus);outline-offset:2px}.output[data-astro-cid-4q7vb6v6]{box-shadow:inset 0 0 0 2px var(--border-strong)}.gate-and[data-astro-cid-4q7vb6v6]:has(.a:checked):has(.b:checked) .output[data-astro-cid-4q7vb6v6],.gate-or[data-astro-cid-4q7vb6v6]:has(.a:checked) .output[data-astro-cid-4q7vb6v6],.gate-or[data-astro-cid-4q7vb6v6]:has(.b:checked) .output[data-astro-cid-4q7vb6v6],.gate-xor[data-astro-cid-4q7vb6v6]:has(.a:checked):has(.b:not(:checked)) .output[data-astro-cid-4q7vb6v6],.gate-xor[data-astro-cid-4q7vb6v6]:has(.a:not(:checked)):has(.b:checked) .output[data-astro-cid-4q7vb6v6],.gate-nand[data-astro-cid-4q7vb6v6]:has(.a:not(:checked)) .output[data-astro-cid-4q7vb6v6],.gate-nand[data-astro-cid-4q7vb6v6]:has(.b:not(:checked)) .output[data-astro-cid-4q7vb6v6],.gate-nor[data-astro-cid-4q7vb6v6]:has(.a:not(:checked)):has(.b:not(:checked)) .output[data-astro-cid-4q7vb6v6],.gate-xnor[data-astro-cid-4q7vb6v6]:has(.a:checked):has(.b:checked) .output[data-astro-cid-4q7vb6v6],.gate-xnor[data-astro-cid-4q7vb6v6]:has(.a:not(:checked)):has(.b:not(:checked)) .output[data-astro-cid-4q7vb6v6],.gate-not[data-astro-cid-4q7vb6v6]:has(.a:not(:checked)) .output[data-astro-cid-4q7vb6v6]{--bit:"1";background:var(--brand-rose);color:#000;box-shadow:var(--shadow-sm)}
