/* ==========================================================================
   weDocs single-doc typography — reduced scale
   --------------------------------------------------------------------------
   Loaded ONLY on body.single-docs (see wpc_wedocs_doc_assets() in functions.php),
   and after main.min.css so it wins.

   Doc pages inherit the theme's marketing type scale: body is --font-h6
   (16 -> 20px) and headings run up to --font-h1 (39 -> 61px). That's oversized
   for documentation, so we shift the whole scale down here. Sizes are fluid
   clamp() values (like the theme's own --font-* tokens) so they still respond
   to viewport width; the doc-only tokens below just start smaller.
   ========================================================================== */

body.single-docs .wedocs-single-content {
    --doc-body: clamp(0.875rem, 0.35vw + 0.79rem, 1rem);    /* 14 -> 16px  (was 16 -> 20) */
    --doc-h1:   clamp(1.625rem, 1.4vw + 1rem,   2.25rem);   /* 26 -> 36px  (was 39 -> 61) */
    --doc-h2:   clamp(1.375rem, 1vw   + 0.95rem, 1.875rem); /* 22 -> 30px  (was 31 -> 49) */
    --doc-h3:   clamp(1.188rem, 0.7vw + 0.9rem, 1.5rem);    /* 19 -> 24px  (was 25 -> 39) */
    --doc-h4:   clamp(1.063rem, 0.4vw + 0.9rem, 1.25rem);   /* 17 -> 20px  (was 22 -> 31) */
    --doc-h5:   var(--doc-body);                             /* 14 -> 16px  (was 20 -> 25) */
    --doc-h6:   var(--doc-body);                             /* 14 -> 16px  (was 16 -> 20) */
}

/* --- Body copy ---------------------------------------------------------- */
body.single-docs .wedocs-single-content .entry-content,
body.single-docs .wedocs-single-content .entry-content p,
body.single-docs .wedocs-single-content .entry-content ul,
body.single-docs .wedocs-single-content .entry-content ol,
body.single-docs .wedocs-single-content .entry-content li,
body.single-docs .wedocs-single-content .entry-content td,
body.single-docs .wedocs-single-content .entry-content th,
body.single-docs .wedocs-single-content .entry-content dd,
body.single-docs .wedocs-single-content .entry-content dt,
body.single-docs .wedocs-single-content .entry-content blockquote {
    font-size: var(--doc-body);
}

/* --- Doc title (h1.entry-title) ---------------------------------------- */
body.single-docs .wedocs-single-content .entry-header .entry-title {
    font-size: var(--doc-h1);
}

/* --- In-content headings ----------------------------------------------- */
body.single-docs .wedocs-single-content .entry-content h1 { font-size: var(--doc-h1); }
body.single-docs .wedocs-single-content .entry-content h2 { font-size: var(--doc-h2); }
body.single-docs .wedocs-single-content .entry-content h3 { font-size: var(--doc-h3); }
body.single-docs .wedocs-single-content .entry-content h4 { font-size: var(--doc-h4); }
body.single-docs .wedocs-single-content .entry-content h5 { font-size: var(--doc-h5); }
body.single-docs .wedocs-single-content .entry-content h6 { font-size: var(--doc-h6); }

/* --- Related body chrome (breadcrumb, prev/next nav, tags, child list) -- */
body.single-docs .wedocs-single-content .wedocs-breadcrumb,
body.single-docs .wedocs-single-content .wedocs-breadcrumb li,
body.single-docs .wedocs-single-content .wedocs-doc-nav,
body.single-docs .wedocs-single-content .wedocs-doc-nav a,
body.single-docs .wedocs-single-content .tags-links,
body.single-docs .wedocs-single-content .article-child.well,
body.single-docs .wedocs-single-content .article-child.well li {
    font-size: var(--doc-body);
}

body.single-docs .wedocs-single-content .article-child.well h3 {
    font-size: var(--doc-h4);
}

/* --- Lists (doc article content only) ----------------------------------
   The theme resets `ul, ol { list-style: none }` globally (main.css:220), so
   doc lists lose their bullets/numbers and any nested hierarchy. Restore
   markers + indentation, scoped to the doc article body, with distinct
   markers per nesting level. */
body.single-docs .wedocs-single-content .entry-content ul,
body.single-docs .wedocs-single-content .entry-content ol {
    padding-left: var(--spacing-30);
    margin: 0 0 var(--spacing-20);
}

body.single-docs .wedocs-single-content .entry-content ul { list-style: disc; }
body.single-docs .wedocs-single-content .entry-content ol { list-style: decimal; }

body.single-docs .wedocs-single-content .entry-content li {
    display: list-item;
    padding-bottom: var(--spacing-10);
    line-height: var(--line-height-15);
}

/* Nested unordered levels: disc -> circle -> square */
body.single-docs .wedocs-single-content .entry-content ul ul { list-style: circle; }
body.single-docs .wedocs-single-content .entry-content ul ul ul { list-style: square; }

/* Nested ordered levels: decimal -> lower-alpha -> lower-roman */
body.single-docs .wedocs-single-content .entry-content ol ol { list-style: lower-alpha; }
body.single-docs .wedocs-single-content .entry-content ol ol ol { list-style: lower-roman; }

/* Sub-lists sit snug under their parent item */
body.single-docs .wedocs-single-content .entry-content li > ul,
body.single-docs .wedocs-single-content .entry-content li > ol {
    margin: var(--spacing-10) 0 0;
}
