
:root{
  /* Ground, in five steps. Each is a real surface, not a tint of the last. */
  --bg:#0a0a0c;--raise:#101013;--card:#141416;--line:#232327;--line-soft:#1b1b1f;
  --fg:#f2f3f5;--muted:#8a8d93;--dim:#63666c;--red:#e01e37;--deep:#7a0512;
  --ring:color-mix(in srgb,var(--red) 55%,transparent);
  --shell:min(1120px,100% - 48px);

  /* One spacing scale, so vertical rhythm is a decision rather than a habit. */
  --s1:6px;--s2:10px;--s3:16px;--s4:24px;--s5:38px;--s6:60px;--s7:96px;

  /* Two easings. Standard for anything that moves a short way, spring for
     anything a pointer is touching, so hover feels answered rather than faded. */
  --ease:cubic-bezier(.2,.7,.3,1);
  --spring:cubic-bezier(.34,1.4,.5,1);

  /* Depth. The inner hairline is what separates a raised surface from a
     lighter rectangle, and it is the single biggest tell of a dark UI that has
     been designed rather than coloured in. */
  --lift:0 1px 2px rgba(0,0,0,.5),0 8px 24px -12px rgba(0,0,0,.7);
  --lift-hi:0 2px 4px rgba(0,0,0,.5),0 18px 44px -16px rgba(0,0,0,.85);
  --inner:inset 0 1px 0 rgba(255,255,255,.045);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:88px;
  scrollbar-color:var(--line) transparent;scrollbar-width:thin}
body{margin:0;background:var(--bg);color:var(--fg);
  font:16px/1.65 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  font-synthesis-weight:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color:transparent;
  min-height:100svh;display:flex;flex-direction:column;overflow-x:hidden;
  /*
   * A long word breaks rather than overflowing its box.
   *
   * German and Russian found this: "Nutzungsbedingungen" is 158px of one
   * unbreakable word and the footer's Legal column is 123px at 768px wide, so
   * the word was simply cut off — and body's overflow-x:hidden meant there was
   * no scrollbar to reveal it. Nothing in the markup was wrong; the site is
   * just written in eight languages now and English is the short one.
   *
   * Set here rather than on the one column, because the next long word will be
   * somewhere else. It only ever applies where a word would otherwise overflow,
   * so ordinary text is untouched.
   */
  overflow-wrap:break-word}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;letter-spacing:-.022em;line-height:1.12;text-wrap:balance;font-weight:650}
p{margin:0;text-wrap:pretty}
img{display:block}
::selection{background:color-mix(in srgb,var(--red) 40%,transparent);color:#fff}
.wrap{width:var(--shell);margin-inline:auto}

/* ── navigation ─────────────────────────────────────────────────────────── */
.nav{position:sticky;top:0;z-index:20;
  background:color-mix(in srgb,var(--bg) 72%,transparent);
  border-bottom:1px solid transparent;
  transition:border-color .2s var(--ease),background .2s var(--ease)}
@supports (backdrop-filter:blur(1px)){
  .nav{backdrop-filter:blur(16px) saturate(160%);border-bottom-color:var(--line-soft)}
}
@supports not (backdrop-filter:blur(1px)){
  .nav{background:var(--bg);border-bottom-color:var(--line-soft)}
}
/*
 * min-height and flex-wrap, not height.
 *
 * A fixed height with no wrap is only correct while the items happen to fit,
 * and "happen to fit" changed the day the nav grew a fourth link. The bar is
 * now robust at every width by construction rather than tuned to the widths
 * somebody thought to check — which is the failure recorded in CLAUDE.md as
 * "a responsive check run at exactly one width".
 *
 * No backticks in this comment, and none anywhere in this stylesheet: the whole
 * of it is one template literal, so a backtick ends the string four lines into
 * whatever it was documenting. That has now happened twice.
 */
.nav .wrap{display:flex;align-items:center;gap:var(--s1);min-height:64px;flex-wrap:wrap;
  row-gap:2px}
.brand{display:flex;align-items:center;gap:var(--s2);font-weight:680;letter-spacing:-.03em;
  margin-right:auto;font-size:16.5px}
.brand img{width:28px;height:28px;border-radius:50%;
  box-shadow:0 0 0 1px var(--line),0 4px 12px -4px var(--ring)}
.nav a.link{padding:8px 12px;border-radius:9px;color:var(--muted);font-size:14.5px;
  transition:color .15s var(--ease),background .15s var(--ease)}
.nav a.link:hover{color:var(--fg);background:var(--line-soft)}
/*
 * aria-current alone told a screen reader which page this is and told everybody
 * else nothing. The underline is the visible half of the same fact.
 */
.nav a.link[aria-current="page"]{color:var(--fg);
  box-shadow:inset 0 -2px 0 0 color-mix(in srgb,var(--fg) 55%,transparent)}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:12px 20px;border-radius:11px;font-size:15px;font-weight:600;letter-spacing:-.01em;
  border:1px solid var(--line);background:var(--raise);white-space:nowrap;
  box-shadow:var(--inner);
  transition:transform .2s var(--spring),border-color .18s var(--ease),
    background .18s var(--ease),box-shadow .18s var(--ease)}
