/* =========================================================
   13. Course Home Page

   Full-width foundation: open course landing page.
   The hero and status band span the available main column.
   Only genuine selectable destinations remain card-like.

   Intended Beaver shell:
   .cpa-lesson-shell.cpa-course-home-shell.cpa-course-nav-default-collapsed.is-course-nav-collapsed
     .cpa-course-rail       -> [cpa_course_nav]
     .cpa-lesson-main       -> [cpa_course_home]
   ========================================================= */



/* =========================================================
   13.1 Course Home canvas and Beaver containment
   ========================================================= */

.cpa-course-home-shell .cpa-lesson-main,
.cpa-course-home-shell .cpa-lesson-main > .fl-col-content {
  background: #FFFFFF !important;
}

.cpa-course-home-shell .cpa-lesson-main > .fl-col-content,
.cpa-course-home-shell.cpa-layout-desktop-compact .cpa-lesson-main > .fl-col-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 76px !important;
  margin: 0 !important;
}

.cpa-course-home-shell .cpa-course-home-shortcode,
.cpa-course-home-shell .cpa-course-home-shortcode .fl-module-content,
.cpa-course-home-shell .fl-module:has([data-cpa-course-home]) .fl-module-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cpa-course-home,
.cpa-course-home * {
  box-sizing: border-box;
}

.cpa-course-home {
  --cpa-course-theme: var(--cpa-course-color);
  --cpa-course-theme-rgb: var(--cpa-course-color-rgb);
  --cpa-course-theme-soft: var(--cpa-course-color-soft);
  --cpa-course-theme-mist: var(--cpa-course-color-wash);
  --cpa-course-theme-line: var(--cpa-course-color-line);
  --cpa-course-theme-deep: var(--cpa-course-color-deep);

  --cpa-course-home-content-max: 1280px;
  --cpa-course-home-direct-max: var(--cpa-course-page-content-max, 1120px);
  --cpa-course-home-reading-max: 650px;
  --cpa-course-home-gutter: clamp(20px, 4.2vw, 64px);
  --cpa-course-home-section-space: clamp(46px, 6vw, 78px);
  --cpa-course-home-edge-height: clamp(144px, 11vw, 206px);
  --cpa-course-home-edge-safe-space: clamp(132px, 10.6vw, 190px);

  width: 100%;
  max-width: none;
  margin: 0 !important;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-body);
  background: #FFFFFF;
}

.cpa-course-home a,
.cpa-course-home a:visited,
.cpa-course-home a:hover,
.cpa-course-home a:focus {
  text-decoration: none !important;
  box-shadow: none !important;
}

.cpa-course-home button,
.cpa-course-home input,
.cpa-course-home select,
.cpa-course-home textarea {
  font-family: var(--cpa-font-ui);
}

.cpa-course-home svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cpa-course-home__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FFFFFF;
}

/* =========================================================
   13.2 Full-width Course Home hero
   ========================================================= */

.cpa-course-home__hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 420px;
  padding: clamp(48px, 5.4vw, 76px) 0 var(--cpa-course-home-edge-safe-space);
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.72), transparent 36%),
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, 0.24), transparent 31%),
    linear-gradient(132deg, var(--cpa-course-theme-mist), var(--cpa-course-theme-soft));
  box-shadow: none;
}

.cpa-course-home__hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(34vw, 470px);
  height: min(34vw, 470px);
  right: min(-9vw, -90px);
  top: min(-12vw, -120px);
  border: 1px solid rgba(var(--cpa-course-theme-rgb), 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.cpa-course-home__hero-grid {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter)), var(--cpa-course-home-content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(32px, 4.4vw, 64px);
}

.cpa-course-home--media-left .cpa-course-home__media {
  grid-column: 1;
  grid-row: 1;
}

.cpa-course-home--media-left .cpa-course-home__identity {
  grid-column: 2;
  grid-row: 1;
}

.cpa-course-home__identity {
  min-width: 0;
}

.cpa-course-home__eyebrow,
.cpa-course-home__section-kicker,
.cpa-course-home__status-kicker,
.cpa-course-home__direct-section-kicker,
.cpa-course-home__destination-kicker,
.cpa-course-home__visual-section-kicker,
.cpa-course-home__visual-subsection-kicker,
.cpa-course-home__visual-lesson-kicker {
  margin: 0;
  color: var(--cpa-accent-readable);
  font-family: var(--cpa-font-ui);
  font-size: 10px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cpa-course-home__eyebrow {
  margin-bottom: 14px;
}

.cpa-course-home--no-video.cpa-course-home--has-logo .cpa-course-home__eyebrow {
  display: none;
}

.cpa-course-home__logo {
  width: min(100%, clamp(320px, 26vw, 440px));
  max-height: clamp(112px, 9.5vw, 160px);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
}

.cpa-course-home__logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(112px, 9.5vw, 160px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.cpa-course-home__title,
.cpa-course-home__welcome,
.cpa-course-home__subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  text-wrap: balance;
  text-transform: none !important;
}

.cpa-course-home__title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
  font-weight: 680;
  letter-spacing: -0.055em;
}

.cpa-course-home__welcome,
.cpa-course-home__subtitle {
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.23;
  font-weight: 720;
  letter-spacing: 0;
}

.cpa-course-home__welcome {
  font-family: "Caveat", cursive;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1;
  font-weight: 700;
}

/* The logo may carry the visible course name, but the real H1 remains available. */
.cpa-course-home--has-logo .cpa-course-home__title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cpa-course-home__intro {
  max-width: 620px;
  margin-top: 18px;
  color: var(--cpa-muted);
  font-size: 15.5px;
  line-height: 1.68;
  font-weight: 500;
}

.cpa-course-home__welcome + .cpa-course-home__intro,
.cpa-course-home__subtitle + .cpa-course-home__intro {
  margin-top: 10px;
}

.cpa-course-home__intro > *:first-child {
  margin-top: 0 !important;
}

.cpa-course-home__intro > *:last-child {
  margin-bottom: 0 !important;
}

.cpa-course-home__intro p {
  margin: 0 0 12px;
}

.cpa-course-home__intro a,
.cpa-course-home__intro a:visited {
  color: var(--cpa-accent-readable) !important;
  font-weight: 650;
  border-bottom: 1px solid rgba(237, 100, 59, 0.28);
}

.cpa-course-home__media {
  min-width: 0;
}

.cpa-course-home__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 22px 50px rgba(30, 27, 24, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.70) inset;
}

.cpa-course-home__video-frame iframe,
.cpa-course-home__video-frame video,
.cpa-course-home__video-frame embed,
.cpa-course-home__video-frame object {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 14px;
  background: #111111;
}

.cpa-course-home .cpa-course-home__hero-edge {
  position: absolute;
  z-index: 1;
  left: -1px;
  right: -1px;
  bottom: -1px;
  width: calc(100% + 2px);
  height: var(--cpa-course-home-edge-height);
  pointer-events: none;
}

.cpa-course-home__hero-edge path {
  fill: #FFFFFF;
}

.cpa-course-home--no-video.cpa-course-home--has-welcome-name,
.cpa-course-home--no-video.cpa-course-home--has-subtitle {
  --cpa-course-home-edge-safe-space: clamp(142px, 11vw, 204px);
}

.cpa-course-home--edge-deep_swoop {
  --cpa-course-home-edge-height: clamp(166px, 13vw, 232px);
  --cpa-course-home-edge-safe-space: clamp(154px, 12vw, 216px);
}

.cpa-course-home--edge-deep_swoop.cpa-course-home--no-video.cpa-course-home--has-welcome-name,
.cpa-course-home--edge-deep_swoop.cpa-course-home--no-video.cpa-course-home--has-subtitle {
  --cpa-course-home-edge-safe-space: clamp(164px, 12.6vw, 226px);
}

.cpa-course-home--edge-straight {
  --cpa-course-home-edge-safe-space: clamp(62px, 6.4vw, 100px);
}

