/* ==========================================================================
   AgensGraph AI modules and AgensGraph Drivers — additions on top of
   agensgraph-18.css. Loaded after it, by products/docs/agensgraph-ai/ and
   products/docs/agensgraph-driver/ only, so the 2.18 manual is unchanged.

   These two manuals are mostly Python examples, with lines longer than the
   2.18 manual's queries, and their sidebar labels are product names.
   ========================================================================== */

/* A wider reading measure, and a slightly smaller code face, so an example
   line fits without a horizontal scroll more often. */
:root { --ag-content-max: 60rem; }
.yue .highlight pre { font-size: .875rem; }

/* Level-1 sidebar labels are product names (cognee, LlamaIndex, Node.js):
   keep the quiet label style but not the uppercase, which changes the name. */
.sy-lside .sy-scrollbar .toctree-l1 > a {
  text-transform: none;
  letter-spacing: 0;
}

/* Package and command names in tables break at their hyphens
   (mcp-agensgraph- / memory). Keep each one on a line; the table scrolls
   inside its wrapper when it has to. The narrower cell padding (16px -> 12px)
   gives that width back, so at 1440px no table here scrolls. */
.yue table :not(pre) > code { white-space: nowrap; }
.yue .table-wrapper th, .yue .table-wrapper td { padding-inline: .75rem; }

/* The main column is a flex item, so by default it will not shrink below its
   widest code block or table. With the sidebar dragged wide (agensgraph-18.js)
   that pushed the whole page, and the on-page map, past the window's right
   edge. Letting it shrink keeps the overflow inside each block's own scroll. */
.sy-main { min-width: 0; }
