.lesson-link__title {
    display: block;
}

.lesson-link__state {
    display: block;
    min-height: 1.2em;
    margin-top: 2px;
    color: #82d8c5;
    font-size: .72rem;
    font-weight: 700;
}

.lesson-link__state:empty {
    display: none;
}

.lesson-link.watched:not(.done) .lesson-link__marker {
    border-color: #55c2d3;
    background: rgba(85,194,211,.18);
    color: #9de4ec;
}

.lesson-link.watched:not(.done) .lesson-link__state {
    color: #f1c77e;
}

.watch-card.is-complete {
    border-color: #75bda9;
    box-shadow: 0 0 0 3px rgba(19,116,90,.08);
}

.pill--complete {
    background: #dff4ec;
    color: #0b634e;
}

.completion-confirmation {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -8px 0 24px;
    padding: 15px 18px;
    border: 1px solid #9bcfbe;
    border-radius: 8px;
    background: #edf9f4;
    color: #0b5d49;
}

.completion-confirmation[hidden] {
    display: none;
}

.completion-confirmation__icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #13745a;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.completion-confirmation p {
    margin: 2px 0 0;
    color: #426c60;
    font-size: .88rem;
}

.next-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.next-area__help {
    flex-basis: 100%;
    color: #60717c;
    text-align: right;
}

.btn--disabled {
    opacity: .48;
    cursor: not-allowed;
}

.stay-button {
    border: 0;
    background: none;
    color: #146b8c;
    font: 600 .82rem "DM Sans",sans-serif;
    cursor: pointer;
    text-decoration: underline;
}

.check-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #60717c;
    font-size: .82rem;
}

.check-progress__step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.check-progress__step::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d2dde0;
}

.check-progress__step.is-current::before {
    background: #146b8c;
}

.check-progress__step.is-complete::before {
    background: #13745a;
}

.single-question h2 {
    font-family: "Libre Caslon Display",Georgia,serif;
    font-size: clamp(1.65rem,3vw,2.35rem);
    font-weight: 400;
    line-height: 1.2;
}

.option.option--correct {
    border-color: #4fa687;
    background: #e8f7f0;
    box-shadow: inset 4px 0 0 #13745a;
}

.option.option--incorrect {
    border-color: #d58b8b;
    background: #fff0f0;
    box-shadow: inset 4px 0 0 #a43b3b;
}

.option__result {
    display: block;
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 800;
}

.option--correct .option__result {
    color: #0b634e;
}

.option--incorrect .option__result {
    color: #913030;
}

.answer-result {
    margin: 22px 0;
    padding: 18px 20px;
    border-left: 4px solid #13745a;
    background: #e9f7f2;
}

.answer-result.is-incorrect {
    border-color: #bf7a30;
    background: #fff6e7;
}

.answer-result h3 {
    margin: 0 0 6px;
}

.answer-result p {
    margin: 6px 0 0;
}

.final-assessment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-left: 5px solid #9aa9ae;
}

.final-assessment-card.is-unlocked {
    border-left-color: #13745a;
}

.final-assessment-card h2 {
    margin: 2px 0 8px;
}

.course-final-link {
    margin: 20px 12px 8px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    display: grid;
    gap: 8px;
}

.course-final-link__label {
    color: #b9dce7;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.course-final-link strong {
    color: #fff;
    font-size: .94rem;
}

.course-final-link__status {
    color: #b9c5ca;
    font-size: .78rem;
    line-height: 1.45;
}

.course-final-link .btn {
    margin-top: 4px;
    text-align: center;
}

.course-final-link.is-unlocked {
    border-color: #72c9aa;
    background: rgba(55,149,113,.14);
}

@media(max-width:600px) {
    .final-assessment-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .next-area {
        width: 100%;
        justify-content: stretch;
    }

    .next-area .btn {
        width: 100%;
    }

    .next-area__help {
        text-align: left;
    }
}

/* v2.1 certificate and public verification */
.certificate-actions {
    justify-content: flex-end;
    margin-bottom: 18px;
}

.certificate__seal {
    position: absolute;
    z-index: 2;
    top: 65px;
    right: 57px;
    width: 138px;
    height: 138px;
    object-fit: contain;
}

.certificate__award {
    margin: 34px 0 26px;
}

.certificate__award h1 {
    margin-bottom: 14px;
    font-size: clamp(2.6rem,4.3vw,4.2rem);
    line-height: 1;
}

.certificate__intro,
.certificate__completion-line,
.certificate__achievement {
    color: #42545e;
}

