/* ---------- The client learning modules, around the module page itself (18 Oct 2026) ----------
   The studio's picker in the client summary (index.html, #educationEditor), and the "Learn how the
   hands-on works" card in a summary (session-view.js) and on the portal's home (portal.html). The
   module page has its own sheet: public/education/learn.css. */

/* The picker: one row per module, its status line holding its height even when it says nothing. */
.ni-edu-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.ni-edu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px 12px;
}
.ni-edu-item:has(input:checked) {
  border-color: var(--brand-mid);
  background: var(--brand-light);
}
.ni-edu-check {
  flex: 1;
  align-items: flex-start;
  min-width: 0;
  cursor: pointer;
}
.ni-edu-check input {
  margin-top: 3px;
}
.ni-edu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ni-edu-text b {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.ni-edu-blurb {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.ni-edu-status {
  display: block;
  min-height: 17px;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
  color: var(--brand-text);
}
.ni-edu-preview {
  flex: none;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-text);
  text-decoration: none;
  white-space: nowrap;
}
.ni-edu-preview:hover {
  text-decoration: underline;
}

/* The card: in a summary and on the portal's home. */
.ni-learn-card,
.ni-learn-home {
  margin-top: 18px;
}
.ni-learn-sub {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.ni-learn-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.ni-learn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 13px 15px 34px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ni-learn-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.ni-learn-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.ni-learn-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.ni-learn-go {
  position: absolute;
  left: 15px;
  bottom: 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-text);
}
.ni-learn-new {
  display: inline-block;
  vertical-align: 2px;
  border-radius: 999px;
  background: var(--brand-strong);
  padding: 2px 7px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* the picker's "Preview every module" link, in the studio's green */
#educationEditor .ni-sub a {
  color: var(--brand-text);
  font-weight: 600;
  text-decoration: none;
}
#educationEditor .ni-sub a:hover {
  text-decoration: underline;
}
