/* Prometheus Learner Portal
   Brand: navy #0b1f3a, yellow #f5b301, Barlow Semi Condensed headings, Source Sans 3 text.
   Grid: 12 columns, 16px gutter, 1100px column. 9 + 3 and 6 + 6 spans. */

/* ---------- page takeover on /my-elearning/ ---------- */
body.pql-shell .pq-strip, body.pql-shell #masthead, body.pql-shell .thim-ekit__footer,
body.pql-shell .floating-wa-button, body.pql-shell #back-to-top, body.pql-shell #thim-preloading,
body.pql-shell .top_heading, body.pql-shell .page-title, body.pql-shell h1.entry-title,
body.pql-shell .breadcrumbs-wrapper, body.pql-shell #secondary { display: none !important; }
body.pql-shell #wrapper-container, body.pql-shell .content-area, body.pql-shell .container.site-content,
body.pql-shell #main, body.pql-shell .site-main, body.pql-shell article, body.pql-shell .entry-content {
  max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; flex: 0 0 100% !important; background: #fff !important;
}
body.pql-shell { background: #fff !important; }


/* ---------- tokens ----------
   One radius (4px), rules instead of boxes, navy ink, the brand yellow on the one action
   and the "you are here" marks only. */
.pql-app, .pql-solo, body.pql-on.pqx {
  --ink:#0b1f3a; --text:#1c2733; --muted:#5b6573; --faint:#7a838f;
  --rule:#e3e6ea; --rule-2:#cfd4da; --tint:#f5f6f8; --active:#eceff3;
  --go:#f5b301; --go-h:#e2a500; --go-tint:#fff6d6; --pos:#1f7a4a; --r:4px;
  --head:"Barlow Semi Condensed","Arial Narrow",sans-serif; --font:"Source Sans 3",system-ui,sans-serif;
}
.pql-app, .pql-solo { font: 15px/1.5 var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
.pql-app *, .pql-solo * { box-sizing: border-box; }
.pql-app h1, .pql-app h2, .pql-app h3, .pql-solo h1 { font-family: var(--head) !important; font-weight: 600 !important; letter-spacing: 0; line-height: 1.15 !important; color: var(--ink) !important; margin: 0 !important; text-transform: none !important; }
.pql-app p { margin: 0; }
.pql-app a { color: inherit; text-decoration: none; }
.pql-app ul, .pql-app ol { list-style: none; margin: 0; padding: 0; }
.pql-app button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; margin: 0; text-transform: none; letter-spacing: 0; box-shadow: none; min-height: 0; line-height: inherit; }
.pql-app :focus-visible, .pql-solo :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pql-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pql-app .pql-i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pql-st { width: 16px; height: 16px; flex: none; }

/* ---------- shell: sidebar on the page ground, one hairline ---------- */
.pql-app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: #fff; }
.pql-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--rule); padding: 18px 14px 16px; overflow: auto; background: #fff; }
.pql-brand { display: block; padding: 0 6px 14px; }
.pql-brand img { display: block; width: 128px; height: auto; }
.pql-scope { margin: 0 0 14px; padding: 12px 6px 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.pql-scope small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; }
.pql-switch { display: block; width: 100%; margin-top: 8px; height: 32px; border: 1px solid var(--rule-2); border-radius: var(--r); background: #fff; font: 14px var(--font); color: var(--ink); }
.pql-nav a { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 5px 6px; border-radius: var(--r); font-size: 14px; color: var(--muted); line-height: 1.25; }
.pql-nav a:hover { color: var(--ink); background: var(--tint); }
.pql-nav a[aria-current="page"] { background: var(--active); color: var(--ink); font-weight: 600; }
.pql-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.pql-me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; font-size: 13px; line-height: 1.25; color: var(--ink); }
.pql-me small { display: block; color: var(--muted); font-size: 12px; word-break: break-all; }
.pql-av { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; color: var(--muted); }
.pql-top { display: none; }
.pql-main { padding: 30px 40px 72px; min-width: 0; }
.pql-col { max-width: 1160px; }

