:root {
    --blue: #0064ad;
    --orange: #f4771b;
    --tint: #e3f1ff;
    --line: #c3b8ae;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: #111;
    background: #fff;
    font: 16px/1.35 'Inter', Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

h1, h2, h3, p {
    margin: 0;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 18px;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 14px;
    transform: translateY(-120%);
}

.skip-link:focus {
    transform: none;
}

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

.account-hero {
    padding-top: 72px;
}

.brand-ribbon {
    display: flex;
    height: 38px;
    gap: 8px;
    overflow: hidden;
    padding-right: 15px;
    margin-bottom: 20px;
}

.brand-ribbon > span {
    flex: 1;
    background: var(--blue);
    clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%);
    margin-right: -16px;
}

.brand-ribbon i {
    width: 16px;
    flex-shrink: 0;
    transform: skew(-43deg);
    background: var(--blue);
}

.brand-ribbon i:nth-of-type(n+3) {
    background: #009bdb;
}

.brand-ribbon i:nth-of-type(n+5) {
    background: #9ba8ae;
}

.brand-ribbon i:nth-last-child(-n+2) {
    background: var(--orange);
}

.profile-grid {
    display: grid;
    grid-template-columns:2.05fr 1fr;
    gap: 16px;
}

.profile-card, .score-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    min-width: 0;
}

.profile-card {
    display: flex;
    flex-direction: column;
}

.profile-card .eyebrow {
    margin-bottom: 22px;
}

.profile-person {
    display: flex;
    gap: 50px;
    align-items: center;
    padding-left: 16px;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dadada;
    font-size: 26px;
}

.profile-person h1 {
    font-size: 26px;
    line-height: 1.2;
    color: var(--blue);
    margin-bottom: 4px;
}

.profile-person h1 a {
    text-decoration: none;
}

.profile-person h1 a:hover {
    text-decoration: underline;
}

.profile-person p {
    font-size: 14px;
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    margin-top: auto;
    padding-top: 14px;
}

.profile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 40px;
    padding: 8px 24px;
    border: 1px solid var(--blue);
    border-radius: 99px;
    background: #fff;
    color: var(--blue);
    font-size: 15px;
    text-decoration: none;
}

.profile-logout:hover {
    background: var(--blue);
    color: #fff;
}

.profile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 40px;
    padding: 9px 24px;
    border: 0;
    border-radius: 99px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
}

.profile-login:hover {
    background: #004d87;
}

.score-card {
    background: var(--tint);
    display: flex;
    flex-direction: column;
}

.score-card .eyebrow {
    margin-bottom: 12px;
}

.score-card > strong {
    color: var(--orange);
    font-size: 50px;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 12px;
}

.progress {
    height: 19px;
    background: #fff;
    border-radius: 99px;
    overflow: hidden;
}

.progress span {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.score-card > p:last-child {
    margin-top: 14px;
    font-size: 15px;
}

.summary-grid {
    display: grid;
    grid-template-columns:1fr 1fr 1fr 3.2fr;
    gap: 16px;
    margin-top: 20px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 142px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.summary-card > strong {
    color: var(--blue);
    font-size: 27px;
    line-height: 1.2;
}

.summary-card small {
    margin-top: auto;
    font-size: 14px;
}

.summary-next {
    justify-content: space-between;
}

.summary-next a {
    color: var(--blue);
    text-decoration: none;
}

.summary-next a small {
    display: block;
    margin-bottom: 4px;
    color: var(--orange);
    font-size: 16px;
    font-weight: 700;
}

.summary-next a strong {
    font-size: 19px;
    line-height: 1.2;
    display: block;
}

.summary-next a:hover strong {
    text-decoration: underline;
}

.materials-heading {
    padding-top: 48px;
}

.slash-heading {
    position: relative;
    padding-left: 86px;
    color: var(--blue);
    text-transform: uppercase;
    font-size: 28px;
    line-height: 1.2;
}

.slash-heading::before {
    content: '';
    position: absolute;
    left: 18px;
    top: -2px;
    width: 52px;
    height: 36px;
    background: url('../assets/images/b-orange-new.png') center / contain no-repeat;
}

.materials-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid #999;
    margin-top: 38px;
    padding: 24px 0 30px;
}

.material-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 40px;
    padding: 9px 22px;
    background: var(--tint);
    border: 0;
    border-radius: 99px;
    font-size: 14px;
    color: #222;
    transition: background-color .22s ease, color .22s ease;
}

.filter-button.is-active {
    background: var(--blue);
    color: #fff;
}

.materials-toolbar > p {
    font-size: 14px;
    color: #777;
}

.materials-band {
    background: var(--tint);
    padding: 30px 0 40px;
}

.material-list {
    display: grid;
    gap: 16px;
}

.material-row {
    display: grid;
    grid-template-columns:90px minmax(0, 1fr) 155px 175px;
    align-items: center;
    gap: 30px;
    padding: 16px 26px;
    min-height: 130px;
    border: 1px solid #aaa;
    border-radius: 9px;
    background: #f4faff;
}

.material-index {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--orange);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}

.material-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    margin-bottom: 6px;
}

.material-copy h3 {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 400;
    margin-bottom: 6px;
}

.material-copy p {
    font-size: 14px;
    line-height: 1.3;
}

