/* robotparts.dev — the pages' only CSS. The design is McMaster-Carr's catalog (Zach, 2026-10-25,
   design/BRIEF-2026-10-25.md: "muscle memory, don't reinvent the wheel"): a white ground, one accent colour, thin
   rules, tabular numbers, system fonts, light and dark. Nothing is loaded from another site. Rules marked WHY exist
   for usability, not looks. */

:root {
  /* The colours (--bg … --warn, --plate-edge, --band, --brand-rule, data-ui's series and basis marks) are the generated
     block at the end of this file: Catalog in light, Signal in dark (Zach, 2026-10-26; design/colors-2026-10-26/). */
  /* WHY one plate colour in both themes: product photos are shot on white and most logos are dark on transparent, so
     each sits on its own white plate (a light plate in dark mode), never on the page ground (robotparts/2.4). */
  --plate: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); font-variant-numeric: tabular-nums; }
/* WHY: a long id, URL or sha256 wraps instead of pushing the page wider than a 375 px phone. */
body { overflow-wrap: break-word; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 8px; font-weight: 650; }
h2 { font-size: 17px; line-height: 1.3; margin: 26px 0 8px; font-weight: 650; }
h3 { font-size: 14.5px; margin: 18px 0 6px; font-weight: 650; }
h4 { font-size: 14px; margin: 16px 0 4px; font-weight: 650; }
p { margin: 6px 0 10px; }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--rule2); }
.mut, .lede { color: var(--ink2); }
.n { color: var(--ink3); }
/* WHY (Zach, 2026-10-27: "not enough spacing here with the (#)"): a heading's count stands a clear step from its name,
   more than the word space it had */
h1 .n, .gh .n { margin-left: .3em; }
/* WHY: a label only screen readers need (the header search box says what it is by its placeholder too). */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* WHY: rows a filter hides stay hidden even though the design sets `display` on table rows and grids. */
[hidden] { display: none !important; }
/* WHY: a picture never overflows its column. */
img { max-width: 100%; height: auto; }

/* WHY :where(:not(.dv *)): the site's control look stops at a started <data-views> (data-ui adds .dv), whose bar,
   menus and bulk bar size their own controls; a bare `button { height: 30px }` stretched the bar's 28 px buttons and
   crushed View settings' 32 px rows (measured 2026-10-26). :where keeps the specificity of a plain element rule. */
input[type=search]:where(:not(.dv *)), input[type=number]:where(:not(.dv *)), select:where(:not(.dv *)) {
  height: 30px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg); padding: 0 8px; min-width: 0;
}
input[type=search]:where(:not(.dv *)):focus, input[type=number]:where(:not(.dv *)):focus, select:where(:not(.dv *)):focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button:where(:not(.dv *)) { height: 30px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg2); padding: 0 12px; cursor: pointer; }
button:where(:not(.dv *)):hover:not(:disabled) { border-color: var(--ink3); }
button:where(:not(.dv *)):disabled { color: var(--ink3); cursor: default; }
button:where(:not(.dv *))[type=submit] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
button:where(:not(.dv *))[type=submit]:disabled { background: var(--bg3); border-color: var(--rule); color: var(--ink3); }

/* ---- the shell: the logo, ONE big search dead centre, Guides · Analysis · Account (release 2026.10.26.11) ----- */
/* WHY (Zach's pick of 2026-10-26, layout proposal 4's clean bar with proposal 2's right-hand group, and Amazon's "logo
   on left, large search bar, then like 3 selectable things on the right"): no Catalog button, no category row; the
   search is the menu (static/shell.js). WHY sticky: the bar is always on screen; a two-pane list's panes scroll
   inside the viewport below it anyway. */
.top { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--rule); }
/* WHY (the coordinator's ruling, 2026-10-29): a part page's section anchors (the tabs bar, each panel, its alias anchors
   #specs #views #cad…, every section with an id) land below the sticky header, not under it. --top-h is the header's
   height: 69 px from 768 px up, measured by static/site.js wherever the header grows (115 px on a phone).
   WHY on html (measured 2026-10-29): a link to #c-<group> or any other anchor put its target's heading under the bar too
   (top 0, bar bottom 69). One rule only: a scroll-margin-top on the targets would add to this and land them 138 px down. */
:root { --top-h: 69px; }
html { scroll-padding-top: var(--top-h); }
.top svg { width: 16px; height: 16px; flex: none; }
.top svg.car { width: 10px; height: 10px; opacity: .7; }
/* WHY three columns with equal outer tracks: the search box sits in the middle one, so it has the same width and the
   same place on every page, whatever the logo and the items beside it are. */
/* WHY an 18rem floor on both outer tracks (measured 2026-10-26: at 1280 px Guides overlapped the search by 29 px):
   the right track holds Guides, Analysis and Account (about 280 px); both stay equal so the search stays centred,
   and it is the search that narrows on a smaller screen. */
.bar { display: grid; grid-template-columns: minmax(18rem, 1fr) minmax(0, 46rem) minmax(18rem, 1fr); align-items: center; gap: 16px; padding: 10px 20px; }
@media (min-width: 768px) and (max-width: 1099px) {
  .bar { grid-template-columns: minmax(12rem, 1fr) minmax(0, 46rem) minmax(12rem, 1fr); }
  .quick .acct .lbl { display: none; }
  .quick > a { padding: 0 6px; }
}
.wordmark { justify-self: start; font-weight: 750; font-size: 20px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.wordmark:hover { text-decoration: none; color: var(--accent); }
/* WHY two images (Zach's final pick, 2026-10-26: round 16's 02, the stacked bricks, never side by side): the logo is
   outlined to paths (tools/site_logo.py), so it reads the same everywhere; logo-r16.svg is the light palette,
   logo-r16-dark.svg the dark one, and the scheme (the system's, or Settings › Theme) shows one. 48 px tall, where its
   words read (at 28 px a stack's did not); the header is its only place on a page. */
.wordmark .lockup { display: block; height: 48px; width: auto; max-width: none; }
.wordmark .lockup.dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .lockup { display: none; }
  :root:not([data-theme="light"]) .wordmark .lockup.dark { display: block; }
}
:root[data-theme="dark"] .wordmark .lockup { display: none; }
:root[data-theme="dark"] .wordmark .lockup.dark { display: block; }
/* Settings › Logo (Zach, 2026-10-26: "I am not sure what I like more yet"): the line pair by default, the solid-front
   pair (round 17's card 00) when html[data-logo="solid"]; the light/dark rules above pick within the pair. The head's
   inline script sets the attribute before first paint (build/site_pages.py THEME_HEAD). */
