.hjlp-entrypoint,
.hjlp-shortcode-cta,
.hjlp-journey-runtime,
body.hjlp-learning-screen-as-journey,
.hjlp-learning-item-panel,
.hjlp-learning-node-detail {
    --hjlp-brand: #2f1854;
    --hjlp-brand-strong: #21103d;
    --hjlp-button-hover: #4a2a7d;
    --hjlp-brand-soft: #f3eefb;
    --hjlp-brand-line: #d9caec;
    --hjlp-hero-dark: #02101c;
    --hjlp-hero-dark-tint: #1b2833;
    --hjlp-accent: #f8b042;
    --hjlp-accent-ink: #883a01;
    --hjlp-danger: #ff6746;
    --hjlp-reference-success: #1bd084;
    --hjlp-ink: #21182f;
    --hjlp-muted: #6b6378;
    --hjlp-surface: #ffffff;
    --hjlp-neutral: #f4f5f8;
    --hjlp-warm: #fbf7eb;
    --hjlp-success: #237a4b;
    font-family: Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--hjlp-ink);
}

.hjlp-entrypoint {
    position: relative;
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--hjlp-brand-line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
        url("../images/reference/heroic-bg-blur.jpg") center/cover no-repeat;
    box-shadow: 0 18px 42px rgba(47, 24, 84, 0.08);
    overflow: hidden;
}

.hjlp-entrypoint h3 {
    margin: 0 0 8px;
    color: var(--hjlp-brand);
    font-size: 24px;
    line-height: 1.2;
}

.hjlp-entrypoint p {
    margin: 0 0 16px;
    color: var(--hjlp-muted);
}

.hjlp-entrypoint p:last-child,
.hjlp-shortcode-cta {
    margin-bottom: 0;
}

.hjlp-journey-runtime {
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.55;
}

.hjlp-runtime-hero {
    position: relative;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--hjlp-brand-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 247, 235, 0.92) 100%),
        url("../images/reference/heroic-bg-blur.jpg") center/cover no-repeat;
    box-shadow: 0 18px 48px rgba(47, 24, 84, 0.08);
    overflow: hidden;
}

.hjlp-runtime-hero::after {
    position: absolute;
    right: -72px;
    bottom: -96px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(248, 176, 66, 0.16);
    content: "";
    pointer-events: none;
}

.hjlp-runtime-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.hjlp-runtime-brand img {
    display: block;
    width: min(220px, 58vw);
    height: auto;
}

.hjlp-runtime-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    color: var(--hjlp-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hjlp-runtime-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--hjlp-brand-strong);
    font-size: 34px;
    line-height: 1.15;
}

.hjlp-runtime-hero p {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 14px 0 0;
    color: var(--hjlp-muted);
}

