body.site{ /* design: tech-utility — gerado pelo site_generate */
  --site-brand:#148428;
  --site-brand-fg:#ffffff;
  --site-bg:#f6f9fc;
  --site-bg-tint:#eceff2;
  --site-fg:#121c23;
  --site-fg-muted:#5a656d;
  --site-border:#d9dfe3;
  --site-radius:8px;
  --site-radius-sm:4px;
  --site-gap:24px;
  --site-section-y:72px;
  --site-font:-apple-system,"Segoe UI",Roboto,system-ui,sans-serif;
  --site-font-mono:ui-monospace,"SF Mono",Menlo,monospace;
}

body.site {
  --web-width: 76rem; --web-gutter: clamp(1rem, 4vw, 2.5rem); --web-space: clamp(1.25rem, 3vw, 2rem);
  --mn-code-bg: #0f171d; --mn-code-fg: #dfe6ec; --mn-code-dim: #8b98a3; --mn-code-key: #8fd3a0; --mn-code-str: #e8c88a; --mn-code-num: #9cc4f0;
  --mn-ok: #148428; --mn-ok-bg: #e5f3e7; --mn-warn: #8a5a00; --mn-warn-bg: #fbf0d9; --mn-err: #b42318; --mn-err-bg: #fbe8e6;
  --mn-info: #1d5fa8; --mn-info-bg: #e5eef8; --mn-neutral-bg: #e9edf0;
  --site-danger: #b42318;
}
body.site .web-container { width: min(100% - 2 * var(--web-gutter), var(--web-width)); margin-inline: auto; }
body.site .web-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--site-bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--site-border); }
body.site .web-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--web-space); padding-block: .75rem; }
body.site .web-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--site-fg); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
body.site .web-brand__mark { color: var(--site-brand); flex: none; }
body.site .web-menu { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-size: .9375rem; }
body.site .web-menu a { color: var(--site-fg-muted); text-decoration: none; padding-block: .5rem; }
body.site .web-menu a:hover { color: var(--site-fg); }
body.site .web-menu a[aria-current="page"] { color: var(--site-fg); font-weight: 600; box-shadow: inset 0 -2px 0 var(--site-brand); }
body.site .web-menu__sep { width: 1px; height: 1.25rem; background: var(--site-border); }
body.site .web-menu a.web-menu__cta { padding: .45rem .9rem; border-radius: var(--site-radius-sm); background: var(--site-brand); color: var(--site-brand-fg); font-weight: 600; }
body.site .web-menu a.web-menu__cta:hover { background: color-mix(in srgb, var(--site-brand) 88%, black); color: var(--site-brand-fg); }
body.site .web-menu-toggle { align-items: center; justify-content: center; padding: .5rem; border: 1px solid var(--site-border-strong); border-radius: var(--site-radius-sm); background: transparent; color: inherit; font: inherit; cursor: pointer; }
body.site a:focus-visible, body.site button:focus-visible, body.site input:focus-visible, body.site select:focus-visible, body.site textarea:focus-visible, body.site summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--site-brand) 70%, transparent); outline-offset: 3px; }
body.site .web-skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .75rem; background: var(--site-brand); color: var(--site-brand-fg); }
body.site .web-skip:focus { top: 1rem; }
body.site .web-footer { margin-top: 0; padding-block: 3.5rem 2rem; background: var(--site-bg-tint); border-top: 1px solid var(--site-border); font-size: .9375rem; }
body.site .web-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
body.site .web-footer__about p { color: var(--site-fg-muted); margin: .75rem 0 0; max-width: 30ch; }
body.site .web-footer nav { display: grid; align-content: start; gap: .5rem; }
body.site .web-footer h2 { margin: 0 0 .25rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--site-fg-dim); }
body.site .web-footer nav a { color: var(--site-fg-muted); text-decoration: none; }
body.site .web-footer nav a:hover { color: var(--site-fg); text-decoration: underline; }
body.site .web-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--site-border); color: var(--site-fg-dim); font-size: .875rem; }
body.site .web-footer__legal p { margin: 0; }
@media (max-width: 60rem) {
  body.site .web-header__inner { align-items: flex-start; }
  body.site .web-navigation { text-align: right; }
  body.site .web-menu { flex-direction: column; align-items: flex-end; gap: .25rem; }
  body.site .web-menu__sep { display: none; }
  body.site .web-navigation[data-enhanced] .web-menu { display: none; margin-top: .75rem; }
  body.site .web-navigation[data-enhanced] .web-menu[data-open] { display: flex; }
  body.site .web-navigation[data-enhanced] .web-menu-toggle { display: inline-flex; }
  body.site .web-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60.001rem) { body.site .web-menu-toggle { display: none; } }

