/* ══════════════════════════════════════════════════════════════════════════
   Streamline website - shared shell
   Header, footer, palette, type scale and the prose styles the document
   pages (privacy, support, changelog) are built from.

   Every colour below is copied from entrypoints/shared/styles/tokens.css.
   That file is the source of truth; this is a transcription for a surface
   that cannot import it. If a token changes there, change it here too.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --accent: #5B87D4;
  --accent-hover: #7099DE;
  --accent-active: #4A73BC;
  --accent-text: #9DB8E8;
  --accent-soft: rgba(91, 135, 212, 0.12);
  --accent-border: rgba(91, 135, 212, 0.30);

  --bg0: #0D0E11;
  --bg1: #14161A;
  --bg2: #1B1D22;
  --bg3: #24262B;
  --bg4: #303338;

  --border: #23262C;
  --border-hi: #333840;

  --text-hi: #E8EAED;
  --text: #C3C7CE;
  --text-md: #8B909A;
  /* Kept for parity with the extension's token file, but nothing on this
     site uses it: --text-lo measures 3.2:1 on --bg0, below AA even for
     large text. Everything that was reaching for a quiet grey uses
     --text-md instead, which measures 6.1:1. */
  --text-lo: #5F646D;

  --green: #63A57F;
  --gold: #C4A160;
  --red: #C96A6A;
  --purple: #9B84C4;
  --orange: #C4967A;
  --good-text: #86BC9C;
  --warn-text: #D6B87F;
  --bad-text: #D68A8A;
  --purple-text: #B3A0D4;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, .30), 0 1px 2px rgba(0, 0, 0, .20);
  --focus-ring: 0 0 0 2px rgba(91, 135, 212, 0.35);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Archivo', 'Inter', -apple-system, sans-serif;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;

  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
}

/* ═══ RESET ═════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-hi);
}

.skip:focus {
  left: 16px;
}

/* ═══ TYPE ══════════════════════════════════════════════════════════════ */
h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.033em;
  color: var(--text-hi);
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-hi);
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.35;
  color: var(--text-hi);
}

.lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--text-md);
  max-width: 50ch;
  text-wrap: pretty;
}

/* ═══ BUTTONS ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0B0E14;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-active);
}

.btn-ghost {
  border-color: var(--border-hi);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg1);
  border-color: var(--bg4);
  color: var(--text-hi);
}

.btn-sm {
  height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
}

.link {
  color: var(--accent-text);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}

.link:hover {
  color: var(--accent-hover);
  border-bottom-color: currentColor;
}

/* ═══ HEADER ════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 17, .85);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.bar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.012em;
  color: var(--text-hi);
  flex-shrink: 0;
}

.brand .chip {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.ver {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-md);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.45;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  font-size: 14.5px;
  color: var(--text-md);
}

.site-nav a {
  padding: 4px 2px;
  transition: color .16s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-hi);
}

.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ═══ DOCUMENT PAGE HEAD ════════════════════════════════════════════════ */
.doc-head {
  border-bottom: 1px solid var(--border);
  padding-block: clamp(56px, 7vw, 84px) clamp(40px, 5vw, 60px);
  position: relative;
  isolation: isolate;
}

.doc-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 12% -10%, rgba(91, 135, 212, .07), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-md);
}

.crumb a {
  transition: color .16s ease;
}

.crumb a:hover {
  color: var(--text-hi);
}

.crumb .sep {
  color: var(--border-hi);
}

.doc-head h1 {
  margin-top: var(--s3);
  max-width: 17ch;
}

.doc-head .lede {
  margin-top: var(--s3);
  max-width: 62ch;
}

.stamp {
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  font-size: 13.5px;
  color: var(--text-md);
}

.stamp b {
  color: var(--text);
  font-weight: 600;
}

/* ═══ DOCUMENT BODY ═════════════════════════════════════════════════════ */
.doc {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  padding-block: clamp(52px, 6vw, 76px) clamp(64px, 8vw, 96px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
}

.toc h2 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-md);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  border-left: 1px solid var(--border);
}