.btn:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--fg) 24%,transparent);
  box-shadow:var(--inner),var(--lift)}
.btn:active{transform:translateY(0) scale(.985);transition-duration:.06s}
.btn.primary{background:linear-gradient(180deg,#f02742,var(--red) 45%,#a8142a);
  border-color:transparent;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 30px -12px var(--ring)}
.btn.primary:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 16px 38px -12px var(--ring)}
.btn.sm{padding:8px 15px;font-size:14px;border-radius:9px}
:where(a,button,input,summary):focus-visible{outline:2px solid var(--red);outline-offset:3px;
  border-radius:9px}

/* ── hero ───────────────────────────────────────────────────────────────── */
/*
 * Four stacked radial gradients rather than one.
 *
 * A single radial reads as a spotlight on a flat colour. Overlapping fields at
 * different sizes and opacities give the light somewhere to fall off to, which
 * is what stops the top of the page looking like a placeholder.
 */
.hero{position:relative;overflow:hidden;padding:var(--s7) 0 84px;isolation:isolate;
  background:
    radial-gradient(58% 62% at 74% 22%,color-mix(in srgb,var(--red) 34%,transparent) 0%,transparent 70%),
    radial-gradient(70% 80% at 88% 46%,var(--deep) 0%,transparent 66%),
    radial-gradient(110% 96% at 50% 0%,#33060c 0%,transparent 60%),
    linear-gradient(180deg,#15060a 0%,var(--bg) 92%)}
/* A hairline of light along the very top, the way a lit surface actually is. */
.hero::before{content:"";position:absolute;inset:0 0 auto;height:1px;z-index:-1;
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--red) 60%,transparent),transparent)}
/* And the ground fading up into it, so the section boundary is not an edge. */
.hero::after{content:"";position:absolute;inset:auto 0 0;height:180px;z-index:-1;
  background:linear-gradient(180deg,transparent,var(--bg))}
.hero .wrap{position:relative;display:flex;align-items:center;gap:var(--s5) var(--s6);
  flex-wrap:wrap}
.hero .copy{min-width:0;flex:1 1 460px;max-width:62ch}
.mark{width:176px;height:176px;border-radius:50%;flex:none;margin-inline:auto;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 12%,transparent),
    0 24px 60px -14px rgba(0,0,0,.85),0 0 70px -20px var(--ring)}
.hero h1{font-size:clamp(46px,9vw,82px);letter-spacing:-.05em;line-height:.98;
  background:linear-gradient(178deg,#fff 20%,#c9ccd2);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.hero .lede{margin-top:var(--s3);color:#cdd0d6;font-size:clamp(16.5px,2.4vw,19.5px);max-width:52ch}
.tag{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;padding:5px 13px;
  border:1px solid color-mix(in srgb,var(--fg) 20%,transparent);border-radius:999px;
  font-size:11.5px;letter-spacing:.19em;text-transform:uppercase;color:#e6e7ea;
  background:color-mix(in srgb,#000 28%,transparent);box-shadow:var(--inner)}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:var(--s5)}
.stats{display:flex;gap:var(--s4);flex-wrap:wrap;margin-top:var(--s5);color:var(--muted);
  font-size:13.5px}
.stats span{padding-left:var(--s3);border-left:1px solid var(--line)}
.stats span:first-child{padding-left:0;border-left:0}
.stats b{display:block;color:var(--fg);font-size:25px;font-weight:680;letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;line-height:1.2}

/* ── sections ───────────────────────────────────────────────────────────── */
main{flex:1;padding:var(--s6) 0 var(--s7)}
.eyebrow{display:block;font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--dim);font-weight:650}
.section{margin-top:var(--s7)}
.section:first-of-type{margin-top:0}
.section > :is(h1,h2){font-size:clamp(25px,3.6vw,34px);margin-top:var(--s2)}
.section > .sub{margin-top:var(--s2);color:var(--muted);max-width:62ch}
.section > .sub a{color:var(--fg);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,var(--fg) 35%,transparent)}
.section > .sub a:hover{text-decoration-color:currentColor}

.grid{display:grid;gap:var(--s2);margin-top:var(--s4);
  grid-template-columns:repeat(auto-fit,minmax(min(258px,100%),1fr))}
.grid.top{align-items:start}
/*
 * The card, and the one line that does the work.
 *
 * The --inner shadow puts a one-pixel highlight along the top edge. Without it
 * surface on a dark ground is just a lighter rectangle; with it the surface
 * has a lit edge and reads as raised. The red only arrives on hover, which is
 * the palette's rule about rationing it and also simply better.
 */
.card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:15px;
  padding:22px;display:flex;flex-direction:column;gap:7px;overflow:hidden;
  box-shadow:var(--inner);
  transition:border-color .2s var(--ease),transform .25s var(--spring),box-shadow .25s var(--ease)}
.card::before{content:"";position:absolute;inset:0 0 auto;height:1px;opacity:0;
  background:linear-gradient(90deg,transparent,var(--red),transparent);
  transition:opacity .25s var(--ease)}
.card:hover{border-color:color-mix(in srgb,var(--fg) 18%,transparent);transform:translateY(-3px);
  box-shadow:var(--inner),var(--lift-hi)}
.card:hover::before{opacity:.85}
.card :is(h2,h3){font-size:16.5px;margin-bottom:7px;letter-spacing:-.015em}
.card p{color:var(--muted);font-size:14.5px}
.card .meta{margin-top:auto;padding-top:var(--s3);display:flex;gap:6px;flex-wrap:wrap}

/* ── command reference: chips need no script, the search box is one ────── */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:var(--s4) 0 var(--s1);
  border:0;padding:0;min-inline-size:0}