:root:not([data-logo="solid"]) .wordmark .lockup.solid { display: none !important; }
:root[data-logo="solid"] .wordmark .lockup:not(.solid) { display: none !important; }
.find { position: relative; display: flex; align-items: center; min-width: 0; }
.find input[type=search] { flex: 1; height: 42px; font-size: 15.5px; border-radius: 21px; padding: 0 74px 0 40px; background: var(--bg2); border: 1px solid var(--rule); }
.find input[type=search]:focus { background: var(--bg); outline: 2px solid var(--accent); outline-offset: -1px; }
.find .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--ink3); pointer-events: none; }
/* the shortcut, shown in the box (static/shell.js writes ⌘ K on a Mac) */
.find .fk { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--ink3); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; pointer-events: none; background: var(--bg); }
.find input:not(:placeholder-shown) ~ .fk { display: none; }
.find button.sr { padding: 0; border: 0; }
.quick { justify-self: end; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.quick > a { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 4px; color: var(--ink); font-weight: 600; }
.quick > a:hover { background: var(--hover); text-decoration: none; }
.quick > a[aria-current] { color: var(--accent); }
.quick .acct { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-left: 6px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); font-weight: 600; }
.quick .acct:hover { border-color: var(--ink3); }
.quick .acct[aria-expanded="true"] { border-color: var(--accent); }

/* the search menu: idle (categories, brands, Go to, the keys) and typed (rows with a thumbnail, McMaster's suggestions) */
.sm { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; background: var(--bg); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16); padding: 8px 6px 6px; max-height: min(74vh, 660px); overflow: auto; font-size: 13.5px; }
.sm-h { margin: 6px 10px 6px; font-size: 11.5px; font-weight: 650; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; }
.sm .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px; border-bottom: 1px solid var(--rule2); margin-bottom: 4px; }
.sm .chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 16px; color: var(--ink); }
.sm .chip:hover, .sm .chip:focus { border-color: var(--accent); color: var(--accent); text-decoration: none; outline: none; }
.sm .go, .sm .sg { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; color: var(--ink); }
.sm .go:hover, .sm .go:focus, .sm .sg:hover, .sm .sg:focus, .sm .sg.on { background: var(--hover); text-decoration: none; outline: none; }
.sm .go .ic { display: inline-flex; color: var(--ink2); }
.sm .go .t { font-weight: 600; display: block; }
.sm .go small { color: var(--ink2); }
.sm .th { flex: none; width: 44px; height: 44px; border-radius: 5px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--rule2); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: #4a4f57; }
.sm .th img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sm .th svg { width: 28px; height: 28px; }
.sm .sg .tx { min-width: 0; display: flex; flex-direction: column; }
.sm .sg .tx b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm .sg .tx small { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm .sg mark { background: none; color: var(--accent); font-weight: 700; }
.sm .sg.all { color: var(--accent); font-weight: 600; padding: 10px; }
.sm .none { margin: 6px 10px; color: var(--ink3); }
.sm-foot { margin: 6px 4px 2px; padding-top: 6px; border-top: 1px solid var(--rule2); font-size: 11.5px; color: var(--ink3); }
.sm kbd, .am kbd { border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; margin: 0 1px; font-size: 10.5px; background: var(--bg2); }

/* the account menu: Amazon's "Account & Lists", in robotparts' columns; a full-width sheet on a phone */
.am { position: fixed; inset: auto; margin: 0; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18); width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow: auto; font-size: 13.5px; }
.am:popover-open { display: grid; grid-template-columns: 1.2fr 1.25fr .95fr 1.1fr; gap: 0 22px; }
.am-col + .am-col { border-left: 1px solid var(--rule2); padding-left: 22px; }
.am-h { font-size: 15px; margin: 2px 0 8px; }
.am-col .am-h ~ .am-h { margin-top: 18px; }
.am ul { list-style: none; margin: 0 0 8px; padding: 0; }
.am-recent li a { display: flex; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 5px; color: var(--ink); }
.am-recent li a:hover, .am-recent li a:focus { background: var(--hover); text-decoration: none; }
.am-recent .th { flex: none; width: 48px; height: 48px; border-radius: 5px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--rule2); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: #4a4f57; }
.am-recent .th img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.am-recent .th svg { width: 30px; height: 30px; }
/* WHY a row with a clock and a chevron, not a 13 px footnote (Zach, 2026-11-23: make "See all" visible and obvious):
   it opens /history/. The icon is a CSS mask, so the link stays the plain <a href="/history/">See all</a> every test reads */