.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 14px;
  color: var(--text-md);
  transition: color .16s ease, border-color .16s ease;
}

.toc a:hover {
  color: var(--text-hi);
  border-left-color: var(--border-hi);
}

.prose>section {
  scroll-margin-top: 88px;
}

.prose>section+section {
  margin-top: clamp(44px, 5vw, 60px);
  padding-top: clamp(44px, 5vw, 60px);
  border-top: 1px solid var(--border);
}

.prose h2 {
  font-size: clamp(23px, 2.4vw, 28px);
  letter-spacing: -.026em;
  max-width: 24ch;
}

.prose h3 {
  margin-top: var(--s4);
  font-size: 16.5px;
}

.prose p {
  margin-top: var(--s2);
  color: var(--text-md);
  max-width: 70ch;
  text-wrap: pretty;
}

.prose h2+p {
  margin-top: var(--s3);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1.5px 6px;
  color: var(--text);
  white-space: nowrap;
}

/* ═══ PROSE LISTS ═══════════════════════════════════════════════════════ */
.bullets {
  margin-top: var(--s3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 70ch;
}

.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-md);
  text-wrap: pretty;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--border-hi);
}

.bullets li b {
  color: var(--text);
  font-weight: 600;
}

.steps {
  margin-top: var(--s3);
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 70ch;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: var(--text-md);
  min-height: 26px;
  text-wrap: pretty;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--bg1);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-md);
}

/* ═══ TABLES ════════════════════════════════════════════════════════════ */
.tw {
  margin-top: var(--s3);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}

thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-md);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  white-space: nowrap;
}

tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-md);
  vertical-align: top;
  text-wrap: pretty;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-hi);
  font-weight: 600;
  vertical-align: top;
  white-space: nowrap;
}

tbody tr:last-child th {
  border-bottom: 0;
}

tbody th code {
  white-space: nowrap;
}

/* ═══ CALLOUT ═══════════════════════════════════════════════════════════ */
.note {
  margin-top: var(--s3);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg1);
  padding: 20px 24px;
  max-width: 70ch;
}

.note h3 {
  margin-top: 0;
  font-size: 15px;
}

.note p {
  margin-top: 10px;
  font-size: 15px;
}

.note.flag {
  border-left-color: var(--gold);
}

.todo {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--warn-text);
  background: rgba(196, 161, 96, .10);
  border: 1px dashed rgba(196, 161, 96, .40);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ═══ KEY CAP ═══════════════════════════════════════════════════════════ */
kbd {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: var(--text-hi);
  background: var(--bg3);
  border: 1px solid var(--border-hi);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
}

/* ═══ CLOSER ════════════════════════════════════════════════════════════ */
.closer {
  border-top: 1px solid var(--border);
  padding-block: clamp(56px, 7vw, 88px);
  text-align: center;
}

.closer h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -.034em;
  max-width: none;
}

.closer .lede {
  margin: var(--s3) auto 0;
  max-width: 52ch;
}

.closer .cta {
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ═══ FOOTER ════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer>.wrap {
  padding-block: var(--s5) 76px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) clamp(32px, 6vw, 64px);
  font-size: 14px;
  color: var(--text-md);
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-md);
  margin-bottom: 2px;
}

.site-footer a {
  transition: color .16s ease;
}

.site-footer a:hover {
  color: var(--text-hi);
}

.site-footer .end {
  margin-left: auto;
  text-align: right;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.55;
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 940px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }

  .toc {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--s3);
  }

  .toc ol {
    border-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  .toc a {
    padding: 4px 0;
    margin-left: 0;
    border-left: 0;
  }

  .toc a:hover {
    border-left-color: transparent;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .bar {
    height: 58px;
  }

  .ver,
  .bar-end .btn-ghost {
    display: none;
  }

  .site-footer .end {
    margin-left: 0;
    text-align: left;
  }
}

/* Keeps a short value column - storage targets, hosts - on one line rather
   than letting it break after every nowrap <code>. .tw scrolls if it has to. */
td.nw {
  white-space: nowrap;
}
