.page-hero-full:has(.rselearninghero) {
    min-height: clamp(34rem, 64vw, 76vh);
}

.rselearninghero {
    --rselearninghero-accent: var(--color-accent, #d47519);
    --rselearninghero-primary: var(--color-primary, #7a8836);
    --rselearninghero-accepted: color-mix(in srgb, var(--rselearninghero-primary) 72%, #000);
    --rselearninghero-submitted: color-mix(in srgb, var(--rselearninghero-accent) 68%, #000);
    position: relative;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    z-index: 0;
    display: flex;
    align-items: center;
    padding: calc(var(--topbar-height) + 2rem) var(--menu-right-offset) 2rem var(--menu-left-offset);
    color: #fff;
    overflow-wrap: anywhere;
    pointer-events: none;
    will-change: transform;
}

.rselearninghero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(9, 14, 13, 0.78) 0%, rgba(9, 14, 13, 0.58) 38%, rgba(9, 14, 13, 0.24) 72%, rgba(9, 14, 13, 0.04) 100%),
        linear-gradient(180deg, rgba(9, 14, 13, 0.22) 0%, rgba(9, 14, 13, 0.04) 44%, rgba(9, 14, 13, 0.3) 100%);
}

.rselearninghero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem);
    align-items: end;
    gap: clamp(1.5rem, 4vw, 4rem);
    width: min(78rem, calc(100vw - var(--menu-left-offset) - var(--menu-right-offset)));
}

.rselearninghero__copy {
    max-width: 48rem;
}

.rselearninghero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.3rem, 4.45vw, 4.75rem);
    font-weight: 740;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
    text-wrap: balance;
}

.rselearninghero__abstract {
    max-width: 42rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.38;
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.rselearninghero__panel {
    box-sizing: border-box;
    min-width: 0;
    display: grid;
    gap: 0.78rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.5rem;
    background: rgba(17, 24, 23, 0.62);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.rselearninghero__progress {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rselearninghero__ring {
    display: grid;
    place-items: center;
    width: 3.9rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(17, 24, 23, 0.92) 0 58%, transparent 60%),
        conic-gradient(var(--rselearninghero-accent) calc(var(--rselearninghero-progress) * 1%), rgba(255, 255, 255, 0.24) 0);
}

.rselearninghero__ring span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 760;
}

.rselearninghero__progressText {
    display: grid;
    gap: 0.12rem;
}

.rselearninghero__progressText span,
.rselearninghero__eyebrow,
.rselearninghero__taskTitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 650;
}

.rselearninghero__progressText strong {
    color: #fff;
    font-size: 1rem;
}

.rselearninghero__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rselearninghero__stepMarker {
    display: grid;
    place-items: center;
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 760;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.rselearninghero__step a.rselearninghero__stepMarker:hover {
    transform: translateY(-1px);
}

.rselearninghero__step a.rselearninghero__stepMarker:focus-visible,
.rselearninghero__button:focus-visible,
.rselearninghero__feedback:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--rselearninghero-accent) 72%, #fff);
    outline-offset: 3px;
}

.rselearninghero__step--accepted .rselearninghero__stepMarker {
    background: var(--rselearninghero-accepted);
}

.rselearninghero__step--submitted .rselearninghero__stepMarker {
    background: var(--rselearninghero-submitted);
}

.rselearninghero__step--active .rselearninghero__stepMarker,
.rselearninghero__step--previewActive .rselearninghero__stepMarker {
    border: 2px solid var(--rselearninghero-accent);
    background: color-mix(in srgb, var(--rselearninghero-accent) 20%, transparent);
}

.rselearninghero__step--following .rselearninghero__stepMarker,
.rselearninghero__step--locked .rselearninghero__stepMarker {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
}

.rselearninghero__step--locked .rselearninghero__stepMarker {
    border-style: dashed;
    color: rgba(255, 255, 255, 0.58);
}

.rselearninghero__visuallyHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.rselearninghero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem 0.72rem;
    padding: 0.66rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0.42rem;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.rselearninghero__stats span {
    align-items: baseline;
    display: flex;
    gap: 0.34rem;
    min-width: 0;
}

.rselearninghero__stats strong {
    color: #fff;
    flex: 0 0 auto;
    font-size: 0.98rem;
}

.rselearninghero__next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.34rem 0.72rem;
    padding-top: 0.76rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rselearninghero__nextTitle,