.cpa-course-home--edge-straight .cpa-course-home__hero {
  border-bottom: 1px solid rgba(var(--cpa-course-theme-rgb), 0.12);
}

.cpa-course-home--edge-straight .cpa-course-home__hero-edge {
  display: none;
}

.cpa-course-home--edge-straight.cpa-course-home--no-video.cpa-course-home--has-welcome-name,
.cpa-course-home--edge-straight.cpa-course-home--no-video.cpa-course-home--has-subtitle {
  --cpa-course-home-edge-safe-space: clamp(62px, 6.4vw, 100px);
}

.cpa-course-home--no-video .cpa-course-home__hero {
  min-height: 330px;
}

.cpa-course-home--no-video .cpa-course-home__hero-grid {
  width: min(calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter)), 900px);
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  text-align: center;
}

.cpa-course-home--no-video.cpa-course-home--media-left .cpa-course-home__identity {
  grid-column: auto;
  grid-row: auto;
}

.cpa-course-home--no-video .cpa-course-home__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cpa-course-home--no-video .cpa-course-home__logo {
  justify-content: center;
}

.cpa-course-home--no-video .cpa-course-home__logo-image {
  object-position: center;
}

.cpa-course-home--no-video .cpa-course-home__intro {
  margin-left: auto;
  margin-right: auto;
}

.cpa-course-home--no-video .cpa-course-home__welcome,
.cpa-course-home--no-video .cpa-course-home__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.cpa-course-home--no-logo.cpa-course-home--no-intro .cpa-course-home__identity {
  align-self: center;
}

/* =========================================================
   13.3 Open course status band and primary action
   ========================================================= */

.cpa-course-home__status {
  position: relative;
  width: 100%;
  min-height: 118px;
  padding-block: 34px;
  padding-inline: max(
    var(--cpa-course-home-gutter),
    calc((100% - var(--cpa-course-home-content-max)) / 2)
  );
  border: 0;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, clamp(230px, 20vw, 320px)) max-content;
  align-items: center;
  justify-content: stretch;
  gap: clamp(24px, 2.8vw, 44px);
  background: #FFFFFF;
  box-shadow: none;
}

.cpa-course-home__status::after {
  content: "";
  position: absolute;
  left: max(
    var(--cpa-course-home-gutter),
    calc((100% - var(--cpa-course-home-content-max)) / 2)
  );
  right: max(
    var(--cpa-course-home-gutter),
    calc((100% - var(--cpa-course-home-content-max)) / 2)
  );
  bottom: 0;
  height: 1px;
  background: rgba(var(--cpa-course-theme-rgb), 0.2);
  pointer-events: none;
}

.cpa-course-home--no-progress .cpa-course-home__status {
  grid-template-columns: minmax(220px, 1fr) auto;
  justify-content: stretch;
}

.cpa-course-home__status-copy {
  min-width: 0;
}

.cpa-course-home__status-kicker {
  margin-bottom: 7px;
}

.cpa-course-home__status-copy h2 {
  margin: 0;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-transform: none !important;
}

.cpa-course-home__status-copy > p:last-child {
  max-width: 520px;
  margin: 7px 0 0;
  color: var(--cpa-muted);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
}

.cpa-course-home__status-progress {
  min-width: 0;
  justify-self: stretch;
}

.cpa-course-home__progress-meta {
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 650;
}

.cpa-course-home__progress-meta strong {
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cpa-course-home__progress-meta span {
  font-weight: inherit;
}

.cpa-course-home__progress-track {
  width: 100%;
  height: 7px;
  border-radius: var(--cpa-radius-pill);
  overflow: hidden;
  background: rgba(232, 222, 212, 0.88);
}

.cpa-course-home__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cpa-accent);
}

.cpa-course-home__status-actions {
  min-width: max-content;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  justify-self: end;
}

.cpa-course-home--has-progress .cpa-course-home__status-actions {
  min-height: 48px;
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 1px solid var(--cpa-line-soft);
}

.cpa-course-home__primary-action,
.cpa-course-home__primary-action:visited,
.cpa-course-home__native-cta a,
.cpa-course-home__native-cta a:visited,
.cpa-course-home__native-cta button,
.cpa-course-home__native-cta input[type="button"],
.cpa-course-home__native-cta input[type="submit"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-width: 170px !important;
  min-height: 44px !important;
  padding: 0 17px !important;
  border: 1px solid var(--cpa-accent) !important;
  border-radius: var(--cpa-radius-pill) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  background: var(--cpa-accent) !important;
  color: #FFFFFF !important;
  font-family: var(--cpa-font-ui) !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(237, 100, 59, 0.18) !important;
  cursor: pointer !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s var(--cpa-layout-ease),
    box-shadow 0.18s ease !important;
}

.cpa-course-home__primary-action svg {
  width: 17px;
  height: 17px;
}

.cpa-course-home__native-cta a::after,
.cpa-course-home__native-cta button::after {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4l4 4-4 4M9.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4l4 4-4 4M9.5 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateX(0);
  transition: transform 0.18s var(--cpa-layout-ease);
}

.cpa-course-home__primary-action:hover,
.cpa-course-home__native-cta a:hover,
.cpa-course-home__native-cta button:hover,
.cpa-course-home__native-cta input[type="button"]:hover,
.cpa-course-home__native-cta input[type="submit"]:hover {
  background: var(--cpa-accent-hover) !important;
  border-color: var(--cpa-accent-hover) !important;
  color: #FFFFFF !important;
  transform: translateX(2px);
  box-shadow: 0 10px 22px rgba(237, 100, 59, 0.22) !important;
}

.cpa-course-home__native-cta a:hover::after,
.cpa-course-home__native-cta button:hover::after {
  transform: translateX(2px);
}

.cpa-course-home__primary-action:focus,
.cpa-course-home__native-cta a:focus,
.cpa-course-home__native-cta button:focus,
.cpa-course-home__native-cta input:focus {
  outline: none !important;
}

.cpa-course-home__primary-action:focus-visible,
.cpa-course-home__native-cta a:focus-visible,
.cpa-course-home__native-cta button:focus-visible,
.cpa-course-home__native-cta input:focus-visible {
  box-shadow: 0 0 0 4px rgba(237, 100, 59, 0.18) !important;
}

.cpa-course-home__native-cta,
.cpa-course-home__native-cta > *,
.cpa-course-home__native-cta form,
.cpa-course-home__native-cta div {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  text-align: inherit !important;
}

.cpa-course-home__native-cta br,
.cpa-course-home__native-cta p:empty {
  display: none !important;
}

/* =========================================================
   13.4 Shared open-section heading
   ========================================================= */

.cpa-course-home__destinations {
  width: min(calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter)), var(--cpa-course-home-content-max));
  margin: 0 auto;
  padding: var(--cpa-course-home-section-space) 0 0;
}

.cpa-course-home__direct {
  width: min(calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter)), var(--cpa-course-home-content-max));
  margin: 0 auto;
  padding: var(--cpa-course-home-section-space) 0 0;
}

.cpa-course-home__notes {
  width: min(calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter)), 980px);
  margin: clamp(44px, 5.2vw, 72px) auto 0;
  padding: clamp(38px, 5vw, 56px) clamp(24px, 4.2vw, 52px) clamp(30px, 4vw, 46px);
  border: 2px solid rgba(var(--cpa-course-theme-rgb), 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(30, 27, 24, 0.07);
}

.cpa-course-home__notes-header {
  margin-bottom: 24px;
}

.cpa-course-home__notes-header h2 {
  margin: 0;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.14;
  font-weight: 650;
  letter-spacing: -0.045em;
  text-align: center;
  text-transform: none !important;
}

.cpa-course-home__notes-output {
  min-height: 0;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-body);
  font-size: 14px;
  line-height: 1.62;
}

.cpa-course-home__notes-output,
.cpa-course-home__notes-output * {
  box-sizing: border-box;
  max-width: 100%;
}

/* ProgressAlly owns Course Home private note view/edit/save/cancel behaviour. */
.cpa-course-home__notes-output .progressally-note-block {
  width: 100%;
  max-width: 100%;
}

