/* R2.2 hardware story: results first, evidence boundaries visible. */
.page-hardware .hw-r22{max-width:100%;--r22-ink:#17372f;--r22-mint:#dceee3;--r22-gold:#dcae59;--r22-paper:#f7f2e6}
.hw-r22__opening{padding:clamp(1.3rem,3vw,2.5rem);background:linear-gradient(115deg,#17372f 0%,#244b3d 67%,#356153 100%);border-radius:1.3rem;color:#f7f2e6;margin-bottom:1.5rem;position:relative;overflow:hidden}
.hw-r22__opening:after{content:"";position:absolute;width:17rem;height:17rem;right:-7rem;top:-7rem;border:1.3rem solid #ffffff12;border-radius:50%;pointer-events:none}
.hw-r22__eyebrow{font:.7rem/1.5 var(--font-mono,monospace)!important;letter-spacing:.13em;text-transform:uppercase;color:#d9d19c!important}
.hw-r22__lead{max-width:58rem;font:clamp(1.12rem,1.7vw,1.6rem)/1.5 var(--font-editorial,Georgia,serif)!important;color:#f7f2e6!important;margin:.7rem 0 1.8rem!important}
.hw-r22__claim{display:grid;grid-template-columns:minmax(8rem,auto) 1fr;gap:1rem;border-top:1px solid #ffffff58;padding-top:1.1rem;font-size:.89rem;line-height:1.6;max-width:58rem}.hw-r22__claim strong{color:#e5cc80}
.hw-r22 .section-block{padding-block:clamp(2.5rem,5vw,4.8rem);border-bottom:1px solid #b8c7b8}.hw-r22 .section-eyebrow{color:#648c76}.hw-r22 .section-block h2{max-width:20ch;text-wrap:balance}.hw-r22 .section-block>p{max-width:72ch}
.hw-r22__chain{display:flex;align-items:stretch;gap:.5rem;flex-wrap:wrap;margin:1.5rem 0 2rem}.hw-r22__chain span{padding:.85rem 1rem;background:#e0ebe4;border-radius:1rem 1rem 1rem .2rem;color:#264737;font-weight:650;font-size:.84rem}.hw-r22__chain b{align-self:center;color:#679377;font-weight:400}
.hw-r22__figure{margin:1.4rem 0;padding:1rem;background:#eef0e8;border-radius:1rem}.hw-r22__figure img{display:block;width:100%;height:auto;max-height:38rem;object-fit:contain;border-radius:.55rem;background:#fff}.hw-r22__figure figcaption{margin:.75rem .25rem .15rem;max-width:82ch;color:#4d6256;font-size:.82rem;line-height:1.55}.hw-r22__figure--wide{max-width:100%}
.hw-r22__definitions,.hw-r22__gates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;margin:1.6rem 0}.hw-r22__definitions>div,.hw-r22__gates>div{padding:1.3rem;background:#f3eee0;border-top:4px solid #8bab92;border-radius:.9rem .9rem .25rem .9rem;min-width:0}.hw-r22__definitions>div:nth-child(2),.hw-r22__gates>div:nth-child(2){border-color:#7faab0;background:#eaf0ed}.hw-r22__definitions>div:nth-child(3),.hw-r22__gates>div:nth-child(3){border-color:#d7ae5d;background:#f7eddb}.hw-r22__definitions strong,.hw-r22__gates strong{color:var(--r22-ink);font-size:.94rem}.hw-r22__definitions p,.hw-r22__gates p{margin:.7rem 0 0;font-size:.82rem;line-height:1.6}
.hw-r22__assumptions,.hw-r22__fine,.hw-r22__closing{padding:1rem 1.2rem;border-left:4px solid #bd9659;background:#f8f1e3;font-size:.84rem;line-height:1.65;margin:1.35rem 0!important;max-width:none!important}
.hw-r22__table{width:100%;border-collapse:collapse;font-size:.84rem;min-width:37rem}.hw-r22__table caption{text-align:left;font-size:.75rem;color:#53685b;margin-bottom:.65rem}.hw-r22__table th,.hw-r22__table td{padding:.85rem .9rem;border-bottom:1px solid #c6d1c5;text-align:left}.hw-r22__table thead{background:#244a3d;color:#fff}.hw-r22__table thead th{font-size:.72rem}.hw-r22__table tbody tr:nth-child(odd){background:#eff3e8}.hw-r22__table tbody th{font-weight:650}.hw-r22 .table-scroll{overflow-x:auto;max-width:100%;margin:1.5rem 0}
.hw-r22__pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.hw-r22__pair .hw-r22__figure{min-width:0}
.hw-r22__downloads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1.4rem 0}.hw-r22__downloads>a{display:block;padding:1rem 1.1rem;background:#e4eee5;border-bottom:3px solid #86a88b;border-radius:.8rem .8rem .18rem .8rem;text-decoration:none;color:#274536}.hw-r22__downloads strong{display:block;font-size:.88rem}.hw-r22__downloads span{display:block;font-size:.74rem;line-height:1.5;margin-top:.3rem;color:#526a59}.hw-r22__downloads>a:hover{background:#d6e9dc}.hw-r22__details{padding:1rem 1.2rem;background:#f5f0e5;border-radius:.8rem}.hw-r22__details summary{cursor:pointer;font-weight:700}.hw-r22__details li{margin:.55rem 0}
@media(max-width:760px){.hw-r22__definitions,.hw-r22__gates,.hw-r22__pair,.hw-r22__downloads{grid-template-columns:1fr}.hw-r22__claim{grid-template-columns:1fr}.hw-r22__chain b{display:none}.hw-r22__chain span{width:calc(50% - .5rem);min-width:10rem}}
.hw-exploded__stage{position:relative;min-height:320px;background:#eaf0e8;overflow:hidden;border:1px solid #c6d5c8}
.hw-exploded__stage canvas{display:block;width:100%;min-height:320px;touch-action:none;cursor:grab}.hw-exploded__stage canvas:active{cursor:grabbing}
.hw-exploded__fallback{display:block;width:100%;max-height:650px;object-fit:contain}.hw-exploded:not(.is-ready) canvas{display:none}
.hw-exploded__fallback[hidden]{display:none!important}
.hw-exploded__hint{position:absolute;right:.8rem;bottom:.8rem;background:#173d2bd9;color:#f2f9ed;padding:.35rem .6rem;border-radius:4px;font:.7rem/1.3 var(--font-mono,monospace)}
.hw-exploded__controls{display:flex;flex-wrap:wrap;gap:.4rem;margin:.85rem 0}
.hw-exploded__controls button{padding:.45rem .7rem;border:1px solid #9db7a0;border-radius:99px;background:#f2f7ed;color:#28513b;cursor:pointer;font-size:.76rem}
.hw-exploded__controls button[aria-pressed=true]{background:#277b50;color:#fff;border-color:#277b50}
.hw-exploded__detail{min-height:5rem;padding:.75rem 1rem;background:#edf4e9;border-left:3px solid #5da478}
.hw-exploded__detail strong{font-family:Georgia,'Times New Roman',serif;font-size:1.15rem}.hw-exploded__detail p{margin:.3rem 0}.hw-exploded__detail a{font-weight:700;color:#245b3e}
.hw-pcb-map__image{position:relative}.hw-pcb-map__image img{display:block;width:100%;height:auto}
.hw-pcb-map__pin{position:absolute;transform:translate(-50%,-50%);min-width:2.2rem;min-height:2.2rem;padding:.2rem;border:2px solid #f7fff5;border-radius:50%;background:#166548e8;color:#fff;box-shadow:0 0 0 3px #36c67a77,0 2px 9px #082d2299;font:800 .65rem/1 var(--font-mono,monospace);cursor:pointer}
.hw-pcb-map__pin:hover,.hw-pcb-map__pin:focus-visible,.hw-pcb-map__pin.is-active{background:#f9d66b;color:#173a2b;outline:2px solid #176744;outline-offset:3px;z-index:2}
.hw-component-explorer{margin:1rem 0 1.5rem;padding:1rem;background:#ecf3ea;border:1px solid #c9d9ca}
.hw-component-explorer label{display:block;margin:0 0 .45rem;font-weight:700;color:#2d533c}.hw-component-explorer select{width:min(100%,440px);padding:.55rem;background:#fff;border:1px solid #8ca98f;color:#173b29;font:inherit}
.hw-component-explorer__detail{margin-top:.8rem;padding:1rem;background:#fffdf7;border-left:3px solid #5ba87b}.hw-component-explorer__detail h3{margin:0 0 .5rem;font-family:Georgia,'Times New Roman',serif;font-weight:500}.hw-component-explorer__detail p{margin:.4rem 0;line-height:1.5}.hw-component-explorer__detail a{color:#1c6943;text-decoration:underline}
@media(max-width:650px){.hw-exploded__stage,.hw-exploded__stage canvas{min-height:260px}.hw-exploded__hint{font-size:.57rem}.hw-pcb-map__pin{min-width:1.75rem;min-height:1.75rem;font-size:.55rem}}

/* v25: the PCB component inspector belongs to the blue hardware chapter.
   Warm apricot distinguishes the selected component without recoloring media. */
body.signal-atlas.page-hardware #electronics-bridge .hw-component-explorer{padding:clamp(1rem,2.4vw,1.5rem);background:var(--v-soft);border:1px solid var(--v-rule);border-top:5px solid var(--v-accent);box-shadow:4px 4px 0 color-mix(in srgb,var(--v-accent) 18%,transparent);color:var(--v-ink)}
body.signal-atlas.page-hardware #electronics-bridge .hw-component-explorer>label{color:var(--v-dark);font-size:1.1rem;line-height:1.4;margin:0 0 .85rem}
body.signal-atlas.page-hardware #electronics-bridge .hw-component-explorer select{width:100%;max-width:100%;min-height:46px;padding:.7rem .8rem;background:#fff;color:var(--v-ink);border:1px solid var(--v-accent)}
body.signal-atlas.page-hardware #electronics-bridge .hw-component-explorer__detail{background:#fff0dc;border-left:4px solid #c07a22;padding:clamp(1rem,2.4vw,1.5rem);margin-top:1rem;color:var(--v-ink)}
body.signal-atlas.page-hardware #electronics-bridge .hw-component-explorer__detail :is(h3,a){color:var(--v-dark)}
body.signal-atlas.page-hardware #electronics-bridge .hw-component-explorer__detail>button{background:#fff;color:var(--v-dark);border-color:var(--v-accent);min-height:44px}
body.signal-atlas.page-hardware #electronics-bridge .hw-component-explorer :is(select,button,a):focus-visible{outline:3px solid var(--v-dark);outline-offset:3px}
