/* Seekmodo connector documentation — Concept 4 brand tokens */
:root {
  --color-charcoal: #111827;
  --color-emerald: #10b981;
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-700: #047857;
  --color-aqua: #06b6d4;
  --color-aqua-50: #ecfeff;
  --color-aqua-100: #cffafe;
  --color-aqua-700: #0e7490;
  --color-light-aqua: #99f6e4;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-surface: #ffffff;
  --color-surface-muted: #f8fafc;
  --gradient-brand: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-aqua) 100%);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
  --max-width: 52rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-surface-muted);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-aqua-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  background: var(--color-emerald-50);
  color: var(--color-emerald-700);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

pre {
  background: var(--color-charcoal);
  color: #f1f5f9;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
  margin: 1rem 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Header */
.doc-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.doc-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.doc-logo img {
  height: 2.75rem;
  width: auto;
  display: block;
}

.doc-title-block {
  flex: 1;
  min-width: 12rem;
}

.doc-title-block h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-title-block h1 .gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-subtitle {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.doc-version-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-emerald-700);
  background: var(--color-emerald-50);
  border: 1px solid var(--color-emerald-100);
  border-radius: 9999px;
}

/* Nav */
.doc-nav-wrap {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.doc-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doc-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-charcoal);
}

.doc-nav-panel {
  flex: 1;
  overflow-x: auto;
}

.doc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.doc-nav a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.doc-nav a:hover {
  color: var(--color-charcoal);
  text-decoration: none;
}

.doc-nav a.active {
  color: var(--color-emerald-700);
  border-bottom-color: var(--color-emerald);
}

/* Main content */
.doc-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.doc-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 0;
}

.doc-section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-emerald-100);
}

.doc-section h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.doc-section h3:first-of-type {
  margin-top: 0;
}

.doc-section p {
  margin: 0 0 1rem;
}

.doc-section ul,
.doc-section ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.doc-section li {
  margin-bottom: 0.35rem;
}

.doc-section li:last-child {
  margin-bottom: 0;
}

/* Tables */
.doc-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

.doc-table th {
  background: var(--color-surface-muted);
  font-weight: 600;
  color: var(--color-charcoal);
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table td:first-child {
  font-weight: 500;
}

/* Steps */
.doc-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  counter-reset: step;
}

.doc-steps > li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  counter-increment: step;
}

.doc-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: 9999px;
}

.doc-step-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.doc-step-body {
  margin: 0;
  color: var(--color-charcoal);
}

.doc-step-body p {
  margin: 0 0 0.5rem;
}

/* Callouts */
.doc-callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0 1.25rem;
  border-left: 4px solid;
  font-size: 0.9375rem;
}

.doc-callout-info {
  background: var(--color-aqua-50);
  border-color: var(--color-aqua);
}

.doc-callout-warning {
  background: #fffbeb;
  border-color: #f59e0b;
}

.doc-callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Support grid */
.doc-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.doc-support-card {
  display: block;
  padding: 1rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.doc-support-card:hover {
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.doc-support-card strong {
  display: block;
  font-size: 0.875rem;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.doc-support-card span {
  font-size: 0.8125rem;
  color: var(--color-muted);
  word-break: break-all;
}

/* Footer */
.doc-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.doc-footer a {
  color: var(--color-muted);
}

.doc-footer-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .doc-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .doc-nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
  }

  .doc-nav-panel.is-open {
    display: block;
  }

  .doc-nav-wrap {
    position: relative;
  }

  .doc-nav ul {
    flex-direction: column;
    padding: 0.5rem 1rem;
  }

  .doc-nav a {
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 0.75rem 1rem;
  }

  .doc-nav a.active {
    border-left-color: var(--color-emerald);
    background: var(--color-emerald-50);
  }

  .doc-section {
    padding: 1.25rem;
  }
}

/* Print — expand all sections */
@media print {
  .doc-nav-wrap,
  .doc-nav-toggle {
    display: none !important;
  }

  .doc-section {
    display: block !important;
    page-break-inside: avoid;
    box-shadow: none;
    margin-bottom: 1.5rem;
  }

  body {
    background: #fff;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    color: var(--color-muted);
  }
}