.cpa-course-home__notes-output textarea,
.cpa-course-home__notes-output input[type="text"],
.cpa-course-home__notes-output input[type="email"],
.cpa-course-home__notes-output input[type="url"],
.cpa-course-home__notes-output input[type="search"] {
  max-width: 100%;
}

.cpa-course-home__section-header {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cpa-course-home__section-kicker {
  margin-bottom: 7px;
}

.cpa-course-home__section-header h2 {
  margin: 0;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.045em;
  text-transform: none !important;
}

.cpa-course-home__section-count {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--cpa-line);
  border-radius: var(--cpa-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--cpa-muted);
  font-family: var(--cpa-font-ui);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.cpa-course-home__destinations .cpa-course-home__section-header {
  margin-bottom: 44px;
  display: block;
}

.cpa-course-home__destinations .cpa-course-home__section-kicker {
  text-align: center;
}

.cpa-course-home__destinations .cpa-course-home__section-header h2 {
  text-align: center;
}

.cpa-course-home__destinations {
  --cpa-course-home-carousel-progress: 0%;
  --cpa-course-home-carousel-thumb: 42%;
}

/* =========================================================
   13.5 Hub destination cards
   Cards remain because each item is a genuine destination.
   ========================================================= */

.cpa-course-home__destination-grid {
  width: 100%;
  margin-inline: auto;
  display: grid;
  align-items: stretch;
  gap: 24px;
}

.cpa-course-home__destination-grid--count-1 {
  grid-template-columns: minmax(0, 500px);
  justify-content: center;
}

.cpa-course-home__destination-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
}

.cpa-course-home__destination-grid--count-3 {
  width: min(100%, 1220px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding-top: 18px;
}

.cpa-course-home__destination-grid--count-4 {
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
}

.cpa-course-home__destination--slot-left {
  order: 1;
}

.cpa-course-home__destination--slot-feature {
  order: 2;
}

.cpa-course-home__destination--slot-right {
  order: 3;
}

.cpa-course-home__destination,
.cpa-course-home__destination:visited {
  position: relative;
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--cpa-course-theme-line) !important;
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--cpa-bg-card) !important;
  color: var(--cpa-ink) !important;
  box-shadow: 0 12px 30px rgba(30, 27, 24, 0.055) !important;
  transform: translateY(0);
  transition:
    border-color 0.2s ease,
    transform 0.24s var(--cpa-layout-ease),
    box-shadow 0.24s ease !important;
}

.cpa-course-home__destination:hover {
  border-color: rgba(var(--cpa-course-theme-rgb), 0.42) !important;
  color: var(--cpa-ink) !important;
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(30, 27, 24, 0.095) !important;
}

.cpa-course-home__destination:focus {
  outline: none !important;
}

.cpa-course-home__destination:focus-visible {
  border-color: rgba(var(--cpa-course-theme-rgb), 0.62) !important;
  box-shadow: 0 0 0 4px rgba(var(--cpa-course-theme-rgb), 0.16) !important;
}

.cpa-course-home__destination-grid--has-feature:not(.cpa-course-home__destination-grid--count-3) .cpa-course-home__destination--featured {
  border-color: rgba(var(--cpa-course-theme-rgb), 0.46) !important;
  box-shadow: 0 16px 36px rgba(30, 27, 24, 0.09) !important;
}

.cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured {
  z-index: 2;
  transform: translateY(-18px);
  box-shadow: 0 22px 48px rgba(30, 27, 24, 0.12) !important;
}

.cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured:hover {
  transform: translateY(-24px);
}

.cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured .cpa-course-home__artwork {
  min-height: 245px;
}

.cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured .cpa-course-home__destination-body {
  padding: 23px 24px 25px;
}

.cpa-course-home__artwork {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 190px;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.54), transparent 28%),
    linear-gradient(135deg, var(--cpa-course-theme-soft), var(--cpa-course-theme));
}

.cpa-course-home__artwork-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.005);
  transition: transform 0.42s var(--cpa-layout-ease);
}

.cpa-course-home__destination:hover .cpa-course-home__artwork-image {
  transform: scale(1.045);
}

.cpa-course-home__artwork--variant-1 .cpa-course-home__artwork-image {
  object-position: 28% center;
}

.cpa-course-home__artwork--variant-2 .cpa-course-home__artwork-image {
  object-position: center center;
}

.cpa-course-home__artwork--variant-3 .cpa-course-home__artwork-image {
  object-position: 72% center;
}

.cpa-course-home__artwork--variant-4 .cpa-course-home__artwork-image {
  object-position: center 38%;
}

.cpa-course-home__artwork-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(30, 27, 24, 0.16);
}

.cpa-course-home__artwork-icon {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cpa-course-theme-deep);
  box-shadow: 0 8px 18px rgba(30, 27, 24, 0.12);
}

.cpa-course-home__artwork-icon svg {
  width: 20px;
  height: 20px;
}

.cpa-course-home__artwork-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  max-width: calc(100% - 32px);
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 27, 24, 0.88);
  color: #FFFFFF;
  font-family: var(--cpa-font-ui);
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 14px rgba(30, 27, 24, 0.14);
}

.cpa-course-home__generated-keys {
  position: absolute;
  z-index: 0;
  left: 7%;
  right: 7%;
  bottom: -8%;
  height: 64%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  transform: perspective(500px) rotateX(54deg) rotateZ(-5deg);
  transform-origin: center bottom;
  opacity: 0.82;
}

.cpa-course-home__generated-keys i {
  position: relative;
  border-radius: 4px 4px 1px 1px;
  display: block;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 0 rgba(30, 27, 24, 0.10);
}

.cpa-course-home__generated-keys i:nth-child(2)::before,
.cpa-course-home__generated-keys i:nth-child(3)::before,
.cpa-course-home__generated-keys i:nth-child(5)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: -34%;
  width: 68%;
  height: 58%;
  border-radius: 0 0 3px 3px;
  background: rgba(30, 27, 24, 0.82);
}

.cpa-course-home__destination-body {
  min-width: 0;
  padding: 20px 21px 21px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cpa-course-theme-mist) 180%);
}

.cpa-course-home__destination-kicker {
  align-self: center;
  margin-bottom: 8px;
  text-align: center;
}

.cpa-course-home__destination-title {
  align-self: center;
  width: 100%;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: 19px;
  line-height: 1.23;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

.cpa-course-home__destination-description {
  align-self: center;
  width: 100%;
  margin-top: 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--cpa-muted);
  font-size: 13.5px;
  line-height: 1.54;
  font-weight: 500;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cpa-course-home__destination-action {
  align-self: center;
  margin-top: 20px;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid var(--cpa-accent);
  border-radius: var(--cpa-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--cpa-accent);
  color: #FFFFFF;
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(237, 100, 59, 0.16);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s var(--cpa-layout-ease);
}

.cpa-course-home__destination-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--cpa-layout-ease);
}

.cpa-course-home__destination:hover .cpa-course-home__destination-action {
  border-color: var(--cpa-accent-hover);
  background: var(--cpa-accent-hover);
  box-shadow: 0 10px 22px rgba(237, 100, 59, 0.22);
  transform: translateX(2px);
}

.cpa-course-home__destination:hover .cpa-course-home__destination-arrow {
  transform: translateX(3px);
}

/* =========================================================
   13.6 Direct mode — structured presentation
   ========================================================= */

