/* Qnote Academy Hub: application form, staff portal and learner portal. Uses the Qnote theme tokens, with fallbacks. */
.qnh { --q-ink: var(--ink, #0B0F1E); --q-text: var(--text, #1A2036); --q-muted: var(--muted, #5B6480); --q-line: var(--line, #E3E6F0); --q-paper: var(--paper, #F6F7FB); --q-blue: var(--blue, #2463EB); --q-violet: var(--violet, #8B2FC9); --q-cyan: var(--cyan, #1CC8E8); --q-grad: var(--grad, linear-gradient(115deg, #1CC8E8, #2463EB 52%, #8B2FC9)); --q-r: 16px; color: var(--q-text); font-size: 16px; }
.qnh *, .qnh *::before, .qnh *::after { box-sizing: border-box; }
.qnh h1, .qnh h2, .qnh h3, .qnh h4 { color: var(--q-ink); }
.qnh .btn { padding: 10px 18px; font-size: .9rem; }
.qnh .btn-ghost { background: #fff; border-color: var(--q-line); color: var(--q-ink); }
.qnh .btn-ghost:hover { background: var(--q-paper); color: var(--q-ink); border-color: var(--q-ink); }
.qnh-muted { color: var(--q-muted); }
.qnh-small { font-size: .88rem; color: var(--q-muted); }
.qnh-pre { white-space: pre-wrap; }
.qnh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Messages */
.qnh-msg { padding: 14px 16px; border-radius: 12px; margin: 0 0 18px; background: #EEF3FF; border: 1px solid #CFDBFB; color: #1C3A86; }
.qnh-msg.ok { background: #E7F8EF; color: #11613A; border-color: #B9E8CF; }
.qnh-msg.err { background: #FDECEC; color: #8A1C1C; border-color: #F4C2C2; }
.qnh-msg input { width: 100%; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--q-line); border-radius: 8px; font: inherit; font-size: .85rem; }

/* Forms */
.qnh-form fieldset, .qnh form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.qnh legend { font-family: var(--head, inherit); font-weight: 700; font-size: 1.15rem; color: var(--q-ink); margin-bottom: 12px; padding: 0; }
.qnh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.qnh-f.full, .qnh-grid .full { grid-column: 1 / -1; }
.qnh-f label, .qnh-f .lbl { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.qnh-f small, .qnh-f label small { font-weight: 400; color: var(--q-muted); }
.qnh input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]), .qnh select, .qnh textarea { width: 100%; font: inherit; font-size: .97rem; padding: 10px 12px; border: 1.5px solid var(--q-line); border-radius: 10px; background: var(--q-paper); color: var(--q-text); }
.qnh input:focus, .qnh select:focus, .qnh textarea:focus { outline: none; border-color: var(--q-blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 99, 235, .12); }
.qnh input[type=file] { font-size: .88rem; max-width: 100%; }
.qnh-radio { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.qnh-radio .lbl { width: 100%; }
.qnh-radio label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.qnh-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .92rem; }
.qnh-check input { margin-top: 4px; flex: none; }
.qnh textarea { min-height: 70px; }
.qnh form textarea + .btn, .qnh form textarea + button { margin-top: 8px; }
.qnh-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qnh-inline select { width: auto; flex: 1 1 200px; }
.qnh-if-disab { display: none; }
.qnh-disab-on .qnh-if-disab { display: block; }

/* Multi-step application */
.qnh-stepper { display: none; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; gap: 6px; }
.qnh-js .qnh-stepper { display: flex; }
.qnh-stepper li { flex: 1; font-size: .78rem; font-weight: 600; color: var(--q-muted); text-align: center; position: relative; padding-top: 34px; counter-increment: s; }
.qnh-stepper li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--q-paper); border: 2px solid var(--q-line); display: grid; place-items: center; font-size: .8rem; color: var(--q-muted); }
.qnh-stepper li.on { color: var(--q-ink); }
.qnh-stepper li.on::before, .qnh-stepper li.done::before { background: var(--q-grad); color: #fff; border-color: transparent; }
.qnh-js [data-qnh-steps] .qnh-step { display: none; }
.qnh-js [data-qnh-steps] .qnh-step.on { display: block; animation: qnhIn .25s ease; }
@keyframes qnhIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qnh-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.qnh-nav .qnh-submit { margin-left: auto; }
.qnh-field-err { border-color: #D33 !important; }

/* App shell */
.qnh-app { margin: 0 auto; }
.qnh-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.qnh-top h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.qnh-kick { font-family: var(--head, inherit); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--q-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qnh-who { font-size: .9rem; color: var(--q-muted); }
.qnh-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--q-line); margin-bottom: 22px; scrollbar-width: thin; }
.qnh-tabs a { padding: 10px 14px; text-decoration: none; color: var(--q-muted); font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.qnh-tabs a:hover { color: var(--q-ink); }
.qnh-tabs a[aria-current] { color: var(--q-ink); border-bottom-color: var(--q-blue); }
.qnh-tabs i { font-style: normal; background: var(--q-violet); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.qnh-card { background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: clamp(16px, 2.6vw, 26px); margin-bottom: 18px; }
.qnh-card h2 { font-size: 1.3rem; }
.qnh-card h3 { font-size: 1.08rem; margin-bottom: 12px; }
.qnh-card h2 a, .qnh-cohort { color: inherit; text-decoration: none; }
.qnh-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.qnh-head h2 { margin: 0 0 4px; }
.qnh-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.qnh-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
.qnh-cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 18px; }
.qnh-cohort { display: block; transition: box-shadow .15s, transform .15s; }
.qnh-cohort:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -24px rgba(11, 15, 30, .4); }
.qnh-cohort h3 { margin: 10px 0 4px; }
.qnh-cohort p { margin: 0 0 6px; }

/* Tiles and bars */
.qnh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.qnh-tile { display: block; background: #fff; border: 1px solid var(--q-line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--q-text); position: relative; overflow: hidden; }
.qnh-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--q-grad); }
.qnh-tile b { display: block; font-family: var(--head, inherit); font-size: 1.7rem; line-height: 1.1; color: var(--q-ink); }
.qnh-tile span { font-size: .84rem; color: var(--q-muted); }
a.qnh-tile:hover { border-color: var(--q-blue); }
.qnh-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 22px; }
.qnh-bar-top { display: flex; justify-content: space-between; font-size: .9rem; }
.qnh-bar-track { position: relative; height: 10px; background: var(--q-paper); border-radius: 99px; margin: 6px 0 4px; }
.qnh-bar-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--q-grad); border-radius: 99px; }
.qnh-bar-track em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--q-ink); }
.qnh-bar small { font-size: .78rem; color: var(--q-muted); }
.qnh-bar.ok small { color: #11613A; font-weight: 600; }
.qnh-mini { display: inline-block; width: 60px; height: 6px; border-radius: 9px; background: var(--q-paper); vertical-align: middle; overflow: hidden; }
.qnh-mini i { display: block; height: 100%; background: var(--q-grad); }

/* Tables */
.qnh-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.qnh-t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.qnh-t th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--q-muted); padding: 8px 10px; border-bottom: 1px solid var(--q-line); white-space: nowrap; }
.qnh-t td { padding: 10px; border-bottom: 1px solid var(--q-line); vertical-align: top; }
.qnh-t tr:hover td { background: #FAFBFE; }
.qnh-t td input, .qnh-t td select { min-width: 110px; padding: 6px 8px !important; font-size: .88rem !important; }
.qnh-t td form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qnh-t td form input { min-width: 140px; flex: 1; }
.qnh-grid-t td, .qnh-grid-t th { text-align: center; padding: 6px 4px; }
.qnh-grid-t td:first-child, .qnh-grid-t th:first-child { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #fff; }
.qnh-pc { min-width: 62px !important; text-align: center; font-weight: 700; }
.qnh-pc.s-competent { background: #E7F8EF !important; color: #11613A; }
.qnh-pc.s-nyc { background: #FDECEC !important; color: #8A1C1C; }
.qnh-pc.s-in_progress { background: #EEF3FF !important; color: #1C3A86; }
.qnh-register td { white-space: nowrap; }
.qnh-rad { cursor: pointer; }
.qnh-rad input { position: absolute; opacity: 0; }
.qnh-rad span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--q-line); font-weight: 700; color: var(--q-muted); }
.qnh-rad input:checked + span { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.qnh-rad input[value=A]:checked + span { background: #C62828; border-color: #C62828; }
.qnh-rad input[value=L]:checked + span { background: #E08A00; border-color: #E08A00; }
.qnh-rad input[value=E]:checked + span { background: #5B6480; border-color: #5B6480; }
.qnh-rad input[value=P]:checked + span { background: #11804A; border-color: #11804A; }
.qnh-rad input:focus-visible + span { outline: 3px solid var(--q-cyan); outline-offset: 2px; }

/* Badges */
.qnh-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: var(--q-paper); color: var(--q-muted); white-space: nowrap; }
.qnh-badge.s-new { background: #EEF3FF; color: #1C3A86; }
.qnh-badge.s-test_booked, .qnh-badge.s-interview, .qnh-badge.s-screening { background: #FFF5E0; color: #7A4B00; }
.qnh-badge.s-shortlisted, .qnh-badge.s-in_progress, .qnh-badge.s-pending, .qnh-badge.s-planned { background: #F3E8FB; color: #5E1A8C; }
.qnh-badge.s-accepted, .qnh-badge.s-enrolled, .qnh-badge.s-competent, .qnh-badge.s-approved, .qnh-badge.s-active, .qnh-badge.s-aP { background: #E7F8EF; color: #11613A; }
.qnh-badge.s-declined, .qnh-badge.s-withdrawn, .qnh-badge.s-nyc, .qnh-badge.s-rejected, .qnh-badge.s-aA { background: #FDECEC; color: #8A1C1C; }
.qnh-badge.s-aL { background: #FFF5E0; color: #7A4B00; }
.qnh-badge.s-dis { background: #E6F8FC; color: #0B5D70; }

/* Misc */
.qnh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.qnh-chips a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--q-line); background: #fff; text-decoration: none; color: var(--q-text); font-size: .85rem; font-weight: 600; }
.qnh-chips a.on { background: var(--q-ink); color: #fff; border-color: var(--q-ink); }
.qnh-chips i { font-style: normal; opacity: .65; margin-left: 2px; }
.qnh-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.qnh-filter input, .qnh-filter select { width: auto !important; flex: 1 1 160px; }
.qnh-filter input[name=q] { flex: 2 1 240px; }
.qnh-dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: .93rem; }
.qnh-dl dt { color: var(--q-muted); }
.qnh-dl dd { margin: 0; overflow-wrap: anywhere; }
.qnh-files { list-style: none; padding: 0; margin: 0 0 12px; }
.qnh-files li { padding: 8px 0; border-bottom: 1px dashed var(--q-line); }
.qnh-files li::before { content: "\1F4C4"; margin-right: 8px; }
.qnh-activity { list-style: none; padding: 0; margin: 12px 0 0; font-size: .9rem; }
.qnh-activity li { padding: 8px 0 8px 14px; border-left: 2px solid var(--q-line); position: relative; }
.qnh-activity li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--q-blue); }
.qnh-activity span { display: block; font-size: .78rem; color: var(--q-muted); }
.qnh-notice { border-bottom: 1px solid var(--q-line); padding-bottom: 12px; margin-bottom: 12px; }
.qnh-notice:last-child { border-bottom: 0; }
.qnh-notice h4 { margin: 0 0 2px; }
.qnh-notice form { margin-top: 8px; }
.qnh-modlist { columns: 2; padding-left: 1.1em; font-size: .92rem; }
.qnh-danger { border-color: #F4C2C2; }
.qnh-pager a, .qnh-pager b { display: inline-block; padding: 4px 10px; }

/* Learner dashboard */
.qnh-hero-card { display: flex; gap: 22px; align-items: center; background: var(--q-ink); color: #fff; border-radius: 20px; padding: clamp(18px, 3vw, 30px); margin-bottom: 18px; position: relative; overflow: hidden; }
.qnh-hero-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: radial-gradient(closest-side, rgba(139, 47, 201, .45), transparent); }
.qnh-hero-card h2 { color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin: 0 0 4px; }
.qnh-hero-card .qnh-muted, .qnh-hero-card .qnh-small { color: #A9B1CC; margin: 0; }
.qnh-ring { --p: 0; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--q-ink) 78%, transparent 79% 100%), conic-gradient(var(--q-cyan), var(--q-blue), var(--q-violet) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.qnh-ring b { font-family: var(--head, inherit); font-size: 1.6rem; line-height: 1; }
.qnh-ring span { font-size: .72rem; color: #A9B1CC; }
.qnh-group { font-size: 1.15rem; margin: 10px 0 12px; }
.qnh-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.qnh-mod { background: #fff; border: 1px solid var(--q-line); border-radius: 14px; padding: 16px; border-top: 4px solid var(--q-line); }
.qnh-mod.s-competent { border-top-color: #11804A; }
.qnh-mod.s-in_progress { border-top-color: var(--q-blue); }
.qnh-mod.s-nyc { border-top-color: #C62828; }
.qnh-mod-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.qnh-mod .code { font-family: var(--head, inherit); font-weight: 700; font-size: .8rem; color: var(--q-muted); }
.qnh-mod h3 { font-size: 1rem; margin: 0 0 6px; }
.qnh-mod p { margin: 0 0 4px; }

/* Login */
.qnh-login { max-width: 460px; margin: 0 auto; }
.qnh-login form p { margin: 0 0 12px; }
.qnh-login label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.qnh-login .login-remember label { display: inline-flex; gap: 8px; font-weight: 500; }
.qnh-login input[type=submit] { background: var(--q-grad); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; font-family: var(--head, inherit); cursor: pointer; width: 100%; }

@media (max-width: 860px) {
	.qnh-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.qnh-grid { grid-template-columns: 1fr; }
	.qnh-dl { grid-template-columns: 1fr; gap: 0; }
	.qnh-dl dd { margin-bottom: 8px; }
	.qnh-stepper li { font-size: 0; }
	.qnh-hero-card { flex-direction: column; text-align: center; }
	.qnh-modlist { columns: 1; }
	.qnh-nav .btn { flex: 1; }
}
@media print {
	.qnh-tabs, .qnh-who, .qnh form, .qnh-btns { display: none !important; }
}
.qnh-login h1 { font-size: 1.7rem; }
.qnh [hidden] { display: none !important; }
.qnh-check { display: block; position: relative; padding-left: 28px; }
.qnh-check input { position: absolute; left: 0; top: 0; margin-top: 4px; }

/* 1.1.0 */
.qnh-why { display: block; margin-top: 5px; font-size: .8rem; color: var(--q-muted); line-height: 1.45; }
.qnh-checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.qnh-checks legend { grid-column: 1 / -1; margin-bottom: 6px; font-size: .88rem; }
.qnh-checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: .93rem; }
.qnh-checks input { margin-top: 4px; }
.qnh-draft { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.qnh-draft button { background: none; border: 0; color: var(--q-blue); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.qnh-t details summary { cursor: pointer; color: var(--q-blue); font-size: .85rem; }
@media (max-width: 640px) { .qnh-checks { grid-template-columns: 1fr; } }