/* ---------- buttons and links ---------- */
.pql-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px !important; border-radius: var(--r) !important; font: 600 15px var(--font) !important; text-decoration: none !important; white-space: nowrap; border: 0; }
.pql-btn-go { background: var(--go) !important; color: var(--ink) !important; }
.pql-btn-go:hover { background: var(--go-h) !important; }
.pql-btn-dark { background: var(--ink) !important; color: #fff !important; }
.pql-btn-dark:hover { background: #18335a !important; }
.pql-btn-line { border: 1px solid var(--rule-2) !important; background: #fff !important; color: var(--ink) !important; }
.pql-btn-line:hover { border-color: var(--ink) !important; }
.pql-btn-sm { height: 34px; padding: 0 12px !important; font-size: 14px !important; }
.pql-link { font-size: 14px; color: var(--ink) !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: var(--rule-2) !important; }
.pql-link:hover { text-decoration-color: var(--ink) !important; }
.pql-note { font-size: 14px; color: var(--muted); }
.pql-note b { color: var(--ink); }
.pql-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.pql-bar { display: block; height: 3px; background: var(--rule); margin-top: 10px; }
.pql-bar i { display: block; height: 100%; background: var(--ink); }

/* ---------- title row ---------- */
.pql-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; }
.pql-head h1 { font-size: 28px !important; max-width: 36ch; }
.pql-head p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.pql-head p b { color: var(--ink); font-weight: 600; }
.pql-head p span { color: var(--faint); }
.pql-head .pql-btn { flex: none; }

/* ---------- the facts strip: one ruled record, no tiles ---------- */
.pql-facts { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.pql-facts > div { padding: 12px 16px 14px; border-left: 1px solid var(--rule); min-width: 0; }
.pql-facts > div:first-child { border-left: 0; padding-left: 0; }
.pql-facts dt { font-size: 13px; color: var(--muted); }
.pql-facts dd { margin: 2px 0 0; font: 600 24px/1.2 var(--head); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pql-facts dd small { font: 400 15px var(--font); color: var(--muted); }
.pql-facts dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pql-facts .pql-dim { color: var(--faint); font-weight: 400; }
.pql-fnote { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pql-meter { display: block; height: 3px; background: var(--rule); margin-top: 9px; }
.pql-meter i { display: block; height: 100%; background: var(--ink); }

/* ---------- two columns ---------- */
.pql-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-top: 30px; align-items: start; }
.pql-sec + .pql-sec { margin-top: 30px; }
.pql-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.pql-sh h2 { font-size: 20px !important; }
.pql-sh-r { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pql-sh-r button { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); font-size: 13px !important; }

/* ---------- course record ---------- */
.pql-mods > li { border-bottom: 1px solid var(--rule); }
.pql-mod > button { display: grid !important; grid-template-columns: 36px minmax(0, 1fr) 96px 92px 16px; align-items: center; gap: 12px; width: 100%; padding: 12px 0 !important; text-align: left; background: transparent !important; color: var(--text) !important; font: inherit !important; border-radius: 0 !important; }
.pql-mod > button:hover .t { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.pql-mod .no { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pql-mod .t { font-weight: 600; color: var(--ink); line-height: 1.3; }
.pql-mod .t small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pql-mod .st { font-size: 13px; color: var(--muted); }
.pql-mod.is-now .st { color: var(--ink); font-weight: 600; }
.pql-mod.is-now .st::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--go); margin-right: 7px; vertical-align: 1px; }
.pql-mod.is-done .st { color: var(--pos); }
.pql-mod .n { text-align: right; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pql-mod .n small { font-weight: 400; color: var(--muted); font-size: 13px; }
.pql-mod .n .pql-meter { margin: 6px 0 0 auto; width: 64px; height: 2px; }
.pql-mod.is-done .n .pql-meter i { background: var(--pos); }
.pql-mod .chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; transform: rotate(-90deg); transition: transform .12s; }
.pql-mod[data-open="true"] .chev { transform: none; }
.pql-items { display: none !important; margin: -4px 0 12px 48px !important; border-top: 1px solid var(--rule); }
.pql-mod[data-open="true"] .pql-items { display: block !important; }
.pql-items li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; font-size: 14px; padding: 7px 8px 7px 0; border-bottom: 1px solid #f0f2f4; color: var(--muted); }
.pql-items li:last-child { border-bottom: 0; }
.pql-items .no { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; padding-left: 8px; }
.pql-items .nm { min-width: 0; }
.pql-items li a { color: var(--ink) !important; }
.pql-items li a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.pql-items li.is-now { background: var(--go-tint); }
.pql-items li.is-now a { font-weight: 600; }
.pql-items li.is-lock .nm { color: var(--faint); }
.pql-items .why { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.pql-items li.is-done .why { color: var(--pos); }
.pql-items li.is-now .why { color: var(--ink); font-weight: 600; }

/* ---------- side column ---------- */
.pql-check li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.35; color: var(--ink); }
.pql-check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pql-check .box { width: 14px; height: 14px; margin-top: 2px; border: 1.5px solid #9aa3ae; border-radius: 2px; }
.pql-check li.is-done .box { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--ink); }
.pql-check li.is-done > span:last-child { color: var(--muted); }
.pql-help p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pql-tel { display: block; font: 600 24px var(--head); color: var(--ink); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }

/* ---------- account page ---------- */
.pql-title { padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.pql-title h1 { font-size: 28px !important; }
.pql-title p { color: var(--muted); margin-top: 6px; }
.pql-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; }
.pql-s3 { grid-column: span 3; } .pql-s6 { grid-column: span 6; } .pql-s9 { grid-column: span 9; }
.pql-stack { display: grid; gap: 30px; align-content: start; }
.pql-stack-sm { display: grid; }
.pql-panel { padding: 0; }
.pql-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); }
.pql-panel h2 { font-size: 20px !important; }
.pql-panel > p { margin-top: 12px; }
.pql-cert { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.pql-cert b { font-weight: 600; color: var(--ink); }
.pql-kv { display: grid; grid-template-columns: 110px 1fr; margin: 0; font-size: 15px; }
.pql-kv dt, .pql-kv dd { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.pql-kv dt { color: var(--muted); } .pql-kv dd { color: var(--ink); word-break: break-word; }

/* ---------- logged-out card ---------- */
.pql-solo { max-width: 460px; margin: 64px auto; padding: 28px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.pql-solo-logo { width: 128px; display: block; margin-bottom: 18px; }
.pql-solo h1 { font-size: 26px !important; margin-bottom: 8px !important; }
.pql-solo p { color: var(--muted); margin: 0 0 18px; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1180px) {
  .pql-main { padding: 26px 28px 64px; }
  .pql-cols { grid-template-columns: 1fr; gap: 30px; }
  .pql-side-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .pql-side-col .pql-sec + .pql-sec { margin-top: 0; }
}
@media (max-width: 900px) {
  .pql-app { grid-template-columns: 1fr; }
  .pql-side { display: none; }
  .pql-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; height: 56px; padding: 0 6px 0 12px; background: #fff; border-bottom: 1px solid var(--rule); }
  .pql-top-logo img { display: block; height: 46px; width: auto; }
  .pql-top-t { font: 600 18px var(--head); color: var(--ink); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pql-menu { width: 44px; height: 44px; display: grid !important; place-items: center; border-radius: var(--r); }
  .pql-menu .pql-i { width: 22px; height: 22px; }
  .pql-app.menu-open .pql-side { display: flex; position: fixed; inset: 56px 0 0 0; height: auto; z-index: 49; border: 0; }
  .pql-app.menu-open .pql-brand { display: none; }
  .pql-main { padding: 18px 16px 48px; }
  .pql-head { display: block; }
  .pql-head h1, .pql-title h1 { font-size: 24px !important; }
  .pql-head .pql-btn { width: 100%; margin-top: 14px; }
  .pql-facts { grid-template-columns: 1fr 1fr; }
  .pql-facts > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .pql-facts > div:nth-child(-n+2) { border-top: 0; }
  .pql-facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .pql-facts > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .pql-side-col { display: block; }
  .pql-side-col .pql-sec + .pql-sec { margin-top: 30px; }
  .pql-mod > button { grid-template-columns: 30px minmax(0, 1fr) 56px 16px; gap: 10px; }
  .pql-mod .st { display: none; }
  .pql-mod .n .pql-meter { width: 44px; }
  .pql-items { margin-left: 0 !important; }
  .pql-items .why { display: none; }
  .pql-items li.is-now .why, .pql-items li.is-done .why { display: inline; }
  .pql-grid { grid-template-columns: 1fr; }
  .pql-s3, .pql-s6, .pql-s9 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .pql-app * { transition: none !important; } }


/* =====================================================================
   Course player, in the same system as My learning: white ground, ruled
   sections, one 4px radius, the yellow on the action and "you are here".
   Tokens come from the block at the top (body.pql-on.pqx).
   ===================================================================== */
body.pql-on.pqx { --pqx-head: 60px; --pqx-side: 300px; --pqx-foot: 76px; }
body.pql-on.pqx #popup-course, body.pql-on.pqx #popup-course * { -webkit-font-smoothing: antialiased; }
body.pql-on.pqx #popup-right-sidebar { display: none !important; }
body.pql-on.pqx #popup-header .items-progress, body.pql-on.pqx #popup-header .learn-press-progress,
body.pql-on.pqx #popup-header .course-item-count, body.pql-on .pqx-kbd { display: none !important; }
body.pql-on.pqx #popup-footer .prev a, body.pql-on.pqx #popup-footer .next a { font-size: 0 !important; color: transparent !important; text-indent: -9999px; overflow: hidden; }

/* ---- header: beside the sidebar on a desktop, holding only Full screen ---- */
body.pql-on.pqx #popup-course #popup-header, body.pql-on.pqx #popup-header { background: #fff !important; border-bottom: 0 !important; box-shadow: none !important; color: var(--ink) !important; padding: 0 28px 0 16px !important; }
body.pql-on.pqx #popup-header .curriculum-info, body.pql-on.pqx #popup-header .back-course { display: none !important; }
body.pql-on.pqx #popup-course #popup-header .course-title, body.pql-on.pqx #popup-course #popup-header .course-title a { color: var(--ink) !important; font: 600 18px/1.2 var(--head) !important; letter-spacing: 0; pointer-events: none; cursor: default; }
body.pql-on .pqx-logo { gap: 12px; height: 44px; padding-right: 14px; border-right: 1px solid var(--rule); color: var(--muted) !important; font: 400 14px var(--font); letter-spacing: 0; }
body.pql-on .pqx-logo i { display: none !important; }
body.pql-on .pqx-logo img { display: block; height: 44px; width: auto; }
body.pql-on .pqx-logo:hover span { color: var(--ink); }
body.pql-on .pqx-hprog { color: var(--muted); font: 400 13px var(--font); }
body.pql-on .pqx-hprog .pqx-bar { width: 120px; height: 3px; border-radius: 0; background: var(--rule); }
body.pql-on .pqx-hprog .pqx-bar span { background: var(--ink); border-radius: 0; }
body.pql-on .pqx-hprog .pql-hc { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
body.pql-on .pqx-hbtn { height: 32px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--rule-2); background: #fff; color: var(--ink) !important; font: 600 13px var(--font); }
body.pql-on .pqx-hbtn:hover { border-color: var(--ink); background: #fff; }
@media (min-width: 992px) {
  body.pql-on.pqx:not(.pqx-focus) #popup-course #popup-header { left: var(--pqx-side) !important; width: auto !important; }
  body.pql-on.pqx:not(.pqx-focus) #popup-header .pqx-logo,
  body.pql-on.pqx:not(.pqx-focus) #popup-header .course-title,
  body.pql-on.pqx:not(.pqx-focus) #popup-header .pqx-hprog { visibility: hidden; }
  body.pql-on.pqx:not(.pqx-focus) #popup-sidebar { padding-top: 0 !important; top: 0 !important; }
  body.pql-on .pqx-resume { display: none !important; }
}
body.pql-on.pqx.pqx-focus #popup-course #popup-header { border-bottom: 1px solid var(--rule) !important; }

/* ---- sidebar: the same sidebar as My learning, with the course record in it ---- */
body.pql-on.pqx #popup-sidebar { background: #fff !important; border-right: 1px solid var(--rule) !important; padding-left: 14px !important; padding-right: 14px !important; }
body.pql-on.pqx #popup-sidebar .search-course { display: none !important; }
.pql-sb { padding: 18px 0 0; font: 15px/1.5 var(--font); color: var(--text); }
.pql-sb-brand { display: block; padding: 0 6px 14px; }
.pql-sb-brand img { display: block; width: 128px; height: auto; }
.pql-sb-scope { padding: 12px 6px 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.pql-sb-scope small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pql-sb-scope .pql-sb-bar { display: block; height: 3px; background: var(--rule); margin-top: 9px; }
.pql-sb-scope .pql-sb-bar i { display: block; height: 100%; background: var(--ink); }
.pql-sb-nav { padding: 10px 0; }
.pql-sb-nav a { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 5px 6px; border-radius: var(--r); font-size: 14px; color: var(--muted) !important; line-height: 1.25; text-decoration: none !important; }
.pql-sb-nav a:hover { background: var(--tint); color: var(--ink) !important; }
.pql-sb-nav svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pql-sb-h { margin: 6px 0 0; padding: 0 6px 8px; font: 600 17px var(--head); color: var(--ink); border-bottom: 1px solid var(--ink); }
@media (max-width: 991px) { .pql-sb { display: none; } }
body.pql-on.pqx.pqx-focus .pql-sb-brand, body.pql-on.pqx.pqx-focus .pql-sb-nav { display: none; }

body.pql-on.pqx #popup-sidebar .course-section { border: 0 !important; border-bottom: 1px solid var(--rule) !important; margin: 0 !important; border-radius: 0 !important; }
body.pql-on.pqx #popup-sidebar .course-section-header { padding: 10px 6px !important; gap: 8px; border-radius: 0; align-items: center !important; }
body.pql-on.pqx #popup-sidebar .course-section-header:hover .course-section__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
body.pql-on.pqx #popup-sidebar .course-section-header::before { display: none !important; content: none !important; }
body.pql-on.pqx #popup-sidebar .course-section-info { display: block !important; flex: 1 1 auto; min-width: 0; }
body.pql-on.pqx #popup-sidebar .course-section__title { font: 600 14px/1.3 var(--font) !important; color: var(--ink) !important; letter-spacing: 0 !important; }
body.pql-on.pqx #popup-sidebar .course-section-info::after { font: 400 12.5px var(--font); color: var(--muted); margin-top: 2px; }
body.pql-on.pqx #popup-sidebar .course-section-header.pqx-full .course-section-info::after { color: var(--pos); }
body.pql-on.pqx #popup-sidebar .course-section-header .section-toggle { padding-top: 0; color: var(--muted); }
body.pql-on.pqx #popup-sidebar .course-section__items { padding: 0 0 8px !important; }
body.pql-on.pqx #popup-sidebar .course-item { border: 0 !important; border-radius: 0; margin: 0 !important; }
body.pql-on.pqx #popup-sidebar .course-item:hover { background: var(--tint) !important; }
body.pql-on.pqx #popup-sidebar .course-item.pqx-cur { background: var(--go-tint) !important; }
body.pql-on.pqx #popup-sidebar .course-item__link { padding: 6px 6px 6px 6px !important; gap: 9px; align-items: flex-start !important; }
body.pql-on.pqx #popup-sidebar .course-item-title { font: 400 13.5px/1.35 var(--font) !important; color: var(--ink) !important; }
body.pql-on.pqx #popup-sidebar .pqx-cur .course-item-title { font-weight: 600 !important; }
body.pql-on.pqx #popup-sidebar .pqx-lock .course-item-title { color: var(--faint) !important; }
body.pql-on .pql-num { display: inline-block; min-width: 30px; font: 400 12.5px var(--font); color: var(--faint); font-variant-numeric: tabular-nums; }
body.pql-on .pqx-ic { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 2px; border-radius: 2px; border-width: 1.5px; border-color: #9aa3ae; font-size: 9px; }
body.pql-on.pqx .pqx-done .pqx-ic { background: var(--ink); border-color: var(--ink); color: #fff; }
body.pql-on.pqx .pqx-cur .pqx-ic { background: var(--go); border-color: var(--go); }
body.pql-on.pqx .pqx-cur .pqx-ic::before { content: ""; }
body.pql-on .pqx-tag { border-radius: 2px; padding: 0 5px; font: 600 11px var(--font); letter-spacing: 0; text-transform: none; background: var(--active); color: var(--muted); }

/* ---- lesson ---- */
body.pql-on.pqx #popup-content { background: #fff !important; }
body.pql-on.pqx #popup-content .content-item-wrap { max-width: 1180px !important; padding: 22px 40px 96px !important; display: grid !important; grid-template-columns: minmax(0, 1fr) 260px; gap: 0 36px; align-items: start; }
body.pql-on.pqx #popup-content .content-item-summary { grid-column: 1; grid-row: 1; min-width: 0; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.pql-on .pqx-crumb { font: 400 13px var(--font); color: var(--muted); margin: 0 0 6px; }
body.pql-on .pqx-crumb b { color: var(--muted); font-weight: 400; }
body.pql-on.pqx #popup-content .lesson-title, body.pql-on.pqx #popup-content .quiz-title { font: 600 28px/1.15 var(--head) !important; letter-spacing: 0; color: var(--ink) !important; margin: 0 0 6px !important; text-align: left !important; text-transform: none !important; }
body.pql-on .pqx-meta { font: 400 14px var(--font); color: var(--muted); border: 0; padding: 0 0 14px; margin: 0 0 18px; gap: 4px 0; border-bottom: 2px solid var(--ink); }
body.pql-on .pqx-meta span + span::before { content: "\00B7"; margin: 0 9px; color: var(--faint); }
body.pql-on.pqx #popup-content .lesson-title:last-of-type { padding-bottom: 0; }
body.pql-on.pqx #popup-content .content-item-description { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; box-sizing: border-box; font-family: var(--font); }
body.pql-on.pqx #popup-content .content-item-description.pql-flush { padding: 0; overflow: hidden; }
body.pql-on.pqx #popup-content .content-item-description.pql-flush iframe { display: block; border: 0 !important; border-radius: 0 !important; width: 100% !important; margin: 0 !important; }
body.pql-on.pqx #popup-content .content-item-description.pql-flush > p { margin: 0 !important; }
body.pql-on.pqx #popup-content .content-item-description.pql-flush .pq-elearn { width: 100% !important; max-width: 100% !important; margin: 0 !important; left: 0 !important; transform: none !important; }
/* the lesson frame fits the window, so the lesson's own Next button is always in view */
body.pql-on.pqx #popup-content .content-item-description.pql-flush iframe { height: calc(100vh - 250px) !important; min-height: 480px !important; max-height: none !important; }
body.pql-on.pqx.pqx-focus #popup-content .content-item-description.pql-flush iframe { height: calc(100vh - 210px) !important; }
@media (max-width: 991px) {
  body.pql-on.pqx #popup-content .content-item-description.pql-flush iframe { height: calc(100vh - 230px) !important; height: calc(100dvh - 230px) !important; min-height: 420px !important; }
}
body.pql-on.pqx #popup-content .content-item-description .pq-elearn { margin: 0; border: 0; border-radius: 0; }

.pql-rail { grid-column: 2; grid-row: 1; position: sticky; top: 0; display: grid; gap: 30px; margin-top: 74px; font: 15px/1.5 var(--font); color: var(--text); }
.pql-rcard { background: none; border: 0; padding: 0; }
.pql-rcard h2 { font: 600 18px/1.15 var(--head) !important; letter-spacing: 0; color: var(--ink) !important; margin: 0 0 10px !important; padding-bottom: 8px; border-bottom: 1px solid var(--ink); text-transform: none !important; }
.pql-rcard p { margin: 0 !important; font-size: 14px !important; color: var(--muted); }
.pql-rcard .pql-rtel { display: block; font: 600 24px var(--head); color: var(--ink) !important; text-decoration: none !important; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.pql-rcard .pql-rlink { font-size: 14px; color: var(--ink) !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: var(--rule-2) !important; }
.pql-rcard .pql-rlink:hover { text-decoration-color: var(--ink) !important; }
.pql-rcard .pql-rbtn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; margin-top: 12px; border-radius: var(--r); background: var(--ink); color: #fff !important; font: 600 14px var(--font); text-decoration: none !important; }
.pql-rcard .pql-rbtn:hover { background: #18335a; }

/* ---- bottom bar ---- */
body.pql-on.pqx #popup-footer { background: #fff !important; border-top: 1px solid var(--rule) !important; box-shadow: none !important; }
body.pql-on.pqx #popup-footer .prev, body.pql-on.pqx #popup-footer .next { height: 48px; border-radius: var(--r); padding: 0 14px !important; }
body.pql-on.pqx #popup-footer .course-item-nav__name { font: 600 14px/1.3 var(--font) !important; }
body.pql-on.pqx #popup-footer .course-item-nav .prev::before, body.pql-on.pqx #popup-footer .course-item-nav .next::before { font: 400 12.5px var(--font) !important; }
body.pql-on.pqx #popup-footer .prev { flex-basis: 240px; background: #fff !important; border: 1px solid var(--rule-2) !important; }
body.pql-on.pqx #popup-footer .prev:hover { border-color: var(--ink) !important; }
body.pql-on.pqx #popup-footer .course-item-nav .prev::before { content: "\2190  Back"; color: var(--muted); }
/* Next stays grey until this section is done, so it never flashes navy while the page loads */
body.pql-on.pqx #popup-footer .next, body.pql-on.pqx #popup-footer .next.pqx-gated { flex-basis: 280px; opacity: 1 !important; background: var(--active) !important; border: 1px solid var(--active) !important; }
body.pql-on.pqx #popup-footer .course-item-nav .next::before { color: var(--muted) !important; content: "Next, once this section is done" !important; }
body.pql-on.pqx #popup-footer .next .course-item-nav__name { color: var(--muted) !important; }
body.pql-on.pqx #popup-footer .next.pql-next-open:not(.pqx-gated) { background: var(--ink) !important; border-color: var(--ink) !important; }
body.pql-on.pqx #popup-footer .course-item-nav .next.pql-next-open:not(.pqx-gated)::before { color: #c9d4e8 !important; content: "Next  \2192" !important; }
body.pql-on.pqx #popup-footer .next.pql-next-open:not(.pqx-gated) .course-item-nav__name { color: #fff !important; }
body.pql-on.pqx #popup-footer .next.pql-next-open:not(.pqx-gated):hover { background: #18335a !important; }
body.pql-on .pqx-complete { height: 40px; padding: 0 18px; border-radius: var(--r); background: var(--go); color: var(--ink); font: 600 15px var(--font); }
body.pql-on .pqx-complete:hover { background: var(--go-h); }
body.pql-on .pqx-completed { height: 40px; border-radius: var(--r); background: #e3f1e9; color: #12452a; font: 600 14px var(--font); }
.pql-wait { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 4px; background: #f5f6f8; color: #0b1f3a; font: 600 14px "Source Sans 3", sans-serif; text-align: center; line-height: 1.3; }
.pql-wait.is-done { background: #e3f1e9; color: #12452a; }

/* ---- full screen: the lesson takes the whole width ---- */
body.pql-on.pqx.pqx-focus #popup-content .content-item-wrap { display: block !important; max-width: 1100px !important; }
body.pql-on.pqx.pqx-focus .pql-rail { display: none !important; }

/* ---- smaller screens ---- */
@media (max-width: 1240px) {
  body.pql-on.pqx #popup-content .content-item-wrap { display: block !important; max-width: 880px !important; padding: 22px 28px 96px !important; }
  .pql-rail { position: static; margin-top: 30px; grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 991px) {
  body.pql-on.pqx { --pqx-head: 56px; --pqx-foot: 68px; }
  body.pql-on.pqx #popup-course #popup-header { border-bottom: 1px solid var(--rule) !important; padding: 0 8px 0 12px !important; }
  body.pql-on .pqx-logo { padding-right: 0; border: 0; height: 46px; }
  body.pql-on .pqx-logo img { height: 46px; }
  body.pql-on .pqx-logo span { display: none !important; }
  body.pql-on.pqx #popup-course #popup-header .course-title, body.pql-on.pqx #popup-course #popup-header .course-title a { font-size: 16px !important; }
  body.pql-on .pqx-hprog .pqx-bar { width: 44px; }
  body.pql-on .pqx-outline-btn { border-radius: var(--r); }
  body.pql-on.pqx #popup-content .content-item-wrap { padding: 18px 16px 48px !important; }
  body.pql-on.pqx #popup-content .lesson-title { font-size: 24px !important; }
  body.pql-on.pqx #popup-content .content-item-description { padding: 14px; }
  body.pql-on.pqx #popup-content .content-item-description.pql-flush { padding: 0; }
  .pql-rail { grid-template-columns: 1fr; gap: 30px; }
  body.pql-on.pqx #popup-footer .prev, body.pql-on.pqx #popup-footer .next { flex: 0 0 44px !important; width: 44px !important; height: 44px; padding: 0 !important; }
  body.pql-on.pqx #popup-footer .course-item-nav .prev::before { content: "\2190"; font-size: 20px !important; color: var(--ink); }
  body.pql-on.pqx #popup-footer .course-item-nav .next::before, body.pql-on.pqx #popup-footer .course-item-nav .next.pql-next-open:not(.pqx-gated)::before { content: "\2192" !important; font-size: 20px !important; }
  body.pql-on.pqx #popup-footer .course-item-nav .next.pql-next-open:not(.pqx-gated)::before { color: #fff !important; }
  body.pql-on .pqx-complete { width: 100%; }
  .pql-wait { width: 100%; justify-content: center; font-size: 13px; }
  /* the pull-up outline sheet */
  body.pql-on .pqx-resume { margin: 14px 14px 10px; background: #fff; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 4px 0 14px; }
  body.pql-on .pqx-resume .pqx-big { font: 600 22px var(--head); }
  body.pql-on .pqx-resume .pqx-bar { height: 3px; border-radius: 0; }
  body.pql-on .pqx-resume .pqx-bar span { background: var(--ink); border-radius: 0; }
}

body.pql-on:not(.pql-can-finish) .form-button-finish-course, body.pql-on:not(.pql-can-finish) .btn-finish-course { display: none !important; }