.cpa-course-home__direct-structured {
  width: min(100%, var(--cpa-course-home-direct-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpa-course-home__direct-section,
.cpa-course-home__direct-standalone {
  border: 1px solid var(--cpa-course-theme-line);
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(30, 27, 24, 0.032);
  transition:
    border-color var(--cpa-motion-fast) ease,
    box-shadow var(--cpa-motion-fast) ease;
}

.cpa-course-home__direct-section[open]:not(.is-closing),
.cpa-course-home__direct-section.is-open {
  border-color: rgba(var(--cpa-course-theme-rgb), 0.34);
  box-shadow: 0 14px 34px rgba(var(--cpa-course-theme-rgb), 0.075);
}

.cpa-course-home__direct-section-summary,
.cpa-course-home__direct-standalone,
.cpa-course-home__direct-standalone:visited {
  min-height: 88px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) max-content 34px;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  color: var(--cpa-ink) !important;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--cpa-course-theme-mist), #FFFFFF 72%);
  transition:
    background var(--cpa-motion-fast) ease,
    color var(--cpa-motion-fast) ease;
}

.cpa-course-home__direct-section--has-image .cpa-course-home__direct-section-summary,
.cpa-course-home__direct-standalone--has-image {
  min-height: 122px;
  grid-template-columns: minmax(146px, 174px) minmax(0, 1fr) max-content 34px;
}

.cpa-course-home__direct-section-summary::-webkit-details-marker {
  display: none;
}

.cpa-course-home__direct-section-summary:hover,
.cpa-course-home__direct-standalone:hover {
  background: linear-gradient(90deg, var(--cpa-course-theme-soft), #FFFFFF 72%);
}

.cpa-course-home__direct-section-summary:focus {
  outline: none;
}

.cpa-course-home__direct-section-summary:focus-visible,
.cpa-course-home__direct-standalone:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(var(--cpa-course-theme-rgb), 0.18) !important;
  outline: none;
}

.cpa-course-home__direct-section-index {
  width: 46px;
  height: 46px;
  border: 1px solid var(--cpa-course-theme-line);
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--cpa-course-theme-mist);
  color: var(--cpa-course-theme-deep);
  font-family: var(--cpa-font-ui);
  font-size: 12.5px;
  line-height: 1;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.cpa-course-home__outline-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--cpa-secondary-wash);
}

.cpa-course-home__direct-section .cpa-course-home__outline-media--module,
.cpa-course-home__direct-standalone .cpa-course-home__outline-media--module {
  width: 100%;
  max-width: 174px;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  background: var(--cpa-ink);
  box-shadow:
    0 8px 18px rgba(30, 27, 24, 0.075),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cpa-course-home__direct-section .cpa-course-home__outline-media--module::before,
.cpa-course-home__direct-section .cpa-course-home__outline-media--module::after,
.cpa-course-home__direct-standalone .cpa-course-home__outline-media--module::before,
.cpa-course-home__direct-standalone .cpa-course-home__outline-media--module::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cpa-course-home__direct-section .cpa-course-home__outline-media--module::before,
.cpa-course-home__direct-standalone .cpa-course-home__outline-media--module::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 40%),
    rgba(30, 27, 24, 0.30);
}

.cpa-course-home__direct-section .cpa-course-home__outline-media--module::after,
.cpa-course-home__direct-standalone .cpa-course-home__outline-media--module::after {
  content: attr(data-outline-index);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--cpa-font-ui);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(30, 27, 24, 0.45);
}

.cpa-course-home__outline-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cpa-course-home__outline-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.72), transparent 36%),
    var(--cpa-secondary-wash);
  color: var(--cpa-secondary-deep);
  font-family: var(--cpa-font-ui);
  font-size: 26px;
  line-height: 1;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.cpa-course-home__direct-section-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cpa-course-home__direct-section-title {
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: 17.5px;
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cpa-course-home__direct-section-description {
  max-width: 68ch;
  color: var(--cpa-muted);
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--cpa-font-body);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cpa-course-home__direct-section-count {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(var(--cpa-course-theme-rgb), 0.24);
  border-radius: var(--cpa-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--cpa-muted);
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.cpa-course-home__direct-section-chevron {
  width: 32px;
  height: 32px;
  border: 1px solid var(--cpa-course-theme-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  color: var(--cpa-muted);
  transition:
    border-color var(--cpa-motion-fast) ease,
    color var(--cpa-motion-fast) ease,
    transform var(--cpa-motion-fast) var(--cpa-layout-ease);
}

.cpa-course-home__direct-section-chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.8px 1.8px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.22s var(--cpa-layout-ease);
}

.cpa-course-home__direct-section-summary:hover .cpa-course-home__direct-section-chevron {
  border-color: rgba(237, 100, 59, 0.34);
  color: var(--cpa-accent-readable);
  transform: translateY(-1px);
}

.cpa-course-home__direct-section[open]:not(.is-closing) .cpa-course-home__direct-section-chevron::before,
.cpa-course-home__direct-section.is-open .cpa-course-home__direct-section-chevron::before {
  transform: translateY(2px) rotate(-135deg);
}

.cpa-course-home__direct-section-body {
  box-sizing: border-box;
  border-top: 1px solid var(--cpa-course-theme-line);
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cpa-course-theme-mist) 145%);
}

.cpa-course-home__direct-section-body-inner {
  box-sizing: border-box;
  padding: 6px 20px 18px;
}

.cpa-course-home__direct-section.is-opening .cpa-course-home__direct-section-body {
  transition:
    height var(--cpa-course-outline-open-speed) var(--cpa-layout-ease),
    opacity var(--cpa-course-outline-open-opacity-speed) ease;
  will-change: height, opacity;
}

.cpa-course-home__direct-section.is-closing .cpa-course-home__direct-section-body {
  transition:
    height var(--cpa-course-outline-close-speed) var(--cpa-layout-ease),
    opacity var(--cpa-course-outline-close-opacity-speed) ease;
  will-change: height, opacity;
}

.cpa-course-home__direct-section-actions {
  min-height: 32px;
  padding: 8px 0 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cpa-course-home__direct-section-overview,
.cpa-course-home__direct-section-overview:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cpa-accent-readable) !important;
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
}

.cpa-course-home__direct-section-overview-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  transition: transform 0.2s var(--cpa-layout-ease);
}

.cpa-course-home__direct-section-overview svg {
  width: 13px;
  height: 13px;
  display: block;
}

.cpa-course-home__direct-section-overview:hover .cpa-course-home__direct-section-overview-icon {
  transform: translateX(3px);
}

.cpa-course-home__structured-list,
.cpa-course-home__structured-list li,
.cpa-course-home__structured-children,
.cpa-course-home__structured-children li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.cpa-course-home__structured-list {
  padding-top: 2px !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cpa-course-home__structured-link,
.cpa-course-home__structured-link:visited {
  min-height: 58px;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-top: 1px solid var(--cpa-line-soft);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--cpa-ink) !important;
  font-family: var(--cpa-font-ui);
  transition:
    background var(--cpa-motion-fast) ease,
    border-color var(--cpa-motion-fast) ease,
    color var(--cpa-motion-fast) ease,
    transform var(--cpa-motion-fast) var(--cpa-layout-ease);
}

.cpa-course-home__structured-list > .cpa-course-home__structured-item:first-child > .cpa-course-home__structured-link {
  border-top: 0;
}

.cpa-course-home__structured-item--has-description > .cpa-course-home__structured-link {
  min-height: 74px;
}

.cpa-course-home__structured-link:hover,
.cpa-course-home__structured-link:focus-visible {
  border-color: var(--cpa-course-theme-line);
  background: linear-gradient(90deg, var(--cpa-course-theme-mist), #FFFFFF 78%);
  color: var(--cpa-ink) !important;
  outline: none;
}

.cpa-course-home__structured-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--cpa-course-theme-rgb), 0.15) !important;
}

.cpa-course-home__structured-link--label {
  cursor: default;
}

.cpa-course-home__structured-link--label:hover {
  border-color: transparent;
  background: transparent;
}

