/* ---------- tokens ---------- */

:root {
  --navy: #0b2a55;
  --navy-deep: #08213f;
  --navy-soft: #1d4477;
  --accent: #2fb4ee;
  --accent-ink: #0b6fa4;
  --cream: #f8f7f2;
  --paper: #ffffff;
  --sand: #e9e7e1;
  --tag: #ebe9e2;
  --ink: #12203a;
  --muted: #5a6373;
  --line: #dedbd2;
  --radius: 4px;
  --max: 1200px;
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-ink);
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-white {
  background: var(--paper);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
}

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

.section-head h2 {
  margin: 0;
  padding-bottom: 10px;
  position: relative;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--navy);
}

.rule-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
}

.rule-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.link-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow::after {
  content: " \2192";
}

.link-arrow:hover {
  color: var(--accent-ink);
}

/* ---------- recruitment banner ---------- */

.recruitment-banner {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.recruitment-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: stretch;
}

.recruitment-text h2 {
  margin: 8px 0 12px;
  color: var(--navy);
}

.recruitment-text p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 16px;
}

.recruitment-text strong {
  color: var(--ink);
}

.recruitment-figure {
  position: relative;
  margin: 0;
  min-height: 240px;
}

.recruitment-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the Queen's Tower in frame */
  object-position: 30% 15%;
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .recruitment-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .recruitment-figure {
    min-height: 0;
  }

  .recruitment-figure img {
    position: static;
    aspect-ratio: 3 / 2;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-soft);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy-deep);
}

.btn-accent:hover {
  background: #5cc6f3;
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
}

.btn-white {
  background: #fff;
  color: var(--navy);
}

.btn-white:hover {
  background: var(--cream);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent-ink);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--navy);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-header[data-open] .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 8px 0 12px;
  }
}

/* ---------- hero ---------- */

.hero {
  background: var(--navy);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* animated cargo-flow network drawn by _scripts/hero-network.js */
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* fade the network under the headline so the text stays readable */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 40%, #000 70%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 40%, #000 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(47, 180, 238, 0.5);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- research area cards (home) ---------- */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.area-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.area-card:hover {
  box-shadow: 0 10px 30px rgba(11, 42, 85, 0.1);
  transform: translateY(-2px);
}

.area-card .area-image {
  position: relative;
  margin: -32px -32px 24px;
  height: 150px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.area-card .area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-card.is-navy .area-image {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.area-card h3 {
  margin-bottom: 10px;
}

/* the title link covers the whole card */
.area-card .area-link {
  color: inherit;
  text-decoration: none;
}

.area-card .area-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.area-card p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 460px;
}

.area-card .tags {
  margin-top: auto;
}

.area-card.is-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.area-card.is-navy h3 {
  color: #fff;
}

.area-card.is-navy p {
  color: rgba(255, 255, 255, 0.8);
}

.area-card.is-navy .tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--tag);
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- projects listed under a theme ---------- */

.theme-projects {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.82rem;
}

.theme-projects li {
  position: relative;
  padding: 5px 0 5px 18px;
  border-top: 1px solid var(--line);
}

.theme-projects li:last-child {
  border-bottom: 1px solid var(--line);
}

.theme-projects li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
}

.theme-projects li,
.theme-projects a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.theme-projects a:hover {
  text-decoration: underline;
}

