/* =====================================================================
   LIÇÕES DA ESCOLA DOMINICAL — visual. Leve: sem animações contínuas.
   ===================================================================== */
#eb-pagina [hidden] { display: none !important; }
.eb-selo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0 0; font-size: .85rem; font-weight: 700; color: var(--dourado); text-transform: uppercase; letter-spacing: .08em; }
.eb-selo a { color: inherit; }
.eb-atalho { margin: .8rem 0 0; }

/* Ficha da lição (texto áureo, leitura, verdade prática, objetivo) */
.eb-verso { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 5px solid var(--dourado); border-radius: 0 16px 16px 0; background: var(--dourado-suave); }
.eb-verso-rot { display: block; font-size: .78rem; font-weight: 700; color: var(--dourado); text-transform: uppercase; letter-spacing: .08em; }
.eb-verso p { margin: .2rem 0 0; font-family: var(--fonte-titulo); font-size: 1.15rem; line-height: 1.5; }
.eb-verso cite { display: block; margin-top: .4rem; font-style: normal; font-weight: 700; }
.eb-dados { display: grid; gap: .6rem; margin: 0 0 1rem; }
@media (min-width: 700px) { .eb-dados { grid-template-columns: repeat(3, 1fr); } }
.eb-dados > div { padding: .8rem 1rem; border-radius: 16px; background: var(--superficie); border: 1px solid var(--borda); }
.eb-dados dt { font-size: .78rem; font-weight: 700; color: var(--texto-2); text-transform: uppercase; letter-spacing: .06em; }
.eb-dados dd { margin: .25rem 0 0; line-height: 1.5; }

/* Partes interativas: Preparar minha aula e Chamada */
.eb-app { margin: 1rem 0 1.5rem; padding: 1.2rem 1rem; border-radius: 24px; background: var(--superficie); border: 1px solid var(--borda); box-shadow: var(--sombra);
  border-top: 6px solid var(--primaria); scroll-margin-top: calc(var(--topo-h) + 10px); }
@media (min-width: 700px) { .eb-app { padding: 1.6rem 2rem; } }
.eb-app-tit { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: 1.3rem; }
.eb-app-tit .ico { color: var(--primaria); }
.eb-intro { margin: 0 0 1rem; color: var(--texto-2); }
.eb-form { display: grid; gap: 1rem; }
.eb-linha { display: grid; gap: 1rem; }
@media (min-width: 700px) { .eb-linha { grid-template-columns: repeat(3, 1fr); } .eb-linha-4 { grid-template-columns: repeat(4, 1fr); } }
.eb-linha-4 { grid-template-columns: 1fr 1fr; }
.eb-linha-4 .eb-campo:last-child { grid-column: 1 / -1; }
@media (min-width: 700px) { .eb-linha-4 .eb-campo:last-child { grid-column: auto; } }
.eb-campo { display: grid; gap: .35rem; min-width: 0; }
.eb-rotulo { font-weight: 700; font-size: .95rem; }
.eb-campo select, .eb-campo input, .eb-campo textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--borda);
  background: var(--fundo); color: var(--texto); font: inherit; font-size: 16px; }
.eb-campo textarea { line-height: 1.45; resize: vertical; }
.eb-campo :is(select, input, textarea):focus { outline: 3px solid color-mix(in srgb, var(--primaria) 45%, transparent); border-color: var(--primaria); }
.eb-acoes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.eb-acoes [aria-pressed="true"] { background: color-mix(in srgb, var(--primaria) 16%, var(--superficie)); box-shadow: inset 0 0 0 1.5px var(--primaria); }

/* Roteiro da aula */
.eb-roteiro:empty { display: none; }
.eb-roteiro { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: var(--fundo); border: 1px solid var(--borda); }
.eb-roteiro h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.eb-roteiro-dica { margin: 0 0 .8rem; color: var(--texto-2); font-size: .93rem; line-height: 1.5; }
.eb-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.eb-passos li { display: grid; gap: .1rem; padding: .55rem 0; border-top: 1px solid var(--borda); line-height: 1.45; }
@media (min-width: 560px) { .eb-passos li { grid-template-columns: 7.8rem 1fr; gap: .6rem; } }
.eb-passos li:first-child { border-top: 0; }
.eb-hora { font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primaria); white-space: nowrap; }
.eb-passos small { display: block; color: var(--texto-2); }