/* ── Kit de landing ── */
body.site { --kit-accent: var(--site-brand); --kit-on-accent: var(--site-brand-fg); --kit-ink: var(--site-fg); --kit-paper: var(--site-bg); --kit-shadow: 0 1px 2px rgb(16 24 40 / .06), 0 24px 48px -22px rgb(16 24 40 / .32); --kit-section-y: clamp(3.5rem, 6vw, 5.5rem); }
body.site .site-section { padding-block: var(--kit-section-y); }
body.site .site-hero__title { font-size: clamp(2.25rem, 3.4vw + .75rem, 3.5rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
body.site h2 { font-size: clamp(1.625rem, 1.8vw + .9rem, 2.375rem); line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
body.site .site-hero__subtitle { font-size: clamp(1.0625rem, .4vw + .95rem, 1.1875rem); line-height: 1.55; color: var(--site-fg-muted); max-width: 46ch; }
body.site .kit-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
body.site .kit-head--center { margin-inline: auto; text-align: center; }
body.site .kit-head p { font-size: 1.0625rem; margin: .5rem 0 0; color: var(--site-fg-muted); }
body.site .site-hero.kit-hero-split { padding-block: clamp(3rem, 6vw, 5rem); background: var(--site-bg); border-bottom: 1px solid var(--site-border); }
body.site .kit-hero-split > .site-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
body.site .kit-hero-split .site-hero__media { min-width: 0; }
body.site .site-hero__eyebrow { font: 600 .8125rem/1.2 var(--site-font-mono); color: var(--site-brand); letter-spacing: 0; text-transform: none; }
html.kit-embed body.site .web-skip, html.kit-embed body.site .web-header, html.kit-embed body.site .web-footer { display: none; }
body.site .kit-frame { border: 1px solid var(--site-border); border-radius: 12px; background: var(--kit-paper); box-shadow: var(--kit-shadow); overflow: hidden; }
body.site .kit-frame__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--site-border); background: var(--site-bg-tint); }
body.site .kit-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--site-border-strong); }
body.site .kit-frame__url { display: flex; align-items: center; flex: 0 1 22rem; height: 22px; margin-left: 10px; padding: 0 10px; border-radius: 6px; background: var(--kit-paper); color: var(--site-fg-dim); font: 12px/1 var(--site-font-mono); overflow: hidden; white-space: nowrap; }
body.site .kit-frame--code { background: var(--mn-code-bg); border-color: var(--mn-code-bg); }
body.site .kit-frame--code .kit-frame__bar { background: #18232b; border-bottom-color: #22303a; }
body.site .kit-frame--code .kit-frame__bar i { background: #33434f; }
body.site .kit-frame--code .kit-frame__url { background: #0f171d; color: var(--mn-code-dim); }
body.site .kit-ink { background: var(--kit-ink); color: var(--kit-paper); }
body.site .kit-ink h2, body.site .kit-ink h3 { color: var(--kit-paper); }
body.site .kit-ink p, body.site .kit-ink li { color: color-mix(in srgb, var(--kit-paper) 76%, transparent); }
body.site .kit-ink a { color: var(--kit-paper); }
body.site .kit-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
body.site .kit-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
body.site .kit-list li { position: relative; padding-left: 19px; }
body.site .kit-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--site-brand); }
body.site .kit-ink .kit-list li::before { background: color-mix(in srgb, var(--site-brand) 60%, white); }
body.site .kit-brand { background: var(--kit-accent); color: var(--kit-on-accent); text-align: center; }
body.site .kit-brand h2 { color: var(--kit-on-accent); }
body.site .kit-brand p { color: color-mix(in srgb, var(--kit-on-accent) 86%, transparent); max-width: 52ch; margin-inline: auto; }
body.site .kit-brand .site-hero__actions { justify-content: center; }
body.site .kit-brand .site-btn--primary { background: var(--kit-on-accent); border-color: var(--kit-on-accent); color: var(--kit-accent); }
body.site .kit-brand .site-btn--ghost { color: var(--kit-on-accent); border-color: color-mix(in srgb, var(--kit-on-accent) 55%, transparent); }
body.site .kit-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin: 0; padding: 0; list-style: none; counter-reset: passo; }
body.site .kit-steps li { padding-top: 18px; border-top: 2px solid var(--kit-ink); counter-increment: passo; min-width: 0; }
body.site .kit-steps li::before { content: counter(passo, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--site-fg-dim); font: 600 13px/1 var(--site-font-mono); }
body.site .kit-steps h3 { font-size: 1.0625rem; margin: 0 0 6px; }
body.site .kit-steps p { margin: 0 0 12px; color: var(--site-fg-muted); }
@media (max-width: 980px) {
  body.site .kit-split, body.site .kit-hero-split > .site-container { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  body.site .kit-steps { grid-template-columns: minmax(0, 1fr); }
  body.site .kit-frame__url { display: none; }
  body.site .web-footer__grid { grid-template-columns: 1fr; }
}

/* ── Código ── */
body.site code, body.site kbd { font-family: var(--site-font-mono); font-size: .875em; }
body.site :not(pre) > code { padding: .1em .35em; border-radius: 4px; background: var(--site-bg-tint); border: 1px solid var(--site-border); color: var(--site-fg); word-break: break-word; }
body.site pre.mn-code { position: relative; margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--mn-code-bg); color: var(--mn-code-fg); font: 13px/1.6 var(--site-font-mono); tab-size: 2; border-radius: 0; }
body.site .mn-codebox { position: relative; margin: 1.25rem 0; border-radius: var(--site-radius); overflow: hidden; background: var(--mn-code-bg); border: 1px solid var(--mn-code-bg); }
body.site .mn-codebox__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 0 8px 0 14px; background: #18232b; color: var(--mn-code-dim); font: 12px/1 var(--site-font-mono); }
body.site .mn-codebox__head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.site .mn-copy { padding: 5px 10px; border: 1px solid #33434f; border-radius: 5px; background: transparent; color: var(--mn-code-fg); font: 12px/1 var(--site-font); cursor: pointer; }
body.site .mn-copy:hover { background: #22303a; }
body.site .tk-k { color: var(--mn-code-key); } body.site .tk-s { color: var(--mn-code-str); } body.site .tk-n { color: var(--mn-code-num); } body.site .tk-c { color: var(--mn-code-dim); }
body.site .mn-tabs { margin: 1.25rem 0; border-radius: var(--site-radius); overflow: hidden; background: var(--mn-code-bg); }
body.site .mn-tabs [role="tablist"] { display: flex; gap: 2px; padding: 6px 6px 0; background: #18232b; overflow-x: auto; }
body.site .mn-tabs [role="tab"] { padding: 8px 12px; border: 0; border-radius: 6px 6px 0 0; background: transparent; color: var(--mn-code-dim); font: 600 12.5px/1 var(--site-font); cursor: pointer; white-space: nowrap; }
body.site .mn-tabs [role="tab"][aria-selected="true"] { background: var(--mn-code-bg); color: var(--mn-code-fg); }
body.site .mn-tabs [role="tabpanel"] { position: relative; }
body.site .mn-tabs [role="tabpanel"] .mn-copy { position: absolute; top: 8px; right: 8px; }

/* ── Pílulas ── */
body.site .mn-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; background: var(--mn-neutral-bg); color: var(--site-fg-muted); }
body.site .mn-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.site .mn-pill--ok { background: var(--mn-ok-bg); color: var(--mn-ok); }
body.site .mn-pill--warn { background: var(--mn-warn-bg); color: var(--mn-warn); }
body.site .mn-pill--err { background: var(--mn-err-bg); color: var(--mn-err); }
body.site .mn-pill--info { background: var(--mn-info-bg); color: var(--mn-info); }
body.site .mn-method { display: inline-block; min-width: 3.6em; padding: 2px 6px; border-radius: 4px; font: 700 11px/1.5 var(--site-font-mono); text-align: center; letter-spacing: .02em; }
body.site .mn-method--get { background: var(--mn-info-bg); color: var(--mn-info); }
body.site .mn-method--post { background: var(--mn-ok-bg); color: var(--mn-ok); }
body.site .mn-method--put, body.site .mn-method--patch { background: var(--mn-warn-bg); color: var(--mn-warn); }
body.site .mn-method--delete { background: var(--mn-err-bg); color: var(--mn-err); }

/* ── Tabelas e avisos ── */
body.site .mn-table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-bg); }
body.site table.mn-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
body.site .mn-table th, body.site .mn-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--site-border); }
body.site .mn-table thead th { border-top: 0; background: var(--site-bg-tint); color: var(--site-fg-muted); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
body.site .mn-table td:first-child code, body.site .mn-table th code { white-space: nowrap; word-break: normal; }
body.site .mn-table td.num, body.site .mn-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.site .mn-note { margin: 1.25rem 0; padding: 14px 16px; border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-bg-tint); }
body.site .mn-note > :first-child { margin-top: 0; } body.site .mn-note > :last-child { margin-bottom: 0; }
body.site .mn-note--warn { background: var(--mn-warn-bg); border-color: color-mix(in srgb, var(--mn-warn) 25%, transparent); }
body.site .mn-note strong { color: var(--site-fg); }

