/* Early Pursuit theme for Kajabi · built 2026-10-29 13:43 UTC */

@font-face{font-family:"Inter Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter Tight Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-display:swap;font-weight:400;src:url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-display:swap;font-weight:500;src:url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ==========================================================================
   Early Pursuit design tokens
   Copied from earlypursuit.com (~/Projects/early-pursuit/src/app/globals.css),
   which is the source of truth. Change the site first, then copy here.
   Everything is prefixed --ep- so it never collides with Kajabi's own variables.
   ========================================================================== */

:root {
  /* Colour */
  --ep-ink: #101b2d;
  --ep-ink-deep: #0a1220;
  --ep-paper: #f7f5f0;
  --ep-blue: #3f6df6;
  --ep-blue-text: #2f5ce6; /* small blue text on light backgrounds, 5.1:1 */
  --ep-sky: #afcbff;
  --ep-stone: #d9d5cc;
  --ep-white: #ffffff;
  --ep-logo-ink: #080d18; /* exact colour of the EP mark artwork */

  --ep-ink-muted: rgba(16, 27, 45, 0.66);
  --ep-ink-faint: rgba(16, 27, 45, 0.36);
  --ep-paper-muted: rgba(247, 245, 240, 0.74);
  --ep-paper-faint: rgba(247, 245, 240, 0.46);
  --ep-hairline: #ebe8e1;
  --ep-tint: #f1f0ec;
  --ep-blue-tint: #edf2ff;
  --ep-blue-tint-line: #d8e2fe;
  --ep-sky-line: rgba(175, 203, 255, 0.18);

  /* Gradients */
  --ep-grad-dark: linear-gradient(180deg, #0a1220 0%, #101b2d 34%, #14296a 78%, #2447c9 100%);
  --ep-grad-panel: linear-gradient(160deg, #0d1729 0%, #101b2d 45%, #16307e 100%);
  --ep-grad-btn: linear-gradient(180deg, #6189ff 0%, #3f6df6 52%, #315fe8 100%);
  --ep-grad-text: linear-gradient(92deg, #d6e4ff 0%, #afcbff 35%, #7aa0ff 100%);
  --ep-grid-line: rgba(175, 203, 255, 0.07);

  /* Depth */
  --ep-glow: 0 12px 32px -10px rgba(63, 109, 246, 0.8);
  --ep-glow-small: 0 6px 14px -6px rgba(63, 109, 246, 0.9);
  --ep-shadow-card: 0 1px 2px rgba(16, 27, 45, 0.04), 0 22px 44px -24px rgba(16, 27, 45, 0.22);
  --ep-shadow-panel: 0 40px 80px -40px rgba(16, 27, 45, 0.6);
  --ep-card-line: rgba(16, 27, 45, 0.06);

  /* Shape */
  --ep-radius: 24px;
  --ep-radius-lg: 28px;
  --ep-radius-sm: 16px;
  --ep-radius-xs: 12px;
  --ep-pill: 999px;

  /* Space */
  --ep-gutter: 20px;
  --ep-max: 1160px;
  --ep-read: 720px; /* lesson reading column */
  --ep-section-y: 56px;

  /* Type */
  --ep-font-display: "Inter Tight Variable", "Inter Tight", system-ui, sans-serif; /* stands in for Neue Montreal Bold, as on the site */
  --ep-font-sans: "Inter Variable", "Inter", system-ui, sans-serif;
  --ep-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ep-fs-display: clamp(2.5rem, 1.55rem + 4.2vw, 4.5rem);
  --ep-fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --ep-fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --ep-fs-lead: clamp(1.125rem, 1.04rem + 0.38vw, 1.3125rem);
  --ep-fs-body: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  --ep-fs-small: 0.875rem;
  --ep-fs-label: 15px;

  /* Motion */
  --ep-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ep-fast: 160ms;
  --ep-med: 280ms;
}

@media (min-width: 900px) {
  :root {
    --ep-gutter: 40px;
    --ep-section-y: 88px;
  }
}


/* --- 00-base.css --- */
/* Base: the Premier course area: course overview (.section--product, also on
   lessons), a module (.section--category) and the module list (.section--categories).
   Every rule starts with :root:has(:is(...those three)) so it only touches
   pages that contain Kajabi's course sections. Browsers without :has() skip these rules
   and keep Kajabi's default look, which is the safe way to fail. */

:root:has(:is(.section--product, .section--category, .section--categories)) body {
  background: var(--ep-paper);
  color: var(--ep-ink);
  font-family: var(--ep-font-sans);
  font-size: var(--ep-fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .container--main {
  background-color: var(--ep-ink-deep);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .section--global {
  background: var(--ep-paper);
  padding-top: 24px;
  padding-bottom: var(--ep-section-y);
}

:root:has(:is(.section--product, .section--category, .section--categories)) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ep-font-display);
  letter-spacing: -0.02em;
  color: inherit;
}

:root:has(:is(.section--product, .section--category, .section--categories)) a {
  color: var(--ep-blue-text);
}

:root:has(:is(.section--product, .section--category, .section--categories)) :focus-visible {
  outline: 2px solid var(--ep-blue-text);
  outline-offset: 3px;
}

/* --- Header -------------------------------------------------------------- */

:root:has(:is(.section--product, .section--category, .section--categories)) .header {
  background: var(--ep-ink-deep);
  border-bottom: 1px solid var(--ep-sky-line);
  padding: 14px 0;
  color: var(--ep-paper);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .header a,
:root:has(:is(.section--product, .section--category, .section--categories)) .header .header-menu a {
  font-family: var(--ep-font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-paper-muted);
  text-decoration: none;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .header a:hover {
  color: var(--ep-paper);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .header .header-ham span {
  background-color: var(--ep-paper);
}

/* The EP mark replaces whatever logo is uploaded in Kajabi, plus the mono
   wordmark from the site header. */
:root:has(:is(.section--product, .section--category, .section--categories)) .header .logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 40px;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .header .logo img {
  content: url(logo-ep-warmwhite.svg);
  height: 24px;
  width: auto;
  max-height: none;
  top: auto;
  transform: none;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .header .logo::after {
  content: "EARLY PURSUIT";
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ep-paper);
  white-space: nowrap;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .header .user__avatar {
  box-shadow: 0 0 0 2px var(--ep-sky-line);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .header .user__dropdown {
  background: var(--ep-ink);
  border: 1px solid var(--ep-sky-line);
  border-radius: var(--ep-radius-sm);
  box-shadow: var(--ep-shadow-panel);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .section--search {
  background: var(--ep-ink);
}

/* --- Breadcrumbs --------------------------------------------------------- */

:root:has(:is(.section--product, .section--category, .section--categories)) .breadcrumbs {
  font-family: var(--ep-font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .breadcrumbs__crumb,
:root:has(:is(.section--product, .section--category, .section--categories)) .breadcrumbs__crumb a,
:root:has(:is(.section--product, .section--category, .section--categories)) .breadcrumbs__crumb--divider {
  color: var(--ep-ink-faint);
  text-decoration: none;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .breadcrumbs__crumb a:hover {
  color: var(--ep-blue-text);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .breadcrumbs__crumb:last-of-type {
  color: var(--ep-ink-muted);
}

/* --- Buttons ------------------------------------------------------------- */

:root:has(:is(.section--product, .section--category, .section--categories)) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--ep-pill) !important;
  font-family: var(--ep-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-transform: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter var(--ep-fast) var(--ep-ease-out), transform var(--ep-fast) var(--ep-ease-out);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .btn--solid {
  background: var(--ep-grad-btn) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--ep-white) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow-small);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .btn--outline {
  background: var(--ep-white) !important;
  border: 1px solid var(--ep-stone) !important;
  color: var(--ep-ink) !important;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .btn:hover {
  filter: brightness(1.06);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .btn:active {
  filter: brightness(0.96);
  transform: translateY(1px);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .btn[disabled] {
  opacity: 0.35;
  box-shadow: none;
  pointer-events: none;
}

/* --- Progress bars --------------------------------------------------------- */

:root:has(:is(.section--product, .section--category, .section--categories)) .progress__bar {
  height: 6px;
  border-radius: var(--ep-pill);
  background: var(--ep-tint);
  overflow: hidden;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .progress__fill {
  height: 100%;
  border-radius: var(--ep-pill);
  background: linear-gradient(90deg, #6189ff, #3f6df6);
  box-shadow: 0 0 12px rgba(63, 109, 246, 0.6);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .progress__icon {
  color: var(--ep-blue);
}

/* --- Footer -------------------------------------------------------------- */

:root:has(:is(.section--product, .section--category, .section--categories)) .footer {
  background: var(--ep-ink-deep);
  color: var(--ep-paper-faint);
  font-size: var(--ep-fs-small);
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
}

:root:has(:is(.section--product, .section--category, .section--categories)) .footer a {
  font-family: var(--ep-font-sans);
  color: var(--ep-paper-muted);
}

/* Premier's default social links point at Kajabi's own accounts. */
:root:has(:is(.section--product, .section--category, .section--categories)) .footer .social-icons {
  display: none;
}


/* --- 10-lesson.css --- */
/* Lesson page: big video, a calm reading column, and the lesson text's labelled
   parts (Workbook, prompts, "with a parent") turned into cards by ep-theme.js.
   Without the JS the text still gets the reading column and wrapped prompts. */

/* --- Video and playlist --------------------------------------------------- */

:root:has(#section-post_body) #section-post_player {
  width: 100%;
}

:root:has(#section-post_body) .player {
  margin-top: 8px;
  border-radius: var(--ep-radius);
  overflow: hidden;
  background: var(--ep-ink-deep);
  border: 1px solid rgba(97, 137, 255, 0.22);
  box-shadow: var(--ep-shadow-panel);
}

:root:has(#section-post_body) .player__video {
  background: #000;
}

/* No video yet (Kajabi shows its grey placeholder): hide the empty frame and
   playlist, keep Back / Next. Comes back by itself once a video is added. */
:root:has(#section-post_body):has(.player__video > img.thumb[src*="placeholder"]) .player__video,
:root:has(#section-post_body):has(.player__video > img.thumb[src*="placeholder"]) .player__playlist {
  display: none;
}

:root:has(#section-post_body):has(.player__video > img.thumb[src*="placeholder"]) .player {
  background: transparent;
  border: 0;
  box-shadow: none;
}

:root:has(#section-post_body):has(.player__video > img.thumb[src*="placeholder"]) .player__nav {
  padding: 0;
  background: transparent;
  border: 0;
}

:root:has(#section-post_body) .playlist {
  background: var(--ep-grad-panel);
  color: var(--ep-paper);
  min-height: 100%;
}

:root:has(#section-post_body) .playlist__title {
  padding: 22px 22px 16px;
  background: transparent;
  border-bottom: 1px solid rgba(175, 203, 255, 0.12);
}

:root:has(#section-post_body) .playlist__title h2 {
  font-family: var(--ep-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

:root:has(#section-post_body) .playlist__title h3 {
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ep-sky);
  opacity: 1;
}

:root:has(#section-post_body) .playlist .track {
  margin: 2px 10px;
  padding: 10px 12px;
  border-radius: var(--ep-radius-xs);
  color: var(--ep-paper-muted);
  text-decoration: none;
  transition: background var(--ep-fast) var(--ep-ease-out);
}

:root:has(#section-post_body) .playlist .track:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ep-paper);
}

:root:has(#section-post_body) .playlist .track--active {
  background: rgba(63, 109, 246, 0.2);
  box-shadow: inset 3px 0 0 var(--ep-blue);
  color: var(--ep-white);
}

:root:has(#section-post_body) .playlist .track__title {
  font-size: 14px;
  line-height: 1.35;
}

:root:has(#section-post_body) .playlist .track__count,
:root:has(#section-post_body) .playlist .track__count.active {
  font-family: var(--ep-font-mono);
  font-size: 12px;
  color: var(--ep-sky);
}

:root:has(#section-post_body) .player__playlist::-webkit-scrollbar-track {
  background: transparent;
}

:root:has(#section-post_body) .player__playlist::-webkit-scrollbar-thumb {
  background-color: rgba(175, 203, 255, 0.25);
  border-radius: 10px;
}

/* Back / Next bar under the video */
:root:has(#section-post_body) .player__nav {
  padding: 12px;
  background: var(--ep-white);
  border-top: 1px solid var(--ep-hairline);
}

:root:has(#section-post_body) .player__nav p {
  margin: 0;
  font-family: var(--ep-font-mono);
  font-size: 12px;
  color: var(--ep-ink-faint);
  text-align: center;
}

:root:has(#section-post_body) .player__nav .btn-prev {
  background: var(--ep-white) !important;
  border: 1px solid var(--ep-stone) !important;
  color: var(--ep-ink) !important;
  box-shadow: none;
}

:root:has(#section-post_body) .player--none__nav {
  display: none;
}

/* --- Reading column ------------------------------------------------------- */

/* The sidebar column is empty by default; give the lesson the full width and a
   comfortable reading measure instead. A sidebar with content keeps its place. */
:root:has(#section-post_body) .section__sidebar:not(:has(*)) {
  display: none;
}

:root:has(#section-post_body) .section__row:not(:has(.section__sidebar *)) > .section__body {
  display: block;
  float: none;
  flex: 0 0 100%;
  width: 100%;
  max-width: calc(var(--ep-read) + 2 * 15px);
  margin-left: auto !important;
  margin-right: auto !important;
}

:root:has(#section-post_body) #section-post_body .panel {
  margin-top: 24px;
  background: var(--ep-white);
  border: 1px solid var(--ep-card-line);
  border-radius: var(--ep-radius);
  box-shadow: var(--ep-shadow-card);
}

:root:has(#section-post_body) #section-post_body .panel__body {
  display: flex;
  flex-direction: column;
  padding: 28px 22px 26px;
}

@media (min-width: 900px) {
  :root:has(#section-post_body) #section-post_body .panel__body {
    padding: 48px 56px 44px;
  }
}

/* Phones: no card around the lesson, so the text gets the whole width. */
@media (max-width: 599.98px) {
  :root:has(#section-post_body) #section-post_body .panel {
    margin-top: 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  :root:has(#section-post_body) #section-post_body .panel__body {
    padding: 12px 2px 28px;
  }
}

/* "Mark as complete" belongs after the lesson, not before it. */
:root:has(#section-post_body) .mark-as-complete {
  order: 2;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ep-hairline);
}

:root:has(#section-post_body) .mark-as-complete .btn--completion {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
  background: var(--ep-grad-btn) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--ep-white) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow);
}

:root:has(#section-post_body) .mark-as-complete .btn--completion[data-post-completion-toggle="true"] {
  background: var(--ep-ink) !important;
  border-color: var(--ep-ink) !important;
  box-shadow: none;
}

:root:has(#section-post_body) .mark-as-complete .btn--completion[data-post-completion-toggle="true"]::before {
  content: "✓";
  font-weight: 800;
  color: var(--ep-sky);
}

/* Kajabi's "Great Job! Keep Going!" box, shown after "Complete" */
:root:has(#section-post_body) .smart-next {
  order: 3;
  margin-top: 14px;
  padding: 16px 18px !important;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-blue-tint) !important;
  border: 1px solid var(--ep-blue-tint-line);
  color: var(--ep-ink);
  text-align: left;
}

:root:has(#section-post_body) .smart-next__block--left:has(img[src*="placeholder"]) {
  display: none;
}

:root:has(#section-post_body) .smart-next__block {
  width: auto !important;
  padding: 0 !important;
  text-align: left !important;
}

:root:has(#section-post_body) .smart-next__text {
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-blue-text);
}

:root:has(#section-post_body) .smart-next__link {
  display: block;
  margin-top: 4px;
  font-family: var(--ep-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ep-ink) !important;
  text-decoration: none;
}

:root:has(#section-post_body) .smart-next__link--small {
  margin-top: 8px;
  font-family: var(--ep-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ep-blue-text) !important;
}

/* Title block: module label above, big display title */
:root:has(#section-post_body) .panel__block {
  display: flex;
  flex-direction: column;
  margin: 0;
}

:root:has(#section-post_body) .panel__sub-title {
  order: -2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--ep-font-sans);
  font-size: var(--ep-fs-label);
  font-weight: 600;
  letter-spacing: -0.005em;
}

:root:has(#section-post_body) .panel__sub-title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ep-blue-text);
  box-shadow: 0 0 0 4px rgba(63, 109, 246, 0.16);
}

:root:has(#section-post_body) .panel__block .panel__sub-title a {
  color: var(--ep-blue-text);
  font-weight: 600;
  text-decoration: none;
}

:root:has(#section-post_body) .panel__title {
  order: -1;
  margin: 0 0 24px;
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* --- Lesson text ---------------------------------------------------------- */

:root:has(#section-post_body) .panel__block > :is(p, ul, ol, pre, h2, h3, h4, blockquote, .ep-callout) {
  margin: 0 0 18px;
}

:root:has(#section-post_body) .panel__block :is(p, li) {
  font-size: var(--ep-fs-body);
  line-height: 1.7;
  color: var(--ep-ink);
}

:root:has(#section-post_body) .panel__block strong {
  font-weight: 700;
  color: var(--ep-ink);
}

:root:has(#section-post_body) .panel__block a {
  color: var(--ep-blue-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

:root:has(#section-post_body) .panel__block ul {
  padding: 0;
  list-style: none;
}

:root:has(#section-post_body) .panel__block ul > li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 8px;
}

:root:has(#section-post_body) .panel__block ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ep-blue);
}

:root:has(#section-post_body) .panel__block :is(h2, h3, h4) {
  margin-top: 12px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

:root:has(#section-post_body) .panel__block h2 {
  font-size: 1.5rem;
}

:root:has(#section-post_body) .panel__block :is(h3, h4) {
  font-size: 1.2rem;
}

/* Prompts: wrap instead of running off the screen, so they can be read and
   selected on a phone. The copy button comes from the JS. */
:root:has(#section-post_body) .panel__block pre {
  position: relative;
  max-width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--ep-hairline);
  border-radius: var(--ep-radius-sm);
  background: var(--ep-tint);
  color: var(--ep-ink);
  font-family: var(--ep-font-mono);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: visible;
  -webkit-user-select: text;
  user-select: text;
}

:root:has(#section-post_body) .panel__block pre code {
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  white-space: inherit;
}


/* --- 15-callouts.css --- */
/* Lesson callouts built by ep-theme.js from the lesson text's own labels.
   They only exist when the JS ran, so these rules need no page scoping beyond
   the .ep-callout classes themselves.

   Kept deliberately quiet: one light tint for supporting boxes, one dark block
   (the prompt), one blue button (Mark as complete). Space separates the parts,
   not borders. */

/* The lesson column is a flex column, so margins don't collapse: space above only. */
.ep-callout {
  position: relative;
  margin-top: 12px !important;
  margin-bottom: 28px !important;
}

.ep-callout > :last-child {
  margin-bottom: 0 !important;
}

.ep-callout p,
.ep-callout li {
  margin: 0 0 8px;
}

.ep-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--ep-ink-faint);
}

.ep-icon svg {
  width: 16px;
  height: 16px;
}

/* In this lesson you'll: a plain checklist, no box */
.ep-callout--goals > p:first-of-type strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ep-ink-muted);
}

.ep-callout--goals ul {
  margin: 10px 0 0 !important;
}

.ep-callout--goals ul > li {
  padding-left: 28px !important;
  margin-bottom: 6px !important;
}

.ep-callout--goals ul > li::before {
  content: "" !important;
  top: 0.42em !important;
  left: 0 !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1.5px solid var(--ep-blue-tint-line);
  box-sizing: border-box;
}

.ep-callout--goals ul > li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.42em + 5px);
  width: 6px;
  height: 3.5px;
  border-left: 1.5px solid var(--ep-blue);
  border-bottom: 1.5px solid var(--ep-blue);
  transform: rotate(-45deg);
}

/* Workbook, parent notes: one light tint, no shadow */
.ep-callout--workbook,
.ep-callout--parent,
.ep-callout--parents {
  padding: 16px 18px;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-tint);
}

.ep-callout--workbook > p,
.ep-callout--parent p,
.ep-callout--parents p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.ep-callout--workbook ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0 !important;
}

.ep-callout--workbook ul > li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 500;
}

.ep-callout--workbook ul > li::before {
  display: none;
}

.ep-page {
  flex: none;
  font-family: var(--ep-font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ep-blue-text);
}

/* Prompt cards (ChatGPT / Claude / EP AI): no card around them, just the prompt */
.ep-prompt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ep-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--ep-pill);
  background: var(--ep-tint);
  font-family: var(--ep-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ep-ink-muted);
  white-space: nowrap;
}

.ep-chip--tool,
.ep-chip--epai {
  background: var(--ep-blue-tint);
  color: var(--ep-blue-text);
}

.ep-chip--code {
  font-family: var(--ep-font-mono);
  font-weight: 500;
}

.ep-prompt-title {
  display: block;
  margin: 0 0 4px;
  font-family: var(--ep-font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ep-ink);
}

/* Hide the <br> after the title: the title is now a block of its own. */
.ep-callout--prompt > p:first-child > br:first-of-type {
  display: none;
}

.ep-callout--prompt > p:not(:first-child) {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--ep-ink-muted) !important;
}

.ep-callout--prompt > p:first-child {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--ep-ink-muted) !important;
}

.ep-prompt-box {
  position: relative;
  margin: 14px 0 0;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-ink);
  overflow: hidden;
}

.ep-prompt-box pre {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ep-paper) !important;
  padding: 4px 18px 18px !important;
  font-size: 13.5px !important;
}

/* Prompts start folded to their first line; "Show prompt" opens the rest and
   the "fill in box … first" note. Copy always copies the whole prompt. */
.ep-prompt-box pre {
  padding: 16px 18px 6px !important;
}

.is-folded .ep-prompt-box pre code {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  white-space: pre-wrap;
  color: var(--ep-paper-muted);
}

.ep-prompt-note {
  display: block;
}

.ep-callout--prompt.is-folded .ep-prompt-note {
  display: none;
}

.ep-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px 8px;
}

.ep-unfold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--ep-pill);
  background: transparent;
  color: var(--ep-sky);
  font-family: var(--ep-font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ep-unfold svg {
  width: 15px;
  height: 15px;
  transition: transform var(--ep-med) var(--ep-ease-out);
}

.ep-unfold[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.ep-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--ep-pill);
  background: var(--ep-blue);
  color: var(--ep-white);
  font-family: var(--ep-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--ep-fast) var(--ep-ease-out);
}

.ep-copy:hover {
  background: #5079f7;
}

.ep-copy.is-copied {
  background: var(--ep-white);
  color: var(--ep-ink);
}

.ep-copy svg {
  width: 15px;
  height: 15px;
}

/* Write down / Rule */
.ep-note {
  padding: 0 0 0 14px;
  border-left: 2px solid var(--ep-blue-tint-line);
}

.ep-note-label {
  font-weight: 700;
  color: var(--ep-blue-text);
}

/* Downloads / Stuck?: the same every lesson, so small and out of the way */
.ep-meta {
  display: grid;
  gap: 8px;
  padding-top: 20px !important;
  border-top: 1px solid var(--ep-hairline);
}

.ep-meta-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ep-meta-row .ep-icon {
  margin-top: 2px;
}

.ep-meta-row p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--ep-ink-muted) !important;
}

.ep-meta-row p strong {
  color: var(--ep-ink-muted) !important;
  font-weight: 600 !important;
}

/* Next: a quiet link; Mark as complete below stays the one strong button */
.ep-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 20px !important;
  padding: 14px 16px;
  border-radius: var(--ep-radius-sm);
  border: 1px solid var(--ep-hairline);
  color: var(--ep-ink);
  text-decoration: none !important;
  transition: border-color var(--ep-fast) var(--ep-ease-out);
}

a.ep-next:hover {
  border-color: var(--ep-blue-tint-line);
}

.ep-next p {
  margin: 0 !important;
  font-family: var(--ep-font-display);
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35 !important;
  color: var(--ep-ink) !important;
}

.ep-next p strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--ep-font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ep-ink-faint) !important;
}

