html:has(.student-learn),
body:has(.student-learn) {
    overflow-x: clip;
    background: var(--secondary_background);
}

.student-learn {
    padding: 30px 0 56px;
}

.student-learn-header {
    padding-bottom: 22px;
}

.student-learn-header h1 {
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.2;
}

.student-learn-header p {
    max-width: 620px;
    margin-top: 10px;
    color: var(--secondary);
}

.student-learn-breadcrumbs {
    margin-bottom: 26px;
}

.student-learn-breadcrumbs ol {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.student-learn-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-size: 13px;
}

.student-learn-breadcrumbs li:not(:last-child)::after {
    margin-left: 7px;
    color: var(--lightgray_2);
    content: "/";
}

.student-learn-breadcrumbs a:hover {
    color: var(--accent);
}

.student-learn-breadcrumbs__home {
    display: inline-flex;
    padding: 4px;
    align-items: center;
}

.student-learn-breadcrumbs [aria-current="page"] {
    color: var(--main);
}

.student-learn-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.student-learn-sidebar {
    position: sticky;
    top: calc(var(--nav_height) + 24px);
    min-width: 0;
    max-height: calc(100vh - var(--nav_height) - 48px);
    overflow-y: auto;
}

.student-learn-content {
    min-width: 0;
}

.student-learn-overview {
    padding: 26px;
    border: var(--border);
    border-bottom-width: 4px;
    border-radius: var(--radius);
    background: var(--white);
}

.student-learn-overview__icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
}

.student-learn-overview__icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.student-learn img[src*="/img/icons/subjects/"] {
    border-radius: 12px;
    background-color: var(--accent);
}

.student-learn-overview__icon img[src*="/img/icons/subjects/"] {
    border-radius: var(--radius);
    box-shadow: 0 5px 0 var(--darker_accent);
}

.student-learn-overview__type {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: var(--main_bolder_weight);
}

.student-learn-overview h1 {
    font-size: 28px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.student-learn-overview__description {
    margin-top: 15px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.65;
}

.student-learn-overview__stats {
    margin-top: 18px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: var(--main_bolder_weight);
}

.student-learn-overview__contents {
    margin-top: 24px;
    padding-top: 22px;
    border-top: var(--border);
}

.student-learn-overview__contents h2 {
    margin-bottom: 12px;
    font-family: var(--main_font);
    font-size: 17px;
    font-weight: var(--main_bolder_weight);
}

.student-learn-overview__contents ol {
    margin: 0;
    padding-left: 22px;
    color: var(--secondary);
    font-size: 14px;
}

.student-learn-overview__contents li + li {
    margin-top: 7px;
}

.student-learn-overview__contents a {
    display: block;
    padding: 5px 0;
    color: var(--main);
    line-height: 1.45;
}

.student-learn-overview__contents a:hover {
    color: var(--accent);
}

.student-learn-decision__header {
    margin-bottom: 24px;
}

.student-learn-decision__header h2 {
    font-size: 26px;
    line-height: 1.25;
}

.student-learn-decision__header p {
    margin-top: 8px;
    color: var(--secondary);
    font-size: 14px;
}

.student-learn-programme-grid,
.student-learn-choice-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 24px;
    list-style: none;
}