.am-all { margin: 8px 0 0; }
.am-all a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 5px; font-weight: 600; }
.am-all a::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M8 4.6V8l2.4 1.6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M8 4.6V8l2.4 1.6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.am-all a::after { content: "›"; margin-left: auto; font-size: 17px; line-height: 1; }
.am-all a:hover, .am-all a:focus { background: var(--hover); border-color: var(--accent); text-decoration: none; }
.am-recent .nm { font-weight: 600; line-height: 1.25; }
.am-recent:not(:empty) + .am-empty { display: none; }
.am-list li, .am-links li { padding: 4px 0; display: flex; gap: 8px; align-items: center; }
.am-links a { display: inline-flex; gap: 8px; align-items: center; }
.am-links .ic { display: inline-flex; color: var(--ink2); }
.am fieldset { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.am legend { font-weight: 650; font-size: 12.5px; padding: 0 0 4px; width: 100%; }
.am label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.am details { margin-top: 12px; }
.am summary { cursor: pointer; font-weight: 650; font-size: 12.5px; }
.am-keys li { padding: 2px 0; font-size: 12.5px; }
.am-signin { margin: 0 0 4px; font-weight: 600; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; padding: 1px 6px; border-radius: 9px; background: var(--accent-bg); color: var(--accent); white-space: nowrap; }
.placeholder { border: 1px dashed var(--ink3); background: var(--bg2); border-radius: 4px; padding: 8px 12px; color: var(--ink2); max-width: 60rem; }
.placeholder b { color: var(--warn); margin-right: 6px; text-transform: uppercase; font-size: 11.5px; letter-spacing: .04em; }
/* a lab build's banner on every page (build/site_models.py lab_banner): never in a public build */
.labbuild { border: 1px solid var(--warn); background: var(--bg2); border-radius: 4px; padding: 6px 12px; margin: 8px 16px 0; color: var(--ink2); }
.labbuild b { color: var(--warn); margin-right: 6px; text-transform: uppercase; font-size: 11.5px; letter-spacing: .04em; }
.cards { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 12px; }
.cards .card { border: 1px solid var(--rule2); border-radius: 8px; padding: 12px 14px; }
.cards h3 { margin: 0 0 4px; }
.guidenav ol { list-style: none; padding: 0; margin: 0 0 14px; clear: both; }
.guidenav li a { display: block; padding: 4px 0; }

@media (max-width: 767px) {
  /* a phone: the same model, folded. The logo and Account on one row, the search full width under it; Guides and
     Analysis live in the account menu's columns there */
  .bar { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "l r" "s s"; padding: 6px 12px 10px; gap: 8px; }
  .wordmark { grid-area: l; }
  .quick { grid-area: r; }
  .find { grid-area: s; }
  .quick > a { display: none; }
  .quick .acct { width: 38px; padding: 0; justify-content: center; }
  .quick .acct .lbl, .quick .acct .car { display: none; }
  .find .fk { display: none; }
  .find input[type=search] { padding-right: 14px; }
  .am:popover-open { left: 0 !important; right: 0 !important; width: auto; border-radius: 0 0 10px 10px; grid-template-columns: 1fr; gap: 14px; max-height: calc(100vh - 110px); }
  .am-col + .am-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule2); padding-top: 12px; }
}

/* ---- the trail: McMaster's results line and the drill-down breadcrumb --------------------------------------- */
.trail { background: var(--bg2); border-bottom: 1px solid var(--rule2); padding: 6px 16px; font-size: 13px; min-height: 31px; }
.trail:empty { display: none; }
.results { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.results strong { font-weight: 650; }
.results .sep { color: var(--ink3); }
.crumbs a[aria-current] { color: var(--ink); }
.crumbs .back { font-weight: 600; cursor: pointer; }
.crumbs .sep { color: var(--ink3); }

main { padding: 4px 16px 24px; max-width: 1280px; }
footer { color: var(--ink3); font-size: 12px; border-top: 1px solid var(--rule2); padding: 10px 16px 24px; }
.panes footer, .mpane footer { padding-left: 0; padding-right: 0; margin-top: 32px; }

/* ---- two panes: the filter column and the results, each its own scroll ----------------------------------------- */
/* WHY (Zach, 2026-10-25: "the left column and the main page scroll separately"): on a wide screen the page itself
   does not scroll; the column and the results are each a scroll container of the viewport's height minus the header
   and the trail (the flex column below), as on McMaster. A phone keeps one page scroll (the media query). */
@media (min-width: 768px) {
  body.panes { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  body.panes > .top, body.panes > .trail { flex: none; }
  /* WHY auto and a width (Zach, 2026-10-26, .claude/feedback.md): the column drags to resize and is remembered; data-ui's
     resize primitive writes --data-panel-width on it (build/site_pages.py marks it data-resizable) */
  main.panes { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 0; max-width: none; }
  .fcol { width: var(--data-panel-width, 17.5rem); overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--rule); background: var(--bg); padding: 4px 14px 24px; }
  .mpane { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 0; min-width: 0; }
  .filters > summary { display: none; }
}
@media (max-width: 767px) {
  main.panes { display: block; padding: 0 16px; }
  .fcol { border-bottom: 1px solid var(--rule2); padding: 8px 0; }
  /* WHY a gutter (Zach, 2026-10-28: "you haven't fixed the spacing ... on the (X) text and the side bar"): on a phone the
     column's counts and tiles stood flush with its edges; McMaster's rail keeps them 12 px in */
  aside.fcol { padding-left: 12px; padding-right: 12px; }
  .filters > summary { cursor: pointer; font-weight: 650; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg2); }
  .filters[open] > summary { margin-bottom: 4px; }
}

/* the facet groups (McMaster's left column) */
.facet { border: 0; border-top: 1px solid var(--rule2); margin: 0; padding: 10px 0 10px; min-width: 0; }
.facet:first-of-type { border-top: 0; }
.facet legend, .fl { display: block; float: left; width: 100%; font-weight: 650; font-size: 13px; padding: 0 0 5px; }
.facet legend + * { clear: both; }
.facet input[type=search], .facet select { width: 100%; }
.vals { display: flex; flex-direction: column; clear: both; }
.v { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; font-size: 13px; cursor: pointer; line-height: 1.3; }
.v input { margin: 0; flex: none; position: relative; top: 2px; }
.v span:first-of-type { flex: 1 1 auto; min-width: 0; }
.v .n { font-size: 12px; }
/* a count ≥ 8 px after its label even where a long label wraps up to it */
label.v .n { margin-left: 2px; }
.v:hover span:first-of-type { color: var(--accent); }
/* WHY a box of its own: a long value list (a hundred brands) scrolls inside its group, with its own find box above it. */
.long .vals { max-height: 15.5rem; overflow-y: auto; border: 1px solid var(--rule2); border-radius: 3px; padding: 2px 6px; }
/* WHY 12 px (Zach, 2026-10-28): a long list's counts stand clear of its own scrollbar, not 6 px from it */
fieldset.long .vals { padding-right: 12px; }
.vfind { width: 100%; height: 26px !important; font-size: 12.5px; margin-bottom: 4px; clear: both; }
.rng { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; font-size: 12.5px; color: var(--ink2); margin-bottom: 6px; clear: both; }
.rng .rl { grid-column: 1 / -1; color: var(--ink); }
.rng label { display: flex; gap: 4px; align-items: center; }
.rng input { width: 100%; height: 26px; }
.apply { display: flex; gap: 12px; align-items: center; padding-top: 6px; }

