/* ==========================================================================
   EXAMINATION CELL
   ========================================================================== */

.exam-anchor { scroll-margin-top: 110px; }

/* Hero */
.exam-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--ink); color: var(--cream);
    padding: 190px var(--gutter) 104px;
    display: flex; gap: 64px; align-items: flex-end;
}
.exam-hero__bg { position: absolute; inset: 0; z-index: -1; }
.exam-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .22; }
.exam-hero__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.exam-hero__text .serif { color: var(--ochre); }
.exam-hero__text .lead { color: rgba(245, 241, 232, .78); }
.exam-hero__links {
    width: 400px; flex: none; padding: 20px; border-radius: 28px;
    background: rgba(245, 241, 232, .08); border: 1px solid rgba(245, 241, 232, .16);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; flex-direction: column; gap: 10px;
}
.exam-hero__links .overline { color: var(--ochre); }

/* University link rows */
.uni-link {
    display: flex; gap: 14px; align-items: center; color: var(--ink);
    padding: 12px 12px 12px 16px; border-radius: 18px;
    transition: transform .25s var(--ease), filter .25s var(--ease);
}
.uni-link:hover { transform: translateY(-2px); filter: brightness(1.04); }
.uni-link__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uni-link__text strong { font-size: 16px; font-weight: 600; line-height: 1.2; }
.uni-link__text span { font-size: 13px; line-height: 1.45; color: rgba(18, 19, 16, .7); }
.uni-link__disc { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--ochre); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.uni-link__disc .icon { width: 15px; height: 15px; }
.uni-link:hover .uni-link__disc { transform: rotate(45deg); }
.uni-link--ochre { background: var(--ochre); }
.uni-link--terra { background: var(--terracotta-soft); }
.uni-link--sage { background: var(--sage-soft); }

/* Section tabs */
.exam-tabs { background: var(--cream); padding: 40px var(--gutter) 0; }
.exam-tabs .filter-tabs { max-width: 1200px; margin: 0 auto; }

/* Heads */
.exam-head { display: flex; gap: 80px; align-items: flex-end; margin-bottom: 48px; }
.exam-head__title { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; flex: 0 1 640px; min-width: 0; }
.exam-head--split > p { flex: 1; min-width: 0; }
.exam-guidelines .exam-head > p { color: rgba(245, 241, 232, .78); }

/* About */
.exam-about { padding: 72px var(--gutter) 128px; }
.exam-about__row { display: flex; gap: 64px; align-items: center; }
.exam-about__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.exam-about__visual { position: relative; width: 480px; height: 440px; flex: none; }
.exam-about__visual img { position: absolute; object-fit: cover; object-position: center; }
.exam-about__a { left: 0; top: 0; width: 480px; height: 308px; border-radius: 32px; }
.exam-about__b { left: 272px; top: 220px; width: 192px; height: 220px; border-radius: 26px; border: 8px solid var(--cream); }

/* Functions */
.exam-functions { background: var(--paper); border-radius: 48px 48px 0 0; padding: 128px var(--gutter); }
.fn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fn-item { background: var(--cream); border-radius: 22px; padding: 18px 22px 18px 18px; min-height: 82px; display: flex; gap: 16px; align-items: center; }
.fn-disc { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 15px; font-weight: 500; line-height: 1; }
.fn-disc--ink { background: var(--ink); color: var(--ochre); }
.fn-disc--ochre { background: var(--ochre); }
.fn-disc--sage { background: var(--sage-soft); }
.fn-disc--terra { background: var(--terracotta-soft); }

/* Organisational structure */
.exam-structure { background: var(--ink); color: var(--cream); padding: 128px var(--gutter); }
.exam-leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.exam-lead { border-radius: 30px; padding: 22px; display: flex; gap: 18px; align-items: center; color: var(--ink); }
.exam-lead > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.exam-lead--ochre { background: var(--ochre); }
.exam-lead--cream { background: var(--cream); }
.exam-lead__dept { color: rgba(18, 19, 16, .7); }
.exam-initials {
    width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: #1f201b; color: var(--cream); font-size: 15px; font-weight: 500; line-height: 1;
}
.exam-initials--lg {
    width: 64px; height: 64px; background: var(--ink); color: var(--ochre);
    font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.3px;
}
.exam-members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.exam-member { background: var(--ink-3); border-radius: 22px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.exam-member > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.exam-member__name { font-size: 16px; font-weight: 600; line-height: 1.2; }
.exam-member .caption { color: rgba(245, 241, 232, .6); }

/* Notices */
.exam-notices { padding: 128px var(--gutter); }
.exam-notices__row { display: flex; gap: 24px; align-items: flex-start; }
.notice-board { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.notice-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.notice-row {
    display: flex; gap: 16px; align-items: center; background: var(--paper);
    border-radius: 20px; padding: 14px 12px 14px 16px;
}
.notice-row--head {
    background: var(--ink); color: rgba(245, 241, 232, .75); border-radius: 16px; padding: 12px 12px 12px 16px;
    font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 1.4px; text-transform: uppercase;
}
.notice-row__date { width: 120px; flex: none; }
.notice-row__title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.notice-row--head .notice-row__title { font-size: 13px; color: inherit; }
.date-pill { display: inline-block; background: var(--cream-2); border-radius: 14px; padding: 8px 12px; font-size: 13px; line-height: 1.45; color: var(--muted); white-space: nowrap; }
.pdf-pill {
    display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--cream);
    border-radius: 999px; padding: 8px 14px 8px 12px; font-size: 15px; font-weight: 500; line-height: 1.3;
    transition: background-color .2s;
}
.pdf-pill .icon { width: 14px; height: 14px; color: var(--ochre); }
.pdf-pill:hover { background: var(--ink-3); }
.uni-card { width: 440px; flex: none; background: var(--ink); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.uni-card .uni-link { width: 100%; padding: 14px 12px 14px 18px; border-radius: 20px; }

/* Rank holders */
.exam-ranks { padding: 0 var(--gutter) 128px; }
.rank-table-wrap { background: var(--paper); border-radius: 24px; overflow: hidden; overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.rank-table th {
    background: var(--ink); color: rgba(245, 241, 232, .75); text-align: left;
    font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 1.4px; text-transform: uppercase;
    padding: 14px 8px;
}
.rank-table td { padding: 16px 8px; font-size: 15px; line-height: 1.55; color: var(--muted); vertical-align: middle; }
.rank-table th:first-child, .rank-table td:first-child { padding-left: 24px; }
.rank-table th:last-child, .rank-table td:last-child { padding-right: 24px; }
.rank-table tbody tr:nth-child(even) { background: var(--cream); }
.rank-table .col-no { width: 72px; color: var(--ink); }
.rank-table th.col-no { color: rgba(245, 241, 232, .75); }
.rank-table .col-prog { width: 256px; }
.rank-table .col-batch { width: 156px; }
.rank-table .col-rank { width: 128px; }
.rank-name { font-size: 16px !important; font-weight: 600; line-height: 1.2 !important; color: var(--ink); }
.rank-student { display: flex; align-items: center; gap: 14px; }
.rank-student__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ochre); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); flex-shrink: 0; background: var(--cream); }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: 0.3px; }
.rank-badge--top { background: var(--ochre); color: var(--ink); box-shadow: 0 2px 6px rgba(229, 169, 59, 0.3); }
.rank-badge--honor { background: rgba(30, 41, 38, 0.08); color: var(--ink); border: 1px solid rgba(30, 41, 38, 0.16); }

