/* xQuakShell site. The page is drawn as one application window in the dark XP
   "Royale Noir" manner, on the palette the application itself uses. System fonts
   only: Tahoma is the XP interface face, and no web font is downloaded at all. */

:root {
  --client: #1e1e1e;
  --panel: #252526;
  --raised: #2d2d2d;
  --hover: #383838;
  --input: #3c3c3c;
  --line: #3c3c3c;
  --line-soft: #313131;
  --text: #cccccc;
  --muted: #969696;
  --bright: #ececec;
  --accent: #4b8bbf;
  --accent-hi: #6ea7d6;
  --legend: #7fb2dc;
  --frog: #3fb950;
  --tongue: #d9432f;
  --warn: #c49040;
  --ui: Tahoma, Verdana, "DejaVu Sans", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "DejaVu Sans Mono", "Courier New", monospace;
  --chrome-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--chrome-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--client);
  color: var(--text);
  font: 15px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); text-underline-offset: 2px; }
a:hover { color: #9cc6ea; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .88em; }
code { color: #d7ba7d; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--accent); color: #fff; padding: 6px 10px; }

/* ---------- Window frame ---------- */
/* The page is the window: it fills the viewport, as a maximised application does. */
.win { min-height: 100vh; display: flex; flex-direction: column; background: var(--client); }
.chrome { position: sticky; top: 0; z-index: 20; }
.titlebar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 8px;
  background: linear-gradient(180deg, #4a515c 0, #2c3038 8%, #1f2227 48%, #15171b 52%, #23262c 100%);
  box-shadow: 0 1px 0 #5a6270 inset;
  color: #fff;
  font: 700 13px/1 var(--ui);
  text-shadow: 1px 1px 0 #000;
  user-select: none;
}
.titlebar img { width: 16px; height: 16px; }
.titlebar .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.caps { display: flex; gap: 2px; }
.caps span {
  width: 21px; height: 21px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 3px;
  background: linear-gradient(180deg, #5b6371, #2b3038 55%, #3a404b);
  position: relative;
}
.caps span::after { content: ""; position: absolute; background: #fff; }
.caps .min::after { left: 5px; right: 8px; bottom: 5px; height: 3px; }
.caps .max::after { inset: 4px; background: none; border: 1px solid #fff; border-top-width: 3px; }
.caps .cls { background: linear-gradient(180deg, #f07a62, var(--tongue) 55%, #b5321f); }
.caps .cls::after { content: "\00d7"; background: none; inset: 0; font: 700 17px/19px var(--ui); text-align: center; }

.menubar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--panel);
  border-bottom: 1px solid #111214;
  box-shadow: 0 -1px 0 var(--line) inset;
  font: 13px/1 var(--ui);
  padding: 0 4px;
}
.menubar a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 11px 9px;
  display: block;
}
.menubar a:hover { background: var(--accent); color: #fff; }
.menubar a[aria-current="page"] {
  color: var(--bright);
  background: var(--client);
  box-shadow: 1px 1px 0 #111 inset, -1px -1px 0 #3a3a3a inset;
}
.menubar .gh { margin-left: auto; color: var(--muted); }

.body {
  flex: 1;
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  /* The tree column is painted here so it runs the full page height while the tree itself stays sticky. */
  background: linear-gradient(90deg, var(--panel) 233px, #191919 233px 236px, var(--client) 236px);
}

/* ---------- Tree (built from the page's own headings) ---------- */
.tree {
  position: sticky;
  top: var(--chrome-h);
  align-self: start;
  max-height: calc(100vh - var(--chrome-h));
  overflow: auto;
  font: 13px/1 var(--ui);
  padding: 8px 3px 16px 0;
}
.tree .hd { color: var(--muted); padding: 6px 12px 10px; font-size: 12px; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { margin-left: 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.tree a {
  display: flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px 0 8px;
  color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden;
}
.tree a:hover { background: var(--hover); }
.tree a.on { background: var(--hover); color: var(--bright); box-shadow: 2px 0 0 var(--accent) inset; }
.tree svg { flex: none; width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.4; opacity: .8; }
.tree .chev { width: 10px; height: 10px; opacity: .55; }
.tree .nochev { width: 10px; flex: none; }
.tree .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--frog); }
.tree span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Content ---------- */
.content { padding: 40px 48px 56px; min-width: 0; max-width: 1340px; }
.prose { max-width: 760px; }
h1, h2, h3, h4 { color: var(--bright); line-height: 1.25; margin: 0; font-weight: 700; }
h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.01em; }
h2 { font-size: 25px; margin: 64px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
h3 { font-size: 17px; margin: 30px 0 6px; }
h4 { font-size: 15px; margin: 18px 0 4px; }
p { margin: 0 0 14px; }
.lead { font-size: 17px; color: var(--text); max-width: 680px; }
.muted { color: var(--muted); }
ul.list { margin: 0 0 16px; padding-left: 20px; }
ul.list li { margin: 4px 0; }
ul.list li::marker { color: var(--accent); }
.page-head { margin-bottom: 8px; }
.page-head h1 { margin-bottom: 14px; }
.content > section:first-of-type > h2:first-child, .first { margin-top: 40px; }

/* XP group box: the legend names what the box holds. */
fieldset.grp {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0;
  padding: 10px 18px 14px;
  min-width: 0;
  box-shadow: 1px 1px 0 #151515 inset;
}
fieldset.grp > legend { color: var(--legend); padding: 0 6px; font-size: 14px; font-weight: 700; }
fieldset.grp ul { margin: 2px 0 0; padding-left: 18px; }
fieldset.grp li { margin: 5px 0; }
fieldset.grp li::marker { color: #59626e; }
fieldset.grp p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid #0f1012;
  border-radius: 3px;
  background: linear-gradient(180deg, #474b52, #34373c 50%, #2b2d31);
  box-shadow: 0 1px 0 #5c6068 inset;
  color: var(--bright);
  font: 700 14px/1.2 var(--ui);
  text-decoration: none;
}
.btn:hover { color: #fff; background: linear-gradient(180deg, #525760, #3c4047 50%, #31343a); }
.btn:active { box-shadow: 1px 1px 2px #000 inset; }
/* The XP start button: the one green, primary action on a page. */
.btn.go {
  border-color: #163d16;
  border-radius: 3px 14px 14px 3px;
  padding: 9px 22px 9px 16px;
  background: linear-gradient(180deg, #6cc46a 0, #3a9a3a 18%, #2f8a30 60%, #3c9d3c 100%);
  box-shadow: 0 1px 0 #9de39a inset, 1px 2px 4px rgba(0, 0, 0, .5);
  text-shadow: 1px 1px 1px #123612;
  color: #fff;
  font-style: italic;
  font-size: 15px;
}
.btn.go:hover { filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); }
.hero .lead { margin-bottom: 0; }
.hero .btns { margin-top: 20px; }
.props {
  display: flex; flex-wrap: wrap; margin: 30px 0 18px;
  border: 1px solid var(--line); background: var(--panel); font-size: 13px;
}
.props > div { flex: 1 1 200px; padding: 9px 14px; box-shadow: -1px 0 0 var(--line); }
.props dt { color: var(--muted); }
.props dd { margin: 2px 0 0; color: var(--bright); }

/* The live demo: the application's own frontend in an iframe, framed as a window. */
.mock {
  border: 1px solid #08090b;
  border-radius: 7px 7px 2px 2px;
  background: var(--client);
  box-shadow: 0 0 0 1px #3d4350 inset, 0 14px 36px rgba(0, 0, 0, .5);
  overflow: hidden;
  font: 12px/1 var(--ui);
}
.mock .titlebar { height: 24px; font-size: 12px; border-radius: 6px 6px 0 0; }
.mock .caps span { width: 17px; height: 17px; }
.mock .caps .cls::after { font-size: 14px; line-height: 15px; }
.demo-frame { aspect-ratio: 16 / 9; min-height: 520px; background: #1e1e1e; }
.demo-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-still { display: none; position: relative; color: #fff; text-decoration: none; }
.demo-still span {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  padding: 8px 14px; background: var(--accent); border: 1px solid #0f1012; font: 700 14px/1 var(--ui); white-space: nowrap;
}
.term {
  margin: 0;
  padding: 8px 10px;
  background: #181818;
  color: #d4d4d4;
  font: 12.5px/1.5 var(--mono);
  white-space: pre;
  overflow: hidden;
}
.sbar { display: flex; gap: 2px; padding: 2px; background: var(--panel); border-top: 1px solid #111; font: 12px/1 var(--ui); color: var(--muted); }
.sbar > * {
  padding: 5px 8px;
  box-shadow: 1px 1px 0 #151515 inset, -1px -1px 0 #333 inset;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbar .grow { flex: 1; }
.mock-note { font-size: 13px; margin: 8px 0 0; }

/* ---------- XP list view (details) ---------- */
.tbl-wrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); box-shadow: 1px 1px 0 #111 inset; }
table.lv { border-collapse: collapse; width: 100%; font-size: 14px; background: #1b1b1b; }
table.lv th {
  text-align: left; font-weight: 400; color: var(--bright); font-size: 13px;
  padding: 6px 12px;
  background: linear-gradient(180deg, #34363a, #2a2b2e);
  border-right: 1px solid #1a1a1a; border-bottom: 1px solid #111;
  box-shadow: 1px 1px 0 #44464b inset;
  white-space: nowrap;
}
table.lv td { padding: 9px 12px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.lv tr:hover td { background: #232427; }
table.lv td:first-child { color: var(--bright); white-space: nowrap; }
table.lv.cmp td:last-child { color: var(--bright); }
table.lv.cmp td:nth-child(2) { color: var(--muted); }
table.lv .y { color: var(--frog); } .lv .n { color: var(--tongue); } .lv .w { color: var(--warn); }

/* ---------- Platform graph ---------- */
.pgraph {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; margin: 18px 0 8px;
  border: 1px solid var(--line); background: #1b1c1e; box-shadow: 1px 1px 0 #111 inset;
}
.pg-stage { position: relative; min-width: 0; overflow-x: auto; padding: 8px 4px 0; }
.pg-svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--ui); }
.pg-hint { margin: 0; padding: 4px 12px 10px; font-size: 12px; color: var(--muted); }
.pg-panel { border-left: 1px solid var(--line); background: var(--panel); padding: 18px 20px; min-width: 0; }
.gp { margin-bottom: 18px; }
.pgraph.js .gp { display: none; margin: 0; }
.pgraph.js .gp.on { display: block; animation: gp-in .25s ease-out; }
@keyframes gp-in { from { opacity: 0; transform: translateY(4px); } }
.gp-k { margin: 0 0 4px; font-size: 12px; color: var(--legend); }
.gp h3 { margin: 0 0 10px; font-size: 20px; }
.gp p { font-size: 14px; }
.gp-dl { margin: 0 0 12px; font-size: 13px; }
.gp-dl dt { color: var(--bright); margin-top: 8px; }
.gp-dl dd { margin: 1px 0 0; color: var(--text); }

.ge { fill: none; stroke: #34373c; stroke-width: 2; transition: stroke .2s, stroke-width .2s; }
.ge.hot { stroke: #4b6f8f; stroke-width: 2.5; }
.boundary { fill: rgba(196, 144, 64, .04); stroke: #6b5228; stroke-width: 1.5; stroke-dasharray: 7 5; }
.blabel { fill: var(--muted); font-size: 12px; }
.pk { fill: #9cc6ea; filter: drop-shadow(0 0 4px #4b8bbf); pointer-events: none; }

.gn { cursor: pointer; outline: none; transition: opacity .2s; }
.gn rect, .gn polygon { fill: #2d2d2d; stroke: #4a4a4a; stroke-width: 1.5; transition: stroke .2s, fill .2s; }
.gn text { fill: var(--bright); font-size: 15px; pointer-events: none; }
.gn .big { font-size: 20px; font-weight: 700; }
.gn .sub { fill: var(--muted); font-size: 12px; }
.gn.core-proto rect { fill: #22313f; stroke: #3d5d7a; }
.gn.plug rect { fill: #1f3123; stroke: #2f6b38; }
.gn.own rect { fill: #2b2718; stroke: #8a6a2e; stroke-dasharray: 5 3; }
.gn.svc rect { fill: #252526; stroke: #3c3c3c; }
.gn.gate polygon { fill: #2b2718; stroke: #c49040; }
.gn.core rect { fill: #1b2633; stroke: var(--accent); stroke-width: 2; }
.pg-svg.focused .gn:not(.on):not(.lit) { opacity: .45; }
.gn.lit rect, .gn.lit polygon { stroke: #6ea7d6; }
.gn.on rect, .gn.on polygon { stroke: #fff; stroke-width: 2; }
.gn:hover rect, .gn:hover polygon, .gn:focus-visible rect, .gn:focus-visible polygon { stroke: #fff; }
.gn:focus-visible { opacity: 1 !important; }
.gn.ping rect { animation: ping .5s ease-out; }
@keyframes ping { from { fill: #2c4a63; } }

/* ---------- Bits ---------- */
kbd {
  display: inline-block; padding: 1px 6px; border: 1px solid #4a4a4a; border-bottom-width: 2px;
  border-radius: 3px; background: #2a2a2a; color: var(--bright); font-size: 12px; white-space: nowrap;
}
pre.code {
  margin: 10px 0 18px; padding: 14px 16px; overflow-x: auto;
  background: #181818; border: 1px solid var(--line); box-shadow: 1px 1px 0 #0d0d0d inset;
  color: #d4d4d4; font-size: 13px; line-height: 1.55;
}
pre.code .k { color: #9cdcfe; } pre.code .s { color: #ce9178; } pre.code .c { color: #6a9955; } pre.code .p { color: #6cc46a; }
.info {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  margin: 14px 0 18px; padding: 12px 14px;
  background: #2b2718; border: 1px solid #5b4d24; border-radius: 3px; font-size: 14px;
}
.info svg { width: 20px; height: 20px; }
.info p { margin: 0; }
.info p + p { margin-top: 6px; }
.pill { display: inline-block; font: 12px/1 var(--ui); padding: 3px 6px; border: 1px solid; border-radius: 2px; vertical-align: 2px; }
.pill.g { color: var(--frog); border-color: #2f6b38; }
.pill.w { color: var(--warn); border-color: #6b5228; }
.pill.r { color: #e06c5a; border-color: #6b2f28; }
.copy { position: relative; }
.copy button {
  position: absolute; top: 8px; right: 8px; font: 12px/1 var(--ui); color: var(--text);
  background: var(--raised); border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; cursor: pointer;
}
.copy button:hover { background: var(--hover); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.rel { border-top: 1px solid var(--line); padding-top: 4px; }
.rel h2 { border: 0; margin-top: 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.rel h2 small { font-size: 14px; font-weight: 400; color: var(--muted); }
.rel h3 small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.dl { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.dl a {
  display: flex; align-items: center; gap: 7px; padding: 6px 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  text-decoration: none; font-size: 13px;
}
.dl a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.dl a b { color: var(--bright); font-weight: 700; }
.dl a:hover b { color: #fff; }
.dl svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.4; opacity: .8; }
.dl .more { background: none; border-style: dashed; color: var(--accent-hi); }
.cta-row { margin-top: 56px; padding: 22px 24px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-row p { margin: 0; color: var(--bright); font-size: 16px; }
.cta-row .btns { margin: 0; }

/* ---------- Status bar footer ---------- */
.foot { font-size: 12px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--bright); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .content { padding: 32px 28px 48px; }
}
@media (max-width: 820px) {
  .demo-frame { display: none; }
  .demo-still { display: block; }
  .body { grid-template-columns: 1fr; background: var(--client); }
  .tree { display: none; }
  .content { padding: 26px 16px 40px; }
  .menubar a { padding: 9px 9px; }
  .menubar .gh { margin-left: 0; }
  .split { grid-template-columns: 1fr; }
  .pgraph { grid-template-columns: 1fr; }
  .pg-panel { border-left: 0; border-top: 1px solid var(--line); }
  .grid.two { grid-template-columns: 1fr; }
  .foot .hide-s { display: none; }
  h2 { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .pgraph.js .gp.on, .gn.ping rect { animation: none; }
  html { scroll-behavior: auto; }
}
