/* Exam project refinements use the prototype layout and the current topic blocks. */
.exam-live-page .exam-schedule-days {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 14px;
}

.exam-schedule-days .topic-schedule-exam-main + .topic-schedule-exam-main {
    padding-top: 14px;
    border-top: 1px dashed #e4e9f0;
}

.exam-live-page .topic-schedule-item--exam {
    align-items: flex-start;
}

.exam-live-page .topic-schedule-subjects b,
.exam-live-page .topic-schedule-subjects em {
    white-space: nowrap;
}

.exam-live-page .topic-schedule-subjects i {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.exam-live-page .topic-schedule-subjects span {
    grid-template-columns: 96px minmax(0, 1fr) auto;
}

.exam-live-page .pc-exam-position-side.sel-tools {
    display: grid;
    margin: 0;
    align-content: start;
}

.exam-live-page .pc-exam-position-side label,
.exam-live-page .pc-exam-position-side select {
    width: 100%;
    min-width: 0;
    margin: 0;
    height: 38px;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
}

.exam-live-page .pc-exam-position-side select {
    padding: 0 10px;
    background: #fff;
    color: #5e6d81;
}

.exam-live-page .pc-exam-position-side input,
.exam-live-page .m-exam-position-actions input {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--brand);
}

.exam-live-page .pc-exam-position-side label:focus-within,
.exam-live-page .m-exam-position-actions label:focus-within {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.exam-live-page .pc-exam-position-card h3,
.exam-live-page .pc-exam-code-tag,
.exam-live-page .pc-exam-position-facts b,
.exam-live-page .pc-exam-position-major p,
.exam-live-page .m-exam-position-code,
.exam-live-page .m-exam-position-title-row > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.exam-live-page .pc-exam-position-facts {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.exam-live-page .pc-exam-panel-title > div {
    flex-wrap: wrap;
}

.exam-live-page .pc-topic-inline-search {
    margin: 0 0 16px;
}

.exam-live-page .pc-topic-inline-search input {
    min-width: 0;
    font-size: 13px;
}

.exam-live-page .pc-topic-inline-search button {
    flex-shrink: 0;
    white-space: nowrap;
}

.exam-live-page .pc-topic-announcement-list > a > span {
    margin-left: auto;
    color: var(--brand);
    font-size: 12px;
    white-space: nowrap;
}

.exam-rank-scale {
    margin: 12px 0 0;
    color: #8b96a6;
    font-size: 11px;
    line-height: 1.5;
}

.exam-live-page [data-exam-announcement-empty][hidden] {
    display: none;
}

body.mobile.exam-live-page .m-exam-position-title-row:not(:has(.m-exam-position-match)) {
    grid-template-columns: minmax(0, 1fr);
}

body.mobile.exam-live-page .m-exam-position-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
}

body.mobile.exam-live-page .m-exam-ratio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
    height: 36px;
    padding: 0 7px;
    border: 1px solid #ffead2;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1;
}

body.mobile.exam-live-page .m-exam-ratio b {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

body.mobile.exam-live-page .m-exam-position-actions.sel-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    gap: 6px;
}

body.mobile.exam-live-page .m-exam-position-actions label,
body.mobile.exam-live-page .m-exam-position-actions select {
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    padding: 0 5px;
    border: 1px solid #e1e6ed;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

body.mobile.exam-live-page .m-exam-position-actions select {
    background: #fff;
    color: #5e6d81;
    text-align: center;
}

body.mobile.exam-live-page .m-exam-position-actions label {
    gap: 4px;
    cursor: pointer;
}

@media (max-width: 360px) {
    body.mobile.exam-live-page .m-exam-ratio {
        padding: 0 5px;
        font-size: 10px;
    }

    body.mobile.exam-live-page .m-exam-ratio b,
    body.mobile.exam-live-page .m-exam-position-actions label,
    body.mobile.exam-live-page .m-exam-position-actions select {
        font-size: 10px;
    }

    body.mobile.exam-live-page .m-exam-position-actions label {
        gap: 2px;
    }
}

body.mobile.exam-live-page .m-topic-panel-head {
    flex-wrap: wrap;
}

body.mobile.exam-live-page .m-topic-panel-head > span {
    min-width: 0;
    font-size: 11px;
    overflow-wrap: anywhere;
}

body.mobile.exam-live-page .m-exam-topic-hero h1 {
    font-size: 18px;
    line-height: 1.5;
}

body.mobile.exam-live-page .m-exam-topic-hero > p {
    font-size: 12px;
    line-height: 1.65;
}

body.mobile.exam-live-page .m-topic-stats .metric b {
    font-size: 19px;
    overflow-wrap: anywhere;
}

body.mobile.exam-live-page .m-exam-position-match span {
    font-size: 10px;
}

@media (max-width: 1100px) {
    .exam-live-page .pc-exam-position-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Use the prototype icon button while keeping a keyboard-operable checkbox. */
.exam-live-page label.js-compare {
    position: relative;
}

.exam-live-page .pc-exam-position-side input[data-sel-check],
.exam-live-page .m-exam-position-actions input[data-sel-check] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The selected icon follows the red active button instead of its idle blue palette. */
body.mobile.exam-live-page .m-exam-position-actions > .js-compare.is-on .ui-icon {
    background: #ffe4e8;
    color: var(--brand);
}
