/* Algorithms and Complexity — visual styles.
   To adjust the colour palette, edit the Bristol-red refinement near the bottom.
   News and publications are maintained in content/, not here.
*/

:root {
  --navy: #19324b;
  --navy-dark: #142b41;
  --blue: #356b99;
  --text: #35495d;
  --muted: #6b7f92;
  --line: #dce5ed;
  --pale: #f3f6fa;
  --white: #fff;
  --shadow: 0 8px 28px rgba(34,58,80,.055);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  background: #f9fbfc;
  color: var(--text);
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #285e8e;
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
  color: #143f64;
}

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid #86b5dc;
  outline-offset: 4px;
  border-radius: 2px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--navy-dark);
  line-height: 1.21;
}

.site-wrap {
  width: min(1170px,calc(100% - 72px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 10px;
  top: -60px;
  z-index: 1000;
  padding: 8px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.skip:focus {
  top: 10px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 4px 15px rgba(17,42,67,.027);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 101px;
}

.brand-area {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 21px;
}

.brand-mark {
  display: block;
  position: relative;
  width: 233px;
  height: 77px;
  flex: 0 0 233px;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 428px;
  height: 321px;
  max-width: none;
  object-fit: contain;
}

.brand-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-family: Georgia,serif;
  font-size: 23px;
  line-height: 1.04;
  color: #222;
  padding: 8px 5px;
}

.brand-mark img {
  background: transparent;
}

.brand-divider {
  width: 1px;
  height: 39px;
  background: #d9e2e9;
}

.brand-caption {
  font-size: 12px;
  color: #748394;
  letter-spacing: .005em;
  line-height: 1.5;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 13px;
  font-weight: 650;
  color: #455b70;
  letter-spacing: .014em;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #255e92;
}

main {
  padding-bottom: 42px;
}

.intro {
  padding-top: 58px;
  padding-bottom: 67px;
}

.eyebrow {
  color: #66829c;
  font-size: 11px;
  letter-spacing: .125em;
  font-weight: 800;
  text-transform: uppercase;
}

.page-heading {
  margin-bottom: 26px;
}

.page-heading .eyebrow {
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(33px,4.35vw,55px);
  letter-spacing: -.042em;
  font-weight: 690;
  margin-bottom: 10px;
}

.heading-sub {
  font-size: 15px;
  color: #677e93;
  margin: 0;
}

.title-rule {
  height: 3px;
  background: linear-gradient(90deg,#4676a1 0%,#4676a1 110px,#d8e2ea 110px,#d8e2ea 100%);
  margin: 36px 0;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0,1.38fr) minmax(315px,1fr);
  align-items: stretch;
  gap: 59px;
}

.description {
  padding-top: 12px;
}

.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: #728da5;
  font-weight: 750;
  margin-bottom: 16px;
}

.description h2 {
  font-size: 26px;
  letter-spacing: -.028em;
  font-weight: 650;
  margin: 0 0 21px;
}

.description p {
  font-size: 16px;
  line-height: 1.9;
  max-width: 635px;
  margin: 0 0 18px;
}

.research-block {
  margin-top: 31px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.research-block h3 {
  font-size: 20px;
  font-weight: 670;
  letter-spacing: -.015em;
  margin-bottom: 17px;
}

.research-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
}

.research-list li {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
}

.research-list .num {
  font-size: 11px;
  font-weight: 700;
  color: #7b9dbb;
  padding-top: 2px;
  letter-spacing: .05em;
}

.join-panel {
  margin-top: 32px;
  background: #f0f4f8;
  border-left: 3px solid #6389a9;
  border-radius: 0 6px 6px 0;
  padding: 18px 23px;
}

.join-panel h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.join-panel p {
  font-size: 13px;
  line-height: 1.72;
  margin: 0;
}

.news-panel {
  background: #f1f5f9;
  border: 1px solid #e8eef4;
  border-radius: 9px;
  padding: 28px 31px 21px;
  align-self: start;
}

.news-panel h2 {
  font-size: 25px;
  letter-spacing: -.024em;
  margin-bottom: 20px;
}

.news-item {
  border-top: 1px solid #dbe4ec;
  padding: 18px 0 19px;
}

.news-item:first-child {
  border-top: none;
  padding-top: 0;
}

.news-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 800;
  color: #6384a4;
  display: block;
  margin-bottom: 7px;
}

