/* ==========================================================================
   Ehtesham Law — page components (inner pages, forms, dashboard, auth)
   Builds on the tokens in el-2026.css.
   ========================================================================== */

/* ---------- Page hero ---------- */
.el-page-hero {
  position: relative; overflow: hidden; color: #c9d6e4; padding: 40px 0 44px;
  background: radial-gradient(800px 360px at 92% -30%, rgba(43, 128, 220, .38), transparent 60%), radial-gradient(500px 260px at -5% 120%, rgba(242, 165, 43, .14), transparent 60%), linear-gradient(180deg, var(--el-navy-900), var(--el-navy-950));
}
@media (min-width: 992px) { .el-page-hero { padding: 56px 0 64px; } }
.el-page-hero::after { content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 15%, transparent 65%); mask-image: radial-gradient(ellipse at 80% 20%, #000 15%, transparent 65%); }
.el-page-hero .el-container { position: relative; z-index: 1; }
.el-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13.5px; color: #8fa6bd; }
.el-crumbs a { color: #c9d6e4 !important; text-decoration: none !important; }
.el-crumbs a:hover { color: #fff !important; }
.el-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.el-page-hero h1 { font-family: var(--el-font-display) !important; color: #fff !important; font-weight: 600; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 12px; max-width: 860px; text-wrap: balance; }
.el-page-hero p { color: #b9c9da; font-size: clamp(15.5px, 1.6vw, 18px); max-width: 680px; margin: 0; }
.el-page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.el-page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: #c9d6e4; }
.el-page-hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.el-page-hero__meta i { color: var(--el-gold-400); }

/* ---------- Generic layout helpers ---------- */
.el-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .el-grid--2, .el-grid--3, .el-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .el-grid--3 { grid-template-columns: repeat(3, 1fr); } .el-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.el-panel { background: #fff; border: 1px solid var(--el-line); border-radius: var(--el-r-lg); padding: 24px; box-shadow: var(--el-shadow-sm); }
@media (min-width: 768px) { .el-panel { padding: 32px; } }
.el-panel--flush { padding: 0; overflow: hidden; }
.el-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.el-panel__head h2, .el-panel__head h3 { font-size: 18px !important; font-weight: 800; margin: 0; }
.el-muted { color: var(--el-muted) !important; }
.el-stack > * + * { margin-top: 20px; }
.el-two { display: grid; gap: 28px; align-items: start; }
@media (min-width: 992px) { .el-two { grid-template-columns: 1.6fr 1fr; gap: 40px; } .el-two--even { grid-template-columns: 1fr 1fr; } .el-two--side { grid-template-columns: 1fr 360px; } }
/* The side box (price / enrol) follows the page only when it sits beside the content (2 columns).
   On phones and tablets it is in the normal flow, otherwise it slides over the course details. */
@media (min-width: 992px) { .el-sticky { position: sticky; top: calc(var(--el-header-h) + 20px); } }

/* ---------- Alerts / badges ---------- */
.el-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 15px; border: 1px solid transparent; margin-bottom: 20px; }
.el-alert i { margin-top: 3px; }
.el-alert--info { background: var(--el-blue-50); color: #0f4e94; border-color: #d4e6fb; }
.el-alert--success { background: var(--el-green-50); color: #0d6b3c; border-color: #c4ead4; }
.el-alert--warn { background: var(--el-gold-50); color: #8a4f00; border-color: #f6dfb5; }
.el-alert--error { background: #fdecec; color: #9b1c1c; border-color: #f3c7c7; }
.el-alert a { font-weight: 700; color: inherit !important; text-decoration: underline !important; }
.el-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--el-bg); color: var(--el-body); white-space: nowrap; }
.el-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.el-status--ok { background: var(--el-green-50); color: var(--el-green-600); }
.el-status--wait { background: var(--el-gold-50); color: #9a5a00; }
.el-status--bad { background: #fdecec; color: var(--el-red-600); }
.el-status--info { background: var(--el-blue-50); color: var(--el-blue-600); }

/* ---------- Forms ---------- */
.el-form { display: grid; gap: 18px; }
.el-form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .el-form-row--2 { grid-template-columns: 1fr 1fr; } .el-form-row--3 { grid-template-columns: repeat(3, 1fr); } }
.el-field { display: grid; gap: 8px; min-width: 0; align-content: start; }   /* label sits right above its input even when the next field in the row is taller */
.el-label { margin: 0; font-weight: 700; font-size: 14px; color: var(--el-ink); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.el-label small { font-weight: 500; color: var(--el-muted); margin-left: auto; }
.el-label > a { margin-left: auto; }
.el-req { color: var(--el-red-600); }
.el-input, .el-select, .el-textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--el-line); background: #fff;
  font: 500 15.5px/1.4 var(--el-font); color: var(--el-ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.el-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236a7687' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.el-textarea { min-height: 110px; resize: vertical; }
.el-input:focus, .el-select:focus, .el-textarea:focus { outline: none; border-color: var(--el-blue-600); box-shadow: 0 0 0 4px rgba(22, 104, 196, .14); }
.el-input[readonly] { background: var(--el-bg); color: var(--el-muted); }
.el-input.is-invalid, .el-select.is-invalid, .el-textarea.is-invalid { border-color: var(--el-red-600); }
.el-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .12); }
.el-hint { font-size: 13px; color: var(--el-muted); }
.el-error { font-size: 13px; color: var(--el-red-600); font-weight: 600; min-height: 0; }
.el-error:empty { display: none; }
.el-input-group { position: relative; }
.el-input-group .el-input { padding-left: 52px; }
.el-input-group__pre { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 44px; display: grid; place-items: center; color: var(--el-muted); font-weight: 700; border-right: 1px solid var(--el-line); border-radius: 11px 0 0 11px; background: var(--el-bg); font-size: 14px; }
.el-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--el-muted); padding: 8px; cursor: pointer; }

.el-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.el-choice { position: relative; }
.el-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.el-choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--el-line); font-weight: 700; font-size: 14.5px; color: var(--el-body); background: #fff; transition: all .15s; }
.el-choice input:checked + span { border-color: var(--el-navy-800); background: var(--el-navy-800); color: #fff; }
.el-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(242, 165, 43, .45); }
.el-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--el-body); cursor: pointer; }
.el-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--el-navy-800); flex-shrink: 0; }

