/* The guide pages (/guide, /guide/arm, /guide/arm/troubleshooting).
   Tokens and the footer are home.html's own (same hex values, same three
   families, same radii); the nav is site-nav.css, linked beside this file.
   Everything named g-* is new for the guide pages. The pages are written out
   by a build script that cuts every command out of the Lucen SDK's
   docs/lerobot.md; edit the HTML by hand only for wording. */


:root {
  --bg: #FFFFFF;
  --soft: #F4F5F7;
  --soft-2: #ECEEF1;
  --ink: #0B0C0E;
  --ink-2: #3A3D42;
  --mute: #6E7178;
  --faint: #A3A6AD;
  --line: rgba(11, 12, 14, 0.09);
  --line-strong: rgba(11, 12, 14, 0.18);
  --steel: #4C6485;
  --live: #E5484D;
  --radius: 22px;
  --font-display: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rail: 264px;          /* the left column every section shares */
  --gap: 48px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }   /* home.html's: keeps the empty cart link out of the nav */
a { color: inherit; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

/* ---------- page head ---------- */
.g-top { padding: 44px 0 0; }
.g-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 44px; min-height: 31.05px; }   /* the artboards' height, from the draft pill that stood here */
.g-crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.g-crumb a { text-decoration: none; }
.g-crumb a:hover { color: var(--ink); }
.g-crumb i { font-style: normal; color: var(--faint); margin: 0 10px; }
.g-crumb b { font-weight: 400; color: var(--ink); }

