/* Wiki do Cortex (19/10/2026). Mesmas cores do site (assets/site.css), arquivo próprio e leve para abrir rápido no celular. */
:root {
  color-scheme: dark;
  --bg: #080b12; --bg-soft: #0d111a; --surface: #101722; --surface-2: #151d2b; --surface-3: #1a2434;
  --text: #f4f7fb; --muted: #98a5b8; --muted-2: #738096;
  --line: rgba(151, 169, 197, .16); --line-strong: rgba(151, 169, 197, .28);
  --blue: #2563eb; --blue-2: #4f83ff; --cyan: #2dd4bf; --violet: #8b5cf6; --amber: #f59e0b; --green: #34d399; --rose: #fb7185;
  --link: #8fb0ff; --radius: 18px; --radius-sm: 12px; --topo: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb; --bg-soft: #eef2f8; --surface: #ffffff; --surface-2: #f4f6fa; --surface-3: #e9eef6;
  --text: #101827; --muted: #5d6878; --muted-2: #7b8798;
  --line: rgba(28, 46, 75, .12); --line-strong: rgba(28, 46, 75, .22); --link: #1d4ed8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 12% -8%, rgba(37, 99, 235, .14), transparent 30rem), var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wk-pular { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.wk-pular:focus { left: 12px; }
.wk-ico { width: 18px; height: 18px; flex: none; }

/* topo */
.wk-topo { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wk-topo-in { max-width: 1320px; margin: 0 auto; height: var(--topo); padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.wk-marca { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.wk-marca img { border-radius: 9px; }
.wk-marca b { color: var(--blue-2); font-weight: 700; }
.wk-busca { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; }
.wk-lupa { position: absolute; left: 12px; color: var(--muted-2); pointer-events: none; }
.wk-busca input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 0 14px 0 38px; font: inherit; font-size: 15px; }
.wk-busca input:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }
.wk-res { position: absolute; top: 46px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); max-height: min(70vh, 520px); overflow: auto; padding: 6px; }
.wk-res a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.wk-res a:hover, .wk-res a[aria-selected="true"] { background: var(--surface-3); }
.wk-res small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.wk-res mark { background: rgba(79, 131, 255, .28); color: inherit; border-radius: 3px; }
.wk-res p { margin: 10px 12px; color: var(--muted); font-size: 14px; }
.wk-links { display: flex; gap: 16px; font-size: 14px; }
.wk-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.wk-links a:hover { color: var(--text); }
.wk-idiomas { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600; }
.wk-idiomas a { padding: 5px 9px; color: var(--muted); text-decoration: none; }
.wk-idiomas a[aria-current] { background: var(--surface-3); color: var(--text); }
.wk-tema { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.wk-tema svg { width: 18px; height: 18px; }

/* casca do artigo: índice | texto | nesta página */
.wk-casca { max-width: 1320px; margin: 0 auto; padding: 28px 20px 40px; display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 40px; }
.wk-indice { position: sticky; top: calc(var(--topo) + 20px); align-self: start; max-height: calc(100vh - var(--topo) - 40px); overflow: auto; font-size: 14px; }
.wk-indice summary { display: none; }
.wk-indice nav { display: grid; gap: 18px; }
.wk-home-link { color: var(--muted); text-decoration: none; font-weight: 600; }
.wk-grupo p { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.wk-grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wk-grupo a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.wk-grupo a:hover { background: var(--surface-2); color: var(--text); }
.wk-grupo a[aria-current] { background: rgba(79, 131, 255, .14); color: var(--text); font-weight: 600; }
.wk-grupo a[aria-current] .wk-ico { color: var(--blue-2); }
.wk-toc { position: sticky; top: calc(var(--topo) + 20px); align-self: start; font-size: 13.5px; }
.wk-toc p { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.wk-toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.wk-toc a { color: var(--muted); text-decoration: none; }
.wk-toc a.ativo, .wk-toc a:hover { color: var(--text); }

.wk-artigo { min-width: 0; max-width: 780px; }
.wk-trilha { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted-2); margin-bottom: 14px; }
.wk-trilha a { color: var(--muted); text-decoration: none; }
.wk-art-cab { margin-bottom: 26px; }
.wk-art-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(139, 92, 246, .22)); color: var(--blue-2); margin-bottom: 12px; }
.wk-art-ico .wk-ico { width: 24px; height: 24px; }
.wk-art-cab h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; }
.wk-resumo { font-size: 18.5px; color: var(--muted); margin: 0 0 14px; }
.wk-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--muted-2); margin: 0; }
.wk-selo { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(139, 92, 246, .16); color: #c4b5fd; font-size: 12.5px; font-weight: 600; font-style: normal; }
[data-theme="light"] .wk-selo { color: #6d28d9; }

.wk-texto h2 { font-size: 25px; letter-spacing: -.01em; margin: 40px 0 12px; padding-top: 8px; line-height: 1.25; }
.wk-texto h3 { font-size: 19px; margin: 28px 0 8px; }
.wk-ancora { margin-left: 8px; color: var(--muted-2); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .wk-ancora, h3:hover .wk-ancora { opacity: 1; }
.wk-texto p, .wk-texto li { color: color-mix(in srgb, var(--text) 90%, var(--muted)); }
.wk-texto ul { padding-left: 22px; }
.wk-texto li { margin: 6px 0; }
.wk-texto code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
.wk-passos { list-style: none; counter-reset: passo; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.wk-passos li { counter-increment: passo; position: relative; padding: 12px 14px 12px 54px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wk-passos li::before { content: counter(passo); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-weight: 700; font-size: 14px; }
.wk-fig { margin: 22px 0; }
.wk-fig a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.wk-fig.retrato a { max-width: 320px; margin: 0 auto; }
.wk-fig figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.wk-caixa { margin: 20px 0; padding: 14px 16px 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 4px solid var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, var(--surface)); }
.wk-caixa p { margin: 0; }
.wk-atencao { border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, var(--surface)); }
.wk-plano { border-left-color: var(--violet); background: color-mix(in srgb, var(--violet) 9%, var(--surface)); }
blockquote { margin: 18px 0; padding: 4px 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.wk-tabela { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wk-tabela table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.wk-tabela th, .wk-tabela td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wk-tabela thead th { background: var(--surface-2); font-size: 13.5px; }
.wk-tabela tr:last-child td, .wk-tabela tr:last-child th { border-bottom: 0; }
.wk-planos td, .wk-planos thead th:not(:first-child) { text-align: center; white-space: nowrap; }
.wk-planos tbody th { font-weight: 500; color: var(--muted); min-width: 190px; }
.wk-sim { color: var(--green); font-weight: 700; }
.wk-nao { color: var(--muted-2); }
.wk-mini { font-size: 13px; color: var(--muted-2); }
.wk-faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 10px 0; }
.wk-faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; list-style: none; }
.wk-faq summary::-webkit-details-marker { display: none; }
.wk-faq summary::after { content: "+"; position: absolute; right: 16px; top: 11px; font-size: 22px; color: var(--muted); }
.wk-faq[open] summary::after { content: "–"; }
.wk-faq > div { padding: 0 16px 6px; }
.wk-versoes { list-style: none; padding: 0; display: grid; gap: 10px; }
.wk-versoes li { display: flex; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.wk-versoes p { margin: 2px 0 0; }
.wk-ver { flex: none; font-family: ui-monospace, monospace; font-size: 12.5px; padding: 2px 8px; height: fit-content; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.wk-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.wk-prints { margin-top: 30px; }
.wk-ajuda { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 26px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.wk-ajuda > .wk-ico { width: 24px; height: 24px; color: var(--blue-2); margin-top: 2px; }
.wk-ajuda p { margin: 4px 0 0; color: var(--muted); }
.wk-pagina-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wk-pagina-nav a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-weight: 600; }
.wk-pagina-nav a:hover { border-color: var(--blue-2); }
.wk-pagina-nav small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.wk-pagina-nav .prox { text-align: right; }

/* início da wiki */
.wk-home { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; }
.wk-hero { text-align: center; padding: 64px 0 36px; }
.wk-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.wk-hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 0 auto 16px; max-width: 820px; }
.wk-hero > p { font-size: 18.5px; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.wk-btn-busca { width: min(560px, 100%); justify-content: flex-start; color: var(--muted); font-weight: 500; padding: 14px 20px; background: var(--surface); }
.wk-atalhos { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin: 26px 0 0; }
.wk-hero-acoes { margin-bottom: 4px; }
.wk-atalhos a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.wk-atalhos a:hover { color: var(--text); }
.wk-cat { margin-top: 38px; }
.wk-cat h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 0 0 14px; }
.wk-cat h2 .wk-ico { color: var(--blue-2); width: 22px; height: 22px; }
.wk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wk-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.wk-card:hover { border-color: var(--blue-2); transform: translateY(-2px); }
.wk-card-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(79, 131, 255, .13); color: var(--blue-2); margin-bottom: 4px; }
.wk-card strong { font-size: 16.5px; }
.wk-card > span:not(.wk-card-ico) { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.wk-card .wk-selo { align-self: flex-start; margin-top: 4px; }

.wk-rodape { border-top: 1px solid var(--line); }
.wk-rodape-in { max-width: 1320px; margin: 0 auto; padding: 22px 20px 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted-2); }
.wk-rodape a { color: var(--muted); }

@media (max-width: 1180px) {
  .wk-casca { grid-template-columns: 230px minmax(0, 1fr); }
  .wk-toc { display: none; }
  .wk-links { display: none; }
}
@media (max-width: 860px) {
  :root { --topo: 112px; }
  .wk-topo-in { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .wk-busca { order: 5; flex-basis: 100%; max-width: none; }
  .wk-marca { margin-right: auto; }
  .wk-casca { grid-template-columns: 1fr; padding: 16px 16px 32px; gap: 16px; }
  .wk-indice { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
  .wk-indice summary { display: block; cursor: pointer; padding: 12px 14px; font-weight: 600; }
  .wk-indice nav { padding: 0 8px 12px; }
  .wk-resumo { font-size: 17px; }
  .wk-pagina-nav { grid-template-columns: 1fr; }
  .wk-hero { padding: 40px 0 20px; }
  .wk-passos li { padding-left: 50px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wk-card { transition: none; } }