.area-card .theme-projects {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.theme-projects.is-light li {
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-projects.is-light li::before {
  color: var(--accent);
}

.theme-projects.is-light li,
.theme-projects.is-light a {
  color: #fff;
}

/* ---------- projects ---------- */

.projects-layout {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 40px;
  align-items: start;
}

.projects-layout .intro p {
  color: var(--muted);
  font-size: 0.92rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-tile .project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.project-code {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.project-tile h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.project-tile p {
  font-size: 0.88rem;
  color: var(--muted);
}

.project-partners {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-partners img {
  height: 26px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
}

/* ---------- publication table ---------- */

.pub-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pub-table th {
  background: var(--sand);
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 20px;
}

.pub-table td {
  padding: 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.pub-year {
  width: 90px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.pub-title {
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.pub-title:hover {
  text-decoration: underline;
}

.pub-venue {
  display: block;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.pub-authors {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.pub-actions {
  width: 110px;
  text-align: right;
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--navy);
}

.icon-btn[data-copied] {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

.table-foot {
  text-align: center;
  margin-top: 28px;
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- about + people (home) ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-layout .prose {
  max-width: 680px;
}

.about-layout h2:first-child {
  margin-top: 0;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.facts h4 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 10px;
}

.facts ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* positions, education and awards on profile pages */
.cv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.cv-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.92rem;
}

.cv-years {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.85rem;
}

.cv-org {
  color: var(--muted);
}

@media (max-width: 520px) {
  .cv-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.people-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.person-mini {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.78rem;
}

.person-mini img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 8px;
  background: var(--tag);
}

.person-mini .name {
  font-weight: 600;
  color: var(--navy);
}

.person-mini .role {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.person-mini.is-all {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.person-mini.is-all i {
  font-size: 1.2rem;
}

.callout {
  background: #e8eef4;
  border: 1px solid #c9d6e3;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.88rem;
}

.callout-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.callout p {
  color: var(--muted);
  margin-bottom: 8px;
}

.callout a {
  font-weight: 600;
}

/* ---------- page header ---------- */

.page-head {
  padding: 64px 0 40px;
}

.page-head .lead {
  margin-bottom: 0;
}

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-head-aside {
  flex: 0 0 320px;
  max-width: 100%;
}

/* ---------- research page ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pillar-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar-body > p {
  color: var(--muted);
  font-size: 0.92rem;
}

.pillar-title {
  border-left: 3px solid var(--navy);
  padding-left: 12px;
  margin-bottom: 18px;
}

.pillar-image {
  position: relative;
  height: 220px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  padding: 3px 8px;
  background: rgba(8, 33, 63, 0.7);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.62rem;
  line-height: 1.4;
}

.img-credit a {
  color: inherit;
}

.pillar .tags {
  margin-bottom: 20px;
}

.pillar-band {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 150px 32px 24px;
}

.pillar-band h3 {
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
}

.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist i {
  color: var(--accent-ink);
  margin-top: 4px;
}

.checklist strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.82rem;
}

.checklist span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pillar-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pillar-wide .pillar-media {
  position: relative;
  background: var(--sand);
  min-height: 360px;
}

.pillar-wide.is-reversed .pillar-media {
  order: 2;
}

.pillar-wide .pillar-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.media-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0524b;
}

.pillar-wide .pillar-body {
  padding: 48px;
  justify-content: center;
}

.pillar-wide .pillar-body::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--accent-ink);
  margin-bottom: 24px;
}

.pillar-wide h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* ---------- full project list ---------- */

.project-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.project-row p {
  color: var(--muted);
  font-size: 0.92rem;
}

.project-row img.project-photo {
  width: 100%;
  max-height: 320px;
  align-self: center;
  object-fit: contain;
  border-radius: var(--radius);
}

.project-row.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.project-row > div > p {
  max-width: 820px;
}

.project-row .project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-dates {
  font-size: 0.75rem;
  color: var(--muted);
}

.project-tile .project-dates {
  margin-top: auto;
}

a.project-tile {
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

a.project-tile:hover {
  box-shadow: 0 10px 30px rgba(11, 42, 85, 0.1);
  transform: translateY(-2px);
}

.project-papers {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.85rem;
}

.project-papers li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.project-papers li::before {
  content: "\f15c";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  position: absolute;
  left: 0;
  color: var(--accent-ink);
}

.project-papers span {
  color: var(--muted);
}

.project-row .collab {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 12px;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* keep the content above the decorative corner square, so it doesn't block hover */
.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto 24px;
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-band.is-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: left;
  padding: 40px;
}

.cta-band.is-split p {
  margin: 0;
}

.cta-band.is-split h2 {
  margin-bottom: 8px;
}

/* ---------- people page ---------- */

.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  max-width: 300px;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  object-position: top;
  border-left: 3px solid var(--navy);
  background: var(--tag);
  margin-bottom: 16px;
}

.person-card .name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.person-card .role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

/* extra roles under the position, above the line before the contact details */
.person-card .role-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

.person-card .detail {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.person-card .detail a {
  color: var(--muted);
}

.person-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.9;
  margin-bottom: 16px;
  background: var(--tag);
  border-left: 3px solid var(--navy);
  color: var(--muted);
  font-size: 2.5rem;
}

.person-card .topic {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.person-card .bio {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.person-links {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.person-links a {
  text-decoration: none;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.people-grid .person-card {
  max-width: none;
}

/* cards that open a member profile */
a.person-card.is-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.person-card.is-link:hover {
  box-shadow: 0 10px 30px rgba(11, 42, 85, 0.1);
  transform: translateY(-2px);
}

/* pinned to the bottom so the link lines up across cards of different heights */
a.person-card.is-link .link-arrow {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
}

/* member profile page */
.back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}

.back-link::before {
  content: "\2190  ";
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.profile-summary p {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 32px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.data-table th {
  background: var(--sand);
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
}

.data-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.data-table td:first-child {
  font-weight: 500;
  color: var(--navy);
}

.data-table .year {
  color: var(--accent-ink);
}

.empty-note {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- prose pages ---------- */

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
}

.prose-block > :last-child {
  margin-bottom: 0;
}

.prose-block h2:first-child {
  margin-top: 0;
}

.note {
  border-left: 3px solid var(--accent);
  background: #eef7fc;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 1em 0 1.4em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.info-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.info-card p {
  margin: 0;
}

/* address on the left, map filling the card height on the right */
.office-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}

.office-card .link-arrow {
  display: inline-block;
  margin-top: 12px;
}

.office-map {
  width: 100%;
  height: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 520px) {
  .office-card {
    grid-template-columns: 1fr;
  }
}

/* a person's name and role, styled like the team cards */
.info-card .name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.info-card .role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  object-fit: cover;
}

.figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.figure {
  margin: 0;
}

.module-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.module-card + .module-card {
  margin-top: 24px;
}

.module-card.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.module-card.no-image .module-body p {
  max-width: 780px;
}

.module-card .module-body {
  padding: 36px;
}

.module-card .module-body p {
  color: var(--muted);
}

.module-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- search (publications) ---------- */

.search-box {
  position: relative;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  padding: 11px 44px 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.search-box input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.search-box button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 36px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.search-info {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 10px 0 0;
  min-height: 1.2em;
}

mark {
  background: #fdeca6;
  color: inherit;
}

.year-row td {
  background: var(--cream);
  font-weight: 600;
  color: var(--navy);
  padding: 10px 20px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--line);
  margin-top: 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) repeat(3, auto);
  justify-content: start;
  gap: 32px 56px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.footer-about p {
  color: var(--muted);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--accent-ink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-icons {
  display: flex;
  gap: 16px;
  font-size: 1rem;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .profile-layout,
  .areas-grid,
  .projects-layout,
  .about-layout,
  .pillar-grid,
  .pillar-wide,
  .project-row,
  .module-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band.is-split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 72px 0;
  }

  .hero-network {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  }

  .project-grid,
  .facts,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pub-year {
    width: 56px;
  }

  .pub-table td,
  .pub-table th {
    padding: 14px 12px;
  }

  .pub-actions {
    width: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-head-row,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-head-aside {
    flex: none;
    width: 100%;
  }

  .pillar-wide .pillar-body,
  .pillar-body,
  .prose-block {
    padding: 24px;
  }
}

/* ---------- CIVE70108 playground (teaching/cive70108/) ---------- */

.playground-landing {
  padding-bottom: 72px;
}

.playground-lecture {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.playground-lecture-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.playground-lecture-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.playground-lecture.is-locked {
  padding: 16px 0;
}

.playground-lecture.is-locked .playground-lecture-head {
  margin-bottom: 0;
}

.playground-lecture.is-locked h2 {
  color: var(--muted);
  font-weight: 500;
}

.playground-demos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.playground-demo {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}

.playground-demo:hover,
.playground-demo:focus-visible {
  border-color: var(--navy);
}

.playground-demo img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.playground-demo-body {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
}

.playground-demo-body > span:not(.tag) {
  font-size: 0.88rem;
  color: var(--muted);
}

.playground-demo-body .tag {
  justify-self: start;
}

.playground {
  padding-top: 32px;
  padding-bottom: 72px;
}

.playground-crumb {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.playground-crumb a {
  color: var(--navy);
  text-decoration: none;
}

.playground-crumb a::before {
  content: "\2190  ";
}

.nav-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
}

.nav-strip li + li a {
  border-left: 1px solid var(--navy);
}

.nav-strip a {
  display: block;
  padding: 10px 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.nav-strip a:hover {
  background: var(--cream);
}

.nav-strip a[aria-current] {
  background: var(--navy);
  color: #fff;
}

.playground-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 40px;
  padding-top: 24px;
}

.playground-index {
  flex: 0 0 210px;
  border-top: 2px solid var(--navy);
}

.playground-index-label {
  margin: 0;
  padding: 10px 0;
  font-weight: 600;
  line-height: 1.25;
}

.playground-index-label span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.playground-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.playground-index li a {
  display: block;
  padding: 10px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.playground-index li a:hover {
  background: var(--cream);
}

.playground-index li a[aria-current] {
  background: var(--navy);
  color: #fff;
}

/* The demos are laid out for a 1040px column; shell.js scales the frame down to fit. */
.playground-stage {
  flex: 1 1 560px;
  min-width: 0;
  overflow: hidden;
}

.playground-stage h1 {
  margin: 0 0 20px;
}

.playground-stage iframe {
  display: block;
  width: 100%;
  min-height: 60vh;
  border: 0;
  transform-origin: 0 0;
}

@media (max-width: 640px) {
  .nav-strip {
    grid-auto-flow: row;
  }

  .nav-strip li + li a {
    border-left: 0;
    border-top: 1px solid var(--navy);
  }

  .playground-index {
    flex-basis: 100%;
  }
}
