
.nav .board-id { font-family: var(--mono); color: var(--silk-3); font-size: 0.9rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .nav .board-id { display: none; } .nav ul { gap: 0.9rem; font-size: 0.9rem; } }

.head { padding: clamp(2.5rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.head .silk img { height: 72px; margin-bottom: 0.9rem; }
.head .silk .name { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); letter-spacing: 0.02em; }
.head .silk .rev { color: var(--silk-2); font-size: 0.95rem; margin-top: 0.4rem; white-space: pre; }
.head h1 { margin-top: 1.6rem; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); font-weight: 600; letter-spacing: -0.02em; }
.head .lede { margin-top: 0.6rem; }
.head .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.head figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--pcb-800); }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } .head figure { order: -1; } }

.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.toc { position: sticky; top: 76px; align-self: start; font-size: 0.93rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 1rem; color: var(--silk-3); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--silk); }
.toc a.on { color: var(--silk); border-left-color: var(--fuse); }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } .toc { position: static; margin-bottom: -1rem; }
  .toc ol { border: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; } .toc a { padding: 0.2rem 0; border: 0; } }

.docs section { padding-top: 3.2rem; scroll-margin-top: 80px; }
.docs section:first-child { padding-top: 0; }
.docs h2 { margin-bottom: 1rem; }
.docs section > p, .docs li, .docs figcaption { color: var(--silk-2); }
.docs ul, .docs ol { padding-left: 1.2rem; max-width: var(--measure); }
.docs li { margin: 0.35rem 0; }
.docs li strong, .docs p strong { color: var(--silk); font-weight: 600; }
.note { border-left: 3px solid var(--fuse); padding: 0.6rem 1rem; background: var(--pcb-800); border-radius: 0 4px 4px 0; max-width: var(--measure); margin: 1rem 0; }
.note p { margin: 0.3em 0; color: var(--silk); }
.caution { border-left-color: #e2604a; }
.prelim { font-size: 0.9rem; color: var(--silk-3); max-width: var(--measure); }

.tblwrap { overflow-x: auto; }
@media (max-width: 640px) { .tblwrap table { min-width: 600px; } }
td.n { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 0.9em; }
th.n { text-align: right; }
.docs table { font-size: 0.94rem; }

.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.figs figure { margin: 0; }
.figs img { border-radius: 6px; }
.figs figcaption { font-size: 0.9rem; margin-top: 0.5rem; }
@media (max-width: 640px) { .figs { grid-template-columns: 1fr; } }
.annot { margin: 1.6rem 0 0; background: #fff; border-radius: 6px; padding: 0.6rem; }
.annot img { border-radius: 3px; }
.annot figcaption { color: #444; font-size: 0.85rem; margin: 0.4rem 0.2rem 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.gallery figure, .inline { margin: 0; }
.gallery img, .inline img { border-radius: 6px; }
.gallery figcaption, .inline figcaption { font-size: 0.88rem; margin-top: 0.4rem; }
.inline { margin: 1.4rem 0 2rem; max-width: 720px; }
.video { margin: 0 0 1.4rem; }
.video video { width: 100%; border-radius: 6px; background: #0f1b20; }
.video figcaption { font-size: 0.88rem; margin-top: 0.5rem; }
.legend { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 1.2rem 0 0; font-size: 0.95rem; max-width: var(--measure); }
.legend dt { font-family: var(--mono); color: var(--xt60); }
.legend dd { margin: 0; color: var(--silk-2); }

.diagram { background: var(--pcb-950); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.diagram svg { width: 100%; height: auto; max-width: 720px; margin: 0 auto; }

.tabs { margin: 1rem 0 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tabs .bar { display: flex; background: var(--pcb-800); border-bottom: 1px solid var(--line); }
.tabs label { padding: 0.55rem 1rem; font-size: 0.9rem; color: var(--silk-3); cursor: pointer; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs input:focus-visible + label { outline: 2px solid var(--fuse); outline-offset: -3px; }
.tabs .pane { display: none; }
.tabs .pane pre { margin: 0; border: 0; border-radius: 0; }

.dl { list-style: none; padding: 0; max-width: var(--measure); }
.dl li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.dl li span:last-child { color: var(--silk-3); font-size: 0.9rem; white-space: nowrap; }
.fine { font-size: 0.85rem; color: var(--silk-3); max-width: var(--measure); }

/* sub-page header */
.subhead { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }
.subhead h1 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); font-weight: 600; letter-spacing: -0.02em; }
.subhead .lede { margin-top: 0.6rem; max-width: 60ch; }
.subhead p { color: var(--silk-2); }
.tabs .how { margin: 0; padding: 0.7rem 1rem; font-size: 0.9rem; color: var(--silk-2); border-bottom: 1px solid var(--line); max-width: none; }
/* hub page */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 2.5rem; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { font-family: var(--mono); font-size: 0.85rem; color: var(--xt60); }
.facts dd { margin: 0; color: var(--silk); }
.facts dd small { display: block; color: var(--silk-3); font-size: 0.85rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.cards a { display: block; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; color: var(--silk); text-decoration: none; background: var(--pcb-800); }
.cards a:hover { border-color: var(--fuse); }
.cards b { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; }
.cards span { color: var(--silk-2); font-size: 0.93rem; }
.hub section { padding-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 80px; }
.hub h2 { margin-bottom: 1rem; }
.hub section > p, .hub li, .hub figcaption { color: var(--silk-2); }
.hub ul { padding-left: 1.2rem; max-width: var(--measure); }
.hub li { margin: 0.35rem 0; }
.hub li strong, .hub p strong { color: var(--silk); font-weight: 600; }
.dlgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 3rem; }
.dlgroups h3 { margin-top: 1.6rem; font-size: 1.05rem; }
.dlgroups .dl { max-width: none; }
.dl li span:first-child small { color: var(--silk-3); font-size: 0.85rem; }
.schem { background: #fff; border-radius: 6px; padding: 0.6rem; }
.schem img { border-radius: 3px; }
.schem figcaption { color: #444; font-size: 0.85rem; margin: 0.4rem 0.2rem 0; }
.parts td .mono { color: var(--xt60); }
.steps { counter-reset: s; list-style: none; padding: 0; max-width: var(--measure); }
.steps li { position: relative; padding-left: 2.4rem; margin: 0.7rem 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--fuse); color: var(--pcb-950); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
#t-mp:checked ~ .bar label[for="t-mp"], #t-ar:checked ~ .bar label[for="t-ar"], #t-py:checked ~ .bar label[for="t-py"], #t-c:checked ~ .bar label[for="t-c"], #t-hw:checked ~ .bar label[for="t-hw"] { color: var(--silk); box-shadow: inset 0 -2px 0 var(--fuse); }
#t-mp:checked ~ .pane.mp, #t-ar:checked ~ .pane.ar, #t-py:checked ~ .pane.py, #t-c:checked ~ .pane.c, #t-hw:checked ~ .pane.hw { display: block; }
.tabs .bar { flex-wrap: wrap; }
