.demo[data-astro-cid-nhgqmu7d]{border-radius:var(--radius-lg);gap:1rem;padding:1.5rem 1.75rem;display:grid}.demo[data-astro-cid-nhgqmu7d]>*{margin-top:0}.room[data-astro-cid-nhgqmu7d]{justify-content:space-between;align-items:stretch;gap:1.5rem;display:flex}.switch[data-astro-cid-nhgqmu7d],.light[data-astro-cid-nhgqmu7d]{grid-template-rows:1fr auto;place-items:center;gap:.75rem;display:grid}.switch[data-astro-cid-nhgqmu7d]{cursor:pointer}.switch-input[data-astro-cid-nhgqmu7d],.quiz-options[data-astro-cid-nhgqmu7d] input[data-astro-cid-nhgqmu7d]{opacity:0;width:1px;height:1px;position:absolute}.plate[data-astro-cid-nhgqmu7d]{border-radius:var(--radius);corner-shape:var(--corner-shape);background:var(--surface-raised);box-shadow:var(--edge-shadow), var(--shadow-md);--edge-top:var(--edge-light);--edge-bottom:var(--edge-dark);padding:.9rem 1.5rem}.rocker[data-astro-cid-nhgqmu7d]{background:linear-gradient(to bottom, var(--surface-alt) 0 50%, var(--surface) 50% 100%);width:1.9rem;height:3.2rem;box-shadow:inset 0 0 0 1px var(--border-strong), 0 .15rem .3rem #00000040;border-radius:.45rem;display:block}.switch-input[data-astro-cid-nhgqmu7d]:checked+.plate[data-astro-cid-nhgqmu7d] .rocker[data-astro-cid-nhgqmu7d]{background:linear-gradient(to bottom, var(--surface) 0 50%, var(--surface-alt) 50% 100%)}.switch-input[data-astro-cid-nhgqmu7d]:focus-visible+.plate[data-astro-cid-nhgqmu7d]{outline:2px solid var(--focus);outline-offset:3px}.switch-name[data-astro-cid-nhgqmu7d],.lamp-state[data-astro-cid-nhgqmu7d]{color:var(--text-muted);font-size:var(--text-sm);font-weight:500}.bulb[data-astro-cid-nhgqmu7d]{filter:grayscale()opacity(.45);font-size:4.5rem;line-height:1;transition:filter .3s}.room[data-astro-cid-nhgqmu7d]:has(#light:checked) .bulb[data-astro-cid-nhgqmu7d]{filter:drop-shadow(0 0 1.25rem color-mix(in srgb, var(--brand-amber) 80%, transparent))}.lamp-state[data-astro-cid-nhgqmu7d]:before{content:"The light is off."}.room[data-astro-cid-nhgqmu7d]:has(#light:checked) .lamp-state[data-astro-cid-nhgqmu7d]:before{content:"The light is on."}.quiz[data-astro-cid-nhgqmu7d]{counter-reset:used}.quiz-options[data-astro-cid-nhgqmu7d]{grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.5rem;padding:0;display:grid}.quiz-options[data-astro-cid-nhgqmu7d] li[data-astro-cid-nhgqmu7d]{margin:0}.quiz-options[data-astro-cid-nhgqmu7d] label[data-astro-cid-nhgqmu7d]{border-radius:var(--radius);corner-shape:var(--corner-shape);background:var(--surface-alt);cursor:pointer;place-items:center;padding:.65rem .75rem;display:grid;position:relative}.quiz-options[data-astro-cid-nhgqmu7d] label[data-astro-cid-nhgqmu7d]:hover{box-shadow:inset 0 0 0 2px var(--border-strong)}.quiz-options[data-astro-cid-nhgqmu7d] label[data-astro-cid-nhgqmu7d]:has(:checked){background:var(--brand-blue);box-shadow:var(--shadow-sm)}.quiz-options[data-astro-cid-nhgqmu7d] label[data-astro-cid-nhgqmu7d]:has(:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.quiz-options[data-astro-cid-nhgqmu7d] code[data-astro-cid-nhgqmu7d]{background:0 0;padding:0}.quiz-options[data-astro-cid-nhgqmu7d] label[data-astro-cid-nhgqmu7d]:has(:checked) code[data-astro-cid-nhgqmu7d]{color:#fff;font-weight:600}.quiz[data-astro-cid-nhgqmu7d] input[data-astro-cid-nhgqmu7d]:checked{counter-increment:used}.result[data-astro-cid-nhgqmu7d]{color:var(--heading);font-size:var(--text-lg);font-weight:600}.result[data-astro-cid-nhgqmu7d]:before{content:"You've used " counter(used) " of 8."}.quiz[data-astro-cid-nhgqmu7d]:not(:has(input:not(:checked))) .result[data-astro-cid-nhgqmu7d]:after{content:" Full marks.";color:var(--success-text)}
