.exam-hero {
    color: #fff;
    background: #0b3765;
    border-bottom: 5px solid var(--gold-500);
}

.exam-hero-inner,
.exam-team,
.exam-results {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.exam-hero-inner {
    padding-block: 53px 58px;
}

.exam-eyebrow {
    margin: 0 0 10px;
    color: var(--gold-500);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.exam-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.exam-hero-inner > p:last-child {
    max-width: 720px;
    margin: 16px 0 0;
    color: #d8e4ef;
    font-size: .78rem;
    line-height: 1.7;
}

.exam-team {
    padding-block: 58px 64px;
}

.exam-team-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 11px;
}

.exam-team-grid article {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    min-height: 128px;
    padding: 21px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue-600);
    box-shadow: var(--shadow-sm);
    gap: 16px;
}

.exam-team-grid article.lead {
    border-top-color: var(--red-500);
}

.exam-team-grid span,
.exam-team-grid strong {
    display: block;
}

.exam-team-grid span {
    color: var(--muted);
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.exam-team-grid strong {
    margin-top: 8px;
    color: var(--navy-900);
    font-size: .78rem;
    line-height: 1.5;
}

.exam-person-photo {
    display: grid;
    width: 72px;
    height: 88px;
    overflow: hidden;
    color: #fff;
    background: var(--navy-800);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 800;
    place-items: center;
}

.exam-person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.exam-results {
    padding: 58px 0 76px;
    border-top: 1px solid var(--line);
}

.exam-manage-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 13px;
    color: #fff;
    background: var(--navy-800);
    border-radius: 3px;
    font-size: .63rem;
    font-weight: 700;
    text-decoration: none;
}

.exam-empty {
    padding: 42px 25px;
    color: var(--muted);
    background: #f5f8fb;
    border: 1px dashed #bdc9d7;
    text-align: center;
}

.exam-empty strong {
    display: block;
    color: var(--navy-900);
    font-size: .82rem;
}

.exam-empty p {
    margin: 7px 0 0;
    font-size: .64rem;
}

.exam-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

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

.exam-table th,
.exam-table td {
    padding: 14px 13px;
    text-align: left;
    border-bottom: 1px solid #e0e7ef;
    vertical-align: top;
}

.exam-table th {
    color: #fff;
    background: var(--navy-800);
    font-size: .56rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.exam-table td {
    color: #40536a;
    font-size: .64rem;
}

.exam-table td strong,
.exam-table td small {
    display: block;
}

.exam-table td strong {
    color: var(--navy-900);
}

.exam-table td small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.5;
}

.exam-table td a {
    color: var(--blue-600);
    font-weight: 700;
}

.exam-open-link {
    display: inline-grid;
    width: 38px;
    height: 38px;
    color: #fff !important;
    background: var(--blue-600);
    border-radius: 5px;
    place-items: center;
    transition: background .18s ease, transform .18s ease;
}

.exam-open-link:hover,
.exam-open-link:focus-visible {
    background: var(--navy-900);
    outline: 3px solid rgba(29, 79, 145, .18);
    transform: translateY(-1px);
}

.exam-open-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

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

.exam-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.exam-row-actions a,
.exam-row-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 8px;
    border-radius: 3px;
    font: inherit;
    font-size: .55rem;
    font-weight: 700;
    text-decoration: none;
}

.exam-row-actions a {
    color: #fff !important;
    background: var(--blue-600);
}

.exam-row-actions button {
    color: #fff;
    cursor: pointer;
    background: var(--red-500);
    border: 0;
}

.exam-admin {
    width: min(820px, 100%);
    margin: 32px auto 0;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold-500);
    box-shadow: var(--shadow-sm);
}

.exam-login {
    width: min(420px, 100%);
    margin-inline: auto;
}

.exam-login h3,
.exam-admin-heading h3 {
    margin: 0 0 17px;
    color: var(--navy-900);
    font-size: 1rem;
}

.exam-login label,
.exam-add-form label {
    color: #45536a;
    font-size: .61rem;
    font-weight: 700;
}

.exam-login-row {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 7px;
    gap: 7px;
}

.exam-login input,
.exam-add-form input,
.exam-add-form select,
.exam-add-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #b9c6d4;
    border-radius: 3px;
    font: inherit;
    font-size: .68rem;
}

.exam-login button,
.exam-add-form > .exam-form-note button {
    min-height: 42px;
    padding: 9px 15px;
    color: #fff;
    cursor: pointer;
    background: var(--navy-800);
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-size: .65rem;
    font-weight: 700;
}

.exam-admin-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.exam-message {
    margin-bottom: 15px;
    padding: 10px 12px;
    color: #185943;
    background: #e7f7ef;
    border-left: 3px solid #2c9b72;
    font-size: .64rem;
}

.exam-message.error {
    color: #8f1c21;
    background: #fdebed;
    border-left-color: var(--red-500);
}

.exam-add-form {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr .75fr .55fr;
    gap: 10px;
}

.exam-add-form label {
    display: grid;
    align-content: start;
    gap: 6px;
}

.exam-add-form .full {
    grid-column: 1 / -1;
}

.exam-add-form textarea {
    resize: vertical;
}

.exam-form-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.exam-form-note span {
    color: var(--muted);
    font-size: .57rem;
}

.exam-form-note > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-form-note > div > a {
    color: var(--blue-600);
    font-size: .62rem;
    font-weight: 700;
    text-decoration: none;
}

.exam-admin-list {
    display: grid;
    margin-top: 23px;
    border-top: 1px solid var(--line);
}

.exam-admin-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    gap: 15px;
}

.exam-admin-list span strong,
.exam-admin-list span small {
    display: block;
}

.exam-admin-list span strong {
    color: var(--navy-900);
    font-size: .66rem;
}

.exam-admin-list span small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .56rem;
}

.exam-delete-button {
    padding: 7px 10px;
    color: #fff;
    cursor: pointer;
    background: var(--red-500);
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-size: .58rem;
    font-weight: 700;
}

@media (max-width: 850px) {
    .exam-team-grid {
        grid-template-columns: 1fr;
    }

    .exam-add-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .exam-hero-inner,
    .exam-team,
    .exam-results {
        width: min(100% - 28px, 1180px);
    }

    .exam-table-wrap {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .exam-table,
    .exam-table tbody,
    .exam-table tr,
    .exam-table td {
        display: block;
        width: 100%;
    }

    .exam-table thead {
        display: none;
    }

    .exam-table tr {
        margin-bottom: 10px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-top: 4px solid var(--navy-800);
    }

    .exam-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        padding: 8px 2px;
        border-bottom: 1px solid #edf1f5;
        gap: 9px;
    }

    .exam-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: .54rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .exam-admin {
        padding: 19px;
    }

    .exam-add-form,
    .exam-login-row {
        grid-template-columns: 1fr;
    }

    .exam-admin-heading,
    .exam-form-note {
        align-items: stretch;
        flex-direction: column;
    }
}
