/* BulkDesk documentation, docs.bulkdesk.com.au. The Command standard in the Cement look; print is black on white. */
:root {
  --bg: #CFCFCA; --raise: #DADAD6; --sel: #B9B9B4; --card: #E6E6E2; --ink: #000; --note: #2B2B2B;
  --rule: #9C9C97; --rule2: #5F5F5B; --yellow: #FFCC00;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --r: 6px; --r-lg: 8px; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; }
.mono { font-family: var(--mono); }
.note { color: var(--note); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 600; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; height: 22px; width: auto; }
.brand .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--rule2); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-text { min-width: 0; }
.kicker { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--note); }
.kicker:hover { color: var(--ink); }
h1 { margin: 6px 0 0; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.lead { margin: 8px 0 0; color: var(--note); font-size: 16px; max-width: 64ch; }
.search { width: 320px; max-width: 100%; }
.search input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--note); }

.body { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.toc { position: sticky; top: 76px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 10px; border-radius: var(--r); font-size: 14px; line-height: 1.3; text-decoration: none; }
.toc a .mono { flex: 0 0 44px; font-size: 12px; color: var(--note); }
.toc a:hover { background: var(--raise); }
.toc a[aria-current='page'] { background: var(--sel); box-shadow: inset 2px 0 0 var(--yellow); font-weight: 600; }
.toc-btn { display: none; }
.main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.article { padding: 28px 32px; max-width: 860px; }
.intro { margin-bottom: 18px; }
.article h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 32px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.article h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.article p, .article li { font-size: 16px; line-height: 1.6; }
.article p { margin: 0 0 12px; max-width: 72ch; }
.article ol, .article ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; max-width: 72ch; }
.article ol li::marker { font-family: var(--mono); font-size: 14px; }
.article b { font-weight: 600; }
.article code { font-family: var(--mono); font-size: 14px; background: var(--raise); padding: 1px 5px; border-radius: 4px; }
.tabbed .part[hidden] { display: none; }
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); overflow-x: auto; scrollbar-width: none; }
.tabs[hidden] { display: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r); color: var(--note); font-size: 15px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected='true'] { background: var(--ink); color: var(--card); font-weight: 600; }
.next { margin-top: 8px; min-height: 44px; }

.tbl { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--rule2); border-radius: var(--r); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.tbl thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--raise); border-bottom: 1px solid var(--ink); }
.tbl tbody th { font-weight: 600; }
.tbl tr:last-child > * { border-bottom: 0; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.pager a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.pager a .mono { font-size: 12px; font-weight: 400; color: var(--note); }
.pager a.nx { align-items: flex-end; text-align: right; }
.pager a:hover { text-decoration: underline; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; text-decoration: none; }
.grid a:hover { border-color: var(--ink); }
.grid .mono { font-size: 12px; color: var(--note); }
.grid b { font-size: 16px; font-weight: 600; }
.grid span:last-child { font-size: 14px; line-height: 1.45; color: var(--note); }

.results[hidden], #content[hidden] { display: none; }
.hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.hits a { display: grid; grid-template-columns: 56px 1fr; gap: 2px 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); text-decoration: none; }
.hits a:hover { border-color: var(--ink); }
.hits .mono { grid-row: span 2; padding-top: 3px; font-size: 12px; color: var(--note); }
.hits b { font-weight: 600; }
.hits b .note { font-weight: 500; }
.snip { font-size: 14px; color: var(--note); }
.snip mark { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }

/* The title block at the foot, like the corner of a drawing sheet. */
.block { display: flex; flex-wrap: wrap; max-width: 860px; background: var(--card); border: 1px solid var(--ink); border-radius: 2px; }
.block > div { display: flex; flex-direction: column; gap: 2px; min-width: 110px; padding: 8px 14px; border-right: 1px solid var(--ink); }
.block > div:last-child { border-right: 0; }
.block .grow { flex: 1; }
.block span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--note); }
.block b { font-size: 14px; font-weight: 500; }

