/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:          #fbfbfd;
  --surface:     #ffffff;
  --border:      #e4e4eb;
  --text:        #18181b;
  --text-mid:    #52525b;
  --text-dim:    #a1a1aa;
  --accent:      #6366f1;
  --accent-hover:#818cf8;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --radius:      14px;
  --radius-sm:   10px;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    linear-gradient(90deg, #ffffff 0%, #fdfdfe 25%, #fafafc 50%, #f5f5f9 75%, #f0f0f5 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-mid);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--text);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  transition: opacity 0.15s;
}

.nav-cta:hover { opacity: 0.85; }

/* ── Decorative orbs ──────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -160px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  animation: orbDrift 22s ease-in-out infinite alternate;
}

.orb-2 {
  width: 460px;
  height: 460px;
  top: 30%;
  right: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  animation: orbDrift 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: 35%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  animation: orbDrift 30s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-20px, 30px) scale(0.97); }
}

/* Make sure all content sits above orbs */
.nav, .hero, .section, .page-footer, .modal-backdrop {
  position: relative;
  z-index: 1;
}
.nav { z-index: 100; }
.modal-backdrop { z-index: 200; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 88px 24px 64px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  animation: fadeUp 0.7s 0.05s ease both;
}

.hero-sub {
  animation: fadeUp 0.7s 0.15s ease both;
}

.cta-buttons {
  animation: fadeUp 0.7s 0.25s ease both;
}

.value-cards {
  animation: fadeUp 0.7s 0.35s ease both;
}

.hero-accent {
  background: linear-gradient(120deg, #4338ca 0%, #6366f1 50%, #3b82f6 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  max-width: 820px;
  text-align: center;
}

.hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(17px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ── CTA Buttons ──────────────────────────────────────────── */
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

/* ── Value Cards ──────────────────────────────────────────── */
.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(99, 102, 241, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(99, 102, 241, 0.35);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.value-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.value-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
}

.value-card p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-mid);
}

/* ── Section blocks ───────────────────────────────────────── */
.section {
  padding: 40px 24px 60px;
  display: flex;
  justify-content: center;
}

.section-inner {
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.section-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ── Field pills ──────────────────────────────────────────── */
.field-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.field-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.15s;
}

.field-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

/* ── Contact form ─────────────────────────────────────────── */
.contact-section {
  padding-bottom: 80px;
}

.contact-inner {
  max-width: 540px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-top: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-submit {
  margin-top: 4px;
  padding: 12px 24px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  align-self: flex-start;
}

.contact-submit:hover { opacity: 0.85; }

/* ── How partnerships work ────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.how-section .section-inner {
  max-width: 1080px;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 12px;
  text-align: left;
}

.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.how-step:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -20px rgba(99, 102, 241, 0.3);
}

.how-step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.how-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
}

.how-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(20, 20, 30, 0.3);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 22px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Page footer ──────────────────────────────────────────── */
.page-footer {
  position: fixed;
  bottom: 16px;
  right: 20px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 50;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-section {
  margin-bottom: 60px;
  text-align: left;
}

.how-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ── Contact Section ──────────────────────────────────────── */
/* ── Docs Layout ──────────────────────────────────────────── */
.docs-layout {
  display: flex;
  padding-top: 56px;
  min-height: 100vh;
}

.docs-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  background: var(--bg);
}

.docs-sidebar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding: 0 8px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-item {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-mid);
  border-radius: 6px;
  transition: all 0.15s;
}

.docs-nav-item:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.docs-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.docs-main {
  flex: 1;
  margin-left: 200px;
  padding: 40px 48px;
}

.doc-section {
  display: none;
}

.doc-section.active {
  display: block;
}

.placeholder-text {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Example steps ────────────────────────────────────────── */
.example-task-header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.example-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.example-step-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 10px;
}