.student-learn-programme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-learn-choice-list--subject {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-learn-choice-list--domain {
    grid-template-columns: minmax(0, 1fr);
}

.student-learn-programme-grid > li,
.student-learn-choice-list > li {
    min-width: 0;
}

.student-learn-programme,
.student-learn-choice {
    display: flex;
    min-height: 176px;
    height: 100%;
    padding: 24px;
    flex-direction: column;
    color: var(--main);
    border: var(--border);
    border-bottom-width: 4px;
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color .16s ease, transform .16s ease;
}

.student-learn-programme:hover,
.student-learn-programme:focus-visible,
.student-learn-choice:hover,
.student-learn-choice:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.student-learn-programme__header,
.student-learn-choice__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-learn-programme__icon,
.student-learn-choice__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.student-learn-programme__icon img,
.student-learn-choice__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.student-learn-programme__copy,
.student-learn-choice__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.student-learn-programme__copy small,
.student-learn-programme__copy strong,
.student-learn-choice__copy small,
.student-learn-choice__copy strong {
    display: block;
}

.student-learn-programme__copy small,
.student-learn-choice__copy small {
    margin-bottom: 4px;
    color: var(--secondary);
    font-size: 12px;
}

.student-learn-programme__copy strong,
.student-learn-choice__copy strong {
    font-size: 22px;
    font-weight: var(--main_bolder_weight);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.student-learn-programme__arrow,
.student-learn-choice__arrow {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--secondary);
    font-size: 22px;
    transition: color .16s ease, transform .16s ease;
}

.student-learn-programme:hover .student-learn-programme__arrow,
.student-learn-programme:focus-visible .student-learn-programme__arrow,
.student-learn-choice:hover .student-learn-choice__arrow,
.student-learn-choice:focus-visible .student-learn-choice__arrow {
    color: var(--accent);
    transform: translateX(3px);
}

.student-learn-programme__description,
.student-learn-choice__description {
    display: -webkit-box;
    margin: 18px 0 0;
    overflow: hidden;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.student-learn-programme__meta,
.student-learn-choice__meta {
    display: block;
    margin-top: 20px;
    padding-top: 16px;
    color: var(--secondary);
    border-top: var(--border);
    font-size: 13px;
}

.student-learn-choice-list--domain .student-learn-choice {
    min-height: 0;
}

.student-learn-choice-list--domain .student-learn-choice__icon {
    width: 48px;
    height: 48px;
}

.student-learn-choice-list--domain .student-learn-choice__copy strong {
    font-size: 20px;
}

.student-learn-curriculum-select {
    margin-bottom: 24px;
}

.student-learn-curriculum-select form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.student-learn-curriculum-select select {
    min-width: 0;
    min-height: 48px;
    flex: 1 1 220px;
}

.student-learn-curriculum-select button {
    min-height: 48px;
}

.student-learn-results {
    margin-top: 0;
}

.student-learn-results__header {
    position: relative;
    display: flex;
    margin-bottom: 16px;
    flex-direction: column;
    gap: 14px;
}

.student-learn-results__header h2 {
    font-size: clamp(25px, 3vw, 31px);
}

.student-learn-results__header p {
    margin-top: 4px;
    color: var(--secondary);
}

.student-learn-results__toolbar {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
}

.student-learn-search {
    min-width: 0;
    flex: 1 1 auto;
}

.student-learn-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.student-learn-search__control {
    position: relative;
    height: 52px;
    border: var(--border);
    border-radius: 12px;
    background: var(--white);
}

.student-learn-search__control:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.student-learn-search input[type="search"] {
    width: 100%;
    height: 100%;
    padding: 0 18px 0 52px;
    color: var(--main);
    border: 0;
    border-radius: inherit;
    background: transparent;
    font: inherit;
}

.student-learn-search input[type="search"]:focus {
    outline: none;
}

.student-learn-search input[type="search"]::placeholder {
    color: var(--lightgray_2);
}

.student-learn-search__submit {
    position: absolute;
    top: 3px;
    left: 3px;
    display: inline-flex;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.student-learn-search__submit:hover {
    background: var(--lightblue);
}

.student-learn-search__submit img {
    width: 20px;
    height: auto;
}

.student-learn-refine {
    margin-top: 16px;
}

.student-learn-refine summary {
    display: flex;
    min-height: 52px;
    padding: 10px 14px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    border: var(--border);
    border-radius: 12px;
    background: var(--white);
    font-weight: var(--main_bolder_weight);
    list-style: none;
}

.student-learn-refine summary::-webkit-details-marker {
    display: none;
}

.student-learn-refine summary::after {
    margin-left: auto;
    color: var(--secondary);
    content: "+";
    font-size: 18px;
}

.student-learn-refine[open] summary::after {
    content: "−";
}

.student-learn-refine summary span {
    padding: 3px 7px;
    color: var(--blue_text);
    border-radius: 999px;
    background: var(--lightblue);
    font-size: 12px;
}

.student-learn-refine form {
    width: 100%;
    margin-top: 8px;
    padding: 18px;
    border: var(--border);
    border-bottom-width: 3px;
    border-radius: var(--radius);
    background: var(--white);
}

.student-learn-refine label {
    display: block;
    margin-bottom: 6px;
    font-weight: var(--main_bolder_weight);
}

.student-learn-refine select {
    display: block;
    width: 100%;
}

.student-learn-refine__actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 14px;
    align-items: center;
    gap: 14px;
}

.student-learn-refine__actions a {
    color: var(--accent);
    font-size: 13px;
    font-weight: var(--main_bolder_weight);
}

.student-learn-chapters {
    padding: 0 28px;
    border: var(--border);
    border-bottom-width: 4px;
    border-radius: var(--radius);
    background: var(--white);
}

.student-learn-chapter {
    padding: 30px 0;
    scroll-margin-top: calc(var(--nav_height) + 20px);
}

.student-learn-chapter + .student-learn-chapter {
    border-top: var(--border);
}

.student-learn-chapter__header {
    display: flex;
    margin-bottom: 24px;
    align-items: center;
    gap: 20px;
}

.student-learn-chapter__index {
    display: inline-flex;
    width: 60px;
    height: 74px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--always_main);
    background: url('../../img/icons/chapter_sign.svg') center / contain no-repeat;
    font-size: 29px;
    font-weight: var(--main_bolder_weight);
}

.student-learn-chapter__heading {
    min-width: 0;
}

.student-learn-concept__context {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 12px;
}

.student-learn-chapter h3 {
    font-size: 23px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.student-learn-concept__intention {
    margin-top: 9px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
}

.student-learn-chapter__activities {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.student-learn-activity {
    position: relative;
    display: flex;
    min-height: 64px;
    padding: 2px 4px 2px 0;
    align-items: center;
    gap: 20px;
    color: var(--main);
    border-radius: 12px;
}

.student-learn-activity + .student-learn-activity::before {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 27px;
    width: 3px;
    height: 16px;
    border-radius: 4px;
    background: var(--secondary_background1);
    content: '';
}

.student-learn-activity__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--secondary);
    border-radius: 15px;
    background: var(--secondary_background1);
    box-shadow: 0 6px 0 var(--lightgray_2);
    transition: transform .16s ease, box-shadow .16s ease;
}

.student-learn-activity__icon svg {
    width: 24px;
    height: 24px;
}

.student-learn-activity.is-primary .student-learn-activity__icon,
.student-learn-activity.is-filter-match .student-learn-activity__icon {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 6px 0 var(--darker_accent);
}

.student-learn-activity.is-completed .student-learn-activity__icon {
    color: #fff;
    background: var(--green);
    box-shadow: 0 6px 0 var(--darkgreen);
}

.student-learn-activity__copy {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.student-learn-activity__copy small {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 12px;
}

.student-learn-activity__copy strong {
    display: block;
    font-size: 16px;
    font-weight: var(--main_bolder_weight);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.student-learn-activity__arrow {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--secondary);
    font-size: 20px;
}

.student-learn-activity:hover .student-learn-activity__copy strong,
.student-learn-activity:focus-visible .student-learn-activity__copy strong,
.student-learn-activity:hover .student-learn-activity__arrow,
.student-learn-activity:focus-visible .student-learn-activity__arrow {
    color: var(--accent);
}

.student-learn-activity:hover .student-learn-activity__icon,
.student-learn-activity:focus-visible .student-learn-activity__icon {
    transform: translateY(2px);
}

.student-learn-concept__footer {
    display: flex;
    margin-top: 24px;
    padding-top: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--secondary);
    border-top: var(--border);
    background: transparent;
    font-size: 12px;
}

.student-learn-concept__progress {
    color: var(--main);
    font-weight: var(--main_bolder_weight);
}

.student-learn-other {
    margin-top: 32px;
    padding-top: 25px;
    border-top: var(--border);
}

.student-learn-other > header {
    margin-bottom: 13px;
}

.student-learn-other h3 {
    font-size: 21px;
}

.student-learn-other header p {
    margin-top: 3px;
    color: var(--secondary);
    font-size: 13px;
}

.student-learn-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.student-learn-resource {
    display: flex;
    min-height: 250px;
    padding: 22px;
    flex-direction: column;
    border: var(--border);
    border-bottom-width: 4px;
    border-radius: var(--radius);
    background: var(--secondary_background);
}

.student-learn-resource__meta {
    display: flex;
    min-height: 22px;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: var(--main_bold_weight);
}

.student-learn-resource__type {
    color: var(--blue_text);
    font-weight: var(--main_boldest_weight);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.student-learn-resource h3 {
    margin-top: 11px;
    font-size: 21px;
    line-height: 1.25;
}

.student-learn-resource h3 a:hover {
    color: var(--accent);
}

.student-learn-resource__intention {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.student-learn-resource__footer {
    display: flex;
    margin-top: auto;
    padding-top: 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.student-learn-resource__signals {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: var(--secondary);
    font-size: 12px;
}

.student-learn-resource__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--main);
    font-weight: var(--main_bolder_weight);
}

.student-learn-resource__status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green);
}

