/* Groundcrew edition: the primer in the design system of groundcrewrobotics.com (13 Oct 2026).
   Pale cool canvas, near-white surfaces, navy-black ink, one orange. Loaded after primer.css.
   The tokens are marked !important so they win over both of primer.css's themes; the public
   edition has one theme. Drawing labels keep the primer's own condensed face, because the
   figures were laid out for its widths. */

@font-face { font-family: "Bricolage Grotesque"; src: url("BricolageGrotesque-var.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("InstrumentSans-var.woff2") format("woff2"); font-weight: 400 600; font-stretch: 75% 100%; font-display: swap; }

:root {
  --paper: #F2F4F7 !important;
  --paper-2: #FBFCFD !important;
  --paper-3: #E7EBF1 !important;
  --ink: #0F1622 !important;
  --ink-2: #2B3543 !important;
  --ink-3: #566070 !important;
  --rule: rgba(15, 22, 34, .2) !important;
  --rule-2: rgba(15, 22, 34, .1) !important;
  --grid: rgba(15, 22, 34, .05) !important;
  --grid-2: rgba(15, 22, 34, .1) !important;
  --accent: #F26B1D !important;
  --accent-ink: #C2410C !important;
  --accent-soft: rgba(242, 107, 29, .12) !important;
  --flow: #1F4E8C !important;
  --flow-soft: rgba(31, 78, 140, .14) !important;
  --ok: #2F6B3A !important;
  --bad: #9B2C2C !important;
  --scrim: rgba(15, 22, 34, .45) !important;
  --font-body: "Instrument Sans", "Noto Sans SC", system-ui, sans-serif !important;
  --font-ui: "Instrument Sans", "Noto Sans SC", system-ui, sans-serif !important;
  --font-head: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --r: 8px !important;
  --topbar: 64px !important;
  --glow-soft: transparent;
  --iso-top: 0% !important; --iso-s3: 3% !important; --iso-s2: 6% !important; --iso-s1: 9.5% !important; --iso-s0: 14% !important;
  --iso-lit-top: 5% !important; --iso-lit-s3: 12% !important; --iso-lit-s2: 18% !important; --iso-lit-s1: 25% !important; --iso-lit-s0: 33% !important;
  color-scheme: light;
}

body { background: var(--paper); font-size: 1.02rem; }

h1, h2, h3, .chapter-title, .hero-title { font-family: var(--font-head); font-weight: 600; letter-spacing: -.015em; }
.chapter-title, .hero-title { color: var(--ink); text-shadow: none; }
.hero-title .acc-word { color: var(--accent-ink); text-shadow: none; }

.btn { background: var(--ink); border-color: var(--ink); color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: .9rem; letter-spacing: 0; text-transform: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .28); }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn.ghost { background: var(--paper-2); border-color: var(--rule); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--paper-3); color: var(--ink); }

/* Site header: always visible, the same bar as the rest of the site. */
.topbar { display: flex !important; background: rgba(251, 252, 253, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule-2); }

.gc-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; text-transform: none; color: var(--ink); text-shadow: none; }
.gc-brand:hover { color: var(--accent-ink); }
.gc-brand b { font-weight: 700; font-size: 1.3rem; }
.gc-mark { width: 28px; height: 28px; display: block; color: var(--accent); }
.gc-crumbs { display: flex; align-items: center; gap: 8px; margin-left: 18px; font-family: var(--font-ui); font-size: .86rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; min-width: 0; overflow: hidden; }
.gc-crumbs a { color: var(--ink-2); text-decoration: none; }
.gc-crumbs a:hover { color: var(--accent-ink); }
.sidebar-foot .gc-back { width: 100%; color: var(--accent-ink); text-decoration: none; }
.sidebar-foot .gc-back:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .gc-crumbs { display: none; }
}
@media (max-width: 420px) {
  .menu-btn span, .topbar-sheet { display: none; }
}
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .layout { padding-top: var(--topbar) !important; }
  .sidebar { top: var(--topbar); }
  .sidebar-head .brand { font-size: .85rem; }
}
