/* Gimmee DataGrab dev docs — professional light theme */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --text: #1a1a1a;
  --text-muted: #5c6370;
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --border: #e1e4e8;
  --border-strong: #d0d7de;
  --accent: #0b5fff;
  --code-text: #1f2328;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Center the content column. The doc HTML is a bare fragment, so we style
   body's direct children rather than relying on a wrapper element. */
body {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

@media (max-width: 600px) {
  body {
    padding: 40px 20px 80px;
    font-size: 15px;
  }
}

/* --- Headings --- */

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.011em;
  margin: 2.2em 0 0.7em;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.4rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.12rem;
}

/* --- Text --- */

p {
  margin: 0 0 1.05em;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* --- Blockquote (the "For AI assistants" callout) --- */

blockquote {
  margin: 1.5em 0;
  padding: 12px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--text-muted);
}

blockquote p {
  margin: 0.4em 0;
}

blockquote strong {
  color: var(--text);
}

/* --- Lists --- */

ul,
ol {
  margin: 0 0 1.05em;
  padding-left: 1.6em;
}

li {
  margin: 0.35em 0;
}

li::marker {
  color: var(--text-muted);
}

/* --- Code --- */

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-subtle);
  color: var(--code-text);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 1.4em;
  line-height: 1.55;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.83rem;
  color: var(--code-text);
}

/* --- Tables --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: 0.92rem;
}

thead th {
  text-align: left;
  font-weight: 600;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-strong);
}

th,
td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: #fbfcfd;
}

td code {
  white-space: nowrap;
}
