/* Study at SRM: nine college cards. Laptops and tablets: the band pins and the cards slide sideways as you scroll down;
   phones: a swipe row. Under the cards, one panel to find a programme. Dark is the base; html.lt is light mode. */
.rl { --rl-g: max(16px, env(safe-area-inset-left, 0px)); --rl-card: min(80vw, 300px); --rl-h2: clamp(36px, 9vw, 52px);
  --rl-bg: #0e0b12; --rl-card-bg: #17121c; --rl-paper: #17121c; --rl-ink: #f6efe9; --rl-ink2: rgba(246, 239, 233, .8); --rl-ink3: rgba(246, 239, 233, .62);
  --rl-acc: #ffd6a8; --rl-gold: #e4b316; --rl-line: rgba(255, 240, 230, .14); --rl-ug: #9dbcff; --rl-pg: #e4b316; --rl-phd: rgba(246, 239, 233, .55);
  --rl-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .28);
  position: relative; overflow-x: clip; background: var(--rl-bg); color: var(--rl-ink); }
html.lt .rl { --rl-bg: #ffffff; --rl-card-bg: #ffffff; --rl-paper: #f8f6f2; --rl-ink: #0f1a2e; --rl-ink2: #3f4859; --rl-ink3: #5f6878;
  --rl-acc: #0c4da2; --rl-line: #e5e1d9; --rl-ug: #0c4da2; --rl-pg: #e4b316; --rl-phd: #8a93a3;
  --rl-shadow: 0 1px 2px rgba(15, 26, 46, .06), 0 12px 30px rgba(15, 26, 46, .09); }
@media (min-width: 700px) { .rl { --rl-g: max(48px, calc((100% - 1000px) / 2 + 48px)); --rl-card: clamp(260px, 31vw, 300px); } }
.rl-d { display: none; --rl-g: max(16px, calc((100% - 1200px * var(--z, 1)) / 2)); --rl-card: calc(300px * var(--z, 1)); --rl-h2: calc(64px * var(--z, 1)); }
@media (min-width: 1180px) { .rl-d { display: block; } }

.rl a { color: inherit; text-decoration: none; }
.rl-wrap { padding-left: var(--rl-g); padding-right: var(--rl-g); }
.rl-stick { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 64px 0 36px; }
.rl.pinned .rl-stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 124px 0 24px; gap: 20px; }

/* heading row: title left, the short line and arrows right */
.rl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
.rl-eb { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 12px "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--rl-acc); }
.rl-eb::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rl-gold); }
.rl h2 { margin: 0; font-size: var(--rl-h2); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; color: var(--rl-ink); text-wrap: balance; }
.rl h2 b { font-weight: 500; }
.rl-lede { max-width: 60ch; margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--rl-ink2); }
.rl-arrows { display: flex; gap: 10px; }
.rl-arrows button { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--rl-line); border-radius: 50%; background: var(--rl-card-bg); color: var(--rl-ink); cursor: pointer; }
.rl-arrows button:hover { border-color: var(--rl-acc); color: var(--rl-acc); }
.rl-arrows button:disabled { opacity: .35; cursor: default; color: var(--rl-ink); border-color: var(--rl-line); }

