.academy-overall.is-complete .balance-block {
    border-color: var(--app-green);
}

.academy-heading.back {
    margin-bottom: 1.25rem;
}

.academy-menu {
    margin-top: 1.25rem;
}

#academy-article > .academy-heading.back {
    margin-bottom: 1.75rem;
}

.academy-overall {
    margin-bottom: 1.5rem;
}

.academy-modules-done {
    margin: 0.5rem 0 1.25rem;
    color: var(--small-text);
    font-size: 0.875rem;
}

.academy-module .icon .am-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--app-green);
}

.ag-icon .am-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--app-green);
}

.balance-info.ag-group .ag-icon {
    display: inline-flex;
    align-items: center;
}

.am-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding-right: 0.75rem;
}

.am-articles {
    padding: 0.1875rem 0.5rem;
    background: var(--grey);
    border-radius: 0.25rem;
    color: var(--black);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.am-articles.is-complete {
    background: var(--app-green);
    color: var(--white);
}

.am-success {
    flex: 0 0 auto;
    width: 6rem;
    color: var(--app-darker-green);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
}

.am-success.is-pass {
    color: var(--app-darker-green);
}

.am-success.is-fail {
    color: var(--app-red);
}

.am-success.is-empty {
    color: var(--small-text);
    font-weight: 500;
    font-size: 0.8125rem;
}

.aa-dot {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.375rem;
    height: 1.375rem;
    margin-right: 0.75rem;
    background: transparent;
    border: 0.125rem solid var(--app-green);
    border-radius: 50%;
    color: var(--white);
}

.academy-article.is-read .aa-dot {
    background: var(--app-green);
    border-color: var(--app-green);
}

.academy-menu .academy-article > .aa-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--small-text);
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: left;
}

.academy-test-item.is-locked {
    cursor: default;
}

.academy-test-item.is-locked .aa-dot {
    border-color: #DCE3E9;
}

.aa-lock {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 3.625rem;
    height: 3.75rem;
}

.aa-lock img {
    width: 1rem;
    height: 1rem;
}

.aa-dot svg {
    width: 0.8125rem;
    height: 0.8125rem;
}

.academy-menu .academy-article > a {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.academy-menu .academy-article > a span.title {
    margin-left: 0;
}

.academy-test-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.at-best {
    color: var(--small-text);
    font-size: 0.9375rem;
}

.at-best strong {
    color: var(--app-darker-green);
    font-size: 1.0625rem;
}

.at-start {
    margin-left: auto;
    padding: 0.6875rem 1.75rem;
    background: var(--app-green);
    border-radius: 0.375rem;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
}

.at-start:hover {
    background: var(--app-darker-green);
    color: var(--white);
}

.academy-read-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem;
}

.academy-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.75rem;
    background: var(--app-green);
    border: 0;
    border-radius: 0.375rem;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
}

.academy-read-btn:hover:not(:disabled) {
    background: var(--app-darker-green);
}

.academy-read-btn.is-busy {
    opacity: 0.65;
    cursor: default;
}

.academy-read-btn:disabled {
    background: var(--grey);
    color: var(--white);
    cursor: default;
}

.academy-read-check {
    display: none;
    width: 0.9375rem;
    height: 0.9375rem;
}

.academy-read-btn.is-read .academy-read-check {
    display: inline-flex;
}

.academy-read-check svg {
    width: 100%;
    height: 100%;
}

.academy-read-error {
    color: #FA4057;
    font-size: 0.8125rem;
    font-weight: 500;
}

.at-locked {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.6875rem 1.25rem;
    background: var(--grey);
    border-radius: 0.375rem;
    color: var(--small-text);
    font-weight: 600;
    font-size: 0.875rem;
}

.at-locked img {
    width: 1rem;
    height: 1rem;
}

.at-question {
    margin-bottom: 1.25rem;
    padding: 1.125rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 0.5rem;
}