.ep-next .ep-arrow {
  display: grid;
  place-items: center;
  color: var(--ep-blue);
}

.ep-next .ep-arrow svg {
  width: 18px;
  height: 18px;
}

/* Downloads: workbook and slides for this lesson, near the top */
.ep-downloads {
  padding: 16px 18px;
  border-radius: var(--ep-radius-sm);
  border: 1px solid var(--ep-hairline);
  background: var(--ep-white);
}

.ep-downloads__title {
  margin: 0 0 10px !important;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--ep-ink-muted) !important;
}

.ep-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -8px;
  padding: 10px 8px;
  border-radius: var(--ep-radius-xs);
  color: var(--ep-ink) !important;
  text-decoration: none !important;
  transition: background var(--ep-fast) var(--ep-ease-out);
}

.ep-file:hover {
  background: var(--ep-tint);
}

.ep-file + .ep-file {
  border-top: 1px solid var(--ep-hairline);
}

.ep-file__type {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ep-blue-tint);
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ep-blue-text);
}

.ep-file__words {
  display: grid;
  min-width: 0;
}

.ep-file__name {
  font-weight: 700;
  font-size: 16px;
}

.ep-file__meta {
  overflow: hidden;
  font-size: 13px;
  color: var(--ep-ink-faint);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ep-file__get {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ep-blue);
}