.hjlp-framework-overview {
    background: #fff;
    border: 1px solid rgba(124, 84, 178, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(47, 24, 84, 0.08);
    margin: 24px 0;
    overflow: hidden;
}

.hjlp-framework-overview__header {
    padding: 22px 24px 16px;
}

.hjlp-framework-overview__eyebrow {
    color: var(--hjlp-brand);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hjlp-framework-overview h3 {
    color: var(--hjlp-brand-strong);
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.hjlp-framework-overview__description {
    color: var(--hjlp-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-top: 10px;
}

.hjlp-framework-overview__description p {
    margin: 0 0 8px;
}

.hjlp-framework-overview__description p:last-child {
    margin-bottom: 0;
}

.hjlp-framework-overview__frame {
    background: #120d1c;
    border-top: 1px solid rgba(124, 84, 178, 0.18);
    height: 420px;
    min-height: 320px;
}

.hjlp-framework-overview__frame iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.hjlp-framework-overview--html-only .hjlp-framework-overview__frame {
    border-top: 0;
}

.hjlp-course-tabs-fallback {
    clear: both;
    width: 100%;
}

.hjlp-course-tabs-fallback .hjlp-framework-overview {
    clear: both;
    width: 100%;
}

.hjlp-course-tabs-fallback #learn-press-course-tabs,
.hjlp-course-tabs-fallback .learnpress-course-tabs {
    clear: both;
    width: 100%;
}

.hjlp-course-tabs-fallback .course-nav-tabs {
    align-items: center;
    border-bottom: 1px solid rgba(124, 84, 178, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.hjlp-course-tabs-fallback .course-nav-tabs li {
    list-style: none;
    margin: 0;
}

.hjlp-course-tabs-fallback .course-nav-tabs a {
    color: var(--hjlp-brand-strong);
    display: inline-flex;
    font-weight: 700;
    padding: 14px 18px;
    text-decoration: none;
}

.hjlp-course-tabs-fallback .course-nav-tabs .active a,
.hjlp-course-tabs-fallback .course-nav-tabs .course-nav-tab-active a {
    border-bottom: 2px solid var(--hjlp-brand);
    color: var(--hjlp-brand);
}

.hjlp-course-tabs-fallback .course-tab-panel[hidden] {
    display: none !important;
}

.hjlp-course-tabs-fallback .course-tab-panel.active {
    display: block;
}

.hjlp-public-journey-map {
    background: #fff;
    border: 1px solid rgba(124, 84, 178, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(47, 24, 84, 0.08);
    margin: 24px 0;
    overflow: hidden;
}

.hjlp-public-journey-map__header {
    border-bottom: 1px solid rgba(124, 84, 178, 0.14);
    padding: 22px 24px 16px;
}

.hjlp-public-journey-map__header h3 {
    color: var(--hjlp-brand-strong);
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.hjlp-public-journey-map__header p {
    color: var(--hjlp-muted);
    margin: 10px 0 0;
    max-width: none;
}

.hjlp-public-journey-map__tree {
    padding: 18px;
}

.hjlp-public-journey-map__act {
    border: 1px solid rgba(124, 84, 178, 0.16);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.hjlp-public-journey-map__act > summary {
    align-items: center;
    background: rgba(250, 245, 234, 0.9);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 14px 16px;
}

.hjlp-public-journey-map__act-title {
    align-items: baseline;
    display: inline-flex;
    gap: 8px;
}

.hjlp-public-journey-map__act-count,
.hjlp-public-journey-map__stage-badge {
    align-items: center;
    background: rgba(83, 52, 131, 0.1);
    border-radius: 999px;
    color: #533483;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    padding: 4px 9px;
    white-space: nowrap;
}

.hjlp-public-journey-map__act > summary::-webkit-details-marker {
    display: none;
}

.hjlp-public-journey-map__stage-list,
.hjlp-public-journey-map__nodes,
.hjlp-public-journey-map__section-links,
.hjlp-public-journey-map__section-items,
.hjlp-public-journey-map__linked-items,
.hjlp-public-journey-map__meta-cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hjlp-public-journey-map__stage {
    border-top: 1px solid rgba(124, 84, 178, 0.1);
    padding: 16px;
}

.hjlp-public-journey-map__stage-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.hjlp-public-journey-map__stage-title-wrap {
    display: block;
    min-width: 0;
}

.hjlp-public-journey-map__stage-kicker {
    color: rgba(24, 43, 63, 0.72);
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.hjlp-public-journey-map__stage-badges {
    align-items: flex-end;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
}

.hjlp-public-journey-map__stage-head strong {
    color: var(--hjlp-brand-strong);
    font-size: 20px;
    line-height: 1.2;
}

.hjlp-public-journey-map__stage-head small,
.hjlp-public-journey-map__act > summary small {
    color: var(--hjlp-muted);
}

.hjlp-public-journey-map__stage-meta {
    color: var(--hjlp-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
}

.hjlp-public-journey-map__nodes {
    margin-top: 14px;
}

.hjlp-public-journey-map__nodes li,
.hjlp-public-journey-map__linked-items li,
.hjlp-public-journey-map__meta-cards li,
.hjlp-public-journey-map__section-items li {
    color: var(--hjlp-brand-strong);
    line-height: 1.5;
    padding: 4px 0;
}

.hjlp-public-journey-map__node {
    align-items: center;
    border-bottom: 1px solid rgba(20, 35, 55, 0.08);
    display: flex;
    gap: 12px;
    padding: 10px 0 !important;
}

.hjlp-public-journey-map__node:last-child {
    border-bottom: 0;
}

.hjlp-public-journey-map__node-step {
    align-items: center;
    background: #f8b042;
    border-radius: 999px;
    color: #21103d;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 12px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    line-height: 1;
    width: 24px;
}

.hjlp-public-journey-map__node-main {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.hjlp-public-journey-map__node-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.hjlp-public-journey-map__node-row strong {
    font-size: 14px;
    line-height: 1.3;
}

.hjlp-public-journey-map__node-meta {
    color: #6b6378;
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 4px;
}

.hjlp-public-journey-map__node-type {
    background: rgba(105, 69, 171, 0.08);
    border-radius: 999px;
    color: var(--hjlp-brand);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 3px 8px;
    text-transform: uppercase;
}

.hjlp-public-journey-map__links {
    background: rgba(247, 243, 252, 0.65);
    border: 1px solid rgba(124, 84, 178, 0.12);
    border-radius: 8px;
    margin-top: 14px;
    overflow: hidden;
}

.hjlp-public-journey-map__links > summary,
.hjlp-public-journey-map__section-node > summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
}

.hjlp-public-journey-map__links > summary::-webkit-details-marker,
.hjlp-public-journey-map__section-node > summary::-webkit-details-marker {
    display: none;
}

.hjlp-public-journey-map__links-body {
    border-top: 1px solid rgba(124, 84, 178, 0.12);
    padding: 14px;
}

.hjlp-public-journey-map__links-body p {
    margin: 0 0 10px;
    max-width: none;
}

.hjlp-public-journey-map__section-node {
    background: #fff;
    border: 1px solid rgba(124, 84, 178, 0.12);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.hjlp-public-journey-map__section-items {
    border-top: 1px solid rgba(124, 84, 178, 0.1);
    padding: 10px 14px 12px;
}

.hjlp-runtime-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hjlp-runtime-stats span,
.hjlp-runtime-chip,
.hjlp-runtime-node__type,
.hjlp-runtime-node__artifact,
.hjlp-runtime-node__progress,
.hjlp-runtime-linked-item__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hjlp-brand-soft);
    color: var(--hjlp-brand);
    font-size: 13px;
    font-weight: 800;
}

.hjlp-runtime-act {
    margin: 0 0 20px;
    border: 1px solid var(--hjlp-brand-line);
    border-radius: 8px;
    background: var(--hjlp-surface);
    overflow: hidden;
}

.hjlp-runtime-act__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: var(--hjlp-warm);
    border-bottom: 1px solid rgba(47, 24, 84, 0.12);
}

.hjlp-runtime-act:nth-of-type(2) .hjlp-runtime-act__header {
    background: #eefbf4;
}

.hjlp-runtime-act:nth-of-type(3) .hjlp-runtime-act__header {
    background: var(--hjlp-hero-dark);
}

.hjlp-runtime-act:nth-of-type(3) .hjlp-runtime-act__header h3,
.hjlp-runtime-act:nth-of-type(3) .hjlp-runtime-act__header span {
    color: #fff;
}

.hjlp-runtime-act__header h3 {
    margin: 0;
    color: var(--hjlp-brand-strong);
    font-size: 22px;
    line-height: 1.25;
}

.hjlp-runtime-act__header span {
    color: var(--hjlp-muted);
    font-size: 14px;
    font-weight: 700;
}

.hjlp-assessment-runtime__notice {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--hjlp-brand-line);
    border-radius: 8px;
    background: #f7f3fd;
    color: var(--hjlp-ink);
}

.hjlp-assessment-runtime__notice p {
    margin: 0;
}

.hjlp-assessment-runtime__notice--success {
    border-color: rgba(35, 122, 75, 0.2);
    background: rgba(27, 208, 132, 0.12);
    color: var(--hjlp-success);
}

.hjlp-assessment-runtime__notice--error {
    border-color: rgba(255, 103, 70, 0.28);
    background: rgba(255, 103, 70, 0.1);
    color: #9c2f1c;
}

.hjlp-assessment-runtime__notice--warning {
    border-color: rgba(248, 176, 66, 0.32);
    background: rgba(248, 176, 66, 0.12);
    color: var(--hjlp-accent-ink);
}

.hjlp-runtime-stage {
    margin: 14px;
    border: 1px solid var(--hjlp-brand-line);
    border-radius: 8px;
    background: #fff;
}

.hjlp-runtime-stage + .hjlp-runtime-stage {
    margin-top: 16px;
}

.hjlp-runtime-stage summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 18px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(90deg, #fbf9ff 0%, #ffffff 100%);
    border-radius: 8px;
}

.hjlp-runtime-stage[open] summary {
    border-bottom: 1px solid var(--hjlp-brand-line);
    border-radius: 8px 8px 0 0;
}

.hjlp-runtime-stage summary::-webkit-details-marker {
    display: none;
}

.hjlp-runtime-stage__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--hjlp-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.hjlp-runtime-stage--current summary {
    background: linear-gradient(90deg, rgba(47, 24, 84, 0.1) 0%, rgba(248, 176, 66, 0.12) 100%);
}

.hjlp-runtime-stage--access-locked {
    opacity: 0.72;
}

.hjlp-runtime-stage--access-locked summary {
    background: linear-gradient(90deg, #f4f5f8 0%, #ffffff 100%);
}

.hjlp-runtime-stage--access-locked .hjlp-runtime-stage__index {
    background: var(--hjlp-muted);
}

.hjlp-runtime-stage__title {
    color: var(--hjlp-brand-strong);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.hjlp-runtime-stage__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: var(--hjlp-muted);
    font-size: 13px;
    font-weight: 700;
}

.hjlp-runtime-chip {
    min-height: 24px;
    padding: 3px 10px;
    font-size: 12px;
}

.hjlp-runtime-chip--active {
    background: #e8f5ee;
    color: var(--hjlp-success);
}

.hjlp-runtime-chip--current {
    background: var(--hjlp-brand);
    color: #fff;
}

.hjlp-runtime-chip--locked {
    background: #edf0f4;
    color: var(--hjlp-muted);
}

.hjlp-runtime-chip--available {
    background: #eefbf4;
    color: var(--hjlp-success);
}

.hjlp-runtime-chip--completed,
.hjlp-runtime-node__progress--completed,
.hjlp-runtime-linked-item__status--completed {
    background: #e8f8f0;
    color: var(--hjlp-success);
}

.hjlp-runtime-chip--in_progress,
.hjlp-runtime-node__progress--in_progress,
.hjlp-runtime-linked-item__status--in_progress {
    background: #fff6e8;
    color: var(--hjlp-accent-ink);
}

.hjlp-runtime-chip--not_started,
.hjlp-runtime-node__progress--not_started,
.hjlp-runtime-linked-item__status--not_started {
    background: var(--hjlp-neutral);
    color: var(--hjlp-muted);
}

.hjlp-runtime-stage__body {
    padding: 22px;
}

.hjlp-runtime-progress {
    width: 100%;
    height: 8px;
    margin: 18px 0 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(47, 24, 84, 0.1);
}

.hjlp-runtime-stage__body > .hjlp-runtime-progress {
    margin: 0 0 22px;
}

.hjlp-runtime-lock-notice {
    padding: 14px 16px;
    border: 1px solid rgba(47, 24, 84, 0.14);
    border-radius: 8px;
    background: var(--hjlp-neutral);
    color: var(--hjlp-muted);
    font-weight: 700;
}

.hjlp-runtime-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hjlp-brand), var(--hjlp-accent));
}

.hjlp-runtime-video {
    position: relative;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 8px;
    background: #05020a;
    aspect-ratio: 16 / 9;
}

.hjlp-runtime-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hjlp-runtime-stage__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.hjlp-runtime-panel,
.hjlp-runtime-nodes {
    padding: 18px;
    border: 1px solid rgba(47, 24, 84, 0.14);
    border-radius: 8px;
    background: #fff;
}

.hjlp-runtime-panel h4,
.hjlp-runtime-nodes h4 {
    margin: 0 0 10px;
    color: var(--hjlp-brand-strong);
    font-size: 17px;
    line-height: 1.3;
}

.hjlp-runtime-richtext > :first-child {
    margin-top: 0;
}

.hjlp-runtime-richtext > :last-child {
    margin-bottom: 0;
}

.hjlp-comments-embed {
    display: block;
    width: 100%;
}

.hjlp-comments-embed--unavailable,
.hjlp-comments-embed__error {
    border: 1px solid rgba(124, 84, 178, 0.24);
    border-radius: 8px;
    background: rgba(124, 84, 178, 0.06);
    color: #2a2038;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
}

.hjlp-comments-embed--unavailable strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.hjlp-comments-embed--unavailable p,
.hjlp-comments-embed__error {
    margin: 0;
}

.hjlp-runtime-nodes {
    display: grid;
    gap: 12px;
}

.hjlp-runtime-node {
    padding: 16px;
    border: 1px solid rgba(47, 24, 84, 0.12);
    border-left: 4px solid var(--hjlp-brand);
    border-radius: 8px;
    background: #fff;
}

.hjlp-runtime-node--progress-completed {
    background: linear-gradient(90deg, rgba(27, 208, 132, 0.08), #fff);
}

.hjlp-runtime-node--progress-in_progress {
    background: linear-gradient(90deg, rgba(248, 176, 66, 0.1), #fff);
}

.hjlp-runtime-node--challenge {
    border-left-color: var(--hjlp-accent);
}

.hjlp-runtime-node--challenge .hjlp-runtime-node__type {
    background: #fff6e8;
    color: var(--hjlp-accent-ink);
}

.hjlp-runtime-node--evidence {
    border-left-color: var(--hjlp-reference-success);
}

.hjlp-runtime-node--evidence .hjlp-runtime-node__type {
    background: #e8f8f0;
    color: var(--hjlp-success);
}

.hjlp-runtime-node--aid {
    border-left-color: var(--hjlp-hero-dark-tint);
}

.hjlp-runtime-node--aid .hjlp-runtime-node__type {
    background: #edf2f7;
    color: var(--hjlp-hero-dark);
}

.hjlp-runtime-node--story {
    border-left-color: var(--hjlp-muted);
}

.hjlp-runtime-node--story .hjlp-runtime-node__type {
    background: var(--hjlp-neutral);
    color: var(--hjlp-ink);
}

.hjlp-runtime-node__header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.hjlp-runtime-node__artifact {
    background: #fff6e8;
    color: #8f5400;
}

.hjlp-runtime-node h5 {
    margin: 0 0 8px;
    color: var(--hjlp-brand-strong);
    font-size: 17px;
    line-height: 1.3;
}

a.hjlp-ui-button,
button.hjlp-ui-button,
input[type="submit"].hjlp-ui-button,
.hjlp-runtime-button,
.hjlp-entrypoint .button,
.hjlp-shortcode-cta .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--hjlp-brand, #2f1854) !important;
    border-radius: 8px;
    background: #2f1854 !important;
    background-color: #2f1854 !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    appearance: none;
    -webkit-appearance: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a.hjlp-ui-button:hover,
a.hjlp-ui-button:focus,
button.hjlp-ui-button:hover,
button.hjlp-ui-button:focus,
input[type="submit"].hjlp-ui-button:hover,
input[type="submit"].hjlp-ui-button:focus,
.hjlp-runtime-button:hover,
.hjlp-runtime-button:focus,
.hjlp-entrypoint .button:hover,
.hjlp-entrypoint .button:focus,
.hjlp-shortcode-cta .button:hover,
.hjlp-shortcode-cta .button:focus {
    background: #4a2a7d !important;
    background-color: #4a2a7d !important;
    background-image: none !important;
    border-color: #4a2a7d !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.hjlp-ui-button--compact,
.hjlp-runtime-button--secondary {
    min-height: 36px;
    padding: 7px 14px;
    background: #2f1854 !important;
    background-color: #2f1854 !important;
    background-image: none !important;
    border-color: #2f1854 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hjlp-ui-button--compact:hover,
.hjlp-ui-button--compact:focus,
.hjlp-runtime-button--secondary:hover,
.hjlp-runtime-button--secondary:focus {
    background: #4a2a7d !important;
    background-color: #4a2a7d !important;
    background-image: none !important;
    border-color: #4a2a7d !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hjlp-ui-button::-moz-focus-inner {
    border: 0;
}

.hjlp-runtime-button:disabled,
.hjlp-runtime-button[disabled],
.hjlp-runtime-button.is-disabled,
.hjlp-ui-button:disabled,
.hjlp-ui-button[disabled],
.hjlp-ui-button.is-disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
}

.hjlp-runtime-actions {
    margin: 18px 0 0;
}

.hjlp-runtime-node-complete {
    margin: 12px 0 0;
}

.hjlp-rating-popover {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--hjlp-brand-line);
    border-radius: 8px;
    background: #fff;
}

.hjlp-rating-popover.is-open {
    display: block;
}

.hjlp-rating-popover__title {
    margin: 0 0 8px;
    color: var(--hjlp-brand-strong);
    font-size: 13px;
    font-weight: 700;
}

.hjlp-rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.hjlp-rating-star {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    font-size: 24px;
    color: #c8cad0;
}

.hjlp-rating-star.is-active {
    color: #ffd700;
}

.hjlp-rating-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hjlp-runtime-linked-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hjlp-runtime-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #6f7580;
}

.hjlp-runtime-rating__stars {
    color: #ffd700;
    letter-spacing: 1px;
}

.hjlp-runtime-rating__value {
    color: #49505a;
}

.hjlp-runtime-course-content {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(47, 24, 84, 0.14);
    border-radius: 8px;
    background: #fcfbff;
}

.hjlp-runtime-course-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hjlp-runtime-course-content__header h4 {
    margin: 0;
    color: var(--hjlp-brand-strong);
    font-size: 17px;
}

.hjlp-runtime-course-content__header > span {
    color: var(--hjlp-muted);
    font-size: 13px;
    font-weight: 800;
}

.hjlp-runtime-course-section {
    border: 1px solid var(--hjlp-brand-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.hjlp-runtime-course-section + .hjlp-runtime-course-section {
    margin-top: 10px;
}

.hjlp-runtime-course-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--hjlp-warm);
    color: var(--hjlp-brand-strong);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.hjlp-runtime-course-section summary::-webkit-details-marker {
    display: none;
}

.hjlp-runtime-course-section summary span:last-child {
    color: var(--hjlp-muted);
    font-size: 12px;
}

.hjlp-runtime-course-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hjlp-runtime-course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(47, 24, 84, 0.1);
}

.hjlp-runtime-course-item a,
.hjlp-runtime-course-item strong {
    color: var(--hjlp-brand);
    font-weight: 800;
    text-decoration: none;
}

.hjlp-runtime-course-item a:hover,
.hjlp-runtime-course-item a:focus {
    color: var(--hjlp-brand-strong);
    text-decoration: underline;
}

.hjlp-runtime-course-item small {
    display: block;
    margin-top: 2px;
    color: var(--hjlp-muted);
    font-size: 12px;
    font-weight: 700;
}

.hjlp-runtime-course-item--direct {
    background: linear-gradient(90deg, rgba(248, 176, 66, 0.08), #fff);
}

.hjlp-runtime-course-item--node {
    background: linear-gradient(90deg, rgba(47, 24, 84, 0.05), #fff);
}

.hjlp-runtime-muted,
.hjlp-runtime-empty {
    color: var(--hjlp-muted);
}

.hjlp-runtime-empty {
    padding: 20px;
    border: 1px dashed var(--hjlp-brand-line);
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 782px) {
    .hjlp-runtime-hero,
    .hjlp-runtime-stage__body {
        padding: 18px;
    }

    .hjlp-runtime-hero h2 {
        font-size: 28px;
    }

    .hjlp-runtime-act__header,
    .hjlp-runtime-stage summary {
        align-items: flex-start;
    }

    .hjlp-runtime-stage summary {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .hjlp-runtime-stage__meta {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .hjlp-runtime-stage__content {
        grid-template-columns: 1fr;
    }

    .hjlp-runtime-course-content__header,
    .hjlp-runtime-course-section summary,
    .hjlp-runtime-course-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =====================================================================
   Course-as-Journey: suppress LearnPress tab chrome when the journey
   is the primary course view (.hjlp-course-as-journey body class is
   added by Journey_Frontend::add_journey_body_class).
   ===================================================================== */

/*
 * Hide the entire LP tab widget when the journey is injected before it.
 * LP 4.3.6 uses #learn-press-course-tabs; older LP uses .learnpress-course-tabs.
 */
.hjlp-course-as-journey #learn-press-course-tabs,
.hjlp-course-as-journey .learnpress-course-tabs {
    display: none !important;
}

/*
 * Fallback: LP versions that still render the tab nav + panels
 * (template-override path). Hide the nav and every non-journey panel.
 */
.hjlp-course-as-journey .learnpress-course-tabs > ul,
.hjlp-course-as-journey .course-tabs.tabs,
.hjlp-course-as-journey ul.course-tabs {
    display: none;
}

.hjlp-course-as-journey .course-tab-panel:not(#tab-heroic-journey) {
    display: none !important;
}

/* Ensure the journey panel is visible and flush (no extra tab padding) */
.hjlp-course-as-journey #tab-heroic-journey {
    display: block;
    padding: 0;
    opacity: 1;
}

/* =====================================================================
   Enrollment notice — shown to guests and unenrolled logged-in users.
   Journey structure is still visible as a read-only preview.
   ===================================================================== */

.hjlp-enrollment-notice {
    margin: 0 0 28px;
    padding: 20px 24px;
    background: var(--hjlp-warm);
    border: 1px solid var(--hjlp-accent);
    border-radius: 8px;
}

.hjlp-enrollment-notice__body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hjlp-enrollment-notice__message {
    margin: 0;
    flex: 1 1 240px;
    color: var(--hjlp-accent-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}


/* Journey progress badge injected into LP enrollment card on course page */
.hjlp-enrollment-journey-badge {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(47, 24, 84, 0.06);
    border-left: 3px solid var(--hjlp-brand, #2f1854);
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.hjlp-enrollment-journey-badge__eyebrow {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hjlp-brand, #2f1854);
    font-weight: 700;
    margin-bottom: 3px;
}

.hjlp-enrollment-journey-badge__detail {
    display: block;
    color: #333;
    font-weight: 500;
}

/* LearnPress lesson/quiz learning screen journey context */
.hjlp-learning-item-panel {
    margin: 0 0 24px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(80, 50, 130, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(83, 52, 131, 0.08), rgba(250, 196, 60, 0.10));
    box-shadow: 0 12px 32px rgba(31, 21, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--hjlp-stage-text, #182b3f);
    container-type: inline-size;
    container-name: hjlp-item-panel;
}

.hjlp-learning-item-panel__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.hjlp-learning-item-panel__thumb {
    grid-area: auto;
    box-sizing: border-box;
    /* Stacked layout (narrow panel / mobile): full-width banner showing the
       whole image at its natural ratio. Width is capped at 100%, so the image's
       original pixel size can never blow the panel up. */
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    position: static;
    transform: none;
}

.hjlp-learning-item-panel__thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.hjlp-learning-item-panel__thumb::after {
    content: none;
}

.hjlp-learning-item-panel__text {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: clamp(18px, 2.2vw, 32px);
}

.hjlp-learning-item-panel__act {
    grid-area: act;
    display: block;
    margin: 0 0 4px;
    color: var(--hjlp-stage-subtext, rgba(24, 43, 63, 0.88));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hjlp-learning-item-panel__eyebrow {
    grid-area: eyebrow;
    display: inline-block;
    margin-bottom: 6px;
    color: var(--hjlp-stage-subtext, #533483);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.hjlp-learning-item-panel h2 {
    grid-area: title;
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    color: var(--hjlp-stage-text, #182b3f);
}

.hjlp-learning-item-panel__wallet-badge {
    grid-area: wallet;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--hjlp-stage-text, #182b3f);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.hjlp-learning-item-panel__wallet-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

.hjlp-learning-item-panel p {
    grid-area: progress;
    margin: 8px 0 0;
    color: var(--hjlp-stage-subtext, #51465f);
}

.hjlp-learning-item-panel__wallet-notice {
    grid-area: notice;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hjlp-learning-item-panel__wallet-notice p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--hjlp-stage-text, #182b3f);
    font-size: 14px;
    font-weight: 600;
}

.hjlp-learning-item-panel__wallet-icon--notice {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.hjlp-learning-item-panel__actions {
    grid-area: actions;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 14px;
}

/* Wide panel: switch the header to a two-column layout based on the panel's
   own width (container query), not the viewport. The viewport media query is
   unreliable here because the panel is rendered inside the LearnPress popup. */
@container hjlp-item-panel (min-width: 600px) {
    .hjlp-learning-item-panel__main {
        flex-direction: row;
        align-items: stretch;
    }

    /* The frame takes the card height (driven by the text) and derives its width
       from a fixed ratio. The image is taken OUT OF FLOW (absolute), so its
       original pixel size never influences the layout — only the ratio does.
       Author the stage images at this ratio so the whole illustration shows. */
    .hjlp-learning-item-panel__thumb {
        position: relative;
        flex: 0 0 auto;
        align-self: stretch;
        aspect-ratio: 16 / 9;
        width: auto;
        height: auto;
        max-width: none;
        min-height: 240px;
        margin: 0;
        padding: 0;
        border-radius: 0;
        overflow: hidden;
    }

    .hjlp-learning-item-panel__thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

    .hjlp-learning-item-panel__text {
        min-height: 240px;
        padding: clamp(22px, 2.2vw, 32px);
    }

    .hjlp-learning-item-panel h2 {
        max-width: 720px;
        font-size: clamp(24px, 2vw, 32px);
    }

    .hjlp-learning-item-panel__eyebrow {
        font-size: 14px;
    }

    .hjlp-learning-item-panel__act {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .hjlp-learning-item-panel p {
        margin-top: 14px;
        font-size: 17px;
    }

    .hjlp-learning-item-panel__actions {
        margin-top: 16px;
    }
}

/* LearnPress learning popup navigation enhancement */
.hjlp-learning-screen-as-journey #popup-header .course-title,
.hjlp-learning-screen-as-journey .course-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.hjlp-learning-nav-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.hjlp-learning-nav-title::before {
    content: "Journey";
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.hjlp-learning-nav-title a {
    color: #fff !important;
    text-decoration: none;
}

.hjlp-learning-nav-title a:hover,
.hjlp-learning-nav-title a:focus {
    text-decoration: underline;
}

.hjlp-learning-nav-title small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 600;
}

.hjlp-learning-nav-title .hjlp-learning-nav-progress {
    color: #ffffff;
    font-weight: 800;
}

.hjlp-finish-course-disabled {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.hjlp-learning-section-item--locked,
#popup-sidebar .hjlp-curriculum-node--locked > a,
.course-curriculum .hjlp-curriculum-node--locked > a,
.lp-course-curriculum .hjlp-curriculum-node--locked > a,
#popup-sidebar .hjlp-curriculum-subnode--locked > span,
.course-curriculum .hjlp-curriculum-subnode--locked > span,
.lp-course-curriculum .hjlp-curriculum-subnode--locked > span {
    opacity: 0.48;
    cursor: not-allowed;
}

#popup-sidebar .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-header,
.course-curriculum .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-header,
.lp-course-curriculum .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-header {
    cursor: not-allowed !important;
}

#popup-sidebar .hjlp-curriculum-subnode--locked .hjlp-curriculum-subnode__dot,
.course-curriculum .hjlp-curriculum-subnode--locked .hjlp-curriculum-subnode__dot,
.lp-course-curriculum .hjlp-curriculum-subnode--locked .hjlp-curriculum-subnode__dot {
    background: #d1c7df;
}

.hjlp-topbar-journey-progress {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.hjlp-learning-sidebar-card {
    display: block;
    margin: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(83, 52, 131, 0.20);
    border-left: 4px solid #533483;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(83, 52, 131, 0.08), rgba(250, 196, 60, 0.13));
    color: #23364d;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(31, 21, 55, 0.08);
}

.hjlp-learning-sidebar-card span {
    display: block;
    margin-bottom: 4px;
    color: #533483;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hjlp-learning-sidebar-card strong {
    display: block;
    color: #182b3f;
    font-size: 15px;
    line-height: 1.25;
}

.hjlp-learning-sidebar-card small {
    display: block;
    margin-top: 6px;
    color: #5d6470;
    font-size: 12px;
    line-height: 1.35;
}

.hjlp-learning-sidebar-card:hover,
.hjlp-learning-sidebar-card:focus {
    transform: translateY(-1px);
    color: #182b3f;
}

.hjlp-learning-sidebar-card-wrap {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
    background: transparent !important;
}

.hjlp-learning-sidebar-card--server {
    margin: 12px !important;
}

.hjlp-learning-sidebar-header-wrap {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
    background: #fff !important;
}

.hjlp-learning-sidebar-header {
    box-sizing: border-box;
    display: block !important;
    margin: 12px !important;
    padding: 18px 20px !important;
    border: 1px solid rgba(83, 52, 131, 0.22) !important;
    border-left: 5px solid #533483 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 235, 0.92)) !important;
    color: #182b3f !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(31, 21, 55, 0.08) !important;
}

.hjlp-learning-sidebar-header__kicker {
    display: block !important;
    margin: 0 0 8px !important;
    color: #533483 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.hjlp-learning-sidebar-header strong {
    display: block !important;
    margin: 0 !important;
    color: #182b3f !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.hjlp-learning-sidebar-header small {
    display: block !important;
    margin: 8px 0 0 !important;
    color: #596575 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.hjlp-learning-item-panel .hjlp-ui-button,
.hjlp-learning-item-panel .hjlp-runtime-button {
    background: #2f1854 !important;
    background-color: #2f1854 !important;
    background-image: none !important;
    border-color: #2f1854 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hjlp-learning-item-panel .hjlp-ui-button:hover,
.hjlp-learning-item-panel .hjlp-ui-button:focus,
.hjlp-learning-item-panel .hjlp-runtime-button:hover,
.hjlp-learning-item-panel .hjlp-runtime-button:focus {
    background: #4a2a7d !important;
    background-color: #4a2a7d !important;
    background-image: none !important;
    border-color: #4a2a7d !important;
    filter: none;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hjlp-learning-item-panel .hjlp-ui-button--compact,
.hjlp-learning-item-panel .hjlp-runtime-button--secondary {
    background: #2f1854 !important;
    background-color: #2f1854 !important;
    background-image: none !important;
    border-color: #2f1854 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hjlp-learning-item-panel .hjlp-ui-button--compact:hover,
.hjlp-learning-item-panel .hjlp-ui-button--compact:focus,
.hjlp-learning-item-panel .hjlp-runtime-button--secondary:hover,
.hjlp-learning-item-panel .hjlp-runtime-button--secondary:focus {
    background: #4a2a7d !important;
    background-color: #4a2a7d !important;
    background-image: none !important;
    border-color: #4a2a7d !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hjlp-learning-node-detail {
    margin: 0 0 24px;
    padding: 22px 24px;
    border: 1px solid rgba(83, 52, 131, 0.20);
    border-left: 5px solid #533483;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 21, 55, 0.06);
}

.hjlp-learning-node-detail--html-bleed {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.hjlp-learning-node-detail--html-bleed .hjlp-learning-node-detail__meta,
.hjlp-learning-node-detail--html-bleed .hjlp-learning-node-detail__title-row,
.hjlp-learning-node-detail--html-bleed .hjlp-learning-node-detail__description-empty,
.hjlp-learning-node-detail--html-bleed .hjlp-learning-node-detail__actions,
.hjlp-learning-node-detail--html-bleed .hjlp-learning-node-completion {
    padding-left: 24px;
    padding-right: 24px;
}

.hjlp-runtime-admin-warning {
    margin: 16px 0 24px;
    padding: 14px 18px;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-left: 5px solid #f97316;
    border-radius: 10px;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 600;
}

.hjlp-runtime-admin-warning a {
    color: #5b21b6;
    text-decoration: underline;
}

/* Expand LearnPress content area when HJ detail panel is active. */
body.hjlp-learning-node-selected .learn-press-content-item .content-item-wrap,
body.hjlp-learning-node-selected .learn-press-content-item .content-item-detail {
    width: 100% !important;
    max-width: 100% !important;
}

/* LearnPress lesson/quiz wrappers can keep a fixed 792px width.
   Force full-width for journey-enabled screens. */
body.hjlp-course-as-journey .learn-press-content-item,
body.hjlp-learning-screen-as-journey .learn-press-content-item,
body.hjlp-course-as-journey #learn-press-content-item,
body.hjlp-learning-screen-as-journey #learn-press-content-item,
body.hjlp-course-as-journey #popup-content,
body.hjlp-learning-screen-as-journey #popup-content,
body.hjlp-course-as-journey #popup-content .scrollable,
body.hjlp-learning-screen-as-journey #popup-content .scrollable,
body.hjlp-course-as-journey #learn-press-content-item .content-item-scrollable,
body.hjlp-learning-screen-as-journey #learn-press-content-item .content-item-scrollable,
body.hjlp-course-as-journey .content-item-wrap,
body.hjlp-learning-screen-as-journey .content-item-wrap,
body.hjlp-course-as-journey .content-item-detail,
body.hjlp-learning-screen-as-journey .content-item-detail {
    width: 100% !important;
    max-width: none !important;
}

body.hjlp-course-as-journey #learn-press-content-item .content-item-wrap,
body.hjlp-learning-screen-as-journey #learn-press-content-item .content-item-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* LearnPress popup/curriculum player (#popup-course) runs on the course page, so the
   body classes above are not added and the theme keeps .content-item-wrap centered at a
   fixed width (large auto side margins). Anchor on the presence of a Heroic Journeys node
   detail so the content column spans its real available width — letting each node's
   detail width % apply against the true width — in both popup and direct-lesson modes. */
.content-item-scrollable:has(.hjlp-learning-node-detail),
.content-item-wrap:has(.hjlp-learning-node-detail) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Native LearnPress lessons/quizzes keep their content in a (theme-defined,
   sometimes narrow) centred column. Let the Heroic Journeys header break OUT of
   that column to span the whole content area, while the lesson text below keeps
   the theme's reading width. We measure against the content area with container
   query units (cqw), not the viewport, because the viewport includes the
   sidebar. */
#learn-press-content-item .content-item-scrollable,
.content-item-scrollable {
    container-type: inline-size;
    container-name: hjlp-content-area;
}

.content-item-wrap:has(> .hjlp-learning-item-panel),
.content-item-detail:has(> .hjlp-learning-item-panel) {
    overflow: visible !important;
}

.content-item-scrollable .hjlp-learning-item-panel {
    width: 100cqw;
    max-width: 100cqw;
    margin-left: calc(50% - 50cqw);
}

.hjlp-learning-node-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hjlp-learning-node-detail__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(83, 52, 131, 0.10);
    color: #533483;
    font-size: 11px;
    font-weight: 800;
}

.hjlp-learning-node-detail h2 {
    margin: 0 0 12px;
    color: #182b3f;
    font-size: 28px;
    line-height: 1.2;
}

.hjlp-learning-node-detail__title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
}

.hjlp-learning-node-detail__title-row h2 {
    margin: 0;
}

.hjlp-learning-node-detail__element-avatar {
    margin: 0;
    flex: 0 0 auto;
}

.hjlp-learning-node-detail .hjlp-runtime-richtext img {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 0 12px;
}

.hjlp-role-model-card {
    border: 1px solid rgba(50, 39, 99, 0.12);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 14px;
    background: #f4efdf;
}

.hjlp-role-model-card__hero {
    background: #331a66;
    color: #fff;
    padding: 16px 18px 18px;
    text-align: center;
}

.hjlp-role-model-card__avatar-wrap {
    display: inline-flex;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin: 0 auto 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.hjlp-role-model-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
}

.hjlp-role-model-card__name {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
    color: #fff;
}

.hjlp-role-model-card__body {
    padding: 14px 16px 16px;
    color: #1d2230;
}

.hjlp-role-model-card__subtitle {
    margin: 0 0 12px;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 700;
}

.hjlp-role-model-card__bio {
    font-size: 16px;
    line-height: 1.62;
}

.hjlp-role-model-card__bio p,
.hjlp-role-model-card__bio li {
    font-size: 16px !important;
    line-height: 1.62 !important;
}

.hjlp-role-model-card__actions {
    margin: 14px 0 0;
    display: flex;
    justify-content: flex-end;
}

.hjlp-role-model-card__actions .hjlp-ui-button,
.hjlp-role-model-card__actions .hjlp-runtime-button {
    min-width: 160px;
}

.hjlp-learning-node-detail__actions {
    margin: 16px 0 0;
}

.hjlp-learning-node-detail .hjlp-ui-button--compact,
.hjlp-learning-node-detail .hjlp-runtime-button--secondary {
    background: #2f1854 !important;
    background-color: #2f1854 !important;
    background-image: none !important;
    border-color: #2f1854 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.hjlp-learning-node-detail .hjlp-ui-button--compact:hover,
.hjlp-learning-node-detail .hjlp-ui-button--compact:focus,
.hjlp-learning-node-detail .hjlp-runtime-button--secondary:hover,
.hjlp-learning-node-detail .hjlp-runtime-button--secondary:focus {
    background: #4a2a7d !important;
    background-color: #4a2a7d !important;
    background-image: none !important;
    border-color: #4a2a7d !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
}

.hjlp-node-hidden-content {
    display: none !important;
}

.hjlp-learning-node-selected #comments,
.hjlp-learning-node-selected .comments-area,
.hjlp-learning-node-selected .comment-respond,
.hjlp-learning-node-selected #respond,
.hjlp-learning-node-selected .entry-footer {
    display: none !important;
}

.hjlp-nav-disabled {
    opacity: 0.4 !important;
    pointer-events: none !important;
}

.hjlp-learning-section-items {
    display: grid;
    gap: 10px;
}

.hjlp-learning-section-item {
    align-items: center;
    border: 1px solid rgba(90, 58, 143, 0.14);
    border-radius: 8px;
    color: #1f334a;
    display: flex;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
    text-decoration: none;
}

.hjlp-learning-section-item small {
    color: #5d3c91;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hjlp-learning-node-completion {
    margin: 18px 0 0;
}

form.hjlp-learning-node-completion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hjlp-learning-node-detail .hjlp-learning-node-completion__reward,
.hjlp-runtime-node .hjlp-learning-node-completion__reward {
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    height: 28px;
    min-height: 28px;
    margin: 2px 0 12px !important;
    padding: 0 14px 0 34px !important;
    border: 1px solid #d9d2ef !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(69, 42, 117, 0.06) !important;
    color: #4c4765 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: visible;
    vertical-align: top;
}

.hjlp-learning-node-detail .hjlp-learning-node-completion__reward-icon-shell,
.hjlp-runtime-node .hjlp-learning-node-completion__reward-icon-shell {
    position: absolute;
    left: -1px;
    top: -1px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.hjlp-learning-node-detail .hjlp-learning-node-completion__reward-icon,
.hjlp-runtime-node .hjlp-learning-node-completion__reward-icon {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
    display: block !important;
    float: none !important;
}

.hjlp-learning-node-detail .hjlp-learning-node-completion__reward-label,
.hjlp-runtime-node .hjlp-learning-node-completion__reward-label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    color: inherit !important;
    font: inherit !important;
    white-space: nowrap;
}

.hjlp-learning-node-completion--auto {
    display: none !important;
}

.hjlp-informational-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 103, 70, 0.12);
    color: #a53a24;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.hjlp-informational-countdown.is-done {
    background: rgba(35, 122, 75, 0.12);
    color: #237a4b;
}

.hjlp-learning-node-detail__video {
    position: relative;
    margin: 16px 0;
    border-radius: 8px;
    background: #02101c;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.hjlp-learning-node-detail__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hjlp-learning-node-detail__panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(83, 52, 131, 0.14);
    border-radius: 8px;
    background: rgba(251, 247, 235, 0.42);
}

.hjlp-learning-node-detail__panel h3 {
    margin: 0 0 8px;
    color: #533483;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.hjlp-learning-node-detail__meta-list {
    margin: 0;
    padding-left: 18px;
}

.hjlp-learning-node-detail__meta-list li + li {
    margin-top: 8px;
}

.hjlp-learning-node-detail__course-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    color: #1b2d44;
}

.hjlp-course-meta-accordion {
    display: grid;
    gap: 8px;
}

.hjlp-course-meta-accordion__item {
    border: 1px solid rgba(83, 52, 131, 0.2);
    border-radius: 8px;
    background: #fff;
}

.hjlp-course-meta-accordion__item summary {
    cursor: pointer;
    padding: 12px 14px;
    color: #1b2d44;
    font-weight: 700;
}

.hjlp-course-meta-accordion__content {
    padding: 0 14px 12px;
}

.hjlp-course-meta-author {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.hjlp-course-meta-author__avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(83, 52, 131, 0.16);
}

.hjlp-course-meta-author__content h4 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
    color: #1b2d44;
}

.hjlp-course-meta-author__content h4 a {
    color: inherit;
    text-decoration: none;
}

.hjlp-course-meta-author__content p {
    margin: 0;
    color: #435871;
}

.hjlp-learning-node-selected .hjlp-learning-node-detail ~ h1,
.hjlp-learning-node-selected .hjlp-learning-node-detail ~ h2,
.hjlp-learning-node-selected .hjlp-learning-node-detail ~ p,
.hjlp-learning-node-selected .hjlp-learning-node-detail ~ .entry-content,
.hjlp-learning-node-selected .hjlp-learning-node-detail ~ .content-item-description,
.hjlp-learning-node-selected .hjlp-learning-node-detail ~ .learn-press-content-item-summary {
    display: none !important;
}

/* LearnPress 4.3.6 server-side curriculum component replacement */
.hjlp-curriculum-title {
    color: #533483;
}

.hjlp-curriculum-journey-stage > .section-header,
.hjlp-curriculum-stage-header {
    background: linear-gradient(135deg, rgba(83, 52, 131, 0.07), rgba(250, 196, 60, 0.10));
}

.hjlp-curriculum-journey-stage .section-title {
    color: #1b2d44;
    font-weight: 700;
}

.hjlp-curriculum-act-label {
    display: inline-flex;
    align-items: center;
    margin-top: 3px;
    color: #533483;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hjlp-curriculum-course-item.current > a,
.hjlp-curriculum-course-item.current .section-item-link {
    border-left-color: #533483 !important;
    background: rgba(83, 52, 131, 0.08);
}

.hjlp-item-type {
    background: rgba(83, 52, 131, 0.10) !important;
    color: #533483 !important;
}

/* LearnPress 4.3.6 popup sidebar cleanup: prevent LP curriculum styles from
   stretching the custom Heroic Journey navigation. */
.hjlp-learning-screen-as-journey #popup-sidebar .course-curriculum-title,
.hjlp-learning-screen-as-journey #popup-sidebar .course-curriculum-info,
.hjlp-learning-screen-as-journey #learn-press-course-curriculum .course-curriculum-title,
.hjlp-learning-screen-as-journey #learn-press-course-curriculum .course-curriculum-info,
.hjlp-learning-screen-as-journey #popup-sidebar .search-course-content,
.hjlp-learning-screen-as-journey #popup-sidebar .lp-search-course-content,
.hjlp-learning-screen-as-journey #popup-sidebar form[role="search"],
.hjlp-learning-screen-as-journey #popup-sidebar .search {
    display: none !important;
}

#popup-sidebar:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-title,
#popup-sidebar:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-info,
#popup-sidebar:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-title,
#popup-sidebar:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-info,
#learn-press-course-curriculum:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-title,
#learn-press-course-curriculum:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-info,
#learn-press-course-curriculum:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-title,
#learn-press-course-curriculum:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-info,
.course-curriculum:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-title,
.course-curriculum:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-info,
.course-curriculum:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-title,
.course-curriculum:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-info,
.lp-course-curriculum:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-title,
.lp-course-curriculum:has(.hjlp-learning-sidebar-card-wrap) .course-curriculum-info,
.lp-course-curriculum:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-title,
.lp-course-curriculum:has(.hjlp-learning-sidebar-header-wrap) .course-curriculum-info,
#popup-sidebar:has(.hjlp-learning-sidebar-header-wrap) .search-course-content,
#popup-sidebar:has(.hjlp-learning-sidebar-header-wrap) .lp-search-course-content,
#popup-sidebar:has(.hjlp-learning-sidebar-header-wrap) form[role="search"],
#popup-sidebar:has(.hjlp-learning-sidebar-header-wrap) .search {
    display: none !important;
}

.hjlp-search-hidden {
    display: none !important;
}

.hjlp-curriculum-search-empty {
    display: none;
    margin: 14px 18px;
    padding: 18px 16px;
    border: 1px solid rgba(83, 52, 131, 0.16);
    border-radius: 14px;
    background: rgba(83, 52, 131, 0.06);
    color: #5f5870;
    font-weight: 700;
    text-align: center;
}

.hjlp-curriculum-search-empty.is-visible {
    display: block;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-learning-sidebar-card {
    box-sizing: border-box;
    margin: 12px !important;
    position: relative;
    z-index: 2;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-journey-stage,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-journey-stage,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-journey-stage,
#popup-sidebar .hjlp-curriculum-journey-stage,
.course-curriculum .hjlp-curriculum-journey-stage,
.lp-course-curriculum .hjlp-curriculum-journey-stage {
    clear: both;
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
    list-style: none !important;
}

#popup-sidebar .hjlp-sidebar-accordion-controls,
.course-curriculum .hjlp-sidebar-accordion-controls,
.lp-course-curriculum .hjlp-sidebar-accordion-controls {
    display: flex !important;
    justify-content: flex-end !important;
    padding: 0 14px 10px !important;
    background: #fff !important;
}

#popup-sidebar .hjlp-sidebar-accordion-toggle,
.course-curriculum .hjlp-sidebar-accordion-toggle,
.lp-course-curriculum .hjlp-sidebar-accordion-toggle {
    appearance: none !important;
    border: 1px solid rgba(83, 52, 131, 0.28) !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #533483 !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    padding: 7px 10px !important;
}

#popup-sidebar .hjlp-sidebar-accordion-toggle:hover,
#popup-sidebar .hjlp-sidebar-accordion-toggle:focus,
.course-curriculum .hjlp-sidebar-accordion-toggle:hover,
.course-curriculum .hjlp-sidebar-accordion-toggle:focus,
.lp-course-curriculum .hjlp-sidebar-accordion-toggle:hover,
.lp-course-curriculum .hjlp-sidebar-accordion-toggle:focus {
    background: #f3effa !important;
    border-color: rgba(83, 52, 131, 0.45) !important;
    outline: none !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-stage-header,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-stage-header,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-stage-header,
#popup-sidebar .hjlp-curriculum-stage-header,
.course-curriculum .hjlp-curriculum-stage-header,
.lp-course-curriculum .hjlp-curriculum-stage-header {
    box-sizing: border-box;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 0 !important;
    height: auto !important;
    position: static !important;
    padding: 16px 18px !important;
    border-top: 1px solid rgba(83, 52, 131, 0.12) !important;
    border-bottom: 1px solid rgba(83, 52, 131, 0.10) !important;
    background: linear-gradient(135deg, rgba(83, 52, 131, 0.07), rgba(250, 196, 60, 0.10)) !important;
    color: var(--hjlp-stage-text, #182b3f) !important;
    cursor: pointer !important;
    user-select: none !important;
}

#popup-sidebar .hjlp-curriculum-journey-stage--completed .hjlp-curriculum-stage-header,
.course-curriculum .hjlp-curriculum-journey-stage--completed .hjlp-curriculum-stage-header,
.lp-course-curriculum .hjlp-curriculum-journey-stage--completed .hjlp-curriculum-stage-header {
    background: linear-gradient(135deg, rgba(35, 122, 75, 0.10), rgba(255, 255, 255, 0.96)) !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-stage-header .section-left,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-stage-header .section-left,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-stage-header .section-left,
#popup-sidebar .hjlp-curriculum-stage-header .section-left,
.course-curriculum .hjlp-curriculum-stage-header .section-left,
.lp-course-curriculum .hjlp-curriculum-stage-header .section-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}

#popup-sidebar .hjlp-curriculum-stage-thumb,
.course-curriculum .hjlp-curriculum-stage-thumb,
.lp-course-curriculum .hjlp-curriculum-stage-thumb {
    width: 35px !important;
    height: 35px !important;
    flex: 0 0 35px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.52) !important;
    background-color: rgba(16, 28, 58, 0.26) !important;
    box-shadow: none !important;
    position: relative !important;
}

#popup-sidebar .hjlp-curriculum-stage-thumb--brand,
.course-curriculum .hjlp-curriculum-stage-thumb--brand,
.lp-course-curriculum .hjlp-curriculum-stage-thumb--brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: inherit !important;
}

#popup-sidebar .hjlp-curriculum-stage-thumb--brand::after,
.course-curriculum .hjlp-curriculum-stage-thumb--brand::after,
.lp-course-curriculum .hjlp-curriculum-stage-thumb--brand::after {
    content: none !important;
}

#popup-sidebar .hjlp-curriculum-journey-stage--completed .hjlp-curriculum-stage-thumb--brand::after,
.course-curriculum .hjlp-curriculum-journey-stage--completed .hjlp-curriculum-stage-thumb--brand::after,
.lp-course-curriculum .hjlp-curriculum-journey-stage--completed .hjlp-curriculum-stage-thumb--brand::after {
    content: "\2713" !important;
    position: absolute !important;
    right: -3px !important;
    bottom: -3px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #237a4b !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    border: 2px solid rgba(255, 255, 255, 0.96) !important;
}

#popup-sidebar .hjlp-curriculum-stage-thumb img,
.course-curriculum .hjlp-curriculum-stage-thumb img,
.lp-course-curriculum .hjlp-curriculum-stage-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    filter: brightness(0.84) saturate(1.04) contrast(1.08) !important;
}

#popup-sidebar .hjlp-curriculum-stage-thumb::after,
.course-curriculum .hjlp-curriculum-stage-thumb::after,
.lp-course-curriculum .hjlp-curriculum-stage-thumb::after {
    content: none !important;
}

#popup-sidebar .hjlp-curriculum-stage-heading,
.course-curriculum .hjlp-curriculum-stage-heading,
.lp-course-curriculum .hjlp-curriculum-stage-heading {
    display: block !important;
    min-width: 0 !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-journey-name,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-journey-name,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-journey-name,
#popup-sidebar .hjlp-curriculum-journey-name,
.course-curriculum .hjlp-curriculum-journey-name,
.lp-course-curriculum .hjlp-curriculum-journey-name {
    display: block !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: var(--hjlp-stage-subtext, rgba(24, 43, 63, 0.88)) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-stage-header .section-toggle,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-stage-header .section-toggle,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-stage-header .section-toggle,
#popup-sidebar .hjlp-curriculum-stage-header .section-toggle,
.course-curriculum .hjlp-curriculum-stage-header .section-toggle,
.lp-course-curriculum .hjlp-curriculum-stage-header .section-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--hjlp-stage-text, #182b3f) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    opacity: 0.9 !important;
    transform: rotate(90deg) !important;
    transition: transform 0.16s ease !important;
}

#popup-sidebar .hjlp-curriculum-stage-header .section-toggle::before,
.course-curriculum .hjlp-curriculum-stage-header .section-toggle::before,
.lp-course-curriculum .hjlp-curriculum-stage-header .section-toggle::before {
    content: "›" !important;
    display: block !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

#popup-sidebar .hjlp-curriculum-journey-stage.hjlp-stage-collapsed .hjlp-curriculum-stage-header .section-toggle,
.course-curriculum .hjlp-curriculum-journey-stage.hjlp-stage-collapsed .hjlp-curriculum-stage-header .section-toggle,
.lp-course-curriculum .hjlp-curriculum-journey-stage.hjlp-stage-collapsed .hjlp-curriculum-stage-header .section-toggle {
    transform: rotate(0deg) !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-stage-header .section-title,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-stage-header .section-title,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-stage-header .section-title,
#popup-sidebar .hjlp-curriculum-stage-header .section-title,
.course-curriculum .hjlp-curriculum-stage-header .section-title,
.lp-course-curriculum .hjlp-curriculum-stage-header .section-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--hjlp-stage-text, #182b3f) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

#popup-sidebar .hjlp-curriculum-stage-header .section-title a,
.course-curriculum .hjlp-curriculum-stage-header .section-title a,
.lp-course-curriculum .hjlp-curriculum-stage-header .section-title a {
    color: inherit !important;
    text-decoration: none !important;
}

#popup-sidebar .hjlp-curriculum-stage-header .section-title a:hover,
#popup-sidebar .hjlp-curriculum-stage-header .section-title a:focus,
.course-curriculum .hjlp-curriculum-stage-header .section-title a:hover,
.course-curriculum .hjlp-curriculum-stage-header .section-title a:focus,
.lp-course-curriculum .hjlp-curriculum-stage-header .section-title a:hover,
.lp-course-curriculum .hjlp-curriculum-stage-header .section-title a:focus {
    text-decoration: underline !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-act-label,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-act-label,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-act-label,
#popup-sidebar .hjlp-curriculum-act-label,
.course-curriculum .hjlp-curriculum-act-label,
.lp-course-curriculum .hjlp-curriculum-act-label {
    display: block !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: var(--hjlp-stage-subtext, rgba(24, 43, 63, 0.88)) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-stage-count,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-stage-count,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-stage-count,
#popup-sidebar .hjlp-curriculum-stage-count,
.course-curriculum .hjlp-curriculum-stage-count,
.lp-course-curriculum .hjlp-curriculum-stage-count {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    position: static !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: var(--hjlp-stage-badge-bg, rgba(83, 52, 131, 0.10)) !important;
    color: var(--hjlp-stage-badge-text, #533483) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

#popup-sidebar .hjlp-curriculum-stage-badges,
.course-curriculum .hjlp-curriculum-stage-badges,
.lp-course-curriculum .hjlp-curriculum-stage-badges {
    display: flex !important;
    align-items: flex-end !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 6px !important;
}

#popup-sidebar .hjlp-curriculum-stage-status,
.course-curriculum .hjlp-curriculum-stage-status,
.lp-course-curriculum .hjlp-curriculum-stage-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: var(--hjlp-stage-badge-bg, rgba(83, 52, 131, 0.10)) !important;
    color: var(--hjlp-stage-badge-text, #533483) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

#popup-sidebar .hjlp-curriculum-stage-status--completed,
.course-curriculum .hjlp-curriculum-stage-status--completed,
.lp-course-curriculum .hjlp-curriculum-stage-status--completed {
    background: #ffffff !important;
    border: 1px solid rgba(35, 122, 75, 0.42) !important;
    color: #237a4b !important;
    box-shadow: 0 1px 2px rgba(21, 36, 29, 0.12) !important;
}

#popup-sidebar .hjlp-curriculum-stage-status--completed::before,
.course-curriculum .hjlp-curriculum-stage-status--completed::before,
.lp-course-curriculum .hjlp-curriculum-stage-status--completed::before {
    content: "\2713" !important;
}

#popup-sidebar .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-status::before,
.course-curriculum .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-status::before,
.lp-course-curriculum .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-status::before,
#popup-sidebar .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-count::before,
.course-curriculum .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-count::before,
.lp-course-curriculum .hjlp-curriculum-journey-stage--sequence-locked .hjlp-curriculum-stage-count::before {
    content: "" !important;
    display: inline-block !important;
    width: 11px !important;
    height: 11px !important;
    margin-right: 4px !important;
    background-color: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7V5.2C4.5 3.1 6.1 1.5 8 1.5s3.5 1.6 3.5 3.7V7h.7c.7 0 1.3.6 1.3 1.3v4.9c0 .7-.6 1.3-1.3 1.3H3.8c-.7 0-1.3-.6-1.3-1.3V8.3C2.5 7.6 3.1 7 3.8 7h.7Zm1.5 0h4V5.2C10 4 9.1 3 8 3S6 4 6 5.2V7Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7V5.2C4.5 3.1 6.1 1.5 8 1.5s3.5 1.6 3.5 3.7V7h.7c.7 0 1.3.6 1.3 1.3v4.9c0 .7-.6 1.3-1.3 1.3H3.8c-.7 0-1.3-.6-1.3-1.3V8.3C2.5 7.6 3.1 7 3.8 7h.7Zm1.5 0h4V5.2C10 4 9.1 3 8 3S6 4 6 5.2V7Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

#popup-sidebar .hjlp-curriculum-node .section-item-link,
.course-curriculum .hjlp-curriculum-node .section-item-link,
.lp-course-curriculum .hjlp-curriculum-node .section-item-link {
    min-height: 62px !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-stage-items,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-stage-items,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-stage-items,
#popup-sidebar .hjlp-curriculum-stage-items,
.course-curriculum .hjlp-curriculum-stage-items,
.lp-course-curriculum .hjlp-curriculum-stage-items {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: #fff !important;
}

#popup-sidebar .hjlp-curriculum-journey-stage.hjlp-stage-collapsed > .hjlp-curriculum-stage-items,
.course-curriculum .hjlp-curriculum-journey-stage.hjlp-stage-collapsed > .hjlp-curriculum-stage-items,
.lp-course-curriculum .hjlp-curriculum-journey-stage.hjlp-stage-collapsed > .hjlp-curriculum-stage-items,
#popup-sidebar .hjlp-curriculum-journey-stage.lp-collapse > .hjlp-curriculum-stage-items,
.course-curriculum .hjlp-curriculum-journey-stage.lp-collapse > .hjlp-curriculum-stage-items,
.lp-course-curriculum .hjlp-curriculum-journey-stage.lp-collapse > .hjlp-curriculum-stage-items {
    display: none !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-course-item,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-course-item,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-course-item,
#popup-sidebar .hjlp-curriculum-course-item,
.course-curriculum .hjlp-curriculum-course-item,
.lp-course-curriculum .hjlp-curriculum-course-item {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(20, 35, 55, 0.08) !important;
    background: #fff !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-course-item.current,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-course-item.current,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-course-item.current,
#popup-sidebar .hjlp-curriculum-course-item.current,
.course-curriculum .hjlp-curriculum-course-item.current,
.lp-course-curriculum .hjlp-curriculum-course-item.current {
    background: rgba(83, 52, 131, 0.08) !important;
}

#popup-sidebar .hjlp-curriculum-node--completed,
.course-curriculum .hjlp-curriculum-node--completed,
.lp-course-curriculum .hjlp-curriculum-node--completed {
    background: rgba(35, 122, 75, 0.04) !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-course-item .section-item-link,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-course-item .section-item-link,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-course-item .section-item-link,
#popup-sidebar .hjlp-curriculum-course-item .section-item-link,
.course-curriculum .hjlp-curriculum-course-item .section-item-link,
.lp-course-curriculum .hjlp-curriculum-course-item .section-item-link {
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 10px 16px !important;
    border-left: 4px solid transparent !important;
    color: #24384f !important;
    text-decoration: none !important;
}

#popup-sidebar .hjlp-curriculum-course-item::before,
#popup-sidebar .hjlp-curriculum-course-item .section-item-link::before,
#popup-sidebar .hjlp-curriculum-course-item .item-icon,
.course-curriculum .hjlp-curriculum-course-item::before,
.course-curriculum .hjlp-curriculum-course-item .section-item-link::before,
.course-curriculum .hjlp-curriculum-course-item .item-icon,
.lp-course-curriculum .hjlp-curriculum-course-item::before,
.lp-course-curriculum .hjlp-curriculum-course-item .section-item-link::before,
.lp-course-curriculum .hjlp-curriculum-course-item .item-icon {
    display: none !important;
    content: none !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-course-item.current .section-item-link,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-course-item.current .section-item-link,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-course-item.current .section-item-link,
#popup-sidebar .hjlp-curriculum-course-item.current .section-item-link,
.course-curriculum .hjlp-curriculum-course-item.current .section-item-link,
.lp-course-curriculum .hjlp-curriculum-course-item.current .section-item-link {
    border-left-color: #533483 !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-course-item .item-name,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-course-item .item-name,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-course-item .item-name,
#popup-sidebar .hjlp-curriculum-course-item .item-name,
.course-curriculum .hjlp-curriculum-course-item .item-name,
.lp-course-curriculum .hjlp-curriculum-course-item .item-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #24384f !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-course-item .course-item-meta,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-course-item .course-item-meta,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-course-item .course-item-meta,
#popup-sidebar .hjlp-curriculum-course-item .course-item-meta,
.course-curriculum .hjlp-curriculum-course-item .course-item-meta,
.lp-course-curriculum .hjlp-curriculum-course-item .course-item-meta {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hjlp-learning-screen-as-journey #popup-sidebar .hjlp-curriculum-course-item .hjlp-item-type,
.hjlp-learning-screen-as-journey .course-curriculum .hjlp-curriculum-course-item .hjlp-item-type,
.hjlp-learning-screen-as-journey .lp-course-curriculum .hjlp-curriculum-course-item .hjlp-item-type,
#popup-sidebar .hjlp-curriculum-course-item .hjlp-item-type,
.course-curriculum .hjlp-curriculum-course-item .hjlp-item-type,
.lp-course-curriculum .hjlp-curriculum-course-item .hjlp-item-type {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
    background: rgba(83, 52, 131, 0.10) !important;
    color: #533483 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

#popup-sidebar .hjlp-curriculum-course-item .hjlp-item-step,
.course-curriculum .hjlp-curriculum-course-item .hjlp-item-step,
.lp-course-curriculum .hjlp-curriculum-course-item .hjlp-item-step {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #f8b042 !important;
    color: #21103d !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

#popup-sidebar .hjlp-curriculum-course-item .hjlp-item-step--countdown-active,
.course-curriculum .hjlp-curriculum-course-item .hjlp-item-step--countdown-active,
.lp-course-curriculum .hjlp-curriculum-course-item .hjlp-item-step--countdown-active {
    opacity: 0.3 !important;
}

#popup-sidebar .hjlp-curriculum-node--completed .hjlp-item-step,
.course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step,
.lp-course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step {
    background: #237a4b !important;
    color: #fff !important;
}

#popup-sidebar .hjlp-curriculum-node--completed .hjlp-item-step::before,
.course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step::before,
.lp-course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step::before {
    content: "\2713" !important;
}

#popup-sidebar .hjlp-curriculum-node--completed .hjlp-item-step,
.course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step,
.lp-course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step {
    font-size: 0 !important;
}

#popup-sidebar .hjlp-curriculum-node--completed .hjlp-item-step::before,
.course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step::before,
.lp-course-curriculum .hjlp-curriculum-node--completed .hjlp-item-step::before {
    font-size: 13px !important;
}

#popup-sidebar .hjlp-item-step--section,
.course-curriculum .hjlp-item-step--section,
.lp-course-curriculum .hjlp-item-step--section {
    background: #533483 !important;
    color: #fff !important;
}

#popup-sidebar .hjlp-item-step--section::before,
.course-curriculum .hjlp-item-step--section::before,
.lp-course-curriculum .hjlp-item-step--section::before {
    content: "\00A7" !important;
    font-size: 12px !important;
}

#popup-sidebar .hjlp-curriculum-section-node.hjlp-curriculum-node--completed .hjlp-item-step--section::before,
.course-curriculum .hjlp-curriculum-section-node.hjlp-curriculum-node--completed .hjlp-item-step--section::before,
.lp-course-curriculum .hjlp-curriculum-section-node.hjlp-curriculum-node--completed .hjlp-item-step--section::before {
    content: "\2713" !important;
    font-size: 13px !important;
}

#popup-sidebar .hjlp-curriculum-subnodes,
.course-curriculum .hjlp-curriculum-subnodes,
.lp-course-curriculum .hjlp-curriculum-subnodes {
    display: block !important;
    margin: 0 !important;
    padding: 0 0 8px 52px !important;
    list-style: none !important;
    background: #fff !important;
}

#popup-sidebar .hjlp-curriculum-subnode,
.course-curriculum .hjlp-curriculum-subnode,
.lp-course-curriculum .hjlp-curriculum-subnode {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#popup-sidebar .hjlp-curriculum-subnode > a,
#popup-sidebar .hjlp-curriculum-subnode > span,
.course-curriculum .hjlp-curriculum-subnode > a,
.course-curriculum .hjlp-curriculum-subnode > span,
.lp-course-curriculum .hjlp-curriculum-subnode > a,
.lp-course-curriculum .hjlp-curriculum-subnode > span {
    box-sizing: border-box;
    display: grid !important;
    align-items: center !important;
    grid-template-columns: 14px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 36px !important;
    padding: 6px 16px 6px 0 !important;
    color: #34465c !important;
    text-decoration: none !important;
}

#popup-sidebar .hjlp-item-countdown-badge,
.course-curriculum .hjlp-item-countdown-badge,
.lp-course-curriculum .hjlp-item-countdown-badge {
    display: none !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: var(--hjlp-danger, #ff6746) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

#popup-sidebar .hjlp-item-countdown-badge.is-visible,
.course-curriculum .hjlp-item-countdown-badge.is-visible,
.lp-course-curriculum .hjlp-item-countdown-badge.is-visible {
    display: inline-flex !important;
}

#popup-sidebar .hjlp-curriculum-subnode.current > a,
#popup-sidebar .hjlp-curriculum-subnode.current > span,
.course-curriculum .hjlp-curriculum-subnode.current > a,
.course-curriculum .hjlp-curriculum-subnode.current > span,
.lp-course-curriculum .hjlp-curriculum-subnode.current > a,
.lp-course-curriculum .hjlp-curriculum-subnode.current > span {
    color: #2f1854 !important;
    font-weight: 800 !important;
}

#popup-sidebar .hjlp-curriculum-subnode__dot,
.course-curriculum .hjlp-curriculum-subnode__dot,
.lp-course-curriculum .hjlp-curriculum-subnode__dot {
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: rgba(83, 52, 131, 0.28) !important;
}

#popup-sidebar .hjlp-curriculum-subnode--completed .hjlp-curriculum-subnode__dot,
.course-curriculum .hjlp-curriculum-subnode--completed .hjlp-curriculum-subnode__dot,
.lp-course-curriculum .hjlp-curriculum-subnode--completed .hjlp-curriculum-subnode__dot {
    background: #237a4b !important;
}

#popup-sidebar .hjlp-curriculum-subnode__title,
.course-curriculum .hjlp-curriculum-subnode__title,
.lp-course-curriculum .hjlp-curriculum-subnode__title {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

#popup-sidebar .hjlp-curriculum-subnode__type,
.course-curriculum .hjlp-curriculum-subnode__type,
.lp-course-curriculum .hjlp-curriculum-subnode__type {
    color: #6b6378 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.hjlp-node-detail-width-wrap {
    width: 100%;
    max-width: var(--hjlp-detail-max-width, 70%);
    margin: 18px auto;
}

.hjlp-node-detail-width-wrap--full {
    max-width: 100%;
}

.hjlp-h5p-embed {
    width: 100%;
    overflow: visible;
}

.hjlp-h5p-embed iframe {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.hjlp-discord-embed {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(88, 101, 242, 0.22);
    border-radius: 14px;
    background: #313338;
    box-shadow: 0 16px 36px rgba(31, 22, 48, 0.12);
}

.hjlp-discord-embed__frame {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: inherit !important;
    border: 0 !important;
    border-radius: inherit;
    background: #313338;
}

.hjlp-discord-embed__invite {
    display: block;
    margin: 32px 0 0 !important;
    clear: both;
}

.hjlp-maps-embed {
    width: 100%;
    display: grid;
    gap: 18px;
}

.hjlp-maps-embed__description {
    margin: 0;
}

.hjlp-maps-embed__frame {
    display: block;
    width: 100%;
    min-height: 420px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(77, 41, 125, 0.14);
    border-radius: 18px;
    background: #f4f1fb;
    box-shadow: 0 16px 36px rgba(31, 22, 48, 0.08);
}

.hjlp-maps-embed__meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}

.hjlp-maps-embed__coordinates-wrap {
    min-width: min(100%, 320px);
    flex: 1 1 320px;
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(77, 41, 125, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(244, 241, 251, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.hjlp-maps-embed__coordinates-label {
    display: block;
    color: #6d6380;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hjlp-maps-embed__mode {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(77, 41, 125, 0.1);
    color: #4d297d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
}

.hjlp-maps-embed__coordinates {
    display: block;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
    color: #261245;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: transparent;
    border: 0;
}

.hjlp-maps-embed__actions {
    flex: 1 1 320px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.hjlp-maps-embed__actions .hjlp-ui-button--compact {
    min-width: 220px;
    text-align: center;
}

.hjlp-maps-embed--fallback {
    display: grid;
    gap: 16px;
}

.hjlp-sky-map {
    width: 100%;
    display: grid;
    gap: 20px;
}

.hjlp-sky-map__description {
    margin: 0;
    max-width: 78ch;
}

.hjlp-sky-map__canvas-wrap {
    width: 100%;
    border: 1px solid rgba(123, 97, 255, 0.14);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #07111f 0%, #020611 100%);
    box-shadow: 0 18px 48px rgba(7, 17, 31, 0.18);
}

.hjlp-sky-map__canvas {
    display: block;
    width: 100%;
    height: auto;
}

.hjlp-sky-map__info {
    display: grid;
    gap: 14px;
}

.hjlp-sky-map__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.hjlp-sky-map__pill {
    display: grid;
    gap: 4px;
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid rgba(123, 97, 255, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, #faf7ff 0%, #f3eeff 100%);
    color: #2c2146;
}

.hjlp-sky-map__pill-label,
.hjlp-sky-map__coordinates-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a68ab;
}

.hjlp-sky-map__pill-value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.hjlp-sky-map__coordinates-wrap {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(123, 97, 255, 0.14);
    border-radius: 18px;
    background: #fbf9ff;
}

.hjlp-sky-map__coordinates {
    display: block;
    width: 100%;
    overflow-x: auto;
    padding: 0;
    background: transparent;
    color: #2d2750;
    font-size: 16px;
    line-height: 1.55;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.hjlp-sky-map__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hjlp-sky-map__status {
    margin: 0;
    color: #6b5a99;
    font-size: 13px;
}

@media (max-width: 767px) {
    .hjlp-node-detail-width-wrap {
        max-width: var(--hjlp-detail-max-width-mobile, 95%);
    }

    .hjlp-h5p-embed {
        max-width: 100%;
    }

    .hjlp-maps-embed__frame {
        min-height: 320px;
        border-radius: 14px;
    }

    .hjlp-maps-embed__meta {
        gap: 14px;
    }

    .hjlp-maps-embed__coordinates-wrap,
    .hjlp-maps-embed__actions {
        flex-basis: 100%;
        min-width: 0;
    }

    .hjlp-maps-embed__coordinates {
        font-size: 15px;
    }

    .hjlp-maps-embed__actions {
        justify-content: stretch;
    }

    .hjlp-maps-embed__actions .hjlp-ui-button--compact {
        width: 100%;
        min-width: 0;
    }

    .hjlp-sky-map__actions .hjlp-ui-button--compact {
        width: 100%;
    }

    .hjlp-sky-map__pill {
        min-width: 0;
        width: 100%;
    }

    .hjlp-sky-map__coordinates {
        font-size: 14px;
    }
}

.hjlp-interactive-video-embed {
    width: 100%;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.hjlp-interactive-video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    border: 0;
    background: #000;
}

.hjlp-image-gallery {
    margin: 18px 0;
}

.hjlp-image-gallery__grid {
    column-width: 220px;
    column-gap: 14px;
}

.hjlp-image-gallery__item {
    display: inline-block;
    width: 100%;
    margin: 0 0 14px;
    border: 1px solid rgba(83, 52, 131, 0.18);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    break-inside: avoid;
    box-shadow: 0 8px 20px rgba(44, 27, 80, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hjlp-image-gallery__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(44, 27, 80, .14);
}

.hjlp-image-gallery__link {
    display: block;
    background: linear-gradient(180deg, #f7f7ff 0%, #f1eefb 100%);
}

.hjlp-image-gallery__item img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: contain;
    background: #f6f5fb;
    transition: transform .25s ease;
}

/* Override generic richtext image clamp inside node detail for gallery media. */
.hjlp-learning-node-detail .hjlp-image-gallery__item img {
    max-width: none !important;
    width: 100% !important;
    height: auto;
}

.hjlp-image-gallery__item:hover img {
    transform: scale(1.015);
}

.hjlp-image-gallery__caption {
    padding: 10px 12px;
}

.hjlp-image-gallery__caption h4 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.3;
}

/* Gallery modes (toggle via class): */
.hjlp-image-gallery--contain .hjlp-image-gallery__link {
    aspect-ratio: auto;
    max-height: 72vh;
    display: grid;
    place-items: center;
}

.hjlp-image-gallery--contain .hjlp-image-gallery__item img {
    width: auto;
    max-width: 100%;
    max-height: 72vh;
    height: auto;
    object-fit: contain;
}

.hjlp-image-gallery--cover .hjlp-image-gallery__link {
    aspect-ratio: 4 / 3;
}

.hjlp-image-gallery--cover .hjlp-image-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prevent LearnPress/theme global image rules from distorting PhotoSwipe slides. */
.pswp .pswp__img {
    object-fit: contain !important;
    object-position: center center !important;
}

/* Single image layout: stronger editorial presence pre-lightbox. */
.hjlp-image-gallery__grid:has(> .hjlp-image-gallery__item:only-child) {
    column-width: auto;
}

.hjlp-image-gallery__grid:has(> .hjlp-image-gallery__item:only-child) .hjlp-image-gallery__item {
    max-width: 100%;
    margin-inline: auto;
}

.hjlp-image-slider {
    margin: 18px 0;
    background: #050507;
    border-radius: 12px;
    padding: 14px;
    color: #f8f9fb;
}

.hjlp-image-slider__stage {
    position: relative;
    background: #000;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.hjlp-image-slider__count {
    position: absolute;
    left: 12px;
    top: 10px;
    z-index: 5;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hjlp-image-slider__slides {
    position: relative;
    min-height: 420px;
}

.hjlp-image-slider__slide {
    display: none;
    margin: 0;
}

.hjlp-image-slider__slide.is-active {
    display: block;
}

.hjlp-image-slider__link {
    display: grid;
    place-items: center;
    min-height: 420px;
    background: #000;
}

.hjlp-image-slider__link img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* Override theme rules that may shrink gallery media in node detail. */
.hjlp-learning-node-detail .hjlp-image-slider__link img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

.hjlp-image-slider--cover-editorial .hjlp-image-slider__link {
    min-height: 540px;
}

.hjlp-image-slider--cover-editorial .hjlp-image-slider__link img {
    width: 100%;
    height: 100%;
    max-height: 76vh;
    object-fit: cover;
}

.hjlp-image-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.hjlp-image-slider__nav--prev {
    left: 12px;
}

.hjlp-image-slider__nav--next {
    right: 12px;
}

.hjlp-image-slider__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 2px;
    overflow-x: auto;
}

.hjlp-image-slider__thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 54px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    padding: 0;
    cursor: pointer;
}

.hjlp-image-slider__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hjlp-image-slider__thumb.is-active {
    border-color: #f8f9fb;
}

.hjlp-image-slider__caption {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f8fc;
    color: #1f2433;
}

.hjlp-image-slider__title {
    margin: 0 0 8px;
    color: #1a2235;
    font-size: 15px;
    line-height: 1.35;
}

.hjlp-image-slider__description {
    color: #25324a;
}

.hjlp-external-html-embed {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.hjlp-external-html-embed iframe {
    display: block;
    width: 100%;
    min-height: 480px;
    border: 0;
    background: #fff;
}

.hjlp-learning-node-group-children {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.hjlp-learning-node-group-child {
    padding-top: 22px;
    border-top: 1px solid rgba(83, 52, 131, 0.16);
}

.hjlp-learning-node-group-child__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hjlp-learning-node-group-child__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(83, 52, 131, 0.08);
    color: #533483;
    font-size: 12px;
    font-weight: 700;
}

.hjlp-learning-node-group-child__title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.hjlp-learning-node-group-child__title-row h3 {
    margin: 0;
    color: #1f2a44;
    font-size: 22px;
    line-height: 1.25;
}

@media (min-width: 1024px) {
    .hjlp-image-slider__description.hjlp-runtime-richtext {
        width: 70%;
        max-width: 780px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hjlp-image-slider {
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .hjlp-image-slider__slides {
        min-height: 0;
    }

    .hjlp-image-slider__stage {
        border-radius: 0;
    }

    .hjlp-image-slider__link {
        min-height: 0;
    }

    .hjlp-image-slider__link img {
        width: 100% !important;
        max-width: 100%;
        max-height: none;
        height: auto !important;
    }

    .hjlp-image-slider__count {
        left: 8px;
        top: 8px;
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.55);
    }

    .hjlp-image-slider__thumbs {
        margin-top: 0;
        padding: 6px 8px;
    }

    .hjlp-image-slider__caption {
        margin-top: 0;
        border-radius: 0;
    }
}

@media (max-width: 640px) {
    #popup-sidebar .hjlp-curriculum-course-item .course-item-meta,
    .course-curriculum .hjlp-curriculum-course-item .course-item-meta,
    .lp-course-curriculum .hjlp-curriculum-course-item .course-item-meta {
        display: none !important;
    }
}

.hjlp-assessment-runtime {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(33, 24, 47, 0.05);
}

.hjlp-assessment-runtime__header strong {
    display: block;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hjlp-assessment-runtime__note,
.hjlp-assessment-runtime__retake-note {
    margin: 0;
    padding: 0.875rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    background: #f8f9fa;
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
}

.hjlp-assessment-runtime__retake-note p,
.hjlp-assessment-runtime__note {
    margin: 0;
}

.hjlp-assessment-runtime__actions {
    display: flex;
    justify-content: flex-start;
}

.hjlp-assessment-question {
    display: grid;
    gap: 0.875rem;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.hjlp-assessment-question legend {
    margin: 0;
    padding: 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.hjlp-assessment-question__description {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.hjlp-assessment-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-height: 3rem;
    margin: 0;
    padding: 0.875rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    background: #fff;
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hjlp-assessment-option:hover {
    border-color: #b8a2db;
    background: #fcfbfe;
}

.hjlp-assessment-option input[type="radio"],
.hjlp-assessment-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.18rem 0 0;
    accent-color: #6f42c1;
}

.hjlp-assessment-option span {
    display: block;
    flex: 1 1 auto;
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
}

.hjlp-assessment-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    background: #fff;
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hjlp-assessment-input:focus {
    outline: 0;
    border-color: #b197fc;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
}

.hjlp-assessment-text-counter {
    display: flex;
    justify-content: flex-end;
    gap: 0.12rem;
    margin: 0.4rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.3;
}

.hjlp-assessment-text-counter.is-near-limit {
    color: #b45309;
    font-weight: 700;
}

.hjlp-assessment-text-counter.is-over-limit {
    color: #b91c1c;
    font-weight: 700;
}

.hjlp-assessment-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
}

.hjlp-assessment-stars__option {
    position: relative;
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 999px;
    cursor: pointer;
}

.hjlp-assessment-stars__option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.hjlp-assessment-stars__icon {
    color: #c8cad0;
    font-size: 2rem;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: color 0.16s ease, transform 0.16s ease, text-shadow 0.16s ease;
}

.hjlp-assessment-stars__option:hover .hjlp-assessment-stars__icon,
.hjlp-assessment-stars__option:hover ~ .hjlp-assessment-stars__option .hjlp-assessment-stars__icon,
.hjlp-assessment-stars__option:has(input:checked) .hjlp-assessment-stars__icon,
.hjlp-assessment-stars__option:has(input:checked) ~ .hjlp-assessment-stars__option .hjlp-assessment-stars__icon {
    color: #ffd43b;
    text-shadow: 0 3px 10px rgba(245, 159, 0, 0.25);
}

.hjlp-assessment-stars__option:hover .hjlp-assessment-stars__icon,
.hjlp-assessment-stars__option:has(input:checked) .hjlp-assessment-stars__icon {
    transform: translateY(-1px) scale(1.08);
}

.hjlp-assessment-stars__option:has(input:focus-visible) {
    outline: 3px solid rgba(111, 66, 193, 0.25);
    outline-offset: 2px;
}

/* Suppress browser-default red outline on required fields before user tries to advance */
.hjlp-assessment-input:invalid,
.hjlp-digcomp-wizard__textarea:invalid {
    border-color: #ced4da;
    box-shadow: none;
    outline: none;
}

/* Show styled validation error only after the user has attempted to go to the next step */
.hjlp-digcomp-wizard__step.was-validated .hjlp-assessment-input:invalid,
.hjlp-digcomp-wizard__step.was-validated .hjlp-digcomp-wizard__textarea:invalid,
.hjlp-digcomp-wizard__step.was-validated input:invalid,
.hjlp-digcomp-wizard__step.was-validated textarea:invalid {
    border-color: #e03e3e;
    box-shadow: 0 0 0 0.2rem rgba(224, 62, 62, 0.12);
}

.hjlp-digcomp-wizard__step.was-validated .hjlp-assessment-input:invalid:focus,
.hjlp-digcomp-wizard__step.was-validated .hjlp-digcomp-wizard__textarea:invalid:focus {
    border-color: #c92a2a;
    box-shadow: 0 0 0 0.2rem rgba(201, 42, 42, 0.2);
}

/* When a field becomes valid again (user filled it), transition back to normal */
.hjlp-digcomp-wizard__step.was-validated .hjlp-assessment-input:valid,
.hjlp-digcomp-wizard__step.was-validated .hjlp-digcomp-wizard__textarea:valid,
.hjlp-digcomp-wizard__step.was-validated input:valid,
.hjlp-digcomp-wizard__step.was-validated textarea:valid {
    border-color: #40c057;
    box-shadow: 0 0 0 0.2rem rgba(64, 192, 87, 0.1);
}


.hjlp-assessment-form {
    display: grid;
    gap: 1rem;
}

.hjlp-digcomp-wizard {
    gap: 1.25rem;
}

.hjlp-digcomp-wizard__shell {
    display: grid;
    gap: 1rem;
}

.hjlp-digcomp-wizard__hero {
    display: grid;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px solid #dce6f2;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(110, 168, 254, 0.18), transparent 32%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.hjlp-digcomp-wizard__eyebrow {
    margin: 0;
    color: #4c6ef5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hjlp-digcomp-wizard__title {
    margin: 0;
    color: #1f2a37;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.hjlp-digcomp-wizard__intro,
.hjlp-digcomp-wizard__helper,
.hjlp-digcomp-wizard__step-hint {
    margin: 0;
    color: #52606d;
    font-size: 0.98rem;
    line-height: 1.55;
}

.hjlp-digcomp-wizard__progress {
    display: grid;
    gap: 0.5rem;
}

.hjlp-digcomp-wizard__progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #334155;
    font-size: 0.92rem;
}

.hjlp-digcomp-wizard__progress-track {
    height: 0.7rem;
    border-radius: 999px;
    background: #dde7fb;
    overflow: hidden;
}

.hjlp-digcomp-wizard__progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4c6ef5 0%, #22b8cf 100%);
    transition: width 0.2s ease;
}

.hjlp-digcomp-wizard__tabs {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hjlp-digcomp-wizard__tab {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d9e2f3;
    border-radius: 0.95rem;
    background: #fff;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hjlp-digcomp-wizard__tab:hover,
.hjlp-digcomp-wizard__tab.is-active {
    border-color: #91a7ff;
    background: #f5f8ff;
    box-shadow: 0 8px 18px rgba(76, 110, 245, 0.09);
}

.hjlp-digcomp-wizard__tab-index {
    display: inline-flex;
    width: 1.9rem;
    height: 1.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e7efff;
    color: #3658d4;
    font-weight: 700;
}

.hjlp-digcomp-wizard__tab-label {
    font-size: 0.92rem;
    line-height: 1.35;
}

.hjlp-digcomp-wizard__steps {
    display: grid;
}

.hjlp-digcomp-wizard__shell.is-enhanced .hjlp-digcomp-wizard__step:not(.is-active) {
    display: none;
}

.hjlp-digcomp-wizard__step {
    display: grid;
    gap: 1rem;
}

.hjlp-digcomp-wizard__step-header {
    display: grid;
    gap: 0.35rem;
}

.hjlp-digcomp-wizard__step-meta {
    margin: 0;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hjlp-digcomp-wizard__step-title {
    margin: 0;
    color: #1f2937;
    font-size: 1.2rem;
    line-height: 1.3;
}

.hjlp-digcomp-wizard__question {
    gap: 0.75rem;
    border-color: #d8e0eb;
    border-radius: 1rem;
    background: #fbfdff;
}

.hjlp-digcomp-scale,
.hjlp-digcomp-choice {
    display: grid;
    gap: 0.8rem;
}

.hjlp-digcomp-scale {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Scale options: keep grid layout (radio + value + label stacked) */
.hjlp-digcomp-scale__option {
    position: relative;
    display: grid;
    gap: 0.4rem;
    padding: 0.95rem 1rem;
    border: 1px solid #d9e2f3;
    border-radius: 0.95rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* Choice options: flex-row so checkbox sits left of the label */
.hjlp-digcomp-choice__option {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid #d9e2f3;
    border-radius: 0.95rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hjlp-digcomp-scale__option:hover,
.hjlp-digcomp-choice__option:hover {
    border-color: #91a7ff;
    box-shadow: 0 8px 18px rgba(76, 110, 245, 0.08);
    transform: translateY(-1px);
}

/* Visual feedback: radio selected */
.hjlp-digcomp-scale__option:has(input[type="radio"]:checked) {
    border-color: #4c6ef5;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    box-shadow: 0 4px 14px rgba(76, 110, 245, 0.18);
    transform: translateY(-1px);
}

.hjlp-digcomp-scale__option:has(input[type="radio"]:checked) .hjlp-digcomp-scale__value {
    background: #4c6ef5;
    color: #fff;
}

/* Visual feedback: checkbox checked */
.hjlp-digcomp-choice__option:has(input[type="checkbox"]:checked) {
    border-color: #4c6ef5;
    background: #f5f7ff;
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.12);
}


.hjlp-digcomp-scale__option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    accent-color: #4c6ef5;
    cursor: pointer;
}

.hjlp-digcomp-scale__option:has(input[type="radio"]:focus-visible) {
    outline: 3px solid rgba(76, 110, 245, 0.22);
    outline-offset: 2px;
}

/* Checkbox: pinned left, not growing */
.hjlp-digcomp-choice__option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.2rem 0 0;
    accent-color: #4c6ef5;
    cursor: pointer;
}

.hjlp-digcomp-scale__value {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ff;
    color: #4c6ef5;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.hjlp-digcomp-scale__label,
.hjlp-digcomp-choice__label {
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
}

/* Let the choice label fill the remaining width */
.hjlp-digcomp-choice__label {
    flex: 1 1 auto;
}

.hjlp-digcomp-scale__desc {
    color: #52606d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hjlp-digcomp-wizard__textarea {
    min-height: 180px;
    resize: vertical;
}

.hjlp-digcomp-wizard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.hjlp-digcomp-wizard__nav,
.hjlp-digcomp-wizard__submit .hjlp-assessment-form__submit {
    min-width: 180px;
}

.hjlp-digcomp-wizard__submit {
    margin-left: auto;
}

.hjlp-assessment-result {
    display: grid;
    gap: 0.625rem;
    padding: 1rem 1.125rem;
    border: 1px solid #d1e7dd;
    border-radius: 0.875rem;
    background: #f8fffb;
}

.hjlp-assessment-result__label {
    margin: 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 700;
}

.hjlp-assessment-result__message,
.hjlp-assessment-result__score {
    margin: 0;
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
}

.hjlp-assessment-result__component {
    display: grid;
    gap: 0.75rem;
}

.hjlp-assessment-result__component-label {
    margin: 0;
    color: #5c6b61;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hjlp-assessment-result__table-wrap {
    overflow-x: auto;
}

.hjlp-assessment-result__table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #dce9e1;
    border-radius: 0.75rem;
    overflow: hidden;
}

.hjlp-assessment-result__table th,
.hjlp-assessment-result__table td {
    padding: 0.75rem 0.875rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e8f1ec;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #33413a;
}

.hjlp-assessment-result__table th {
    background: #eef7f1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hjlp-assessment-result__table tbody tr:last-child td {
    border-bottom: none;
}

.hjlp-assessment-result__bar-item {
    display: grid;
    gap: 0.45rem;
}

.hjlp-assessment-result__bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #33413a;
    font-size: 0.95rem;
}

.hjlp-assessment-result__bar-track {
    height: 0.7rem;
    border-radius: 999px;
    background: #deebe4;
    overflow: hidden;
}

.hjlp-assessment-result__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7cc59a 0%, #2f9e67 100%);
}

.hjlp-assessment-result__list {
    margin: 0;
    padding-left: 1.25rem;
    color: #33413a;
}

.hjlp-assessment-result__list li {
    margin: 0.2rem 0;
}

.hjlp-assessment-result__component--callout {
    padding: 0.875rem 1rem;
    border: 1px dashed #c7d9cf;
    border-radius: 0.75rem;
    background: #f3f8f5;
}

.hjlp-assessment-result__callout-title,
.hjlp-assessment-result__callout-body {
    margin: 0;
    color: #46544d;
    line-height: 1.5;
}

.hjlp-assessment-result__callout-title {
    font-weight: 700;
}

.hjlp-assessment-form__submit {
    justify-self: start;
    min-width: 220px;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.hjlp-digcomp-result {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.hjlp-digcomp-result,
.hjlp-digcomp-result * {
    box-sizing: border-box;
}

.hjlp-digcomp-result__shell {
    --hjlp-digcomp-bg: #0b1026;
    --hjlp-digcomp-bg2: #121a3a;
    --hjlp-digcomp-card: #1a2348;
    --hjlp-digcomp-card2: #222d5c;
    --hjlp-digcomp-ink: #eef1ff;
    --hjlp-digcomp-muted: #9aa3cf;
    --hjlp-digcomp-gold: #f5c84c;
    --hjlp-digcomp-teal: #4cd9c0;
    --hjlp-digcomp-line: #2e3a72;
    display: grid;
    gap: 18px;
    width: 100%;
    padding: 24px;
    border: 0;
    border-radius: 18px;
    background: radial-gradient(1200px 600px at 70% -10%, rgba(37, 48, 122, 0.27), transparent), radial-gradient(900px 500px at 10% 110%, rgba(76, 217, 192, 0.13), transparent), var(--hjlp-digcomp-bg);
    color: var(--hjlp-digcomp-ink);
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}

.hjlp-digcomp-result__shell p,
.hjlp-digcomp-result__shell h3,
.hjlp-digcomp-result__shell h4,
.hjlp-digcomp-result__shell summary,
.hjlp-digcomp-result__shell span,
.hjlp-digcomp-result__shell strong {
    color: inherit;
    font-family: inherit;
    letter-spacing: 0;
}

.hjlp-digcomp-result__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hjlp-digcomp-result__brand {
    margin: 0;
    color: var(--hjlp-digcomp-muted);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hjlp-digcomp-result__tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hjlp-digcomp-result__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--hjlp-digcomp-line);
    border-radius: 999px;
    background: var(--hjlp-digcomp-card);
    color: var(--hjlp-digcomp-muted);
    font-size: 13px;
    font-weight: 500;
}

.hjlp-digcomp-result__tab.is-active {
    border-color: var(--hjlp-digcomp-gold);
    background: var(--hjlp-digcomp-gold);
    color: #1a1a1a;
    font-weight: 700;
}

.hjlp-digcomp-result__hero,
.hjlp-digcomp-result__area,
.hjlp-digcomp-result__map,
.hjlp-digcomp-result__athena-bubble {
    border: 1px solid var(--hjlp-digcomp-line);
    background: var(--hjlp-digcomp-card);
    box-shadow: none;
}

.hjlp-digcomp-result__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--hjlp-digcomp-card), var(--hjlp-digcomp-card2));
    overflow: hidden;
}

.hjlp-digcomp-result__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(1.5px 1.5px at 12% 20%, rgba(255, 255, 255, 0.5), transparent), radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.35), transparent), radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 255, 255, 0.45), transparent), radial-gradient(1px 1px at 75% 55%, rgba(255, 255, 255, 0.3), transparent), radial-gradient(1.5px 1.5px at 90% 30%, rgba(255, 255, 255, 0.4), transparent);
}

.hjlp-digcomp-result__hero-copy,
.hjlp-digcomp-result__hero-score,
.hjlp-digcomp-result__section {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.hjlp-digcomp-result__hero-score {
    justify-items: center;
    align-content: center;
}

.hjlp-digcomp-result__phase-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 4px 12px;
    border: 1px solid var(--hjlp-digcomp-line);
    border-radius: 999px;
    background: rgba(11, 16, 38, 0.4);
    color: var(--hjlp-digcomp-teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hjlp-digcomp-result__title {
    margin: 0;
    color: var(--hjlp-digcomp-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.hjlp-digcomp-result__title span {
    color: var(--hjlp-digcomp-gold);
}

.hjlp-digcomp-result__message {
    max-width: 580px;
    margin: 0;
    color: var(--hjlp-digcomp-muted);
    font-size: 14px;
    line-height: 1.6;
}

.hjlp-digcomp-result__ring {
    --hjlp-digcomp-angle: calc(max(0, min(100, var(--hjlp-digcomp-percent, 0))) * 3.6deg);
    position: relative;
    width: 120px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--hjlp-digcomp-gold) 0deg var(--hjlp-digcomp-angle), var(--hjlp-digcomp-line) var(--hjlp-digcomp-angle) 360deg);
}

.hjlp-digcomp-result__ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--hjlp-digcomp-card);
}

.hjlp-digcomp-result__ring > div {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 2px;
}

.hjlp-digcomp-result__ring > div strong {
    color: var(--hjlp-digcomp-ink);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.hjlp-digcomp-result__ring > div span {
    color: var(--hjlp-digcomp-muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hjlp-digcomp-result__gain-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hjlp-digcomp-teal);
    color: #0b1026;
    font-size: 12px;
    font-weight: 700;
}

.hjlp-digcomp-result__pending {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px dashed var(--hjlp-digcomp-gold);
    border-radius: 12px;
    background: rgba(245, 200, 76, 0.08);
    color: var(--hjlp-digcomp-gold);
}

.hjlp-digcomp-result__pending p,
.hjlp-digcomp-result__legend,
.hjlp-digcomp-result__map-divider,
.hjlp-digcomp-result__athena-who,
.hjlp-digcomp-result__athena-text {
    margin: 0;
}

.hjlp-digcomp-result__section {
    gap: 12px;
}

.hjlp-digcomp-result__section-title {
    margin: 0;
    color: var(--hjlp-digcomp-muted);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hjlp-digcomp-result__areas {
    display: grid;
    gap: 10px;
}

.hjlp-digcomp-result__area {
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
}

.hjlp-digcomp-result__area[open] {
    background: var(--hjlp-digcomp-card2);
}

.hjlp-digcomp-result__area-head {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}

.hjlp-digcomp-result__area-head::-webkit-details-marker {
    display: none;
}

.hjlp-digcomp-result__area-icon {
    width: 30px;
    flex: 0 0 30px;
    text-align: center;
    font-size: 20px;
}

.hjlp-digcomp-result__area-name {
    flex: 1;
    color: var(--hjlp-digcomp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.hjlp-digcomp-result__area-delta {
    min-width: 44px;
    color: var(--hjlp-digcomp-teal);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.hjlp-digcomp-result__area-percent {
    min-width: 48px;
    color: var(--hjlp-digcomp-gold);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.hjlp-digcomp-result__area-bar {
    position: relative;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--hjlp-digcomp-line);
    overflow: hidden;
}

.hjlp-digcomp-result__area-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hjlp-digcomp-teal), var(--hjlp-digcomp-gold));
}

.hjlp-digcomp-result__area-baseline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.75);
}

.hjlp-digcomp-result__area-detail {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.hjlp-digcomp-result__area-detail p {
    margin: 0;
    color: var(--hjlp-digcomp-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.hjlp-digcomp-result__area-detail strong {
    color: var(--hjlp-digcomp-ink);
}

.hjlp-digcomp-result__legend {
    color: var(--hjlp-digcomp-muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.hjlp-motivation-result {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.hjlp-motivation-result,
.hjlp-motivation-result * {
    box-sizing: border-box;
}

.hjlp-motivation-result__shell {
    --hjlp-motivation-bg: #0f172a;
    --hjlp-motivation-bg2: #16213f;
    --hjlp-motivation-card: #172554;
    --hjlp-motivation-card2: #1e3a5f;
    --hjlp-motivation-ink: #eff6ff;
    --hjlp-motivation-muted: #b6c2e1;
    --hjlp-motivation-gold: #f4c95d;
    --hjlp-motivation-teal: #67e8f9;
    --hjlp-motivation-rose: #fda4af;
    --hjlp-motivation-line: #30406f;
    display: grid;
    gap: 18px;
    width: 100%;
    padding: 24px;
    border-radius: 18px;
    background: radial-gradient(1200px 600px at 70% -10%, rgba(59, 130, 246, 0.22), transparent), radial-gradient(900px 500px at 10% 110%, rgba(253, 164, 175, 0.12), transparent), var(--hjlp-motivation-bg);
    color: var(--hjlp-motivation-ink);
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}

.hjlp-motivation-result__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hjlp-motivation-result__brand {
    margin: 0;
    color: var(--hjlp-motivation-muted);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hjlp-motivation-result__tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hjlp-motivation-result__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--hjlp-motivation-line);
    border-radius: 999px;
    background: var(--hjlp-motivation-card);
    color: var(--hjlp-motivation-muted);
    font-size: 13px;
    font-weight: 500;
}

.hjlp-motivation-result__tab.is-active {
    border-color: var(--hjlp-motivation-rose);
    background: var(--hjlp-motivation-rose);
    color: #1a1a1a;
    font-weight: 700;
}

.hjlp-motivation-result__hero,
.hjlp-motivation-result__dimension {
    border: 1px solid var(--hjlp-motivation-line);
    background: var(--hjlp-motivation-card);
    box-shadow: none;
}

.hjlp-motivation-result__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--hjlp-motivation-card), var(--hjlp-motivation-card2));
    overflow: hidden;
}

.hjlp-motivation-result__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(1.5px 1.5px at 12% 20%, rgba(255, 255, 255, 0.5), transparent), radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.35), transparent), radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 255, 255, 0.45), transparent), radial-gradient(1px 1px at 75% 55%, rgba(255, 255, 255, 0.3), transparent), radial-gradient(1.5px 1.5px at 90% 30%, rgba(255, 255, 255, 0.4), transparent);
}

.hjlp-motivation-result__hero-copy,
.hjlp-motivation-result__hero-score,
.hjlp-motivation-result__section {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.hjlp-motivation-result__hero-score {
    justify-items: center;
    align-content: center;
}

.hjlp-motivation-result__phase-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 4px 12px;
    border: 1px solid var(--hjlp-motivation-line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.4);
    color: var(--hjlp-motivation-rose);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hjlp-motivation-result__title {
    margin: 0;
    color: var(--hjlp-motivation-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.hjlp-motivation-result__title span {
    color: var(--hjlp-motivation-gold);
}

.hjlp-motivation-result__message {
    max-width: 580px;
    margin: 0;
    color: var(--hjlp-motivation-muted);
    font-size: 14px;
    line-height: 1.6;
}

.hjlp-motivation-result__ring {
    --hjlp-motivation-angle: calc(max(0, min(100, var(--hjlp-motivation-percent, 0))) * 3.6deg);
    position: relative;
    width: 120px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--hjlp-motivation-rose) 0deg var(--hjlp-motivation-angle), var(--hjlp-motivation-line) var(--hjlp-motivation-angle) 360deg);
}

.hjlp-motivation-result__ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--hjlp-motivation-card);
}

.hjlp-motivation-result__ring > div {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 2px;
}

.hjlp-motivation-result__ring > div strong {
    color: var(--hjlp-motivation-ink);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.hjlp-motivation-result__ring > div span {
    color: var(--hjlp-motivation-muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hjlp-motivation-result__gain-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hjlp-motivation-teal);
    color: #0b1026;
    font-size: 12px;
    font-weight: 700;
}

.hjlp-motivation-result__section {
    gap: 12px;
}

.hjlp-motivation-result__section-title {
    margin: 0;
    color: var(--hjlp-motivation-muted);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hjlp-motivation-result__dimensions {
    display: grid;
    gap: 10px;
}

.hjlp-motivation-result__dimension {
    padding: 14px 18px;
    border-radius: 14px;
}

.hjlp-motivation-result__dimension-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hjlp-motivation-result__dimension-name {
    flex: 1;
    color: var(--hjlp-motivation-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.hjlp-motivation-result__dimension-delta {
    min-width: 44px;
    color: var(--hjlp-motivation-teal);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.hjlp-motivation-result__dimension-percent {
    min-width: 48px;
    color: var(--hjlp-motivation-gold);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.hjlp-motivation-result__dimension-bar {
    position: relative;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--hjlp-motivation-line);
    overflow: hidden;
}

.hjlp-motivation-result__dimension-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hjlp-motivation-rose), var(--hjlp-motivation-gold));
}

.hjlp-motivation-result__dimension-baseline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.75);
}

.hjlp-motivation-result__dimension-meta,
.hjlp-motivation-result__legend {
    margin: 0;
    color: var(--hjlp-motivation-muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.hjlp-motivation-pulse-result {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.hjlp-motivation-pulse-result__shell {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 34px 28px;
    border: 1px solid #30406f;
    border-radius: 18px;
    background: linear-gradient(135deg, #172554, #1e3a5f);
    color: #eff6ff;
    text-align: center;
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}

.hjlp-motivation-pulse-result__check {
    font-size: 46px;
}

.hjlp-motivation-pulse-result__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.hjlp-motivation-pulse-result__message {
    max-width: 560px;
    margin: 0;
    color: #b6c2e1;
    font-size: 14px;
    line-height: 1.6;
}

.hjlp-digcomp-result__map {
    display: grid;
    gap: 0;
    padding: 18px;
    border-radius: 14px;
}

.hjlp-digcomp-result__map-divider {
    padding: 12px 4px 4px;
    color: var(--hjlp-digcomp-teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hjlp-digcomp-result__map-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(46, 58, 114, 0.33);
}

.hjlp-digcomp-result__map-row:last-child {
    border-bottom: 0;
}

.hjlp-digcomp-result__map-code {
    width: 30px;
    color: var(--hjlp-digcomp-muted);
    font-size: 11px;
}

.hjlp-digcomp-result__map-label {
    flex: 1;
    color: var(--hjlp-digcomp-ink);
    font-size: 13px;
    line-height: 1.5;
}

.hjlp-digcomp-result__map-stars {
    display: inline-flex;
    gap: 3px;
}

.hjlp-digcomp-result__athena {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.hjlp-digcomp-result__athena-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--hjlp-digcomp-gold) 60%, #b8860b);
    box-shadow: 0 0 18px rgba(245, 200, 76, 0.33);
    font-size: 26px;
}

.hjlp-digcomp-result__athena-bubble {
    padding: 16px 18px;
    border-radius: 4px 16px 16px 16px;
    background: var(--hjlp-digcomp-card2);
}

.hjlp-digcomp-result__athena-who {
    color: var(--hjlp-digcomp-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hjlp-digcomp-result__athena-text {
    color: var(--hjlp-digcomp-ink);
    font-size: 14px;
    line-height: 1.7;
}

.hjlp-digcomp-result__athena-text em {
    color: var(--hjlp-digcomp-teal);
    font-style: normal;
    font-weight: 700;
}

.hjlp-digcomp-result__athena-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hjlp-digcomp-result__athena-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid var(--hjlp-digcomp-teal);
    border-radius: 999px;
    background: transparent;
    color: var(--hjlp-digcomp-teal);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.hjlp-digcomp-result__star {
    width: 14px;
    height: 14px;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: var(--hjlp-digcomp-line);
}

.hjlp-digcomp-result__star.is-on,
.hjlp-digcomp-result__star.is-filled {
    background: var(--hjlp-digcomp-gold);
}

.hjlp-digcomp-result__star.is-gained {
    background: var(--hjlp-digcomp-teal);
}

@media (max-width: 768px) {
    .hjlp-assessment-runtime {
        padding: 18px;
    }

    .hjlp-assessment-question {
        padding: 1rem;
    }

    .hjlp-assessment-form__submit {
        width: 100%;
        justify-self: stretch;
    }

    .hjlp-digcomp-wizard__tabs,
    .hjlp-digcomp-scale {
        grid-template-columns: 1fr;
    }

    .hjlp-digcomp-wizard__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hjlp-digcomp-wizard__nav,
    .hjlp-digcomp-wizard__submit,
    .hjlp-digcomp-wizard__submit .hjlp-assessment-form__submit {
        width: 100%;
    }

    .hjlp-digcomp-result__shell {
        padding: 18px;
    }

    .hjlp-digcomp-result__hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .hjlp-digcomp-result__hero-score {
        justify-items: start;
    }

    .hjlp-digcomp-result__topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hjlp-digcomp-result__athena {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hjlp-digcomp-result__map-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .hjlp-digcomp-result__map-stars {
        width: 100%;
    }

    .hjlp-digcomp-result__athena-action,
    .hjlp-digcomp-result__tab {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================================
   Theme-agnostic tab system: LP native content renderers
   These styles apply when the plugin's self-contained fallback tab
   system is active (any theme where LP hooks are not available).
   ===================================================================== */

/* LP tab content wrapper */
.hjlp-lp-tab-content {
    padding: 4px 0;
}

/* ---- Curriculum fallback ---- */

.hjlp-curriculum-fallback {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hjlp-curriculum-section {
    border: 1px solid rgba(124, 84, 178, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.hjlp-curriculum-section > summary {
    align-items: center;
    background: rgba(248, 244, 253, 0.8);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--hjlp-brand-strong);
    gap: 12px;
}

.hjlp-curriculum-section > summary::-webkit-details-marker {
    display: none;
}

.hjlp-curriculum-section[open] > summary {
    border-bottom: 1px solid rgba(124, 84, 178, 0.12);
}

.hjlp-curriculum-section__count {
    color: var(--hjlp-muted);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.hjlp-curriculum-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hjlp-curriculum-item {
    align-items: center;
    border-bottom: 1px solid rgba(20, 35, 55, 0.06);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 18px;
}

.hjlp-curriculum-item:last-child {
    border-bottom: 0;
}

.hjlp-curriculum-item__title {
    color: var(--hjlp-brand-strong);
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
    text-decoration: none;
}

a.hjlp-curriculum-item__title:hover {
    color: var(--hjlp-brand);
    text-decoration: underline;
}

.hjlp-curriculum-item__type {
    background: rgba(105, 69, 171, 0.08);
    border-radius: 999px;
    color: var(--hjlp-brand);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    text-transform: uppercase;
}

/* ---- Instructor fallback ---- */

.hjlp-instructor-fallback {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    padding: 4px 0;
}

.hjlp-instructor-avatar {
    flex-shrink: 0;
}

.hjlp-instructor-avatar__img,
.hjlp-instructor-avatar img {
    border-radius: 999px;
    display: block;
    height: 80px;
    object-fit: cover;
    width: 80px;
}

.hjlp-instructor-info {
    flex: 1 1 auto;
    min-width: 0;
}

.hjlp-instructor-name {
    color: var(--hjlp-brand-strong);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
}

.hjlp-instructor-name a {
    color: inherit;
    text-decoration: none;
}

.hjlp-instructor-name a:hover {
    color: var(--hjlp-brand);
}

.hjlp-instructor-bio {
    color: var(--hjlp-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ---- Generic empty / no-content state ---- */

.hjlp-no-content {
    color: var(--hjlp-muted);
    font-size: 14px;
    margin: 0;
    padding: 8px 0;
}

/* =====================================================================
   Suppress LP's own tab widget when the plugin's complete fallback
   tab system is present on the page.
   The wrapper carries data-hjlp-course-tabs-fallback="1";
   the inner nav carries data-hjlp-course-tab-nav="1".
   This covers themes (Elementor / Thim-Core / etc.) that render LP
   tabs outside the_content(), creating a second tab block.
   ===================================================================== */

body:has([data-hjlp-course-tabs-fallback="1"]) #learn-press-course-tabs:not(:has([data-hjlp-course-tab-nav])),
body:has([data-hjlp-course-tabs-fallback="1"]) .learnpress-course-tabs:not(:has([data-hjlp-course-tab-nav])),
body:has([data-hjlp-course-tabs-fallback="1"]) .lp-course-tabs-v2 {
    display: none !important;
}

/* Responsive adjustments for instructor card */
@media (max-width: 480px) {
    .hjlp-instructor-fallback {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