.filters input{position:absolute;opacity:0;pointer-events:none}
.filters label{padding:7px 15px;border:1px solid var(--line);border-radius:999px;font-size:14px;
  color:var(--muted);cursor:pointer;background:var(--raise);box-shadow:var(--inner);
  transition:color .15s var(--ease),border-color .15s var(--ease),
    background .15s var(--ease),transform .18s var(--spring)}
.filters label:hover{color:var(--fg);transform:translateY(-1px)}
.filters label:active{transform:translateY(0)}
.cmds:has(input[data-cat="all"]:checked) .cat{display:block}
.cmds:has(input[data-cat="all"]:checked) label[for="f-all"],
.cmds:has(input[data-cat="community"]:checked) label[for="f-community"],
.cmds:has(input[data-cat="config"]:checked) label[for="f-config"],
.cmds:has(input[data-cat="moderation"]:checked) label[for="f-moderation"],
.cmds:has(input[data-cat="utility"]:checked) label[for="f-utility"]{color:#fff;background:var(--red);border-color:transparent;box-shadow:0 6px 18px -8px var(--ring)}
.cmds .cat{display:none}
.cmds:has(input[data-cat="community"]:checked) .cat[data-cat="community"],
.cmds:has(input[data-cat="config"]:checked) .cat[data-cat="config"],
.cmds:has(input[data-cat="moderation"]:checked) .cat[data-cat="moderation"],
.cmds:has(input[data-cat="utility"]:checked) .cat[data-cat="utility"]{display:block}
.cat{margin-top:var(--s5)}
.cat > h2{font-size:12.5px;letter-spacing:.17em;text-transform:uppercase;color:var(--dim);
  margin-bottom:var(--s2)}
.cmd{border:1px solid var(--line);border-radius:12px;background:var(--card);margin-bottom:7px;
  overflow:hidden;box-shadow:var(--inner);
  transition:border-color .18s var(--ease),background .18s var(--ease)}
.cmd:hover{border-color:color-mix(in srgb,var(--fg) 14%,transparent)}
.cmd > summary{list-style:none;cursor:pointer;padding:13px 17px;display:flex;align-items:baseline;
  gap:12px;flex-wrap:wrap}
.cmd > summary::-webkit-details-marker{display:none}
.cmd > summary::after{content:"+";margin-left:auto;color:var(--dim);font-size:15px;line-height:1;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;transition:color .15s var(--ease)}
.cmd > summary:hover::after{color:var(--fg)}
.cmd[open] > summary::after{content:"−"}
.cmd[open] > summary{background:var(--raise)}
.cmd code.name{font-size:14.5px;color:var(--fg);font-weight:600}
.cmd .desc{color:var(--muted);font-size:14px;min-width:0;flex:1}
.cmd .body{padding:var(--s3) 17px 17px;border-top:1px solid var(--line-soft);color:var(--muted);
  font-size:14.5px}
.cmd .body > * + *{margin-top:12px}
.cmd .body strong{color:var(--fg);font-weight:600}
.pill{display:inline-block;padding:2px 9px;border-radius:999px;border:1px solid var(--line);
  font-size:11.5px;color:var(--dim);letter-spacing:.04em;background:var(--raise)}
.pill.perm{color:var(--muted)}
ul.plain{margin:0;padding-left:18px}
ul.plain li{margin-top:5px}

code,kbd{background:var(--raise);border:1px solid var(--line);border-radius:6px;padding:2px 7px;
  font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* ── questions ──────────────────────────────────────────────────────────── */
.qas{margin-top:var(--s4);border-top:1px solid var(--line-soft)}
.qa{border-bottom:1px solid var(--line-soft)}
.qa > summary{list-style:none;cursor:pointer;padding:18px 42px 18px 2px;position:relative;
  font-size:16px;font-weight:600;color:var(--fg);letter-spacing:-.012em;
  transition:color .15s var(--ease)}
.qa > summary::-webkit-details-marker{display:none}
.qa > summary:hover{color:#fff}
.qa > summary::after{content:"+";position:absolute;right:8px;top:50%;translate:0 -50%;
  color:var(--dim);font-size:18px;line-height:1;transition:color .15s var(--ease);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.qa[open] > summary::after{content:"−";color:var(--fg)}
.qa .body{padding:0 42px 20px 2px;color:var(--muted);font-size:15px;max-width:68ch}
.qa .body a{color:var(--fg);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,var(--fg) 35%,transparent)}
.qa .body a:hover{text-decoration-color:currentColor}

.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;border:0}

/* ── steps ──────────────────────────────────────────────────────────────── */
ol.steps{counter-reset:s;list-style:none;margin:var(--s4) 0 0;padding:0}
ol.steps li{counter-increment:s;position:relative;padding:0 0 var(--s4) 46px;
  border-left:1px solid var(--line);margin-left:14px}
ol.steps li:last-child{border-left-color:transparent;padding-bottom:0}
ol.steps li::before{content:counter(s);position:absolute;left:-14px;top:-2px;width:28px;height:28px;
  display:grid;place-items:center;border-radius:50%;background:var(--card);border:1px solid var(--line);
  font-size:13px;color:var(--fg);font-variant-numeric:tabular-nums;box-shadow:var(--inner)}
ol.steps :is(h2,h3){font-size:16.5px;letter-spacing:-.015em}
ol.steps p{color:var(--muted);font-size:14.5px;margin-top:6px}
ol.steps a{color:var(--fg);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,var(--fg) 35%,transparent)}

/* ── prose (legal pages) ────────────────────────────────────────────────── */
.prose{max-width:70ch}
.prose h1{font-size:clamp(25px,3.6vw,34px);margin-top:var(--s2)}
.prose h2{font-size:19px;margin-top:var(--s5)}
.prose p,.prose li{color:var(--muted);margin-top:12px}
.prose strong{color:var(--fg);font-weight:600}
.prose .updated{margin-top:14px;color:var(--dim);font-size:13.5px}

.skip{position:absolute;top:0;left:0;z-index:40;padding:11px 18px;border-radius:0 0 11px 0;
  background:var(--card);border:1px solid var(--line);font-size:14.5px;font-weight:600;
  translate:0 -160%;transition:translate .18s var(--ease)}
.skip:focus{translate:0 0}

/* ── footer ─────────────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--line-soft);padding:var(--s5) 0 var(--s6);color:var(--dim);
  font-size:14px;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--raise) 60%,transparent))}
/*
 * A grid, and an explicit column count — not auto-fit.
 *
 * This was display:flex on the wrap with repeat(auto-fit,minmax(140px,
 * max-content)) on the nav, and it put Product, Help and Legal in **one
 * column**, stacked, with two-thirds of the footer empty beside them. It looked
 * like a bug and it was one, and it shipped: auto-fit needs a definite
 * container width to work out how many columns fit, and a grid inside a flex
 * row is sized by its own content — indefinite — so the repetition resolves to
 * one. Every check passed, because nothing here measures where a thing landed.
 *
 * Two explicit columns for the whole footer and three for the links, dropping
 * at the widths below. No repetition count for a browser to guess at.
 */
footer .wrap{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.7fr);
  gap:var(--s5) var(--s6);align-items:start}
