@font-face { font-family: "Inter"; src: url("fontes/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fontes/inter-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
/* The REDKEYS docs (docs.redkeys.com.br): a quiet reading page in the brand's dark, one accent color.
   Article pages load blog.css first (the article body's blocks); the tokens below win over its own. */
:host, :root {
  --fundo: #0b0b0f; --sup: #13141a; --sup2: #191a21; --linha: rgba(255, 255, 255, 0.08); --linha2: rgba(255, 255, 255, 0.14);
  --texto: #e6e6ea; --forte: #fff; --suave: #a9aab6; --apagado: #757785; --acao: #e0294a; --rosa: #ff7c96;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 16px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* header */
.d-topo { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 20px; background: rgba(11, 11, 15, 0.96); border-bottom: 1px solid var(--linha); }
.d-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.d-marca img { width: 110px; }
.d-marca span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; color: var(--rosa); background: rgba(224, 41, 74, 0.14); border-radius: 6px; padding: 2px 8px; text-transform: uppercase; }
.d-busca { position: relative; display: flex; align-items: center; gap: 8px; max-width: 460px; width: 100%; justify-self: center; padding: 0 12px; height: 40px; border: 1px solid var(--linha2); border-radius: 10px; background: var(--sup); color: var(--apagado); }
.d-busca input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--forte); font: inherit; font-size: 0.92rem; }
.d-busca kbd { font-family: inherit; font-weight: 600; font-size: 0.68rem; line-height: 1; border: 1px solid var(--linha2); border-radius: 5px; padding: 3px 6px; color: var(--apagado); }
.d-busca:focus-within { border-color: var(--acao); }
.d-resultados { position: absolute; top: 46px; left: 0; right: 0; background: var(--sup2); border: 1px solid var(--linha2); border-radius: 12px; padding: 6px; max-height: 60vh; overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.d-resultados a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.d-resultados a small { display: block; color: var(--apagado); font-size: 0.74rem; }
.d-resultados a strong { color: var(--forte); font-weight: 600; font-size: 0.94rem; }
.d-resultados a span { display: block; color: var(--suave); font-size: 0.84rem; }
.d-resultados a[aria-selected="true"], .d-resultados a:hover { background: rgba(224, 41, 74, 0.14); }
.d-resultados p { margin: 10px 12px; color: var(--apagado); font-size: 0.9rem; }
.d-topo-acoes { display: flex; gap: 16px; font-size: 0.88rem; }
.d-topo-acoes a { color: var(--suave); text-decoration: none; }
.d-lingua { display: inline-flex; align-items: center; gap: 6px; }
.d-lingua img { width: 20px; height: 14px; border-radius: 2px; }
.d-topo-acoes a:hover { color: var(--forte); }

/* layout */
.d-corpo { display: grid; max-width: 1280px; margin: 0 auto; }
.d-lateral { display: none; }
/* phones and tablets: the article list opens as a side drawer from the menu button */
.d-menu { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: -8px 0; border: 0; border-radius: 9px; background: none; color: var(--forte); cursor: pointer; }
.d-menu:hover { background: rgba(255, 255, 255, 0.08); }
.d-fechar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -6px -8px 10px auto; border: 0; border-radius: 9px; background: none; color: var(--forte); cursor: pointer; }
.d-fundo { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.6); }
.d-lateral.aberta { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: min(86vw, 330px); overflow-y: auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); background: #0d0d10; border-right: 1px solid var(--linha); }
html.d-sem-rolar, html.d-sem-rolar body { overflow: hidden; }
.d-site-gaveta { display: block; margin-top: auto; padding-top: 22px; color: var(--suave); text-decoration: none; font-weight: 600; }
.d-principal { min-width: 0; padding: 36px 20px 80px; }
.d-rodape { padding: 18px 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #80808c; font-size: 13px; text-align: center; }

/* sidebar */
.d-produto { margin: 0 0 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--apagado); }
.d-produto a { text-decoration: none; }
.d-trilhas { list-style: none; margin: 0; padding: 0; }
.d-trilhas > li { margin-bottom: 2px; }
.d-trilhas summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--texto); }
.d-trilhas summary::-webkit-details-marker { display: none; }
.d-trilhas summary:hover { background: var(--sup); }
.d-trilhas summary .ico { margin-left: auto; width: 14px; height: 14px; color: var(--apagado); transition: transform 0.15s; }
.d-trilhas details[open] summary .ico { transform: rotate(90deg); }
.n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--linha2); font-size: 0.72rem; color: var(--apagado); }
.d-trilhas ul { list-style: none; margin: 2px 0 8px 21px; padding: 0 0 0 12px; border-left: 1px solid var(--linha); }
.d-trilhas ul a { display: block; padding: 5px 10px; border-radius: 6px; font-size: 0.88rem; color: var(--suave); text-decoration: none; }
.d-trilhas ul a:hover { color: var(--forte); }
.d-trilhas ul a[aria-current="page"] { color: var(--forte); background: rgba(224, 41, 74, 0.14); box-shadow: inset 2px 0 0 var(--acao); }