.student-learn-resource__action {
    display: inline-flex;
    min-height: 44px;
    padding-right: 16px;
    padding-left: 16px;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.student-learn-empty {
    display: flex;
    min-height: 210px;
    padding: 28px;
    align-items: center;
    gap: 24px;
    border: 2px dashed var(--blue_border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--lightblue) 42%, var(--white));
}

.student-learn-empty img {
    flex: 0 0 auto;
    object-fit: contain;
}

.student-learn-empty h2 {
    font-size: 24px;
}

.student-learn-empty p {
    max-width: 620px;
    margin-top: 7px;
    color: var(--secondary);
}

.student-learn-empty .btn {
    margin-top: 17px;
}

.student-learn-pagination {
    display: grid;
    margin-top: 28px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.student-learn-pagination__next {
    text-align: right;
}

.student-learn-pagination__count {
    color: var(--secondary);
    font-size: 14px;
    font-weight: var(--main_bolder_weight);
}

.student-learn-pagination__disabled {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 16px;
    align-items: center;
    color: var(--lightgray_2);
    font-weight: var(--main_bolder_weight);
}

.student-learn a:focus-visible,
.student-learn summary:focus-visible,
.student-learn select:focus-visible,
.student-learn input:focus-visible,
.student-learn button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .student-learn-programme,
    .student-learn-programme__arrow,
    .student-learn-choice,
    .student-learn-choice__arrow,
    .student-learn-activity__icon {
        transition: none;
    }

    .student-learn-programme:hover,
    .student-learn-programme:focus-visible,
    .student-learn-programme:hover .student-learn-programme__arrow,
    .student-learn-programme:focus-visible .student-learn-programme__arrow,
    .student-learn-choice:hover,
    .student-learn-choice:focus-visible,
    .student-learn-choice:hover .student-learn-choice__arrow,
    .student-learn-choice:focus-visible .student-learn-choice__arrow,
    .student-learn-activity:hover .student-learn-activity__icon,
    .student-learn-activity:focus-visible .student-learn-activity__icon {
        transform: none;
    }
}