.cpa-course-home__structured-number {
  width: 58px;
  color: var(--cpa-muted-soft);
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.cpa-course-home__structured-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpa-course-home__structured-title {
  min-width: 0;
  color: currentColor;
  font-family: var(--cpa-font-ui);
  font-size: 14.2px;
  line-height: 1.34;
  font-weight: 650;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cpa-course-home__structured-description {
  max-width: 78ch;
  color: var(--cpa-muted);
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--cpa-font-body);
  font-size: 13px;
  line-height: 1.46;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cpa-course-home__structured-meta {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.cpa-course-home__structured-progress {
  color: var(--cpa-accent-readable);
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
  letter-spacing: 0;
  white-space: nowrap;
}

.cpa-course-home__structured-arrow {
  grid-column: 4;
  justify-self: end;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cpa-muted-soft);
  transition:
    color 0.18s ease,
    transform 0.18s var(--cpa-layout-ease);
}

.cpa-course-home__structured-arrow svg {
  width: 16px;
  height: 16px;
}

.cpa-course-home__structured-link:hover .cpa-course-home__structured-arrow,
.cpa-course-home__direct-standalone:hover .cpa-course-home__structured-arrow {
  color: var(--cpa-accent-readable);
  transform: translateX(2px);
}

.cpa-course-home__structured-children {
  margin-left: 70px !important;
  padding: 2px 0 2px 14px !important;
  border-left: 1px solid var(--cpa-course-theme-line);
}

.cpa-course-home__structured-item--depth-2 .cpa-course-home__structured-link,
.cpa-course-home__structured-item--depth-3 .cpa-course-home__structured-link,
.cpa-course-home__structured-item--depth-4 .cpa-course-home__structured-link {
  min-height: 47px;
  grid-template-columns: 64px minmax(0, 1fr) auto 26px;
}

.cpa-course-home__direct-standalone {
  grid-template-columns: 48px minmax(0, 1fr) auto 34px;
}

.cpa-course-home__direct-standalone.cpa-course-home__direct-standalone--has-image {
  grid-template-columns: minmax(146px, 174px) minmax(0, 1fr) max-content 34px;
}

.cpa-course-home__direct-standalone .cpa-course-home__structured-meta {
  grid-column: 3;
}

.cpa-course-home__direct-standalone .cpa-course-home__structured-arrow {
  grid-column: 4;
}

/* =========================================================
   13.7 Direct mode — visual presentation
   ========================================================= */

.cpa-course-home__direct-visual,
.cpa-course-home__visual-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cpa-course-home__direct-visual {
  --cpa-course-home-visual-card-min: clamp(240px, 28vw, 300px);
  --cpa-course-home-visual-card-max: clamp(300px, 32vw, 360px);

  width: min(100%, var(--cpa-course-home-direct-max));
  margin-inline: auto;
  gap: 28px;
}

.cpa-course-home__visual-section + .cpa-course-home__visual-section {
  padding-top: 8px;
}

.cpa-course-home__visual-section-header,
.cpa-course-home__visual-subsection-header {
  min-width: 0;
  padding: 0 2px 13px;
  border-bottom: 1px solid var(--cpa-course-theme-line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.cpa-course-home__visual-section-header > div,
.cpa-course-home__visual-subsection-header > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cpa-course-home__visual-section-header h3,
.cpa-course-home__visual-subsection-header h3 {
  margin: 0;
  color: var(--cpa-ink);
  font-family: var(--cpa-font-ui);
  font-size: 19px;
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: 0;
  text-transform: none !important;
  overflow-wrap: anywhere;
}

.cpa-course-home__visual-subsection-header h3 {
  font-size: 17px;
}

.cpa-course-home__visual-section-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.cpa-course-home__visual-section-count,
.cpa-course-home__visual-subsection-count {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(var(--cpa-course-theme-rgb), 0.24);
  border-radius: var(--cpa-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #FFFFFF;
  color: var(--cpa-muted);
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.cpa-course-home__visual-section-header .cpa-course-home__visual-section-overview,
.cpa-course-home__visual-subsection-header .cpa-course-home__visual-section-overview,
.cpa-course-home__visual-section-header .cpa-course-home__visual-section-overview:visited,
.cpa-course-home__visual-subsection-header .cpa-course-home__visual-section-overview:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cpa-accent-readable) !important;
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
}

.cpa-course-home__visual-section-overview-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  transition: transform 0.2s var(--cpa-layout-ease);
}

.cpa-course-home__visual-section-overview svg {
  width: 13px;
  height: 13px;
  display: block;
}

.cpa-course-home__visual-section-overview:hover .cpa-course-home__visual-section-overview-icon {
  transform: translateX(3px);
}

.cpa-course-home__visual-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(
      min(100%, var(--cpa-course-home-visual-card-min)),
      var(--cpa-course-home-visual-card-max)
    )
  );
  justify-content: start;
  gap: 14px;
}

.cpa-course-home__visual-subsection {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cpa-course-home__visual-lesson,
.cpa-course-home__visual-lesson:visited {
  position: relative;
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--cpa-course-theme-line) !important;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF !important;
  color: var(--cpa-ink) !important;
  font-family: var(--cpa-font-ui);
  box-shadow: 0 8px 24px rgba(30, 27, 24, 0.032) !important;
  transform: translateY(0);
  transition:
    border-color var(--cpa-motion-fast) ease,
    box-shadow var(--cpa-motion-fast) ease,
    transform var(--cpa-motion-fast) var(--cpa-layout-ease) !important;
}

.cpa-course-home__visual-lesson:hover {
  border-color: rgba(var(--cpa-course-theme-rgb), 0.40) !important;
  color: var(--cpa-ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 27, 24, 0.068) !important;
}

.cpa-course-home__visual-lesson:focus {
  outline: none;
}

.cpa-course-home__visual-lesson:focus-visible {
  border-color: rgba(var(--cpa-course-theme-rgb), 0.58) !important;
  box-shadow: 0 0 0 4px rgba(var(--cpa-course-theme-rgb), 0.15) !important;
}

.cpa-course-home__visual-lesson .cpa-course-home__outline-media--lesson {
  width: 100%;
  aspect-ratio: 1.82 / 1;
  border-bottom: 1px solid var(--cpa-course-theme-line);
  background: var(--cpa-secondary-wash);
}

.cpa-course-home__visual-lesson .cpa-course-home__outline-media--source-course::before,
.cpa-course-home__visual-lesson .cpa-course-home__outline-media--source-course::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cpa-course-home__visual-lesson .cpa-course-home__outline-media--source-course::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 42%),
    rgba(30, 27, 24, 0.30);
}

.cpa-course-home__visual-lesson .cpa-course-home__outline-media--source-course::after {
  content: attr(data-outline-index);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--cpa-font-ui);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(30, 27, 24, 0.45);
}

.cpa-course-home__visual-lesson-body {
  min-width: 0;
  padding: 14px 15px 16px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cpa-course-theme-mist) 180%);
}

.cpa-course-home__visual-lesson-kicker {
  margin-bottom: 0;
}

.cpa-course-home__visual-lesson-title {
  color: currentColor;
  font-family: var(--cpa-font-ui);
  font-size: 16px;
  line-height: 1.28;
  font-weight: 680;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cpa-course-home__visual-lesson-description {
  margin-top: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--cpa-muted);
  font-family: var(--cpa-font-body);
  font-size: 13.5px;
  line-height: 1.46;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cpa-course-home__visual-lesson-progress {
  margin-top: auto;
  padding-top: 2px;
  color: var(--cpa-accent-readable);
  font-family: var(--cpa-font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
}

.cpa-course-home__visual-lesson-open {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--cpa-radius-pill);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cpa-muted);
  box-shadow: 0 8px 20px rgba(30, 27, 24, 0.16);
  transition:
    color var(--cpa-motion-fast) ease,
    transform var(--cpa-motion-fast) var(--cpa-layout-ease);
}

.cpa-course-home__visual-lesson-open svg {
  width: 16px;
  height: 16px;
}

.cpa-course-home__visual-lesson:hover .cpa-course-home__visual-lesson-open {
  color: var(--cpa-accent-readable);
  transform: translateX(2px);
}

/* =========================================================
   13.8 Debug output
   ========================================================= */

.cpa-course-home-debug {
  width: min(calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter)), var(--cpa-course-home-content-max));
  margin: 28px auto 0;
  padding: 11px 13px;
  border: 1px solid #D9CFC4;
  border-radius: 10px;
  background: #FFF8EF;
  color: #1E1B18;
  font-family: var(--cpa-font-body);
  font-size: 12.5px;
  line-height: 1.45;
}