/* the row of cards */
.rl-rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-left: var(--rl-g); scroll-padding-left: var(--rl-g); }
.rl-rail::-webkit-scrollbar { display: none; }
.rl.pinned .rl-rail { overflow: hidden; scroll-snap-type: none; }
.rl-track { display: flex; align-items: stretch; gap: 16px; width: max-content; margin: 0; padding: 6px var(--rl-g) 14px 0; list-style: none; will-change: transform; }
.rl-card { flex: none; display: flex; width: var(--rl-card); scroll-snap-align: start; }
.rl-card article { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--rl-line); border-radius: 18px; background: var(--rl-card-bg); box-shadow: var(--rl-shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.rl-card article:hover, .rl-card article:focus-within { transform: translateY(-4px); }
.rl-photo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1c2a44; }
.rl-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 32%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.rl-card article:hover .rl-photo img { transform: scale(1.05); }
.rl-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 28, .5), rgba(8, 14, 28, 0) 45%); }
.rl-no { position: absolute; z-index: 1; top: 12px; left: 16px; font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.rl-badge { position: absolute; z-index: 1; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: #fff; color: #0f1a2e; font: 500 12px "Geist Mono", ui-monospace, monospace; letter-spacing: .04em; }
.rl-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.rl-nm { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.rl .rl-nm a { color: var(--rl-ink); }
.rl .rl-nm a:hover { color: var(--rl-acc); }
.rl-ds { margin: 0; font-size: 14px; line-height: 1.5; color: var(--rl-ink2); }
.rl-lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.rl-lv div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; }
.rl-lv dt { font-size: 12px; line-height: 1.3; color: var(--rl-ink3); }
.rl-lv dd { display: flex; align-items: center; gap: 7px; margin: 0 0 2px; font-size: 24px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; color: var(--rl-ink); font-variant-numeric: tabular-nums; }
.rl-lv dd::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.rl-mix { display: flex; gap: 2px; height: 6px; border-radius: 6px; overflow: hidden; }
.rl-mix i { display: block; height: 100%; background: var(--c); }
.rl-pop { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rl .rl-pop a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border: 1px solid var(--rl-line); border-radius: 999px; font-size: 13px; color: var(--rl-ink); white-space: nowrap; }
.rl .rl-pop a:hover { border-color: var(--rl-acc); color: var(--rl-acc); }
.rl-end { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-top: auto; padding-top: 2px; font-size: 13px; color: var(--rl-ink3); }
.rl .rl-end a { font-size: 14px; font-weight: 500; color: var(--rl-acc); white-space: nowrap; }

/* where you are in the row: the colleges by name */
.rl-nav { display: flex; align-items: center; gap: 20px; }
.rl-count { flex: none; font: 500 12px "Geist Mono", ui-monospace, monospace; letter-spacing: .1em; color: var(--rl-ink3); font-variant-numeric: tabular-nums; }
.rl-count b { color: var(--rl-ink); font-weight: 500; }
.rl-scrub { display: flex; gap: 2px 18px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.rl-scrub::-webkit-scrollbar { display: none; }
.rl-scrub button { min-height: 36px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--rl-ink3); font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.rl-scrub button:hover { color: var(--rl-ink); }
.rl-scrub button[aria-current="true"] { color: var(--rl-ink); border-bottom-color: var(--rl-gold); }
/* on laptops and tablets the floating Listen and Ask SRM buttons sit at the bottom right: the names stop short of them */
@media (min-width: 860px) { .rl.pinned .rl-nav { padding-right: max(var(--rl-g), 300px); } }
.rl-hint { display: none; font: 500 12px "Geist Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--rl-ink3); }

/* under the cards: one panel to find a programme */
.rl-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; margin-bottom: 88px; padding: 30px 32px 32px; border: 1px solid var(--rl-line); border-radius: 22px; background: var(--rl-paper); }
.rl-panel h3 { margin: 0 0 14px; font: 500 12px "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--rl-ink3); }
.rl-stages { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rl-line); }
.rl .rl-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 30%) 44px 18px; align-items: center; gap: 14px; min-height: 64px; border-bottom: 1px solid var(--rl-line); color: var(--rl-ink); }
.rl-stage span { font-size: 17px; line-height: 1.25; }
.rl-stage small { display: block; margin-top: 2px; font-size: 13px; color: var(--rl-ink3); }
.rl-stage .rl-sb { height: 6px; border-radius: 6px; background: var(--rl-line); overflow: hidden; }
.rl-stage .rl-sb i { display: block; height: 100%; border-radius: 6px; background: var(--rl-acc); }
.rl-stage b { font-size: 24px; font-weight: 300; letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; }
.rl-stage svg { color: var(--rl-ink3); transition: transform .2s; }
.rl .rl-stage:hover b, .rl .rl-stage:hover svg { color: var(--rl-acc); }
.rl .rl-stage:hover svg { transform: translateX(3px); }
.rl-find { display: flex; gap: 8px; }
.rl-find label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rl-find input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--rl-line); border-radius: 12px; background: var(--rl-card-bg); color: var(--rl-ink); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.2; text-overflow: ellipsis; }
.rl-find button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--rl-acc); color: var(--rl-bg); font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.rl-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.rl .rl-quick a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--rl-line); border-radius: 999px; background: var(--rl-card-bg); font-size: 14px; color: var(--rl-ink); }
.rl .rl-quick a:hover { border-color: var(--rl-acc); color: var(--rl-acc); }
.rl-unsure { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rl-line); }
.rl-unsure p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--rl-ink2); }
.rl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rl .rl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid var(--rl-acc); border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--rl-acc); }
.rl .rl-btn.solid { background: var(--rl-acc); color: var(--rl-bg); }
.rl-note { margin: 16px 0 0; font-size: 14px; color: var(--rl-ink3); }
.rl .rl-note a { color: var(--rl-acc); }

@media (max-width: 860px) {
  .rl-head { grid-template-columns: minmax(0, 1fr); }
  .rl-panel { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
}
@media (max-width: 699px) {
  .rl-scrub { display: none; }
  .rl-hint { display: block; }
  .rl-nav { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-card article, .rl-photo img, .rl-stage svg { transition: none; }
  .rl-card article:hover, .rl-card article:focus-within { transform: none; }
  .rl-card article:hover .rl-photo img { transform: none; }
}
/* the phone and tablet page hides its overflow; clip does the same without stopping the band from pinning */
@supports (overflow: clip) { .hp.flow { overflow: clip; } }
/* the site's light mode colours buttons and links in text: the Search button keeps white text on blue, a link in a sentence is underlined */
.rl .rl-find button, html.lt .rl .rl-find button { color: var(--rl-bg); }
.rl .rl-note a { text-decoration: underline; text-underline-offset: 3px; }