/* the results pane */
.lede { max-width: 60rem; }
.brands { font-size: 13px; line-height: 1.8; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 14px 0 10px; }
.toolbar #cmp { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; font-size: 13px; color: var(--ink2); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; height: 30px; background: var(--bg); padding: 0 14px; font-weight: 600; color: var(--ink2); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed=true] { background: var(--accent-bg); color: var(--accent); }

/* ---- tables ------------------------------------------------------------------------------------------------- */
/* WHY: a dense table scrolls inside its own box on a phone, never the whole page. */
.scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; font-size: 13px; }
caption { text-align: left; color: var(--ink3); font-size: 12px; padding: 0 0 6px; caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 5px 9px; border-bottom: 1px solid var(--rule2); }
thead th { background: var(--bg2); border-bottom: 1px solid var(--rule); font-weight: 650; font-size: 12.5px; white-space: nowrap; }
tbody tr:hover > td { background: var(--hover); }
th button { all: unset; cursor: pointer; }
th button:focus-visible { outline: 2px solid var(--accent); }
th[aria-sort=ascending] button::after { content: " ▲"; font-size: 9px; color: var(--accent); }
th[aria-sort=descending] button::after { content: " ▼"; font-size: 9px; color: var(--accent); }
/* WHY nowrap: a dense row stays one line tall and the table scrolls sideways in its box; the price cell may wrap, since an
   atlas's conversion carries a note. */
#parts td { white-space: nowrap; }
#parts td:nth-child(4) { white-space: normal; min-width: 7rem; max-width: 16rem; }
td small, dd small { color: var(--ink3); }

/* ---- gallery and chart views -------------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 10px; }
.card { border: 1px solid var(--rule2); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--bg); }
.card:hover { border-color: var(--rule); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.card .pic { height: 150px; }
/* WHY a fixed name height and one source line: every card in a row is the same height, photo or drawing. */
.card .nm { font-weight: 650; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .src { display: block; min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; margin: 2px 0; font-size: 12.5px; }
.card dt { color: var(--ink2); grid-column: auto; }
.card dd { margin: 0; text-align: right; }
.card .foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--rule2); }
.lvl { display: inline-block; font-size: 11.5px; font-weight: 650; color: var(--ink2); background: var(--bg3); border-radius: 3px; padding: 0 6px; white-space: nowrap; }
.pic { display: flex; align-items: center; justify-content: center; color: var(--ink2); overflow: hidden; }
.pic svg.dwg { max-height: 100%; width: auto; max-width: 100%; }
.pic.none { color: var(--ink3); font-size: 12px; background: var(--bg2); border-radius: 3px; text-align: center; padding: 0 8px; }
/* ---- photos and logos (robotparts/2.4): object-fit contain on a white plate ------------------------------------- */
.plate { background: var(--plate); border-radius: 3px; box-shadow: inset 0 0 0 1px var(--plate-edge); }
.pic.plate { position: relative; padding: 6px; }
.pic img.ph { display: block; width: 100%; height: 100%; object-fit: contain; }
small.src { font-size: 11px; color: var(--ink3); }
figcaption small.src, .bhead small.src { font-size: inherit; }
small.src a { color: var(--ink2); }
small.src .age:not(:empty) { margin-left: 0.3em; }  /* a caption's age: no space before it until site.js fills it */
.badge { position: absolute; left: 4px; bottom: 4px; display: flex; align-items: center; background: var(--plate); border-radius: 2px; padding: 2px 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .10); }
.badge img.logo { display: block; height: 14px; width: auto; max-width: 70px; object-fit: contain; }
.pic.logo-only img.logo { display: block; height: 46px; max-width: 82%; width: auto; object-fit: contain; }
.v > .fi { order: -1; }
.v > input { order: -2; }
.fi { display: inline-flex; flex: none; align-items: center; justify-content: center; align-self: center; width: 56px; height: 19px; margin-right: 0; background: var(--plate); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--plate-edge); }
.fi img.flogo { display: block; height: 15px; max-width: 52px; width: auto; object-fit: contain; }
.bhead { display: flex; gap: 16px; align-items: center; margin: 10px 0 6px; }
.bhead .plate { flex: none; display: flex; align-items: center; justify-content: center; height: 72px; min-width: 120px; max-width: 240px; padding: 10px 14px; border: 1px solid var(--rule2); }
/* WHY a height, never only a max-height: an SVG logo with a viewBox but no width has no intrinsic size, and with
   max-height alone it collapses to nothing (LUCID's, 2026-10-25); object-fit keeps every logo's proportions. */
.bhead img.logo { display: block; height: 50px; max-width: 210px; width: auto; object-fit: contain; }
.bhead h1 { margin: 0 0 2px; }
.bhead p { margin: 0; }
.plogo { float: right; display: flex; align-items: center; height: 46px; max-width: 180px; padding: 6px 10px; margin: 10px 0 0 14px; border: 1px solid var(--rule2); }
.plogo img.logo { display: block; height: 32px; max-width: 160px; width: auto; object-fit: contain; }
.pic.plate.photo { height: 240px; max-width: 24rem; border: 1px solid var(--rule2); }
.axes { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; }
.axes label { display: flex; gap: 6px; align-items: center; }
.axes select { max-width: 15rem; }
.chart { width: 100%; max-width: 900px; color: var(--ink2); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.sc .frame { fill: none; stroke: var(--rule); }
.sc .g1 { stroke: var(--rule2); }
.sc .g0 { stroke: var(--rule); }
.sc text { fill: var(--ink2); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.sc .t { fill: var(--ink); font-weight: 600; }
.sc .d { fill: var(--accent); fill-opacity: .5; stroke: none; }
.sc a:hover .d, .sc a:focus .d { fill-opacity: 1; }
.sc .me { fill: var(--warn); stroke: var(--bg); stroke-width: 1.5; }
.sc .ring { fill: none; stroke: var(--warn); stroke-width: 1.5; }
.sc .lab { fill: var(--warn); font-weight: 650; }

/* ---- the home page: Choose a category, then every category as a group of tiles ----------------------------- */
/* WHY auto and a width: Choose a category drags to resize, remembered, like the filter column (data-resizable) */
.home { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; margin-top: 10px; }
.choose { width: var(--data-panel-width, 14rem); min-width: 0; }
.choose h2 { margin-top: 6px; font-size: 15px; }
.choose ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule2); }
.choose li { border-bottom: 1px solid var(--rule2); padding: 6px 0; display: flex; justify-content: space-between; gap: 8px; }
.choose a { font-weight: 600; }
.group { margin-bottom: 26px; }
.gh { margin: 6px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); font-size: 17px; }
.gh a { color: var(--ink); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%; padding: 8px 8px 10px; border: 1px solid var(--rule2); border-radius: 4px; color: var(--ink); font-size: 13px; line-height: 1.25; }
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile:hover .tn { color: var(--accent); }
.tile .pic { width: 100%; height: 96px; }
.tile .pic:not([data-thumb]):not(.plate) { visibility: hidden; }
.tile.more { justify-content: center; }
.tile .tn { font-weight: 600; }
/* WHY (Zach's pick of 2026-10-26, layout proposal 1, as McMaster's home): Choose a category as plain links, each
   category's heading in the brand rule's colour, and tiles whose picture carries the frame, not the tile */
