/*
 * Guias passo a passo — one stylesheet for every guide (black-kit/guias). Works offline: local font, no CDN.
 * Same family as the apps (Aurora look of the experience package): Plus Jakarta Sans, cool neutrals, white cards that
 * float on a soft page, one brand color. Light/dark follow the system; guia.js lets the person pin one
 * (html[data-theme]). Components are documented in guias/README.md and shown in guias/_modelo.html.
 */

@font-face {
  font-family: "Guia Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Guia Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens (light-dark pairs) */
:root {
  color-scheme: light dark;
  --brand: light-dark(#2b5fd9, #8aaaf0);
  --brand-text: light-dark(#2451bd, #a9c0f5);
  --on-brand: light-dark(#ffffff, #0b0d14);
  --brand-10: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-20: color-mix(in srgb, var(--brand) 22%, transparent);

  --page: light-dark(#f3f5fa, #0a0c13);
  --card: light-dark(#ffffff, #131722);
  --sunk: light-dark(#f6f8fc, #0e111a);
  --surface: light-dark(rgba(18, 28, 60, 0.04), rgba(255, 255, 255, 0.045));
  --surface-2: light-dark(rgba(18, 28, 60, 0.07), rgba(255, 255, 255, 0.08));
  --line: light-dark(rgba(18, 28, 60, 0.1), rgba(255, 255, 255, 0.1));
  --line-strong: light-dark(rgba(18, 28, 60, 0.18), rgba(255, 255, 255, 0.18));
  --control-line: light-dark(#7b829a, #6b738d);
  --fg: light-dark(#0f1630, #eef0f8);
  --fg-mid: light-dark(#38405c, #c3c8da);
  --fg-dim: light-dark(#4d5572, #9aa2ba);

  --positive: light-dark(#137a38, #4cc27a);
  --negative: light-dark(#b8322a, #f0776b);
  --warning: light-dark(#93540a, #e0a046);
  --info: light-dark(#2563a8, #7aa7e0);
  --positive-soft: light-dark(#e3f4ea, #12301f);
  --negative-soft: light-dark(#fdeceb, #3a1f1d);
  --warning-soft: light-dark(#fcf1de, #36291a);
  --info-soft: light-dark(#e8eefb, #1b2b45);

  /* "Clique aqui" marker: warm, so it stands out on any service's blue buttons */
  --mark: light-dark(#ea580c, #fb923c);
  --mark-bg: light-dark(#c2410c, #fdba74);
  --mark-ink: light-dark(#ffffff, #1c0a00);

  /* Illustrations: a neutral "other site" drawn in the page, so it never looks like this guide's own UI */
  --ill-frame: light-dark(#e4e8f1, #232838);
  --ill-frame-ink: light-dark(#4d5572, #aab1c7);
  --ill-page: light-dark(#ffffff, #171b27);
  --ill-soft: light-dark(#f4f6fa, #1d2230);
  --ill-skel: light-dark(#e2e6ef, #2b3142);
  --ill-line: light-dark(#e3e7ef, #2a3040);
  --svc: #1d4ed8; /* main color of the service drawn; a guide may set style="--svc:#…" on .g-browser */
  --svc-ink: #ffffff;

  --card-shadow: light-dark(0 1px 2px rgba(18, 28, 60, 0.05), 0 1px 0 rgba(255, 255, 255, 0.04) inset),
    light-dark(0 12px 32px -14px rgba(18, 28, 60, 0.18), 0 14px 34px -14px rgba(0, 0, 0, 0.7));
  --ill-shadow: light-dark(0 18px 40px -22px rgba(18, 28, 60, 0.35), 0 18px 40px -20px rgba(0, 0, 0, 0.8));

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Guia Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --content-w: 760px;
  --toc-w: 250px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Old browsers without light-dark(): light only, still readable */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    color-scheme: light;
    --brand: #2b5fd9; --brand-text: #2451bd; --on-brand: #fff;
    --brand-10: rgba(43, 95, 217, 0.1); --brand-20: rgba(43, 95, 217, 0.22);
    --page: #f3f5fa; --card: #fff; --sunk: #f6f8fc; --surface: rgba(18, 28, 60, 0.04); --surface-2: rgba(18, 28, 60, 0.07);
    --line: rgba(18, 28, 60, 0.1); --line-strong: rgba(18, 28, 60, 0.18); --control-line: #7b829a;
    --fg: #0f1630; --fg-mid: #38405c; --fg-dim: #4d5572;
    --positive: #137a38; --negative: #b8322a; --warning: #93540a; --info: #2563a8;
    --positive-soft: #e3f4ea; --negative-soft: #fdeceb; --warning-soft: #fcf1de; --info-soft: #e8eefb;
    --mark: #ea580c; --mark-bg: #c2410c; --mark-ink: #fff;
    --ill-frame: #e4e8f1; --ill-frame-ink: #4d5572; --ill-page: #fff; --ill-soft: #f4f6fa; --ill-skel: #e2e6ef; --ill-line: #e3e7ef;
    --card-shadow: 0 1px 2px rgba(18, 28, 60, 0.05), 0 12px 32px -14px rgba(18, 28, 60, 0.18);
    --ill-shadow: 0 18px 40px -22px rgba(18, 28, 60, 0.35);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--brand-20); }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; color: var(--fg); }
p { margin: 0 0 0.85em; }
strong, b { font-weight: 700; }
code, kbd, samp { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.1em 0.38em;
  overflow-wrap: anywhere;
}
kbd, .g-kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--card);
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.g-ico {
  display: inline-block;
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
  vertical-align: -0.16em;
}
.g-skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.g-skip:focus { top: 12px; }

/* ------------------------------------------------------------------ top bar */
.g-top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.g-top-in {
  max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.g-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.g-brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center;
}
.g-brand-mark .g-ico { width: 17px; height: 17px; }
.g-brand small { display: block; font-size: 12.5px; font-weight: 500; color: var(--fg-dim); letter-spacing: 0; }
.g-top-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.g-tool {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--fg-mid);
  font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none;
}
.g-tool:hover { background: var(--surface-2); color: var(--fg); }
.g-tool .g-ico { width: 18px; height: 18px; }
.g-progress-line { height: 3px; background: transparent; }
.g-progress-line > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.3s ease; }

/* ------------------------------------------------------------------ layout */
.g-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }
.g-layout { display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr); gap: 48px; align-items: start; }
.g-main { min-width: 0; max-width: var(--content-w); }
.g-layout.is-wide .g-main, .g-main.is-wide { max-width: none; }

/* table of contents (filled by guia.js) */
.g-toc { position: sticky; top: 84px; padding-top: 40px; font-size: 14.5px; }
.g-toc:empty { display: none; }
.g-toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-dim); margin: 0 0 10px; }
.g-toc ol, .g-toc ul { list-style: none; margin: 0; padding: 0; }
.g-toc a {
  display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 9px;
  color: var(--fg-mid); text-decoration: none; line-height: 1.35;
}
.g-toc a:hover { background: var(--surface-2); color: var(--fg); }
.g-toc a[aria-current="true"] { background: var(--brand-10); color: var(--brand-text); font-weight: 650; }
.g-toc .g-toc-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--fg-mid); transform: translateY(1px);
}
.g-toc a.is-done .g-toc-n { background: var(--positive); color: #fff; }
.g-toc-steps { margin: 2px 0 6px 0 !important; }
.g-toc-meter { margin: 18px 10px 0; font-size: 13.5px; color: var(--fg-dim); }
.g-toc-meter .g-bar { margin-top: 6px; }
.g-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.g-bar > span { display: block; height: 100%; width: 0; background: var(--positive); border-radius: inherit; transition: width 0.3s ease; }
.g-toc details > summary { display: none; }

/* ------------------------------------------------------------------ hero */
.g-hero { padding: 44px 0 8px; }
.g-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-text);
  margin: 0 0 14px;
}
.g-hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.g-lead { margin: 16px 0 0; font-size: 19.5px; line-height: 1.55; color: var(--fg-mid); text-wrap: pretty; max-width: 680px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.g-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 13px;
  border-radius: 99px; background: var(--card); box-shadow: var(--card-shadow); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--fg-mid); line-height: 1.3;
}
.g-chip .g-ico { color: var(--brand-text); }
.g-chip b { color: var(--fg); font-weight: 700; }
/* level dots: <span class="g-level" data-nivel="2" aria-hidden="true"><i></i><i></i><i></i></span> */
.g-level { display: inline-flex; gap: 3px; }
.g-level i { width: 7px; height: 14px; border-radius: 2px; background: var(--surface-2); }
.g-level[data-nivel="1"] i:nth-child(-n + 1),
.g-level[data-nivel="2"] i:nth-child(-n + 2),
.g-level[data-nivel="3"] i:nth-child(-n + 3) { background: var(--brand); }

/* ------------------------------------------------------------------ sections and cards */
.g-section { margin-top: 44px; }
.g-section > h2, .g-h2 {
  font-size: 26px; font-weight: 750; letter-spacing: -0.025em; margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.g-section > h2 .g-ico { width: 24px; height: 24px; color: var(--brand-text); }
.g-section h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.012em; margin: 26px 0 10px; }
.g-card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
  border: 1px solid light-dark(transparent, var(--line));
  padding: 24px 26px;
}
.g-card > :last-child { margin-bottom: 0; }
.g-main ul:not([class]), .g-main ol:not([class]) { padding-left: 1.3em; margin: 0 0 1em; }
.g-main li:not([class]) + li:not([class]) { margin-top: 0.35em; }
.g-main li::marker { color: var(--fg-dim); }

/* "Antes de começar": what the person needs */
.g-needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.g-needs li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.g-needs li::before {
  content: ""; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-10) ;
  -webkit-mask: none; mask: none;
}
.g-needs li { position: relative; }
.g-needs li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 16px; height: 16px; background: var(--brand-text);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.g-needs li > :first-child { margin-top: 2px; }

/* ------------------------------------------------------------------ steps */
.g-steps { list-style: none; margin: 0; padding: 0; counter-reset: g-step; }
.g-step {
  counter-increment: g-step;
  position: relative;
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
  border: 1px solid light-dark(transparent, var(--line));
  padding: 24px 26px 20px 84px;
  margin: 0 0 18px;
}
.g-step::before {
  content: counter(g-step);
  position: absolute; left: 24px; top: 22px;
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
  font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 85%, transparent);
}
.g-step.is-done::before { content: ""; background: var(--positive); box-shadow: none; }
.g-step.is-done::after {
  content: ""; position: absolute; left: 34px; top: 32px; width: 20px; height: 20px; background: #fff;
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.g-step > h3, .g-step-title { font-size: 20px; font-weight: 720; letter-spacing: -0.015em; margin: 6px 0 10px; line-height: 1.3; text-wrap: balance; }
.g-step > p:last-child { margin-bottom: 0; }
.g-step figure { margin: 18px 0; }
.g-step-check {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  font-size: 14.5px; font-weight: 600; color: var(--fg-mid);
}
.g-step-check label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.g-step-check label:hover { color: var(--fg); }
.g-step-check input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--control-line); background: var(--card);
  display: grid; place-items: center; cursor: pointer;
}
.g-step-check input::after {
  content: ""; width: 14px; height: 14px; background: transparent;
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.g-step-check input:checked { background: var(--positive); border-color: var(--positive); }
.g-step-check input:checked::after { background: #fff; }
/* "Faça isto" line inside a step: one action, bold */
.g-do { font-weight: 650; }
/* sub-steps inside a step */
.g-substeps { margin: 8px 0 12px; padding-left: 1.3em; }
.g-substeps li + li { margin-top: 0.35em; }

/* ------------------------------------------------------------------ figures */
.g-fig { margin: 20px 0; }
.g-fig > figcaption, .g-caption {
  margin-top: 10px; font-size: 14px; color: var(--fg-dim); line-height: 1.5; text-align: center; text-wrap: balance;
}

/* ---- browser window: <div class="g-browser"><div class="g-browser-bar"><span class="g-dots"></span><span class="g-url">…</span></div><div class="g-browser-body">…</div></div> */
.g-browser {
  container-type: inline-size;
  border-radius: 14px; overflow: hidden;
  background: var(--ill-frame);
  border: 1px solid var(--line);
  box-shadow: var(--ill-shadow);
  font-size: 14px;
  line-height: 1.4;
}
.g-browser-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; }
.g-dots {
  --d: light-dark(#c9cfdc, #3a4154);
  flex: none; width: 46px; height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--d) 5.5px, transparent 6px), radial-gradient(circle at 23px 6px, var(--d) 5.5px, transparent 6px), radial-gradient(circle at 40px 6px, var(--d) 5.5px, transparent 6px);
}
.g-url {
  flex: 1; min-width: 0; height: 28px; border-radius: 99px; background: var(--ill-page);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  font-size: 13px; color: var(--ill-frame-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-url::before {
  content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: var(--i-lock) center / contain no-repeat; mask: var(--i-lock) center / contain no-repeat;
}
.g-url b { color: var(--fg); font-weight: 600; }
.g-browser-body { background: var(--ill-page); color: var(--fg); position: relative; }
@container (max-width: 520px) {
  .g-browser { font-size: 12.5px; }
  .g-url { font-size: 12px; }
}

/* Service colors for illustrations (no inline styles: the apps serve guides under a strict CSP). Add new ones here. */
.svc-meta { --svc: #0866ff; }
.svc-whatsapp { --svc: #1a7f5a; }
.svc-instagram { --svc: #c13584; }
.svc-google { --svc: #1a73e8; }
.svc-bitwarden { --svc: #175ddc; }
.svc-slack { --svc: #4a154b; }
.svc-violeta { --svc: #7c3aed; }
.svc-vercel { --svc: #171717; }
.svc-laranja { --svc: #c2410c; }
.svc-verde-agua { --svc: #0f766e; }
.svc-tiktok { --svc: #fe2c55; --svc-ink: #1c0a00; }
.svc-stripe { --svc: #635bff; }
.svc-kiwify { --svc: #16a34a; --svc-ink: #05230f; }
.svc-node { --svc: #417e38; }
.svc-github { --svc: #1f883d; }
.svc-hotmart { --svc: #f04e23; --svc-ink: #1c0a00; }
.svc-cloudflare { --svc: #f38020; --svc-ink: #1c0a00; }
.svc-teal { --svc: #0f766e; }
/* small layout helpers that used to be inline styles */
.g-push { margin-left: auto; }
.g-box.is-menu { min-width: min(260px, 100%); }
/* prose to copy (long texts): wrap instead of scrolling sideways */
.g-code.is-wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- fake page: header + optional side menu + main */
.g-page { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 220px; }
.g-page.has-side { grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); }
.g-page-head {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 18px;
  border-bottom: 1px solid var(--ill-line);
}
.g-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.g-logo::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: var(--svc); flex: none; }
.g-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ill-skel); margin-left: auto; flex: none; }
.g-page-side { padding: 14px 10px; border-right: 1px solid var(--ill-line); background: var(--ill-soft); display: grid; align-content: start; gap: 2px; }
.g-page-main { padding: 20px 22px 26px; min-width: 0; }
.g-page-title { font-size: 1.3em; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 6px; }
.g-page-sub { color: var(--fg-dim); margin: 0 0 14px; font-size: 0.95em; }
.g-menu-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--fg-mid);
  white-space: nowrap; overflow: visible; min-width: 0;
}
.g-menu-item::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--ill-skel); flex: none; }
.g-menu-item.is-active { background: color-mix(in srgb, var(--svc) 12%, transparent); color: var(--fg); font-weight: 650; }
.g-menu-item.is-active::before { background: var(--svc); }
.g-menu-label { font-size: 0.78em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); padding: 10px 10px 4px; }
.g-skel { display: block; height: 10px; border-radius: 99px; background: var(--ill-skel); margin: 9px 0; width: 70%; }
.g-skel.w-20 { width: 20%; } .g-skel.w-30 { width: 30%; } .g-skel.w-40 { width: 40%; } .g-skel.w-50 { width: 50%; }
.g-skel.w-60 { width: 60%; } .g-skel.w-80 { width: 80%; } .g-skel.w-90 { width: 90%; }
.g-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.g-row.is-end { justify-content: flex-end; }
.g-row.is-between { justify-content: space-between; }
.g-stack { display: grid; gap: 10px; }
.g-box { border: 1px solid var(--ill-line); border-radius: 10px; padding: 12px 14px; background: var(--ill-page); }
.g-box.is-soft { background: var(--ill-soft); }
.g-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--ill-line); }
.g-list-row:last-child { border-bottom: 0; }
.g-list-row .g-grow { flex: 1; min-width: 0; }

/* buttons drawn inside illustrations */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 2.45em; padding: 0 1.05em;
  border-radius: 8px; border: 1px solid var(--ill-line); background: var(--ill-page); color: var(--fg);
  font-weight: 650; white-space: nowrap; font-size: 0.95em;
}
.g-btn.is-primary { background: var(--svc); border-color: var(--svc); color: var(--svc-ink); }
.g-btn.is-ghost { border-color: transparent; background: transparent; color: var(--fg-mid); }
.g-btn.is-link { border-color: transparent; background: transparent; color: var(--svc); padding: 0 0.3em; }
.g-btn.is-round { border-radius: 99px; }
.g-tab-row { display: flex; gap: 4px; border-bottom: 1px solid var(--ill-line); margin: 0 0 14px; overflow: visible; }
.g-tab { padding: 8px 12px; color: var(--fg-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.g-tab.is-active { color: var(--fg); font-weight: 650; border-bottom-color: var(--svc); }
.g-switch { display: inline-flex; width: 34px; height: 20px; border-radius: 99px; background: var(--ill-skel); padding: 2px; flex: none; }
.g-switch::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.g-switch.is-on { background: var(--svc); justify-content: flex-end; }
.g-tick { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--control-line); flex: none; display: inline-grid; place-items: center; }
.g-tick.is-on { background: var(--svc); border-color: var(--svc); }
.g-tick.is-on::after { content: ""; width: 12px; height: 12px; background: var(--svc-ink); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.g-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 0.85em; font-weight: 650; background: var(--surface-2); color: var(--fg-mid); white-space: nowrap; }
.g-pill.is-ok { background: var(--positive-soft); color: var(--positive); }
.g-pill.is-warn { background: var(--warning-soft); color: var(--warning); }
.g-pill.is-bad { background: var(--negative-soft); color: var(--negative); }
.g-pill.is-info { background: var(--info-soft); color: var(--info); }

/* fake input inside an illustration */
.g-fake-field { display: grid; gap: 5px; margin: 10px 0; }
.g-fake-field > span:first-child { font-size: 0.88em; font-weight: 600; color: var(--fg-mid); }
.g-fake-input {
  display: flex; align-items: center; min-height: 2.5em; padding: 0 0.8em; border-radius: 8px;
  border: 1px solid var(--control-line); background: var(--ill-page); color: var(--fg);
  font-family: var(--mono); font-size: 0.92em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.g-fake-input.is-empty { color: var(--fg-dim); font-family: var(--font); }
.g-fake-input.is-select { background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2em; font-family: var(--font); }

/* modal over the fake page */
.g-modal-scene { position: relative; display: flow-root; }
.g-modal-scene::before { content: ""; position: absolute; inset: 0; background: light-dark(rgba(15, 22, 48, 0.32), rgba(0, 0, 0, 0.55)); z-index: 1; }
.g-modal {
  position: relative; z-index: 2; margin: -190px auto 22px; width: min(88%, 420px);
  background: var(--ill-page); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--ill-line);
}
.g-modal h4 { font-size: 1.08em; font-weight: 750; margin: 0 0 8px; }

/* ---- the "Clique aqui" marker: wrap the element. <span class="g-target">…<span class="g-hint">Clique aqui</span></span> */
.g-target {
  position: relative; display: inline-flex; border-radius: 10px;
  outline: 3px solid var(--mark); outline-offset: 3px;
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--mark) 22%, transparent);
  z-index: 3;
}
.g-target.is-block { display: flex; }
.g-target > .g-btn, .g-target > .g-menu-item { flex: 1; }
@media (prefers-reduced-motion: no-preference) {
  .g-target { animation: g-pulse 2.2s ease-in-out infinite; }
}
@keyframes g-pulse {
  0%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mark) 26%, transparent); }
  50% { box-shadow: 0 0 0 13px color-mix(in srgb, var(--mark) 8%, transparent); }
}
.g-hint {
  position: absolute; z-index: 4; left: 50%; top: calc(100% + 16px); transform: translateX(-50%);
  background: var(--mark-bg); color: var(--mark-ink);
  font: 700 13px/1.25 var(--font); letter-spacing: 0; text-transform: none;
  padding: 6px 11px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.g-hint::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom-color: var(--mark-bg);
}
.g-hint.is-top { top: auto; bottom: calc(100% + 16px); }
.g-hint.is-top::before { bottom: auto; top: 100%; border-bottom-color: transparent; border-top-color: var(--mark-bg); }
.g-hint.is-right { left: calc(100% + 16px); top: 50%; transform: translateY(-50%); }
.g-hint.is-right::before { left: auto; right: 100%; bottom: auto; top: 50%; transform: translateY(-50%); border-bottom-color: transparent; border-right-color: var(--mark-bg); }
.g-hint.is-left { left: auto; right: calc(100% + 16px); top: 50%; transform: translateY(-50%); }
.g-hint.is-left::before { left: 100%; bottom: auto; top: 50%; transform: translateY(-50%); border-bottom-color: transparent; border-left-color: var(--mark-bg); }
@container (max-width: 560px) {
  .g-tab-row { flex-wrap: wrap; row-gap: 0; }
  .g-tab { padding: 8px 8px; }
  .g-page.has-side { grid-template-columns: minmax(0, 1fr); }
  .g-page.has-side > .g-page-side { border-right: 0; border-bottom: 1px solid var(--ill-line); display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .g-page.has-side > .g-page-side .g-menu-label { display: none; }
  .g-page.has-side > .g-page-side:has(.g-hint) { padding-bottom: 52px; }
  .g-page-main { padding: 16px 14px 20px; }
}
@container (max-width: 520px) {
  .g-hint.is-right, .g-hint.is-left { left: 50%; right: auto; top: calc(100% + 16px); transform: translateX(-50%); }
  .g-hint.is-right::before, .g-hint.is-left::before { left: 50%; right: auto; top: auto; bottom: 100%; transform: translateX(-50%); border-color: transparent; border-bottom-color: var(--mark-bg); }
}
/* leave room under the target for its hint */
.g-room { padding-bottom: 44px; }
.g-room-top { padding-top: 44px; }
/* numbered marks when one picture shows several places in order */
.g-num {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--mark-bg); color: var(--mark-ink); font: 750 12.5px/1 var(--font);
  box-shadow: 0 0 0 3px var(--ill-page);
}

/* ---- terminal: <div class="g-term" data-titulo="Terminal"><div class="g-cmd" data-copiar>npm run dev</div><div class="g-out">…</div></div> */
.g-term {
  border-radius: 14px; overflow: hidden; background: #0d1117; color: #e6edf3;
  box-shadow: var(--ill-shadow); border: 1px solid light-dark(transparent, rgba(255, 255, 255, 0.1));
  font: 14px/1.6 var(--mono);
}
.g-term::before {
  content: attr(data-titulo); display: block; padding: 10px 14px 10px 74px; position: relative;
  font: 600 12.5px/1.2 var(--font); color: #9ba7b4; background: #161b22; border-bottom: 1px solid #262c36;
  background-image: radial-gradient(circle at 20px 50%, #ff5f57 5.5px, transparent 6px), radial-gradient(circle at 38px 50%, #febc2e 5.5px, transparent 6px), radial-gradient(circle at 56px 50%, #28c840 5.5px, transparent 6px);
}
.g-term[data-titulo=""]::before, .g-term:not([data-titulo])::before { content: "\00a0"; }
.g-term-body { padding: 14px 16px; overflow-x: auto; }
.g-term > .g-cmd:first-of-type, .g-term > .g-out:first-of-type { margin-top: 12px; }
.g-term > :last-child { margin-bottom: 14px; }
.g-term, .g-code { margin: 16px 0; }
.g-cmd, .g-out { padding: 2px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.g-cmd { display: flex; align-items: flex-start; gap: 10px; }
.g-cmd::before { content: "$"; color: #7ee787; flex: none; user-select: none; -webkit-user-select: none; }
.g-term.is-windows .g-cmd::before { content: ">"; color: #79c0ff; }
.g-cmd.is-root::before { content: "#"; color: #ffa657; }
.g-cmd > .g-cmd-text { flex: 1; min-width: 0; }
.g-out { color: #9ba7b4; }
.g-out .is-ok { color: #7ee787; }
.g-out .is-bad { color: #ff7b72; }
.g-term .g-copy { margin-left: auto; color: #c9d1d9; background: #21262d; border-color: #30363d; }
.g-term .g-copy:hover { background: #30363d; color: #fff; }
.g-term .g-comment { color: #8b949e; }
/* plain code block (files such as docker-compose.yml) */
.g-code {
  position: relative; border-radius: 14px; background: #0d1117; color: #e6edf3; box-shadow: var(--ill-shadow);
  border: 1px solid light-dark(transparent, rgba(255, 255, 255, 0.1)); overflow: hidden;
}
.g-code-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: #161b22; border-bottom: 1px solid #262c36; font: 600 13px/1.2 var(--font); color: #9ba7b4; }
.g-code-head .g-copy { margin-left: auto; color: #c9d1d9; background: #21262d; border-color: #30363d; }
.g-code pre, .g-term { scrollbar-color: #3b4350 transparent; }
.g-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); tab-size: 2; }
.g-code .c { color: #8b949e; }
.g-code .k { color: #ff7b72; }
.g-code .s { color: #a5d6ff; }
.g-code .v { color: #ffa657; }

/* ------------------------------------------------------------------ example values (copyable) */
.g-fields { display: grid; gap: 12px; margin: 16px 0; }
.g-field { display: grid; gap: 6px; }
.g-field-label { font-size: 14.5px; font-weight: 650; color: var(--fg-mid); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-field-value {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 14px;
  border-radius: 12px; border: 1px solid var(--control-line); background: var(--card);
  font: 15px/1.4 var(--mono); color: var(--fg); min-width: 0;
}
.g-field-value > .g-val { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.g-field-note { font-size: 14px; color: var(--fg-dim); }
.g-tag {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; font: 700 11.5px/1.6 var(--font);
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-2); color: var(--fg-mid);
}
.g-tag.is-example { background: var(--warning-soft); color: var(--warning); }
.g-tag.is-secret { background: var(--negative-soft); color: var(--negative); }
.g-tag.is-app { background: var(--brand-10); color: var(--brand-text); }
.g-copy {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; flex: none;
  border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-mid);
  font: 600 13.5px/1 var(--font); cursor: pointer;
}
.g-copy:hover { background: var(--surface-2); color: var(--fg); }
.g-copy::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-copy) center / contain no-repeat; mask: var(--i-copy) center / contain no-repeat; }
.g-copy.is-copied { color: var(--positive); border-color: var(--positive); }
.g-copy.is-copied::before { -webkit-mask-image: var(--i-check); mask-image: var(--i-check); }

/* ------------------------------------------------------------------ "Onde colar no app": mimics the app's Conexões card */
.g-app {
  container-type: inline-size;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--ill-shadow);
  background: var(--page); font-size: 14.5px; line-height: 1.45;
}
/* The app's default look (theme "Lendária"): near-black bar, white cards, gold only on accents; in light mode the
   primary button is black with a gold label, in dark mode it is gold. */
.g-app { --app-gold: #c9b298; --app-gold-text: light-dark(#6f5a3c, #d9c6ad); --app-ink: #111111; }
.g-app-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: #0d0d0f;
  color: #fff;
}
.g-app-bar .g-app-name { font-weight: 750; letter-spacing: -0.01em; }
.g-app-bar .g-app-name::before { content: ""; display: inline-block; width: 22px; height: 22px; border-radius: 7px; background: var(--app-gold); vertical-align: -6px; margin-right: 9px; }
.g-app-crumb { margin-left: auto; font-size: 13.5px; color: rgba(255, 255, 255, 0.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-app-crumb b { color: #fff; font-weight: 650; }
.g-app-body { padding: 18px; }
.g-app-card { background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); border: 1px solid light-dark(transparent, var(--line)); padding: 18px 20px; }
.g-app-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.g-app-icon { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--app-gold) 22%, transparent); color: var(--app-gold-text); display: grid; place-items: center; flex: none; }
.g-app-icon .g-ico { width: 20px; height: 20px; }
.g-app-card-head h4 { font-size: 16.5px; font-weight: 750; letter-spacing: -0.01em; margin: 0; }
.g-app-card-head p { margin: 2px 0 0; color: var(--fg-dim); font-size: 13.5px; }
.g-app-card-head .g-pill { margin-left: auto; }
.g-app .g-fake-field > span:first-child { font-size: 13.5px; }
.g-app .g-fake-input { border-radius: 11px; min-height: 42px; }
.g-app .g-btn { border-radius: 11px; height: 40px; font-size: 14px; }
.g-app .g-btn.is-primary { background: light-dark(var(--app-ink), var(--app-gold)); border-color: light-dark(var(--app-ink), var(--app-gold)); color: light-dark(var(--app-gold), var(--app-ink)); }
.g-app .g-target { border-radius: 12px; }

/* ------------------------------------------------------------------ callouts */
.g-callout {
  position: relative; margin: 18px 0; padding: 16px 18px 16px 54px; border-radius: 14px;
  background: var(--info-soft); color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--info) 22%, transparent);
}
.g-callout::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; background: var(--info);
  -webkit-mask: var(--i-info) center / contain no-repeat; mask: var(--i-info) center / contain no-repeat;
}
.g-callout > :last-child { margin-bottom: 0; }
.g-callout-title { display: block; font-weight: 750; margin: 0 0 4px; color: var(--info); }
.g-callout.is-warn { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.g-callout.is-warn::before { background: var(--warning); -webkit-mask-image: var(--i-warn); mask-image: var(--i-warn); }
.g-callout.is-warn .g-callout-title { color: var(--warning); }
.g-callout.is-tip { background: var(--positive-soft); border-color: color-mix(in srgb, var(--positive) 22%, transparent); }
.g-callout.is-tip::before { background: var(--positive); -webkit-mask-image: var(--i-tip); mask-image: var(--i-tip); }
.g-callout.is-tip .g-callout-title { color: var(--positive); }
.g-callout.is-error { background: var(--negative-soft); border-color: color-mix(in srgb, var(--negative) 22%, transparent); }
.g-callout.is-error::before { background: var(--negative); -webkit-mask-image: var(--i-error); mask-image: var(--i-error); }
.g-callout.is-error .g-callout-title { color: var(--negative); }

/* ------------------------------------------------------------------ "Como saber que deu certo" */
.g-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-checklist li {
  position: relative; padding: 12px 16px 12px 52px; border-radius: 14px; background: var(--card);
  box-shadow: var(--card-shadow); border: 1px solid light-dark(transparent, var(--line));
}
.g-checklist li::before {
  content: ""; position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--positive-soft);
}
.g-checklist li::after {
  content: ""; position: absolute; left: 20px; top: 19px; width: 14px; height: 14px; background: var(--positive);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}

/* ------------------------------------------------------------------ common errors (accordion) */
.g-errors { display: grid; gap: 10px; }
.g-error {
  background: var(--card); border-radius: 14px; box-shadow: var(--card-shadow);
  border: 1px solid light-dark(transparent, var(--line)); overflow: hidden;
}
.g-error > summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  font-weight: 650; line-height: 1.45;
}
.g-error > summary::-webkit-details-marker { display: none; }
.g-error > summary::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: var(--negative);
  -webkit-mask: var(--i-error) center / contain no-repeat; mask: var(--i-error) center / contain no-repeat;
}
.g-error > summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: 7px; width: 9px; height: 9px;
  border-right: 2px solid var(--fg-dim); border-bottom: 2px solid var(--fg-dim); transform: rotate(45deg); transition: transform 0.2s;
}
.g-error[open] > summary::after { transform: rotate(-135deg); margin-top: 11px; }
.g-error > summary:hover { background: var(--surface); }
.g-error-body { padding: 0 18px 16px 50px; color: var(--fg-mid); }
.g-error-body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ OS tabs: <div class="g-os"><div class="g-os-panel" data-os="mac" data-rotulo="Mac">…</div>… */
.g-os { margin: 16px 0; }
.g-os-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin: 0 0 14px; }
.g-os-tab {
  height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--fg-mid);
  font: 650 14.5px/1 var(--font); cursor: pointer;
}
.g-os-tab[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(18, 28, 60, 0.18); }
.g-os.is-ready .g-os-panel[hidden] { display: none; }
.g-os:not(.is-ready) .g-os-panel + .g-os-panel { margin-top: 18px; }
.g-os:not(.is-ready) .g-os-panel::before {
  content: attr(data-rotulo); display: block; font-weight: 750; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px;
}

/* ------------------------------------------------------------------ index cards */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.g-guide-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--card);
  box-shadow: var(--card-shadow); border: 1px solid light-dark(transparent, var(--line)); color: var(--fg); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.g-guide-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow), 0 0 0 2px var(--brand-20); }
.g-guide-card h3 { font-size: 17px; font-weight: 720; letter-spacing: -0.012em; margin: 0; }
.g-guide-card p { margin: 0; font-size: 14.5px; color: var(--fg-dim); line-height: 1.5; }
.g-guide-card .g-guide-meta { margin-top: auto; padding-top: 8px; display: flex; gap: 12px; font-size: 13px; font-weight: 600; color: var(--fg-dim); }
.g-guide-card .g-guide-meta .g-ico { color: var(--brand-text); margin-right: 4px; }
.g-group + .g-group { margin-top: 36px; }
.g-group > h2 { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-dim); margin: 0 0 12px; }

/* path of guides (sequence) */
.g-path { list-style: none; margin: 0; padding: 0; counter-reset: g-path; display: grid; gap: 10px; }
.g-path li { counter-increment: g-path; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.g-path li::before {
  content: counter(g-path); width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-10); color: var(--brand-text); font-weight: 750;
}
.g-path li > :first-child { margin-top: 4px; }

/* table */
.g-table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 14px; box-shadow: var(--card-shadow); border: 1px solid light-dark(transparent, var(--line)); background: var(--card); }
.g-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.g-table th { text-align: left; font-size: 12.5px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-mid); background: var(--sunk); padding: 11px 16px; border-bottom: 1px solid var(--line); }
.g-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ footer: sources */
.g-sources { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg-dim); }
.g-sources h2 { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-dim); margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.g-sources ul { margin: 0 0 12px; padding-left: 1.2em; }
.g-sources li + li { margin-top: 4px; }
.g-sources a { color: var(--fg-mid); }
.g-checked { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg-mid); }
.g-next {
  display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 20px 22px; border-radius: 18px;
  background: var(--brand-10); color: var(--fg); text-decoration: none; border: 1px solid var(--brand-20);
}
.g-next:hover { background: var(--brand-20); }
.g-next small { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brand-text); }
.g-next strong { font-size: 18px; }
.g-next .g-ico { margin-left: auto; width: 22px; height: 22px; color: var(--brand-text); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-main { max-width: none; }
  .g-toc { position: static; padding-top: 18px; }
  .g-toc details { background: var(--card); border-radius: 14px; box-shadow: var(--card-shadow); border: 1px solid light-dark(transparent, var(--line)); }
  .g-toc details > summary {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 650; font-size: 15px;
  }
  .g-toc details > summary::-webkit-details-marker { display: none; }
  .g-toc details > summary .g-bar { flex: 1; max-width: 140px; margin-left: auto; }
  .g-toc details > :not(summary) { padding: 0 8px 12px; }
  .g-toc .g-toc-title, .g-toc .g-toc-meter { display: none; }
  .g-hero { padding-top: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .g-top-in { padding: 0 14px; gap: 6px; }
  .g-wrap { padding: 0 16px 56px; }
  .g-tool .g-tool-label { display: none; }
  .g-tool { padding: 0 10px; }
  .g-brand small { display: none; }
  .g-lead { font-size: 18px; }
  .g-card { padding: 20px; border-radius: 16px; }
  .g-step { padding: 20px 18px 16px; border-radius: 16px; }
  .g-step::before { left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 11px; font-size: 16.5px; }
  .g-step.is-done::after { left: 26px; top: 26px; }
  .g-step > h3, .g-step-title { margin: 0 0 10px 48px; min-height: 36px; display: flex; align-items: center; font-size: 18.5px; }
  .g-section > h2 { font-size: 23px; }
  .g-callout { padding: 14px 14px 14px 46px; }
  .g-callout::before { left: 14px; top: 16px; width: 20px; height: 20px; }
  .g-error-body { padding-left: 18px; }
  .g-field-value { font-size: 14px; }
  .g-app-body { padding: 12px; }
  .g-app-card { padding: 16px; }
  .g-app-crumb { display: none; }
  .g-term .g-copy, .g-code .g-copy { font-size: 0; gap: 0; padding: 0 10px; }
  .g-term .g-copy::before, .g-code .g-copy::before { width: 16px; height: 16px; }
}

/* ------------------------------------------------------------------ print */
@media print {
  :root { color-scheme: light !important; }
  @page { margin: 16mm 14mm; }
  body { background: #fff; font-size: 11.5pt; line-height: 1.5; }
  .g-top, .g-toc, .g-skip, .g-step-check, .g-copy, .g-os-tabs, .g-next { display: none !important; }
  .g-wrap { padding: 0; max-width: none; }
  .g-layout { display: block; }
  .g-main { max-width: none; }
  .g-hero { padding-top: 0; }
  .g-card, .g-step, .g-checklist li, .g-error, .g-guide-card, .g-table-wrap, .g-app-card { box-shadow: none !important; border: 1px solid #d6dae4 !important; }
  .g-step { break-inside: auto; padding-left: 70px; }
  .g-step::before { box-shadow: none; }
  .g-fig, .g-browser, .g-term, .g-code, .g-app, .g-callout, .g-checklist li, .g-field { break-inside: avoid; }
  .g-browser, .g-term, .g-code, .g-app { box-shadow: none !important; }
  .g-target { animation: none !important; box-shadow: none !important; }
  .g-error > summary::after { display: none; }
  .g-os-panel[hidden] { display: block !important; }
  .g-os-panel::before { content: attr(data-rotulo); display: block; font-weight: 750; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.06em; color: #4d5572; margin: 10px 0 6px; }
  .g-sources a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  h2, h3 { break-after: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Icons (Lucide, ISC license), used as masks: the shape comes from here, the color from `background: currentColor`. */
:root {
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --i-tip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
  --i-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --i-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --i-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6'/%3E%3Crect x='6' y='14' width='12' height='8' rx='1'/%3E%3C/svg%3E");
  --i-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
  --i-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
  --i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
  --i-plug: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V2'/%3E%3Cpath d='M15 8V2'/%3E%3Cpath d='M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z'/%3E%3C/svg%3E");
  --i-level: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v16a2 2 0 0 0 2 2h16'/%3E%3Cpath d='M18 17V9'/%3E%3Cpath d='M13 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E");
  --i-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E");
  --i-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  --i-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M8 6h13'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --i-terminal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 17 6-6-6-6'/%3E%3Cpath d='M12 19h8'/%3E%3C/svg%3E");
  --i-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4'/%3E%3Cpath d='m21 2-9.6 9.6'/%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E");
  --i-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.i-warn { --ico: var(--i-warn); }
.i-tip { --ico: var(--i-tip); }
.i-error { --ico: var(--i-error); }
.i-info { --ico: var(--i-info); }
.i-copy { --ico: var(--i-copy); }
.i-check { --ico: var(--i-check); }
.i-lock { --ico: var(--i-lock); }
.i-clock { --ico: var(--i-clock); }
.i-print { --ico: var(--i-print); }
.i-moon { --ico: var(--i-moon); }
.i-sun { --ico: var(--i-sun); }
.i-back { --ico: var(--i-back); }
.i-plug { --ico: var(--i-plug); }
.i-level { --ico: var(--i-level); }
.i-book { --ico: var(--i-book); }
.i-ext { --ico: var(--i-ext); }
.i-list { --ico: var(--i-list); }
.i-arrow { --ico: var(--i-arrow); }
.i-terminal { --ico: var(--i-terminal); }
.i-key { --ico: var(--i-key); }
.i-search { --ico: var(--i-search); }
.i-user { --ico: var(--i-user); }
.i-shield { --ico: var(--i-shield); }
.i-play { --ico: var(--i-play); }
.i-help { --ico: var(--i-help); }