.ep-file__get svg {
  width: 18px;
  height: 18px;
}

/* The lesson's own line ("Workbook Module 3 … .pdf (or use your printed workbook)") */
.ep-downloads__note {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: var(--ep-ink-muted) !important;
}

.ep-downloads__note > strong:first-child {
  display: none;
}

.ep-downloads.has-files .ep-downloads__note {
  margin-top: 8px !important;
  font-size: 13px !important;
  color: var(--ep-ink-faint) !important;
}


/* --- 20-course.css --- */
/* Course overview (dashboard), module list and module pages.
   First the plain Premier markup is styled (works with no JS), then the
   dashboard and level cards that ep-theme.js builds on the overview. */

/* --- Product hero without JS ------------------------------------------------ */

:root:has(.section--product) #section-product_hero .section--product_hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ep-grad-dark);
  color: var(--ep-paper);
  padding: 56px 0 64px;
}

:root:has(.section--product) #section-product_hero .background-image {
  background-image: none !important;
}

:root:has(.section--product) #section-product_hero h1 {
  font-family: var(--ep-font-display);
  font-size: var(--ep-fs-h2);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ep-paper);
  text-wrap: balance;
}

:root:has(.section--product) #section-product_hero .btn-cta {
  min-height: 56px;
  padding: 0 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow);
}

/* --- Syllabus lists (overview fallback, module list, module page) ------------- */