.el-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 170px; padding: 18px; border: 2px dashed #c9d3e0; border-radius: 16px; background: var(--el-bg-soft); cursor: pointer; transition: border-color .15s, background-color .15s; }
.el-drop:hover, .el-drop.is-drag { border-color: var(--el-blue-600); background: var(--el-blue-50); }
.el-drop.is-invalid { border-color: var(--el-red-600); background: #fff7f7; }
.el-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.el-drop__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--el-blue-600); font-size: 18px; box-shadow: var(--el-shadow-sm); }
.el-drop strong { color: var(--el-ink); font-size: 14.5px; }
.el-drop small { color: var(--el-muted); font-size: 12.5px; }
.el-drop img { max-height: 120px; max-width: 100%; border-radius: 10px; object-fit: contain; display: none; }
.el-drop.has-file img { display: block; }
.el-drop.has-file .el-drop__icon { display: none; }
.el-drop__name { font-size: 12.5px; color: var(--el-green-600); font-weight: 700; word-break: break-all; }

/* ---------- Wizard ---------- */
.el-wizard { background: #fff; border: 1px solid var(--el-line); border-radius: var(--el-r-lg); box-shadow: var(--el-shadow); overflow: hidden; }
.el-wizard__top { padding: 20px 20px 0; }
@media (min-width: 768px) { .el-wizard__top { padding: 28px 36px 0; } }
.el-stepper { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.el-stepper li { flex: 1; min-width: 0; }
.el-stepper button { width: 100%; border: 0; background: none; padding: 0 0 14px; text-align: left; cursor: default; color: var(--el-muted); font: 700 13px/1.25 var(--el-font); }
.el-stepper button::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-bottom: 8px; background: var(--el-bg); color: var(--el-muted); font-size: 12.5px; border: 1.5px solid var(--el-line); }
.el-stepper button span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-stepper button::after { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--el-line); margin-top: 12px; }
.el-stepper .is-done button { color: var(--el-ink); cursor: pointer; }
.el-stepper .is-done button::before { content: "✓"; background: var(--el-green-600); border-color: var(--el-green-600); color: #fff; }
.el-stepper .is-done button::after { background: var(--el-green-600); }
.el-stepper .is-current button { color: var(--el-ink); }
.el-stepper .is-current button::before { background: var(--el-navy-800); border-color: var(--el-navy-800); color: #fff; }
.el-stepper .is-current button::after { background: linear-gradient(90deg, var(--el-gold-500) 50%, var(--el-line) 50%); }
@media (max-width: 640px) { .el-stepper button span { display: none; } .el-stepper .is-current button span { display: block; } .el-stepper li.is-current { flex: 3; } }
.el-wizard__body { padding: 24px 20px; }
@media (min-width: 768px) { .el-wizard__body { padding: 28px 36px 32px; } }
.el-step-pane[hidden] { display: none; }
.el-step-pane h2 { font-size: 22px !important; font-weight: 800; margin: 0 0 4px; }
.el-step-pane > p.el-muted { margin: 0 0 22px; }
.el-wizard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--el-line); background: var(--el-bg-soft); position: sticky; bottom: 0; z-index: 2; }
@media (min-width: 768px) { .el-wizard__foot { padding: 18px 36px; } }
.el-wizard__save { font-size: 13px; color: var(--el-muted); display: none; }
@media (min-width: 640px) { .el-wizard__save { display: block; } }
.el-review { display: grid; gap: 14px; }
.el-review section { border: 1px solid var(--el-line); border-radius: 14px; padding: 16px 18px; }
.el-review header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.el-review h3 { font-size: 15px !important; font-weight: 800; margin: 0; }
.el-review button { border: 0; background: none; color: var(--el-blue-600); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.el-review dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; margin: 0; }
.el-review dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--el-muted); font-weight: 700; }
.el-review dd { margin: 0; color: var(--el-ink); font-weight: 600; word-break: break-word; }
.el-review__docs { display: flex; gap: 10px; flex-wrap: wrap; }
.el-review__docs img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--el-line); background: var(--el-bg); }
.el-fee { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--el-navy-900); color: #c9d6e4; }
.el-fee strong { color: #fff; font-size: 24px; font-family: var(--el-font-display); }
.el-done { text-align: center; padding: 24px 8px; }
.el-done__icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--el-green-50); color: var(--el-green-600); font-size: 32px; }
.el-done__icon--wait { background: var(--el-gold-50); color: #b26b00; }
.el-done h2 { font-family: var(--el-font-display) !important; font-weight: 600; font-size: 30px !important; }
.el-done__ref { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; background: var(--el-bg); font-weight: 700; color: var(--el-ink); margin: 6px 0 22px; }

/* Registration aside */
.el-aside-card { border-radius: var(--el-r-lg); padding: 24px; background: linear-gradient(170deg, var(--el-navy-800), var(--el-navy-950)); color: #c9d6e4; }
.el-aside-card h3 { color: #fff !important; font-size: 18px !important; font-weight: 800; margin: 0 0 14px; }
.el-aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14.5px; }
.el-aside-card li { display: flex; gap: 10px; }
.el-aside-card li i { color: var(--el-gold-400); margin-top: 4px; width: 16px; }
.el-aside-card hr { border-color: rgba(255,255,255,.12); margin: 18px 0; opacity: 1; }

/* ---------- Gate / empty states ---------- */
.el-gate { max-width: 640px; margin: 0 auto; text-align: center; }
.el-gate__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; background: var(--el-blue-50); color: var(--el-blue-600); }
.el-gate h2 { font-family: var(--el-font-display) !important; font-weight: 600; font-size: clamp(26px, 3.5vw, 36px) !important; margin: 0 0 10px; }
.el-gate p { color: var(--el-muted); font-size: 16.5px; }
.el-gate__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.el-empty { text-align: center; padding: 40px 16px; color: var(--el-muted); }
.el-empty i { font-size: 30px; color: #b7c3d1; display: block; margin-bottom: 10px; }

/* ---------- Auth ---------- */
.el-auth { display: grid; min-height: calc(100vh - 120px); background: var(--el-bg); }
@media (min-width: 992px) { .el-auth { grid-template-columns: 1fr 1fr; } }
.el-auth__side { display: none; position: relative; overflow: hidden; padding: 56px; color: #c9d6e4; background: radial-gradient(700px 400px at 90% 0%, rgba(43,128,220,.35), transparent 60%), linear-gradient(170deg, var(--el-navy-900), var(--el-navy-950)); }
@media (min-width: 992px) { .el-auth__side { display: flex; flex-direction: column; justify-content: center; } }
.el-auth__side h2 { font-family: var(--el-font-display) !important; color: #fff !important; font-weight: 600; font-size: 40px !important; line-height: 1.12; margin: 0 0 16px; max-width: 460px; }
.el-auth__side p { color: #a9bccf; max-width: 440px; font-size: 16.5px; }
.el-auth__side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.el-auth__side li { display: flex; gap: 12px; align-items: center; color: #dbe6f1; font-weight: 600; }
.el-auth__side li i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(242,165,43,.15); color: var(--el-gold-400); }
.el-auth__main { display: flex; align-items: center; justify-content: center; padding: 40px 20px 64px; }
.el-auth__card { width: 100%; max-width: 460px; }
.el-auth__card h1 { font-family: var(--el-font-display) !important; font-weight: 600; font-size: clamp(28px, 4vw, 36px) !important; margin: 0 0 6px; }
.el-auth__card > p { color: var(--el-muted); margin: 0 0 26px; }
.el-auth__alt { text-align: center; margin-top: 22px; color: var(--el-muted); font-size: 15px; }
.el-auth__alt a { font-weight: 700; }
.el-divider { display: flex; align-items: center; gap: 12px; color: var(--el-muted); font-size: 13px; margin: 6px 0; }
.el-divider::before, .el-divider::after { content: ""; flex: 1; height: 1px; background: var(--el-line); }
.el-pw-meter { height: 6px; border-radius: 6px; background: var(--el-line); overflow: hidden; }
.el-pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background-color .2s; }

/* ---------- Student dashboard ---------- */
.el-dash { background: var(--el-bg); min-height: 70vh; padding: 28px 0 72px; }
.el-dash__grid { display: grid; gap: 24px; }
@media (min-width: 992px) { .el-dash__grid { grid-template-columns: 260px 1fr; gap: 32px; align-items: start; } }
.el-dash__nav { background: #fff; border: 1px solid var(--el-line); border-radius: var(--el-r-lg); padding: 14px; }
@media (min-width: 992px) { .el-dash__nav { position: sticky; top: calc(var(--el-header-h) + 20px); } }
.el-dash__me { display: flex; gap: 12px; align-items: center; padding: 8px 8px 16px; border-bottom: 1px solid var(--el-line); margin-bottom: 8px; }
.el-dash__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--el-navy-800); color: #fff; font-weight: 800; }
.el-dash__me strong { display: block; color: var(--el-ink); font-size: 15px; line-height: 1.25; }
.el-dash__me span { color: var(--el-muted); font-size: 13px; word-break: break-all; }
.el-dash__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.el-dash__links a, .el-dash__links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--el-body) !important; text-decoration: none !important; border: 0; background: none; cursor: pointer; text-align: left; }
.el-dash__links i { width: 18px; text-align: center; color: var(--el-muted); }
.el-dash__links a:hover, .el-dash__links button:hover { background: var(--el-bg); color: var(--el-ink) !important; }
.el-dash__links a.is-active { background: var(--el-navy-800); color: #fff !important; }
.el-dash__links a.is-active i { color: var(--el-gold-400); }
.el-dash__help { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--el-green-50); font-size: 13.5px; color: #0d6b3c; }
.el-dash__help a { font-weight: 800; color: #0d6b3c !important; }
@media (max-width: 991.98px) {
  .el-dash__nav { padding: 8px; }
  .el-dash__me, .el-dash__help { display: none; }
  .el-dash__links { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .el-dash__links::-webkit-scrollbar { display: none; }
  .el-dash__links a, .el-dash__links button { white-space: nowrap; width: auto; padding: 10px 14px; }
}
.el-dash__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.el-dash__head h1 { font-family: var(--el-font-display) !important; font-weight: 600; font-size: clamp(26px, 3.4vw, 36px) !important; margin: 0 0 4px; }
.el-dash__head p { margin: 0; color: var(--el-muted); }
.el-kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .el-kpis { grid-template-columns: repeat(4, 1fr); } }
.el-kpi { background: #fff; border: 1px solid var(--el-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; color: inherit !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
a.el-kpi:hover { border-color: #c4d0de; transform: translateY(-2px); }
.el-kpi i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--el-blue-50); color: var(--el-blue-600); }
.el-kpi strong { font-size: 22px; color: var(--el-ink); line-height: 1.15; }
.el-kpi span { font-size: 13px; color: var(--el-muted); font-weight: 600; }
.el-journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 768px) { .el-journey { grid-template-columns: repeat(5, 1fr); } }
.el-journey li { position: relative; padding: 0 0 18px 40px; }
@media (min-width: 768px) { .el-journey li { padding: 40px 8px 0 0; } }
.el-journey li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--el-line); }
@media (min-width: 768px) { .el-journey li::before { left: 28px; right: 0; top: 13px; bottom: auto; width: auto; height: 2px; } }
.el-journey li:last-child::before { display: none; }
.el-journey__dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #fff; border: 2px solid var(--el-line); color: var(--el-muted); z-index: 1; }
.el-journey .is-done::before { background: var(--el-green-600); }
.el-journey .is-done .el-journey__dot { background: var(--el-green-600); border-color: var(--el-green-600); color: #fff; }
.el-journey .is-current .el-journey__dot { border-color: var(--el-gold-500); background: var(--el-gold-500); color: var(--el-navy-950); box-shadow: 0 0 0 5px rgba(242,165,43,.2); }
.el-journey strong { display: block; font-size: 14.5px; color: var(--el-ink); }
.el-journey span { font-size: 13px; color: var(--el-muted); }
.el-reg-card { display: grid; gap: 18px; }
@media (min-width: 768px) { .el-reg-card { grid-template-columns: 1fr auto; align-items: center; } }
.el-reg-card__no { font-family: var(--el-font-display); font-size: 26px; color: var(--el-ink); font-weight: 600; letter-spacing: .02em; }
.el-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 22px; margin: 0; }
.el-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--el-muted); font-weight: 700; margin-bottom: 2px; }
.el-dl dd { margin: 0; color: var(--el-ink); font-weight: 600; word-break: break-word; }
.el-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.el-docs figure { margin: 0; border: 1px solid var(--el-line); border-radius: 14px; overflow: hidden; background: var(--el-bg); }
.el-docs img { width: 100%; height: 130px; object-fit: contain; display: block; }
.el-docs figcaption { padding: 8px 10px; font-size: 12.5px; font-weight: 700; color: var(--el-ink); background: #fff; }
.el-list { list-style: none; margin: 0; padding: 0; }
.el-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--el-line); }
.el-list li:first-child { border-top: 0; }
.el-list__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--el-blue-50); color: var(--el-blue-600); }
.el-list__main { flex: 1; min-width: 0; }
.el-list__main strong { display: block; color: var(--el-ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-list__main span { color: var(--el-muted); font-size: 13px; }
.el-table-wrap { overflow-x: auto; }
.el-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.el-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--el-muted); padding: 10px 12px; border-bottom: 1px solid var(--el-line); white-space: nowrap; }
.el-table td { padding: 14px 12px; border-bottom: 1px solid var(--el-line); color: var(--el-ink); vertical-align: middle; }
.el-table tr:last-child td { border-bottom: 0; }
.el-avatar-up { display: flex; align-items: center; gap: 16px; }
.el-avatar-up img, .el-avatar-up .el-dash__avatar { width: 72px; height: 72px; font-size: 22px; }