footer .about{max-width:34ch}
footer .about .brand{margin-bottom:var(--s2)}
footer nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s5) var(--s4)}
footer nav div{display:flex;flex-direction:column;gap:2px}
footer nav a{padding:4px 0}
footer nav b{color:var(--muted);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;
  font-weight:650}
footer nav a:hover{color:var(--fg)}
footer a:hover{color:var(--fg)}

/* ── permalinks, permissions and the changelog ───────────────────────────── */
/*
 * The anchor is present in the markup for everybody and visible on hover or on
 * keyboard focus. Hiding it with display:none would take it out of the tab
 * order and out of a screen reader, which is the opposite of the point.
 */
.cmd .anchor{opacity:0;color:var(--dim);font-size:13px;padding:0 6px;border-radius:6px;
  transition:opacity .15s var(--ease),color .15s var(--ease)}
.cmd:hover .anchor,.cmd .anchor:focus-visible{opacity:1}
.cmd .anchor:hover{color:var(--fg)}
.cmd:target{border-color:color-mix(in srgb,var(--fg) 42%,transparent);background:var(--raise)}
/*
 * A permalink has to land somewhere visible. The category filter hides every
 * section but the checked one, so a link to a command in another category would
 * have scrolled to nothing at all — the filter is a display rule and the
 * fragment does not know about it.
 */