.at-question-head {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.at-number {
    flex-shrink: 0;
    color: var(--small-text);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.at-text {
    color: var(--black);
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.4;
}

.at-answers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.at-answer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: #F7FAFC;
    border: 1px solid var(--grey);
    border-radius: 0.375rem;
    cursor: pointer;
}

.at-answer:hover {
    border-color: var(--app-green);
}

.at-radio {
    display: inline-flex;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    border: 0.125rem solid var(--app-green);
    border-radius: 50%;
}

.at-answer input:checked ~ .at-radio {
    background: var(--app-green);
    box-shadow: inset 0 0 0 0.1875rem var(--white);
}

.at-answer .at-answer-text {
    flex: 1 1 auto;
}

.at-answer input {
    display: none;
}

.at-option {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: 50%;
    color: var(--small-text);
    font-weight: 700;
    font-size: 0.8125rem;
}

.at-answer-text {
    color: var(--black);
    font-size: 0.9375rem;
    line-height: 1.35;
}

.at-answer.is-picked {
    background: #EAFBF4;
    border-color: var(--app-green);
}

.at-answer.is-picked .at-option {
    background: var(--app-green);
    border-color: var(--app-green);
    color: var(--white);
}

.at-reviewed {
    border-left: 0.25rem solid var(--grey);
}

.at-reviewed.is-correct {
    border-left-color: var(--app-green);
}

.at-reviewed.is-wrong {
    border-left-color: var(--app-red);
}

.at-reviewed .at-answer {
    cursor: default;
}

.at-reviewed.is-wrong .at-answer.is-picked {
    background: #FDECF1;
    border-color: var(--app-red);
}

.at-reviewed.is-wrong .at-answer.is-picked .at-option {
    background: var(--app-red);
    border-color: var(--app-red);
    color: var(--white);
}

.at-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.at-progress {
    color: var(--small-text);
    font-weight: 700;
    font-size: 0.9375rem;
}

.at-progress.is-complete {
    color: var(--app-darker-green);
}

.at-submit {
    margin-left: auto;
    padding: 0.6875rem 2rem;
    background: var(--app-green);
    border: 0;
    border-radius: 0.375rem;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
}

.at-submit:hover:not(:disabled) {
    background: var(--app-darker-green);
}

.at-submit:disabled {
    background: var(--grey);
    color: var(--small-text);
    cursor: not-allowed;
}

#academy-result {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#academy-result[hidden] {
    display: none;
}

.ar-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(20, 24, 30, 0.45);
}

.ar-window {
    position: relative;
    box-sizing: border-box;
    width: min(26rem, 100%);
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--app-green);
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(20, 24, 30, 0.28);
    text-align: center;
}

.ar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--app-green);
}

.ar-icon svg {
    width: 100%;
    height: 100%;
}

.ar-rows {
    margin: 1.25rem 0 1.5rem;
    text-align: left;
}

.ar-rw {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.375rem 0;
    color: var(--black);
    font-size: 1rem;
}

.ar-rw.is-correct {
    color: var(--app-darker-green);
}

.ar-rw.is-wrong {
    color: var(--app-red);
}

.ar-rw.ar-total {
    margin-top: 0.375rem;
    padding-top: 0.75rem;
    border-top: 0.0625rem solid #EDF1F4;
}

.ar-rw.ar-total.is-pass {
    color: var(--app-darker-green);
}

.ar-rw.ar-total.is-fail {
    color: var(--app-red);
}

/* farbu textu prebijala globalna definicia pre <a>, preto to bolo vidno az po hoveri */
.ar-window a.ar-confirm,
.ar-window a.ar-confirm:link,
.ar-window a.ar-confirm:visited {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: var(--app-green);
    border-radius: 0.375rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.ar-window a.ar-confirm:hover,
.ar-window a.ar-confirm:focus,
.ar-window a.ar-confirm:active {
    background: var(--app-darker-green);
    color: var(--white);
}

.ar-title {
    margin: 0.75rem 0 0.375rem;
    color: var(--black);
    font-weight: 700;
    font-size: 1.375rem;
}

.ar-summary {
    margin: 0 0 1.5rem;
    color: var(--small-text);
    font-size: 1rem;
}

.ar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ar-repeat,
.ar-close {
    padding: 0.6875rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
}

.ar-repeat {
    background: var(--app-green);
    color: var(--white);
}

.ar-repeat:hover {
    background: var(--app-darker-green);
    color: var(--white);
}

.ar-close {
    background: var(--white);
    border: 1px solid var(--grey);
    color: var(--black);
}

.ar-close:hover {
    border-color: var(--app-green);
    color: var(--black);
}

.academy-cols {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0 0.625rem 1.25rem;
    margin-top: 1.5rem;
    color: var(--small-text);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.academy-cols .ac-category {
    flex: 1 1 auto;
}

.academy-cols .ac-reward,
.academy-cols .ac-success {
    flex: 0 0 auto;
    width: 6rem;
    text-align: center;
}

/* sirka sipky v riadku, aby hlavicka sedela nad stlpcami */
.academy-cols .ac-spacer {
    flex: 0 0 auto;
    width: 3.625rem;
}

.am-reward {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 6rem;
}

.am-reward .ar-badge {
    width: 2.5rem;
    height: 2.5rem;
}

.academy-rewards {
    margin-top: 2rem;
}

.academy-rewards h3 {
    margin: 0 0 0.5rem;
    color: var(--black);
    font-size: 1.0625rem;
}

.academy-rewards p {
    margin: 0;
    color: var(--black);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.balance-info.ag-group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ag-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.ag-name {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

@media (max-width: 48rem) {
    .academy-cols .ac-reward,
    .academy-cols .ac-success {
        width: 4.5rem;
    }

    .academy-test-block {
        flex-direction: column;
        align-items: stretch;
    }

    .at-start,
    .at-locked {
        margin-left: 0;
        justify-content: center;
        text-align: center;
    }

    .am-stats {
        gap: 0.5rem;
    }
}
