/* Intellia lesson player — contents on the left, video on the right.
   Scoped under .iap so nothing here can reach the theme. */

.iap{
  --iap-purple-700:#4A2273; --iap-purple-600:#5A2D82; --iap-purple-100:#F2ECF9;
  --iap-green-700:#2F7A2C; --iap-green-600:#3E9438; --iap-green-50:#F1FAF0;
  --iap-ink-900:#14121A; --iap-ink-800:#231F2E; --iap-ink-700:#3B3746;
  --iap-ink-600:#57536A; --iap-ink-500:#6B6779; --iap-ink-400:#8B8797;
  --iap-bg:#fff; --iap-soft:#F7F6FA; --iap-line:#E3E0E9; --iap-line-2:#EFEDF3;
  --iap-night:#1A0C2B;
  --iap-top:58px;
  --iap-f-display:"Sora",system-ui,sans-serif;
  --iap-f-body:"Plus Jakarta Sans",system-ui,sans-serif;
  --iap-f-mono:"JetBrains Mono",ui-monospace,monospace;
  background:var(--iap-bg);color:var(--iap-ink-700);
  font-family:var(--iap-f-body);font-size:16px;line-height:1.6;
  min-height:100vh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased;
}
.iap *{box-sizing:border-box}
.iap h1,.iap h2,.iap h3{font-family:var(--iap-f-display);color:var(--iap-ink-900);margin:0;letter-spacing:-.02em}
.iap p{margin:0 0 14px}
.iap a{color:var(--iap-purple-700)}
.iap :focus-visible{outline:3px solid var(--iap-purple-600);outline-offset:2px;border-radius:4px}