.cmds .cat:has(:target){display:block}
.cmd{scroll-margin-top:84px}

.perms{display:grid;gap:10px;margin-top:var(--s4)}
.perm-row{border:1px solid var(--line);border-radius:12px;background:var(--card);
  padding:16px 18px;box-shadow:var(--inner)}
.perm-row h2{margin:0;font-size:15.5px;letter-spacing:-.01em}
.perm-row .api{color:var(--dim);font-size:12.5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.perm-row p{margin:8px 0 0;color:var(--muted);font-size:14.5px;max-width:70ch}
.perm-row p.limit{color:var(--dim)}
.perm-row .used{margin-top:11px;display:flex;gap:6px;flex-wrap:wrap}

/*
 * The banner on a page that stays in English.
 *
 * Rendered in the reader's own language, above the content, because a Spanish
 * visitor arriving on the command reference deserves a sentence rather than a
 * page that silently changes language under them. It is quiet rather than red:
 * this is information, not an alarm.
 */
.englishonly{margin:0 0 var(--s5);padding:13px 16px;border:1px solid var(--line);
  border-left:3px solid var(--dim);border-radius:0 12px 12px 0;background:var(--card);
  color:var(--muted);font-size:14.5px;max-width:74ch;box-shadow:var(--inner)}
.englishonly strong{color:var(--fg);font-weight:600}

.rel{border-top:1px solid var(--line-soft);padding-top:var(--s4);margin-top:var(--s4)}
.rel:first-of-type{border-top:0;padding-top:0}
.rel time{color:var(--dim);font-size:12.5px;letter-spacing:.04em;text-transform:uppercase}
.rel h2{margin:6px 0 0;font-size:20px;letter-spacing:-.02em}
.rel ul{margin:12px 0 0;padding-left:18px;color:var(--muted);font-size:14.5px;max-width:72ch}
.rel li{margin-top:7px}

/*
 * The language picker, as eight plain links.
 *
 * A row rather than a select, and no script: a <select> that navigates needs
 * one, and a picker that does nothing without JavaScript would be worse than
 * the links it replaced. Each chip points at the page you are on, in that
 * language.
 */
.langs{grid-column:1/-1;margin-top:var(--s4);padding-top:var(--s4);
  border-top:1px solid var(--line-soft)}
/*
 * The summary is the control and the answer at once: it names the language you
 * are reading. The marker is a plus that becomes a minus, matching the command
 * rows and the FAQ rather than a triangle nothing else on the site uses.
 */
.langs > summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;
  font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--dim);
  font-weight:650;transition:color .15s var(--ease)}
.langs > summary::-webkit-details-marker{display:none}
.langs > summary:hover{color:var(--fg)}
.langs > summary span{letter-spacing:0;text-transform:none;font-weight:600;font-size:13.5px;
  color:var(--muted);padding:3px 11px;border:1px solid var(--line);border-radius:999px;
  background:var(--raise)}
.langs > summary::after{content:"+";margin-left:2px;font-size:15px;line-height:1;
  letter-spacing:0;color:var(--dim)}
.langs[open] > summary::after{content:"−"}
.langs ul{display:flex;flex-wrap:wrap;gap:7px;margin:var(--s3) 0 0;padding:0;list-style:none}
.langs a{display:inline-block;padding:5px 13px;border:1px solid var(--line);border-radius:999px;
  font-size:13.5px;color:var(--muted);background:var(--raise);box-shadow:var(--inner);
  transition:color .15s var(--ease),border-color .15s var(--ease),transform .18s var(--spring)}
