:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --link: #0a58b0;
  --tag: #f0f0f0;
  --accent: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e6e6e6;
    --muted: #9b9b9b;
    --line: #2b2b2b;
    --link: #7db3ff;
    --tag: #222222;
    --accent: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

header.site {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; padding-top: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.brand {
  font: 700 1.05rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.06em; color: var(--fg); text-decoration: none;
}
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
header.site nav a { color: var(--muted); text-decoration: none; padding-bottom: 2px; }
header.site nav a:hover { color: var(--fg); }
header.site nav a[aria-current="page"] { color: var(--fg); border-bottom: 2px solid currentColor; }
.nav-menu { position: relative; }
.nav-menu summary { color: var(--muted); cursor: pointer; padding-bottom: 2px; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: " ▾"; font-size: 0.8em; }
.nav-menu summary:hover, .nav-menu[open] summary { color: var(--fg); }
.nav-menu summary.current { color: var(--fg); border-bottom: 2px solid currentColor; }
.nav-menu div { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; padding: 4px 0; white-space: nowrap; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
header.site nav .nav-menu a { padding: 6px 14px; }
header.site nav .nav-menu a:hover { background: var(--tag); }
header.site nav .nav-menu a[aria-current="page"] { border-bottom: 0; font-weight: 600; }
.nav-menu:last-child div { left: auto; right: 0; }
@media (max-width: 640px) {
  .nav-menu { position: static; }
  .nav-menu div, .nav-menu:last-child div { position: absolute; top: auto; left: 16px; right: 16px; margin-top: 6px; white-space: normal; }
}

main { padding-top: 28px; padding-bottom: 56px; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 40px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
h2 small { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
h3 { font-size: 1rem; margin: 0 0 4px; }
p { margin: 0 0 10px; }
.lede, .meta { color: var(--muted); }
.meta { font-size: 0.9rem; }

.coffee { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; background: #ffdd00; color: #000; border: 1px solid #e6c700; }
.coffee:hover { background: #f5d400; }

ul.links { list-style: none; padding: 0; margin: 24px 0 0; }
h2 + ul.links { margin-top: 0; }
h2 a { text-underline-offset: 3px; }
ul.links li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
ul.links li a { font-weight: 600; }
ul.links li span { color: var(--muted); font-size: 0.92rem; }

.overview { font-size: 1.05rem; margin: 16px 0; }
nav.toc { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9rem; margin: 12px 0 0; }
article.item { margin: 18px 0 0; }
.tags { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.75rem; background: var(--tag); color: var(--muted); padding: 1px 8px; border-radius: 10px; }
.tag.upd { color: var(--accent); }
.impact { font-size: 0.95rem; }
.src { font-size: 0.85rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
ul.radar { padding-left: 20px; }
ul.radar li { margin: 4px 0; }
.note { margin-top: 40px; font-size: 0.85rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 0.9rem; }

ul.archive { list-style: none; padding: 0; }
ul.archive li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.archive li span { display: block; color: var(--muted); font-size: 0.9rem; }

#contact form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
#contact input { font: inherit; width: 6em; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
#contact button { font: inherit; padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--tag); color: var(--fg); cursor: pointer; }
#contact-result { font-size: 1.1rem; min-height: 1.6em; margin-top: 12px; }
.cf-turnstile { margin: 16px 0; }

footer.site { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
footer.site a { color: var(--muted); }

header.site.wide, main.wide, footer.site.wide { max-width: 1192px; }
.button { display: inline-block; margin-top: 8px; padding: 8px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; background: var(--link); color: var(--bg); }
.button:hover { opacity: 0.85; }
.doc-page { display: block; width: 100%; max-width: 620px; height: auto; border: 1px solid var(--line); }
.doc-page.poster { max-width: none; }
.watch-banner { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; background: #000; color: #fff; }
.watch-banner p { flex: 1 1 320px; margin: 0; font-size: 0.95rem; line-height: 1.45; }
.watch-banner a { flex: none; padding: 7px 16px; border-radius: 6px; background: #ff6a2b; color: #000; font-weight: 600; text-decoration: none; }
.watch-banner a:hover { background: #ff8450; }
.prop-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 18px 0 12px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { font: inherit; font-size: 0.9rem; min-width: 38px; padding: 5px 10px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.prop-controls select, .prop-time button { font: inherit; font-size: 0.9rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); cursor: pointer; }
.prop-controls label { color: var(--muted); font-size: 0.9rem; display: inline-flex; gap: 8px; align-items: center; }

/* The map keeps the watch's look in either site theme: white lines on black. */
#prop-panel { position: relative; margin: 0; padding: 14px 18px 12px; border-radius: 10px; background: #000; color: #fff; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.prop-hud { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.prop-hud div:last-child { text-align: right; }
.prop-hud span { display: block; font-size: 0.9rem; color: #c8c8c8; }
#prop-band { display: block; font-size: 2.1rem; line-height: 1.1; font-weight: 600; color: #ff6a2b; }
#prop-map { display: block; width: 100%; aspect-ratio: 720 / 290; touch-action: pan-y; cursor: crosshair; }
#prop-coast, #prop-halo, #prop-borders, #prop-route, #prop-home-ring { fill: none; vector-effect: non-scaling-stroke; }
#prop-halo { stroke: #000; stroke-width: 3.2; stroke-linejoin: round; }
#prop-coast { stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; }
#prop-borders { stroke: #8d8d8d; stroke-width: 0.8; stroke-dasharray: 1.5 3; }
#prop-route { stroke: #ff6a2b; stroke-width: 1.5; }
#prop-home-ring { stroke: #ff6a2b; stroke-width: 2; }
#prop-home-dot { fill: #ff6a2b; }
.zones circle { vector-effect: non-scaling-stroke; }
.z-poor { fill: #6e6e6e; }
.z-fair { fill: #000; fill-opacity: 0.55; stroke: #e4e4e4; stroke-width: 1.1; }
.z-good { fill: #fff; }
#prop-tip { position: absolute; z-index: 2; padding: 5px 9px; font-size: 0.8rem; line-height: 1.35; white-space: nowrap; pointer-events: none; background: #1d1d1d; color: #fff; border: 1px solid #5a5a5a; border-radius: 6px; }
#prop-tip b { color: #ff6a2b; }
#prop-tip span { display: block; }
.prop-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: 0.8rem; color: #c8c8c8; }
.prop-legend i { display: inline-block; vertical-align: -1px; margin-right: 6px; border-radius: 50%; width: 11px; height: 11px; }
.prop-legend .poor { width: 4px; height: 4px; vertical-align: 2px; background: #8a8a8a; }
.prop-legend .fair { border: 1.5px solid #e4e4e4; }
.prop-legend .good { background: #fff; }
.prop-legend .home { border: 2px solid #ff6a2b; }

.prop-time { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 14px 0 0; }
#prop-hour { flex: 1 1 260px; min-width: 200px; accent-color: #ff6a2b; }
#prop-hour-label { min-width: 15em; font-size: 0.9rem; color: var(--muted); }
#prop-status { color: var(--muted); margin: 8px 0 0; }
#prop-status:empty { display: none; }
#prop-heat-title { font-size: 1rem; margin: 24px 0 8px; font-weight: 600; }
#prop-heat { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; font-size: 0.78rem; }
#prop-heat th { font-weight: 400; color: var(--muted); text-align: left; padding: 0; overflow: visible; }
#prop-heat tr > th:first-child { width: 2.8em; }
#prop-heat td { height: 20px; border-radius: 2px; cursor: pointer; }
#prop-heat td.col { outline: 1px solid var(--muted); }
#prop-heat td.on { outline: 2px solid #ff6a2b; }
#prop-heat .q0 { background: var(--tag); }
#prop-heat .q1 { background: color-mix(in srgb, var(--fg) 22%, var(--bg)); }
#prop-heat .q2 { background: color-mix(in srgb, var(--fg) 42%, var(--bg)); }
#prop-heat .q3 { background: color-mix(in srgb, var(--fg) 68%, var(--bg)); }
#prop-heat .q4 { background: var(--fg); }
#prop:not(.ready) .prop-after { visibility: hidden; }

@media (max-width: 640px) {
  #prop-panel { padding: 10px; }
  #prop-band { font-size: 1.6rem; }
  .z-fair { stroke-width: 0.7; }
  #prop-coast { stroke-width: 0.8; }
  #prop-halo { stroke-width: 2.2; }
}

/* ---- connector guide ---- */
:root { --ok: #0a58b0; --warn: #8a5a00; --bad: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --ok: #7db3ff; --warn: #e0ac4d; --bad: #ff8a80; } }
.cx-hero { margin: 20px 0 0; }
.cx-photo { margin: 0; }
.cx-photo a { display: block; }
.cx-photo img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--tag); }
.cx-photo figcaption { margin-top: 6px; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.cx-photo figcaption span { display: block; font-size: 0.75rem; }
#cx-search { display: block; width: 100%; font: inherit; font-size: 1.15rem; padding: 10px 14px; border: 1px solid var(--muted); border-radius: 6px; background: var(--bg); color: var(--fg); }
.cx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; font-size: 0.85rem; color: var(--muted); }
.cx-chips button, .cx-matches button, .cx-controls > button, .cx-cal button, .cx-actions button { font: inherit; font-size: 0.9rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--tag); color: var(--fg); cursor: pointer; }
.cx-matches { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cx-matches button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.cx-matches small { color: inherit; opacity: 0.75; }
.cx-warn { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--warn); background: var(--tag); }
#cx-results h3 { font-size: 1.1rem; margin: 14px 0 4px; }
.cx-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin: 12px 0; }
.cx-controls label { display: flex; flex-direction: column; gap: 3px; font-size: 0.85rem; color: var(--muted); }
.cx-controls select { font: inherit; font-size: 0.95rem; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.cx-controls .cx-grow { flex: 1 1 220px; }
.cx-controls input[type="range"], .cx-slider input, #cx-cal { width: 100%; accent-color: #ff6a2b; }
#cx-verdict { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--muted); background: var(--tag); border-radius: 0 6px 6px 0; }
#cx-verdict strong { display: block; font-size: 1.2rem; }
#cx-verdict.ok { border-left-color: var(--ok); }
#cx-verdict.warn { border-left-color: var(--warn); }
#cx-verdict.stop { border-left-color: var(--bad); }
#cx-verdict.ok strong { color: var(--ok); }
#cx-verdict.warn strong { color: var(--warn); }
#cx-verdict.stop strong { color: var(--bad); }
#cx-verdict p { margin: 2px 0 0; }
.cx-mate-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
#cx-compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
#cx-compare th, #cx-compare td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
#cx-compare thead th { font-weight: 600; }
#cx-compare tbody th { color: var(--muted); }
#cx-compare .diff { font-weight: 600; }

/* The instruments share the propagation map's look: white lines on black, orange for what matters. */
.cx-panel { margin: 0; padding: 14px 16px 12px; border-radius: 10px; background: #000; color: #fff; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.cx-panel figcaption, .cx-slider label { display: block; margin-top: 8px; font-size: 0.78rem; color: #c8c8c8; }
.cx-svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.cx-svg * { vector-effect: non-scaling-stroke; }
.cx-svg text { fill: #e6e6e6; stroke: none; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.s-board { fill: #1d1d1d; stroke: #8d8d8d; stroke-width: 1; }
.s-metal { fill: #3a3a3a; stroke: #fff; stroke-width: 1.2; }
.s-plug { fill: #5e5e5e; stroke: #fff; stroke-width: 1.2; }
.s-ins { fill: #161616; stroke: #8d8d8d; stroke-width: 0.8; }
.s-pin { fill: #ff6a2b; stroke: #ff6a2b; stroke-width: 0.6; }
.s-cable { fill: #2a2a2a; stroke: #8d8d8d; stroke-width: 1; }
.s-thread { stroke: #c8c8c8; stroke-width: 0.8; fill: none; }
.s-dim { stroke: #ff6a2b; stroke-width: 1; fill: none; }
.cx-svg .s-dimtext { fill: #ff6a2b; font-weight: 600; }
.cx-svg .s-stoptext { fill: #ff8a80; font-weight: 600; }
.s-top { fill: #3a3a3a; stroke: #fff; stroke-width: 1; }
.s-bore { fill: #000; stroke: #fff; stroke-width: 1; }
.s-land { fill: none; stroke: #ff6a2b; stroke-width: 1; }
.cx-nodraw { margin: 24px 0; text-align: center; color: #c8c8c8; font-size: 0.9rem; }

#cx-count { margin: 8px 0; font-size: 0.9rem; color: var(--muted); }
#cx-lid-out { color: var(--fg); font-weight: 600; }
.c-bar { cursor: pointer; }
.c-low { fill: #fff; }
.c-high { fill: #ff6a2b; }
.c-off .c-low { fill: #4a4a4a; }
.c-off .c-high { fill: #6b4530; }
.cx-svg .c-off text { fill: #8d8d8d; }
.c-grid { stroke: #2b2b2b; stroke-width: 1; }
.c-lid { stroke: #ff6a2b; stroke-width: 2; }
.c-lid-hit { stroke: transparent; stroke-width: 28; cursor: ns-resize; touch-action: none; }

.cx-tablewrap { overflow-x: auto; }
.cx-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cx-table thead th { text-align: left; font-weight: 600; padding: 6px 12px 6px 0; border-bottom: 2px solid var(--fg); white-space: nowrap; }
.cx-table thead button { font: inherit; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.cx-table thead button[aria-sort]::after { content: " ↓"; }
.cx-table thead button[aria-sort="ascending"]::after { content: " ↑"; }
.cx-row > * { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.cx-num { white-space: nowrap; }
.cx-open { font: inherit; font-weight: 700; font-size: 1rem; padding: 0; border: 0; background: none; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cx-gen { font: 0.72rem ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 0 5px; border-radius: 3px; background: var(--fg); color: var(--bg); white-space: nowrap; }
.cx-tag { display: block; margin-top: 3px; padding-left: 7px; border-left: 3px solid var(--muted); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.cx-tag.ok { border-left-color: var(--ok); }
.cx-tag.warn { border-left-color: var(--warn); }
.cx-tag.stop { border-left-color: var(--bad); }
.cx-unknown { color: var(--muted); font-style: italic; font-size: 0.82rem; }
.cx-more-row > td { padding: 4px 0 18px; }
.cx-more { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.cx-more-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-content: start; }
.cx-more h4 { margin: 12px 0 4px; font-size: 0.85rem; }
.cx-nophoto { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--tag); color: var(--muted); font-size: 0.88rem; }
.cx-specs { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0; font-size: 0.88rem; }
.cx-specs dt { color: var(--muted); }
.cx-specs dd { margin: 0; }
.cx-akas { display: flex; flex-wrap: wrap; gap: 4px; }
.cx-aka { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font: 0.78rem ui-monospace, "Cascadia Mono", Consolas, monospace; }
.cx-traplinks { margin: 0 0 10px; padding-left: 18px; font-size: 0.9rem; }
.cx-draw { grid-column: 1 / -1; }
.cx-draw:empty { display: none; }
.cx-draw .cx-svg { width: 100%; height: 260px; }
#cx-stage .cx-svg { width: 100%; height: 340px; }

#cx-items { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: flex-end; justify-content: center; overflow-x: auto; }
.cx-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.75rem; color: #c8c8c8; }
.cx-item .cx-svg { max-width: none; }
#cx-ruler { margin-top: 14px; overflow-x: auto; }
#cx-ruler .cx-svg { max-width: none; height: 34px; }
.r-line { stroke: #fff; stroke-width: 1; }
.cx-cal { margin: 12px 0; font-size: 0.92rem; }
.cx-cal summary { cursor: pointer; color: var(--link); }
#cx-card { display: flex; align-items: flex-end; justify-content: center; margin: 10px 0; max-width: 100%; border: 2px solid #ff6a2b; border-radius: 12px; color: var(--muted); font-size: 0.8rem; padding-bottom: 6px; }

.cx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 16px; margin-top: 14px; }
.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px 16px; margin-top: 14px; }
.cx-group, .cx-trap { padding: 12px 14px; border-radius: 6px; background: var(--tag); border-left: 4px solid var(--muted); font-size: 0.92rem; scroll-margin-top: 12px; }
.cx-group.ok { border-left-color: var(--ok); }
.cx-group.warn { border-left-color: var(--warn); }
.cx-group.stop { border-left-color: var(--bad); }
.cx-trap { border-left-color: var(--bad); }
.cx-trap:target { outline: 2px solid #ff6a2b; }
.cx-group h3 small { font-weight: 400; color: var(--muted); }
.cx-members { font: 0.8rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.cx-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 0.85rem; }
.cx-conflicts { padding-left: 20px; }
.cx-conflicts li { margin: 6px 0; }
.cx-credits { padding-left: 20px; }
#notes h3 { margin-top: 20px; }

#cx-box { max-width: 96vw; max-height: 96vh; padding: 12px; border: 0; border-radius: 10px; background: #000; color: #fff; }
#cx-box::backdrop { background: rgba(0, 0, 0, 0.85); }
#cx-box img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 6px auto 0; }
#cx-box form { text-align: right; }
#cx-box button { font: 1.3rem/1 system-ui, sans-serif; padding: 4px 12px; border: 1px solid #5a5a5a; border-radius: 6px; background: #1d1d1d; color: #fff; cursor: pointer; }
#cx-prev, #cx-next { position: absolute; top: 50%; }
#cx-prev { left: 12px; }
#cx-next { right: 12px; }
#cx-box-cap { margin: 8px 0 0; font-size: 0.85rem; color: #c8c8c8; }
#cx-box-cap a { color: #7db3ff; }

@media (max-width: 760px) {
  .cx-mate-grid, .cx-more { grid-template-columns: minmax(0, 1fr); }
  .cx-m { display: none; }
  .cx-tag { white-space: normal; }
  .cx-num { white-space: normal; }
  .cx-table { table-layout: fixed; }
  .cx-table thead th { white-space: normal; }
  .cx-table thead th:nth-child(1), .cx-table thead th:nth-child(4) { width: 33%; }
  .cx-table thead th:nth-child(2), .cx-table thead th:nth-child(5) { width: 17%; }
}
@media print {
  header.site, footer.site, nav.toc, .cx-hero, #lookup, #mate, #fit, #photos, .cx-controls, .cx-cal, .cx-more-media, .cx-actions, #cx-box { display: none !important; }
  .cx-panel { background: #fff; color: #000; border: 1px solid #000; }
  .cx-panel figcaption, .cx-item { color: #000; }
  .s-top, .s-metal, .s-plug { fill: #dee3e8; stroke: #000; }
  .s-bore, .s-board, .s-ins, .s-cable { fill: #fff; stroke: #000; }
  .s-pin { fill: #000; stroke: #000; }
  .s-land, .r-line { stroke: #000; }
  .cx-svg text { fill: #000; }
  .cx-table tbody[hidden] { display: table-row-group !important; }
  .cx-more-row[hidden] { display: table-row !important; }
  .cx-more { display: block; }
  tbody, .cx-group, .cx-trap { break-inside: avoid; }
}
