.fmf-course-note-page,
.fmf-notes-index,
#curriculum {
  --fmf-notes-accent: var(--e-global-color-accent, #91abc5);
  --fmf-notes-accent-soft: rgba(145, 171, 197, 0.18);
  --fmf-notes-border: rgba(127, 127, 127, 0.22);
}

@supports (color: color-mix(in srgb, black, white)) {
  .fmf-course-note-page,
  .fmf-notes-index,
  #curriculum {
    --fmf-notes-accent-soft: color-mix(in srgb, var(--fmf-notes-accent) 18%, transparent);
    --fmf-notes-border: color-mix(in srgb, currentColor 16%, transparent);
  }
}

.fmf-lesson__notes-link {
  color: var(--fmf-notes-accent, #91abc5);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, opacity 160ms ease;
}

.fmf-lesson__notes-link:hover,
.fmf-lesson__notes-link:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.fmf-lesson__notes-link:focus-visible {
  outline: 2px solid var(--fmf-notes-accent, #91abc5);
  outline-offset: 4px;
}

.fmf-notes-members-only {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--fmf-notes-border, rgba(255, 255, 255, 0.18));
  border-radius: 999px;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1.4;
  opacity: 0.7;
  text-transform: uppercase;
  vertical-align: middle;
}

.fmf-lesson--generated-note {
  animation: fmf-note-reveal 240ms ease both;
}

@keyframes fmf-note-reveal {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.fmf-notes-index {
  width: 100%;
  margin: 2rem 0;
  color: inherit;
  font-family: inherit;
}

.fmf-notes-index__heading {
  margin: 0 0 1.25rem;
  color: inherit;
  font-family: inherit;
}

.fmf-notes-index__module {
  padding: 1.25rem 0;
  border-top: 1px solid var(--fmf-notes-border, rgba(255, 255, 255, 0.16));
}

.fmf-notes-index__module h3 {
  margin: 0 0 0.75rem;
  color: inherit;
  font-family: inherit;
}

.fmf-notes-index__lessons {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fmf-notes-index__lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--fmf-notes-border, rgba(255, 255, 255, 0.1));
}

.fmf-notes-index__lesson-copy,
.fmf-notes-index__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.fmf-notes-index__duration {
  font-size: 0.85em;
  opacity: 0.65;
}

.fmf-notes-message {
  padding: 1rem;
  border-left: 3px solid var(--fmf-notes-accent, #91abc5);
  background: rgba(127, 127, 127, 0.08);
}

.fmf-course-note-page {
  min-height: 65vh;
  padding: clamp(6.5rem, 11vw, 10rem) 1.25rem clamp(4rem, 8vw, 7rem);
  color: inherit;
  font-family: inherit;
}

.fmf-course-note-page__inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.fmf-course-note-page__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--fmf-notes-accent, #91abc5);
  font-weight: 650;
  text-decoration: none;
}

.fmf-course-note-page__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--fmf-notes-accent, #91abc5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fmf-course-note-page__title {
  margin: 0;
  color: inherit;
  font-family: inherit;
}

.fmf-course-note-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 2.5rem;
  opacity: 0.75;
}

.fmf-course-note-page__access {
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--fmf-notes-border, rgba(255, 255, 255, 0.18));
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fmf-course-note-page__content {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--fmf-notes-accent-soft, rgba(145, 171, 197, 0.18));
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(61, 87, 112, 0.1), transparent 48%);
}

.fmf-course-note-page__content--elementor {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fmf-course-note-page__content > :first-child {
  margin-top: 0;
}

.fmf-course-note-page__content > :last-child {
  margin-bottom: 0;
}

.fmf-course-note-page__navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fmf-notes-border, rgba(255, 255, 255, 0.16));
}

.fmf-course-note-page__navigation a {
  color: inherit;
  text-decoration: none;
}

.fmf-course-note-page__navigation a:last-child {
  text-align: right;
}

.fmf-course-note-page__navigation small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--fmf-notes-accent, #91abc5);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .fmf-notes-index__lesson,
  .fmf-notes-index__lesson-copy,
  .fmf-notes-index__actions {
    align-items: flex-start;
  }

  .fmf-notes-index__lesson {
    flex-direction: column;
  }

  .fmf-course-note-page__navigation {
    grid-template-columns: 1fr;
  }

  .fmf-course-note-page__navigation a:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fmf-lesson--generated-note {
    animation: none;
  }
}
