/* Generated by frontend-react/scripts/build-docs.mjs. Standalone on purpose:
   the app's stylesheet is built for a dense operator dashboard, and coupling a
   public docs site to it would mean every dashboard tweak reflowed the docs. */
:root {
  --bg: #ffffff; --surface: #f6f7f9; --text: #16191d; --muted: #5b6470;
  --accent: #0b6bcb; --border: #dfe3e8; --code-bg: #f0f2f5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c; --surface: #1e2126; --text: #e7e9ec; --muted: #9aa3ae;
    --accent: #5aa9f5; --border: #2c3037; --code-bg: #23272d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 .6rem; }
p, li { color: var(--text); }
a { color: var(--accent); }
ul { padding-left: 1.25rem; }
li { margin: .35rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
code { background: var(--code-bg); padding: .12em .38em; border-radius: 4px; }
pre { background: var(--code-bg); padding: .9rem 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.lede { font-size: 1.08rem; color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; }

.site-head {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline;
  justify-content: space-between; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.site-head .brand { font-weight: 700; text-decoration: none; color: var(--text); }
.site-head nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-head nav a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.site-head nav a:hover { color: var(--accent); }
.site-head nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-foot {
  border-top: 1px solid var(--border); padding: 1.25rem;
  text-align: center; color: var(--muted); font-size: .87rem;
}
.site-foot p { margin: 0; }
.copyright { margin-top: .35rem; opacity: .8; }

.hero { margin-bottom: 2.5rem; }
.downloads { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .75rem; }
.download {
  display: flex; flex-direction: column; gap: .15rem; text-decoration: none;
  padding: .8rem 1.15rem; border-radius: 10px;
  background: var(--accent); color: #fff; min-width: 14rem;
}
.download span { font-size: .85rem; opacity: .85; }

.help-section, .topic, .api-group { margin-bottom: 1.5rem; }
.topic + .topic, .api-group + .api-group { border-top: 1px solid var(--border); padding-top: .5rem; }

.tag {
  display: inline-block; vertical-align: middle; margin-left: .5rem;
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: .18em .5em; border-radius: 999px;
  background: var(--code-bg); color: var(--muted); border: 1px solid var(--border);
}
.tag-open { color: #1a7f4b; border-color: #1a7f4b55; }
.tag-local { color: #a35b00; border-color: #a35b0055; }
@media (prefers-color-scheme: dark) {
  .tag-open { color: #5bd08c; } .tag-local { color: #e0a15a; }
}

/* Screenshots. max-width:100% is what keeps a 1280px capture from forcing the
   page sideways on a phone; the border matters because these are captures of a
   dark UI that would otherwise bleed into a dark page with no edge. */
.shot { margin: 0 0 1.5rem; }
.shot img {
  display: block; width: 100%; max-width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.shot figcaption {
  margin-top: .45rem; color: var(--muted); font-size: .87rem; line-height: 1.5;
}

/* Wide content scrolls inside its own box; the page body never scrolls sideways. */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td:first-child { width: 5.5rem; }
.m { font-weight: 700; background: none; padding: 0; }
.m-get { color: #1a7f4b; } .m-post { color: #0b6bcb; }
.m-put, .m-patch { color: #a35b00; } .m-delete { color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .m-get { color: #5bd08c; } .m-post { color: #5aa9f5; }
  .m-put, .m-patch { color: #e0a15a; } .m-delete { color: #f2857c; }
}