/* home and product */
.d-cabeca { margin: 12px 0 36px; max-width: 760px; }
.d-cabeca h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--forte); margin: 0 0 12px; }
.d-cabeca p { color: var(--suave); font-size: 1.05rem; margin: 0; }
.d-selo { font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rosa) !important; margin-bottom: 10px !important; }
.d-cartoes { display: grid; gap: 16px; }
.d-cartao { display: block; background: var(--sup); border: 1px solid var(--linha); border-radius: 14px; padding: 22px; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.d-cartao:hover { border-color: rgba(224, 41, 74, 0.45); }
.d-cartao.produto:hover { transform: translateY(-2px); }
.d-cartao h2 { font-size: 1.12rem; color: var(--forte); margin: 12px 0 4px; }
.d-cartao p { color: var(--suave); font-size: 0.92rem; margin: 0 0 10px; }
.d-cartao ul { list-style: none; padding: 0; margin: 0; }
.d-cartao li a { display: block; padding: 4px 0; color: var(--rosa); text-decoration: none; font-size: 0.92rem; }
.d-cartao li a:hover { text-decoration: underline; }
.d-conta { display: inline-block; margin-top: 8px; color: var(--apagado); font-size: 0.84rem; }
.d-cartao .n { color: var(--rosa); border-color: rgba(224, 41, 74, 0.4); background: rgba(224, 41, 74, 0.1); }

/* article */
.d-artigo { max-width: 760px; }
.d-trilha { font-size: 0.85rem; color: var(--apagado); margin-bottom: 14px; }
.d-trilha a { color: var(--rosa); text-decoration: none; }
.d-artigo h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--forte); margin: 0 0 12px; }
.d-resumo { font-size: 1.12rem; color: var(--suave); margin: 0 0 28px; }
.d-artigo > p { margin: 0 0 16px; }
.d-veja h2 { font-size: 1.15rem; color: var(--forte); margin: 32px 0 12px; }
/* a draft opened from the central's editor */
.d-previa { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: rgba(245, 181, 68, 0.14); border: 1px solid rgba(245, 181, 68, 0.4); color: #f5b544; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
/* the table of contents of a long article (three headings or more) */
.d-indice { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--linha); border-radius: 12px; background: var(--sup); }
.d-indice p { margin: 0 0 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--apagado); }
.d-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.d-indice li.nivel-3 { padding-left: 18px; }
.d-indice a { color: var(--suave); text-decoration: none; font-size: 0.92rem; }
.d-indice a:hover { color: var(--forte); }

/* the article body: the central's blocks (rk-*, from blog-blocos.js), drawn by blog.css and set here in
   the docs' size and colours. The central's manual editor loads blog.css and then this file inside a
   Shadow DOM: the tokens are on :host too, and every body rule hangs on .rk-corpo alone. */
