/* Toolkit (guizanoni.com/toolkit/): sobre brand/marca.css. */
/* Base igual à das outras áreas (glossario.css): sem o box-sizing, o padding
   somava à altura mínima e os botões da marca ficavam gordos. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; height: auto; }
.ic { display: inline-block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); }
.wrap { width: var(--gz-largura); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Abertura: três peças de verdade do acervo na pilha (Gui, 30/10/2026: só
   com três estilos soltos ficava "bem mais pobre" que as outras áreas). */
.tk-pilha > .tk-cartao { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.tk-cartao small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-texto); }
.tk-cartao b { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: clamp(22px, 2.1vw, 28px); line-height: 1; letter-spacing: -.03em; }
.tk-cartao > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.tk-cartao i { align-self: flex-start; margin-top: 8px; padding: 7px 13px; border-radius: 999px; background: var(--accent); color: var(--sobre-acc); font: 700 12.5px/1 var(--sans); font-style: normal; }
.tk-pilha > .tk-cartao-estilo { width: 42%; padding: 0; gap: 0; left: 0; top: 6%; transform: rotate(calc(-6deg * var(--giro))); }
.tk-cartao-estilo img { aspect-ratio: 1 !important; border-radius: 12px 12px 0 0 !important; }
.tk-cartao-estilo span { display: block; padding: 10px 12px 12px; }
.tk-cartao-estilo b { display: block; margin-top: 4px; font-size: 20px; }
.tk-pilha > .tk-cartao-prompt { width: 62%; right: 0; top: 0; transform: rotate(calc(4deg * var(--giro))); background: var(--bloco); border-color: var(--bloco); color: var(--sobre-bloco); }
.tk-cartao-prompt small { color: var(--accent); }
.tk-cartao-prompt code { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: calc(1.5em * 3 + 20px); margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: rgb(243 238 229 / 8%); font: 12.5px/1.5 ui-monospace, Menlo, monospace; color: var(--sobre-bloco-2); }
.tk-pilha > .tk-cartao-agente { width: 60%; left: 30%; top: auto; bottom: 0; z-index: 2; transform: rotate(calc(-1.5deg * var(--giro))); }
@media (max-width: 600px) { .tk-pilha > .tk-cartao { padding: 12px 14px 14px; gap: 4px; } .tk-cartao small { font-size: 9px; letter-spacing: .06em; } .tk-cartao b, .tk-cartao-estilo b { font-size: 16px; } .tk-cartao-agente > span, .tk-cartao-prompt code { display: none; } .tk-cartao i { margin-top: 4px; padding: 5px 9px; font-size: 10.5px; } .tk-cartao-estilo span { padding: 6px 8px 8px; } }

.tk-bloco { margin-top: var(--gz-respiro); }
.tk-intro { max-width: 60ch; margin: 18px 0 28px; font-size: 18px; line-height: 1.6; color: var(--body); }

/* Guia "Antes de começar" */
.tk-guias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tk-guia { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 24px; border: 1px solid var(--line-2); border-radius: 24px; background: var(--cartao); }
.tk-guia-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--sobre-acc); font-weight: 800; }
.tk-guia h3 { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.tk-guia p { font-size: 16px; line-height: 1.55; color: var(--body); }
.tk-guia ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--body); }
.tk-guia b { color: var(--text); }
.tk-guia-pe { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--accent-texto) !important; }
.tk-guia-forte { border-color: var(--violeta); box-shadow: inset 0 0 0 1px var(--violeta); }
.tk-guia-forte .tk-guia-n { background: var(--violeta); color: #fff; }

.tk-instalar { margin-top: 18px; border: 1px solid var(--line-2); border-radius: 24px; background: var(--cartao); }
.tk-instalar summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; font-family: var(--display); font-weight: 750; font-size: 20px; cursor: pointer; list-style: none; }
.tk-instalar summary::-webkit-details-marker { display: none; }
.tk-instalar summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 18px; }
.tk-instalar[open] summary::after { content: "−"; }
.tk-instalar-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; padding: 4px 26px 26px; }
.tk-instalar h4 { margin-bottom: 10px; font-size: 17px; }
.tk-instalar ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 20px; font-size: 16px; line-height: 1.55; color: var(--body); }
.tk-instalar-pe { grid-column: 1 / -1; padding: 16px 18px; border-radius: 16px; background: var(--bg); font-size: 16px; line-height: 1.55; color: var(--body); }
kbd { padding: 1px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; font: 600 13px/1.4 var(--sans); }
.tk-code { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 10px 10px 14px; border-radius: 12px; background: #17120c; color: #f3eee5; }
.tk-code code { flex: 1; min-width: 0; overflow-x: auto; font: 14px/1.5 ui-monospace, Menlo, monospace; white-space: pre; }
.tk-code button, .tk-copiar { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--sobre-acc); font: 700 13px/1 var(--sans); cursor: pointer; }
p code, li > code { padding: 1px 6px; border-radius: 6px; background: var(--bg); font: 14px ui-monospace, Menlo, monospace; }