/* ---------- Prose (legal & long text) ---------- */
.el-prose { max-width: 780px; color: var(--el-body); font-size: 16.5px; line-height: 1.75; }
.el-prose h2 { font-size: 22px !important; font-weight: 800; margin: 36px 0 10px; }
.el-prose h3 { font-size: 18px !important; font-weight: 800; margin: 28px 0 8px; }
.el-prose p, .el-prose ul, .el-prose ol { margin: 0 0 16px; }
.el-prose ul, .el-prose ol { padding-left: 22px; }
.el-prose li { margin-bottom: 6px; }
.el-prose a { color: var(--el-blue-600) !important; font-weight: 600; }
.el-toc { position: sticky; top: calc(var(--el-header-h) + 20px); background: #fff; border: 1px solid var(--el-line); border-radius: 18px; padding: 18px; font-size: 14px; }
.el-toc strong { display: block; margin-bottom: 8px; color: var(--el-ink); }
.el-toc a { display: block; padding: 6px 0; color: var(--el-body) !important; text-decoration: none !important; }
.el-toc a:hover { color: var(--el-blue-600) !important; }

/* ---------- Downloads / PYQ ---------- */
.el-files { display: grid; gap: 12px; }
@media (min-width: 640px) { .el-files { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .el-files { grid-template-columns: repeat(3, 1fr); } }
.el-file { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--el-line); border-radius: 16px; color: inherit !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.el-file:hover { border-color: transparent; box-shadow: var(--el-shadow); transform: translateY(-2px); }
.el-file__icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: #fdecec; color: #c4302b; font-size: 20px; }
.el-file__main { flex: 1; min-width: 0; }
.el-file__main strong { display: block; color: var(--el-ink); font-size: 15px; line-height: 1.35; }
.el-file__main span { color: var(--el-muted); font-size: 13px; }
.el-file__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--el-bg); color: var(--el-ink); flex-shrink: 0; }
.el-file:hover .el-file__go { background: var(--el-navy-800); color: #fff; }
.el-filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.el-filterbar .el-input { max-width: 320px; min-height: 44px; }
.el-pill { border: 1.5px solid var(--el-line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 700 14px var(--el-font); color: var(--el-body); cursor: pointer; }
.el-pill[aria-pressed="true"] { background: var(--el-navy-800); border-color: var(--el-navy-800); color: #fff; }

/* ---------- People / gallery / reviews ---------- */
.el-people { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .el-people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .el-people { grid-template-columns: repeat(4, 1fr); } }
.el-person { background: #fff; border: 1px solid var(--el-line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.el-person:hover { transform: translateY(-3px); box-shadow: var(--el-shadow); }
.el-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; background: var(--el-bg); }
.el-person__body { padding: 14px 16px 16px; }
.el-person__body strong { display: block; color: var(--el-ink); font-size: 15.5px; }
.el-person__body span { color: var(--el-muted); font-size: 13.5px; }
.el-person__rank { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--el-gold-50); color: #9a5a00; font-weight: 800; font-size: 12.5px; }
.el-masonry { columns: 2 200px; column-gap: 14px; }
@media (min-width: 992px) { .el-masonry { columns: 4 220px; } }
.el-masonry a { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; break-inside: avoid; position: relative; }
.el-masonry img { width: 100%; display: block; transition: transform .4s var(--el-ease); }
.el-masonry a:hover img { transform: scale(1.04); }
.el-lightbox { position: fixed; inset: 0; z-index: 10005; background: rgba(7,23,38,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.el-lightbox.is-open { display: flex; }
.el-lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.el-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.el-lightbox button:hover { background: rgba(255,255,255,.24); }
.el-lightbox [data-lb="close"] { top: 18px; right: 18px; }
.el-lightbox [data-lb="prev"] { left: 18px; top: 50%; transform: translateY(-50%); }
.el-lightbox [data-lb="next"] { right: 18px; top: 50%; transform: translateY(-50%); }
.el-quote { background: #fff; border: 1px solid var(--el-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; break-inside: avoid; margin-bottom: 18px; }
.el-quote__stars { color: var(--el-gold-500); font-size: 13px; letter-spacing: 2px; }
.el-quote p { margin: 0; color: var(--el-body); font-size: 15.5px; }
.el-quote footer { display: flex; gap: 12px; align-items: center; }
.el-quote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.el-quote footer strong { display: block; color: var(--el-ink); font-size: 14.5px; }
.el-quote footer span { color: var(--el-muted); font-size: 13px; }

/* ---------- Course detail ---------- */
.el-buybox { background: #fff; border: 1px solid var(--el-line); border-radius: var(--el-r-lg); overflow: hidden; box-shadow: var(--el-shadow); }
.el-buybox img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.el-buybox__body { padding: 22px; }
.el-buybox .el-price { font-size: 34px; margin-bottom: 4px; }
.el-buybox ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.el-buybox li { display: flex; gap: 10px; }
.el-buybox li i { color: var(--el-green-600); margin-top: 4px; }
.el-acc details { border: 1px solid var(--el-line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.el-acc summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; color: var(--el-ink); display: flex; justify-content: space-between; gap: 12px; }
.el-acc summary::-webkit-details-marker { display: none; }
.el-acc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--el-muted); }
.el-acc details[open] summary::after { content: "−"; }
.el-acc details > div { padding: 0 18px 16px; color: var(--el-body); }
.el-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .el-ticks--2 { grid-template-columns: 1fr 1fr; } }
.el-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.el-ticks li i { color: var(--el-green-600); margin-top: 5px; font-size: 13px; }

/* Map / contact */
.el-contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--el-line); color: inherit !important; text-decoration: none !important; }
.el-contact-card i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--el-blue-50); color: var(--el-blue-600); flex-shrink: 0; font-size: 18px; }
.el-contact-card strong { display: block; color: var(--el-ink); }
.el-contact-card span { color: var(--el-muted); font-size: 14.5px; word-break: break-word; }
.el-map { border: 0; width: 100%; min-height: 320px; border-radius: var(--el-r-lg); display: block; }

/* ---------- Legacy pages: modern framing ---------- */
.el-legacy { padding: 48px 0 72px; }
.el-legacy .container { max-width: 1240px; }

/* Dashboard content is narrower than the page: only split into two columns on wide screens. */
@media (min-width: 992px) and (max-width: 1279.98px) {
  .el-dash .el-two { grid-template-columns: 1fr; }
}

/* Grid children must be allowed to shrink, or wide content (tab scrollers, tables) stretches the page on phones. */
.el-dash__grid > *, .el-two > *, .el-grid > *, .el-split > * { min-width: 0; }

/* Course pages: show price & Enroll first on phones. */
@media (max-width: 991.98px) { .el-buy-first > aside { order: -1; } }

/* Free-download popup styles live in el-gate.css (own "el-gm" prefix). */

/* ---------- Results by year (/results, /results/{year}) ---------- */
.el-results__years { margin-bottom: 24px; }
.el-chip.is-current { background: var(--el-navy-800) !important; border-color: var(--el-navy-800) !important; color: #fff !important; }
.el-chip span { opacity: .65; font-weight: 700; margin-left: 4px; }
.el-results__h { font-family: var(--el-font-display) !important; font-weight: 600; font-size: clamp(22px, 2.4vw, 28px) !important; color: var(--el-ink); margin: 8px 0 16px; }
.el-results__h small { font-family: var(--el-font); font-size: 14px; font-weight: 700; color: var(--el-muted); margin-left: 6px; }
.el-results__toppers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); margin-bottom: 36px; }
.el-topper { margin: 0; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--el-line); text-align: center; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.el-topper:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(6, 20, 35, .4); }
.el-topper__ph { aspect-ratio: 1; background: linear-gradient(160deg, #fff4dc, #e8f1fd); overflow: hidden; }
.el-topper__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.el-topper__ph > span { display: grid; place-items: center; height: 100%; font: 600 56px var(--el-font-display); color: #b46f00; }
.el-topper figcaption { padding: 4px 14px 16px; margin-top: -14px; position: relative; }
.el-topper__rank { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: linear-gradient(135deg, #ffcf70, #f2a52b); color: #061423; margin-bottom: 8px; }
.el-topper strong { display: block; font-size: 15.5px; color: var(--el-ink); }
.el-topper figcaption > span:last-child { font-size: 13px; color: var(--el-muted); font-weight: 600; }
.el-results__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.el-results__bar .el-tabs { flex-wrap: wrap; margin: 0; }
.el-results__search { position: relative; display: flex; align-items: center; min-width: min(280px, 100%); }
.el-results__search i { position: absolute; left: 14px; color: var(--el-muted); font-size: 14px; }
.el-results__search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 999px; border: 1.5px solid var(--el-line); background: #fff; font: 600 14.5px var(--el-font); color: var(--el-ink); }
.el-results__search input:focus { outline: none; border-color: var(--el-blue-600); box-shadow: 0 0 0 4px rgba(22, 104, 196, .13); }
.el-results__group { margin-bottom: 32px; }
.el-results__group[hidden], .el-person[hidden] { display: none !important; }
.el-results__empty { text-align: center; color: var(--el-muted); padding: 24px 0; }
.el-results__years-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.el-yearcard { display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; color: var(--el-body) !important; }
.el-yearcard__year { font: 600 15px var(--el-font); color: #b46f00; letter-spacing: .1em; }
.el-yearcard > strong { font: 600 46px/1 var(--el-font-display); color: var(--el-ink); }
.el-yearcard > strong small { font: 700 15px var(--el-font); color: var(--el-muted); }
.el-yearcard__batch { font-size: 13.5px; font-weight: 700; color: var(--el-muted); }
.el-yearcard ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; font-size: 14.5px; }
.el-yearcard ul b { color: var(--el-ink); margin-right: 4px; }

/* Registration form fixes (2026-11) */
/* +91 prefix: the group is a flex row so the prefix is exactly as tall as the field (no extra line space under the input). */
.el-input-group { display: flex; align-items: stretch; }
.el-input-group > .el-input { flex: 1 1 auto; min-width: 0; width: 100%; display: block; margin: 0; }
.el-input-group__pre { line-height: 1; }
/* Step labels: wrap onto two lines in a narrow column instead of being cut off ("Family & addre…"). */
.el-wizard__top { container-type: inline-size; }
@container (max-width: 560px) {
    .el-stepper button { font-size: 12.5px; }
    .el-stepper button span { white-space: normal; overflow: visible; text-overflow: clip; min-height: 2.5em; line-height: 1.25; }
}
/* Marketing consent: a soft box, aligned tick. */
.el-check.el-consent { margin-top: 4px; padding: 12px 14px; border: 1px solid var(--el-line); border-radius: 12px; background: var(--el-bg); font-size: 14px; line-height: 1.5; gap: 10px; }
.el-check.el-consent input { width: 18px; height: 18px; margin-top: 2px; }
.el-check.el-consent small { display: block; color: var(--el-muted); font-size: 12.5px; margin-top: 2px; }
.el-check.el-consent:has(input:checked) { border-color: var(--el-navy-800); background: #fff; }
/* Hints under fields never collide with the next row. */
.el-field .el-hint { display: block; margin-top: -2px; line-height: 1.45; }
/* Phones: only the current step shows its label; the others keep the same height so every bar lines up. */
@media (max-width: 640px) {
    .el-stepper button span { display: block !important; visibility: hidden; white-space: nowrap !important; min-height: 0 !important; height: 1.25em; overflow: hidden; }
    .el-stepper .is-current button span { visibility: visible; text-overflow: ellipsis; }
}

/* ---------- Results: topper cards on /results/{year} (same look as the Super 60 page) ---------- */
.rt-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); margin-bottom: 40px; }
.rt-card { position: relative; margin: 0; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, #12304a, #0b2236); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 44px -30px rgba(6, 20, 35, .7); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.rt-card:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -30px rgba(6, 20, 35, .85), 0 0 0 1px rgba(242, 165, 43, .55); }
.rt-card__ph { position: relative; aspect-ratio: 4 / 4.3; overflow: hidden; }
.rt-card__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.rt-card:hover .rt-card__ph img { transform: scale(1.05); }
.rt-card__ph > .rt-card__ini { display: grid; place-items: center; height: 100%; font: 600 76px var(--el-font-display); color: #f2a52b; }
.rt-card .el-cat { top: 14px; left: 14px; }
.rt-card figcaption { position: relative; margin-top: -68px; padding: 0 20px 22px; }
.rt-card__rank { display: inline-flex; padding: 6px 14px; margin-bottom: 12px; border-radius: 999px; font: 600 17px/1.1 var(--el-font-display); color: #061423;
    background: linear-gradient(135deg, #ffcf70, #f2a52b); box-shadow: 0 10px 24px -10px rgba(242, 165, 43, .9); }
.rt-card figcaption strong { display: block; font: 700 19px/1.25 var(--el-font); color: #fff; }
.rt-card figcaption > span:last-child { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: #9fb2c6; }
@media (max-width: 575.98px) {
    .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .rt-card { border-radius: 18px; }
    .rt-card figcaption { margin-top: -52px; padding: 0 12px 14px; }
    .rt-card__rank { font-size: 14px; padding: 4px 10px; margin-bottom: 8px; }
    .rt-card figcaption strong { font-size: 15px; }
    .rt-card figcaption > span:last-child { font-size: 12px; }
}

/* ---------- Results by year (/results) ---------- */
.ry-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.ry-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--el-line);
    box-shadow: var(--el-shadow-sm); color: var(--el-body) !important; text-decoration: none !important; overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.ry-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(6, 20, 35, .45); border-color: #f3d39a; }
.ry-card:focus-visible { outline: 3px solid var(--el-gold-400); outline-offset: 3px; }
.ry-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ry-card__year { display: block; font: 600 40px/1 var(--el-font-display); color: var(--el-ink); letter-spacing: -.01em; }
.ry-card__batch { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #fbf3dc; color: #8a5a00; font-size: 12.5px; font-weight: 700; }
.ry-faces { display: flex; align-items: center; flex: none; }
.ry-faces img, .ry-faces span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px; object-fit: cover; object-position: top; background: #e8eef6; box-shadow: 0 4px 10px -4px rgba(6, 20, 35, .4); }
.ry-faces img:first-child { margin-left: 0; }
.ry-faces span { display: grid; place-items: center; font: 800 12px var(--el-font); color: #0b2236; background: #ffcf70; }
.ry-card__count { display: flex; align-items: baseline; gap: 8px; }
.ry-card__count b { font: 700 54px/1 var(--el-font-display); color: #c2410c; font-variant-numeric: tabular-nums; }
.ry-card__count span { font-weight: 700; color: var(--el-muted); font-size: 15px; }
.ry-card__exams { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ry-card__exams li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; align-items: center; gap: 10px; font-size: 14px; }
.ry-card__exams li > span { color: var(--el-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry-card__exams li > i { height: 6px; border-radius: 99px; background: #eef2f7; position: relative; overflow: hidden; }
.ry-card__exams li > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #f2a52b, #ffcf70); }
.ry-card__exams li > b { text-align: right; color: var(--el-ink); font-variant-numeric: tabular-nums; }
.ry-card__more { display: block !important; color: var(--el-muted); font-size: 13px; }
.ry-card__cta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--el-line); font-weight: 800; font-size: 14.5px; color: #1668c4; display: flex; align-items: center; justify-content: space-between; }
.ry-card__cta i { transition: transform .25s; }
.ry-card:hover .ry-card__cta i { transform: translateX(4px); }
/* The newest year: a wide dark feature card */
.ry-card--lead { grid-column: 1 / -1; background: radial-gradient(900px 400px at 100% 0, rgba(242, 165, 43, .18), transparent 60%), linear-gradient(135deg, #0b2236, #12304a); border-color: transparent; color: #c9d6e6 !important; }
.ry-card--lead .ry-card__year { color: #fff; font-size: 52px; }
.ry-card--lead .ry-card__batch { background: rgba(255, 207, 112, .16); color: #ffcf70; }
.ry-card--lead .ry-card__count b { color: #ffcf70; font-size: 72px; }
.ry-card--lead .ry-card__count span, .ry-card--lead .ry-card__more { color: #9fb2c6; }
.ry-card--lead .ry-card__exams li > span, .ry-card--lead .ry-card__exams li > b { color: #fff; }
.ry-card--lead .ry-card__exams li > i { background: rgba(255, 255, 255, .12); }
.ry-card--lead .ry-faces img, .ry-card--lead .ry-faces span { width: 58px; height: 58px; border-color: #0b2236; margin-left: -16px; }
.ry-card--lead .ry-faces img:first-child { margin-left: 0; }
.ry-card--lead .ry-card__cta { color: #ffcf70; border-top-color: rgba(255, 255, 255, .12); }
@media (min-width: 900px) {
    .ry-card--lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "top exams" "count exams" "cta cta"; column-gap: 48px; padding: 32px 36px; }
    .ry-card--lead .ry-card__top { grid-area: top; flex-direction: column; gap: 18px; }
    .ry-card--lead .ry-card__count { grid-area: count; }
    .ry-card--lead .ry-card__exams { grid-area: exams; align-self: center; }
    .ry-card--lead .ry-card__exams li { grid-template-columns: minmax(0, 1fr) 160px 32px; font-size: 15px; }
    .ry-card--lead .ry-card__cta { grid-area: cta; }
}
@media (max-width: 575.98px) {
    .ry-card { padding: 20px; }
    .ry-card__year { font-size: 34px; } .ry-card--lead .ry-card__year { font-size: 40px; }
    .ry-card__count b { font-size: 46px; } .ry-card--lead .ry-card__count b { font-size: 56px; }
    .ry-faces img, .ry-faces span, .ry-card--lead .ry-faces img, .ry-card--lead .ry-faces span { width: 38px; height: 38px; margin-left: -12px; }
    .ry-card__exams li { grid-template-columns: minmax(0, 1fr) 64px 26px; }
}
.ry-card__count { justify-content: space-between; align-items: center; gap: 12px; }
.ry-card__count > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.ry-card__top { display: block; }
.ry-card--lead .ry-card__top { display: block; }
@media (min-width: 900px) { .ry-card--lead .ry-card__count { flex-direction: column; align-items: flex-start; gap: 18px; } }

/* ---------- Results: every selected student on /results/{year} — compact version of the topper card ---------- */
.rs-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.rs-card[hidden] { display: none !important; }
.rs-card { border-radius: 20px; }
.rs-card .rt-card__ph { aspect-ratio: 4 / 4.4; }
.rs-card__body { position: relative; margin-top: -58px; padding: 0 16px 18px; }
.rs-card .rt-card__rank { font-size: 14.5px; padding: 5px 12px; margin-bottom: 10px; }
.rs-card__body strong { display: block; font: 700 16.5px/1.3 var(--el-font); color: #fff; }
.rs-card__roll { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: #9fb2c6; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
    .rs-grid { gap: 12px; }
    .rs-card { border-radius: 16px; }
    .rs-card__body { margin-top: -48px; padding: 0 12px 14px; }
    .rs-card .rt-card__rank { font-size: 13px; padding: 4px 10px; margin-bottom: 8px; }
    .rs-card__body strong { font-size: 14.5px; }
    .rs-card__roll { font-size: 11.5px; }
}

/* Toppers row on /results/{year}: 6 on laptops, then 4 / 3 / 2 as the screen narrows. Text scales to the smaller cards. */
.rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .rt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .rt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .rt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 640px) {
    .rt-grid .rt-card { border-radius: 20px; }
    .rt-grid .rt-card figcaption { margin-top: -54px; padding: 0 14px 16px; }
    .rt-grid .rt-card__rank { font-size: 14.5px; padding: 5px 11px; margin-bottom: 9px; }
    .rt-grid .rt-card figcaption strong { font-size: 15.5px; }
    .rt-grid .rt-card figcaption > span:last-child { font-size: 12.5px; }
    .rt-grid .el-cat { top: 10px; left: 10px; font-size: 11px; }
}

/* All students on /results/{year}: same rows as the toppers — 6 on laptops, then 4 / 3 / 2. */
.rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .rs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .rs-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 640px) {
    .rs-card { border-radius: 18px; }
    .rs-card__body { margin-top: -50px; padding: 0 13px 15px; }
    .rs-card .rt-card__rank { font-size: 13.5px; padding: 4px 10px; margin-bottom: 8px; }
    .rs-card__body strong { font-size: 15px; }
    .rs-card__roll { font-size: 12px; }
    .rs-card .el-cat { top: 10px; left: 10px; font-size: 11px; }
}

/* Dashboard → Got selected? */
.el-sel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.el-sel-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--el-line); border-radius: 12px; }
.el-sel-list li > i { color: #e0a526; font-size: 18px; }
.el-sel-list li > div { display: grid; flex: 1; }
.el-sel-list small { color: var(--el-muted); }