.langs a:hover{color:var(--fg);border-color:color-mix(in srgb,var(--fg) 24%,transparent);
  transform:translateY(-1px)}
/* The one you are reading is marked, and in white rather than red: this is
   "where you are", not an alarm. */
.langs a[aria-current]{color:var(--fg);background:var(--card);
  border-color:color-mix(in srgb,var(--fg) 42%,transparent)}
.langs p{margin:12px 0 0;color:var(--dim);font-size:12.5px}

footer .build{grid-column:1/-1;margin:var(--s4) 0 0;color:var(--dim);font-size:12.5px}
footer .build code{font-size:12px;padding:1px 6px}

/* ── dashboard ──────────────────────────────────────────────────────────── */
.who{display:flex;align-items:center;gap:var(--s3);flex-wrap:wrap;margin-top:var(--s2)}
.who h1{margin:0;font-size:clamp(24px,3.4vw,32px)}
.who form{margin-left:auto}

.glist{list-style:none;margin:var(--s4) 0 0;padding:0;display:grid;gap:10px}
/*
 * A row, not a tile grid. Somebody with thirty servers is scanning names, and a
 * name is a horizontal thing — tiles would set every one of them in a narrow
 * column and wrap half the words.
 */
.gcard{display:flex;align-items:center;gap:var(--s3);padding:12px 14px;border:1px solid var(--line);
  border-radius:12px;background:var(--card);
  transition:border-color .18s var(--ease),background .18s var(--ease)}
.gcard:hover{border-color:color-mix(in srgb,var(--fg) 22%,transparent);background:var(--raise)}
.gcard .gname{font-weight:600;min-width:0;flex:1 1 auto;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/*
 * One container for everything on the right, not margin-left:auto on each.
 *
 * Two siblings both carrying an auto left margin split the free space between
 * them, so an Owner badge beside a button pushed the two apart by however wide
 * the row happened to be. Grouping them makes the gap a decision.
 */
.gcard .gact{display:flex;align-items:center;gap:10px;margin-left:auto;flex:none}

/*
 * Section headings inside the list, with a count and a rule to the right edge.
 * A person with thirty servers wants "these four already have it" answered
 * before they start reading names.
 */
/*
 * The scope of the server search, and where its field is inserted. The first
 * group sits closer to the field than groups sit to each other, so the box
 * reads as belonging to the list rather than floating above it.
 */
.servers > .ggroup:first-of-type{margin-top:var(--s4)}
.ggroup{margin-top:var(--s5)}
.ghead{display:flex;align-items:center;gap:10px;margin:0;
  font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--dim);font-weight:650}
.ghead::after{content:"";flex:1;height:1px;background:var(--line-soft)}
.ghead span{letter-spacing:0;font-size:12px;color:var(--muted);padding:1px 9px;
  border:1px solid var(--line);border-radius:999px;font-variant-numeric:tabular-nums}
.ghead + .glist{margin-top:var(--s3)}

/* The fallback when a server has no icon: its initial, in the same 40px box, so
   a list of servers does not shift left and right as icons load or fail. */
.gicon{width:40px;height:40px;border-radius:50%;flex:none;object-fit:cover;
  display:grid;place-items:center;background:var(--raise);border:1px solid var(--line);
  color:var(--muted);font-weight:650;font-size:15px}

.pill{padding:6px 11px;border-radius:999px;border:1px solid var(--line);color:var(--dim);
  font-size:13px;white-space:nowrap}
/* A fact about the person, not an action — so it is quieter than the button
   beside it and carries no border of its own. */
.pill.owner{border-color:transparent;background:var(--raise);color:var(--muted);
  font-size:12px;padding:5px 10px;box-shadow:var(--inner)}

@media (max-width:480px){
  /* Below this the name and the button cannot share a line without the name
     being cut to two words, so the controls move under it — indented to the
     name's left edge rather than the card's, so the row still reads as one. */
  .gcard{flex-wrap:wrap;row-gap:10px}
  .gcard .gname{width:calc(100% - 40px - var(--s3))}
  .gcard .gact{margin-left:calc(40px + var(--s3))}
}

/* ── status: the numbers and the graph ──────────────────────────────────── */
/*
 * A stat card leads with the number, because that is what somebody came for.
 * Tabular figures, so a percentage changing from 99.9 to 100 does not shuffle
 * the text beside it on every reload.
 */
