/* Student Portal: Notes, Learning Materials, Assignments & Grades, My Progress, Announcements (student-learning.js) */
.sv-protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sv-protect img, .sv-protect video { -webkit-user-drag: none; }
@media print { .sv-protect, #svViewer { display: none !important; } body::before { content: "Programme notes and materials cannot be printed."; display: block; padding: 24px; font: 16px sans-serif; } }
.sv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sv-head h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0; }
.sv-head p { font-size: 12px; color: #64748b; margin: 4px 0 0; max-width: 640px; }
.sv-btn { padding: 8px 14px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #0f172a; border: 0; cursor: pointer; }
.sv-btn:hover { background: #e2e8f0; }
.sv-sec { margin-top: 18px; }
.sv-prog { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #0f172a; font-size: 15px; padding: 10px 14px; background: #e0f2fe; border-radius: 12px; margin-bottom: 10px; }
.sv-empty { padding: 16px; border: 1px dashed #cbd5e1; border-radius: 14px; background: #f8fafc; font-size: 13px; color: #475569; }
.sv-empty b { display: block; color: #0f172a; margin-bottom: 4px; }
.sv-locked { margin-top: 18px; padding: 12px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: 12px; color: #92400e; }
.sv-note { border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.sv-note-h { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #f8fafc; border: 0; cursor: pointer; text-align: left; color: #0f172a; }
.sv-note-h b { display: block; font-size: 14px; } .sv-note-h small { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.sv-note-h i { font-style: normal; transition: transform .2s; } .sv-note.open .sv-note-h i { transform: rotate(180deg); }
.sv-note-b { display: none; padding: 14px; font-size: 14px; line-height: 1.65; color: #1e293b; white-space: pre-wrap; word-break: break-word; }
.sv-note.open .sv-note-b { display: block; }
.sv-course { border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff; }
.sv-course h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #0f172a; }
.sv-mod { border-top: 1px solid #e2e8f0; padding: 8px 0; } .sv-mod summary { cursor: pointer; font-weight: 700; font-size: 13px; color: #0f172a; padding: 4px 0; }
.sv-lesson { margin: 10px 0 14px 8px; padding-left: 12px; border-left: 3px solid #bae6fd; }
.sv-lesson h5 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: #0f172a; } .sv-lesson h5 small { font-weight: 600; color: #64748b; margin-left: 6px; }
.sv-p { font-size: 12px; color: #475569; margin: 4px 0; line-height: 1.55; }
.sv-text { font-size: 13px; color: #1e293b; line-height: 1.65; white-space: pre-wrap; word-break: break-word; margin: 6px 0; }
.sv-res-list { display: grid; gap: 8px; margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.sv-res { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; cursor: pointer; }
.sv-res:hover { border-color: #0ea5e9; background: #f0f9ff; }
.sv-res span { grid-row: span 2; font-size: 20px; } .sv-res b { font-size: 13px; color: #0f172a; } .sv-res small { font-size: 11px; color: #64748b; } .sv-res em { grid-column: 2; font-size: 11px; color: #64748b; font-style: normal; }
.sv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: 10px; margin: 10px 0; }
.sv-stats div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; text-align: center; }
.sv-stats b { display: block; font-size: 22px; color: #0f172a; } .sv-stats span { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; }
.sv-bar { height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin: 4px 0 12px; } .sv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0ea5e9, #22c55e); }
.sv-assign { border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; margin-bottom: 10px; background: #fff; }
.sv-assign-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .sv-assign-h b { font-size: 14px; color: #0f172a; }
.sv-meta { font-size: 11px; color: #64748b; margin: 4px 0 8px; }
.sv-result { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; } .sv-result span { font-size: 12px; font-weight: 600; }
.sv-result.pass { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; } .sv-result.fail { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; } .sv-result.wait { background: #f1f5f9; color: #475569; font-size: 12px; }
.sv-result p { margin: 6px 0 0; font-size: 12px; color: #1e293b; white-space: pre-wrap; }
.sv-pill { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.sv-pill.blue { background: #e0f2fe; color: #075985; } .sv-pill.green { background: #d1fae5; color: #065f46; } .sv-pill.amber { background: #fef3c7; color: #92400e; } .sv-pill.red { background: #fee2e2; color: #991b1b; } .sv-pill.gray { background: #e2e8f0; color: #475569; }
.sv-sub { margin: 14px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: #475569; }
.sv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 6px; background: #fff; }
.sv-row b { font-size: 13px; color: #0f172a; } .sv-row small { display: block; font-size: 11px; color: #64748b; }
.sv-ann { border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; background: #fff; } .sv-ann b { display: block; color: #0f172a; font-size: 14px; } .sv-ann small { display: block; font-size: 11px; color: #64748b; margin-bottom: 4px; }

/* the protected viewer */
.sv-viewer { position: fixed; inset: 0; z-index: 100000; background: #020617; display: none; flex-direction: column; }
.sv-viewer.open { display: flex; }
.sv-viewer-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0f172a; color: #fff; }
.sv-viewer-head b { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-viewer-tag { font-size: 11px; color: #94a3b8; } .sv-viewer-x { background: #fff; color: #0f172a; border: 0; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; cursor: pointer; }
.sv-viewer-body { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.sv-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.sv-media { max-width: 100%; max-height: 100%; } .sv-img { object-fit: contain; } .sv-audio { padding: 40px; }
.sv-cover { position: absolute; top: 0; right: 0; width: 64px; height: 56px; z-index: 2; }      /* covers the pop-out button of Google's viewers */
.sv-mark { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; overflow: hidden; opacity: .13; transform: rotate(-18deg) scale(1.4); }
.sv-mark span { color: #64748b; font: 700 13px sans-serif; padding: 18px 26px; white-space: nowrap; mix-blend-mode: difference; }

/* notes written with the formatting editor */
.sv-note-b.sv-rich { white-space: normal; }
.rt-content p { margin: 0 0 .6em; } .rt-content div { margin: 0; }
.rt-content h1 { font-size: 1.7em; margin: .6em 0 .3em; line-height: 1.25; } .rt-content h2 { font-size: 1.4em; margin: .6em 0 .3em; line-height: 1.25; } .rt-content h3 { font-size: 1.15em; margin: .6em 0 .3em; line-height: 1.3; } .rt-content h4 { font-size: 1em; margin: .6em 0 .3em; }
.rt-content ul, .rt-content ol { margin: 0 0 .6em; padding-left: 1.6em; } .rt-content ul { list-style: disc; } .rt-content ol { list-style: decimal; }
.rt-content blockquote { margin: .6em 0; padding: 4px 14px; border-left: 4px solid #cbd5e1; color: #475569; }
.rt-content table { border-collapse: collapse; margin: .6em 0; max-width: 100%; display: block; overflow-x: auto; } .rt-content td, .rt-content th { border: 1px solid #94a3b8; padding: 5px 8px; min-width: 40px; vertical-align: top; }
.rt-content a { color: #0e7490; text-decoration: underline; } .rt-content hr { border: 0; border-top: 1px solid #cbd5e1; margin: 1em 0; }
/* facilitator courses shown above the notes */
.sv-sub { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.sv-cmeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; } .sv-cmeta span { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e0f2fe; color: #075985; }
.sv-cfield { margin: 0 0 12px; } .sv-cfield b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #475569; margin-bottom: 3px; }
.sv-cfield ul { margin: 0; padding-left: 1.3em; list-style: disc; }

.rt-page img, .rt-content img { max-width: 100%; height: auto; border-radius: 6px; display: inline-block; vertical-align: middle; }

/* ---------- My Assignments (navy / gold / white) ---------- */
.asg-s-avail { background: #0b1f3a; color: #f5b400; font-weight: 800; font-size: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(245,180,0,.5); white-space: nowrap; align-self: center; }
.asg-s-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(105px, 100%), 1fr)); gap: 10px; margin: 6px 0 14px; }
.asg-s-stats div { background: linear-gradient(160deg, #0b1f3a, #12305a); border-radius: 14px; padding: 12px; text-align: center; border: 1px solid rgba(245,180,0,.3); }
.asg-s-stats b { display: block; font-size: 22px; color: #f5b400; } .asg-s-stats span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #cbd5e1; }
.asg-s-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.asg-s-chip { border: 1px solid #cbd5e1; background: var(--bv-surface, #fff); color: var(--bv-text, #0f172a); border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; cursor: pointer; }
.asg-s-chip i { font-style: normal; background: #e2e8f0; color: #0b1f3a; border-radius: 99px; padding: 0 7px; margin-left: 3px; font-size: 11px; }
.asg-s-chip.on { background: #0b1f3a; color: #f5b400; border-color: #0b1f3a; } .asg-s-chip.on i { background: #f5b400; }
.asg-s-sel { border: 1px solid #cbd5e1; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; background: var(--bv-surface, #fff); }
.asg-s-list { display: grid; gap: 16px; }
.asg-s-card { background: var(--bv-surface, #fff); border: 1px solid var(--bv-line, #e2e8f0); border-top: 5px solid #f5b400; border-radius: 18px; padding: 18px; box-shadow: 0 6px 22px rgba(11,31,58,.07); color: var(--bv-text, #0f172a); }
.asg-s-card.st-reviewed { border-top-color: #10b981; } .asg-s-card.st-correction-requested, .asg-s-card.st-needs-correction { border-top-color: #ef4444; } .asg-s-card.st-submitted, .asg-s-card.st-late-submission { border-top-color: #38bdf8; }
.asg-s-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.asg-s-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.asg-s-prog { background: #0b1f3a; color: #f5b400; font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.asg-s-new { background: #f5b400; color: #0b1f3a; font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; }
.asg-s-status { font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.st-submitted .asg-s-status { background: #e0f2fe; color: #075985; } .st-late-submission .asg-s-status { background: #ffedd5; color: #9a3412; }
.st-reviewed .asg-s-status { background: #d1fae5; color: #065f46; } .st-needs-correction .asg-s-status { background: #fee2e2; color: #991b1b; }
.asg-s-card h4 { margin: 10px 0 10px; font-size: 19px; font-weight: 800; color: var(--bv-text, #0b1f3a); }
.asg-s-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 8px; margin: 0 0 14px; }
.asg-s-info div { background: rgba(11,31,58,.05); border-radius: 12px; padding: 8px 11px; }
.asg-s-info dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 800; } .asg-s-info dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
.asg-s-due { font-size: 11px; font-weight: 800; color: #64748b; } .asg-s-due.warn { color: #b45309; } .asg-s-due.bad { color: #b91c1c; }
.asg-s-ins h5, .asg-s-sub h5 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--bv-text, #0b1f3a); }
.asg-s-text { font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; background: rgba(245,180,0,.08); border-left: 4px solid #f5b400; border-radius: 0 12px 12px 0; padding: 11px 14px; }
.asg-s-access { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: linear-gradient(90deg, #f5b400, #ffd24d); color: #0b1f3a; font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: 12px; text-decoration: none; }
.asg-s-access:hover { filter: brightness(1.05); }
.asg-s-sub { margin-top: 14px; padding: 14px; border: 1px dashed #94a3b8; border-radius: 14px; }
.asg-s-sub.done { border-style: solid; border-color: #a7f3d0; background: rgba(16,185,129,.07); }
.asg-s-form label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.asg-s-row { display: flex; gap: 8px; flex-wrap: wrap; }
.asg-s-row input { flex: 1 1 260px; min-width: 0; border: 1px solid #94a3b8; border-radius: 12px; padding: 10px 13px; font-size: 14px; background: var(--bv-surface, #fff); color: var(--bv-text, #0f172a); user-select: text; }
.asg-s-row input:focus { outline: 2px solid #f5b400; border-color: #f5b400; }
.asg-s-btn { background: #0b1f3a; color: #f5b400; border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 800; font-size: 13px; cursor: pointer; }
.asg-s-btn:hover { background: #12305a; } .asg-s-btn:disabled { opacity: .6; cursor: wait; } .asg-s-btn.ghost { background: transparent; color: inherit; border: 1px solid #94a3b8; margin-top: 8px; } .asg-s-row .asg-s-btn.ghost { margin-top: 0; }
.asg-s-msg { display: block; min-height: 16px; margin-top: 6px; font-size: 12px; font-weight: 700; } .asg-s-msg.bad { color: #b91c1c; }
.asg-s-ok { margin: 0 0 8px; font-weight: 800; color: #047857; font-size: 13.5px; }
.asg-s-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; margin-bottom: 8px; }
.asg-s-meta span { font-size: 12.5px; font-weight: 700; word-break: break-all; } .asg-s-meta small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.asg-s-meta a { color: #1d4ed8; text-decoration: underline; }
.asg-s-late { background: #ffedd5; color: #9a3412; font-style: normal; font-size: 10px; font-weight: 900; padding: 1px 7px; border-radius: 99px; }
.asg-s-result { margin: 8px 0 10px; padding: 11px 13px; border-radius: 12px; font-size: 13px; } .asg-s-result.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; } .asg-s-result.fix { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.asg-s-result p { margin: 6px 0 0; white-space: pre-wrap; color: #1e293b; font-size: 12.5px; }
.asg-s-score { margin-top: 4px; font-size: 14px; } .asg-s-score strong { font-size: 24px; } .asg-s-score span { margin-left: 8px; font-weight: 800; }
.asg-s-lock { color: #64748b; font-size: 12px; font-weight: 600; }
@media (max-width: 560px) { .asg-s-card { padding: 14px; } .asg-s-row .asg-s-btn { flex: 1 1 100%; } }