.news-item h3 {
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -.005em;
  margin: 0 0 5px;
  font-weight: 650;
}

.news-item p {
  font-size: 13px;
  color: #566c80;
  line-height: 1.68;
  margin: 0;
}

details {
  margin: 0;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.news-more {
  border-top: 1px solid #dbe4ec;
  margin-top: 0;
}

.news-more>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 3px 1px;
  color: #2e638f;
  font-size: 13px;
  font-weight: 700;
}

.news-more>summary:hover {
  color: #113b5e;
}

.chev {
  display: inline-block;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  transition: transform .18s ease;
  vertical-align: middle;
}

details[open] >summary .chev {
  transform: rotate(180deg);
}

.news-more[open] >summary {
  padding-bottom: 19px;
}

.older-items {
  border-top: 1px solid #dbe4ec;
}

.older-items .news-item {
  padding: 14px 0;
}

.content-section {
  border-top: 1px solid var(--line);
  padding-top: 46px;
  margin-bottom: 62px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 31px;
}

.section-head h2 {
  font-size: 31px;
  letter-spacing: -.03em;
  margin: 0;
  font-weight: 680;
}

.section-head p {
  font-size: 12px;
  color: #7c8d9d;
  margin: 0 0 4px;
}

.people-subheading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0 21px;
}

.people-subheading h3 {
  font-size: 12px;
  color: #64809a;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0;
  white-space: nowrap;
}

.people-subheading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e1e8ee;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 25px;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 25px;
}

.profile {
  min-width: 0;
}

.profile-photo {
  display: flex;
  position: relative;
  aspect-ratio: 5/5.8;
  overflow: hidden;
  background: #e9f0f4;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s,transform .2s;
}

.profile-photo:hover {
  box-shadow: 0 10px 26px rgba(33,63,89,.13);
  transform: translateY(-2px);
}

.photo-fallback {
  font-family: Georgia,serif;
  color: #8fa4b4;
  font-size: 46px;
  letter-spacing: -.04em;
  font-weight: 500;
}

.profile-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 30%;
  background: #e9f0f4;
}

.profile-info {
  padding: 13px 1px 0;
}

.profile h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 4px;
  font-weight: 680;
}

.profile h3 a {
  color: #1a3955;
}

.profile p {
  font-size: 12px;
  color: #718496;
  line-height: 1.55;
  margin: 0;
}

.outbound {
  font-size: .75em;
  display: inline-block;
  margin-left: 3px;
  opacity: .6;
}

.student-heading {
  margin-top: 34px;
}

.student-grid .profile-photo {
  aspect-ratio: 5/5.1;
}

.student-grid .profile p {
  max-width: 200px;
}

.former-details {
  margin-top: 29px;
  border-top: 1px solid #e1e8ee;
  border-bottom: 1px solid #e1e8ee;
}

.former-details>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #305e85;
  font-weight: 680;
  font-size: 14px;
  padding: 15px 2px;
}

.former-list {
  margin: 0;
  padding: 0 0 17px;
  list-style: none;
  display: grid;
  gap: 9px;
}

.former-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
}

.former-list span {
  color: #81919f;
}

.publications-section {
  margin-bottom: 70px;
}

.pub-intro {
  font-size: 13px;
  color: #718497;
  max-width: 660px;
  margin: -13px 0 29px;
}

.pub-year {
  display: grid;
  grid-template-columns: 125px minmax(0,1fr);
  border-top: 1px solid var(--line);
  padding: 26px 0;
  gap: 31px;
}

.pub-year-label h3, .pub-year-label strong {
  font-size: 22px;
  letter-spacing: -.015em;
  color: #356791;
  font-weight: 660;
  margin: 0 0 6px;
  display: block;
  line-height: 1.15;
}

.pub-year-label span, .pub-year-label small {
  display: block;
  font-size: 11px;
  color: #8898a6;
  font-weight: 500;
}

.paper-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