/* top bar */
.iap-bar{display:flex;align-items:center;gap:16px;padding:0 18px;height:58px;flex:none;
  background:var(--iap-night);color:#fff;position:sticky;top:0;z-index:50}
.iap-bar a{color:#fff;text-decoration:none}
.iap-brand{display:flex;align-items:center;gap:10px;font-family:var(--iap-f-display);
  font-weight:700;font-size:14.5px;white-space:nowrap}
.iap-brand img{height:26px;width:auto;display:block}
.iap-bar-course{font-size:14px;color:#C9BBDB;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.iap-bar-prog{display:flex;align-items:center;gap:10px;font-family:var(--iap-f-mono);font-size:12px;color:#C9BBDB;flex:none}
.iap-bar-prog .iap-track{width:120px;height:6px;border-radius:99px;background:rgba(255,255,255,.18);overflow:hidden}
.iap-bar-prog .iap-track i{display:block;height:100%;background:var(--iap-green-600)}
.iap-exit{font-size:13.5px;font-weight:600;border:1px solid rgba(255,255,255,.35);
  border-radius:7px;padding:7px 13px;flex:none}
.iap-exit:hover{background:rgba(255,255,255,.12)}

/* the two panes */
.iap-main{display:grid;grid-template-columns:330px minmax(0,1fr);flex:1;min-height:0}
.iap-side{border-right:1px solid var(--iap-line);background:#fff;overflow-y:auto;
  max-height:calc(100vh - 58px);position:sticky;top:58px}
.iap-side-h{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:15px 18px;border-bottom:1px solid var(--iap-line);position:sticky;top:0;background:#fff;z-index:2}
.iap-side-h b{font-family:var(--iap-f-display);font-size:15.5px;color:var(--iap-ink-900)}
.iap-side-h span{font-family:var(--iap-f-mono);font-size:11.5px;color:var(--iap-ink-500)}

.iap-sec{border-bottom:1px solid var(--iap-line-2)}
.iap-sec>summary{cursor:pointer;list-style:none;padding:14px 38px 14px 18px;position:relative;
  font-family:var(--iap-f-display);font-weight:700;font-size:14.5px;color:var(--iap-ink-900);background:var(--iap-soft)}
.iap-sec>summary::-webkit-details-marker{display:none}
.iap-sec>summary::after{content:"";position:absolute;right:18px;top:19px;width:8px;height:8px;
  border-right:2px solid var(--iap-ink-500);border-bottom:2px solid var(--iap-ink-500);
  transform:rotate(45deg);transition:transform .16s}
.iap-sec[open]>summary::after{transform:rotate(-135deg)}
.iap-sec .iap-sn{display:block;font-family:var(--iap-f-mono);font-size:10px;letter-spacing:.13em;
  color:var(--iap-purple-600);font-weight:500;margin-bottom:3px}

.iap-item{display:grid;grid-template-columns:20px 1fr;gap:11px;padding:11px 18px;
  text-decoration:none;border-left:3px solid transparent;align-items:start}
.iap-item:hover{background:var(--iap-soft)}
.iap-item.iap-now{background:var(--iap-purple-100);border-left-color:var(--iap-purple-600)}
.iap-item .iap-ic{width:18px;height:18px;margin-top:2px}
.iap-item .iap-ic.iap-done{color:var(--iap-green-600)}
.iap-item .iap-ic.iap-play{color:var(--iap-purple-600)}
.iap-item .iap-ic.iap-lock{color:var(--iap-ink-400)}
.iap-item .iap-t{font-size:14.5px;color:var(--iap-ink-900);line-height:1.35;display:block}
.iap-item.iap-now .iap-t{font-weight:700}
.iap-item.iap-off .iap-t{color:var(--iap-ink-500)}
.iap-item .iap-m{display:block;font-family:var(--iap-f-mono);font-size:11px;color:var(--iap-ink-500);margin-top:3px}
.iap-item .iap-m em{font-style:normal;color:var(--iap-purple-700)}

/* the stage */
.iap-stage{min-width:0;display:flex;flex-direction:column}
/* On a wide screen a full-width 16:9 player pushes the tabs off the bottom
   of the window, so the picture is capped by the height the window has left
   and centred on a black band. */
.iap-screen{background:#000;display:flex;flex-direction:column;align-items:center}
.iap-video{position:relative;background:#000;aspect-ratio:16/9;width:100%;
  max-width:calc((100vh - var(--iap-top) - 110px) * 16 / 9)}
.iap-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}


/* Astra capitalises and letter-spaces every button and link-button on the
   site; inside the player the labels are written the way they should read. */
.iap button,.iap a,.iap button *,.iap a *{text-transform:none!important;letter-spacing:normal}
.iap button{font-family:inherit;line-height:1.2;box-shadow:none}

/* .iap a sets the link colour and outranks a single class, so the button
   label needs the extra class to stay white. */
.iap .iap-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--iap-green-600);color:#fff;text-decoration:none;
  font-weight:700;font-size:15px;padding:12px 24px;border-radius:999px;min-height:46px;line-height:22px}
.iap .iap-cta:hover{background:var(--iap-green-700);color:#fff}

/* ---- the card over the picture when the video ends ---- */
.iap-next{position:absolute;inset:0;z-index:3;display:grid;place-items:center;padding:24px;
  background:radial-gradient(120% 90% at 50% 0%,rgba(90,45,130,.55),rgba(14,7,24,.94) 62%);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:iap-in .25s ease-out}
@keyframes iap-in{from{opacity:0}to{opacity:1}}
.iap-next-in{width:100%;max-width:520px;text-align:center;display:flex;flex-direction:column;align-items:center}
.iap-next-ok{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#BFF0B9;
  background:rgba(62,148,56,.18);border:1px solid rgba(110,200,100,.35);border-radius:999px;padding:5px 13px 5px 10px;margin-bottom:22px}
.iap-next-ok svg{width:15px;height:15px}
.iap-next .iap-k{font-family:var(--iap-f-mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#C9B6E4}
.iap-next-h{display:block;font-family:var(--iap-f-display);font-weight:700;font-size:clamp(20px,2.2vw,27px);line-height:1.25;
  color:#fff;margin:8px 0 8px;letter-spacing:-.02em}
.iap-next-meta{font-size:14px;color:#B9ABCF;margin-bottom:24px}
.iap-next .iap-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;width:100%}
.iap-next .iap-row button{font-size:15px;font-weight:700;border-radius:999px;padding:0 24px;min-height:48px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:background .15s,border-color .15s}
.iap .iap-go{background:var(--iap-green-600);color:#fff;border:0}
.iap .iap-go:hover{background:var(--iap-green-700);color:#fff}
.iap .iap-stay{background:rgba(255,255,255,.06);color:#fff;border:1.5px solid rgba(255,255,255,.38)}
.iap .iap-stay:hover{background:rgba(255,255,255,.14);border-color:#fff;color:#fff}
.iap .iap-replay{margin-top:20px;background:none;border:0;color:#B9ABCF;font-size:13.5px;font-weight:600;
  cursor:pointer;padding:8px 10px;min-height:38px;border-radius:6px}
.iap .iap-replay:hover{color:#fff;background:rgba(255,255,255,.08)}
.iap-ring{width:22px;height:22px;display:inline-block}
.iap-ring svg{width:22px;height:22px;transform:rotate(-90deg)}
.iap-ring circle{fill:none;stroke:rgba(255,255,255,.35);stroke-width:4}
.iap-ring .iap-ring-on{stroke:#fff;stroke-dasharray:94.25;stroke-dashoffset:94.25}

/* ---- the tabs, centred under the picture ---- */
.iap-tabbar{border-bottom:1px solid var(--iap-line);background:#fff}
.iap-tabs{display:flex;justify-content:center;gap:6px;max-width:860px;margin:0 auto;padding:0 16px}
.iap .iap-tabs button{background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;border-radius:0;
  padding:15px 18px 13px;font-size:15px;font-weight:600;color:var(--iap-ink-600);cursor:pointer;min-height:50px}
.iap .iap-tabs button:hover,.iap .iap-tabs button:focus{background:none;color:var(--iap-ink-900)}
.iap .iap-tabs button[aria-selected="true"]{color:var(--iap-purple-700);border-bottom-color:var(--iap-purple-600)}
.iap .iap-tab-m{display:none}

.iap-body{padding:30px 28px 64px;max-width:860px;width:100%;margin:0 auto}
.iap-crumb{font-family:var(--iap-f-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--iap-ink-400);margin-bottom:8px}
.iap-body h1{font-size:clamp(22px,2.4vw,28px);line-height:1.2;margin-bottom:6px}
.iap-pane{margin-top:22px}
.iap-transcript p{font-size:15.5px;line-height:1.75;color:var(--iap-ink-700);max-width:68ch}

.iap-quizbox{border:1px solid var(--iap-line);border-radius:14px;padding:16px 18px;
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0 0;background:var(--iap-soft)}
.iap-quizbox-ic{width:44px;height:44px;border-radius:11px;background:var(--iap-purple-100);color:var(--iap-purple-600);
  display:grid;place-items:center;flex:none}
.iap-quizbox-ic svg{width:24px;height:24px}
.iap-quizbox small{display:block;font-family:var(--iap-f-mono);font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--iap-purple-600)}
.iap-quizbox b{font-family:var(--iap-f-display);font-size:16px;color:var(--iap-ink-900);display:block;margin:1px 0}
.iap-quizbox span{font-size:13.5px;color:var(--iap-ink-500)}
.iap-quizbox .iap-grow{flex:1;min-width:180px}
.iap-move{display:flex;justify-content:space-between;gap:12px;margin-top:30px;
  padding-top:20px;border-top:1px solid var(--iap-line-2)}
.iap-move a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;min-width:0;
  font-size:14.5px;border:1.5px solid var(--iap-line);border-radius:10px;padding:11px 18px;
  color:var(--iap-ink-800);min-height:46px}
.iap-move-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iap-move a:hover{border-color:var(--iap-purple-600);color:var(--iap-purple-700)}
.iap-move .iap-fwd{background:var(--iap-purple-600);border-color:var(--iap-purple-600);color:#fff;flex:none;max-width:60%}
.iap-move .iap-fwd:hover{background:var(--iap-purple-700);color:#fff}

.iap-done-note{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;
  color:var(--iap-green-700);background:var(--iap-green-50);border:1px solid #CFE9CB;
  border-radius:999px;padding:6px 14px;margin-top:10px}
.iap-done-note svg{width:15px;height:15px}

@media (max-width:900px){
  .iap-main{grid-template-columns:1fr}
  /* the rail becomes a drawer that slides in from the left */
  .iap .iap-side{position:fixed;top:0;left:0;bottom:0;width:min(86vw,360px);max-height:none;z-index:100001;
    border:0;border-right:1px solid var(--iap-line);background:#fff;box-shadow:0 0 40px rgba(20,10,35,.28);
    transform:translateX(-102%);visibility:hidden;transition:transform .26s ease,visibility 0s linear .26s;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html.iap-drawer-open .iap .iap-side{transform:none;visibility:visible;transition:transform .26s ease}
  html.iap-drawer-open,html.iap-drawer-open body{overflow:hidden}
  .iap-side-h{top:0}
  .iap .iap-side-x{display:grid}
  .iap .iap-menu{display:grid}
  .iap-scrim{position:fixed;inset:0;z-index:100000;background:rgba(14,7,24,.5);animation:iap-in .2s}
  .iap-tabs{gap:0;padding:0}
  .iap .iap-tabs button{flex:1;padding:14px 8px 12px;font-size:14.5px}
  .iap-tabbar{position:sticky;top:var(--iap-top);z-index:20}
  .iap-bar-course{display:none}
  .iap-body{padding:20px 16px 48px}
  .iap-video{max-width:none}
  .iap-bar-prog .iap-track{width:70px}
}
@media (prefers-reduced-motion:reduce){.iap *{transition:none!important}}

/* The theme's header and footer step aside: this page is a player, and the
   marketing chrome both steals the height the video needs and breaks the
   illusion of being inside a course. wp_head() still runs, so the theme's
   own styles and every plugin's assets load as normal. */
body.iap-page #masthead,
body.iap-page .site-header,
body.iap-page .ehf-header,
body.iap-page #colophon,
body.iap-page .site-footer,
body.iap-page .ehf-footer,
body.iap-page .ast-above-header-wrap,
body.iap-page .ast-below-header-wrap,
/* the footer is built with Elementor's header-footer builder, which wraps it
   in its own elements rather than the theme's */
body.iap-page .hfe-before-footer-wrap,
body.iap-page .footer-width-fixer,
body.iap-page footer.site-footer,
body.iap-page .elementor-location-header,
body.iap-page .elementor-location-footer{display:none!important}
body.iap-page #page,
body.iap-page #content,
body.iap-page .site-content,
body.iap-page .ast-container,
body.iap-page #primary,
body.iap-page .entry-content{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
/* Astra's two-container layout makes .ast-container a flex row, which sizes
   our player to its content instead of the window. */
body.iap-page .ast-container,
body.iap-page .site-content,
body.iap-page #primary,
body.iap-page #content{display:block!important;float:none!important}
body.iap-page .iap{width:100%}
body.iap-page{overflow-x:hidden}
body.admin-bar .iap{--iap-top:90px}
body.admin-bar .iap-bar{top:32px}
@media screen and (max-width:782px){body.admin-bar .iap-bar{top:46px}body.admin-bar .iap{--iap-top:104px}}
@media screen and (max-width:600px){body.admin-bar .iap-bar{top:0}body.admin-bar .iap{--iap-top:58px}}
body.admin-bar .iap-side{top:90px;max-height:calc(100vh - 90px)}
@media (max-width:900px){body.admin-bar .iap .iap-side{top:0;max-height:none}}

/* ---- the panel under the player ---- */
.iap-about{margin-top:34px}
.iap-block{padding:26px 0;border-top:1px solid var(--iap-line-2)}
.iap-block h2{font-size:19px;margin-bottom:14px}
.iap-facts{font-family:var(--iap-f-mono);font-size:13px;color:var(--iap-ink-500);margin-bottom:14px}

.iap-team{display:grid;grid-template-columns:76px 1fr;gap:18px;align-items:start}
.iap-team .iap-mark{width:76px;height:76px;border-radius:12px;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--iap-purple-600),var(--iap-night));color:#fff;
  font-family:var(--iap-f-display);font-weight:700;font-size:12px;text-align:center;line-height:1.3;padding:6px}
.iap-team b{font-family:var(--iap-f-display);font-size:17px;color:var(--iap-ink-900);display:block}
.iap-team .iap-role{display:block;font-size:13px;color:var(--iap-purple-700);font-weight:600;margin:2px 0 10px}
.iap-team p{margin:0;font-size:15px}

.iap-learn{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:11px}
.iap-learn li{display:grid;grid-template-columns:19px 1fr;gap:10px;font-size:15px;color:var(--iap-ink-700)}
.iap-learn svg{width:19px;height:19px;color:var(--iap-green-600);margin-top:3px}

.iap-chips{display:flex;gap:8px;flex-wrap:wrap}
.iap-chip{font-size:13.5px;font-weight:600;color:var(--iap-ink-800);background:var(--iap-soft);
  border:1px solid var(--iap-line);border-radius:999px;padding:7px 14px}

.iap-revs{display:grid;gap:12px}
.iap-rev{border:1px solid var(--iap-line);border-radius:12px;padding:18px;background:#fff}
.iap-rev p{font-size:15px;color:var(--iap-ink-800);margin:0 0 10px}
.iap-rev span{font-family:var(--iap-f-mono);font-size:12px;color:var(--iap-ink-500)}

.iap-faq details{border-bottom:1px solid var(--iap-line-2)}
.iap-faq summary{cursor:pointer;list-style:none;padding:15px 36px 15px 0;position:relative;min-height:46px;
  font-family:var(--iap-f-display);font-weight:700;font-size:15.5px;color:var(--iap-ink-900)}
.iap-faq summary::-webkit-details-marker{display:none}
.iap-faq summary::after{content:"+";position:absolute;right:4px;top:13px;
  font-family:var(--iap-f-mono);font-size:19px;color:var(--iap-purple-600)}
.iap-faq details[open] summary::after{content:"\2013"}
.iap-faq p{padding:0 0 16px;color:var(--iap-ink-600);max-width:66ch;margin:0}

@media (max-width:640px){
  .iap-team{grid-template-columns:1fr;gap:12px}
  .iap-team .iap-mark{width:62px;height:62px;font-size:11px}
}

/* ---- the quiz, inside the player frame ---- */
/* The quiz takes the picture's place and the whole height under the top
   bar, so a question and its answers sit on screen without scrolling. */
.iap-quiz{background:#fff;width:100%;display:flex;flex-direction:column;
  height:calc(100vh - var(--iap-top));height:calc(100dvh - var(--iap-top));min-height:460px;max-height:880px}
.iap-quiz iframe{width:100%;flex:1;border:0;display:block;background:#fff}
.iap-qbar{display:flex;align-items:center;gap:10px;flex:none;padding:8px 12px 8px 8px;min-height:60px;
  background:var(--iap-night);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.iap .iap-qback{display:inline-flex;align-items:center;gap:3px;background:transparent;border:0;color:#C9BBDB;
  font-size:13.5px;font-weight:600;padding:8px 12px 8px 6px;border-radius:8px;cursor:pointer;min-height:44px;flex:none}
.iap .iap-qback:hover{background:rgba(255,255,255,.1);color:#fff}
.iap-qback svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.iap-qbar-t{flex:1;min-width:0;padding-left:12px;border-left:1px solid rgba(255,255,255,.14)}
.iap-qbar-t small{display:block;font-family:var(--iap-f-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:#B2A3C8;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iap-qbar-t span{display:block;font-family:var(--iap-f-display);font-weight:700;font-size:15px;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iap-qbar-do{display:flex;align-items:center;gap:6px;flex:none}
.iap .iap-qskip{color:#fff;text-decoration:none;font-size:14px;font-weight:700;padding:0 18px;border-radius:999px;
  min-height:42px;display:inline-flex;align-items:center;white-space:nowrap;
  background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.55)}
.iap .iap-qskip:hover{background:#fff;color:var(--iap-night);border-color:#fff}
.iap .iap-qnext{background:var(--iap-green-600);color:#fff;text-decoration:none;font-size:14.5px;font-weight:700;
  padding:0 20px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap;animation:iap-in .3s}
.iap .iap-qnext:hover{background:var(--iap-green-700);color:#fff}

/* the embedded quiz page itself: the theme steps aside, the quiz stays */
body.iap-embed #masthead,
body.iap-embed .site-header,
body.iap-embed .ehf-header,
body.iap-embed #colophon,
body.iap-embed .site-footer,
body.iap-embed .ehf-footer,
body.iap-embed .ast-above-header-wrap,
body.iap-embed .ast-below-header-wrap,
body.iap-embed #secondary,
body.iap-embed .entry-header,
body.iap-embed .llms-return,
body.iap-embed .ast-single-post-order,
body.iap-embed #comments,
body.iap-embed .llms-course-navigation,
body.iap-embed .hfe-before-footer-wrap,
body.iap-embed .footer-width-fixer,
body.iap-embed footer.site-footer,
body.iap-embed .elementor-location-header,
body.iap-embed .elementor-location-footer,
body.iap-embed .llms-next-lesson,
body.iap-embed .llms-prev-lesson,
/* the attempt picker is a power-user control; retaking is the button */
body.iap-embed .llms-quiz-results-history{display:none!important}
body.iap-embed .ast-container,
body.iap-embed .site-content,
body.iap-embed #primary,
body.iap-embed #content,
body.iap-embed .ast-article-single{display:block!important;margin:0!important;padding:0!important;
  max-width:none!important;width:100%!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.iap-embed{background:#fff;padding:22px 24px 28px!important;color:#3B3746;
  font-family:"Plus Jakarta Sans",system-ui,sans-serif!important;-webkit-font-smoothing:antialiased}
body.iap-embed .entry-content{max-width:760px!important;margin:0 auto!important}
body.iap-embed.admin-bar{padding-top:22px!important}
body.iap-embed #wpadminbar{display:none!important}
html.iap-embed-html{margin-top:0!important}
body.iap-embed h1,body.iap-embed h2,body.iap-embed h3,body.iap-embed h4{
  font-family:"Sora",system-ui,sans-serif!important;color:#14121A;letter-spacing:-.02em}
body.iap-embed button,body.iap-embed .button,body.iap-embed a.button{text-transform:none!important;letter-spacing:normal!important}

/* buttons: brand purple, pill-shaped, one size */
body.iap-embed .llms-button-action,
body.iap-embed .llms-start-quiz-button,
body.iap-embed #llms-next-question,
body.iap-embed #llms-complete-quiz{background:#5A2D82!important;border:0!important;color:#fff!important;
  border-radius:999px!important;padding:0 24px!important;min-height:46px;font-size:15px!important;font-weight:700!important;
  font-family:inherit!important;box-shadow:none!important;cursor:pointer}
body.iap-embed .llms-button-action:hover,
body.iap-embed .llms-start-quiz-button:hover,
body.iap-embed #llms-next-question:hover,
body.iap-embed #llms-complete-quiz:hover{background:#4A2273!important}
body.iap-embed #llms-complete-quiz{background:#3E9438!important}
body.iap-embed #llms-complete-quiz:hover{background:#2F7A2C!important}
body.iap-embed .llms-button-secondary,
body.iap-embed #llms-prev-question{background:#fff!important;border:1.5px solid #E3E0E9!important;color:#231F2E!important;
  border-radius:999px!important;padding:0 20px!important;min-height:46px;font-size:14.5px!important;font-weight:600!important;
  font-family:inherit!important;box-shadow:none!important}
body.iap-embed .llms-button-secondary:hover,
body.iap-embed #llms-prev-question:hover{border-color:#5A2D82!important;color:#4A2273!important}

/* the start screen: a card, not two big serif headings */
body.iap-embed .llms-quiz-meta-title{font-size:21px!important;margin:6px 0 12px!important;font-weight:700}
body.iap-embed .llms-quiz-meta-info{list-style:none!important;margin:0 0 20px!important;padding:0!important;
  display:flex;flex-wrap:wrap;gap:8px}
body.iap-embed .llms-quiz-meta-info .llms-quiz-meta-item{margin:0!important;font-size:13.5px;color:#57536A;
  background:#F7F6FA;border:1px solid #E3E0E9;border-radius:999px;padding:6px 13px}
body.iap-embed .llms-quiz-meta-info .llms-quiz-meta-item span{color:#14121A;font-weight:700}

/* taking the quiz */
body.iap-embed .llms-progress{height:6px!important;border-radius:99px!important;background:#EFEDF3!important;overflow:hidden;margin:0 0 22px!important}
body.iap-embed .llms-progress .progress-bar-complete{background:#5A2D82!important;border-radius:99px}
body.iap-embed .llms-question-text{font-family:"Sora",system-ui,sans-serif!important;font-size:clamp(17px,2.2vw,21px)!important;
  line-height:1.4!important;color:#14121A!important;font-weight:700!important;margin:0 0 18px!important;letter-spacing:-.015em}
body.iap-embed .llms-question-choices{margin:0 0 6px!important;padding:0!important}
body.iap-embed .llms-choice{margin:0 0 10px!important;border:0!important;padding:0!important}
body.iap-embed .llms-choice label{display:flex!important;align-items:center;cursor:pointer;margin:0!important;width:100%!important;max-width:none!important;
  box-sizing:border-box;position:relative!important;min-height:54px;border:1.5px solid #E3E0E9!important;border-radius:12px!important;
  padding:12px 16px 12px 60px!important;background:#fff!important;transition:border-color .12s,background .12s}
body.iap-embed .llms-choice label:hover{border-color:#B9A3D6!important;background:#FBFAFD!important}
body.iap-embed .llms-choice:has(input:checked) label{border-color:#5A2D82!important;background:#F2ECF9!important}
body.iap-embed .llms-choice input{position:absolute!important;opacity:0!important;pointer-events:none}
/* LifterLMS puts the letter in label::before, hung outside the box */
body.iap-embed .llms-choice label::before{left:16px!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translateY(-50%)!important;
  width:30px!important;height:30px!important;border-radius:50%!important;margin:0!important;padding:0!important;box-shadow:none!important;
  background:#F7F6FA!important;border:1.5px solid #E3E0E9!important;color:#57536A!important;box-sizing:border-box;
  display:flex!important;align-items:center;justify-content:center;font:500 13px/1 "JetBrains Mono",ui-monospace,monospace!important}
body.iap-embed .llms-choice:has(input:checked) label::before{background:#5A2D82!important;border-color:#5A2D82!important;color:#fff!important}
body.iap-embed .llms-choice label::after{display:none!important}
body.iap-embed .llms-choice-text{font-size:15.5px;line-height:1.45;color:#231F2E;margin:0!important;padding:0!important;flex:1}
/* keep the answer text dark in every state: hover, focus and picked */
body.iap-embed .llms-choice label,body.iap-embed .llms-choice label:hover,body.iap-embed .llms-choice label:focus-within,
body.iap-embed .llms-choice:has(input:checked) label,body.iap-embed .llms-choice-text,
body.iap-embed .llms-choice:has(input:checked) .llms-choice-text{color:#231F2E!important;text-shadow:none!important}
/* "Next lesson" under the score */
body.iap-embed .iaq-continue{margin:0 0 16px;display:flex;justify-content:flex-end}
body.iap-embed .iaq-continue a{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:999px;background:#3E9438;color:#fff!important;
  font:600 14.5px "Plus Jakarta Sans",system-ui,sans-serif;text-decoration:none!important}
body.iap-embed .iaq-continue a:hover,body.iap-embed .iaq-continue a:focus{background:#2F7A2C;color:#fff!important}
@media (max-width:600px){body.iap-embed .iaq-continue a{flex:1;justify-content:center}}
body.iap-embed #llms-prev-question{order:-1}
body.iap-embed .llms-quiz-counter{margin-left:auto}
body.iap-embed .llms-quiz-nav,body.iap-embed #llms-quiz-nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px}
body.iap-embed .llms-quiz-counter,body.iap-embed #llms-quiz-counter{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:12.5px;color:#8B8797}

/* ---- the results ---- */
body.iap-embed .llms-quiz-results{display:block!important;margin:0!important}
body.iap-embed .llms-quiz-results-title{font-family:"JetBrains Mono",ui-monospace,monospace!important;font-size:11px!important;
  font-weight:500!important;letter-spacing:.14em!important;text-transform:uppercase;color:#8B8797!important;margin:0 0 10px!important}
body.iap-embed .llms-quiz-results-aside{float:none!important;width:auto!important;margin:0 0 16px!important;padding:12px 14px!important;
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1px solid #E3E0E9;border-radius:14px;background:#F7F6FA}
/* LifterLMS draws the score ring as an SVG path sized for a big sidebar; a
   conic gradient driven by the same percentage is simpler and scales. */
body.iap-embed .llms-donut{--p:0;--c:#3E9438;width:64px!important;height:64px!important;margin:0!important;flex:none;border-radius:50%;
  background:conic-gradient(var(--c) calc(var(--p) * 1%),#E3E0E9 0)!important;display:grid!important;place-items:center;position:relative!important;font-size:inherit!important}
body.iap-embed .llms-donut.failing{--c:#D92D20}
body.iap-embed .llms-donut svg{display:none!important}
body.iap-embed .llms-donut .inside{position:static!important;width:50px!important;height:50px!important;margin:0!important;border-radius:50%;
  background:#fff;display:grid!important;place-items:center;transform:none!important}
body.iap-embed .llms-donut .percentage{font-family:"Sora",system-ui,sans-serif!important;font-size:14px!important;line-height:1.05!important;color:#14121A!important;
  font-weight:700;text-align:center;margin:0!important;position:static!important;transform:none!important;display:block!important}
body.iap-embed .llms-donut .percentage small{font-size:9.5px!important}
body.iap-embed .llms-donut .caption{font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-size:9.5px!important;font-weight:600;margin-top:1px;color:#6B6779!important}
body.iap-embed .llms-quiz-results-aside .llms-quiz-meta-info{flex:1;min-width:160px;margin:0!important;display:block}
body.iap-embed .llms-quiz-results-aside .llms-quiz-meta-item{background:none;border:0;padding:0;font-size:13px;color:#6B6779;display:none}
body.iap-embed .llms-quiz-results-aside .llms-quiz-meta-item:first-child{display:block;font-family:"Sora",system-ui,sans-serif;
  font-weight:700;font-size:16px;color:#14121A}
body.iap-embed .llms-quiz-results-aside #quiz-start-button{margin:0 0 0 auto!important;padding:0!important;width:auto!important;flex:none;display:block!important;float:none!important}
body.iap-embed .llms-quiz-results-aside{flex-wrap:nowrap}
body.iap-embed .llms-quiz-results-aside #quiz-start-button form{margin:0}
body.iap-embed .llms-quiz-results-aside .llms-start-quiz-button{min-height:42px;font-size:14px!important;padding:0 18px!important;
  background:#fff!important;color:#4A2273!important;border:1.5px solid #5A2D82!important}
body.iap-embed .llms-quiz-results-aside .llms-start-quiz-button:hover{background:#F2ECF9!important}
body.iap-embed .llms-quiz-results-main{float:none!important;width:auto!important;margin:0!important}
body.iap-embed.iaq-paged #llms-quiz-wrapper>.llms-quiz-meta-title,
body.iap-embed.iaq-paged #llms-quiz-wrapper>.llms-quiz-meta-info{display:none!important}

/* one question at a time */
.iaq-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.iaq-count{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:12px;color:#6B6779}
.iaq-dots{display:flex;flex-wrap:wrap;gap:6px}
.iaq-dot{width:32px;height:32px;border-radius:50%;padding:0!important;cursor:pointer;font:600 12.5px/1 "JetBrains Mono",ui-monospace,monospace!important;
  border:1.5px solid;background:#fff;transition:transform .1s;box-shadow:none!important}
.iaq-dot.iaq-ok{color:#2F7A2C;border-color:#9ED69A;background:#F1FAF0}
.iaq-dot.iaq-bad{color:#B42318;border-color:#F3B4AE;background:#FEF3F2}
.iaq-dot[aria-current="true"].iaq-ok{background:#3E9438;border-color:#3E9438;color:#fff}
.iaq-dot[aria-current="true"].iaq-bad{background:#D92D20;border-color:#D92D20;color:#fff}
.iaq-dot:hover{transform:translateY(-1px)}
.iaq-foot{display:flex;justify-content:space-between;gap:10px;margin-top:14px}
.iaq-foot[hidden],.iaq-foot button[hidden]{display:none!important}
.iaq-foot button{min-height:44px;border-radius:999px!important;padding:0 20px!important;font:600 14.5px "Plus Jakarta Sans",system-ui,sans-serif!important;cursor:pointer;
  background:#fff!important;border:1.5px solid #E3E0E9!important;color:#231F2E!important;box-shadow:none!important}
.iaq-foot button:hover:not(:disabled){border-color:#5A2D82!important;color:#4A2273!important}
.iaq-foot button:disabled{opacity:.4;cursor:default}
.iaq-foot .iaq-next{margin-left:auto;background:#5A2D82!important;border-color:#5A2D82!important;color:#fff!important}
.iaq-foot .iaq-next:hover{background:#4A2273!important;color:#fff!important}

body.iap-embed ol.llms-quiz-attempt-results{list-style:none!important;margin:0!important;padding:0!important}
body.iap-embed .llms-quiz-attempt-question{margin:0!important;padding:0!important;border:1px solid #E3E0E9!important;border-radius:14px!important;
  background:#fff!important;overflow:hidden;border-left:5px solid #9ED69A!important;list-style:none}
body.iap-embed .llms-quiz-attempt-question.incorrect{border-left-color:#F04438!important}
body.iap-embed .llms-quiz-attempt-question[hidden]{display:none!important}
body.iap-embed .llms-quiz-attempt-question-header{padding:16px 18px 6px!important;background:none!important}
body.iaq-paged .llms-quiz-attempt-question-header .toggle-answer{pointer-events:none;cursor:default}
body.iap-embed .toggle-answer{display:flex!important;align-items:flex-start;gap:12px;text-decoration:none!important;color:inherit!important}
body.iap-embed .llms-question-title{font-family:"Sora",system-ui,sans-serif!important;font-size:clamp(16px,2vw,18.5px)!important;line-height:1.4!important;
  font-weight:700!important;color:#14121A!important;margin:0!important;flex:1}
body.iap-embed .llms-points{flex:none;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:11.5px;color:#6B6779;
  background:#F7F6FA;border-radius:999px;padding:4px 10px;margin:2px 0 0!important;float:none!important;white-space:nowrap}
body.iap-embed .llms-status-icon-tip{display:none!important}
body.iap-embed .llms-quiz-attempt-question-main{padding:6px 18px 18px!important;display:block}
body.iap-embed .llms-quiz-attempt-answer-section{border:0!important;padding:0!important;margin:12px 0 0!important}
body.iap-embed .llms-quiz-results-label{font-family:"JetBrains Mono",ui-monospace,monospace!important;font-size:10.5px!important;
  letter-spacing:.13em;text-transform:uppercase;color:#8B8797!important;margin:0 0 6px!important;font-weight:500!important}
body.iap-embed .llms-quiz-attempt-answers{list-style:none!important;margin:0!important;padding:0!important}
body.iap-embed .llms-quiz-attempt-answer{margin:0!important;padding:11px 14px!important;border-radius:10px;font-size:15px;line-height:1.45;color:#231F2E;
  background:#F1FAF0;border:1px solid #CFE9CB}
body.iap-embed .llms-quiz-attempt-question.incorrect .llms-student-answer .llms-quiz-attempt-answer{background:#FEF3F2;border-color:#F8CFCA}
body.iap-embed .llms-clarifications{background:#F2ECF9;border-radius:10px;padding:12px 14px!important;font-size:14.5px;line-height:1.55;color:#3B3746}
body.iap-embed .llms-clarifications p{margin:0 0 6px}
body.iap-embed .llms-clarifications .llms-quiz-results-label{color:#5A2D82!important}

@media (max-width:600px){
  body.iap-embed{padding:16px 14px 22px!important}
  .iaq-head{flex-direction:column;align-items:flex-start;gap:8px}
  body.iap-embed .llms-quiz-results-aside{gap:12px;flex-wrap:nowrap;padding:10px 12px!important}
  body.iap-embed .llms-donut{width:54px!important;height:54px!important}
  body.iap-embed .llms-donut .inside{width:42px!important;height:42px!important}
  body.iap-embed .llms-donut .percentage{font-size:12.5px!important}
  body.iap-embed .llms-quiz-results-aside .llms-quiz-meta-item:first-child{font-size:14.5px}
  body.iap-embed .llms-quiz-results-aside .llms-quiz-meta-info{min-width:0}
  body.iap-embed .llms-quiz-results-aside .llms-start-quiz-button{min-height:40px;padding:0 14px!important;font-size:13.5px!important}
  body.iap-embed .toggle-answer{flex-direction:column-reverse;gap:6px}
  body.iap-embed .llms-quiz-attempt-question-header{padding:14px 14px 4px!important}
  body.iap-embed .llms-quiz-attempt-question-main{padding:4px 14px 14px!important}
  body.iap-embed .llms-quiz-attempt-answer{padding:9px 12px!important;font-size:14.5px}
  .iaq-dots{gap:5px}
  .iaq-dot{width:30px;height:30px}
  body.iap-embed .llms-choice label{padding:11px 13px 11px 54px!important}
  body.iap-embed .llms-choice label::before{left:12px!important}
}

/* display on a class beats the browser's own [hidden] rule, so say it here */
.iap [hidden]{display:none!important}
/* The site's chat bubble renders a second time inside the embedded quiz,
   so there are two of them on the player. The widget's own class names are
   hashed and change between builds; its mount point is not. */
body.iap-embed .crisp-client,
body.iap-embed #crisp-chatbox,
body.iap-embed iframe[src*="chat"],
body.iap-embed iframe[title*="chat" i]{display:none!important}

/* ---- phones ---- */
@media (max-width:900px){
  .iap-next{position:relative;inset:auto;min-height:100%;padding:28px 18px}
  .iap-video.iap-ended{aspect-ratio:auto}
  .iap-video.iap-ended iframe{visibility:hidden}
}
@media (max-width:600px){
  .iap-qbar{padding:6px 8px 6px 4px;gap:6px;min-height:56px}
  .iap .iap-qback span{display:none}
  .iap .iap-qback{padding:8px}
  .iap-qbar-t{padding-left:8px}
  .iap-wide{display:none}
  .iap .iap-qnext{padding:0 16px;font-size:14px}
  .iap-next-ok{margin-bottom:16px}
  .iap-next-meta{margin-bottom:18px}
  .iap-next .iap-row button{width:100%}
  .iap-move .iap-fwd{max-width:none}
  .iap-move a:not(.iap-fwd) .iap-move-t{display:none}
}

/* LifterLMS adds » after the start button and pads the question toggle */
body.iap-embed .llms-start-quiz-button::after,body.iap-embed .llms-start-quiz-button::before{display:none!important;content:none!important}
body.iap-embed .toggle-answer{padding:0!important;margin:0!important;background:none!important;border:0!important}

/* ---- no flash of the raw results ----
   LifterLMS renders every question stacked, then the review script pages
   them. Until it has, only the first question shows, every answer panel is
   open, and the "Quiz Information" block and the loose start button under
   the results are hidden, so the student never sees the cluttered version. */
body.iap-embed .llms-quiz-attempt-results:not([data-ia-paged])>.llms-quiz-attempt-question:not(:first-child){display:none!important}
body.iap-embed .llms-quiz-attempt-question-main{display:block!important}
body.iap-embed #llms-quiz-wrapper:has(.llms-quiz-attempt-results)>.llms-quiz-meta-title,
body.iap-embed #llms-quiz-wrapper:has(.llms-quiz-attempt-results)>.llms-quiz-meta-info,
body.iap-embed .entry-content:has(.llms-quiz-attempt-results)>#quiz-start-button{display:none!important}

/* phones: the quiz card under the lesson title goes; the end-of-video card
   and the "Next: the quiz" button already lead there */
@media (max-width:900px){
  .iap-quizbox{display:none}
}
@media (max-width:600px){
  .iap .iap-qskip{padding:0 14px;min-height:40px}
}

/* the ☰ button and the drawer's close button (phones only) */
.iap .iap-menu,.iap .iap-side-x{display:none;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:10px;
  background:transparent;cursor:pointer;flex:none}
.iap .iap-menu{color:#fff;margin-left:-8px}
.iap .iap-menu:hover{background:rgba(255,255,255,.12)}
.iap .iap-side-x{color:var(--iap-ink-600);margin:-8px -10px -8px 0}
.iap .iap-side-x:hover{background:var(--iap-soft)}
.iap-menu svg,.iap-side-x svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.iap-side-h span{margin-left:auto}
@media (max-width:900px){.iap .iap-menu,.iap .iap-side-x{display:grid}}


/* ---- a lesson the student cannot watch yet ---- */
.iap-locked{width:100%;max-width:calc((100vh - var(--iap-top) - 110px) * 16 / 9);min-height:min(56.25vw,calc(100vh - var(--iap-top) - 110px));
  display:grid;place-items:center;padding:32px 22px;text-align:center;
  background:radial-gradient(120% 90% at 50% 0%,rgba(90,45,130,.6),var(--iap-night) 65%)}
.iap-locked-in{width:100%;max-width:440px;display:flex;flex-direction:column;align-items:center}
.iap-locked-tag{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:#E3D6F3;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:5px 13px 5px 10px;margin-bottom:16px}
.iap-locked-tag svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2}
.iap .iap-locked h2{color:#fff;font-size:clamp(19px,2.2vw,25px);line-height:1.25;margin:0 0 8px;letter-spacing:-.02em}
.iap-locked p{color:#C3B6D6;font-size:14.5px;line-height:1.55;margin:0 0 20px;max-width:42ch}
.iap-locked-do{display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px}
.iap .iap-btn-main,.iap .iap-btn-google{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;border-radius:999px;
  font-size:15.5px;font-weight:700;text-decoration:none;padding:0 22px;transition:background .15s,transform .1s}
.iap .iap-btn-main{background:var(--iap-green-600);color:#fff}
.iap .iap-btn-main:hover{background:var(--iap-green-700);color:#fff}
.iap .iap-btn-google{background:#fff;color:#1F1F1F;border:1px solid #dadce0}
.iap .iap-btn-google:hover{background:#F4F4F6;color:#1F1F1F}
.iap-btn-google svg{width:20px;height:20px}
.iap-btn-main svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}
.iap-locked .iap-locked-alt{margin:16px 0 0;font-size:14px;color:#B9ABCF}
.iap .iap-locked-alt a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.iap-locked-price{display:flex;flex-direction:column;align-items:center;margin:-4px 0 18px}
.iap-locked-price b{font-family:var(--iap-f-display);font-size:34px;line-height:1.1;color:#fff;letter-spacing:-.02em}
.iap-locked-price span{font-size:13px;color:#B9ABCF;margin-top:4px}

/* ---- tabs: icons on wide screens, Overview + "More" on phones ---- */
.iap .iap-tabs button[role="tab"]{display:inline-flex;align-items:center;gap:8px}
.iap-tabs svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.iap-more{display:none;position:relative}
.iap .iap-more-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;height:100%;min-height:50px;
  background:var(--iap-soft);border:0;border-bottom:3px solid transparent;border-radius:0;font-size:14.5px;font-weight:600;color:var(--iap-ink-600);cursor:pointer;padding:0 14px}
.iap .iap-more-btn.iap-on{color:var(--iap-purple-700);border-bottom-color:var(--iap-purple-600);background:#fff}
.iap-more-btn svg{width:18px;height:18px}
.iap-more-menu{position:absolute;right:8px;top:calc(100% + 6px);z-index:30;min-width:200px;background:#fff;border-radius:12px;
  box-shadow:0 12px 36px rgba(20,10,35,.18),0 0 0 1px rgba(20,10,35,.06);padding:6px;display:flex;flex-direction:column}
.iap .iap-more-menu button{display:flex;align-items:center;gap:12px;background:none;border:0;border-radius:8px;padding:12px 14px;
  font-size:15px;font-weight:600;color:var(--iap-ink-800);cursor:pointer;text-align:left;min-height:46px}
.iap .iap-more-menu button:hover{background:var(--iap-soft)}
@media (max-width:600px){
  .iap .iap-tabs button.iap-tab-x[role="tab"]{display:none}
  .iap-more{display:block;flex:1}
  .iap .iap-tabs button[role="tab"]{flex:1;justify-content:center}
  .iap .iap-tabs{gap:0}
}

/* ---- the notebook ---- */
.iap-notes:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:28px;align-items:start}
.iap-notes textarea{width:100%;box-sizing:border-box;min-height:84px;resize:vertical;border:1.5px solid var(--iap-line);border-radius:10px;
  padding:12px 14px;font:inherit;font-size:15px;line-height:1.5;color:var(--iap-ink-900);background:#fff}
.iap-notes textarea:focus{outline:none;border-color:var(--iap-purple-600);box-shadow:0 0 0 3px rgba(90,45,130,.12)}
.iap-notes-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--iap-ink-500);margin:6px 2px 16px}
.iap-note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.iap-note{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--iap-line);border-radius:12px;padding:12px 10px 12px 14px;background:#fff}
.iap-note p{flex:1;margin:0;font-size:15px;line-height:1.55;color:var(--iap-ink-800);white-space:pre-wrap;word-break:break-word}
.iap .iap-note-t{flex:none;font-family:var(--iap-f-mono);font-size:12.5px;font-weight:500;color:var(--iap-purple-700);background:var(--iap-purple-100);
  border:0;border-radius:999px;padding:5px 10px;cursor:pointer;margin-top:1px}
.iap .iap-note-t:hover{background:var(--iap-purple-600);color:#fff}
.iap .iap-note-x{flex:none;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:none;color:var(--iap-ink-400);cursor:pointer;padding:0}
.iap .iap-note-x:hover{background:#FEF3F2;color:#B42318}
.iap-note-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.iap-notes-empty{text-align:center;padding:26px 10px 8px;color:var(--iap-ink-500)}
.iap-notes-empty p{max-width:36ch;margin:10px auto 0;font-size:14.5px;line-height:1.55}
.iap-notes-empty-ic{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--iap-purple-100);color:var(--iap-purple-600)}
.iap-notes-empty-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.iap-notes-side{border-left:1px solid var(--iap-line);padding-left:24px}
.iap-notes-side b{display:block;font-family:var(--iap-f-display);font-size:17px;color:var(--iap-ink-900);margin-bottom:4px}
.iap-notes-side p{font-size:13.5px;line-height:1.5;color:var(--iap-ink-500);margin:0 0 12px}
.iap .iap-notes-dl{border:1.5px solid var(--iap-purple-600);background:#fff;color:var(--iap-purple-700);font-weight:700;font-size:14px;
  border-radius:999px;padding:0 20px;min-height:40px;cursor:pointer}
.iap .iap-notes-dl:hover:not(:disabled){background:var(--iap-purple-100)}
.iap .iap-notes-dl:disabled{border-color:var(--iap-line);color:var(--iap-ink-400);background:var(--iap-soft);cursor:default}
.iap-notes-side .iap-notes-local{margin-top:14px;font-size:12.5px}
@media (max-width:760px){
  .iap-notes:not([hidden]){grid-template-columns:1fr;gap:20px}
  .iap-notes-side{border-left:0;border-top:1px solid var(--iap-line);padding:18px 0 0}
  .iap-notes-hint{display:none}
}
@media (max-width:900px){
  .iap-locked{max-width:none;min-height:0;padding:30px 18px 28px}
}
.iap .iap-note-save{display:none;background:var(--iap-purple-600);color:#fff;border:0;border-radius:999px;font-weight:700;font-size:14px;padding:0 18px;min-height:40px;cursor:pointer}
@media (max-width:760px){
  .iap .iap-note-save{display:inline-flex;align-items:center;margin-left:auto}
  .iap-notes-meta{align-items:center}
}

/* ---- the price: one payment per course ---- */
.iap .iap-buy{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;background:var(--iap-green-600);color:#fff;text-decoration:none;
  font-weight:700;font-size:14px;border-radius:999px;padding:0 18px;min-height:40px;margin-right:10px;flex:none}
.iap .iap-buy:hover{background:var(--iap-green-700);color:#fff}
.iap-narrow{display:none}

/* ---- the contents rail: where the free part ends ---- */
.iap-tier{display:inline-block;vertical-align:1px;margin-left:8px;font-family:var(--iap-f-mono);font-size:10px;font-weight:500;letter-spacing:.04em;
  text-transform:uppercase;border-radius:999px;padding:2px 7px;white-space:nowrap}
.iap-tier--open{color:var(--iap-green-700);background:var(--iap-green-50);border:1px solid #CFE9CB}
.iap-tier--acct{color:var(--iap-purple-700);background:var(--iap-purple-100);border:1px solid #DCCDEE}
.iap .iap-wall{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 14px 4px;padding:9px 12px;border-radius:10px;
  background:linear-gradient(90deg,#FFF7E8,#FFF1D6);border:1px dashed #E7B866;color:#7A4B00;text-decoration:none;font-size:12.5px;font-weight:600}
.iap .iap-wall b{font-family:var(--iap-f-display);font-size:14px;color:#5C3800}
.iap .iap-wall:hover{border-style:solid}
.iap .iap-side-course{display:none;font-size:13px;font-weight:600;color:var(--iap-purple-700);text-decoration:none;white-space:nowrap}

@media (max-width:900px){
  /* the course link moves into the drawer, which leaves room for the price */
  .iap .iap-exit{display:none}
  .iap .iap-side-course{display:inline}
  .iap-side-h span{display:none}
  .iap-side-h{gap:12px}
  .iap .iap-side-course{margin-left:auto}
}
@media (max-width:600px){
  .iap-wide{display:none}
  .iap-narrow{display:inline}
  .iap .iap-buy{padding:0 14px;font-size:13.5px;min-height:38px;margin-right:0;margin-left:auto}
  .iap-bar-prog{margin-left:auto}
  .iap-bar-prog .iap-track{width:44px}
}
/* the course name in the bar is the way back to where the course starts */
.iap .iap-bar-course{color:#C9BBDB;text-decoration:none}
.iap .iap-bar-course:hover{color:#fff}
@media (max-width:900px){.iap .iap-side-x{margin-left:auto}}

/* admins: view the page as a buyer, an account without the course, or a visitor */
.iap-as{display:inline-flex;align-items:center;gap:2px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);
  border-radius:999px;padding:3px;margin-right:10px;flex:none;font-size:12.5px}
.iap-as-l{color:#B2A3C8;padding:0 8px 0 10px}
.iap .iap-as a{color:#E3D6F3;text-decoration:none;padding:5px 11px;border-radius:999px;font-weight:600}
.iap .iap-as a:hover{background:rgba(255,255,255,.12);color:#fff}
.iap .iap-as a[aria-current="true"]{background:#fff;color:var(--iap-night)}
@media (max-width:900px){.iap-as-l{display:none}.iap-as{margin-right:6px}.iap .iap-as a{padding:5px 8px}}
@media (max-width:600px){.iap-as{display:none}}

/* the chat bubble covered the quiz's Next button on phones */
@media (max-width:900px){body.iap-quiz-on .crisp-client{display:none!important}}

/* the account step: one line in the rail, green like the free tags */
.iap .iap-wall--acct{background:var(--iap-green-50);border:1px dashed #9FD199;color:var(--iap-green-700)}
.iap .iap-wall--acct b{color:var(--iap-green-700);font-family:var(--iap-f-body);font-size:13px}

/* Free tag on the meta line, before the quiz: title / Free · Quiz · 2 questions */
.iap-item .iap-m{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.iap-item .iap-m .iap-tier{margin-left:0;vertical-align:0}

/* free with an account: green person icon; paid: grey padlock */
.iap-item .iap-ic.iap-acct{color:var(--iap-green-600)}

/* lesson row, second line: length (dark), then Quiz (green), then the Free tag */
.iap-item .iap-m{gap:10px}
.iap-item .iap-m .iap-dur{color:var(--iap-ink-900,#14121A);font-weight:500}
.iap-item .iap-m em{color:var(--iap-green-700,#2F7A2C);font-weight:600}
.iap-item.iap-off .iap-m .iap-dur{color:var(--iap-ink-500,#6B6779)}

/* room after the last lesson, so the site's back-to-top button never sits on it */
.iap-side::after{content:"";display:block;height:84px}
.iap-pane .iap-lead{font-size:16px;line-height:1.6;color:var(--iap-ink-700,#3B3746);margin:0 0 18px}
.iap-was{opacity:.6;font-weight:500;margin-right:2px;text-decoration-thickness:1.5px}
.iap-locked-price .iap-was{font-size:.7em}

/* Instructors mark: "ACADEMY" has to fit inside the square on phones */
.iap-team .iap-mark{padding:4px;letter-spacing:.01em;overflow:hidden;white-space:nowrap}
@media (max-width:782px){.iap-team .iap-mark{width:72px;height:72px;font-size:10.5px}}
