/* /gears/ : intro around the 3D stack. The stack itself is in /assets/js/gears/gears.css. */
.gh-crumb { display: flex; gap: 8px; font-size: 14px; color: var(--fg2); }
.gh-crumb a { color: var(--link); text-decoration: none; }
.gh-crumb a:hover { text-decoration: underline; }
.page-hero p { max-width: 44em; color: var(--fg2); font-size: var(--lede-size); line-height: 1.5; margin: 0; }
.gh-actions { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 20px; }

.gh-explain { padding: 64px 0; border-bottom: 1px solid var(--border); }
.gh-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.gh-lead h2 { font-size: var(--h2); font-weight: 300; line-height: 1.15; margin: 0 0 20px; }
.gh-lead p { font-size: 16px; line-height: 1.6; color: var(--fg2); margin: 0 0 14px; }
.gh-lead b { color: var(--fg); font-weight: 600; }
.gh-small { font-size: 14px !important; }
.gh-example {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 18px; padding: 16px;
  background: var(--layer); border-left: 3px solid #4589ff;
}
.gh-example > div { display: grid; gap: 6px; }
.gh-example svg { color: var(--fg2); }
.gh-k { font-size: 12px; letter-spacing: .32px; color: var(--fg2); }
.gh-example code { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--fg); }
.gh-lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.gh-lanes li { display: flex; gap: 14px; padding: 24px; background: var(--bg, #fff); min-height: 168px; }
:root[data-theme="dark"] .gh-lanes li { background: #161616; }
.gh-sw { flex: none; width: 14px; height: 14px; margin-top: 6px; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.gh-lanes h3 { font-size: 20px; font-weight: 400; margin: 0 0 8px; }
.gh-lanes p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg2); }
.gh-lanes code { font-family: 'IBM Plex Mono', monospace; font-size: 13px; background: var(--layer); padding: 1px 4px; }
.gh-how { background: var(--layer) !important; }
.gh-source { margin: 28px 0 0; font-size: 13px; color: var(--fg2); font-family: 'IBM Plex Mono', monospace; }

@media (max-width: 960px) {
  .gh-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .gh-explain { padding: 40px 0; }
  .gh-lanes { grid-template-columns: 1fr; }
  .gh-lanes li { min-height: 0; padding: 20px 16px; }
  .gh-actions .btn { width: 100%; }
}

/* Sticky stage: a scroll container on <body> (overflow-x: hidden) would break position: sticky.
   clip cuts the same overflow without making a scroll container. */
html, body { overflow-x: clip !important; }
body { overflow-y: visible !important; }
.gh-app { margin: 48px 0 0; }