:root:has(:is(.section--product, .section--category, .section--categories)) .panel.syllabus {
  margin-bottom: 16px;
  background: var(--ep-white) !important;
  border: 1px solid var(--ep-card-line);
  border-radius: var(--ep-radius);
  box-shadow: var(--ep-shadow-card);
  overflow: hidden;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .panel.syllabus .panel__body {
  padding: 22px 18px 10px;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__heading {
  margin: 0 4px 8px;
  font-family: var(--ep-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ep-ink);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__heading .pull-right {
  font-family: var(--ep-font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ep-ink-faint);
  opacity: 1;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__item {
  margin: 0;
  border-top: 1px solid var(--ep-hairline);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__item > a {
  display: block;
  padding: 14px 6px;
  border-radius: var(--ep-radius-sm);
  color: var(--ep-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__item > a:hover .syllabus__title {
  color: var(--ep-blue-text);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus .media {
  display: flex;
  align-items: center;
  gap: 14px;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus .media .media-body {
  flex: 1 1 auto;
  min-width: 0;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus .media .media-right {
  flex: none;
}

/* Lesson thumbnails are Kajabi's grey placeholder until videos exist: hide them. */
:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__img:has(img[src*="placeholder"]) {
  display: none;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__img img {
  width: 96px;
  border-radius: 10px;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__title {
  margin: 0;
  font-family: var(--ep-font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ep-ink);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__text {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ep-ink-muted);
  opacity: 1;
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus__text:empty {
  display: none;
}

/* Done / not done marker on the right */
:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus .progress {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid var(--ep-stone);
  background: var(--ep-white);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus .progress:has(.progress__icon) {
  border-color: transparent;
  background: var(--ep-grad-btn);
  box-shadow: var(--ep-glow-small);
}

:root:has(:is(.section--product, .section--category, .section--categories)) .syllabus .progress__icon {
  color: var(--ep-white);
  font-size: 12px;
  line-height: 1;
}

/* Sidebar progress card */
:root:has(:is(.section--product, .section--category, .section--categories)) #section-product_sidebar .panel {
  margin-bottom: 16px;
  background: var(--ep-white) !important;
  border: 1px solid var(--ep-card-line);
  border-radius: var(--ep-radius);
  box-shadow: var(--ep-shadow-card);
}

:root:has(:is(.section--product, .section--category, .section--categories)) #section-product_sidebar .panel__body {
  padding: 22px 22px 24px !important;
}

:root:has(:is(.section--product, .section--category, .section--categories)) #section-product_sidebar .panel__heading {
  margin: 0 0 14px;
  font-family: var(--ep-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ep-ink);
}

/* --- Dashboard (built by JS on the course overview) -------------------------- */

.ep-has-dash #section-product_hero,
.ep-has-dash #section-product_syllabus > .panel.syllabus,
.ep-has-dash #section-product_sidebar {
  display: none !important;
}

.ep-has-dash .section--product .section__body {
  display: block;
  float: none;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.ep-dash {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip; /* can't be scrolled from inside, e.g. by focus or scrollIntoView */
  padding: 36px 0 44px;
  background: var(--ep-grad-dark);
  color: var(--ep-paper);
}

.ep-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ep-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ep-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
}

.ep-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -45%;
  width: 150%;
  height: 80%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(63, 109, 246, 0.55), rgba(63, 109, 246, 0) 100%);
}

.ep-wrap {
  width: min(100% - 2 * var(--ep-gutter), var(--ep-max));
  margin-inline: auto;
}

.ep-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--ep-font-sans);
  font-size: var(--ep-fs-label);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ep-blue-text);
}

.ep-dash .ep-label {
  color: var(--ep-sky);
}

.ep-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(63, 109, 246, 0.16);
}

.ep-dash .ep-dot {
  box-shadow:
    0 0 0 4px rgba(175, 203, 255, 0.14),
    0 0 12px rgba(175, 203, 255, 0.8);
}

.ep-dash__title {
  margin: 14px 0 0;
  font-family: var(--ep-font-display);
  font-size: var(--ep-fs-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ep-paper);
  text-wrap: balance;
}

.ep-hl {
  background: var(--ep-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ep-dash__grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

/* Continue card */
.ep-continue {
  display: grid;
  gap: 14px;
  padding: 22px 20px 20px;
  border-radius: var(--ep-radius);
  background: var(--ep-white);
  color: var(--ep-ink);
  box-shadow: 0 30px 60px -30px rgba(10, 18, 32, 0.8);
  text-decoration: none !important;
}

.ep-continue__eyebrow {
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-ink-faint);
}

.ep-continue__module {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-blue-text);
}

.ep-continue__title {
  margin: 4px 0 0;
  font-family: var(--ep-font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ep-ink);
  text-wrap: balance;
}

.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: var(--ep-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ep-grad-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow);
  font-family: var(--ep-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ep-white) !important;
  text-decoration: none !important;
}

.ep-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--ep-fast) var(--ep-ease-out);
}

.ep-continue:hover .ep-btn svg,
.ep-btn:hover svg {
  transform: translateX(3px);
}

/* Progress panel */
.ep-progress {
  padding: 22px 20px 20px;
  border-radius: var(--ep-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ep-sky-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ep-progress__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.ep-figure {
  font-family: var(--ep-font-display);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.ep-progress__caption {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ep-paper-muted);
  text-align: right;
}

.ep-bar {
  height: 6px;
  margin-top: 16px;
  border-radius: var(--ep-pill);
  background: rgba(175, 203, 255, 0.14);
  overflow: hidden;
}

.ep-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6189ff, #3f6df6);
  box-shadow: 0 0 12px rgba(63, 109, 246, 0.8);
  transform-origin: left;
}

/* Milestone path (the site's path, compact) */
.ep-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ep-path::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: calc(100% / var(--n, 6) - 6px);
  height: 2px;
  border-radius: 2px;
  background: rgba(175, 203, 255, 0.16);
}

.ep-path li {
  position: relative;
  padding-top: 22px;
  font-family: var(--ep-font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ep-paper-faint);
}

.ep-path li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ep-ink);
  border: 2px solid rgba(175, 203, 255, 0.35);
  box-sizing: border-box;
}

.ep-path li.is-lit {
  color: var(--ep-paper);
}

.ep-path li.is-lit::before {
  background: var(--ep-blue);
  border-color: var(--ep-blue);
  box-shadow:
    0 0 0 4px rgba(63, 109, 246, 0.2),
    0 0 14px rgba(63, 109, 246, 0.8);
}

@media (max-width: 599.98px) {
  .ep-path li {
    font-size: 0;
  }
  .ep-path li.is-next {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* --- Levels ------------------------------------------------------------------- */

.ep-levels {
  padding: 40px 0 8px;
}

.ep-levels__head h2 {
  margin: 12px 0 0;
  font-family: var(--ep-font-display);
  font-size: var(--ep-fs-h2);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ep-ink);
}

.ep-levels__head p {
  margin: 10px 0 0;
  max-width: 38rem;
  font-size: var(--ep-fs-body);
  color: var(--ep-ink-muted);
}

.ep-level-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ep-level {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  border-radius: var(--ep-radius);
  background: var(--ep-white);
  border: 1px solid var(--ep-card-line);
  box-shadow: var(--ep-shadow-card);
}

.ep-level.is-current {
  border-color: rgba(63, 109, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(63, 109, 246, 0.1), var(--ep-shadow-card);
}

.ep-level.is-empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--ep-stone);
  box-shadow: none;
}

.ep-level__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ep-level__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--ep-tint);
  font-family: var(--ep-font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ep-ink-muted);
}

.ep-level.is-done .ep-level__num,
.ep-level.is-current .ep-level__num {
  background: var(--ep-grad-btn);
  color: var(--ep-white);
  box-shadow: var(--ep-glow-small);
}

.ep-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--ep-pill);
  background: var(--ep-tint);
  font-family: var(--ep-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ep-ink-muted);
  white-space: nowrap;
}

.ep-level.is-current .ep-status {
  background: var(--ep-blue-tint);
  color: var(--ep-blue-text);
}

.ep-level.is-done .ep-status {
  background: var(--ep-ink);
  color: var(--ep-paper);
}

.ep-status svg {
  width: 13px;
  height: 13px;
}

.ep-level__name {
  margin: 16px 0 0;
  font-family: var(--ep-font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ep-ink);
}

.ep-level__name a {
  color: inherit !important;
  text-decoration: none !important;
}

/* The whole card is tappable through the name link */
.ep-level__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ep-level__milestone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-blue-text);
}

.ep-level__milestone::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(63, 109, 246, 0.16);
}

/* The challenge: the site's dark challenge card, small */
.ep-challenge {
  position: relative;
  margin-top: 14px;
  padding: 14px 16px 15px;
  border-radius: 18px;
  background: var(--ep-grad-panel);
  border: 1px solid rgba(97, 137, 255, 0.35);
  color: var(--ep-paper);
}

.ep-challenge__chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--ep-pill);
  border: 1px solid rgba(175, 203, 255, 0.35);
  background: rgba(63, 109, 246, 0.18);
  font-family: var(--ep-font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-sky);
}

.ep-challenge__name {
  display: block;
  margin-top: 8px;
  font-family: var(--ep-font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ep-challenge__summary {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ep-paper-muted);
}

.ep-challenge__note {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ep-sky);
}

.ep-level__bar {
  height: 4px;
  margin-top: 16px;
  border-radius: var(--ep-pill);
  background: var(--ep-tint);
  overflow: hidden;
}

.ep-level__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6189ff, #3f6df6);
}

/* Lessons drawer: holds Kajabi's own lesson links */
.ep-lessons {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.ep-lessons > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-ink-muted);
  -webkit-tap-highlight-color: transparent;
}

.ep-lessons > summary::-webkit-details-marker {
  display: none;
}

.ep-lessons > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ep-med) var(--ep-ease-out);
}

.ep-lessons[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.ep-lessons .syllabus__item > a {
  padding: 12px 2px !important;
}

@media (min-width: 900px) {
  .ep-dash {
    padding: 56px 0 64px;
  }
  .ep-dash__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 36px;
  }
  .ep-continue,
  .ep-progress {
    padding: 30px 30px 28px;
  }
  .ep-levels {
    padding-top: 64px;
  }
  .ep-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
  }
  .ep-level {
    padding: 26px 26px 18px;
  }
  .ep-level--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .ep-level-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Module page header (built by JS) ----------------------------------------- */

