/* Guides: same world as the home page. Tokens mirror site/index.html :root. */
:root {
  --ground: #060708;
  --ground-lift: #101215;
  --ink: #f5f5f7;
  --ink-2: #a1a1a8;
  --ink-3: #818189;
  --hair: rgba(255, 255, 255, .08);
  --pill: #000;
  --ring: #d1d1d1;
  --track: rgba(255, 255, 255, .22);
  --warn: #ff9f0a;
  --crit: #ff453a;
  --out: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 34px;
  --notch-w: 186px;
  --ear: 58px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); scrollbar-color: #2a2c30 var(--ground); }
body {
  margin: 0;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 50% -140px, #17191d 0%, transparent 70%),
    var(--ground);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  overflow-x: hidden;
}
::selection { background: rgba(209, 209, 209, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; text-underline-offset: .22em; text-decoration-color: rgba(255, 255, 255, .3); }
a:hover { text-decoration-color: currentColor; }
code, pre { font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; }

/* ── Menu bar ─────────────────────────────────────────── */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(10, 11, 13, .62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 13px; font-weight: 500;
}
.menubar__side { display: flex; align-items: center; gap: 18px; min-width: 0; }
.menubar__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.menubar__brand img { width: 18px; height: 18px; border-radius: 4px; }
.menubar a.item { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.menubar a.item:hover { color: var(--ink); }
.menubar .get {
  text-decoration: none; color: #000; background: var(--ink);
  padding: 3px 10px; border-radius: 6px; font-weight: 600;
}
.menubar .get:hover { background: #fff; }

/* ── Notch: collapsed and static here, the product's signature ── */
.notch {
  position: fixed; top: 0; left: 50%; z-index: 30;
  transform: translateX(-50%);
  width: calc(var(--notch-w) + var(--ear) * 2); height: var(--bar-h);
  display: grid; grid-template-columns: var(--ear) 1fr var(--ear); align-items: center;
  background: var(--pill); border-radius: 0 0 12px 12px;
}
.ear { display: flex; justify-content: center; gap: 5px; }
.ear .ring { width: 19px; height: 19px; }
.ring { display: block; overflow: visible; }
.ring .track { fill: none; stroke: var(--track); stroke-width: 3.2; }
.ring .fill {
  fill: none; stroke: var(--ring); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: var(--p) 100; transform: rotate(-90deg); transform-origin: 50% 50%;
}
.ring.is-warn .fill { stroke: var(--warn); }
.ring.is-crit .fill { stroke: var(--crit); }
.ring .glyph { fill: #fff; }
.ring .glyph--stroke { fill: none; stroke: #fff; stroke-width: 1.7; }

/* ── Article ──────────────────────────────────────────── */
/* Same guard as the home page: decorative bleed (the CTA hairline) never widens the page on phones. */
main { padding-top: calc(var(--bar-h) + clamp(64px, 9vw, 112px)); overflow-x: clip; }
.doc { width: min(720px, calc(100vw - 40px)); margin: 0 auto; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.doc h1 { margin-top: 18px; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; overflow-wrap: break-word; }
.doc .lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; margin: 20px 0 0; }
.doc .byline { font-size: 13px; margin: 18px 0 0; }
.doc h2 { margin-top: 64px; font-size: clamp(25px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.doc h3 { margin-top: 34px; font-size: 18px; letter-spacing: -.01em; font-weight: 600; }
/* links com âncora (/changelog#v1.0.1, #sources) param abaixo da barra fixa, não embaixo dela */
.doc h2[id], .doc h3[id] { scroll-margin-top: calc(var(--bar-h) + 24px); }
/* data logo abaixo da versão no changelog */
.doc h2 + .byline { margin-top: 10px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.doc p { margin: 16px 0 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--ink-3); }
.doc p code, .doc li code, .doc td code {
  font-size: .87em; color: var(--ink); overflow-wrap: anywhere;
  background: rgba(255, 255, 255, .07); padding: .1em .36em; border-radius: 6px;
}
/* break-word keeps min-content whole, so the auto table layout can't squeeze `provider` into "provide / r". */
.doc td code { overflow-wrap: break-word; }

pre.code {
  margin: 20px 0 0; padding: 20px 22px; border-radius: 14px;
  background: var(--ground-lift); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: 13px; line-height: 1.75; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
pre.code .c { color: var(--ink-2); }

table { width: 100%; margin: 22px 0 0; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); }
th:last-child, td:last-child { padding-right: 0; }
th { color: var(--ink); font-weight: 600; font-size: 13px; border-bottom-color: rgba(255, 255, 255, .14); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }

.note {
  margin: 24px 0 0; padding: 18px 20px; border-radius: 14px;
  background: var(--ground-lift); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.note h3 { margin: 0; font-size: 15px; }
.note ul { margin-top: 10px; }
.note li { font-size: 15px; }

/* CTA: a black pill, like the notch. Not `.get`: that is the menubar Download link. */
.get-card {
  position: relative; margin-top: 80px;
  padding: 34px clamp(22px, 4vw, 40px) 36px;
  background: var(--pill); border-radius: 0 0 28px 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.get-card::before {
  content: ""; position: absolute; left: -40px; right: -40px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
}
.doc .get-card h2 { margin-top: 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 13px;
  font: 600 15px/1 "Geist", sans-serif; text-decoration: none;
  transition: transform .2s var(--out), background .2s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--ink); color: #000; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn:active { transform: translateY(1px); }
.cmd {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 10px 10px 10px 16px; border-radius: 13px;
  background: var(--ground-lift); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.cmd code { min-width: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.copy {
  flex: none; font: 500 12px/1 "Geist", sans-serif; color: var(--ink);
  background: rgba(255, 255, 255, .08); border: 0; border-radius: 8px;
  padding: 8px 11px; cursor: pointer; transition: background .2s;
}
.copy:hover { background: rgba(255, 255, 255, .14); }
.doc .fine { font-size: 13.5px; line-height: 1.6; margin-top: 16px; }

/* índice /guides: linhas separadas por hairline, sem cards, sombras ou ícones */
.doc .guide-list { list-style: none; padding: 0; margin: 40px 0 0; display: block; border-top: 1px solid var(--hair); }
.doc .guide-list li { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.doc .guide-list h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.doc .guide-list h2 a { text-decoration: none; }
.doc .guide-list h2 a:hover { text-decoration: underline; }
.doc .guide-list p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; }

.doc .next { margin-top: 48px; }
.doc .next a { display: inline-block; color: var(--ink); font-weight: 600; font-size: 16.5px; }
.doc .sources li { font-size: 14.5px; }

/* ── Footer ───────────────────────────────────────────── */
footer { margin-top: clamp(96px, 12vw, 140px); padding: 28px 0 44px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); }
footer .wrap { width: min(1080px, calc(100vw - 40px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; gap: 10px; }
footer img { width: 22px; height: 22px; border-radius: 5px; }
footer .guides { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer .guides a { text-decoration: none; }
footer .guides a:hover { color: var(--ink); text-decoration: underline; }
/* "Guides" é o link do índice e abre a lista, por isso o peso maior */
footer .guides .all { font-weight: 600; }
footer [aria-current] { color: var(--ink); }

@media (max-width: 860px) {
  .menubar .item { display: none; }
}
@media (max-width: 520px) {
  /* o vão do notch encolhe até o "Download" da barra caber ao lado:
     100vw − 2 × (margem 10 + Download ~78 + orelha 50 + folga 8). Igual em site/index.html */
  :root { --notch-w: clamp(28px, 100vw - 292px, 92px); --ear: 50px; }
  .menubar { padding-inline: 10px; }
  .menubar .get { padding-inline: 8px; }
  .menubar__brand span { display: none; }
  .doc p, .doc li { font-size: 16px; }
  pre.code { font-size: 12px; padding: 18px; }
  th, td { padding-right: 10px; font-size: 13.5px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
}
/* Prints reais do app (scripts/site-shots.sh). O fundo do PNG do notch é o --ground-lift: a moldura usa a mesma cor e o
   painel fica pendurado na borda de cima, como no notch. Borda em vez de sombra interna, que a imagem cobriria */
.shot { margin: 28px 0; border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; background: var(--ground-lift); overflow: hidden; }
.shot img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.shot figcaption { padding: 0 20px 18px; color: var(--ink-3); font-size: 13px; line-height: 1.5; text-align: center; }
.shot--window { padding: 24px 20px 0; }
.shot--window img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -12px rgba(0, 0, 0, .7); }
.shot--window figcaption { padding: 16px 0 18px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