/* Acervo */
.tk-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 26px 0 16px; }
.tk-abas { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.tk-abas button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 700 15px/1 var(--sans); cursor: pointer; }
.tk-abas button span { font-weight: 600; font-size: 13px; color: var(--muted); }
.tk-abas button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tk-abas button[aria-selected="true"] span { color: inherit; opacity: .7; }
.tk-busca input { width: min(340px, 80vw); min-height: 46px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--cartao); color: var(--text); font: 16px var(--sans); }
.tk-filtros { display: grid; gap: 10px; margin-bottom: 22px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--body); font: 600 14px/1 var(--sans); cursor: pointer; }
.tk-chips button.on { border-color: var(--accent); background: var(--accent); color: var(--sobre-acc); }
.tk-cats button { min-height: 32px; font-size: 13px; }
.tk-cats button.on { border-color: var(--text); background: var(--text); color: var(--bg); }

.tk-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tk-cartao { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--cartao); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: transform .25s var(--sai, ease), box-shadow .25s; }
.tk-cartao:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px var(--sombra); }
.tk-cartao-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.tk-cartao-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-cartao.ferramenta .tk-cartao-img { display: grid; place-items: center; aspect-ratio: auto; height: 96px; }
.tk-cartao.ferramenta .tk-cartao-img img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; }
.tk-cartao-txt { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.tk-cartao-txt small { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-texto); }
.tk-cartao-txt b { font-family: var(--display); font-weight: 750; font-stretch: 92%; font-size: 19px; line-height: 1.15; letter-spacing: -.015em; }
.tk-cartao-txt > span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.5; color: var(--body); }
.tk-vazio, .tk-achados { grid-column: 1 / -1; padding: 8px 0; font-size: 16px; color: var(--muted); }
.tk-mais { display: flex; justify-content: center; margin-top: 26px; }

/* Ficha (dialog) */
.tk-ficha { width: min(820px, calc(100% - 24px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 28px; background: var(--bg); color: var(--text); box-shadow: 0 40px 90px -30px rgb(0 0 0 / 50%); }
.tk-ficha::backdrop { background: rgb(23 18 12 / 55%); backdrop-filter: blur(3px); }
.tk-ficha-in { max-height: calc(100dvh - 40px); overflow-y: auto; padding: 36px clamp(22px, 5vw, 48px) 40px; }
.tk-fechar { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--cartao); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.tk-ficha-tipo { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-texto); }
.tk-ficha h2 { margin: 10px 48px 12px 0; font-family: var(--display); font-weight: 800; font-stretch: 86%; font-size: clamp(32px, 4vw, 46px); line-height: .98; letter-spacing: -.035em; }
.tk-ficha-r { font-size: 18px; line-height: 1.55; color: var(--body); }
.tk-ficha section { margin-top: 26px; }
.tk-ficha h3 { margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tk-ficha section p { font-size: 16px; line-height: 1.65; color: var(--body); }
.tk-ficha section p + p { margin-top: 10px; }
.tk-midia { margin: 22px 0 0; overflow: hidden; border-radius: 18px; background: #000; }
.tk-midia img, .tk-midia video { display: block; width: 100%; max-height: 460px; object-fit: contain; }
.tk-prompt-txt { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--cartao); font: 15px/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.tk-prompt .tk-copiar, .tk-facil .tk-copiar { margin-top: 10px; padding: 10px 18px; font-size: 14px; }
.tk-nota { margin-top: 8px !important; font-size: 14px !important; color: var(--muted) !important; }
.tk-facil { padding: 20px 22px; border-radius: 20px; background: var(--violeta); color: #fff; }
.tk-facil h3 { color: #fff; opacity: .85; }
.tk-facil p, .tk-facil a { color: #fff !important; }
.tk-facil .tk-prompt-txt { margin-top: 12px; border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 12%); color: #fff; }
.tk-facil .tk-copiar { background: #fff; color: #17120c; }
.tk-var { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.tk-var > span { padding-top: 6px; font-size: 14px; font-weight: 700; }
.tk-var p { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-var button { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--body); font: 13px var(--sans); cursor: pointer; }
.tk-var button.on { border-color: var(--accent); background: var(--accent); color: var(--sobre-acc); }
.tk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-tags span { padding: 5px 11px; border-radius: 999px; background: var(--cartao); font-size: 14px; }
.tk-paleta { display: flex; gap: 8px; }
.tk-paleta span { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%); }
.tk-lista ul, .tk-passos ol { display: grid; gap: 10px; padding-left: 20px; font-size: 16px; line-height: 1.55; color: var(--body); }
.tk-passos li b { color: var(--text); }
.tk-passos li p { margin-top: 4px; }
.tk-veredito { padding: 18px 20px; border-radius: 18px; background: var(--cartao); }
.tk-dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tk-dados dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tk-dados dd { margin: 2px 0 0; font-size: 15px; }
.tk-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (max-width: 1080px) { .tk-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tk-guias, .tk-instalar-in { grid-template-columns: minmax(0, 1fr); }
  .tk-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-var { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .tk-grade { grid-template-columns: minmax(0, 1fr); }
  .tk-abas { width: 100%; }
  .tk-abas button { flex: 1; justify-content: center; padding: 0 10px; }
  .tk-busca, .tk-busca input { width: 100%; }
}

/* Em 320 px as três abas não cabiam com o respiro padrão. */
@media (max-width: 360px) {
  .tk-abas { box-sizing: border-box; }
  .tk-abas button { gap: 5px; padding: 0 6px; font-size: 14px; }
}