.ep-module-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 8px 0 18px;
  padding: 24px 22px 22px;
  border-radius: var(--ep-radius);
  background: var(--ep-grad-panel);
  border: 1px solid rgba(97, 137, 255, 0.3);
  box-shadow: var(--ep-shadow-panel);
  color: var(--ep-paper);
}

.ep-module-head .ep-label {
  color: var(--ep-sky);
}

.ep-module-head h1 {
  margin: 12px 0 0;
  font-family: var(--ep-font-display);
  font-size: var(--ep-fs-h2);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ep-paper);
}

.ep-module-head .ep-challenge {
  background: rgba(255, 255, 255, 0.05);
}

.ep-module-head .ep-bar {
  margin-top: 18px;
}

.ep-module-head__count {
  margin-top: 10px;
  font-family: var(--ep-font-mono);
  font-size: 12px;
  color: var(--ep-paper-muted);
}

.ep-has-module-head .section--category .syllabus__heading {
  display: none;
}

.ep-has-module-head .section--category .syllabus__item:first-of-type {
  border-top: 0;
}


/* --- 30-system.css --- */
/* Login, password reset and library. These come from the website template
   (Streamlined Home / Encore), installed so they load the theme snippet.
   Scoped to pages that contain Kajabi's auth form (.auth__content) or the
   library (data-dynamic-sections="library"). Forms keep Kajabi's behaviour. */

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) body {
  background: var(--ep-paper);
  color: var(--ep-ink);
  font-family: var(--ep-font-sans);
  -webkit-font-smoothing: antialiased;
}

/* --- Header ------------------------------------------------------------------ */

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .header,
:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .header__content {
  background: var(--ep-ink-deep) !important;
  border-bottom: 1px solid var(--ep-sky-line);
  color: var(--ep-paper);
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .header__container {
  min-height: 68px;
  align-items: center;
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) :is(#section-header, #section-footer) .logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) :is(#section-header, #section-footer) .logo__image {
  content: url(logo-ep-warmwhite.svg);
  width: auto !important;
  height: 24px !important;
  max-height: none !important;
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .logo::after {
  content: "EARLY PURSUIT";
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ep-paper);
  white-space: nowrap;
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header a {
  color: var(--ep-paper-muted);
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .hamburger__slice {
  background-color: var(--ep-paper) !important;
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ep-sky-line);
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .dropdown__menu {
  background: var(--ep-ink);
  border: 1px solid var(--ep-sky-line);
  border-radius: var(--ep-radius-sm);
  box-shadow: var(--ep-shadow-panel);
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-header .dropdown__item a {
  color: var(--ep-paper);
  font-weight: 600;
}

/* --- Login and password reset ------------------------------------------------- */

/* The page band is the site's dark hero, with the form as a white card on top. */
:root:has(.auth__content) main > div:not(#section-header):not(#section-footer) > .section,
:root:has(.auth__content) main > div:not(#section-header):not(#section-footer) section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ep-grad-dark) !important;
  padding: 56px 0 72px;
}

:root:has(.auth__content) main > div:not(#section-header):not(#section-footer) .section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ep-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ep-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
}

:root:has(.auth__content) .section__overlay {
  display: none;
}

:root:has(.auth__content) .auth__content .col-6,
:root:has(.auth__content) .row > .col-6:has(.auth__content) {
  flex: 0 0 100%;
  max-width: 100%;
}

:root:has(.auth__content) .auth__content {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 30px 22px 26px;
  background: var(--ep-white);
  border: 1px solid var(--ep-card-line);
  border-radius: var(--ep-radius);
  box-shadow: 0 40px 80px -40px rgba(10, 18, 32, 0.9);
  text-align: left;
}

:root:has(.auth__content) .auth__title {
  margin: 0 0 22px;
  font-family: var(--ep-font-display);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ep-ink);
  text-align: left;
}

:root:has(.auth__content) .auth__label {
  font-family: var(--ep-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-ink-muted);
}

:root:has(.auth__content) .auth__field,
:root:has(.auth__content) .auth__content input.form-control {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--ep-stone);
  border-radius: 14px;
  background: var(--ep-white);
  font-family: var(--ep-font-sans);
  font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--ep-ink);
  box-shadow: none;
}

:root:has(.auth__content) .auth__field:focus,
:root:has(.auth__content) .auth__content input.form-control:focus {
  border-color: var(--ep-blue);
  box-shadow: 0 0 0 4px rgba(63, 109, 246, 0.16);
  outline: none;
}

:root:has(.auth__content) .auth__content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  accent-color: var(--ep-blue);
}

:root:has(.auth__content) .auth__content :is(.form-btn, button[type="submit"]):not(.gsi-material-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--ep-pill) !important;
  background: var(--ep-grad-btn) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow);
  font-family: var(--ep-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ep-white) !important;
}

:root:has(.auth__content) .auth__content .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-family: var(--ep-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-ink-faint);
}

:root:has(.auth__content) .auth__content .divider::before,
:root:has(.auth__content) .auth__content .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ep-hairline);
}

:root:has(.auth__content) .auth__content .gsi-material-button {
  width: 100%;
  max-width: none;
  height: 52px;
  border-radius: var(--ep-pill);
  border-color: var(--ep-stone);
}

:root:has(.auth__content) .auth__link {
  margin-top: 18px;
  text-align: center;
}

:root:has(.auth__content) .auth__content a {
  color: var(--ep-blue-text);
  font-weight: 600;
}

/* --- Library -------------------------------------------------------------------- */

:root:has([data-dynamic-sections="library"]) .section.products {
  background: var(--ep-paper);
  padding: 40px 0 64px;
}

:root:has([data-dynamic-sections="library"]) .products__header {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

:root:has([data-dynamic-sections="library"]) .products__title {
  margin: 0;
  font-family: var(--ep-font-display);
  font-size: var(--ep-fs-h2);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ep-ink);
}

/* "Resume Course": the site's dark panel, as the main thing to tap */
:root:has([data-dynamic-sections="library"]) .resume-course {
  width: 100%;
  margin: 0;
}

:root:has([data-dynamic-sections="library"]) .resume-course__positioner {
  position: static;
  width: 100%;
}

:root:has([data-dynamic-sections="library"]) .resume-course__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 20px 20px 22px;
  border-radius: var(--ep-radius);
  background: var(--ep-grad-panel);
  border: 1px solid rgba(97, 137, 255, 0.35);
  box-shadow: var(--ep-shadow-panel);
  color: var(--ep-paper);
  text-decoration: none;
  text-align: left;
}

:root:has([data-dynamic-sections="library"]) .resume-course__content::after {
  content: "→";
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ep-grad-btn);
  box-shadow: var(--ep-glow-small);
  font-family: var(--ep-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ep-white);
}

:root:has([data-dynamic-sections="library"]) .resume-course__content {
  flex-direction: row !important;
  flex-wrap: nowrap;
}

:root:has([data-dynamic-sections="library"]) .resume-course__text {
  flex: 1 1 auto;
  order: 0;
  min-width: 0;
  width: auto;
  padding: 0;
  text-align: left !important;
}

:root:has([data-dynamic-sections="library"]) .resume-course {
  max-width: 640px;
}

:root:has([data-dynamic-sections="library"]) .resume-course__status {
  margin: 0 0 4px;
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-sky);
}

:root:has([data-dynamic-sections="library"]) .resume-course__title {
  margin: 0;
  font-family: var(--ep-font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ep-paper);
}

:root:has([data-dynamic-sections="library"]) .resume-course__image:has(img[src*="placeholder"]) {
  display: none;
}

/* Course card */
:root:has([data-dynamic-sections="library"]) .product {
  overflow: hidden;
  border: 1px solid var(--ep-card-line);
  border-radius: var(--ep-radius);
  background: var(--ep-white) !important;
  box-shadow: var(--ep-shadow-card);
}

/* Until a thumbnail is uploaded: the EP mark on the dark gradient */
:root:has([data-dynamic-sections="library"]) .product__image img[src*="placeholder"] {
  content: url(logo-ep-warmwhite.svg);
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 14% 32%;
  object-fit: contain;
  background: var(--ep-grad-dark);
}

:root:has([data-dynamic-sections="library"]) .product__content {
  padding: 20px 22px 22px;
}

:root:has([data-dynamic-sections="library"]) .product__title {
  margin: 0;
  font-family: var(--ep-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ep-ink);
}

:root:has([data-dynamic-sections="library"]) .product a {
  text-decoration: none;
}

:root:has([data-dynamic-sections="library"]) .progress__outer {
  height: 6px;
  margin: 14px 0 4px;
  border-radius: var(--ep-pill);
  background: var(--ep-tint);
  overflow: hidden;
}

:root:has([data-dynamic-sections="library"]) .progress__inner {
  height: 100%;
  border-radius: var(--ep-pill);
  background: linear-gradient(90deg, #6189ff, #3f6df6);
  box-shadow: 0 0 12px rgba(63, 109, 246, 0.6);
}

:root:has([data-dynamic-sections="library"]) .product__body:empty {
  display: none;
}

:root:has([data-dynamic-sections="library"]) .product .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 24px;
  border: 1px solid var(--ep-stone) !important;
  border-radius: var(--ep-pill) !important;
  background: var(--ep-white) !important;
  font-family: var(--ep-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ep-ink) !important;
}