.material-points {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.material-points strong {
    color: var(--orange);
    font-weight: 400;
    font-size: 23px;
    line-height: 1.1;
}

.material-state {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 14px;
    text-align: center;
}

.status-badge {
    display: block;
    border: 1px solid #6ba9d6;
    border-radius: 99px;
    min-height: 36px;
    padding: 8px 10px;
    background: #fff;
}

.material-link {
    min-height: 28px;
    text-decoration: underline;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    min-height: 38px;
    padding: 9px 18px;
    border-radius: 99px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.pill:hover {
    background: #004d87;
}

.history-section {
    padding: 48px 0;
    background: var(--orange);
    color: #fff;
    margin-bottom: 72px;
}

.history-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 48px;
}

.history-section h2 {
    color: #fff;
}

.history-section .slash-heading::before {
    background-image: url('../assets/images/b-blue.png');
}

.history-description {
    margin-top: 44px;
    max-width: 600px;
    font-size: 16px;
}

.history-card {
    background: var(--tint);
    color: #111;
    border-radius: 8px;
    padding: 10px 28px;
    min-width: 0;
}

.history-card table {
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
}

.history-card td, .history-card th {
    text-align: left;
    font-weight: 400;
    padding: 12px 0;
    vertical-align: top;
    border-bottom: 1px solid #bbb;
}

.history-card td:first-child {
    white-space: nowrap;
    padding-right: 22px;
}

.history-card td:last-child {
    text-align: right;
    white-space: nowrap;
    padding-left: 22px;
}

.history-card tfoot td, .history-card tfoot th {
    border: 0;
}

@media (max-width: 1300px) {
    .material-row {
        grid-template-columns:64px minmax(0, 1fr) 112px 156px;
        gap: 18px;
        padding: 16px 20px;
    }

    .profile-person {
        gap: 28px;
        padding-left: 0;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }

    .profile-person h1 {
        font-size: 23px;
    }

    .summary-grid {
        grid-template-columns:1fr 1fr 1fr 2.7fr;
        gap: 12px;
    }

    .summary-card > span {
        font-size: 14px;
    }

    .materials-toolbar {
        flex-wrap: wrap;
    }

    .history-grid {
        gap: 28px;
    }

    .slash-heading {
        font-size: 26px;
        padding-left: 86px;
    }
}

@media (max-width: 1100px) {
    .account-hero {
        padding-top: 48px;
    }

    .history-card {
        padding-inline: 20px;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 132px;
    }

    body {
        font-size: 15px;
    }

    .account-hero {
        padding-top: 28px;
    }

    .brand-ribbon {
        height: 28px;
        gap: 6px;
        margin-bottom: 18px;
    }

    .brand-ribbon > span {
        clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
        margin-right: -12px;
    }

    .brand-ribbon i {
        width: 10px;
    }

    .profile-grid {
        grid-template-columns:1fr;
        gap: 14px;
    }

    .profile-person {
        gap: 18px;
    }

    .avatar {
        width: 66px;
        height: 66px;
        font-size: 22px;
    }

    .profile-person h1 {
        font-size: 22px;
    }

    .profile-person p {
        font-size: 13px;
    }

    .profile-actions {
        justify-content: flex-start;
        margin-top: 18px;
        padding-top: 0;
    }

    .profile-logout {
        min-height: 44px;
    }

    .eyebrow {
        font-size: 14px;
    }

    .profile-card, .score-card {
        padding: 20px;
    }

    .score-card > strong {
        font-size: 48px;
    }

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

    .summary-card {
        min-height: 132px;
    }

    .summary-grid > :nth-child(3) {
        grid-column: 1/-1;
        display: grid;
        grid-template-columns:1fr auto;
        align-items: center;
        min-height: 100px;
    }

    .summary-grid > :nth-child(3) strong {
        grid-column: 2;
        grid-row: 1/3;
        font-size: 34px;
    }

    .summary-next {
        grid-column: 1/-1;
        min-height: 124px;
    }

    .materials-heading {
        padding-top: 36px;
    }

    .slash-heading {
        font-size: 25px;
        padding-left: 58px;
    }

    .slash-heading::before {
        width: 35px;
        height: 29px;
        left: 12px;
        top: 0;
    }

    .materials-toolbar {
        margin-top: 26px;
        padding: 20px 0 24px;
        gap: 18px;
    }

    .material-filters {
        gap: 8px;
    }

    .filter-button {
        min-height: 44px;
        padding: 10px 14px;
        gap: 8px;
        font-size: 13px;
    }

    .materials-toolbar > p {
        font-size: 13px;
    }

    .materials-toolbar br {
        display: none;
    }

    .materials-band {
        padding: 24px 0;
    }

    .material-row {
        grid-template-columns:40px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 16px;
        align-items: start;
    }

    .material-index {
        width: 40px;
        height: 44px;
        font-size: 28px;
    }

    .material-meta {
        flex-wrap: wrap;
        gap: 4px 12px;
        font-size: 11px;
    }

    .material-copy h3 {
        font-size: 17px;
        line-height: 1.3;
    }

    .material-copy p {
        font-size: 13px;
    }

    .material-points {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px;
        font-size: 12px;
    }

    .material-points strong {
        font-size: 22px;
    }

    .material-state {
        grid-column: 1/-1;
        border-top: 1px solid #d7e2eb;
        padding-top: 14px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-size: 12px;
    }

    .status-badge, .material-state .pill {
        flex: 1;
    }

    .material-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        flex: 1;
    }

    .status-badge {
        padding: 12px 8px;
        min-height: 44px;
    }

    .pill {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .history-section {
        padding: 36px 0;
        margin-bottom: 36px;
    }

    .history-grid {
        grid-template-columns:1fr;
        gap: 28px;
    }

    .history-description {
        margin-top: 28px;
        font-size: 15px;
    }

    .history-card {
        padding: 8px 16px;
    }

    .history-card table {
        font-size: 13px;
    }

    .history-card td:first-child {
        padding-right: 12px;
    }

    .history-card td:last-child {
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .filter-button {
        transition: none;
    }
}