.home .choose li { padding: 4px 0; border-bottom: 0; }
.home .choose ul { border-top: 1px solid var(--rule); }
.home .choose a { font-weight: 400; }
/* WHY a gutter (Zach, 2026-10-28, on the live site: "you haven't fixed the spacing ... on the (X) text and the side bar"):
   the counts ended on the column's edge, under the resize separator's stroke; McMaster keeps a list's counts well
   inside its panel. 14 px leaves 12 px and more from that stroke, at every width and at the column's minimum. */
nav.choose ul { padding-right: 14px; }
.home .gh a { color: var(--ink); font-weight: 500; font-size: 20px; }
/* the brand rule's green is a light-scheme colour (Catalog); dark keeps ink */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .home .gh a { color: var(--brand-rule); }
  :root:not([data-theme="dark"]) .home .choose ul { border-top-color: var(--brand-rule); }
}
:root[data-theme="light"] .home .gh a { color: var(--brand-rule); }
:root[data-theme="light"] .home .choose ul { border-top-color: var(--brand-rule); }
.home .tiles { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 6px 10px; }
.home .tile { border-color: transparent; padding: 4px 4px 8px; }
.home .tile .pic { border: 1px solid var(--rule2); border-radius: 3px; }
.home .tile .tn { font-weight: 400; }
/* WHY (Zach, 2026-10-28): a tile's count stands clear of its name and of the tile's bottom, not 2 px under the name */
.home li > .tile { gap: 6px; padding-bottom: 10px; }
/* ---- the home column's three scroll modes: Settings › Home page column (Zach, 2026-10-29; the workbench's home.py) */
/* WHY grid areas: the catalog's sections (.below) run under the tiles at full width, except "Scrolls on its own", where
   the column keeps its track beside them all the way down */
.home { grid-template-areas: "side tiles" "below below"; row-gap: 0; }
.home > .choose { grid-area: side; }
.home > .groups { grid-area: tiles; }
.home > .below { grid-area: below; min-width: 0; }
@media (min-width: 768px) {
  /* "Stays put", the default (McMaster's home, measured 2026-10-29: its nav is sticky, top 0, max-height the viewport's,
     overflow auto, and leaves with the categories' row): the column stays under the bar while the tiles scroll and
     leaves with the last group; one taller than the screen scrolls by itself, so no category is ever out of reach.
     WHY .choose-in sticks, not the nav: the nav stretches down its track (the tiles' row), so its end is where the
     column lets go; a sticky grid item is held by the whole .home, .below included (catalog_workbench/home.py).
     --top-h is the bar's measured height (static/site.js). */
  .home > .choose > .choose-in { position: sticky; top: var(--top-h); max-height: calc(100vh - var(--top-h)); overflow-y: auto; }
  /* "Scrolls on its own", the list pages' filter column (.fcol): a pane as tall as the screen, with its rule, beside the
     sections under the tiles too; it scrolls only when you scroll it, and its end never scrolls the page (contain) */
  :root[data-home-column="own"] .home { grid-template-areas: "side tiles" "side below"; }
  :root[data-home-column="own"] .home > .choose > .choose-in { height: calc(100vh - var(--top-h)); overscroll-behavior: contain; border-right: 1px solid var(--rule); padding-right: 14px; }
  /* "Scrolls with the page": the column as it was before 2026-10-29 */
  :root[data-home-column="page"] .home > .choose > .choose-in { position: static; max-height: none; overflow-y: visible; }
}
@media (max-width: 767px) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 4px; grid-template-areas: "side" "tiles" "below"; }
  .choose { width: auto; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
}

/* ---- the part page: a heading, the tabs, one panel at a time ------------------------------------------------ */
.phead h1 { margin-top: 10px; }
.phead .sub { color: var(--ink2); margin-top: -4px; }
/* robotparts/2.11: the level badge beside the name (build/site_pages.py level_head; its checklist pop-over and the tab
   marks are static/p-plevel.css). WHY no red or amber (calm UI): a level not reached yet is not an error. */
.lvl-badge { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; padding: 1px 8px 1px 2px;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); font-size: 13px; text-decoration: none; }
.lvl-badge:hover { background: var(--hover); }
.lvl-badge .lvn { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--bg3); color: var(--ink); font-weight: 650; font-size: 12px; }
.lvl-badge:not(.lv0) .lvn { background: var(--accent); color: var(--on-accent); }
/* WHY no basis marks in the datasheet (Zach, 2026-10-29, of the "D" beside each value: "no need for this as already the
   column header tells us where the value is from"): the basis stays in the value's hover and its right-click menu. */
#datasheet-views .dv-basis { display: none; }
.pactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; }
.pactions .buy-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: 3px; background: var(--accent);
  color: var(--on-accent); font-weight: 600; }
