/* idata.center Academy (3.16.0): course pages, lesson player, exam, certificate, verification.
   Uses the site colour theme (--accent etc. from site.css). */

.ac-area { padding-top: 28px; }
.ac-h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.ac-noselect { -webkit-user-select: none; user-select: none; }

/* ---------- level cards (Academy home) ---------- */
.ac-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.ac-level-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ac-level-card h2 { margin: 0; font-size: 1.6rem; }
.ac-level-card.is-soon { opacity: .78; }
.ac-level-num { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ac-level-title { margin: 0; font-weight: 600; }
.ac-chips { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chips li { font-size: .8rem; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: 3px 10px; }
.ac-facts { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.ac-facts li { display: flex; align-items: center; gap: 8px; }
.ac-facts .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }
.ac-facts-col { margin: 12px 0 18px; }
.ac-level-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 8px; }
.ac-level-foot .m-progress { flex: 1 1 100%; }
.ac-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 4px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.ac-pill.is-ok { background: #e8f6ee; border-color: #b9e3c9; color: #1d6b3c; }
.ac-pill .icon { width: 16px; height: 16px; }
.ac-verify-note { margin-top: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-verify-note .icon { width: 18px; height: 18px; }

/* ---------- level page ---------- */
.ac-status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.ac-status-card > :first-child { margin-top: 0; }
.ac-status-line { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.ac-status-line .icon { width: 22px; height: 22px; color: var(--accent); flex: none; }
.ac-progress-lg { display: block; height: 10px; margin: 10px 0 6px; }
.ac-note { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.ac-outline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ac-module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.ac-module.is-empty { background: transparent; border-style: dashed; }
.ac-module h3 { margin: 0 0 6px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-module h3 .icon { width: 20px; height: 20px; color: var(--accent); }
.ac-module-n { color: var(--accent); font-weight: 700; }
.ac-module-exam { border-color: var(--accent-line); background: var(--accent-soft); }
.ac-blocks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ac-block { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); flex-wrap: wrap; }
.ac-block .icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ac-block.is-done .icon { color: #1d8a4a; }
.ac-block.is-open { background: var(--accent-soft); }
.ac-block.is-open .icon { color: var(--accent); }
.ac-block.is-locked { color: var(--muted); }
.ac-block-state { margin-inline-start: auto; }
.ac-tag { font-size: .7rem; font-weight: 700; letter-spacing: .04em; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.ac-tag-G { background: #eef1f5; color: #3d4a5c; }
.ac-tag-C { background: #e6f4f1; color: #145c4f; }
.ac-tag-S { background: #fdf1e3; color: #8a4b0f; }
.ac-rules { margin: 24px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.ac-rules summary { cursor: pointer; font-weight: 600; }
.ac-rules ul { margin: 10px 0 0; }

/* ---------- lesson player ---------- */
.ac-player { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; -webkit-user-select: none; user-select: none; }
.ac-player-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.ac-player-kicker { margin: 0 0 4px; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ac-player-title { margin: 0; font-size: 1.35rem; }
.ac-counter { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.ac-stage-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.ac-stage { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff; overflow: hidden; }
.ac-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ac-stage-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 5% 7%; }
.ac-stage-text.on-image { justify-content: flex-end; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.ac-stage-text h2 { color: #fff; margin: 0 0 3%; font-size: clamp(1.1rem, 3.2vw, 2.1rem); line-height: 1.2; }
.ac-stage-text ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: .45em; font-size: clamp(.85rem, 1.9vw, 1.22rem); line-height: 1.35; }
.ac-stage-text li::marker { color: var(--accent-on-dark); }
.ac-watermark { position: absolute; inset: -20%; display: grid; grid-template-columns: repeat(2, 1fr); align-content: space-around; justify-items: center; pointer-events: none; transform: rotate(-18deg); transition: transform 6s ease-in-out; z-index: 2; }
.ac-watermark span { color: #fff; opacity: .16; font-size: clamp(.7rem, 1.4vw, .95rem); font-weight: 600; white-space: nowrap; text-shadow: 0 0 2px rgba(0,0,0,.6); }
.ac-watermark-soft { position: absolute; inset: 0; transform: none; }
.ac-watermark-soft span { color: var(--ink); opacity: .07; text-shadow: none; }
.ac-shield { position: absolute; inset: 0; z-index: 3; }
.ac-elsewhere { position: absolute; inset: 0; z-index: 4; background: rgba(10, 14, 18, .92); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.ac-elsewhere[hidden] { display: none; }
.ac-timeline { height: 5px; background: var(--line); }
.ac-timeline span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.ac-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 14px; }
.ac-controls-mid { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-voice { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.ac-flip { transform: scaleX(-1); }
[dir="rtl"] .ac-flip { transform: none; }
.btn.is-locked { opacity: .45; cursor: not-allowed; }
.ac-wait { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin: 8px 0 0; }
.ac-wait[hidden] { display: none; }
.ac-wait .icon { width: 16px; height: 16px; }
.ac-shake { animation: acShake .5s; }
@keyframes acShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ac-notes { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ac-notes summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ac-notes summary .icon { width: 18px; height: 18px; }
.ac-notes-body { margin-top: 10px; line-height: 1.7; color: var(--ink); }
.ac-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ac-dots a, .ac-dots span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: .82rem; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.ac-dots a.is-seen { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent-line); }
.ac-dots .is-current { background: var(--accent); color: #fff; border-color: var(--accent); }
.ac-protect-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.ac-protect-note .icon { width: 16px; height: 16px; }
body.ac-blur .ac-stage, body.ac-blur .ac-exam { filter: blur(18px); }
body.ac-away .ac-stage { filter: blur(10px); }
@media print { .ac-player, .ac-exam, .ac-quiz-protected { display: none !important; } }
@media (max-width: 640px) {
  .ac-controls { grid-template-columns: 1fr 1fr; }
  .ac-controls-mid { grid-column: 1 / -1; order: -1; }
  .ac-player { padding: 12px; }
}

/* ---------- exam ---------- */
.ac-exam { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.ac-exam-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.ac-timer { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ac-timer .icon { width: 18px; height: 18px; color: var(--accent); }
.ac-exam.is-ending .ac-timer { color: #b42318; }
.ac-exam form { position: relative; }

/* ---------- certificate ---------- */
.ac-cert-actions { margin-bottom: 8px; }
.ac-print-tip { margin: 0 0 16px; }
.ac-cert-scroll { overflow-x: auto; padding-bottom: 8px; }
.ac-cert { position: relative; width: 1123px; height: 794px; box-sizing: border-box; padding: 22px; background: #fff; color: #0e2240; margin: 0 auto; box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ac-cert-ribbon { position: absolute; top: 38px; right: -62px; width: 260px; transform: rotate(35deg); background: #c2410c; color: #fff; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 3px; padding: 8px 0; z-index: 2; }
.ac-cert-frame { width: 100%; height: 100%; box-sizing: border-box; border: 2px solid var(--accent); padding: 8px; }
.ac-cert-inner { width: 100%; height: 100%; box-sizing: border-box; border: 1px solid var(--accent-line); padding: 34px 64px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ac-cert-brand { display: flex; align-items: center; gap: 12px; }
.ac-cert-academy { font-size: 22px; font-weight: 700; color: var(--accent); }
.ac-cert p { margin: 0; }
.ac-cert-kicker { margin-top: 26px !important; font-size: 13px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: var(--accent); }
.ac-cert-small { font-size: 15px; color: #4a5b78; margin-top: 14px !important; }
.ac-cert-name { margin-top: 6px !important; font-family: Georgia, "Times New Roman", serif; font-size: 50px; font-weight: 600; line-height: 1.1; color: #0e2240; }
.ac-cert-rule { display: block; width: 460px; height: 1px; background: var(--accent-line); margin-top: 8px; }
.ac-cert-course { margin-top: 8px !important; font-size: 26px; font-weight: 700; color: var(--accent); }
.ac-cert-comps { margin-top: 18px; }
.ac-cert-comps ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 840px; }
.ac-cert-comps li { font-size: 12px; font-weight: 500; border: 1px solid var(--accent-line); border-radius: 999px; padding: 4px 12px; }
.ac-cert-label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #4a5b78; }
.ac-cert-val { font-size: 14px; font-weight: 600; color: #0e2240; margin-bottom: 6px !important; font-variant-numeric: tabular-nums; }
.ac-cert-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ac-cert-meta { width: 260px; text-align: left; }
.ac-cert-sign { width: 300px; display: flex; flex-direction: column; align-items: center; }
.ac-cert-script { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 30px; line-height: 1; }
.ac-cert-sign-line { display: block; width: 260px; height: 1px; background: #0e2240; margin-top: 6px; }
.ac-cert-sign .ac-cert-small { margin-top: 8px !important; font-size: 12px; }
.ac-cert-qr { width: 260px; display: flex; justify-content: flex-end; align-items: flex-end; gap: 12px; }
.ac-cert-qr-text { text-align: right; }
.ac-accent { color: var(--accent); }
.ac-qr { width: 96px; height: 96px; padding: 6px; border: 1px solid var(--accent-line); background: #fff; }
.ac-qr svg { width: 100%; height: 100%; display: block; }
.ac-cert-fine { margin-top: 14px !important; font-size: 10px; color: #4a5b78; }

/* ---------- verification ---------- */
.ac-verify { border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 24px; }
.ac-verify-valid { border-color: #b9e3c9; background: #f1faf4; }
.ac-verify-test { border-color: #f3d3b0; background: #fff8f0; }
.ac-verify-superseded, .ac-verify-revoked { border-color: #f3c0bb; background: #fff5f4; }
.ac-verify-state { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 12px; }
.ac-verify-state .icon { width: 24px; height: 24px; }
.ac-verify-valid .ac-verify-state .icon { color: #1d8a4a; }
.ac-verify-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.ac-verify-list dt { color: var(--muted); }
.ac-verify-list dd { margin: 0; font-weight: 600; }
.ac-verify-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 560px) { .ac-verify-fields { grid-template-columns: 1fr; } .ac-verify-list { grid-template-columns: 1fr; } }
