/* Exam page chrome — schedule viewer kept; surrounding UI redesigned */

body.exam-page {
    background: #f3f1ea;
    color: #1c1c1c;
}

.exam-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 24px 72px;
}

/* Programme tabs */
.exam-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid #e6e4de;
    border-radius: 8px;
    overflow: hidden;
}

.exam-tab {
    appearance: none;
    border: 0;
    border-right: 1px solid #e6e4de;
    background: transparent;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    color: #5f5f5f;
    transition: background 0.15s ease, color 0.15s ease;
}

.exam-tab:last-child {
    border-right: 0;
}

.exam-tab em {
    font-style: normal;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 550;
    letter-spacing: -0.03em;
    color: #cfc9bd;
    line-height: 1;
}

.exam-tab strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #1c1c1c;
}

.exam-tab small {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #8a8a8a;
}

.exam-tab:hover {
    background: #fafaf8;
}

.exam-tab.is-on {
    background: #1c1c1c;
    color: #fff;
}

.exam-tab.is-on em {
    color: #ff8a90;
}

.exam-tab.is-on strong {
    color: #fff;
}

.exam-tab.is-on small {
    color: rgba(255, 255, 255, 0.65);
}

.exam-panel {
    display: none;
}

.exam-panel.is-on {
    display: block;
}

/* Schedule viewer (kept) */
.exam-viewer-wrap {
    background: #fff;
    border: 1px solid #e6e4de;
    border-radius: 8px;
    overflow: hidden;
}

.exam-viewer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #eeebe4;
}

.exam-viewer-label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #d30a14;
}

.exam-viewer-bar h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.2;
}

.exam-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    background: #d30a14;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.exam-download:hover {
    background: #b00810;
    color: #fff;
}

.exam-viewer {
    background: #e8e6e0;
}

.exam-viewer iframe {
    width: 100%;
    height: 820px;
    min-height: 820px;
    border: 0;
    display: block;
    background: #e8e6e0;
}

/* Supporting papers — list redesign */
.exam-papers {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.4fr);
    gap: 24px 32px;
    align-items: start;
}

.exam-papers-head h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.exam-papers-head p {
    margin: 0;
    font-size: 0.95rem;
    color: #5f5f5f;
    max-width: 18em;
}

.exam-papers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e6e4de;
    border-radius: 8px;
    overflow: hidden;
}

.exam-papers-list li + li {
    border-top: 1px solid #eeebe4;
}

.exam-papers-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
}

.exam-papers-list a:hover {
    background: #fafaf8;
}

.exam-papers-list a:hover .exam-papers-go {
    background: #d30a14;
    color: #fff;
}

.exam-papers-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fdecea;
    color: #d30a14;
    font-size: 0.82rem;
    font-weight: 700;
}

.exam-papers-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.exam-papers-copy strong {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: 0;
}

.exam-papers-copy span {
    font-size: 0.84rem;
    color: #8a8a8a;
}

.exam-papers-go {
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f3f1ea;
    color: #1c1c1c;
    border-radius: 4px;
}

/* Archive strip */
.exam-archive {
    margin-top: 36px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px dashed #cfc9bd;
    border-radius: 8px;
}

.exam-archive span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d30a14;
}

.exam-archive strong {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 650;
}

.exam-archive a {
    display: inline-flex;
    padding: 11px 16px;
    background: #1c1c1c;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.exam-archive a:hover {
    background: #d30a14;
}

@media (max-width: 820px) {
    .exam-papers {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

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

    .exam-tab {
        border-right: 0;
        border-bottom: 1px solid #e6e4de;
    }

    .exam-tab:last-child {
        border-bottom: 0;
    }

    .exam-viewer-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .exam-viewer iframe {
        min-height: 560px;
        height: 560px;
    }
}

@media (max-width: 560px) {
    .exam-main {
        padding-left: 20px;
        padding-right: 20px;
    }
}
