/* Resistor colour lab: band colours follow IEC 60062; text labels carry the meaning, colours are illustrative. */
.sg-res-svg { inline-size: 100%; block-size: auto; max-block-size: 120px; }
.sg-res-svg .sg-res-lead { stroke: var(--ink-2); stroke-width: 4; }
.sg-res-svg .sg-res-body { fill: #d9c49a; stroke: var(--ink); stroke-width: 1.5; }
.sg-res-svg .sg-band { stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.sg-band-black { fill: #111; } .sg-band-brown { fill: #7a4a21; } .sg-band-red { fill: #d0201b; } .sg-band-orange { fill: #f07f13; }
.sg-band-yellow { fill: #f7d417; } .sg-band-green { fill: #2e9b3a; } .sg-band-blue { fill: #1f5fd1; } .sg-band-violet { fill: #8a3fc2; }
.sg-band-gray { fill: #8c8c8c; } .sg-band-white { fill: #fafafa; } .sg-band-gold { fill: #c9a227; } .sg-band-silver { fill: #c0c0c8; }
.sg-res-bands { margin: .4rem 0; font-weight: 700; }
.sg-res-select { min-block-size: 40px; max-inline-size: 100%; padding: .25rem .5rem; border: 1px solid var(--control, var(--line-strong)); border-radius: var(--r-btn, 8px); background: var(--surface); color: var(--ink); font: inherit; }
.sg-res-details { margin-block-start: .75rem; }
.sg-res-details summary { cursor: pointer; font-weight: 600; min-block-size: 32px; }
.sg-res-decoder { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); margin-block: .5rem; }
.sg-res-decoded { font-weight: 700; }