/* ── Portal: layout com barra lateral ── */
body.site .doc-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 2.5rem 4.5rem; }
body.site .doc-side { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow-y: auto; font-size: .9375rem; }
body.site .doc-side > summary { display: none; }
body.site .doc-side nav { display: grid; gap: 1px; }
body.site .doc-side__group { margin: 1.25rem 0 .35rem; color: var(--site-fg-dim); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body.site .doc-side__group:first-child { margin-top: 0; }
body.site .doc-side a { padding: 6px 10px; border-radius: 6px; color: var(--site-fg-muted); text-decoration: none; }
body.site .doc-side a:hover { background: var(--site-bg-tint); color: var(--site-fg); }
body.site .doc-side a[aria-current="page"] { background: color-mix(in srgb, var(--site-brand) 10%, var(--site-bg)); color: var(--site-fg); font-weight: 600; }
body.site .doc { min-width: 0; max-width: 50rem; }
body.site .doc--wide { max-width: none; }
body.site .doc h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 1.6vw + 1.2rem, 2.625rem); line-height: 1.1; letter-spacing: -.025em; }
body.site .doc .doc__lead { margin: 0 0 2rem; font-size: 1.125rem; color: var(--site-fg-muted); max-width: 62ch; }
body.site .doc h2 { margin: 2.75rem 0 .75rem; font-size: 1.5rem; scroll-margin-top: 5rem; }
body.site .doc h3 { margin: 2rem 0 .5rem; font-size: 1.125rem; scroll-margin-top: 5rem; }
body.site .doc p, body.site .doc li { line-height: 1.65; max-width: 70ch; }
body.site .doc ul, body.site .doc ol { padding-left: 1.25rem; }
body.site .doc li + li { margin-top: .35rem; }
body.site .doc__next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--site-border); }
body.site .doc__next a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--site-border); border-radius: var(--site-radius); text-decoration: none; color: var(--site-fg); }
body.site .doc__next a:hover { border-color: var(--site-brand); }
body.site .doc__next small { color: var(--site-fg-dim); }
body.site .doc__next a:last-child { text-align: right; }
@media (max-width: 880px) {
  body.site .doc-layout { grid-template-columns: minmax(0, 1fr); padding-top: 1.25rem; }
  body.site .doc-side { position: static; max-height: none; border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: 0 12px; }
  body.site .doc-side > summary { display: block; padding: 12px 0; font-weight: 600; cursor: pointer; }
  body.site .doc-side nav { padding-bottom: 12px; }
  body.site .doc__next { grid-template-columns: 1fr; }
  body.site .doc__next a:last-child { text-align: left; }
}

