/* ═══════════════════════════════════════════════════════════════════════════
   M4BConvert — Docs Page Styles
   Extracted from docs.html's previously-inline <style> block, built on top
   of the shared token system declared in index.css (:root).
   ═══════════════════════════════════════════════════════════════════════════ */

.docs-main {
      flex: 1;
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      padding: 2.75rem 1.5rem 5rem;
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      grid-template-rows: auto 1fr;
      grid-template-areas: "header header" "toc article";
      gap: 0 3rem;
      align-items: start;
    }

    .docs-page-header {
      grid-area: header;
      padding-bottom: 2.25rem;
    }

    .docs-toc {
      grid-area: toc;
      position: sticky;
      top: 76px;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }
    .docs-toc-label {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--text-dim);
      margin-bottom: 0.6rem;
    }
    .docs-toc a {
      font-size: 0.83rem;
      color: var(--text-muted);
      text-decoration: none;
      padding: 0.4rem 0.6rem;
      border-radius: var(--radius);
      border-left: 2px solid transparent;
    }
    .docs-toc a:hover { color: var(--text); background: var(--bg-hover); }

    .docs-article { grid-area: article; max-width: 700px; }

    .docs-eyebrow {
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent-light);
      margin-bottom: 0.75rem;
    }
    .docs-page-header h1 {
      font-size: 2rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.15;
      margin-bottom: 0.75rem;
    }
    .docs-lede {
      font-size: 1.02rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 2.75rem;
    }

    .docs-section { margin-bottom: 3rem; scroll-margin-top: 80px; }
    .docs-section h2 {
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin-bottom: 0.9rem;
      padding-bottom: 0.7rem;
      border-bottom: 1px solid var(--border);
    }
    .docs-section h3 {
      font-size: 1rem;
      font-weight: 600;
      margin: 1.5rem 0 0.6rem;
      color: var(--text);
    }
    .docs-section p {
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    .docs-section ul, .docs-section ol {
      margin: 0 0 1rem 1.2rem;
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--text-muted);
    }
    .docs-section li { margin-bottom: 0.4rem; }
    .docs-section strong { color: var(--text); font-weight: 600; }
    .docs-section code {
      font-family: var(--font-mono);
      font-size: 0.82em;
      background: var(--bg-input);
      border: 1px solid var(--border-soft);
      border-radius: 4px;
      padding: 0.1em 0.4em;
      color: var(--accent-light);
    }

    .docs-pre {
      background: var(--bg-input);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1rem 1.1rem;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      line-height: 1.65;
      color: var(--text-muted);
      overflow-x: auto;
      margin-bottom: 1.25rem;
      white-space: pre;
    }
    .docs-pre .c1 { color: var(--text-dim); }
    .docs-pre .c2 { color: var(--accent-light); }

    .docs-callout {
      display: flex;
      gap: 0.75rem;
      padding: 0.95rem 1.1rem;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background: var(--bg-panel);
      margin-bottom: 1.25rem;
      font-size: 0.87rem;
      line-height: 1.6;
      color: var(--text-muted);
    }
    .docs-callout.privacy { border-color: rgba(52,211,153,0.25); background: var(--success-bg); }
    .docs-callout.privacy strong { color: var(--success); }
    .docs-callout.note { border-color: var(--border-strong); }
    .docs-callout-icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--text-dim); }
    .docs-callout.privacy .docs-callout-icon { color: var(--success); }

    .docs-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
    .docs-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
    .docs-table th, .docs-table td {
      text-align: left;
      padding: 0.6rem 0.8rem;
      border-bottom: 1px solid var(--border);
    }
    .docs-table th {
      color: var(--text-dim);
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.68rem;
      letter-spacing: 0.05em;
    }
    .docs-table td { color: var(--text-muted); }
    .docs-table td:first-child, .docs-table td:nth-child(2) { color: var(--text); font-weight: 500; }
    .docs-table code { white-space: nowrap; }

    .docs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.25rem; }
    .docs-compare-card {
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--bg-panel);
      padding: 0.95rem 1.05rem;
    }
    .docs-compare-card h4 {
      font-size: 0.82rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .docs-compare-card p { font-size: 0.82rem; margin: 0; color: var(--text-muted); }

    .docs-faq-item { border-bottom: 1px solid var(--border-soft); padding: 1rem 0; }
    .docs-faq-item:last-child { border-bottom: none; }
    .docs-faq-item h3 { margin: 0 0 0.4rem; font-size: 0.94rem; }
    .docs-faq-item p { margin: 0; }

    @media (max-width: 820px) {
      .docs-main {
        grid-template-columns: 1fr;
        grid-template-areas: "header" "toc" "article";
      }
      .docs-toc {
        position: static;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-panel);
        padding: 1rem 1.25rem;
        margin-bottom: 2rem;
      }
      .docs-compare { grid-template-columns: 1fr; }
    }
