/* The brand pages' own frame (/brand and /brand/components), drawn like the brand book: the bar,
   the intro, the contents strip, sections and the footer. The kit itself is atlas.css. */
@font-face { font-family: Inter; src: url("/fonts/inter-v20-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-v9-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-v20-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-v20-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-v20-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0a0d10;
  --panel: #0f1318;
  --raised: #13181f;
  --inset: #070a0d;
  --hair: rgb(255 255 255 / 0.07);
  --hair2: rgb(255 255 255 / 0.12);
  --text: #e5e9ee;
  --head: #f4f7fa;
  --t2: #8b95a3;
  --t3: #586270;
  --edge: #323e4c;
  --cyan: #00e5ff;
  --cyan-fill: #0e3a44;
  --metal: #b4bdc7;
  --tight: "Inter Tight", Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body { background: var(--bg); color: var(--text); font: 15px/24px var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--cyan-fill); color: var(--head); }
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--cyan); border-radius: 4px; z-index: 500; }
.skip:focus { left: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
code { font: 500 12px/1.5 var(--mono); color: var(--metal); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font: 500 13px/1 var(--sans); white-space: nowrap; transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn svg { width: 14px; height: 14px; }
.btn-plate { color: #0a0d10; background: linear-gradient(180deg, #ffffff 0%, #dfe5ea 55%, #b9c3cc 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.25), 0 0 0 1px rgb(255 255 255 / 0.06); }
.btn-line { color: var(--text); background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--hair2); }
.btn-line:hover { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 6px; }

/* top bar */
.bar { height: 64px; border-bottom: 1px solid var(--hair); }
.bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar-brand { display: flex; align-items: center; gap: 14px; }
.bar-brand img { height: 24px; width: auto; display: block; }
.bar-crumb { padding-left: 14px; border-left: 1px solid var(--hair2); font: 500 13px/1 var(--sans); color: var(--t2); }
.bar-crumb:hover { color: var(--head); }
.bar-go { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--t2); transition: color 0.25s var(--ease); }
.bar-go:hover { color: var(--head); }
.bar-go svg { width: 12px; height: 12px; }

/* intro */
.intro { padding: 64px 0 48px; }
.intro h1 { font: 600 44px/1.05 var(--tight); letter-spacing: -0.035em; color: var(--head); }
.intro p { margin-top: 16px; max-width: 600px; font-size: 16px; line-height: 26px; color: var(--t2); }
.intro-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* contents */
.toc { position: sticky; top: 0; z-index: 100; background: rgb(10 13 16 / 0.8); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.toc .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc a { display: flex; align-items: center; height: 48px; padding: 0 14px; flex-shrink: 0; font: 500 13px/1 var(--sans); color: var(--t3); transition: color 0.25s var(--ease); }
.toc a:first-child { padding-left: 0; }
.toc a:hover, .toc a.on { color: var(--head); }

/* sections */
.sec { padding: 72px 0; scroll-margin-top: 48px; }
.sec + .sec { border-top: 1px solid var(--hair); }
.sh { display: grid; gap: 14px; margin-bottom: 40px; }
.sh h2 { font: 600 32px/1.1 var(--tight); letter-spacing: -0.03em; color: var(--head); }
.sh p { max-width: 640px; font-size: 15px; line-height: 24px; color: var(--t2); }
.sub-h { font: 600 17px/24px var(--tight); letter-spacing: -0.01em; color: var(--head); }
.sub-p { margin-top: 4px; max-width: 640px; font-size: 14px; line-height: 22px; color: var(--t2); }

/* code */
.agents > *, .steps > * { min-width: 0; }
.code { position: relative; min-width: 0; max-width: 100%; border-radius: 8px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--hair); }
.code pre { margin: 0; padding: 14px 76px 14px 16px; overflow-x: auto; font: 400 12px/1.6 var(--mono); color: #c3cbd5; white-space: pre; tab-size: 2; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.copy { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font: 500 12px/1 var(--sans); color: var(--t2); background: var(--raised); box-shadow: inset 0 0 0 1px var(--hair2); }
.copy:hover { color: var(--head); }
.copy.done { color: var(--cyan); }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--hair); }
.foot p { font-size: 13px; line-height: 20px; color: var(--t3); }
.foot a { color: var(--t2); }
.foot a:hover { color: var(--head); }

@media (min-width: 1024px) {
  .intro { padding: 88px 0 64px; }
  .intro h1 { font-size: 56px; }
}