/* --- Footer ------------------------------------------------------------------- */

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-footer .footer,
:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-footer .powered-by {
  background: var(--ep-ink-deep) !important;
  color: var(--ep-paper-faint);
  font-family: var(--ep-font-sans);
  font-size: var(--ep-fs-small);
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-footer a,
:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-footer .copyright {
  color: var(--ep-paper-muted) !important;
}

:root:has(:is(.auth__content, [data-dynamic-sections="library"])) #section-footer .logo__image {
  height: 20px !important;
  opacity: 0.8;
}


/* --- 40-epai.css --- */
/* EP AI page: a lesson whose title matches config/site.json epAiLessonTitle and
   whose text links to EP AI. ep-theme.js adds html.ep-epai and the embed.
   Without the JS the lesson simply shows its "Open EP AI" link. */

:root.ep-epai:has(#section-post_body) .player,
:root.ep-epai:has(#section-post_body) #section-breadcrumbs,
:root.ep-epai:has(#section-post_body) .mark-as-complete,
:root.ep-epai:has(#section-post_body) .smart-next {
  display: none !important;
}

:root.ep-epai:has(#section-post_body) #section-post_body .panel {
  margin-top: 0;
}

:root.ep-epai:has(#section-post_body) #section-post_body .panel__body {
  padding: 18px 18px 16px;
}

:root.ep-epai:has(#section-post_body) .panel__title {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
}

:root.ep-epai:has(#section-post_body) .section__row > .section__body {
  max-width: 960px !important;
}

.ep-epai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
}

.ep-epai-head p {
  margin: 0 !important;
  font-size: 15px !important;
  color: var(--ep-ink-muted) !important;
}

.ep-epai-newtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--ep-pill);
  border: 1px solid var(--ep-stone);
  background: var(--ep-white);
  font-family: var(--ep-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ep-ink) !important;
  text-decoration: none !important;
}

.ep-epai-newtab svg {
  width: 14px;
  height: 14px;
}

.ep-epai-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ep-paper);
  border: 1px solid var(--ep-hairline);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.ep-epai-frame iframe {
  display: block;
  width: 100%;
  /* Fill the screen under the header: 100svh where supported */
  height: calc(100vh - 220px);
  height: calc(100svh - 220px);
  min-height: 520px;
  border: 0;
  background: var(--ep-paper);
}

/* Phones: the chat gets the whole screen below the header, edge to edge. */
@media (max-width: 767.98px) {
  :root.ep-epai:has(#section-post_body) .section--global {
    padding-top: 0;
    padding-bottom: 0;
  }
  :root.ep-epai:has(#section-post_body) .section--global > .container {
    padding: 0;
    max-width: none;
  }
  :root.ep-epai:has(#section-post_body) .section__row {
    margin: 0;
  }
  :root.ep-epai:has(#section-post_body) .section__row > .section__body {
    padding: 0;
  }
  :root.ep-epai:has(#section-post_body) #section-post_body .panel {
    border-radius: 0;
    border-inline: 0;
    box-shadow: none;
  }
  :root.ep-epai:has(#section-post_body) #section-post_body .panel__body {
    padding: 14px 14px 0;
  }
  :root.ep-epai:has(#section-post_body) .panel__sub-title,
  .ep-epai-head p {
    display: none !important;
  }
  :root.ep-epai:has(#section-post_body) .panel__title {
    font-size: 1.375rem;
    margin-bottom: 0;
  }
  :root.ep-epai:has(#section-post_body) .panel__block {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
  }
  .ep-epai-head {
    margin: 0;
  }
  .ep-epai-frame {
    grid-column: 1 / -1;
    margin: 12px -14px 0;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
  }
  .ep-epai-frame iframe {
    height: calc(100vh - 128px);
    height: calc(100dvh - 128px);
    min-height: 0;
  }
  :root.ep-epai:has(#section-post_body) .footer {
    display: none;
  }
}

/* --- EP AI panel (course home) and floating button (modules and lessons) --------
   Built by ep-theme.js; nothing here applies until the JS adds these elements. */

.ep-ai-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: url(logo-ep-warmwhite.svg) center / 62% auto no-repeat, var(--ep-grad-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow-small);
}

/* Course home: sits on the dark dashboard band, under Continue and Progress */
.ep-ai-panel {
  margin-top: 14px;
  border-radius: var(--ep-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ep-sky-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.ep-ai-panel__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.ep-ai-panel__bar[hidden] {
  display: none;
}

/* Closed: a text box. Sending opens EP AI with the question; the logo opens it
   as it is; the Prompts and Lessons icons open it on those lists. */
.ep-ai-ask__open {
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: transform var(--ep-fast) var(--ep-ease-out);
}

.ep-ai-ask__open:hover {
  transform: translateY(-1px);
}

.ep-ai-ask__field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 48px;
  padding-right: 4px;
  border-radius: var(--ep-pill);
  border: 1px solid var(--ep-sky-line);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color var(--ep-fast) var(--ep-ease-out), background var(--ep-fast) var(--ep-ease-out);
}

.ep-ai-ask__field:focus-within {
  border-color: var(--ep-sky);
  background: rgba(255, 255, 255, 0.1);
}

.ep-ai-ask__input {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0 6px 0 18px;
  border: 0;
  background: none;
  /* 16px stops iPhones zooming in on tap */
  font-family: var(--ep-font-sans);
  font-size: 16px;
  color: var(--ep-paper);
  text-overflow: ellipsis;
  outline: none;
}

.ep-ai-ask__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ep-paper-muted);
  cursor: pointer;
  transition: color var(--ep-fast) var(--ep-ease-out), background var(--ep-fast) var(--ep-ease-out);
}

.ep-ai-ask__icon:hover {
  color: var(--ep-paper);
  background: rgba(255, 255, 255, 0.08);
}

.ep-ai-ask__icon svg {
  width: 20px;
  height: 20px;
}

/* Small phones: tighter, so the text box keeps room to type */
@media (max-width: 420px) {
  .ep-ai-ask {
    gap: 8px;
    padding: 10px;
  }
  .ep-ai-ask__input {
    padding-left: 14px;
  }
  .ep-ai-ask__icon {
    width: 34px;
  }
}

.ep-ai-ask__input::placeholder {
  color: var(--ep-paper-muted);
  opacity: 1;
}


.ep-ai-ask__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ep-grad-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow-small);
  color: var(--ep-white);
  cursor: pointer;
}

.ep-ai-ask__send svg {
  width: 20px;
  height: 20px;
}

/* Open: EP AI's name and a Hide button above the chat */
.ep-ai-panel__head .ep-ai-panel__title {
  flex: 1 1 0;
}

.ep-ai-panel__title,
.ep-ai-sheet__title {
  margin: 0;
  font-family: var(--ep-font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ep-paper);
}

.ep-ai-panel__hide {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--ep-pill);
  border: 1px solid var(--ep-sky-line);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--ep-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ep-paper);
  cursor: pointer;
}

.ep-ai-panel__hide svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.ep-ai-panel__body {
  padding: 0 8px 8px;
}

.ep-ai-frame {
  border-radius: 18px;
  overflow: hidden;
  background: var(--ep-paper);
}

.ep-ai-frame iframe {
  display: block;
  width: 100%;
  height: min(72vh, 700px);
  height: min(72svh, 700px);
  border: 0;
  background: var(--ep-paper);
}

.ep-ai-panel__foot {
  display: flex;
  justify-content: flex-end;
  padding: 10px 8px 4px;
}

.ep-ai-newtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-sky) !important;
  text-decoration: none !important;
}

.ep-ai-newtab svg {
  width: 14px;
  height: 14px;
}

/* Floating "Ask EP AI" button */
.ep-ai-fab {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 20px 6px 6px;
  border-radius: var(--ep-pill);
  border: 1px solid rgba(175, 203, 255, 0.22);
  background: var(--ep-grad-panel);
  box-shadow: 0 18px 40px -14px rgba(10, 18, 32, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--ep-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ep-paper);
  cursor: pointer;
  transition:
    transform var(--ep-fast) var(--ep-ease-out),
    opacity var(--ep-fast) var(--ep-ease-out);
}

.ep-ai-fab .ep-ai-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.ep-ai-fab:hover {
  transform: translateY(-2px);
}

.ep-ai-open .ep-ai-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
}

.ep-ai-fab:focus-visible,
.ep-ai-ask__send:focus-visible,
.ep-ai-ask__open:focus-visible,
.ep-ai-ask__icon:focus-visible,
.ep-ai-panel__hide:focus-visible,
.ep-ai-iconbtn:focus-visible {
  outline: 2px solid var(--ep-sky);
  outline-offset: 3px;
}

/* Room under the footer, so the button never sits on the last thing on the page */
:root.ep-has-fab .footer {
  padding-bottom: calc(36px + 76px + env(safe-area-inset-bottom)) !important;
}

/* The panel it opens: a bottom sheet on phones */
.ep-ai-sheet {
  position: fixed;
  inset: 0;
  z-index: 1001;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--ep-med);
}

.ep-ai-sheet.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.ep-ai-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.55);
  opacity: 0;
  transition: opacity var(--ep-med) var(--ep-ease-out);
}

.ep-ai-sheet.is-open .ep-ai-sheet__scrim {
  opacity: 1;
  pointer-events: auto;
}

