/* Steam MCP Server site. Hand-written; the HTML is generated by site/build.ts. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #1b2838;
  --deep: #141e2a;
  --raise: #223246;
  --ink: #e3ebf2;
  --dim: #9aabbb;
  --rule: #2f4157;
  --blue: #66c0f4;
  --warn: #e8b45a;
  /* key colors: what a tool needs before it answers */
  --k-none: #66c0f4;
  --k-local: #a3b1be;
  --k-key: #a4d07b;
  --k-publisher: #e8b45a;
  --k-financial: #ea8a80;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: #9bd6f8; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
p code, li code, td code, th code { color: #c6dbe9; overflow-wrap: anywhere; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--bg); padding: 6px 10px; z-index: 2; }

/* header and footer */
.top { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; margin-right: auto; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #dfe7ee; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--dim); text-decoration: none; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.foot { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 28px; padding-bottom: 40px; color: var(--dim); font-size: 14px; }
.foot p + p { margin-top: 6px; }
.foot p:last-child a { margin-right: 18px; }

/* hero */
.hero { padding-top: 44px; padding-bottom: 56px; }
h1 { font-size: 64px; line-height: 1; font-weight: 700; font-stretch: 76%; letter-spacing: -0.01em; max-width: 17ch; }
.lede { margin-top: 18px; max-width: 64ch; }
.cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.btn { display: inline-flex; align-items: center; background: var(--blue); color: #0d1822; padding: 0 20px; min-height: 44px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.btn:hover { background: #8fd0f7; color: #0d1822; }
.npx .code pre { padding: 11px 64px 11px 14px; }
.tracks { margin-top: 28px; font-size: 14px; color: var(--dim); max-width: 80ch; }

/* key map */
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: 14px; color: var(--dim); }
.legend-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin-top: 36px; font-size: 14px; }
.legend-row .legend { margin-top: 0; }
.legend-row .lab { font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0; background: currentColor; }
.k-none { --k: var(--k-none); }
.k-local { --k: var(--k-local); }
.k-key { --k: var(--k-key); }
.k-publisher { --k: var(--k-publisher); }
.k-financial { --k: var(--k-financial); }
.sw[class*="k-"] { background: var(--k); }
.map { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 16px; margin-top: 18px; }
.map h3 { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; font-stretch: 90%; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--rule); }
.map .n { color: var(--dim); font-weight: 400; }
.map .off h3 { border-bottom-style: dashed; }
.map ul { list-style: none; padding: 0; }
.chip { display: block; margin: 3px 0; padding: 5px 8px 5px 10px; border-left: 3px solid var(--k); background: var(--deep); border-radius: 0 3px 3px 0; color: var(--ink); text-decoration: none; font: 400 12px/1.4 var(--mono); white-space: nowrap; }
.chip:hover { background: var(--raise); color: #fff; }
.offnote { margin-top: 8px; font-size: 13px; color: var(--warn); }

/* sections */
.band { border-top: 1px solid var(--rule); padding-top: 56px; padding-bottom: 56px; }
h2 { font-size: 34px; line-height: 1.1; font-weight: 700; font-stretch: 82%; }
h2 + p, h2 + .lede { margin-top: 12px; }
.band > p + p, .band > .lede + .code, .band > .table + .code { margin-top: 16px; }
h3 { font-size: 19px; font-weight: 600; }

/* reference zone: toolsets, prompts, resources, config, plugin. One rule
   above the zone, smaller headings and text, tighter spacing. */
.ref { border-top: 0; padding-top: 28px; padding-bottom: 28px; }
.ref-first { border-top: 1px solid var(--rule); padding-top: 48px; }
.ref h2 { font-size: 24px; font-stretch: 90%; }
.ref .lede, .ref p { font-size: 15px; max-width: 72ch; }
.ref:last-child { padding-bottom: 48px; }

/* code blocks with copy */
.code { position: relative; margin-top: 16px; }
.cta .code, .npx { margin-top: 0; }
.code pre { background: var(--deep); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
.copy { position: absolute; top: 6px; right: 6px; font: 500 12px var(--sans); color: var(--dim); background: var(--raise); border: 1px solid var(--rule); border-radius: 3px; padding: 4px 9px; cursor: pointer; }
.copy:hover { color: var(--ink); }

/* example */
.example { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.example .copy-col p { margin-top: 12px; max-width: 44ch; }
.transcript { list-style: none; padding: 0; background: var(--deep); border: 1px solid var(--rule); border-radius: 6px; }
.transcript li { padding: 16px 20px; border-top: 1px solid var(--rule); }
.transcript li:first-child { border-top: 0; }
.transcript .call { background: #111a24; }
.who { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.transcript .q { font-size: 18px; }
.transcript pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript pre a { color: var(--blue); text-decoration: none; }
.transcript pre a:hover { text-decoration: underline; }

/* setup tabs */
.tabs { margin-top: 24px; max-width: 820px; }
.tablist { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule); }
.tablist[hidden] { display: none; }
.tablist button { font: 500 15px var(--sans); color: var(--dim); background: none; border: 0; padding: 10px 14px; min-height: 44px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.panel { padding-top: 4px; }
.panel + .panel { margin-top: 24px; }
.panel > p { margin-top: 12px; }
.panel-title { margin-top: 12px; }
.js .panel + .panel { margin-top: 0; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.keys { margin-top: 40px; max-width: 820px; }
.keys ul { list-style: none; padding: 0; margin-top: 12px; }
.keys li { padding: 6px 0 6px 22px; position: relative; }
.keys li .sw { position: absolute; left: 0; top: 14px; }
.keys > p { margin-top: 10px; color: var(--dim); font-size: 15px; }

/* tables */
.table { overflow-x: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
thead th { color: var(--dim); font-weight: 500; }
tbody th { font-weight: 400; white-space: nowrap; }
.warn { color: var(--warn); }

/* write safety */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; max-width: 900px; }
figcaption { font-size: 14px; color: var(--dim); }
.pair .code { margin-top: 8px; }
#writes > p:last-child { margin-top: 20px; max-width: 80ch; }

/* prompts and resources */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.two p { margin-top: 10px; }
.defs { list-style: none; padding: 0; margin-top: 18px; }
.defs li { padding: 10px 0; border-top: 1px solid var(--rule); }
.defs code { display: block; color: var(--blue); }
.defs span { display: block; color: var(--dim); font-size: 15px; margin-top: 2px; }
.companion p { margin-top: 12px; max-width: 72ch; }

.notfound { padding-top: 64px; padding-bottom: 96px; }

/* tool reference */
.reference { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 24px; }
.toc { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 16px 0 32px; font-size: 14px; }
.toc ul { list-style: none; padding: 0; }
.toc > ul > li + li { margin-top: 14px; }
.toc .set { color: var(--ink); font-weight: 600; text-decoration: none; }
.toc li li a { display: block; padding: 2px 0 2px 10px; margin-top: 2px; border-left: 2px solid var(--k); color: var(--dim); text-decoration: none; font: 400 12.5px/1.5 var(--mono); }
.toc li li a:hover { color: var(--ink); }
.page-title { font-size: 52px; }
.reference .legend { margin-top: 20px; }
.group { padding-top: 48px; }
.group h2 code { font-size: 0.8em; color: var(--ink); }
.group h2 .n { font-size: 17px; font-weight: 400; font-stretch: 100%; color: var(--dim); margin-left: 8px; }
.tool { margin-top: 24px; padding: 20px 22px; background: var(--deep); border: 1px solid var(--rule); border-left: 3px solid var(--k); border-radius: 0 4px 4px 0; scroll-margin-top: 16px; }
.tool:target { border-color: var(--k); }
.tool .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 6px; font-size: 14px; color: var(--dim); }
.tool .meta code { color: var(--blue); font-size: 13px; }
.badge .sw { margin-right: 6px; }
.tool .desc { margin-top: 12px; max-width: 80ch; }
.params { margin-top: 14px; font-size: 14px; }
.params caption { text-align: left; color: var(--dim); font-size: 13px; padding-bottom: 4px; }
.params th { width: 1%; padding-right: 20px; }
.params th code { color: var(--ink); }
.params td { color: #c3d0db; }
.req { display: block; font-size: 12px; color: var(--warn); font-weight: 400; }
.noparams { margin-top: 12px; font-size: 14px; color: var(--dim); }

@media (max-width: 900px) {
  .reference { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-title { font-size: 40px; }
  .tool { padding: 16px; }
  .params th { white-space: normal; overflow-wrap: anywhere; }
  .toc { position: static; max-height: none; padding: 0 0 8px; }
  .toc > ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .toc > ul > li + li { margin-top: 0; }
  .toc ul ul { display: none; }
  .toc .set { color: var(--blue); font-weight: 500; }
}

@media (max-width: 1200px) {
  .map { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 1000px) {
  .example, .two { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { flex-wrap: wrap; gap: 10px 18px; }
  .top nav { width: 100%; flex-wrap: wrap; gap: 6px 18px; }
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  .hero { padding-top: 24px; }
  .band { padding-top: 40px; padding-bottom: 40px; }
  .ref { padding-top: 24px; padding-bottom: 24px; }
  .ref-first { padding-top: 40px; }
  .map { grid-template-columns: 1fr; gap: 18px; }
  .map ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { margin: 0; }
  .pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
