/* Formo docs (/docs) — base/tasks/ApiDocs-2026-11-10.md. Shared by the live pages (served at /landing/docs/docs.css,
   inside the CMS template's content slot) and the preview (inlined). Everything is scoped under .fdocs so the CMS
   header and footer around it keep their own look.
   Three columns like a code reference: every page on the left, the page in the middle, its structure on the right
   (own properties, then each mixin) — sticky. Owner 2026-11-10 picked "Ultramarine": mist sidebar, coral marks
   where you are, light code on mist; light only ("ultramarine with light theme"). */
.fdocs {
  --ink: #12142f; --muted: #4a4e72; --line: #dcdfee; --mist: #f3f4fb; --paper: #fff; --ultra: #2b31d4; --todo: #b5462a; --sel: #fff;
  --coral: #ff6a4d; --arg: #b5462a; --method: #8a1fa8;
  --code-bg: #f3f4fb; --code-fg: #12142f;
  --tk-keyword: #a626a4; --tk-number: #986801; --tk-string: #50a14f; --tk-builtin: #4078f2; --tk-special: #e45649;
  --tk-operator: #383a42; --tk-comment: #8a8c93; --tk-property: #b07800; --tk-nodeRef: #0184bc;
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); text-align: left;
}
.fdocs *, .fdocs *::before, .fdocs *::after { box-sizing: border-box; }
.fdocs .shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 0 48px; max-width: 1360px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fdocs .side, .fdocs .toc { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding-block: 28px 40px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.fdocs .side { background: var(--mist); padding-left: 12px; padding-right: 16px; margin-left: -12px; }
.fdocs .nav-h { font: 700 17px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); margin: 26px 0 6px; padding-left: 10px; }
.fdocs .nav-h:first-child { margin-top: 0; }
.fdocs .side ul, .fdocs .toc ul { list-style: none; margin: 0; padding: 0; }
.fdocs .side a { display: block; padding: 4px 10px; color: var(--muted); text-decoration: none; font-size: 15px; }
.fdocs .side a:hover { color: var(--ultra); }
.fdocs .side a[aria-current="page"] { background: var(--sel); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--coral); border-radius: 0 6px 6px 0; }
.fdocs .side details > summary { display: none; }
.fdocs .nav-search { margin: 0 0 20px; padding: 4px; }   /* room for the focus ring: .side scrolls, so it clips anything outside */
.fdocs .nav-search input { width: 100%; font: 400 15px/1.3 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.fdocs .nav-search input::placeholder { color: var(--muted); }
.fdocs .nav-search input:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.fdocs .nav-results { margin-top: 10px !important; }
.fdocs .nav-results a { display: block; }
.fdocs .nav-results small { display: block; color: var(--muted); font-size: 12.5px; }
.fdocs .nav-results code { font-size: 14px; }
.fdocs .nav-empty { color: var(--muted); font-size: 14px; padding: 6px 10px; }
.fdocs .fd-main { padding-block: 32px 120px; min-width: 0; }
.fdocs .ref-url { font: 500 13.5px/1 var(--mono); color: var(--muted); margin: 0 0 10px; }
.fdocs h1 { font: 800 clamp(44px, 7vw, 76px)/1 var(--display); letter-spacing: -.04em; margin: 0 0 18px; text-wrap: balance; color: var(--ink); }
.fdocs h2 { font: 700 25px/1.2 var(--display); letter-spacing: -.015em; margin: 80px 0 0; padding: 0 8px 10px 0; border-bottom: 3px solid var(--coral); display: inline-block; text-wrap: balance; scroll-margin-top: 16px; color: var(--ink); }
.fdocs h2 small { font: 500 14px/1 var(--body); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.fdocs a { color: var(--ultra); text-underline-offset: 3px; }
.fdocs a:focus-visible, .fdocs button:focus-visible, .fdocs input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.fdocs p { margin: 0 0 1em; }
.fdocs .ref-lede { font-size: 19px; line-height: 1.5; max-width: 62ch; margin: 0 0 12px; }
.fdocs .ref-name { color: var(--muted); margin: 0; font-size: 15px; }
.fdocs code { font: 500 .92em var(--mono); background: none; padding: 0; }
.fdocs .ref-filter { display: none; }   /* the page's own checkbox; the right column carries the control */
.fdocs .ref-prop { padding: 28px 0 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.fdocs .ref-prop h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 10px; font-weight: 400; }
.fdocs .ref-prop h3 code { font: 600 18px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.fdocs .ref-type { font: 500 14px/1 var(--mono); color: var(--ultra); }
.fdocs .ref-anchor { font: 600 16px/1 var(--mono); color: var(--muted); text-decoration: none; opacity: 0; transition: opacity .12s; }
.fdocs .ref-prop:hover .ref-anchor, .fdocs .ref-anchor:focus-visible { opacity: 1; }
.fdocs .ref-anchor:hover { color: var(--ultra); }
.fdocs .ref-prop:last-child, .fdocs .ref-prop:has(+ h2), .fdocs .ref-prop:has(+ section) { border-bottom: 0; }   /* no rule after the last entry of a list */
.fdocs .ref-prop:target { background: linear-gradient(90deg, var(--mist), transparent 70%); }
@media (hover: none) { .fdocs .ref-anchor { opacity: .6; } }
.fdocs .ref-prop p { margin: 0 0 6px; max-width: 66ch; }
.fdocs .ref-details { color: var(--muted); }
.fdocs .ref-facts { font: 400 13px/1.5 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.fdocs .ref-todo { color: var(--todo); font-style: italic; }
.fdocs .hide-inh .ref-inh { display: none; }
/* articles: running text, code in the formula editor's own colours, clips */
.fdocs .ref-article > p, .fdocs .ref-article li { max-width: 66ch; }
.fdocs .ref-article > p:first-child { font-size: 19px; line-height: 1.5; }
.fdocs .ref-article h2 { margin-top: 52px; }   /* article sections: the 80 px above is for reference sections */
.fdocs .ref-article h3 { font: 700 19px/1.3 var(--display); margin: 28px 0 6px; }
.fdocs .ref-list { padding-left: 20px; margin: 10px 0 14px; }
.fdocs .ref-list li { margin: 0 0 6px; }
.fdocs .ref-list b { font-weight: 600; }
.fdocs .ref-code { background: var(--code-bg); color: var(--code-fg); border-left: 3px solid var(--ultra); border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 14px 0 18px; overflow-x: auto; font: 400 14.5px/1.6 var(--mono); white-space: pre; }
.fdocs .ref-code code { font: inherit; }
.fdocs .tk-keyword { color: var(--tk-keyword); } .fdocs .tk-number { color: var(--tk-number); } .fdocs .tk-string { color: var(--tk-string); } .fdocs .tk-builtin { color: var(--tk-builtin); }
.fdocs .tk-special { color: var(--tk-special); } .fdocs .tk-operator { color: var(--tk-operator); } .fdocs .tk-comment { color: var(--tk-comment); font-style: italic; } .fdocs .tk-property { color: var(--tk-property); }
.fdocs .tk-nodeRef { color: var(--tk-nodeRef); font-weight: 600; }
/* methods: a signature, coloured by part, and one row per argument */
.fdocs .ref-method h3 code.sig { font: 500 17px/1.4 var(--mono); }
.fdocs .m-name { color: var(--method); font-weight: 700; }   /* methods in their own colour; properties stay ink */
.fdocs .m-arg { color: var(--arg); } .fdocs .m-type { color: var(--ultra); } .fdocs .m-p { color: var(--muted); }
.fdocs .ref-kind { font: 600 11.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.fdocs .ref-args { list-style: none; margin: 8px 0 4px; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 6px; max-width: 66ch; }
.fdocs .ref-args code { font-weight: 600; margin-right: 6px; }
.fdocs .ref-clip { margin: 16px 0 22px; } .fdocs .ref-clip video { width: 100%; max-width: 100%; border-radius: 8px; display: block; background: #000; }
.fdocs .toc { font-size: 14px; }
.fdocs .toc-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; margin: 0 0 18px; font-size: 14px; }
.fdocs .toc-filter input { width: 16px; height: 16px; accent-color: var(--ultra); margin: 0; }
.fdocs .toc > ul > li { margin: 0 0 22px; }
.fdocs .toc .sec { display: block; font: 700 16.5px/1.3 var(--display); color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.fdocs .toc .sec small { font: 400 13px/1 var(--body); color: var(--muted); margin-left: 7px; }
.fdocs .toc li li a { display: block; font: 400 13px/1.85 var(--mono); color: var(--muted); text-decoration: none; padding: 1px 0 1px 10px; border-left: 2px solid var(--line); }
.fdocs .toc li li a.toc-m { color: var(--method); }
.fdocs .toc a:hover { color: var(--ultra); }
.fdocs .toc li li a.on { color: var(--ink); border-left-color: var(--coral); }
.fdocs .toc .inh-sec.dim { opacity: .45; }
/* the /docs index: one card list per menu section */
.fdocs .fd-index { display: grid; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; max-width: 66ch; }
.fdocs .fd-index a { font-weight: 600; }
.fdocs .fd-index span { color: var(--muted); }
@media (max-width: 1180px) { .fdocs .shell { grid-template-columns: 230px minmax(0, 1fr); } .fdocs .toc { display: none; } .fdocs .ref-filter { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin: 16px 0 0; cursor: pointer; } .fdocs .ref-filter input { accent-color: var(--ultra); } }
@media (max-width: 760px) {
  .fdocs .shell { grid-template-columns: minmax(0, 1fr); }
  .fdocs .side { position: static; max-height: none; margin-left: 0; padding-block: 12px; }
  .fdocs .side details > summary { display: block; cursor: pointer; font-weight: 600; padding: 6px 0; }
  .fdocs .side details:not([open]) > .nav-body { display: none; }
}
