/*
 * Academy courses (lane COURSES): catalogue, course page and learner courses.
 * Nexus Foundry kit tokens (--nx-*) with fallbacks, so the screens hold on any theme; light and dark follow the kit
 * (dark by default, R-010). Neutral surfaces; the pastel gradient only on lines, progress and icons in emphasis.
 * Approved reference: docs/integrations/wordpress/app/approved-design/. Gate: app/DESIGN_GATE.md.
 */
.nxc {
  --c-bg: var(--nx-bg-canvas, #fff);
  --c-surf: var(--nx-bg-surface, #fff);
  --c-muted: var(--nx-bg-muted, #f4f4f5);
  --c-hover: var(--nx-bg-hover, #ededed);
  --c-fg: var(--nx-text-primary, #000);
  --c-fg2: var(--nx-text-secondary, #262626);
  --c-fg3: var(--nx-text-muted, #525252);
  --c-line: var(--nx-border-hairline, rgba(0, 0, 0, .1));
  --c-line2: var(--nx-border-hairline-strong, rgba(0, 0, 0, .2));
  --c-pos: var(--nx-positive, #1e7e46);
  --c-cau: var(--nx-caution, #b45309);
  --c-crit: var(--nx-critical, #c62828);
  --c-info: var(--nx-info, #0b7285);
  --c-btn: var(--nx-primary-bg, #000);
  --c-btn-ink: var(--nx-primary-ink, #fff);
  --c-btn-hover: var(--nx-primary-hover, #262626);
  --c-focus: var(--nx-focus, #2563eb);
  --c-radius: var(--nx-radius, 5px);
  --c-radius-s: var(--nx-radius-chip, 4px);
  --c-sans: var(--nx-font-sans, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --c-mono: var(--nx-font-mono, "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  --g1: #8b5cf6;
  --g2: #3b82f6;
  --g3: #10b981;
  --g4: #f97316;
  --c-grad: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  --c-gutter: clamp(16px, 3vw, 48px);
  --c-dock: 72px;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--c-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] .nxc,
:root[data-nx-default="dark"]:not([data-theme]) .nxc,
:root:not([data-theme]):not([data-nx-default]) .nxc {
  --g1: #c4b5fd;
  --g2: #93c5fd;
  --g3: #86efac;
  --g4: #fdba74;
  --c-bg: var(--nx-bg-canvas, #000);
  --c-surf: var(--nx-bg-surface, #0a0a0a);
  --c-muted: var(--nx-bg-muted, #141414);
  --c-hover: var(--nx-bg-hover, #1a1a1a);
  --c-fg: var(--nx-text-primary, #fff);
  --c-fg2: var(--nx-text-secondary, #d4d4d4);
  --c-fg3: var(--nx-text-muted, #a3a3a3);
  --c-line: var(--nx-border-hairline, rgba(255, 255, 255, .1));
  --c-line2: var(--nx-border-hairline-strong, rgba(255, 255, 255, .2));
  --c-pos: var(--nx-positive, #81c995);
  --c-cau: var(--nx-caution, #fdd663);
  --c-crit: var(--nx-critical, #f28b82);
  --c-info: var(--nx-info, #78d9ec);
  --c-btn: var(--nx-primary-bg, #fff);
  --c-btn-ink: var(--nx-primary-ink, #000);
  --c-btn-hover: var(--nx-primary-hover, #e5e5e5);
  --c-focus: var(--nx-focus, #93c5fd);
}
.nxc *, .nxc *::before, .nxc *::after { box-sizing: border-box; }
.nxc-pad { padding: 32px var(--c-gutter) calc(64px + var(--c-dock)); }
.nxc p, .nxc ul, .nxc ol, .nxc dl, .nxc dd, .nxc h1, .nxc h2, .nxc h3, .nxc figure { margin: 0; padding: 0; }
.nxc h1, .nxc h2, .nxc h3 { color: var(--c-fg); font-family: var(--c-sans); text-transform: none; letter-spacing: normal; }
.nxc a { color: inherit; text-decoration: none; }
.nxc a:hover { color: inherit; }
.nxc :focus { outline: none; }
.nxc :focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 3px; }
.nxc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nxc [hidden] { display: none !important; }
.nxc-ic { flex: none; display: inline-block; vertical-align: middle; }
.nxc-muted { color: var(--c-fg3); }
.nxc-num { font-family: var(--c-mono); font-variant-numeric: tabular-nums; }
.nxc-eyebrow { font-family: var(--c-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--c-fg3); }
.nxc-meta { font-family: var(--c-mono); font-size: 12px; line-height: 1.5; color: var(--c-fg3); }
.nxc-sep { margin: 0 8px; color: var(--c-line2); }

/* Buttons: one primary (solid), secondary and ghost quiet; square kit radius, never round. */
.nxc .nxc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; height: auto; padding: 0 14px; margin: 0;
  border: 1px solid transparent; border-radius: var(--c-radius-s);
  background: transparent; color: var(--c-fg); box-shadow: none;
  font: 500 14px/1.2 var(--c-sans); letter-spacing: normal; text-transform: none; white-space: nowrap;
  cursor: pointer; text-decoration: none; transition: background-color .12s, border-color .12s, color .12s;
}
.nxc .nxc-btn[data-variant="primary"] { background: var(--c-btn); color: var(--c-btn-ink); border-color: var(--c-btn); }
.nxc .nxc-btn[data-variant="primary"]:hover { background: var(--c-btn-hover); border-color: var(--c-btn-hover); color: var(--c-btn-ink); }
.nxc .nxc-btn[data-variant="secondary"] { border-color: var(--c-line2); }
.nxc .nxc-btn[data-variant="secondary"]:hover, .nxc .nxc-btn[data-variant="ghost"]:hover { background: var(--c-hover); }
.nxc .nxc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: var(--c-radius-s); background: transparent; color: var(--c-fg); box-shadow: none; cursor: pointer; }
.nxc .nxc-icon-btn:hover { background: var(--c-hover); }

/* Badge: dot and word. */
.nxc-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--c-line2); border-radius: var(--c-radius-s); font: 500 10.5px/1 var(--c-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-fg2); white-space: nowrap; }
.nxc-dot { width: 6px; height: 6px; border-radius: 2px; background: var(--c-fg3); flex: none; }
.nxc-badge[data-tone="positive"] .nxc-dot { background: var(--c-pos); }
.nxc-badge[data-tone="info"] .nxc-dot { background: var(--g2); }
.nxc-badge[data-tone="caution"] .nxc-dot { background: var(--c-cau); }
.nxc-badge[data-tone="critical"] .nxc-dot { background: var(--c-crit); }

/* Progress: hairline track, gradient fill. */
.nxc-progress { position: relative; height: 4px; border-radius: 2px; background: var(--c-muted); overflow: hidden; }
.nxc-progress > span { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--c-grad); }
.nxc-progress--lg { height: 6px; }

/* Page header: eyebrow, title, purpose, one primary action on the right. */
.nxc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-bottom: 24px; border-bottom: 1px solid var(--c-line); position: relative; }
.nxc-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 96px; height: 2px; background: var(--c-grad); }
.nxc-head__text { min-width: 0; max-width: 84ch; }
.nxc-head__title { margin: 8px 0 6px !important; font-size: clamp(26px, 1.4vw + 18px, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.015em !important; }
.nxc-head__purpose { color: var(--c-fg2); font-size: 15.5px; max-width: 72ch; }
.nxc-head__meta { margin-top: 12px !important; font-family: var(--c-mono); font-size: 12.5px; color: var(--c-fg3); display: flex; flex-wrap: wrap; align-items: center; }
.nxc-head__action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.nxc-head__action > form, .nxc-head__action > a { display: inline-flex; gap: 8px; }
.nxc-head__note { font-size: 12.5px; color: var(--c-fg3); max-width: 34ch; text-align: right; }
.nxc-enrol { margin: 0; }

/* Toolbar: one row; filters collapse into a sheet below 1180 px. */
.nxc-toolbar { display: flex; align-items: center; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--c-line); flex-wrap: nowrap; min-width: 0; }
.nxc-search { position: relative; display: flex; align-items: center; flex: 1 1 220px; min-width: 180px; max-width: 360px; margin: 0; }
.nxc-filters .nxc-field, .nxc-sort { flex: none; }
.nxc-search .nxc-ic { position: absolute; left: 12px; color: var(--c-fg3); pointer-events: none; }
.nxc .nxc-search input {
  width: 100%; height: 38px; margin: 0; padding: 0 12px 0 36px; border: 1px solid var(--c-line2); border-radius: var(--c-radius-s);
  background: var(--c-surf); color: var(--c-fg); font: 400 14px var(--c-sans); box-shadow: none;
}
.nxc .nxc-search input::placeholder { color: var(--c-fg3); opacity: 1; }
.nxc-filters { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.nxc-field { display: inline-flex; flex-direction: column; gap: 0; margin: 0; position: relative; min-width: 0; }
.nxc-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nxc .nxc-field select {
  height: 38px; margin: 0; padding: 0 30px 0 10px; max-width: 168px; min-width: 0; border: 1px solid var(--c-line2); border-radius: var(--c-radius-s);
  background-color: var(--c-surf); color: var(--c-fg); font: 400 13.5px var(--c-sans); box-shadow: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.nxc .nxc-field select:hover { border-color: var(--c-fg3); }
.nxc .nxc-field select[data-active="true"] { border-color: var(--c-fg); }
.nxc-sheet__head, .nxc-sheet__foot { display: none; }
.nxc-filters-open { display: none !important; }
.nxc-count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 3px; background: var(--c-fg); color: var(--c-bg); font: 600 11px var(--c-mono); }
.nxc-sort { margin-left: auto; }
.nxc-result-count { font-family: var(--c-mono); font-size: 12.5px; color: var(--c-fg3); white-space: nowrap; padding: 0 4px; }
.nxc-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--c-line2); border-radius: var(--c-radius); flex: none; }
.nxc .nxc-seg__btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--c-fg3); box-shadow: none; cursor: pointer; }
.nxc .nxc-seg__btn[aria-pressed="true"] { background: var(--c-muted); color: var(--c-fg); }
.nxc .nxc-seg__btn:hover { color: var(--c-fg); }

@media (max-width: 1179px) {
  .nxc-filters-open { display: inline-flex !important; }
  .nxc-filters { display: none; }
  .nxc-filters[data-open="true"] {
    display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    position: fixed; z-index: 100000; inset: auto 0 0 0; max-height: 86vh; overflow: auto;
    padding: 16px var(--c-gutter) 24px; background: var(--c-surf); border-top: 1px solid var(--c-line2);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
  }
  .nxc-filters[data-open="true"] .nxc-sheet__head { display: flex; align-items: center; justify-content: space-between; }
  .nxc-filters[data-open="true"] .nxc-sheet__foot { display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--c-line); }
  .nxc-filters[data-open="true"] .nxc-field__label { position: static; width: auto; height: auto; clip: auto; font-size: 12px; font-family: var(--c-mono); color: var(--c-fg3); margin-bottom: 6px; }
  .nxc-filters[data-open="true"] .nxc-field select { max-width: none; width: 100%; height: 44px; }
  .nxc-sheet__title { font-weight: 500; font-size: 16px; }
  .nxc-scrim { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .5); }
}
@media (max-width: 720px) {
  .nxc-pad { padding-top: 20px; }
  .nxc-head { flex-direction: column; align-items: stretch; }
  .nxc-head__action { align-items: stretch; }
  .nxc-head__action .nxc-btn { width: 100%; min-height: 44px; }
  .nxc-head__action > form, .nxc-head__action > form .nxc-btn { width: 100%; }
  .nxc-head__note { text-align: left; max-width: none; }
  .nxc-toolbar { flex-wrap: wrap; row-gap: 10px; }
  .nxc-search { flex: 1 1 100%; max-width: none; order: 0; }
  .nxc .nxc-search input { height: 44px; }
  .nxc-filters-open { order: 1; min-height: 44px; }
  .nxc-sort { order: 2; margin-left: 0; flex: 1 1 0; }
  .nxc-sort select { width: 100%; max-width: none !important; height: 44px !important; }
  .nxc-seg { order: 4; }
  .nxc .nxc-seg__btn { width: 42px; height: 38px; }
  .nxc-result-count { order: 3; flex: 1 1 auto; padding: 0; }
  .nxc-clear { order: 5; }
}

/* Results: grid of cards, or rows in list view. */
.nxc-results { padding-top: 20px; }
.nxc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: stretch; }
.nxc-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 18px 18px 16px; background: var(--c-surf); border: 1px solid var(--c-line); border-radius: var(--c-radius);
  transition: border-color .12s, background-color .12s;
}
.nxc-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 0 0 2px 2px; background: var(--c-grad); opacity: .0; transition: opacity .12s; }
.nxc-card:hover { border-color: var(--c-line2); }
.nxc-card:hover::before, .nxc-card:focus-within::before { opacity: 1; }
.nxc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.nxc-card__title { font-size: 17px !important; font-weight: 500; line-height: 1.3; margin: 0 !important; }
.nxc-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--c-radius); }
.nxc-card__title a:focus-visible { outline: none; }
.nxc-card__title a:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.nxc-card__faculty { font-size: 13px; color: var(--c-fg2); }
.nxc-card__summary { font-size: 13.5px; color: var(--c-fg3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nxc-card .nxc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.nxc-card .nxc-meta > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nxc-card .nxc-meta .nxc-ic { color: var(--c-fg3); }
.nxc-card .nxc-progress { margin-top: 4px; }
.nxc-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 6px; }
.nxc-card__foot:empty { display: none; }
.nxc-card__credits, .nxc-card__paths { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--c-fg2); }
.nxc-card__credits .nxc-ic { color: var(--g1); margin-top: 1px; }
.nxc-card__paths .nxc-ic { color: var(--g2); margin-top: 1px; }
.nxc-card__credits span { font-family: var(--c-mono); font-size: 12px; }
.nxc.nxc-js .nxc-card[data-over="1"]:not([data-revealed="1"]) { display: none; }

.nxc-catalogue[data-view="list"] .nxc-grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--c-line); }
.nxc-catalogue[data-view="list"] .nxc-card {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1.3fr); grid-template-areas: "head meta foot" "title meta foot" "fac meta foot";
  column-gap: 32px; row-gap: 2px; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; background: transparent;
}
.nxc-catalogue[data-view="list"] .nxc-card:hover { background: var(--c-hover); }
.nxc-catalogue[data-view="list"] .nxc-card::before { display: none; }
.nxc-catalogue[data-view="list"] .nxc-card__head { grid-area: head; }
.nxc-catalogue[data-view="list"] .nxc-card__title { grid-area: title; font-size: 15.5px !important; }
.nxc-catalogue[data-view="list"] .nxc-card__faculty { grid-area: fac; font-size: 12.5px; color: var(--c-fg3); }
.nxc-catalogue[data-view="list"] .nxc-card__summary { display: none; }
.nxc-catalogue[data-view="list"] .nxc-card .nxc-meta { grid-area: meta; align-self: center; }
.nxc-catalogue[data-view="list"] .nxc-card .nxc-progress { grid-area: meta; align-self: end; }
.nxc-catalogue[data-view="list"] .nxc-card__foot { grid-area: foot; align-self: center; margin: 0; padding: 0; border: 0; }
@media (max-width: 900px) {
  .nxc-catalogue[data-view="list"] .nxc-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "title" "fac" "meta" "foot"; row-gap: 6px; }
}
.nxc-more { display: flex; justify-content: center; padding-top: 24px; }

/* Empty and no-results: one sentence, one action. */
.nxc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 48px 0; max-width: 60ch; }
.nxc-empty .nxc-ic { color: var(--g2); margin-bottom: 4px; }
.nxc-empty__title { font-size: 18px !important; font-weight: 500; margin: 0 !important; }
.nxc-empty__text { color: var(--c-fg2); margin-bottom: 8px !important; }
.nxc-empty--inline { padding: 32px 0; }

/* Course page. */
.nxc-learner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.nxc-learner__stat .nxc-num { font-size: 30px; font-weight: 500; line-height: 1.1; margin-top: 4px !important; }
.nxc-learner__bar { display: flex; flex-direction: column; gap: 8px; }
.nxc-learner__bar .nxc-muted { font-size: 13.5px; }
.nxc-tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-line); margin-bottom: 8px; }
.nxc-tabs::-webkit-scrollbar { display: none; }
.nxc-tabs__a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; font-size: 14px; color: var(--c-fg3); white-space: nowrap; }
.nxc-tabs__a:hover { color: var(--c-fg); }
.nxc-tabs__a[aria-current="page"] { color: var(--c-fg); }
.nxc-tabs__a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-grad); }
.nxc-tabs__n { font-family: var(--c-mono); font-size: 11.5px; color: var(--c-fg3); }
.nxc-course__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.nxc-course__main { min-width: 0; }
.nxc-course__aside { position: sticky; top: calc(var(--nx-header-h, 64px) + 16px); display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
@media (max-width: 1080px) {
  .nxc-course__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nxc-course__aside { position: static; padding-top: 0; }
}
.nxc-section { padding: 28px 0; border-bottom: 1px solid var(--c-line); scroll-margin-top: calc(var(--nx-header-h, 64px) + 16px); }
.nxc-section:last-child { border-bottom: 0; }
.nxc-section__title { font-size: 19px !important; font-weight: 500; margin: 0 0 12px !important; }
.nxc-section__lead { color: var(--c-fg2); margin-bottom: 14px !important; font-size: 14px; }
.nxc-prose { max-width: 72ch; color: var(--c-fg2); font-size: 15.5px; line-height: 1.7; }
.nxc-prose p + p { margin-top: 12px; }
.nxc-prose a { text-decoration: underline; text-underline-offset: 3px; }
.nxc-prose img, .nxc-prose svg, .nxc-prose iframe, .nxc-prose table { max-width: 100%; height: auto; }
.nxc-outcomes { list-style: none; display: flex; flex-direction: column; }
.nxc-outcome { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.nxc-outcome:first-child { border-top: 0; }
.nxc-outcome__id { font-family: var(--c-mono); font-size: 12px; color: var(--c-fg3); padding-top: 2px; }
.nxc-outcome__text { color: var(--c-fg); max-width: 80ch; }
.nxc-outcome .nxc-meta { margin-top: 4px !important; }
.nxc-modules { display: flex; flex-direction: column; border-top: 1px solid var(--c-line); }
.nxc-module { border-bottom: 1px solid var(--c-line); }
.nxc-module__head { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; min-height: 56px; padding: 8px 4px; cursor: pointer; list-style: none; }
.nxc-module__head::-webkit-details-marker { display: none; }
.nxc-module__head::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--c-fg3); border-bottom: 1.5px solid var(--c-fg3); transform: rotate(45deg); justify-self: center; margin-top: -4px; transition: transform .12s; }
.nxc-module[open] > .nxc-module__head::after { transform: rotate(225deg); margin-top: 4px; }
.nxc-module__head:hover { background: var(--c-hover); }
.nxc-module__n { font-family: var(--c-mono); font-size: 12px; color: var(--c-fg3); }
.nxc-module__title { font-weight: 500; }
.nxc-module__meta { font-family: var(--c-mono); font-size: 12px; color: var(--c-fg3); white-space: nowrap; }
.nxc-module__summary { padding: 0 4px 8px 52px; color: var(--c-fg2); font-size: 13.5px; max-width: 80ch; }
.nxc-items { list-style: none; padding: 0 0 8px 0 !important; }
.nxc-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 4px 9px 4px; border-top: 1px solid var(--c-line); }
.nxc-item:hover { background: var(--c-hover); }
.nxc-item__ic { display: inline-flex; justify-content: center; color: var(--c-fg3); }
.nxc-item[data-state="done"] .nxc-item__ic { color: var(--c-pos); }
.nxc-item__body { display: flex; flex-direction: column; min-width: 0; }
.nxc-item__title { font-size: 14px; color: var(--c-fg); }
a.nxc-item__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.nxc-item[data-state="locked"] .nxc-item__title { color: var(--c-fg2); }
.nxc-item__meta { font-family: var(--c-mono); font-size: 11.5px; color: var(--c-fg3); }
.nxc-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; border: 0; }
.nxc-table th { text-align: left; font: 500 11px var(--c-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-fg3); padding: 8px 8px 8px 0; border: 0; border-bottom: 1px solid var(--c-line2); background: transparent; }
.nxc-table td { padding: 11px 8px 11px 0; border: 0; border-bottom: 1px solid var(--c-line); vertical-align: middle; background: transparent; color: var(--c-fg); }
.nxc-table tr:hover td { background: var(--c-hover); }
.nxc-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nxc-num-col { text-align: right !important; white-space: nowrap; }
.nxc-weight { display: inline-block; width: 80px; height: 4px; border-radius: 2px; background: var(--c-muted); margin-right: 10px; vertical-align: middle; overflow: hidden; }
.nxc-weight__bar { display: block; height: 100%; background: var(--c-grad); }
.nxc-facts { display: flex; flex-direction: column; }
.nxc-facts > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.nxc-facts dt { color: var(--c-fg3); font-size: 13.5px; }
.nxc-facts dd { font-size: 14px; color: var(--c-fg); }
.nxc-facts dd .nxc-num { margin-right: 6px; }
.nxc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.nxc-sub { font-size: 14px !important; font-weight: 500; margin: 0 0 8px !important; color: var(--c-fg2) !important; }
.nxc-list { list-style: none; }
.nxc-list li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-fg2); }
.nxc-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 2px; background: var(--g3); }
.nxc-list a { text-decoration: underline; text-underline-offset: 3px; }
.nxc-paths { list-style: none; }
.nxc-path { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--c-line); }
.nxc-path .nxc-ic { color: var(--g2); margin-top: 2px; }
.nxc-path__body { display: flex; flex-direction: column; }
.nxc-path a { font-size: 14px; }
.nxc-path a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nxc-people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px 32px; }
.nxc-person { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--c-line); }
.nxc-person > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nxc-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--c-line2); border-radius: var(--c-radius-s); color: var(--c-fg2); }
.nxc-person__name { font-weight: 500; font-size: 14px; }
a.nxc-person__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.nxc-person__bio { font-size: 13px; color: var(--c-fg2); }
.nxc-panel { padding: 18px; background: var(--c-surf); border: 1px solid var(--c-line); border-radius: var(--c-radius); scroll-margin-top: calc(var(--nx-header-h, 64px) + 16px); }
.nxc-panel__title { font: 500 11px var(--c-mono) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--c-fg3) !important; margin: 0 0 10px !important; }
.nxc-earn { list-style: none; display: flex; flex-direction: column; }
.nxc-earn li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--c-line); }
.nxc-earn li:first-child { border-top: 0; padding-top: 0; }
.nxc-earn li .nxc-ic { color: var(--g1); margin-top: 2px; }
.nxc-earn li > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nxc-earn strong { font-weight: 500; font-size: 14px; }
.nxc-fine { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-fg3); }
.nxc-glance > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--c-line); font-size: 13.5px; }
.nxc-glance > div:first-child { border-top: 0; padding-top: 0; }
.nxc-glance dt { color: var(--c-fg3); }
.nxc-glance dd { text-align: right; color: var(--c-fg); }
.nxc-tutor-box { margin-top: 12px; }
@media (max-width: 720px) {
  .nxc-two { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nxc-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nxc-module__head { grid-template-columns: 28px minmax(0, 1fr) 16px; }
  .nxc-module__meta { grid-column: 2; grid-row: 2; white-space: normal; }
  .nxc-module__head::after { grid-column: 3; grid-row: 1; }
  .nxc-module__summary { padding-left: 4px; }
  .nxc-item { grid-template-columns: 28px minmax(0, 1fr); }
  .nxc-item .nxc-badge { grid-column: 2; justify-self: start; }
  .nxc-outcome { grid-template-columns: 40px minmax(0, 1fr); }
  .nxc-weight { display: none; }
  .nxc-learner { grid-template-columns: minmax(0, 1fr); }
}

/* Learner courses in the dashboard. */
.nxc-dash { background: var(--c-bg); }
.nxc-dash__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--c-line); margin-bottom: 4px; }
.nxc-dash__bar .nxc-tabs { border-bottom: 0; margin-bottom: 0; min-width: 0; }
.nxc-dash__bar .nxc-btn { margin-bottom: 8px; }
.nxc-rows { list-style: none; }
.nxc-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr) auto auto; align-items: center; gap: 24px; padding: 14px 8px; border-bottom: 1px solid var(--c-line); }
.nxc-row:hover { background: var(--c-hover); }
.nxc-row__main { min-width: 0; }
.nxc-row__title { font-weight: 500; font-size: 15px; }
.nxc-row__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.nxc-row__progress { display: flex; align-items: center; gap: 10px; }
.nxc-row__progress .nxc-progress { flex: 1 1 auto; }
.nxc-row__pc { font-size: 12px; color: var(--c-fg2); min-width: 36px; text-align: right; }
@media (max-width: 720px) {
  .nxc-dash__bar { flex-direction: column; align-items: stretch; }
  .nxc-dash__bar .nxc-btn { min-height: 44px; margin: 8px 0; }
  .nxc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .nxc-row__progress { grid-column: 1 / -1; grid-row: 2; }
  .nxc-row__state { grid-row: 1; grid-column: 2; }
  .nxc-row__go { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
  .nxc-table--rows thead { display: none; }
  .nxc-table--rows tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
  .nxc-table--rows td { border: 0; padding: 2px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nxc *, .nxc *::before, .nxc *::after { transition: none !important; }
}
