/* Foto de estudo (js/foto.js) e tutor por texto (js/tutortexto.js). Só tokens: claro/escuro e carreiras vêm de tokens.css. */

/* ── etapas da leitura ── */
#foto-corpo { display: grid; gap: var(--s-6); }
.fo-fechar { justify-self: start; }
.fo-titulo { text-align: center; }
.fo-minis { display: flex; justify-content: center; padding: var(--s-2) 0 var(--s-1); }
.fo-mini { width: 84px; height: 112px; border-radius: 10px; background: #ECE7DA; padding: 12px 10px; display: grid; align-content: start; gap: 6px; box-shadow: 0 10px 24px rgba(17, 19, 24, .18); }
.fo-mini i { display: block; height: 4px; border-radius: 2px; background: #A8A397; }
.fo-mini i:nth-child(3) { background: #E5CF3F; }
.fo-mini i:nth-child(2n) { width: 80%; }
.fo-mini:nth-child(1):not(:only-child) { transform: rotate(-7deg) translateX(18px); }
.fo-mini:nth-child(2) { position: relative; z-index: 1; transform: translateY(-6px); }
.fo-mini:nth-child(3) { transform: rotate(6deg) translateX(-18px); }
.fo-etapas { list-style: none; margin: 0; padding: 0; background: var(--sup); border-radius: var(--r); overflow: hidden; }
.fo-etapas li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--sep); color: var(--txt-3); }
.fo-etapas li:last-child { border-bottom: 0; }
.fo-etapas li > span:nth-child(2) { flex: 1; }
.fo-etapas li small { font-size: var(--t-13); color: var(--txt-3); }
.fo-etapas li.feita, .fo-etapas li.agora { color: var(--txt); }
.fo-etapas li.agora > span:nth-child(2) { font-weight: 600; }
.fo-marca { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sup-2); font-size: var(--t-15); font-weight: 600; }
.fo-etapas li.feita .fo-marca { background: var(--ok); color: #fff; }
.fo-etapas li.agora .fo-marca { background: none; border: 3px solid var(--acc-soft); border-top-color: var(--acc); animation: es-gira 900ms linear infinite; }
@media (prefers-reduced-motion: reduce) { .fo-etapas li.agora .fo-marca { animation-duration: 3s; } }

/* ── "É isso?" ── */
.fo-isso { font-size: var(--t-34); line-height: 1.1; }
.fo-assunto { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-5); border-radius: var(--r-l); background: var(--sup); border: 2px solid var(--acc); }
.fo-disc { font-size: var(--t-15); font-weight: 600; color: var(--acc); }
.fo-top { font-family: var(--f-display); font-size: var(--t-22); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.fo-resumo { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.fo-resumo li { display: flex; gap: 10px; font-size: var(--t-15); line-height: 1.45; }
.fo-resumo li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--acc); flex: none; }
.fo-atencao { display: flex; gap: 10px; padding: var(--s-3) var(--s-4); border-radius: var(--r); background: color-mix(in srgb, var(--aten) 12%, var(--sup)); font-size: var(--t-15); line-height: 1.45; }
.fo-atencao .ic { color: var(--aten); margin-top: 2px; }
.fo-tutor { justify-self: start; }
.fo-acoes { display: grid; gap: var(--s-1); }
.fo-lim-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--aten) 14%, var(--sup)); color: var(--aten); margin-bottom: var(--s-3); }
#f-foto-lim h2 { margin-bottom: var(--s-2); }

/* continuar a sessão que ficou pela metade */
.es-continuar { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 64px; margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-l); background: var(--acc-soft); color: var(--txt); text-align: left; transition: transform var(--d-toque) var(--mola); }
.es-continuar:active { transform: scale(.98); }
.es-continuar .ic { color: var(--acc); }
.es-continuar-txt { display: grid; flex: 1; }
.es-continuar-txt b { font-weight: 600; color: var(--acc); }
.es-continuar-txt span { font-size: var(--t-13); color: var(--txt-2); }
/* a questão no alto da conversa com o tutor */
.tx-questao { background: var(--sup); border: 1px solid var(--sep); border-radius: var(--r); padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-2); }
.tx-questao summary { cursor: pointer; list-style: none; min-height: 32px; display: flex; align-items: center; }
.tx-questao summary::-webkit-details-marker { display: none; }
.tx-q-enun { font-size: var(--t-15); line-height: 1.5; }
.tx-q-base { max-height: 9em; overflow: auto; }
.tx-q-alts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-13); color: var(--txt-2); }
.tx-q-alts em { font-style: normal; font-weight: 700; color: var(--txt); margin-right: 6px; }
.eq-duvida { min-height: 44px; }

/* "Estou com dúvida" e "Parar a sessão" lado a lado */
.eq-mais-acoes { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }

/* ── tutor por texto ── */
#tutorx { padding-bottom: calc(var(--aba-h) + var(--sa-b) + 96px); }
#tx-corpo { display: grid; gap: var(--s-4); }
.tx-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
.tx-cab h1 { font-size: var(--t-28); }
.tx-nova { flex: none; }
.tx-sobre { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 12px; border-radius: var(--r-pill); background: var(--acc-soft); color: var(--acc); font-size: var(--t-13); font-weight: 600; }
.tx-vazio { padding: var(--s-5) 0; }
.tx-msgs { display: grid; gap: var(--s-3); }
.tx-msg { max-width: 86%; padding: var(--s-3) var(--s-4); border-radius: 22px; font-size: var(--t-15); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; animation: entra var(--d-tela) var(--mola) both; }
.tx-msg.tutor { justify-self: start; background: var(--sup); border-bottom-left-radius: 6px; }
.tx-msg.pessoa { justify-self: end; background: var(--acc); color: var(--acc-txt); border-bottom-right-radius: 6px; display: grid; gap: var(--s-2); }
.tx-msg.pessoa:has(.tx-foto) { padding: 6px 6px var(--s-3); }
.tx-msg.pessoa:has(.tx-foto) p { padding: 0 10px; }
.tx-foto { width: 148px; max-height: 200px; object-fit: cover; border-radius: 16px; }
.tx-foto-sem { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-13); opacity: .9; }
.tx-lida { justify-self: end; font-size: 12px; color: var(--txt-3); margin-top: -6px; }
.tx-voz { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3); border-radius: var(--r-pill); background: var(--acc-soft); color: var(--acc); font-size: var(--t-15); font-weight: 600; transition: transform var(--d-toque) var(--mola); }
.tx-voz:active { transform: scale(.97); }
.tx-pensando { display: inline-flex; gap: 5px; padding: var(--s-4); }
.tx-pensando span:not(.sr) { width: 6px; height: 6px; border-radius: 50%; background: var(--txt-3); animation: pisca 1.1s infinite; }
.tx-pensando span:nth-child(2) { animation-delay: .15s; } .tx-pensando span:nth-child(3) { animation-delay: .3s; }
.tx-compor { flex-direction: column; align-items: center; gap: var(--s-2); }
.tx-compor form { align-items: center; }
.tx-compor #tx-camera, .tx-compor #tx-mic { color: var(--acc); }
.tx-anexo { display: flex; align-items: center; gap: var(--s-2); width: 100%; max-width: var(--col); padding: 6px 6px 6px 8px; border-radius: var(--r); background: var(--sup); border: 1px solid var(--sep); font-size: var(--t-13); }
.tx-anexo[hidden] { display: none; }
.tx-anexo img { width: 36px; height: 48px; object-fit: cover; border-radius: 6px; }
.tx-anexo span { flex: 1; }
.tx-anexo .bt-ic { width: 36px; height: 36px; min-height: 36px; }
