/* Blog público (praeko.app/blog): casca própria no visual da landing (apps/web/src/css/lp.css): tema claro, Inter, verdes, cards brancos, cantos arredondados.
   Nada aqui vem das docs (docs.css). Sem dependência externa: a Inter sai de /vendor/fonts, como no painel e nas docs. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/vendor/fonts/inter-latin-ext.woff2") format("woff2"); 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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/vendor/fonts/inter-latin.woff2") format("woff2"); 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; }

:root {
  --bg: #fefdfb; --ink: #17181a; --mut: #5b5f66; --dim: #85857c; --linha: #e8e4da; --bege: #f3f0e8; --card: #fff;
  --verde: #7ccf77; --verde-f: #62b95d; --verde-claro: #b9f0a4; --verde-esc: #1d3320; --verde-txt: #2c7a2a;
  --code-bg: #0e1511; --code-linha: #2c3a31; --code-txt: #d5e8d4;
  --fonte: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --largura: 1160px; --gutter: 22px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--fonte); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--verde-f); outline-offset: 3px; border-radius: 6px; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- cabeçalho */
.bt { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.bt-in { display: flex; align-items: center; gap: 18px; width: min(var(--largura), 100%); margin-inline: auto; padding: 16px var(--gutter); }
.bt-marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bt-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; }
.bt-logo svg { color: var(--verde-f); flex: none; }
.bt-selo { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--verde-claro); color: #1d3a18; font-size: 13px; font-weight: 700; text-decoration: none; }
.bt-selo:hover { background: #a6e690; }
.bt-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--mut); }
.bt-nav a { text-decoration: none; white-space: nowrap; }
.bt-nav a:hover { color: var(--ink); }
.bt-entrar { font-weight: 600; }
.bt-idioma { display: inline-flex; padding: 3px; border: 1px solid var(--linha); border-radius: 999px; background: #fff; }
.bt-idioma > * { display: inline-grid; place-items: center; min-width: 38px; min-height: 30px; padding: 0 10px; border-radius: 999px; color: var(--mut); font-size: 13px; font-weight: 700; text-decoration: none; }
.bt-idioma > a:hover { color: var(--ink); background: var(--bege); }
.bt-idioma > span[aria-current] { background: var(--ink); color: #fff; }
.bt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--verde); color: #10250f; border: 1px solid #10250f22; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, transform .12s, box-shadow .15s; }
.bt-btn:hover { background: var(--verde-f); transform: translateY(-1px); box-shadow: 0 6px 16px -6px #62b95d99; }

/* aviso de idioma (só aparece com o navegador no outro idioma, blog.js) */
.banner-idioma { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: min(calc(var(--largura) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin: 4px auto 0; padding: 10px 16px; border: 1px solid var(--linha); border-radius: 16px; background: #fff; font-size: 14px; color: var(--mut); }
.banner-idioma a { color: var(--verde-txt); font-weight: 700; }
.banner-idioma .btn { margin-left: auto; }

/* botões pequenos (rodapé do post, aviso de idioma) */
.bt-s, .banner-idioma .btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--linha); border-radius: 999px; background: #fff; color: var(--ink); font: 600 13.5px var(--fonte); text-decoration: none; cursor: pointer; }
.bt-s:hover, .banner-idioma .btn:hover { border-color: var(--verde-f); background: #f5fbf2; }

/* ---------------------------------------------------------------- índice */
.bh { position: relative; width: min(var(--largura), 100%); margin-inline: auto; padding: 64px var(--gutter) 44px; text-align: center; background-image: radial-gradient(#d9d4c6 1px, transparent 1px); background-size: 26px 26px; background-position: center top; }
.bh::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% 45%, var(--bg) 42%, transparent 100%); }
.bh > * { position: relative; }
.bh-etq { display: inline-block; margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--verde-claro); color: #1d3a18; font-size: 13px; font-weight: 700; }
.bh h1 { margin: 18px auto 0; max-width: 18ch; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 750; text-wrap: balance; }
.bh-sub { max-width: 38rem; margin: 18px auto 0; font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--mut); text-wrap: pretty; }

.bl { width: min(var(--largura), 100%); margin-inline: auto; padding: 8px var(--gutter) 64px; }
.bl-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.bl-grade > li { display: flex; min-width: 0; }
.bc { position: relative; display: flex; flex-direction: column; width: 100%; padding: 12px; background: var(--card); border: 1px solid var(--linha); border-radius: 24px; transition: transform .16s, box-shadow .16s, border-color .16s; }
.bc:hover { transform: translateY(-3px); border-color: #d9d4c6; box-shadow: 0 22px 40px -24px #17181a40; }
.bc:focus-within { border-color: var(--verde-f); }
.bc-arte { display: grid; place-items: center; height: 168px; border-radius: 16px; overflow: hidden; }
.bc-menta { background: #b9efb0; } .bc-lilas { background: #e7c9f6; } .bc-pessego { background: #ffcf8a; } .bc-ceu { background: #bfe3ff; }
.bc-capa img { width: 100%; height: 100%; object-fit: cover; }
.bc-mock { display: grid; grid-template-columns: auto 1fr; grid-template-rows: repeat(3, 8px); column-gap: 12px; row-gap: 8px; align-items: center; width: min(74%, 240px); padding: 16px; background: #fff; border-radius: 14px; box-shadow: 0 14px 30px -14px #0004; transform: rotate(-2deg); transition: transform .2s; }
.bc:hover .bc-mock { transform: rotate(0) scale(1.03); }
.bc-ic { grid-row: 1 / 4; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--verde-esc); color: var(--verde); }
.bc-ic svg { width: 22px; height: 22px; }
.bc-mock i { display: block; height: 8px; border-radius: 6px; background: #e8e6df; }
.bc-mock i:nth-of-type(2) { width: 80%; } .bc-mock i:nth-of-type(3) { width: 55%; }
.bc-corpo { display: flex; flex-direction: column; flex: 1; padding: 18px 10px 8px; }
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--dim); }
.bc h2 { margin: 8px 0 0; font-size: 1.3rem; line-height: 1.22; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.bc h2 a { text-decoration: none; }
.bc h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; } /* o card inteiro é o link */
.bc h2 a:focus-visible { outline: none; }
.bc-desc { margin: 10px 0 0; color: var(--mut); font-size: 15px; line-height: 1.55; }
.bc-ler { margin-top: auto; padding-top: 18px; color: var(--verde-txt); font-size: 15px; font-weight: 700; }
.bc:hover .bc-ler { text-decoration: underline; text-underline-offset: 4px; }
.bl-rss { margin: 28px 0 0; text-align: center; font-size: 14px; }
.bl-rss a { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); text-decoration: none; }
.bl-rss a:hover { color: var(--ink); }
.bl-rss svg { color: #e8882e; }
.prop { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff4d6; border: 1px solid #ecd48a; color: #6b4e00; font-size: 12.5px; font-weight: 700; }

/* ---------------------------------------------------------------- post */
.bp { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 64px; width: min(var(--largura), 100%); margin-inline: auto; padding: 28px var(--gutter) 72px; }
@media (min-width: 1100px) { .bp.com-toc { grid-template-columns: minmax(0, 720px) 220px; } }
.post { min-width: 0; }
.crumb { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--dim); }
.crumb a { display: inline-flex; padding: 3px 11px; border-radius: 999px; background: var(--verde-claro); color: #1d3a18; font-weight: 700; font-size: 13px; text-decoration: none; }
.crumb a:hover { background: #a6e690; }
.crumb a { flex: none; }
.crumb span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selo-pagina { margin: 0 0 14px; }
.post h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 750; text-wrap: balance; }
.post .lead { margin: 18px 0 0; font-size: clamp(1.08rem, 2.2vw, 1.25rem); line-height: 1.55; color: var(--mut); text-wrap: pretty; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--linha); }
.post-meta .av { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--verde-esc); color: var(--verde); font-weight: 800; font-size: 17px; }
.post-meta p { margin: 0; display: grid; font-size: 14px; line-height: 1.45; color: var(--dim); }
.post-meta b { color: var(--ink); font-weight: 650; font-size: 15px; }
.capa { margin: 28px 0 0; }
.capa img { display: block; width: 100%; border-radius: 20px; border: 1px solid var(--linha); }

/* texto do post */
.prosa { padding-top: 8px; font-size: 18px; line-height: 1.72; color: #26282c; overflow-wrap: break-word; }
.prosa > :first-child { margin-top: 24px; }
.prosa p { margin: 0 0 1.15em; }
.prosa h2 { margin: 2.1em 0 .6em; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.03em; font-weight: 720; color: var(--ink); scroll-margin-top: 90px; text-wrap: balance; }
.prosa h3 { margin: 1.7em 0 .5em; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; color: var(--ink); scroll-margin-top: 90px; }
.prosa a { color: var(--verde-txt); font-weight: 550; text-decoration: underline; text-decoration-color: #62b95d77; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prosa a:hover { text-decoration-color: currentColor; }
.prosa strong, .prosa b { color: var(--ink); font-weight: 650; }
.prosa ul, .prosa ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prosa li { margin: .4em 0; padding-left: .2em; }
.prosa ul li::marker { color: var(--verde-f); }
.prosa ol li::marker { color: var(--verde-txt); font-weight: 700; font-size: .92em; }
.prosa :not(pre) > code { padding: .12em .42em; border-radius: 6px; background: var(--bege); border: 1px solid var(--linha); font: .84em var(--mono); color: #3b3d33; overflow-wrap: anywhere; }
.prosa blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--verde); border-radius: 4px 16px 16px 4px; background: #f2faee; color: #2d3a2b; }
.prosa blockquote p { margin: 0; }
/* blocos de código: fundo escuro como o da seção de API da landing */
.cb { margin: 1.4em 0 1.6em; max-width: 100%; overflow: hidden; border: 1px solid var(--code-linha); border-radius: 16px; background: var(--code-bg); box-shadow: 0 18px 36px -28px #0e151199; }
.cb .bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--code-linha); }
.cb .bar .t { font: 600 12px var(--mono); letter-spacing: .02em; color: #8fa797; text-transform: lowercase; }
.cb .bar .sp { flex: 1; }
.cb .bar::before { content: ""; width: 34px; height: 8px; flex: none; background: radial-gradient(circle 4px at 4px 4px, #3d5446 98%, transparent) 0 0 / 13px 8px repeat-x; }
.cb .cp { min-height: 28px; padding: 0 11px; border: 1px solid var(--code-linha); border-radius: 999px; background: transparent; color: #b6c4b5; font: 600 12px var(--fonte); cursor: pointer; }
.cb .cp:hover { border-color: var(--verde); color: #fff; }
.cb pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: var(--code-txt); font: 13.5px/1.7 var(--mono); white-space: pre; tab-size: 2; }
.cb pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
/* tabelas */
.tw { margin: 1.4em 0 1.6em; overflow-x: auto; border: 1px solid var(--linha); border-radius: 16px; background: #fff; }
.tw table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tw th { padding: 12px 16px; text-align: left; background: #faf8f3; border-bottom: 1px solid var(--linha); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b6f55; white-space: nowrap; }
.tw td { padding: 12px 16px; border-bottom: 1px solid var(--linha); vertical-align: top; color: var(--mut); }
.tw tr:last-child td { border-bottom: 0; }
.tw td:first-child { color: var(--ink); font-weight: 550; }
/* fontes */
.prosa .fontes { padding-left: 1.4em; font-size: 15px; line-height: 1.55; }
.prosa .fontes li { margin: .55em 0; }
.prosa .fontes .peq { color: var(--dim); font-size: 13.5px; }

/* dúvida / Markdown */
.fb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; padding: 18px 20px; border-radius: 20px; background: var(--bege); font-size: 14.5px; color: var(--mut); }
.fb a:not(.bt-s) { color: var(--verde-txt); font-weight: 600; }
.fb .sp { flex: 1; }
.post-volta { margin: 28px 0 0; font-size: 15px; }
.post-volta a { color: var(--verde-txt); font-weight: 700; text-decoration: none; }
.post-volta a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* sumário lateral (desktop) */
.toc { display: none; }
@media (min-width: 1100px) {
  .bp.com-toc .toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding: 6px 0 6px 18px; border-left: 1px solid var(--linha); font-size: 14px; }
  .toc b { margin-bottom: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6b6f55; }
  .toc a { display: block; padding: 5px 0; color: var(--mut); line-height: 1.35; text-decoration: none; }
  .toc a:hover { color: var(--ink); }
  .toc a.on { color: var(--verde-txt); font-weight: 650; }
}

/* ---------------------------------------------------------------- rodapé */
.bf { border-top: 1px solid var(--linha); }
.bf-in { width: min(var(--largura), 100%); margin-inline: auto; padding: 40px var(--gutter) 28px; }
.bf-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.bf-topo nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; }
.bf-topo nav a { color: var(--mut); text-decoration: none; }
.bf-topo nav a:hover { color: var(--ink); }
.bf-marca { display: flex; align-items: center; gap: .12em; margin-top: 28px; font-weight: 850; font-size: clamp(3.4rem, 16vw, 9.5rem); line-height: 1; letter-spacing: -.06em; color: var(--verde-claro); user-select: none; }
.bf-marca svg { width: .8em; height: .8em; color: var(--verde); }
.bf-copy { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.bf-copy a { color: inherit; }

/* ---------------------------------------------------------------- telas menores */
@media (max-width: 1000px) { .bl-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .bt-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "marca btn" "nav idioma"; gap: 10px 12px; padding-block: 12px 10px; }
  .bt-marca { grid-area: marca; } .bt-btn { grid-area: btn; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .bt-nav { grid-area: nav; margin-left: 0; gap: 18px; font-size: 14.5px; }
  .bt-idioma { grid-area: idioma; }
  .bt-idioma > * { min-width: 34px; min-height: 28px; padding: 0 8px; }
  .bh { padding-block: 40px 30px; }
  .bl-grade { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bc-arte { height: 128px; }
  .bp { padding-top: 18px; gap: 0; }
  .prosa { font-size: 17px; }
  .prosa h2 { font-size: 1.4rem; }
  .cb { border-radius: 14px; } .cb pre { font-size: 12.5px; padding: 14px; }
  .fb { flex-direction: column; align-items: flex-start; } .fb .sp { display: none; }
  .bf-topo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) { .bt-nav { gap: 12px; } .bt-logo { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .bc, .bc-mock, .bt-btn { transition: none; } .bc:hover { transform: none; } }
@media print { .bt, .bf, .toc, .fb, .post-volta, .banner-idioma { display: none !important; } body { background: #fff; } .cb { box-shadow: none; } }