.ep-ai-sheet__card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100% - 36px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: var(--ep-paper);
  box-shadow: 0 -24px 60px -24px rgba(10, 18, 32, 0.6);
  overflow: hidden;
  outline: none;
  transform: translateY(100%);
  transition: transform var(--ep-med) var(--ep-ease-out);
}

.ep-ai-sheet.is-open .ep-ai-sheet__card {
  transform: none;
  pointer-events: auto;
}

.ep-ai-sheet__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  background: var(--ep-grad-panel);
  color: var(--ep-paper);
}

.ep-ai-sheet__head .ep-ai-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.ep-ai-sheet__words {
  flex: 1 1 0;
  min-width: 0;
}

.ep-ai-sheet__title {
  font-size: 17px;
}

.ep-ai-sheet__sub {
  margin: 1px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ep-paper-muted);
}

.ep-ai-iconbtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ep-sky-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ep-paper) !important;
  cursor: pointer;
}

.ep-ai-iconbtn svg {
  width: 18px;
  height: 18px;
}

.ep-ai-sheet__frame {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--ep-paper);
}

.ep-ai-sheet__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767.98px) {
  :root.ep-ai-open,
  :root.ep-ai-open body {
    overflow: hidden;
  }
}

/* Bigger screens: a side panel that leaves the lesson usable next to it */
@media (min-width: 768px) {
  .ep-ai-sheet__scrim {
    display: none;
  }
  .ep-ai-sheet__card {
    left: auto;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(440px, 100% - 32px);
    height: auto;
    border-radius: var(--ep-radius);
    border: 1px solid rgba(16, 27, 45, 0.08);
    box-shadow: 0 40px 80px -30px rgba(10, 18, 32, 0.55);
    opacity: 0;
    transform: translateX(24px);
    transition:
      transform var(--ep-med) var(--ep-ease-out),
      opacity var(--ep-med) var(--ep-ease-out);
  }
  .ep-ai-sheet.is-open .ep-ai-sheet__card {
    opacity: 1;
  }
}

/* Wide screens: move the page over so nothing hides behind the panel */
@media (min-width: 1100px) {
  :root.ep-has-fab body {
    transition: padding-right var(--ep-med) var(--ep-ease-out);
  }
  :root.ep-ai-open body {
    padding-right: 472px;
  }
  /* Kajabi fixes its containers at 1140px; let them fit the narrower page */
  :root.ep-ai-open .container .container {
    width: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-ai-fab,
  .ep-ai-sheet__scrim,
  .ep-ai-sheet__card,
  :root.ep-has-fab body {
    transition: none !important;
  }
}


/* --- 50-calls.css --- */
/* Weekly calls (src/js/calls.js): the "Next call" bar on the course home, and
   the Calls page made from Kajabi's course live room. */

.ep-call {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  border-radius: var(--ep-radius-sm);
  color: var(--ep-paper);
}

.ep-call__words {
  min-width: 0;
}

.ep-call__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-family: var(--ep-font-mono);
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4 !important;
  color: var(--ep-sky) !important;
}

.ep-call__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ep-sky);
  box-shadow: 0 0 10px rgba(175, 203, 255, 0.9);
}

.ep-call__count {
  margin-left: 2px;
  padding: 2px 8px;
  border-radius: var(--ep-pill);
  background: rgba(175, 203, 255, 0.14);
  font-family: var(--ep-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ep-paper);
}

.ep-call__when {
  margin: 4px 0 0 !important;
  font-family: var(--ep-font-display);
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3 !important;
  color: var(--ep-paper) !important;
}

.ep-call__what {
  margin: 2px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: var(--ep-paper-muted) !important;
}

.ep-call__note {
  margin: 2px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--ep-paper-muted) !important;
}

.ep-call__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.ep-call__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--ep-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ep-grad-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--ep-glow-small);
  font-family: var(--ep-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ep-white) !important;
  text-decoration: none !important;
  cursor: pointer;
  list-style: none;
}

.ep-call__btn::-webkit-details-marker {
  display: none;
}

.ep-call__btn svg {
  width: 16px;
  height: 16px;
}

.ep-call__btn--quiet {
  border-color: var(--ep-sky-line);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  font-family: var(--ep-font-sans);
  font-size: 14px;
  font-weight: 600;
}

.ep-call__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-sky) !important;
  text-decoration: none !important;
}

.ep-call__link svg {
  width: 14px;
  height: 14px;
}

/* Live: the bar lights up and Join takes over */
.ep-call.is-live {
  border-color: rgba(97, 137, 255, 0.6) !important;
  background: rgba(63, 109, 246, 0.2) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .ep-call.is-live .ep-call__dot {
    animation: ep-ping 1.6s var(--ep-ease-out) infinite;
  }
}

@keyframes ep-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(175, 203, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(175, 203, 255, 0);
  }
}

/* Course home: a slim bar at the top of the dashboard */
.ep-call--bar {
  margin: 0 0 24px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--ep-sky-line);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (max-width: 559.98px) {
  .ep-call--bar .ep-call__actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Add to calendar: a small menu with the two calendar types */
.ep-cal-add {
  position: relative;
}

.ep-cal-add__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  min-width: 200px;
  padding: 6px;
  border-radius: var(--ep-radius-xs);
  background: var(--ep-white);
  box-shadow: 0 20px 40px -16px rgba(10, 18, 32, 0.5), 0 0 0 1px rgba(16, 27, 45, 0.06);
}

.ep-cal-add__menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-ink) !important;
  text-decoration: none !important;
}

.ep-cal-add__menu a:hover {
  background: var(--ep-tint);
}

/* --- Calls page (Kajabi's live room page) ------------------------------------------ */

/* Kajabi's own box (title, a Join button, the schedule text) and the lesson
   extras are replaced by the card below. */
:root.ep-calls-page #section-post_player,
:root.ep-calls-page .mark-as-complete,
:root.ep-calls-page .smart-next {
  display: none !important;
}

:root.ep-calls-page #section-post_body .panel {
  margin-top: 8px;
}

.ep-calls {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.ep-calls > .ep-call {
  padding: 18px 18px 18px 20px;
  background: var(--ep-grad-panel);
  border: 1px solid rgba(97, 137, 255, 0.3);
  box-shadow: 0 24px 48px -28px rgba(16, 27, 45, 0.7);
}

.ep-calls > .ep-call .ep-call__when {
  font-size: 20px !important;
}

.ep-month {
  padding: 14px;
  border-radius: var(--ep-radius-sm);
  border: 1px solid var(--ep-hairline);
  background: var(--ep-white);
}

.ep-month__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ep-month__title {
  margin: 0 !important;
  font-family: var(--ep-font-display);
  font-size: 17px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ep-month__nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ep-tint);
  color: var(--ep-ink);
  cursor: pointer;
}

.ep-month__nav svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

.ep-month__nav--next svg {
  transform: rotate(-90deg);
}

.ep-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.ep-month__dow {
  padding: 4px 0 6px;
  font-family: var(--ep-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ep-ink-faint);
}

.ep-month__day {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 7px 2px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ep-ink-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--ep-fast) var(--ep-ease-out);
}

button.ep-month__day:hover {
  background: var(--ep-tint);
}

.ep-month__day:focus-visible,
.ep-calls__row:focus-visible,
.ep-month__nav:focus-visible {
  outline: 2px solid var(--ep-blue);
  outline-offset: 2px;
}

.ep-month__day.is-blank {
  visibility: hidden;
}

.ep-month__day.has-call {
  background: var(--ep-blue-tint);
  color: var(--ep-blue-text);
  font-weight: 700;
}

.ep-month__time {
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ep-month__day.is-past {
  opacity: 0.45;
}

.ep-month__day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--ep-ink);
  color: var(--ep-ink);
}

/* The chosen day */
.ep-month__day.is-selected,
.ep-month__day.is-selected:hover {
  background: var(--ep-ink);
  color: var(--ep-paper);
  opacity: 1;
}

.ep-month__day.is-selected .ep-month__time {
  color: var(--ep-sky);
}

/* Calendar, then the chosen day's details right under it */
.ep-calls__calendar {
  display: grid;
  gap: 12px;
}

.ep-day {
  padding: 16px;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-tint);
}

.ep-day__date {
  margin: 0 0 12px !important;
  font-family: var(--ep-font-display);
  font-size: 17px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ep-ink) !important;
}

.ep-day__empty {
  font-weight: 400;
  margin: 0 !important;
  font-size: 15px !important;
  color: var(--ep-ink-muted) !important;
}

.ep-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: var(--ep-radius-xs);
  background: var(--ep-white);
  box-shadow: 0 1px 2px rgba(16, 27, 45, 0.05);
}

.ep-event + .ep-event {
  margin-top: 8px;
}

.ep-event__rail {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-right: 14px;
  border-right: 2px solid var(--ep-blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ep-event__start {
  font-family: var(--ep-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ep-ink);
}

.ep-event__end {
  font-size: 13px;
  color: var(--ep-ink-faint);
}

.ep-event__flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px !important;
  font-family: var(--ep-font-mono);
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ep-blue-text) !important;
}

.ep-event__flag .ep-call__dot {
  background: var(--ep-blue);
  box-shadow: none;
}

.ep-event__title {
  margin: 0 0 6px !important;
  font-family: var(--ep-font-display);
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  color: var(--ep-ink);
}

.ep-event__facts {
  display: grid;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.ep-event__facts li {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--ep-ink-muted) !important;
}