/* Guidelines */
.exam-guidelines { background: var(--ink); color: var(--cream); border-radius: 48px 48px 0 0; padding: 128px var(--gutter); }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-item { background: var(--ink-3); border-radius: 24px; padding: 22px; min-height: 136px; display: flex; flex-direction: column; gap: 14px; }
.guide-item .body-s { color: rgba(245, 241, 232, .88); }
.guide-disc { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ochre); color: var(--ink); font-size: 13px; line-height: 1; }
.guide-item--hi { background: var(--terracotta-soft); }
.guide-item--hi .body-s { color: var(--ink); }
.guide-item--hi .guide-disc { background: var(--ink); color: var(--cream); }

/* Contact */
.exam-contact { padding: 96px var(--gutter); }
.exam-contact__card { background: var(--ochre); border-radius: 40px; padding: 48px 56px; display: flex; gap: 48px; align-items: center; }
.exam-contact__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.exam-contact__college { font-size: 16px; font-weight: 600; line-height: 1.2; }
.exam-contact__details { width: 520px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.detail { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 20px; padding: 14px 16px 14px 14px; }
.detail > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.detail .overline { color: var(--muted); }
.detail__disc { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--ochre); display: grid; place-items: center; flex: none; }
.detail__disc .icon { width: 18px; height: 18px; }
.detail__value { font-size: 16px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.detail__value--muted { color: var(--muted); }
a.detail:hover .detail__value { text-decoration: underline; }

/* Responsive */
@media (max-width: 1200px) {
    .exam-hero { flex-direction: column; align-items: flex-start; }
    .exam-notices__row { flex-direction: column; }
    .uni-card { width: 100%; }
    .exam-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .exam-contact__card { flex-direction: column; align-items: stretch; }
    .exam-contact__details { width: 100%; }
}
@media (max-width: 1080px) {
    .exam-about__row { flex-direction: column; align-items: flex-start; }
    .exam-head { flex-direction: column; align-items: flex-start; gap: 20px; }
    .exam-head__title { flex: none; }
    .exam-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .fn-grid, .guide-grid, .exam-leads { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .exam-hero { padding-top: 140px; padding-bottom: 64px; gap: 40px; }
    .exam-hero__links { width: 100%; }
    .exam-tabs { padding-top: 32px; }
    .exam-tabs .filter-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
    .exam-about { padding-top: 56px; padding-bottom: 80px; }
    .exam-about__visual { width: 100%; height: auto; aspect-ratio: 480 / 440; }
    .exam-about__a { width: 100%; height: 70%; }
    .exam-about__b { left: 56.7%; top: 50%; width: 40%; height: 50%; }
    .exam-functions, .exam-structure, .exam-notices, .exam-guidelines { padding-top: 80px; padding-bottom: 80px; }
    .exam-functions, .exam-guidelines { border-radius: 32px 32px 0 0; }
    .exam-ranks { padding-bottom: 80px; }
    .exam-contact { padding-top: 64px; padding-bottom: 64px; }
    .exam-head { margin-bottom: 36px; }
    .exam-members { grid-template-columns: 1fr; }
    .exam-lead { padding: 18px; gap: 14px; }
    .exam-initials--lg { width: 52px; height: 52px; font-size: 18px; }
    .uni-card { padding: 20px; border-radius: 28px; }
    .notice-row { flex-wrap: wrap; gap: 10px 12px; }
    .notice-row--head { display: none; }
    .notice-row__date { width: auto; }
    .notice-row__title { flex-basis: 100%; order: 3; }
    .notice-row > span:last-child { margin-left: auto; }
    .exam-contact__card { padding: 32px 24px; border-radius: 32px; }
}
@media (max-width: 640px) {
    .exam-hero__text { width: 100%; }
    .exam-hero .chip { white-space: normal; max-width: 100%; }
    .exam-hero .display { font-size: clamp(40px, 12.5vw, 64px); }
}