.card.stat h2{font-size:clamp(26px,4vw,34px);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.card.stat p{margin-top:6px}

/*
 * The graph. The stroke inherits the current colour, so the line's colour is
 * decided here and nowhere else — grey, because a latency graph is information
 * and not an alarm. Red is rationed to destruction, alarm and findings.
 */
.chart{margin:var(--s4) 0 0;padding:var(--s4);border:1px solid var(--line);border-radius:14px;
  background:var(--card);color:var(--muted)}
.chart .spark{display:block;width:100%;height:64px;overflow:visible}
.chart figcaption{margin-top:12px;color:var(--dim);font-size:13px;line-height:1.5}

/* ── what the script builds ─────────────────────────────────────────────── */
/*
 * Every rule in this block styles an element that does not exist in the served
 * markup: web/script.ts creates all of them. That is deliberate and it is what
 * makes the enhancement honest — with the script blocked there is no half-built
 * control sitting on the page doing nothing.
 *
 * tests/web.test.ts reads the class names straight out of the script rather
 * than from a list somebody maintains beside it, so a rule here with no element
 * and an element with no rule are both build failures.
 */
.search{position:relative;display:flex;align-items:center;margin:var(--s4) 0 0}
.sinput{flex:1;min-width:0;appearance:none;font:inherit;font-size:15px;color:var(--fg);
  background:var(--card);border:1px solid var(--line);border-radius:11px;
  padding:11px 46px 11px 15px;box-shadow:var(--inner);
  transition:border-color .18s var(--ease),background .18s var(--ease)}
.sinput::placeholder{color:var(--dim)}
/*
 * No outline:none here, and no ring of its own.
 *
 * The global :where(...):focus-visible rule already draws the red one, and
 * :where() has zero specificity — so any outline:none on this class would win
 * and quietly delete the keyboard focus indicator on the only field on the
 * site. The border and the ground carry pointer focus; the outline carries
 * keyboard focus; red stays rationed to one of them.
 */
.sinput:focus{border-color:color-mix(in srgb,var(--fg) 30%,transparent);background:var(--raise)}
/* The hint is a label for a key, so it stands down the moment the field has
   focus and pressing that key would type into it instead. */
.skey{position:absolute;right:13px;pointer-events:none;color:var(--dim);font-size:12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--bg);
  border:1px solid var(--line);border-radius:6px;padding:1px 7px;
  transition:opacity .15s var(--ease)}
.sinput:focus ~ .skey{opacity:0}
.scount{margin:var(--s2) 0 0;color:var(--muted);font-size:13.5px}

/*
 * A search overrides the chips, and it has to: a match in a category the chips
 * have filtered out still needs to be reachable, or the count above the list is
 * describing rows nobody can see.
 */
.cmds[data-q] .cat{display:block}
.cmds[data-q] .cat[hidden]{display:none}
/*
 * hidden is a user-agent rule and every one of these sets its own display in
 * this sheet, so an author rule beats it whatever the specificity and the
 * attribute would quietly do nothing. Said here once, for all of them.
 */
.cmd[hidden],.gcard[hidden],.ggroup[hidden]{display:none}

/*
 * copybtn, not copy — and the name is the whole story.
 *
 * The first version of this rule was called .copy, which is also the hero's own
 * div.copy. So opacity:0 landed on the wordmark, the tagline, the buttons and
 * the counters, and the top of the landing page rendered as an empty red field
 * with an avatar in it. Every check passed: the class was used and it was
 * styled, which is all the coverage test asks. It was found by opening the page
 * and looking at it.
 */
.copybtn{opacity:0;font:inherit;font-size:12px;color:var(--dim);background:var(--raise);
  border:1px solid var(--line);border-radius:7px;padding:2px 8px;cursor:pointer;
  transition:opacity .15s var(--ease),color .15s var(--ease)}
.cmd:hover .copybtn,.copybtn:focus-visible{opacity:1}
.copybtn:hover{color:var(--fg)}

.totop{position:fixed;right:18px;bottom:18px;z-index:25;font:inherit;font-size:13px;
  font-weight:600;color:var(--muted);cursor:pointer;
  background:color-mix(in srgb,var(--card) 92%,transparent);
  border:1px solid var(--line);border-radius:999px;padding:9px 16px;box-shadow:var(--lift);
  transition:color .15s var(--ease),transform .2s var(--spring)}
.totop:hover{color:var(--fg);transform:translateY(-2px)}
@supports (backdrop-filter:blur(1px)){.totop{backdrop-filter:blur(12px)}}

/*
 * The menu is nothing at all until the bar is too narrow to hold the links.
 * display:contents means that at every other width the markup lays out exactly
 * as it did before there was a script.
 */
.nav .menu{display:contents}
.menu-btn{display:none}

/* The reveal, for the browsers with no scroll-driven animations — Firefox and
   Safari today. Where animation-timeline works the script stands down and the
   rule below this block does the same job with no observer. */
