/* Neural Command — operator training layer */

.nc-page {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.nc-label {
  font-family: var(--nrlc-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nrlc-muted-2, #64748b);
  margin: 0 0 0.5rem;
}

.nc-heading {
  font-family: var(--nrlc-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--nrlc-ink, #0f172a);
}

.nc-heading--sm {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.nc-lede,
.nc-card__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--nrlc-muted, #334155);
  margin: 0 0 1rem;
}

.nc-muted { color: var(--nrlc-muted-2, #64748b); font-size: 0.9rem; }
.nc-note { font-style: italic; margin-bottom: 1rem; }

.nc-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.nc-section--soft {
  background: var(--nrlc-surface-soft, #f8fafc);
}

.nc-section--feature {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, transparent 100%);
}

.nc-section--cta {
  padding-top: 0;
}

.nc-section--links {
  padding-top: 0;
  border-top: 1px solid var(--nrlc-border, #e2e8f0);
}

.nc-section-header {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.nc-card {
  background: #fff;
  border: 1px solid var(--nrlc-border, #e2e8f0);
  border-radius: 8px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.nc-card--feature {
  border-color: var(--nrlc-ink, #0f172a);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.nc-card--compact {
  padding: 1rem 1.25rem;
}

.nc-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--nrlc-ink, #0f172a);
}

.nc-card__title a {
  color: inherit;
  text-decoration: none;
}

.nc-card__title a:hover {
  text-decoration: underline;
}

.nc-grid {
  display: grid;
  gap: 1rem;
}

.nc-grid--tracks {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.nc-grid--lessons {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.nc-grid--concepts {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.nc-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--nrlc-surface-soft, #f1f5f9);
  color: var(--nrlc-muted-2, #64748b);
  border: 1px solid var(--nrlc-border, #e2e8f0);
}

.nc-badge--live {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.nc-lesson-card--scheduled {
  opacity: 0.92;
}

.nc-lesson-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.nc-arrow-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nrlc-ink, #0f172a);
  text-decoration: none;
}

.nc-arrow-link:hover { text-decoration: underline; }

.nc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nc-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.nc-related a {
  font-size: 0.9rem;
  color: var(--nrlc-ink, #0f172a);
  text-decoration: none;
}

.nc-related a:hover { text-decoration: underline; }

/* Lesson page */
.nc-breadcrumbs {
  padding: 1rem 0 0;
}

.nc-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--nrlc-muted-2, #64748b);
}

.nc-breadcrumbs__list a {
  color: var(--nrlc-muted, #334155);
  text-decoration: none;
}

.nc-breadcrumbs__list a:hover { text-decoration: underline; }

.nc-breadcrumbs__list li:not(:last-child)::after {
  content: " / ";
  margin-left: 0.5rem;
  color: var(--nrlc-border, #cbd5e1);
}

.nc-lesson__body {
  max-width: 48rem;
  padding-bottom: 3rem;
}

.nc-lesson-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--nrlc-border, #e2e8f0);
}

.nc-lesson-section:last-of-type {
  border-bottom: none;
}

.nc-interpretation-box {
  background: var(--nrlc-surface-soft, #f8fafc);
  border: 1px solid var(--nrlc-ink, #0f172a);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.nc-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: var(--nrlc-muted, #334155);
}

.nc-list--ordered {
  list-style: decimal;
}

.nc-list li + li {
  margin-top: 0.5rem;
}

.nc-code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.nc-signal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.nc-signal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.nc-signal-table th,
.nc-signal-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--nrlc-border, #e2e8f0);
}

.nc-signal-table th {
  background: var(--nrlc-surface-soft, #f8fafc);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quiz */
.nc-quiz-section {
  background: var(--nrlc-surface-soft, #f8fafc);
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 1.5rem 1rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--nrlc-border, #e2e8f0);
}

@media (min-width: 640px) {
  .nc-quiz-section {
    margin-left: 0;
    margin-right: 0;
    padding: 1.75rem;
  }
}

.nc-quiz__question {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.nc-quiz__legend {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--nrlc-ink, #0f172a);
}

.nc-quiz__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  font-size: 0.75rem;
  background: var(--nrlc-ink, #0f172a);
  color: #fff;
  border-radius: 4px;
  vertical-align: middle;
}

.nc-quiz__choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.nc-quiz__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--nrlc-border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.nc-quiz__choice:has(input:checked) {
  border-color: var(--nrlc-ink, #0f172a);
  background: #fff;
}

.nc-quiz__choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.nc-quiz__check {
  font-size: 0.875rem;
  padding: 0.4rem 0.85rem;
}

.nc-quiz__feedback {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.nc-quiz__feedback--correct {
  background: #ecfdf5;
  color: #065f46;
}

.nc-quiz__feedback--incorrect {
  background: #fef2f2;
  color: #991b1b;
}

.nc-quiz__results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nrlc-border, #e2e8f0);
}

.nc-quiz__score {
  font-family: var(--nrlc-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.nc-quiz__results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nc-lesson-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--nrlc-border, #e2e8f0);
}

.nc-lesson-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.nc-lesson-footer__next {
  font-size: 0.9rem;
  color: var(--nrlc-muted, #334155);
}

.nc-prose strong {
  font-weight: 600;
  color: var(--nrlc-ink, #0f172a);
}

/* Homepage strip */
.home-nc-strip {
  text-align: left;
}

.home-nc-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

.home-nc-strip__secondary {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nrlc-ink, #0f172a);
  text-decoration: none;
}

.home-nc-strip__secondary:hover {
  text-decoration: underline;
}
