/* Made by scripts/gen-reference.mjs from docs.html's own styles: the reference looks like the docs. */

@font-face { font-family: "Counter-Strike"; src: url("../fonts/counter-strike.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #3e4637; --side: #353c2f; --panel: #4c5844; --panel-2: #5a6a50;
  --bevel-hi: rgba(136,145,128,.55); --bevel-lo: #292c21;
  --bone: #d8ded3; --dim: #c2c9b7; --faint: #aeb7a2;
  --signal: #c4b550; --ink: #26240f;
  --raised: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
  --sunken: inset 1px 1px 0 var(--bevel-lo), inset -1px -1px 0 var(--bevel-hi);
  --stencil: "Counter-Strike", Impact, sans-serif;
  --text: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --top: 58px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--bone); font: 500 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 16px; top: 12px; z-index: 9; width: auto; height: auto; clip: auto; background: var(--signal); color: var(--ink); padding: 6px 12px; }

/* top bar, as on the home page */
.top { position: sticky; top: 0; z-index: 6; background: rgba(53,60,47,.96); backdrop-filter: blur(6px); box-shadow: 0 1px 0 var(--bevel-lo); }
.top .wrap { width: min(1200px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: var(--top); gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.wordmark { font: 400 22px/1 var(--stencil); color: var(--bone); text-decoration: none; }
.brand .here { color: var(--faint); font-weight: 600; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--dim); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--bone); }
.top nav a[aria-current="page"] { color: var(--bone); box-shadow: inset 0 -2px 0 var(--signal); }
.top nav a { white-space: nowrap; }
@media (max-width: 1100px) { .top nav { gap: 14px; } .brand .here { display: none; } }
.top nav a.btn { color: var(--ink); background: var(--signal); padding: 7px 14px; border-radius: 2px; font-weight: 700; font-size: 16px;
  box-shadow: inset 1px 1px 0 rgba(255,255,230,.55), inset -1px -1px 0 #6e6526; }
.top nav a.btn:hover { background: #d4c55d; }

/* the topic list on the left (sticky), one topic at a time on the right */
.docs { width: min(1200px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.rail { align-self: stretch; }
.side { position: sticky; top: calc(var(--top) + 20px); max-height: calc(100vh - var(--top) - 40px); max-height: calc(100dvh - var(--top) - 40px); overflow-y: auto; overscroll-behavior: contain;
  margin: 20px 0 40px; background: var(--side); box-shadow: var(--raised); border-radius: 3px; padding: 12px 0 14px; scrollbar-width: thin; scrollbar-color: var(--panel-2) transparent; }
.search { margin: 0 12px 6px; }
.search input { width: 100%; font: 500 16px/1.2 var(--text); color: var(--bone); background: #2b3125; box-shadow: var(--sunken); border: 0; border-radius: 2px; padding: 9px 10px; }
.search input::placeholder { color: var(--faint); opacity: .85; }
.group { margin-top: 8px; }
.group > b { display: block; padding: 2px 16px 3px; color: var(--faint); font-size: 14px; font-weight: 700; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li + li { margin-top: 0; }
.side a { display: block; padding: 3px 16px; color: var(--dim); text-decoration: none; font-weight: 600; line-height: 1.3; border-left: 3px solid transparent; }
.side a:hover { color: var(--bone); background: rgba(255,255,255,.04); }
.side a[aria-current="page"] { color: var(--bone); background: var(--panel); border-left-color: var(--signal); }
.side .sub { display: none; padding: 2px 0 6px; }
.side a[aria-current="page"] + .sub { display: block; }
.side .sub a { padding: 2px 16px 2px 30px; font-size: 16px; font-weight: 500; color: var(--faint); }
.side .sub a:hover, .side .sub a.on { color: var(--bone); }
/* search results: one per heading, the topic above it, a snippet with the match marked */
.results ul { list-style: none; margin: 0; padding: 0; }
.results [role="option"] { display: block; padding: 6px 16px; color: var(--dim); cursor: pointer; border-left: 3px solid transparent; line-height: 1.3; }
.results [role="option"] b { display: block; color: var(--bone); font-weight: 700; }
.results [role="option"] small { display: block; color: var(--faint); font-weight: 600; font-size: 13px; }
.results [role="option"] span { display: block; color: var(--dim); font-size: 15px; font-weight: 500; margin-top: 2px; }
.results [role="option"]:hover, .results [role="option"][aria-selected="true"] { background: var(--panel); border-left-color: var(--signal); }
.results mark, mark.hit { background: var(--signal); color: var(--ink); border-radius: 2px; padding: 0 1px; }
.results .none { margin: 6px 16px; color: var(--faint); font-size: 16px; }
.results .none a { display: inline; padding: 0; border: 0; color: var(--signal); }
.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 35% { background: rgba(196,181,80,.28); box-shadow: 0 0 0 6px rgba(196,181,80,.28); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.wrong-link { margin: 0 12px 4px; }
.side a.wrong-link { padding: 4px 4px; border: 0; color: var(--signal); font-weight: 700; }
/* collapsible groups */
.group-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; cursor: pointer; padding: 3px 16px; color: var(--faint); font: 700 14px/1.3 var(--text); text-align: left; }
.group-btn:hover { color: var(--bone); }
.group-btn .chev { transition: transform .15s; font-size: 12px; }
.group-btn[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.group-btn[aria-expanded="false"] + ul { display: none; }
/* on this page (wide screens) */
.toc { display: none; }
@media (min-width: 1200px) {
  .docs { width: min(1400px, 100% - 32px); grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 40px; }
  /* (the top bar and the footer line up with the three columns) */
  .top .wrap, footer { width: min(1400px, 100% - 32px); }
  .toc:not([hidden]) { display: block; position: sticky; top: calc(var(--top) + 20px); margin: 26px 0 40px; max-height: calc(100vh - var(--top) - 40px); overflow-y: auto; scrollbar-width: thin; }
  .toc-title { margin: 0 0 6px; color: var(--faint); font-size: 14px; font-weight: 700; }
  .toc ul { list-style: none; margin: 0; padding: 0; box-shadow: inset 1px 0 0 var(--bevel-lo); }
  .toc a { display: block; padding: 3px 10px; color: var(--faint); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.3; border-left: 2px solid transparent; }
  .toc a.h3 { padding-left: 22px; font-weight: 500; font-size: 14px; }
  .toc a:hover { color: var(--bone); }
  .toc a.on { color: var(--bone); border-left-color: var(--signal); }
}
@media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 2px solid var(--signal); } .group-btn .chev { transition: none; } }
html:not(.js) .search { display: none; }
html:not(.js) .side .sub { display: block; }

.menu-btn { display: none; }

article { padding: 26px 0 64px; min-width: 0; max-width: 780px; }
.topic + .topic { margin-top: 56px; }
.js .topic { display: none; }
.js .topic + .topic { margin-top: 0; }
.js .topic.on { display: block; }
.crumb { color: var(--faint); font-size: 15px; font-weight: 600; margin: 0; }
h1 { font: 400 38px/1.1 var(--stencil); margin: 4px 0 6px; }
h2 { font-size: 23px; line-height: 1.3; margin: 32px 0 4px; }
h2 .anchor { color: var(--faint); text-decoration: none; margin-left: 6px; font-weight: 500; opacity: 0; }
h2:hover .anchor, h2 .anchor:focus { opacity: .8; }
h3 { font-size: 19px; margin: 22px 0 4px; }
p, li, td { color: var(--dim); text-wrap: pretty; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 4px; }
b, strong { color: var(--bone); }
.lead { font-size: 20px; margin: 6px 0 0; }
code { font: 15px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--side); padding: 1px 5px; border-radius: 2px; color: var(--bone); overflow-wrap: anywhere; }
pre { background: #23271c; box-shadow: var(--sunken); padding: 12px 14px; border-radius: 2px; overflow-x: auto; margin: 10px 0 14px; }
pre code { background: none; padding: 0; font-size: 14px; white-space: pre; overflow-wrap: normal; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 17px; }
th, td { text-align: left; padding: 7px 14px 7px 0; border-bottom: 1px solid rgba(0,0,0,.2); vertical-align: top; }
th { color: var(--faint); font-weight: 600; font-size: 15px; }
td:first-child { white-space: nowrap; }
.kbd { font: 600 14px/1 ui-monospace, Menlo, Consolas, monospace; background: var(--panel-2); box-shadow: var(--raised); padding: 3px 7px; border-radius: 2px; color: var(--bone); white-space: nowrap; }
/* two balanced cards side by side (What can be shared), stacked on phones */
.yesno { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 16px; }
.yesno > section { background: var(--panel); box-shadow: var(--raised); border-radius: 3px; padding: 12px 16px 10px; }
.yesno h3 { margin: 0 0 6px; font-size: 18px; }
.yesno ul { padding-left: 24px; margin: 0; }
.yesno li { font-size: 17px; line-height: 1.5; }
.yesno li + li { margin-top: 6px; }
article .yesno ul > li::before { content: "✓"; width: auto; height: auto; background: none; box-shadow: none; top: 0; left: -22px; font-weight: 700; color: #9be36a; }
article .yesno .no ul > li::before { content: "✕"; color: #ff8f80; }
/* a code chip never breaks in the middle: the line wraps between chips */
.yesno code, td code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 640px) { .yesno { grid-template-columns: 1fr; } }
.note { background: var(--panel); box-shadow: var(--raised); border-radius: 3px; padding: 10px 16px; margin: 16px 0; }
.note p { margin: 4px 0; }
.msg { border-left: 3px solid var(--panel-2); padding: 2px 0 2px 12px; margin: 8px 0; color: var(--bone); font-style: italic; }
article ul { list-style: none; padding-left: 22px; }
article ul > li { position: relative; }
article ul > li::before { content: ""; position: absolute; left: -18px; top: .66em; width: 7px; height: 7px; background: var(--signal); box-shadow: inset -1px -1px 0 #8c7f33, inset 1px 1px 0 #e3d683; }
article ol { list-style: none; padding-left: 34px; counter-reset: step; }
article ol > li { position: relative; counter-increment: step; }
article ol > li::before { content: counter(step); position: absolute; left: -34px; top: .15em; width: 22px; height: 22px; display: grid; place-items: center; background: var(--signal); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1; box-shadow: inset -2px -2px 0 #8c7f33, inset 2px 2px 0 #e3d683; }
.side .sub a { position: relative; }
.side .sub a::before { content: ""; position: absolute; left: 17px; top: .72em; width: 5px; height: 5px; background: var(--faint); opacity: .6; }
.side .sub a.on::before, .side .sub a:hover::before { background: var(--signal); opacity: 1; }
.menu-label { color: var(--faint); font-size: 14px; font-weight: 600; margin-right: 8px; }
details.prov { background: var(--panel); box-shadow: var(--raised); border-radius: 2px; margin: 8px 0; }
details.prov summary { cursor: pointer; padding: 9px 14px; font-weight: 700; color: var(--bone); }
details.prov p { margin: 0; padding: 0 14px 12px; }
@media (hover: none) { h2 .anchor { display: none; } }
@media (max-width: 520px) {
  .table tr { display: block; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.2); }
  .table td, .table th { display: block; border: 0; padding: 0; }
  .table td:first-child { margin-bottom: 2px; }
  .table thead { display: none; }
}
figure.shot { margin: 16px 0 20px; }
figure.shot img { display: block; width: 100%; height: auto; border-radius: 3px; background: #23271c; box-shadow: var(--raised), 0 14px 40px rgba(0,0,0,.3); }
figure.shot figcaption { margin-top: 8px; color: var(--faint); font-size: 15px; }
h3 { font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--bevel-lo); }
.pager a { display: block; text-decoration: none; background: var(--panel); box-shadow: var(--raised); border-radius: 3px; padding: 10px 16px; min-width: 0; color: var(--bone); font-weight: 700; }
.pager a small { display: block; color: var(--faint); font-weight: 500; font-size: 14px; }
.pager a:hover { background: var(--panel-2); }
.pager .next { margin-left: auto; text-align: right; }
.pager a[hidden] { display: none; }
html:not(.js) .pager { display: none; }

footer { width: min(1200px, 100% - 32px); margin: 0 auto; padding: 24px 0 48px; color: var(--faint); font-size: 15px; box-shadow: inset 0 1px 0 var(--bevel-lo); }
footer a { color: var(--dim); }

@media (max-width: 900px) {
  .top nav a:not(.btn) { display: none; }
  .brand .here { display: none; }
  html { scroll-padding-top: calc(var(--top) + 64px); }
  .docs { grid-template-columns: 1fr; gap: 0; }
  .rail { display: contents; }
  .js .menu-btn { position: sticky; top: var(--top); z-index: 5; display: flex; align-items: center; justify-content: space-between; width: calc(100% + 32px); margin: 0 -16px; padding: 12px 16px;
    font: 700 17px/1.2 var(--text); color: var(--bone); background: var(--panel); box-shadow: 0 1px 0 var(--bevel-lo); border: 0; cursor: pointer; text-align: left; }
  .menu-btn .chev { transition: transform .15s; }
  .menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .side { position: static; max-height: none; margin: 0; border-radius: 0 0 3px 3px; }
  .js .side { display: none; position: sticky; top: calc(var(--top) + 46px); z-index: 4; max-height: calc(100dvh - var(--top) - 60px); overflow-y: auto; }
  .js .side.open { display: block; }
  h1 { font-size: 32px; }
  td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .menu-btn .chev { transition: none; } }
/* themed scrollbars (thin, dark track, muted thumb), as on the reference pages */
* { scrollbar-width: thin; scrollbar-color: #5a6a50 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #5a6a50; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #6b7d5e; }
::-webkit-scrollbar-corner { background: transparent; }
/* the search boxes' clear button in the site's colors (Chrome draws a blue one) */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer; background: #b9c2ad; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
input[type="search"]::-webkit-search-cancel-button:hover { background: #e8ecdf; }