.reveal{opacity:.32;transform:translateY(16px)}
.reveal.shown{opacity:1;transform:none;
  transition:opacity .5s var(--ease),transform .5s var(--ease)}

/* ── motion, only where it explains something ───────────────────────────── */
@view-transition{navigation:auto}
@keyframes rise{from{opacity:.4;transform:translateY(16px)}to{opacity:1;transform:none}}
@supports (animation-timeline:view()){
  .card,ol.steps li,.cmd,.qa{animation:rise linear both;animation-timeline:view();
    animation-range:entry 0% entry 42%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .btn:hover,.card:hover,.filters label:hover{transform:none}
}
@media (prefers-contrast:more){
  :root{--muted:#b8bbc1;--dim:#9b9ea4;--line:#3a3a41}
}

/* ── narrow ─────────────────────────────────────────────────────────────── */
@media (max-width:720px){
  :root{--shell:min(1120px,100% - 32px);--s7:64px;--s6:44px}
  .hero{padding:var(--s7) 0 56px}
  /* Copy first on a phone: a 176px picture above the fold pushes the sentence
     that explains the bot off the bottom of the screen. */
  .hero .wrap{flex-direction:column;align-items:flex-start}
  .mark{width:104px;height:104px;order:-1;margin-inline:0}
  main{padding:var(--s6) 0 var(--s7)}
  .nav a.link{padding:8px 9px}
  /*
   * Dividers only work on a single row. Once the four stats wrap, the rule
   * that separates the third from the fourth ends up hanging off the left of
   * the second row with nothing before it. A grid drops them and lines the
   * numbers up in a column instead, which is what the eye wants anyway.
   */
  .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3) var(--s4)}
  .stats span{padding-left:0;border-left:0}
  /* One column for the footer as a whole; the three link columns stay three,
     because they are short words and stacking them would make the footer as
     tall as the page. */
  footer .wrap{grid-template-columns:1fr;gap:var(--s4)}
  footer nav{gap:var(--s4) var(--s3)}
}
/*
 * The width at which four links, two buttons and a wordmark stop fitting. Below
 * it the links and the Dashboard button move into a panel and the primary
 * action stays out, because that is the one thing somebody came to press.
 */
@media (max-width:640px){
  .nav .wrap{position:relative}
  .menu-btn{display:inline-flex}
  .nav .menu{display:none;position:absolute;top:calc(100% + 8px);right:0;min-width:208px;
    padding:7px;background:var(--card);border:1px solid var(--line);border-radius:13px;
    box-shadow:var(--lift-hi);z-index:30}
  .nav.open .menu{display:block}
  .nav .menu a.link{display:block;padding:10px 12px;font-size:15px}
  .nav .menu .btn{width:100%;margin-top:5px}
  /*
   * The copy button is invisible until hover, and it still occupies 48px of
   * layout — a fifth of a command row on a phone, taken straight out of the
   * description, which then wrapped four words to a line. There is no hover on
   * a touch screen to reveal it with, and the text can be long-pressed, so the
   * space goes back to the sentence.
   */
  .copybtn{display:none}
}
@media (max-width:480px){
  /* Below this "Support server" and "Add to Discord" cannot sit three abreast
     without breaking every label onto two lines. */
  footer nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav .wrap{gap:2px}
  .brand{font-size:15px;gap:8px}
  .nav a.link{padding:8px 7px;font-size:13.5px}
  .btn.sm{padding:8px 11px;font-size:13.5px}
  .cta .btn{flex:1 1 auto}
}
/*
 * Below about 400px the four items are wider than the bar however far the type
 * comes down, so the bar becomes two rows rather than clipping the button off
 * the right edge. The zero-width ::after is the row break: it is a flex item of
 * the same container, ordered between the button and the links, and a
 * flex-basis of 100% forces everything after it onto a new line.
 *
 * Hiding the links would have been one declaration, but the footer is thousands
 * of pixels down on the command reference, and a phone with no navigation at
 * the top of that page is a dead end. A menu button is the usual answer, and
 * web/script.ts now builds one — so this is the layout a visitor with
 * scripting off gets, and it has to stay correct on its own.
 */
@media (max-width:400px){
  .nav .wrap{flex-wrap:wrap;height:auto;padding:9px 0;row-gap:3px}
  .brand{order:0}
  .btn.sm{order:1}
  .nav .wrap::after{content:"";order:2;flex-basis:100%;height:0}
  .nav a.link{order:3;padding:6px 8px}
  /* With the script running the links are in the panel, so the row break would
     only add an empty second row under a bar that already fits. */
  .js .nav .wrap::after{content:none}
}