/* ── Cartões uniformes ── */
body.site .mn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body.site .mn-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.site .mn-card { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-bg); color: var(--site-fg); text-decoration: none; }
body.site a.mn-card:hover { border-color: var(--site-brand); }
body.site .mn-card h3 { margin: 0; font-size: 1rem; }
body.site .mn-card p { margin: 0; color: var(--site-fg-muted); font-size: .9375rem; line-height: 1.55; }
body.site .mn-icon { width: 22px; height: 22px; color: var(--site-brand); }
@media (max-width: 860px) { body.site .mn-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { body.site .mn-cards, body.site .mn-cards--2 { grid-template-columns: 1fr; } }

/* ── Formulário ── */
body.site .mn-field { display: grid; gap: 6px; margin-bottom: 14px; }
body.site .mn-field label { font-weight: 600; font-size: .9375rem; }
body.site .mn-field small { color: var(--site-fg-dim); }
body.site .mn-input { width: 100%; padding: 9px 12px; border: 1px solid var(--site-border-strong); border-radius: var(--site-radius-sm); background: var(--site-bg); color: var(--site-fg); font: inherit; }
body.site textarea.mn-input { min-height: 8rem; font: 13px/1.55 var(--site-font-mono); }
body.site .mn-input:focus { border-color: var(--site-brand); }

/* Modo escuro do portal (raia N6): segue o sistema (prefers-color-scheme). Só troca os tokens; o bloco de código já é escuro nos dois modos. */
@media (prefers-color-scheme: dark) {
  body.site {
    color-scheme: dark;
    --site-brand: #35b152; --site-brand-fg: #07140b;
    --site-bg: #0e1419; --site-bg-tint: #151d24; --site-fg: #e6edf2; --site-fg-muted: #a1adb7; --site-fg-dim: #7f8c97;
    --site-border: #27333c; --site-border-strong: #3a4954; --site-danger: #ff8a7e;
    --mn-ok: #4cc364; --mn-ok-bg: #12301a; --mn-warn: #e6b955; --mn-warn-bg: #33270b; --mn-err: #ff8a7e; --mn-err-bg: #3a1613;
    --mn-info: #7db4f0; --mn-info-bg: #112a45; --mn-neutral-bg: #1c262e;
    --kit-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 24px 48px -22px rgb(0 0 0 / .7);
  }
  body.site .mn-codebox, body.site .mn-tabs { border: 1px solid var(--site-border); }
}
