/* Bagrut English – student app: login, home extras, Speaking (on top of style.css, exam.css, words.css, writing.css) */

/* ---------- the "B" placeholder logo and Log out ---------- */
.bx-logo-b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; text-decoration: none;
  background: linear-gradient(135deg, #1FA2B4, #1B2A4A); color: #fff !important; font-weight: 800; font-size: 22px; margin-left: 4px; }
.who-out { border: 0; background: #EEF3F7; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-2); }
.who-out .ic { width: 20px; height: 20px; }
.who-out:hover { background: #FFE3DD; color: var(--coral-d); }

/* ---------- login ---------- */
body.is-login { background: radial-gradient(1200px 600px at 50% -10%, #A9DAEC, var(--sky) 60%); }
.lg { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 14px; }
.lg-card { width: 100%; max-width: 460px; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow); padding: 34px 30px 26px; text-align: center; }
.lg-logo { width: 88px; height: 88px; border-radius: 26px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 50px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1FA2B4, #1B2A4A); box-shadow: var(--shadow-s); }
.lg-card h1 { font-size: 34px; font-weight: 800; margin: 4px 0 0; }
.lg-form { display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.lg-form label { font-weight: 700; font-size: 16px; }
.lg-input { font: inherit; font-size: 26px; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; padding: 14px 16px; border-radius: 18px;
  border: 3px solid var(--line); background: #F7FBFD; color: var(--ink); width: 100%; }
.lg-input::placeholder { font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; color: #8A99B4; }
.lg-input:focus { outline: none; border-color: var(--teal); background: #fff; }
.lg-err { margin: 0; color: var(--red); background: var(--red-soft); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 16px; }
.lg-go { width: 100%; margin-top: 6px; }
.lg-help { color: var(--ink-2); font-size: 15px; margin: 16px 0 0; }
.lg-warn { background: #FFF6DA; border-radius: 14px; padding: 10px 14px; font-size: 15px; max-width: 460px; }
.lg-wait { min-height: 80vh; display: grid; place-content: center; text-align: center; color: var(--ink-2); font-weight: 700; }
.lg-wait .lg-logo { animation: lgpulse 1.2s ease-in-out infinite; }
@keyframes lgpulse { 50% { transform: scale(.92); opacity: .8; } }

/* ---------- "From your teacher" on the home page ---------- */
.td { padding: 18px 20px; }
.td-h { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.td-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--line); text-decoration: none; }
.td-row:first-of-type { border-top: 0; }
.td-ic { width: 44px; height: 44px; border-radius: 14px; background: #FFF6DA; display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.td-txt { display: grid; min-width: 0; flex: 1; }
.td-txt b { font-size: 17px; }
.td-txt small { color: var(--ink-2); font-size: 14px; }
.td-due { background: #EEF3F7; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.td-due.late { background: var(--red-soft); color: var(--red); }
.td-go { font-size: 28px; color: var(--ink-2); line-height: 1; }

/* ---------- Speaking ---------- */
.sp { display: grid; gap: 18px; max-width: 980px; }
.sp-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.sp-hero h1 { font-size: 30px; font-weight: 800; margin-top: 4px; }
.sp-hero .wr-how b { background: var(--coral); }
.sp-part { display: grid; gap: 8px; }
.sp-part-sub { margin: 0 4px 4px; }
.sp-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sp-task { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 16px 18px; transition: transform .15s; }
.sp-task:hover { transform: translateY(-2px); }
.sp-task.is-asg { box-shadow: 0 0 0 3px #FFC23D, var(--shadow); }
.sp-task.is-soon { opacity: .6; }
.sp-emo { font-size: 34px; width: 58px; height: 58px; border-radius: 18px; background: #FFF1D1; display: grid; place-items: center; flex: 0 0 auto; }
.sp-task-body { flex: 1; min-width: 0; }
.sp-task-body h3 { font-size: 20px; font-weight: 800; }
.sp-task-body p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.sp-prog { min-width: 52px; height: 36px; border-radius: 999px; background: #EEF3F7; display: grid; place-items: center; font-weight: 800; font-size: 15px; padding: 0 10px; }
.sp-prog.full { background: var(--leaf-soft); color: var(--leaf); }
.sp-prog .ic { width: 20px; height: 20px; }

.sp-dots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-dots > span { font-weight: 800; color: var(--ink-2); margin-right: 4px; }
.sp-dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-s); }
.sp-dot.done { background: var(--leaf-soft); color: var(--leaf); }
.sp-dot.on { background: var(--coral); color: #fff; }
.sp-q-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-listen-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.sp-listen-row small { color: var(--ink-2, #5b6577); }
[data-naomi].is-on { border-color: var(--coral); color: var(--coral-d); box-shadow: 0 0 0 3px rgba(255,110,90,.18); }
.sp-q-text { font-family: var(--f-read); font-size: 28px; font-weight: 600; line-height: 1.35; margin: 8px 0 10px; }
.sp-min { display: flex; align-items: center; gap: 8px; color: var(--ink-2); margin: 0; font-size: 16px; }
.sp-min .ic { color: var(--coral-d); }
.sp-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.sp-starters small { width: 100%; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.sp-starters span { background: #EEF6F9; border-radius: 12px; padding: 8px 12px; font-family: var(--f-read); font-size: 16px; }

.sp-box { display: grid; gap: 16px; }
.sp-rec { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 22px; }
.sp-fu-ask { background: #FFF1D1; border-radius: 16px; padding: 12px 16px; display: grid; gap: 2px; width: 100%; }
.sp-fu-ask small { font-weight: 700; color: #9A6A00; font-size: 14px; }
.sp-fu-ask b { font-family: var(--f-read); font-size: 21px; font-weight: 600; }
.sp-meter { position: relative; width: 170px; height: 170px; }
.sp-meter > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sp-meter circle { fill: none; stroke-width: 9; }
.sp-meter .trk { stroke: #EEF3F7; }
.sp-meter .val { stroke: var(--saffron); stroke-linecap: round; transition: stroke-dasharray .2s linear; }
.is-enough .sp-meter .val { stroke: var(--leaf); }
.sp-big { position: absolute; inset: 20px; border: 0; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.15), var(--shadow-s); }
.sp-big .ic { width: 56px; height: 56px; }
.is-rec .sp-big { background: var(--red); animation: pulse 1.1s infinite; }
.is-rec .sp-big .ic { width: 44px; height: 44px; }
.sp-time { display: grid; gap: 2px; }
.sp-time b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-time span { color: var(--ink-2); font-weight: 700; }
.sp-note { margin: 0; background: var(--red-soft); color: #A12A2E; border-radius: 12px; padding: 10px 14px; font-size: 16px; }
.sp-after { display: grid; gap: 14px; justify-items: center; width: 100%; }
.sp-after audio, .sp-res audio { width: 100%; max-width: 460px; }
.is-wait [data-tips] { animation: lgpulse 1.2s ease-in-out infinite; }

.sp-res { display: grid; gap: 12px; }
.sp-res-top { display: flex; justify-content: space-between; align-items: center; }
.sp-sec { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--ink-2); }
.sp-status { border-radius: 14px; padding: 12px 14px; background: #FFF6DA; font-size: 16px; line-height: 1.45; }
.sp-status.s-silent, .sp-status.s-failed { background: var(--red-soft); }
.sp-heard small { display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.sp-heard p { font-family: var(--f-read); font-size: 18px; line-height: 1.6; margin: 6px 0; background: #F7FBFD; border-radius: 14px; padding: 12px 14px; }
.sp-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 15px; }
.sp-chip.yes { background: var(--leaf-soft); color: #1F7A4D; }
.sp-chip.no { background: #FFF1D1; color: #8A5A00; }
.sp-tips { display: grid; gap: 12px; }
.sp-tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; border-left: 8px solid var(--teal); --c: var(--teal); }
.sp-tip p { margin: 6px 0 0; font-size: 18px; line-height: 1.45; }
.sp-say { margin-top: 10px; background: #EEF6F9; border-radius: 12px; padding: 10px 14px; font-family: var(--f-read); font-size: 18px; }
.sp-say small { display: block; font-family: var(--f-ui); font-weight: 700; color: var(--ink-2); font-size: 13px; }
.sp-fu { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #FFF1D1; }
.sp-fu > div:first-child { display: grid; gap: 2px; }
.sp-fu small { font-weight: 700; color: #9A6A00; font-size: 14px; }
.sp-fu b { font-family: var(--f-read); font-size: 21px; font-weight: 600; }

@media (max-width: 720px) {
  .sp-hero { grid-template-columns: 1fr; }
  .sp-hero h1 { font-size: 24px; }
  .sp-q-text { font-size: 23px; }
  .lg-card { padding: 28px 20px 22px; }
  .td-due { font-size: 13px; padding: 4px 9px; }
}

/* ---------- the teacher's mark (Writing and Speaking) ---------- */
.wr-mark { display: flex; align-items: center; gap: 16px; background: #FFF6DA; }
.wr-mark b { font-size: 34px; font-weight: 800; color: #8A5A00; white-space: nowrap; }
.wr-mark span { font-size: 17px; line-height: 1.45; }
.wr-mark span::before { content: "Your teacher: "; font-weight: 700; display: block; font-size: 14px; color: var(--ink-2); }
.wr-nophoto { min-height: 90px; display: grid; place-items: center; font-size: 44px; background: #F7FBFD; border-radius: 14px; }
.wr-left { margin: 0 0 6px; }
/* Speaking: test fixes 2026-11-26 */
.sp-res, .sp-rec { scroll-margin-top: 96px; }
.sp-time .sp-max { display: block; margin-top: 2px; font-size: .8rem; color: var(--ink-2, #5b6577); font-weight: 500; }
.is-rec .sp-time .sp-max { visibility: hidden; }
.sp-left { text-align: center; margin: 6px 0 0; }
[data-naomi].is-ask { animation: sp-ask 1.4s ease-in-out 3; border-color: var(--coral); }
@keyframes sp-ask { 50% { box-shadow: 0 0 0 6px rgba(255,110,90,.25); } }
@media (prefers-reduced-motion: reduce) { [data-naomi].is-ask { animation: none; } }
.sp-guess { display: flex; gap: 14px; align-items: center; }
.sp-guess-n { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #E8F6F1; color: #13795B; line-height: 1; }
.sp-guess-n b { font-size: 28px; font-weight: 800; }
.sp-guess-n small { font-size: 12px; font-weight: 700; opacity: .8; }
.sp-guess p { margin: 0 0 4px; font-weight: 700; font-size: 17px; }
.sp-guess small { color: var(--ink-2, #5b6577); }
