/* docs.html — extracted from inline <style> (no nonce → blocked by CSP).
   Kept verbatim. Theme overrides live in docs-redesign.css. */

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

    body {
      font-family: 'Inter', sans-serif;
      background: #f8f8fc;
      color: #3d3d4e;
      min-height: 100vh;
    }

    /* ─── TOP BAR ─────────────────────────────────────────── */
    .top-bar {
      background: #1c1c2e;
      padding: 0 1.5rem;
      height: 52px;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      position: sticky;
      top: 0;
      z-index: 200;
    }
    .top-bar-logo img {
      height: 22px;
      filter: brightness(0) invert(1);
      opacity: 0.9;
    }
    .top-bar-title {
      font-size: 0.8rem;
      font-weight: 600;
      color: #b8b9cc;
      letter-spacing: 0.04em;
      border-left: 1px solid #38384e;
      padding-left: 0.75rem;
      margin-left: 0.25rem;
    }
    .tb-spacer { flex: 1; }
    .tb-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #2c2c42;
      border: none;
      border-radius: 999px;
      color: #b8b9cc;
      font-family: 'Inter', sans-serif;
      font-size: 0.78rem;
      font-weight: 500;
      padding: 0.35rem 0.9rem;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s;
      white-space: nowrap;
    }
    .tb-pill:hover { background: #38384e; color: #e0e0f0; }
    .tb-pill i { font-size: 0.9rem; }
    .tb-btn-app {
      background: #6366f1;
      color: #fff;
      border: none;
      border-radius: 999px;
      font-family: 'Inter', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0.35rem 1.1rem;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s;
    }
    .tb-btn-app:hover { background: #4f52d4; color: #fff; }

    /* ─── PAGE LAYOUT ─────────────────────────────────────── */
    .docs-outer {
      display: flex;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1.5rem 4rem;
      gap: 2rem;
      align-items: flex-start;
    }

    /* ─── LEFT NAV ────────────────────────────────────────── */
    .docs-nav {
      width: 230px;
      flex-shrink: 0;
      position: sticky;
      top: 68px;
      max-height: calc(100vh - 88px);
      overflow-y: auto;
    }
    .docs-nav::-webkit-scrollbar { width: 3px; }
    .docs-nav::-webkit-scrollbar-track { background: transparent; }
    .docs-nav::-webkit-scrollbar-thumb { background: #d0d0e8; border-radius: 4px; }

    .docs-nav-section { margin-bottom: 1.4rem; }
    .docs-nav-section-title {
      font-size: 0.67rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: #a8aaae;
      padding: 0 0.5rem;
      margin-bottom: 0.3rem;
    }
    .docs-nav a {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.28rem 0.5rem;
      font-size: 0.82rem;
      font-weight: 500;
      color: #697a8d;
      border-radius: 6px;
      text-decoration: none;
      transition: background 0.1s, color 0.1s;
    }
    .docs-nav a:hover { background: #eeeef8; color: #5f60d9; }
    .docs-nav a.active { background: #e7e7ff; color: #5f60d9; font-weight: 600; }
    .docs-nav a i { font-size: 0.9rem; flex-shrink: 0; }

    /* ─── SEARCH ─────────────────────────────────────────── */
    .docs-search-wrap { position: relative; margin-bottom: 1.25rem; }
    #docs-search {
      width: 100%;
      padding: 0.5rem 1rem 0.5rem 2.25rem;
      border: 1px solid #d9dee3;
      border-radius: 30px;
      font-size: 0.82rem;
      font-family: 'Inter', sans-serif;
      color: #384551;
      background: #fff;
      outline: none;
      transition: border-color 0.15s;
    }
    #docs-search:focus { border-color: #696cff; }
    .docs-search-icon {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      color: #a1acb8;
      font-size: 0.95rem;
      pointer-events: none;
    }

    /* ─── MAIN CONTENT ───────────────────────────────────── */
    .docs-content {
      flex: 1;
      min-width: 0;
    }

    .docs-section {
      scroll-margin-top: 72px;
      margin-bottom: 3rem;
    }

    .docs-h1 {
      font-size: 1.55rem;
      font-weight: 800;
      color: #1c1c2e;
      margin-bottom: 0.5rem;
      padding-bottom: 0.6rem;
      border-bottom: 2px solid #e7e7ff;
    }
    .docs-h2 {
      font-size: 1rem;
      font-weight: 700;
      color: #384551;
      margin-top: 1.75rem;
      margin-bottom: 0.6rem;
    }
    .docs-h3 {
      font-size: 0.875rem;
      font-weight: 600;
      color: #566a7f;
      margin-top: 1.25rem;
      margin-bottom: 0.4rem;
    }
    .docs-lead {
      font-size: 0.9rem;
      color: #697a8d;
      line-height: 1.75;
      margin-bottom: 1rem;
    }
    p.docs-p {
      font-size: 0.86rem;
      color: #697a8d;
      line-height: 1.75;
      margin-bottom: 0.75rem;
    }

    /* ─── CARDS ──────────────────────────────────────────── */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
      gap: 0.875rem;
      margin: 1rem 0;
    }
    .feature-card {
      border: 1px solid #e8e8f0;
      border-radius: 10px;
      padding: 1rem 1.1rem;
      background: #fff;
      transition: box-shadow 0.15s, border-color 0.15s;
    }
    .feature-card:hover { box-shadow: 0 2px 12px rgba(105,108,255,.1); border-color: #c0c0ff; }
    .feature-card i { font-size: 1.45rem; color: #696cff; display: block; margin-bottom: 0.5rem; }
    .feature-card strong { font-size: 0.83rem; font-weight: 700; color: #1c1c2e; display: block; margin-bottom: 0.2rem; }
    .feature-card p { font-size: 0.76rem; color: #697a8d; margin: 0; line-height: 1.5; }

    .node-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 0.7rem;
      margin: 0.75rem 0;
    }
    .node-card {
      border: 1px solid #e8e8f0;
      border-radius: 8px;
      padding: 0.85rem 1rem;
      background: #fff;
    }
    .node-card .node-type {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 0.25rem;
    }
    .node-card strong { font-size: 0.82rem; color: #1c1c2e; display: block; margin-bottom: 0.2rem; }
    .node-card p { font-size: 0.76rem; color: #697a8d; margin: 0; line-height: 1.5; }
    /* Node-type category accents (colorless for Data Source per brand) */
    .node-type-source     { color: #697a8d; }
    .node-type-filter     { color: #03c3ec; }
    .node-type-enrichment { color: #fd7e14; }
    .node-type-action     { color: #28a745; }

    /* ─── METHOD BADGES ──────────────────────────────────── */
    .badge-get    { background: #d1fae5; color: #065f46; font-size: 0.67rem; font-weight: 700; border-radius: 4px; padding: 2px 7px; font-family: 'Fira Code', monospace; }
    .badge-post   { background: #fef3c7; color: #92400e; font-size: 0.67rem; font-weight: 700; border-radius: 4px; padding: 2px 7px; font-family: 'Fira Code', monospace; }
    .badge-put    { background: #dbeafe; color: #1e40af; font-size: 0.67rem; font-weight: 700; border-radius: 4px; padding: 2px 7px; font-family: 'Fira Code', monospace; }
    .badge-delete { background: #fee2e2; color: #991b1b; font-size: 0.67rem; font-weight: 700; border-radius: 4px; padding: 2px 7px; font-family: 'Fira Code', monospace; }
    .badge-patch  { background: #e0e7ff; color: #3730a3; font-size: 0.67rem; font-weight: 700; border-radius: 4px; padding: 2px 7px; font-family: 'Fira Code', monospace; }
    .badge-token  { background: #e2e8f0; color: #334155; font-size: 0.67rem; font-weight: 600; border-radius: 4px; padding: 2px 6px; }
    .badge-auth   { background: #ede9fe; color: #5b21b6; font-size: 0.67rem; font-weight: 600; border-radius: 4px; padding: 2px 6px; }
    .badge-public { background: #dcfce7; color: #166534; font-size: 0.67rem; font-weight: 600; border-radius: 4px; padding: 2px 6px; }
    .badge-plan   { background: #fef3c7; color: #92400e; font-size: 0.7rem; font-weight: 600; border-radius: 20px; padding: 2px 8px; }
    .badge-beta   { background: #eef0f2; color: #475569; font-size: 0.7rem; font-weight: 600; border-radius: 20px; padding: 3px 10px; }

    /* ─── LAYOUT HELPERS ─────────────────────────────────── */
    .docs-feature-col   { min-width: 170px; }
    .docs-bottom-spacer { height: 4rem; }

    /* ─── ENDPOINT ROWS ──────────────────────────────────── */
    .endpoint-row {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 0.65rem 1rem;
      border: 1px solid #e8e8f0;
      border-radius: 8px;
      margin-bottom: 0.5rem;
      background: #fff;
      transition: border-color 0.15s;
    }
    .endpoint-row:hover { border-color: #b0b0ff; }
    .endpoint-method { min-width: 54px; padding-top: 1px; flex-shrink: 0; }
    .endpoint-path {
      font-family: 'Fira Code', monospace;
      font-size: 0.78rem;
      color: #1c1c2e;
      font-weight: 500;
      flex: 1.5;
      word-break: break-all;
    }
    .endpoint-desc { font-size: 0.78rem; color: #697a8d; flex: 2; }
    .endpoint-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; flex-shrink: 0; }

    /* ─── CODE BLOCKS ────────────────────────────────────── */
    .docs-code {
      background: #1c1c2e;
      border-radius: 8px;
      padding: 1rem 1.25rem;
      font-family: 'Fira Code', monospace;
      font-size: 0.78rem;
      line-height: 1.75;
      color: #c9d1d9;
      overflow-x: auto;
      margin: 0.75rem 0 1rem;
    }
    .docs-code .c-key   { color: #79c0ff; }
    .docs-code .c-str   { color: #a5d6ff; }
    .docs-code .c-num   { color: #ffa657; }
    .docs-code .c-cmmt  { color: #8b949e; font-style: italic; }

    /* ─── CALLOUTS ───────────────────────────────────────── */
    .callout {
      border-left: 4px solid;
      padding: 0.75rem 1rem;
      border-radius: 0 8px 8px 0;
      margin: 1rem 0;
      font-size: 0.84rem;
      line-height: 1.65;
    }
    .callout-info    { border-color: #696cff; background: #f0f0ff; color: #4040a0; }
    .callout-warning { border-color: #fd7e14; background: #fff8f0; color: #7a4010; }
    .callout-success { border-color: #28a745; background: #f4fcf5; color: #1a5e2a; }
    .callout i { margin-right: 0.4rem; }

    /* ─── TABLES ─────────────────────────────────────────── */
    .docs-table { font-size: 0.82rem; }
    .docs-table th { font-size: 0.78rem; background: #f5f5f9; }
    .docs-table td { vertical-align: middle; }

    /* ─── MISC ───────────────────────────────────────────── */
    code.ic {
      background: #f0f0ff;
      color: #4f52c8;
      font-family: 'Fira Code', monospace;
      font-size: 0.8em;
      padding: 1px 5px;
      border-radius: 4px;
    }
    .plan-check { color: #28a745; }
    .plan-x     { color: #dc3545; }
    .step-list { list-style: none; padding: 0; counter-reset: step-counter; }
    .step-list li {
      counter-increment: step-counter;
      position: relative;
      padding-left: 2.2rem;
      margin-bottom: 0.7rem;
      font-size: 0.86rem;
      color: #697a8d;
      line-height: 1.65;
    }
    .step-list li::before {
      content: counter(step-counter);
      position: absolute;
      left: 0; top: 0;
      width: 1.45rem; height: 1.45rem;
      background: #696cff; color: #fff;
      font-size: 0.7rem; font-weight: 700;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
    }
    .docs-divider { border: none; border-top: 1px solid #e8e8f0; margin: 2.5rem 0; }
    ul.docs-ul { font-size: 0.86rem; color: #697a8d; line-height: 1.8; padding-left: 1.25rem; }

    @media (max-width: 991px) {
      .docs-nav { display: none; }
    }
    @media (max-width: 767px) {
      .docs-outer { padding: 1.25rem 1rem 3rem; }
    }