.paper h3 {
  color: #1e3b57;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 670;
  margin: 0 0 4px;
  letter-spacing: -.003em;
}

.paper h3 a {
  color: #1e5787;
}

.paper p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.authors {
  color: #536a7e;
}

.venue {
  color: #8293a2;
  font-style: italic;
  margin-top: 2px !important;
}

.pub-year.archived {
  display: block;
  padding: 0;
}

.pub-year.archived>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0;
  gap: 20px;
}

.pub-year.archived>summary .pub-year-label {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.pub-year.archived>summary .pub-year-label strong {
  font-size: 20px;
  margin: 0;
  min-width: 55px;
}

.accordion-action {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3f749d;
  font-size: 13px;
  font-weight: 620;
}

.pub-year.archived>.paper-list {
  padding: 1px 0 30px 156px;
}

.contact-section {
  margin-bottom: 5px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.contact-layout p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 10px;
}

.contact-layout address {
  font-style: normal;
}

.contact-card {
  background: #f1f5f9;
  border: 1px solid #e7edf3;
  padding: 24px 27px;
  border-radius: 7px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 9px;
}

.contact-card a {
  font-weight: 650;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0;
  font-size: 12px;
  color: #718597;
}

.footer a {
  color: #456d8f;
}

@media (max-width:1050px) {
  .site-nav {
    gap: 16px;
  }

  .brand-caption {
    display: none;
  }

  .brand-divider {
    display: none;
  }

  .lead-layout {
    gap: 35px;
  }

  .faculty-grid {
    gap: 16px;
  }

}

@media (max-width:760px) {
  .site-wrap {
    width: min(100% - 36px,640px);
  }

  .site-header {
    position: static;
  }

  .head-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    padding: 12px 0 16px;
  }

  .brand-area {
    width: 100%;
  }

  .brand-mark {
    width: 192px;
    height: 65px;
    flex-basis: 192px;
  }

  .brand-mark img {
    width: 355px;
    height: 266px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 10px 20px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .intro {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .page-heading {
    margin-bottom: 18px;
  }

  .title-rule {
    margin: 23px 0 25px;
  }

  .lead-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .description {
    padding-top: 0;
  }

  .description p {
    font-size: 15px;
    line-height: 1.85;
  }

  .news-panel {
    padding: 23px;
  }

  .faculty-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 23px 15px;
  }

  .student-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .content-section {
    padding-top: 35px;
    margin-bottom: 49px;
  }

  .section-head h2 {
    font-size: 27px;
  }

  .pub-year {
    grid-template-columns: 75px minmax(0,1fr);
    gap: 15px;
  }

  .pub-year.archived>.paper-list {
    padding-left: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-inner {
    padding: 24px 0;
  }

}

@media (max-width:380px) {
  .site-nav {
    gap: 10px 14px;
  }

  .faculty-grid {
    gap: 18px 10px;
  }

  .profile h3 {
    font-size: 14px;
  }

  .profile-photo {
    aspect-ratio: 1/1.2;
  }

  .news-panel {
    padding: 20px;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }

}

/* Refined Option 4: understated typography, a little more colour. */

:root {
  --navy: #29465b;
  --navy-dark: #263c4c;
  --blue: #377794;
  --text: #435563;
  --muted: #758595;
  --line: #dce7e8;
  --pale: #eff7f5;
  --white: #fff;
}

body {
  background: #fbfcfb;
  color: var(--text);
  font-family: "Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  font-size: 15.5px;
  line-height: 1.74;
}

h1, h2, h3 {
  font-family: Georgia,"Iowan Old Style",Baskerville,"Times New Roman",serif;
  font-weight: 400;
  color: #284052;
  line-height: 1.24;
  letter-spacing: -.018em;
}

a {
  color: #226c84;
}

a:hover {
  color: #154e67;
}

.site-header {
  background: #fff;
  border-color: #e1e9e9;
  box-shadow: 0 3px 16px rgba(30,73,85,.035);
}

.head-inner {
  min-height: 102px;
  gap: 32px;
}

.brand-mark {
  width: 270px;
  height: 76px;
  flex-basis: 270px;
  overflow: hidden;
  background: #fff;
}

.brand-mark img {
  width: 703px;
  height: 527px;
  max-width: none;
  object-fit: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.brand-fallback {
  font-family: Georgia,serif;
  font-weight: 400;
  font-size: 22px;
  color: #263c4c;
}

.brand-divider {
  background: #e3ecea;
}

.brand-caption {
  color: #6b8b8d;
  font-size: 12px;
}

.site-nav {
  gap: 23px;
}

.site-nav a {
  font-weight: 450;
  color: #526a76;
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav a:hover {
  color: #24788a;
}

.intro {
  padding-top: 47px;
  padding-bottom: 64px;
}

.page-heading {
  margin-bottom: 20px;
}

h1 {
  font-family: Georgia,"Iowan Old Style",Baskerville,serif;
  font-size: clamp(35px,4.1vw,51px);
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.heading-sub {
  font-size: 14px;
  color: #738792;
  letter-spacing: .005em;
}

.title-rule {
  height: 2px;
  background: linear-gradient(90deg,#42859e 0%,#42859e 105px,#79b4a5 105px,#79b4a5 180px,#dfebea 180px,#dfebea 100%);
  margin: 31px 0 37px;
}

.lead-layout {
  grid-template-columns: minmax(0,1.32fr) minmax(310px,1fr);
  gap: 57px;
}

.description h2 {
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0 0 19px;
}

.description p {
  font-size: 15px;
  line-height: 1.85;
  color: #455865;
  margin: 0 0 18px;
}

.research-block {
  margin-top: 35px;
  border-color: #dce7e7;
  padding-top: 26px;
}

.research-block h3 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}

.research-list {
  gap: 15px;
}

.research-list li {
  font-size: 14px;
  line-height: 1.63;
  color: #536673;
  grid-template-columns: 24px minmax(0,1fr);
}

.research-list li strong {
  font-weight: 520;
  color: #2e5868;
}

.research-list .num {
  font-weight: 500;
  color: #3c9290;
  font-size: 12px;
  letter-spacing: 0;
}

.join-panel {
  background: #f0f7f1;
  border-left: 3px solid #80a893;
  border-radius: 0 6px 6px 0;
  padding: 20px 23px;
}

.join-panel h3 {
  font-size: 19px;
  font-weight: 400;
  color: #315d54;
  margin-bottom: 5px;
}

.join-panel p {
  font-size: 13px;
  color: #526b65;
}

.news-panel {
  background: #eff7f7;
  border: 1px solid #e0eeee;
  border-radius: 10px;
  padding: 28px 31px 22px;
  box-shadow: 0 3px 14px rgba(42,98,103,.025);
}

.news-panel h2 {
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.012em;
  margin-bottom: 20px;
}

.news-item {
  border-color: #d6e6e5;
  padding: 17px 0 19px;
}

.news-date {
  color: #438c89;
  font-weight: 520;
  font-size: 11px;
  letter-spacing: .025em;
  text-transform: none;
  margin-bottom: 7px;
}

.news-item h3 {
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 570;
  color: #2c5264;
  letter-spacing: 0;
  margin-bottom: 5px;
}

.news-item p {
  font-size: 13px;
  line-height: 1.68;
  color: #637782;
}

.news-more, .older-items {
  border-color: #d6e6e5;
}

.news-more>summary {
  color: #276c7b;
  font-weight: 520;
  font-size: 13px;
}

.news-more>summary:hover {
  color: #195064;
}

.content-section {
  border-color: #dce7e8;
  padding-top: 46px;
}

.section-head h2 {
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -.025em;
}

.section-head p {
  font-size: 12px;
  color: #849498;
}

.people-subheading h3 {
  font-family: "Segoe UI",Arial,sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: none;
  letter-spacing: .005em;
  color: #438882;
}

.people-subheading::after {
  background: #dce8e7;
}

.profile-photo {
  border-radius: 6px;
  border: 1px solid #e3ecec;
  background: #eaf2ef;
}

.profile-photo img {
  background: transparent;
  object-position: center 25%;
}

.photo-fallback {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.profile-photo img {
  z-index: 2;
}

.profile-photo:hover {
  box-shadow: 0 9px 22px rgba(37,86,96,.10);
  transform: translateY(-1px);
}

.profile h3 {
  font-family: "Segoe UI",Arial,sans-serif;
  font-weight: 525;
  font-size: 15px;
  letter-spacing: 0;
}

.profile h3 a {
  color: #28566a;
}

.profile p {
  font-size: 12px;
  color: #778b8c;
}

.former-details, .pub-year {
  border-color: #dce7e8;
}

.former-details>summary {
  font-weight: 510;
  color: #286f80;
}

.pub-intro {
  font-size: 13px;
  color: #748992;
}

.pub-year-label h3, .pub-year-label strong {
  font-family: Georgia,"Times New Roman",serif;
  color: #408b8c;
  font-weight: 400;
  font-size: 23px;
}

.paper h3 {
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 14px;
  line-height: 1.53;
  font-weight: 525;
  letter-spacing: 0;
  color: #2c5366;
}

.paper h3 a {
  color: #22758a;
}

.authors {
  color: #5f7481;
}

.venue {
  color: #83959c;
}

.pub-year.archived>summary .pub-year-label strong {
  font-size: 22px;
  font-weight: 400;
}

.accordion-action {
  font-weight: 510;
  color: #2f7b85;
}

.contact-card {
  background: #f1f7f4;
  border-color: #e0ece8;
}

.contact-card h3 {
  font-size: 22px;
  font-weight: 400;
  color: #315c53;
}

.contact-card a {
  font-weight: 510;
}

.footer {
  border-color: #dce7e8;
}

.footer a {
  color: #317a88;
}

@media (max-width:1050px) {
  .brand-mark {
    width: 235px;
    flex-basis: 235px;
    height: 67px;
  }

  .brand-mark img {
    width: 612px;
    height: 459px;
  }

  .site-nav {
    gap: 14px;
  }

  .lead-layout {
    gap: 36px;
  }

}

@media (max-width:760px) {
  .site-wrap {
    width: min(100% - 36px,640px);
  }

  .head-inner {
    min-height: auto;
  }

  .brand-mark {
    width: 213px;
    flex-basis: 213px;
    height: 60px;
  }

  .brand-mark img {
    width: 555px;
    height: 416px;
  }

  .intro {
    padding-top: 30px;
    padding-bottom: 42px;
  }

  .title-rule {
    margin: 24px 0 28px;
  }

  .lead-layout {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .description h2 {
    font-size: 27px;
  }

  .description p {
    font-size: 15px;
  }

  .news-panel {
    padding: 24px;
  }

  .section-head h2 {
    font-size: 31px;
  }

}

/* Bristol-red refinement, soft stone neutrals, compact circular portraits. */

:root {
  --navy: #43363B;
  --navy-dark: #3B3538;
  --blue: #9B3146;
  --text: #4D4C4A;
  --muted: #786F70;
  --line: #E8DFDD;
  --pale: #FAF4F2;
  --white: #fff;
}

body {
  background: #FEFDFC;
  color: #4D4C4A;
}

h1, h2, h3 {
  color: #40363A;
  font-weight: 400;
}

a {
  color: #90314B;
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: #6A1932;
  text-decoration: underline;
}

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline-color: #C47B88;
}

.site-header {
  border-color: #E6DDDC;
  background: #fff;
  box-shadow: 0 3px 14px rgba(87,51,60,.035);
}

.head-inner {
  min-height: 96px;
}

.brand-area {
  gap: 16px;
}

.brand-mark, .brand-mark:has(img) {
  width: 244px;
  height: 79px;
  flex-basis: 244px;
  overflow: hidden;
  background: transparent;
}

.brand-mark img {
  display: block;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 244px;
  height: 79px;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}

.brand-fallback {
  font-family: Georgia,serif;
  color: #922A42;
  font-size: 19px;
  line-height: 1.1;
  padding: 10px 0;
}

.brand-mark:has(img) .brand-fallback {
  display: none;
}

.brand-divider {
  background: #E5DADA;
  height: 34px;
}

.brand-caption a {
  color: #846773;
  font-size: 12px;
  line-height: 1.45;
}

.site-nav a {
  color: #57525A;
  font-weight: 460;
}

.site-nav a:hover {
  color: #94374C;
}

.heading-sub, .heading-sub a {
  color: #8A7980;
}

.title-rule {
  height: 2px;
  background: linear-gradient(90deg,#A72C46 0%,#A72C46 88px,#D8B4B6 88px,#D8B4B6 173px,#E8E1DE 173px,#E8E1DE 100%);
}

.description h2, .news-panel h2 {
  color: #49393E;
}

.description p {
  color: #514E51;
}

.research-block {
  border-color: #E9E0DD;
}

.research-list .num {
  color: #A95C70;
}

.research-list li strong {
  color: #784659;
}

.research-list li {
  color: #59545A;
}

.join-panel {
  background: #F9F5F0;
  border-left: 2px solid #BC8995;
}

.join-panel h3 {
  color: #70515D;
}

.join-panel p {
  color: #696065;
}

.news-panel {
  background: #FBF5F3;
  border: 1px solid #EFE3E0;
  box-shadow: none;
}

.news-item {
  border-color: #E9DDDB;
}

.news-date {
  color: #AA6074;
}

.news-item h3 {
  color: #55434B;
  font-weight: 550;
}

.news-item p {
  color: #766C72;
}

.news-archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  border-top: 1px solid #E8DCD9;
  padding: 19px 3px 3px;
  font-size: 13px;
  font-weight: 550;
  color: #95344D;
}

.news-archive-link:hover {
  text-decoration: underline;
}

.content-section, .pub-year, .former-details {
  border-color: #E8E0DE;
}

.section-head h2 {
  color: #463A3E;
}

.people-subheading h3 {
  color: #985169;
}

.people-subheading::after {
  background: #E8DEDF;
}

.faculty-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 26px;
}

.student-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 26px;
}

.profile {
  text-align: center;
}

.profile-photo, .student-grid .profile-photo {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #EEE1DF;
  background: #F3ECE9;
  box-shadow: none;
  overflow: hidden;
}

.profile-photo:hover {
  transform: none;
  border-color: #C58D9B;
  box-shadow: none;
}

.profile-photo img {
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  background: #F2ECEA;
}

.photo-fallback {
  font-size: 29px;
  color: #9B7C86;
  font-weight: 400;
}

.profile-info {
  padding: 11px 2px 0;
}

.profile h3 {
  font-weight: 550;
  font-size: 14px;
}

.profile h3 a {
  color: #644250;
}

.profile p {
  color: #837A7B;
  font-size: 12px;
  max-width: 200px;
  margin: 0 auto;
}

.former-details>summary {
  color: #8C4257;
  font-weight: 500;
}

.pub-year-label h3, .pub-year-label strong {
  color: #9D4B5E;
}

.paper h3, .paper h3 a {
  color: #6E4554;
  font-weight: 520;
}

.authors {
  color: #6C6266;
}

.venue {
  color: #91868B;
}

.accordion-action {
  color: #904C62;
  font-weight: 500;
}

.contact-card {
  background: #F9F4F0;
  border: 1px solid #EEE2DB;
}

.contact-card h3 {
  color: #6C4955;
}

.footer {
  border-color: #E9E0DE;
}

.footer a {
  color: #945065;
}

.archive-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #8D4257;
  font-size: 14px;
}

.archive-intro {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
  color: #6F6669;
}

.archive-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 45px 0 70px;
}

.archive-year {
  border-top: 1px solid #E7DDDB;
  padding-top: 24px;
  margin-top: 34px;
}

.archive-year>h2 {
  font-size: 28px;
  margin: 0 0 21px;
}

.archive-news-item {
  display: grid;
  grid-template-columns: 135px minmax(0,1fr);
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid #EEE7E5;
}

.archive-news-item:first-of-type {
  border-top: none;
}

.archive-date {
  display: block;
  font-size: 13px;
  color: #9F6072;
}

.archive-news-item h3 {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 8px;
}

.archive-news-item p {
  color: #625C60;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.archive-photo-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 17px;
}

.archive-photo-grid a {
  display: block;
  max-width: 100%;
}

.archive-photo-grid img {
  display: block;
  height: auto;
  max-height: 340px;
  max-width: min(100%,520px);
  width: auto;
  border-radius: 6px;
  border: 1px solid #E7DEDA;
  object-fit: contain;
  background: #F7F4F0;
}

.archive-photo-grid.double img {
  max-width: min(100%,380px);
  max-height: 250px;
}

.archive-related-links {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

@media (max-width:1050px) {
  .brand-mark, .brand-mark:has(img) {
    width: 212px;
    height: 68px;
    flex-basis: 212px;
  }

  .brand-mark img {
    width: 212px;
    height: 68px;
  }

}

@media (max-width:760px) {
  .head-inner {
    gap: 16px;
  }

  .brand-mark, .brand-mark:has(img) {
    width: 193px;
    height: 62px;
    flex-basis: 193px;
  }

  .brand-mark img {
    width: 193px;
    height: 62px;
  }

  .faculty-grid, .student-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 26px 18px;
  }

  .archive-layout {
    padding: 28px 0 42px;
  }

  .archive-news-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 19px 0;
  }

  .archive-year {
    padding-top: 19px;
    margin-top: 22px;
  }

  .archive-photo-grid img {
    max-width: 100%;
  }

  .site-nav {
    gap: 12px;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

}

.brand-mark .brand-fallback {
  display: none;
  color: #A02A43;
  font-family: Georgia,serif;
  font-size: 19px;
  line-height: 1.2;
  align-items: center;
  padding: 8px 4px;
  width: 100%;
  height: 100%;
}

.brand-mark.image-unavailable .brand-fallback {
  display: flex;
}

.brand-mark.image-unavailable img {
  display: none;
}

.photo-missing {
  display: none;
  padding: 22px 25px;
  background: #FAF4F2;
  border: 1px solid #E9DBD8;
  border-radius: 6px;
  color: #884A5A;
  font-size: 13px;
}

.archive-photo-grid a.image-unavailable .photo-missing {
  display: block;
}

/* Linked researcher names within the research-interests description. */

.research-list a {
  color: #8E3B52;
  text-decoration: underline;
  text-decoration-color: #D7B5C0;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.research-list a:hover {
  color: #651F35;
  text-decoration-color: currentColor;
}

/* Same publication-year control for every year, including the newest two. */

.pub-year.archived .action-open {
  display: none;
}

.pub-year.archived[open] .action-open {
  display: inline;
}

.pub-year.archived[open] .action-closed {
  display: none;
}

.pub-year.archived>summary {
  cursor: pointer;
}

.pub-year.archived>summary:hover .accordion-action {
  color: #642439;
}

.pub-year.archived[open]>.paper-list {
  padding-top: 8px;
}

@media (max-width:760px) {
  .pub-year.archived>summary .pub-year-label {
    gap: 12px;
  }

}


/* PhD recruitment: prominent but restrained, using the site's Bristol-red palette.
   Keep this on the homepage while the group is recruiting. */
.phd-notice {
  margin: 24px 0 28px;
  padding: 20px 23px 21px;
  background: #FBF2F1;
  border: 1px solid #EEDCDB;
  border-left: 4px solid #A43A51;
  border-radius: 5px;
}

.phd-notice-label {
  margin: 0 0 6px !important;
  color: #985067 !important;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 650;
  font-size: 12px !important;
  letter-spacing: .03em;
}

.phd-notice h3 {
  margin: 0 0 9px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  color: #553641;
}

.description .phd-notice p:not(.phd-notice-label) {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #65545A;
}

.phd-notice-link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 4px;
  border: 1px solid #BD8997;
  background: #FFFDFD;
  color: #81334C;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.phd-notice-link:hover {
  background: #F5E5E7;
  color: #65253C;
  text-decoration: none;
}

@media (max-width: 760px) {
  .phd-notice {
    padding: 17px 18px;
    margin: 22px 0 26px;
  }
  .phd-notice h3 {
    font-size: 21px;
  }
}

/* Recruitment deadline: clear emphasis without an additional colourful panel. */
.description .phd-notice .phd-deadline {
  color: #81334C;
  margin-bottom: 13px;
}
.phd-notice .phd-deadline strong {
  color: #81334C;
  font-weight: 650;
}