@media (max-width: 1080px) {
    .student-learn-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 24px;
    }

    .student-learn-choice-list--subject {
        grid-template-columns: 1fr;
    }

    .student-learn-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-learn-overview {
        padding: 22px;
    }
}

@media (max-width: 820px) {
    .student-learn-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .student-learn-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .student-learn-overview__contents ol {
        columns: 2;
        column-gap: 30px;
    }

    .student-learn-overview__contents li {
        break-inside: avoid;
    }

    .student-learn-programme-grid,
    .student-learn-choice-list--subject {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .student-learn {
        padding: 22px 0 38px;
    }

    .student-learn-header h1 {
        font-size: 30px;
    }

    .student-learn-breadcrumbs {
        margin-bottom: 20px;
    }

    .student-learn-programme-grid,
    .student-learn-choice-list--subject,
    .student-learn-resource-grid {
        grid-template-columns: 1fr;
    }

    .student-learn-programme-grid,
    .student-learn-choice-list {
        gap: 18px;
    }

    .student-learn-programme,
    .student-learn-choice {
        min-height: 0;
        padding: 20px;
    }

    .student-learn-programme__copy strong,
    .student-learn-choice__copy strong {
        font-size: 20px;
    }

    .student-learn-overview__contents ol {
        columns: 1;
    }

    .student-learn-results__header {
        align-items: stretch;
        gap: 12px;
    }

    .student-learn-results__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .student-learn-refine {
        width: 100%;
    }

    .student-learn-chapters {
        padding: 0 20px;
    }

    .student-learn-chapter {
        padding: 24px 0;
    }

    .student-learn-chapter__header {
        gap: 16px;
    }

    .student-learn-chapter__index {
        width: 48px;
        height: 60px;
        font-size: 25px;
    }

    .student-learn-chapter h3 {
        font-size: 21px;
    }

    .student-learn-activity {
        gap: 16px;
    }

    .student-learn-activity__copy strong {
        font-size: 14px;
    }

    .student-learn-resource {
        min-height: 0;
    }

    .student-learn-empty {
        padding: 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .student-learn-empty img {
        width: 72px;
        height: 72px;
    }

    .student-learn-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .student-learn-pagination__count {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .student-learn-pagination__next {
        grid-column: 2;
    }
}

@media (max-width: 420px) {
    .student-learn-resource__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .student-learn-resource__action,
    .student-learn-empty .btn {
        width: 100%;
        justify-content: center;
    }

    .student-learn-pagination .btn,
    .student-learn-pagination__disabled {
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
        justify-content: center;
    }
}

@supports not (background: color-mix(in srgb, white 50%, transparent)) {
    .student-learn-empty {
        background: var(--secondary_background);
    }
}