.g-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.g-hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 5.5vw, 80px);
  letter-spacing: -0.045em; line-height: .96; margin-bottom: 26px;
}
.g-lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.g-lead a, .g-body a, .g-fix a, .g-end a, .g-hero .g-warn a, .g-hero .g-facts a { color: var(--steel); text-decoration: none; border-bottom: 1px solid rgba(76, 100, 133, 0.35); transition: color .2s, border-color .2s; }
.g-lead a:hover, .g-body a:hover, .g-fix a:hover, .g-end a:hover, .g-hero .g-warn a:hover, .g-hero .g-facts a:hover { color: #2F4566; border-color: #2F4566; }

/* plain label / value rows: the product page's spec list */
.g-facts { margin-top: 36px; }
.g-facts > div { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.g-facts > div:last-child { border-bottom: 1px solid var(--line); }
.g-facts dt { color: var(--mute); }
.g-facts dd { color: var(--ink); }
.g-facts dd small { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }

/* the two arms */
.g-arms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-arm .pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.g-arm img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: 50% 54%; }   /* the product renders leave a wide margin */
.g-arm figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.g-arm figcaption b { font-size: 17px; font-weight: 600; }
.g-arm figcaption span { font-size: 14px; color: var(--mute); max-width: 30ch; }

/* a notice that must not be missed: the site's "camera not included" row */
.g-warn {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 680px;
}
.g-warn::before {
  content: '!'; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.g-hero .g-warn { margin-top: 28px; }
.g-hero .g-facts { margin-top: 28px; }
/* a tip: a rule down the side, nothing else */
.g-tip { padding: 1px 0 1px 18px; border-left: 2px solid var(--steel); font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 680px; }
.g-tip b, .g-warn b { font-weight: 600; color: var(--ink); }

/* is the hardware live? the site's red "real footage" dot means the motors are on */
.g-state { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.g-state::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--faint); }
.g-state.on { color: var(--ink-2); }
.g-state.on::before { border: 0; background: var(--live); box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }

/* the seven steps, in one line */
.g-route { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.g-route ol { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.g-route li { border-left: 1px solid var(--line); }
.g-route li:first-child { border-left: 0; }
.g-route a { display: block; height: 100%; padding: 22px 16px 24px 20px; text-decoration: none; transition: background .2s; }
.g-route li:first-child a { padding-left: 0; }
.g-route a:hover { background: var(--soft); }
.g-route .n { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.g-route .n i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--faint); }
.g-route .n i.on { border: 0; background: var(--live); box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }
.g-route .t { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.g-key { display: flex; justify-content: flex-end; gap: 24px; padding: 12px 0 0; }

/* ---------- the ledger: one grid for every section ---------- */
.g-main { padding: 28px 0 0; }
.g-row { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--gap); padding: 72px 0; border-top: 1px solid var(--line); }
.g-row.first { border-top: 0; }
.g-head { align-self: start; position: sticky; top: 104px; }
.g-head h2 { position: relative; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; scroll-margin-top: 104px; }
.g-head .g-n { position: absolute; left: -38px; top: 0; color: #8A8D94; }   /* the number hangs outside the column */
.g-head .g-when { margin-top: 10px; font-size: 14px; color: var(--mute); }
.g-head .g-state { margin-top: 18px; }

.g-body > * + * { margin-top: 22px; }
.g-body p { color: var(--ink-2); max-width: 680px; }
.g-body p.g-do { font-size: 20px; line-height: 1.45; font-weight: 500; letter-spacing: -0.012em; color: var(--ink); max-width: 36em; }
.g-body p.g-do + * { margin-top: 26px; }
.g-body p.g-warn, .g-body p.g-tip { color: var(--ink); }
.g-body p.g-tip { color: var(--ink-2); }
.g-body h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.g-body * + h3 { margin-top: 48px; }
.g-body h3 small { font-family: var(--font-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--mute); margin-left: 10px; }
.g-body code, .g-fix code, .g-why code, .g-sym code { font-family: var(--font-mono); font-size: .86em; color: var(--ink); background: var(--soft); border-radius: 5px; padding: 2px 5px; white-space: nowrap; font-variant-ligatures: none; }
.g-body strong { font-weight: 600; color: var(--ink); }
.g-body ul.g-pts { list-style: none; max-width: 680px; }
.g-body ul.g-pts li { position: relative; padding-left: 20px; color: var(--ink-2); }
.g-body ul.g-pts li + li { margin-top: 10px; }
.g-body ul.g-pts li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--steel); opacity: .55; }

/* ---------- command blocks: light, never a dark band ---------- */
.g-code { display: flow-root; background: var(--soft); border-radius: 14px; }
.g-code pre { padding: 17px 20px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: var(--ink); font-variant-ligatures: none; }
.g-code code { font: inherit; background: none; padding: 0; border-radius: 0; }
/* one source line per row; a line too long for the column wraps with a hanging indent */
.g-code .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: calc(var(--i, 0) * 1ch + 2ch); text-indent: calc(var(--i, 0) * -1ch - 2ch); }
.g-code .w { white-space: nowrap; }                                          /* a flag never breaks in the middle */
.g-code .c { color: #62656C; white-space: normal; margin-left: 1ch; }          /* the guide pads comments into a column; here they follow the command */
.g-code .v { color: var(--steel); font-weight: 500; }
.g-code .ph { border-bottom: 1px dashed var(--faint); }
.g-copy {
  float: right; margin: 9px 9px 0 14px; appearance: none; cursor: pointer;     /* floated: only the first line gives it room */
  font-family: var(--font-sans); font-size: 12px; line-height: 18px; font-weight: 500; color: var(--mute);
  background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 4px 10px; transition: color .2s, border-color .2s, background .2s;
}
.g-copy:hover { color: var(--ink); border-color: var(--line-strong); background: #fff; }

/* follower / leader sub-steps */
.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-sub h4 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.g-sub h4 small { font-size: 13px; font-weight: 400; color: var(--mute); }

/* the stowed pose: the site's photo of the real arm folded, beside the four points */
.g-pose { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.g-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.g-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.g-pose ol { list-style: none; counter-reset: p; }
.g-pose li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: 4px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.g-pose li:last-child { border-bottom: 1px solid var(--line); }
.g-pose li::before { content: counter(p); font-family: var(--font-mono); font-size: 12px; color: var(--mute); padding-top: 2px; }
.g-pose p { margin-top: 16px; font-size: 14px; color: var(--mute); }

/* how the pieces fit */
.g-wire { display: flex; align-items: flex-start; gap: 16px; padding: 4px 0 6px; }
.g-node { flex: none; }
.g-node b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; }
.g-node b.m { font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.g-node span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--mute); }
.g-link { flex: 1 1 40px; min-width: 40px; position: relative; height: 24px; }
.g-link::before { content: ''; position: absolute; left: 0; right: 2px; top: 12px; border-top: 1px solid var(--line-strong); }
.g-link::after { content: ''; position: absolute; right: 2px; top: 8.5px; width: 7px; height: 7px; border-top: 1px solid var(--mute); border-right: 1px solid var(--mute); transform: rotate(45deg); }
.g-link i { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: #fff; padding: 0 6px; white-space: nowrap; }

/* small tables */
.g-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.g-tbl th { text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0 24px 12px 0; }
.g-tbl td { vertical-align: top; padding: 14px 24px 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.g-tbl tr:last-child td { border-bottom: 1px solid var(--line); }
.g-tbl td:last-child, .g-tbl th:last-child { padding-right: 0; }
.g-tbl td.is { color: var(--ink); }
.g-tbl.cmp td { width: 50%; }
.g-keys td:first-child { width: 64px; }
kbd { font-variant-ligatures: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 7px; background: #fff; }

/* detail a first read can skip: the homepage FAQ's rows */
.g-more details { border-bottom: 1px solid var(--line); }
.g-more details:first-child { border-top: 1px solid var(--line); }
.g-more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.g-more summary::-webkit-details-marker { display: none; }
.g-more summary::after { content: '+'; flex: none; font-family: var(--font-mono); font-weight: 400; color: var(--mute); transition: transform .3s var(--ease); }
.g-more details[open] summary::after { transform: rotate(45deg); }
.g-more .in { padding: 0 0 22px; }
.g-more .in > * + * { margin-top: 14px; }
.g-more .in p { font-size: 15px; }

/* the way out */
.g-end { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--gap); padding: 72px 0 120px; border-top: 1px solid var(--line); }
.g-end h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.g-end p { color: var(--ink-2); max-width: 60ch; }
.g-end p + p { margin-top: 14px; }
.g-end .g-go { display: inline-flex; align-items: center; margin-top: 26px; font-size: 15px; font-weight: 500; text-decoration: none; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: background .25s; }
.g-end .g-go:hover { background: #2A2D33; color: #fff; border-color: #2A2D33; }

/* ---------- troubleshooting ---------- */
.g-hero.ts { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; padding-bottom: 72px; }
.g-hero.ts h1 { margin-bottom: 22px; }
.g-jump { border-top: 1px solid var(--line); }
.g-jump a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px; font-weight: 500; transition: color .2s; }
.g-jump a:hover { color: var(--steel); }
.g-jump a span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--mute); }

.g-cols { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.8fr) minmax(0, 1.28fr); column-gap: 48px; }
.g-thead { position: sticky; top: 76px; z-index: 5; background: #fff; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 13px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.g-group { padding-top: 56px; scroll-margin-top: 110px; }
.g-group h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; padding-bottom: 20px; }
.g-group h2 small { font-family: var(--font-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--mute); margin-left: 12px; }
.g-case { padding: 24px 0 26px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.g-sym { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.g-sym.log { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; font-weight: 500; letter-spacing: 0; }
.g-sym small { display: block; margin-top: 6px; font-family: var(--font-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.g-why { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.g-fix { font-size: 15px; line-height: 1.6; color: var(--ink); }
.g-fix > * + * { margin-top: 12px; }
.g-fix ol { list-style: none; counter-reset: f; }
.g-fix ol li { counter-increment: f; position: relative; padding-left: 26px; }
.g-fix ol li + li { margin-top: 6px; }
.g-fix ol li::before { content: counter(f); position: absolute; left: 0; top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.g-fix .g-code pre { padding: 12px 16px 13px; }
.g-fix .g-copy { margin: 5px 6px 0 12px; }
.g-fix > b + * { margin-top: 0; }
.g-why b, .g-fix b { display: none; }     /* column labels, shown only when the columns stack */
.g-tail { border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- the guides index ---------- */
.g-hero.solo { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
.g-hero.solo h1 { margin-bottom: 22px; }
.g-list { list-style: none; border-top: 1px solid var(--line); }
.g-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 8px; align-items: baseline; padding: 22px 0 24px; border-bottom: 1px solid var(--line); text-decoration: none; border-top: 0; color: var(--ink); }
.g-body .g-list a, .g-body .g-list a:hover { color: var(--ink); border-bottom: 1px solid var(--line); }
.g-list b { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; transition: color .2s; }
.g-list a:hover b { color: var(--steel); }
.g-list .m { font-family: var(--font-mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.g-list .m::after { content: '→'; margin-left: 10px; color: var(--ink-2); }
.g-list .d { grid-column: 1; font-size: 15px; color: var(--mute); max-width: 60ch; }

/* ---------- footer: home.html's, with the Guides column ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr .85fr 1.25fr .9fr; gap: 36px; margin-bottom: 56px; }
.foot-grid h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover, .foot-grid a[aria-current] { color: var(--ink); }
.foot-grid p { color: var(--mute); max-width: 32ch; margin-top: 16px; }
.foot-logo img { height: 38px; width: auto; }
.backed { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--mute); margin-top: 22px; white-space: nowrap; }
.backed img { width: 13px; height: 15px; }
.backed b { color: var(--ink); font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; }
/* six columns need ~1240px: below that the brand takes a row of its own, above the five link columns (as on home.html) */
@media (min-width: 901px) and (max-width: 1239px) {
  .foot-grid { grid-template-columns: 1.4fr 1.6fr 1.02fr 1.8fr 1.04fr; column-gap: 28px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .g-top { padding-top: 22px; }
  .g-bar { margin-bottom: 28px; align-items: flex-start; min-height: 27.5px; }
  .g-crumb { font-size: 11px; line-height: 1.7; }
  .g-crumb i { margin: 0 6px; }
  .g-hero, .g-hero.ts { grid-template-columns: 1fr; gap: 40px; }
  .g-hero.ts, .g-hero.solo { padding-bottom: 40px; }
  .g-hero h1 { font-size: 46px; margin-bottom: 20px; }
  .g-lead { font-size: 17px; }
  .g-facts { margin-top: 28px; }
  .g-facts > div { grid-template-columns: 96px 1fr; gap: 12px; }
  .g-arms { gap: 10px; }
  .g-arm .pic { border-radius: 16px; }
  .g-arm figcaption b { font-size: 16px; }
  .g-arm figcaption span { font-size: 13px; }

  .g-route { margin-top: 48px; }
  .g-route ol { grid-template-columns: 1fr; }
  .g-route li { border-left: 0; border-top: 1px solid var(--line); }
  .g-route li:first-child { border-top: 0; }
  .g-route a, .g-route li:first-child a { display: grid; grid-template-columns: 28px 1fr; align-items: center; padding: 13px 0; }
  .g-route .n { font-size: 20px; display: contents; }
  .g-route .n i { grid-column: 3; grid-row: 1; }
  .g-route a { grid-template-columns: 28px 1fr 12px; }
  .g-route .t { margin-top: 0; font-size: 16px; color: var(--ink); grid-column: 2; grid-row: 1; }
  .g-key { flex-direction: column; gap: 8px; }

  .g-main { padding-top: 12px; }
  .g-row, .g-end { grid-template-columns: 1fr; padding: 48px 0; }
  .g-end { padding-bottom: 80px; }
  .g-head { position: static; margin-bottom: 24px; }
  .g-head h2, .g-end h2 { font-size: 27px; }
  .g-head .g-n { position: static; margin-right: 12px; }
  .g-head .g-state { margin-top: 14px; }
  .g-end h2 { margin-bottom: 18px; }
  .g-body > * + * { margin-top: 20px; }
  .g-body p.g-do { font-size: 18px; }
  .g-body * + h3 { margin-top: 40px; }
  .g-body h3 small { display: block; margin: 4px 0 0; }

  .g-code { border-radius: 12px; }
  .g-code pre { padding: 13px 14px 14px; font-size: 12px; line-height: 1.7; }
  .g-code .w.long { white-space: inherit; }
  .g-code .nb { white-space: nowrap; }
  .g-code .c { display: block; margin-left: 0; }                         /* a trailing comment drops under its command */
  .g-copy { margin: 6px 5px 0 10px; }
  .g-fix .g-code pre { padding: 12px 14px 13px; }
  code.brk { white-space: normal !important; overflow-wrap: anywhere; }
  .g-pair, .g-pose { grid-template-columns: 1fr; }
  .g-pair { gap: 20px; }
  .g-pose { gap: 22px; }
  .g-photo { border-radius: 16px; }

  .g-wire { flex-direction: column; gap: 0; }
  .g-node span br { display: none; }
  .g-link { flex: none; width: 100%; height: 44px; min-width: 0; }
  .g-link::before { left: 7px; right: auto; top: 6px; bottom: 8px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .g-link::after { left: 3.5px; right: auto; top: auto; bottom: 8px; transform: rotate(135deg); }
  .g-link i { left: 26px; top: 14px; transform: none; padding: 0; }

  .g-tbl.cmp, .g-tbl.cmp tbody, .g-tbl.cmp tr, .g-tbl.cmp td { display: block; width: 100%; }
  .g-tbl.cmp thead { display: none; }
  .g-tbl.cmp tr { padding: 16px 0; border-top: 1px solid var(--line); }
  .g-tbl.cmp tr:last-child { border-bottom: 1px solid var(--line); }
  .g-tbl.cmp td, .g-tbl.cmp tr:last-child td { border: 0; padding: 0; }
  .g-tbl.cmp td + td { margin-top: 8px; }
  .g-tbl.cmp td::before { content: attr(data-h); display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

  .g-thead { display: none; }
  .g-cols { grid-template-columns: 1fr; row-gap: 14px; }
  .g-group { padding-top: 44px; }
  .g-group h2 { font-size: 24px; padding-bottom: 16px; }
  .g-group h2 small { display: block; margin: 4px 0 0; }
  .g-case { padding: 22px 0 24px; }
  .g-why b, .g-fix b { display: block; margin-bottom: 3px; font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .g-list b { font-size: 21px; }
  .g-list a { column-gap: 16px; }
}
@media (max-width: 600px) { .foot-bottom { flex-direction: column; } .site-nav .btn { padding: 9px 16px; } }
/* the email address is too wide for half of a very small screen (home.html) */
@media (max-width: 359px) { .foot-grid > .foot-contact { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
