/* Aprender (EAD) — card da home, página Aprender, player e perguntas.
   Mesma linguagem do design system: cantos 16–22px, azul/laranja CVP, efeito mola. */

/* ---------- card da home ---------- */
.ead-card { padding: 0 !important; overflow: hidden; }
.ead-card__topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.ead-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--cvp-laranja); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ead-card__cont { font-size: .78rem; color: var(--cvp-suave); font-weight: 600; }
.ead-capa { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--cvp-azul-800) center / cover no-repeat; color: #fff; font: inherit; }
.ead-card .ead-capa { width: calc(100% - 36px); margin: 0 18px; border-radius: 16px; }
.ead-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,30,70,0) 45%, rgba(0,30,70,.55)); transition: opacity .3s; }
.ead-capa:hover::after { opacity: .6; }
.ead-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255,255,255,.95); box-shadow: 0 14px 30px -10px rgba(0,20,50,.6); transition: transform .6s var(--mola); }
.ead-play::before { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--cvp-laranja); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.ead-play--audio::before, .ead-play--pdf::before { left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 0;
  background: var(--cvp-laranja); -webkit-mask: var(--ead-ic) center / contain no-repeat; mask: var(--ead-ic) center / contain no-repeat; }
.ead-play--audio { --ead-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='14' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='14' width='4' height='6' rx='1.5'/%3E%3C/svg%3E"); }
.ead-play--pdf { --ead-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l5 5v15H6z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cline x1='9' y1='13' x2='16' y2='13'/%3E%3Cline x1='9' y1='17' x2='14' y2='17'/%3E%3C/svg%3E"); }
.ead-capa:hover .ead-play { transform: scale(1.12); }
.ead-capa:active .ead-play { transform: scale(.94); }
.ead-pts { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 5px 10px; border-radius: 99px; background: var(--cvp-laranja); color: #fff;
  font-size: .78rem; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(243,146,0,.9); }
.ead-dur { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(0,20,50,.6); font-size: .74rem; font-weight: 700; }
.ead-selo { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--cvp-azul); font-size: .72rem; font-weight: 800; }
.ead-selo--ok { background: var(--cvp-ok); color: #fff; }
.ead-selo--fim { background: #e7ecf3; color: var(--cvp-suave); }
.ead-card__corpo { padding: 14px 18px 18px; }
.ead-card__corpo h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--cvp-tinta); }
.ead-card__corpo > p { margin: 0 0 14px; font-size: .86rem; line-height: 1.5; color: var(--cvp-suave); }
.ead-card__acoes { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ead-card__acoes .btn { display: inline-flex; align-items: center; border: 0; cursor: pointer; font-family: inherit; font-size: .88rem; font-weight: 700;
  background: var(--cvp-azul) !important; color: #fff !important; border-radius: 12px; padding: 11px 18px; box-shadow: 0 12px 24px -14px rgba(0,92,169,.9);
  transition: transform .55s var(--mola), filter .2s; }
.ead-card__acoes .btn:hover { filter: brightness(1.08); }
.ead-card__acoes .btn:active { transform: scale(.95); }
.ead-link { font-size: .86rem; font-weight: 700; color: var(--cvp-azul); text-decoration: none; }
.ead-link:hover { text-decoration: underline; }
.ead-mini { border-top: 1px solid var(--cvp-linha); margin: 16px 0 0; padding: 10px 0 0; display: grid; gap: 4px; }
.ead-mini button { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px;
  background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--cvp-tinta); transition: background-color .2s, transform .55s var(--mola); }
.ead-mini button:hover { background: var(--cvp-azul-50); }
.ead-mini button:active { transform: scale(.98); }
.ead-mini i { display: block; width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--cvp-azul-800) center / cover no-repeat; }
.ead-mini b { display: block; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.ead-mini small { font-size: .74rem; color: var(--cvp-suave); }
.ead-mini em { font-style: normal; font-size: .76rem; font-weight: 800; color: var(--cvp-laranja-600); }

/* ---------- página Aprender ---------- */
.ead-pag-sub { margin: -6px 0 18px; font-size: .95rem; color: var(--cvp-suave); max-width: 640px; }
.ead-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.ead-resumo div { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--cvp-sombra-1); }
.ead-resumo div:last-child { background: radial-gradient(120% 160% at 0% 0%, #ffad33 0%, #f39200 50%, #e07a00 100%); color: #fff; }
.ead-resumo small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.ead-resumo b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.ead-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ead-filtros button { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--cvp-linha); background: #fff; color: var(--cvp-tinta-2);
  font-family: inherit; font-size: .84rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: transform .55s var(--mola), background-color .2s, border-color .2s, color .2s; }
.ead-filtros button:active { transform: scale(.94); }
.ead-filtros button.on { background: var(--cvp-azul); border-color: var(--cvp-azul); color: #fff; }
.ead-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ead-item { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--cvp-sombra-1); display: flex; flex-direction: column; transition: transform .6s var(--mola), box-shadow .25s; }
.ead-item:hover { transform: translateY(-4px); box-shadow: var(--cvp-sombra-2); }
.ead-item .ead-capa { border-radius: 0; }
.ead-item__corpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ead-item__corpo h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--cvp-tinta); letter-spacing: -.01em; }
.ead-item__corpo p { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--cvp-suave); flex: 1; }
.ead-item__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .76rem; color: var(--cvp-suave); font-weight: 600; margin-top: 6px; }
.ead-vazio { padding: 40px 20px; text-align: center; color: var(--cvp-suave); background: #fff; border-radius: 18px; }
html[data-tema="escuro"] body .ead-pag-sub { color: rgba(255,255,255,.82); }
html[data-tema="escuro"] body .ead-filtros button:not(.on) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
html[data-tema="escuro"] body .ead-filtros button.on { background: var(--cvp-laranja); border-color: var(--cvp-laranja); }
@media (max-width: 640px) { .ead-resumo { grid-template-columns: 1fr 1fr; } .ead-resumo div:last-child { grid-column: 1 / -1; } }

/* ---------- player (janela padrão, mais larga) ---------- */
.ead-jan { max-width: 720px !important; }
.ead-jan .cvp-jan__topo { align-items: center; padding-bottom: 12px; }
.ead-jan .cvp-jan__topo > div { flex: 1; min-width: 0; }
.ead-jan .cvp-jan__topo h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ead-fechar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cvp-fundo); color: var(--cvp-tinta-2); font-size: 1.3rem; cursor: pointer;
  transition: transform .55s var(--mola), background-color .2s; }