.pactions .buy-btn:hover { text-decoration: none; filter: brightness(1.08); }
.pactions .buy-at { color: var(--ink2); }
.ai-brief { display: block; width: 100%; min-height: 12em; margin-top: 6px; font: 12px/1.4 var(--mono); }
.ai-brief[hidden] { display: none; }
.tabs { border-bottom: 1px solid var(--rule); margin: 10px 0 4px; }
[role=tablist] { display: flex; gap: 0 2px; overflow-x: auto; scrollbar-width: thin; }
[role=tab] { padding: 8px 12px; color: var(--ink2); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
[role=tab]:hover { color: var(--ink); text-decoration: none; }
[role=tab][aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
.nothing { font-size: 12.5px; color: var(--ink3); margin: 4px 0 6px; }
.nothing a { color: var(--ink2); }
/* WHY: without JavaScript every panel shows, stacked; a thin rule tells one from the next. */
.panel + .panel { border-top: 1px solid var(--rule2); margin-top: 18px; }
.tabbed .panel + .panel { border-top: 0; margin-top: 0; }
.ov { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 12px 28px; align-items: start; margin-top: 14px; }
.hero { margin: 0; border: 1px solid var(--rule2); border-radius: 4px; padding: 10px; }
.hero .pic { height: 250px; }
.hero .pic.plate { height: 280px; }
.hero figcaption { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.idn h2 { margin-top: 16px; }
.where { margin: 14px 0; }
.where.mini { max-width: 560px; }
.where figcaption { font-size: 12px; color: var(--ink3); margin-top: 4px; max-width: 900px; }
.cmpwith .near { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
@media (max-width: 767px) {
  .ov { grid-template-columns: minmax(0, 1fr); }
  .hero .pic { height: 200px; }
  .hero .pic.plate { height: 240px; }
  .bhead { align-items: flex-start; }
  .bhead .plate { height: 56px; min-width: 88px; }
  .bhead img.logo { height: 38px; max-width: 130px; }
  .plogo { height: 38px; max-width: 120px; }
  .plogo img.logo { height: 26px; max-width: 100px; }
}

/* datasheets and key/value lists: McMaster's two columns */
dl { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: 3px 16px; margin: 8px 0; }
dt { color: var(--ink2); }
dd { margin: 0; min-width: 0; }
@media (max-width: 520px) {
  dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dd { margin-bottom: 6px; }
}
.facts { max-width: 40rem; }
table.spec { width: 100%; max-width: 60rem; }
table.spec th[scope=row] { width: 38%; font-weight: 400; color: var(--ink); }
table.spec .grp th { background: var(--bg3); font-weight: 650; font-size: 12.5px; border-bottom: 1px solid var(--rule); padding-top: 6px; }
table.spec tbody + tbody .grp th { border-top: 10px solid var(--bg); }
table.spec .k { display: block; color: var(--ink3); font-size: 11.5px; }
table.spec .reg { color: var(--ink3); font-size: 11.5px; }
th .reg::before { content: "· "; }
table.spec .val { font-weight: 600; }
table.spec .src { white-space: nowrap; margin-left: 4px; }
table.spec .det, table.spec .cite { display: block; color: var(--ink3); font-size: 12px; }
.conflict { color: var(--warn); font-size: 12px; }
pre { overflow-x: auto; background: var(--bg2); border: 1px solid var(--rule2); border-radius: 3px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; }
details { margin: 6px 0; }
details > summary { cursor: pointer; }
section > ul, section > ol { padding-left: 20px; }
figure { margin: 10px 0; }
figcaption { font-size: 12px; color: var(--ink3); }
meter { vertical-align: middle; }

/* Drawings from spec dimensions (static/draw.js). SVG lines have no stroke by default and would be invisible,
   so each class gets the minimum to be seen, in currentColor so it follows light and dark. The text sizes are the
   ones draw.js lays its labels out for (monospace advance). */
svg.dwg { display: block; width: 100%; max-width: 36rem; height: auto; overflow: visible; }
.drawing { color: var(--ink2); }
.drawing svg.dwg { display: inline-block; vertical-align: top; margin-right: 12px; }
.dwg .ol, .dwg .ext, .dwg .dl, .dwg .ray, .dwg .rf { fill: none; stroke: currentColor; stroke-width: .8; }
.dwg .ol { stroke-width: 1.5; }
.dwg .ol.thin { stroke-width: .8; }
.dwg .cl, .dwg .hid, .dwg .alt, .dwg .pj, .dwg .ph, .dwg .grid, .dwg .grid2 {
  fill: none; stroke: currentColor; stroke-width: .5; stroke-dasharray: 6 3;
}
.dwg .face1, .dwg .face2, .dwg .face3, .dwg .fovfill { fill: none; stroke: none; }
.pic .dwg .face1 { fill: var(--bg2); }
.pic .dwg .face2 { fill: var(--bg3); }
.pic .dwg .face3 { fill: var(--rule2); }
.dwg .ah, .dwg .cam, .dwg .sb0, .dwg .me { fill: currentColor; stroke: none; }
.dwg .sb1, .dwg .pt { fill: none; stroke: currentColor; stroke-width: .6; }
.dwg text { fill: currentColor; font-family: monospace; font-size: 11px; }
.dwg .vt { font-size: 10px; font-weight: bold; }
.dwg .nt { font-size: 9.5px; }
.dwg .flag path { fill: none; stroke: currentColor; stroke-width: .9; }
.dwg .flag text { font-size: 8.5px; font-weight: bold; }

@media (max-width: 767px) {
  .wordmark { font-size: 17px; }
  .trail { padding: 6px 12px; }
  main { padding: 4px 12px 20px; }
  main.panes { padding: 0 12px; }
  footer { padding: 10px 12px 20px; }
}

/* ---- provenance and sources: the two dates, stale and dead flags, refresh commands ------------------------------ */
/* WHY quiet (Zach, 2026-10-25): a stale or dead row says so in a small word and offers its one command; a fresh row
   reads calm. */
.flag { font-size: 11px; font-weight: 650; padding: 0 5px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; }
.flag.stale { color: var(--warn); }
.flag.dead, .flag.moved { color: var(--warn); background: var(--bg2); }
.nodate { color: var(--ink3); font-style: italic; }
/* robotparts/2.6: a private source's mark beside its title (no link: it is kept in the owner's account) */
.private { display: inline-block; padding: 0 5px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink2);
  font-size: 11px; line-height: 16px; vertical-align: 1px; }
.age { color: var(--ink3); font-size: 12px; }
table.prov td, #sources td { white-space: normal; min-width: 4.5rem; }
table.prov td:nth-last-child(4), table.prov td:nth-last-child(5) { max-width: 18rem; }
table.prov code.cmd, #sources code { font-size: 11.5px; white-space: normal; overflow-wrap: anywhere; }
#sources td:last-child { min-width: 14rem; }
#sources small.k { display: block; color: var(--ink3); }

/* ---- data-ui (the vendored kit at /static/data-ui/): the category pages' views and rail, the part page's datasheet -- */
/* WHY one block of tokens and nothing else (data-ui docs/SPEC.md §10): the kit reads --data-*, so robotparts maps its own
   names onto them here and its colours, rules, fonts and light and dark follow on every view (charts included). */
:root {
  --data-bg: var(--bg); --data-fg: var(--ink); --data-muted: var(--ink2); --data-subtle: var(--bg2);
  --data-border: var(--rule); --data-rule: var(--rule2); --data-hover: var(--hover); --data-accent: var(--accent);
  --data-on-accent: var(--on-accent); --data-warn: var(--warn); --data-font: var(--sans); --data-mono: var(--mono);
  --data-radius: 3px;
}
/* the server table inside <data-views> is the reading without JavaScript (an unknown element is inline) */
data-views:not(.dv) { display: block; }
#datasheet-views { --data-height: min(75vh, 900px); }
/* the bar (data-ui CONTRACT §15): when its Filters toggle hides the rail, the filter column folds away (its server form
   is already hidden once the views start) and the results take the width; .mpane keeps the second track either way */
.fcol:has(> details.filters[hidden]):has(> data-facets[hidden]) { display: none; }
@media (min-width: 768px) { main.panes > .mpane { grid-column: 2; } }
/* WHY a cap (2026-10-26, lane C): dragged to its widest (560 px) the filter column left the results 208 px at a 768 px
   window, too narrow for a table; like data-ui's own rail (CONTRACT §11) it now always leaves the results 320 px. The
   CSS max wins over the remembered --data-panel-width. */
@media (min-width: 768px) { .fcol { max-width: calc(100vw - 320px); } }

/* ---- TEMPORARY review chrome: the toolbar preset switcher (static/toolbar-presets.js says why; goes with it) ------- */
body[data-rail="hidden"] .fcol { display: none; }
@media (min-width: 768px) { body[data-rail="wide"] .fcol { width: var(--data-panel-width, 24rem); } }
.tbp { position: fixed; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: calc(100vw - 24px); font-size: 13px; }
.tbp-btn { height: 30px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 15px; background: var(--bg); color: var(--ink2); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tbp-btn:hover, .tbp-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink3); }
.tbp-menu { width: 30rem; max-width: 100%; padding: 4px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); box-shadow: 0 4px 16px rgba(0, 0, 0, .16); }
.tbp-item { display: block; width: 100%; height: auto; text-align: left; padding: 6px 8px 6px 26px; border: 0; border-radius: 4px; background: none; cursor: pointer; position: relative; }
.tbp-item:hover, .tbp-item:focus-visible { background: var(--hover); outline: none; }
.tbp-item[aria-checked="true"]::before { content: "✓"; position: absolute; left: 9px; top: 6px; color: var(--accent); }
.tbp-name { display: block; color: var(--ink); font-weight: 600; }
.tbp-text { display: block; color: var(--ink2); font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* frame="bleed" (the category lists' default, build/site_pages.py FRAME_DEFAULT) reaches across the results pane's side
   padding to its edges (data-ui CONTRACT §12: --data-bleed is that padding) */
data-views { --data-bleed: 12px; }
@media (min-width: 768px) { data-views { --data-bleed: 20px; } }
/* WHY a plate: the rail's brand swatches draw the hosted logos, dark on transparent, so each sits on the white plate the
   pages give every logo (robotparts/2.4), never on the dark ground */
data-facets .df-as-swatch img.df-tile-img { background: var(--plate); box-shadow: inset 0 0 0 1px var(--plate-edge); border-radius: 2px; padding: 2px; }
/* WHY (Zach, 2026-10-27: "things are getting cut off on my screen"): nothing in the filter column is cut silently.
   - A value list's label wraps under itself, as McMaster's rail does, instead of the kit's one-line ellipsis; its count
     and checkbox stay on the first line. A single word wider than the row still ends in the kit's ellipsis (the
     overflow stays hidden, so it never paints over the count), and static/site.js gives every such label its title.
   - A tile's caption never breaks inside a word: "Integrat|ed" and "gearm|otor" read as cut words. A word wider than
     its tile ends in the kit's ellipsis instead, and the tile's title holds the whole label.
   - Every count stands ≥ 6 px from its label: the price chips had 3 px between the unit and the count. */
data-facets .df-values .df-label { white-space: normal; overflow-wrap: normal; }
data-facets .df-values li, data-facets .df-values li label { align-items: baseline; }
data-facets .df-values li label input { position: relative; top: 2px; }
data-facets .df-tiles .df-label { overflow-wrap: normal; word-break: normal; }
data-facets .df-chip .df-count { margin-left: 6px; }
/* a value's count ≥ 8 px after its label even where the label fills its track (an ellipsis, a wrapped first line) */
data-facets .df-values .df-count { margin-left: 2px; }
/* a tile's count stands clear of its caption and of the tile's bottom border (the kit's 3 px and 4 px read as touching) */
data-facets .df-tiles-gallery .df-tile, data-facets .df-tiles-swatch .df-tile { gap: 5px; padding-bottom: 8px; }
/* the views' search box ends a hint too long for it in an ellipsis (static/site.js puts the whole hint in its title) */
data-views .dv-qinput { text-overflow: ellipsis; }
/* "What the columns mean", folded above the views: under bleed and page the pane scrolls through every row */
.colnotes { margin: 6px 0 8px; font-size: 13px; }
.colnotes > summary { color: var(--ink2); font-weight: 600; }
.colnotes > summary:hover { color: var(--accent); }
.colnotes dl { max-width: 60rem; }

/* WHY last: each mode's skin repaints rules above (the header, the filter column, the section rules), so it must follow
   them; the tokens could sit anywhere. */
/* ---- colour tokens: GENERATED by design/colors-2026-10-26/build_schemes.py (Catalog light + Signal dark); edit that file, then run it ---- */
/* Catalog (light): McMaster-faithful: white page, grey filter rail, #006699 links, the yellow header rule and green section rules.
   Signal (dark): High-density data tool, dark-first: Linear/Geist greys, elevated chrome (header and rail one step up), one indigo signal.
   Each mode's skin is colour only: it paints existing selectors and never moves a box. */
:root {
  --bg: #ffffff;
  --bg2: #eeeeee;
  --bg3: #e2e2e2;
  --hover: #edf4f9;
  --ink: #222222;
  --ink2: #555555;
  --ink3: #666666;
  --rule: #c4c4c4;
  --rule2: #dddddd;
  --accent: #006699;
  --accent-bg: #e3eff5;
  --on-accent: #ffffff;
  --warn: #a8320c;
  --plate-edge: transparent;
  --band: #fed700;
  --brand-rule: #346734;
  --data-series-1: #006699;
  --data-series-2: #7b3c62;
  --data-series-3: #0b8c6d;
  --data-series-4: #a08718;
  --data-series-5: #904714;
  --data-series-6: #4f8952;
  --data-series-7: #8d73b8;
  --data-series-8: #c14f4b;
  --data-basis-measured: #006699;
  --data-basis-datasheet: #555555;
  --data-basis-seller: #666666;
  --data-basis-derived: #666666;
  --data-basis-estimate: #666666;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090a;
    --bg2: #111214;
    --bg3: #1c1d21;
    --hover: #16171b;
    --ink: #f7f8f8;
    --ink2: #a6a8b0;
    --ink3: #8a8d96;
    --rule: #26282d;
    --rule2: #1a1b1f;
    --accent: #8e95ff;
    --accent-bg: #1d1f3a;
    --on-accent: #08090a;
    --warn: #ff9e66;
    --plate-edge: #26282d;
    --data-series-1: #727afc;
    --data-series-2: #26aa87;
    --data-series-3: #9a3d67;
    --data-series-4: #b78a00;
    --data-series-5: #2293d3;
    --data-series-6: #3fa423;
    --data-series-7: #bd67e0;
    --data-series-8: #b61b2e;
    --data-basis-measured: #8e95ff;
    --data-basis-datasheet: #a6a8b0;
    --data-basis-seller: #8a8d96;
    --data-basis-derived: #8a8d96;
    --data-basis-estimate: #8a8d96;
  }
}
/* Settings › Theme (Zach, 2026-10-26, release 2026.10.26.11; static/shell.js sets html[data-theme], remembered): the
   same tokens again, forced, so a reader's pick beats the system's. Generated with the blocks above, never kept by hand. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #eeeeee;
  --bg3: #e2e2e2;
  --hover: #edf4f9;
  --ink: #222222;
  --ink2: #555555;
  --ink3: #666666;
  --rule: #c4c4c4;
  --rule2: #dddddd;
  --accent: #006699;
  --accent-bg: #e3eff5;
  --on-accent: #ffffff;
  --warn: #a8320c;
  --plate-edge: transparent;
  --band: #fed700;
  --brand-rule: #346734;
  --data-series-1: #006699;
  --data-series-2: #7b3c62;
  --data-series-3: #0b8c6d;
  --data-series-4: #a08718;
  --data-series-5: #904714;
  --data-series-6: #4f8952;
  --data-series-7: #8d73b8;
  --data-series-8: #c14f4b;
  --data-basis-measured: #006699;
  --data-basis-datasheet: #555555;
  --data-basis-seller: #666666;
  --data-basis-derived: #666666;
  --data-basis-estimate: #666666;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090a;
  --bg2: #111214;
  --bg3: #1c1d21;
  --hover: #16171b;
  --ink: #f7f8f8;
  --ink2: #a6a8b0;
  --ink3: #8a8d96;
  --rule: #26282d;
  --rule2: #1a1b1f;
  --accent: #8e95ff;
  --accent-bg: #1d1f3a;
  --on-accent: #08090a;
  --warn: #ff9e66;
  --plate-edge: #26282d;
  --data-series-1: #727afc;
  --data-series-2: #26aa87;
  --data-series-3: #9a3d67;
  --data-series-4: #b78a00;
  --data-series-5: #2293d3;
  --data-series-6: #3fa423;
  --data-series-7: #bd67e0;
  --data-series-8: #b61b2e;
  --data-basis-measured: #8e95ff;
  --data-basis-datasheet: #a6a8b0;
  --data-basis-seller: #8a8d96;
  --data-basis-derived: #8a8d96;
  --data-basis-estimate: #8a8d96;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .top { box-shadow: inset 0 -3px 0 var(--band); border-bottom-color: var(--band); }
  :root:not([data-theme="dark"]) .fcol { background: var(--bg2); --data-bg: var(--bg2); }
  :root:not([data-theme="dark"]) .gh, :root:not([data-theme="dark"]) .tabs { border-bottom-color: var(--brand-rule); }
  :root:not([data-theme="dark"]) thead th { border-bottom-color: var(--brand-rule); }
}
:root[data-theme="light"] .top { box-shadow: inset 0 -3px 0 var(--band); border-bottom-color: var(--band); }
:root[data-theme="light"] .fcol { background: var(--bg2); --data-bg: var(--bg2); }
:root[data-theme="light"] .gh, :root[data-theme="light"] .tabs { border-bottom-color: var(--brand-rule); }
:root[data-theme="light"] thead th { border-bottom-color: var(--brand-rule); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .top, :root:not([data-theme="light"]) .fcol { background: var(--bg2); }
  :root:not([data-theme="light"]) .fcol { --data-bg: var(--bg2); }
  :root:not([data-theme="light"]) .trail { background: var(--bg2); }
}
:root[data-theme="dark"] .top, :root[data-theme="dark"] .fcol { background: var(--bg2); }
:root[data-theme="dark"] .fcol { --data-bg: var(--bg2); }
:root[data-theme="dark"] .trail { background: var(--bg2); }
/* ---- end of the generated colour tokens ---- */
