/* Natalia Academy: Tutor 4 learning area and dashboard.
   Use Tutor's semantic tokens; keep layout, access and learning behavior native. */
body.naa-tutor-interface,
body.naa-tutor-interface [data-tutor-theme] {
  --tutor-font-family-body: 'Manrope';
  --tutor-font-family-heading: 'Manrope';
  --tutor-font-family-monospace: ui-monospace;
  --plyr-color-main: #4a1729;
  --tutor-color-primary: #4a1729;
  --tutor-color-primary-hover: #36101e;
  font-family: 'Manrope', Arial, sans-serif;
}

body.naa-tutor-interface,
body.naa-tutor-interface [data-tutor-theme='light'] {
  --tutor-surface-base: #f7f4ef;
  --tutor-surface-l1: #fdfbf8;
  --tutor-surface-l1-hover: #f1e7e3;
  --tutor-surface-l2: #efe2df;
  --tutor-surface-l2-hover: #e5d4d1;
  --tutor-surface-l3: #f3ece7;
  --tutor-surface-sidebar-l1: #f3ece7;
  --tutor-surface-brand-secondary: #efe2df;
  --tutor-surface-brand-tertiary: #f7efed;
  --tutor-surface-brand-quaternary: #f1e7e3;
  --tutor-text-primary: #292326;
  --tutor-text-primary-inverse: #f7f4ef;
  --tutor-text-secondary: #51464b;
  --tutor-text-subdued: #74666d;
  --tutor-text-disabled: #a89b9f;
  --tutor-text-light: #f7f4ef;
  --tutor-text-brand: var(--tutor-brand-600, #4a1729);
  --tutor-text-brand-hover: var(--tutor-brand-700, #36101e);
  --tutor-text-highlighted-hover: #efe2df;
  --tutor-icon-idle: #51464b;
  --tutor-icon-secondary: #74666d;
  --tutor-icon-hover: #4a1729;
  --tutor-icon-subdued: #a89b9f;
  --tutor-icon-brand: var(--tutor-brand-600, #4a1729);
  --tutor-icon-brand-hover: var(--tutor-brand-700, #36101e);
  --tutor-button-primary: var(--tutor-brand-600, #4a1729);
  --tutor-button-primary-hover: var(--tutor-brand-700, #36101e);
  --tutor-button-primary-focused: var(--tutor-brand-600, #4a1729);
  --tutor-button-primary-soft: #efe2df;
  --tutor-button-primary-soft-hover: #e5d4d1;
  --tutor-button-primary-soft-focused: #efe2df;
  --tutor-button-secondary: #f1e7e3;
  --tutor-button-secondary-hover: #e5d4d1;
  --tutor-button-secondary-focused: #f1e7e3;
  --tutor-button-outline-inverse: #fdfbf8;
  --tutor-button-outline-hover: #f1e7e3;
  --tutor-button-outline-focused-inverse: #fdfbf8;
  --tutor-button-ghost-hover: #f1e7e3;
  --tutor-button-disabled: #e7deda;
  --tutor-border-idle: #ded7d2;
  --tutor-border-idle2: #ded7d2;
  --tutor-border-hover: #c6a9b0;
  --tutor-border-tertiary: #a88a93;
  --tutor-border-inverse: #fdfbf8;
  --tutor-border-brand-secondary: #d8bdc4;
  --tutor-border-brand-tertiary: #b48696;
  --tutor-tab-sidebar-l2: #fdfbf8;
  --tutor-tab-sidebar-l2-hover: #f1e7e3;
  --tutor-tab-sidebar-l2-active: #efe2df;
  --tutor-tab-sidebar-l4-hover: #f1e7e3;
  --tutor-tab-sidebar-l4-active: #efe2df;
  --tutor-tab-l3: #f1e7e3;
  --tutor-tab-l3-hover: #e5d4d1;
  --tutor-tab-l3-active: #efe2df;
  --tutor-tab-l3-active-hover: #e5d4d1;
  --tutor-actions-gray-empty: #f3ece7;
  --tutor-actions-gray-secondary: #f1e7e3;
  --tutor-actions-gray-tertiary: #efe2df;
  --tutor-actions-gray-quaternary: #ded7d2;
  --tutor-quiz-idle: #fdfbf8;
  --tutor-quiz-hover: #f1e7e3;
  --tutor-visual-gray-1: #fdfbf8;
  --tutor-visual-gray-2: #efe2df;
  --tutor-visual-gray-3: #c6a9b0;
  --tutor-visual-gray-4: #51464b;
}

/* Preserve the learner's dark-mode preference with a compatible warm palette. */
html[data-tutor-theme='dark'] body.naa-tutor-interface,
body.naa-tutor-interface[data-tutor-theme='dark'],
body.naa-tutor-interface [data-tutor-theme='dark'] {
  --tutor-surface-base: #211a1e;
  --tutor-surface-l1: #2c2328;
  --tutor-surface-l1-hover: #3b2d34;
  --tutor-surface-l2: #3b2d34;
  --tutor-surface-l2-hover: #4b3740;
  --tutor-surface-l3: #33272e;
  --tutor-surface-sidebar-l1: #261e23;
  --tutor-surface-brand-secondary: #3b2d34;
  --tutor-surface-brand-tertiary: #33272e;
  --tutor-surface-brand-quaternary: #3b2d34;
  --tutor-text-primary: #f7f4ef;
  --tutor-text-secondary: #dfd0d5;
  --tutor-text-subdued: #bda9b2;
  --tutor-text-disabled: #9c858f;
  --tutor-text-brand: #e5b6c6;
  --tutor-text-brand-hover: #f4d9e2;
  --tutor-icon-idle: #dfd0d5;
  --tutor-icon-secondary: #bda9b2;
  --tutor-icon-hover: #f7f4ef;
  --tutor-icon-brand: #e5b6c6;
  --tutor-icon-brand-hover: #f4d9e2;
  --tutor-button-primary-soft: #4b3740;
  --tutor-button-primary-soft-hover: #62434f;
  --tutor-button-primary-soft-focused: #4b3740;
  --tutor-button-secondary: #3b2d34;
  --tutor-button-secondary-hover: #4b3740;
  --tutor-button-secondary-focused: #3b2d34;
  --tutor-button-outline-inverse: #2c2328;
  --tutor-button-outline-hover: #3b2d34;
  --tutor-button-outline-focused-inverse: #2c2328;
  --tutor-button-ghost-hover: #3b2d34;
  --tutor-border-idle: #4b3740;
  --tutor-border-idle2: #4b3740;
  --tutor-border-hover: #987080;
  --tutor-border-inverse: #2c2328;
  --tutor-border-tertiary: #987080;
  --tutor-tab-sidebar-l2: #2c2328;
  --tutor-tab-sidebar-l2-hover: #3b2d34;
  --tutor-tab-sidebar-l2-active: #4b3740;
  --tutor-tab-sidebar-l4-hover: #3b2d34;
  --tutor-tab-sidebar-l4-active: #4b3740;
  --tutor-tab-l3: #3b2d34;
  --tutor-tab-l3-hover: #4b3740;
  --tutor-tab-l3-active: #4b3740;
  --tutor-tab-l3-active-hover: #62434f;
  --tutor-quiz-idle: #2c2328;
  --tutor-quiz-hover: #3b2d34;
  --tutor-actions-gray-empty: #33272e;
  --tutor-actions-gray-secondary: #3b2d34;
  --tutor-actions-gray-tertiary: #3b2d34;
  --tutor-actions-gray-quaternary: #4b3740;
  --tutor-visual-gray-1: #2c2328;
  --tutor-visual-gray-2: #3b2d34;
  --tutor-visual-gray-3: #987080;
  --tutor-visual-gray-4: #dfd0d5;
}

.naa-password-feedback {
  width: calc(100% - 48px);
  max-width: 550px;
  margin: 20px auto;
}

body.naa-tutor-interface {
  background: var(--tutor-surface-base);
  color: var(--tutor-text-primary);
}

.naa-tutor-interface :is(.tutor-learning-area, .tutor-dashboard-layout) :is(h1, h2, h3, h4, h5, h6) {
  font-family: 'Manrope', Arial, sans-serif;
  color: var(--tutor-text-primary);
  letter-spacing: normal;
}

.naa-tutor-interface :is(.tutor-learning-header-inner, .tutor-learning-sidebar-curriculum, .tutor-learning-sidebar-pages, .tutor-learning-main, .tutor-dashboard-header) {
  border: 1px solid var(--tutor-border-idle);
  box-shadow: none;
}

.naa-tutor-interface :is(.tutor-learning-nav-header, .tutor-learning-nav-item, .tutor-dashboard-menu-item) {
  transition: background-color .18s ease, color .18s ease;
}

.naa-tutor-interface :is(.tutor-learning-area, .tutor-dashboard-layout) :is(button, input, select, textarea) {
  font-family: 'Manrope', Arial, sans-serif;
}

.naa-tutor-interface :is(.tutor-learning-area, .tutor-dashboard-layout) :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--tutor-text-brand);
  outline-offset: 3px;
}

.naa-tutor-interface .tutor-lesson-content :is(.tutor-lesson-content-title, .tutor-lesson-title),
.naa-tutor-interface .tutor-learning-area .tutor-quiz-intro-title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
}

@media (prefers-reduced-motion: reduce) {
  .naa-tutor-interface :is(.tutor-learning-nav-header, .tutor-learning-nav-item, .tutor-dashboard-menu-item) {
    transition: none;
  }
}
