/* processtool.net/manual - the Flowmax manuals online. Laid over the site's css/site.css (same colours, fonts, header, footer). */

/* the site's overflow-x:hidden on body makes body a scroll box and stops the sticky contents ; clip does the same job without it */
body.m-page { overflow-x: clip; }
.m-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--deep); padding: 8px 14px; border-radius: 0 0 8px 0; font-weight: 600; }
.m-skip:focus { left: 0; }

/* ------------------------------------------------------------------ the hero : smaller than the site's */
.m-hero { padding: 30px 0 70px; }
.m-hero .wrap, .page-hero.m-hero .wrap { display: block; max-width: 1200px; }
.m-hero .wave { height: 46px; }
.m-hero h1 { font-size: 42px; }
.m-hero .kicker { margin-bottom: 8px; }
.m-hero p.m-lead { font-size: 18px; color: #d3e4f5; margin: 10px 0 0; max-width: 820px; }
.m-hero p.m-meta { font-size: 14px; color: #9fc0e0; margin: 8px 0 0; max-width: 820px; line-height: 1.55; }
.m-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #8fc7f0; margin-bottom: 14px; }
.m-crumbs a { color: #c9dcf0; }
.m-crumbs a:hover { color: #fff; text-decoration: underline; }
.m-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.m-switch a { border: 1.5px solid rgba(255, 255, 255, .38); color: #fff; padding: 7px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: .15s; }
.m-switch a:hover { border-color: #fff; }
.m-switch a[aria-current] { background: #fff; color: var(--deep); border-color: #fff; }
.m-switch a.all { border-color: transparent; color: #c9dcf0; font-weight: 500; }
.m-switch a.all:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ the page : contents at the left, the document in the middle */
.m-layout { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 52px; align-items: start; }
.m-side { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; font-size: 14.5px; scrollbar-width: thin; padding-right: 4px; }
.m-tools { position: sticky; top: 0; z-index: 2; background: #fff; padding: 24px 0 10px; }
.m-doc { min-width: 0; max-width: 860px; padding: 30px 0 96px; }

/* search */
.m-search { display: flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 4px 0 10px; background: #fbfdff; transition: .15s; }
.m-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #d9eafa; background: #fff; }
.m-search > svg { flex: none; width: 17px; height: 17px; color: var(--dim); }
.m-search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; font: inherit; font-size: 15px; padding: 9px 6px; outline: none; color: var(--ink); }
.m-search input::placeholder { color: var(--dim); }
.m-search input::-webkit-search-cancel-button { cursor: pointer; }
.m-count { font-size: 12.5px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; padding: 0 2px; }
.m-count:empty { display: none; }
.m-search button { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: none; color: var(--deep); cursor: pointer; padding: 0; }
.m-search button svg { width: 18px; height: 18px; }
.m-search button:hover:not([disabled]) { background: var(--pale); color: var(--blue); }
.m-search button[disabled] { opacity: .3; cursor: default; }
.m-tocbtn { display: none; }

/* contents */
.m-toch { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 14px 0 6px 10px; }
.m-toc { padding-bottom: 40px; }
.m-toc ul { list-style: none; margin: 0; padding: 0; }
.m-toc li { position: relative; }
.m-toc a { display: block; padding: 5px 30px 5px 10px; border-radius: 8px; color: var(--soft); line-height: 1.38; transition: background .12s; }
.m-toc > ul > li > a { color: var(--deep); font-weight: 600; }
.m-toc ul ul a { font-size: 13.9px; padding-top: 4px; padding-bottom: 4px; font-weight: 400; }
.m-toc a:hover { background: var(--pale); color: var(--deep); }
.m-toc a.on { background: var(--pale); color: var(--blue); }
.m-toc ul ul a.on { font-weight: 600; }
.m-toc .sn { color: var(--dim); font-weight: 500; margin-right: 2px; font-variant-numeric: tabular-nums; }
.m-toc a.on .sn { color: var(--blue); }
.m-toc li > ul { display: none; margin: 2px 0 6px 13px; padding-left: 5px; border-left: 1.5px solid var(--line); }
.m-toc li.open > ul, .m-toc.filtering li > ul { display: block; }
.m-toc .tg { position: absolute; right: 2px; top: 3px; width: 26px; height: 26px; border: 0; padding: 0; background: none; border-radius: 6px; color: var(--dim); cursor: pointer; }
.m-toc .tg::before { content: ""; display: block; width: 7px; height: 7px; margin: -3px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.m-toc li.open > .tg::before { transform: rotate(45deg); margin-top: -5px; }
.m-toc .tg:hover { background: var(--pale); color: var(--deep); }
.m-toc .cnt { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #ffe58a; color: #5a4300; font-size: 11.5px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
.m-toc.filtering li.nohit, .m-toc.filtering .tg { display: none; }
.m-toc .none { color: var(--dim); padding: 6px 10px; font-size: 14px; }

/* ------------------------------------------------------------------ the document */
.m-doc { font-size: 16.5px; line-height: 1.68; color: #1d2b3d; overflow-wrap: break-word; }
.m-doc > :first-child { margin-top: 0; }
.m-doc h2, .m-doc h3, .m-doc h4 { color: var(--deep); letter-spacing: -.01em; }
.m-doc h2 { font-size: 30px; line-height: 1.2; margin: 64px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.m-doc h3 { font-size: 21.5px; line-height: 1.3; margin: 42px 0 12px; }
.m-doc h4 { font-size: 17.5px; line-height: 1.35; margin: 30px 0 10px; }
.m-doc > h2:first-child, .m-doc > h3:first-child { margin-top: 0; }
.m-doc h2 .sn, .m-doc h3 .sn, .m-doc h4 .sn { color: var(--blue); margin-right: .2em; font-variant-numeric: tabular-nums; }
.m-doc .hl { margin-left: .4em; color: var(--dim); font-weight: 500; opacity: 0; transition: opacity .15s; text-decoration: none; }
.m-doc h2:hover .hl, .m-doc h3:hover .hl, .m-doc h4:hover .hl, .m-doc .hl:focus { opacity: 1; }
.m-doc [id] { scroll-margin-top: 18px; }
.m-doc p, .m-doc ul, .m-doc ol, .m-doc .note { max-width: 70ch; }
.m-doc p { margin: 0 0 14px; }
.m-doc ul, .m-doc ol { margin: 0 0 16px; padding-left: 1.45em; }
.m-doc li { margin: 0 0 7px; padding-left: .3em; }
.m-doc ul > li::marker { color: var(--blue); }
.m-doc ol > li::marker { color: var(--blue); font-weight: 700; }
.m-doc strong { font-weight: 600; color: #0e2036; }
.m-doc code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .9em; background: var(--pale); color: var(--deep); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.m-doc a:not(.hl) { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(15, 111, 198, .35); text-underline-offset: 2px; }
.m-doc a:not(.hl):hover { text-decoration-color: currentColor; }
.m-doc p.c { text-align: center; }
.m-doc p.r { text-align: right; }
.m-doc p.caption { font-size: 14.5px; color: var(--soft); }
.m-doc p.files { font-size: 14.5px; color: var(--soft); background: #f7fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.m-doc p.files strong { color: var(--deep); margin-right: 4px; }
.m-doc p.files code { display: inline-block; margin: 2px 2px; background: #fff; border: 1px solid var(--line); }
.m-doc .bm { display: inline; }

/* notes : a left bar, as in the printed manual */
.m-doc .note { margin: 20px 0 22px; padding: 12px 18px 12px 16px; border-left: 4px solid var(--blue); background: var(--pale); border-radius: 0 10px 10px 0; }
.m-doc .note p { margin: 0; max-width: none; }
.m-doc .note .nl { display: block; color: var(--deep); font-weight: 700; margin-bottom: 2px; }
.m-doc .note.warn { border-left-color: #b3541e; background: #fdf3ec; }
.m-doc .note.warn .nl { color: #8a3d12; }

/* figures : the picture at its width in the printed page, the caption under it ; a click opens it large */
.m-doc figure.fig { margin: 26px 0 30px; }
.m-doc figure.fig img { display: block; margin: 0 auto; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(6, 42, 82, .06); cursor: zoom-in; }
.m-doc figure.fig.multi img + img { margin-top: 12px; }
.m-doc figure figcaption { background: none; padding: 10px 0 0; margin: 0 auto; max-width: 72ch; font-size: 14.5px; line-height: 1.5; color: var(--soft); text-align: center; }
.m-doc .fn { font-weight: 700; color: var(--blue); margin-right: .3em; }

/* tables : real tables, scrolled sideways inside their frame on a small screen */
.m-doc figure.tbl { margin: 24px 0 28px; }
.m-doc figure.tbl figcaption { text-align: left; padding: 0 0 8px; margin: 0; max-width: none; }
.m-doc .tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.m-doc .tw:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.m-doc .tw table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.m-doc .tw th, .m-doc .tw td { padding: 8px 12px; text-align: left; vertical-align: top; }
.m-doc .tw td, .m-doc .tw tbody th { border-top: 1px solid var(--line); }
.m-doc .tw th { background: #e8f0f5; color: var(--deep); font-weight: 600; }
.m-doc .tw thead th { vertical-align: bottom; }
.m-doc .tw tr > * + * { border-left: 1px solid var(--line); }
.m-doc .tw tr.z td { background: #f7fafc; }
.m-doc .tw .r { text-align: right; font-variant-numeric: tabular-nums; }
.m-doc .tw .c { text-align: center; }
.m-doc .tw .cm { color: var(--blue); font-weight: 700; }
.m-doc .tw code { white-space: nowrap; }

/* search hits */
mark.hit { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0; }
mark.hit.cur { background: var(--orange); color: #fff; box-shadow: 0 0 0 2px var(--orange); }

/* ------------------------------------------------------------------ the index of the manuals */
.m-index { padding: 50px 0 90px; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-cards > * { min-width: 0; }
.m-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.m-card .mh { background: var(--mc, var(--blue)); color: #fff; padding: 20px 24px; }
.m-card .mh .mk { display: block; color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.m-card .mh h2 { color: #fff; font-size: 27px; margin: 2px 0 0; }
.m-card ul { list-style: none; margin: 0; padding: 10px; }
.m-card li a { display: block; padding: 14px 16px; border-radius: 12px; transition: background .15s; }
.m-card li a:hover { background: var(--pale); }
.m-card li + li { border-top: 1px solid var(--line); }
.m-card li b { display: block; color: var(--deep); font-size: 17.5px; }
.m-card li a:hover b { color: var(--blue); }
.m-card li span { display: block; color: var(--soft); font-size: 14.5px; margin-top: 3px; }
.m-card li small { display: block; color: var(--dim); font-size: 13px; margin-top: 6px; }

/* ------------------------------------------------------------------ small screens : the contents behind a button, search in a bar */
@media (max-width: 980px) {
  .m-layout { display: block; padding: 0 16px; }
  .m-side { position: sticky; top: 0; z-index: 40; max-height: none; overflow: visible; margin: 0 -16px; padding: 0 16px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(6, 42, 82, .06); }
  .m-tools { position: static; display: flex; align-items: center; gap: 8px; padding: 10px 0; background: none; }
  .m-tocbtn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--deep); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
  .m-tocbtn svg { width: 19px; height: 19px; }
  .m-tocbtn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
  .m-search { flex: 1; min-width: 0; }
  .m-toc { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; padding: 6px 12px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(6, 42, 82, .18); }
  .m-side.open .m-toc { display: block; }
  .m-toch { display: none; }
  .m-doc { padding-top: 20px; font-size: 16px; max-width: none; }
  .m-doc [id] { scroll-margin-top: 74px; }
  .m-doc h2 { font-size: 24px; margin-top: 46px; }
  .m-doc h3 { font-size: 19.5px; margin-top: 34px; }
  .m-hero { padding: 24px 0 58px; }
  .m-hero h1 { font-size: 32px; }
  .m-hero p.m-lead { font-size: 16.5px; }
  .m-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .m-doc figure.fig img { width: auto !important; }
  .m-doc .tw table { min-width: var(--mw, 0); }
}
@media (max-width: 440px) {
  .m-tocbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .m-tocbtn { padding: 0 10px; }
  .m-switch a { padding: 6px 12px; font-size: 14px; }
}

/* ------------------------------------------------------------------ print : the document alone */
@media print {
  .site-header, .site-footer, .m-side, .m-switch, .m-crumbs, .wave, .m-skip, .lightbox, .m-doc .hl { display: none !important; }
  body.m-page { overflow: visible; }
  .top, .m-hero { background: none !important; color: #000; padding: 0 0 10px; }
  .m-hero h1, .m-hero p.m-lead, .m-hero p.m-meta, .m-hero .kicker { color: #000 !important; }
  .m-layout { display: block; padding: 0; max-width: none; }
  .m-doc { max-width: none; padding: 0; font-size: 10.5pt; }
  .m-doc p, .m-doc ul, .m-doc ol, .m-doc .note { max-width: none; }
  .m-doc h2.ch { break-before: page; }
  .m-doc h2, .m-doc h3, .m-doc h4 { break-after: avoid; }
  .m-doc figure, .m-doc tr, .m-doc .note { break-inside: avoid; }
  .m-doc .tw { overflow: visible; border: 0; }
  .m-doc .tw table { min-width: 0 !important; }
  .m-doc figure.fig img { box-shadow: none; }
  .m-doc a:not(.hl) { color: inherit; text-decoration: none; }
  mark.hit, mark.hit.cur { background: none; color: inherit; box-shadow: none; }
}