.ead-fechar:hover { background: var(--cvp-azul-50); transform: rotate(90deg); }
.ead-jan .cvp-jan__corpo { padding-top: 4px; }
.ead-midia { border-radius: 16px; overflow: hidden; background: #00264a; }
.ead-midia video { display: block; width: 100%; max-height: 56vh; background: #00264a; }
.ead-midia iframe { display: block; width: 100%; height: 56vh; border: 0; background: #fff; }
/* leitor de PDF próprio: folhas empilhadas, rolagem sem barra, tela cheia */
.ead-pdf { display: flex; flex-direction: column; background: #00264a; }
.ead-pdf__barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #fff; font-size: .85rem; font-weight: 700; }
.ead-pdf__pag { font-variant-numeric: tabular-nums; letter-spacing: .04em; opacity: .9; }
.ead-pdf__tela { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; border-radius: 999px;
  padding: 6px 14px; font: inherit; cursor: pointer; transition: background .2s, transform .2s var(--mola-item, ease); }
.ead-pdf__tela:hover { background: rgba(255,255,255,.14); }
.ead-pdf__tela:active { transform: scale(.94); }
.ead-pdf__paginas { height: 56vh; overflow-y: auto; overflow-x: hidden; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.ead-pdf__paginas::-webkit-scrollbar { display: none; }
.ead-pdf__folha { width: 100%; flex: none; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.ead-pdf__folha canvas { display: block; width: 100%; height: auto; }
.ead-pdf__paginas iframe { height: 100%; border-radius: 6px; }
.ead-pdf--cheia, .ead-pdf:fullscreen { position: fixed; inset: 0; z-index: 9999; border-radius: 0; }
.ead-pdf--cheia .ead-pdf__paginas, .ead-pdf:fullscreen .ead-pdf__paginas { height: auto; flex: 1; align-items: center; }
.ead-pdf--cheia .ead-pdf__folha, .ead-pdf:fullscreen .ead-pdf__folha { width: min(100%, 980px); }
.ead-audio { position: relative; aspect-ratio: 16 / 7; background: center / cover no-repeat; }
.ead-audio audio { position: absolute; left: 14px; right: 14px; bottom: 14px; width: calc(100% - 28px); }
.ead-ondas { position: absolute; left: 50%; top: 42%; display: flex; gap: 5px; align-items: center; height: 44px; transform: translate(-50%, -50%); }
.ead-ondas i { width: 6px; height: 12px; border-radius: 4px; background: #fff; opacity: .9; }
.ead-tocando .ead-ondas i { animation: ead-onda 1s ease-in-out infinite; }
.ead-ondas i:nth-child(2) { animation-delay: .15s !important; } .ead-ondas i:nth-child(3) { animation-delay: .3s !important; }
.ead-ondas i:nth-child(4) { animation-delay: .45s !important; } .ead-ondas i:nth-child(5) { animation-delay: .6s !important; }
@keyframes ead-onda { 0%, 100% { height: 10px; } 50% { height: 42px; } }
.ead-trava { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: .86rem; color: var(--cvp-suave); }
.ead-trava__barra { flex: 1; height: 6px; border-radius: 6px; background: var(--cvp-linha); overflow: hidden; }
.ead-trava__barra i { display: block; height: 100%; width: 0; background: var(--cvp-laranja); border-radius: 6px; transition: width .4s ease; }
.ead-trava--ok { color: var(--cvp-ok); font-weight: 700; }
.ead-aviso { margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--cvp-azul-50); color: var(--cvp-azul-800); font-size: .88rem; }
.ead-aviso--ok { background: #e7f7ee; color: #0d6b47; }

/* perguntas */
.ead-passos { display: flex; gap: 6px; margin: 2px 0 14px; }
.ead-passos i { flex: 1; height: 5px; border-radius: 5px; background: var(--cvp-linha); transition: background-color .3s; }
.ead-passos i.on { background: var(--cvp-laranja); }
.ead-q__rot { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cvp-suave); }
.ead-q__enun { margin: 0 0 14px; font-size: 1.1rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--cvp-tinta); }
.ead-q__dica { margin: -8px 0 12px; font-size: .82rem; color: var(--cvp-suave); }
.ead-alts { display: grid; gap: 8px; }
.ead-alt { align-items: center !important; }
.ead-alt input { position: absolute; opacity: 0; pointer-events: none; }
.ead-letra { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--cvp-azul-50); color: var(--cvp-azul);
  font-size: .82rem; font-weight: 800; transition: background-color .2s, color .2s, transform .55s var(--mola); }
.ead-alt:has(input:checked) .ead-letra { background: var(--cvp-laranja); color: #fff; transform: scale(1.08); }
.ead-alt span:last-child { font-size: .93rem; color: var(--cvp-tinta); line-height: 1.4; }
.ead-alt.certa { border-color: var(--cvp-ok) !important; background: #e7f7ee !important; }
.ead-alt.certa .ead-letra { background: var(--cvp-ok); color: #fff; }

.ead-ordem { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ead-pega { touch-action: none; }
.ead-ordem li { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border: 1.5px solid var(--cvp-linha); border-radius: 14px; background: #fff;
  user-select: none; -webkit-user-select: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.ead-ordem li.arrastando { border-color: var(--cvp-laranja); background: var(--cvp-laranja-50); box-shadow: 0 18px 30px -16px rgba(243,146,0,.7); z-index: 2; position: relative; }
.ead-ordem .ead-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cvp-azul); color: #fff; font-size: .8rem; font-weight: 800; }
.ead-ordem .ead-txt { flex: 1; font-size: .92rem; line-height: 1.35; color: var(--cvp-tinta); }
.ead-pega { flex: 0 0 auto; width: 30px; height: 34px; border: 0; background: transparent; cursor: grab; border-radius: 8px; color: var(--cvp-fraco);
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 2px); background-size: 8px 8px; background-position: 7px 5px; background-repeat: repeat; opacity: .8; }
.ead-pega:active { cursor: grabbing; }
.ead-setas { display: flex; flex-direction: column; gap: 2px; }
.ead-setas button { width: 30px; height: 20px; border: 0; border-radius: 6px; background: var(--cvp-fundo); color: var(--cvp-tinta-2); cursor: pointer; font-size: .7rem; line-height: 1;
  transition: transform .5s var(--mola), background-color .2s; }
.ead-setas button:hover { background: var(--cvp-azul-50); color: var(--cvp-azul); }
.ead-setas button:active { transform: scale(.85); }
.ead-setas button:disabled { opacity: .3; cursor: default; }
.ead-ordem li.certa { border-color: var(--cvp-ok); }
.ead-ordem li.certa .ead-num { background: var(--cvp-ok); }

/* resultado */
.ead-res { text-align: center; padding: 10px 0 6px; }
.ead-res__selo { width: 132px; height: 132px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 20% 10%, #ffb547 0%, #f39200 55%, #d97a00 100%); box-shadow: 0 24px 50px -20px rgba(243,146,0,.95);
  animation: mola-caixa var(--mola-dur) var(--mola) both; }
.ead-res__selo b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ead-res__selo small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.ead-res__selo--quase { background: radial-gradient(120% 120% at 20% 10%, #3a8fd8 0%, #005ca9 60%, #003f78 100%); box-shadow: 0 24px 50px -20px rgba(0,92,169,.9); }
.ead-res h4 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--cvp-tinta); }
.ead-res p { margin: 0 auto; max-width: 420px; font-size: .92rem; color: var(--cvp-suave); line-height: 1.5; }
.ead-res__lista { text-align: left; margin: 18px 0 0; display: grid; gap: 8px; }
.ead-res__lista div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--cvp-fundo); font-size: .88rem; color: var(--cvp-tinta-2); }
.ead-res__lista i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .75rem; color: #fff; background: var(--cvp-ok); }
.ead-res__lista i.x { background: var(--cvp-laranja-600); }
.ead-res__lista small { display: block; color: var(--cvp-suave); margin-top: 2px; }
.ead-confete { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ead-confete span { position: absolute; top: 40%; left: 50%; width: 9px; height: 14px; border-radius: 3px; opacity: 0; }
