/* EBI Kids — marca colorida, botão da topbar e páginas do site e do sistema */
.kids-marca { display: inline-block; padding: 0 6px; border-radius: 7px; background: #102a5e; font-family: 'Baloo 2', sans-serif; font-weight: 800; letter-spacing: .4px; line-height: 1.3; }
.kids-marca b { font-weight: 800; } .kids-marca b:nth-child(1) { color: #fe6c6d; } .kids-marca b:nth-child(2) { color: #7abdf1; } .kids-marca b:nth-child(3) { color: #fadb4d; } .kids-marca b:nth-child(4) { color: #7ece8f; }
.kids-rot { white-space: nowrap; }
.topo .menu a.ativo svg.kids-ic, .ts-menu a.ativo svg.kids-ic { fill: none; }
.gaveta a.kids-link { display: block; }

.kd-bloco { background: #fff; border-radius: 22px; padding: 24px 26px; margin-top: 16px; box-shadow: 0 10px 26px rgba(29, 59, 122, .1); font-family: 'Nunito', sans-serif; }
.kd-bloco h2, .kd-cta h2 { margin: 0 0 8px; color: #14306b; font: 800 1.5rem/1.15 'Baloo 2', sans-serif; }
.kd-intro { margin: 0 0 16px; color: #3b4764; font-size: 1.02rem; line-height: 1.55; }
.kd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kd-cards > div { padding: 16px; border-radius: 18px; background: #f3f7ff; }
.kd-cards > div:nth-child(2) { background: #effaea; } .kd-cards > div:nth-child(3) { background: #fff8df; } .kd-cards > div:nth-child(4) { background: #fff0ef; }
.kd-cards img.ic { width: 40px; height: 40px; }
.kd-cards h3 { margin: 8px 0 3px; color: #14306b; font: 800 1.06rem/1.15 'Baloo 2', sans-serif; }
.kd-cards p { margin: 0; color: #4a5672; font-size: .9rem; line-height: 1.4; }
.kd-passos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kd-passos li { display: grid; gap: 8px; align-content: start; }
.kd-passos b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 800 1.15rem 'Baloo 2', sans-serif; background: #fe6c6d; }
.kd-passos li:nth-child(2) b { background: #4a9fe6; } .kd-passos li:nth-child(3) b { background: #e9b90f; } .kd-passos li:nth-child(4) b { background: #47ae62; } .kd-passos li:nth-child(5) b { background: #8a5cd6; }
.kd-passos span { color: #4a5672; font-size: .9rem; line-height: 1.4; } .kd-passos strong { display: block; color: #14306b; font: 800 1.06rem/1.2 'Baloo 2', sans-serif; }

/* Temas em versão Kids (sistema) */
.kd-escolha { display: flex; gap: 8px; margin: 10px 0 16px; }
.kd-escolha select { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid #e3e9f4; border-radius: 14px; background: #fff; color: #14306b; font: 700 .95rem 'Nunito', sans-serif; }
.kd-escolha button { flex: none; width: 46px; border: 0; border-radius: 14px; background: #eef3fb; color: #14306b; font: 800 1.5rem/1 'Baloo 2', sans-serif; cursor: pointer; }
.kd-escolha button:hover { background: #dfe9f9; }
.kd-tema { display: grid; gap: 14px; }
.kd-tema-cab { display: flex; align-items: center; gap: 14px; }
.kd-num { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #14306b; font: 800 1.3rem 'Baloo 2', sans-serif; background: radial-gradient(circle at 50% 40%, #ffe27a, #ffcc1f); }
.kd-tema-cab h3 { margin: 0; color: #14306b; font: 800 1.35rem/1.15 'Baloo 2', sans-serif; } .kd-tema-cab small { color: #5f6b85; font-weight: 800; }
.kd-ideia, .kd-frase, .kd-historia { padding: 14px 18px; border-radius: 18px; }
.kd-ideia { background: #effaea; } .kd-frase { background: #fff8df; } .kd-historia { background: #f3f7ff; }
.kd-tema em { display: block; margin-bottom: 4px; color: #5f6b85; font-style: normal; font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.kd-ideia p { margin: 0; color: #245c22; font: 700 1.2rem/1.35 'Baloo 2', sans-serif; }
.kd-frase p { margin: 0 0 4px; color: #14306b; font: 700 1.2rem/1.35 'Baloo 2', sans-serif; } .kd-frase small { color: #5f6b85; font-weight: 700; font-size: .78rem; }
.kd-historia ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: #2c3857; font-weight: 700; line-height: 1.4; }
.kd-dica { margin: 0; color: #5f6b85; font-weight: 700; font-size: .9rem; }
.kd-completo { justify-self: start; color: #2459b8; font-weight: 800; text-decoration: none; } .kd-completo:hover { text-decoration: underline; }

/* Página do site */
.pagina-kids { background: #f2f5fb; }
.kd-site { max-width: 1120px; margin: 0 auto; padding: calc(var(--th, 92px) + 22px) 20px 36px; }
.kd-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 34px; border-radius: 26px; color: #fff; background: radial-gradient(circle at 92% -10%, rgba(255, 255, 255, .2), transparent 42%), linear-gradient(120deg, #14306b, #2459b8 62%, #3f8fd8); box-shadow: 0 12px 28px rgba(20, 48, 107, .2); }
.kd-hero h1 { margin: 0 0 6px; color: #fff; font: 800 clamp(2.4rem, 6vw, 3.6rem)/1.1 'Baloo 2', sans-serif; }
.kd-hero p { margin: 0; max-width: 460px; color: #dbe8ff; font: 700 1.14rem/1.4 'Nunito', sans-serif; }
.kd-hero img { width: min(300px, 34%); height: auto; }
.kd-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 22px 26px; border-radius: 22px; background: #fff8df; font-family: 'Nunito', sans-serif; }
.kd-cta p { margin: 0; color: #4a5672; } .kd-cta .btn-sistema { flex: none; }

@media (max-width: 900px) { .kd-cards { grid-template-columns: 1fr 1fr; } .kd-passos { grid-template-columns: 1fr; } .kd-passos li { grid-template-columns: 40px 1fr; align-items: center; } }
@media (max-width: 700px) {
  .kd-bloco { padding: 18px 16px; border-radius: 20px; }
  .kd-hero { flex-direction: column; text-align: center; padding: 22px 18px; } .kd-hero img { width: 210px; }
  .kd-cta { flex-direction: column; align-items: flex-start; }
}

/* Topbar do sistema com todos os botões em telas médias */
@media (min-width: 1000px) and (max-width: 1560px) {
  .ts-menu { gap: 0; } .ts-menu a { min-width: 0; padding: 6px 6px 5px; font-size: .8rem; white-space: nowrap; }
  .ts-barra .ct-nome { display: none; }
}
@media (min-width: 1000px) and (max-width: 1280px) { .ts-menu a { padding-inline: 3px; font-size: .72rem; } .ts-menu a svg { width: 22px; height: 22px; } .ts-barra .ts-txt strong { font-size: .95rem; } }

@media (min-width: 1561px) { .ts-menu { gap: 0; } .ts-menu a { min-width: 0; padding-inline: 7px; font-size: .84rem; white-space: nowrap; } }

/* Celular: textos corridos justificados */
@media (max-width: 700px) {
  .kd-intro, .kd-passos span, .kd-cta p, .kd-ideia p, .kd-dica { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
}

/* Voltar ao site principal */
.ts-site { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 9px; border-radius: 999px; background: #eef4ff; color: #14306b; font: 800 .86rem 'Baloo 2', sans-serif; text-decoration: none; transition: background .15s; }
.ts-site:hover { background: #dbe8ff; } .ts-site svg { width: 20px; height: 20px; fill: none; stroke: #1f4f9e; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ct-menu a.ct-site { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 10px; box-sizing: border-box; color: #14306b; font: 700 .92rem 'Nunito', sans-serif; text-decoration: none; }
.ct-menu a.ct-site:hover { background: #eef4ff; }
.gaveta a.gv-site { color: #2459b8; font-weight: 800; }
@media (max-width: 1100px) { .ts-site { display: none; } }
@media (min-width: 1561px) { .ts-barra .ct-nome { display: none; } }
@media (max-width: 1240px) { .ts-site { padding: 0 10px; } .ts-site span { display: none; } }

/* EBI Kids: cenário do Cordeirinho */
.kz-cena { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 380px; padding: 28px 34px; border-radius: 28px; overflow: hidden; background: url('/brand/kids/cantinho.svg?v=3') center bottom / cover no-repeat #7cc8f7; box-shadow: 0 12px 28px rgba(20, 48, 107, .18); }
.kz-cena-txt { position: relative; z-index: 2; display: grid; justify-items: start; gap: 8px; max-width: 48%; }
.kz-tit { margin: 0; color: #14306b; font: 800 clamp(2.5rem, 6vw, 4rem)/1 'Baloo 2', sans-serif; text-shadow: 0 2px 0 #fff; } .kz-tit .kids-marca { text-shadow: none; border-radius: 12px; padding: 0 10px; }
.kz-sub { margin: 0; padding: 3px 14px; border-radius: 999px; background: #ffd23f; color: #14306b; font: 800 clamp(1rem, 2.2vw, 1.3rem) 'Baloo 2', sans-serif; box-shadow: 0 3px 0 #e3a917; }
.kz-bal { position: relative; margin: 6px 0 2px; padding: 11px 16px; border-radius: 18px; background: #fff; color: #14306b; font: 800 1.06rem/1.25 'Nunito', sans-serif; box-shadow: 0 6px 16px rgba(20, 48, 107, .16); }
.kz-comecar { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #2f6fd6, #14306b); color: #fff; font: 800 1.08rem 'Baloo 2', sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(20, 48, 107, .3); }
.kz-comecar:hover { filter: brightness(1.12); }
.kz-mascote { position: relative; z-index: 1; align-self: flex-end; width: min(50%, 480px); height: auto; margin-bottom: -8px; filter: drop-shadow(0 12px 16px rgba(20, 48, 107, .25)); animation: kz-respira 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes kz-respira { 50% { transform: translateY(-7px) rotate(-1deg); } }
.kz-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .kz-placar { flex: none; padding: 6px 14px; border-radius: 999px; background: #fff4c4; color: #14306b; font-weight: 800; } .kz-placar i { color: #f5a800; font-style: normal; }
.kz-trilha { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kz-parada, .kz-lista li { display: grid; gap: 3px; padding: 8px 8px 12px; border: 0; border-radius: 20px; background: #f4f8ff; text-align: center; font-family: 'Nunito', sans-serif; }
.kz-parada { cursor: pointer; transition: transform .16s, box-shadow .16s; } .kz-parada:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 10px 22px rgba(29, 59, 122, .16); }
.kz-trilha > :nth-child(even) { margin-top: 18px; }
.kz-capa { position: relative; display: block; } .kz-capa img { display: block; width: 100%; height: auto; border-radius: 14px; }
.kz-capa b { position: absolute; top: -6px; left: -6px; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #ffd23f; color: #14306b; font: 800 1rem 'Baloo 2', sans-serif; }
.kz-capa i { position: absolute; top: -6px; right: -4px; color: #f5a800; font-style: normal; font-size: 1.7rem; line-height: 1; text-shadow: 0 0 0 #fff, 0 2px 4px rgba(0, 0, 0, .25); }
.kz-parada strong, .kz-lista strong { margin-top: 6px; color: #14306b; font: 800 1.02rem/1.15 'Baloo 2', sans-serif; } .kz-parada small, .kz-lista small { color: #5f6b85; font-weight: 700; font-size: .78rem; }
.kz-dica { margin: 14px 0 0; padding: 11px 14px; border-radius: 14px; background: #fff8df; color: #4a5672; font-size: .94rem; } .kz-dica b { color: #14306b; }

/* Livro de histórias */
body.kz-lendo { overflow: hidden; }
.kz-leitor { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: linear-gradient(180deg, #bfe6ff, #eaf8df); font-family: 'Nunito', sans-serif; }
.kz-l-topo { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; box-shadow: 0 4px 14px rgba(20, 48, 107, .12); }
.kz-l-topo b { flex: 1; min-width: 0; overflow: hidden; color: #14306b; font: 800 1.1rem 'Baloo 2', sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.kz-l-topo button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: #eef3fb; color: #14306b; font: 800 .9rem 'Nunito', sans-serif; cursor: pointer; } .kz-l-topo .kz-x { width: 44px; padding: 0; border-radius: 50%; }
.kz-palco { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 26px; width: min(1180px, 100%); margin: 0 auto; padding: 20px 26px; box-sizing: border-box; overflow-y: auto; }
.kz-fig { margin: 0; } .kz-fig img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: cover; border: 6px solid #fff; border-radius: 26px; box-sizing: border-box; box-shadow: 0 12px 26px rgba(20, 48, 107, .18); }
.kz-fala { display: grid; justify-items: end; gap: 12px; min-width: 0; }
.kz-pag { position: relative; justify-self: stretch; display: grid; gap: 10px; padding: 20px 22px; border-radius: 26px; background: #fff; color: #14306b; box-shadow: 0 12px 26px rgba(20, 48, 107, .14); }
.kz-pag::after { content: ''; position: absolute; right: 96px; bottom: -17px; border: 18px solid transparent; border-top-color: #fff; border-bottom: 0; } .kz-pag h2 { margin: 0; font: 800 clamp(1.8rem, 3.6vw, 2.7rem)/1.08 'Baloo 2', sans-serif; }
.kz-pag > p { margin: 0; font: 700 clamp(1.3rem, 2.5vw, 1.85rem)/1.32 'Baloo 2', sans-serif; } .kz-pag em { justify-self: start; padding: 3px 13px; border-radius: 999px; background: #ffd23f; font-style: normal; font-weight: 800; font-size: .92rem; }
.kz-ref { color: #4a5672; font-weight: 800; font-size: .92rem; } .kz-pag ul { margin: 0; padding-left: 22px; display: grid; gap: 5px; font-weight: 800; font-size: 1.1rem; }
.kz-ganhou { font-size: 1.1rem !important; color: #a86f00; } .kz-ganhou span { color: #f5a800; }
.kz-lamb { display: block; width: min(250px, 58%); height: auto; filter: drop-shadow(0 8px 10px rgba(20, 48, 107, .22)); animation: kz-respira 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.kz-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; }
.kz-b { min-width: 118px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: #eef3fb; color: #14306b; font: 800 1.05rem 'Baloo 2', sans-serif; cursor: pointer; } .kz-b.pri { background: #2459b8; color: #fff; } .kz-b:disabled { opacity: .4; cursor: default; }
.kz-pontos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } .kz-pontos i { width: 10px; height: 10px; border-radius: 50%; background: #cfdaea; } .kz-pontos i.on { background: #f5a800; transform: scale(1.3); }
@media (max-width: 900px) {
  .kz-trilha { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kz-palco { grid-template-columns: 1fr; align-content: start; gap: 12px; padding: 12px 14px; } .kz-fig img { max-height: 27vh; border-width: 4px; border-radius: 18px; } .kz-pag { padding: 14px 16px; border-radius: 20px; } .kz-pag::after { right: 62px; } .kz-lamb { width: 158px; }
}
@media (max-width: 700px) {
  .kz-cena { flex-direction: column; align-items: stretch; min-height: 0; padding: 20px 16px 0; border-radius: 22px; } .kz-cena-txt { max-width: 100%; justify-items: center; text-align: center; } .kz-mascote { align-self: center; width: min(82%, 310px); margin-top: 4px; }
  .kz-cab { flex-direction: column; } .kz-b { min-width: 96px; padding: 0 12px; } .kz-l-topo button:not(.kz-x) { padding: 0 10px; font-size: .82rem; }
  .kz-pag > p, .kz-pag em { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .kz-mascote, .kz-lamb { animation: none; } .kz-parada { transition: none; } }

/* Topbar com 12 botões */
@media (min-width: 1000px) and (max-width: 1440px) { .ts-menu a { padding-inline: 2px; font-size: .7rem; } .ts-menu a svg { width: 21px; height: 21px; } }
@media (min-width: 1000px) and (max-width: 1240px) { .ts-barra .ts-txt { display: none; } }
@media (min-width: 1441px) { .ts-menu a { padding-inline: 5px; font-size: .8rem; } }
