/* help.a4g.io — a4g.io brand (green ink on warm paper); light and dark. No external requests. */
:root {
  --brand: #0a5c3a;
  --brand-mid: #1a7d52;
  --brand-light: #e6f4ee;
  --ink: #0a0a0a;
  --ink-2: #1f1f1f;
  --ink-3: #3a3a3a;
  --ink-4: #6b7280;
  --bg: #fafaf9;
  --bg-2: #f3f4f1;
  --bg-3: #e8e9e4;
  --border: #e2e3de;
  --amber: #b45309;
  --amber-bg: #fef6e7;
  --red: #b91c1c;
  --red-bg: #fdeeee;
  --blue: #1d4ed8;
  --blue-bg: #edf2fe;
  --sans: 'Inter Variable', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Outfit Variable', Outfit, var(--sans);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fc08d;
    --brand-mid: #6fd3a5;
    --brand-light: #12301f;
    --ink: #f2f2ef;
    --ink-2: #e2e2de;
    --ink-3: #c4c4bf;
    --ink-4: #9a9a94;
    --bg: #111311;
    --bg-2: #181b18;
    --bg-3: #222622;
    --border: #2b302b;
    --amber: #f0b453;
    --amber-bg: #2b2210;
    --red: #f08a8a;
    --red-bg: #2e1616;
    --blue: #93b4ff;
    --blue-bg: #151d33;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 16px/1.65 var(--sans);
  background: var(--bg);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--brand-mid);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 50;
}
.skip:focus {
  left: 8px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.logo {
  font: 700 20px/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--brand);
}
.brand-sub {
  font: 500 15px/1 var(--display);
  color: var(--ink-3);
}
.menu {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 6px;
  width: 36px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
}
.search {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin-left: 24px;
}
.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.search input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-color: transparent;
}
#results {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
  max-height: 70vh;
  overflow: auto;
}
#results li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
}
#results li a:hover,
#results li a.active {
  background: var(--brand-light);
}
#results .r-title {
  font-weight: 600;
  color: var(--ink);
}
#results .r-sub {
  display: block;
  font-size: 12px;
  color: var(--ink-4);
}
#results .r-empty {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink-4);
}
.links {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.links a {
  color: var(--ink-3);
  text-decoration: none;
}
.links a:hover {
  color: var(--brand);
}

/* Layout */
.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  max-width: 1360px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: auto;
  padding: 24px 16px 40px 20px;
  border-right: 1px solid var(--border);
}
.nav-section {
  margin-bottom: 22px;
}
.nav-title {
  margin: 0 0 6px;
  font: 600 11px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.sidebar ul,
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar a {
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.4;
}
.sidebar a:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.sidebar a[aria-current='page'] {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}
.content {
  min-width: 0;
  padding: 36px 48px 64px;
}
.toc {
  position: sticky;
  top: 60px;
  align-self: start;
  padding: 32px 20px;
  font-size: 13px;
}
.toc a {
  display: block;
  padding: 4px 0;
  color: var(--ink-4);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover {
  color: var(--brand);
}
.crumb {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

/* Article */
article {
  max-width: 760px;
}
article h1 {
  font: 700 34px/1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
article h2 {
  font: 650 23px/1.3 var(--display);
  color: var(--ink);
  margin: 44px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
article h3 {
  font: 600 18px/1.35 var(--display);
  color: var(--ink);
  margin: 30px 0 8px;
}
article h4 {
  font-size: 16px;
  margin: 22px 0 6px;
  color: var(--ink);
}
article h2:first-of-type {
  border-top: 0;
}
.anchor {
  float: left;
  margin-left: -22px;
  width: 22px;
  color: var(--ink-4);
  text-decoration: none;
  opacity: 0;
  font-weight: 400;
}
h2:hover .anchor,
h3:hover .anchor {
  opacity: 1;
}
article p,
article li {
  color: var(--ink-2);
}
article > p:first-of-type {
  font-size: 18px;
  color: var(--ink-3);
}
article ul,
article ol {
  padding-left: 22px;
}
article li + li {
  margin-top: 4px;
}
article strong {
  color: var(--ink);
}
article code {
  font: 0.88em var(--mono);
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 4px;
}
article pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow: auto;
  font-size: 13.5px;
  line-height: 1.55;
}
article pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
article blockquote {
  margin: 16px 0;
  padding: 4px 16px;
  border-left: 3px solid var(--border);
  color: var(--ink-3);
}
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-2);
  font-weight: 600;
  color: var(--ink);
}
tr:last-child td {
  border-bottom: 0;
}
.callout {
  margin: 20px 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  background: var(--bg-2);
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout p {
  margin: 6px 0;
}
.callout-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 2px !important;
}
.callout-note {
  border-left-color: var(--blue);
  background: var(--blue-bg);
}
.callout-note .callout-title {
  color: var(--blue);
}
.callout-tip,
.callout-security {
  border-left-color: var(--brand);
  background: var(--brand-light);
}
.callout-tip .callout-title,
.callout-security .callout-title {
  color: var(--brand);
}
.callout-important,
.callout-warning {
  border-left-color: var(--amber);
  background: var(--amber-bg);
}
.callout-important .callout-title,
.callout-warning .callout-title {
  color: var(--amber);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin-top: 56px;
}
.pager a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.pager a:hover {
  border-color: var(--brand);
}
.pager span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-4);
}
.pager .next {
  text-align: right;
}
.foot {
  max-width: 760px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-4);
}
.foot a {
  color: var(--ink-4);
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
@media (max-width: 860px) {
  .shell {
    display: block;
  }
  .menu {
    display: inline-block;
  }
  .links {
    display: none;
  }
  .search {
    margin-left: 0;
  }
  .brand-sub {
    display: none;
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    background: var(--bg);
    border-right: 0;
  }
  body.nav-open .sidebar {
    display: block;
  }
  .content {
    padding: 24px 16px 48px;
  }
  article h1 {
    font-size: 28px;
  }
  .anchor {
    display: none;
  }
  .pager {
    grid-template-columns: 1fr;
  }
}
@media print {
  .top,
  .sidebar,
  .toc,
  .pager {
    display: none;
  }
  .shell {
    display: block;
  }
  .content {
    padding: 0;
  }
}

/* Screenshots: figure with caption; click opens the full image. */
article figure {
  margin: 22px 0 26px;
}
article figure img,
article .shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.08);
  background: #fff;
}
article figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-4);
  text-align: center;
}
.shot {
  display: block;
  cursor: zoom-in;
}

/* Screenshot overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 24px 24px;
  background: rgb(10 12 10 / 0.86);
  cursor: zoom-out;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: min(1440px, 100%);
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
  cursor: default;
}
.lightbox-caption {
  margin: 0;
  color: #e8e9e4;
  font-size: 13px;
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgb(255 255 255 / 0.28);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
body.lightbox-open {
  overflow: hidden;
}
