/* Orbital — the documentation shell. One stylesheet for every /docs page, both languages.

   IT IS NOT LINKED BY THE PAGES. tools/docs_stamp.py copies it INTO each page's head, because a
   linked stylesheet is render-blocking and revalidated on every navigation, and the dark ground is
   defined here: between two pages the browser painted its own white canvas and the menu blinked.
   So: edit this file, then run `python3.14 tools/docs_stamp.py` or nothing changes on the pages. */
:root { color-scheme: dark; --ink:#eef2f8; --dim:#9aa6b6; --faint:#79838f; --line:rgba(255,255,255,.09);
  --card:rgba(23,28,37,.82); --acc:#6ea0ff; --acc2:#4f8ef7; --ok:#3ecf8e; --vio:#b39dff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0b0e14; color: var(--ink);
  font: 15.5px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.bg { position: fixed; inset: 0; z-index: -1; background:
    radial-gradient(60% 45% at 12% -5%, rgba(79,142,247,.22), transparent 70%),
    radial-gradient(55% 40% at 95% 8%, rgba(139,102,255,.16), transparent 70%),
    radial-gradient(70% 55% at 50% 110%, rgba(62,207,142,.08), transparent 70%);
  background-color: #0b0e14; }
.bg::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px 72px; }

header.nav { display: flex; align-items: center; gap: 12px; padding: 20px 0 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-size: 20px; letter-spacing: .2px; font-weight: 700; }
.nav .sp { flex: 1; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn.pri { background: linear-gradient(180deg, #3a6bcc, #1d4e9e); color: #fff; box-shadow: 0 6px 22px rgba(79,142,247,.28); }
.btn.pri:hover { filter: brightness(1.1); }
.btn.sec { border-color: rgba(255,255,255,.26); color: var(--ink); background: rgba(255,255,255,.03); }
.btn.sec:hover { border-color: var(--acc); }
.btn.sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }

/* ---- the two-column shell: a grouped menu that is the same on every page ---- */
.doc { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 44px; margin-top: 26px; }
.doc > main { min-width: 0; }
.dnav { position: sticky; top: 18px; align-self: start; }
.dnav .dtl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 12px; padding-left: 10px; }
.dnav .grp { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin: 18px 0 6px; padding-left: 10px; }
.dnav .grp:first-of-type { margin-top: 0; }
.dnav a { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13.5px;
  padding: 7px 10px; border-radius: 9px; line-height: 1.3; }
.dnav a:hover { color: var(--ink); background: rgba(255,255,255,.04); text-decoration: none; }
.dnav a svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .75; }
.dnav a.cur { color: var(--ink); background: rgba(110,160,255,.11);
  box-shadow: inset 2px 0 0 var(--acc); font-weight: 600; }
.dnav a.cur svg { color: var(--acc); opacity: 1; }

/* ---- the page head: its icon, its title, its one-sentence answer ---- */
.phead { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0 6px; }
.phead .pico { flex: 0 0 46px; width: 46px; height: 46px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 13px; background: rgba(110,160,255,.12); color: var(--acc);
  border: 1px solid rgba(110,160,255,.22); }
.phead .pico svg { width: 24px; height: 24px; }
.phead .ptx { min-width: 0; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 4px; }
h1 { font-size: 32px; line-height: 1.16; margin: 0; letter-spacing: -.4px; }
h1 .grad { background: linear-gradient(100deg, #cfe0ff, #6ea0ff 55%, #b39dff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ans { color: var(--ink); font-weight: 600; font-size: 16.5px; margin: 18px 0 4px; padding-left: 13px;
  border-left: 2px solid var(--acc); max-width: 680px; }

/* ---- the content devices ---- */
main section { padding: 24px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
main section:first-of-type { border-top: 0; }
h2 { font-size: 21px; letter-spacing: -.25px; margin: 0 0 6px; }
.lead { color: var(--dim); margin: 0 0 14px; max-width: 680px; }
.sub-h { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
  font-weight: 700; margin: 20px 0 6px; }
ul.clean { margin: 10px 0 4px; padding: 0 0 0 2px; list-style: none; }
ul.clean li { position: relative; padding: 5px 0 5px 24px; color: #cbd4e2; font-size: 14.5px; }
ul.clean li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 7px; height: 7px;
  border-radius: 3px; background: linear-gradient(180deg, #6ea0ff, #4f8ef7); box-shadow: 0 0 0 3px rgba(110,160,255,.12); }
ul.clean li b { color: var(--ink); }
ul.clean.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); column-gap: 28px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 12px; margin: 16px 0 4px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px 13px; }
.tile:hover { border-color: rgba(110,160,255,.35); }
.tile .ico { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(110,160,255,.12); color: var(--acc); margin-bottom: 9px; }
.tile .ico svg { width: 17px; height: 17px; }
.tile h4 { margin: 0 0 3px; font-size: 14.5px; }
.tile p { margin: 0; color: var(--dim); font-size: 13px; }
a.tile { display: block; color: inherit; }
a.tile:hover { text-decoration: none; }

.keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.k { font-size: 12.5px; color: #cfe0ff; border: 1px solid rgba(110,160,255,.32); background: rgba(110,160,255,.08);
  border-radius: 8px; padding: 4px 10px; }
.k b { color: #fff; font-weight: 600; }
.note { margin: 16px 0 2px; padding: 13px 15px; border-radius: 11px; border: 1px solid rgba(179,157,255,.28);
  background: rgba(179,157,255,.07); color: #d9ccff; font-size: 13.5px; display: flex; gap: 11px; align-items: flex-start; }
.note svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; opacity: .85; }
.note b { color: #fff; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0 4px;
  display: block; overflow-x: auto; }
.tbl th { text-align: left; color: var(--faint); font-weight: 600; font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); color: #cbd4e2; vertical-align: top; }
.tbl td b { color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.grp { color: var(--acc); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  padding-top: 16px; border-bottom: 0; }
.ok { color: var(--ok); } .no { color: var(--faint); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; background: rgba(17,21,28,.6); }
.step .n { font-size: 11px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase;
  display: flex; align-items: center; gap: 7px; }
.step .n svg { width: 14px; height: 14px; color: var(--acc); }
.step h4 { margin: 6px 0 5px; font-size: 16px; }
.step p { margin: 0; color: var(--dim); font-size: 13.5px; }
a.step { color: inherit; display: block; }
a.step:hover { border-color: rgba(110,160,255,.35); text-decoration: none; }
a.step:hover h4 { color: var(--acc); }

.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }

/* ---- the pager at the foot of every page ---- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 42px; padding-top: 24px;
  border-top: 1px solid var(--line); }
.pager a { border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px; color: inherit; display: block; }
.pager a:hover { border-color: rgba(110,160,255,.35); text-decoration: none; }
.pager a:hover .pt { color: var(--acc); }
.pager .pl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pager .pt { font-size: 15px; font-weight: 600; margin-top: 3px; }
.pager .next { text-align: right; grid-column: 2; }
.foot { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line); }
.foot a { color: var(--dim); }

@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dnav { position: static; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .dnav .dtl { display: none; }
  .dnav .grp { margin: 14px 0 6px; padding-left: 0; }
  .dnav .grp:first-of-type { margin-top: 0; }
  .dnav .lst { display: flex; flex-wrap: wrap; gap: 7px; }
  .dnav a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
  .dnav a.cur { box-shadow: none; border-color: rgba(110,160,255,.5); }
  h1 { font-size: 27px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px 52px; }
  h1 { font-size: 24px; }
  .phead .pico { flex-basis: 40px; width: 40px; height: 40px; }
  .steps { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- the first-steps devices: an "in short" box, a numbered how-to, and a button label ---- */
.inshort { margin: 18px 0 8px; padding: 14px 16px 12px; border-radius: 12px;
  background: rgba(110,160,255,.07); border: 1px solid rgba(110,160,255,.22); }
.inshort .sub-h { margin: 0 0 2px; color: var(--acc); }
.inshort ul.clean { margin: 2px 0 0; }
ol.how { list-style: none; counter-reset: how; margin: 12px 0 6px; padding: 0; }
ol.how li { counter-increment: how; position: relative; padding: 7px 0 9px 46px; color: #cbd4e2;
  font-size: 14.5px; min-height: 40px; }
ol.how li::before { content: counter(how); position: absolute; left: 0; top: 6px; width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 13.5px; color: #cfe0ff; background: rgba(110,160,255,.14); border: 1px solid rgba(110,160,255,.38); }
ol.how li b { color: var(--ink); }
.ui { font-size: 13px; color: #cfe0ff; border: 1px solid rgba(110,160,255,.32); background: rgba(110,160,255,.08);
  border-radius: 6px; padding: 1px 7px; line-height: 1.9;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* a long label wraps; each line keeps its own frame */
.tiles.five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile .ico + h4 { margin-top: 0; }

/* ---- the glyph warden's icons (auth/docs.js): sized to the text they sit in, one colour, strokes only ---- */
.gi { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -.18em; flex: none; }
.ui .gi, .k .gi { margin-right: .15em; }

/* ---- embedded: the same page, read inside the app's own canvas (js/plugins/helpdocs.js) ----
   The frame supplies its own title bar and its own way out, so the page drops the header and the
   foot it wears on the open web. Nothing else changes: same words, same shell, same menu. */
html.embed body { background: transparent; }
html.embed header.nav, html.embed .foot { display: none; }
html.embed .wrap { padding: 0 20px 40px; max-width: none; }
html.embed .doc { margin-top: 14px; }
html.embed .dnav { top: 14px; }
@media (max-width: 900px) { html.embed .doc { margin-top: 8px; } }
