/* College website. Colours come from Website > Settings (--p primary, --ink, --acc accent). */
:root {
  --p: #2618CD; --ink: #14104A; --acc: #C89B3C;
  --bg: #F4F4FB; --card: #FFFFFF; --line: #DEDEEF; --muted: #5A5E78; --text: #1C1B33; --bad: #C1443C;
  --serif: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;   /* headings */
  --sans: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;    /* text */
  --w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 500 17px/1.65 var(--sans); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.ic { flex: 0 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 2px solid var(--p); background: var(--p); color: #fff;
  font: 700 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-acc { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.btn-acc:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-line { background: transparent; color: var(--p); }
.btn-line:hover { background: var(--p); color: #fff; border-color: var(--p); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

/* Utility bar */
.ut { background: var(--ink); color: #D9D8F2; font-size: 14px; }
.ut-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.ut a { color: #ECEBFA; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ut a:hover { color: var(--acc); }
.ut-contact { margin: 0; display: flex; gap: 22px; }
.ut-links { display: flex; gap: 20px; font-weight: 600; }
.ut-search { display: flex; margin-left: auto; }
.ut-search input { height: 28px; width: 190px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding: 0 10px; font: inherit; font-size: 13.5px; }
.ut-search input::placeholder { color: #AEB8C9; }
.ut-search button { height: 28px; width: 32px; border: 1px solid rgba(255,255,255,.25); border-left: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1241px) { .nav-home, .nav-search, .nav-cta-2 { display: none !important; } }
@media (max-width: 1240px) { .ut-search { display: none; } }

/* Header and menu */
.hd { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hd-in { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.nav-cta .btn { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand strong { display: block; font: 700 18px/1.15 var(--serif); width: max-content; max-width: 270px; }
.brand small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button { display: flex; align-items: center; gap: 4px; padding: 10px 10px; font: 600 15.5px var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav a[aria-current="page"] { color: var(--p); }
.nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--acc); }
.has-sub > button .ic { transform: rotate(90deg); transition: transform .15s; }
.has-sub > button[aria-expanded="true"] .ic { transform: rotate(-90deg); }
.has-sub > ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--p); box-shadow: 0 12px 28px rgba(20,16,74,.12); display: none; }
.has-sub > ul a { display: block; padding: 9px 18px; color: var(--text); text-decoration: none; font-size: 15.5px; }
.has-sub > ul a:hover { background: var(--bg); color: var(--p); }
.has-sub.is-open > ul { display: block; }
@media (hover: hover) and (min-width: 1241px) { .has-sub:hover > ul { display: block; } }
.nav-search { display: flex; border: 1px solid var(--line); }
.nav-search input { border: 0; padding: 0 10px; width: 150px; height: 40px; font: inherit; font-size: 15px; background: #fff; }
.nav-search button { border: 0; background: var(--bg); width: 42px; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.nav-btn, .nav-top { display: none; }
@media (max-width: 1240px) {
  .nav-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 12px; font: 700 15px var(--sans); cursor: pointer; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); background: #fff; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 20px 28px; overflow-y: auto; transform: translateX(105%); transition: transform .2s ease; z-index: 60; box-shadow: -20px 0 40px rgba(0,0,0,.18); }
  .nav.is-open { transform: none; }
  .nav-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 20px; color: var(--ink); }
  .nav-x { border: 0; background: none; cursor: pointer; color: var(--ink); padding: 6px; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a, .nav > ul > li > button { padding: 14px 2px; width: 100%; justify-content: space-between; font-size: 17px; }
  .has-sub > ul { position: static; border: 0; box-shadow: none; padding: 0 0 10px 12px; min-width: 0; }
  .nav-search input { flex: 1; width: auto; }
  .nav-cta { flex-direction: column; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(20,16,74,.45); z-index: 50; }
}
@media (max-width: 640px) { .ut-hide { display: none !important; } .brand { flex-shrink: 1; } .brand strong { font-size: 15.5px; width: auto; max-width: none; } .nav-btn span { display: none; } .nav-btn { padding: 8px; } .brand img { width: 44px; height: 44px; } .hd-in { min-height: 70px; gap: 12px; } }

/* Hero: slideshow with the admissions panel */
.hero { position: relative; background: var(--ink); color: #fff; }
.slides { position: relative; min-height: clamp(460px, 72vh, 680px); overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; display: flex; align-items: flex-end; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,74,.88) 0%, rgba(20,16,74,.55) 48%, rgba(20,16,74,.12) 100%), linear-gradient(0deg, rgba(20,16,74,.55), transparent 50%); }
.slide-in { position: relative; padding-bottom: 96px; }
.slide-text { max-width: 600px; }
.slide-t { color: #fff; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin-bottom: 14px; letter-spacing: -.01em; text-wrap: balance; }
.slide-text p { font-size: clamp(17px, 2vw, 20px); color: #E6E5F7; max-width: 520px; }
.slide-ctl { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; align-items: center; gap: 12px; }
.slide-ctl > button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); background: rgba(20,16,74,.35); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slide-ctl > button:first-child .ic { transform: rotate(180deg); }
.slide-ctl > button:hover { background: #fff; color: var(--ink); }
.slide-dots { display: flex; gap: 6px; }
.slide-dots button { width: 26px; height: 4px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.slide-dots button[aria-current="true"] { background: var(--acc); }
.hero-plain-in { padding: 90px 20px 240px; }
.hero-plain h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); max-width: 720px; }
.hero-plain p { font-size: 20px; color: #DEDDF5; margin-top: 12px; }
.adm-wrap { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; display: flex; justify-content: flex-end; }
.adm { pointer-events: auto; width: 380px; background: var(--p); color: #fff; padding: 26px 26px 22px; transform: translateY(42%); box-shadow: 0 18px 40px rgba(20,16,74,.28); border-top: 5px solid var(--acc); position: relative; z-index: 3; }
.adm.is-closed { background: var(--ink); }
.adm-state { display: flex; align-items: center; gap: 10px; font: 700 21px/1.25 var(--serif); margin-bottom: 10px; }
.adm-dot { width: 11px; height: 11px; border-radius: 50%; background: #7CF0B4; box-shadow: 0 0 0 4px rgba(124,240,180,.25); flex: 0 0 auto; }
.is-closed .adm-dot { background: #F1A7A1; box-shadow: 0 0 0 4px rgba(241,167,161,.22); }
.adm-dead { font-size: 15.5px; color: rgba(255,255,255,.9); }
.adm-dead strong { display: block; font: 700 34px/1.1 var(--serif); color: #fff; margin-bottom: 2px; }
.adm-note { font-size: 15px; color: rgba(255,255,255,.88); }
.adm-act { display: grid; gap: 8px; margin: 14px 0 12px; }
.adm-more { color: #fff; font-weight: 600; font-size: 15px; }
.adm-more:hover { color: var(--acc); }
@media (max-width: 860px) {
  .adm-wrap { position: static; display: block; padding: 0; }
  .adm { width: auto; transform: none; box-shadow: none; }
  .slides { min-height: 440px; }
  .slide-in { padding-bottom: 84px; }
  .hero-plain-in { padding: 60px 20px; }
}

/* Notices strip */
.notes { background: #fff; border-bottom: 1px solid var(--line); }
.notes-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-top: 18px; padding-bottom: 18px; padding-right: 420px; min-height: 88px; }
.notes h2 { font-size: 18px; color: var(--bad); }
.notes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notes li a { display: flex; gap: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
.notes li a:hover span { color: var(--p); text-decoration: underline; }
.notes time { color: var(--muted); font-weight: 600; font-size: 14.5px; min-width: 48px; padding-top: 1px; }
.notes-all { font-weight: 700; white-space: nowrap; }
@media (max-width: 1000px) { .notes-in { padding-right: 20px; grid-template-columns: 1fr; gap: 8px; } }

/* Sections */
.sec { padding: 72px 0; }
.sec + .sec { padding-top: 24px; }
.sec-t { font-size: clamp(26px, 3vw, 34px); margin-bottom: 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.link-more { font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.empty { color: var(--muted); font-weight: 500; padding: 20px 0; }
.lead { font-size: 19px; color: var(--ink); }
.h-sub { font-size: 24px; margin: 36px 0 14px; }
.h-sub:first-child { margin-top: 0; }
.home-gap { height: 1px; }

/* Quick tasks */
.hero + .sec, .hero + .notes + .sec { padding-top: 150px; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.quick-list a { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); height: 100%; }
.quick-list a .ic { color: var(--p); margin-top: 2px; }
.quick-list strong { display: block; font-size: 17.5px; color: var(--ink); margin-bottom: 2px; }
.quick-list small { display: block; font-size: 15px; color: var(--muted); }
.quick-list a:hover { background: var(--ink); }
.quick-list a:hover strong, .quick-list a:hover small, .quick-list a:hover .ic { color: #fff; }
@media (max-width: 860px) { .hero + .sec, .hero + .notes + .sec { padding-top: 48px; } .quick-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quick-list { grid-template-columns: 1fr; } .quick-list a { padding: 16px; } }

/* Provost */
.provost-in { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.provost-pic { margin: 0; position: relative; }
.provost-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.provost-pic::after { content: ''; position: absolute; left: 14px; right: -14px; top: 14px; bottom: -14px; border: 2px solid var(--acc); z-index: -1; }
.provost blockquote { margin: 0 0 18px; font: 500 19px/1.7 var(--sans); color: var(--ink); max-width: 66ch; border-left: 4px solid var(--acc); padding-left: 20px; }
.provost blockquote p:last-child { margin-bottom: 0; }
.provost-name strong { display: block; font-size: 18px; color: var(--ink); }
.provost-name span { color: var(--muted); }
.provost-text:only-child { max-width: 760px; }
@media (max-width: 760px) { .provost-in { grid-template-columns: 1fr; gap: 28px; } .provost-pics { max-width: 300px; } .provost blockquote { font-size: 17.5px; } }

/* Programmes */
.prog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.prog-list a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--p); padding: 22px 22px 18px; text-decoration: none; color: var(--text); }
.prog-list a:hover { border-left-color: var(--acc); box-shadow: 0 10px 24px rgba(20,16,74,.09); }
.prog-list h3, .prog-list h2 { font-size: 22px; margin-bottom: 4px; }
.prog-list img { margin: -22px -22px 16px; width: calc(100% + 44px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.prog-meta { color: var(--p); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.prog-list p:last-child { margin-bottom: 0; color: var(--muted); }

/* Numbers */
.stats { background: var(--p); color: #fff; padding: 40px 0; }
.stats-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stats-list div { display: flex; flex-direction: column-reverse; border-left: 3px solid var(--acc); padding-left: 16px; }
.stats-list dd { margin: 0; font: 700 40px/1.1 var(--serif); }
.stats-list dt { color: rgba(255,255,255,.85); font-size: 15.5px; }

/* News and events */
.news-in { display: grid; grid-template-columns: 1fr 380px; gap: 48px; }
.news-in.no-ev { grid-template-columns: 1fr; }
.news-list { display: grid; gap: 22px; }
.news-in.no-ev .news-list, .news-page { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-news { display: grid; grid-template-columns: 170px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); padding: 14px; }
.card-news:not(:has(.card-img)) { grid-template-columns: 1fr; padding: 18px 20px; }
.news-page .card-news, .no-ev .card-news { grid-template-columns: 1fr; padding: 0 0 18px; }
.news-page .card-news > div, .no-ev .card-news > div { padding: 0 20px; }
.news-page .card-news:not(:has(.card-img)) > div, .no-ev .card-news:not(:has(.card-img)) > div { padding-top: 18px; }
.card-img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-page .card-img img, .no-ev .card-img img { aspect-ratio: 16 / 9; }
.card-news time { font-size: 14px; font-weight: 600; color: var(--muted); }
.card-news h3 { font-size: 20px; margin: 4px 0 8px; }
.card-news h3 a { color: var(--ink); text-decoration: none; }
.card-news h3 a:hover { color: var(--p); text-decoration: underline; }
.card-news p { color: var(--muted); font-size: 15.5px; margin: 0; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev a { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 12px; text-decoration: none; color: var(--text); }
.ev a:hover { border-color: var(--p); }
.ev-date { width: 62px; flex: 0 0 62px; text-align: center; background: var(--ink); color: #fff; padding: 8px 0; font-size: 13px; font-weight: 700; }
.ev-date strong { display: block; font: 700 26px/1 var(--serif); color: var(--acc); }
.ev-t { display: block; color: var(--ink); font-size: 16.5px; }
.ev small { color: var(--muted); font-size: 14px; }
.is-old .ev-date { background: var(--muted); }
@media (max-width: 960px) { .news-in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .card-news { grid-template-columns: 1fr; } }

/* Gallery */
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gal-grid a { display: block; overflow: hidden; background: var(--line); }
.gal-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gal-grid a:hover img { transform: scale(1.04); }
.gal-home .gal-grid.has-lead li:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
.lb { position: fixed; inset: 0; background: rgba(10,16,30,.92); z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb img { max-height: 80vh; max-width: 100%; }
.lb p { color: #fff; margin-top: 12px; text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb .lb-x { top: 16px; right: 16px; }
.lb .lb-p { left: 12px; top: 50%; } .lb .lb-p .ic { transform: rotate(180deg); }
.lb .lb-n { right: 12px; top: 50%; }

/* Testimonials */
.voice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.voice { margin: 0; background: #fff; border: 1px solid var(--line); padding: 24px; }
.voice > .ic { color: var(--acc); }
.voice blockquote { margin: 10px 0 18px; font: 600 17.5px/1.6 var(--sans); color: var(--ink); }
.voice figcaption { display: flex; gap: 12px; align-items: center; }
.voice figcaption img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.voice figcaption small { display: block; color: var(--muted); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 12px; font: 400 26px/1 var(--sans); color: var(--p); }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .prose { padding: 14px 20px 6px; }
.after { margin-top: 24px; }

/* Partners */
.partners { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; }
.partners-lead { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 44px; justify-content: center; align-items: center; }
.partners img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; }
.partners a:hover img { filter: none; opacity: 1; }

/* Inner pages */
.band { background: var(--ink); color: #fff; padding: 44px 0 40px; border-bottom: 5px solid var(--acc); }
.band h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); max-width: 900px; text-wrap: balance; }
.band-lead { color: #DCDBF4; font-size: 19px; margin: 12px 0 0; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; margin-bottom: 14px; color: #BDBBE6; }
.crumbs a { color: #ECEBFA; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.article { max-width: 760px; }
.article-img { margin-bottom: 22px; width: 100%; }
.meta { color: var(--muted); font-size: 15px; font-weight: 600; }
.prose { font-size: 17.5px; line-height: 1.7; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
.prose img { height: auto !important; margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 4px solid var(--acc); margin: 1em 0; padding: 4px 0 4px 18px; color: var(--ink); }
.side { display: grid; gap: 22px; position: sticky; top: 110px; }
.side h2 { font-size: 20px; margin-bottom: 10px; }
.side-list, .side-nav { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-list a { display: block; font-weight: 600; text-decoration: none; color: var(--ink); }
.side-list a:hover { color: var(--p); }
.side-list time { font-size: 14px; color: var(--muted); }
.side-nav a { display: block; padding: 10px 14px; border-left: 3px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.side-nav a:hover { border-left-color: var(--p); color: var(--p); }
.side-nav a[aria-current="page"] { border-left-color: var(--acc); background: #fff; color: var(--ink); }
.side-box { background: #fff; border: 1px solid var(--line); padding: 20px; }
.side-box p:last-child { margin-bottom: 0; }
.side-cta { border-top: 4px solid var(--p); display: grid; gap: 8px; }
.side-cta p { margin: 0 0 6px; }
@media (max-width: 960px) { .side { position: static; } }
.facts { margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: #fff; padding: 14px 16px; }
.facts dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.share button { border: 0; background: none; font: inherit; color: var(--p); cursor: pointer; padding: 0; text-decoration: underline; }
.filter { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.filter input, .search-big input { height: 46px; border: 1px solid var(--line); padding: 0 14px; font: inherit; min-width: 0; flex: 1; max-width: 420px; background: #fff; }
.search-big { display: flex; gap: 10px; margin-bottom: 24px; }
.search-big input { max-width: none; }
.links-row { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.pager { display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 36px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips a { padding: 8px 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.notice-list, .results, .dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notice-list a, .results a { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--bad); padding: 16px 20px; text-decoration: none; color: var(--text); }
.notice-list.is-old a { border-left-color: var(--line); }
.notice-list a:hover, .results a:hover { border-color: var(--p); }
.notice-list time, .results small { font-size: 14px; color: var(--muted); font-weight: 600; }
.notice-list strong, .results strong { color: var(--ink); font-size: 18px; }
.notice-list small { color: var(--p); font-weight: 600; }
.notice-list span, .results span { color: var(--muted); font-size: 15.5px; }
.results a { border-left-color: var(--p); }
.dl-list a { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 14px 18px; text-decoration: none; color: var(--text); }
.dl-list a:hover { border-color: var(--p); }
.dl-list a .ic { color: var(--p); }
.dl-list span { flex: 1; }
.dl-list strong { display: block; color: var(--ink); }
.dl-list small { color: var(--muted); }
.dl-list em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.person { background: #fff; border: 1px solid var(--line); padding: 0 0 18px; }
.person > *:not(.person-pic) { padding: 0 18px; }
.person-pic { aspect-ratio: 4 / 5; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); margin-bottom: 14px; }
.person-pic img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 19px; }
.person-role { color: var(--p); font-weight: 700; font-size: 15px; margin: 2px 0 8px; }
.person p { font-size: 15.5px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.contact-info .ic { color: var(--p); grid-row: span 3; margin-top: 3px; }
.contact-info h2 { font-size: 19px; margin-bottom: 4px; }
.contact-info p { margin: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--p); padding: 28px; }
.contact-form h2 { font-size: 24px; margin-bottom: 16px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { margin: 0 0 16px; }
.fld label { display: block; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.fld input, .fld textarea { width: 100%; border: 1px solid #C9C8E3; padding: 12px 14px; font: inherit; background: #fff; }
.fld input:focus, .fld textarea:focus { border-color: var(--p); outline: 2px solid var(--p); outline-offset: -1px; }
.fld em { display: block; font-style: normal; color: var(--bad); font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.fld.is-bad input, .fld.is-bad textarea { border-color: var(--bad); background: #FDF4F3; }
.f-note { font-size: 14.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.err-box { background: #FDF0EE; border-left: 4px solid var(--bad); padding: 12px 14px; color: var(--bad); font-weight: 600; }
.ok-box { border-left: 4px solid var(--p); padding: 4px 0 4px 18px; }
.map { margin-top: 56px; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.25); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } .f2 { grid-template-columns: 1fr; gap: 0; } .contact-form { padding: 20px; } }

/* Footer */
.ft { background: var(--ink); color: #CFCDEE; margin-top: 40px; }
.ft-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.ft-name { font: 700 22px/1.25 var(--serif); color: #fff; }
.ft h2 { font: 700 15px var(--sans); color: var(--acc); margin-bottom: 14px; }
.ft-col { display: flex; flex-direction: column; gap: 8px; }
.ft a { color: #ECEBFA; text-decoration: none; }
.ft a:hover { color: var(--acc); text-decoration: underline; }
.ft-contact p { display: flex; gap: 10px; margin: 0; }
.ft-contact .ic { margin-top: 4px; color: var(--acc); }
.ft-soc { display: flex; gap: 10px; }
.ft-soc a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.ft-soc a:hover { background: var(--acc); color: var(--ink); border-color: var(--acc); }
.ft-base { border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.ft-base .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.ft-base p { margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 960px) { .ft-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-in { grid-template-columns: 1fr; gap: 28px; } }

/* WhatsApp and the notice pop-up */
.wa { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 30; }
.wa.with-chat { bottom: 96px; }
.wa:hover { background: #178A45; color: #fff; }
.pop { position: fixed; inset: 0; background: rgba(20,16,74,.62); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pop[hidden] { display: none; }
body.pop-open { overflow: hidden; }
.pop { --pc: var(--p); }
.pop-urgent { --pc: #C1443C; } .pop-good { --pc: #1F8A52; } .pop-gold { --pc: #A87A1E; }
.pop-box { background: #fff; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.pop-box::before { content: ''; display: block; height: 6px; background: repeating-linear-gradient(45deg, var(--pc), var(--pc) 12px, color-mix(in srgb, var(--pc) 72%, #000) 12px, color-mix(in srgb, var(--pc) 72%, #000) 24px); }
@media (prefers-reduced-motion: no-preference) { .pop:not([hidden]) .pop-box { animation: pop-in .25s ease-out; } @keyframes pop-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } } }
.pop-x { position: absolute; right: 10px; top: 16px; background: rgba(255,255,255,.92); border: 0; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); z-index: 2; }
.pop-preview { margin: 0; background: #FBF3E2; color: #8A6116; font-weight: 700; font-size: 14px; padding: 8px 56px 8px 18px; }
.pop-img { width: 100%; max-height: min(320px, 32vh); object-fit: cover; }
.pop-head { padding: 24px 28px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.pop-eye { margin: 0 0 6px; color: var(--pc); font-weight: 700; font-size: 14.5px; }
.pop h2 { font-size: 25px; line-height: 1.2; padding: 0 20px; }
.pop-body { padding: 18px 28px 6px; }
.pop-strip { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--pc) 9%, #fff); border-left: 4px solid var(--pc); padding: 10px 14px; font-weight: 700; color: var(--ink); }
.pop-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); flex: 0 0 9px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 20%, transparent); }
.pop-msg { font-size: 16.5px; }
.pop-msg ul, .pop-msg ol { background: var(--bg); border: 1px solid var(--line); padding: 12px 16px 12px 34px; }
.pop-sign { text-align: center; margin: 14px 0 6px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-weight: 600; font-size: 15px; }
.pop-sign strong { display: block; color: var(--ink); font-size: 16.5px; }
.pop-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 14px 28px 20px; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 16px rgba(255,255,255,.9); }
.pop-act .btn { background: var(--pc); border-color: var(--pc); }
.pop-act .btn:hover { background: var(--ink); border-color: var(--ink); }
.pop-act .btn-line { background: transparent; color: var(--pc); }
.pop-act .btn-line:hover { background: var(--pc); color: #fff; border-color: var(--pc); }
.pop-act .btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.pop-act .btn-quiet:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (max-width: 480px) { .pop-head, .pop-body { padding-left: 18px; padding-right: 18px; } .pop-act { padding: 12px 18px 20px; } .pop-act .btn { flex: 1 1 100%; } .pop h2 { font-size: 21px; } }

/* Quicksand: slightly heavier weights read better on screens */
h1, h2, h3, .sec-t, .slide-t, .band h1 { letter-spacing: -.01em; }
.prose { font-weight: 500; }
.btn { font-weight: 700; }

/* College overview */
.overview { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.overview + .sec { padding-top: 72px; }
.overview-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.overview-in.no-img { grid-template-columns: 1fr 340px; }
.overview-text .lead { font-size: 20px; font-weight: 600; color: var(--ink); }
.overview-text p { max-width: 68ch; }
.ov-points { list-style: none; margin: 6px 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.ov-points li { position: relative; padding-left: 28px; font-weight: 600; color: var(--ink); }
.ov-points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: var(--p); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 26%, 86% 12%, 38% 72%); }
.ov-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 5px solid var(--acc); }
.ov-facts { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.no-img .ov-facts { border-top: 4px solid var(--p); }
.ov-facts div { background: #fff; padding: 14px 18px; display: flex; justify-content: space-between; gap: 14px; }
.ov-facts dt { color: var(--muted); font-weight: 600; }
.ov-facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
@media (max-width: 900px) { .overview-in, .overview-in.no-img { grid-template-columns: 1fr; gap: 30px; } .ov-points { grid-template-columns: 1fr; } }

/* Welcome address: main photo and more pictures */
.provost-in.no-pic { grid-template-columns: 1fr; }
.provost-pics { display: grid; gap: 10px; }
.provost-more { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.provost-more img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.provost-more a { display: block; border: 1px solid var(--line); }
.provost-more a:hover { border-color: var(--acc); }
.welcome { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.welcome.no-pic { grid-template-columns: 1fr; }
.welcome-pics { position: sticky; top: 110px; }
.welcome-cap { margin: 28px 0 0; color: var(--muted); font-weight: 600; }
.welcome-cap strong { display: block; color: var(--ink); font-size: 18px; }
.welcome-text .prose p:first-child { font-size: 20px; font-weight: 600; color: var(--ink); }
.welcome-sign { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.welcome-sign strong { display: block; font-size: 19px; color: var(--ink); }
.welcome-sign span { color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; gap: 30px; } .welcome-pics { position: static; max-width: 320px; } }

/* Events and activities */
.evh { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
.evh.no-past, .evh.no-up { grid-template-columns: 1fr; }
.evh.no-past .ev-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.evh-h { font-size: 19px; margin-bottom: 12px; color: var(--p); }
.act-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.act a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.act a:hover { border-color: var(--p); box-shadow: 0 10px 22px rgba(20,16,74,.08); }
.act-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--bg); color: var(--muted); overflow: hidden; }
.act-img img { width: 100%; height: 100%; object-fit: cover; }
.act-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.act-body time { font-size: 14px; font-weight: 600; color: var(--muted); }
.act-body strong { color: var(--ink); font-size: 17px; line-height: 1.3; }
.act-body small { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.act-page { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 1100px) { .evh { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .act-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .act-list { grid-template-columns: 1fr; } }
.news-row { grid-template-columns: repeat(3, 1fr); }
.news-row .card-news { grid-template-columns: 1fr; padding: 0 0 18px; }
.news-row .card-news > div { padding: 0 20px; }
.news-row .card-news:not(:has(.card-img)) > div { padding-top: 18px; }
.news-row .card-img img { aspect-ratio: 16 / 9; }
@media (max-width: 960px) { .news-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .provost-text { order: -1; }
  .provost-pics { max-width: 260px; }
  .overview-text .lead, .welcome-text .prose p:first-child { font-size: 18px; font-weight: 600; }
}