/* Home: the documentation tree. */
.body.solo { grid-template-columns: minmax(0, 1fr); }
.body.solo .main { max-width: 980px; }
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--ink); text-decoration: underline; }
.sec { padding: 0; }
.home .sec-head h2.sr { position: static; width: auto; height: auto; clip: auto; white-space: normal; }
.sec-head { display: grid; grid-template-columns: 56px 1fr; gap: 2px 12px; margin-bottom: 12px; }
.sec-head .mono { grid-row: span 2; padding-top: 5px; font-size: 12px; color: var(--note); }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--note); font-size: 15px; }
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.docs li > a, .docs li > div { display: grid; grid-template-columns: 56px 1fr auto; gap: 2px 12px; align-items: center; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.docs li:last-child > a, .docs li:last-child > div { border-bottom: 0; }
.docs li > a:hover b { text-decoration: underline; }
.docs .mark { justify-self: center; grid-row: span 2; }
.docs b { font-weight: 600; font-size: 16px; }
.docs .tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--ink); border-radius: 4px; }
.docs .pub .tag { background: var(--ink); color: var(--card); }
.docs .sum { grid-column: 2 / 4; font-size: 14px; color: var(--note); line-height: 1.45; }
.mark { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink); }
.mark.pub, .docs .pub .mark { background: var(--ink); }
.mark.half, .docs .draft .mark { background: linear-gradient(to right, var(--ink) 50%, transparent 50%); }
.legend { display: flex; gap: 0; align-self: flex-start; border: 1px solid var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--card); }
.legend span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; }
.legend span + span { border-left: 1px solid var(--ink); }
.legend .mark { width: 10px; height: 10px; }

@media (max-width: 900px) {
  .wrap { padding: 20px 16px 40px; }
  h1 { font-size: 26px; }
  .search { width: 100%; }
  .body { grid-template-columns: minmax(0, 1fr); }
  .toc-btn { display: inline-flex; justify-content: flex-start; min-height: 44px; font-family: var(--mono); }
  .toc { display: none; position: static; }
  .toc.open { display: block; }
  .toc a { min-height: 44px; }
  .article { padding: 20px 18px; }
  .tabs a { min-height: 44px; padding: 0 14px; }
  .brand .mono { display: none; }
  .sec { padding: 16px; }
  .docs li > a, .docs li > div { grid-template-columns: 28px 1fr; }
  .docs .tag { grid-column: 2; justify-self: start; }
  .docs .sum { grid-column: 2; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .mono { grid-row: auto; padding: 0; }
  .block > div { flex: 1 1 40%; min-width: 0; border-bottom: 1px solid var(--ink); }
}
@media print {
  body { background: #fff; }
  .top, .toc, .toc-btn, .search, .tabs, .pager, .next, .skip { display: none !important; }
  .wrap { padding: 0; }
  .body { display: block; }
  .tabbed .part[hidden] { display: block; }
  .article, .panel { border: 0; padding: 0; background: none; }
  .article p, .article li, .tbl th, .tbl td, .lead, .block span, .note { color: #000; font-size: 10pt; }
  .tbl, .tbl th, .tbl td, .block, .block > div { border-color: #000 !important; }
  .tbl thead th { background: none; }
  .sr { position: static; width: auto; height: auto; clip: auto; }
  @page { margin: 12mm; }
  h1 { font-size: 20pt; }
  .wrap { gap: 8px; }
  .article h2 { font-size: 13pt; margin: 10px 0 4px; padding-top: 6px; }
  .article p, .article li { line-height: 1.35; margin-bottom: 4px; }
  .article ol, .article ul { gap: 2px; margin-bottom: 6px; }
  .intro { margin-bottom: 6px; }
}
.article.home { max-width: none; }
.home .sec-head h2 { margin: 0; padding: 0; border: 0; }
.home ul.docs { display: block; max-width: none; margin: 0; padding: 0; }
.home .docs li { font-size: inherit; }