/* =========================================================
   13.9 Course Home tablet behaviour
   ========================================================= */

@media (min-width: 768px) and (max-width: 1099px) {
  .cpa-course-home-shell .cpa-lesson-main > .fl-col-content,
  .cpa-course-home-shell.cpa-layout-desktop-compact .cpa-lesson-main > .fl-col-content {
    padding: 0 0 64px !important;
  }

  .cpa-course-home {
    --cpa-course-home-gutter: clamp(28px, 4.6vw, 48px);
    --cpa-course-home-edge-height: clamp(120px, 13.4vw, 158px);
    --cpa-course-home-edge-safe-space: clamp(112px, 12.4vw, 154px);
    max-width: none;
  }

  .cpa-course-home--no-video.cpa-course-home--has-welcome-name,
  .cpa-course-home--no-video.cpa-course-home--has-subtitle {
    --cpa-course-home-edge-safe-space: clamp(124px, 14vw, 170px);
  }

  .cpa-course-home--edge-deep_swoop {
    --cpa-course-home-edge-height: clamp(146px, 15vw, 188px);
    --cpa-course-home-edge-safe-space: clamp(136px, 14.4vw, 184px);
  }

  .cpa-course-home--edge-deep_swoop.cpa-course-home--no-video.cpa-course-home--has-welcome-name,
  .cpa-course-home--edge-deep_swoop.cpa-course-home--no-video.cpa-course-home--has-subtitle {
    --cpa-course-home-edge-safe-space: clamp(146px, 15.6vw, 196px);
  }

  .cpa-course-home--edge-straight {
    --cpa-course-home-edge-safe-space: clamp(54px, 6.8vw, 86px);
  }

  .cpa-course-home--edge-straight.cpa-course-home--no-video.cpa-course-home--has-welcome-name,
  .cpa-course-home--edge-straight.cpa-course-home--no-video.cpa-course-home--has-subtitle {
    --cpa-course-home-edge-safe-space: clamp(54px, 6.8vw, 86px);
  }

  .cpa-course-home__hero {
    min-height: 0;
    padding: 38px 0 var(--cpa-course-home-edge-safe-space);
  }

  .cpa-course-home__hero-grid,
  .cpa-course-home--media-left .cpa-course-home__hero-grid {
    width: min(calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter)), 820px);
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .cpa-course-home--media-left .cpa-course-home__media,
  .cpa-course-home--media-left .cpa-course-home__identity {
    grid-column: auto;
    grid-row: auto;
  }

  .cpa-course-home--media-left .cpa-course-home__media {
    order: 2;
  }

  .cpa-course-home__identity {
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cpa-course-home__media {
    width: min(100%, 660px);
    margin-inline: auto;
  }

  .cpa-course-home__logo {
    width: min(100%, 360px);
    max-height: 124px;
    justify-content: center;
  }

  .cpa-course-home__logo-image {
    max-height: 124px;
    object-position: center;
  }

  .cpa-course-home__intro {
    margin-left: auto;
    margin-right: auto;
  }

  .cpa-course-home__status {
    --cpa-course-home-status-control-width: clamp(198px, 24vw, 250px);
    min-height: 0;
    padding-block: 28px 24px;
    grid-template-columns:
      minmax(0, var(--cpa-course-home-status-control-width))
      1px
      minmax(0, var(--cpa-course-home-status-control-width));
    grid-template-areas:
      "copy copy copy"
      "progress divider actions";
    justify-content: center;
    align-items: center;
    column-gap: clamp(18px, 3vw, 28px);
    row-gap: 18px;
    text-align: center;
  }

  .cpa-course-home--has-progress .cpa-course-home__status::before {
    content: "";
    grid-area: divider;
    width: 1px;
    min-height: 52px;
    align-self: stretch;
    background: var(--cpa-line-soft);
  }

  .cpa-course-home__status-copy {
    grid-area: copy;
    max-width: min(100%, 620px);
    justify-self: center;
    text-align: center;
  }

  .cpa-course-home__status-copy h2 {
    display: block;
  }

  .cpa-course-home__status-copy > p:last-child {
    display: block;
    max-width: min(100%, 540px);
    margin: 7px auto 0;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .cpa-course-home__status-kicker {
    margin-bottom: 0;
  }

  .cpa-course-home__status-progress {
    grid-area: progress;
    width: 100%;
    justify-self: stretch;
  }

  .cpa-course-home__status-actions {
    grid-area: actions;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    justify-self: stretch;
  }

  .cpa-course-home--has-progress .cpa-course-home__status-actions {
    padding-left: 0;
    border-left: 0;
  }

  .cpa-course-home--no-progress .cpa-course-home__status {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "actions";
  }

  .cpa-course-home--no-progress .cpa-course-home__status-actions {
    grid-area: actions;
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .cpa-course-home__primary-action,
  .cpa-course-home__native-cta a,
  .cpa-course-home__native-cta button,
  .cpa-course-home__native-cta input[type="button"],
  .cpa-course-home__native-cta input[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .cpa-course-home__destination-grid {
    width: 100%;
    margin-inline: 0;
    padding: 4px max(18px, calc((100vw - 100%) / 2)) 18px 0;
    display: flex;
    align-items: stretch;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0 var(--cpa-course-home-gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cpa-course-home__destination-grid::-webkit-scrollbar {
    display: none;
  }

  .cpa-course-home__destinations::after {
    content: "";
    width: 92px;
    height: 5px;
    margin: 14px auto 0;
    border-radius: var(--cpa-radius-pill);
    display: block;
    background:
      linear-gradient(90deg, rgba(var(--cpa-course-theme-rgb), 0.5), rgba(var(--cpa-course-theme-rgb), 0.5)) no-repeat,
      rgba(var(--cpa-course-theme-rgb), 0.16);
    background-position: var(--cpa-course-home-carousel-progress) center, center;
    background-size: var(--cpa-course-home-carousel-thumb) 100%, 100% 100%;
  }

  .cpa-course-home__destinations:not(.is-carousel-scrollable)::after {
    display: none;
  }

  .cpa-course-home__destinations:has(.cpa-course-home__destination-grid--count-1)::after {
    display: none;
  }

  .cpa-course-home__destination-grid--count-1 {
    width: min(100%, 500px);
    margin-inline: auto;
    padding: 0;
    display: grid;
    overflow: visible;
  }

  .cpa-course-home__destination-grid--count-3,
  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature,
  .cpa-course-home__destination-grid--count-4 {
    width: 100%;
  }

  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature {
    padding-top: 4px;
  }

  .cpa-course-home__destination {
    flex: 0 0 clamp(320px, 44%, 420px);
    scroll-snap-align: start;
  }

  .cpa-course-home__destination--slot-left,
  .cpa-course-home__destination--slot-feature,
  .cpa-course-home__destination--slot-right {
    order: initial;
  }

  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(30, 27, 24, 0.055) !important;
  }

  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured:hover {
    transform: translateY(-3px);
  }

  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured .cpa-course-home__artwork {
    min-height: 190px;
  }

  .cpa-course-home__visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   13.10 Course Home mobile app layout
   ========================================================= */

@media (max-width: 767px) {
  .cpa-course-home-shell .cpa-lesson-main > .fl-col-content,
  .cpa-course-home-shell.cpa-layout-desktop-compact .cpa-lesson-main > .fl-col-content {
    padding: 0 0 calc(34px + var(--cpa-global-mobile-height, 78px) + env(safe-area-inset-bottom, 0px)) !important;
  }

  .cpa-course-home {
    --cpa-course-home-gutter: 16px;
    --cpa-course-home-section-space: 42px;
    --cpa-course-home-edge-height: 92px;
    --cpa-course-home-edge-safe-space: 82px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .cpa-course-home--no-video.cpa-course-home--has-welcome-name,
  .cpa-course-home--no-video.cpa-course-home--has-subtitle {
    --cpa-course-home-edge-safe-space: 96px;
  }

  .cpa-course-home--edge-deep_swoop {
    --cpa-course-home-edge-height: 108px;
    --cpa-course-home-edge-safe-space: 100px;
  }

  .cpa-course-home--edge-deep_swoop.cpa-course-home--no-video.cpa-course-home--has-welcome-name,
  .cpa-course-home--edge-deep_swoop.cpa-course-home--no-video.cpa-course-home--has-subtitle {
    --cpa-course-home-edge-safe-space: 112px;
  }

  .cpa-course-home--edge-straight {
    --cpa-course-home-edge-safe-space: 54px;
  }

  .cpa-course-home--edge-straight.cpa-course-home--no-video.cpa-course-home--has-welcome-name,
  .cpa-course-home--edge-straight.cpa-course-home--no-video.cpa-course-home--has-subtitle {
    --cpa-course-home-edge-safe-space: 54px;
  }

  .cpa-course-home__content {
    padding: 0;
    gap: 0;
  }

  .cpa-course-home__hero {
    min-height: 0;
    padding: 24px 0 var(--cpa-course-home-edge-safe-space);
    border-radius: 0;
  }

  .cpa-course-home__hero::before {
    width: 176px;
    height: 176px;
    right: -78px;
    top: -82px;
  }

  .cpa-course-home__hero-grid,
  .cpa-course-home--media-left .cpa-course-home__hero-grid {
    width: calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter));
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .cpa-course-home--media-left .cpa-course-home__media,
  .cpa-course-home--media-left .cpa-course-home__identity {
    grid-column: auto;
    grid-row: auto;
  }

  .cpa-course-home--media-left .cpa-course-home__media {
    order: 2;
  }

  .cpa-course-home__identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cpa-course-home__eyebrow {
    display: none;
    margin-bottom: 9px;
  }

  .cpa-course-home__logo {
    max-height: 96px;
    margin-bottom: 12px;
    justify-content: center;
  }

  .cpa-course-home__logo-image {
    max-height: 96px;
    object-position: center;
  }

  .cpa-course-home__title {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.08;
  }

  .cpa-course-home__welcome,
  .cpa-course-home__subtitle {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.28;
  }

  .cpa-course-home__welcome {
    font-size: 32px;
    line-height: 1;
  }

  .cpa-course-home__welcome + .cpa-course-home__intro,
  .cpa-course-home__subtitle + .cpa-course-home__intro {
    margin-top: 9px;
  }

  .cpa-course-home__intro {
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .cpa-course-home__video-frame {
    padding: 4px;
    border-radius: 14px;
  }

  .cpa-course-home__video-frame iframe {
    border-radius: 10px;
  }

  .cpa-course-home--no-video .cpa-course-home__hero {
    min-height: 210px;
  }

  .cpa-course-home__status,
  .cpa-course-home--no-progress .cpa-course-home__status {
    --cpa-course-home-status-control-width: 148px;

    min-height: 0;
    padding: 22px var(--cpa-course-home-gutter) 21px;
    border-radius: 0;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    grid-template-areas:
      "copy copy copy"
      "progress divider actions";
    justify-content: stretch;
    align-items: center;
    column-gap: 12px;
    row-gap: 14px;
    text-align: center;
  }

  .cpa-course-home--has-progress .cpa-course-home__status::before {
    content: "";
    grid-area: divider;
    width: 1px;
    min-height: 46px;
    align-self: stretch;
    background: var(--cpa-line-soft);
  }

  .cpa-course-home__status-copy {
    grid-area: copy;
    max-width: min(100%, 420px);
    justify-self: center;
  }

  .cpa-course-home__status-copy h2 {
    display: none;
  }

  .cpa-course-home__status-copy > p:last-child {
    display: block;
    max-width: min(100%, 390px);
    margin: 6px auto 0;
    font-size: 12.5px;
    line-height: 1.38;
  }

  .cpa-course-home__status-kicker {
    margin-bottom: 0;
  }

  .cpa-course-home__status-progress {
    grid-area: progress;
    width: min(100%, var(--cpa-course-home-status-control-width));
    margin-inline: 0;
    justify-self: end;
  }

  .cpa-course-home__progress-meta {
    margin-bottom: 6px;
    gap: 6px;
    font-size: 10.8px;
  }

  .cpa-course-home__progress-meta strong {
    font-size: 11px;
  }

  .cpa-course-home__status-actions,
  .cpa-course-home--no-progress .cpa-course-home__status-actions {
    grid-area: actions;
    width: min(100%, var(--cpa-course-home-status-control-width));
    min-width: 0;
    min-height: 0;
    margin-inline: 0;
    flex-direction: column;
    align-items: stretch;
    justify-self: start;
  }

  .cpa-course-home--has-progress .cpa-course-home__status-actions {
    padding-left: 0;
    border-left: 0;
  }

  .cpa-course-home--no-progress .cpa-course-home__status {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "actions";
  }

  .cpa-course-home--no-progress .cpa-course-home__status-actions {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .cpa-course-home__primary-action,
  .cpa-course-home__native-cta a,
  .cpa-course-home__native-cta button,
  .cpa-course-home__native-cta input[type="button"],
  .cpa-course-home__native-cta input[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 11.2px !important;
  }

  .cpa-course-home__destinations,
  .cpa-course-home__direct {
    width: 100%;
    padding: var(--cpa-course-home-section-space) var(--cpa-course-home-gutter) 0;
  }

  .cpa-course-home__notes {
    width: calc(100% - var(--cpa-course-home-gutter) - var(--cpa-course-home-gutter));
    padding: 30px 18px 26px;
    border-radius: 14px;
  }

  .cpa-course-home__notes-header {
    margin-bottom: 18px;
  }

  .cpa-course-home__notes-header h2 {
    font-size: 23px;
  }

  .cpa-course-home__notes-output textarea,
  .cpa-course-home__notes-output input[type="text"],
  .cpa-course-home__notes-output input[type="email"],
  .cpa-course-home__notes-output input[type="url"],
  .cpa-course-home__notes-output input[type="search"] {
    font-size: 16px !important;
  }

  .cpa-course-home__section-header {
    margin-bottom: 13px;
    align-items: flex-start;
  }

  .cpa-course-home__destinations .cpa-course-home__section-header {
    margin-bottom: 30px;
  }

  .cpa-course-home__section-header h2 {
    font-size: 23px;
  }

  .cpa-course-home__section-count {
    min-height: 28px;
    font-size: 11px;
  }

  .cpa-course-home__destination-grid,
  .cpa-course-home__destination-grid--count-1,
  .cpa-course-home__destination-grid--count-2,
  .cpa-course-home__destination-grid--count-3,
  .cpa-course-home__destination-grid--count-4 {
    width: 100%;
    margin-inline: 0;
    padding: 2px var(--cpa-course-home-gutter) 18px 0;
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0 var(--cpa-course-home-gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cpa-course-home__destination-grid::-webkit-scrollbar {
    display: none;
  }

  .cpa-course-home__destinations::after {
    content: "";
    width: 82px;
    height: 5px;
    margin: 12px auto 0;
    border-radius: var(--cpa-radius-pill);
    display: block;
    background:
      linear-gradient(90deg, rgba(var(--cpa-course-theme-rgb), 0.52), rgba(var(--cpa-course-theme-rgb), 0.52)) no-repeat,
      rgba(var(--cpa-course-theme-rgb), 0.16);
    background-position: var(--cpa-course-home-carousel-progress) center, center;
    background-size: var(--cpa-course-home-carousel-thumb) 100%, 100% 100%;
  }

  .cpa-course-home__destinations:not(.is-carousel-scrollable)::after {
    display: none;
  }

  .cpa-course-home__destinations:has(.cpa-course-home__destination-grid--count-1)::after {
    display: none;
  }

  .cpa-course-home__destination-grid--count-1 {
    width: min(100%, 390px);
    margin-inline: auto;
    padding: 0;
    display: grid;
    overflow: visible;
  }

  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature {
    padding-top: 2px;
  }

  .cpa-course-home__destination--slot-left,
  .cpa-course-home__destination--slot-feature,
  .cpa-course-home__destination--slot-right {
    order: initial;
  }

  .cpa-course-home__destination,
  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured {
    flex: 0 0 min(82%, 340px);
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(30, 27, 24, 0.055) !important;
  }

  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured:hover {
    transform: translateY(-4px);
  }

  .cpa-course-home__destination .cpa-course-home__artwork,
  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured .cpa-course-home__artwork {
    height: auto;
    min-height: 190px;
    aspect-ratio: 16 / 9;
  }

  .cpa-course-home__destination-body,
  .cpa-course-home__destination-grid--count-3.cpa-course-home__destination-grid--has-feature .cpa-course-home__destination--featured .cpa-course-home__destination-body {
    padding: 18px;
  }

  .cpa-course-home__destination-title {
    font-size: 18px;
  }

  .cpa-course-home__direct-section-summary,
  .cpa-course-home__direct-standalone {
    min-height: 0;
    padding: 12px;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    grid-template-areas:
      "index copy chevron"
      ". meta chevron";
    align-items: center;
    column-gap: 11px;
    row-gap: 7px;
  }

  .cpa-course-home__direct-section--has-image .cpa-course-home__direct-section-summary,
  .cpa-course-home__direct-standalone--has-image {
    min-height: 112px;
    grid-template-columns: minmax(96px, 112px) minmax(0, 1fr) 30px;
    grid-template-areas:
      "media copy chevron"
      "media meta chevron";
  }

  .cpa-course-home__direct-section .cpa-course-home__outline-media--module,
  .cpa-course-home__direct-standalone .cpa-course-home__outline-media--module {
    grid-area: media;
    height: 100%;
    min-height: 92px;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 10px;
  }

  .cpa-course-home__direct-section .cpa-course-home__outline-media--module::after,
  .cpa-course-home__direct-standalone .cpa-course-home__outline-media--module::after {
    font-size: 20px;
  }

  .cpa-course-home__direct-section-index {
    grid-area: index;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 11.5px;
  }

  .cpa-course-home__direct-section-heading {
    grid-area: copy;
    gap: 5px;
  }

  .cpa-course-home__direct-section-title {
    font-size: 15.5px;
    line-height: 1.27;
  }

  .cpa-course-home__direct-section-description {
    font-size: 12.5px;
    line-height: 1.44;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .cpa-course-home__direct-section-count {
    grid-area: meta;
    justify-self: start;
    min-height: 27px;
    padding: 0 9px;
    font-size: 11px;
  }

  .cpa-course-home__direct-section-chevron {
    grid-area: chevron;
    justify-self: end;
    width: 29px;
    height: 29px;
  }

  .cpa-course-home__direct-section-body-inner {
    padding: 4px 12px 13px;
  }

  .cpa-course-home__direct-standalone {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    grid-template-areas:
      "index copy chevron"
      ". meta chevron";
  }

  .cpa-course-home__direct-standalone.cpa-course-home__direct-standalone--has-image {
    grid-template-columns: minmax(96px, 112px) minmax(0, 1fr) 30px;
    grid-template-areas:
      "media copy chevron"
      "media meta chevron";
  }

  .cpa-course-home__direct-standalone .cpa-course-home__structured-meta {
    grid-area: meta;
    justify-self: start;
  }

  .cpa-course-home__structured-link {
    min-height: 50px;
    padding: 10px 8px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .cpa-course-home__structured-number {
    width: 46px;
    font-size: 11.5px;
  }

  .cpa-course-home__structured-title {
    font-size: 13.5px;
    line-height: 1.32;
  }

  .cpa-course-home__structured-description {
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .cpa-course-home__structured-progress {
    font-size: 11.5px;
  }

  .cpa-course-home__structured-arrow {
    display: none;
  }

  .cpa-course-home__direct-standalone .cpa-course-home__structured-arrow {
    grid-area: chevron;
    display: grid;
  }

  .cpa-course-home__structured-children {
    margin-left: 50px !important;
    padding-left: 10px !important;
  }

  .cpa-course-home__structured-children .cpa-course-home__structured-link {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .cpa-course-home__visual-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cpa-course-home__visual-section {
    gap: 11px;
  }

  .cpa-course-home__visual-section + .cpa-course-home__visual-section {
    padding-top: 4px;
  }

  .cpa-course-home__visual-section-header,
  .cpa-course-home__visual-subsection-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 0 2px 10px;
  }

  .cpa-course-home__visual-section-header h3 {
    font-size: 16.5px;
    line-height: 1.22;
  }

  .cpa-course-home__visual-section-meta {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .cpa-course-home__visual-section-count,
  .cpa-course-home__visual-subsection-count {
    min-height: 27px;
    padding: 0 9px;
    font-size: 11px;
  }

  .cpa-course-home__visual-section-header .cpa-course-home__visual-section-overview,
  .cpa-course-home__visual-subsection-header .cpa-course-home__visual-section-overview,
  .cpa-course-home__visual-section-header .cpa-course-home__visual-section-overview:visited,
  .cpa-course-home__visual-subsection-header .cpa-course-home__visual-section-overview:visited {
    font-size: 11.5px;
  }

  .cpa-course-home__visual-lesson {
    min-height: 112px;
    border-radius: 11px;
    display: grid;
    grid-template-columns: minmax(86px, 106px) minmax(0, 1fr);
    align-items: stretch;
  }

  .cpa-course-home__visual-lesson:hover {
    transform: none;
  }

  .cpa-course-home__visual-lesson .cpa-course-home__outline-media--lesson {
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
    border-right: 1px solid var(--cpa-line-soft);
    border-bottom: 0;
  }

  .cpa-course-home__outline-placeholder {
    font-size: 22px;
  }

  .cpa-course-home__visual-lesson-body {
    padding: 12px 38px 12px 13px;
    gap: 5px;
  }

  .cpa-course-home__visual-lesson-kicker {
    font-size: 10px;
    letter-spacing: 0;
  }

  .cpa-course-home__visual-lesson-title {
    font-size: 14.5px;
    line-height: 1.28;
  }

  .cpa-course-home__visual-lesson-description {
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .cpa-course-home__visual-lesson-progress {
    font-size: 11.5px;
  }

  .cpa-course-home__visual-lesson-open {
    top: 50%;
    right: 10px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
  }

  .cpa-course-home__visual-lesson:hover .cpa-course-home__visual-lesson-open {
    transform: translateY(-50%);
  }
}

@media (max-width: 430px) {
  .cpa-course-home {
    --cpa-course-home-gutter: 14px;
  }

  .cpa-course-home__visual-lesson {
    grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);
  }

  .cpa-course-home__visual-lesson-description {
    display: none;
  }
}

@media (max-width: 370px) {
  .cpa-course-home__visual-lesson {
    grid-template-columns: minmax(76px, 90px) minmax(0, 1fr);
  }

  .cpa-course-home__visual-lesson-body {
    padding-left: 11px;
  }
}

.cpa-course-home__destinations:last-child,
.cpa-course-home__direct:last-child,
.cpa-course-home-debug:last-child {
  margin-bottom: 4px;
}

/* =========================================================
   13.11 Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .cpa-course-home__destination,
  .cpa-course-home__artwork-image,
  .cpa-course-home__destination-arrow,
  .cpa-course-home__direct-section,
  .cpa-course-home__direct-section-summary,
  .cpa-course-home__direct-section-chevron,
  .cpa-course-home__direct-section-chevron::before,
  .cpa-course-home__direct-section-body,
  .cpa-course-home__structured-link,
  .cpa-course-home__structured-arrow,
  .cpa-course-home__visual-lesson,
  .cpa-course-home__visual-lesson-open,
  .cpa-course-home__primary-action,
  .cpa-course-home__native-cta a,
  .cpa-course-home__native-cta button,
  .cpa-course-home__native-cta input {
    transition: none !important;
  }
}
