/* Connect Grok guide: quiet x.ai-docs layout under the Palantir bar.
   One type scale (Geist + Geist Mono), 8px spacing rhythm, B/W/grey. */

@font-face {
  font-family: "Geist Mono";
  src: url("/public/guides/connect-grok/fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.gc-guide {
  --ink: var(--mk-ink, #111827);
  --muted: var(--mk-body, #6b7280);
  --line: var(--mk-line, #e5e7eb);
  --measure: 40rem;
  --shot: 390px;
  box-sizing: border-box;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px 20px 96px;
  color: var(--ink);
  font-family: var(--mk-font, var(--font-sans, Geist, system-ui, sans-serif));
  font-size: var(--t-body, 1rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.gc-guide *,
.gc-guide *::before,
.gc-guide *::after { box-sizing: border-box; }

.gc-guide a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.gc-guide a:hover {
  border-bottom-color: var(--ink);
}
.gc-guide a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
  border-bottom-color: transparent;
}

.gc-guide-crumb {
  margin: 0 0 32px;
  font-size: var(--t-small, 0.875rem);
  color: var(--muted);
}
.gc-guide-crumb a {
  color: var(--muted);
  border-bottom-color: transparent;
}
.gc-guide-crumb a:hover,
.gc-guide-crumb a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.gc-guide .eyebrow {
  margin: 0 0 16px;
  font-size: var(--t-label, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gc-guide h1 {
  margin: 0;
  max-width: 18ch;
  font-family: inherit;
  font-size: var(--t-h1, clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem));
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--ink);
}
.gc-guide .subtitle {
  margin: 16px 0 0;
  font-size: var(--t-small, 0.875rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}
.gc-guide .intro {
  margin: 24px 0 0;
  max-width: 36rem;
  font-size: var(--t-lede, 1.125rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gc-guide code {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  font-weight: 400;
  background: #f4f4f3;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  word-break: break-word;
}
.gc-guide strong { font-weight: 600; }

.gc-guide-video,
.gc-guide .shot {
  width: 100%;
  max-width: var(--shot);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.gc-guide-video {
  display: block;
  margin: 32px 0 0;
  aspect-ratio: 1080 / 1920;
  height: auto;
  background: #111;
}
.gc-guide-tools {
  margin: 16px 0 0;
  font-size: var(--t-small, 0.875rem);
  font-weight: 500;
}

.gc-guide .title-block { margin: 0 0 64px; }
.gc-guide .steps-row {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.gc-guide .step { margin: 0; padding: 0; border: 0; }
.gc-guide .step-kicker { margin: 0 0 8px; }
.gc-guide .num {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-label, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gc-guide .caption {
  margin: 0 0 16px;
  font-size: var(--t-body, 1rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  max-width: 36rem;
}
.gc-guide .shot { margin: 0; }
.gc-guide .shot-tall { aspect-ratio: 1500 / 3252; }
.gc-guide .shot-wide { aspect-ratio: 1500 / 735; }
.gc-guide .shot img {
  display: block;
  width: 100%;
  height: auto;
}
.gc-guide .end-note {
  margin: 80px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-small, 0.875rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}

.gc-guide-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.gc-guide-list li { border-bottom: 1px solid var(--line); }
.gc-guide-list a {
  display: block;
  padding: 24px 0;
  border-bottom: 0;
  font-size: var(--t-lede, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.gc-guide-list a:hover,
.gc-guide-list a:focus-visible { color: var(--ink); }
.gc-guide-list .meta {
  display: block;
  margin-top: 6px;
  font-size: var(--t-small, 0.875rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

@media (min-width: 825px) {
  .gc-guide { padding: 72px 24px 128px; }
  .gc-guide .steps-row { gap: 64px; }
  .gc-guide .title-block { margin-bottom: 80px; }
}
@media (min-width: 1280px) {
  .gc-guide { --measure: 48rem; padding: 96px 32px 128px; }
  .gc-guide-video,
  .gc-guide .shot { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-guide a { transition: none; }
}