.ep-event__facts li::before {
  display: none !important;
}

.ep-event__facts svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--ep-ink-faint);
}

.ep-event__about {
  font-weight: 400;
  margin: 10px 0 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--ep-ink) !important;
}

.ep-event__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
}

.ep-event__note {
  font-weight: 400;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--ep-ink-faint) !important;
}

/* Add to calendar on a light card */
.ep-event .ep-call__btn--quiet {
  border-color: var(--ep-stone);
  background: var(--ep-white);
  color: var(--ep-ink) !important;
}

.ep-event.is-live {
  box-shadow: inset 0 0 0 1.5px var(--ep-blue), 0 12px 28px -16px rgba(63, 109, 246, 0.6);
}

.ep-event.is-past {
  opacity: 0.6;
}

.ep-calls__heading {
  margin: 0 0 4px !important;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--ep-ink-muted) !important;
}

.ep-calls__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--ep-hairline);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ep-calls__row:hover .ep-calls__day {
  color: var(--ep-blue-text);
}

.ep-calls__day {
  font-weight: 700;
  color: var(--ep-ink);
}

.ep-calls__time {
  font-weight: 400;
  font-size: 15px;
  color: var(--ep-ink-muted);
}

.ep-calls__tag {
  padding: 2px 8px;
  border-radius: var(--ep-pill);
  background: var(--ep-blue-tint);
  font-size: 12px;
  font-weight: 600;
  color: var(--ep-blue-text);
}


/* --- 55-milestones.css --- */
/* Milestone moment (src/js/milestones.js): shown once at the top of the course
   home when a student earns a new milestone. */

.ep-moment {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 20px 14px 20px 20px;
  border-radius: var(--ep-radius);
  border: 1px solid rgba(175, 203, 255, 0.3);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(63, 109, 246, 0.45), rgba(63, 109, 246, 0) 60%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px -30px rgba(63, 109, 246, 0.7);
}

.ep-moment__eyebrow {
  margin: 0;
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ep-sky);
}

.ep-moment__name {
  margin: 6px 0 0;
  font-family: var(--ep-font-display);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ep-moment__line {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ep-paper-muted);
}

.ep-moment__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ep-sky-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ep-paper);
  cursor: pointer;
}

.ep-moment__close svg {
  width: 16px;
  height: 16px;
}

.ep-moment.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 220ms var(--ep-ease-out),
    transform 220ms var(--ep-ease-out);
}

/* A small burst of light from the top-left, once */
.ep-moment__burst {
  position: absolute;
  z-index: -1;
  top: 30px;
  left: 34px;
  pointer-events: none;
}

.ep-moment__burst i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ep-sky);
  box-shadow: 0 0 10px rgba(175, 203, 255, 0.9);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ep-moment {
    animation: ep-moment-in 620ms var(--ep-ease-out) both;
  }
  .ep-moment__burst i {
    animation: ep-burst 1100ms var(--ep-ease-out) 200ms both;
  }
  .ep-moment__burst i:nth-child(1) { --x: 120px; --y: -10px; }
  .ep-moment__burst i:nth-child(2) { --x: 90px; --y: 60px; }
  .ep-moment__burst i:nth-child(3) { --x: 200px; --y: 30px; }
  .ep-moment__burst i:nth-child(4) { --x: 40px; --y: 90px; animation-delay: 280ms; }
  .ep-moment__burst i:nth-child(5) { --x: 160px; --y: 85px; animation-delay: 320ms; }
  .ep-moment__burst i:nth-child(6) { --x: 240px; --y: -4px; animation-delay: 360ms; }
  .ep-path li.is-new::before {
    animation: ep-ping 1.4s var(--ep-ease-out) 3;
  }
}

@keyframes ep-moment-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes ep-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.4);
  }
}


/* --- 60-nav.css --- */
/* Side menu (src/js/nav.js): a fixed sidebar on wide screens, a drawer from ☰
   on phones. Also the Home / Modules split of the course home. */

.ep-nav {
  position: fixed;
  z-index: 1002;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 264px;
  padding: 18px 12px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--ep-grad-panel);
  border-right: 1px solid rgba(175, 203, 255, 0.1);
  color: var(--ep-paper);
  outline: none;
}

.ep-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 8px 22px;
}

.ep-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none !important;
}

.ep-nav__logo {
  width: 46px;
  height: 22px;
  background: url(logo-ep-warmwhite.svg) left center / contain no-repeat;
}

.ep-nav__name {
  font-family: var(--ep-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ep-paper-muted);
}

.ep-nav__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ep-sky-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ep-paper);
  cursor: pointer;
}

.ep-nav__close svg {
  width: 16px;
  height: 16px;
}

.ep-nav__list {
  display: grid;
  gap: 2px;
}

.ep-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0 !important; /* Kajabi spaces out links inside <nav> */
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--ep-paper-muted) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    background var(--ep-fast) var(--ep-ease-out),
    color var(--ep-fast) var(--ep-ease-out);
}

.ep-nav__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ep-paper) !important;
}

.ep-nav__item.is-active {
  background: rgba(63, 109, 246, 0.2);
  box-shadow: inset 3px 0 0 var(--ep-blue);
  color: var(--ep-white) !important;
}

.ep-nav__item:focus-visible,
.ep-nav__close:focus-visible,
.ep-nav-toggle:focus-visible,
.ep-nav__account:focus-visible {
  outline: 2px solid var(--ep-sky);
  outline-offset: 2px;
}

.ep-nav__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.ep-nav__icon svg {
  width: 20px;
  height: 20px;
}

.ep-nav__icon .ep-ai-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: none;
}

.ep-nav__words {
  display: grid;
  min-width: 0;
}

.ep-nav__label {
  font-family: var(--ep-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.ep-nav__sub {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ep-paper-faint);
}

.ep-nav__item.is-active .ep-nav__sub {
  color: var(--ep-sky);
}

.ep-nav__foot {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid var(--ep-sky-line);
}

.ep-nav__account {
  margin: 0 !important;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ep-paper-faint) !important;
  text-decoration: none !important;
}

.ep-nav__account:hover {
  color: var(--ep-paper) !important;
}

/* Wide screens: the menu is always there, in place of Kajabi's top bar */
@media (min-width: 1024px) {
  :root.ep-has-nav body {
    padding-left: 264px;
  }
  :root.ep-has-nav #section-header {
    display: none;
  }
  /* Kajabi fixes its containers at 1140px; let them fit beside the menu */
  :root.ep-has-nav .container .container {
    width: auto !important;
  }
  .ep-nav__close,
  .ep-nav-toggle,
  .ep-nav-scrim {
    display: none !important;
  }
}

/* Phones and tablets: a drawer from the ☰ button */
@media (max-width: 1023.98px) {
  .ep-nav {
    width: min(300px, 86vw);
    box-shadow: 30px 0 60px -30px rgba(10, 18, 32, 0.6);
    transform: translateX(-102%);
    visibility: hidden;
    transition:
      transform var(--ep-med) var(--ep-ease-out),
      visibility 0s linear var(--ep-med);
  }
  :root.ep-nav-open .ep-nav {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .ep-nav-scrim {
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: rgba(10, 18, 32, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ep-med) var(--ep-ease-out);
  }
  :root.ep-nav-open .ep-nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  :root.ep-nav-open,
  :root.ep-nav-open body {
    overflow: hidden;
  }
  /* Our ☰ replaces Kajabi's, which only opened its small account menu */
  :root.ep-has-nav #section-header .header-ham,
  :root.ep-has-nav #section-header .header-menu {
    display: none !important;
  }
  :root.ep-has-nav #section-header .header .container {
    position: relative;
  }
  .ep-nav-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ep-paper);
    transform: translateY(-50%);
    cursor: pointer;
  }
  .ep-nav-toggle svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-nav,
  .ep-nav-scrim {
    transition: none !important;
  }
}

/* Course home split into two tabs: Home (dashboard) and Modules (#modules) */
:root.ep-view-modules .ep-dash {
  display: none !important;
}

:root.ep-view-home #section-product_syllabus .ep-levels {
  display: none !important;
}

:root.ep-view-home .ep-has-dash .section--product,
:root.ep-view-home.ep-has-dash .section--product {
  padding-bottom: 0;
}

.ep-progress__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-sky) !important;
  text-decoration: none !important;
}

.ep-progress__all svg {
  width: 14px;
  height: 14px;
}


/* --- 90-motion.css --- */
/* Motion: one soft rise for cards as a page opens, same easing as the site.
   Nothing moves for people who ask their device for reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .ep-js .ep-callout,
  .ep-js .ep-next,
  .ep-js .ep-level {
    animation: ep-rise 520ms var(--ep-ease-out) both;
  }
  .ep-js .ep-callout:nth-of-type(2) { animation-delay: 40ms; }
  .ep-js .ep-callout:nth-of-type(3) { animation-delay: 80ms; }
  .ep-js .ep-callout:nth-of-type(4) { animation-delay: 120ms; }
  .ep-js .ep-callout:nth-of-type(n + 5) { animation-delay: 160ms; }

  :root:has(:is(.section--product, .section--category, .section--categories)) .progress__fill {
    animation: ep-fill 900ms var(--ep-ease-out) both;
    transform-origin: left;
  }
}

@keyframes ep-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes ep-fill {
  from {
    transform: scaleX(0);
  }
}