.certificate__intro {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.certificate__name {
    margin: 4px 0 18px;
    font-size: clamp(2.5rem,4.2vw,4rem);
    line-height: 1.05;
}

.certificate__completion-line {
    margin: 0 0 9px;
    font-size: clamp(1rem,1.5vw,1.3rem);
    font-weight: 600;
}

.certificate__course {
    max-width: none;
    font-family: "Libre Caslon Display",Georgia,serif;
    font-size: clamp(1.75rem,2.65vw,2.65rem);
    line-height: 1.15;
}

.certificate__achievement {
    margin: 15px 0 0;
    font-size: clamp(.95rem,1.25vw,1.16rem);
    line-height: 1.55;
}

.certificate__metadata {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #d9e2e4;
}

.certificate__metadata span,
.certificate__verify strong {
    display: block;
    color: #146b8c;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.certificate__metadata strong {
    display: block;
    margin-top: 5px;
    color: #0b2638;
    font-size: 1rem;
}

.certificate__bottom {
    grid-template-columns: 1.25fr .8fr 1.15fr;
    gap: 24px;
    font-size: .82rem;
    line-height: 1.55;
}

.certificate__bottom strong {
    color: #0b2638;
    font-size: 1rem;
}

.certificate__verify {
    overflow-wrap: anywhere;
}

.credential-status {
    color: #13745a;
    font-weight: 800;
}

.certificate--revoked {
    opacity: .88;
}

.certificate--revoked .credential-status {
    color: #a43b3b;
}

.certificate__disclaimer {
    margin: 18px 0 0;
    color: #60717c;
    font-size: .68rem;
    line-height: 1.4;
}

.verification-page {
    width: min(1320px,calc(100% - 32px));
    margin: 42px auto 70px;
}

.verification-search {
    max-width: 760px;
    margin: 0 auto 24px;
}

.verification-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.verification-form .field {
    flex: 1;
    margin-bottom: 0;
}

.credential-result,
.credential-not-found {
    max-width: 900px;
    margin: 0 auto 24px;
}

.credential-result {
    padding: 18px 22px;
    border: 1px solid #9bcfbe;
    border-left: 5px solid #13745a;
    border-radius: 8px;
    background: #edf9f4;
}

.credential-result--revoked {
    border-color: #d58b8b;
    border-left-color: #a43b3b;
    background: #fff0f0;
}

.credential-result h2,
.credential-result p {
    margin: 0;
}

.credential-result p {
    margin-top: 4px;
}

.verification-record {
    max-width: 900px;
    margin: 26px auto 0;
}

.verification-record table {
    width: 100%;
    border-collapse: collapse;
}

.verification-record th,
.verification-record td {
    padding: 11px 8px;
    border-bottom: 1px solid #e0e7e9;
    text-align: left;
    vertical-align: top;
}

.verification-record th {
    width: 30%;
    color: #42545e;
}

@media(max-width:900px) {
    .certificate__seal {
        top: 62px;
        right: 62px;
        transform: scale(.82);
        transform-origin: top right;
    }

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

    .certificate__verify {
        grid-column: 1 / -1;
    }
}

@media(max-width:600px) {
    .certificate__seal {
        position: relative;
        top: auto;
        right: auto;
        margin: 24px auto 4px;
        transform: none;
    }

    .certificate__award {
        margin: 25px 0;
    }

    .certificate__metadata,
    .certificate__bottom {
        grid-template-columns: 1fr;
    }

    .certificate__verify {
        grid-column: auto;
    }

    .verification-form {
        align-items: stretch;
        flex-direction: column;
    }

    .verification-form .btn {
        width: 100%;
    }
}

@media print {
    .certificate__seal {
        top: 20mm;
        right: 20mm;
        width: 32mm;
        height: 32mm;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .certificate__award h1 {
        font-size: 29pt;
    }

    .certificate__name {
        font-size: 27pt;
    }

    .certificate__course {
        font-size: 18pt;
    }

    .certificate__completion-line,
    .certificate__achievement {
        font-size: 10pt;
    }

    .certificate__metadata strong,
    .certificate__bottom strong {
        font-size: 9pt;
    }

    .certificate__bottom {
        grid-template-columns: 1.25fr .8fr 1.15fr;
        gap: 12mm;
        font-size: 7.5pt;
    }

    .certificate__verify {
        grid-column: auto;
    }
}

/* v2.1.1 course-player layout correction */
@media screen {
    .course-shell {
        grid-template-columns: 360px minmax(0,1fr);
    }

    .course-nav {
        overflow-x: hidden;
        padding: 28px 20px;
    }

    .module {
        padding: 18px 0 10px;
    }

    .module__title {
        margin: 0 8px 10px;
        line-height: 1.35;
    }

    .lesson-link {
        grid-template-columns: 28px minmax(0,1fr);
        align-items: start;
        gap: 10px;
        margin: 2px 0;
        padding: 10px 8px;
        line-height: 1.35;
    }

    .lesson-link > .lesson-link__marker {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border: 1px solid rgba(255,255,255,.24);
        border-radius: 50%;
        font-size: .72rem;
    }

    .lesson-link > span:last-child {
        display: block;
        min-width: 0;
        width: auto;
    }

    .lesson-link .lesson-link__title {
        display: block;
        width: auto;
        height: auto;
        min-width: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
        font-size: .86rem;
        font-weight: 600;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .lesson-link__state {
        width: auto;
        min-height: 0;
        margin-top: 4px;
        line-height: 1.35;
    }

    .module-check-link {
        margin: 9px 8px 2px;
        line-height: 1.4;
    }

}

@media screen and (max-width:1100px) {
    .course-shell {
        grid-template-columns: 320px minmax(0,1fr);
    }
}

@media screen and (max-width:900px) {
    .course-shell {
        grid-template-columns: 1fr;
    }
}