.rselearninghero__nextMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem 0.48rem;
    min-width: 0;
}

.rselearninghero__nextTitle {
    align-items: baseline;
}

.rselearninghero__nextMeta {
    align-items: center;
    justify-content: flex-end;
}

.rselearninghero__nextMeta strong {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.15;
}

.rselearninghero__nextDuration {
    align-items: center;
    padding: 0.25rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 650;
    gap: 0.35rem;
    line-height: 1.2;
    min-height: 1.62rem;
}

.rselearninghero__durationIcon {
    border: 1.4px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 0.76rem;
    height: 0.76rem;
    position: relative;
    width: 0.76rem;
}

.rselearninghero__durationIcon::before,
.rselearninghero__durationIcon::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform-origin: left center;
}

.rselearninghero__durationIcon::before {
    height: 1.5px;
    transform: translateY(-50%) rotate(-90deg);
    width: 0.24rem;
}

.rselearninghero__durationIcon::after {
    height: 1.5px;
    transform: translateY(-50%) rotate(25deg);
    width: 0.2rem;
}

.rselearninghero__taskTitle {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.86rem;
    font-weight: 720;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rselearninghero__button,
.rselearninghero__feedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.78rem;
    border-radius: 0.45rem;
    font-weight: 760;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.rselearninghero__button {
    box-sizing: border-box;
    padding: 0.65rem 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    color: #17201d;
    line-height: 1.3;
    text-align: center;
}

.rselearninghero__button:hover {
    transform: translateY(-1px);
    background: #fff;
}

.rselearninghero__feedback {
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 2.6rem;
    padding: 0.58rem 0.72rem;
    border: 1px solid color-mix(in srgb, var(--rselearninghero-accent) 44%, transparent);
    background: color-mix(in srgb, var(--rselearninghero-accent) 15%, transparent);
    color: #fff;
    font-size: 0.9rem;
}

.rselearninghero__feedback:hover {
    border-color: color-mix(in srgb, var(--rselearninghero-accent) 78%, transparent);
    background: color-mix(in srgb, var(--rselearninghero-accent) 22%, transparent);
}

.rselearninghero__feedback strong {
    margin-left: auto;
    color: color-mix(in srgb, var(--rselearninghero-accent) 28%, #fff);
}

.rselearninghero__feedbackIcon {
    position: relative;
    flex: 0 0 auto;
    width: 1.1rem;
    height: 0.86rem;
    border: 2px solid currentColor;
    border-radius: 0.28rem;
}

.rselearninghero__feedbackIcon::after {
    content: "";
    position: absolute;
    right: 0.12rem;
    bottom: -0.38rem;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    background: transparent;
}

@media (max-width: 980px) {
    .rselearninghero {
        padding-right: var(--topbar-inline-space);
        padding-left: var(--topbar-inline-space);
    }

    .rselearninghero__inner {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        width: min(45rem, 100%);
    }

    .rselearninghero__copy {
        max-width: 42rem;
    }

    .rselearninghero__panel {
        width: min(28rem, 100%);
    }
}

@media (max-width: 760px) {
    .page-hero-full:has(.rselearninghero) {
        min-height: clamp(40rem, 124vw, 48rem);
    }

    .rselearninghero {
        align-items: end;
    }

    .rselearninghero::before {
        background:
            linear-gradient(90deg, rgba(9, 14, 13, 0.76) 0%, rgba(9, 14, 13, 0.42) 76%, rgba(9, 14, 13, 0.2) 100%),
            linear-gradient(180deg, rgba(9, 14, 13, 0.2) 0%, rgba(9, 14, 13, 0.1) 38%, rgba(9, 14, 13, 0.74) 100%);
    }

    .rselearninghero__panel {
        gap: 0.72rem;
        padding: 0.82rem;
    }

    .rselearninghero__next {
        grid-template-columns: 1fr;
    }

    .rselearninghero__nextMeta {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .page-hero-full:has(.rselearninghero) {
        min-height: clamp(48rem, 196vw, 58rem);
    }

    .rselearninghero {
        padding-right: max(0.75rem, var(--topbar-inline-space));
        padding-left: max(0.75rem, var(--topbar-inline-space));
    }

    .rselearninghero__title {
        font-size: clamp(1.8rem, 10vw, 2.3rem);
    }

    .rselearninghero__stats {
        gap: 0.42rem;
    }

    .rselearninghero__button {
        width: 100%;
    }
}