/* Chamada */
.eb-alunos-edit { padding: .6rem .9rem; border-radius: 14px; border: 1px solid var(--borda); background: var(--fundo); }
.eb-alunos-edit summary { min-height: 40px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.eb-alunos-edit .eb-campo { margin-top: .5rem; }
.eb-presenca { margin: 0; padding: 0; border: 0; min-width: 0; }
.eb-presenca legend { margin-bottom: .4rem; }
.eb-nomes { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.eb-nome { display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .3rem .7rem; border-radius: 12px; border: 1.5px solid var(--borda); background: var(--fundo); cursor: pointer; font-weight: 600; }
.eb-nome input { flex: none; width: 22px; height: 22px; accent-color: var(--primaria); }
.eb-nome:has(input:checked) { border-color: var(--primaria); background: color-mix(in srgb, var(--primaria) 12%, var(--fundo)); }
.eb-vazio { margin: 0; color: var(--texto-2); }
.eb-presenca .btn { margin-top: .6rem; }
.eb-total { margin: 0; font-weight: 650; }
.eb-historico { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--borda); }
.eb-historico h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.eb-hist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.eb-hist li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .55rem .8rem; border-radius: 12px; background: var(--fundo); border: 1px solid var(--borda); font-size: .93rem; }
.eb-hist li strong { min-width: 3.2rem; }
.eb-hist button { margin-left: auto; min-height: 36px; padding: .2rem .7rem; border-radius: 10px; border: 1px solid var(--borda); background: transparent; color: var(--texto-2); font: inherit; font-size: .85rem; cursor: pointer; }
.eb-freq { width: 100%; border-collapse: collapse; font-size: .93rem; }
.eb-freq th, .eb-freq td { padding: .4rem .5rem; border-bottom: 1px solid var(--borda); text-align: left; }
.eb-freq td:last-child, .eb-freq th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Listas de lições e séries */
.eb-serie-bloco { margin: 1.5rem 0; }
.eb-serie-bloco h2 a { color: inherit; text-decoration: none; }
.eb-serie-bloco h2 a:hover { text-decoration: underline; }
.eb-serie-resumo { margin: .2rem 0 .8rem; color: var(--texto-2); max-width: 70ch; }
.eb-lista { list-style: none; padding: 0; margin: .8rem 0 1.5rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.eb-item { display: flex; align-items: center; gap: .8rem; min-height: 60px; height: 100%; padding: .65rem .9rem; border-radius: var(--raio); text-decoration: none; color: var(--texto);
  background: var(--superficie); border: 1px solid var(--borda); }
.eb-item:hover, .eb-item[aria-current="page"] { border-color: var(--primaria); }
.eb-num { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--dourado-suave); color: var(--dourado); font-weight: 800; font-variant-numeric: tabular-nums; }
.eb-item-txt { min-width: 0; flex: 1; }
.eb-item strong { display: block; line-height: 1.3; }
.eb-item small { display: block; color: var(--texto-2); font-size: .82rem; }
.eb-dada { flex: none; font-size: .78rem; font-weight: 700; color: var(--primaria); }
.eb-series { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.eb-serie { display: flex; align-items: center; gap: .8rem; min-height: 64px; height: 100%; padding: .8rem 1rem; border-radius: var(--raio); text-decoration: none; color: var(--texto);
  background: var(--superficie); border: 1px solid var(--borda); box-shadow: var(--sombra); }
.eb-serie:hover { border-color: var(--primaria); }
.eb-serie-emo { font-size: 1.6rem; }
.eb-serie strong { display: block; }
.eb-serie small { display: block; color: var(--texto-2); font-size: .84rem; line-height: 1.35; }

/* Texto da lição */
.eb-abertura { padding: .8rem 1rem; border-radius: 14px; background: var(--fundo); border: 1px dashed var(--borda); font-weight: 600; }
.eb-bloco { margin-top: 1.5rem; }
.eb-dica { margin: 0 0 .5rem; color: var(--texto-2); font-size: .92rem; }
.eb-revisao { padding-left: 1.3rem; }
.eb-revisao li { margin: .3rem 0; }
.eb-revisao summary { min-height: 44px; padding: .5rem 0; font-weight: 650; cursor: pointer; }
.eb-revisao p { margin: 0 0 .6rem; padding: .6rem .8rem; border-radius: 12px; background: var(--fundo); }
.eb-criancas { padding: 1rem 1.1rem; border-radius: 18px; background: var(--dourado-suave); border: 1px solid var(--borda); }
.eb-criancas h2 { margin-top: 0; }
.eb-vizinhas { display: grid; gap: .6rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .eb-vizinhas { grid-template-columns: 1fr 1fr; } }
.eb-viz { display: block; padding: .8rem 1rem; border-radius: var(--raio); border: 1px solid var(--borda); background: var(--superficie); color: var(--texto); text-decoration: none; }
.eb-viz:hover { border-color: var(--primaria); }
.eb-viz small { display: block; color: var(--texto-2); }
.eb-viz-prox { text-align: right; grid-column: -2; }

/* Impressão: só a lição (ficha, roteiro e texto) */
@media print {
  #eb-pagina .eb-form, #eb-pagina .eb-acoes, .eb-vizinhas, .eb-mais, .eb-serie-bloco, #chamada, .eb-atalho, .outras, .eb-dica { display: none !important; }
  #eb-pagina .eb-app-tit { display: none !important; }
  /* Papel branco e letra preta, mesmo se o celular estiver no modo escuro */
  #eb-pagina, #eb-pagina * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  #eb-pagina .eb-verso, #eb-pagina .eb-dados > div, #eb-pagina .eb-criancas, #eb-pagina .eb-abertura, #eb-pagina .resumo-ia { border-color: #999 !important; }
  .eb-app { border: 0; padding: 0; margin: 0; }
  .eb-roteiro { border: 1px solid #999; break-inside: avoid; }
  .eb-dados > div, .eb-criancas { break-inside: avoid; }
}