.rk-corpo { color: var(--texto); font-size: 1rem; line-height: 1.7; }
.rk-corpo > * { margin-bottom: 16px; }
.rk-corpo a:not(.botao) { color: var(--rosa); text-decoration-color: rgba(255, 124, 150, 0.45); }
.rk-corpo a:not(.botao):hover { text-decoration-color: var(--rosa); }
.rk-corpo .rk-h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; margin: 32px 0 12px; }
.rk-corpo .rk-h3 { font-size: 1rem; line-height: 1.35; letter-spacing: 0; margin: 24px 0 10px; }
.rk-corpo .rk-lista { padding-left: 20px; }
.rk-corpo .rk-lista li { margin: 0 0 8px; padding-left: 2px; }
/* an ordered list is a sequence of steps: numbered circles joined by a thin line */
.rk-corpo ol.rk-lista { counter-reset: passo; list-style: none; padding: 0; margin-bottom: 20px; }
.rk-corpo ol.rk-lista > li { counter-increment: passo; position: relative; margin: 0; padding: 0 0 18px 46px; }
.rk-corpo ol.rk-lista > li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 41, 74, 0.14); color: var(--rosa); font-weight: 700; font-size: 0.86rem; line-height: 1; }
.rk-corpo ol.rk-lista > li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--linha2); }
.rk-corpo ol.rk-lista > li:last-child { padding-bottom: 0; }
.rk-corpo ol.rk-lista > li:last-child::after { display: none; }
.rk-corpo .rk-aviso { gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--linha); border-left: 3px solid var(--rosa); background: var(--sup); }
.rk-corpo .rk-aviso strong { font-size: 0.72rem; }
.rk-corpo .rk-aviso p { font-size: 0.94rem; line-height: 1.6; color: var(--texto); }
.rk-corpo .rk-aviso-dica { border-left-color: #8ab4ff; }
.rk-corpo .rk-aviso-dica strong { color: #8ab4ff; }
.rk-corpo .rk-aviso-atencao { border-left-color: #f5b544; }
.rk-corpo .rk-aviso-atencao strong { color: #f5b544; }
.rk-corpo .rk-aviso-importante { border-left-color: var(--acao); background: linear-gradient(110deg, rgba(224, 41, 74, 0.14), var(--sup) 60%); }
.rk-corpo .rk-aviso-importante strong { color: #ff9aae; }
.rk-corpo .rk-citacao p { font-size: 1.12rem; }
.rk-corpo .rk-larga { margin-left: 0; margin-right: 0; }
.d-veja ul { padding-left: 20px; }
.d-veja a { color: var(--rosa); }
.d-vizinhos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--linha); }
.d-vizinhos a { display: block; padding: 14px 16px; border: 1px solid var(--linha); border-radius: 12px; text-decoration: none; color: var(--forte); font-weight: 600; font-size: 0.94rem; }
.d-vizinhos a:hover { border-color: rgba(224, 41, 74, 0.45); }
.d-vizinhos small { display: block; color: var(--apagado); font-weight: 400; font-size: 0.78rem; }
.d-vizinhos .prox { text-align: right; grid-column: 2; }

@media (min-width: 760px) {
  .d-cartoes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .d-topo { padding: 12px 28px; }
  .d-corpo { grid-template-columns: 280px 1fr; }
  .d-corpo.sem-lateral { grid-template-columns: 1fr; max-width: 1080px; }
  .d-menu, .d-fechar, .d-fundo, .d-site-gaveta { display: none !important; }
  .d-lateral, .d-lateral.aberta { display: block; position: sticky; z-index: auto; width: auto; background: none; top: 65px; height: calc(100vh - 65px); overflow: auto; padding: 32px 16px 40px 28px; border-right: 1px solid var(--linha); }
  .d-principal { padding: 48px 56px 96px; }
  .d-cartoes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .d-topo { grid-template-columns: auto auto; }
  .d-busca { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .d-busca kbd { display: none; }
  .d-site { display: none; }
  .d-topo-acoes { gap: 10px; }
}

/* the brand statement, as on the site's footer */
.d-rodape .d-marca { margin: 0 auto 10px; max-width: 900px; font-size: 0.78rem; line-height: 1.5; color: var(--apagado, #80808c); }
