/* Shared shell for the developer pages (api.html, tokens.html). Self-contained:
 * these pages do not depend on the app stylesheet. Theme via [data-theme]. */
:root[data-theme="light"] {
  --text: #221a10; --muted: #6e6152; --surface: #ffffff; --surface-2: #f6f1ea; --surface-3: #f1eae0;
  --border: #e5dccd; --border-strong: #d5c9b4; --accent: #b4530a; --accent-2: #d97e2a;
  --accent-weak: #f9ede0; --accent-border: #ecd3b8; --good: #2e7d43; --warn: #a05a00;
  --radius: 12px; --shadow: 0 1px 3px rgba(60, 40, 10, 0.07);
}
:root[data-theme="dark"] {
  --text: #f0e8dc; --muted: #a99a86; --surface: #201a12; --surface-2: #2a2318; --surface-3: #332b1e;
  --border: #3d3423; --border-strong: #4d4230; --accent: #e89b52; --accent-2: #d97e2a;
  --accent-weak: #33261564; --accent-border: #5a4629; --good: #6fbf85; --warn: #d9a05b;
  --radius: 12px; --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface-2); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
.hidden { display: none !important; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; font-size: 15px; }
.account { display: flex; gap: 8px; }
.linkbtn, .ghostbtn {
  display: inline-block; padding: 6px 13px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  text-decoration: none;
}
.linkbtn:hover, .ghostbtn:hover { border-color: var(--accent); color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 30px 20px 60px; }
.hero h1 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 8px; letter-spacing: -0.4px; }
.hero .lede { color: var(--muted); font-size: 15px; margin: 0; max-width: 640px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 880px; margin: 0 auto; padding: 18px 20px 40px; color: var(--muted); font-size: 13px;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