.example-step-rubric {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.example-step-simple {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.example-step-simple:last-of-type {
  border-bottom: none;
}

/* ── Instruction blocks ───────────────────────────────────── */
.doc-section h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.doc-section > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.instruction-block {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.instruction-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.instruction-body h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.instruction-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.instruction-body ul {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 12px;
  padding-left: 20px;
}

.instruction-body li {
  margin-bottom: 6px;
}

.see-example-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 4px;
  float: right;
  transition: opacity 0.15s;
}

.see-example-link:hover {
  opacity: 0.7;
}

/* ── Overview split layout ────────────────────────────────── */
.overview-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.overview-right {
  position: sticky;
  top: 80px;
}

.output-format-sticky {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

.output-format-sticky h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fmt-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}

.fmt-key {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 110px;
  flex-shrink: 0;
}

.fmt-val {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.format-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.fmt-spacer {
  height: 10px;
}

.doc-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin: 20px 0;
}

.doc-callout.warn {
  background: rgba(239, 68, 68, 0.06);
  border-left-color: #ef4444;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}

.doc-table th, .doc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.doc-table th {
  font-weight: 600;
  color: var(--text);
}

.doc-table td {
  color: var(--text-mid);
}

.doc-code {
  background: #f4f4f8;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin: 16px 0;
  overflow-x: auto;
}

.doc-code pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  white-space: pre;
}

.example-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.example-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.example-card p {
  font-size: 13px;
  margin-bottom: 4px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
  /* Nav — logo + contact only */
  .nav-inner {
    padding: 0 16px;
    height: 48px;
  }
  .nav-logo {
    font-size: 14px;
    gap: 8px;
  }
  .logo-icon {
    width: 22px;
    height: 22px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .nav-cta {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Hero */
  .hero {
    padding: 80px 16px 48px;
    min-height: 100vh;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 32px;
  }
  .btn-primary, .btn-secondary {
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }
  .value-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
  }
  .value-card {
    padding: 18px 16px;
  }
  .value-card h3 {
    white-space: normal;
  }

  /* Section / contact */
  .section {
    padding: 32px 16px 48px;
  }
  .section h2 {
    font-size: 18px;
  }
  .section-sub {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }
  .contact-submit {
    align-self: stretch;
  }

  /* How partnerships work — stack vertically with down arrows */
  .how-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .how-step-arrow {
    transform: rotate(90deg);
    height: 24px;
  }
  .hero-eyebrow,
  .section-eyebrow {
    font-size: 10px;
    padding: 5px 11px;
  }
  .orb {
    filter: blur(60px);
  }
  .orb-1 { width: 320px; height: 320px; }
  .orb-2 { width: 300px; height: 300px; }
  .orb-3 { width: 260px; height: 260px; }

  /* Modal */
  .modal {
    padding: 28px 20px 24px;
  }
  .modal-title {
    font-size: 18px;
  }
  .modal-sub {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .field-pill {
    font-size: 12px;
    padding: 7px 12px;
  }

  /* Page footer */
  .page-footer {
    bottom: 10px;
    right: 14px;
    font-size: 11px;
  }

  /* Docs — kill the fixed sidebar, make horizontal tabs */
  .docs-layout {
    flex-direction: column;
    padding-top: 48px;
  }
  .docs-sidebar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
  }
  .docs-sidebar-title {
    margin-bottom: 0;
    padding: 0;
    white-space: nowrap;
  }
  .docs-nav {
    flex-direction: row;
    gap: 4px;
  }
  .docs-nav-item {
    white-space: nowrap;
    padding: 6px 12px;
  }
  .docs-main {
    margin-left: 0 !important;
    padding: 20px 16px;
  }

  /* Instruction blocks */
  .instruction-block {
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    margin-bottom: 16px;
  }
  .instruction-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .instruction-body h2 {
    font-size: 15px;
  }
  .instruction-body p {
    font-size: 13px;
  }

  /* Overview split — single column */
  .overview-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .overview-right {
    position: static;
  }
  .output-format-sticky {
    padding: 18px 16px;
  }

  /* Doc section headings */
  .doc-section h1 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  .doc-section > p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  /* Example steps */
  .example-task-header {
    font-size: 13px;
    padding: 12px 14px;
    flex-direction: column;
    gap: 6px;
  }
  .example-step-simple {
    font-size: 13px;
    flex-direction: column;
    gap: 4px;
  }
  .example-step {
    padding: 12px 14px;
  }
  .example-step-head {
    font-size: 13px;
    flex-direction: column;
    gap: 4px;
  }
  .example-step-rubric {
    font-size: 12px;
    flex-direction: column;
    gap: 4px;
  }
}
